@cldemo/ui-kit 1.1.5 → 1.1.6

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.
Files changed (137) hide show
  1. package/buildLibs/all/index.cjs +6 -6
  2. package/buildLibs/all/index.css +1 -1
  3. package/buildLibs/all/index.js +77 -75
  4. package/buildLibs/mobile/index.cjs +4 -4
  5. package/buildLibs/mobile/index.css +1 -1
  6. package/buildLibs/mobile/index.js +81 -79
  7. package/buildLibs/modules/ui-kit.css +1 -1
  8. package/buildLibs/styles/Common/Btn-base.css +4 -4
  9. package/buildLibs/styles/Common/Input-base.css +6 -6
  10. package/buildLibs/styles/Common/Token.css +23 -2
  11. package/buildLibs/styles/Element/ClBadge.css +23 -5
  12. package/buildLibs/styles/Element/ClButton.css +1 -1
  13. package/buildLibs/styles/Element/ClCard.css +1 -1
  14. package/buildLibs/styles/Element/ClCheckbox.css +4 -4
  15. package/buildLibs/styles/Element/ClCheckboxOne.css +4 -4
  16. package/buildLibs/styles/Element/ClClipboard.css +1 -1
  17. package/buildLibs/styles/Element/ClEllipsis.css +1 -1
  18. package/buildLibs/styles/Element/ClForm.css +3 -3
  19. package/buildLibs/styles/Element/ClFormValidate.css +1 -1
  20. package/buildLibs/styles/Element/ClInputCaptcha.css +3 -3
  21. package/buildLibs/styles/Element/ClInputNumberStepper.css +11 -11
  22. package/buildLibs/styles/Element/ClInputTextarea.css +2 -1
  23. package/buildLibs/styles/Element/ClLoadScreen.css +1 -1
  24. package/buildLibs/styles/Element/ClModal.css +1 -1
  25. package/buildLibs/styles/Element/ClProgress.css +2 -2
  26. package/buildLibs/styles/Element/ClRadio.css +3 -3
  27. package/buildLibs/styles/Element/ClRadioOne.css +3 -3
  28. package/buildLibs/styles/Element/ClSlider.css +1 -1
  29. package/buildLibs/styles/Element/ClSwitchery.css +2 -2
  30. package/buildLibs/styles/Element/ClTags.css +3 -3
  31. package/buildLibs/styles/Element/__provide__/LoadScreen.css +1 -1
  32. package/buildLibs/styles/Mobile/ClBanner.css +1 -1
  33. package/buildLibs/styles/Mobile/ClCalendarM.css +3 -3
  34. package/buildLibs/styles/Mobile/ClCell.css +1 -1
  35. package/buildLibs/styles/Mobile/ClCellSwipe.css +2 -2
  36. package/buildLibs/styles/Mobile/ClCodeLegendM.css +1 -1
  37. package/buildLibs/styles/Mobile/ClCropperM.css +3 -3
  38. package/buildLibs/styles/Mobile/ClGrid.css +1 -1
  39. package/buildLibs/styles/Mobile/ClInputPin.css +3 -3
  40. package/buildLibs/styles/Mobile/ClNotifyM.css +4 -4
  41. package/buildLibs/styles/Mobile/ClNumberKeyboard.css +3 -3
  42. package/buildLibs/styles/Mobile/ClPicker.css +1 -1
  43. package/buildLibs/styles/Mobile/ClPickerArea.css +1 -1
  44. package/buildLibs/styles/Mobile/ClPickerDate.css +1 -1
  45. package/buildLibs/styles/Mobile/ClPickerTime.css +1 -1
  46. package/buildLibs/styles/Mobile/ClSharePanel.css +1 -1
  47. package/buildLibs/styles/Mobile/ClSidebar.css +2 -2
  48. package/buildLibs/styles/Mobile/ClSignature.css +1 -1
  49. package/buildLibs/styles/Mobile/ClSteps.css +1 -1
  50. package/buildLibs/styles/Mobile/ClTabbar.css +23 -5
  51. package/buildLibs/styles/Mobile/ClToast.css +1 -1
  52. package/buildLibs/styles/Mobile/__provide__/NotifyM.css +4 -4
  53. package/buildLibs/styles/Mobile/__provide__/Toast.css +1 -1
  54. package/buildLibs/styles/Web/ClAnchorNav.css +1 -1
  55. package/buildLibs/styles/Web/ClCalendar.css +1 -1
  56. package/buildLibs/styles/Web/ClCodeLegend.css +2 -2
  57. package/buildLibs/styles/Web/ClColorpicker.css +11 -11
  58. package/buildLibs/styles/Web/ClCropper.css +1 -1
  59. package/buildLibs/styles/Web/ClCropperPreview.css +12 -12
  60. package/buildLibs/styles/Web/ClDatetime.css +26 -26
  61. package/buildLibs/styles/Web/ClDropdownMenu.css +5 -5
  62. package/buildLibs/styles/Web/ClDropdownPopup.css +5 -5
  63. package/buildLibs/styles/Web/ClEchartsLineAxisTag.css +1 -1
  64. package/buildLibs/styles/Web/ClFileUpload.css +9 -9
  65. package/buildLibs/styles/Web/ClInputTag.css +40 -21
  66. package/buildLibs/styles/Web/ClPaginate.css +39 -21
  67. package/buildLibs/styles/Web/ClPreviewExample.css +3 -3
  68. package/buildLibs/styles/Web/ClSelect.css +37 -19
  69. package/buildLibs/styles/Web/ClSelectCascade.css +37 -19
  70. package/buildLibs/styles/Web/ClSelectTag.css +2 -2
  71. package/buildLibs/styles/Web/ClSelectTree.css +27 -9
  72. package/buildLibs/styles/Web/ClSelectmove.css +36 -18
  73. package/buildLibs/styles/Web/ClTable.css +43 -25
  74. package/buildLibs/styles/Web/ClTableEdit.css +1 -1
  75. package/buildLibs/styles/Web/ClXeditable.css +79 -60
  76. package/buildLibs/styles/Web/__directive__/Tooltip.css +1 -1
  77. package/buildLibs/styles/Web/__provide__/Alert.css +1 -1
  78. package/buildLibs/styles/Web/__provide__/Notify.css +3 -3
  79. package/buildLibs/styles/Web/__provide__/Preview.css +3 -3
  80. package/buildLibs/utils/Element/ClDarg.cjs +1 -1
  81. package/buildLibs/utils/Element/ClDarg.js +48 -46
  82. package/buildLibs/utils/Element/ClInputCaptcha.css +1 -1
  83. package/buildLibs/utils/Element/ClInputPin.css +1 -1
  84. package/buildLibs/utils/Element/ClProgress.css +1 -1
  85. package/buildLibs/utils/Element/ClSwitchery.css +1 -1
  86. package/buildLibs/utils/Mobile/ClBanner.css +1 -1
  87. package/buildLibs/utils/Mobile/ClCell.css +1 -1
  88. package/buildLibs/utils/Mobile/ClCellSwipe.css +1 -1
  89. package/buildLibs/utils/Mobile/ClGrid.css +1 -1
  90. package/buildLibs/utils/Mobile/ClNumberKeyboard.css +1 -1
  91. package/buildLibs/utils/Mobile/ClSharePanel.css +1 -1
  92. package/buildLibs/utils/Mobile/ClSidebar.css +1 -1
  93. package/buildLibs/utils/Mobile/ClSignature.css +1 -1
  94. package/buildLibs/utils/Mobile/ClSteps.css +1 -1
  95. package/buildLibs/utils/Shared/Column.css +1 -1
  96. package/buildLibs/utils/Shared/Index11.css +1 -1
  97. package/buildLibs/utils/Shared/Index12.css +1 -1
  98. package/buildLibs/utils/Shared/Index13.css +1 -1
  99. package/buildLibs/utils/Shared/Index14.css +1 -1
  100. package/buildLibs/utils/Shared/Index17.css +1 -1
  101. package/buildLibs/utils/Shared/Index19.css +1 -1
  102. package/buildLibs/utils/Shared/Index20.css +1 -1
  103. package/buildLibs/utils/Shared/Index22.css +1 -1
  104. package/buildLibs/utils/Shared/Index24.css +1 -1
  105. package/buildLibs/utils/Shared/Index26.css +1 -1
  106. package/buildLibs/utils/Shared/Index31.css +1 -1
  107. package/buildLibs/utils/Shared/Index32.css +1 -1
  108. package/buildLibs/utils/Shared/Index33.css +1 -1
  109. package/buildLibs/utils/Shared/Index35.css +1 -1
  110. package/buildLibs/utils/Shared/Index36.css +1 -1
  111. package/buildLibs/utils/Shared/Index37.css +1 -1
  112. package/buildLibs/utils/Shared/Index4.css +1 -1
  113. package/buildLibs/utils/Shared/Index40.css +1 -1
  114. package/buildLibs/utils/Shared/Index5.css +1 -1
  115. package/buildLibs/utils/Shared/Index6.css +1 -1
  116. package/buildLibs/utils/Shared/Index7.css +1 -1
  117. package/buildLibs/utils/Shared/Input.css +1 -1
  118. package/buildLibs/utils/Shared/List.css +1 -1
  119. package/buildLibs/utils/Shared/Notify.css +1 -1
  120. package/buildLibs/utils/Shared/Popup.css +1 -1
  121. package/buildLibs/utils/Shared/btn.css +1 -1
  122. package/buildLibs/utils/Shared/index3.css +1 -1
  123. package/buildLibs/utils/Shared/index42.css +1 -1
  124. package/buildLibs/utils/Web/ClCalendar.css +1 -1
  125. package/buildLibs/utils/Web/ClCalendarM.css +1 -1
  126. package/buildLibs/utils/Web/ClCodeLegend.css +1 -1
  127. package/buildLibs/utils/Web/ClColorPicker.css +1 -1
  128. package/buildLibs/utils/Web/ClCropperM.css +1 -1
  129. package/buildLibs/utils/Web/ClSelectMove.css +1 -1
  130. package/buildLibs/utils/Web/ClSelectTree.css +1 -1
  131. package/buildLibs/utils/Web/ClTable.css +1 -1
  132. package/buildLibs/utils/Web/ClTableEdit.css +1 -1
  133. package/buildLibs/web/index.cjs +5 -5
  134. package/buildLibs/web/index.css +1 -1
  135. package/buildLibs/web/index.js +76 -74
  136. package/docs/tokens/design-token.md +25 -4
  137. package/package.json +1 -1
