dash-ant-design 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +135 -28
- package/dash_antd_components/async-audio-player.js +1 -0
- package/dash_antd_components/async-chart-ava.js +1 -0
- package/dash_antd_components/async-chart.js +1 -0
- package/dash_antd_components/async-data-entry.js +1 -0
- package/dash_antd_components/async-display.js +1 -1
- package/dash_antd_components/async-dnd-shared.js +1 -0
- package/dash_antd_components/async-dnd.js +1 -1
- package/dash_antd_components/async-feedback.js +1 -1
- package/dash_antd_components/async-form-upload.js +1 -0
- package/dash_antd_components/async-highlight-shared.js +1 -0
- package/dash_antd_components/async-highlight.js +1 -0
- package/dash_antd_components/async-icon-filled.js +1 -0
- package/dash_antd_components/async-icon-outlined.js +1 -0
- package/dash_antd_components/async-icon-twotone.js +1 -0
- package/dash_antd_components/async-infographic.js +1 -1
- package/dash_antd_components/async-locale-ar.js +1 -0
- package/dash_antd_components/async-locale-az.js +1 -0
- package/dash_antd_components/async-locale-bg.js +1 -0
- package/dash_antd_components/async-locale-bn.js +1 -0
- package/dash_antd_components/async-locale-by.js +1 -0
- package/dash_antd_components/async-locale-ca.js +1 -0
- package/dash_antd_components/async-locale-cs.js +1 -0
- package/dash_antd_components/async-locale-da.js +1 -0
- package/dash_antd_components/async-locale-de.js +1 -0
- package/dash_antd_components/async-locale-el.js +1 -0
- package/dash_antd_components/async-locale-en.js +1 -0
- package/dash_antd_components/async-locale-es.js +1 -0
- package/dash_antd_components/async-locale-et.js +1 -0
- package/dash_antd_components/async-locale-eu.js +1 -0
- package/dash_antd_components/async-locale-fa.js +1 -0
- package/dash_antd_components/async-locale-fi.js +1 -0
- package/dash_antd_components/async-locale-fr.js +1 -0
- package/dash_antd_components/async-locale-ga.js +1 -0
- package/dash_antd_components/async-locale-gl.js +1 -0
- package/dash_antd_components/async-locale-he.js +1 -0
- package/dash_antd_components/async-locale-hi.js +1 -0
- package/dash_antd_components/async-locale-hr.js +1 -0
- package/dash_antd_components/async-locale-hu.js +1 -0
- package/dash_antd_components/async-locale-hy.js +1 -0
- package/dash_antd_components/async-locale-id.js +1 -0
- package/dash_antd_components/async-locale-is.js +1 -0
- package/dash_antd_components/async-locale-it.js +1 -0
- package/dash_antd_components/async-locale-ja.js +1 -0
- package/dash_antd_components/async-locale-ka.js +1 -0
- package/dash_antd_components/async-locale-kk.js +1 -0
- package/dash_antd_components/async-locale-km.js +1 -0
- package/dash_antd_components/async-locale-kmr.js +1 -0
- package/dash_antd_components/async-locale-kn.js +1 -0
- package/dash_antd_components/async-locale-ko.js +1 -0
- package/dash_antd_components/async-locale-ku.js +1 -0
- package/dash_antd_components/async-locale-lt.js +1 -0
- package/dash_antd_components/async-locale-lv.js +1 -0
- package/dash_antd_components/async-locale-mk.js +1 -0
- package/dash_antd_components/async-locale-ml.js +1 -0
- package/dash_antd_components/async-locale-mn.js +1 -0
- package/dash_antd_components/async-locale-mr.js +1 -0
- package/dash_antd_components/async-locale-ms.js +1 -0
- package/dash_antd_components/async-locale-my.js +1 -0
- package/dash_antd_components/async-locale-nb.js +1 -0
- package/dash_antd_components/async-locale-ne.js +1 -0
- package/dash_antd_components/async-locale-nl.js +1 -0
- package/dash_antd_components/async-locale-pl.js +1 -0
- package/dash_antd_components/async-locale-pt.js +1 -0
- package/dash_antd_components/async-locale-ro.js +1 -0
- package/dash_antd_components/async-locale-ru.js +1 -0
- package/dash_antd_components/async-locale-si.js +1 -0
- package/dash_antd_components/async-locale-sk.js +1 -0
- package/dash_antd_components/async-locale-sl.js +1 -0
- package/dash_antd_components/async-locale-sq.js +1 -0
- package/dash_antd_components/async-locale-sr.js +1 -0
- package/dash_antd_components/async-locale-sv.js +1 -0
- package/dash_antd_components/async-locale-ta.js +1 -0
- package/dash_antd_components/async-locale-th.js +1 -0
- package/dash_antd_components/async-locale-tk.js +1 -0
- package/dash_antd_components/async-locale-tr.js +1 -0
- package/dash_antd_components/async-locale-uk.js +1 -0
- package/dash_antd_components/async-locale-ur.js +1 -0
- package/dash_antd_components/async-locale-uz.js +1 -0
- package/dash_antd_components/async-locale-vi.js +1 -0
- package/dash_antd_components/async-locale-zh.js +1 -0
- package/dash_antd_components/async-lottie.js +1 -0
- package/dash_antd_components/async-markdown.js +1 -1
- package/dash_antd_components/async-media-shared.js +1 -0
- package/dash_antd_components/async-media.js +1 -1
- package/dash_antd_components/async-navigation.js +1 -0
- package/dash_antd_components/async-picker.js +1 -1
- package/dash_antd_components/async-select.js +1 -1
- package/dash_antd_components/async-sheet.js +1 -0
- package/dash_antd_components/async-socket-io.js +1 -0
- package/dash_antd_components/async-table.js +1 -1
- package/dash_antd_components/async-tree.js +1 -1
- package/dash_antd_components/async-video-dash.js +1 -0
- package/dash_antd_components/async-video-hls.js +1 -0
- package/dash_antd_components/async-video-player.js +1 -0
- package/dash_antd_components/async-viz-canvas-shared.js +1 -0
- package/dash_antd_components/async-viz-shared.js +1 -0
- package/dash_antd_components/dash_antd_components.js +1 -1
- package/package.json +43 -44
- package/dash_antd_components/async-anchor.js +0 -1
- package/dash_antd_components/async-breadcrumb.js +0 -1
- package/dash_antd_components/async-cascader.js +0 -1
- package/dash_antd_components/async-controls.js +0 -1
- package/dash_antd_components/async-count.js +0 -1
- package/dash_antd_components/async-echarts.js +0 -1
- package/dash_antd_components/async-filled-icon.js +0 -1
- package/dash_antd_components/async-floating.js +0 -1
- package/dash_antd_components/async-form.js +0 -1
- package/dash_antd_components/async-g2.js +0 -1
- package/dash_antd_components/async-input.js +0 -1
- package/dash_antd_components/async-layout.js +0 -1
- package/dash_antd_components/async-locale.js +0 -1
- package/dash_antd_components/async-lunar-calendar.js +0 -1
- package/dash_antd_components/async-mentions.js +0 -1
- package/dash_antd_components/async-menu.js +0 -1
- package/dash_antd_components/async-outlined-icon.js +0 -1
- package/dash_antd_components/async-overlay.js +0 -1
- package/dash_antd_components/async-pagination.js +0 -1
- package/dash_antd_components/async-prism.js +0 -1
- package/dash_antd_components/async-s2.js +0 -1
- package/dash_antd_components/async-steps.js +0 -1
- package/dash_antd_components/async-tabs.js +0 -1
- package/dash_antd_components/async-transfer.js +0 -1
- package/dash_antd_components/async-twotone-icon.js +0 -1
- package/dash_antd_components/async-upload.js +0 -1
- package/dash_antd_components/proptypes.js +0 -5051
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-dnd"],{"./src/components/fragments/DndKit.tsx"(t,e,n){n.d(e,{DragDropProvider:()=>gu,DragOverlay:()=>xu,Draggable:()=>yu,Droppable:()=>bu,Sortable:()=>wu});var r=n("react/jsx-runtime"),i=n("react"),s=n.n(i),o=Symbol.for("preact-signals");function a(){if(p>1)p--;else{var t,e=!1;for(function(){var t=m;for(m=void 0;void 0!==t;){var e=t.S;if(e.v===t.v)for(var n=e.t;void 0!==n;n=n.x)n.i===t.i&&(n.i=e.i);t=t.o}}();void 0!==h;){var n=h;for(h=void 0,f++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&O(n))try{n.c()}catch(n){e||(t=n,e=!0)}n=r}}if(f=0,p--,e)throw t}}function l(t){if(p>0)return t();v=++g,p++;try{return t()}finally{a()}}var c,u=void 0;function d(t){var e=u,n=c;u=void 0,c=void 0;try{return t()}finally{u=e,c=n}}var h=void 0,p=0,f=0,g=0,v=0,m=void 0,y=0;function b(t){if(void 0!==u){var e=t.n;if(void 0===e||e.t!==u)return e={i:0,S:t,p:u.s,n:void 0,t:u,e:void 0,x:void 0,r:e},void 0!==u.s&&(u.s.n=e),u.s=e,t.n=e,32&u.f&&t.S(e),e;if(-1===e.i)return e.i=0,void 0!==e.n&&(e.n.p=e.p,void 0!==e.p&&(e.p.n=e.n),e.p=u.s,e.n=void 0,u.s.n=e,u.s=e),e}}function w(t,e){this.v=t,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==e?void 0:e.watched,this.Z=null==e?void 0:e.unwatched,this.name=null==e?void 0:e.name}function x(t,e){return new w(t,e)}function O(t){for(var e=t.s;void 0!==e;e=e.n)if(e.S.i!==e.i||!e.S.h()||e.S.i!==e.i)return!0;return!1}function k(t){for(var e=t.s;void 0!==e;e=e.n){var n=e.S.n;if(void 0!==n&&(e.r=n),e.S.n=e,e.i=-1,void 0===e.n){t.s=e;break}}}function S(t){for(var e=t.s,n=void 0;void 0!==e;){var r=e.p;-1===e.i?(e.S.U(e),void 0!==r&&(r.n=e.n),void 0!==e.n&&(e.n.p=r)):n=e,e.S.n=e.r,void 0!==e.r&&(e.r=void 0),e=r}t.s=n}function E(t,e){w.call(this,void 0,e),this.x=t,this.s=void 0,this.g=y-1,this.f=4}function D(t,e){return new E(t,e)}function M(t){var e=t.m;if(t.m=void 0,"function"==typeof e){p++;var n=u;u=void 0;try{e()}catch(e){throw t.f&=-2,t.f|=8,P(t),e}finally{u=n,a()}}}function P(t){for(var e=t.s;void 0!==e;e=e.n)e.S.U(e);t.x=void 0,t.s=void 0,M(t)}function C(t){if(u!==this)throw new Error("Out-of-order effect");S(this),u=t,this.f&=-2,8&this.f&&P(this),a()}function A(t,e){this.x=t,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==e?void 0:e.name,c&&c.push(this)}function W(t,e){var n=new A(t,e);try{n.c()}catch(t){throw n.d(),t}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}w.prototype.brand=o,w.prototype.h=function(){return!0},w.prototype.S=function(t){var e=this,n=this.t;n!==t&&void 0===t.e&&(t.x=n,this.t=t,void 0!==n?n.e=t:d(function(){var t;null==(t=e.W)||t.call(e)}))},w.prototype.U=function(t){var e=this;if(void 0!==this.t){var n=t.e,r=t.x;void 0!==n&&(n.x=r,t.e=void 0),void 0!==r&&(r.e=n,t.x=void 0),t===this.t&&(this.t=r,void 0===r&&d(function(){var t;null==(t=e.Z)||t.call(e)}))}},w.prototype.subscribe=function(t){var e=this;return W(function(){var n=e.value;d(function(){return t(n)})},{name:"sub"})},w.prototype.valueOf=function(){return this.value},w.prototype.toString=function(){return this.value+""},w.prototype.toJSON=function(){return this.value},w.prototype.peek=function(){var t=this;return d(function(){return t.value})},Object.defineProperty(w.prototype,"value",{get:function(){var t=b(this);return void 0!==t&&(t.i=this.i),this.v},set:function(t){if(t!==this.v){if(f>100)throw new Error("Cycle detected");!function(t){0!==p&&0===f&&t.l!==v&&(t.l=v,m={S:t,v:t.v,i:t.i,o:m})}(this),this.v=t,this.i++,y++,p++;try{for(var e=this.t;void 0!==e;e=e.x)e.t.N()}finally{a()}}}}),(E.prototype=new w).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===y)return!0;if(this.g=y,this.f|=1,this.i>0&&!O(this))return this.f&=-2,!0;var t=u;try{k(this),u=this;var e=this.x();(16&this.f||this.v!==e||0===this.i)&&(this.v=e,this.f&=-17,this.i++)}catch(t){this.v=t,this.f|=16,this.i++}return u=t,S(this),this.f&=-2,!0},E.prototype.S=function(t){if(void 0===this.t){this.f|=36;for(var e=this.s;void 0!==e;e=e.n)e.S.S(e)}w.prototype.S.call(this,t)},E.prototype.U=function(t){if(void 0!==this.t&&(w.prototype.U.call(this,t),void 0===this.t)){this.f&=-33;for(var e=this.s;void 0!==e;e=e.n)e.S.U(e)}},E.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var t=this.t;void 0!==t;t=t.x)t.t.N()}},Object.defineProperty(E.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var t=b(this);if(this.h(),void 0!==t&&(t.i=this.i),16&this.f)throw this.v;return this.v}}),A.prototype.c=function(){var t=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var e=this.x();"function"==typeof e&&(this.m=e)}finally{t()}},A.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,M(this),k(this),p++;var t=u;return u=this,C.bind(this,t)},A.prototype.N=function(){2&this.f||(this.f|=2,this.u=h,h=this)},A.prototype.d=function(){this.f|=8,1&this.f||P(this)},A.prototype.dispose=function(){this.d()};var I,j,R,T,$,N,_,z,L,F,X,Y,H,V,q,B,U,K,G,J,Z=Object.create,Q=Object.defineProperty,tt=Object.defineProperties,et=Object.getOwnPropertyDescriptor,nt=Object.getOwnPropertyDescriptors,rt=Object.getOwnPropertySymbols,it=Object.prototype.hasOwnProperty,st=Object.prototype.propertyIsEnumerable,ot=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),at=t=>{throw TypeError(t)},lt=(t,e,n)=>e in t?Q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,ct=(t,e)=>Q(t,"name",{value:e,configurable:!0}),ut=["class","method","getter","setter","accessor","field","value","get","set"],dt=t=>void 0!==t&&"function"!=typeof t?at("Function expected"):t,ht=(t,e,n,r,i)=>({kind:ut[t],name:e,metadata:r,addInitializer:t=>n._?at("Already initialized"):i.push(dt(t||null))}),pt=(t,e)=>lt(e,ot("metadata"),t[3]),ft=(t,e,n,r)=>{for(var i=0,s=t[e>>1],o=s&&s.length;i<o;i++)1&e?s[i].call(n):r=s[i].call(n,r);return r},gt=(t,e,n,r,i,s)=>{var o,a,l,c,u,d=7&e,h=!!(8&e),p=!!(16&e),f=d>3?t.length+1:d?h?1:2:0,g=ut[d+5],v=d>3&&(t[f-1]=[]),m=t[f]||(t[f]=[]),y=d&&(!p&&!h&&(i=i.prototype),d<5&&(d>3||!p)&&et(d<4?i:{get[n](){return yt(this,s)},set[n](t){return wt(this,s,t)}},n));d?p&&d<4&&ct(s,(d>2?"set ":d>1?"get ":"")+n):ct(i,n);for(var b=r.length-1;b>=0;b--)c=ht(d,n,l={},t[3],m),d&&(c.static=h,c.private=p,u=c.access={has:p?t=>mt(i,t):t=>n in t},3^d&&(u.get=p?t=>(1^d?yt:xt)(t,i,4^d?s:y.get):t=>t[n]),d>2&&(u.set=p?(t,e)=>wt(t,i,e,4^d?s:y.set):(t,e)=>t[n]=e)),a=(0,r[b])(d?d<4?p?s:y[g]:d>4?void 0:{get:y.get,set:y.set}:i,c),l._=1,4^d||void 0===a?dt(a)&&(d>4?v.unshift(a):d?p?s=a:y[g]=a:i=a):"object"!=typeof a||null===a?at("Object expected"):(dt(o=a.get)&&(y.get=o),dt(o=a.set)&&(y.set=o),dt(o=a.init)&&v.unshift(o));return d||pt(t,i),y&&Q(i,n,y),p?4^d?s:y:i},vt=(t,e,n)=>e.has(t)||at("Cannot "+n),mt=(t,e)=>Object(e)!==e?at('Cannot use the "in" operator on this value'):t.has(e),yt=(t,e,n)=>(vt(t,e,"read from private field"),n?n.call(t):e.get(t)),bt=(t,e,n)=>e.has(t)?at("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),wt=(t,e,n,r)=>(vt(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),xt=(t,e,n)=>(vt(t,e,"access private method"),n);function Ot(t,e){if(e){let n;return D(()=>{const r=t();return r&&n&&e(n,r)?n:(n=r,r)})}return D(t)}function kt(t,e){if(Object.is(t,e))return!0;if(null===t||null===e)return!1;if("function"==typeof t&&"function"==typeof e)return t===e;if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(const n of t)if(!e.has(n))return!1;return!0}if(Array.isArray(t))return!(!Array.isArray(e)||t.length!==e.length)&&!t.some((t,n)=>!kt(t,e[n]));if("object"==typeof t&&"object"==typeof e){const n=Object.keys(t),r=Object.keys(e);return n.length===r.length&&!n.some(n=>!kt(t[n],e[n]))}return!1}function St({get:t},e){return{init:t=>x(t),get(){return t.call(this).value},set(e){const n=t.call(this);n.peek()!==e&&(n.value=e)}}}function Et(t,e){const n=new WeakMap;return function(){let e=n.get(this);return e||(e=Ot(t.bind(this)),n.set(this,e)),e.value}}function Dt(t=!0){return function(e,n){n.addInitializer(function(){const e="field"===n.kind||n.static?this:Object.getPrototypeOf(this),r=Object.getOwnPropertyDescriptor(e,n.name);r&&Object.defineProperty(e,n.name,((t,e)=>tt(t,nt(e)))(((t,e)=>{for(var n in e||(e={}))it.call(e,n)&<(t,n,e[n]);if(rt)for(var n of rt(e))st.call(e,n)&<(t,n,e[n]);return t})({},r),{enumerable:t}))})}}function Mt(...t){const e=t.map(t=>W(t));return()=>e.forEach(t=>t())}N=[St],$=[St],T=[St],R=[Dt()],j=[Dt()],I=[Dt()];var Pt,Ct=class{constructor(t,e=Object.is){this.defaultValue=t,this.equals=e,ft(_,5,this),bt(this,Y),bt(this,z,ft(_,8,this)),ft(_,11,this),bt(this,H,ft(_,12,this)),ft(_,15,this),bt(this,U,ft(_,16,this)),ft(_,19,this),this.reset=this.reset.bind(this),this.reset()}get current(){return yt(this,Y,G)}get initial(){return yt(this,Y,F)}get previous(){return yt(this,Y,q)}set current(t){const e=d(()=>yt(this,Y,G));t&&e&&this.equals(e,t)||l(()=>{yt(this,Y,F)||wt(this,Y,t,X),wt(this,Y,e,B),wt(this,Y,t,J)})}reset(t=this.defaultValue){l(()=>{wt(this,Y,void 0,B),wt(this,Y,t,X),wt(this,Y,t,J)})}};function At(t){return d(()=>{const e={};for(const n in t)e[n]=t[n];return e})}_=[,,,Z(null)],z=new WeakMap,Y=new WeakSet,H=new WeakMap,U=new WeakMap,L=gt(_,20,"#initial",N,Y,z),F=L.get,X=L.set,V=gt(_,20,"#previous",$,Y,H),q=V.get,B=V.set,K=gt(_,20,"#current",T,Y,U),G=K.get,J=K.set,gt(_,2,"current",R,Ct),gt(_,2,"initial",j,Ct),gt(_,2,"previous",I,Ct),pt(_,Ct),Pt=new WeakMap;var Wt,It,jt,Rt,Tt,$t=Object.create,Nt=Object.defineProperty,_t=Object.getOwnPropertyDescriptor,zt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,Ft=Object.prototype.propertyIsEnumerable,Xt=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Yt=t=>{throw TypeError(t)},Ht=Math.pow,Vt=(t,e,n)=>e in t?Nt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,qt=(t,e)=>Nt(t,"name",{value:e,configurable:!0}),Bt=["class","method","getter","setter","accessor","field","value","get","set"],Ut=t=>void 0!==t&&"function"!=typeof t?Yt("Function expected"):t,Kt=(t,e,n,r,i)=>({kind:Bt[t],name:e,metadata:r,addInitializer:t=>n._?Yt("Already initialized"):i.push(Ut(t||null))}),Gt=(t,e)=>Vt(e,Xt("metadata"),t[3]),Jt=(t,e,n,r,i,s)=>{var o,a,l,c,u,d=7&e,h=!!(8&e),p=!!(16&e),f=d>3?t.length+1:d?h?1:2:0,g=Bt[d+5],v=d>3&&(t[f-1]=[]),m=t[f]||(t[f]=[]),y=d&&(!p&&!h&&(i=i.prototype),d<5&&(d>3||!p)&&_t(d<4?i:{get[n](){return te(this,s)},set[n](t){return ee(this,s,t)}},n));d?p&&d<4&&qt(s,(d>2?"set ":d>1?"get ":"")+n):qt(i,n);for(var b=r.length-1;b>=0;b--)c=Kt(d,n,l={},t[3],m),d&&(c.static=h,c.private=p,u=c.access={has:p?t=>Qt(i,t):t=>n in t},3^d&&(u.get=p?t=>(1^d?te:ne)(t,i,4^d?s:y.get):t=>t[n]),d>2&&(u.set=p?(t,e)=>ee(t,i,e,4^d?s:y.set):(t,e)=>t[n]=e)),a=(0,r[b])(d?d<4?p?s:y[g]:d>4?void 0:{get:y.get,set:y.set}:i,c),l._=1,4^d||void 0===a?Ut(a)&&(d>4?v.unshift(a):d?p?s=a:y[g]=a:i=a):"object"!=typeof a||null===a?Yt("Object expected"):(Ut(o=a.get)&&(y.get=o),Ut(o=a.set)&&(y.set=o),Ut(o=a.init)&&v.unshift(o));return d||Gt(t,i),y&&Nt(i,n,y),p?4^d?s:y:i},Zt=(t,e,n)=>e.has(t)||Yt("Cannot "+n),Qt=(t,e)=>Object(e)!==e?Yt('Cannot use the "in" operator on this value'):t.has(e),te=(t,e,n)=>(Zt(t,e,"read from private field"),n?n.call(t):e.get(t)),ee=(t,e,n,r)=>(Zt(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),ne=(t,e,n)=>(Zt(t,e,"access private method"),n),re=class t{constructor(t,e){this.x=t,this.y=e}static delta(e,n){return new t(e.x-n.x,e.y-n.y)}static distance(t,e){return Math.hypot(t.x-e.x,t.y-e.y)}static equals(t,e){return t.x===e.x&&t.y===e.y}static from({x:e,y:n}){return new t(e,n)}},ie=class t{constructor(t,e,n,r){this.left=t,this.top=e,this.width=n,this.height=r,this.scale={x:1,y:1}}get inverseScale(){return{x:1/this.scale.x,y:1/this.scale.y}}translate(e,n){const{top:r,left:i,width:s,height:o,scale:a}=this,l=new t(i+e,r+n,s,o);return l.scale=((t,e)=>{for(var n in e||(e={}))Lt.call(e,n)&&Vt(t,n,e[n]);if(zt)for(var n of zt(e))Ft.call(e,n)&&Vt(t,n,e[n]);return t})({},a),l}get boundingRectangle(){const{width:t,height:e,left:n,top:r,right:i,bottom:s}=this;return{width:t,height:e,left:n,top:r,right:i,bottom:s}}get center(){const{left:t,top:e,right:n,bottom:r}=this;return new re((t+n)/2,(e+r)/2)}get area(){const{width:t,height:e}=this;return t*e}equals(e){if(!(e instanceof t))return!1;const{left:n,top:r,width:i,height:s}=this;return n===e.left&&r===e.top&&i===e.width&&s===e.height}containsPoint(t){const{top:e,left:n,bottom:r,right:i}=this;return e<=t.y&&t.y<=r&&n<=t.x&&t.x<=i}intersectionArea(e){return e instanceof t?function(t,e){const n=Math.max(e.top,t.top),r=Math.max(e.left,t.left),i=Math.min(e.left+e.width,t.left+t.width),s=Math.min(e.top+e.height,t.top+t.height);return r<i&&n<s?(i-r)*(s-n):0}(this,e):0}intersectionRatio(t){const{area:e}=this,n=this.intersectionArea(t);return n/(t.area+e-n)}get bottom(){const{top:t,height:e}=this;return t+e}get right(){const{left:t,width:e}=this;return t+e}get aspectRatio(){const{width:t,height:e}=this;return t/e}get corners(){return[{x:this.left,y:this.top},{x:this.right,y:this.top},{x:this.left,y:this.bottom},{x:this.right,y:this.bottom}]}static from({top:e,left:n,width:r,height:i}){return new t(n,e,r,i)}static delta(t,e,n={x:"center",y:"center"}){const r=(t,e)=>{const r=n[e],i="x"===e?t.left:t.top,s="x"===e?t.width:t.height;return"start"==r?i:"end"==r?i+s:i+s/2};return re.delta({x:r(t,"x"),y:r(t,"y")},{x:r(e,"x"),y:r(e,"y")})}static intersectionRatio(e,n){return t.from(e).intersectionRatio(t.from(n))}},se=class extends(jt=Ct,It=[Et],Wt=[Et],jt){constructor(t){var e;super(re.from(t),(t,e)=>re.equals(t,e)),((t,e,n)=>{for(var r=0,i=t[2],s=i&&i.length;r<s;r++)i[r].call(n)})(Tt,0,this),(e=Rt).has(this)?Yt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(this):e.set(this,0),this.velocity={x:0,y:0}}get delta(){return re.delta(this.current,this.initial)}get direction(){const{current:t,previous:e}=this;if(!e)return null;const n={x:t.x-e.x,y:t.y-e.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(t){const{current:e}=this,n=re.from(t),r={x:n.x-e.x,y:n.y-e.y},i=Date.now(),s=i-te(this,Rt),o=t=>Math.round(t/s*100);l(()=>{ee(this,Rt,i),this.velocity={x:o(r.x),y:o(r.y)},super.current=n})}reset(t=this.defaultValue){super.reset(re.from(t)),this.velocity={x:0,y:0}}};function oe({x:t,y:e},n){const r=Math.abs(t),i=Math.abs(e);return"number"==typeof n?Math.sqrt(Ht(r,2)+Ht(i,2))>n:"x"in n&&"y"in n?r>n.x&&i>n.y:"x"in n?r>n.x:"y"in n&&i>n.y}Tt=(t=>{var e;return[,,,$t(null!=(e=null==t?void 0:t[Xt("metadata")])?e:null)]})(jt),Rt=new WeakMap,Jt(Tt,2,"delta",It,se),Jt(Tt,2,"direction",Wt,se),Gt(Tt,se);var ae,le,ce,ue,de=(t=>(t.Horizontal="x",t.Vertical="y",t))(de||{}),he=Object.values(de),pe=Object.create,fe=Object.defineProperty,ge=Object.defineProperties,ve=Object.getOwnPropertyDescriptor,me=Object.getOwnPropertyDescriptors,ye=Object.getOwnPropertySymbols,be=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,xe=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Oe=t=>{throw TypeError(t)},ke=(t,e,n)=>e in t?fe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Se=(t,e)=>{for(var n in e||(e={}))be.call(e,n)&&ke(t,n,e[n]);if(ye)for(var n of ye(e))we.call(e,n)&&ke(t,n,e[n]);return t},Ee=(t,e)=>ge(t,me(e)),De=(t,e)=>fe(t,"name",{value:e,configurable:!0}),Me=(t,e)=>{var n={};for(var r in t)be.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&ye)for(var r of ye(t))e.indexOf(r)<0&&we.call(t,r)&&(n[r]=t[r]);return n},Pe=t=>{var e;return[,,,pe(null!=(e=null==t?void 0:t[xe("metadata")])?e:null)]},Ce=["class","method","getter","setter","accessor","field","value","get","set"],Ae=t=>void 0!==t&&"function"!=typeof t?Oe("Function expected"):t,We=(t,e,n,r,i)=>({kind:Ce[t],name:e,metadata:r,addInitializer:t=>n._?Oe("Already initialized"):i.push(Ae(t||null))}),Ie=(t,e)=>ke(e,xe("metadata"),t[3]),je=(t,e,n,r)=>{for(var i=0,s=t[e>>1],o=s&&s.length;i<o;i++)1&e?s[i].call(n):r=s[i].call(n,r);return r},Re=(t,e,n,r,i,s)=>{var o,a,l,c,u,d=7&e,h=!!(8&e),p=!!(16&e),f=d>3?t.length+1:d?h?1:2:0,g=Ce[d+5],v=d>3&&(t[f-1]=[]),m=t[f]||(t[f]=[]),y=d&&(!p&&!h&&(i=i.prototype),d<5&&(d>3||!p)&&ve(d<4?i:{get[n](){return Ne(this,s)},set[n](t){return ze(this,s,t)}},n));d?p&&d<4&&De(s,(d>2?"set ":d>1?"get ":"")+n):De(i,n);for(var b=r.length-1;b>=0;b--)c=We(d,n,l={},t[3],m),d&&(c.static=h,c.private=p,u=c.access={has:p?t=>$e(i,t):t=>n in t},3^d&&(u.get=p?t=>(1^d?Ne:Le)(t,i,4^d?s:y.get):t=>t[n]),d>2&&(u.set=p?(t,e)=>ze(t,i,e,4^d?s:y.set):(t,e)=>t[n]=e)),a=(0,r[b])(d?d<4?p?s:y[g]:d>4?void 0:{get:y.get,set:y.set}:i,c),l._=1,4^d||void 0===a?Ae(a)&&(d>4?v.unshift(a):d?p?s=a:y[g]=a:i=a):"object"!=typeof a||null===a?Oe("Object expected"):(Ae(o=a.get)&&(y.get=o),Ae(o=a.set)&&(y.set=o),Ae(o=a.init)&&v.unshift(o));return d||Ie(t,i),y&&fe(i,n,y),p?4^d?s:y:i},Te=(t,e,n)=>e.has(t)||Oe("Cannot "+n),$e=(t,e)=>Object(e)!==e?Oe('Cannot use the "in" operator on this value'):t.has(e),Ne=(t,e,n)=>(Te(t,e,"read from private field"),n?n.call(t):e.get(t)),_e=(t,e,n)=>e.has(t)?Oe("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ze=(t,e,n,r)=>(Te(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),Le=(t,e,n)=>(Te(t,e,"access private method"),n);function Fe(t,e){return{plugin:t,options:e}}function Xe(t){return e=>Fe(t,e)}function Ye(t){return"function"==typeof t?{plugin:t,options:void 0}:t}ae=[St];var He=class{constructor(t,e){this.manager=t,this.options=e,_e(this,ce,je(le,8,this,!1)),je(le,11,this),_e(this,ue,new Set)}enable(){this.disabled=!1}disable(){this.disabled=!0}isDisabled(){return d(()=>this.disabled)}configure(t){this.options=t}registerEffect(t){const e=W(t.bind(this));return Ne(this,ue).add(e),e}destroy(){Ne(this,ue).forEach(t=>t())}static configure(t){return Fe(this,t)}};le=Pe(null),ce=new WeakMap,ue=new WeakMap,Re(le,4,"disabled",ae,He,ce),Ie(le,He);var Ve,qe=class extends He{},Be=class{constructor(t){this.manager=t,this.instances=new Map,_e(this,Ve,[])}get values(){return Array.from(this.instances.values())}set values(t){const e=t.map(Ye).reduce((t,e)=>{const n=t.find(({plugin:t})=>t===e.plugin);return n?(n.options=e.options,t):[...t,e]},[]),n=e.map(({plugin:t})=>t);for(const t of Ne(this,Ve))if(!n.includes(t)){if(t.prototype instanceof qe)continue;this.unregister(t)}for(const{plugin:t,options:n}of e)this.register(t,n);ze(this,Ve,n)}get(t){return this.instances.get(t)}register(t,e){const n=this.instances.get(t);if(n)return n.options!==e&&(n.options=e),n;const r=new t(this.manager,e);return this.instances.set(t,r),r}unregister(t){const e=this.instances.get(t);e&&(e.destroy(),this.instances.delete(t))}destroy(){for(const t of this.instances.values())t.destroy();this.instances.clear()}};function Ue(t,e){return t.priority===e.priority?t.type===e.type?e.value-t.value:e.type-t.type:e.priority-t.priority}Ve=new WeakMap;var Ke,Ge,Je,Ze,Qe,tn,en,nn,rn,sn,on,an,ln=[],cn=class extends He{constructor(t){super(t),_e(this,Ke),_e(this,Ge),this.computeCollisions=this.computeCollisions.bind(this),ze(this,Ge,x(ln)),this.destroy=Mt(()=>{const t=this.computeCollisions(),e=d(()=>this.manager.dragOperation.position.current);if(t!==ln){const t=Ne(this,Ke);if(ze(this,Ke,e),t&&e.x==t.x&&e.y==t.y)return}else ze(this,Ke,void 0);Ne(this,Ge).value=t},()=>{const{dragOperation:t}=this.manager;t.status.initialized&&this.forceUpdate()})}forceUpdate(t=!0){d(()=>{t?Ne(this,Ge).value=this.computeCollisions():ze(this,Ke,void 0)})}computeCollisions(t,e){const{registry:n,dragOperation:r}=this.manager,{source:i,shape:s,status:o}=r;if(!o.initialized||!s)return ln;const a=[],l=[];for(const s of null!=t?t:n.droppables){if(s.disabled)continue;if(i&&!s.accepts(i))continue;const t=null!=e?e:s.collisionDetector;if(!t)continue;l.push(s);const n=d(()=>t({droppable:s,dragOperation:r}));n&&(null!=s.collisionPriority&&(n.priority=s.collisionPriority),a.push(n))}return 0===l.length?ln:(a.sort(Ue),a)}get collisions(){return Ne(this,Ge).value}};Ke=new WeakMap,Ge=new WeakMap,Qe=[St],Ze=[St],Je=[St];var un=class t{constructor(t,e){_e(this,rn,je(nn,8,this)),je(nn,11,this),_e(this,sn),_e(this,on,je(nn,12,this)),je(nn,15,this),_e(this,an,je(nn,16,this)),je(nn,19,this);const{effects:n,id:r,data:i={},disabled:s=!1,register:o=!0}=t;let a=r;ze(this,sn,x(r)),this.manager=e,this.data=i,this.disabled=s,this.effects=()=>{var t;return[()=>{const{id:t,manager:e}=this;if(t!==a)return a=t,null==e||e.registry.register(this),()=>null==e?void 0:e.registry.unregister(this)},...null!=(t=null==n?void 0:n())?t:[]]},this.register=this.register.bind(this),this.unregister=this.unregister.bind(this),this.destroy=this.destroy.bind(this),e&&o&&queueMicrotask(this.register)}get id(){var e,n;const r=Ne(this,sn).value;return null!=(n=null==(e=t.pendingIdChanges)?void 0:e.get(this))?n:r}set id(e){var n,r;e!==(null!=(r=null==(n=t.pendingIdChanges)?void 0:n.get(this))?r:Ne(this,sn).peek())&&(t.pendingIdChanges||(t.pendingIdChanges=new Map,queueMicrotask(()=>{var e;return Le(e=t,tn,en).call(e)})),t.pendingIdChanges.set(this,e))}register(){var t;return null==(t=this.manager)?void 0:t.registry.register(this)}unregister(){var t;null==(t=this.manager)||t.registry.unregister(this)}destroy(){var t;null==(t=this.manager)||t.registry.unregister(this)}};nn=Pe(null),tn=new WeakSet,en=function(){const t=un.pendingIdChanges;un.pendingIdChanges=null,t&&l(()=>{for(const[e,n]of t)Ne(e,sn).value=n})},rn=new WeakMap,sn=new WeakMap,on=new WeakMap,an=new WeakMap,Re(nn,4,"manager",Qe,un,rn),Re(nn,4,"data",Ze,un,on),Re(nn,4,"disabled",Je,un,an),_e(un,tn),Ie(nn,un),un.pendingIdChanges=null;var dn,hn,pn,fn,gn,vn,mn,yn,bn,wn,xn,On,kn,Sn,En,Dn,Mn,Pn,Cn,An,Wn,In,jn,Rn,Tn=un,$n=class{constructor(){this.map=x(new Map),this.cleanupFunctions=new WeakMap,this.register=(t,e)=>{const n=this.map.peek(),r=n.get(t),i=()=>this.unregister(t,e);if(r===e)return i;if(r&&r.id===t){const t=this.cleanupFunctions.get(r);null==t||t(),this.cleanupFunctions.delete(r)}const s=new Map(n);for(const[r,i]of n)if(i===e&&r!==t){s.delete(r);break}s.set(t,e),this.map.value=s;const o=Mt(...e.effects());return this.cleanupFunctions.set(e,o),i},this.unregister=(t,e)=>{const n=this.map.peek();if(n.get(t)!==e)return;const r=this.cleanupFunctions.get(e);null==r||r(),this.cleanupFunctions.delete(e);const i=new Map(n);i.delete(t),this.map.value=i}}[Symbol.iterator](){return this.map.peek().values()}get value(){return this.map.value.values()}has(t){return this.map.value.has(t)}get(t){return this.map.value.get(t)}destroy(){for(const t of this){const e=this.cleanupFunctions.get(t);null==e||e(),t.destroy()}this.map.value=new Map}},Nn=class extends(mn=Tn,vn=[St],gn=[St],fn=[St],pn=[Et],hn=[Et],dn=[Et],mn){constructor(t,e){var n=t,{modifiers:r,type:i,sensors:s,plugins:o,effects:a}=n,l=Me(n,["modifiers","type","sensors","plugins","effects"]);super(Ee(Se({},l),{effects:()=>{var t;return[...null!=(t=null==a?void 0:a())?t:[],()=>{const{manager:t,plugins:e}=this;if(t&&e)for(const n of e){const{plugin:e}=Ye(n);t.registry.plugins.register(e)}}]}}),e),je(yn,5,this),_e(this,bn,je(yn,8,this)),je(yn,11,this),_e(this,wn,je(yn,12,this)),je(yn,15,this),_e(this,xn,je(yn,16,this,this.isDragSource?"dragging":"idle")),je(yn,19,this),this.type=i,this.sensors=s,this.modifiers=r,this.alignment=l.alignment,this.plugins=o}pluginConfig(t){if(this.plugins)for(const e of this.plugins){const n=Ye(e);if(n.plugin===t)return n.options}}get isDropping(){return"dropping"===this.status&&this.isDragSource}get isDragging(){return"dragging"===this.status&&this.isDragSource}get isDragSource(){var t,e;return(null==(e=null==(t=this.manager)?void 0:t.dragOperation.source)?void 0:e.id)===this.id}};yn=Pe(mn),bn=new WeakMap,wn=new WeakMap,xn=new WeakMap,Re(yn,4,"type",vn,Nn,bn),Re(yn,4,"modifiers",gn,Nn,wn),Re(yn,4,"status",fn,Nn,xn),Re(yn,2,"isDropping",pn,Nn),Re(yn,2,"isDragging",hn,Nn),Re(yn,2,"isDragSource",dn,Nn),Ie(yn,Nn);var _n=class extends(Pn=Tn,Mn=[St],Dn=[St],En=[St],Sn=[St],kn=[St],On=[Et],Pn){constructor(t,e){var n=t,{accept:r,collisionDetector:i,collisionPriority:s,type:o}=n;super(Me(n,["accept","collisionDetector","collisionPriority","type"]),e),je(Cn,5,this),_e(this,An,je(Cn,8,this)),je(Cn,11,this),_e(this,Wn,je(Cn,12,this)),je(Cn,15,this),_e(this,In,je(Cn,16,this)),je(Cn,19,this),_e(this,jn,je(Cn,20,this)),je(Cn,23,this),_e(this,Rn,je(Cn,24,this)),je(Cn,27,this),this.accept=r,this.collisionDetector=i,this.collisionPriority=s,this.type=o}accepts(t){const{accept:e}=this;return!e||("function"==typeof e?e(t):!!t.type&&(Array.isArray(e)?e.includes(t.type):t.type===e))}get isDropTarget(){var t,e;return(null==(e=null==(t=this.manager)?void 0:t.dragOperation.target)?void 0:e.id)===this.id}};Cn=Pe(Pn),An=new WeakMap,Wn=new WeakMap,In=new WeakMap,jn=new WeakMap,Rn=new WeakMap,Re(Cn,4,"accept",Mn,_n,An),Re(Cn,4,"type",Dn,_n,Wn),Re(Cn,4,"collisionDetector",En,_n,In),Re(Cn,4,"collisionPriority",Sn,_n,jn),Re(Cn,4,"shape",kn,_n,Rn),Re(Cn,2,"isDropTarget",On,_n),Ie(Cn,_n);var zn=class{constructor(){this.registry=new Map}addEventListener(t,e){const{registry:n}=this,r=new Set(n.get(t));return r.add(e),n.set(t,r),()=>this.removeEventListener(t,e)}removeEventListener(t,e){const{registry:n}=this,r=new Set(n.get(t));r.delete(e),n.set(t,r)}dispatch(t,...e){const{registry:n}=this,r=n.get(t);if(r)for(const t of r)t(...e)}},Ln=class extends zn{constructor(t){super(),this.manager=t}dispatch(t,e){super.dispatch(t,e,this.manager)}};function Fn(t,e=!0){let n=!1;return Ee(Se({},t),{cancelable:e,get defaultPrevented(){return n},preventDefault(){e&&(n=!0)}})}var Xn,Yn,Hn,Vn,qn,Bn,Un,Kn,Gn,Jn=class extends qe{constructor(t){super(t);let e=[];this.destroy=Mt(()=>{const{dragOperation:n,collisionObserver:r}=t;n.status.initializing&&(e=[],r.enable())},()=>{const{collisionObserver:n,monitor:r}=t,{collisions:i}=n;if(n.isDisabled())return;if(Tn.pendingIdChanges)return;const s=Fn({collisions:i});if(r.dispatch("collision",s),s.defaultPrevented)return;if(((t,e)=>t.map(({id:t})=>t).join("")===e.map(({id:t})=>t).join(""))(i,e))return;e=i;const[o]=i;d(()=>{var e;(null==o?void 0:o.id)!==(null==(e=t.dragOperation.target)?void 0:e.id)&&(n.disable(),t.actions.setDropTarget(null==o?void 0:o.id).then(()=>{n.enable()}))})})}},Zn=(t=>(t[t.Lowest=0]="Lowest",t[t.Low=1]="Low",t[t.Normal=2]="Normal",t[t.High=3]="High",t[t.Highest=4]="Highest",t))(Zn||{}),Qn=(t=>(t[t.Collision=0]="Collision",t[t.ShapeIntersection=1]="ShapeIntersection",t[t.PointerIntersection=2]="PointerIntersection",t))(Qn||{});Un=[St],Bn=[Et],qn=[Et],Vn=[Et],Hn=[Et],Yn=[Et],Xn=[Et];var tr=class{constructor(){je(Kn,5,this),_e(this,Gn,je(Kn,8,this,"idle")),je(Kn,11,this)}get current(){return this.value}get idle(){return"idle"===this.value}get initializing(){return"initializing"===this.value}get initialized(){const{value:t}=this;return"idle"!==t&&"initialization-pending"!==t}get dragging(){return"dragging"===this.value}get dropped(){return"dropped"===this.value}set(t){this.value=t}};Kn=Pe(null),Gn=new WeakMap,Re(Kn,4,"value",Un,tr,Gn),Re(Kn,2,"current",Bn,tr),Re(Kn,2,"idle",qn,tr),Re(Kn,2,"initializing",Vn,tr),Re(Kn,2,"initialized",Hn,tr),Re(Kn,2,"dragging",Yn,tr),Re(Kn,2,"dropped",Xn,tr),Ie(Kn,tr);var er,nr=class{constructor(t){this.manager=t}setDragSource(t){const{dragOperation:e}=this.manager;e.sourceIdentifier="string"==typeof t||"number"==typeof t?t:t.id}setDropTarget(t){return d(()=>{const{dragOperation:e}=this.manager,n=null!=t?t:null;if(e.targetIdentifier===n)return Promise.resolve(!1);e.targetIdentifier=n;const r=Fn({operation:e.snapshot()});return e.status.dragging&&this.manager.monitor.dispatch("dragover",r),this.manager.renderer.rendering.then(()=>r.defaultPrevented)})}start(t){return d(()=>{const{dragOperation:e}=this.manager;if(null!=t.source&&this.setDragSource(t.source),!e.source)throw new Error("Cannot start a drag operation without a drag source");if(!e.status.idle)throw new Error("Cannot start a drag operation while another is active");const n=new AbortController,{event:r,coordinates:i}=t;l(()=>{e.status.set("initialization-pending"),e.shape=null,e.canceled=!1,e.activatorEvent=null!=r?r:null,e.position.reset(i)});const s=Fn({operation:e.snapshot()});return this.manager.monitor.dispatch("beforedragstart",s),s.defaultPrevented?(e.reset(),n.abort(),n):(e.status.set("initializing"),e.controller=n,this.manager.renderer.rendering.then(()=>{if(n.signal.aborted)return;const{status:t}=e;"initializing"===t.current&&l(()=>{e.status.set("dragging"),this.manager.monitor.dispatch("dragstart",{nativeEvent:r,operation:e.snapshot(),cancelable:!1})})}),n)})}move(t){return d(()=>{var e,n;const{dragOperation:r}=this.manager,{status:i,controller:s}=r;if(!i.dragging||!s||s.signal.aborted)return;const o=Fn({nativeEvent:t.event,operation:r.snapshot(),by:t.by,to:t.to},null==(e=t.cancelable)||e);(null==(n=t.propagate)||n)&&this.manager.monitor.dispatch("dragmove",o),queueMicrotask(()=>{var e,n,i,s,a;if(o.defaultPrevented)return;const l=null!=(a=t.to)?a:{x:r.position.current.x+(null!=(n=null==(e=t.by)?void 0:e.x)?n:0),y:r.position.current.y+(null!=(s=null==(i=t.by)?void 0:i.y)?s:0)};r.position.current=l})})}stop(t={}){return d(()=>{var e,n;const{dragOperation:r}=this.manager,{controller:i}=r;if(!i||i.signal.aborted)return;let s;i.abort();const o=()=>{this.manager.renderer.rendering.then(()=>{r.status.set("dropped");const t=d(()=>{var t;return"dropping"===(null==(t=r.source)?void 0:t.status)}),e=()=>{r.controller===i&&(r.controller=void 0),r.reset()};if(t){const{source:t}=r,n=W(()=>{"idle"===(null==t?void 0:t.status)&&(n(),e())})}else this.manager.renderer.rendering.then(e)})};r.canceled=null!=(e=t.canceled)&&e,this.manager.monitor.dispatch("dragend",{nativeEvent:t.event,operation:r.snapshot(),canceled:null!=(n=t.canceled)&&n,suspend:()=>{const t={resume:()=>{},abort:()=>{}};return s=new Promise((e,n)=>{t.resume=e,t.abort=n}),t}}),s?s.then(o).catch(()=>r.reset()):o()})}},rr=class extends He{constructor(t,e){super(t,e),this.manager=t,this.options=e}},ir=class extends AbortController{constructor(t,e){super(),this.constraints=t,this.onActivate=e,this.activated=!1;for(const e of null!=t?t:[])e.controller=this}onEvent(t){var e;if(!this.activated)if(null==(e=this.constraints)?void 0:e.length)for(const e of this.constraints)e.onEvent(t);else this.activate(t)}activate(t){this.activated||(this.activated=!0,this.onActivate(t))}abort(t){this.activated=!1,super.abort(t)}},sr=class{constructor(t){this.options=t,_e(this,er)}set controller(t){ze(this,er,t),t.signal.addEventListener("abort",()=>this.abort())}activate(t){var e;null==(e=Ne(this,er))||e.activate(t)}};er=new WeakMap;var or,ar,lr,cr,ur,dr,hr,pr,fr,gr,vr,mr,yr,br,wr,xr,Or,kr,Sr,Er=class extends He{constructor(t,e){super(t,e),this.manager=t,this.options=e}apply(t){return t.transform}},Dr=class{constructor(t){this.draggables=new $n,this.droppables=new $n,this.plugins=new Be(t),this.sensors=new Be(t),this.modifiers=new Be(t)}register(t,e){if(t instanceof Nn)return this.draggables.register(t.id,t);if(t instanceof _n)return this.droppables.register(t.id,t);if(t.prototype instanceof Er)return this.modifiers.register(t,e);if(t.prototype instanceof rr)return this.sensors.register(t,e);if(t.prototype instanceof He)return this.plugins.register(t,e);throw new Error("Invalid instance type")}unregister(t){if(t instanceof Tn)return t instanceof Nn?this.draggables.unregister(t.id,t):t instanceof _n?this.droppables.unregister(t.id,t):()=>{};if(t.prototype instanceof Er)return this.modifiers.unregister(t);if(t.prototype instanceof rr)return this.sensors.unregister(t);if(t.prototype instanceof He)return this.plugins.unregister(t);throw new Error("Invalid instance type")}destroy(){this.draggables.destroy(),this.droppables.destroy(),this.plugins.destroy(),this.sensors.destroy(),this.modifiers.destroy()}};fr=[Et],pr=[St],hr=[St],dr=[St],ur=[St],cr=[St],lr=[Et],ar=[Et],or=[Et];var Mr=class{constructor(t){je(yr,5,this),_e(this,gr),_e(this,vr),_e(this,mr,new Ct(void 0,(t,e)=>t&&e?t.equals(e):t===e)),this.status=new tr,_e(this,br,je(yr,8,this,!1)),je(yr,11,this),_e(this,wr,je(yr,12,this,null)),je(yr,15,this),_e(this,xr,je(yr,16,this,null)),je(yr,19,this),_e(this,Or,je(yr,20,this,null)),je(yr,23,this),_e(this,kr,je(yr,24,this,[])),je(yr,27,this),this.position=new se({x:0,y:0}),_e(this,Sr,{x:0,y:0}),ze(this,gr,t)}get shape(){const{current:t,initial:e,previous:n}=Ne(this,mr);return t&&e?{current:t,initial:e,previous:n}:null}set shape(t){t?Ne(this,mr).current=t:Ne(this,mr).reset()}get source(){var t;const e=this.sourceIdentifier;if(null==e)return null;const n=Ne(this,gr).registry.draggables.get(e);return n&&ze(this,vr,n),null!=(t=null!=n?n:Ne(this,vr))?t:null}get target(){var t;const e=this.targetIdentifier;return null!=e&&null!=(t=Ne(this,gr).registry.droppables.get(e))?t:null}get transform(){const{x:t,y:e}=this.position.delta;let n={x:t,y:e};for(const t of this.modifiers)n=t.apply(Ee(Se({},this.snapshot()),{transform:n}));return ze(this,Sr,n),n}snapshot(){return d(()=>({source:this.source,target:this.target,activatorEvent:this.activatorEvent,transform:Ne(this,Sr),shape:this.shape?At(this.shape):null,position:At(this.position),status:At(this.status),canceled:this.canceled}))}reset(){l(()=>{this.status.set("idle"),this.sourceIdentifier=null,this.targetIdentifier=null,Ne(this,mr).reset(),this.position.reset({x:0,y:0}),ze(this,Sr,{x:0,y:0}),this.modifiers=[]})}};yr=Pe(null),gr=new WeakMap,vr=new WeakMap,mr=new WeakMap,br=new WeakMap,wr=new WeakMap,xr=new WeakMap,Or=new WeakMap,kr=new WeakMap,Sr=new WeakMap,Re(yr,2,"shape",fr,Mr),Re(yr,4,"canceled",pr,Mr,br),Re(yr,4,"activatorEvent",hr,Mr,wr),Re(yr,4,"sourceIdentifier",dr,Mr,xr),Re(yr,4,"targetIdentifier",ur,Mr,Or),Re(yr,4,"modifiers",cr,Mr,kr),Re(yr,2,"source",lr,Mr),Re(yr,2,"target",ar,Mr),Re(yr,2,"transform",or,Mr),Ie(yr,Mr);var Pr={get rendering(){return Promise.resolve()}};function Cr(t,e){return"function"==typeof t?t(e):null!=t?t:e}var Ar=class{constructor(t){var e;this.destroy=()=>{this.dragOperation.status.idle||this.actions.stop({canceled:!0}),this.dragOperation.modifiers.forEach(t=>t.destroy()),this.registry.destroy(),this.collisionObserver.destroy()};const n=null!=t?t:{},r=Cr(n.plugins,[]),i=Cr(n.sensors,[]),s=Cr(n.modifiers,[]),o=null!=(e=n.renderer)?e:Pr,a=new Ln(this),l=new Dr(this);this.registry=l,this.monitor=a,this.renderer=o,this.actions=new nr(this),this.dragOperation=new Mr(this),this.collisionObserver=new cn(this),this.plugins=[Jn,...r],this.modifiers=s,this.sensors=i;const{destroy:c}=this,u=Mt(()=>{var t,e,n;const r=d(()=>this.dragOperation.modifiers),i=this.modifiers;for(const t of r)i.includes(t)||t.destroy();this.dragOperation.modifiers=null!=(n=null==(e=null==(t=this.dragOperation.source)?void 0:t.modifiers)?void 0:e.map(t=>{const{plugin:e,options:n}=Ye(t);return new e(this,n)}))?n:i});this.destroy=()=>{u(),c()}}get plugins(){return this.registry.plugins.values}set plugins(t){this.registry.plugins.values=t}get modifiers(){return this.registry.modifiers.values}set modifiers(t){this.registry.modifiers.values=t}get sensors(){return this.registry.sensors.values}set sensors(t){this.registry.sensors.values=t}},Wr=t=>{throw TypeError(t)},Ir=(t,e,n)=>e.has(t)||Wr("Cannot "+n),jr=(t,e,n)=>(Ir(t,e,"read from private field"),e.get(t)),Rr=(t,e,n)=>e.has(t)?Wr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Tr=(t,e,n,r)=>(Ir(t,e,"write to private field"),e.set(t,n),n),$r=(t,e,n)=>(Ir(t,e,"access private method"),n);function Nr(t){return!!t&&(t instanceof KeyframeEffect||"getKeyframes"in t&&"function"==typeof t.getKeyframes)}function _r(t,e){const n=t.getAnimations();let r=null;for(const t of n){if("running"!==t.playState)continue;const{effect:n}=t,i=(Nr(n)?n.getKeyframes():[]).filter(e);i.length>0&&(r=[i[i.length-1],t])}return r}function zr(t){const{width:e,height:n,top:r,left:i,bottom:s,right:o}=t.getBoundingClientRect();return{width:e,height:n,top:r,left:i,bottom:s,right:o}}function Lr(t){const e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object global]"===e}function Fr(t){return"nodeType"in t}function Xr(t){var e,n,r;return t?Lr(t)?t:Fr(t)?"defaultView"in t?null!=(e=t.defaultView)?e:window:null!=(r=null==(n=t.ownerDocument)?void 0:n.defaultView)?r:window:window:window}function Yr(t){const{Document:e}=Xr(t);return t instanceof e||"nodeType"in t&&t.nodeType===Node.DOCUMENT_NODE}function Hr(t){return!(!t||Lr(t))&&(t instanceof Xr(t).HTMLElement||"namespaceURI"in t&&"string"==typeof t.namespaceURI&&t.namespaceURI.endsWith("html"))}function Vr(t){return t instanceof Xr(t).SVGElement||"namespaceURI"in t&&"string"==typeof t.namespaceURI&&t.namespaceURI.endsWith("svg")}function qr(t){return t?Lr(t)?t.document:Fr(t)?Yr(t)?t:Hr(t)||Vr(t)?t.ownerDocument:document:document:document}function Br(t,e){if(function(t){return"DETAILS"===t.tagName}(t)&&!1===t.open)return!1;const{overflow:n,overflowX:r,overflowY:i}=getComputedStyle(t);return"visible"===n&&"visible"===r&&"visible"===i}function Ur(t,e=t.getBoundingClientRect(),n=0){var r,i,s,o,a;let l=e;const{ownerDocument:c}=t,u=null!=(r=c.defaultView)?r:window;let d=t.parentElement;for(;d&&d!==c.documentElement;){if(!Br(d)){const t=d.getBoundingClientRect(),e=n*(t.right-t.left),r=n*(t.bottom-t.top),i=n*(t.right-t.left);l={top:Math.max(l.top,t.top-n*(t.bottom-t.top)),right:Math.min(l.right,t.right+e),bottom:Math.min(l.bottom,t.bottom+r),left:Math.max(l.left,t.left-i),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top}d=d.parentElement}const h=u.visualViewport,p=null!=(i=null==h?void 0:h.offsetTop)?i:0,f=null!=(s=null==h?void 0:h.offsetLeft)?s:0,g=null!=(o=null==h?void 0:h.width)?o:u.innerWidth,v=null!=(a=null==h?void 0:h.height)?a:u.innerHeight,m=n*v,y=n*g;return l={top:Math.max(l.top,p-m),right:Math.min(l.right,f+g+y),bottom:Math.min(l.bottom,p+v+m),left:Math.max(l.left,f-y),width:0,height:0},l.width=l.right-l.left,l.height=l.bottom-l.top,l.width<0&&(l.width=0),l.height<0&&(l.height=0),l}function Kr(t){return{x:t.clientX,y:t.clientY}}var Gr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement;function Jr(t=document,e=new Set){if(e.has(t))return[];e.add(t);const n=[t];for(const r of Array.from(t.querySelectorAll("iframe, frame")))try{const t=r.contentDocument;t&&!e.has(t)&&n.push(...Jr(t,e))}catch(t){}try{const r=t.defaultView;if(r&&r!==window.top){const i=r.parent;i&&i.document&&i.document!==t&&n.push(...Jr(i.document,e))}}catch(t){}return n}function Zr(){return/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}function Qr(){var t,e;const n=Zr()?window.visualViewport:null;return{x:null!=(t=null==n?void 0:n.offsetLeft)?t:0,y:null!=(e=null==n?void 0:n.offsetTop)?e:0}}function ti(t){return!(!t||!Fr(t))&&t instanceof Xr(t).ShadowRoot}function ei(t){if(t&&Fr(t)){let e=t.getRootNode();if(ti(e))return e;if(e instanceof Document)return e}return qr(t)}function ni(t){return t.matchMedia("(prefers-reduced-motion: reduce)").matches}function ri(t){return"value"in t}function ii(t){return"CANVAS"===t.tagName}function si(t,{x:e,y:n}){const r=t.elementFromPoint(e,n);if(function(t){return"IFRAME"===(null==t?void 0:t.tagName)}(r)){const{contentDocument:t}=r;if(t){const{left:i,top:s}=r.getBoundingClientRect();return si(t,{x:e-i,y:n-s})}}return r}var oi=new WeakMap;var ai=class{constructor(){this.entries=new Set,this.clear=()=>{for(const t of this.entries){const[e,{type:n,listener:r,options:i}]=t;e.removeEventListener(n,r,i)}this.entries.clear()}}bind(t,e){const n=Array.isArray(t)?t:[t],r=Array.isArray(e)?e:[e],i=[];for(const t of n)for(const e of r){const{type:n,listener:r,options:s}=e,o=[t,e];t.addEventListener(n,r,s),this.entries.add(o),i.push(o)}const s=this.entries;return function(){for(const t of i){const[e,{type:n,listener:r,options:i}]=t;e.removeEventListener(n,r,i),s.delete(t)}}}};function li(t){const e=null==t?void 0:t.ownerDocument.defaultView;if(e&&e.self!==e.parent)return e.frameElement}function ci(t,e){const n=()=>performance.now();let r,i;return function(...s){const o=this;i?(null==r||r(),r=function(e,r){const a=setTimeout(()=>{t.apply(o,s),i=n()},r);return()=>clearTimeout(a)}(0,e-(n()-i))):(t.apply(o,s),i=n())}}var ui,di=Gr?ResizeObserver:class{observe(){}unobserve(){}disconnect(){}},hi=class extends di{constructor(t){super(e=>{jr(this,ui)?t(e,this):Tr(this,ui,!0)}),Rr(this,ui,!1)}};ui=new WeakMap;var pi,fi,gi,vi,mi,yi,bi,wi,xi,Oi,ki,Si=Array.from({length:100},(t,e)=>e/100),Ei=class{constructor(t,e,n={debug:!1,skipInitial:!1}){this.element=t,this.callback=e,Rr(this,xi),this.disconnect=()=>{var t,e,n;Tr(this,bi,!0),null==(t=jr(this,gi))||t.disconnect(),null==(e=jr(this,vi))||e.disconnect(),jr(this,mi).disconnect(),null==(n=jr(this,yi))||n.remove()},Rr(this,pi,!0),Rr(this,fi),Rr(this,gi),Rr(this,vi),Rr(this,mi),Rr(this,yi),Rr(this,bi,!1),Rr(this,wi,ci(()=>{var t,e,n;const{element:r}=this;if(null==(t=jr(this,vi))||t.disconnect(),jr(this,bi)||!jr(this,pi)||!r.isConnected)return;const i=null!=(e=r.ownerDocument)?e:document,{innerHeight:s,innerWidth:o}=null!=(n=i.defaultView)?n:window,a=r.getBoundingClientRect(),l=Ur(r,a),{top:c,left:u,bottom:d,right:h}=l,p=-Math.floor(c),f=-Math.floor(u),g=`${p}px ${-Math.floor(o-h)}px ${-Math.floor(s-d)}px ${f}px`;this.boundingClientRect=a,Tr(this,vi,new IntersectionObserver(t=>{const[e]=t,{intersectionRect:n}=e;1!==(1!==e.intersectionRatio?e.intersectionRatio:ie.intersectionRatio(n,Ur(r)))&&jr(this,wi).call(this)},{threshold:Si,rootMargin:g,root:i})),jr(this,vi).observe(r),$r(this,xi,Oi).call(this)},75)),this.boundingClientRect=t.getBoundingClientRect(),Tr(this,pi,function(t,e=t.getBoundingClientRect()){const{width:n,height:r}=Ur(t,e);return n>0&&r>0}(t,this.boundingClientRect));let r=!0;this.callback=t=>{r&&(r=!1,n.skipInitial)||e(t)};const i=t.ownerDocument;(null==n?void 0:n.debug)&&(Tr(this,yi,document.createElement("div")),jr(this,yi).style.background="rgba(0,0,0,0.15)",jr(this,yi).style.position="fixed",jr(this,yi).style.pointerEvents="none",i.body.appendChild(jr(this,yi))),Tr(this,mi,new IntersectionObserver(e=>{var n,r;const i=e[e.length-1],{boundingClientRect:s,isIntersecting:o}=i,{width:a,height:l}=s,c=jr(this,pi);Tr(this,pi,o),(a||l)&&(c&&!o?(null==(n=jr(this,vi))||n.disconnect(),this.callback(null),null==(r=jr(this,gi))||r.disconnect(),Tr(this,gi,void 0),jr(this,yi)&&(jr(this,yi).style.visibility="hidden")):jr(this,wi).call(this),o&&!jr(this,gi)&&(Tr(this,gi,new hi(jr(this,wi))),jr(this,gi).observe(t)))},{threshold:Si,root:i})),jr(this,pi)&&!n.skipInitial&&this.callback(this.boundingClientRect),jr(this,mi).observe(t)}};pi=new WeakMap,fi=new WeakMap,gi=new WeakMap,vi=new WeakMap,mi=new WeakMap,yi=new WeakMap,bi=new WeakMap,wi=new WeakMap,xi=new WeakSet,Oi=function(){jr(this,bi)||($r(this,xi,ki).call(this),function(t,e){return t===e||!(!t||!e)&&t.top==e.top&&t.left==e.left&&t.right==e.right&&t.bottom==e.bottom}(this.boundingClientRect,jr(this,fi))||(this.callback(this.boundingClientRect),Tr(this,fi,this.boundingClientRect)))},ki=function(){if(jr(this,yi)){const{top:t,left:e,width:n,height:r}=Ur(this.element);jr(this,yi).style.overflow="hidden",jr(this,yi).style.visibility="visible",jr(this,yi).style.top=`${Math.floor(t)}px`,jr(this,yi).style.left=`${Math.floor(e)}px`,jr(this,yi).style.width=`${Math.floor(n)}px`,jr(this,yi).style.height=`${Math.floor(r)}px`}};var Di,Mi,Pi,Ci,Ai=new WeakMap,Wi=new WeakMap;function Ii(t,e){let n=Ai.get(t);if(!n){const e=new Ei(t,e=>{const n=Ai.get(t);n&&n.callbacks.forEach(t=>t(e))},{skipInitial:!0});n={disconnect:e.disconnect,callbacks:new Set}}return n.callbacks.add(e),Ai.set(t,n),()=>{n.callbacks.delete(e),0===n.callbacks.size&&(Ai.delete(t),n.disconnect())}}var ji=class{constructor(t,e,n){this.callback=e,Rr(this,Di),Rr(this,Mi,!1),Rr(this,Pi),Rr(this,Ci,ci(t=>{if(!jr(this,Mi)&&t.target&&"contains"in t.target&&"function"==typeof t.target.contains)for(const e of jr(this,Pi))if(t.target.contains(e)){this.callback(jr(this,Di).boundingClientRect);break}},75));const r=function(t){const e=new Set;let n=li(t);for(;n;)e.add(n),n=li(n);return e}(t),i=function(t,e){const n=new Set;for(const r of t){const t=Ii(r,e);n.add(t)}return()=>n.forEach(t=>t())}(r,e),s=function(t,e){var n;const r=t.ownerDocument;if(!Wi.has(r)){const t=new AbortController,e=new Set;document.addEventListener("scroll",t=>e.forEach(e=>e(t)),{capture:!0,passive:!0,signal:t.signal}),Wi.set(r,{disconnect:()=>t.abort(),listeners:e})}const{listeners:i,disconnect:s}=null!=(n=Wi.get(r))?n:{};return i&&s?(i.add(e),()=>{i.delete(e),0===i.size&&(s(),Wi.delete(r))}):()=>{}}(t,jr(this,Ci));Tr(this,Pi,r),Tr(this,Di,new Ei(t,e,n)),this.disconnect=()=>{jr(this,Mi)||(Tr(this,Mi,!0),i(),s(),jr(this,Di).disconnect())}}};function Ri(t){return"showPopover"in t&&"hidePopover"in t&&"function"==typeof t.showPopover&&"function"==typeof t.hidePopover}function Ti(t){try{Ri(t)&&t.isConnected&&t.hasAttribute("popover")&&!t.matches(":popover-open")&&t.showPopover()}catch(t){}}function $i(t){return!(!Gr||!t)&&t===qr(t).scrollingElement}function Ni(t){var e,n;const r=Xr(t),i=$i(t)?function(t){var e,n,r,i;const{documentElement:s}=qr(t),o=Xr(t).visualViewport,a=null!=(e=null==o?void 0:o.width)?e:s.clientWidth,l=null!=(n=null==o?void 0:o.height)?n:s.clientHeight,c=null!=(r=null==o?void 0:o.offsetTop)?r:0,u=null!=(i=null==o?void 0:o.offsetLeft)?i:0;return{top:c,left:u,right:u+a,bottom:c+l,width:a,height:l}}(t):zr(t),s=r.visualViewport,o=$i(t)?{height:null!=(e=null==s?void 0:s.height)?e:r.innerHeight,width:null!=(n=null==s?void 0:s.width)?n:r.innerWidth}:{height:t.clientHeight,width:t.clientWidth},a={current:{x:t.scrollLeft,y:t.scrollTop},max:{x:t.scrollWidth-o.width,y:t.scrollHeight-o.height}};return{rect:i,position:a,isTop:a.current.y<=0,isLeft:a.current.x<=0,isBottom:a.current.y>=a.max.y,isRight:a.current.x>=a.max.x}}function _i(t,e){const{isTop:n,isBottom:r,isLeft:i,isRight:s,position:o}=Ni(t),{x:a,y:l}=null!=e?e:{x:0,y:0},c=!n&&o.current.y+l>0,u=!r&&o.current.y+l<o.max.y,d=!i&&o.current.x+a>0,h=!s&&o.current.x+a<o.max.x;return{top:c,bottom:u,left:d,right:h,x:d||h,y:c||u}}Di=new WeakMap,Mi=new WeakMap,Pi=new WeakMap,Ci=new WeakMap;var zi=class{constructor(t){this.scheduler=t,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:t,resolvers:e}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const e of t)e();for(const t of e)t()}}schedule(t){return this.tasks.add(t),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(t=>this.resolvers.add(t))}},Li=new zi(t=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(t):t()}),Fi=new zi(t=>setTimeout(t,50)),Xi=new Map,Yi=Xi.clear.bind(Xi);function Hi(t,e=!1){if(!e)return Vi(t);let n=Xi.get(t);return n||(n=Vi(t),Xi.set(t,n),Fi.schedule(Yi),n)}function Vi(t){return Xr(t).getComputedStyle(t)}var qi={excludeElement:!0,escapeShadowDOM:!0};function Bi(t,e=qi){const{limit:n,excludeElement:r,escapeShadowDOM:i}=e,s=new Set;return t?function e(o){if(null!=n&&s.size>=n)return s;if(!o)return s;if(Yr(o)&&null!=o.scrollingElement&&!s.has(o.scrollingElement))return s.add(o.scrollingElement),s;if(i&&ti(o))return e(o.host);if(!Hr(o))return Vr(o)?e(o.parentElement):s;if(s.has(o))return s;const a=Hi(o,!0);if(r&&o===t||function(t,e=Hi(t,!0)){const n=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(t=>{const r=e[t];return"string"==typeof r&&n.test(r)})}(o,a)&&s.add(o),function(t,e=Hi(t,!0)){return"fixed"===e.position||"sticky"===e.position}(o,a)){const{scrollingElement:t}=o.ownerDocument;return t&&s.add(t),s}return e(o.parentNode)}(t):s}function Ui(t,e=window.frameElement){const n={x:0,y:0,scaleX:1,scaleY:1};if(!t)return n;let r=li(t);for(;r;){if(r===e)return n;const t=zr(r),{x:i,y:s}=Ki(r,t);n.x=n.x+t.left,n.y=n.y+t.top,n.scaleX=n.scaleX*i,n.scaleY=n.scaleY*s,r=li(r)}return n}function Ki(t,e=zr(t)){const n=Math.round(e.width),r=Math.round(e.height);if(Hr(t))return{x:n/t.offsetWidth,y:r/t.offsetHeight};const i=Hi(t,!0);return{x:(parseFloat(i.width)||n)/n,y:(parseFloat(i.height)||r)/r}}function Gi(t){if(!t||"none"===t)return null;const[e,n,r="0"]=t.split(" "),i={x:parseFloat(e),y:parseFloat(n),z:parseInt(r,10)};return isNaN(i.x)&&isNaN(i.y)?null:{x:isNaN(i.x)?0:i.x,y:isNaN(i.y)?0:i.y,z:isNaN(i.z)?0:i.z}}function Ji(t){var e,n,r,i,s,o,a,l,c;const{scale:u,transform:d,translate:h}=t,p=function(t){if(!t||"none"===t)return null;const e=t.split(" "),n=parseFloat(e[0]),r=parseFloat(e[1]);return isNaN(n)&&isNaN(r)?null:{x:isNaN(n)?r:n,y:isNaN(r)?n:r}}(u),f=Gi(h),g=function(t){if(t.startsWith("matrix3d(")){const e=t.slice(9,-1).split(/, /);return{x:+e[12],y:+e[13],scaleX:+e[0],scaleY:+e[5]}}if(t.startsWith("matrix(")){const e=t.slice(7,-1).split(/, /);return{x:+e[4],y:+e[5],scaleX:+e[0],scaleY:+e[3]}}return null}(d);if(!g&&!p&&!f)return null;const v=null!=(e=null==p?void 0:p.x)?e:1,m=null!=(n=null==p?void 0:p.y)?n:1,y=null!=(r=null==f?void 0:f.x)?r:0,b=null!=(i=null==f?void 0:f.y)?i:0,w=null!=(s=null==g?void 0:g.x)?s:0,x=null!=(o=null==g?void 0:g.y)?o:0,O=null!=(a=null==g?void 0:g.scaleX)?a:1,k=null!=(l=null==g?void 0:g.scaleY)?l:1;return{x:y+w,y:b+x,z:null!=(c=null==f?void 0:f.z)?c:0,scaleX:v*O,scaleY:m*k}}var Zi=(t=>(t[t.Idle=0]="Idle",t[t.Forward=1]="Forward",t[t.Reverse=-1]="Reverse",t))(Zi||{}),Qi={x:.2,y:.2},ts={x:10,y:10};function es(t,e,n,r=25,i=Qi,s=ts){const{x:o,y:a}=e,{rect:l,isTop:c,isBottom:u,isLeft:d,isRight:h}=Ni(t),p=Ui(t),f=Ji(Hi(t,!0)),g=null!==f&&(null==f?void 0:f.scaleX)<0,v=null!==f&&(null==f?void 0:f.scaleY)<0,m=new ie(l.left*p.scaleX+p.x,l.top*p.scaleY+p.y,l.width*p.scaleX,l.height*p.scaleY),y={x:0,y:0},b={x:0,y:0},w=m.height*i.y,x=m.width*i.x;return w>0&&(!c||v&&!u)&&a<=m.top+w&&1!==(null==n?void 0:n.y)&&o>=m.left-s.x&&o<=m.right+s.x?(y.y=v?1:-1,b.y=r*Math.abs((m.top+w-a)/w)):w>0&&(!u||v&&!c)&&a>=m.bottom-w&&-1!==(null==n?void 0:n.y)&&o>=m.left-s.x&&o<=m.right+s.x&&(y.y=v?-1:1,b.y=r*Math.abs((m.bottom-w-a)/w)),x>0&&(!h||g&&!d)&&o>=m.right-x&&-1!==(null==n?void 0:n.x)&&a>=m.top-s.y&&a<=m.bottom+s.y?(y.x=g?-1:1,b.x=r*Math.abs((m.right-x-o)/x)):x>0&&(!d||g&&!h)&&o<=m.left+x&&1!==(null==n?void 0:n.x)&&a>=m.top-s.y&&a<=m.bottom+s.y&&(y.x=g?1:-1,b.x=r*Math.abs((m.left+x-o)/x)),{direction:y,speed:b}}function ns(t,{block:e="nearest",inline:n="nearest"}={}){if(!Hr(t))return;const r=Bi(t),i=[];for(const s of r){if(!Hr(s))continue;const{top:r,left:o}=is(t,s);let a=r,l=o;for(const t of i)a-=t.scrollTop,l-=t.scrollLeft;if("none"!==e){const n=a<s.scrollTop;n!==a+t.offsetHeight>s.scrollTop+s.clientHeight&&(s.scrollTop="center"===e?a-s.clientHeight/2+t.offsetHeight/2:n?a:a+t.offsetHeight-s.clientHeight)}if("none"!==n){const e=l<s.scrollLeft;e!==l+t.offsetWidth>s.scrollLeft+s.clientWidth&&(s.scrollLeft="center"===n?l-s.clientWidth/2+t.offsetWidth/2:e?l:l+t.offsetWidth-s.clientWidth)}i.push(s)}}function rs(t){let e=0,n=0,r=t;for(;r;){e+=r.offsetTop,n+=r.offsetLeft;const t=r.offsetParent;if(!Hr(t))break;e+=t.clientTop,n+=t.clientLeft,r=t}return{top:e,left:n}}function is(t,e){const n=rs(t),r=rs(e);return{top:n.top-r.top-e.clientTop,left:n.left-r.left-e.clientLeft}}function ss({element:t,keyframes:e,options:n}){return t.animate(e,n).finished}function os(t,e=Hi(t).translate,n=!0){if(n){const e=_r(t,t=>"translate"in t);if(e){const{translate:t=""}=e[0];if("string"==typeof t){const e=Gi(t);if(e)return e}}}if(e){const t=Gi(e);if(t)return t}return{x:0,y:0,z:0}}var as=new zi(t=>setTimeout(t,0)),ls=new Map,cs=ls.clear.bind(ls);var us=class extends ie{constructor(t,e={}){var n,r,i,s;const{frameTransform:o=Ui(t),ignoreTransforms:a,getBoundingClientRect:l=zr}=e,c=function(t,e){const n=function(t){const e=t.ownerDocument;let n=ls.get(e);if(n)return n;n=e.getAnimations(),ls.set(e,n),as.schedule(cs);const r=n.filter(e=>Nr(e.effect)&&e.effect.target===t);return ls.set(t,r),n}(t).filter(t=>{var n,r;if(Nr(t.effect)){const{target:i}=t.effect;if(null==(r=i&&(null==(n=e.isValidTarget)?void 0:n.call(e,i)))||r)return t.effect.getKeyframes().some(t=>{for(const n of e.properties)if(t[n])return!0})}}).map(t=>{const{effect:e,currentTime:n}=t,r=null==e?void 0:e.getComputedTiming().duration;if(!t.pending&&"finished"!==t.playState)return"number"==typeof r&&"number"==typeof n&&n<r?(t.currentTime=r,()=>{t.currentTime=n}):void 0});if(n.length>0)return()=>n.forEach(t=>null==t?void 0:t())}(t,{properties:["transform","translate","scale","width","height"],isValidTarget:e=>(e!==t||Zr())&&e.contains(t)}),u=l(t);let d,{top:h,left:p,width:f,height:g}=u;const v=Hi(t),m=Ji(v),y={x:null!=(n=null==m?void 0:m.scaleX)?n:1,y:null!=(r=null==m?void 0:m.scaleY)?r:1},b=function(t,e){const n=t.getAnimations();if(!n.length)return null;let r,i,s,o=!1;for(const t of n){if("running"!==t.playState)continue;const e=Nr(t.effect)?t.effect.getKeyframes():[],n=e[e.length-1];if(!n)continue;const{transform:a,translate:l,scale:c}=n;"string"==typeof a&&a&&(r=a,o=!0),"string"==typeof l&&l&&(i=l,o=!0),"string"==typeof c&&c&&(s=c,o=!0)}return o?Ji({transform:null!=r?r:e.transform,translate:null!=i?i:e.translate,scale:null!=s?s:e.scale}):null}(t,v);null==c||c(),m&&(d=function(t,e,n){const{scaleX:r,scaleY:i,x:s,y:o}=e,a=t.left-s-(1-r)*parseFloat(n),l=t.top-o-(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?t.width/r:t.width,u=i?t.height/i:t.height;return{width:c,height:u,top:l,right:a+c,bottom:l+u,left:a}}(u,m,v.transformOrigin),(a||b)&&(h=d.top,p=d.left,f=d.width,g=d.height));const w={width:null!=(i=null==d?void 0:d.width)?i:f,height:null!=(s=null==d?void 0:d.height)?s:g};if(b&&!a&&d){const t=function(t,e,n){const{scaleX:r,scaleY:i,x:s,y:o}=e,a=t.left+s+(1-r)*parseFloat(n),l=t.top+o+(1-i)*parseFloat(n.slice(n.indexOf(" ")+1)),c=r?t.width*r:t.width,u=i?t.height*i:t.height;return{width:c,height:u,top:l,right:a+c,bottom:l+u,left:a}}(d,b,v.transformOrigin);h=t.top,p=t.left,f=t.width,g=t.height,y.x=b.scaleX,y.y=b.scaleY}o&&(a||(p*=o.scaleX,f*=o.scaleX,h*=o.scaleY,g*=o.scaleY),p+=o.x,h+=o.y),super(p,h,f,g),this.scale=y,this.intrinsicWidth=w.width,this.intrinsicHeight=w.height}};function ds(t){return"style"in t&&"object"==typeof t.style&&null!==t.style&&"setProperty"in t.style&&"removeProperty"in t.style&&"function"==typeof t.style.setProperty&&"function"==typeof t.style.removeProperty}var hs=class{constructor(t){this.element=t,this.initial=new Map}set(t,e=""){const{element:n}=this;if(ds(n))for(const[r,i]of Object.entries(t)){const t=`${e}${r}`;this.initial.has(t)||this.initial.set(t,n.style.getPropertyValue(t)),n.style.setProperty(t,"string"==typeof i?i:`${i}px`)}}remove(t,e=""){const{element:n}=this;if(ds(n))for(const r of t)n.style.removeProperty(`${e}${r}`)}reset(){const{element:t}=this;if(ds(t)){for(const[e,n]of this.initial)t.style.setProperty(e,n);""===t.getAttribute("style")&&t.removeAttribute("style")}}};function ps(t){return!!t&&(t instanceof Xr(t).Element||Fr(t)&&t.nodeType===Node.ELEMENT_NODE)}function fs(t){if(!t)return!1;const{KeyboardEvent:e}=Xr(t.target);return t instanceof e}var gs={};function vs(t){const e=null==gs[t]?0:gs[t]+1;return gs[t]=e,`${t}-${e}`}var ms=t=>{var e;return null!=(e=(({dragOperation:t,droppable:e})=>{const n=t.position.current;if(!n)return null;const{id:r}=e;return e.shape&&e.shape.containsPoint(n)?{id:r,value:1/re.distance(e.shape.center,n),type:Qn.PointerIntersection,priority:Zn.High}:null})(t))?e:(({dragOperation:t,droppable:e})=>{const{shape:n}=t;if(!e.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(e.shape);if(r){const{position:i}=t,s=re.distance(e.shape.center,i.current);return{id:e.id,value:r/(n.current.area+e.shape.area-r)/s,type:Qn.ShapeIntersection,priority:Zn.Normal}}return null})(t)},ys=t=>{const{dragOperation:e,droppable:n}=t,{shape:r,position:i}=e;if(!n.shape)return null;const s=r?ie.from(r.current.boundingRectangle).corners:void 0,o=ie.from(n.shape.boundingRectangle).corners.reduce((t,e,n)=>{var r;return t+re.distance(re.from(e),null!=(r=null==s?void 0:s[n])?r:i.current)},0);return{id:n.id,value:1/(o/4),type:Qn.Collision,priority:Zn.Normal}},bs=Object.create,ws=Object.defineProperty,xs=Object.defineProperties,Os=Object.getOwnPropertyDescriptor,ks=Object.getOwnPropertyDescriptors,Ss=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Ds=Object.prototype.propertyIsEnumerable,Ms=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Ps=t=>{throw TypeError(t)},Cs=(t,e,n)=>e in t?ws(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,As=(t,e)=>{for(var n in e||(e={}))Es.call(e,n)&&Cs(t,n,e[n]);if(Ss)for(var n of Ss(e))Ds.call(e,n)&&Cs(t,n,e[n]);return t},Ws=(t,e)=>xs(t,ks(e)),Is=(t,e)=>ws(t,"name",{value:e,configurable:!0}),js=(t,e)=>{var n={};for(var r in t)Es.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Ss)for(var r of Ss(t))e.indexOf(r)<0&&Ds.call(t,r)&&(n[r]=t[r]);return n},Rs=t=>{var e;return[,,,bs(null!=(e=null==t?void 0:t[Ms("metadata")])?e:null)]},Ts=["class","method","getter","setter","accessor","field","value","get","set"],$s=t=>void 0!==t&&"function"!=typeof t?Ps("Function expected"):t,Ns=(t,e,n,r,i)=>({kind:Ts[t],name:e,metadata:r,addInitializer:t=>n._?Ps("Already initialized"):i.push($s(t||null))}),_s=(t,e)=>Cs(e,Ms("metadata"),t[3]),zs=(t,e,n,r)=>{for(var i=0,s=t[e>>1],o=s&&s.length;i<o;i++)1&e?s[i].call(n):r=s[i].call(n,r);return r},Ls=(t,e,n,r,i,s)=>{var o,a,l,c,u,d=7&e,h=!!(8&e),p=!!(16&e),f=d>3?t.length+1:d?h?1:2:0,g=Ts[d+5],v=d>3&&(t[f-1]=[]),m=t[f]||(t[f]=[]),y=d&&(!p&&!h&&(i=i.prototype),d<5&&(d>3||!p)&&Os(d<4?i:{get[n](){return Ys(this,s)},set[n](t){return Vs(this,s,t)}},n));d?p&&d<4&&Is(s,(d>2?"set ":d>1?"get ":"")+n):Is(i,n);for(var b=r.length-1;b>=0;b--)c=Ns(d,n,l={},t[3],m),d&&(c.static=h,c.private=p,u=c.access={has:p?t=>Xs(i,t):t=>n in t},3^d&&(u.get=p?t=>(1^d?Ys:qs)(t,i,4^d?s:y.get):t=>t[n]),d>2&&(u.set=p?(t,e)=>Vs(t,i,e,4^d?s:y.set):(t,e)=>t[n]=e)),a=(0,r[b])(d?d<4?p?s:y[g]:d>4?void 0:{get:y.get,set:y.set}:i,c),l._=1,4^d||void 0===a?$s(a)&&(d>4?v.unshift(a):d?p?s=a:y[g]=a:i=a):"object"!=typeof a||null===a?Ps("Object expected"):($s(o=a.get)&&(y.get=o),$s(o=a.set)&&(y.set=o),$s(o=a.init)&&v.unshift(o));return d||_s(t,i),y&&ws(i,n,y),p?4^d?s:y:i},Fs=(t,e,n)=>e.has(t)||Ps("Cannot "+n),Xs=(t,e)=>Object(e)!==e?Ps('Cannot use the "in" operator on this value'):t.has(e),Ys=(t,e,n)=>(Fs(t,e,"read from private field"),n?n.call(t):e.get(t)),Hs=(t,e,n)=>e.has(t)?Ps("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),Vs=(t,e,n,r)=>(Fs(t,e,"write to private field"),r?r.call(t,n):e.set(t,n),n),qs=(t,e,n)=>(Fs(t,e,"access private method"),n),Bs="dnd-kit-description",Us="dnd-kit-announcement",Ks={draggable:"To pick up a draggable item, press the space bar. While dragging, use the arrow keys to move the item in a given direction. Press space again to drop the item in its new position, or press escape to cancel."},Gs={dragstart({operation:{source:t}}){if(t)return`Picked up draggable item ${t.id}.`},dragover({operation:{source:t,target:e}}){if(t&&t.id!==(null==e?void 0:e.id))return e?`Draggable item ${t.id} was moved over droppable target ${e.id}.`:`Draggable item ${t.id} is no longer over a droppable target.`},dragend({operation:{source:t,target:e},canceled:n}){if(t)return n?`Dragging was cancelled. Draggable item ${t.id} was dropped.`:e?`Draggable item ${t.id} was dropped over droppable target ${e.id}`:`Draggable item ${t.id} was dropped.`}};function Js(t){const e=t.tagName.toLowerCase();return["input","select","textarea","a","button"].includes(e)}var Zs,Qs,to,eo,no,ro,io,so,oo,ao,lo,co,uo,ho=["dragover","dragmove"],po=new Map,fo=class extends(no=qe,eo=[St],to=[Et],Qs=[Et],Zs=[Et],no){constructor(t,e){super(t,e),zs(io,5,this),Hs(this,oo),Hs(this,ro,new Set),Hs(this,so,zs(io,8,this,new Set)),zs(io,11,this),this.registerEffect(qs(this,oo,ao))}register(t){return Ys(this,ro).add(t),()=>{Ys(this,ro).delete(t)}}addRoot(t){return d(()=>{const e=new Set(this.additionalRoots);e.add(t),this.additionalRoots=e}),()=>{d(()=>{const e=new Set(this.additionalRoots);e.delete(t),this.additionalRoots=e})}}get sourceRoot(){var t;const{source:e}=this.manager.dragOperation;return ei(null!=(t=null==e?void 0:e.element)?t:null)}get targetRoot(){var t;const{target:e}=this.manager.dragOperation;return ei(null!=(t=null==e?void 0:e.element)?t:null)}get roots(){const{status:t}=this.manager.dragOperation;if(t.initializing||t.initialized){const t=[this.sourceRoot,this.targetRoot].filter(t=>null!=t);return new Set([...t,...this.additionalRoots])}return new Set}};io=Rs(no),ro=new WeakMap,so=new WeakMap,oo=new WeakSet,ao=function(){const{roots:t}=this,e=[];for(const n of t)for(const t of Ys(this,ro))e.push(qs(this,oo,lo).call(this,n,t));return()=>{for(const t of e)t()}},lo=function(t,e){let n=po.get(t);n||(n=new Map,po.set(t,n));let r=n.get(e);if(!r){const i=Yr(t)?qs(this,oo,co).call(this,t,n,e):qs(this,oo,uo).call(this,t,n,e);if(!i)return()=>{};r=i,n.set(e,r)}r.refCount++;let i=!1;return()=>{i||(i=!0,r.refCount--,0===r.refCount&&r.cleanup())}},co=function(t,e,n){var r;const i=t.createElement("style"),{nonce:s}=null!=(r=this.options)?r:{};s&&i.setAttribute("nonce",s),i.textContent=n,t.head.prepend(i);const o=new MutationObserver(e=>{for(const n of e)for(const e of Array.from(n.removedNodes))if(e===i)return void t.head.prepend(i)});return o.observe(t.head,{childList:!0}),{refCount:0,cleanup:()=>{o.disconnect(),i.remove(),e.delete(n),0===e.size&&po.delete(t)}}},uo=function(t,e,n){!("adoptedStyleSheets"in t)||Array.isArray(t.adoptedStyleSheets);const r=t.ownerDocument.defaultView,{CSSStyleSheet:i}=null!=r?r:{};if(!i)return null;const s=new i;return s.replaceSync(n),t.adoptedStyleSheets.push(s),{refCount:0,cleanup:()=>{var r;if(ti(t)&&(null==(r=t.host)?void 0:r.isConnected)){const e=t.adoptedStyleSheets.indexOf(s);-1!==e&&t.adoptedStyleSheets.splice(e,1)}e.delete(n),0===e.size&&po.delete(t)}}},Ls(io,4,"additionalRoots",eo,fo,so),Ls(io,2,"sourceRoot",to,fo),Ls(io,2,"targetRoot",Qs,fo),Ls(io,2,"roots",Zs,fo),_s(io,fo),fo.configure=Xe(fo);var go=fo,vo="data-dnd-",mo=`${vo}dropping`,yo="--dnd-",bo=`${vo}dragging`,wo=`${vo}placeholder`,xo=[bo,wo,"popover","aria-pressed","aria-grabbing"],Oo=["view-transition-name"],ko=`\n :is(:root,:host) [${bo}] {\n position: fixed !important;\n pointer-events: none !important;\n touch-action: none;\n z-index: calc(infinity);\n will-change: translate;\n top: var(${yo}top, 0px) !important;\n left: var(${yo}left, 0px) !important;\n right: unset !important;\n bottom: unset !important;\n width: var(${yo}width, auto);\n max-width: var(${yo}width, auto);\n height: var(${yo}height, auto);\n max-height: var(${yo}height, auto);\n transform: var(${yo}transform, none) !important;\n transition: var(${yo}transition) !important;\n }\n\n :is(:root,:host) [${wo}] {\n transition: none;\n }\n\n :is(:root,:host) [${wo}='hidden'] {\n visibility: hidden;\n }\n\n [${bo}] * {\n pointer-events: none !important;\n }\n\n [${bo}]:not([${mo}]) {\n translate: var(${yo}translate) !important;\n }\n\n [${bo}][style*='${yo}scale'] {\n scale: var(${yo}scale) !important;\n transform-origin: var(${yo}transform-origin) !important;\n }\n\n @layer dnd-kit {\n :where([${bo}][popover]) {\n overflow: visible;\n background: unset;\n border: unset;\n margin: unset;\n padding: unset;\n color: inherit;\n\n &:is(input, button) {\n border: revert;\n background: revert;\n }\n }\n }\n [${bo}]::backdrop, [${vo}overlay]:not([${bo}]) {\n display: none;\n visibility: hidden;\n }\n`.replace(/\n+/g," ").replace(/\s+/g," ").trim();function So(t,e){return t===e||li(t)===li(e)}function Eo(t){const{target:e}=t;"newState"in t&&"closed"===t.newState&&ps(e)&&e.hasAttribute("popover")&&requestAnimationFrame(()=>Ti(e))}function Do(t){return"TR"===t.tagName}var Mo,Po,Co,Ao,Wo,Io,jo,Ro=250,To="ease",$o=class extends(Po=He,Mo=[St],Po){constructor(t,e){super(t,e),Hs(this,Wo),Hs(this,Ao,zs(Co,8,this)),zs(Co,11,this),this.state={initial:{},current:{}};const n=t.registry.plugins.get(go),r=null==n?void 0:n.register(ko);if(r){const t=this.destroy.bind(this);this.destroy=()=>{r(),t()}}this.registerEffect(qs(this,Wo,Io).bind(this,n)),this.registerEffect(qs(this,Wo,jo))}};Co=Rs(Po),Ao=new WeakMap,Wo=new WeakSet,Io=function(t){const{overlay:e}=this;if(!e||!t)return;const n=ei(e);return n?t.addRoot(n):void 0},jo=function(){var t,e,n,r,i,s,o;const{state:a,manager:l,options:c}=this,{dragOperation:u}=l,{position:h,source:p,status:f}=u;if(f.idle)return a.current={},void(a.initial={});if(!p)return;const{element:g}=p,v=p.pluginConfig($o),m=null!=(e=null!=(t=null==v?void 0:v.feedback)?t:null==c?void 0:c.feedback)?e:"default",y="function"==typeof m?m(p,l):m;if(!g||"none"===y||!f.initialized||f.initializing)return;const{initial:b}=a,w=null!=(n=this.overlay)?n:g,x=Ui(w),O=Ui(g),k=!So(g,w),S=new us(g,{frameTransform:k?O:null,ignoreTransforms:!k}),E=O.scaleX/x.scaleX,D=O.scaleY/x.scaleY;let{width:M,height:P,top:C,left:A}=S;k&&(M/=E,P/=D);const W=new hs(w),I=Hi(g),{transition:j,translate:R,boxSizing:T,paddingBlockStart:$,paddingBlockEnd:N,paddingInlineStart:_,paddingInlineEnd:z,borderInlineStartWidth:L,borderInlineEndWidth:F,borderBlockStartWidth:X,borderBlockEndWidth:Y}=I,H=j.split(",").filter(t=>!/^\s*(transform|translate|scale)\b/.test(t)).join(","),V=Ji(I),q=I.transform,B="clone"===y,U="content-box"===T,K=U?parseInt(_)+parseInt(z)+parseInt(L)+parseInt(F):0,G=U?parseInt($)+parseInt(N)+parseInt(X)+parseInt(Y):0,J="move"===y||this.overlay?null:function(t,e="hidden"){return d(()=>{const{element:n,manager:r}=t;if(!n||!r)return;const i=function(t,e){const n=new Map;for(const r of e)if(r.element&&(t===r.element||t.contains(r.element))){const t=`${vo}${vs("dom-id")}`;r.element.setAttribute(t,""),n.set(r,t)}return n}(n,r.registry.droppables),s=[],o=function(t){const e="input, textarea, select, canvas, [contenteditable]",n=t.cloneNode(!0),r=Array.from(t.querySelectorAll(e));return Array.from(n.querySelectorAll(e)).forEach((t,e)=>{const n=r[e];if(ri(t)&&ri(n)&&("file"!==t.type&&(t.value=n.value),"radio"===t.type&&t.name&&(t.name=`Cloned__${t.name}`)),ii(t)&&ii(n)&&n.width>0&&n.height>0){const e=t.getContext("2d");null==e||e.drawImage(n,0,0)}}),n}(n),{remove:a}=o;return function(t,e,n){for(const[r,i]of t){if(!r.element)continue;const t=`[${i}]`,s=e.matches(t)?e:e.querySelector(t);if(r.element.removeAttribute(i),!s)continue;const o=r.element;r.proxy=s,s.removeAttribute(i),oi.set(o,s),n.push(()=>{oi.delete(o),r.proxy=void 0})}}(i,o,s),function(t,e="hidden"){t.setAttribute("inert","true"),t.setAttribute("tab-index","-1"),t.setAttribute("aria-hidden","true"),t.setAttribute(wo,e)}(o,e),o.remove=()=>{s.forEach(t=>t()),a.call(o)},o})}(p,B?"clone":"hidden"),Z=d(()=>fs(l.dragOperation.activatorEvent));if(!b.translate)if(this.overlay&&V)b.translate={x:V.x,y:V.y};else if("none"!==R){const t=Gi(R);t&&(b.translate=t)}if(!b.transformOrigin){const t=d(()=>h.current),e=A+(null!=(r=null==V?void 0:V.x)?r:0),n=C+(null!=(i=null==V?void 0:V.y)?i:0);b.transformOrigin={x:(t.x-e*x.scaleX-x.x)/(M*x.scaleX),y:(t.y-n*x.scaleY-x.y)/(P*x.scaleY)}}const{transformOrigin:Q}=b,tt=C*x.scaleY+x.y,et=A*x.scaleX+x.x;if(!b.coordinates&&(b.coordinates={x:et,y:tt},1!==E||1!==D)){const{scaleX:t,scaleY:e}=O,{x:n,y:r}=Q;b.coordinates.x+=(M*t-M)*n,b.coordinates.y+=(P*e-P)*r}b.dimensions||(b.dimensions={width:M,height:P}),b.frameTransform||(b.frameTransform=x);const nt={x:(b.coordinates.x-et)/x.scaleX+(b.dimensions.width*b.frameTransform.scaleX-M*x.scaleX)*Q.x,y:(b.coordinates.y-tt)/x.scaleY+(b.dimensions.height*b.frameTransform.scaleY-P*x.scaleY)*Q.y},rt=A+nt.x,it=C+nt.y;w.setAttribute(bo,"true");const st=d(()=>u.transform),ot=null!=(s=b.translate)?s:{x:0,y:0},at=st.x*x.scaleX+ot.x,lt=st.y*x.scaleY+ot.y,ct=Qr();let ut,dt,ht;W.set({width:M-K,height:P-G,top:it+ct.y,left:rt+ct.x,translate:`${at}px ${lt}px 0`,transform:this.overlay?"none":q,transition:H?`${H}, translate 0ms linear`:"translate 0ms linear",scale:k?`${E} ${D}`:"","transform-origin":`${100*Q.x}% ${100*Q.y}%`},yo),J&&(g.insertAdjacentElement("afterend",J),null==c?void 0:c.rootElement)&&("function"==typeof c.rootElement?c.rootElement(p):c.rootElement).appendChild(g),Ri(w)&&(w.hasAttribute("popover")||w.setAttribute("popover","manual"),Ti(w),w.addEventListener("beforetoggle",Eo));const pt=(ft={placeholder:J,element:g,feedbackElement:w,frameTransform:x,transformOrigin:Q,width:M,height:P,top:C,left:A,widthOffset:K,heightOffset:G,delta:nt,styles:W,dragOperation:u,getTranslate:()=>a.current.translate,getElementMutationObserver:()=>ut,getSavedCellWidths:()=>ht,setSavedCellWidths:t=>{ht=t}},new ResizeObserver(()=>{var t,e,n;const r=new us(ft.placeholder,{frameTransform:ft.frameTransform,ignoreTransforms:!0}),i=null!=(t=ft.transformOrigin)?t:{x:1,y:1},s=(ft.width-r.width)*i.x+ft.delta.x,o=(ft.height-r.height)*i.y+ft.delta.y,a=Qr();if(ft.styles.set({width:r.width-ft.widthOffset,height:r.height-ft.heightOffset,top:ft.top+o+a.y,left:ft.left+s+a.x},yo),null==(e=ft.getElementMutationObserver())||e.takeRecords(),Do(ft.element)&&Do(ft.placeholder)){const t=Array.from(ft.element.cells),e=Array.from(ft.placeholder.cells);ft.getSavedCellWidths()||ft.setSavedCellWidths(t.map(t=>t.style.width));for(const[n,r]of t.entries())r.style.width=`${e[n].getBoundingClientRect().width}px`}const l=null!=(n=ft.getTranslate())?n:{x:0,y:0},c=ft.frameTransform;ft.dragOperation.shape=new ie((ft.left+s+a.x+l.x)*c.scaleX+c.x,(ft.top+o+a.y+l.y)*c.scaleY+c.y,(r.width-ft.widthOffset)*c.scaleX,(r.height-ft.heightOffset)*c.scaleY)}));var ft;const gt=new us(w);d(()=>u.shape=gt);const vt=Xr(w),mt=t=>{this.manager.actions.stop({event:t})},yt=ni(vt);Z&&vt.addEventListener("resize",mt),"idle"===d(()=>p.status)&&requestAnimationFrame(()=>p.status="dragging"),J&&(pt.observe(J),ut=function(t,e,n){const r=new MutationObserver(r=>{let i=!1;for(const n of r){if(n.target!==t){i=!0;continue}if("attributes"!==n.type)continue;const r=n.attributeName;if(r.startsWith("aria-")||xo.includes(r))continue;const s=t.getAttribute(r);if("style"===r){if(ds(t)&&ds(e)){const n=t.style;for(const t of Array.from(e.style))""===n.getPropertyValue(t)&&e.style.removeProperty(t);for(const t of Array.from(n)){if(Oo.includes(t)||t.startsWith(yo))continue;const r=n.getPropertyValue(t);e.style.setProperty(t,r)}}}else null!==s?e.setAttribute(r,s):e.removeAttribute(r)}i&&n&&e.replaceChildren(...t.cloneNode(!0).childNodes)});return r.observe(t,{attributes:!0,subtree:!0,childList:!0}),r}(g,J,B),dt=function(t,e,n){const r=new MutationObserver(r=>{for(const i of r)if(0!==i.addedNodes.length)for(const r of Array.from(i.addedNodes)){if(r.contains(t)&&t.nextElementSibling!==e)return t.insertAdjacentElement("afterend",e),void Ti(n);if(r.contains(e)&&e.previousElementSibling!==t)return e.insertAdjacentElement("beforebegin",t),void Ti(n)}t.isConnected&&e.isConnected&&t.nextElementSibling!==e&&(t.insertAdjacentElement("afterend",e),Ti(n))});return r.observe(t.ownerDocument.body,{childList:!0,subtree:!0}),r}(g,J,w));const bt=null==(o=l.dragOperation.source)?void 0:o.id,wt=()=>{var t;if(!Z||null==bt)return;const e=l.registry.draggables.get(bt),n=null!=(t=null==e?void 0:e.handle)?t:null==e?void 0:e.element;Hr(n)&&n.focus()},xt=()=>{null==ut||ut.disconnect(),null==dt||dt.disconnect(),pt.disconnect(),vt.removeEventListener("resize",mt),Ri(w)&&(w.removeEventListener("beforetoggle",Eo),w.removeAttribute("popover")),w.removeAttribute(bo),W.reset();const t=()=>{var t;if(ht&&Do(g)){const e=Array.from(g.cells);for(const[n,r]of e.entries())r.style.width=null!=(t=ht[n])?t:""}p.status="idle",J&&(!u.status.dragging&&null!=a.current.translate||J.parentElement!==w.parentElement)&&w.isConnected&&J.replaceWith(w),null==J||J.remove()};w===this.overlay?setTimeout(t,0):t()},Ot=null==c?void 0:c.dropAnimation,kt=this,St=Mt(()=>{var t,e,n;const{transform:r,status:i}=u;if((r.x||r.y||a.current.translate)&&i.dragging){const i=null!=(t=b.translate)?t:{x:0,y:0},s={x:r.x/x.scaleX+i.x,y:r.y/x.scaleY+i.y},o=a.current.translate,l=d(()=>u.modifiers),h=d(()=>{var t;return null==(t=u.shape)?void 0:t.current}),p=null==c?void 0:c.keyboardTransition,f=Z&&!yt&&null!==p?`${null!=(e=null==p?void 0:p.duration)?e:250}ms ${null!=(n=null==p?void 0:p.easing)?n:"cubic-bezier(0.25, 1, 0.5, 1)"}`:"0ms linear";if(W.set({transition:H?`${H}, translate ${f}`:`translate ${f}`,translate:`${s.x}px ${s.y}px 0`},yo),null==ut||ut.takeRecords(),h&&h!==gt&&o&&!l.length){const t=re.delta(s,o);u.shape=ie.from(h.boundingRectangle).translate(t.x*x.scaleX,t.y*x.scaleY)}else u.shape=new us(w);a.current.translate=s}},function(){if(u.status.dropped){this.dispose(),p.status="dropping";const t=void 0!==(null==v?void 0:v.dropAnimation)?v.dropAnimation:void 0!==kt.dropAnimation?kt.dropAnimation:Ot;let e=a.current.translate;const n=null!=e;if(e||g===w||(e={x:0,y:0}),!e||null===t)return void xt();l.renderer.rendering.then(()=>{!function(t){var e,n,r,i;const{animation:s}=t;if("function"==typeof s){const e=s({source:t.source,element:t.element,feedbackElement:t.feedbackElement,placeholder:t.placeholder,translate:t.translate,moved:t.moved});return void Promise.resolve(e).then(()=>{t.cleanup(),requestAnimationFrame(t.restoreFocus)})}const{duration:o=Ro,easing:a=To}=null!=s?s:{};Ti(t.feedbackElement);const[,l]=null!=(e=_r(t.feedbackElement,t=>"translate"in t))?e:[];null==l||l.pause();const c=null!=(n=t.placeholder)?n:t.element,u={frameTransform:So(t.feedbackElement,c)?null:void 0},d=new us(t.feedbackElement,u),h=null!=(r=Gi(Hi(t.feedbackElement).translate))?r:t.translate,p=new us(c,u),f=ie.delta(d,p,t.alignment),g=h.x-f.x,v=h.y-f.y,m=Math.round(d.intrinsicHeight)!==Math.round(p.intrinsicHeight)?{minHeight:[`${d.intrinsicHeight}px`,`${p.intrinsicHeight}px`],maxHeight:[`${d.intrinsicHeight}px`,`${p.intrinsicHeight}px`]}:{},y=Math.round(d.intrinsicWidth)!==Math.round(p.intrinsicWidth)?{minWidth:[`${d.intrinsicWidth}px`,`${p.intrinsicWidth}px`],maxWidth:[`${d.intrinsicWidth}px`,`${p.intrinsicWidth}px`]}:{};t.styles.set({transition:t.transition},yo),t.feedbackElement.setAttribute(mo,""),null==(i=t.getElementMutationObserver())||i.takeRecords(),ss({element:t.feedbackElement,keyframes:Ws(As(As({},m),y),{translate:[`${h.x}px ${h.y}px 0`,`${g}px ${v}px 0`]}),options:{duration:ni(Xr(t.feedbackElement))?0:t.moved||t.feedbackElement!==t.element?o:0,easing:a}}).then(()=>{t.feedbackElement.removeAttribute(mo),null==l||l.finish(),t.cleanup(),requestAnimationFrame(t.restoreFocus)})}({source:p,element:g,feedbackElement:w,placeholder:J,translate:e,moved:n,transition:j,alignment:p.alignment,styles:W,animation:null!=t?t:void 0,getElementMutationObserver:()=>ut,cleanup:xt,restoreFocus:wt})})}});return()=>{xt(),St()}},Ls(Co,4,"overlay",Mo,$o,Ao),_s(Co,$o),$o.configure=Xe($o);var No,_o,zo,Lo,Fo,Xo,Yo,Ho=$o,Vo=!0;zo=[St],Lo=Zi.Forward,No=[St],_o=Zi.Reverse;var qo=class{constructor(){Hs(this,Xo,zs(Fo,8,this,Vo)),zs(Fo,11,this),Hs(this,Yo,zs(Fo,12,this,Vo)),zs(Fo,15,this)}isLocked(t){return t!==Zi.Idle&&(null==t?this[Zi.Forward]===Vo&&this[Zi.Reverse]===Vo:this[t]===Vo)}unlock(t){t!==Zi.Idle&&(this[t]=!1)}};Fo=Rs(null),Xo=new WeakMap,Yo=new WeakMap,Ls(Fo,4,Lo,zo,qo,Xo),Ls(Fo,4,_o,No,qo,Yo),_s(Fo,qo);var Bo,Uo,Ko,Go,Jo,Zo,Qo=[Zi.Forward,Zi.Reverse],ta=class{constructor(){this.x=new qo,this.y=new qo}isLocked(){return this.x.isLocked()&&this.y.isLocked()}},ea=class extends He{constructor(t){super(t);const e=x(new ta);let n=null;this.signal=e,W(()=>{const{status:r}=t.dragOperation;if(!r.initialized)return n=null,void(e.value=new ta);const{delta:i}=t.dragOperation.position;if(n){const t={x:na(i.x,n.x),y:na(i.y,n.y)},r=e.peek();l(()=>{for(const e of he)for(const n of Qo)t[e]===n&&r[e].unlock(n);e.value=r})}n=i})}get current(){return this.signal.peek()}};function na(t,e){return Math.sign(t-e)}var ra=class extends(Uo=qe,Bo=[St],Uo){constructor(t){super(t),Hs(this,Go,zs(Ko,8,this,!1)),zs(Ko,11,this),Hs(this,Jo),Hs(this,Zo,()=>{if(!Ys(this,Jo))return;const{element:t,by:e}=Ys(this,Jo);e.y&&(t.scrollTop+=e.y),e.x&&(t.scrollLeft+=e.x)}),this.scroll=(t,e)=>{var n;if(this.disabled)return!1;const r=this.getScrollableElements();if(!r)return Vs(this,Jo,void 0),!1;const{position:i}=this.manager.dragOperation,s=null==i?void 0:i.current;if(s){const{by:i}=null!=t?t:{},o=i?{x:ia(i.x),y:ia(i.y)}:void 0,a=o?void 0:this.scrollIntentTracker.current;if(null==a?void 0:a.isLocked())return!1;for(const t of r){const r=_i(t,i);if(r.x||r.y){const{speed:r,direction:l}=es(t,s,o,null==e?void 0:e.acceleration,null==e?void 0:e.threshold);if(a)for(const t of he)a[t].isLocked(l[t])&&(r[t]=0,l[t]=0);if(l.x||l.y){const{x:e,y:s}=null!=i?i:l,o=e*r.x,a=s*r.y;if(o||a){const e=null==(n=Ys(this,Jo))?void 0:n.by;if(this.autoScrolling&&e&&(e.x&&!o||e.y&&!a))continue;return Vs(this,Jo,{element:t,by:{x:o,y:a}}),Li.schedule(Ys(this,Zo)),!0}}}}}return Vs(this,Jo,void 0),!1};let e=null,n=null;const r=Ot(()=>{const{position:n,source:r}=t.dragOperation;if(!n)return null;const i=si(ei(null==r?void 0:r.element),n.current);return i&&(e=i),null!=i?i:e}),i=Ot(()=>{const e=r.value,{documentElement:i}=qr(e);if(!e||e===i){const{target:e}=t.dragOperation,r=null==e?void 0:e.element;if(r){const t=Bi(r,{excludeElement:!1});return n=t,t}}if(e){const t=Bi(e,{excludeElement:!1});return this.autoScrolling&&n&&t.size<(null==n?void 0:n.size)?n:(n=t,t)}return n=null,null},kt);this.getScrollableElements=()=>i.value,this.scrollIntentTracker=new ea(t),this.destroy=t.monitor.addEventListener("dragmove",e=>{!this.disabled&&!e.defaultPrevented&&fs(t.dragOperation.activatorEvent)&&e.by&&this.scroll({by:e.by})&&e.preventDefault()})}};function ia(t){return t>0?Zi.Forward:t<0?Zi.Reverse:Zi.Idle}Ko=Rs(Uo),Go=new WeakMap,Jo=new WeakMap,Zo=new WeakMap,Ls(Ko,4,"autoScrolling",Bo,ra,Go),_s(Ko,ra);var sa=new class{constructor(t){this.scheduler=t,this.pending=!1,this.tasks=new Set,this.resolvers=new Set,this.flush=()=>{const{tasks:t,resolvers:e}=this;this.pending=!1,this.tasks=new Set,this.resolvers=new Set;for(const e of t)e();for(const t of e)t()}}schedule(t){return this.tasks.add(t),this.pending||(this.pending=!0,this.scheduler(this.flush)),new Promise(t=>this.resolvers.add(t))}}(t=>{"function"==typeof requestAnimationFrame?requestAnimationFrame(t):t()}),oa=class extends He{constructor(t,e){super(t,e);const n=t.registry.plugins.get(ra);if(!n)throw new Error("AutoScroller plugin depends on Scroller plugin");this.destroy=W(()=>{var e,r,i;if(this.disabled)return;const{status:s}=t.dragOperation;if(s.dragging){const t={acceleration:null==(e=this.options)?void 0:e.acceleration,threshold:"number"==typeof(null==(r=this.options)?void 0:r.threshold)?{x:this.options.threshold,y:this.options.threshold}:null==(i=this.options)?void 0:i.threshold};if(n.scroll(void 0,t)){n.autoScrolling=!0;const e=setInterval(()=>sa.schedule(()=>n.scroll(void 0,t)),10);return()=>{clearInterval(e)}}n.autoScrolling=!1}})}};oa.configure=Xe(oa);var aa,la=oa,ca={capture:!0,passive:!0},ua=class extends qe{constructor(t){super(t),Hs(this,aa),this.handleScroll=()=>{null==Ys(this,aa)&&Vs(this,aa,setTimeout(()=>{this.manager.collisionObserver.forceUpdate(!1),Vs(this,aa,void 0)},50))};const{dragOperation:e}=this.manager;this.destroy=W(()=>{var t,n,r;if(e.status.dragging){const i=null!=(r=null==(n=null==(t=e.source)?void 0:t.element)?void 0:n.ownerDocument)?r:document;return i.addEventListener("scroll",this.handleScroll,ca),()=>{i.removeEventListener("scroll",this.handleScroll,ca)}}})}};function da(){var t;null==(t=document.getSelection())||t.removeAllRanges()}aa=new WeakMap;var ha,pa=Object.freeze({offset:10,keyboardCodes:{start:["Space","Enter"],cancel:["Escape"],end:["Space","Enter","Tab"],up:["ArrowUp"],down:["ArrowDown"],left:["ArrowLeft"],right:["ArrowRight"]},preventActivation(t,e){var n;const r=null!=(n=e.handle)?n:e.element;return t.target!==r}}),fa=class extends rr{constructor(t,e){super(t),this.manager=t,this.options=e,Hs(this,ha,[]),this.listeners=new ai,this.handleSourceKeyDown=(t,e,n)=>{if(this.disabled||t.defaultPrevented)return;if(!ps(t.target))return;if(e.disabled)return;const{keyboardCodes:r=pa.keyboardCodes,preventActivation:i=pa.preventActivation}=null!=n?n:{};r.start.includes(t.code)&&this.manager.dragOperation.status.idle&&((null==i?void 0:i(t,e))||this.handleStart(t,e,n))}}bind(t,e=this.options){return W(()=>{var n;const r=null!=(n=t.handle)?n:t.element,i=n=>{fs(n)&&this.handleSourceKeyDown(n,t,e)};if(r)return r.addEventListener("keydown",i),()=>{r.removeEventListener("keydown",i)}})}handleStart(t,e,n){const{element:r}=e;if(!r)throw new Error("Source draggable does not have an associated element");t.preventDefault(),t.stopImmediatePropagation(),ns(r);const{center:i}=new us(r);if(this.manager.actions.start({event:t,coordinates:{x:i.x,y:i.y},source:e}).signal.aborted)return this.cleanup();this.sideEffects();const s=qr(r),o=[this.listeners.bind(s,[{type:"keydown",listener:t=>this.handleKeyDown(t,e,n),options:{capture:!0}}])];Ys(this,ha).push(...o)}handleKeyDown(t,e,n){const{keyboardCodes:r=pa.keyboardCodes}=null!=n?n:{};if(ba(t,[...r.end,...r.cancel])){t.preventDefault();const e=ba(t,r.cancel);return void this.handleEnd(t,e)}ba(t,r.up)?this.handleMove("up",t):ba(t,r.down)&&this.handleMove("down",t),ba(t,r.left)?this.handleMove("left",t):ba(t,r.right)&&this.handleMove("right",t)}handleEnd(t,e){this.manager.actions.stop({event:t,canceled:e}),this.cleanup()}handleMove(t,e){var n,r;const{shape:i}=this.manager.dragOperation,s=e.shiftKey?5:1;let o={x:0,y:0},a=null!=(r=null==(n=this.options)?void 0:n.offset)?r:pa.offset;if("number"==typeof a&&(a={x:a,y:a}),i){switch(t){case"up":o={x:0,y:-a.y*s};break;case"down":o={x:0,y:a.y*s};break;case"left":o={x:-a.x*s,y:0};break;case"right":o={x:a.x*s,y:0}}(o.x||o.y)&&(e.preventDefault(),this.manager.actions.move({event:e,by:o}))}}sideEffects(){const t=this.manager.registry.plugins.get(la);!1===(null==t?void 0:t.disabled)&&(t.disable(),Ys(this,ha).push(()=>{t.enable()}))}cleanup(){Ys(this,ha).forEach(t=>t()),Vs(this,ha,[])}destroy(){this.cleanup(),this.listeners.clear()}};ha=new WeakMap,fa.configure=Xe(fa),fa.defaults=pa;var ga,va,ma,ya=fa;function ba(t,e){return e.includes(t.code)}ga=new WeakMap,va=new WeakMap,ma=new WeakMap;var wa=class{};wa.Delay=class extends sr{constructor(){super(...arguments),Hs(this,va),Hs(this,ma)}onEvent(t){switch(t.type){case"pointerdown":Vs(this,ma,Kr(t)),Vs(this,va,setTimeout(()=>this.activate(t),this.options.value));break;case"pointermove":if(!Ys(this,ma))return;const{x:e,y:n}=Kr(t);oe({x:e-Ys(this,ma).x,y:n-Ys(this,ma).y},this.options.tolerance)&&this.abort();break;case"pointerup":this.abort()}}abort(){Ys(this,va)&&(clearTimeout(Ys(this,va)),Vs(this,ma,void 0),Vs(this,va,void 0))}},wa.Distance=class extends sr{constructor(){super(...arguments),Hs(this,ga)}onEvent(t){switch(t.type){case"pointerdown":Vs(this,ga,Kr(t));break;case"pointermove":if(!Ys(this,ga))return;const{x:e,y:n}=Kr(t),r={x:e-Ys(this,ga).x,y:n-Ys(this,ga).y},{tolerance:i}=this.options;if(i&&oe(r,i))return void this.abort();oe(r,this.options.value)&&this.activate(t);break;case"pointerup":this.abort()}}abort(){Vs(this,ga,void 0)}};var xa,Oa=Object.freeze({activationConstraints(t,e){var n;const{pointerType:r,target:i}=t;if("mouse"!==r||!ps(i)||e.handle!==i&&!(null==(n=e.handle)?void 0:n.contains(i)))return"touch"===r?[new wa.Delay({value:250,tolerance:5})]:function(t){if(!ps(t))return!1;const{tagName:e}=t;return"INPUT"===e||"TEXTAREA"===e||(n=t).hasAttribute("contenteditable")&&"false"!==n.getAttribute("contenteditable");var n}(i)&&!t.defaultPrevented?[new wa.Delay({value:200,tolerance:0})]:[new wa.Delay({value:200,tolerance:10}),new wa.Distance({value:5})]},preventActivation(t,e){var n;const{target:r}=t;if(r===e.element)return!1;if(r===e.handle)return!1;if(!ps(r))return!1;if(null==(n=e.handle)?void 0:n.contains(r))return!1;const i=r.closest('\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n a[href],\n [contenteditable]:not([contenteditable="false"])\n ');return i!==e.element&&Boolean(i)}}),ka=class extends rr{constructor(t,e){super(t),this.manager=t,this.options=e,Hs(this,xa,new Set),this.listeners=new ai,this.latest={event:void 0,coordinates:void 0},this.handleMove=()=>{const{event:t,coordinates:e}=this.latest;t&&e&&this.manager.actions.move({event:t,to:e})},this.handleCancel=this.handleCancel.bind(this),this.handlePointerUp=this.handlePointerUp.bind(this),this.handleKeyDown=this.handleKeyDown.bind(this)}activationConstraints(t,e,n=this.options){const{activationConstraints:r=Oa.activationConstraints}=null!=n?n:{};return"function"==typeof r?r(t,e):r}bind(t,e=this.options){return W(()=>{var n;const r=new AbortController,{signal:i}=r,s=n=>{(function(t){if(!t)return!1;const{PointerEvent:e}=Xr(t.target);return t instanceof e})(n)&&this.handlePointerDown(n,t,e)};let o=[null!=(n=t.handle)?n:t.element];(null==e?void 0:e.activatorElements)&&(o=Array.isArray(e.activatorElements)?e.activatorElements:e.activatorElements(t));for(const t of o)t&&(Pa(t.ownerDocument.defaultView),t.addEventListener("pointerdown",s,{signal:i}));return()=>r.abort()})}handlePointerDown(t,e,n){if(this.disabled||!t.isPrimary||0!==t.button||!ps(t.target)||e.disabled||function(t){return"sensor"in t}(t)||!this.manager.dragOperation.status.idle)return;const{preventActivation:r=Oa.preventActivation}=null!=n?n:{};if(null==r?void 0:r(t,e))return;const{target:i}=t,s=Hr(i)&&i.draggable&&"true"===i.getAttribute("draggable"),o=Ui(e.element),{x:a,y:l}=Kr(t);this.initialCoordinates={x:a*o.scaleX+o.x,y:l*o.scaleY+o.y};const c=this.activationConstraints(t,e,n);t.sensor=this;const u=new ir(c,t=>this.handleStart(e,t));u.signal.onabort=()=>this.handleCancel(t),u.onEvent(t),this.controller=u;const d=Jr(),h=this.listeners.bind(d,[{type:"pointermove",listener:t=>this.handlePointerMove(t,e)},{type:"pointerup",listener:this.handlePointerUp,options:{capture:!0}},{type:"pointercancel",listener:this.handleCancel},{type:"dragstart",listener:s?this.handleCancel:Ea,options:{capture:!0}}]);Ys(this,xa).add(()=>{h(),this.initialCoordinates=void 0})}handlePointerMove(t,e){var n,r;if(!1!==(null==(n=this.controller)?void 0:n.activated)){if(this.manager.dragOperation.status.dragging){const n=Kr(t),r=Ui(e.element);n.x=n.x*r.scaleX+r.x,n.y=n.y*r.scaleY+r.y,t.preventDefault(),t.stopPropagation(),this.latest.event=t,this.latest.coordinates=n,Li.schedule(this.handleMove)}}else null==(r=this.controller)||r.onEvent(t)}handlePointerUp(t){const{status:e}=this.manager.dragOperation;e.idle||(t.preventDefault(),t.stopPropagation(),this.manager.actions.stop({event:t,canceled:!e.initialized})),this.cleanup()}handleKeyDown(t){"Escape"===t.key&&(t.preventDefault(),this.handleCancel(t))}handleStart(t,e){const{manager:n,initialCoordinates:r}=this;if(!r||!n.dragOperation.status.idle)return;if(e.defaultPrevented)return;if(n.actions.start({coordinates:r,event:e,source:t}).signal.aborted)return this.cleanup();e.preventDefault();const i=qr(e.target).body;try{i.setPointerCapture(e.pointerId)}catch(t){return void this.handleCancel(e)}const s=ps(e.target)?[e.target,i]:i,o=this.listeners.bind(s,[{type:"touchmove",listener:Ea,options:{passive:!1}},{type:"click",listener:Ea},{type:"contextmenu",listener:Ea},{type:"keydown",listener:this.handleKeyDown}]);Ys(this,xa).add(o)}handleCancel(t){const{dragOperation:e}=this.manager;e.status.initialized&&this.manager.actions.stop({event:t,canceled:!0}),this.cleanup()}cleanup(){const{controller:t}=this;this.controller=void 0,t&&!t.signal.aborted&&t.abort(),this.latest={event:void 0,coordinates:void 0},Ys(this,xa).forEach(t=>t()),Ys(this,xa).clear()}destroy(){this.cleanup(),this.listeners.clear()}};xa=new WeakMap,ka.configure=Xe(ka),ka.defaults=Oa;var Sa=ka;function Ea(t){t.preventDefault()}function Da(){}var Ma=new WeakSet;function Pa(t){t&&!Ma.has(t)&&(t.addEventListener("touchmove",Da,{capture:!1,passive:!1}),Ma.add(t))}var Ca,Aa,Wa,Ia,ja,Ra,Ta,$a,Na,_a,za,La,Fa,Xa,Ya,Ha,Va={modifiers:[],plugins:[class extends He{constructor(t,e){super(t);const{id:n,idPrefix:{description:r=Bs,announcement:i=Us}={},announcements:s=Gs,screenReaderInstructions:o=Ks,debounce:a=500}=null!=e?e:{},l=n?`${r}-${n}`:vs(r),c=n?`${i}-${n}`:vs(i);let u,d,h,p;const f=(t=p)=>{h&&t&&(null==h?void 0:h.nodeValue)!==t&&(h.nodeValue=t)},g=()=>Li.schedule(f),v=function(t,e){let n;const r=()=>{clearTimeout(n),n=setTimeout(t,e)};return r.cancel=()=>clearTimeout(n),r}(g,a),m=Object.entries(s).map(([t,e])=>this.manager.monitor.addEventListener(t,(n,r)=>{const i=h;if(!i)return;const s=null==e?void 0:e(n,r);s&&i.nodeValue!==s&&(p=s,ho.includes(t)?v():(g(),v.cancel()))})),y=()=>{let t=[];(null==u?void 0:u.isConnected)||(u=function(t,e){const n=document.createElement("div");return n.id=t,n.style.setProperty("display","none"),n.textContent=e,n}(l,o.draggable),t.push(u)),(null==d?void 0:d.isConnected)||(d=function(t){const e=document.createElement("div");return e.id=t,e.setAttribute("role","status"),e.setAttribute("aria-live","polite"),e.setAttribute("aria-atomic","true"),e.style.setProperty("position","fixed"),e.style.setProperty("width","1px"),e.style.setProperty("height","1px"),e.style.setProperty("margin","-1px"),e.style.setProperty("border","0"),e.style.setProperty("padding","0"),e.style.setProperty("overflow","hidden"),e.style.setProperty("clip","rect(0 0 0 0)"),e.style.setProperty("clip-path","inset(100%)"),e.style.setProperty("white-space","nowrap"),e}(c),h=document.createTextNode(""),d.appendChild(h),t.push(d)),t.length>0&&document.body.append(...t)},b=new Set;function w(){for(const t of b)t()}this.registerEffect(()=>{var t;b.clear();for(const e of this.manager.registry.draggables.value){const n=null!=(t=e.handle)?t:e.element;if(n){u&&d||b.add(y),Js(n)&&!Zr()||n.hasAttribute("tabindex")||b.add(()=>n.setAttribute("tabindex","0")),n.hasAttribute("role")||"button"===n.tagName.toLowerCase()||b.add(()=>n.setAttribute("role","button")),n.hasAttribute("aria-roledescription")||b.add(()=>n.setAttribute("aria-roledescription","draggable")),n.hasAttribute("aria-describedby")||b.add(()=>n.setAttribute("aria-describedby",l));for(const t of["aria-pressed","aria-grabbed"]){const r=String(e.isDragging);n.getAttribute(t)!==r&&b.add(()=>n.setAttribute(t,r))}const t=String(e.disabled);n.getAttribute("aria-disabled")!==t&&b.add(()=>n.setAttribute("aria-disabled",t))}}b.size>0&&Li.schedule(w)}),this.destroy=()=>{super.destroy(),null==u||u.remove(),null==d||d.remove(),m.forEach(t=>t())}}},la,class extends He{constructor(t,e){super(t,e),this.manager=t;const{cursor:n="grabbing"}=null!=e?e:{},r=t.registry.plugins.get(go),i=null==r?void 0:r.register(`* { cursor: ${n} !important; }`);if(i){const t=this.destroy.bind(this);this.destroy=()=>{i(),t()}}}},Ho,class extends He{constructor(t){super(t),this.manager=t;const e=t.registry.plugins.get(go),n=null==e?void 0:e.register("* { user-select: none !important; -webkit-user-select: none !important; }");if(this.destroy=W(()=>{const{dragOperation:t}=this.manager;if(t.status.initialized)return da(),document.addEventListener("selectionchange",da,{capture:!0}),()=>{document.removeEventListener("selectionchange",da,{capture:!0})}}),n){const t=this.destroy.bind(this);this.destroy=()=>{n(),t()}}}}],sensors:[Sa,ya]},qa=class extends Ar{constructor(t={}){const e=Cr(t.plugins,Va.plugins),n=Cr(t.sensors,Va.sensors),r=Cr(t.modifiers,Va.modifiers);super(Ws(As({},t),{plugins:[ua,ra,go,...e],sensors:n,modifiers:r}))}},Ba=class extends(Wa=Nn,Aa=[St],Ca=[St],Wa){constructor(t,e){var n=t,{element:r,effects:i=()=>[],handle:s}=n,o=js(n,["element","effects","handle"]);super(As({effects:()=>[...i(),()=>{var t,e;const{manager:n}=this;if(!n)return;const r=(null!=(e=null==(t=this.sensors)?void 0:t.map(Ye))?e:[...n.sensors]).map(t=>(t instanceof rr?t:n.registry.register(t.plugin)).bind(this,t instanceof rr?void 0:t.options));return function(){r.forEach(t=>t())}}]},o),e),Hs(this,ja,zs(Ia,8,this)),zs(Ia,11,this),Hs(this,Ra,zs(Ia,12,this)),zs(Ia,15,this),this.element=r,this.handle=s}};Ia=Rs(Wa),ja=new WeakMap,Ra=new WeakMap,Ls(Ia,4,"handle",Aa,Ba,ja),Ls(Ia,4,"element",Ca,Ba,Ra),_s(Ia,Ba);var Ua=class extends(Na=_n,$a=[St],Ta=[St],Na){constructor(t,e){var n=t,{element:r,effects:i=()=>[]}=n,s=js(n,["element","effects"]);const{collisionDetector:o=ms}=s,a=t=>{const{manager:e,element:n}=this;if(!n||null===t)return void(this.shape=void 0);if(!e)return;const r=new us(n),i=d(()=>this.shape);return r&&(null==i?void 0:i.equals(r))?i:(this.shape=r,r)},l=x(!1);super(Ws(As({},s),{collisionDetector:o,effects:()=>[...i(),()=>{const{element:t,manager:e}=this;if(!e)return;const{dragOperation:n}=e,{source:r}=n;l.value=Boolean(r&&n.status.initialized&&t&&!this.disabled&&this.accepts(r))},()=>{const{element:t}=this;if(l.value&&t){const e=new ji(t,a);return()=>{e.disconnect(),this.shape=void 0}}},()=>{var t;if(null==(t=this.manager)?void 0:t.dragOperation.status.initialized)return()=>{this.shape=void 0}}]}),e),Hs(this,Ya),Hs(this,za,zs(_a,8,this)),zs(_a,11,this),Hs(this,Ha,zs(_a,12,this)),zs(_a,15,this),this.element=r,this.refreshShape=()=>a()}set element(t){Vs(this,Ya,t,Xa)}get element(){var t;return null!=(t=this.proxy)?t:Ys(this,Ya,Fa)}};_a=Rs(Na),za=new WeakMap,Ya=new WeakSet,Ha=new WeakMap,La=Ls(_a,20,"#element",$a,Ya,za),Fa=La.get,Xa=La.set,Ls(_a,4,"proxy",Ta,Ua,Ha),_s(_a,Ua);var Ka=n("react-dom");function Ga(t){var e;if(null!=t)return function(t){return null!=t&&"object"==typeof t&&"current"in t}(t)?null!=(e=t.current)?e:void 0:t}var Ja="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?i.useLayoutEffect:i.useEffect;function Za(){const t=(0,i.useState)(0)[1];return(0,i.useCallback)(()=>{t(t=>t+1)},[t])}function Qa(t,e){const n=(0,i.useRef)(new Map),r=Za();return Ja(()=>{if(t)return W(()=>{var i;let s=!1,o=!1;for(const r of n.current){const[a]=r,l=d(()=>r[1]),c=t[a];l!==c&&(s=!0,n.current.set(a,c),o=null!=(i=null==e?void 0:e(a,l,c))&&i)}s&&(o?queueMicrotask(()=>(0,Ka.flushSync)(r)):r())});n.current.clear()},[t]),(0,i.useMemo)(()=>t?new Proxy(t,{get(t,e){const r=t[e];return n.current.set(e,r),r}}):t,[t])}function tl(t,e){t()}function el(t){const e=(0,i.useRef)(t);return Ja(()=>{e.current=t},[t]),e}function nl(t,e,n=i.useEffect,r=Object.is){const s=(0,i.useRef)(t);n(()=>{const n=s.current;r(t,n)||(s.current=t,e(t,n))},[e,t])}function rl(t,e){const n=(0,i.useRef)(Ga(t));Ja(()=>{const r=Ga(t);r!==n.current&&(n.current=r,e(r))})}var il=Object.defineProperty,sl=Object.defineProperties,ol=Object.getOwnPropertyDescriptors,al=Object.getOwnPropertySymbols,ll=Object.prototype.hasOwnProperty,cl=Object.prototype.propertyIsEnumerable,ul=(t,e,n)=>e in t?il(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,dl=(t,e)=>{for(var n in e||(e={}))ll.call(e,n)&&ul(t,n,e[n]);if(al)for(var n of al(e))cl.call(e,n)&&ul(t,n,e[n]);return t},hl=(t,e)=>sl(t,ol(e)),pl=new qa,fl=(0,i.createContext)(pl),gl=(0,i.memo)((0,i.forwardRef)(({children:t},e)=>{const[n,r]=(0,i.useState)(0),s=(0,i.useRef)(null),o=(0,i.useRef)(null),a=(0,i.useMemo)(()=>({renderer:{get rendering(){var t;return null!=(t=s.current)?t:Promise.resolve()}},trackRendering(t){s.current||(s.current=new Promise(t=>{o.current=t})),(0,i.startTransition)(()=>{t(),r(t=>t+1)})}}),[]);return Ja(()=>{var t;null==(t=o.current)||t.call(o),s.current=null},[t,n]),(0,i.useImperativeHandle)(e,()=>a),null})),vl=[void 0,kt];function ml(t){var e=t,{children:n,onCollision:s,onBeforeDragStart:o,onDragStart:a,onDragMove:l,onDragOver:c,onDragEnd:u}=e,d=((t,e)=>{var n={};for(var r in t)ll.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&al)for(var r of al(t))e.indexOf(r)<0&&cl.call(t,r)&&(n[r]=t[r]);return n})(e,["children","onCollision","onBeforeDragStart","onDragStart","onDragMove","onDragOver","onDragEnd"]);const h=(0,i.useRef)(null),{plugins:p,modifiers:f,sensors:g}=d,v=Cr(p,Va.plugins),m=Cr(g,Va.sensors),y=Cr(f,Va.modifiers),b=el(o),w=el(a),x=el(c),O=el(l),k=el(u),S=el(s),E=function(){const t=(0,i.useRef)(null);return t.current||(t.current=(()=>{var t;return null!=(t=d.manager)?t:new qa(d)})()),(0,i.useInsertionEffect)(()=>()=>{var e;return null==(e=t.current)?void 0:e.destroy()},[]),t.current}();return(0,i.useEffect)(()=>{if(!h.current)throw new Error("Renderer not found");const{renderer:t,trackRendering:e}=h.current,{monitor:n}=E;E.renderer=t;const r=[n.addEventListener("beforedragstart",t=>{const n=b.current;n&&e(()=>n(t,E))}),n.addEventListener("dragstart",t=>{var e;return null==(e=w.current)?void 0:e.call(w,t,E)}),n.addEventListener("dragover",t=>{const n=x.current;n&&e(()=>n(t,E))}),n.addEventListener("dragmove",t=>{const n=O.current;n&&e(()=>n(t,E))}),n.addEventListener("dragend",t=>{const n=k.current;n&&e(()=>n(t,E))}),n.addEventListener("collision",t=>{var e;return null==(e=S.current)?void 0:e.call(S,t,E)})];return()=>r.forEach(t=>t())},[E]),nl(v,()=>E&&(E.plugins=v),...vl),nl(m,()=>E&&(E.sensors=m),...vl),nl(y,()=>E&&(E.modifiers=y),...vl),(0,r.jsxs)(fl.Provider,{value:E,children:[(0,r.jsx)(gl,{ref:h,children:n}),n]})}function yl(){return(0,i.useContext)(fl)}function bl(t){var e;const n=null!=(e=yl())?e:void 0,[r]=(0,i.useState)(()=>t(n));return r.manager!==n&&(r.manager=n),Ja(r.register,[n,r]),r}function wl(t,e,n){return!("isDragSource"!==t||n||!e)}function xl({children:t,className:e,dropAnimation:n,style:s,tag:o,disabled:a}){var l;const c=(0,i.useRef)(null),u=yl(),d=null!=(l=function(t,e=[],n=!1){const r=(0,i.useRef)(t);return r.current=t,function(t,e=!1){const n=(0,i.useRef)(t.peek()),r=(0,i.useRef)(!1),s=Za();return Ja(()=>W(()=>{const i=t.value;if(n.current!==i){if(n.current=i,!r.current)return;e?(0,Ka.flushSync)(s):s()}}),[t,e,s]),{get value(){return r.current=!0,t.peek()}}}((0,i.useMemo)(()=>Ot(()=>r.current()),e),n)}(()=>null==u?void 0:u.dragOperation.source,[u]).value)?l:null,h="function"==typeof a?a(d):a;(0,i.useEffect)(()=>{if(!c.current||!u||h)return;const t=u.plugins.find(t=>t instanceof Ho);return t?(t.overlay=c.current,()=>{t.overlay=void 0}):void 0},[u,h]),(0,i.useEffect)(()=>{if(!u)return;const t=u.plugins.find(t=>t instanceof Ho);return t?(t.dropAnimation=n,()=>{t.dropAnimation=void 0}):void 0},[u,n]);const p=(0,i.useMemo)(()=>{if(!u)return null;const t=new Proxy(u.registry,{get:(t,e)=>"register"===e||"unregister"===e?Ol:t[e]});return new Proxy(u,{get:(e,n)=>"registry"===n?t:e[n]})},[u]);return(0,r.jsx)(fl.Provider,{value:p,children:(0,i.createElement)(o||"div",{ref:c,className:e,style:s,"data-dnd-overlay":!0},!d||h?null:"function"==typeof t?(0,r.jsx)(kl,{source:d,children:t}):t)})}function Ol(){return()=>{}}function kl({children:t,source:e}){return t(Qa(e))}var Sl,El,Dl,Ml,Pl,Cl,Al,Wl,Il,jl=Object.create,Rl=Object.defineProperty,Tl=Object.getOwnPropertyDescriptor,$l=(t,e)=>(e=Symbol[t])?e:Symbol.for("Symbol."+t),Nl=t=>{throw TypeError(t)},_l=["class","method","getter","setter","accessor","field","value","get","set"],zl=t=>void 0!==t&&"function"!=typeof t?Nl("Function expected"):t,Ll=(t,e,n,r,i)=>({kind:_l[t],name:e,metadata:r,addInitializer:t=>n._?Nl("Already initialized"):i.push(zl(t||null))}),Fl=(t,e,n,r,i,s)=>{for(var o,a,l,c,u=7&e,d=_l[u+5],h=t[2]||(t[2]=[]),p=Tl(i=i.prototype,n),f=r.length-1;f>=0;f--)(l=Ll(u,n,a={},t[3],h)).static=!1,l.private=!1,c=l.access={has:t=>n in t},c.get=t=>t[n],o=(0,r[f])(p[d],l),a._=1,zl(o)&&(p[d]=o);return p&&Rl(i,n,p),i},Xl=(t,e,n)=>e.has(t)||Nl("Cannot "+n),Yl=class t{constructor(t,e){this.x=t,this.y=e}static delta(e,n){return new t(e.x-n.x,e.y-n.y)}static distance(t,e){return Math.hypot(t.x-e.x,t.y-e.y)}static equals(t,e){return t.x===e.x&&t.y===e.y}static from({x:e,y:n}){return new t(e,n)}},Hl=class extends(Dl=Ct,El=[Et],Sl=[Et],Dl){constructor(t){var e;super(Yl.from(t),(t,e)=>Yl.equals(t,e)),((t,e,n)=>{for(var r=0,i=t[2],s=i&&i.length;r<s;r++)i[r].call(n)})(Pl,0,this),(e=Ml).has(this)?Nl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(this):e.set(this,0),this.velocity={x:0,y:0}}get delta(){return Yl.delta(this.current,this.initial)}get direction(){const{current:t,previous:e}=this;if(!e)return null;const n={x:t.x-e.x,y:t.y-e.y};return n.x||n.y?Math.abs(n.x)>Math.abs(n.y)?n.x>0?"right":"left":n.y>0?"down":"up":null}get current(){return super.current}set current(t){const{current:e}=this,n=Yl.from(t),r={x:n.x-e.x,y:n.y-e.y},i=Date.now(),s=i-(Xl(this,o=Ml,"read from private field"),o.get(this));var o;const a=t=>Math.round(t/s*100);l(()=>{((t,e,n)=>{Xl(t,e,"write to private field"),e.set(t,n)})(this,Ml,i),this.velocity={x:a(r.x),y:a(r.y)},super.current=n})}reset(t=this.defaultValue){super.reset(Yl.from(t)),this.velocity={x:0,y:0}}};Pl=(t=>{var e;return[,,,jl(null!=(e=null==t?void 0:t[$l("metadata")])?e:null)]})(Dl),Ml=new WeakMap,Fl(Pl,2,"delta",El,Hl),Fl(Pl,2,"direction",Sl,Hl),Cl=Pl,Al=Hl,Wl=$l("metadata"),Il=Cl[3],Wl in Al?Rl(Al,Wl,{enumerable:!0,configurable:!0,writable:!0,value:Il}):Al[Wl]=Il;var Vl=(t=>(t.Horizontal="x",t.Vertical="y",t))(Vl||{});Object.values(Vl);var ql=t=>{var e;return null!=(e=(({dragOperation:t,droppable:e})=>{const n=t.position.current;if(!n)return null;const{id:r}=e;return e.shape&&e.shape.containsPoint(n)?{id:r,value:1/Yl.distance(e.shape.center,n),type:Qn.PointerIntersection,priority:Zn.High}:null})(t))?e:(({dragOperation:t,droppable:e})=>{const{shape:n}=t;if(!e.shape||!(null==n?void 0:n.current))return null;const r=n.current.intersectionArea(e.shape);if(r){const{position:i}=t,s=Yl.distance(e.shape.center,i.current);return{id:e.id,value:r/(n.current.area+e.shape.area-r)/s,type:Qn.ShapeIntersection,priority:Zn.Normal}}return null})(t)},Bl=Object.create,Ul=Object.defineProperty,Kl=Object.defineProperties,Gl=Object.getOwnPropertyDescriptor,Jl=Object.getOwnPropertyDescriptors,Zl=Object.getOwnPropertySymbols,Ql=Object.prototype.hasOwnProperty,tc=Object.prototype.propertyIsEnumerable,ec=t=>{throw TypeError(t)},nc=(t,e,n)=>e in t?Ul(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,rc=(t,e)=>{for(var n in e||(e={}))Ql.call(e,n)&&nc(t,n,e[n]);if(Zl)for(var n of Zl(e))tc.call(e,n)&&nc(t,n,e[n]);return t},ic=(t,e)=>Kl(t,Jl(e)),sc=["class","method","getter","setter","accessor","field","value","get","set"],oc=t=>void 0!==t&&"function"!=typeof t?ec("Function expected"):t,ac=(t,e,n,r,i)=>({kind:sc[t],name:e,metadata:r,addInitializer:t=>n._?ec("Already initialized"):i.push(oc(t||null))}),lc=(t,e,n,r)=>{for(var i=0,s=t[e>>1],o=s&&s.length;i<o;i++)1&e?s[i].call(n):r=s[i].call(n,r);return r},cc=(t,e,n,r,i,s)=>{for(var o,a,l,c,u,d=7&e,h=t.length+1,p=sc[d+5],f=t[h-1]=[],g=t[h]||(t[h]=[]),v=(i=i.prototype,Gl({get[n](){return dc(this,s)},set[n](t){return pc(this,s,t)}},n)),m=r.length-1;m>=0;m--)(c=ac(d,n,l={},t[3],g)).static=!1,c.private=!1,u=c.access={has:t=>n in t},u.get=t=>t[n],u.set=(t,e)=>t[n]=e,a=(0,r[m])({get:v.get,set:v.set},c),l._=1,void 0===a?oc(a)&&(v[p]=a):"object"!=typeof a||null===a?ec("Object expected"):(oc(o=a.get)&&(v.get=o),oc(o=a.set)&&(v.set=o),oc(o=a.init)&&f.unshift(o));return v&&Ul(i,n,v),i},uc=(t,e,n)=>e.has(t)||ec("Cannot "+n),dc=(t,e,n)=>(uc(t,e,"read from private field"),e.get(t)),hc=(t,e,n)=>e.has(t)?ec("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),pc=(t,e,n,r)=>(uc(t,e,"write to private field"),e.set(t,n),n);function fc(t){return t instanceof Uc||t instanceof Bc}var gc=Object.defineProperty,vc=Object.defineProperties,mc=Object.getOwnPropertyDescriptors,yc=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,wc=Object.prototype.propertyIsEnumerable,xc=(t,e,n)=>e in t?gc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Oc=(t,e)=>{for(var n in e||(e={}))bc.call(e,n)&&xc(t,n,e[n]);if(yc)for(var n of yc(e))wc.call(e,n)&&xc(t,n,e[n]);return t},kc=(t,e)=>vc(t,mc(e));function Sc(t,e,n){if(e===n)return t;const r=t.slice();return r.splice(n,0,r.splice(e,1)[0]),r}function Ec(t,e){const n=String(e);return Object.prototype.hasOwnProperty.call(t,n)?n:void 0}function Dc(t){return"initialIndex"in t&&"number"==typeof t.initialIndex&&"index"in t&&"number"==typeof t.index}function Mc(t){const e=new Map;for(const[,n]of t)for(const t of n)e.set(t.id,t.index);return e}function Pc(t,e,n){var r;for(const[i,s]of e)for(const e of s){const s=t.get(e.id);if(e.index!==s||e.group!==i||!(null==(r=n.get(i))?void 0:r.has(e)))return!0}return!1}var Cc="__default__";function Ac(t,e,n,r){n.insertAdjacentElement(r<e?"afterend":"beforebegin",t)}function Wc(t,e){return t.index-e.index}function Ic(t,e){return t.initialIndex-e.initialIndex}function jc(t,e=Wc){return Array.from(t).sort(e)}var Rc=[class extends He{constructor(t){super(t);const e=W(()=>{const{dragOperation:e}=t;if(fs(e.activatorEvent)&&fc(e.source)&&e.status.initialized){const e=t.registry.plugins.get(ra);if(e)return e.disable(),()=>e.enable()}}),n=t.monitor.addEventListener("dragmove",(t,e)=>{queueMicrotask(()=>{if(this.disabled||t.defaultPrevented||!t.nativeEvent)return;const{dragOperation:n}=e;if(!fs(t.nativeEvent))return;if(!fc(n.source))return;if(!n.shape)return;const{actions:r,collisionObserver:i,registry:s}=e,{by:o}=t;if(!o)return;const a=function(t){const{x:e,y:n}=t;return e>0?"right":e<0?"left":n>0?"down":n<0?"up":void 0}(o),{source:c,target:u}=n,{center:d}=n.shape.current,h=[],p=[];l(()=>{for(const t of s.droppables){const{id:e}=t;if(!t.accepts(c)||e===(null==u?void 0:u.id)&&fc(t)||!t.element)continue;let n=t.shape;const r=new us(t.element,{getBoundingClientRect:t=>Ur(t,void 0,.2)});r.height&&r.width&&("down"==a&&d.y+10<r.center.y||"up"==a&&d.y-10>r.center.y||"left"==a&&d.x-10>r.center.x||"right"==a&&d.x+10<r.center.x)&&(h.push(t),t.shape=r,p.push(()=>t.shape=n))}}),t.preventDefault(),i.disable();const f=i.computeCollisions(h,ys);l(()=>p.forEach(t=>t()));const[g]=f;if(!g)return;const{id:v}=g,{index:m,group:y}=c.sortable;r.setDropTarget(v).then(()=>{const{source:t,target:e,shape:s}=n;if(!t||!fc(t)||!s)return;const{index:o,group:a,target:l}=t.sortable,c=m!==o||y!==a,u=c?l:null==e?void 0:e.element;if(!u)return;ns(u);const d=new us(u);if(!d)return;const h=ie.delta(d,ie.from(s.current.boundingRectangle),t.alignment);r.move({by:h}),c?r.setDropTarget(t.id).then(()=>i.enable()):i.enable()})})});this.destroy=()=>{n(),e()}}},class extends He{constructor(t){super(t);const e=()=>{const e=new Map;for(const n of t.registry.droppables)if(n instanceof Uc){const{sortable:t}=n,{group:r}=t;let i=e.get(r);i||(i=new Set,e.set(r,i)),i.add(t)}return e},n=[t.monitor.addEventListener("dragover",(t,n)=>{if(this.disabled)return;const{dragOperation:r}=n,{source:i,target:s}=r;if(!fc(i)||!fc(s))return;if(i.sortable===s.sortable)return;const o=e(),a=Mc(o),c=i.sortable.group===s.sortable.group,u=o.get(i.sortable.group),d=c?u:o.get(s.sortable.group);u&&d&&queueMicrotask(()=>{t.defaultPrevented||n.renderer.rendering.then(()=>{var r,h;const p=e();if(Pc(a,o,p))return;const f=i.sortable.element,g=s.sortable.element;if(!g||!f)return;if(!c&&s.id===i.sortable.group)return;const v=jc(u),m=c?v:jc(d),y=null!=(r=i.sortable.group)?r:Cc,b=null!=(h=s.sortable.group)?h:Cc,w={[y]:v,[b]:m},x=function(t,e){return function(t,e,n){var r,i;const{source:s,target:o,canceled:a}=e.operation;if(!s||!o||a)return"preventDefault"in e&&e.preventDefault(),t;const l=(t,e)=>t===e||null!==t&&"object"==typeof t&&"id"in t&&t.id===e;if(Array.isArray(t)){const r=t.findIndex(t=>l(t,s.id)),i=t.findIndex(t=>l(t,o.id));if(-1===r||-1===i){if(Dc(s)){const r=s.initialIndex,i=s.index;return r===i||r<0||r>=t.length?("preventDefault"in e&&e.preventDefault(),t):n(t,r,i)}return t}if(!a&&"index"in s&&"number"==typeof s.index){const e=s.index;if(e!==r)return n(t,r,e)}return n(t,r,i)}const c=Object.entries(t);let u,d,h=-1,p=-1;for(const[t,e]of c)if(-1===h&&(h=e.findIndex(t=>l(t,s.id)),-1!==h&&(u=t)),-1===p&&(p=e.findIndex(t=>l(t,o.id)),-1!==p&&(d=t)),-1!==h&&-1!==p)break;if(-1===h&&Dc(s)){const r=null==s.initialGroup?void 0:Ec(t,s.initialGroup),i=s.initialIndex,o=null==s.group?void 0:Ec(t,s.group),a=s.index;if(null==r||null==o)return"preventDefault"in e&&e.preventDefault(),t;if(r===o&&i===a)return"preventDefault"in e&&e.preventDefault(),t;if(r===o)return kc(Oc({},t),{[r]:n(t[r],i,a)});const l=t[r][i];return kc(Oc({},t),{[r]:[...t[r].slice(0,i),...t[r].slice(i+1)],[o]:[...t[o].slice(0,a),l,...t[o].slice(a)]})}if(!s.manager)return t;const{dragOperation:f}=s.manager,g=null!=(i=null==(r=f.shape)?void 0:r.current.center)?i:f.position.current;if(null==d){const e=Ec(t,o.id);null!=e&&(d=e,p=o.shape&&g.y>o.shape.center.y?t[e].length:0)}if(null==u||null==d||u===d&&h===p){if(null!=u&&u===d&&h===p&&Dc(s)){const e=null==s.group?void 0:Ec(t,s.group);if(null!=s.group&&e!==u||s.index!==h){const r=null==s.group?u:e;if(null!=r){if(u===r)return kc(Oc({},t),{[u]:n(t[u],h,s.index)});const e=t[u][h];return kc(Oc({},t),{[u]:[...t[u].slice(0,h),...t[u].slice(h+1)],[r]:[...t[r].slice(0,s.index),e,...t[r].slice(s.index)]})}}}return"preventDefault"in e&&e.preventDefault(),t}if(u===d)return kc(Oc({},t),{[u]:n(t[u],h,p)});const v=o.shape&&Math.round(g.y)>Math.round(o.shape.center.y)?1:0,m=t[u][h];return kc(Oc({},t),{[u]:[...t[u].slice(0,h),...t[u].slice(h+1)],[d]:[...t[d].slice(0,p+v),m,...t[d].slice(p+v)]})}(t,e,Sc)}(w,t);if(w===x)return;const O=x[b].indexOf(i.sortable),k=x[b].indexOf(s.sortable);n.collisionObserver.disable(),Ac(f,O,g,k),l(()=>{for(const[t,e]of x[y].entries())e.index=t;if(!c)for(const[t,e]of x[b].entries())e.group=s.sortable.group,e.index=t}),n.actions.setDropTarget(i.id).then(()=>n.collisionObserver.enable())})})}),t.monitor.addEventListener("dragend",(t,n)=>{if(!t.canceled)return;const{dragOperation:r}=n,{source:i}=r;fc(i)&&(i.sortable.initialIndex===i.sortable.index&&i.sortable.initialGroup===i.sortable.group||queueMicrotask(()=>{const t=e(),r=Mc(t),s=t.get(i.sortable.initialGroup);s&&n.renderer.rendering.then(()=>{const n=e();if(Pc(r,t,n))return;const o=jc(s),a=jc(s,Ic),c=i.sortable.element,u=o[a.indexOf(i.sortable)],d=null==u?void 0:u.element;u&&d&&c&&(Ac(c,u.index,d,i.index),l(()=>{for(const e of t.values()){const t=Array.from(e).values();for(const e of t)e.index=e.initialIndex,e.group=e.initialGroup}}))})}))})];this.destroy=()=>{for(const t of n)t()}}}],Tc={duration:250,easing:"cubic-bezier(0.25, 1, 0.5, 1)",idle:!1};function $c(t){var e,n;return"boolean"==typeof t?{draggable:t,droppable:t}:{draggable:null!=(e=null==t?void 0:t.draggable)&&e,droppable:null!=(n=null==t?void 0:t.droppable)&&n}}var Nc,_c,zc,Lc,Fc,Xc,Yc,Hc,Vc=new class{constructor(){bt(this,Pt,new WeakMap)}get(t,e){var n;return t?null==(n=yt(this,Pt).get(t))?void 0:n.get(e):void 0}set(t,e,n){var r;if(t)return yt(this,Pt).has(t)||yt(this,Pt).set(t,new Map),null==(r=yt(this,Pt).get(t))?void 0:r.set(e,n)}clear(t){var e;return t?null==(e=yt(this,Pt).get(t))?void 0:e.clear():void 0}};_c=[St],Nc=[St];var qc=class{constructor(t,e){hc(this,Lc,lc(zc,8,this)),lc(zc,11,this),hc(this,Fc),hc(this,Xc),hc(this,Yc,lc(zc,12,this)),lc(zc,15,this),hc(this,Hc),this.register=()=>(l(()=>{var t,e;null==(t=this.manager)||t.registry.register(this.droppable),null==(e=this.manager)||e.registry.register(this.draggable)}),()=>this.unregister()),this.unregister=()=>{l(()=>{var t,e;null==(t=this.manager)||t.registry.unregister(this.droppable),null==(e=this.manager)||e.registry.unregister(this.draggable)})},this.destroy=()=>{l(()=>{this.droppable.destroy(),this.draggable.destroy()})};var n=t,{effects:r=()=>[],disabled:i,group:s,index:o,sensors:a,type:c,transition:u=Tc,plugins:h}=n,p=((t,e)=>{var n={};for(var r in t)Ql.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&Zl)for(var r of Zl(t))e.indexOf(r)<0&&tc.call(t,r)&&(n[r]=t[r]);return n})(n,["effects","disabled","group","index","sensors","type","transition","plugins"]);const f=Cr(h,Rc),g=$c(i);this.droppable=new Uc(ic(rc({},p),{disabled:g.droppable}),e,this),this.draggable=new Bc(ic(rc({},p),{disabled:g.draggable,plugins:f,effects:()=>[()=>{var t,e,n;const r=null==(t=this.manager)?void 0:t.dragOperation.status;(null==r?void 0:r.initializing)&&this.id===(null==(n=null==(e=this.manager)?void 0:e.dragOperation.source)?void 0:n.id)&&Vc.clear(this.manager),(null==r?void 0:r.dragging)&&Vc.set(this.manager,this.id,d(()=>({initialIndex:this.index,initialGroup:this.group})))},()=>{const{index:t,group:e}=this,n=dc(this,Xc),r=dc(this,Fc);t===n&&e===r||(pc(this,Xc,t),pc(this,Fc,e),this.animate())},()=>{var t,e;const{target:n}=this,{isDragSource:r}=this.draggable;"move"===(null!=(e=null==(t=this.draggable.pluginConfig(Ho))?void 0:t.feedback)?e:"default")&&r&&(this.droppable.disabled=!n)},...r()],type:c,sensors:a}),e,this),pc(this,Hc,p.element),this.manager=e,this.index=o,pc(this,Xc,o),this.group=s,pc(this,Fc,s),this.type=c,this.transition=u}get initialIndex(){var t,e;return null!=(e=null==(t=Vc.get(this.manager,this.id))?void 0:t.initialIndex)?e:this.index}get initialGroup(){var t,e;return null!=(e=null==(t=Vc.get(this.manager,this.id))?void 0:t.initialGroup)?e:this.group}animate(){d(()=>{const{manager:t,transition:e}=this,{shape:n}=this.droppable;if(!t)return;const{idle:r}=t.dragOperation.status;n&&e&&(!r||e.idle)&&t.renderer.rendering.then(()=>{const{element:r}=this;if(!r)return;for(const t of r.getAnimations())!("transitionProperty"in t)||"transform"!==t.transitionProperty&&"translate"!==t.transitionProperty&&"scale"!==t.transitionProperty||t.cancel();const i=this.refreshShape();if(!i)return;const s=n.boundingRectangle.left-i.boundingRectangle.left,o=n.boundingRectangle.top-i.boundingRectangle.top,{translate:a}=Hi(r),l=os(r,a,!1),c=os(r,a);if(s||o){const n=ni(Xr(r))?ic(rc({},e),{duration:0}):e;ss({element:r,keyframes:{translate:[`${l.x+s}px ${l.y+o}px ${l.z}`,`${c.x}px ${c.y}px ${c.z}`]},options:n}).then(()=>{t.dragOperation.status.dragging||(this.droppable.shape=void 0)})}})})}get manager(){return this.draggable.manager}set manager(t){l(()=>{this.draggable.manager=t,this.droppable.manager=t})}set element(t){l(()=>{const e=dc(this,Hc),n=this.droppable.element,r=this.draggable.element;n&&n!==e||(this.droppable.element=t),r&&r!==e||(this.draggable.element=t),pc(this,Hc,t)})}get element(){var t,e;const n=dc(this,Hc);if(n)return null!=(e=null!=(t=oi.get(n))?t:n)?e:this.droppable.element}set target(t){this.droppable.element=t}get target(){return this.droppable.element}set source(t){this.draggable.element=t}get source(){return this.draggable.element}get disabled(){const{disabled:t}=this.draggable,{disabled:e}=this.droppable;return t===e?t:{draggable:t,droppable:e}}set plugins(t){this.draggable.plugins=Cr(t,Rc)}set disabled(t){const e=$c(t);l(()=>{this.droppable.disabled=e.droppable,this.draggable.disabled=e.draggable})}set data(t){l(()=>{this.droppable.data=t,this.draggable.data=t})}set handle(t){this.draggable.handle=t}set id(t){this.droppable.id=t,this.draggable.id=t}get id(){return this.droppable.id}set sensors(t){this.draggable.sensors=t}set modifiers(t){this.draggable.modifiers=t}set collisionPriority(t){this.droppable.collisionPriority=t}set collisionDetector(t){this.droppable.collisionDetector=null!=t?t:ms}set alignment(t){this.draggable.alignment=t}get alignment(){return this.draggable.alignment}set type(t){l(()=>{this.droppable.type=t,this.draggable.type=t})}get type(){return this.draggable.type}set accept(t){this.droppable.accept=t}get accept(){return this.droppable.accept}get isDropTarget(){return this.droppable.isDropTarget}get isDragSource(){return this.draggable.isDragSource}get isDragging(){return this.draggable.isDragging}get isDropping(){return this.draggable.isDropping}get status(){return this.draggable.status}refreshShape(){return this.droppable.refreshShape()}accepts(t){return this.droppable.accepts(t)}};zc=[,,,Bl(null)],Lc=new WeakMap,Fc=new WeakMap,Xc=new WeakMap,Yc=new WeakMap,Hc=new WeakMap,cc(zc,4,"index",_c,qc,Lc),cc(zc,4,"group",Nc,qc,Yc),((t,e)=>{return nc(e,(n="metadata",(r=Symbol[n])?r:Symbol.for("Symbol."+n)),t[3]);var n,r})(zc,qc);var Bc=class extends Ba{constructor(t,e,n){super(t,e),this.sortable=n}get index(){return this.sortable.index}get initialIndex(){return this.sortable.initialIndex}get group(){return this.sortable.group}get initialGroup(){return this.sortable.initialGroup}},Uc=class extends Ua{constructor(t,e,n){super(t,e),this.sortable=n}get index(){return this.sortable.index}get group(){return this.sortable.group}},Kc=Object.defineProperty,Gc=Object.defineProperties,Jc=Object.getOwnPropertyDescriptors,Zc=Object.getOwnPropertySymbols,Qc=Object.prototype.hasOwnProperty,tu=Object.prototype.propertyIsEnumerable,eu=(t,e,n)=>e in t?Kc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,nu=(t,e)=>{for(var n in e||(e={}))Qc.call(e,n)&&eu(t,n,e[n]);if(Zc)for(var n of Zc(e))tu.call(e,n)&&eu(t,n,e[n]);return t};function ru(t,e,n){return!("isDragSource"!==t||n||!e)}var iu=function(){return iu=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},iu.apply(this,arguments)},su=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},ou=["dragStart","dragOver","dragEnd"],au=function(t){return"object"==typeof t&&null!==t?t:null},lu=function(t){return"string"==typeof t||"number"==typeof t?t:null},cu=function(t){var e=au(t);return e&&"number"==typeof e.x&&"number"==typeof e.y?{x:e.x,y:e.y}:null},uu=function(t,e,n){if(void 0===e&&(e=new WeakSet),void 0===n&&(n=0),null===t||["boolean","number","string"].includes(typeof t))return t;if(n>16)return null;if(Array.isArray(t))return t.map(function(t){return uu(t,e,n+1)});var r=au(t);return!r||e.has(r)?null:(e.add(r),Object.fromEntries(Object.entries(r).filter(function(t){return!["function","symbol","undefined"].includes(typeof t[1])}).map(function(t){return[t[0],uu(t[1],e,n+1)]})))},du=function(t){var e=uu(t);return au(e)},hu=function(t){var e=au(t),n=lu(null==e?void 0:e.id);if(!e||null===n)return null;var r=lu(e.type),i="number"==typeof e.index?e.index:null,s="number"==typeof e.initialIndex?e.initialIndex:null,o=lu(e.group),a=lu(e.initialGroup);return iu(iu(iu(iu({id:n,type:r,data:du(e.data)},null===i?{}:{index:i}),null===s?{}:{initialIndex:s}),null===o?{}:{group:o}),null===a?{}:{initialGroup:a})},pu=function(t){var e=au(t);if(!e)return null;var n=cu(e.current),r=cu(e.initial),i=cu(e.delta);return n&&r&&i?{current:n,initial:r,previous:cu(e.previous),delta:i}:null},fu=function(t){return Array.isArray(t)?t.flatMap(function(t){var e=au(t),n=lu(null==e?void 0:e.id);return e&&null!==n&&"number"==typeof e.priority&&"number"==typeof e.type&&"number"==typeof e.value?[{id:n,priority:e.priority,type:e.type,value:e.value,data:du(e.data)}]:[]}):[]},gu=function(t){var e=t.children,n=t.eventTypes,s=void 0===n?ou:n,o=t.dragMoveThrottle,a=void 0===o?100:o,l=t.pointerActivationDistance,c=t.n_drag_start,u=void 0===c?0:c,d=t.n_drag_move,h=void 0===d?0:d,p=t.n_drag_over,f=void 0===p?0:p,g=t.n_drag_end,v=void 0===g?0:g,m=t.n_collision,y=void 0===m?0:m,b=t.setProps,w=(0,i.useRef)(b),x=(0,i.useRef)(new Set(s)),O=(0,i.useRef)(Math.max(a,0)),k=(0,i.useRef)(null),S=(0,i.useRef)(null),E=(0,i.useRef)({n_drag_start:u,n_drag_move:h,n_drag_over:f,n_drag_end:v,n_collision:y}),D=(0,i.useMemo)(function(){return s.join("\0")},[s]),M=(0,i.useMemo)(function(){return void 0===l?void 0:[Sa.configure({activationConstraints:[new wa.Distance({value:Math.max(l,0)})]}),ya]},[l]);(0,i.useEffect)(function(){w.current=b},[b]),(0,i.useEffect)(function(){x.current=new Set(D?D.split("\0"):[])},[D]),(0,i.useEffect)(function(){O.current=Math.max(a,0)},[a]),(0,i.useEffect)(function(){E.current.n_drag_start=Math.max(E.current.n_drag_start,u),E.current.n_drag_move=Math.max(E.current.n_drag_move,h),E.current.n_drag_over=Math.max(E.current.n_drag_over,f),E.current.n_drag_end=Math.max(E.current.n_drag_end,v),E.current.n_collision=Math.max(E.current.n_collision,y)},[u,h,f,v,y]);var P=(0,i.useCallback)(function(t,e,n){var r,i,s,o,a,l,c,u,d;if(x.current.has(t)){var h=function(t,e,n){var r,i=au(e),s=au(n)||au(null==i?void 0:i.operation),o=au(null==s?void 0:s.status);return iu(iu({type:t,source:hu(null==s?void 0:s.source),target:hu(null==s?void 0:s.target),canceled:Boolean(null!==(r=null==i?void 0:i.canceled)&&void 0!==r?r:null==s?void 0:s.canceled),status:"string"==typeof(null==o?void 0:o.current)?o.current:null,position:pu(null==s?void 0:s.position),transform:cu(null==s?void 0:s.transform),to:cu(null==i?void 0:i.to),by:cu(null==i?void 0:i.by)},"collision"===t?{collisions:fu(null==i?void 0:i.collisions)}:{}),{timestamp:Date.now()})}(t,e,n),p=function(t){switch(t){case"collision":return"n_collision";case"dragStart":return"n_drag_start";case"dragMove":return"n_drag_move";case"dragOver":return"n_drag_over";case"dragEnd":return"n_drag_end";default:return null}}(t),f={dragEvent:h};p&&(E.current[p]+=1,f[p]=E.current[p]),"beforeDragStart"===t?(f.activeId=null!==(i=null===(r=h.source)||void 0===r?void 0:r.id)&&void 0!==i?i:null,f.overId=null!==(o=null===(s=h.target)||void 0===s?void 0:s.id)&&void 0!==o?o:null,f.status="initializing"):"dragStart"===t||"dragMove"===t||"dragOver"===t?(f.activeId=null!==(l=null===(a=h.source)||void 0===a?void 0:a.id)&&void 0!==l?l:null,f.overId=null!==(u=null===(c=h.target)||void 0===c?void 0:c.id)&&void 0!==u?u:null,f.status="dragging"):"dragEnd"===t&&(f.activeId=null,f.overId=null,f.status="idle"),null===(d=w.current)||void 0===d||d.call(w,f)}},[]),C=(0,i.useCallback)(function(t){if(S.current=t,x.current.has("dragMove")&&null===k.current){var e=function(){k.current=null;var t=S.current;S.current=null,P("dragMove",t)};0===O.current?e():k.current=window.setTimeout(e,O.current)}},[P]);(0,i.useEffect)(function(){return function(){null!==k.current&&window.clearTimeout(k.current)}},[]);var A=(0,i.useCallback)(function(t){null!==k.current&&(window.clearTimeout(k.current),k.current=null,S.current=null),P("dragEnd",t)},[P]);return(0,r.jsx)(ml,{sensors:M,onBeforeDragStart:function(t){return P("beforeDragStart",t)},onCollision:function(t,e){return P("collision",t,e.dragOperation)},onDragStart:function(t){return P("dragStart",t)},onDragMove:C,onDragOver:function(t){return P("dragOver",t)},onDragEnd:A,children:e})},vu=function(t,e){var n=JSON.stringify(e),r=(0,i.useRef)(n);(0,i.useEffect)(function(){n!==r.current&&(r.current=n,null==t||t(e))},[e,n,t])},mu=function(t,e,n){return iu({cursor:e?"not-allowed":n?"grabbing":"grab",touchAction:"none"},t)},yu=function(t){var e=t.dragId,n=t.children,r=t.tag,o=void 0===r?"div":r,a=t.data,l=t.type,c=t.disabled,u=void 0!==c&&c,d=t.alignment,h=t.setProps,p=t.style,f=t.className,g=t.tabIndex,v=su(t,["dragId","children","tag","data","type","disabled","alignment","isDragging","isDropping","isDragSource","setProps","loading_state","style","className","tabIndex"]),m=function(t){const{disabled:e,data:n,element:r,handle:s,id:o,modifiers:a,sensors:l,plugins:c}=t,u=bl(e=>new Ba(hl(dl({},t),{register:!1,handle:Ga(s),element:Ga(r)}),e)),d=Qa(u,wl);return nl(o,()=>u.id=o),rl(s,t=>u.handle=t),rl(r,t=>u.element=t),nl(n,()=>n&&(u.data=n)),nl(e,()=>u.disabled=!0===e),nl(l,()=>u.sensors=l,void 0,kt),nl(a,()=>u.modifiers=a,void 0,kt),nl(c,()=>u.plugins=c,void 0,kt),nl(t.alignment,()=>u.alignment=t.alignment),{draggable:d,get isDragging(){return d.isDragging},get isDropping(){return d.isDropping},get isDragSource(){return d.isDragSource},handleRef:(0,i.useCallback)(t=>{u.handle=null!=t?t:void 0},[u]),ref:(0,i.useCallback)(t=>{var e,n;(t||!(null==(e=u.element)?void 0:e.isConnected)||(null==(n=u.manager)?void 0:n.dragOperation.status.idle))&&(u.element=null!=t?t:void 0)},[u])}}({id:e,data:a,type:l,disabled:u,alignment:d}),y=m.ref,b=m.isDragging,w=m.isDropping;return vu(h,{isDragging:b,isDropping:w,isDragSource:m.isDragSource}),s().createElement(o,iu(iu(iu({},v),{ref:y,className:f,style:mu(p,u,b),tabIndex:u||null!=g?g:0,"data-dnd-draggable":e,"data-dnd-state":w?"dropping":b?"dragging":"idle"}),"button"===o?{type:"button"}:{}),n)},bu=function(t){var e=t.dropId,n=t.children,r=t.tag,o=void 0===r?"div":r,a=t.data,l=t.type,c=t.accept,u=t.collisionPriority,d=t.disabled,h=void 0!==d&&d,p=t.setProps,f=t.style,g=t.className,v=su(t,["dropId","children","tag","data","type","accept","collisionPriority","disabled","isDropTarget","setProps","loading_state","style","className"]),m=function(t){const{collisionDetector:e,data:n,disabled:r,element:s,id:o,accept:a,type:l}=t,c=bl(e=>new Ua(hl(dl({},t),{register:!1,element:Ga(s)}),e)),u=Qa(c);return nl(o,()=>c.id=o),rl(s,t=>c.element=t),nl(a,()=>c.accept=a,void 0,kt),nl(e,()=>c.collisionDetector=null!=e?e:ql),nl(n,()=>n&&(c.data=n)),nl(r,()=>c.disabled=!0===r),nl(l,()=>c.type=l),{droppable:u,get isDropTarget(){return u.isDropTarget},ref:(0,i.useCallback)(t=>{var e,n;(t||!(null==(e=c.element)?void 0:e.isConnected)||(null==(n=c.manager)?void 0:n.dragOperation.status.idle))&&(c.element=null!=t?t:void 0)},[c])}}({id:e,data:a,type:l,accept:c,collisionPriority:u,disabled:h}),y=m.ref,b=m.isDropTarget;return vu(p,{isDropTarget:b}),s().createElement(o,iu(iu(iu({},v),{ref:y,className:g,style:f,"data-dnd-droppable":e,"data-dnd-state":b?"over":"idle"}),"button"===o?{type:"button"}:{}),n)},wu=function(t){var e,n,o=t.sortableId,a=t.index,c=t.children,u=t.asChild,d=void 0!==u&&u,h=t.handle,p=t.handleAriaLabel,f=void 0===p?"Drag item":p,g=t.handleClassName,v=t.handleStyle,m=t.tag,y=void 0===m?"div":m,b=t.data,w=t.type,x=t.group,O=t.accept,k=t.collisionPriority,S=t.disabled,E=void 0!==S&&S,D=t.transition,M=t.alignment,P=t.setProps,C=t.style,A=t.className,W=t.tabIndex,I=su(t,["sortableId","index","children","asChild","handle","handleAriaLabel","handleClassName","handleStyle","tag","data","type","group","accept","collisionPriority","disabled","transition","alignment","isDragging","isDropping","isDragSource","isDropTarget","setProps","loading_state","style","className","tabIndex"]),j=null!=h,R=(0,i.useState)(null),T=R[0],$=R[1],N=(0,i.useState)(null),_=N[0],z=N[1],L=(0,i.useRef)(null),F=function(t){const{accept:e,collisionDetector:n,collisionPriority:r,id:s,data:o,element:a,handle:c,index:u,group:d,disabled:h,modifiers:p,sensors:f,target:g,type:v,plugins:m}=t,y=nu(nu({},Tc),t.transition),b=bl(e=>new qc(((t,e)=>Gc(t,Jc(e)))(nu({},t),{transition:y,register:!1,handle:Ga(c),element:Ga(a),target:Ga(g)}),e)),w=Qa(b,ru);return nl(s,()=>b.id=s),Ja(()=>{l(()=>{b.group=d,b.index=u})},[b,d,u]),nl(v,()=>b.type=v),nl(e,()=>b.accept=e,void 0,kt),nl(o,()=>o&&(b.data=o)),nl(u,()=>{var t;(null==(t=b.manager)?void 0:t.dragOperation.status.idle)&&(null==y?void 0:y.idle)&&b.refreshShape()},tl),rl(c,t=>b.handle=t),rl(a,t=>b.element=t),rl(g,t=>b.target=t),nl(h,()=>b.disabled=null!=h&&h,void 0,kt),nl(f,()=>b.sensors=f,void 0,kt),nl(n,()=>b.collisionDetector=n),nl(r,()=>b.collisionPriority=r),nl(m,()=>b.plugins=m,void 0,kt),nl(y,()=>b.transition=y,void 0,kt),nl(p,()=>b.modifiers=p,void 0,kt),nl(t.alignment,()=>b.alignment=t.alignment),{sortable:w,get isDragging(){return w.isDragging},get isDropping(){return w.isDropping},get isDragSource(){return w.isDragSource},get isDropTarget(){return w.isDropTarget},handleRef:(0,i.useCallback)(t=>{b.handle=null!=t?t:void 0},[b]),ref:(0,i.useCallback)(t=>{var e,n;(t||!(null==(e=b.element)?void 0:e.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.element=null!=t?t:void 0)},[b]),sourceRef:(0,i.useCallback)(t=>{var e,n;(t||!(null==(e=b.source)?void 0:e.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.source=null!=t?t:void 0)},[b]),targetRef:(0,i.useCallback)(t=>{var e,n;(t||!(null==(e=b.target)?void 0:e.isConnected)||(null==(n=b.manager)?void 0:n.dragOperation.status.idle))&&(b.target=null!=t?t:void 0)},[b])}}({id:o,index:a,element:_,handle:j?L:void 0,data:b,type:w,group:x,accept:O,collisionPriority:k,disabled:E,transition:D,alignment:M}),X=F.isDragging,Y=F.isDropping,H=F.isDragSource,V=F.isDropTarget,q=!0===E||"object"==typeof E&&!0===E.draggable,B=mu(C,q,X);j&&void 0===(null==C?void 0:C.cursor)&&(B.cursor="default"),vu(P,{isDragging:X,isDropping:Y,isDragSource:H,isDropTarget:V});var U=(0,i.useCallback)(function(t){$(t),z(function(t){var e;if(!t)return null;var n=t.closest("td, th");return"TD"===(null==n?void 0:n.tagName)?null!==(e=n.closest("tr"))&&void 0!==e?e:t:null!=n?n:t}(t))},[]);(0,i.useEffect)(function(){if(_ instanceof HTMLElement&&_!==T){var t=_.style.cursor,e=_.style.touchAction;return j||(_.style.cursor=q?"not-allowed":X?"grabbing":"move"),_.style.touchAction="none",function(){_.style.cursor=t,_.style.touchAction=e}}},[_,q,j,X,T]);var K=iu(iu({},I),{ref:U,className:A,style:B,tabIndex:j||q||null!=W?W:0,"data-dnd-sortable":o,"data-dnd-index":a,"data-dnd-state":Y?"dropping":X?"dragging":V?"over":"idle"});if(d&&!j&&s().isValidElement(c)){var G=c;return s().cloneElement(G,iu(iu({},K),{className:[G.props.className,A].filter(Boolean).join(" ")||void 0,style:iu(iu({},G.props.style),B),tabIndex:q?G.props.tabIndex:null!==(n=null!==(e=G.props.tabIndex)&&void 0!==e?e:W)&&void 0!==n?n:0}))}return s().createElement(y,iu(iu({},K),"button"===y?{type:"button"}:{}),j?(0,r.jsxs)(r.Fragment,{children:[c,(0,r.jsx)("button",{ref:L,type:"button","aria-label":f,className:g,disabled:q,"data-dnd-handle":o,style:iu({display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 auto",touchAction:"none",cursor:q?"not-allowed":X?"grabbing":"grab"},v),children:h})]}):c)},xu=function(t){var e=t.tag,n=t.disabled;return(0,r.jsx)(xl,{tag:void 0===e?"div":e,disabled:void 0!==n&&n,dropAnimation:t.dropAnimation,className:t.className,style:t.style,children:t.children})}}}]);
|
|
1
|
+
"use strict";(self.webpackChunkdash_antd_components=self.webpackChunkdash_antd_components||[]).push([["async-dnd"],{"./node_modules/.pnpm/@preact+signals-core@1.14.4/node_modules/@preact/signals-core/dist/signals-core.module.js"(e,t,n){n.d(t,{EW:()=>w,O8:()=>d,QZ:()=>I,vA:()=>i,vP:()=>y});var r=Symbol.for("preact-signals");function o(){if(c>1)c--;else{var e,t=!1;for(!function(){var e=g;for(g=void 0;void 0!==e;){var t=e.S;if(t.v===e.v)for(var n=t.t;void 0!==n;n=n.x)n.i===e.i&&(n.i=t.i);e=e.o}}();void 0!==l;){var n=l;for(l=void 0,u++;void 0!==n;){var r=n.u;if(n.u=void 0,n.f&=-3,!(8&n.f)&&b(n))try{n.c()}catch(n){t||(e=n,t=!0)}n=r}}if(u=0,c--,t)throw e}}function i(e){if(c>0)return e();f=++p,c++;try{return e()}finally{o()}}var s,a=void 0;function d(e){var t=a,n=s;a=void 0,s=void 0;try{return e()}finally{a=t,s=n}}var l=void 0,c=0,u=0,p=0,f=0,g=void 0,v=0;function m(e){if(void 0!==a){var t=e.n;if(void 0===t||t.t!==a)return t={i:0,S:e,p:a.s,n:void 0,t:a,e:void 0,x:void 0,r:t},void 0!==a.s&&(a.s.n=t),a.s=t,e.n=t,32&a.f&&e.S(t),t;if(-1===t.i)return t.i=0,void 0!==t.n&&(t.n.p=t.p,void 0!==t.p&&(t.p.n=t.n),t.p=a.s,t.n=void 0,a.s.n=t,a.s=t),t}}function h(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.l=0,this.W=null==t?void 0:t.watched,this.Z=null==t?void 0:t.unwatched,this.name=null==t?void 0:t.name}function y(e,t){return new h(e,t)}function b(e){for(var t=e.s;void 0!==t;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function x(e){for(var t=e.s;void 0!==t;t=t.n){var n=t.S.n;if(void 0!==n&&(t.r=n),t.S.n=t,t.i=-1,void 0===t.n){e.s=t;break}}}function _(e){for(var t=e.s,n=void 0;void 0!==t;){var r=t.p;-1===t.i?(t.S.U(t),void 0!==r&&(r.n=t.n),void 0!==t.n&&(t.n.p=r)):n=t,t.S.n=t.r,void 0!==t.r&&(t.r=void 0),t=r}e.s=n}function S(e,t){h.call(this,void 0,t),this.x=e,this.s=void 0,this.g=v-1,this.f=4}function w(e,t){return new S(e,t)}function D(e){var t=e.m;if(e.m=void 0,"function"==typeof t){c++;var n=a;a=void 0;try{t()}catch(t){throw e.f&=-2,e.f|=8,E(e),t}finally{a=n,o()}}}function E(e){for(var t=e.s;void 0!==t;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,D(e)}function k(e){if(a!==this)throw new Error("Out-of-order effect");_(this),a=e,this.f&=-2,8&this.f&&E(this),o()}function j(e,t){this.x=e,this.m=void 0,this.s=void 0,this.u=void 0,this.f=32,this.name=null==t?void 0:t.name,s&&s.push(this)}function I(e,t){var n=new j(e,t);try{n.c()}catch(e){throw n.d(),e}var r=n.d.bind(n);return r[Symbol.dispose]=r,r}h.prototype.brand=r,h.prototype.h=function(){return!0},h.prototype.S=function(e){var t=this,n=this.t;n!==e&&void 0===e.e&&(e.x=n,this.t=e,void 0!==n?n.e=e:d(function(){var e;null==(e=t.W)||e.call(t)}))},h.prototype.U=function(e){var t=this;if(void 0!==this.t){var n=e.e,r=e.x;void 0!==n&&(n.x=r,e.e=void 0),void 0!==r&&(r.e=n,e.x=void 0),e===this.t&&(this.t=r,void 0===r&&d(function(){var e;null==(e=t.Z)||e.call(t)}))}},h.prototype.subscribe=function(e){var t=this;return I(function(){var n=t.value;d(function(){return e(n)})},{name:"sub"})},h.prototype.valueOf=function(){return this.value},h.prototype.toString=function(){return this.value+""},h.prototype.toJSON=function(){return this.value},h.prototype.peek=function(){var e=this;return d(function(){return e.value})},Object.defineProperty(h.prototype,"value",{get:function(){var e=m(this);return void 0!==e&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(u>100)throw new Error("Cycle detected");!function(e){0!==c&&0===u&&e.l!==f&&(e.l=f,g={S:e,v:e.v,i:e.i,o:g})}(this),this.v=e,this.i++,v++,c++;try{for(var t=this.t;void 0!==t;t=t.x)t.t.N()}finally{o()}}}}),(S.prototype=new h).h=function(){if(this.f&=-3,1&this.f)return!1;if(32==(36&this.f))return!0;if(this.f&=-5,this.g===v)return!0;if(this.g=v,this.f|=1,this.i>0&&!b(this))return this.f&=-2,!0;var e=a;try{x(this),a=this;var t=this.x();(16&this.f||this.v!==t||0===this.i)&&(this.v=t,this.f&=-17,this.i++)}catch(e){this.v=e,this.f|=16,this.i++}return a=e,_(this),this.f&=-2,!0},S.prototype.S=function(e){if(void 0===this.t){this.f|=36;for(var t=this.s;void 0!==t;t=t.n)t.S.S(t)}h.prototype.S.call(this,e)},S.prototype.U=function(e){if(void 0!==this.t&&(h.prototype.U.call(this,e),void 0===this.t)){this.f&=-33;for(var t=this.s;void 0!==t;t=t.n)t.S.U(t)}},S.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;void 0!==e;e=e.x)e.t.N()}},Object.defineProperty(S.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=m(this);if(this.h(),void 0!==e&&(e.i=this.i),16&this.f)throw this.v;return this.v}}),j.prototype.c=function(){var e=this.S();try{if(8&this.f)return;if(void 0===this.x)return;var t=this.x();"function"==typeof t&&(this.m=t)}finally{e()}},j.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,D(this),x(this),c++;var e=a;return a=this,k.bind(this,e)},j.prototype.N=function(){2&this.f||(this.f|=2,this.u=l,l=this)},j.prototype.d=function(){this.f|=8,1&this.f||E(this)},j.prototype.dispose=function(){this.d()}},"./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./src/components/fragments/DndKit.css"(e,t,n){var r=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/noSourceMaps.js"),o=n.n(r),i=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/runtime/api.js"),s=n.n(i)()(o());s.push([e.id,"/* Feedback injects its own overlay styles only when the first drag starts. */\n[data-dnd-overlay]:not([data-dnd-dragging]) {\n display: none;\n}\n\n[data-dac-sortable-table-row][data-dnd-dragging] {\n display: table !important;\n table-layout: fixed;\n}\n",""]);n.d(t,["A",0,s])},"./src/components/fragments/DndKit.css"(e,t,n){var r=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js"),o=n.n(r),i=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/styleDomAPI.js"),s=n.n(i),a=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js"),d=n.n(a),l=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/insertStyleElement.js"),c=n.n(l),u=n("./node_modules/.pnpm/style-loader@3.3.4_webpack@5.108.4/node_modules/style-loader/dist/runtime/styleTagTransform.js"),p=n.n(u),f=n("./node_modules/.pnpm/css-loader@6.11.0_webpack@5.108.4/node_modules/css-loader/dist/cjs.js!./src/components/fragments/DndKit.css"),g={};g.styleTagTransform=p(),g.setAttributes=d(),g.insert=function(e){const t=document.querySelector("head"),n=window._lastElementInsertedByStyleLoader;n?n.nextSibling?t.insertBefore(e,n.nextSibling):t.appendChild(e):t.insertBefore(e,t.firstChild),window._lastElementInsertedByStyleLoader=e},g.domAPI=s(),g.insertStyleElement=c();o()(f.A,g)},"./src/components/fragments/DndKit.tsx"(e,t,n){n.d(t,{DragDropProvider:()=>H,DragOverlay:()=>Z,Draggable:()=>U,Droppable:()=>W,Sortable:()=>q});var r=n("./node_modules/.pnpm/@dnd-kit+abstract@0.5.1/node_modules/@dnd-kit/abstract/index.js"),o=Object.defineProperty,i=Object.defineProperties,s=Object.getOwnPropertyDescriptors,a=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,l=Object.prototype.propertyIsEnumerable,c=(e,t,n)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,u=(e,t)=>{for(var n in t||(t={}))d.call(t,n)&&c(e,n,t[n]);if(a)for(var n of a(t))l.call(t,n)&&c(e,n,t[n]);return e},p=(e,t)=>i(e,s(t)),f=class extends r.e6{apply({transform:e}){if(!this.options)return e;const{axis:t,value:n}=this.options;return p(u({},e),{[t]:n})}};f.configure=(0,r.cD)(f);var g=f,v=g.configure({axis:"x",value:0}),m=g.configure({axis:"y",value:0});function h(e,t,n){const r=u({},t);return e.boundingRectangle.top+t.y<=n.top?r.y=n.top-e.boundingRectangle.top:e.boundingRectangle.bottom+t.y>=n.top+n.height&&(r.y=n.top+n.height-e.boundingRectangle.bottom),e.boundingRectangle.left+t.x<=n.left?r.x=n.left-e.boundingRectangle.left:e.boundingRectangle.right+t.x>=n.left+n.width&&(r.x=n.left+n.width-e.boundingRectangle.right),r}var y=class extends r.e6{apply({transform:e}){var t;const{size:n=20}=null!=(t=this.options)?t:{},r="number"==typeof n?n:n.x,o="number"==typeof n?n:n.y;return p(u({},e),{x:Math.ceil(e.x/r)*r,y:Math.ceil(e.y/o)*o})}};y.configure=(0,r.cD)(y);var b=n("./node_modules/.pnpm/@dnd-kit+react@0.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@dnd-kit/react/index.js"),x=n("./node_modules/.pnpm/@dnd-kit+react@0.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@dnd-kit/react/sortable.js"),_=n("./node_modules/.pnpm/@dnd-kit+dom@0.5.1/node_modules/@dnd-kit/dom/index.js"),S=n("./node_modules/.pnpm/@preact+signals-core@1.14.4/node_modules/@preact/signals-core/dist/signals-core.module.js"),w=n("./node_modules/.pnpm/@dnd-kit+geometry@0.5.1/node_modules/@dnd-kit/geometry/dist/index.mjs"),D=n("./node_modules/.pnpm/@dnd-kit+dom@0.5.1/node_modules/@dnd-kit/dom/utilities.js"),E=class extends r.e6{constructor(e,t){super(e,t),this.boundingRectangle=(0,S.vP)(null),this.destroy=(0,S.QZ)(()=>{if(!this.options)return;const{dragOperation:t}=e,{status:n}=t;if(n.initialized){const{element:e}=this.options,n="function"==typeof e?e(t):e;if(!n)return;let r;const o=()=>{this.boundingRectangle.value=(0,D.Ks)(n)},i=()=>{r||(r=setTimeout(()=>{o(),r=void 0},25))},s=new ResizeObserver(o);return s.observe(n),document.addEventListener("scroll",i,{passive:!0,capture:!0}),()=>{document.removeEventListener("scroll",i,{capture:!0}),s.disconnect(),this.boundingRectangle.value=null}}})}apply(e){const{shape:t,transform:n}=e;if(!t)return n;const r=this.boundingRectangle.value;if(!r)return n;const{initial:o,current:i}=t,{height:s,width:a}=i.boundingRectangle;return h(new w.M_(o.center.x-a/2,o.center.y-s/2,a,s),n,r)}};E.configure=(0,r.cD)(E);var k=E,j=n("react"),I=n.n(j),A=n("./src/utils/dash3.ts");n("./src/components/fragments/DndKit.css");const O=["dragEnd"],C=new Set(["article","button","div","li","section","span"]),R=e=>"object"==typeof e&&null!==e?e:null,M=e=>"string"==typeof e||"number"==typeof e?e:null,T=e=>{const t=R(e);return t&&"number"==typeof t.x&&"number"==typeof t.y?{x:t.x,y:t.y}:null},N=(e,t=new WeakSet,n=0)=>{if(null===e||["boolean","string"].includes(typeof e))return e;if("number"==typeof e)return Number.isFinite(e)?e:null;if(n>16)return null;const r=R(e);if(!r||t.has(r))return null;if(t.add(r),Array.isArray(e)){const o=e.map(e=>N(e,t,n+1));return t.delete(r),o}if(![Object.prototype,null].includes(Object.getPrototypeOf(r)))return null;const o=Object.fromEntries(Object.entries(r).filter(([,e])=>!["function","symbol","undefined"].includes(typeof e)).map(([e,r])=>[e,N(r,t,n+1)]));return t.delete(r),o},P=e=>{const t=N(e);return R(t)},B=e=>{const t=R(e),n=M(t?.id);if(!t||null===n)return null;const r=M(t.type),o="number"==typeof t.index?t.index:null,i="number"==typeof t.initialIndex?t.initialIndex:null,s=M(t.group),a=M(t.initialGroup);return{id:n,type:r,data:P(t.data),...null===o?{}:{index:o},...null===i?{}:{initialIndex:i},...null===s?{}:{group:s},...null===a?{}:{initialGroup:a}}},z=e=>{const t=R(e);if(!t)return null;const n=T(t.current),r=T(t.initial),o=T(t.delta);return n&&r&&o?{current:n,initial:r,previous:T(t.previous),delta:o}:null},F=e=>Array.isArray(e)?e.flatMap(e=>{const t=R(e),n=M(t?.id);return t&&null!==n&&"number"==typeof t.priority&&"number"==typeof t.type&&"number"==typeof t.value?[{id:n,priority:t.priority,type:t.type,value:t.value,data:P(t.data)}]:[]}):[],H=({children:e,eventTypes:t=O,publishState:n=!0,dragMoveThrottle:r=50,pointerActivationDistance:o,axis:i,boundarySelector:s,setProps:a})=>{const d=(0,j.useRef)(a),l=(0,j.useRef)(new Set(t)),c=(0,j.useRef)(n);c.current=n;const u=(0,j.useRef)(Math.max(r,0)),p=(0,j.useRef)(null),f=(0,j.useRef)(null),g=(0,j.useRef)(null),h=(0,j.useRef)({activeId:null,overId:null,status:"idle"}),y=(0,j.useMemo)(()=>t.join("\0"),[t]),x=(0,j.useMemo)(()=>void 0===o?void 0:[_.AN.configure({activationConstraints:[new _.il.Distance({value:Math.max(o,0)})]}),_.uN],[o]),S=(0,j.useMemo)(()=>{const e="vertical"===i?v:"horizontal"===i?m:null,t=s?k.configure({element:({source:e})=>{try{return e?.element?.closest(s)??null}catch{return null}}}):null;return e||t?[e,t].filter(e=>null!==e):void 0},[i,s]);(0,j.useEffect)(()=>{d.current=a},[a]),(0,j.useEffect)(()=>{l.current=new Set(y?y.split("\0"):[])},[y]),(0,j.useEffect)(()=>{u.current=Math.max(r,0)},[r]);const w=(0,j.useCallback)((e,t,n,r)=>{const o=l.current.has(e);if(!o&&!("beforeDragStart"===e||"dragStart"===e||"dragOver"===e||"dragEnd"===e))return;const i=o?r??((e,t,n)=>{const r=R(t),o=R(n)||R(r?.operation),i=R(o?.status);return{type:e,source:B(o?.source),target:B(o?.target),canceled:Boolean(r?.canceled??o?.canceled),status:"string"==typeof i?.current?i.current:null,position:z(o?.position),transform:T(o?.transform),to:T(r?.to),by:T(r?.by),..."collision"===e?{collisions:F(r?.collisions)}:{},timestamp:Date.now()}})(e,t,n):void 0,s=R(n)||R(R(t)?.operation),a=i?.source?.id??M(R(s?.source)?.id),u=i?.target?.id??M(R(s?.target)?.id),p=o?{dragEvent:i}:{};let f=h.current;"beforeDragStart"===e?f={activeId:a,overId:u,status:"initializing"}:"dragStart"===e||"dragOver"===e?f={activeId:a,overId:u,status:"dragging"}:"dragEnd"===e&&(f={activeId:null,overId:null,status:"idle"}),f.activeId===h.current.activeId&&f.overId===h.current.overId&&f.status===h.current.status||(c.current&&Object.assign(p,f),h.current=f),Object.keys(p).length>0&&d.current?.(p)},[]),D=(0,j.useCallback)(e=>{if(!l.current.has("dragMove"))return;if(f.current=e,null!==p.current)return;const t=()=>{p.current=null;const e=f.current;f.current=null,g.current=performance.now(),e&&w("dragMove",e)},n=null===g.current?u.current:performance.now()-g.current,r=Math.max(u.current-n,0);0===r?t():p.current=window.setTimeout(t,r)},[w]);(0,j.useEffect)(()=>()=>{null!==p.current&&window.clearTimeout(p.current)},[]);const E=(0,j.useCallback)(e=>{null!==p.current&&(window.clearTimeout(p.current),p.current=null),f.current=null,g.current=null,w("dragEnd",e)},[w]);return I().createElement(b.XU,{sensors:x,modifiers:S,onBeforeDragStart:n||t.includes("beforeDragStart")?e=>w("beforeDragStart",e):void 0,onCollision:t.includes("collision")?(e,t)=>w("collision",e,t.dragOperation):void 0,onDragStart:n||t.includes("dragStart")?e=>w("dragStart",e):void 0,onDragMove:t.includes("dragMove")?D:void 0,onDragOver:n||t.includes("dragOver")?e=>w("dragOver",e):void 0,onDragEnd:n||t.includes("dragEnd")||t.includes("dragMove")?E:void 0},e)},K=(e,t,n=!0)=>{const r=n?JSON.stringify(t):"",o=(0,j.useRef)(r);(0,j.useEffect)(()=>{r!==o.current&&n&&(o.current=r,e?.(t))},[t,r,n,e])},L=(e,t,n)=>({cursor:t?"not-allowed":n?"grabbing":"grab",touchAction:"none",...e}),U=({publishState:e=!0,dragId:t,children:n,tag:r="div",data:o,type:i,disabled:s=!1,alignment:a,isDragging:d,isDropping:l,isDragSource:c,setProps:u,loading_state:p,style:f,className:g,tabIndex:v,...m})=>{const{ref:h,isDragging:y,isDropping:x,isDragSource:_}=(0,b.PM)({id:t,data:o,type:i,disabled:s,alignment:a});return K(u,{isDragging:y,isDropping:x,isDragSource:_},e),I().createElement(r,{...m,ref:h,className:g,style:L(f,s,y),tabIndex:s?v:v??0,"data-dnd-draggable":t,"data-dnd-state":x?"dropping":y?"dragging":"idle","data-dash-is-loading":(0,A.A_)(p)||void 0,..."button"===r?{type:"button"}:{}},n)},W=({publishState:e=!0,dropId:t,children:n,tag:r="div",data:o,type:i,accept:s,collisionPriority:a,disabled:d=!1,isDropTarget:l,setProps:c,loading_state:u,style:p,className:f,...g})=>{const{ref:v,isDropTarget:m}=(0,b.zM)({id:t,data:o,type:i,accept:s,collisionPriority:a,disabled:d});return K(c,{isDropTarget:m},e),I().createElement(r,{...g,ref:v,className:f,style:p,"data-dnd-droppable":t,"data-dnd-state":m?"over":"idle","data-dash-is-loading":(0,A.A_)(u)||void 0,..."button"===r?{type:"button"}:{}},n)},q=({publishState:e=!0,feedback:t,dropAnimation:n,sortableId:r,index:o,elementSelector:i,children:s,asChild:a=!1,handle:d,handleAriaLabel:l="Drag item",handleClassName:c,handleStyle:u,tag:p="div",data:f,type:g,group:v,accept:m,collisionPriority:h,disabled:y=!1,transition:b,alignment:S,isDragging:w,isDropping:D,isDragSource:E,isDropTarget:k,setProps:O,loading_state:R,style:M,className:T,tabIndex:N,...P})=>{const B=null!=d,z=a&&I().isValidElement(s)?s:null,F=z&&(!B||"string"==typeof z.type&&C.has(z.type))?z:null,H=Boolean(z&&!F),U=B&&(F?"button"===F.type:"button"===p),[W,q]=(0,j.useState)(null),[Z,G]=(0,j.useState)(null);(0,j.useEffect)(()=>{if("TR"===Z?.tagName&&!Z.hasAttribute("data-dac-sortable-table-row"))return Z.setAttribute("data-dac-sortable-table-row",""),()=>Z.removeAttribute("data-dac-sortable-table-row")},[Z]);const J=(0,j.useMemo)(()=>{const e="TR"===Z?.tagName||"TH"===Z?.tagName,r=t??("TH"===Z?.tagName?"move":"default");return t=>[...t,_.Gb.configure({feedback:r,dropAnimation:void 0===n&&e?null:n})]},[n,Z,t]),{ref:Q,handleRef:$,isDragging:V,isDropping:X,isDragSource:Y,isDropTarget:ee}=(0,x.g)({id:r,index:o,data:f,type:g,group:v,accept:m,collisionPriority:h,disabled:y,transition:b,alignment:S,plugins:J}),te=!0===y||"object"==typeof y&&!0===y.draggable,ne=L(M,te,V);B&&!U&&void 0===M?.touchAction&&(ne.touchAction=void 0),V&&(ne.position="relative",ne.zIndex=1),B&&!U&&void 0===M?.cursor&&(ne.cursor="default"),K(O,{isDragging:V,isDropping:X,isDragSource:Y,isDropTarget:ee},e),(0,j.useEffect)(()=>{H&&console.warn("Sortable asChild with a handle requires a supported native container; rendering a wrapper instead.")},[H]);const re=(0,j.useCallback)(e=>{U&&$(e instanceof HTMLButtonElement?e:null);const t=((e,t)=>{if(!e||!t)return e;try{return e.closest(t)??e}catch(n){return console.warn(`Invalid Sortable elementSelector: ${t}`,n),e}})(e,i);Q(t),q(e),G(t)},[i,U,$,Q]);(0,j.useEffect)(()=>{if(!(Z instanceof HTMLElement)||Z===W)return;const e=Z.style.cursor,t=Z.style.touchAction;return B||(Z.style.cursor=te?"not-allowed":V?"grabbing":"move",Z.style.touchAction="none"),()=>{Z.style.cursor=e,Z.style.touchAction=t}},[Z,te,B,V,W]);const oe=z?(Number.parseInt(I().version,10)>=19?z.props.ref:z.ref)??null:null,ie=(0,j.useRef)(null),se={...P,ref:(0,j.useCallback)(e=>{if(re(e),null===e&&ie.current)ie.current(),ie.current=null;else if("function"==typeof oe){const t=oe(e);"function"==typeof t&&(ie.current=t)}else oe&&(oe.current=e)},[oe,re]),className:T,style:ne,tabIndex:B||te?N:N??0,"data-dnd-sortable":r,"data-dnd-index":o,"data-dnd-state":X?"dropping":V?"dragging":ee?"over":"idle","data-dash-is-loading":(0,A.A_)(R)||void 0,...U?{"aria-label":l,"data-dnd-handle":r,disabled:te}:{}},ae=B&&!U?I().createElement("button",{ref:$,type:"button","aria-label":l,className:c,disabled:te,"data-dnd-handle":r,style:{display:"flex",alignItems:"center",justifyContent:"center",flex:"0 0 auto",touchAction:"none",cursor:te?"not-allowed":V?"grabbing":"grab",...u}},d):null;if(F){const e=F.props;return I().cloneElement(F,{...se,...U?{disabled:te||e.disabled,"aria-label":e["aria-label"]??l}:{},className:[e.className,T,...U?[c]:[]].filter(Boolean).join(" ")||void 0,style:{...e.style,...ne,...U?u:{}},tabIndex:te?e.tabIndex:e.tabIndex??N??0},B?I().createElement(I().Fragment,null,e.children,U?d:ae):e.children)}return I().createElement(p,{...se,className:[T,...U?[c]:[]].filter(Boolean).join(" ")||void 0,style:{...ne,...U?u:{}},..."button"===p?{type:"button"}:{}},B?I().createElement(I().Fragment,null,s,U?d:ae):s)},Z=({children:e,tag:t="div",disabled:n=!1,dropAnimation:r,className:o,style:i,setProps:s,loading_state:a,...d})=>{const l=(0,j.useRef)(d);l.current={...d,"data-dash-is-loading":(0,A.A_)(a)||void 0};const c=(0,j.useMemo)(()=>I().forwardRef(function(e,n){return I().createElement(t,{...l.current,...e,ref:n})}),[t]);return I().createElement(b.Hd,{tag:c,disabled:n,dropAnimation:r,className:o,style:i},e)}},"./src/components/fragments/TableSortableColumns.tsx"(e,t,n){n.r(t);var r=n("react"),o=n.n(r),i=n("./node_modules/.pnpm/@dnd-kit+react@0.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@dnd-kit/react/index.js"),s=n("./node_modules/.pnpm/@dnd-kit+react@0.5.1_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/@dnd-kit/react/sortable.js"),a=n("./node_modules/.pnpm/antd@6.6.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/theme/index.js"),d=n("./node_modules/.pnpm/antd@6.6.8_react-dom@18.3.1_react@18.3.1__react@18.3.1/node_modules/antd/es/config-provider/index.js"),l=n("./src/utils/antd.tsx");n("./src/components/fragments/DndKit.css");const c=(0,r.createContext)({state:{active:null,over:null},ids:[],fill:"",border:"",rtl:!1}),u=(e,t)=>{const{state:n,ids:r,fill:o,border:i,rtl:s}=e;if(n.active===t)return{backgroundColor:o,opacity:.5};if(null===n.active||n.over!==t||n.active===n.over)return{};return{backgroundImage:`repeating-linear-gradient(to bottom, ${i} 0 3px, transparent 3px 6px)`,backgroundSize:"1px 100%",backgroundRepeat:"no-repeat",backgroundPosition:r.indexOf(t)>r.indexOf(n.active)!==s?"right":"left"}},p=({dragConfig:e,dragIndex:t,style:n,...i})=>{const a=(0,r.useContext)(c),{sortableId:d,group:l,type:p,accept:f,disabled:g,data:v,transition:m}=e,{ref:h,isDragging:y}=(0,s.g)({group:l,type:p,accept:f,disabled:g,data:v,transition:m,id:d,index:t});return o().createElement("th",{...i,ref:h,"data-dnd-sortable":d,"data-dnd-state":y?"dragging":"idle",tabIndex:!0===g||"object"==typeof g&&g.draggable?-1:0,style:{...n,cursor:"move",userSelect:"none",...u(a,d)}})},f=({dragConfig:e,dragIndex:t,...n})=>e?o().createElement(p,{...n,dragConfig:e,dragIndex:t}):o().createElement("th",{...n}),g=({dragConfig:e,dragIndex:t,style:n,...i})=>{const s=(0,r.useContext)(c);return o().createElement("td",{...i,style:{...n,...e?u(s,e.sortableId):{}}})};n.d(t,["default",0,({table:e,configs:t,onOrderChange:n})=>{const{token:s}=a.A.useToken(),{direction:u}=(0,r.useContext)(d.Ay.ConfigContext),p=e.props,[v,m]=(0,r.useState)({active:null,over:null}),[h,y]=(0,r.useState)(null),[b,x]=(0,r.useState)(null),_=h?.configs??t,S=h?.columns??p.columns,w=(0,r.useMemo)(()=>b?.basis===_?b.ids:_.map(e=>e.sortableId),[_,b]);(0,i.nM)({onDragStart(e){const n=e.operation.source?.id;void 0!==n&&w.includes(n)&&(y({configs:t,columns:p.columns}),m({active:n,over:n}))},onDragOver(e){const t=e.operation.source?.id;if(void 0===t||!w.includes(t))return;e.preventDefault();const n=e.operation.target?.id,r=void 0!==n&&w.includes(n)?n:null;m(e=>e.active===t&&e.over===r?e:{active:t,over:r})},onDragEnd(e){const r=e.operation.source?.id,o=e.operation.target?.id,i=h?.configs===t;if(y(null),i&&!e.canceled&&void 0!==r&&void 0!==o){const e=w.indexOf(r),i=w.indexOf(o);if(e>=0&&i>=0&&e!==i){const r=[...w];r.splice(i,0,r.splice(e,1)[0]),x({basis:t,ids:r}),n(r)}}m({active:null,over:null})}});const D=(0,r.useMemo)(()=>({state:v,ids:w,fill:s.colorFillSecondary,border:s.colorTextTertiary,rtl:"rtl"===u}),[u,w,v,s.colorFillSecondary,s.colorTextTertiary]),E=(0,r.useMemo)(()=>{const e=new Map(_.map((e,t)=>[e.sortableId,t]));return w.map((t,n)=>{const r=e.get(t),o=S[r],i=_[r],s=e=>(...t)=>({..."function"==typeof e?e(...t):{},dragConfig:i,dragIndex:n});return{...o,title:(0,l.lq)(i.children),onHeaderCell:s(o.onHeaderCell),onCell:s(o.onCell)}})},[_,w,S]),k=(0,r.useMemo)(()=>({...p.components,header:{...p.components?.header,cell:f},body:{...p.components?.body,cell:g}}),[p.components]),j=_.find(e=>e.sortableId===v.active);return o().createElement(c.Provider,{value:D},o().cloneElement(e,{columns:E,components:k}),o().createElement(i.Hd,{disabled:e=>!e||!w.includes(e.id),dropAnimation:null,style:{backgroundColor:s.colorBgElevated,color:s.colorText,padding:s.padding,boxSizing:"border-box",boxShadow:s.boxShadowSecondary,pointerEvents:"none"}},j?(0,l.lq)(j.children):null))}])},"./src/utils/jsxRuntime.ts"(e,t,n){var r=n("react"),o=n.n(r);const i=(e,t,n)=>o().createElement(e,void 0===n?t:{...t,key:n}),s=(e,t,n)=>{const{children:r,...i}=t??{};return void 0!==n&&(i.key=n),Array.isArray(r)?o().createElement(e,i,...r):o().createElement(e,i,r)},a=o().Fragment;n.d(t,["FD",0,s,"FK",0,a,"Y",0,i])}}]);
|