@@ -3,4 +3,4 @@
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
6
- */function wt(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,t)}return r}function te(n){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wt(Object(r),!0).forEach(function(t){qt(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function qe(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qe=function(e){return typeof e}:qe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(n)}function qt(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function oe(){return oe=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},oe.apply(this,arguments)}function zt(n,e){if(n==null)return{};var r={},t=Object.keys(n),o,i;for(i=0;i<t.length;i++)o=t[i],!(e.indexOf(o)>=0)&&(r[o]=n[o]);return r}function Ut(n,e){if(n==null)return{};var r=zt(n,e),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o<i.length;o++)t=i[o],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(r[t]=n[t])}return r}var Vt="1.15.0";function re(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ie=re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ye=re(/Edge/i),Dt=re(/firefox/i),Fe=re(/safari/i)&&!re(/chrome/i)&&!re(/android/i),At=re(/iP(ad|od|hone)/i),xt=re(/chrome/i)&&re(/android/i),Pt={capture:!1,passive:!1};function C(n,e,r){n.addEventListener(e,r,!ie&&Pt)}function _(n,e,r){n.removeEventListener(e,r,!ie&&Pt)}function Je(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function $t(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function ee(n,e,r,t){if(n){r=r||document;do{if(e!=null&&(e[0]===">"?n.parentNode===r&&Je(n,e):Je(n,e))||t&&n===r)return n;if(n===r)break}while(n=$t(n))}return null}var _t=/\s+/g;function H(n,e,r){if(n&&e)if(n.classList)n.classList[r?"add":"remove"](e);else{var t=(" "+n.className+" ").replace(_t," ").replace(" "+e+" "," ");n.className=(t+(r?" "+e:"")).replace(_t," ")}}function E(n,e,r){var t=n&&n.style;if(t){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(r=n.currentStyle),e===void 0?r:r[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=r+(typeof r=="string"?"":"px")}}function Se(n,e){var r="";if(typeof n=="string")r=n;else do{var t=E(n,"transform");t&&t!=="none"&&(r=t+" "+r)}while(!e&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(r)}function Bt(n,e,r){if(n){var t=n.getElementsByTagName(e),o=0,i=t.length;if(r)for(;o<i;o++)r(t[o],o);return t}return[]}function z(){var n=document.scrollingElement;return n||document.documentElement}function R(n,e,r,t,o){if(!(!n.getBoundingClientRect&&n!==window)){var i,a,l,s,u,f,h;if(n!==window&&n.parentNode&&n!==z())i=n.getBoundingClientRect(),a=i.top,l=i.left,s=i.bottom,u=i.right,f=i.height,h=i.width;else{var m=document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth,p=document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight;a=0,l=0,s=p,u=m,f=p,h=m}if((e||r)&&n!==window&&(o=o||n.parentNode,!ie))do if(o&&o.getBoundingClientRect&&(E(o,"transform")!=="none"||r&&E(o,"position")!=="static")){var g=o.getBoundingClientRect();a-=g.top+parseInt(E(o,"border-top-width")),l-=g.left+parseInt(E(o,"border-left-width")),s=a+i.height,u=l+i.width;break}while(o=o.parentNode);if(t&&n!==window){var v=Se(o||n),D=v&&v.a,F=v&&v.d;v&&(a/=F,l/=D,h/=D,f/=F,s=a+f,u=l+h)}return{top:a,left:l,bottom:s,right:u,width:h,height:f}}}function St(n,e,r){for(var t=ce(n,!0),o=R(n)[e];t;){var i=R(t)[r],a=void 0;if(a=o>=i,!a)return t;if(t===z())break;t=ce(t,!1)}return!1}function Ce(n,e,r,t){for(var o=0,i=0,a=n.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==b.ghostClone&&(t||a[i]!==b.dragged)&&ee(a[i],r.draggable,n,!1)){if(o===e)return a[i];o++}i++}return null}function vt(n,e){for(var r=n.lastElementChild;r&&(r===b.ghostClone||E(r,"display")==="none"||e&&!Je(r,e));)r=r.previousElementSibling;return r||null}function q(n,e){var r=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==b.clone&&(!e||Je(n,e))&&r++;return r}function Ct(n){var e=0,r=0,t=z();if(n)do{var o=Se(n),i=o.a,a=o.d;e+=n.scrollLeft*i,r+=n.scrollTop*a}while(n!==t&&(n=n.parentNode));return[e,r]}function Jt(n,e){for(var r in n)if(n.hasOwnProperty(r)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n[r][t])return Number(r)}return-1}function ce(n,e){if(!n||!n.getBoundingClientRect)return z();var r=n,t=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var o=E(r);if(r.clientWidth<r.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return z();if(t||e)return r;t=!0}}while(r=r.parentNode);return z()}function Kt(n,e){if(n&&e)for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function rt(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var ke;function Rt(n,e){return function(){if(!ke){var r=arguments,t=this;r.length===1?n.call(t,r[0]):n.apply(t,r),ke=setTimeout(function(){ke=void 0},e)}}}function Zt(){clearTimeout(ke),ke=void 0}function Ft(n,e,r){n.scrollLeft+=e,n.scrollTop+=r}function kt(n){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):r?r(n).clone(!0)[0]:n.cloneNode(!0)}var M="Sortable"+new Date().getTime();function Qt(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(E(o,"display")==="none"||o===b.ghostClone)){n.push({target:o,rect:R(o)});var i=te({},n[n.length-1].rect);if(o.thisAnimationDuration){var a=Se(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(Jt(n,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var i=!1,a=0;n.forEach(function(l){var s=0,u=l.target,f=u.fromRect,h=R(u),m=u.prevFromRect,p=u.prevToRect,g=l.rect,v=Se(u,!0);v&&(h.top-=v.f,h.left-=v.e),u.toRect=h,u.thisAnimationDuration&&rt(m,h)&&!rt(f,h)&&(g.top-h.top)/(g.left-h.left)===(f.top-h.top)/(f.left-h.left)&&(s=tn(g,m,p,o.options)),rt(h,f)||(u.prevFromRect=f,u.prevToRect=h,s||(s=o.options.animation),o.animate(u,g,h,s)),s&&(i=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),i?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),n=[]},animate:function(t,o,i,a){if(a){E(t,"transition",""),E(t,"transform","");var l=Se(this.el),s=l&&l.a,u=l&&l.d,f=(o.left-i.left)/(s||1),h=(o.top-i.top)/(u||1);t.animatingX=!!f,t.animatingY=!!h,E(t,"transform","translate3d("+f+"px,"+h+"px,0)"),this.forRepaintDummy=en(t),E(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),E(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){E(t,"transition",""),E(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function en(n){return n.offsetWidth}function tn(n,e,r,t){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*t.animation}var ve=[],ot={initializeByDefault:!0},je={mount:function(e){for(var r in ot)ot.hasOwnProperty(r)&&!(r in e)&&(e[r]=ot[r]);ve.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),ve.push(e)},pluginEvent:function(e,r,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=e+"Global";ve.forEach(function(a){r[a.pluginName]&&(r[a.pluginName][i]&&r[a.pluginName][i](te({sortable:r},t)),r.options[a.pluginName]&&r[a.pluginName][e]&&r[a.pluginName][e](te({sortable:r},t)))})},initializePlugins:function(e,r,t,o){ve.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,r,e.options);u.sortable=e,u.options=e.options,e[s]=u,oe(t,u.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,r){var t={};return ve.forEach(function(o){typeof o.eventProperties=="function"&&oe(t,o.eventProperties.call(r[o.pluginName],e))}),t},modifyOption:function(e,r,t){var o;return ve.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[r]=="function"&&(o=i.optionListeners[r].call(e[i.pluginName],t))}),o}};function nn(n){var e=n.sortable,r=n.rootEl,t=n.name,o=n.targetEl,i=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,u=n.newIndex,f=n.oldDraggableIndex,h=n.newDraggableIndex,m=n.originalEvent,p=n.putSortable,g=n.extraEventProperties;if(e=e||r&&r[M],!!e){var v,D=e.options,F="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!ie&&!Ye?v=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(t,!0,!0)),v.to=a||r,v.from=l||r,v.item=o||r,v.clone=i,v.oldIndex=s,v.newIndex=u,v.oldDraggableIndex=f,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=p?p.lastPutMode:void 0;var P=te(te({},g),je.getEventProperties(t,e));for(var O in P)v[O]=P[O];r&&r.dispatchEvent(v),D[F]&&D[F].call(e,v)}}var rn=["evt"],j=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=Ut(t,rn);je.pluginEvent.bind(b)(e,r,te({dragEl:d,parentEl:A,ghostEl:y,rootEl:T,nextEl:pe,lastDownEl:ze,cloneEl:I,cloneHidden:de,dragStarted:Pe,putSortable:X,activeSortable:b.active,originalEvent:o,oldIndex:_e,oldDraggableIndex:Xe,newIndex:G,newDraggableIndex:ue,hideGhostForTarget:Yt,unhideGhostForTarget:jt,cloneNowHidden:function(){de=!0},cloneNowShown:function(){de=!1},dispatchSortableEvent:function(l){Y({sortable:r,name:l,originalEvent:o})}},i))};function Y(n){nn(te({putSortable:X,cloneEl:I,targetEl:d,rootEl:T,oldIndex:_e,oldDraggableIndex:Xe,newIndex:G,newDraggableIndex:ue},n))}var d,we,A,y,xe,Ie,T,pe,ze,I,de,_e,G,Xe,ue,be,X,De=!1,Ke=!1,Ze=[],V,K,it,at,Tt,Ot,Pe,ye,Le,Me=!1,He=!1,Ue,N,lt=[],ht=!1,Qe=[],Ae=null,Q=null,st=null,ne=null,tt=typeof document<"u",Ee=At,Nt=Ye||ie?"cssFloat":"float",on=tt&&!xt&&!At&&"draggable"in document.createElement("div"),Xt=(function(){if(tt){if(ie)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}})(),Lt=function(e,r){var t=E(e),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Ce(e,0,r),a=Ce(e,1,r),l=i&&E(i),s=a&&E(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+R(i).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+R(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var h=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===h)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=o&&t[Nt]==="none"||a&&t[Nt]==="none"&&u+f>o)?"vertical":"horizontal"},an=function(e,r,t){var o=t?e.left:e.top,i=t?e.right:e.bottom,a=t?e.width:e.height,l=t?r.left:r.top,s=t?r.right:r.bottom,u=t?r.width:r.height;return o===l||i===s||o+a/2===l+u/2},ln=function(e,r){var t;return Ze.some(function(o){var i=o[M].options.emptyInsertThreshold;if(!(!i||vt(o))){var a=R(o),l=e>=a.left-i&&e<=a.right+i,s=r>=a.top-i&&r<=a.bottom+i;if(l&&s)return t=o}}),t},Mt=function(e){function r(i,a){return function(l,s,u,f){var h=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(i==null&&(a||h))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return r(i(l,s,u,f),a)(l,s,u,f);var m=(a?l:s).options.group.name;return i===!0||typeof i=="string"&&i===m||i.join&&i.indexOf(m)>-1}}var t={},o=e.group;(!o||qe(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=r(o.pull,!0),t.checkPut=r(o.put),t.revertClone=o.revertClone,e.group=t},Yt=function(){!Xt&&y&&E(y,"display","none")},jt=function(){!Xt&&y&&E(y,"display","")};tt&&!xt&&document.addEventListener("click",function(n){if(Ke)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Ke=!1,!1},!0);var he=function(e){if(d){e=e.touches?e.touches[0]:e;var r=ln(e.clientX,e.clientY);if(r){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.clientX=e.clientX,t.clientY=e.clientY,t.pageX=e.pageX!==void 0?e.pageX:e.clientX,t.pageY=e.pageY!==void 0?e.pageY:e.clientY,t.target=t.rootEl=r,t.preventDefault=void 0,t.stopPropagation=void 0,r[M]._onDragOver(t)}}},sn=function(e){if(d){var r=c._findOwnerSortable(d.parentNode);r&&r._isOutsideThisEl(e.target)}};function b(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=oe({},e),n[M]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:b.supportPointer!==!1&&"PointerEvent"in window&&!Fe,emptyInsertThreshold:5,extOption:{boundary:{isOut:!1,element:"",x:0,y:0},wrapBody:{isWrap:!1,element:""},cross:{isCross:!1,isSameStruct:!0,dropEndBeforeCallback:null},tree:{isTree:!1,maxDepth:3,indentThreshold:20,isOnlyInnerMove:!1,isDragToChild:!0,isDragToParent:!0,rootId:"",regionCls:".darg-region"}}};je.initializePlugins(this,n,r);for(var t in r)!(t in e)&&(e[t]=r[t]);Mt(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:on,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(n,"pointerdown",this._onTapStart):(C(n,"mousedown",this._onTapStart),C(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(n,"dragover",this),C(n,"dragenter",this)),Ze.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),oe(this,Qt())}b.prototype={constructor:b,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(ye=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var r=this,t=this.el,o=this.options,i=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=o.filter;if(mn(t),!d&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Fe&&s&&s.tagName.toUpperCase()==="SELECT")){var h=t;if(c.isTreeMode(o)){var m=c._treeRegionCls(o),p=c.getOwnerRegion(s,m);p&&(h=p)}if(s=ee(s,o.draggable,h,!1),!(s&&s.animated)&&ze!==s){if(_e=q(s),Xe=q(s,o.draggable),typeof f=="function"){if(f.call(this,e,s,this)){Y({sortable:r,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),j("filter",r,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(g){if(g=ee(u,g.trim(),t,!1),g)return Y({sortable:r,rootEl:g,name:"filter",targetEl:s,fromEl:t,toEl:t}),j("filter",r,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!ee(u,o.handle,t,!1)||this._prepareDragStart(e,l,s)}}}},_prepareDragStart:function(e,r,t){var o=this,i=o.el,a=o.options,l=i.ownerDocument,s,u=!!(a.extOption&&a.extOption.tree&&a.extOption.tree.isTree),f=!1;if(t&&!d){if(t.parentNode===i)f=!0;else if(u&&i.contains(t)){var h=c.findNearestTreeRoot(t,i);f=h===i}}if(f){var m=R(t);if(T=i,d=t,A=d.parentNode,pe=d.nextSibling,ze=t,be=a.group,b.dragged=d,V={target:d,clientX:(r||e).clientX,clientY:(r||e).clientY},Tt=V.clientX-m.left,Ot=V.clientY-m.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,c.isTreeMode(a)){var p=r||e;c._tree.startPageX=p.pageX!==void 0?p.pageX:p.clientX,c._tree.dropInfo=null,c._tree.startDragDepth=c.getNodeDepth(d,c._treeRegionCls(a));var g=window.pageXOffset||document.documentElement.scrollLeft||0;c._tree.startLeftPage=d.getBoundingClientRect().left+g}if(d.style["will-change"]="transform",s=function(){if(j("delayEnded",o,{evt:e}),b.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Dt&&o.nativeDraggable&&(d.draggable=!0),o._triggerDragStart(e,r),Y({sortable:o,name:"choose",originalEvent:e}),H(d,a.chosenClass,!0)},a.ignore.split(",").forEach(function(v){Bt(d,v.trim(),ut)}),C(l,"dragover",he),C(l,"mousemove",he),C(l,"touchmove",he),C(l,"mouseup",o._onDrop),C(l,"touchend",o._onDrop),C(l,"touchcancel",o._onDrop),Dt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),j("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Ye||ie))){if(b.eventCanceled){this._onDrop();return}C(l,"mouseup",o._disableDelayedDrag),C(l,"touchend",o._disableDelayedDrag),C(l,"touchcancel",o._disableDelayedDrag),C(l,"mousemove",o._delayedDragTouchMoveHandler),C(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&ut(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;_(e,"mouseup",this._disableDelayedDrag),_(e,"touchend",this._disableDelayedDrag),_(e,"touchcancel",this._disableDelayedDrag),_(e,"mousemove",this._delayedDragTouchMoveHandler),_(e,"touchmove",this._delayedDragTouchMoveHandler),_(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):r?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(d,"dragend",this),C(T,"dragstart",this._onDragStart));try{document.selection?Ve(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(De=!1,T&&d){j("dragStarted",this,{evt:r}),this.nativeDraggable&&C(document,"dragover",sn);var t=this.options;!e&&H(d,t.dragClass,!1),H(d,t.ghostClass,!0),b.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(K){this._lastX=K.clientX,this._lastY=K.clientY,Yt();for(var e=document.elementFromPoint(K.clientX,K.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(K.clientX,K.clientY),e!==r);)r=e;var t=c._findOwnerSortable(d.parentNode);if(t&&t._isOutsideThisEl(e),r)do{if(r[M]){var o=void 0;if(o=r[M]._onDragOver({clientX:K.clientX,clientY:K.clientY,target:e,rootEl:r}),o&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);jt()}},_onTouchMove:function(e){if(V){var r=this.options,t=r.fallbackTolerance,o=r.fallbackOffset,i=e.touches?e.touches[0]:e,a=y&&(st||(st=Se(y,!0))),l=y&&a&&a.a,s=y&&a&&a.d,u,f=Ee&&N?z():null,h,m;if(Ee&&N&&(ne&&ne.el===N&&ne.scrollLeft===N.scrollLeft&&ne.scrollTop===N.scrollTop&&ne.winTop===f.scrollTop&&ne.winLeft===f.scrollLeft?u=ne.offset:(u=Ct(N),ne={el:N,scrollLeft:N.scrollLeft,scrollTop:N.scrollTop,winTop:f.scrollTop,winLeft:f.scrollLeft,offset:u})),h=(i.clientX-V.clientX+o.x)/(l||1)+(u?u[0]-lt[0]:0)/(l||1),m=(i.clientY-V.clientY+o.y)/(s||1)+(u?u[1]-lt[1]:0)/(s||1),!b.active&&!De){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(y){a?(a.e+=h-(it||0),a.f+=m-(at||0)):a={a:1,b:0,c:0,d:1,e:h,f:m};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");E(y,"transform",p),it=h,at=m,K=i;const D=c.checkMoveOutBoundary(y,this.el,this.options);if(D.isOut){var g=0;Ee||(Ae==null&&(Ae=z().scrollTop),g=z().scrollTop-Ae),Ie?(a.e=Ie.e,a.f=Ie.f-g):(D.top&&(a.f=D.x*-1-g),D.right&&(a.e=D.y),D.bottom&&(a.f=D.x-g),D.left&&(a.e=D.y*-1));var v="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");E(y,"transform",v)}else Ae=null,Ie={a:a.a,b:a.b,c:a.c,d:a.d,e:a.e,f:a.f}}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!y){var e=this.options.fallbackOnBody?document.body:T,r=R(d,!0,Ee,!0,e),t=this.options;if(Ee){for(N=e;E(N,"position")==="static"&&E(N,"transform")==="none"&&N!==document;)N=N.parentNode;N!==document.body&&N!==document.documentElement?(N===document&&(N=z()),r.top+=N.scrollTop,r.left+=N.scrollLeft):N=z(),lt=Ct(N)}xe=d.cloneNode(!0),y=d.cloneNode(!0),y=c.setWrapBody(y,this.el,this.options),H(y,t.ghostClass,!1),H(y,t.fallbackClass,!0),H(y,t.dragClass,!0),E(y,"transition",""),E(y,"transform",""),E(y,"box-sizing","border-box"),E(y,"margin",0),E(y,"top",r.top),E(y,"left",r.left),E(y,"width",r.width),E(y,"height",r.height),E(y,"opacity","0.8"),E(y,"position",Ee?"absolute":"fixed"),E(y,"zIndex","100000"),E(y,"pointerEvents","none"),b.ghost=y,b.ghostClone=xe,e.appendChild(y),E(y,"transform-origin",Tt/parseInt(y.style.width)*100+"% "+Ot/parseInt(y.style.height)*100+"%")}},_onDragStart:function(e,r){var t=this,o=e.dataTransfer,i=t.options;if(j("dragStart",this,{evt:e}),b.eventCanceled){this._onDrop();return}j("setupClone",this),b.eventCanceled||(I=kt(d),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),H(I,this.options.chosenClass,!1),b.clone=I),t.cloneId=Ve(function(){j("clone",t),!b.eventCanceled&&(t.options.removeCloneOnHide||T.insertBefore(I,d),t._hideClone(),Y({sortable:t,name:"clone"}))}),!r&&H(d,i.dragClass,!0),r?(Ke=!0,t._loopId=setInterval(t._emulateDragOver,50)):(_(document,"mouseup",t._onDrop),_(document,"touchend",t._onDrop),_(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,d)),C(document,"drop",t),E(d,"transform","translateZ(0)")),De=!0,t._dragStartId=Ve(t._dragStarted.bind(t,r,e)),C(document,"selectstart",t),Pe=!0,Fe&&E(document.body,"user-select","none")},_onDragOver:function(e){var r=this.el,t=e.target,o,i,a,l=this.options,s=l.group,u=b.active,f=be===s,h=l.sort,m=X||u,p,g=this,v=!1;if(ht)return;if(c.isTreeMode(l)){var D=f;if(!D&&s&&be){var F=!!s.name&&s.name===be.name;F&&(D=typeof s.checkPut=="function"?!!s.checkPut(this,u,d,e):!0)}if(!D){c._tree.dropInfo={isReject:!0,reason:"out-of-group"},c.renderTreeIndicator(this,e),e.cancelable&&e.preventDefault();return}c.treeDragOver(this,e,t),c.renderTreeIndicator(this,e),e.cancelable&&e.preventDefault();return}function P(Oe,We){j(Oe,g,te({evt:e,isOwner:f,axis:p?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:h,fromSortable:m,target:t,completed:w,onMove:function(Et,Ht){return Ge(T,r,d,o,Et,R(Et),e,Ht)},changed:x},We))}function O(){P("dragOverAnimationCapture"),g.captureAnimationState(),g!==m&&m.captureAnimationState()}function w(Oe){if(P("dragOverCompleted",{insertion:Oe}),Oe&&(f?u._hideClone():u._showClone(g),g!==m&&(H(d,X?X.options.ghostClass:u.options.ghostClass,!1),H(d,l.ghostClass,!0)),X!==g&&g!==b.active?X=g:g===b.active&&X&&(X=null),m===g&&(g._ignoreWhileAnimating=t),g.animateAll(function(){P("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(t===d&&!d.animated||t===r&&!t.animated)&&(ye=null),!l.dragoverBubble&&!e.rootEl&&t!==document){var We=c._findOwnerSortable(d.parentNode);We&&We._isOutsideThisEl(e.target),!Oe&&he(e)}return!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function x(){G=q(d),ue=q(d,l.draggable),Y({sortable:g,name:"change",toEl:r,newIndex:G,newDraggableIndex:ue,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=ee(t,l.draggable,r,!0),P("dragOver"),b.eventCanceled)return v;if(d.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||g._ignoreWhileAnimating===t)return w(!1);if(Ke=!1,u&&!l.disabled&&(f?h||(a=A!==T):X===this||(this.lastPutMode=be.checkPull(this,u,d,e))&&s.checkPut(this,u,d,e))){if(p=this._getDirection(e,t)==="vertical",o=R(d),P("dragOverValid"),b.eventCanceled)return v;if(a)return A=T,O(),this._hideClone(),P("revert"),b.eventCanceled||(c.setCrossEl(t,this.options),pe?T.insertBefore(d,pe):T.appendChild(d)),w(!0);var S=vt(r,l.draggable);if(!S||fn(e,p,this)&&!S.animated){if(S===d)return w(!1);if(S&&r===e.target&&(t=S),t&&(i=R(t)),Ge(T,r,d,o,t,i,e,!!t)!==!1)return O(),c.setCrossEl(t,this.options),S&&S.nextSibling?r.insertBefore(d,S.nextSibling):r.appendChild(d),A=r,x(),w(!0)}else if(S&&cn(e,p,this)){var k=Ce(r,0,l,!0);if(k===d)return w(!1);if(t=k,i=R(t),Ge(T,r,d,o,t,i,e,!1)!==!1)return O(),c.setCrossEl(t,this.options),r.insertBefore(d,k),A=r,x(),w(!0)}else if(t.parentNode===r){i=R(t);var W=0,L,ge=d.parentNode!==r,ae=!an(d.animated&&d.toRect||o,t.animated&&t.toRect||i,p),le=p?"top":"left",$=St(t,"top","top")||St(d,"top","top"),se=$?$.scrollTop:void 0;ye!==t&&(L=i[le],Me=!1,He=!ae&&l.invertSwap||ge),W=hn(e,t,i,p,ae?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,He,ye===t);var Z;if(W!==0){var fe=q(d);do fe-=W,Z=A.children[fe];while(Z&&(E(Z,"display")==="none"||Z===xe))}if(W===0||Z===t)return w(!1);ye=t,Le=W;var Te=t.nextElementSibling,J=!1;J=W===1;var me=Ge(T,r,d,o,t,i,e,J);if(me!==!1)return(me===1||me===-1)&&(J=me===1),ht=!0,setTimeout(dn,30),O(),c.setCrossEl(t,this.options),J&&!Te?r.appendChild(d):t.parentNode.insertBefore(d,J?Te:t),$&&Ft($,0,se-$.scrollTop),A=d.parentNode,L!==void 0&&!He&&(Ue=Math.abs(L-R(t)[le])),x(),w(!0)}if(r.contains(d))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",he),_(document,"mousemove",he),_(document,"touchmove",he)},_offUpEvents:function(){var e=this.el.ownerDocument;_(e,"mouseup",this._onDrop),_(e,"touchend",this._onDrop),_(e,"pointerup",this._onDrop),_(e,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(e){c.crossDropEnd(this.options,this.el).then(r=>{if(!this.el){this._nulling();return}if(r){var t=this.el,o=this.options;if(G=q(d),ue=q(d,o.draggable),j("drop",this,{evt:e}),A=d&&d.parentNode,G=q(d),ue=q(d,o.draggable),c.isTreeMode(o)&&typeof o.onUpdate=="function"&&o.onUpdate(),b.eventCanceled){this._nulling();return}De=!1,He=!1,Me=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),pt(this.cloneId),pt(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fe&&E(document.body,"user-select",""),E(d,"transform",""),e&&(Pe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),y&&y.parentNode&&y.parentNode.removeChild(y),(T===A||X&&X.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),d&&(this.nativeDraggable&&_(d,"dragend",this),ut(d),d.style["will-change"]="",Pe&&!De&&H(d,X?X.options.ghostClass:this.options.ghostClass,!1),H(d,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:A,newIndex:null,newDraggableIndex:null,originalEvent:e}),T!==A?(G>=0&&(Y({rootEl:A,name:"add",toEl:A,fromEl:T,originalEvent:e}),Y({sortable:this,name:"remove",toEl:A,originalEvent:e}),Y({rootEl:A,name:"sort",toEl:A,fromEl:T,originalEvent:e}),Y({sortable:this,name:"sort",toEl:A,originalEvent:e})),X&&X.save()):G!==_e&&G>=0&&(Y({sortable:this,name:"update",toEl:A,originalEvent:e}),Y({sortable:this,name:"sort",toEl:A,originalEvent:e})),b.active&&((G==null||G===-1)&&(G=_e,ue=Xe),Y({sortable:this,name:"end",toEl:A,originalEvent:e}),this.save()))),this._nulling()}})},_nulling:function(){j("nulling",this),T=d=we=A=y=xe=pe=I=ze=de=V=K=Pe=G=ue=_e=Xe=ye=Le=X=be=b.dragged=b.ghost=b.ghostClone=b.clone=b.active=Ie=Ae=st=ne=null,c._clearHiddenBox(),c.resetTreeState(),Qe.forEach(function(e){e.checked=!0}),Qe.length=it=at=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),un(e));break;case"selectstart":e.preventDefault();break}},toArray:function(e){for(var r=[],t,o=this.el.children,i=0,a=o.length,l=this.options;i<a;i++)t=o[i],ee(t,l.draggable,this.el,!1)&&r.push(t.getAttribute(l.dataIdAttr)||gn(t));return r},sort:function(e,r){var t={},o=this.el;this.toArray().forEach(function(i,a){var l=o.children[a];ee(l,this.options.draggable,o,!1)&&(t[i]=l)},this),r&&this.captureAnimationState(),e.forEach(function(i){t[i]&&(o.removeChild(t[i]),o.appendChild(t[i]))}),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return ee(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var t=this.options;if(r===void 0)return t[e];var o=je.modifyOption(this,e,r);typeof o<"u"?t[e]=o:t[e]=r,e==="group"&&Mt(t)},destroy:function(){j("destroy",this);var e=this.el;e[M]=null,_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart),_(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._offMoveEvents(),this._offUpEvents(),this._onDrop(),y&&y.parentNode&&(y.parentNode.removeChild(y),y=null),this._disableDelayedDragEvents(),Ze.splice(Ze.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!de){if(j("hideClone",this),b.eventCanceled)return;E(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),de=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(de){if(j("showClone",this),b.eventCanceled)return;d.parentNode==T&&!this.options.group.revertClone?T.insertBefore(I,d):pe?T.insertBefore(I,pe):T.appendChild(I),this.options.group.revertClone&&this.animate(d,I),E(I,"display",""),de=!1}}};function un(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Ge(n,e,r,t,o,i,a,l){var s,u=n[M],f=u.options.onMove,h;return window.CustomEvent&&!ie&&!Ye?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=n,s.dragged=r,s.draggedRect=t,s.related=o||e,s.relatedRect=i||R(e),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),f&&(h=f.call(u,s,a)),h}function ut(n){n.draggable=!1}function dn(){ht=!1}function cn(n,e,r){var t=R(Ce(r.el,0,r.options,!0)),o=10;return e?n.clientX<t.left-o||n.clientY<t.top&&n.clientX<t.right:n.clientY<t.top-o||n.clientY<t.bottom&&n.clientX<t.left}function fn(n,e,r){var t=R(vt(r.el,r.options.draggable)),o=10;return e?n.clientX>t.right+o||n.clientX<=t.right&&n.clientY>t.bottom&&n.clientX>=t.left:n.clientX>t.right&&n.clientY>t.top||n.clientX<=t.right&&n.clientY>t.bottom+o}function hn(n,e,r,t,o,i,a,l){var s=t?n.clientY:n.clientX,u=t?r.height:r.width,f=t?r.top:r.left,h=t?r.bottom:r.right,m=!1;if(!a){if(l&&Ue<u*o){if(!Me&&(Le===1?s>f+u*i/2:s<h-u*i/2)&&(Me=!0),Me)m=!0;else if(Le===1?s<f+Ue:s>h-Ue)return-Le}else if(s>f+u*(1-o)/2&&s<h-u*(1-o)/2)return pn(e)}return m=m||a,m&&(s<f+u*i/2||s>h-u*i/2)?s>f+u/2?1:-1:0}function pn(n){return q(d)<q(n)?1:-1}function gn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,r=e.length,t=0;r--;)t+=e.charCodeAt(r);return t.toString(36)}function mn(n){Qe.length=0;for(var e=n.getElementsByTagName("input"),r=e.length;r--;){var t=e[r];t.checked&&Qe.push(t)}}function Ve(n){return setTimeout(n,0)}function pt(n){return clearTimeout(n)}tt&&C(document,"touchmove",function(n){(b.active||De)&&n.cancelable&&n.preventDefault()});b.utils={on:C,off:_,css:E,find:Bt,is:function(e,r){return!!ee(e,r,e,!1)},extend:Kt,throttle:Rt,closest:ee,toggleClass:H,clone:kt,index:q,nextTick:Ve,cancelNextTick:pt,detectDirection:Lt,getChild:Ce};b.get=function(n){return n[M]};b.mount=function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(b.utils=te(te({},b.utils),t.utils)),je.mount(t)})};b.create=function(n,e){return new b(n,e)};b.version=Vt;var B=[],Be,gt,mt=!1,dt,ct,et,Re;function vn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(r){var t=r.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):t.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var t=r.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),It(),$e(),Zt()},nulling:function(){et=gt=Be=mt=Re=dt=ct=null,B.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,t){var o=this,i=(r.touches?r.touches[0]:r).clientX,a=(r.touches?r.touches[0]:r).clientY,l=document.elementFromPoint(i,a);if(et=r,t||this.options.forceAutoScrollFallback||Ye||ie||Fe){ft(r,this.options,l,t);var s=ce(l,!0);mt&&(!Re||i!==dt||a!==ct)&&(Re&&It(),Re=setInterval(function(){var u=ce(document.elementFromPoint(i,a),!0);u!==s&&(s=u,$e()),ft(r,o.options,u,t)},10),dt=i,ct=a)}else{if(!this.options.bubbleScroll||ce(l,!0)===z()){$e();return}ft(r,this.options,ce(l,!1),!1)}}},oe(n,{pluginName:"scroll",initializeByDefault:!0})}function $e(){B.forEach(function(n){clearInterval(n.pid)}),B=[]}function It(){clearInterval(Re)}var ft=Rt(function(n,e,r,t){if(e.scroll){var o=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=z(),u=!1,f;gt!==r&&(gt=r,$e(),Be=e.scroll,f=e.scrollFn,Be===!0&&(Be=ce(r,!0)));var h=0,m=Be;do{var p=m,g=R(p),v=g.top,D=g.bottom,F=g.left,P=g.right,O=g.width,w=g.height,x=void 0,S=void 0,k=p.scrollWidth,W=p.scrollHeight,L=E(p),ge=p.scrollLeft,ae=p.scrollTop;p===s?(x=O<k&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),S=w<W&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(x=O<k&&(L.overflowX==="auto"||L.overflowX==="scroll"),S=w<W&&(L.overflowY==="auto"||L.overflowY==="scroll"));var le=x&&(Math.abs(P-o)<=a&&ge+O<k)-(Math.abs(F-o)<=a&&!!ge),$=S&&(Math.abs(D-i)<=a&&ae+w<W)-(Math.abs(v-i)<=a&&!!ae);if(!B[h])for(var se=0;se<=h;se++)B[se]||(B[se]={});(B[h].vx!=le||B[h].vy!=$||B[h].el!==p)&&(B[h].el=p,B[h].vx=le,B[h].vy=$,clearInterval(B[h].pid),(le!=0||$!=0)&&(u=!0,B[h].pid=setInterval(function(){t&&this.layer===0&&b.active._onTouchMove(et);var Z=B[this.layer].vy?B[this.layer].vy*l:0,fe=B[this.layer].vx?B[this.layer].vx*l:0;typeof f=="function"&&f.call(b.dragged.parentNode[M],fe,Z,n,et,B[this.layer].el)!=="continue"||Ft(B[this.layer].el,fe,Z)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&m!==s&&(m=ce(m,!1)));mt=u}},30),Wt=function(e){var r=e.originalEvent,t=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(r){var u=t||i;l();var f=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,h=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(h)&&(a("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function bt(){}bt.prototype={startIndex:null,dragStart:function(e){var r=e.oldDraggableIndex;this.startIndex=r},onSpill:function(e){var r=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=Ce(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(r,o):this.sortable.el.appendChild(r),this.sortable.animateAll(),t&&t.animateAll()},drop:Wt};oe(bt,{pluginName:"revertOnSpill"});function yt(){}yt.prototype={onSpill:function(e){var r=e.dragEl,t=e.putSortable,o=t||this.sortable;o.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),o.animateAll()},drop:Wt};oe(yt,{pluginName:"removeOnSpill"});const c={isBoolean:n=>typeof n=="boolean",isFunction:n=>typeof n=="function",isUndefined:n=>typeof n>"u"||n===null,isFiniteNumber:n=>typeof n=="number"&&isFinite(n),getOffset:n=>{const e=n.getBoundingClientRect(),t=(n&&n.ownerDocument).documentElement;let o;if(t.toString()!=="[object Window]"){const i=n.ownerDocument;o=i&&i.defaultView||window}else o=t;return{top:e.top+(o.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(o.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},createElement:n=>{if(n.substring(0,1)==="<"){const r=document.createElement("div");return r.innerHTML=n,r.children[0]}else return document.createElement(n)},getElementData:(n,e)=>{const r=[],t=n.children,o=t.length;let i;for(let a=0;a<o;a++){i=t[a];const l=i.getAttribute(e.dataIdAttr);l&&l.length>0&&r.push(l)}return r},_getHiddenBox:()=>(Q||(Q=document.createElement("div"),Q.style.cssText="position:fixed;left:-99999px;top:0;width:1px;height:1px;overflow:hidden;pointer-events:none;",document.body.appendChild(Q)),Q),_moveToHiddenBox:n=>{n&&n.parentNode&&c._getHiddenBox().appendChild(n)},_clearHiddenBox:()=>{Q&&Q.parentNode&&(Q.parentNode.removeChild(Q),Q=null)},checkMoveOutBoundary:(n,e,r)=>{let t=!0,o={};const i=r.extOption.boundary;if(i){let a=i.isOut;if(a=c.isBoolean(a)?a:!0,!a){let l;if(i.element&&i.element.length>0){const s=window.document.querySelector(i.element);s&&(l=c.getOffset(s))}else l=c.getOffset(e);if(l){const s=c.getOffset(n);let u=Number(i.x);isNaN(u)&&(u=0);let f=Number(i.y);isNaN(f)&&(f=0);const h=l.top-u>s.top,m=l.left+l.width+f<s.left+s.width,p=l.top+l.height+u<s.top+s.height,g=l.left-f>s.left;t=!(h||m||p||g),t||(o={top:h,right:m,bottom:p,left:g,x:u,y:f})}}}return o.isOut=!t,o},setWrapBody:(n,e,r)=>{let t=n,o=r.extOption.wrapBody;if(r.fallbackOnBody&&(o?r.extOption.wrapBody.isWrap=!0:r.extOption.wrapBody={isWrap:!0},o=r.extOption.wrapBody),o){let i=o.isWrap;if(i=c.isBoolean(i)?i:!1,i)if(o.element&&o.element.length>0)t=c.createElement(o.element),t.appendChild(n);else switch(t=e.cloneNode(),t.appendChild(n),t.tagName.toLocaleLowerCase()){case"tbody":const a=e.parentNode.cloneNode();a.appendChild(t),t=a;break}}return t},checkCross:(n,e,r)=>{const t=r.extOption.cross;let o={newEl:null,isSameStruct:!0};if(t){let i=t.isCross;if(i=c.isBoolean(i)?i:!1,n.parentNode===e.parentNode&&(i=!1),i){let a=t.isSameStruct;if(a=c.isBoolean(a)?a:!0,!a){const l=e.tagName.toLocaleLowerCase(),s=c.createElement(l),u=[],f=["darg-select","darg-placeholder"];switch(e.className.split(" ").forEach(h=>{f.indexOf(h)===-1&&u.push(h)}),u.push(...f),s.className=u.join(" "),E(s,"height",e.clientHeight),l){case"tr":let h=0;for(let p=0;p<e.children.length;p++){const g=e.children[p].getAttribute("colspan");h+=c.isUndefined(g)?1:Number(g)}const m=c.createElement("td");m.setAttribute("colspan",h),s.appendChild(m);break}o.isSameStruct=!1,o.newEl=s}}}return o},setCrossEl:(n,e)=>{var r=c.checkCross(d,n,e);if(!r.isSameStruct){const t=d.cloneNode(!0);c._moveToHiddenBox(d),we?(d=we,we=null):d=r.newEl,we||(we=t)}},crossDropEnd:(n,e)=>new Promise((r,t)=>{const o=n.extOption.cross;let i=!1;const a=d&&d.parentNode;if(o){let s=o.isCross;if(s=c.isBoolean(s)?s:!1,s){let u=!1;if(a)if(c.isTreeMode(n)){var l=e||b.active&&b.active.el||n.el;u=!!l&&!l.contains(d)}else u=T!==a;u&&o.dropEndBeforeCallback&&(i=!0)}}if(i){const s=xe||d,u=s&&s.getAttribute?s.getAttribute(n.dataIdAttr):null,f=c.getElementData(a,n),h=o.dropEndBeforeCallback({data:u,inx:q(d),arrSortId:f});if(h&&h.then&&c.isFunction(h.then))c._crossDropLoad(!0),h.then(m=>{c._crossDropLoad(!1);const p=c._crossDropEndCb(m);r({success:p})});else{const m=c._crossDropEndCb(h);r({success:m})}}else r({success:!0})}),_crossDropLoad:n=>{let e;const r=d.tagName.toLocaleLowerCase();if(d.children.length===0)e=d;else switch(r){case"tr":e=d.children[0];break}if(n){const t=c.createElement("div");t.className="panel-darg-loading",t.innerHTML='<div class="darg-add-loading"></div>',e.appendChild(t)}else{const t=d.querySelector(".panel-darg-loading");t&&t.parentNode&&t.parentNode.removeChild(t)}},_crossDropEndCb:n=>{var e=c.isBoolean(n)?n:!0;return e&&d&&d.parentNode&&d.parentNode.removeChild(d),e},_tree:{startPageX:0,startDragDepth:null,startLeftPage:null,depthCache:null,dropInfo:null},_findOwnerSortable:n=>{for(var e=n;e;){var r=e[M];if(r&&c.isFunction(r._isOutsideThisEl))return r;e=e.parentNode}return null},_treeRegionCls:n=>n&&n.extOption&&n.extOption.tree&&n.extOption.tree.regionCls||".darg-region",isTreeMode:n=>!!(n&&n.extOption&&n.extOption.tree&&n.extOption.tree.isTree),findNearestTreeRoot:(n,e)=>{for(var r=n;r;){if(r[M]&&r[M].options&&c.isTreeMode(r[M].options))return r;r=r.parentNode}return e},getNodeDepth:(n,e)=>{for(var r=0,t=n;t&&(t.matches&&t.matches(e)&&r++,!(t.matches&&t[M]&&t[M].options));)t=t.parentNode;return r},getOwnerRegion:(n,e)=>{for(var r=n.parentNode;r;){if(r.matches&&r.matches(e))return r;r=r.parentNode}return null},getChildRegion:(n,e)=>{for(var r=n.children||[],t=0;t<r.length;t++)if(r[t].matches&&r[t].matches(e))return r[t];return null},findSiblingFallback:(n,e)=>{var r="data-id",t=p=>!!p&&p.getAttribute&&p.getAttribute(r)!==null,o=n&&n.parentNode;if(o){var i=Array.from(o.children).filter(p=>t(p)&&p!==n&&!n.contains(p));if(i.length){var a=e&&e.getBoundingClientRect?e.getBoundingClientRect():null;if(a)for(var l=a.top+a.height/2,s=0;s<i.length;s++){var u=i[s].getBoundingClientRect();if(l>=u.top&&l<=u.bottom)return i[s]}return i[0]}}for(var f=o,h=0;f&&h++<20;){var m=f.parentNode;if(t(m)&&m!==n&&!n.contains(m))return m;f=m?m.parentNode:null}return null},resolveTreeDrop:(n,e,r,t,o)=>{for(var i=t.extOption.tree||{},a=c._treeRegionCls(t),l={isReject:!1,reason:"",targetDepth:0,hoverNode:null,intent:"same"},s=t.dataIdAttr||"data-id",u=e;u&&u!==t.el&&!(u.getAttribute&&u.getAttribute(s)!==null);)u=u.parentNode;if(!u||u===t.el)return l.isReject=!0,l.reason="no-node",l;if(u===n||n.contains(u)){var f=c.findSiblingFallback(n,e);f&&(u=f)}if(l.hoverNode=u,n.contains(u))return l.isReject=!0,l.reason="cycle",l;if(i.isOnlyInnerMove){var h=c.findNearestTreeRoot(n,null),m=c.findNearestTreeRoot(u,null);if(h!==m)return l.isReject=!0,l.reason="out-of-group",l}var p=c.getOwnerRegion(u,a),g=p?c.getNodeDepth(u,a):1;g<1&&(g=1);var v=Number(i.indentThreshold);(isNaN(v)||v<=0)&&(v=20);var D=window.pageXOffset||document.documentElement.scrollLeft||0,F=u.getBoundingClientRect().left+D,P=F-(g-1)*v,O=1+Math.round((o-P)/v);O<1&&(O=1);var w=Number(i.maxDepth);isNaN(w)&&(w=3);var x=c._tree.startDragDepth!==null&&c._tree.startDragDepth!==void 0?c._tree.startDragDepth:c.getNodeDepth(n,a),S=O,k=!1;return S>x&&!i.isDragToChild&&(S=x,k=!0),S<x&&!i.isDragToParent&&(S=x,k=!0),w>0&&S>w&&(S=w,S<x&&(S=x)),l.targetDepth=S,l.isDepthForced=k,S>x?l.intent="child":S<x?l.intent="parent":l.intent="same",l.dragDepth=x,l.hoverDepth=g,l},resolveTreeInsert:(n,e,r,t)=>{var o=c._treeRegionCls(r),i={container:null,refNode:null};if(!e)return i;if(n.intent==="child"){var a=c.getChildRegion(e,o);return a||(a=c.createChildRegion(e,r)),i.container=a,i.refNode=c.findInsertRef(a,t,r),i}for(var l=n.targetDepth!==void 0?n.targetDepth:n.hoverDepth,s=e,u=n.hoverDepth;s&&u>l;){var f=c.getOwnerRegion(s,o);if(!f||!f.parentNode)break;var h=f.parentNode;if(!h.getAttribute||h.getAttribute(r.dataIdAttr||"data-id")===null)break;s=h,u--}for(;s&&u<l;){var m=c.getChildRegion(s,o);if(!m)break;if(s=m,u++,u<l){for(var p=null,g=m.children||[],v=0;v<g.length;v++)g[v].getAttribute&&g[v].getAttribute(r.dataIdAttr||"data-id")!==null&&g[v]!==d&&(p=g[v]);if(!p){u--;break}s=p}}var D;s&&s.matches&&s.matches(o)?D=s:D=c.getOwnerRegion(s,o);var F=n.isDepthForced===!0;if(F&&u!==l){var P=c.getOwnerRegion(d,o);if(P)return i.container=P,i.refNode=c.findInsertRef(P,t,r),i}return D&&(i.container=D,i.refNode=c.findInsertRef(D,t,r)),i},findInsertRef:(n,e,r)=>{for(var t=r.dataIdAttr||"data-id",o=[],i=n.children||[],a=0;a<i.length;a++){var l=i[a];l.getAttribute&&l.getAttribute(t)!==null&&l!==d&&o.push(l)}for(var s=0;s<o.length;s++){var u=o[s].getBoundingClientRect(),f=u.top+u.height/2;if(e<f)return o[s]}return null},createChildRegion:(n,e)=>{var r=c._treeRegionCls(e),t=c.getOwnerRegion(n,r),o=t?t.tagName.toLocaleLowerCase():"ul",i=c.createElement(o),a=r.charAt(0)==="."?r.slice(1):r;return i.className=a+" "+c.TREE_AUTO_REGION_CLS,n.appendChild(i),i},TREE_AUTO_REGION_CLS:"darg-region-auto",cleanupEmptyAutoRegions:n=>{var e=n||document;if(!(!e||!e.querySelectorAll))for(var r=e.querySelectorAll("."+c.TREE_AUTO_REGION_CLS),t=r.length-1;t>=0;t--){for(var o=r[t],i=!1,a=o.children||[],l=0;l<a.length;l++)if(a[l].getAttribute&&a[l].getAttribute("data-id")!==null){i=!0;break}i||d&&(o===d.parentNode||o.contains(d))||o.parentNode&&o.parentNode.removeChild(o)}},treeDragOver:(n,e,r)=>{var t=n.options,o=e.clientX,i=e.clientY;if(!c.isFiniteNumber(o)||!c.isFiniteNumber(i))if(V&&c.isFiniteNumber(V.clientX)&&c.isFiniteNumber(V.clientY))o=V.clientX,i=V.clientY;else return!1;var a=e.pageX!==void 0&&c.isFiniteNumber(e.pageX)?e.pageX:o,l=document.elementFromPoint(o,i),s=l||r;s&&(s===d||s.closest(".sortable-fallback"))&&(s=r);var u=c.resolveTreeDrop(d,s,e,t,a);if(c._tree.dropInfo=u,u.isReject)return!1;var f=c.resolveTreeInsert(u,u.hoverNode,t,i);if(!f.container)return!1;if(d.contains(f.container))return c._tree.dropInfo={isReject:!0,reason:"cycle-container"},!1;if(f.container===d.parentNode&&(f.refNode===d||f.refNode===d.nextSibling))return!1;var h=f.refNode;return h?f.container.insertBefore(d,h):f.container.appendChild(d),c.cleanupEmptyAutoRegions(n.el||document),!0},renderTreeIndicator:(n,e)=>{var r=n.options,t=c._tree.dropInfo,o=document.body,i=o.querySelector(".darg-tree-indicator");if(!t||t.isReject||!t.hoverNode){i&&i.parentNode&&i.parentNode.removeChild(i);return}i||(i=c.createElement("div"),i.className="darg-tree-indicator",o.appendChild(i)),c._treeRegionCls(r);var a=t.hoverNode.getBoundingClientRect(),l=Number(r.extOption.tree.indentThreshold)||20,s=(t.targetDepth-t.hoverDepth)*l,u=a.left+s,f=a.width-s;f<20&&(f=20);var h=t.intent==="child"?a.bottom-1:a.top;i.style.cssText="position:fixed;pointer-events:none;z-index:100001;height:2px;background:#409eff;left:"+u+"px;top:"+h+"px;width:"+f+"px;border-radius:1px;"},clearTreeIndicator:()=>{var n=document.querySelector(".darg-tree-indicator");n&&n.parentNode&&n.parentNode.removeChild(n),c._tree.dropInfo=null},resetTreeState:()=>{c._tree.startPageX=0,c._tree.startDragDepth=null,c._tree.startLeftPage=null,c._tree.depthCache=null,c._tree.dropInfo=null,c.clearTreeIndicator(),c.cleanupEmptyAutoRegions(document)}};b.mount(new vn);b.mount(yt,bt);const bn=["id"],yn=U.defineComponent({name:"ClDarg",__name:"Index",props:{id:String,className:String,group:[String,Object],dargRegionCls:{type:String,default:".darg-region"},handleCls:{type:String,default:".darg-handle"},selectCls:{type:String,default:"darg-select"},placeholderCls:{type:String,default:"darg-placeholder"},isBoundaryOut:{type:Boolean,default:!0},boundaryElement:String,isWrapBody:{type:Boolean,default:!0},wrapBodyElement:String,isDisabledInner:{type:Boolean,default:!1},isDisabledOutsideInto:{type:Boolean,default:!1},isGroupSameStruct:{type:Boolean,default:!0},keyAttrId:{type:String,default:"data-id"},animation:{type:Number,default:150},groupDropEndBeforeCallback:Function,isTree:{type:Boolean,default:!1},maxDepth:{type:Number,default:3},indentThreshold:{type:Number,default:20},isOnlyInnerMove:{type:Boolean,default:!1},isDragToChild:{type:Boolean,default:!0},isDragToParent:{type:Boolean,default:!0}},emits:{onChangeSort:n=>!0,onError:n=>!0},setup(n,{expose:e,emit:r}){const t=n,o=r,i=t.id,a=U.useTemplateRef("refElTop"),l={sortableObj:null},s=U.computed(()=>{let p={"panel-darg":!0};return p=nt.getJsonMerge(p,Gt.getClassNameJson(t.className)),p}),u=()=>{const p=a.value;if(!p)return[];const g=t.keyAttrId||"data-id",v=t.dargRegionCls||".darg-region",D=O=>{const w={id:O.getAttribute(g)||"",children:[]};return Array.from(O.children).filter(S=>S.matches&&S.matches(v)).forEach(S=>{Array.from(S.children).forEach(k=>{k.matches&&k.matches("li,[data-id]")&&w.children.push(D(k))})}),w},F=[];return Array.from(p.querySelectorAll(v)).filter(O=>{let w=O.parentElement;for(;w&&w!==p;){if(w.matches&&w.matches(v))return!1;w=w.parentElement}return!0}).forEach(O=>{Array.from(O.children).forEach(w=>{w.matches&&w.matches("li,[data-id]")&&F.push(D(w))})}),F},f=()=>{if(t.isTree){o("onChangeSort",u());return}const p=l.sortableObj?.toArray?.()||[];o("onChangeSort",p)},h=()=>{U.nextTick(()=>{let p=null;try{if(p=a.value?.querySelector(t.dargRegionCls||".darg-region"),!p){Ne.warn("ClDarg","未找到拖拽区域元素:",t.dargRegionCls||".darg-region"),o("onError","未找到拖拽区域元素");return}const{group:g,placeholderCls:v,handleCls:D,selectCls:F,isBoundaryOut:P,boundaryElement:O,isWrapBody:w,wrapBodyElement:x,isDisabledInner:S,isDisabledOutsideInto:k,isGroupSameStruct:W,groupDropEndBeforeCallback:L,keyAttrId:ge,isTree:ae,maxDepth:le,indentThreshold:$,isOnlyInnerMove:se,isDragToChild:Z,isDragToParent:fe}=t;let Te=W;ae&&!W&&(Te=!0,Ne.warn("ClDarg","树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true(原值 false 被忽略)"),o("onError","树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true"));const J={sort:!S,forceFallback:!0,fallbackOnBody:w,fallbackTolerance:0,handle:D,ghostClass:v,chosenClass:F,dragClass:"darg-moveing",animation:t.animation,dataIdAttr:ge,extOption:{boundary:{isOut:P,element:O,x:5,y:20},wrapBody:{isWrap:w,element:x},cross:{isCross:!1,isSameStruct:Te,dropEndBeforeCallback:L||null},tree:{isTree:ae,maxDepth:le,indentThreshold:$,isOnlyInnerMove:se,isDragToChild:Z,isDragToParent:fe,rootId:i||""}},onUpdate:()=>{f()}};if(g&&!nt.isEmpty(g))if(J.extOption.cross.isCross=!0,k){const me=nt.isObject(g)?g.name:g;J.group={name:me,pull:"clone",put:!1},J.animation=0}else J.group=g;l.sortableObj=new b(p,J)}catch(g){Ne.warn("ClDarg","Sortable 初始化失败:",g),o("onError","拖拽组件初始化失败")}})};return U.onMounted(()=>{h()}),U.onUpdated(()=>{if(!l.sortableObj)return;const p=a.value?.querySelector(t.dargRegionCls||".darg-region");if(p&&l.sortableObj.el!==p){try{l.sortableObj.destroy()}catch(g){Ne.warn("ClDarg","重建前销毁旧实例失败:",g)}l.sortableObj=null,h()}}),U.onBeforeUnmount(()=>{if(l.sortableObj){try{l.sortableObj.destroy()}catch(p){Ne.warn("ClDarg","销毁拖拽实例失败:",p)}l.sortableObj=null}}),e({getArrSort:()=>t.isTree?u():l.sortableObj?.toArray?l.sortableObj.toArray():[]}),(p,g)=>(U.openBlock(),U.createElementBlock("div",{ref_key:"refElTop",ref:a,id:U.unref(i),class:U.normalizeClass(s.value)},[U.renderSlot(p.$slots,"default")],10,bn))}});module.exports=yn;
6
+ */function wt(n,e){var r=Object.keys(n);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(n);e&&(t=t.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),r.push.apply(r,t)}return r}function te(n){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?wt(Object(r),!0).forEach(function(t){qt(n,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(r)):wt(Object(r)).forEach(function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(r,t))})}return n}function qe(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?qe=function(e){return typeof e}:qe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qe(n)}function qt(n,e,r){return e in n?Object.defineProperty(n,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):n[e]=r,n}function oe(){return oe=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(n[t]=r[t])}return n},oe.apply(this,arguments)}function zt(n,e){if(n==null)return{};var r={},t=Object.keys(n),o,i;for(i=0;i<t.length;i++)o=t[i],!(e.indexOf(o)>=0)&&(r[o]=n[o]);return r}function Ut(n,e){if(n==null)return{};var r=zt(n,e),t,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(o=0;o<i.length;o++)t=i[o],!(e.indexOf(t)>=0)&&Object.prototype.propertyIsEnumerable.call(n,t)&&(r[t]=n[t])}return r}var Vt="1.15.0";function re(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var ie=re(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ye=re(/Edge/i),Dt=re(/firefox/i),Fe=re(/safari/i)&&!re(/chrome/i)&&!re(/android/i),At=re(/iP(ad|od|hone)/i),xt=re(/chrome/i)&&re(/android/i),Pt={capture:!1,passive:!1};function C(n,e,r){n.addEventListener(e,r,!ie&&Pt)}function _(n,e,r){n.removeEventListener(e,r,!ie&&Pt)}function Je(n,e){if(e){if(e[0]===">"&&(e=e.substring(1)),n)try{if(n.matches)return n.matches(e);if(n.msMatchesSelector)return n.msMatchesSelector(e);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(e)}catch{return!1}return!1}}function $t(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function ee(n,e,r,t){if(n){r=r||document;do{if(e!=null&&(e[0]===">"?n.parentNode===r&&Je(n,e):Je(n,e))||t&&n===r)return n;if(n===r)break}while(n=$t(n))}return null}var _t=/\s+/g;function H(n,e,r){if(n&&e)if(n.classList)n.classList[r?"add":"remove"](e);else{var t=(" "+n.className+" ").replace(_t," ").replace(" "+e+" "," ");n.className=(t+(r?" "+e:"")).replace(_t," ")}}function E(n,e,r){var t=n&&n.style;if(t){if(r===void 0)return document.defaultView&&document.defaultView.getComputedStyle?r=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(r=n.currentStyle),e===void 0?r:r[e];!(e in t)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),t[e]=r+(typeof r=="string"?"":"px")}}function Se(n,e){var r="";if(typeof n=="string")r=n;else do{var t=E(n,"transform");t&&t!=="none"&&(r=t+" "+r)}while(!e&&(n=n.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(r)}function Bt(n,e,r){if(n){var t=n.getElementsByTagName(e),o=0,i=t.length;if(r)for(;o<i;o++)r(t[o],o);return t}return[]}function z(){var n=document.scrollingElement;return n||document.documentElement}function R(n,e,r,t,o){if(!(!n.getBoundingClientRect&&n!==window)){var i,a,l,s,u,f,h;if(n!==window&&n.parentNode&&n!==z())i=n.getBoundingClientRect(),a=i.top,l=i.left,s=i.bottom,u=i.right,f=i.height,h=i.width;else{var m=document.documentElement.clientWidth||document.body.clientWidth||window.innerWidth,p=document.documentElement.clientHeight||document.body.clientHeight||window.innerHeight;a=0,l=0,s=p,u=m,f=p,h=m}if((e||r)&&n!==window&&(o=o||n.parentNode,!ie))do if(o&&o.getBoundingClientRect&&(E(o,"transform")!=="none"||r&&E(o,"position")!=="static")){var g=o.getBoundingClientRect();a-=g.top+parseInt(E(o,"border-top-width")),l-=g.left+parseInt(E(o,"border-left-width")),s=a+i.height,u=l+i.width;break}while(o=o.parentNode);if(t&&n!==window){var v=Se(o||n),D=v&&v.a,F=v&&v.d;v&&(a/=F,l/=D,h/=D,f/=F,s=a+f,u=l+h)}return{top:a,left:l,bottom:s,right:u,width:h,height:f}}}function St(n,e,r){for(var t=ce(n,!0),o=R(n)[e];t;){var i=R(t)[r],a=void 0;if(a=o>=i,!a)return t;if(t===z())break;t=ce(t,!1)}return!1}function Ce(n,e,r,t){for(var o=0,i=0,a=n.children;i<a.length;){if(a[i].style.display!=="none"&&a[i]!==b.ghostClone&&(t||a[i]!==b.dragged)&&ee(a[i],r.draggable,n,!1)){if(o===e)return a[i];o++}i++}return null}function vt(n,e){for(var r=n.lastElementChild;r&&(r===b.ghostClone||E(r,"display")==="none"||e&&!Je(r,e));)r=r.previousElementSibling;return r||null}function q(n,e){var r=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==b.clone&&(!e||Je(n,e))&&r++;return r}function Ct(n){var e=0,r=0,t=z();if(n)do{var o=Se(n),i=o.a,a=o.d;e+=n.scrollLeft*i,r+=n.scrollTop*a}while(n!==t&&(n=n.parentNode));return[e,r]}function Jt(n,e){for(var r in n)if(n.hasOwnProperty(r)){for(var t in e)if(e.hasOwnProperty(t)&&e[t]===n[r][t])return Number(r)}return-1}function ce(n,e){if(!n||!n.getBoundingClientRect)return z();var r=n,t=!1;do if(r.clientWidth<r.scrollWidth||r.clientHeight<r.scrollHeight){var o=E(r);if(r.clientWidth<r.scrollWidth&&(o.overflowX=="auto"||o.overflowX=="scroll")||r.clientHeight<r.scrollHeight&&(o.overflowY=="auto"||o.overflowY=="scroll")){if(!r.getBoundingClientRect||r===document.body)return z();if(t||e)return r;t=!0}}while(r=r.parentNode);return z()}function Kt(n,e){if(n&&e)for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function rt(n,e){return Math.round(n.top)===Math.round(e.top)&&Math.round(n.left)===Math.round(e.left)&&Math.round(n.height)===Math.round(e.height)&&Math.round(n.width)===Math.round(e.width)}var ke;function Rt(n,e){return function(){if(!ke){var r=arguments,t=this;r.length===1?n.call(t,r[0]):n.apply(t,r),ke=setTimeout(function(){ke=void 0},e)}}}function Zt(){clearTimeout(ke),ke=void 0}function Ft(n,e,r){n.scrollLeft+=e,n.scrollTop+=r}function kt(n){var e=window.Polymer,r=window.jQuery||window.Zepto;return e&&e.dom?e.dom(n).cloneNode(!0):r?r(n).clone(!0)[0]:n.cloneNode(!0)}var M="Sortable"+new Date().getTime();function Qt(){var n=[],e;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var t=[].slice.call(this.el.children);t.forEach(function(o){if(!(E(o,"display")==="none"||o===b.ghostClone)){n.push({target:o,rect:R(o)});var i=te({},n[n.length-1].rect);if(o.thisAnimationDuration){var a=Se(o,!0);a&&(i.top-=a.f,i.left-=a.e)}o.fromRect=i}})}},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(Jt(n,{target:t}),1)},animateAll:function(t){var o=this;if(!this.options.animation){clearTimeout(e),typeof t=="function"&&t();return}var i=!1,a=0;n.forEach(function(l){var s=0,u=l.target,f=u.fromRect,h=R(u),m=u.prevFromRect,p=u.prevToRect,g=l.rect,v=Se(u,!0);v&&(h.top-=v.f,h.left-=v.e),u.toRect=h,u.thisAnimationDuration&&rt(m,h)&&!rt(f,h)&&(g.top-h.top)/(g.left-h.left)===(f.top-h.top)/(f.left-h.left)&&(s=tn(g,m,p,o.options)),rt(h,f)||(u.prevFromRect=f,u.prevToRect=h,s||(s=o.options.animation),o.animate(u,g,h,s)),s&&(i=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),i?e=setTimeout(function(){typeof t=="function"&&t()},a):typeof t=="function"&&t(),n=[]},animate:function(t,o,i,a){if(a){E(t,"transition",""),E(t,"transform","");var l=Se(this.el),s=l&&l.a,u=l&&l.d,f=(o.left-i.left)/(s||1),h=(o.top-i.top)/(u||1);t.animatingX=!!f,t.animatingY=!!h,E(t,"transform","translate3d("+f+"px,"+h+"px,0)"),this.forRepaintDummy=en(t),E(t,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),E(t,"transform","translate3d(0,0,0)"),typeof t.animated=="number"&&clearTimeout(t.animated),t.animated=setTimeout(function(){E(t,"transition",""),E(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},a)}}}}function en(n){return n.offsetWidth}function tn(n,e,r,t){return Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))/Math.sqrt(Math.pow(e.top-r.top,2)+Math.pow(e.left-r.left,2))*t.animation}var be=[],ot={initializeByDefault:!0},je={mount:function(e){for(var r in ot)ot.hasOwnProperty(r)&&!(r in e)&&(e[r]=ot[r]);be.forEach(function(t){if(t.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),be.push(e)},pluginEvent:function(e,r,t){var o=this;this.eventCanceled=!1,t.cancel=function(){o.eventCanceled=!0};var i=e+"Global";be.forEach(function(a){r[a.pluginName]&&(r[a.pluginName][i]&&r[a.pluginName][i](te({sortable:r},t)),r.options[a.pluginName]&&r[a.pluginName][e]&&r[a.pluginName][e](te({sortable:r},t)))})},initializePlugins:function(e,r,t,o){be.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,r,e.options);u.sortable=e,u.options=e.options,e[s]=u,oe(t,u.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);typeof a<"u"&&(e.options[i]=a)}},getEventProperties:function(e,r){var t={};return be.forEach(function(o){typeof o.eventProperties=="function"&&oe(t,o.eventProperties.call(r[o.pluginName],e))}),t},modifyOption:function(e,r,t){var o;return be.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[r]=="function"&&(o=i.optionListeners[r].call(e[i.pluginName],t))}),o}};function nn(n){var e=n.sortable,r=n.rootEl,t=n.name,o=n.targetEl,i=n.cloneEl,a=n.toEl,l=n.fromEl,s=n.oldIndex,u=n.newIndex,f=n.oldDraggableIndex,h=n.newDraggableIndex,m=n.originalEvent,p=n.putSortable,g=n.extraEventProperties;if(e=e||r&&r[M],!!e){var v,D=e.options,F="on"+t.charAt(0).toUpperCase()+t.substr(1);window.CustomEvent&&!ie&&!Ye?v=new CustomEvent(t,{bubbles:!0,cancelable:!0}):(v=document.createEvent("Event"),v.initEvent(t,!0,!0)),v.to=a||r,v.from=l||r,v.item=o||r,v.clone=i,v.oldIndex=s,v.newIndex=u,v.oldDraggableIndex=f,v.newDraggableIndex=h,v.originalEvent=m,v.pullMode=p?p.lastPutMode:void 0;var P=te(te({},g),je.getEventProperties(t,e));for(var O in P)v[O]=P[O];r&&r.dispatchEvent(v),D[F]&&D[F].call(e,v)}}var rn=["evt"],j=function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=t.evt,i=Ut(t,rn);je.pluginEvent.bind(b)(e,r,te({dragEl:d,parentEl:A,ghostEl:y,rootEl:T,nextEl:pe,lastDownEl:ze,cloneEl:I,cloneHidden:de,dragStarted:Pe,putSortable:X,activeSortable:b.active,originalEvent:o,oldIndex:_e,oldDraggableIndex:Xe,newIndex:G,newDraggableIndex:ue,hideGhostForTarget:Yt,unhideGhostForTarget:jt,cloneNowHidden:function(){de=!0},cloneNowShown:function(){de=!1},dispatchSortableEvent:function(l){Y({sortable:r,name:l,originalEvent:o})}},i))};function Y(n){nn(te({putSortable:X,cloneEl:I,targetEl:d,rootEl:T,oldIndex:_e,oldDraggableIndex:Xe,newIndex:G,newDraggableIndex:ue},n))}var d,De,A,y,xe,Ie,T,pe,ze,I,de,_e,G,Xe,ue,ye,X,ge=!1,Ke=!1,Ze=[],V,K,it,at,Tt,Ot,Pe,Ee,Le,Me=!1,He=!1,Ue,N,lt=[],ht=!1,Qe=[],Ae=null,Q=null,st=null,ne=null,tt=typeof document<"u",we=At,Nt=Ye||ie?"cssFloat":"float",on=tt&&!xt&&!At&&"draggable"in document.createElement("div"),Xt=(function(){if(tt){if(ie)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}})(),Lt=function(e,r){var t=E(e),o=parseInt(t.width)-parseInt(t.paddingLeft)-parseInt(t.paddingRight)-parseInt(t.borderLeftWidth)-parseInt(t.borderRightWidth),i=Ce(e,0,r),a=Ce(e,1,r),l=i&&E(i),s=a&&E(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+R(i).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+R(a).width;if(t.display==="flex")return t.flexDirection==="column"||t.flexDirection==="column-reverse"?"vertical":"horizontal";if(t.display==="grid")return t.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var h=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===h)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=o&&t[Nt]==="none"||a&&t[Nt]==="none"&&u+f>o)?"vertical":"horizontal"},an=function(e,r,t){var o=t?e.left:e.top,i=t?e.right:e.bottom,a=t?e.width:e.height,l=t?r.left:r.top,s=t?r.right:r.bottom,u=t?r.width:r.height;return o===l||i===s||o+a/2===l+u/2},ln=function(e,r){var t;return Ze.some(function(o){var i=o[M].options.emptyInsertThreshold;if(!(!i||vt(o))){var a=R(o),l=e>=a.left-i&&e<=a.right+i,s=r>=a.top-i&&r<=a.bottom+i;if(l&&s)return t=o}}),t},Mt=function(e){function r(i,a){return function(l,s,u,f){var h=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(i==null&&(a||h))return!0;if(i==null||i===!1)return!1;if(a&&i==="clone")return i;if(typeof i=="function")return r(i(l,s,u,f),a)(l,s,u,f);var m=(a?l:s).options.group.name;return i===!0||typeof i=="string"&&i===m||i.join&&i.indexOf(m)>-1}}var t={},o=e.group;(!o||qe(o)!="object")&&(o={name:o}),t.name=o.name,t.checkPull=r(o.pull,!0),t.checkPut=r(o.put),t.revertClone=o.revertClone,e.group=t},Yt=function(){!Xt&&y&&E(y,"display","none")},jt=function(){!Xt&&y&&E(y,"display","")};tt&&!xt&&document.addEventListener("click",function(n){if(Ke)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),Ke=!1,!1},!0);var he=function(e){if(d){e=e.touches?e.touches[0]:e;var r=ln(e.clientX,e.clientY);if(r){var t={};for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);t.clientX=e.clientX,t.clientY=e.clientY,t.pageX=e.pageX!==void 0?e.pageX:e.clientX,t.pageY=e.pageY!==void 0?e.pageY:e.clientY,t.target=t.rootEl=r,t.preventDefault=void 0,t.stopPropagation=void 0,r[M]._onDragOver(t)}}},sn=function(e){if(d){var r=c._findOwnerSortable(d.parentNode);r&&r._isOutsideThisEl(e.target)}};function b(n,e){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=e=oe({},e),n[M]=this;var r={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(n.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Lt(n,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:b.supportPointer!==!1&&"PointerEvent"in window&&!Fe,emptyInsertThreshold:5,extOption:{boundary:{isOut:!1,element:"",x:0,y:0},wrapBody:{isWrap:!1,element:""},cross:{isCross:!1,isSameStruct:!0,dropEndBeforeCallback:null},tree:{isTree:!1,maxDepth:3,indentThreshold:20,isOnlyInnerMove:!1,isDragToChild:!0,isDragToParent:!0,rootId:"",regionCls:".darg-region"}}};je.initializePlugins(this,n,r);for(var t in r)!(t in e)&&(e[t]=r[t]);Mt(e);for(var o in this)o.charAt(0)==="_"&&typeof this[o]=="function"&&(this[o]=this[o].bind(this));this.nativeDraggable=e.forceFallback?!1:on,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(n,"pointerdown",this._onTapStart):(C(n,"mousedown",this._onTapStart),C(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(n,"dragover",this),C(n,"dragenter",this)),Ze.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),oe(this,Qt())}b.prototype={constructor:b,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Ee=null)},_getDirection:function(e,r){return typeof this.options.direction=="function"?this.options.direction.call(this,e,r,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var r=this,t=this.el,o=this.options,i=o.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=o.filter;if(mn(t),!d&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||o.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Fe&&s&&s.tagName.toUpperCase()==="SELECT")){var h=t;if(c.isTreeMode(o)){var m=c._treeRegionCls(o),p=c.getOwnerRegion(s,m);p&&(h=p)}if(s=ee(s,o.draggable,h,!1),!(s&&s.animated)&&ze!==s){if(_e=q(s),Xe=q(s,o.draggable),typeof f=="function"){if(f.call(this,e,s,this)){Y({sortable:r,rootEl:u,name:"filter",targetEl:s,toEl:t,fromEl:t}),j("filter",r,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(g){if(g=ee(u,g.trim(),t,!1),g)return Y({sortable:r,rootEl:g,name:"filter",targetEl:s,fromEl:t,toEl:t}),j("filter",r,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}o.handle&&!ee(u,o.handle,t,!1)||this._prepareDragStart(e,l,s)}}}},_prepareDragStart:function(e,r,t){var o=this,i=o.el,a=o.options,l=i.ownerDocument,s,u=!!(a.extOption&&a.extOption.tree&&a.extOption.tree.isTree),f=!1;if(t&&!d){if(t.parentNode===i)f=!0;else if(u&&i.contains(t)){var h=c.findNearestTreeRoot(t,i);f=h===i}}if(f){var m=R(t);if(T=i,d=t,A=d.parentNode,pe=d.nextSibling,ze=t,ye=a.group,b.dragged=d,V={target:d,clientX:(r||e).clientX,clientY:(r||e).clientY},Tt=V.clientX-m.left,Ot=V.clientY-m.top,this._lastX=(r||e).clientX,this._lastY=(r||e).clientY,c.isTreeMode(a)){var p=r||e;c._tree.startPageX=p.pageX!==void 0?p.pageX:p.clientX,c._tree.dropInfo=null,c._tree.startDragDepth=c.getNodeDepth(d,c._treeRegionCls(a));var g=window.pageXOffset||document.documentElement.scrollLeft||0;c._tree.startLeftPage=d.getBoundingClientRect().left+g}if(d.style["will-change"]="transform",s=function(){if(j("delayEnded",o,{evt:e}),b.eventCanceled){o._onDrop();return}o._disableDelayedDragEvents(),!Dt&&o.nativeDraggable&&(d.draggable=!0),o._triggerDragStart(e,r),Y({sortable:o,name:"choose",originalEvent:e}),H(d,a.chosenClass,!0)},a.ignore.split(",").forEach(function(v){Bt(d,v.trim(),ut)}),C(l,"dragover",he),C(l,"mousemove",he),C(l,"touchmove",he),C(l,"mouseup",o._onDrop),C(l,"touchend",o._onDrop),C(l,"touchcancel",o._onDrop),Dt&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),j("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||r)&&(!this.nativeDraggable||!(Ye||ie))){if(b.eventCanceled){this._onDrop();return}C(l,"mouseup",o._disableDelayedDrag),C(l,"touchend",o._disableDelayedDrag),C(l,"touchcancel",o._disableDelayedDrag),C(l,"mousemove",o._delayedDragTouchMoveHandler),C(l,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var r=e.touches?e.touches[0]:e;Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&ut(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;_(e,"mouseup",this._disableDelayedDrag),_(e,"touchend",this._disableDelayedDrag),_(e,"touchcancel",this._disableDelayedDrag),_(e,"mousemove",this._delayedDragTouchMoveHandler),_(e,"touchmove",this._delayedDragTouchMoveHandler),_(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,r){r=r||e.pointerType=="touch"&&e,!this.nativeDraggable||r?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):r?C(document,"touchmove",this._onTouchMove):C(document,"mousemove",this._onTouchMove):(C(d,"dragend",this),C(T,"dragstart",this._onDragStart));try{document.selection?Ve(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,r){if(ge=!1,T&&d){j("dragStarted",this,{evt:r}),this.nativeDraggable&&C(document,"dragover",sn);var t=this.options;!e&&H(d,t.dragClass,!1),H(d,t.ghostClass,!0),b.active=this,e&&this._appendGhost(),Y({sortable:this,name:"start",originalEvent:r})}else this._nulling()},_emulateDragOver:function(){if(K){this._lastX=K.clientX,this._lastY=K.clientY,Yt();for(var e=document.elementFromPoint(K.clientX,K.clientY),r=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(K.clientX,K.clientY),e!==r);)r=e;var t=c._findOwnerSortable(d.parentNode);if(t&&t._isOutsideThisEl(e),r)do{if(r[M]){var o=void 0;if(o=r[M]._onDragOver({clientX:K.clientX,clientY:K.clientY,target:e,rootEl:r}),o&&!this.options.dragoverBubble)break}e=r}while(r=r.parentNode);jt()}},_onTouchMove:function(e){if(V){var r=this.options,t=r.fallbackTolerance,o=r.fallbackOffset,i=e.touches?e.touches[0]:e,a=y&&(st||(st=Se(y,!0))),l=y&&a&&a.a,s=y&&a&&a.d,u,f=we&&N?z():null,h,m;if(we&&N&&(ne&&ne.el===N&&ne.scrollLeft===N.scrollLeft&&ne.scrollTop===N.scrollTop&&ne.winTop===f.scrollTop&&ne.winLeft===f.scrollLeft?u=ne.offset:(u=Ct(N),ne={el:N,scrollLeft:N.scrollLeft,scrollTop:N.scrollTop,winTop:f.scrollTop,winLeft:f.scrollLeft,offset:u})),h=(i.clientX-V.clientX+o.x)/(l||1)+(u?u[0]-lt[0]:0)/(l||1),m=(i.clientY-V.clientY+o.y)/(s||1)+(u?u[1]-lt[1]:0)/(s||1),!b.active&&!ge){if(t&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<t)return;this._onDragStart(e,!0)}if(y){a?(a.e+=h-(it||0),a.f+=m-(at||0)):a={a:1,b:0,c:0,d:1,e:h,f:m};var p="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");E(y,"transform",p),it=h,at=m,K=i;const D=c.checkMoveOutBoundary(y,this.el,this.options);if(D.isOut){var g=0;we||(Ae==null&&(Ae=z().scrollTop),g=z().scrollTop-Ae),Ie?(a.e=Ie.e,a.f=Ie.f-g):(D.top&&(a.f=D.x*-1-g),D.right&&(a.e=D.y),D.bottom&&(a.f=D.x-g),D.left&&(a.e=D.y*-1));var v="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");E(y,"transform",v)}else Ae=null,Ie={a:a.a,b:a.b,c:a.c,d:a.d,e:a.e,f:a.f}}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!y){var e=this.options.fallbackOnBody?document.body:T,r=R(d,!0,we,!0,e),t=this.options;if(we){for(N=e;E(N,"position")==="static"&&E(N,"transform")==="none"&&N!==document;)N=N.parentNode;N!==document.body&&N!==document.documentElement?(N===document&&(N=z()),r.top+=N.scrollTop,r.left+=N.scrollLeft):N=z(),lt=Ct(N)}xe=d.cloneNode(!0),y=d.cloneNode(!0),y=c.setWrapBody(y,this.el,this.options),H(y,t.ghostClass,!1),H(y,t.fallbackClass,!0),H(y,t.dragClass,!0),E(y,"transition",""),E(y,"transform",""),E(y,"box-sizing","border-box"),E(y,"margin",0),E(y,"top",r.top),E(y,"left",r.left),E(y,"width",r.width),E(y,"height",r.height),E(y,"opacity","0.8"),E(y,"position",we?"absolute":"fixed"),E(y,"zIndex","100000"),E(y,"pointerEvents","none"),b.ghost=y,b.ghostClone=xe,e.appendChild(y),E(y,"transform-origin",Tt/parseInt(y.style.width)*100+"% "+Ot/parseInt(y.style.height)*100+"%")}},_onDragStart:function(e,r){var t=this,o=e.dataTransfer,i=t.options;if(j("dragStart",this,{evt:e}),b.eventCanceled){this._onDrop();return}j("setupClone",this),b.eventCanceled||(I=kt(d),I.removeAttribute("id"),I.draggable=!1,I.style["will-change"]="",this._hideClone(),H(I,this.options.chosenClass,!1),b.clone=I),t.cloneId=Ve(function(){j("clone",t),!b.eventCanceled&&(t.options.removeCloneOnHide||T.insertBefore(I,d),t._hideClone(),Y({sortable:t,name:"clone"}))}),!r&&H(d,i.dragClass,!0),r?(Ke=!0,t._loopId=setInterval(t._emulateDragOver,50)):(_(document,"mouseup",t._onDrop),_(document,"touchend",t._onDrop),_(document,"touchcancel",t._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(t,o,d)),C(document,"drop",t),E(d,"transform","translateZ(0)")),ge=!0,t._dragStartId=Ve(t._dragStarted.bind(t,r,e)),C(document,"selectstart",t),Pe=!0,Fe&&E(document.body,"user-select","none")},_onDragOver:function(e){var r=this.el,t=e.target,o,i,a,l=this.options,s=l.group,u=b.active,f=ye===s,h=l.sort,m=X||u,p,g=this,v=!1;if(ht)return;if(c.isTreeMode(l)){var D=f;if(!D&&s&&ye){var F=!!s.name&&s.name===ye.name;F&&(D=typeof s.checkPut=="function"?!!s.checkPut(this,u,d,e):!0)}if(!D){c._tree.dropInfo={isReject:!0,reason:"out-of-group"},c.renderTreeIndicator(this,e),e.cancelable&&e.preventDefault();return}c.treeDragOver(this,e,t),c.renderTreeIndicator(this,e),e.cancelable&&e.preventDefault();return}function P(Oe,We){j(Oe,g,te({evt:e,isOwner:f,axis:p?"vertical":"horizontal",revert:a,dragRect:o,targetRect:i,canSort:h,fromSortable:m,target:t,completed:w,onMove:function(Et,Ht){return Ge(T,r,d,o,Et,R(Et),e,Ht)},changed:x},We))}function O(){P("dragOverAnimationCapture"),g.captureAnimationState(),g!==m&&m.captureAnimationState()}function w(Oe){if(P("dragOverCompleted",{insertion:Oe}),Oe&&(f?u._hideClone():u._showClone(g),g!==m&&(H(d,X?X.options.ghostClass:u.options.ghostClass,!1),H(d,l.ghostClass,!0)),X!==g&&g!==b.active?X=g:g===b.active&&X&&(X=null),m===g&&(g._ignoreWhileAnimating=t),g.animateAll(function(){P("dragOverAnimationComplete"),g._ignoreWhileAnimating=null}),g!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(t===d&&!d.animated||t===r&&!t.animated)&&(Ee=null),!l.dragoverBubble&&!e.rootEl&&t!==document){var We=c._findOwnerSortable(d.parentNode);We&&We._isOutsideThisEl(e.target),!Oe&&he(e)}return!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),v=!0}function x(){G=q(d),ue=q(d,l.draggable),Y({sortable:g,name:"change",toEl:r,newIndex:G,newDraggableIndex:ue,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),t=ee(t,l.draggable,r,!0),P("dragOver"),b.eventCanceled)return v;if(d.contains(e.target)||t.animated&&t.animatingX&&t.animatingY||g._ignoreWhileAnimating===t)return w(!1);if(Ke=!1,u&&!l.disabled&&(f?h||(a=A!==T):X===this||(this.lastPutMode=ye.checkPull(this,u,d,e))&&s.checkPut(this,u,d,e))){if(p=this._getDirection(e,t)==="vertical",o=R(d),P("dragOverValid"),b.eventCanceled)return v;if(a)return A=T,O(),this._hideClone(),P("revert"),b.eventCanceled||(c.setCrossEl(t,this.options),pe?T.insertBefore(d,pe):T.appendChild(d)),w(!0);var S=vt(r,l.draggable);if(!S||fn(e,p,this)&&!S.animated){if(S===d)return w(!1);if(S&&r===e.target&&(t=S),t&&(i=R(t)),Ge(T,r,d,o,t,i,e,!!t)!==!1)return O(),c.setCrossEl(t,this.options),S&&S.nextSibling?r.insertBefore(d,S.nextSibling):r.appendChild(d),A=r,x(),w(!0)}else if(S&&cn(e,p,this)){var k=Ce(r,0,l,!0);if(k===d)return w(!1);if(t=k,i=R(t),Ge(T,r,d,o,t,i,e,!1)!==!1)return O(),c.setCrossEl(t,this.options),r.insertBefore(d,k),A=r,x(),w(!0)}else if(t.parentNode===r){i=R(t);var W=0,L,me=d.parentNode!==r,ae=!an(d.animated&&d.toRect||o,t.animated&&t.toRect||i,p),le=p?"top":"left",$=St(t,"top","top")||St(d,"top","top"),se=$?$.scrollTop:void 0;Ee!==t&&(L=i[le],Me=!1,He=!ae&&l.invertSwap||me),W=hn(e,t,i,p,ae?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,He,Ee===t);var Z;if(W!==0){var fe=q(d);do fe-=W,Z=A.children[fe];while(Z&&(E(Z,"display")==="none"||Z===xe))}if(W===0||Z===t)return w(!1);Ee=t,Le=W;var Te=t.nextElementSibling,J=!1;J=W===1;var ve=Ge(T,r,d,o,t,i,e,J);if(ve!==!1)return(ve===1||ve===-1)&&(J=ve===1),ht=!0,setTimeout(dn,30),O(),c.setCrossEl(t,this.options),J&&!Te?r.appendChild(d):t.parentNode.insertBefore(d,J?Te:t),$&&Ft($,0,se-$.scrollTop),A=d.parentNode,L!==void 0&&!He&&(Ue=Math.abs(L-R(t)[le])),x(),w(!0)}if(r.contains(d))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){_(document,"mousemove",this._onTouchMove),_(document,"touchmove",this._onTouchMove),_(document,"pointermove",this._onTouchMove),_(document,"dragover",he),_(document,"mousemove",he),_(document,"touchmove",he)},_offUpEvents:function(){var e=this.el.ownerDocument;_(e,"mouseup",this._onDrop),_(e,"touchend",this._onDrop),_(e,"pointerup",this._onDrop),_(e,"touchcancel",this._onDrop),_(document,"selectstart",this)},_onDrop:function(e){c.crossDropEnd(this.options,this.el).then(r=>{if(!this.el){this._nulling();return}if(r){var t=this.el,o=this.options;if(G=q(d),ue=q(d,o.draggable),j("drop",this,{evt:e}),A=d&&d.parentNode,G=q(d),ue=q(d,o.draggable),c.isTreeMode(o)&&typeof o.onUpdate=="function"&&o.onUpdate(),b.eventCanceled){this._nulling();return}ge=!1,He=!1,Me=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),pt(this.cloneId),pt(this._dragStartId),this.nativeDraggable&&(_(document,"drop",this),_(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Fe&&E(document.body,"user-select",""),E(d,"transform",""),e&&(Pe&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),y&&y.parentNode&&y.parentNode.removeChild(y),(T===A||X&&X.lastPutMode!=="clone")&&I&&I.parentNode&&I.parentNode.removeChild(I),d&&(this.nativeDraggable&&_(d,"dragend",this),ut(d),d.style["will-change"]="",Pe&&!ge&&H(d,X?X.options.ghostClass:this.options.ghostClass,!1),H(d,this.options.chosenClass,!1),Y({sortable:this,name:"unchoose",toEl:A,newIndex:null,newDraggableIndex:null,originalEvent:e}),T!==A?(G>=0&&(Y({rootEl:A,name:"add",toEl:A,fromEl:T,originalEvent:e}),Y({sortable:this,name:"remove",toEl:A,originalEvent:e}),Y({rootEl:A,name:"sort",toEl:A,fromEl:T,originalEvent:e}),Y({sortable:this,name:"sort",toEl:A,originalEvent:e})),X&&X.save()):G!==_e&&G>=0&&(Y({sortable:this,name:"update",toEl:A,originalEvent:e}),Y({sortable:this,name:"sort",toEl:A,originalEvent:e})),b.active&&((G==null||G===-1)&&(G=_e,ue=Xe),Y({sortable:this,name:"end",toEl:A,originalEvent:e}),this.save()))),this._nulling()}})},_nulling:function(){j("nulling",this),T=d=De=A=y=xe=pe=I=ze=de=V=K=Pe=G=ue=_e=Xe=Ee=Le=X=ye=b.dragged=b.ghost=b.ghostClone=b.clone=b.active=Ie=Ae=st=ne=null,c._clearHiddenBox(),c.resetTreeState(),Qe.forEach(function(e){e.checked=!0}),Qe.length=it=at=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),un(e));break;case"selectstart":e.preventDefault();break}},toArray:function(e){for(var r=[],t,o=this.el.children,i=0,a=o.length,l=this.options;i<a;i++)t=o[i],ee(t,l.draggable,this.el,!1)&&r.push(t.getAttribute(l.dataIdAttr)||gn(t));return r},sort:function(e,r){var t={},o=this.el;this.toArray().forEach(function(i,a){var l=o.children[a];ee(l,this.options.draggable,o,!1)&&(t[i]=l)},this),r&&this.captureAnimationState(),e.forEach(function(i){t[i]&&(o.removeChild(t[i]),o.appendChild(t[i]))}),r&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,r){return ee(e,r||this.options.draggable,this.el,!1)},option:function(e,r){var t=this.options;if(r===void 0)return t[e];var o=je.modifyOption(this,e,r);typeof o<"u"?t[e]=o:t[e]=r,e==="group"&&Mt(t)},destroy:function(){if(this.el){j("destroy",this);var e=this.el;e[M]=null,_(e,"mousedown",this._onTapStart),_(e,"touchstart",this._onTapStart),_(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(_(e,"dragover",this),_(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(r){r.removeAttribute("draggable")}),this._offMoveEvents(),this._offUpEvents(),this._disableDelayedDragEvents(),clearTimeout(this._dragStartTimer),ge=!1,this._onDrop(),y&&y.parentNode&&(y.parentNode.removeChild(y),y=null),Ze.splice(Ze.indexOf(this.el),1),this.el=e=null}},_hideClone:function(){if(!de){if(j("hideClone",this),b.eventCanceled)return;E(I,"display","none"),this.options.removeCloneOnHide&&I.parentNode&&I.parentNode.removeChild(I),de=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(de){if(j("showClone",this),b.eventCanceled)return;d.parentNode==T&&!this.options.group.revertClone?T.insertBefore(I,d):pe?T.insertBefore(I,pe):T.appendChild(I),this.options.group.revertClone&&this.animate(d,I),E(I,"display",""),de=!1}}};function un(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Ge(n,e,r,t,o,i,a,l){var s,u=n[M],f=u.options.onMove,h;return window.CustomEvent&&!ie&&!Ye?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=n,s.dragged=r,s.draggedRect=t,s.related=o||e,s.relatedRect=i||R(e),s.willInsertAfter=l,s.originalEvent=a,n.dispatchEvent(s),f&&(h=f.call(u,s,a)),h}function ut(n){n.draggable=!1}function dn(){ht=!1}function cn(n,e,r){var t=R(Ce(r.el,0,r.options,!0)),o=10;return e?n.clientX<t.left-o||n.clientY<t.top&&n.clientX<t.right:n.clientY<t.top-o||n.clientY<t.bottom&&n.clientX<t.left}function fn(n,e,r){var t=R(vt(r.el,r.options.draggable)),o=10;return e?n.clientX>t.right+o||n.clientX<=t.right&&n.clientY>t.bottom&&n.clientX>=t.left:n.clientX>t.right&&n.clientY>t.top||n.clientX<=t.right&&n.clientY>t.bottom+o}function hn(n,e,r,t,o,i,a,l){var s=t?n.clientY:n.clientX,u=t?r.height:r.width,f=t?r.top:r.left,h=t?r.bottom:r.right,m=!1;if(!a){if(l&&Ue<u*o){if(!Me&&(Le===1?s>f+u*i/2:s<h-u*i/2)&&(Me=!0),Me)m=!0;else if(Le===1?s<f+Ue:s>h-Ue)return-Le}else if(s>f+u*(1-o)/2&&s<h-u*(1-o)/2)return pn(e)}return m=m||a,m&&(s<f+u*i/2||s>h-u*i/2)?s>f+u/2?1:-1:0}function pn(n){return q(d)<q(n)?1:-1}function gn(n){for(var e=n.tagName+n.className+n.src+n.href+n.textContent,r=e.length,t=0;r--;)t+=e.charCodeAt(r);return t.toString(36)}function mn(n){Qe.length=0;for(var e=n.getElementsByTagName("input"),r=e.length;r--;){var t=e[r];t.checked&&Qe.push(t)}}function Ve(n){return setTimeout(n,0)}function pt(n){return clearTimeout(n)}tt&&C(document,"touchmove",function(n){(b.active||ge)&&n.cancelable&&n.preventDefault()});b.utils={on:C,off:_,css:E,find:Bt,is:function(e,r){return!!ee(e,r,e,!1)},extend:Kt,throttle:Rt,closest:ee,toggleClass:H,clone:kt,index:q,nextTick:Ve,cancelNextTick:pt,detectDirection:Lt,getChild:Ce};b.get=function(n){return n[M]};b.mount=function(){for(var n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e[0].constructor===Array&&(e=e[0]),e.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(b.utils=te(te({},b.utils),t.utils)),je.mount(t)})};b.create=function(n,e){return new b(n,e)};b.version=Vt;var B=[],Be,gt,mt=!1,dt,ct,et,Re;function vn(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return n.prototype={dragStarted:function(r){var t=r.originalEvent;this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):t.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(r){var t=r.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?_(document,"dragover",this._handleAutoScroll):(_(document,"pointermove",this._handleFallbackAutoScroll),_(document,"touchmove",this._handleFallbackAutoScroll),_(document,"mousemove",this._handleFallbackAutoScroll)),It(),$e(),Zt()},nulling:function(){et=gt=Be=mt=Re=dt=ct=null,B.length=0},_handleFallbackAutoScroll:function(r){this._handleAutoScroll(r,!0)},_handleAutoScroll:function(r,t){var o=this,i=(r.touches?r.touches[0]:r).clientX,a=(r.touches?r.touches[0]:r).clientY,l=document.elementFromPoint(i,a);if(et=r,t||this.options.forceAutoScrollFallback||Ye||ie||Fe){ft(r,this.options,l,t);var s=ce(l,!0);mt&&(!Re||i!==dt||a!==ct)&&(Re&&It(),Re=setInterval(function(){var u=ce(document.elementFromPoint(i,a),!0);u!==s&&(s=u,$e()),ft(r,o.options,u,t)},10),dt=i,ct=a)}else{if(!this.options.bubbleScroll||ce(l,!0)===z()){$e();return}ft(r,this.options,ce(l,!1),!1)}}},oe(n,{pluginName:"scroll",initializeByDefault:!0})}function $e(){B.forEach(function(n){clearInterval(n.pid)}),B=[]}function It(){clearInterval(Re)}var ft=Rt(function(n,e,r,t){if(e.scroll){var o=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=z(),u=!1,f;gt!==r&&(gt=r,$e(),Be=e.scroll,f=e.scrollFn,Be===!0&&(Be=ce(r,!0)));var h=0,m=Be;do{var p=m,g=R(p),v=g.top,D=g.bottom,F=g.left,P=g.right,O=g.width,w=g.height,x=void 0,S=void 0,k=p.scrollWidth,W=p.scrollHeight,L=E(p),me=p.scrollLeft,ae=p.scrollTop;p===s?(x=O<k&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),S=w<W&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(x=O<k&&(L.overflowX==="auto"||L.overflowX==="scroll"),S=w<W&&(L.overflowY==="auto"||L.overflowY==="scroll"));var le=x&&(Math.abs(P-o)<=a&&me+O<k)-(Math.abs(F-o)<=a&&!!me),$=S&&(Math.abs(D-i)<=a&&ae+w<W)-(Math.abs(v-i)<=a&&!!ae);if(!B[h])for(var se=0;se<=h;se++)B[se]||(B[se]={});(B[h].vx!=le||B[h].vy!=$||B[h].el!==p)&&(B[h].el=p,B[h].vx=le,B[h].vy=$,clearInterval(B[h].pid),(le!=0||$!=0)&&(u=!0,B[h].pid=setInterval(function(){t&&this.layer===0&&b.active._onTouchMove(et);var Z=B[this.layer].vy?B[this.layer].vy*l:0,fe=B[this.layer].vx?B[this.layer].vx*l:0;typeof f=="function"&&f.call(b.dragged.parentNode[M],fe,Z,n,et,B[this.layer].el)!=="continue"||Ft(B[this.layer].el,fe,Z)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&m!==s&&(m=ce(m,!1)));mt=u}},30),Wt=function(e){var r=e.originalEvent,t=e.putSortable,o=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(r){var u=t||i;l();var f=r.changedTouches&&r.changedTouches.length?r.changedTouches[0]:r,h=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(h)&&(a("spill"),this.onSpill({dragEl:o,putSortable:t}))}};function bt(){}bt.prototype={startIndex:null,dragStart:function(e){var r=e.oldDraggableIndex;this.startIndex=r},onSpill:function(e){var r=e.dragEl,t=e.putSortable;this.sortable.captureAnimationState(),t&&t.captureAnimationState();var o=Ce(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(r,o):this.sortable.el.appendChild(r),this.sortable.animateAll(),t&&t.animateAll()},drop:Wt};oe(bt,{pluginName:"revertOnSpill"});function yt(){}yt.prototype={onSpill:function(e){var r=e.dragEl,t=e.putSortable,o=t||this.sortable;o.captureAnimationState(),r.parentNode&&r.parentNode.removeChild(r),o.animateAll()},drop:Wt};oe(yt,{pluginName:"removeOnSpill"});const c={isBoolean:n=>typeof n=="boolean",isFunction:n=>typeof n=="function",isUndefined:n=>typeof n>"u"||n===null,isFiniteNumber:n=>typeof n=="number"&&isFinite(n),getOffset:n=>{const e=n.getBoundingClientRect(),t=(n&&n.ownerDocument).documentElement;let o;if(t.toString()!=="[object Window]"){const i=n.ownerDocument;o=i&&i.defaultView||window}else o=t;return{top:e.top+(o.pageYOffset||t.scrollTop)-(t.clientTop||0),left:e.left+(o.pageXOffset||t.scrollLeft)-(t.clientLeft||0),width:e.width,height:e.height}},createElement:n=>{if(n.substring(0,1)==="<"){const r=document.createElement("div");return r.innerHTML=n,r.children[0]}else return document.createElement(n)},getElementData:(n,e)=>{const r=[],t=n.children,o=t.length;let i;for(let a=0;a<o;a++){i=t[a];const l=i.getAttribute(e.dataIdAttr);l&&l.length>0&&r.push(l)}return r},_getHiddenBox:()=>(Q||(Q=document.createElement("div"),Q.style.cssText="position:fixed;left:-99999px;top:0;width:1px;height:1px;overflow:hidden;pointer-events:none;",document.body.appendChild(Q)),Q),_moveToHiddenBox:n=>{n&&n.parentNode&&c._getHiddenBox().appendChild(n)},_clearHiddenBox:()=>{Q&&Q.parentNode&&(Q.parentNode.removeChild(Q),Q=null)},checkMoveOutBoundary:(n,e,r)=>{let t=!0,o={};const i=r.extOption.boundary;if(i){let a=i.isOut;if(a=c.isBoolean(a)?a:!0,!a){let l;if(i.element&&i.element.length>0){const s=window.document.querySelector(i.element);s&&(l=c.getOffset(s))}else l=c.getOffset(e);if(l){const s=c.getOffset(n);let u=Number(i.x);isNaN(u)&&(u=0);let f=Number(i.y);isNaN(f)&&(f=0);const h=l.top-u>s.top,m=l.left+l.width+f<s.left+s.width,p=l.top+l.height+u<s.top+s.height,g=l.left-f>s.left;t=!(h||m||p||g),t||(o={top:h,right:m,bottom:p,left:g,x:u,y:f})}}}return o.isOut=!t,o},setWrapBody:(n,e,r)=>{let t=n,o=r.extOption.wrapBody;if(r.fallbackOnBody&&(o?r.extOption.wrapBody.isWrap=!0:r.extOption.wrapBody={isWrap:!0},o=r.extOption.wrapBody),o){let i=o.isWrap;if(i=c.isBoolean(i)?i:!1,i)if(o.element&&o.element.length>0)t=c.createElement(o.element),t.appendChild(n);else switch(t=e.cloneNode(),t.appendChild(n),t.tagName.toLocaleLowerCase()){case"tbody":const a=e.parentNode.cloneNode();a.appendChild(t),t=a;break}}return t},checkCross:(n,e,r)=>{const t=r.extOption.cross;let o={newEl:null,isSameStruct:!0};if(t){let i=t.isCross;if(i=c.isBoolean(i)?i:!1,n.parentNode===e.parentNode&&(i=!1),i){let a=t.isSameStruct;if(a=c.isBoolean(a)?a:!0,!a){const l=e.tagName.toLocaleLowerCase(),s=c.createElement(l),u=[],f=["darg-select","darg-placeholder"];switch(e.className.split(" ").forEach(h=>{f.indexOf(h)===-1&&u.push(h)}),u.push(...f),s.className=u.join(" "),E(s,"height",e.clientHeight),l){case"tr":let h=0;for(let p=0;p<e.children.length;p++){const g=e.children[p].getAttribute("colspan");h+=c.isUndefined(g)?1:Number(g)}const m=c.createElement("td");m.setAttribute("colspan",h),s.appendChild(m);break}o.isSameStruct=!1,o.newEl=s}}}return o},setCrossEl:(n,e)=>{var r=c.checkCross(d,n,e);if(!r.isSameStruct){const t=d.cloneNode(!0);c._moveToHiddenBox(d),De?(d=De,De=null):d=r.newEl,De||(De=t)}},crossDropEnd:(n,e)=>new Promise((r,t)=>{const o=n.extOption.cross;let i=!1;const a=d&&d.parentNode;if(o){let s=o.isCross;if(s=c.isBoolean(s)?s:!1,s){let u=!1;if(a)if(c.isTreeMode(n)){var l=e||b.active&&b.active.el||n.el;u=!!l&&!l.contains(d)}else u=T!==a;u&&o.dropEndBeforeCallback&&(i=!0)}}if(i){const s=xe||d,u=s&&s.getAttribute?s.getAttribute(n.dataIdAttr):null,f=c.getElementData(a,n),h=o.dropEndBeforeCallback({data:u,inx:q(d),arrSortId:f});if(h&&h.then&&c.isFunction(h.then))c._crossDropLoad(!0),h.then(m=>{c._crossDropLoad(!1);const p=c._crossDropEndCb(m);r({success:p})});else{const m=c._crossDropEndCb(h);r({success:m})}}else r({success:!0})}),_crossDropLoad:n=>{let e;const r=d.tagName.toLocaleLowerCase();if(d.children.length===0)e=d;else switch(r){case"tr":e=d.children[0];break}if(n){const t=c.createElement("div");t.className="panel-darg-loading",t.innerHTML='<div class="darg-add-loading"></div>',e.appendChild(t)}else{const t=d.querySelector(".panel-darg-loading");t&&t.parentNode&&t.parentNode.removeChild(t)}},_crossDropEndCb:n=>{var e=c.isBoolean(n)?n:!0;return e&&d&&d.parentNode&&d.parentNode.removeChild(d),e},_tree:{startPageX:0,startDragDepth:null,startLeftPage:null,depthCache:null,dropInfo:null},_findOwnerSortable:n=>{for(var e=n;e;){var r=e[M];if(r&&c.isFunction(r._isOutsideThisEl))return r;e=e.parentNode}return null},_treeRegionCls:n=>n&&n.extOption&&n.extOption.tree&&n.extOption.tree.regionCls||".darg-region",isTreeMode:n=>!!(n&&n.extOption&&n.extOption.tree&&n.extOption.tree.isTree),findNearestTreeRoot:(n,e)=>{for(var r=n;r;){if(r[M]&&r[M].options&&c.isTreeMode(r[M].options))return r;r=r.parentNode}return e},getNodeDepth:(n,e)=>{for(var r=0,t=n;t&&(t.matches&&t.matches(e)&&r++,!(t.matches&&t[M]&&t[M].options));)t=t.parentNode;return r},getOwnerRegion:(n,e)=>{for(var r=n.parentNode;r;){if(r.matches&&r.matches(e))return r;r=r.parentNode}return null},getChildRegion:(n,e)=>{for(var r=n.children||[],t=0;t<r.length;t++)if(r[t].matches&&r[t].matches(e))return r[t];return null},findSiblingFallback:(n,e)=>{var r="data-id",t=p=>!!p&&p.getAttribute&&p.getAttribute(r)!==null,o=n&&n.parentNode;if(o){var i=Array.from(o.children).filter(p=>t(p)&&p!==n&&!n.contains(p));if(i.length){var a=e&&e.getBoundingClientRect?e.getBoundingClientRect():null;if(a)for(var l=a.top+a.height/2,s=0;s<i.length;s++){var u=i[s].getBoundingClientRect();if(l>=u.top&&l<=u.bottom)return i[s]}return i[0]}}for(var f=o,h=0;f&&h++<20;){var m=f.parentNode;if(t(m)&&m!==n&&!n.contains(m))return m;f=m?m.parentNode:null}return null},resolveTreeDrop:(n,e,r,t,o)=>{for(var i=t.extOption.tree||{},a=c._treeRegionCls(t),l={isReject:!1,reason:"",targetDepth:0,hoverNode:null,intent:"same"},s=t.dataIdAttr||"data-id",u=e;u&&u!==t.el&&!(u.getAttribute&&u.getAttribute(s)!==null);)u=u.parentNode;if(!u||u===t.el)return l.isReject=!0,l.reason="no-node",l;if(u===n||n.contains(u)){var f=c.findSiblingFallback(n,e);f&&(u=f)}if(l.hoverNode=u,n.contains(u))return l.isReject=!0,l.reason="cycle",l;if(i.isOnlyInnerMove){var h=c.findNearestTreeRoot(n,null),m=c.findNearestTreeRoot(u,null);if(h!==m)return l.isReject=!0,l.reason="out-of-group",l}var p=c.getOwnerRegion(u,a),g=p?c.getNodeDepth(u,a):1;g<1&&(g=1);var v=Number(i.indentThreshold);(isNaN(v)||v<=0)&&(v=20);var D=window.pageXOffset||document.documentElement.scrollLeft||0,F=u.getBoundingClientRect().left+D,P=F-(g-1)*v,O=1+Math.round((o-P)/v);O<1&&(O=1);var w=Number(i.maxDepth);isNaN(w)&&(w=3);var x=c._tree.startDragDepth!==null&&c._tree.startDragDepth!==void 0?c._tree.startDragDepth:c.getNodeDepth(n,a),S=O,k=!1;return S>x&&!i.isDragToChild&&(S=x,k=!0),S<x&&!i.isDragToParent&&(S=x,k=!0),w>0&&S>w&&(S=w,S<x&&(S=x)),l.targetDepth=S,l.isDepthForced=k,S>x?l.intent="child":S<x?l.intent="parent":l.intent="same",l.dragDepth=x,l.hoverDepth=g,l},resolveTreeInsert:(n,e,r,t)=>{var o=c._treeRegionCls(r),i={container:null,refNode:null};if(!e)return i;if(n.intent==="child"){var a=c.getChildRegion(e,o);return a||(a=c.createChildRegion(e,r)),i.container=a,i.refNode=c.findInsertRef(a,t,r),i}for(var l=n.targetDepth!==void 0?n.targetDepth:n.hoverDepth,s=e,u=n.hoverDepth;s&&u>l;){var f=c.getOwnerRegion(s,o);if(!f||!f.parentNode)break;var h=f.parentNode;if(!h.getAttribute||h.getAttribute(r.dataIdAttr||"data-id")===null)break;s=h,u--}for(;s&&u<l;){var m=c.getChildRegion(s,o);if(!m)break;if(s=m,u++,u<l){for(var p=null,g=m.children||[],v=0;v<g.length;v++)g[v].getAttribute&&g[v].getAttribute(r.dataIdAttr||"data-id")!==null&&g[v]!==d&&(p=g[v]);if(!p){u--;break}s=p}}var D;s&&s.matches&&s.matches(o)?D=s:D=c.getOwnerRegion(s,o);var F=n.isDepthForced===!0;if(F&&u!==l){var P=c.getOwnerRegion(d,o);if(P)return i.container=P,i.refNode=c.findInsertRef(P,t,r),i}return D&&(i.container=D,i.refNode=c.findInsertRef(D,t,r)),i},findInsertRef:(n,e,r)=>{for(var t=r.dataIdAttr||"data-id",o=[],i=n.children||[],a=0;a<i.length;a++){var l=i[a];l.getAttribute&&l.getAttribute(t)!==null&&l!==d&&o.push(l)}for(var s=0;s<o.length;s++){var u=o[s].getBoundingClientRect(),f=u.top+u.height/2;if(e<f)return o[s]}return null},createChildRegion:(n,e)=>{var r=c._treeRegionCls(e),t=c.getOwnerRegion(n,r),o=t?t.tagName.toLocaleLowerCase():"ul",i=c.createElement(o),a=r.charAt(0)==="."?r.slice(1):r;return i.className=a+" "+c.TREE_AUTO_REGION_CLS,n.appendChild(i),i},TREE_AUTO_REGION_CLS:"darg-region-auto",cleanupEmptyAutoRegions:n=>{var e=n||document;if(!(!e||!e.querySelectorAll))for(var r=e.querySelectorAll("."+c.TREE_AUTO_REGION_CLS),t=r.length-1;t>=0;t--){for(var o=r[t],i=!1,a=o.children||[],l=0;l<a.length;l++)if(a[l].getAttribute&&a[l].getAttribute("data-id")!==null){i=!0;break}i||d&&(o===d.parentNode||o.contains(d))||o.parentNode&&o.parentNode.removeChild(o)}},treeDragOver:(n,e,r)=>{var t=n.options,o=e.clientX,i=e.clientY;if(!c.isFiniteNumber(o)||!c.isFiniteNumber(i))if(V&&c.isFiniteNumber(V.clientX)&&c.isFiniteNumber(V.clientY))o=V.clientX,i=V.clientY;else return!1;var a=e.pageX!==void 0&&c.isFiniteNumber(e.pageX)?e.pageX:o,l=document.elementFromPoint(o,i),s=l||r;s&&(s===d||s.closest(".sortable-fallback"))&&(s=r);var u=c.resolveTreeDrop(d,s,e,t,a);if(c._tree.dropInfo=u,u.isReject)return!1;var f=c.resolveTreeInsert(u,u.hoverNode,t,i);if(!f.container)return!1;if(d.contains(f.container))return c._tree.dropInfo={isReject:!0,reason:"cycle-container"},!1;if(f.container===d.parentNode&&(f.refNode===d||f.refNode===d.nextSibling))return!1;var h=f.refNode;return h?f.container.insertBefore(d,h):f.container.appendChild(d),c.cleanupEmptyAutoRegions(n.el||document),!0},renderTreeIndicator:(n,e)=>{var r=n.options,t=c._tree.dropInfo,o=document.body,i=o.querySelector(".darg-tree-indicator");if(!t||t.isReject||!t.hoverNode){i&&i.parentNode&&i.parentNode.removeChild(i);return}i||(i=c.createElement("div"),i.className="darg-tree-indicator",o.appendChild(i)),c._treeRegionCls(r);var a=t.hoverNode.getBoundingClientRect(),l=Number(r.extOption.tree.indentThreshold)||20,s=(t.targetDepth-t.hoverDepth)*l,u=a.left+s,f=a.width-s;f<20&&(f=20);var h=t.intent==="child"?a.bottom-1:a.top;i.style.cssText="position:fixed;pointer-events:none;z-index:100001;height:2px;background:#409eff;left:"+u+"px;top:"+h+"px;width:"+f+"px;border-radius:1px;"},clearTreeIndicator:()=>{var n=document.querySelector(".darg-tree-indicator");n&&n.parentNode&&n.parentNode.removeChild(n),c._tree.dropInfo=null},resetTreeState:()=>{c._tree.startPageX=0,c._tree.startDragDepth=null,c._tree.startLeftPage=null,c._tree.depthCache=null,c._tree.dropInfo=null,c.clearTreeIndicator(),c.cleanupEmptyAutoRegions(document)}};b.mount(new vn);b.mount(yt,bt);const bn=["id"],yn=U.defineComponent({name:"ClDarg",__name:"Index",props:{id:String,className:String,group:[String,Object],dargRegionCls:{type:String,default:".darg-region"},handleCls:{type:String,default:".darg-handle"},selectCls:{type:String,default:"darg-select"},placeholderCls:{type:String,default:"darg-placeholder"},isBoundaryOut:{type:Boolean,default:!0},boundaryElement:String,isWrapBody:{type:Boolean,default:!0},wrapBodyElement:String,isDisabledInner:{type:Boolean,default:!1},isDisabledOutsideInto:{type:Boolean,default:!1},isGroupSameStruct:{type:Boolean,default:!0},keyAttrId:{type:String,default:"data-id"},animation:{type:Number,default:150},groupDropEndBeforeCallback:Function,isTree:{type:Boolean,default:!1},maxDepth:{type:Number,default:3},indentThreshold:{type:Number,default:20},isOnlyInnerMove:{type:Boolean,default:!1},isDragToChild:{type:Boolean,default:!0},isDragToParent:{type:Boolean,default:!0}},emits:{onChangeSort:n=>!0,onError:n=>!0},setup(n,{expose:e,emit:r}){const t=n,o=r,i=t.id,a=U.useTemplateRef("refElTop"),l={sortableObj:null},s=U.computed(()=>{let p={"panel-darg":!0};return p=nt.getJsonMerge(p,Gt.getClassNameJson(t.className)),p}),u=()=>{const p=a.value;if(!p)return[];const g=t.keyAttrId||"data-id",v=t.dargRegionCls||".darg-region",D=O=>{const w={id:O.getAttribute(g)||"",children:[]};return Array.from(O.children).filter(S=>S.matches&&S.matches(v)).forEach(S=>{Array.from(S.children).forEach(k=>{k.matches&&k.matches("li,[data-id]")&&w.children.push(D(k))})}),w},F=[];return Array.from(p.querySelectorAll(v)).filter(O=>{let w=O.parentElement;for(;w&&w!==p;){if(w.matches&&w.matches(v))return!1;w=w.parentElement}return!0}).forEach(O=>{Array.from(O.children).forEach(w=>{w.matches&&w.matches("li,[data-id]")&&F.push(D(w))})}),F},f=()=>{if(t.isTree){o("onChangeSort",u());return}const p=l.sortableObj?.toArray?.()||[];o("onChangeSort",p)},h=()=>{U.nextTick(()=>{let p=null;try{if(p=a.value?.querySelector(t.dargRegionCls||".darg-region"),!p){Ne.warn("ClDarg","未找到拖拽区域元素:",t.dargRegionCls||".darg-region"),o("onError","未找到拖拽区域元素");return}const{group:g,placeholderCls:v,handleCls:D,selectCls:F,isBoundaryOut:P,boundaryElement:O,isWrapBody:w,wrapBodyElement:x,isDisabledInner:S,isDisabledOutsideInto:k,isGroupSameStruct:W,groupDropEndBeforeCallback:L,keyAttrId:me,isTree:ae,maxDepth:le,indentThreshold:$,isOnlyInnerMove:se,isDragToChild:Z,isDragToParent:fe}=t;let Te=W;ae&&!W&&(Te=!0,Ne.warn("ClDarg","树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true(原值 false 被忽略)"),o("onError","树形拖拽仅支持同结构,isGroupSameStruct 已被强制为 true"));const J={sort:!S,forceFallback:!0,fallbackOnBody:w,fallbackTolerance:0,handle:D,ghostClass:v,chosenClass:F,dragClass:"darg-moveing",animation:t.animation,dataIdAttr:me,extOption:{boundary:{isOut:P,element:O,x:5,y:20},wrapBody:{isWrap:w,element:x},cross:{isCross:!1,isSameStruct:Te,dropEndBeforeCallback:L||null},tree:{isTree:ae,maxDepth:le,indentThreshold:$,isOnlyInnerMove:se,isDragToChild:Z,isDragToParent:fe,rootId:i||""}},onUpdate:()=>{f()}};if(g&&!nt.isEmpty(g))if(J.extOption.cross.isCross=!0,k){const ve=nt.isObject(g)?g.name:g;J.group={name:ve,pull:"clone",put:!1},J.animation=0}else J.group=g;l.sortableObj=new b(p,J)}catch(g){Ne.warn("ClDarg","Sortable 初始化失败:",g),o("onError","拖拽组件初始化失败")}})};return U.onMounted(()=>{h()}),U.onUpdated(()=>{if(!l.sortableObj)return;const p=a.value?.querySelector(t.dargRegionCls||".darg-region");if(p&&l.sortableObj.el!==p){try{l.sortableObj.destroy()}catch(g){Ne.warn("ClDarg","重建前销毁旧实例失败:",g)}l.sortableObj=null,h()}}),U.onBeforeUnmount(()=>{if(l.sortableObj){try{l.sortableObj.destroy()}catch(p){Ne.warn("ClDarg","销毁拖拽实例失败:",p)}l.sortableObj=null}}),e({getArrSort:()=>t.isTree?u():l.sortableObj?.toArray?l.sortableObj.toArray():[]}),(p,g)=>(U.openBlock(),U.createElementBlock("div",{ref_key:"refElTop",ref:a,id:U.unref(i),class:U.normalizeClass(s.value)},[U.renderSlot(p.$slots,"default")],10,bn))}});module.exports=yn;
@@ -366,16 +366,16 @@ function hn(n, e, r, t) {
366
366
  Math.pow(e.top - r.top, 2) + Math.pow(e.left - r.left, 2)
367
367
  ) * t.animation;
368
368
  }
369
- var me = [], rt = {
369
+ var ve = [], rt = {
370
370
  initializeByDefault: !0
371
371
  }, Ye = {
372
372
  mount: function(e) {
373
373
  for (var r in rt)
374
374
  rt.hasOwnProperty(r) && !(r in e) && (e[r] = rt[r]);
375
- me.forEach(function(t) {
375
+ ve.forEach(function(t) {
376
376
  if (t.pluginName === e.pluginName)
377
377
  throw "Sortable: Cannot mount plugin ".concat(e.pluginName, " more than once");
378
- }), me.push(e);
378
+ }), ve.push(e);
379
379
  },
380
380
  pluginEvent: function(e, r, t) {
381
381
  var o = this;
@@ -383,7 +383,7 @@ var me = [], rt = {
383
383
  o.eventCanceled = !0;
384
384
  };
385
385
  var i = e + "Global";
386
- me.forEach(function(a) {
386
+ ve.forEach(function(a) {
387
387
  r[a.pluginName] && (r[a.pluginName][i] && r[a.pluginName][i](
388
388
  ee(
389
389
  {
@@ -402,7 +402,7 @@ var me = [], rt = {
402
402
  });
403
403
  },
404
404
  initializePlugins: function(e, r, t, o) {
405
- me.forEach(function(l) {
405
+ ve.forEach(function(l) {
406
406
  var s = l.pluginName;
407
407
  if (!(!e.options[s] && !l.initializeByDefault)) {
408
408
  var u = new l(e, r, e.options);
@@ -417,13 +417,13 @@ var me = [], rt = {
417
417
  },
418
418
  getEventProperties: function(e, r) {
419
419
  var t = {};
420
- return me.forEach(function(o) {
420
+ return ve.forEach(function(o) {
421
421
  typeof o.eventProperties == "function" && re(t, o.eventProperties.call(r[o.pluginName], e));
422
422
  }), t;
423
423
  },
424
424
  modifyOption: function(e, r, t) {
425
425
  var o;
426
- return me.forEach(function(i) {
426
+ return ve.forEach(function(i) {
427
427
  e[i.pluginName] && i.optionListeners && typeof i.optionListeners[r] == "function" && (o = i.optionListeners[r].call(e[i.pluginName], t));
428
428
  }), o;
429
429
  }
@@ -505,7 +505,7 @@ function Y(n) {
505
505
  )
506
506
  );
507
507
  }
508
- var d, Ee, A, y, Ae, Ne, T, he, ze, I, ue, De, G, ke, se, ve, X, we = !1, Je = !1, Ke = [], q, J, ot, it, Ct, Tt, xe, be, Xe, Le = !1, We = !1, Ue, N, at = [], ft = !1, Ze = [], Ie = null, Z = null, lt = null, te = null, et = typeof document < "u", ye = It, Ot = Me || oe ? "cssFloat" : "float", mn = et && !At && !It && "draggable" in document.createElement("div"), kt = (function() {
508
+ var d, we, A, y, Ae, Ne, T, he, ze, I, ue, De, G, ke, se, be, X, pe = !1, Je = !1, Ke = [], q, J, ot, it, Ct, Tt, xe, ye, Xe, Le = !1, We = !1, Ue, N, at = [], ft = !1, Ze = [], Ie = null, Z = null, lt = null, te = null, et = typeof document < "u", Ee = It, Ot = Me || oe ? "cssFloat" : "float", mn = et && !At && !It && "draggable" in document.createElement("div"), kt = (function() {
509
509
  if (et) {
510
510
  if (oe)
511
511
  return !1;
@@ -674,7 +674,7 @@ b.prototype = /** @lends Sortable.prototype */
674
674
  {
675
675
  constructor: b,
676
676
  _isOutsideThisEl: function(e) {
677
- !this.el.contains(e) && e !== this.el && (be = null);
677
+ !this.el.contains(e) && e !== this.el && (ye = null);
678
678
  },
679
679
  _getDirection: function(e, r) {
680
680
  return typeof this.options.direction == "function" ? this.options.direction.call(this, e, r, d) : this.options.direction;
@@ -736,7 +736,7 @@ b.prototype = /** @lends Sortable.prototype */
736
736
  }
737
737
  if (f) {
738
738
  var m = R(t);
739
- if (T = i, d = t, A = d.parentNode, he = d.nextSibling, ze = t, ve = a.group, b.dragged = d, q = {
739
+ if (T = i, d = t, A = d.parentNode, he = d.nextSibling, ze = t, be = a.group, b.dragged = d, q = {
740
740
  target: d,
741
741
  clientX: (r || e).clientX,
742
742
  clientY: (r || e).clientY
@@ -798,7 +798,7 @@ b.prototype = /** @lends Sortable.prototype */
798
798
  }
799
799
  },
800
800
  _dragStarted: function(e, r) {
801
- if (we = !1, T && d) {
801
+ if (pe = !1, T && d) {
802
802
  j("dragStarted", this, {
803
803
  evt: r
804
804
  }), this.nativeDraggable && C(document, "dragover", yn);
@@ -839,15 +839,15 @@ b.prototype = /** @lends Sortable.prototype */
839
839
  },
840
840
  _onTouchMove: function(e) {
841
841
  if (q) {
842
- var r = this.options, t = r.fallbackTolerance, o = r.fallbackOffset, i = e.touches ? e.touches[0] : e, a = y && (lt || (lt = _e(y, !0))), l = y && a && a.a, s = y && a && a.d, u, f = ye && N ? U() : null, h, m;
843
- if (ye && N && (te && te.el === N && te.scrollLeft === N.scrollLeft && te.scrollTop === N.scrollTop && te.winTop === f.scrollTop && te.winLeft === f.scrollLeft ? u = te.offset : (u = St(N), te = {
842
+ var r = this.options, t = r.fallbackTolerance, o = r.fallbackOffset, i = e.touches ? e.touches[0] : e, a = y && (lt || (lt = _e(y, !0))), l = y && a && a.a, s = y && a && a.d, u, f = Ee && N ? U() : null, h, m;
843
+ if (Ee && N && (te && te.el === N && te.scrollLeft === N.scrollLeft && te.scrollTop === N.scrollTop && te.winTop === f.scrollTop && te.winLeft === f.scrollLeft ? u = te.offset : (u = St(N), te = {
844
844
  el: N,
845
845
  scrollLeft: N.scrollLeft,
846
846
  scrollTop: N.scrollTop,
847
847
  winTop: f.scrollTop,
848
848
  winLeft: f.scrollLeft,
849
849
  offset: u
850
- })), h = (i.clientX - q.clientX + o.x) / (l || 1) + (u ? u[0] - at[0] : 0) / (l || 1), m = (i.clientY - q.clientY + o.y) / (s || 1) + (u ? u[1] - at[1] : 0) / (s || 1), !b.active && !we) {
850
+ })), h = (i.clientX - q.clientX + o.x) / (l || 1) + (u ? u[0] - at[0] : 0) / (l || 1), m = (i.clientY - q.clientY + o.y) / (s || 1) + (u ? u[1] - at[1] : 0) / (s || 1), !b.active && !pe) {
851
851
  if (t && Math.max(Math.abs(i.clientX - this._lastX), Math.abs(i.clientY - this._lastY)) < t)
852
852
  return;
853
853
  this._onDragStart(e, !0);
@@ -870,7 +870,7 @@ b.prototype = /** @lends Sortable.prototype */
870
870
  );
871
871
  if (D.isOut) {
872
872
  var g = 0;
873
- ye || (Ie == null && (Ie = U().scrollTop), g = U().scrollTop - Ie), Ne ? (a.e = Ne.e, a.f = Ne.f - g) : (D.top && (a.f = D.x * -1 - g), D.right && (a.e = D.y), D.bottom && (a.f = D.x - g), D.left && (a.e = D.y * -1));
873
+ Ee || (Ie == null && (Ie = U().scrollTop), g = U().scrollTop - Ie), Ne ? (a.e = Ne.e, a.f = Ne.f - g) : (D.top && (a.f = D.x * -1 - g), D.right && (a.e = D.y), D.bottom && (a.f = D.x - g), D.left && (a.e = D.y * -1));
874
874
  var v = "matrix(".concat(a.a, ",").concat(a.b, ",").concat(a.c, ",").concat(a.d, ",").concat(a.e, ",").concat(a.f, ")");
875
875
  E(y, "transform", v);
876
876
  } else
@@ -888,13 +888,13 @@ b.prototype = /** @lends Sortable.prototype */
888
888
  },
889
889
  _appendGhost: function() {
890
890
  if (!y) {
891
- var e = this.options.fallbackOnBody ? document.body : T, r = R(d, !0, ye, !0, e), t = this.options;
892
- if (ye) {
891
+ var e = this.options.fallbackOnBody ? document.body : T, r = R(d, !0, Ee, !0, e), t = this.options;
892
+ if (Ee) {
893
893
  for (N = e; E(N, "position") === "static" && E(N, "transform") === "none" && N !== document; )
894
894
  N = N.parentNode;
895
895
  N !== document.body && N !== document.documentElement ? (N === document && (N = U()), r.top += N.scrollTop, r.left += N.scrollLeft) : N = U(), at = St(N);
896
896
  }
897
- Ae = d.cloneNode(!0), y = d.cloneNode(!0), y = c.setWrapBody(y, this.el, this.options), H(y, t.ghostClass, !1), H(y, t.fallbackClass, !0), H(y, t.dragClass, !0), E(y, "transition", ""), E(y, "transform", ""), E(y, "box-sizing", "border-box"), E(y, "margin", 0), E(y, "top", r.top), E(y, "left", r.left), E(y, "width", r.width), E(y, "height", r.height), E(y, "opacity", "0.8"), E(y, "position", ye ? "absolute" : "fixed"), E(y, "zIndex", "100000"), E(y, "pointerEvents", "none"), b.ghost = y, b.ghostClone = Ae, e.appendChild(y), E(
897
+ Ae = d.cloneNode(!0), y = d.cloneNode(!0), y = c.setWrapBody(y, this.el, this.options), H(y, t.ghostClass, !1), H(y, t.fallbackClass, !0), H(y, t.dragClass, !0), E(y, "transition", ""), E(y, "transform", ""), E(y, "box-sizing", "border-box"), E(y, "margin", 0), E(y, "top", r.top), E(y, "left", r.left), E(y, "width", r.width), E(y, "height", r.height), E(y, "opacity", "0.8"), E(y, "position", Ee ? "absolute" : "fixed"), E(y, "zIndex", "100000"), E(y, "pointerEvents", "none"), b.ghost = y, b.ghostClone = Ae, e.appendChild(y), E(
898
898
  y,
899
899
  "transform-origin",
900
900
  Ct / parseInt(y.style.width) * 100 + "% " + Tt / parseInt(y.style.height) * 100 + "%"
@@ -914,16 +914,16 @@ b.prototype = /** @lends Sortable.prototype */
914
914
  sortable: t,
915
915
  name: "clone"
916
916
  }));
917
- }), !r && H(d, i.dragClass, !0), r ? (Je = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (_(document, "mouseup", t._onDrop), _(document, "touchend", t._onDrop), _(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(t, o, d)), C(document, "drop", t), E(d, "transform", "translateZ(0)")), we = !0, t._dragStartId = qe(t._dragStarted.bind(t, r, e)), C(document, "selectstart", t), xe = !0, Re && E(document.body, "user-select", "none");
917
+ }), !r && H(d, i.dragClass, !0), r ? (Je = !0, t._loopId = setInterval(t._emulateDragOver, 50)) : (_(document, "mouseup", t._onDrop), _(document, "touchend", t._onDrop), _(document, "touchcancel", t._onDrop), o && (o.effectAllowed = "move", i.setData && i.setData.call(t, o, d)), C(document, "drop", t), E(d, "transform", "translateZ(0)")), pe = !0, t._dragStartId = qe(t._dragStarted.bind(t, r, e)), C(document, "selectstart", t), xe = !0, Re && E(document.body, "user-select", "none");
918
918
  },
919
919
  // Returns true - if no further action is needed (either inserted or another condition)
920
920
  _onDragOver: function(e) {
921
- var r = this.el, t = e.target, o, i, a, l = this.options, s = l.group, u = b.active, f = ve === s, h = l.sort, m = X || u, p, g = this, v = !1;
921
+ var r = this.el, t = e.target, o, i, a, l = this.options, s = l.group, u = b.active, f = be === s, h = l.sort, m = X || u, p, g = this, v = !1;
922
922
  if (ft) return;
923
923
  if (c.isTreeMode(l)) {
924
924
  var D = f;
925
- if (!D && s && ve) {
926
- var F = !!s.name && s.name === ve.name;
925
+ if (!D && s && be) {
926
+ var F = !!s.name && s.name === be.name;
927
927
  F && (D = typeof s.checkPut == "function" ? !!s.checkPut(this, u, d, e) : !0);
928
928
  }
929
929
  if (!D) {
@@ -970,7 +970,7 @@ b.prototype = /** @lends Sortable.prototype */
970
970
  !1
971
971
  ), H(d, l.ghostClass, !0)), X !== g && g !== b.active ? X = g : g === b.active && X && (X = null), m === g && (g._ignoreWhileAnimating = t), g.animateAll(function() {
972
972
  P("dragOverAnimationComplete"), g._ignoreWhileAnimating = null;
973
- }), g !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (t === d && !d.animated || t === r && !t.animated) && (be = null), !l.dragoverBubble && !e.rootEl && t !== document) {
973
+ }), g !== m && (m.animateAll(), m._ignoreWhileAnimating = null)), (t === d && !d.animated || t === r && !t.animated) && (ye = null), !l.dragoverBubble && !e.rootEl && t !== document) {
974
974
  var je = c._findOwnerSortable(d.parentNode);
975
975
  je && je._isOutsideThisEl(e.target), !Te && fe(e);
976
976
  }
@@ -989,7 +989,7 @@ b.prototype = /** @lends Sortable.prototype */
989
989
  if (e.preventDefault !== void 0 && e.cancelable && e.preventDefault(), t = Q(t, l.draggable, r, !0), P("dragOver"), b.eventCanceled) return v;
990
990
  if (d.contains(e.target) || t.animated && t.animatingX && t.animatingY || g._ignoreWhileAnimating === t)
991
991
  return w(!1);
992
- if (Je = !1, u && !l.disabled && (f ? h || (a = A !== T) : X === this || (this.lastPutMode = ve.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
992
+ if (Je = !1, u && !l.disabled && (f ? h || (a = A !== T) : X === this || (this.lastPutMode = be.checkPull(this, u, d, e)) && s.checkPut(this, u, d, e))) {
993
993
  if (p = this._getDirection(e, t) === "vertical", o = R(d), P("dragOverValid"), b.eventCanceled) return v;
994
994
  if (a)
995
995
  return A = T, O(), this._hideClone(), P("revert"), b.eventCanceled || (c.setCrossEl(t, this.options), he ? T.insertBefore(d, he) : T.appendChild(d)), w(!0);
@@ -1007,12 +1007,12 @@ b.prototype = /** @lends Sortable.prototype */
1007
1007
  return O(), c.setCrossEl(t, this.options), r.insertBefore(d, k), A = r, x(), w(!0);
1008
1008
  } else if (t.parentNode === r) {
1009
1009
  i = R(t);
1010
- var W = 0, L, pe = d.parentNode !== r, ie = !vn(
1010
+ var W = 0, L, ge = d.parentNode !== r, ie = !vn(
1011
1011
  d.animated && d.toRect || o,
1012
1012
  t.animated && t.toRect || i,
1013
1013
  p
1014
1014
  ), ae = p ? "top" : "left", V = _t(t, "top", "top") || _t(d, "top", "top"), le = V ? V.scrollTop : void 0;
1015
- be !== t && (L = i[ae], Le = !1, We = !ie && l.invertSwap || pe), W = Sn(
1015
+ ye !== t && (L = i[ae], Le = !1, We = !ie && l.invertSwap || ge), W = Sn(
1016
1016
  e,
1017
1017
  t,
1018
1018
  i,
@@ -1020,7 +1020,7 @@ b.prototype = /** @lends Sortable.prototype */
1020
1020
  ie ? 1 : l.swapThreshold,
1021
1021
  l.invertedSwapThreshold == null ? l.swapThreshold : l.invertedSwapThreshold,
1022
1022
  We,
1023
- be === t
1023
+ ye === t
1024
1024
  );
1025
1025
  var K;
1026
1026
  if (W !== 0) {
@@ -1031,12 +1031,12 @@ b.prototype = /** @lends Sortable.prototype */
1031
1031
  }
1032
1032
  if (W === 0 || K === t)
1033
1033
  return w(!1);
1034
- be = t, Xe = W;
1034
+ ye = t, Xe = W;
1035
1035
  var Ce = t.nextElementSibling, $ = !1;
1036
1036
  $ = W === 1;
1037
- var ge = He(T, r, d, o, t, i, e, $);
1038
- if (ge !== !1)
1039
- return (ge === 1 || ge === -1) && ($ = ge === 1), ft = !0, setTimeout(wn, 30), O(), c.setCrossEl(t, this.options), $ && !Ce ? r.appendChild(d) : t.parentNode.insertBefore(d, $ ? Ce : t), V && Rt(V, 0, le - V.scrollTop), A = d.parentNode, L !== void 0 && !We && (Ue = Math.abs(L - R(t)[ae])), x(), w(!0);
1037
+ var me = He(T, r, d, o, t, i, e, $);
1038
+ if (me !== !1)
1039
+ return (me === 1 || me === -1) && ($ = me === 1), ft = !0, setTimeout(wn, 30), O(), c.setCrossEl(t, this.options), $ && !Ce ? r.appendChild(d) : t.parentNode.insertBefore(d, $ ? Ce : t), V && Rt(V, 0, le - V.scrollTop), A = d.parentNode, L !== void 0 && !We && (Ue = Math.abs(L - R(t)[ae])), x(), w(!0);
1040
1040
  }
1041
1041
  if (r.contains(d))
1042
1042
  return w(!1);
@@ -1065,7 +1065,7 @@ b.prototype = /** @lends Sortable.prototype */
1065
1065
  this._nulling();
1066
1066
  return;
1067
1067
  }
1068
- we = !1, We = !1, Le = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ht(this.cloneId), ht(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Re && E(document.body, "user-select", ""), E(d, "transform", ""), e && (xe && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), y && y.parentNode && y.parentNode.removeChild(y), (T === A || X && X.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), d && (this.nativeDraggable && _(d, "dragend", this), st(d), d.style["will-change"] = "", xe && !we && H(
1068
+ pe = !1, We = !1, Le = !1, clearInterval(this._loopId), clearTimeout(this._dragStartTimer), ht(this.cloneId), ht(this._dragStartId), this.nativeDraggable && (_(document, "drop", this), _(t, "dragstart", this._onDragStart)), this._offMoveEvents(), this._offUpEvents(), Re && E(document.body, "user-select", ""), E(d, "transform", ""), e && (xe && (e.cancelable && e.preventDefault(), !o.dropBubble && e.stopPropagation()), y && y.parentNode && y.parentNode.removeChild(y), (T === A || X && X.lastPutMode !== "clone") && I && I.parentNode && I.parentNode.removeChild(I), d && (this.nativeDraggable && _(d, "dragend", this), st(d), d.style["will-change"] = "", xe && !pe && H(
1069
1069
  d,
1070
1070
  X ? X.options.ghostClass : this.options.ghostClass,
1071
1071
  !1
@@ -1118,7 +1118,7 @@ b.prototype = /** @lends Sortable.prototype */
1118
1118
  });
1119
1119
  },
1120
1120
  _nulling: function() {
1121
- j("nulling", this), T = d = Ee = A = y = Ae = he = I = ze = ue = q = J = xe = G = se = De = ke = be = Xe = X = ve = b.dragged = b.ghost = b.ghostClone = b.clone = b.active = Ne = Ie = lt = te = null, c._clearHiddenBox(), c.resetTreeState(), Ze.forEach(function(e) {
1121
+ j("nulling", this), T = d = we = A = y = Ae = he = I = ze = ue = q = J = xe = G = se = De = ke = ye = Xe = X = be = b.dragged = b.ghost = b.ghostClone = b.clone = b.active = Ne = Ie = lt = te = null, c._clearHiddenBox(), c.resetTreeState(), Ze.forEach(function(e) {
1122
1122
  e.checked = !0;
1123
1123
  }), Ze.length = ot = it = 0;
1124
1124
  },
@@ -1192,11 +1192,13 @@ b.prototype = /** @lends Sortable.prototype */
1192
1192
  * Destroy
1193
1193
  */
1194
1194
  destroy: function() {
1195
- j("destroy", this);
1196
- var e = this.el;
1197
- e[M] = null, _(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart), _(e, "pointerdown", this._onTapStart), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(r) {
1198
- r.removeAttribute("draggable");
1199
- }), this._offMoveEvents(), this._offUpEvents(), this._onDrop(), y && y.parentNode && (y.parentNode.removeChild(y), y = null), this._disableDelayedDragEvents(), Ke.splice(Ke.indexOf(this.el), 1), this.el = e = null;
1195
+ if (this.el) {
1196
+ j("destroy", this);
1197
+ var e = this.el;
1198
+ e[M] = null, _(e, "mousedown", this._onTapStart), _(e, "touchstart", this._onTapStart), _(e, "pointerdown", this._onTapStart), this.nativeDraggable && (_(e, "dragover", this), _(e, "dragenter", this)), Array.prototype.forEach.call(e.querySelectorAll("[draggable]"), function(r) {
1199
+ r.removeAttribute("draggable");
1200
+ }), this._offMoveEvents(), this._offUpEvents(), this._disableDelayedDragEvents(), clearTimeout(this._dragStartTimer), pe = !1, this._onDrop(), y && y.parentNode && (y.parentNode.removeChild(y), y = null), Ke.splice(Ke.indexOf(this.el), 1), this.el = e = null;
1201
+ }
1200
1202
  },
1201
1203
  _hideClone: function() {
1202
1204
  if (!ue) {
@@ -1274,7 +1276,7 @@ function ht(n) {
1274
1276
  return clearTimeout(n);
1275
1277
  }
1276
1278
  et && C(document, "touchmove", function(n) {
1277
- (b.active || we) && n.cancelable && n.preventDefault();
1279
+ (b.active || pe) && n.cancelable && n.preventDefault();
1278
1280
  });
1279
1281
  b.utils = {
1280
1282
  on: C,
@@ -1380,9 +1382,9 @@ var ct = Bt(function(n, e, r, t) {
1380
1382
  pt !== r && (pt = r, Ve(), Pe = e.scroll, f = e.scrollFn, Pe === !0 && (Pe = de(r, !0)));
1381
1383
  var h = 0, m = Pe;
1382
1384
  do {
1383
- var p = m, g = R(p), v = g.top, D = g.bottom, F = g.left, P = g.right, O = g.width, w = g.height, x = void 0, S = void 0, k = p.scrollWidth, W = p.scrollHeight, L = E(p), pe = p.scrollLeft, ie = p.scrollTop;
1385
+ var p = m, g = R(p), v = g.top, D = g.bottom, F = g.left, P = g.right, O = g.width, w = g.height, x = void 0, S = void 0, k = p.scrollWidth, W = p.scrollHeight, L = E(p), ge = p.scrollLeft, ie = p.scrollTop;
1384
1386
  p === s ? (x = O < k && (L.overflowX === "auto" || L.overflowX === "scroll" || L.overflowX === "visible"), S = w < W && (L.overflowY === "auto" || L.overflowY === "scroll" || L.overflowY === "visible")) : (x = O < k && (L.overflowX === "auto" || L.overflowX === "scroll"), S = w < W && (L.overflowY === "auto" || L.overflowY === "scroll"));
1385
- var ae = x && (Math.abs(P - o) <= a && pe + O < k) - (Math.abs(F - o) <= a && !!pe), V = S && (Math.abs(D - i) <= a && ie + w < W) - (Math.abs(v - i) <= a && !!ie);
1387
+ var ae = x && (Math.abs(P - o) <= a && ge + O < k) - (Math.abs(F - o) <= a && !!ge), V = S && (Math.abs(D - i) <= a && ie + w < W) - (Math.abs(v - i) <= a && !!ie);
1386
1388
  if (!B[h])
1387
1389
  for (var le = 0; le <= h; le++)
1388
1390
  B[le] || (B[le] = {});
@@ -1577,7 +1579,7 @@ const c = {
1577
1579
  var r = c.checkCross(d, n, e);
1578
1580
  if (!r.isSameStruct) {
1579
1581
  const t = d.cloneNode(!0);
1580
- c._moveToHiddenBox(d), Ee ? (d = Ee, Ee = null) : d = r.newEl, Ee || (Ee = t);
1582
+ c._moveToHiddenBox(d), we ? (d = we, we = null) : d = r.newEl, we || (we = t);
1581
1583
  }
1582
1584
  },
1583
1585
  crossDropEnd: (n, e) => new Promise((r, t) => {
@@ -2055,7 +2057,7 @@ const In = ["id"], Fn = /* @__PURE__ */ Ht({
2055
2057
  isDisabledOutsideInto: k,
2056
2058
  isGroupSameStruct: W,
2057
2059
  groupDropEndBeforeCallback: L,
2058
- keyAttrId: pe,
2060
+ keyAttrId: ge,
2059
2061
  isTree: ie,
2060
2062
  maxDepth: ae,
2061
2063
  indentThreshold: V,
@@ -2078,7 +2080,7 @@ const In = ["id"], Fn = /* @__PURE__ */ Ht({
2078
2080
  chosenClass: F,
2079
2081
  dragClass: "darg-moveing",
2080
2082
  animation: t.animation,
2081
- dataIdAttr: pe,
2083
+ dataIdAttr: ge,
2082
2084
  extOption: {
2083
2085
  boundary: {
2084
2086
  isOut: P,
@@ -2111,8 +2113,8 @@ const In = ["id"], Fn = /* @__PURE__ */ Ht({
2111
2113
  };
2112
2114
  if (g && !tt.isEmpty(g))
2113
2115
  if ($.extOption.cross.isCross = !0, k) {
2114
- const ge = tt.isObject(g) ? g.name : g;
2115
- $.group = { name: ge, pull: "clone", put: !1 }, $.animation = 0;
2116
+ const me = tt.isObject(g) ? g.name : g;
2117
+ $.group = { name: me, pull: "clone", put: !1 }, $.animation = 0;
2116
2118
  } else
2117
2119
  $.group = g;
2118
2120
  l.sortableObj = new b(p, $);
@@ -1 +1 @@
1
- .panel-input-captcha{display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;transition:all .3s linear}.inputCaptcha-theme-default{align-items:stretch;border:1px solid var(--cl-border, #cfcfcf);border-radius:4px}.inputCaptcha-theme-bottomLine{align-items:center;border-bottom:1px solid var(--cl-border, #cfcfcf)}.panel-input-captcha:hover{border-color:var(--cl-text-tertiary, #aaaaaa)}.panel-input-captcha>.panel-input{flex:1}.panel-input-captcha .panel-input .input-group,.panel-input-captcha .panel-input .input-container,.panel-input-captcha .panel-input .form-control{border-radius:0;border-width:0}.panel-input-captcha.inputCaptcha-theme-bottomLine .panel-input.input-bottomLine>.input-container>.form-control{padding-top:7px;padding-bottom:7px}.panel-input-captcha>.inputCaptcha-send{font-size:13px;width:100px;text-align:center;background-color:var(--cl-bg, #ffffff);color:#4c5667;cursor:pointer;transition:all .3s linear;border:none;font-family:inherit;padding:0}.panel-input-captcha>.inputCaptcha-send:hover{background-color:var(--cl-bg-muted, #f5f5f5)}.panel-input-captcha .inputCaptcha-btn{width:100%;border:none;background-color:transparent;padding:0;font-family:inherit;color:inherit;font-size:inherit;cursor:pointer}.panel-input-captcha .inputCaptcha-btn:focus-visible{outline:none;background-color:var(--cl-bg-muted, #f5f5f5)}.panel-input-captcha>.inputCaptcha-send.inputCaptcha-send-ing .inputCaptcha-btn{cursor:no-drop}.panel-input-captcha>.inputCaptcha-send.inputCaptcha-send-ing{cursor:no-drop;background-color:var(--cl-bg-muted, #f5f5f5)}.inputCaptcha-theme-default>.inputCaptcha-send{display:flex;flex-direction:row;align-items:center;justify-content:center;border-left:1px solid var(--cl-border, #cfcfcf);border-top-right-radius:4px;border-bottom-right-radius:4px}.inputCaptcha-theme-bottomLine>.inputCaptcha-send{display:flex;flex-direction:row;align-items:center;justify-content:center;border:none;margin-right:10px;padding:0;color:var(--cl-primary, #1088f0);background-color:transparent}.inputCaptcha-theme-bottomLine>.inputCaptcha-send:hover{background-color:transparent;color:#0b77d0}.inputCaptcha-theme-bottomLine>.inputCaptcha-send.inputCaptcha-send-ing{background-color:transparent;color:#8c9aa9}
1
+ .panel-input-captcha{display:flex;flex-direction:row;align-items:stretch;justify-content:space-between;transition:all .3s linear}.inputCaptcha-theme-default{align-items:stretch;border:1px solid var(--cl-border-control, #cfcfcf);border-radius:4px}.inputCaptcha-theme-bottomLine{align-items:center;border-bottom:1px solid var(--cl-border-control, #cfcfcf)}.panel-input-captcha:hover{border-color:var(--cl-text-tertiary, #aaaaaa)}.panel-input-captcha>.panel-input{flex:1}.panel-input-captcha .panel-input .input-group,.panel-input-captcha .panel-input .input-container,.panel-input-captcha .panel-input .form-control{border-radius:0;border-width:0}.panel-input-captcha.inputCaptcha-theme-bottomLine .panel-input.input-bottomLine>.input-container>.form-control{padding-top:7px;padding-bottom:7px}.panel-input-captcha>.inputCaptcha-send{font-size:13px;width:100px;text-align:center;background-color:var(--cl-bg, #ffffff);color:#4c5667;cursor:pointer;transition:all .3s linear;border:none;font-family:inherit;padding:0}.panel-input-captcha>.inputCaptcha-send:hover{background-color:var(--cl-bg-muted, #f5f5f5)}.panel-input-captcha .inputCaptcha-btn{width:100%;border:none;background-color:transparent;padding:0;font-family:inherit;color:inherit;font-size:inherit;cursor:pointer}.panel-input-captcha .inputCaptcha-btn:focus-visible{outline:none;background-color:var(--cl-bg-muted, #f5f5f5)}.panel-input-captcha>.inputCaptcha-send.inputCaptcha-send-ing .inputCaptcha-btn{cursor:no-drop}.panel-input-captcha>.inputCaptcha-send.inputCaptcha-send-ing{cursor:no-drop;background-color:var(--cl-bg-muted, #f5f5f5)}.inputCaptcha-theme-default>.inputCaptcha-send{display:flex;flex-direction:row;align-items:center;justify-content:center;border-left:1px solid var(--cl-border-control, #cfcfcf);border-top-right-radius:4px;border-bottom-right-radius:4px}.inputCaptcha-theme-bottomLine>.inputCaptcha-send{display:flex;flex-direction:row;align-items:center;justify-content:center;border:none;margin-right:10px;padding:0;color:var(--cl-primary, #1088f0);background-color:transparent}.inputCaptcha-theme-bottomLine>.inputCaptcha-send:hover{background-color:transparent;color:#0b77d0}.inputCaptcha-theme-bottomLine>.inputCaptcha-send.inputCaptcha-send-ing{background-color:transparent;color:#8c9aa9}