asiaint-lowcode 3.0.62 → 3.0.63

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 (31) hide show
  1. package/dist/asiaint-lowcode.js +1 -1
  2. package/dist/asiaint-lowcode.umd.cjs +1 -1
  3. package/dist/lazy/{Card-loCQbSyD.js → Card-DX_tmBTO.js} +1 -1
  4. package/dist/lazy/{Cascader-TYl2Nosl.js → Cascader-BaWeyf6v.js} +1 -1
  5. package/dist/lazy/{Checkbox-QZri-3YQ.js → Checkbox-jde5qpWO.js} +2 -2
  6. package/dist/lazy/{Collapse-FhOFCQnB.js → Collapse-CW2egM2j.js} +1 -1
  7. package/dist/lazy/{Component-DVvujA5O.js → Component-B87x84Qz.js} +1 -1
  8. package/dist/lazy/{Component-DYHEhEQy.js → Component-BX0Vjqi_.js} +1 -1
  9. package/dist/lazy/{Component-yYafD_FZ.js → Component-BkPdnN-l.js} +1 -1
  10. package/dist/lazy/{Component-BjRbAEs8.js → Component-CWfR4abG.js} +1 -1
  11. package/dist/lazy/{Component-DPaXrfrO.js → Component-DddU_h-d.js} +1 -1
  12. package/dist/lazy/{Component-DMPiq6Bb.js → Component-DesiEEIq.js} +1 -1
  13. package/dist/lazy/{CurdCard-D0RzThvE.js → CurdCard-D85tZ2Nk.js} +1 -1
  14. package/dist/lazy/{Custom-BiZ5wC8U.js → Custom-Ka1WMxah.js} +1 -1
  15. package/dist/lazy/{FormList-WfUcytCM.js → FormList-BRVWUCxC.js} +1 -1
  16. package/dist/lazy/{Grid-GGmw46mx.js → Grid-B7Ze6VbX.js} +1 -1
  17. package/dist/lazy/{Inline-D7jgIfJr.js → Inline-Dk01qfIx.js} +1 -1
  18. package/dist/lazy/{JsonEdit-Dt0gXGAy.js → JsonEdit-TlIwgEBd.js} +1 -1
  19. package/dist/lazy/{LogList-DbG4l68y.js → LogList-yLvJmbmJ.js} +1 -1
  20. package/dist/lazy/{ObjGroup-BvNWq3Xq.js → ObjGroup-BToZgagp.js} +1 -1
  21. package/dist/lazy/{OfferDetails-CSVYu5XA.js → OfferDetails-rcatMAMY.js} +1 -1
  22. package/dist/lazy/{Progress-0RhmEg0H.js → Progress-OcgpvxBv.js} +1 -1
  23. package/dist/lazy/{Radio-CVe6z5UD.js → Radio-DpS0qxVs.js} +2 -2
  24. package/dist/lazy/{SearchSelect--fxvwctB.js → SearchSelect-DQR8aE88.js} +2 -2
  25. package/dist/lazy/{Select-CAT1ekVl.js → Select-Dm9cTUr_.js} +2 -2
  26. package/dist/lazy/{Table-DHAYeSWo.js → Table-B8nTtXP-.js} +1 -1
  27. package/dist/lazy/{Tabs-CkSPVHEP.js → Tabs-DPGmVojg.js} +1 -1
  28. package/dist/lazy/{Wrapper-B-JT-Ago.js → Wrapper-BEOOmyGd.js} +1 -1
  29. package/dist/lazy/{index-1TVN549d.js → index-Dbtt2wXu.js} +629 -629
  30. package/dist/lazy/{useSelect-CtwRemo0.js → useSelect-Vv5vdsqq.js} +1 -1
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import './style.css';
2
- import { $ as o, m, c as n, P as t, T as d, k as i, u as p } from "./lazy/index-1TVN549d.js";
2
+ import { $ as o, m, c as n, P as t, T as d, k as i, u as p } from "./lazy/index-Dbtt2wXu.js";
3
3
  import "vue";
4
4
  import "element-plus";
5
5
  export {
@@ -93,7 +93,7 @@ You passed in: '`+this.raw_options[i]+"'");return a},n.prototype._is_valid_selec
93
93
  * @author RubaXa <trash@rubaxa.org>
94
94
  * @author owenm <owen23355@gmail.com>
95
95
  * @license MIT
96
- */function ju(n,A){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);A&&(i=i.filter(function(Q){return Object.getOwnPropertyDescriptor(n,Q).enumerable})),t.push.apply(t,i)}return t}function En(n){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?ju(Object(t),!0).forEach(function(i){cy(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ju(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Us(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Us=function(A){return typeof A}:Us=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Us(n)}function cy(n,A,t){return A in n?Object.defineProperty(n,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[A]=t,n}function kn(){return kn=Object.assign||function(n){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},kn.apply(this,arguments)}function gy(n,A){if(n==null)return{};var t={},i=Object.keys(n),Q,w;for(w=0;w<i.length;w++)Q=i[w],!(A.indexOf(Q)>=0)&&(t[Q]=n[Q]);return t}function uy(n,A){if(n==null)return{};var t=gy(n,A),i,Q;if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(n);for(Q=0;Q<w.length;Q++)i=w[Q],!(A.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}var dy="1.14.0";function _n(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Mn=_n(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ko=_n(/Edge/i),qu=_n(/firefox/i),_o=_n(/safari/i)&&!_n(/chrome/i)&&!_n(/android/i),Xu=_n(/iP(ad|od|hone)/i),hy=_n(/chrome/i)&&_n(/android/i),Vu={capture:!1,passive:!1};function Ne(n,A,t){n.addEventListener(A,t,!Mn&&Vu)}function Se(n,A,t){n.removeEventListener(A,t,!Mn&&Vu)}function Ts(n,A){if(A){if(A[0]===">"&&(A=A.substring(1)),n)try{if(n.matches)return n.matches(A);if(n.msMatchesSelector)return n.msMatchesSelector(A);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(A)}catch{return!1}return!1}}function py(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Qn(n,A,t,i){if(n){t=t||document;do{if(A!=null&&(A[0]===">"?n.parentNode===t&&Ts(n,A):Ts(n,A))||i&&n===t)return n;if(n===t)break}while(n=py(n))}return null}var Ad=/\s+/g;function Ht(n,A,t){if(n&&A)if(n.classList)n.classList[t?"add":"remove"](A);else{var i=(" "+n.className+" ").replace(Ad," ").replace(" "+A+" "," ");n.className=(i+(t?" "+A:"")).replace(Ad," ")}}function pe(n,A,t){var i=n&&n.style;if(i){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),A===void 0?t:t[A];!(A in i)&&A.indexOf("webkit")===-1&&(A="-webkit-"+A),i[A]=t+(typeof t=="string"?"":"px")}}function Ki(n,A){var t="";if(typeof n=="string")t=n;else do{var i=pe(n,"transform");i&&i!=="none"&&(t=i+" "+t)}while(!A&&(n=n.parentNode));var Q=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return Q&&new Q(t)}function ed(n,A,t){if(n){var i=n.getElementsByTagName(A),Q=0,w=i.length;if(t)for(;Q<w;Q++)t(i[Q],Q);return i}return[]}function mn(){var n=document.scrollingElement;return n||document.documentElement}function lt(n,A,t,i,Q){if(!(!n.getBoundingClientRect&&n!==window)){var w,a,b,S,f,N,G;if(n!==window&&n.parentNode&&n!==mn()?(w=n.getBoundingClientRect(),a=w.top,b=w.left,S=w.bottom,f=w.right,N=w.height,G=w.width):(a=0,b=0,S=window.innerHeight,f=window.innerWidth,N=window.innerHeight,G=window.innerWidth),(A||t)&&n!==window&&(Q=Q||n.parentNode,!Mn))do if(Q&&Q.getBoundingClientRect&&(pe(Q,"transform")!=="none"||t&&pe(Q,"position")!=="static")){var K=Q.getBoundingClientRect();a-=K.top+parseInt(pe(Q,"border-top-width")),b-=K.left+parseInt(pe(Q,"border-left-width")),S=a+w.height,f=b+w.width;break}while(Q=Q.parentNode);if(i&&n!==window){var Z=Ki(Q||n),T=Z&&Z.a,P=Z&&Z.d;Z&&(a/=P,b/=T,G/=T,N/=P,S=a+N,f=b+G)}return{top:a,left:b,bottom:S,right:f,width:G,height:N}}}function td(n,A,t){for(var i=Jn(n,!0),Q=lt(n)[A];i;){var w=lt(i)[t],a=void 0;if(a=Q>=w,!a)return i;if(i===mn())break;i=Jn(i,!1)}return!1}function Ui(n,A,t,i){for(var Q=0,w=0,a=n.children;w<a.length;){if(a[w].style.display!=="none"&&a[w]!==Be.ghost&&(i||a[w]!==Be.dragged)&&Qn(a[w],t.draggable,n,!1)){if(Q===A)return a[w];Q++}w++}return null}function Ja(n,A){for(var t=n.lastElementChild;t&&(t===Be.ghost||pe(t,"display")==="none"||A&&!Ts(t,A));)t=t.previousElementSibling;return t||null}function qt(n,A){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Be.clone&&(!A||Ts(n,A))&&t++;return t}function nd(n){var A=0,t=0,i=mn();if(n)do{var Q=Ki(n),w=Q.a,a=Q.d;A+=n.scrollLeft*w,t+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[A,t]}function By(n,A){for(var t in n)if(n.hasOwnProperty(t)){for(var i in A)if(A.hasOwnProperty(i)&&A[i]===n[t][i])return Number(t)}return-1}function Jn(n,A){if(!n||!n.getBoundingClientRect)return mn();var t=n,i=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var Q=pe(t);if(t.clientWidth<t.scrollWidth&&(Q.overflowX=="auto"||Q.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(Q.overflowY=="auto"||Q.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return mn();if(i||A)return t;i=!0}}while(t=t.parentNode);return mn()}function Cy(n,A){if(n&&A)for(var t in A)A.hasOwnProperty(t)&&(n[t]=A[t]);return n}function Za(n,A){return Math.round(n.top)===Math.round(A.top)&&Math.round(n.left)===Math.round(A.left)&&Math.round(n.height)===Math.round(A.height)&&Math.round(n.width)===Math.round(A.width)}var Mo;function id(n,A){return function(){if(!Mo){var t=arguments,i=this;t.length===1?n.call(i,t[0]):n.apply(i,t),Mo=setTimeout(function(){Mo=void 0},A)}}}function Ey(){clearTimeout(Mo),Mo=void 0}function od(n,A,t){n.scrollLeft+=A,n.scrollTop+=t}function sd(n){var A=window.Polymer,t=window.jQuery||window.Zepto;return A&&A.dom?A.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var Pt="Sortable"+new Date().getTime();function Qy(){var n=[],A;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(Q){if(!(pe(Q,"display")==="none"||Q===Be.ghost)){n.push({target:Q,rect:lt(Q)});var w=En({},n[n.length-1].rect);if(Q.thisAnimationDuration){var a=Ki(Q,!0);a&&(w.top-=a.f,w.left-=a.e)}Q.fromRect=w}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(By(n,{target:i}),1)},animateAll:function(i){var Q=this;if(!this.options.animation){clearTimeout(A),typeof i=="function"&&i();return}var w=!1,a=0;n.forEach(function(b){var S=0,f=b.target,N=f.fromRect,G=lt(f),K=f.prevFromRect,Z=f.prevToRect,T=b.rect,P=Ki(f,!0);P&&(G.top-=P.f,G.left-=P.e),f.toRect=G,f.thisAnimationDuration&&Za(K,G)&&!Za(N,G)&&(T.top-G.top)/(T.left-G.left)===(N.top-G.top)/(N.left-G.left)&&(S=Iy(T,K,Z,Q.options)),Za(G,N)||(f.prevFromRect=N,f.prevToRect=G,S||(S=Q.options.animation),Q.animate(f,T,G,S)),S&&(w=!0,a=Math.max(a,S),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},S),f.thisAnimationDuration=S)}),clearTimeout(A),w?A=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,Q,w,a){if(a){pe(i,"transition",""),pe(i,"transform","");var b=Ki(this.el),S=b&&b.a,f=b&&b.d,N=(Q.left-w.left)/(S||1),G=(Q.top-w.top)/(f||1);i.animatingX=!!N,i.animatingY=!!G,pe(i,"transform","translate3d("+N+"px,"+G+"px,0)"),this.forRepaintDummy=my(i),pe(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),pe(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){pe(i,"transition",""),pe(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function my(n){return n.offsetWidth}function Iy(n,A,t,i){return Math.sqrt(Math.pow(A.top-n.top,2)+Math.pow(A.left-n.left,2))/Math.sqrt(Math.pow(A.top-t.top,2)+Math.pow(A.left-t.left,2))*i.animation}var Ti=[],za={initializeByDefault:!0},So={mount:function(A){for(var t in za)za.hasOwnProperty(t)&&!(t in A)&&(A[t]=za[t]);Ti.forEach(function(i){if(i.pluginName===A.pluginName)throw"Sortable: Cannot mount plugin ".concat(A.pluginName," more than once")}),Ti.push(A)},pluginEvent:function(A,t,i){var Q=this;this.eventCanceled=!1,i.cancel=function(){Q.eventCanceled=!0};var w=A+"Global";Ti.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][w]&&t[a.pluginName][w](En({sortable:t},i)),t.options[a.pluginName]&&t[a.pluginName][A]&&t[a.pluginName][A](En({sortable:t},i)))})},initializePlugins:function(A,t,i,Q){Ti.forEach(function(b){var S=b.pluginName;if(!(!A.options[S]&&!b.initializeByDefault)){var f=new b(A,t,A.options);f.sortable=A,f.options=A.options,A[S]=f,kn(i,f.defaults)}});for(var w in A.options)if(A.options.hasOwnProperty(w)){var a=this.modifyOption(A,w,A.options[w]);typeof a<"u"&&(A.options[w]=a)}},getEventProperties:function(A,t){var i={};return Ti.forEach(function(Q){typeof Q.eventProperties=="function"&&kn(i,Q.eventProperties.call(t[Q.pluginName],A))}),i},modifyOption:function(A,t,i){var Q;return Ti.forEach(function(w){A[w.pluginName]&&w.optionListeners&&typeof w.optionListeners[t]=="function"&&(Q=w.optionListeners[t].call(A[w.pluginName],i))}),Q}};function fy(n){var A=n.sortable,t=n.rootEl,i=n.name,Q=n.targetEl,w=n.cloneEl,a=n.toEl,b=n.fromEl,S=n.oldIndex,f=n.newIndex,N=n.oldDraggableIndex,G=n.newDraggableIndex,K=n.originalEvent,Z=n.putSortable,T=n.extraEventProperties;if(A=A||t&&t[Pt],!!A){var P,_=A.options,m="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Mn&&!ko?P=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(P=document.createEvent("Event"),P.initEvent(i,!0,!0)),P.to=a||t,P.from=b||t,P.item=Q||t,P.clone=w,P.oldIndex=S,P.newIndex=f,P.oldDraggableIndex=N,P.newDraggableIndex=G,P.originalEvent=K,P.pullMode=Z?Z.lastPutMode:void 0;var L=En(En({},T),So.getEventProperties(i,A));for(var k in L)P[k]=L[k];t&&t.dispatchEvent(P),_[m]&&_[m].call(A,P)}}var wy=["evt"],St=function(A,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=i.evt,w=uy(i,wy);So.pluginEvent.bind(Be)(A,t,En({dragEl:qA,parentEl:Ve,ghostEl:fe,rootEl:ze,nextEl:hi,lastDownEl:Ys,cloneEl:At,cloneHidden:Zn,dragStarted:No,putSortable:Bt,activeSortable:Be.active,originalEvent:Q,oldIndex:Yi,oldDraggableIndex:xo,newIndex:Kt,newDraggableIndex:zn,hideGhostForTarget:dd,unhideGhostForTarget:hd,cloneNowHidden:function(){Zn=!0},cloneNowShown:function(){Zn=!1},dispatchSortableEvent:function(b){Dt({sortable:t,name:b,originalEvent:Q})}},w))};function Dt(n){fy(En({putSortable:Bt,cloneEl:At,targetEl:qA,rootEl:ze,oldIndex:Yi,oldDraggableIndex:xo,newIndex:Kt,newDraggableIndex:zn},n))}var qA,Ve,fe,ze,hi,Ys,At,Zn,Yi,Kt,xo,zn,Os,Bt,Oi=!1,$s=!1,Js=[],pi,gn,Wa,ja,rd,ad,No,$i,Fo,Ro=!1,Zs=!1,zs,Qt,qa=[],Xa=!1,Ws=[],js=typeof document<"u",qs=Xu,ld=ko||Mn?"cssFloat":"float",Dy=js&&!hy&&!Xu&&"draggable"in document.createElement("div"),cd=function(){if(js){if(Mn)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),gd=function(A,t){var i=pe(A),Q=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),w=Ui(A,0,t),a=Ui(A,1,t),b=w&&pe(w),S=a&&pe(a),f=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+lt(w).width,N=S&&parseInt(S.marginLeft)+parseInt(S.marginRight)+lt(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(w&&b.float&&b.float!=="none"){var G=b.float==="left"?"left":"right";return a&&(S.clear==="both"||S.clear===G)?"vertical":"horizontal"}return w&&(b.display==="block"||b.display==="flex"||b.display==="table"||b.display==="grid"||f>=Q&&i[ld]==="none"||a&&i[ld]==="none"&&f+N>Q)?"vertical":"horizontal"},by=function(A,t,i){var Q=i?A.left:A.top,w=i?A.right:A.bottom,a=i?A.width:A.height,b=i?t.left:t.top,S=i?t.right:t.bottom,f=i?t.width:t.height;return Q===b||w===S||Q+a/2===b+f/2},yy=function(A,t){var i;return Js.some(function(Q){var w=Q[Pt].options.emptyInsertThreshold;if(!(!w||Ja(Q))){var a=lt(Q),b=A>=a.left-w&&A<=a.right+w,S=t>=a.top-w&&t<=a.bottom+w;if(b&&S)return i=Q}}),i},ud=function(A){function t(w,a){return function(b,S,f,N){var G=b.options.group.name&&S.options.group.name&&b.options.group.name===S.options.group.name;if(w==null&&(a||G))return!0;if(w==null||w===!1)return!1;if(a&&w==="clone")return w;if(typeof w=="function")return t(w(b,S,f,N),a)(b,S,f,N);var K=(a?b:S).options.group.name;return w===!0||typeof w=="string"&&w===K||w.join&&w.indexOf(K)>-1}}var i={},Q=A.group;(!Q||Us(Q)!="object")&&(Q={name:Q}),i.name=Q.name,i.checkPull=t(Q.pull,!0),i.checkPut=t(Q.put),i.revertClone=Q.revertClone,A.group=i},dd=function(){!cd&&fe&&pe(fe,"display","none")},hd=function(){!cd&&fe&&pe(fe,"display","")};js&&document.addEventListener("click",function(n){if($s)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),$s=!1,!1},!0);var Bi=function(A){if(qA){A=A.touches?A.touches[0]:A;var t=yy(A.clientX,A.clientY);if(t){var i={};for(var Q in A)A.hasOwnProperty(Q)&&(i[Q]=A[Q]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[Pt]._onDragOver(i)}}},vy=function(A){qA&&qA.parentNode[Pt]._isOutsideThisEl(A.target)};function Be(n,A){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=A=kn({},A),n[Pt]=this;var t={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 gd(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,b){a.setData("Text",b.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:Be.supportPointer!==!1&&"PointerEvent"in window&&!_o,emptyInsertThreshold:5};So.initializePlugins(this,n,t);for(var i in t)!(i in A)&&(A[i]=t[i]);ud(A);for(var Q in this)Q.charAt(0)==="_"&&typeof this[Q]=="function"&&(this[Q]=this[Q].bind(this));this.nativeDraggable=A.forceFallback?!1:Dy,this.nativeDraggable&&(this.options.touchStartThreshold=1),A.supportPointer?Ne(n,"pointerdown",this._onTapStart):(Ne(n,"mousedown",this._onTapStart),Ne(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ne(n,"dragover",this),Ne(n,"dragenter",this)),Js.push(this.el),A.store&&A.store.get&&this.sort(A.store.get(this)||[]),kn(this,Qy())}Be.prototype={constructor:Be,_isOutsideThisEl:function(A){!this.el.contains(A)&&A!==this.el&&($i=null)},_getDirection:function(A,t){return typeof this.options.direction=="function"?this.options.direction.call(this,A,t,qA):this.options.direction},_onTapStart:function(A){if(A.cancelable){var t=this,i=this.el,Q=this.options,w=Q.preventOnFilter,a=A.type,b=A.touches&&A.touches[0]||A.pointerType&&A.pointerType==="touch"&&A,S=(b||A).target,f=A.target.shadowRoot&&(A.path&&A.path[0]||A.composedPath&&A.composedPath()[0])||S,N=Q.filter;if(Ry(i),!qA&&!(/mousedown|pointerdown/.test(a)&&A.button!==0||Q.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&_o&&S&&S.tagName.toUpperCase()==="SELECT")&&(S=Qn(S,Q.draggable,i,!1),!(S&&S.animated)&&Ys!==S)){if(Yi=qt(S),xo=qt(S,Q.draggable),typeof N=="function"){if(N.call(this,A,S,this)){Dt({sortable:t,rootEl:f,name:"filter",targetEl:S,toEl:i,fromEl:i}),St("filter",t,{evt:A}),w&&A.cancelable&&A.preventDefault();return}}else if(N&&(N=N.split(",").some(function(G){if(G=Qn(f,G.trim(),i,!1),G)return Dt({sortable:t,rootEl:G,name:"filter",targetEl:S,fromEl:i,toEl:i}),St("filter",t,{evt:A}),!0}),N)){w&&A.cancelable&&A.preventDefault();return}Q.handle&&!Qn(f,Q.handle,i,!1)||this._prepareDragStart(A,b,S)}}},_prepareDragStart:function(A,t,i){var Q=this,w=Q.el,a=Q.options,b=w.ownerDocument,S;if(i&&!qA&&i.parentNode===w){var f=lt(i);if(ze=w,qA=i,Ve=qA.parentNode,hi=qA.nextSibling,Ys=i,Os=a.group,Be.dragged=qA,pi={target:qA,clientX:(t||A).clientX,clientY:(t||A).clientY},rd=pi.clientX-f.left,ad=pi.clientY-f.top,this._lastX=(t||A).clientX,this._lastY=(t||A).clientY,qA.style["will-change"]="all",S=function(){if(St("delayEnded",Q,{evt:A}),Be.eventCanceled){Q._onDrop();return}Q._disableDelayedDragEvents(),!qu&&Q.nativeDraggable&&(qA.draggable=!0),Q._triggerDragStart(A,t),Dt({sortable:Q,name:"choose",originalEvent:A}),Ht(qA,a.chosenClass,!0)},a.ignore.split(",").forEach(function(N){ed(qA,N.trim(),Va)}),Ne(b,"dragover",Bi),Ne(b,"mousemove",Bi),Ne(b,"touchmove",Bi),Ne(b,"mouseup",Q._onDrop),Ne(b,"touchend",Q._onDrop),Ne(b,"touchcancel",Q._onDrop),qu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,qA.draggable=!0),St("delayStart",this,{evt:A}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ko||Mn))){if(Be.eventCanceled){this._onDrop();return}Ne(b,"mouseup",Q._disableDelayedDrag),Ne(b,"touchend",Q._disableDelayedDrag),Ne(b,"touchcancel",Q._disableDelayedDrag),Ne(b,"mousemove",Q._delayedDragTouchMoveHandler),Ne(b,"touchmove",Q._delayedDragTouchMoveHandler),a.supportPointer&&Ne(b,"pointermove",Q._delayedDragTouchMoveHandler),Q._dragStartTimer=setTimeout(S,a.delay)}else S()}},_delayedDragTouchMoveHandler:function(A){var t=A.touches?A.touches[0]:A;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){qA&&Va(qA),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var A=this.el.ownerDocument;Se(A,"mouseup",this._disableDelayedDrag),Se(A,"touchend",this._disableDelayedDrag),Se(A,"touchcancel",this._disableDelayedDrag),Se(A,"mousemove",this._delayedDragTouchMoveHandler),Se(A,"touchmove",this._delayedDragTouchMoveHandler),Se(A,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(A,t){t=t||A.pointerType=="touch"&&A,!this.nativeDraggable||t?this.options.supportPointer?Ne(document,"pointermove",this._onTouchMove):t?Ne(document,"touchmove",this._onTouchMove):Ne(document,"mousemove",this._onTouchMove):(Ne(qA,"dragend",this),Ne(ze,"dragstart",this._onDragStart));try{document.selection?Vs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(A,t){if(Oi=!1,ze&&qA){St("dragStarted",this,{evt:t}),this.nativeDraggable&&Ne(document,"dragover",vy);var i=this.options;!A&&Ht(qA,i.dragClass,!1),Ht(qA,i.ghostClass,!0),Be.active=this,A&&this._appendGhost(),Dt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(gn){this._lastX=gn.clientX,this._lastY=gn.clientY,dd();for(var A=document.elementFromPoint(gn.clientX,gn.clientY),t=A;A&&A.shadowRoot&&(A=A.shadowRoot.elementFromPoint(gn.clientX,gn.clientY),A!==t);)t=A;if(qA.parentNode[Pt]._isOutsideThisEl(A),t)do{if(t[Pt]){var i=void 0;if(i=t[Pt]._onDragOver({clientX:gn.clientX,clientY:gn.clientY,target:A,rootEl:t}),i&&!this.options.dragoverBubble)break}A=t}while(t=t.parentNode);hd()}},_onTouchMove:function(A){if(pi){var t=this.options,i=t.fallbackTolerance,Q=t.fallbackOffset,w=A.touches?A.touches[0]:A,a=fe&&Ki(fe,!0),b=fe&&a&&a.a,S=fe&&a&&a.d,f=qs&&Qt&&nd(Qt),N=(w.clientX-pi.clientX+Q.x)/(b||1)+(f?f[0]-qa[0]:0)/(b||1),G=(w.clientY-pi.clientY+Q.y)/(S||1)+(f?f[1]-qa[1]:0)/(S||1);if(!Be.active&&!Oi){if(i&&Math.max(Math.abs(w.clientX-this._lastX),Math.abs(w.clientY-this._lastY))<i)return;this._onDragStart(A,!0)}if(fe){a?(a.e+=N-(Wa||0),a.f+=G-(ja||0)):a={a:1,b:0,c:0,d:1,e:N,f:G};var K="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");pe(fe,"webkitTransform",K),pe(fe,"mozTransform",K),pe(fe,"msTransform",K),pe(fe,"transform",K),Wa=N,ja=G,gn=w}A.cancelable&&A.preventDefault()}},_appendGhost:function(){if(!fe){var A=this.options.fallbackOnBody?document.body:ze,t=lt(qA,!0,qs,!0,A),i=this.options;if(qs){for(Qt=A;pe(Qt,"position")==="static"&&pe(Qt,"transform")==="none"&&Qt!==document;)Qt=Qt.parentNode;Qt!==document.body&&Qt!==document.documentElement?(Qt===document&&(Qt=mn()),t.top+=Qt.scrollTop,t.left+=Qt.scrollLeft):Qt=mn(),qa=nd(Qt)}fe=qA.cloneNode(!0),Ht(fe,i.ghostClass,!1),Ht(fe,i.fallbackClass,!0),Ht(fe,i.dragClass,!0),pe(fe,"transition",""),pe(fe,"transform",""),pe(fe,"box-sizing","border-box"),pe(fe,"margin",0),pe(fe,"top",t.top),pe(fe,"left",t.left),pe(fe,"width",t.width),pe(fe,"height",t.height),pe(fe,"opacity","0.8"),pe(fe,"position",qs?"absolute":"fixed"),pe(fe,"zIndex","100000"),pe(fe,"pointerEvents","none"),Be.ghost=fe,A.appendChild(fe),pe(fe,"transform-origin",rd/parseInt(fe.style.width)*100+"% "+ad/parseInt(fe.style.height)*100+"%")}},_onDragStart:function(A,t){var i=this,Q=A.dataTransfer,w=i.options;if(St("dragStart",this,{evt:A}),Be.eventCanceled){this._onDrop();return}St("setupClone",this),Be.eventCanceled||(At=sd(qA),At.draggable=!1,At.style["will-change"]="",this._hideClone(),Ht(At,this.options.chosenClass,!1),Be.clone=At),i.cloneId=Vs(function(){St("clone",i),!Be.eventCanceled&&(i.options.removeCloneOnHide||ze.insertBefore(At,qA),i._hideClone(),Dt({sortable:i,name:"clone"}))}),!t&&Ht(qA,w.dragClass,!0),t?($s=!0,i._loopId=setInterval(i._emulateDragOver,50)):(Se(document,"mouseup",i._onDrop),Se(document,"touchend",i._onDrop),Se(document,"touchcancel",i._onDrop),Q&&(Q.effectAllowed="move",w.setData&&w.setData.call(i,Q,qA)),Ne(document,"drop",i),pe(qA,"transform","translateZ(0)")),Oi=!0,i._dragStartId=Vs(i._dragStarted.bind(i,t,A)),Ne(document,"selectstart",i),No=!0,_o&&pe(document.body,"user-select","none")},_onDragOver:function(A){var t=this.el,i=A.target,Q,w,a,b=this.options,S=b.group,f=Be.active,N=Os===S,G=b.sort,K=Bt||f,Z,T=this,P=!1;if(Xa)return;function _(D,x){St(D,T,En({evt:A,isOwner:N,axis:Z?"vertical":"horizontal",revert:a,dragRect:Q,targetRect:w,canSort:G,fromSortable:K,target:i,completed:L,onMove:function($,j){return Xs(ze,t,qA,Q,$,lt($),A,j)},changed:k},x))}function m(){_("dragOverAnimationCapture"),T.captureAnimationState(),T!==K&&K.captureAnimationState()}function L(D){return _("dragOverCompleted",{insertion:D}),D&&(N?f._hideClone():f._showClone(T),T!==K&&(Ht(qA,Bt?Bt.options.ghostClass:f.options.ghostClass,!1),Ht(qA,b.ghostClass,!0)),Bt!==T&&T!==Be.active?Bt=T:T===Be.active&&Bt&&(Bt=null),K===T&&(T._ignoreWhileAnimating=i),T.animateAll(function(){_("dragOverAnimationComplete"),T._ignoreWhileAnimating=null}),T!==K&&(K.animateAll(),K._ignoreWhileAnimating=null)),(i===qA&&!qA.animated||i===t&&!i.animated)&&($i=null),!b.dragoverBubble&&!A.rootEl&&i!==document&&(qA.parentNode[Pt]._isOutsideThisEl(A.target),!D&&Bi(A)),!b.dragoverBubble&&A.stopPropagation&&A.stopPropagation(),P=!0}function k(){Kt=qt(qA),zn=qt(qA,b.draggable),Dt({sortable:T,name:"change",toEl:t,newIndex:Kt,newDraggableIndex:zn,originalEvent:A})}if(A.preventDefault!==void 0&&A.cancelable&&A.preventDefault(),i=Qn(i,b.draggable,t,!0),_("dragOver"),Be.eventCanceled)return P;if(qA.contains(A.target)||i.animated&&i.animatingX&&i.animatingY||T._ignoreWhileAnimating===i)return L(!1);if($s=!1,f&&!b.disabled&&(N?G||(a=Ve!==ze):Bt===this||(this.lastPutMode=Os.checkPull(this,f,qA,A))&&S.checkPut(this,f,qA,A))){if(Z=this._getDirection(A,i)==="vertical",Q=lt(qA),_("dragOverValid"),Be.eventCanceled)return P;if(a)return Ve=ze,m(),this._hideClone(),_("revert"),Be.eventCanceled||(hi?ze.insertBefore(qA,hi):ze.appendChild(qA)),L(!0);var y=Ja(t,b.draggable);if(!y||Sy(A,Z,this)&&!y.animated){if(y===qA)return L(!1);if(y&&t===A.target&&(i=y),i&&(w=lt(i)),Xs(ze,t,qA,Q,i,w,A,!!i)!==!1)return m(),t.appendChild(qA),Ve=t,k(),L(!0)}else if(y&&My(A,Z,this)){var C=Ui(t,0,b,!0);if(C===qA)return L(!1);if(i=C,w=lt(i),Xs(ze,t,qA,Q,i,w,A,!1)!==!1)return m(),t.insertBefore(qA,C),Ve=t,k(),L(!0)}else if(i.parentNode===t){w=lt(i);var u=0,p,l=qA.parentNode!==t,g=!by(qA.animated&&qA.toRect||Q,i.animated&&i.toRect||w,Z),r=Z?"top":"left",d=td(i,"top","top")||td(qA,"top","top"),h=d?d.scrollTop:void 0;$i!==i&&(p=w[r],Ro=!1,Zs=!g&&b.invertSwap||l),u=xy(A,i,w,Z,g?1:b.swapThreshold,b.invertedSwapThreshold==null?b.swapThreshold:b.invertedSwapThreshold,Zs,$i===i);var s;if(u!==0){var o=qt(qA);do o-=u,s=Ve.children[o];while(s&&(pe(s,"display")==="none"||s===fe))}if(u===0||s===i)return L(!1);$i=i,Fo=u;var B=i.nextElementSibling,E=!1;E=u===1;var M=Xs(ze,t,qA,Q,i,w,A,E);if(M!==!1)return(M===1||M===-1)&&(E=M===1),Xa=!0,setTimeout(_y,30),m(),E&&!B?t.appendChild(qA):i.parentNode.insertBefore(qA,E?B:i),d&&od(d,0,h-d.scrollTop),Ve=qA.parentNode,p!==void 0&&!Zs&&(zs=Math.abs(p-lt(i)[r])),k(),L(!0)}if(t.contains(qA))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",Bi),Se(document,"mousemove",Bi),Se(document,"touchmove",Bi)},_offUpEvents:function(){var A=this.el.ownerDocument;Se(A,"mouseup",this._onDrop),Se(A,"touchend",this._onDrop),Se(A,"pointerup",this._onDrop),Se(A,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(A){var t=this.el,i=this.options;if(Kt=qt(qA),zn=qt(qA,i.draggable),St("drop",this,{evt:A}),Ve=qA&&qA.parentNode,Kt=qt(qA),zn=qt(qA,i.draggable),Be.eventCanceled){this._nulling();return}Oi=!1,Zs=!1,Ro=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Al(this.cloneId),Al(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_o&&pe(document.body,"user-select",""),pe(qA,"transform",""),A&&(No&&(A.cancelable&&A.preventDefault(),!i.dropBubble&&A.stopPropagation()),fe&&fe.parentNode&&fe.parentNode.removeChild(fe),(ze===Ve||Bt&&Bt.lastPutMode!=="clone")&&At&&At.parentNode&&At.parentNode.removeChild(At),qA&&(this.nativeDraggable&&Se(qA,"dragend",this),Va(qA),qA.style["will-change"]="",No&&!Oi&&Ht(qA,Bt?Bt.options.ghostClass:this.options.ghostClass,!1),Ht(qA,this.options.chosenClass,!1),Dt({sortable:this,name:"unchoose",toEl:Ve,newIndex:null,newDraggableIndex:null,originalEvent:A}),ze!==Ve?(Kt>=0&&(Dt({rootEl:Ve,name:"add",toEl:Ve,fromEl:ze,originalEvent:A}),Dt({sortable:this,name:"remove",toEl:Ve,originalEvent:A}),Dt({rootEl:Ve,name:"sort",toEl:Ve,fromEl:ze,originalEvent:A}),Dt({sortable:this,name:"sort",toEl:Ve,originalEvent:A})),Bt&&Bt.save()):Kt!==Yi&&Kt>=0&&(Dt({sortable:this,name:"update",toEl:Ve,originalEvent:A}),Dt({sortable:this,name:"sort",toEl:Ve,originalEvent:A})),Be.active&&((Kt==null||Kt===-1)&&(Kt=Yi,zn=xo),Dt({sortable:this,name:"end",toEl:Ve,originalEvent:A}),this.save()))),this._nulling()},_nulling:function(){St("nulling",this),ze=qA=Ve=fe=hi=At=Ys=Zn=pi=gn=No=Kt=zn=Yi=xo=$i=Fo=Bt=Os=Be.dragged=Be.ghost=Be.clone=Be.active=null,Ws.forEach(function(A){A.checked=!0}),Ws.length=Wa=ja=0},handleEvent:function(A){switch(A.type){case"drop":case"dragend":this._onDrop(A);break;case"dragenter":case"dragover":qA&&(this._onDragOver(A),ky(A));break;case"selectstart":A.preventDefault();break}},toArray:function(){for(var A=[],t,i=this.el.children,Q=0,w=i.length,a=this.options;Q<w;Q++)t=i[Q],Qn(t,a.draggable,this.el,!1)&&A.push(t.getAttribute(a.dataIdAttr)||Fy(t));return A},sort:function(A,t){var i={},Q=this.el;this.toArray().forEach(function(w,a){var b=Q.children[a];Qn(b,this.options.draggable,Q,!1)&&(i[w]=b)},this),t&&this.captureAnimationState(),A.forEach(function(w){i[w]&&(Q.removeChild(i[w]),Q.appendChild(i[w]))}),t&&this.animateAll()},save:function(){var A=this.options.store;A&&A.set&&A.set(this)},closest:function(A,t){return Qn(A,t||this.options.draggable,this.el,!1)},option:function(A,t){var i=this.options;if(t===void 0)return i[A];var Q=So.modifyOption(this,A,t);typeof Q<"u"?i[A]=Q:i[A]=t,A==="group"&&ud(i)},destroy:function(){St("destroy",this);var A=this.el;A[Pt]=null,Se(A,"mousedown",this._onTapStart),Se(A,"touchstart",this._onTapStart),Se(A,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(A,"dragover",this),Se(A,"dragenter",this)),Array.prototype.forEach.call(A.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Js.splice(Js.indexOf(this.el),1),this.el=A=null},_hideClone:function(){if(!Zn){if(St("hideClone",this),Be.eventCanceled)return;pe(At,"display","none"),this.options.removeCloneOnHide&&At.parentNode&&At.parentNode.removeChild(At),Zn=!0}},_showClone:function(A){if(A.lastPutMode!=="clone"){this._hideClone();return}if(Zn){if(St("showClone",this),Be.eventCanceled)return;qA.parentNode==ze&&!this.options.group.revertClone?ze.insertBefore(At,qA):hi?ze.insertBefore(At,hi):ze.appendChild(At),this.options.group.revertClone&&this.animate(qA,At),pe(At,"display",""),Zn=!1}}};function ky(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Xs(n,A,t,i,Q,w,a,b){var S,f=n[Pt],N=f.options.onMove,G;return window.CustomEvent&&!Mn&&!ko?S=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent("move",!0,!0)),S.to=A,S.from=n,S.dragged=t,S.draggedRect=i,S.related=Q||A,S.relatedRect=w||lt(A),S.willInsertAfter=b,S.originalEvent=a,n.dispatchEvent(S),N&&(G=N.call(f,S,a)),G}function Va(n){n.draggable=!1}function _y(){Xa=!1}function My(n,A,t){var i=lt(Ui(t.el,0,t.options,!0)),Q=10;return A?n.clientX<i.left-Q||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-Q||n.clientY<i.bottom&&n.clientX<i.left}function Sy(n,A,t){var i=lt(Ja(t.el,t.options.draggable)),Q=10;return A?n.clientX>i.right+Q||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+Q}function xy(n,A,t,i,Q,w,a,b){var S=i?n.clientY:n.clientX,f=i?t.height:t.width,N=i?t.top:t.left,G=i?t.bottom:t.right,K=!1;if(!a){if(b&&zs<f*Q){if(!Ro&&(Fo===1?S>N+f*w/2:S<G-f*w/2)&&(Ro=!0),Ro)K=!0;else if(Fo===1?S<N+zs:S>G-zs)return-Fo}else if(S>N+f*(1-Q)/2&&S<G-f*(1-Q)/2)return Ny(A)}return K=K||a,K&&(S<N+f*w/2||S>G-f*w/2)?S>N+f/2?1:-1:0}function Ny(n){return qt(qA)<qt(n)?1:-1}function Fy(n){for(var A=n.tagName+n.className+n.src+n.href+n.textContent,t=A.length,i=0;t--;)i+=A.charCodeAt(t);return i.toString(36)}function Ry(n){Ws.length=0;for(var A=n.getElementsByTagName("input"),t=A.length;t--;){var i=A[t];i.checked&&Ws.push(i)}}function Vs(n){return setTimeout(n,0)}function Al(n){return clearTimeout(n)}js&&Ne(document,"touchmove",function(n){(Be.active||Oi)&&n.cancelable&&n.preventDefault()}),Be.utils={on:Ne,off:Se,css:pe,find:ed,is:function(A,t){return!!Qn(A,t,A,!1)},extend:Cy,throttle:id,closest:Qn,toggleClass:Ht,clone:sd,index:qt,nextTick:Vs,cancelNextTick:Al,detectDirection:gd,getChild:Ui},Be.get=function(n){return n[Pt]},Be.mount=function(){for(var n=arguments.length,A=new Array(n),t=0;t<n;t++)A[t]=arguments[t];A[0].constructor===Array&&(A=A[0]),A.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(Be.utils=En(En({},Be.utils),i.utils)),So.mount(i)})},Be.create=function(n,A){return new Be(n,A)},Be.version=dy;var rt=[],Lo,el,tl=!1,nl,il,Ar,Go;function Ly(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var A in this)A.charAt(0)==="_"&&typeof this[A]=="function"&&(this[A]=this[A].bind(this))}return n.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?Ne(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ne(document,"pointermove",this._handleFallbackAutoScroll):i.touches?Ne(document,"touchmove",this._handleFallbackAutoScroll):Ne(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),pd(),er(),Ey()},nulling:function(){Ar=el=Lo=tl=Go=nl=il=null,rt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var Q=this,w=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,b=document.elementFromPoint(w,a);if(Ar=t,i||this.options.forceAutoScrollFallback||ko||Mn||_o){ol(t,this.options,b,i);var S=Jn(b,!0);tl&&(!Go||w!==nl||a!==il)&&(Go&&pd(),Go=setInterval(function(){var f=Jn(document.elementFromPoint(w,a),!0);f!==S&&(S=f,er()),ol(t,Q.options,f,i)},10),nl=w,il=a)}else{if(!this.options.bubbleScroll||Jn(b,!0)===mn()){er();return}ol(t,this.options,Jn(b,!1),!1)}}},kn(n,{pluginName:"scroll",initializeByDefault:!0})}function er(){rt.forEach(function(n){clearInterval(n.pid)}),rt=[]}function pd(){clearInterval(Go)}var ol=id(function(n,A,t,i){if(A.scroll){var Q=(n.touches?n.touches[0]:n).clientX,w=(n.touches?n.touches[0]:n).clientY,a=A.scrollSensitivity,b=A.scrollSpeed,S=mn(),f=!1,N;el!==t&&(el=t,er(),Lo=A.scroll,N=A.scrollFn,Lo===!0&&(Lo=Jn(t,!0)));var G=0,K=Lo;do{var Z=K,T=lt(Z),P=T.top,_=T.bottom,m=T.left,L=T.right,k=T.width,y=T.height,C=void 0,u=void 0,p=Z.scrollWidth,l=Z.scrollHeight,g=pe(Z),r=Z.scrollLeft,d=Z.scrollTop;Z===S?(C=k<p&&(g.overflowX==="auto"||g.overflowX==="scroll"||g.overflowX==="visible"),u=y<l&&(g.overflowY==="auto"||g.overflowY==="scroll"||g.overflowY==="visible")):(C=k<p&&(g.overflowX==="auto"||g.overflowX==="scroll"),u=y<l&&(g.overflowY==="auto"||g.overflowY==="scroll"));var h=C&&(Math.abs(L-Q)<=a&&r+k<p)-(Math.abs(m-Q)<=a&&!!r),s=u&&(Math.abs(_-w)<=a&&d+y<l)-(Math.abs(P-w)<=a&&!!d);if(!rt[G])for(var o=0;o<=G;o++)rt[o]||(rt[o]={});(rt[G].vx!=h||rt[G].vy!=s||rt[G].el!==Z)&&(rt[G].el=Z,rt[G].vx=h,rt[G].vy=s,clearInterval(rt[G].pid),(h!=0||s!=0)&&(f=!0,rt[G].pid=setInterval((function(){i&&this.layer===0&&Be.active._onTouchMove(Ar);var B=rt[this.layer].vy?rt[this.layer].vy*b:0,E=rt[this.layer].vx?rt[this.layer].vx*b:0;typeof N=="function"&&N.call(Be.dragged.parentNode[Pt],E,B,n,Ar,rt[this.layer].el)!=="continue"||od(rt[this.layer].el,E,B)}).bind({layer:G}),24))),G++}while(A.bubbleScroll&&K!==S&&(K=Jn(K,!1)));tl=f}},30),Bd=function(A){var t=A.originalEvent,i=A.putSortable,Q=A.dragEl,w=A.activeSortable,a=A.dispatchSortableEvent,b=A.hideGhostForTarget,S=A.unhideGhostForTarget;if(t){var f=i||w;b();var N=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,G=document.elementFromPoint(N.clientX,N.clientY);S(),f&&!f.el.contains(G)&&(a("spill"),this.onSpill({dragEl:Q,putSortable:i}))}};function sl(){}sl.prototype={startIndex:null,dragStart:function(A){var t=A.oldDraggableIndex;this.startIndex=t},onSpill:function(A){var t=A.dragEl,i=A.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var Q=Ui(this.sortable.el,this.startIndex,this.options);Q?this.sortable.el.insertBefore(t,Q):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:Bd},kn(sl,{pluginName:"revertOnSpill"});function rl(){}rl.prototype={onSpill:function(A){var t=A.dragEl,i=A.putSortable,Q=i||this.sortable;Q.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),Q.animateAll()},drop:Bd},kn(rl,{pluginName:"removeOnSpill"}),Be.mount(new Ly),Be.mount(rl,sl);var Gy=Object.defineProperty,Hy=Object.defineProperties,Py=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,Ky=Object.prototype.hasOwnProperty,Uy=Object.prototype.propertyIsEnumerable,Ed=(n,A,t)=>A in n?Gy(n,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[A]=t,Wn=(n,A)=>{for(var t in A||(A={}))Ky.call(A,t)&&Ed(n,t,A[t]);if(Cd)for(var t of Cd(A))Uy.call(A,t)&&Ed(n,t,A[t]);return n},tr=(n,A)=>Hy(n,Py(A));function al(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function Qd(n,A,t){const i=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(A,i)}function Ty(){return typeof window<"u"?window.console:global.console}const Yy=Ty();function Oy(n){const A=Object.create(null);return function(i){return A[i]||(A[i]=n(i))}}const $y=/-(\w)/g,Jy=Oy(n=>n.replace($y,(A,t)=>t.toUpperCase())),md=["Start","Add","Remove","Update","End"],Id=["Choose","Unchoose","Sort","Filter","Clone"],fd=["Move"],Zy=[fd,md,Id].flatMap(n=>n).map(n=>`on${n}`),ll={manage:fd,manageAndEmit:md,emit:Id};function zy(n){return Zy.indexOf(n)!==-1}const Wy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function jy(n){return Wy.includes(n)}function qy(n){return["transition-group","TransitionGroup"].includes(n)}function wd(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function Dd(n){return n.reduce((A,[t,i])=>(A[t]=i,A),{})}function Xy({$attrs:n,componentData:A={}}){const t=Dd(Object.entries(n).filter(([i,Q])=>wd(i)));return Wn(Wn({},t),A)}function Vy({$attrs:n,callBackBuilder:A}){const t=Dd(bd(n));Object.entries(A).forEach(([Q,w])=>{ll[Q].forEach(a=>{t[`on${a}`]=w(a)})});const i=`[data-draggable]${t.draggable||""}`;return tr(Wn({},t),{draggable:i})}function bd(n){return Object.entries(n).filter(([A,t])=>!wd(A)).map(([A,t])=>[Jy(A),t]).filter(([A,t])=>!zy(A))}const yd=n=>{const A=n.el||Array.isArray(n.children)&&n.children[0].el.parentNode;return A||console.error("使用 transition-group , 需要在slot中template内至少2层html标签"),A||{}},Av=(n,A)=>n.__draggable_context=A,vd=n=>n.__draggable_context;class ev{constructor({nodes:{header:A,default:t,footer:i},root:Q,realList:w}){this.defaultNodes=t,this.children=[...A,...t,...i],this.externalComponent=Q.externalComponent,this.rootTransition=Q.transition,this.tag=Q.tag,this.realList=w}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(A,t){const{tag:i,children:Q,_isRootComponent:w}=this;return A(i,t,w?{default:()=>Q}:Q)}updated(){const{defaultNodes:A,realList:t}=this;A.forEach((i,Q)=>{Av(yd(i),{element:t[Q],index:Q})})}getUnderlyingVm(A){return vd(A)}getVmIndexFromDomIndex(A,t){const{defaultNodes:i}=this,{length:Q}=i,w=t.children,a=w.item(A);if(a===null)return Q;const b=vd(a);if(b)return b.index;if(Q===0)return 0;const S=yd(i[0]),f=[...w].findIndex(N=>N===S);return A<f?0:Q}}function tv(n,A){const t=n[A];return t?t():[]}function nv({$slots:n,realList:A,getKey:t}){const i=A||[],[Q,w]=["header","footer"].map(S=>tv(n,S)),{item:a}=n;if(!a)throw new Error("draggable element must have an item slot");const b=i.flatMap((S,f)=>a({element:S,index:f}).map(N=>(N.key=t(S),N.props=tr(Wn({},N.props||{}),{"data-draggable":!0}),N)));if(b.length!==i.length)throw new Error("Item slot must have only one child");return{header:Q,footer:w,default:b}}function iv(n){const A=qy(n),t=!jy(n)&&!A;return{transition:A,externalComponent:t,tag:t?e.resolveComponent(n):A?e.TransitionGroup:n}}function ov({$slots:n,tag:A,realList:t,getKey:i}){const Q=nv({$slots:n,realList:t,getKey:i}),w=iv(A);return new ev({nodes:Q,root:w,realList:t})}function kd(n,A){e.nextTick(()=>this.$emit(n.toLowerCase(),A))}function _d(n){return(A,t)=>{if(this.realList!==null)return this[`onDrag${n}`](A,t)}}function sv(n){const A=_d.call(this,n);return(t,i)=>{A.call(this,t,i),kd.call(this,n,t)}}let cl=null;const rv={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},av=["update:modelValue","change",...[...ll.manageAndEmit,...ll.emit].map(n=>n.toLowerCase())],Md=e.defineComponent({name:"draggable",inheritAttrs:!1,props:rv,emits:av,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:A,tag:t,componentData:i,realList:Q,getKey:w}=this,a=ov({$slots:n,tag:t,realList:Q,getKey:w});this.componentStructure=a;const b=Xy({$attrs:A,componentData:i});return a.render(e.h,b)}catch(n){return this.error=!0,e.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&Yy.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:A,componentStructure:t}=this;t.updated();const i=Vy({$attrs:n,callBackBuilder:{manageAndEmit:w=>sv.call(this,w),emit:w=>kd.bind(this,w),manage:w=>_d.call(this,w)}}),Q=A.nodeType===1?A:A.parentElement;this._sortable=new Be(Q,i),this.targetDomElement=Q,Q.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:A=>A[n]}},watch:{$attrs:{handler(n){const{_sortable:A}=this;A&&bd(n).forEach(([t,i])=>{A.option(t,i)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){e.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const A=[...this.modelValue];n(A),this.$emit("update:modelValue",A)},spliceList(){const n=A=>A.splice(...arguments);this.alterList(n)},updatePosition(n,A){const t=i=>i.splice(A,0,i.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:A}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const i=t.realList,Q={list:i,component:t};if(n!==A&&i){const w=t.getUnderlyingVm(A)||{};return Wn(Wn({},w),Q)}return Q},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),cl=n.item},onDragAdd(n){const A=n.item._underlying_vm_;if(A===void 0)return;al(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,A);const i={element:A,newIndex:t};this.emitChanges({added:i})},onDragRemove(n){if(Qd(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){al(n.clone);return}const{index:A,element:t}=this.context;this.spliceList(A,1);const i={element:t,oldIndex:A};this.emitChanges({removed:i})},onDragUpdate(n){al(n.item),Qd(n.from,n.item,n.oldIndex);const A=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(A,t);const i={element:this.context.element,oldIndex:A,newIndex:t};this.emitChanges({moved:i})},computeFutureIndex(n,A){if(!n.element)return 0;const t=[...A.to.children].filter(a=>a.style.display!=="none"),i=t.indexOf(A.related),Q=n.component.getVmIndexFromDomIndex(i);return t.indexOf(cl)!==-1||!A.willInsertAfter?Q:Q+1},onDragMove(n,A){const{move:t,realList:i}=this;if(!t||!i)return!0;const Q=this.getRelatedContextFromMoveEvent(n),w=this.computeFutureIndex(Q,n),a=tr(Wn({},this.context),{futureIndex:w}),b=tr(Wn({},n),{relatedContext:Q,draggedContext:a});return t(b,A)},onDragEnd(){cl=null}}}),Ji=e.defineComponent({__name:"FormItem",props:{label:{},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},children:{},hidden:{type:[Boolean,String]},hideLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},change:{},dialog:{type:Boolean},width:{}},setup(n){const A=n,t=ut(),i=Fi(),Q=e.reactive({visible:!1,title:""}),w=()=>{Q.visible=!0,Q.title=A.label},a=e.computed({get(){return ns(t.formValues,A.name)},set(G){const K=_i(t.formValues,A.name,G);t.updateFormValues(K)}}),b=e.computed(()=>{const{rules:G,required:K,component:Z}=A,T=[];if(K&&T.push({required:!0,trigger:"blur",message:"Required"}),G){const P=G.map(_=>{const{type:m,message:L,trigger:k,customReg:y,templateExp:C}=_,u={message:L,trigger:k};return["email","url"].includes(m)?{...u,type:m}:m==="custom"&&y?{...u,pattern:aB(y)}:rB(m)?{...u,pattern:m}:m==="template"?{...u,validator:()=>C}:{}});return[...T,...P]}if(Z==="VerifyCode"){const P={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...T,P]}return T}),S=e.computed(()=>{const G=i[A.component]||{};return G.modelName||(G.modelName="modelValue"),G}),f=e.computed(()=>{const G={name:A.name,...A.props};return A.children&&(G.children=A.children),G}),N=G=>G.replace(/&nbsp;/g," ");return e.onBeforeMount(()=>{if(a.value===void 0&&A.initialValue!==void 0&&!t.design){const G=_i(t.initialValues,A.name,A.initialValue);t.updateInitialValues(G),a.value=A.initialValue}}),e.watch(a,(G,K)=>{const Z=A.change,T=Oe.isEqual(G,K);if(!Z||T)return;let P=Oe.cloneDeep(t.formValues);Z.forEach(({target:_,value:m,condition:L})=>{if(L!==!1){if(_.includes(".*.")){const k=_.split(".*."),y=k.pop(),C=k.join("."),u=ns(t.formValues,C);Oe.isArray(u)&&(P=_i(P,C,u.map(p=>({...p,[y]:m}))));return}P=_i(P,_,m)}}),t.updateFormValues(P)},{immediate:!0}),(G,K)=>{var m;const Z=e.resolveComponent("el-tooltip"),T=e.resolveComponent("el-dialog"),P=e.resolveComponent("el-button"),_=e.resolveComponent("el-form-item");return e.unref(t).design||!G.hidden?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.value.type==="layout"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.mergeProps({key:0},f.value,{style:{minWidth:0}}),null,16)):S.value.type==="assist"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.normalizeProps(e.mergeProps({key:1},f.value)),null,16)):(e.openBlock(),e.createBlock(_,{class:e.normalizeClass([e.unref(ke)("form-item"),A.class,`${G.component}-${G.name}`,{readMode:(m=A.props)==null?void 0:m.read}]),style:e.normalizeStyle(G.style),key:G.name,prop:G.name,"label-width":G.hideLabel?"0":e.unref(t).schema.labelWidth,rules:b.value},e.createSlots({default:e.withCtx(()=>[G.dialog?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{modelValue:Q.visible,"onUpdate:modelValue":K[1]||(K[1]=L=>Q.visible=L),title:Q.title,width:"70%",center:"","destroy-on-close":""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.mergeProps({size:e.unref(t).schema.size},f.value,{disabled:e.unref(t).schema.disabled,[S.value.modelName]:a.value,["onUpdate:"+S.value.modelName]:K[0]||(K[0]=L=>a.value=L)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),e.createVNode(P,{type:"primary",plain:"",onClick:w},{default:e.withCtx(()=>K[3]||(K[3]=[e.createTextVNode("配置")])),_:1})],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.mergeProps({key:1,size:e.unref(t).schema.size,disabled:e.unref(t).schema.disabled},e.unref(zt)(f.value,e.unref(t).context),{[S.value.modelName]:a.value,["onUpdate:"+S.value.modelName]:K[2]||(K[2]=L=>a.value=L)}),null,16,["size","disabled"]))]),_:2},[G.hideLabel?void 0:{name:"label",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(ke)("form-item-label"),G.label&&`${G.name}-label`])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(t).schema.labelBold&&"font-weight: bold")},e.toDisplayString(N(G.label)),5),G.help?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ke)("form-item-label-ico"))},[e.createVNode(Z,{effect:"dark",content:G.help},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(te),{name:"help"})])]),_:1},8,["content"])],2)):e.createCommentVNode("",!0),e.unref(t).schema.labelSuffix?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(ke)("form-item-label-suffix"))},e.toDisplayString(e.unref(t).schema.labelSuffix),3)):e.createCommentVNode("",!0)],2)]),key:"0"}]),1032,["class","style","prop","label-width","rules"]))],64)):e.createCommentVNode("",!0)}}}),lv={key:0,class:"actions-lt"},cv={class:"canvas-move",size:"small",type:"primary"},gv={key:1,class:"hidden-ico"},uv={key:2,class:"actions-rb"},dv=["onClick"],hv={key:3,class:"layout-title"},pv=e.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const A=n,t=Wt(),Q=Fi()[A.data.component],w=e.computed(()=>{var K;return{[ke("canvas-item")]:!0,active:A.data.designKey===((K=t.current)==null?void 0:K.designKey),hover:A.data.designKey===t.hoverKey,mask:A.data.designKey===t.hoverKey&&!A.data.children,collapse:f.value}}),a=()=>{A.data.designKey&&t.updateHoverKey(A.data.designKey)},b=()=>{t.updateHoverKey("")},S=K=>{t.updateCurrent(K),t.rightTab="attr"},f=e.ref(!1),N=()=>{f.value=!f.value},G=[{icon:"copy",handle:K=>{const Z=Pg(t.list,K.designKey);t.updateList(Z)}},{icon:"delete",bg:"var(--el-color-danger)",handle:K=>{const Z=bc(t.list,T=>T.designKey!==K.designKey);t.updateList(Z)}}];return(K,Z)=>{var T,P;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value),onClick:Z[0]||(Z[0]=e.withModifiers(_=>S(K.data),["stop"])),onMousemove:e.withModifiers(a,["stop"]),onMouseleave:e.withModifiers(b,["stop"])},[K.data.designKey===((T=e.unref(t).current)==null?void 0:T.designKey)?(e.openBlock(),e.createElementBlock("div",lv,[e.createElementVNode("div",cv,[e.createVNode(e.unref(te),{name:"move"})]),e.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:N},[e.createVNode(e.unref(te),{name:"select"})])])):e.createCommentVNode("",!0),K.data.hidden?(e.openBlock(),e.createElementBlock("div",gv,[e.createVNode(e.unref(te),{name:"hidden"})])):e.createCommentVNode("",!0),K.data.designKey===((P=e.unref(t).current)==null?void 0:P.designKey)?(e.openBlock(),e.createElementBlock("ul",uv,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(G,({icon:_,handle:m,bg:L})=>e.createElementVNode("li",{class:"actions-rb-item",onClick:e.withModifiers(k=>m(K.data),["stop"]),key:_,style:e.normalizeStyle({backgroundColor:L})},[e.createVNode(e.unref(te),{name:_},null,8,["name"])],12,dv)),64))])):e.createCommentVNode("",!0),e.unref(Q).lbTitle?(e.openBlock(),e.createElementBlock("div",hv,e.toDisplayString(e.unref(Q).title),1)):e.createCommentVNode("",!0),e.createVNode(Ji,e.mergeProps(K.data,{props:K.data.props}),null,16,["props"])],34)}}}),gl=e.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const A=n,t=Wt(),i=Q=>{const w=Q.item._underlying_vm_;t.updateCurrent(Ca(t.list,w.designKey)),t.hoverKey=w.designKey,t.rightTab="attr",t.handleEmit("add",w)};return(Q,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(ke)("canvas-group")),style:e.normalizeStyle({overflow:Q.list.length?"auto":"hidden"})},[Q.list.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ke)("canvas-group-empty")),style:e.normalizeStyle({fontSize:Q.emptySize+"px"})},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("canvas-group-empty-ico"))},[e.createVNode(e.unref(te),{name:"add"})],2),e.createElementVNode("p",null,e.toDisplayString(Q.emptyText),1)],6)),e.createVNode(e.unref(Md),{list:Q.list,group:"formDesign",itemKey:"name","ghost-class":e.unref(ke)("canvas-group-ghost"),class:e.normalizeClass([e.unref(ke)("canvas-group-draggable"),A.class]),style:e.normalizeStyle(Q.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:e.withCtx(({element:a})=>[a.designKey?(e.openBlock(),e.createBlock(pv,{key:0,data:a},null,8,["data"])):e.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),Bv={key:1},Sn=e.defineComponent({__name:"FormItemGroup",props:{list:{}},setup(n){const A=ut();return(t,i)=>e.unref(A).design?(e.openBlock(),e.createBlock(gl,{key:0,list:t.list},null,8,["list"])):(e.openBlock(),e.createElementBlock("div",Bv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,Q=>(e.openBlock(),e.createBlock(Ji,e.mergeProps({key:Q.name,ref_for:!0},Q),null,16))),128))]))}}),Cv={key:0,class:"btn-render-wrapper"},Zi=JA(e.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const A=e.inject("ruleModule",void 0),t=e.inject("pageMethodMap",{}),i=e.ref({}),Q=async w=>{if(w.onClick&&A){try{i.value[w.key]=!0,await A[w.onClick](t)}catch(a){console.error(a)}i.value[w.key]=!1}};return(w,a)=>{const b=e.resolveComponent("el-button");return w.btns&&w.btns.length>0?(e.openBlock(),e.createElementBlock("div",Cv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.btns,S=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S.key},[S.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:0,onClick:f=>Q(S),disabled:S.disabled,type:S.type,text:S.isTextBtn,link:S.isLinkBtn,plain:S.isPlainBtn||S.type!=="primary",color:S.color,loading:i.value[S.key]},{default:e.withCtx(()=>[S.icon?(e.openBlock(),e.createBlock($e,{key:0,name:S.icon.name,color:S.icon.color,class:e.normalizeClass({"btn-icon":S.text||S.label})},null,8,["name","color","class"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(S.text||S.label),1)]),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading"]))],64))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d29b257a"]]),Ev={key:0,class:"dropdown-render-wrapper"},Qv=JA(e.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const A=e.inject("ruleModule",void 0),t=e.inject("pageMethodMap",{}),i=async(Q,w)=>{if(w.onClick&&A)try{await A[w.onClick](t,Q)}catch(a){console.error(a)}};return(Q,w)=>{const a=e.resolveComponent("el-button"),b=e.resolveComponent("el-dropdown-item"),S=e.resolveComponent("el-dropdown-menu"),f=e.resolveComponent("el-dropdown");return Q.dropdowns&&Q.dropdowns.length>0?(e.openBlock(),e.createElementBlock("div",Ev,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.dropdowns,N=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:N.key},[N.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:0,disabled:N.disabled},{dropdown:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.options,G=>(e.openBlock(),e.createBlock(b,{key:G.value,command:G.value,onClick:K=>i(G,N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(a,{plain:"",color:N.color},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(N.text),1),e.createVNode($e,{name:"icon-gongnengjixiajiantou"})]),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-37daa772"]]),Sd=n=>{let A=[];for(const t of n)t.component==="Table"&&t.name&&A.push(t.name),t.children&&Array.isArray(t.children)&&(A=A.concat(Sd(t.children)));return A},xd=n=>{var t;if(!(n!=null&&n.content))return[];let A=[];for(const i of n.content)i.type==="form"&&((t=i.schema)!=null&&t.items)&&(A=A.concat(Sd(i.schema.items)));return A},Nd=Symbol("RefManager"),mv=()=>{const n=new Map,A=new Map;function t(i){const Q=i.sort().join(","),w=A.get(Q);w&&w.resolve&&i.every(b=>n.has(b))&&(w.resolve(),w.resolve=null)}return{register:(i,Q)=>{n.set(i,Q);for(const[w]of A)t(w.split(","))},unregister:i=>{n.delete(i)},findRef:i=>n.get(i),waitForKeys:i=>{if(i.every(b=>n.has(b)))return Promise.resolve();const Q=i.sort().join(",");if(A.has(Q))return A.get(Q).promise;let w=null;const a=new Promise(b=>{w=b});return A.set(Q,{promise:a,resolve:w}),t(i),a}}},Iv=()=>{const n=mv();return e.provide(Nd,n),n},Fd=()=>{const n=e.inject(Nd);if(!n)throw new Error("RefManager not provided. Make sure to call provideRefManager first.");return n},fv=(n,A)=>{const t=Fd();return t.register(n,A),()=>{t.unregister(n)}},wv=["id"],Ut=e.defineComponent({__name:"index",props:e.mergeModels({schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean},read:{type:Boolean},pageRulePath:{}},{modelValue:{default:{}},modelModifiers:{},realValues:{default:{}},realValuesModifiers:{},schema:{default:e.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},schemaModifiers:{}}),emits:e.mergeModels(["finish","failed","reset"],["update:modelValue","update:realValues","update:schema"]),setup(n,{expose:A,emit:t}){const i=n,Q=e.inject("ruleMap",{}),w=e.inject("pageMethodMap",{}),a=e.computed(()=>i.schema.rulePath&&Q[i.schema.rulePath]?i.schema.rulePath:i.pageRulePath);a.value&&e.provide("ruleModule",Q[a.value]);const b=t,S=e.ref(),f=e.useModel(n,"modelValue"),N=e.useModel(n,"realValues"),G=(x,R,$)=>{$===void 0?f.value[x]=R:(N.value[x]=R,f.value[x]=$)},K=x=>f.value[x],Z=(x,R)=>{let $=E(P.value.items,x);$&&$.props&&($.props.disabled=!R)},T=(x,R)=>{let $=E(P.value.items,x);$&&($.hidden=!R)},P=e.useModel(n,"schema");if(P.value.onValuesChange){const x=e.ref(JSON.stringify(f.value));e.watch(()=>f.value,R=>{x.value=JSON.stringify(R)},{deep:!0}),e.watch(()=>x.value,(R,$)=>{const j=JSON.parse(R),J=JSON.parse($),q=Object.keys(j).filter(v=>JSON.stringify(j[v])!==JSON.stringify(J[v]))[0];if(!(!a.value||!P.value.onValuesChange))try{Q[a.value][P.value.onValuesChange](w,q,J[q],j[q])}catch(v){console.error(v)}})}const _=e.computed({get(){return i.design,P.value.items},set(x){P.value.items=x}}),m=e.reactive({}),L=e.ref({}),k=e.ref(!1),y=$n(),C=e.computed(()=>({...i.schemaContext,$values:f.value,$selectData:m,$locale:y.value})),u=Fd();e.onMounted(async()=>{var $,j;if(($=i.schema)!=null&&$.initialValues){const J=(j=i.schema)==null?void 0:j.initialValues;s(J),f.value=Oe.mergeWith(J,f.value,(Y,q)=>{if(Array.isArray(Y))return q})}await e.nextTick();const x=xd({content:[{type:"form",schema:P.value}]});if(await u.waitForKeys(x),!P.value||!P.value.onMounted||!a.value)return;const R=P.value.onMounted;try{Q[a.value][R](w)}catch(J){console.error(J)}}),e.onActivated(()=>{if(!P.value||!P.value.onActivated||!a.value)return;const x=P.value.onActivated;try{Q[a.value][x](w)}catch(R){console.error(R)}});const p=()=>{var x;return(x=S.value)==null?void 0:x.validate()},l=x=>{const R=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],$=j=>{j.forEach(J=>{R.includes(J.component)?J.props&&(J.props.disabled=x):J.children&&$(J.children)})};$(P.value.items)},g=()=>{var x;(x=p())==null||x.then(()=>{b("finish",f.value)}).catch(R=>{b("failed",R)})},r=x=>{if(b("reset"),x){let R=Oe.cloneDeep(f.value);x.forEach($=>{R=_i(R,$,ns(L.value,$))}),f.value=R}else f.value=Oe.cloneDeep(e.toRaw(L.value))},d=(x,R=!0)=>{R?Object.assign(f.value,x):f.value=x},h=(x,R)=>{m[x]=R},s=x=>{L.value={...x}},o=()=>L.value,B=x=>{k.value=x},E=(x,R)=>{for(const $ of x){if($.name===R)return $;if($.children&&$.children.length>0){const j=E($.children,R);if(j)return j}}return null},M=e.useTemplateRef("rootRef"),D=e.reactive({...e.toRefs(i),formValues:f,formRealValues:N,selectData:m,initialValues:L,context:C,vCodePass:k,updateFormValues:d,updateSelectData:h,updateInitialValues:s,getInitialValues:o,updateVCodePass:B,validate:p,resetFields:r,submit:g,setDisabled:l,findItemByName:E,setFieldEditSts:Z,setFieldVisibleSts:T,setFieldValue:G,getFieldValue:K,rootRef:M,type:"form"});return e.provide(Fg,D),A(D),(x,R)=>{const $=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:M,id:P.value.key},[P.value.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($,e.mergeProps({key:0,model:f.value,"label-position":P.value.labelPosition,size:P.value.size,"hide-required-asterisk":P.value.hideRequiredAsterisk,"scroll-to-error":P.value.scrollToError,"require-asterisk-position":"right",ref_key:"formRef",ref:S},x.$attrs,{onSubmit:R[0]||(R[0]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default"),e.createVNode(e.unref(Sn),{list:_.value,"empty-text":e.unref(y).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"]),e.createVNode(Gw)]),_:3},16,["model","label-position","size","hide-required-asterisk","scroll-to-error"]))],8,wv)}}}),Dv=({elements:n,lang:A,omits:t})=>{const i=a=>Object.values(n).filter(b=>b.type===a&&!t.includes(b.component)).sort((b,S)=>b.order-S.order).map(b=>({...b,title:A==="zh"?b.title:b.component})),Q=Lg[A];return[{title:Q.menus.basicTitle,children:i("basic")},{title:Q.menus.highTitle,children:i("high")},{title:Q.menus.layoutTitle,children:i("layout")},{title:Q.menus.assistTitle,children:i("assist")}]},bv=e.defineComponent({__name:"index",setup(n){var N;const A=e.ref(!1),t=Wt(),i=Fi(),Q=$n(),w=Ea(),a=(N=t.templates)!=null&&N.length?t.templates:DC,b=e.computed(()=>Dv({elements:i,omits:t.omitMenus||[],lang:w.value})),S=G=>{t.updateSchema(G)},f=G=>{const K={component:G.component,designKey:`design-${Yn(4)}`,name:`form-${Yn(4)}`};return G.type==="layout"&&(K.children=[]),K};return(G,K)=>{const Z=e.resolveComponent("el-button"),T=e.resolveComponent("el-space"),P=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(ke)("form-design-left")),style:e.normalizeStyle({overflow:A.value?"hidden":"auto"})},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("template"))},[e.createVNode(Z,{class:e.normalizeClass(e.unref(ke)("template-button")),size:"small",onClick:K[0]||(K[0]=_=>A.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Q).menus.useTemplateBtn),1)]),_:1},8,["class"]),e.createVNode(P,{modelValue:A.value,"onUpdate:modelValue":K[1]||(K[1]=_=>A.value=_),title:"模板列表",size:"70%",class:e.normalizeClass(e.unref(ke)("template-drawer")),"append-to-body":!1},{default:e.withCtx(()=>[e.createVNode(T,{wrap:"",direction:"vertical",alignment:"start"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({name:_,schema:m})=>(e.openBlock(),e.createBlock(Z,{key:_,onClick:L=>S(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","class"])],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,({title:_,children:m})=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(e.unref(ke)("menu"))},[e.createElementVNode("h4",{class:e.normalizeClass(e.unref(ke)("menu-title"))},e.toDisplayString(_),3),e.createVNode(e.unref(Md),{class:e.normalizeClass(e.unref(ke)("menu-list")),list:m,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":e.unref(ke)("menu-list-ghost"),"drag-class":e.unref(ke)("menu-list-drag"),"fallback-class":e.unref(ke)("menu-list-fallback"),"item-key":"designKey",clone:f},{item:e.withCtx(({element:L})=>[e.createElementVNode("li",{class:e.normalizeClass(e.unref(ke)("menu-list-item"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("menu-list-item-ico"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L.icon),{class:"ico-content"}))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("menu-list-item-name")),style:e.normalizeStyle({fontSize:e.unref(w)==="zh"?"12px":"10px"})},e.toDisplayString(L.title),7)],2)]),_:2},1032,["class","list","ghost-class","drag-class","fallback-class"])],2))),128))],6)}}}),yv=n=>`<template>
96
+ */function ju(n,A){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);A&&(i=i.filter(function(Q){return Object.getOwnPropertyDescriptor(n,Q).enumerable})),t.push.apply(t,i)}return t}function En(n){for(var A=1;A<arguments.length;A++){var t=arguments[A]!=null?arguments[A]:{};A%2?ju(Object(t),!0).forEach(function(i){cy(n,i,t[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ju(Object(t)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(t,i))})}return n}function Us(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Us=function(A){return typeof A}:Us=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},Us(n)}function cy(n,A,t){return A in n?Object.defineProperty(n,A,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[A]=t,n}function kn(){return kn=Object.assign||function(n){for(var A=1;A<arguments.length;A++){var t=arguments[A];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},kn.apply(this,arguments)}function gy(n,A){if(n==null)return{};var t={},i=Object.keys(n),Q,w;for(w=0;w<i.length;w++)Q=i[w],!(A.indexOf(Q)>=0)&&(t[Q]=n[Q]);return t}function uy(n,A){if(n==null)return{};var t=gy(n,A),i,Q;if(Object.getOwnPropertySymbols){var w=Object.getOwnPropertySymbols(n);for(Q=0;Q<w.length;Q++)i=w[Q],!(A.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(n,i)&&(t[i]=n[i])}return t}var dy="1.14.0";function _n(n){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(n)}var Mn=_n(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ko=_n(/Edge/i),qu=_n(/firefox/i),_o=_n(/safari/i)&&!_n(/chrome/i)&&!_n(/android/i),Xu=_n(/iP(ad|od|hone)/i),hy=_n(/chrome/i)&&_n(/android/i),Vu={capture:!1,passive:!1};function Ne(n,A,t){n.addEventListener(A,t,!Mn&&Vu)}function Se(n,A,t){n.removeEventListener(A,t,!Mn&&Vu)}function Ts(n,A){if(A){if(A[0]===">"&&(A=A.substring(1)),n)try{if(n.matches)return n.matches(A);if(n.msMatchesSelector)return n.msMatchesSelector(A);if(n.webkitMatchesSelector)return n.webkitMatchesSelector(A)}catch{return!1}return!1}}function py(n){return n.host&&n!==document&&n.host.nodeType?n.host:n.parentNode}function Qn(n,A,t,i){if(n){t=t||document;do{if(A!=null&&(A[0]===">"?n.parentNode===t&&Ts(n,A):Ts(n,A))||i&&n===t)return n;if(n===t)break}while(n=py(n))}return null}var Ad=/\s+/g;function Ht(n,A,t){if(n&&A)if(n.classList)n.classList[t?"add":"remove"](A);else{var i=(" "+n.className+" ").replace(Ad," ").replace(" "+A+" "," ");n.className=(i+(t?" "+A:"")).replace(Ad," ")}}function pe(n,A,t){var i=n&&n.style;if(i){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(n,""):n.currentStyle&&(t=n.currentStyle),A===void 0?t:t[A];!(A in i)&&A.indexOf("webkit")===-1&&(A="-webkit-"+A),i[A]=t+(typeof t=="string"?"":"px")}}function Ki(n,A){var t="";if(typeof n=="string")t=n;else do{var i=pe(n,"transform");i&&i!=="none"&&(t=i+" "+t)}while(!A&&(n=n.parentNode));var Q=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return Q&&new Q(t)}function ed(n,A,t){if(n){var i=n.getElementsByTagName(A),Q=0,w=i.length;if(t)for(;Q<w;Q++)t(i[Q],Q);return i}return[]}function mn(){var n=document.scrollingElement;return n||document.documentElement}function lt(n,A,t,i,Q){if(!(!n.getBoundingClientRect&&n!==window)){var w,a,b,S,f,N,G;if(n!==window&&n.parentNode&&n!==mn()?(w=n.getBoundingClientRect(),a=w.top,b=w.left,S=w.bottom,f=w.right,N=w.height,G=w.width):(a=0,b=0,S=window.innerHeight,f=window.innerWidth,N=window.innerHeight,G=window.innerWidth),(A||t)&&n!==window&&(Q=Q||n.parentNode,!Mn))do if(Q&&Q.getBoundingClientRect&&(pe(Q,"transform")!=="none"||t&&pe(Q,"position")!=="static")){var K=Q.getBoundingClientRect();a-=K.top+parseInt(pe(Q,"border-top-width")),b-=K.left+parseInt(pe(Q,"border-left-width")),S=a+w.height,f=b+w.width;break}while(Q=Q.parentNode);if(i&&n!==window){var Z=Ki(Q||n),T=Z&&Z.a,P=Z&&Z.d;Z&&(a/=P,b/=T,G/=T,N/=P,S=a+N,f=b+G)}return{top:a,left:b,bottom:S,right:f,width:G,height:N}}}function td(n,A,t){for(var i=Jn(n,!0),Q=lt(n)[A];i;){var w=lt(i)[t],a=void 0;if(a=Q>=w,!a)return i;if(i===mn())break;i=Jn(i,!1)}return!1}function Ui(n,A,t,i){for(var Q=0,w=0,a=n.children;w<a.length;){if(a[w].style.display!=="none"&&a[w]!==Be.ghost&&(i||a[w]!==Be.dragged)&&Qn(a[w],t.draggable,n,!1)){if(Q===A)return a[w];Q++}w++}return null}function Ja(n,A){for(var t=n.lastElementChild;t&&(t===Be.ghost||pe(t,"display")==="none"||A&&!Ts(t,A));)t=t.previousElementSibling;return t||null}function qt(n,A){var t=0;if(!n||!n.parentNode)return-1;for(;n=n.previousElementSibling;)n.nodeName.toUpperCase()!=="TEMPLATE"&&n!==Be.clone&&(!A||Ts(n,A))&&t++;return t}function nd(n){var A=0,t=0,i=mn();if(n)do{var Q=Ki(n),w=Q.a,a=Q.d;A+=n.scrollLeft*w,t+=n.scrollTop*a}while(n!==i&&(n=n.parentNode));return[A,t]}function By(n,A){for(var t in n)if(n.hasOwnProperty(t)){for(var i in A)if(A.hasOwnProperty(i)&&A[i]===n[t][i])return Number(t)}return-1}function Jn(n,A){if(!n||!n.getBoundingClientRect)return mn();var t=n,i=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var Q=pe(t);if(t.clientWidth<t.scrollWidth&&(Q.overflowX=="auto"||Q.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(Q.overflowY=="auto"||Q.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return mn();if(i||A)return t;i=!0}}while(t=t.parentNode);return mn()}function Cy(n,A){if(n&&A)for(var t in A)A.hasOwnProperty(t)&&(n[t]=A[t]);return n}function Za(n,A){return Math.round(n.top)===Math.round(A.top)&&Math.round(n.left)===Math.round(A.left)&&Math.round(n.height)===Math.round(A.height)&&Math.round(n.width)===Math.round(A.width)}var Mo;function id(n,A){return function(){if(!Mo){var t=arguments,i=this;t.length===1?n.call(i,t[0]):n.apply(i,t),Mo=setTimeout(function(){Mo=void 0},A)}}}function Ey(){clearTimeout(Mo),Mo=void 0}function od(n,A,t){n.scrollLeft+=A,n.scrollTop+=t}function sd(n){var A=window.Polymer,t=window.jQuery||window.Zepto;return A&&A.dom?A.dom(n).cloneNode(!0):t?t(n).clone(!0)[0]:n.cloneNode(!0)}var Pt="Sortable"+new Date().getTime();function Qy(){var n=[],A;return{captureAnimationState:function(){if(n=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(Q){if(!(pe(Q,"display")==="none"||Q===Be.ghost)){n.push({target:Q,rect:lt(Q)});var w=En({},n[n.length-1].rect);if(Q.thisAnimationDuration){var a=Ki(Q,!0);a&&(w.top-=a.f,w.left-=a.e)}Q.fromRect=w}})}},addAnimationState:function(i){n.push(i)},removeAnimationState:function(i){n.splice(By(n,{target:i}),1)},animateAll:function(i){var Q=this;if(!this.options.animation){clearTimeout(A),typeof i=="function"&&i();return}var w=!1,a=0;n.forEach(function(b){var S=0,f=b.target,N=f.fromRect,G=lt(f),K=f.prevFromRect,Z=f.prevToRect,T=b.rect,P=Ki(f,!0);P&&(G.top-=P.f,G.left-=P.e),f.toRect=G,f.thisAnimationDuration&&Za(K,G)&&!Za(N,G)&&(T.top-G.top)/(T.left-G.left)===(N.top-G.top)/(N.left-G.left)&&(S=Iy(T,K,Z,Q.options)),Za(G,N)||(f.prevFromRect=N,f.prevToRect=G,S||(S=Q.options.animation),Q.animate(f,T,G,S)),S&&(w=!0,a=Math.max(a,S),clearTimeout(f.animationResetTimer),f.animationResetTimer=setTimeout(function(){f.animationTime=0,f.prevFromRect=null,f.fromRect=null,f.prevToRect=null,f.thisAnimationDuration=null},S),f.thisAnimationDuration=S)}),clearTimeout(A),w?A=setTimeout(function(){typeof i=="function"&&i()},a):typeof i=="function"&&i(),n=[]},animate:function(i,Q,w,a){if(a){pe(i,"transition",""),pe(i,"transform","");var b=Ki(this.el),S=b&&b.a,f=b&&b.d,N=(Q.left-w.left)/(S||1),G=(Q.top-w.top)/(f||1);i.animatingX=!!N,i.animatingY=!!G,pe(i,"transform","translate3d("+N+"px,"+G+"px,0)"),this.forRepaintDummy=my(i),pe(i,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),pe(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){pe(i,"transition",""),pe(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},a)}}}}function my(n){return n.offsetWidth}function Iy(n,A,t,i){return Math.sqrt(Math.pow(A.top-n.top,2)+Math.pow(A.left-n.left,2))/Math.sqrt(Math.pow(A.top-t.top,2)+Math.pow(A.left-t.left,2))*i.animation}var Ti=[],za={initializeByDefault:!0},So={mount:function(A){for(var t in za)za.hasOwnProperty(t)&&!(t in A)&&(A[t]=za[t]);Ti.forEach(function(i){if(i.pluginName===A.pluginName)throw"Sortable: Cannot mount plugin ".concat(A.pluginName," more than once")}),Ti.push(A)},pluginEvent:function(A,t,i){var Q=this;this.eventCanceled=!1,i.cancel=function(){Q.eventCanceled=!0};var w=A+"Global";Ti.forEach(function(a){t[a.pluginName]&&(t[a.pluginName][w]&&t[a.pluginName][w](En({sortable:t},i)),t.options[a.pluginName]&&t[a.pluginName][A]&&t[a.pluginName][A](En({sortable:t},i)))})},initializePlugins:function(A,t,i,Q){Ti.forEach(function(b){var S=b.pluginName;if(!(!A.options[S]&&!b.initializeByDefault)){var f=new b(A,t,A.options);f.sortable=A,f.options=A.options,A[S]=f,kn(i,f.defaults)}});for(var w in A.options)if(A.options.hasOwnProperty(w)){var a=this.modifyOption(A,w,A.options[w]);typeof a<"u"&&(A.options[w]=a)}},getEventProperties:function(A,t){var i={};return Ti.forEach(function(Q){typeof Q.eventProperties=="function"&&kn(i,Q.eventProperties.call(t[Q.pluginName],A))}),i},modifyOption:function(A,t,i){var Q;return Ti.forEach(function(w){A[w.pluginName]&&w.optionListeners&&typeof w.optionListeners[t]=="function"&&(Q=w.optionListeners[t].call(A[w.pluginName],i))}),Q}};function fy(n){var A=n.sortable,t=n.rootEl,i=n.name,Q=n.targetEl,w=n.cloneEl,a=n.toEl,b=n.fromEl,S=n.oldIndex,f=n.newIndex,N=n.oldDraggableIndex,G=n.newDraggableIndex,K=n.originalEvent,Z=n.putSortable,T=n.extraEventProperties;if(A=A||t&&t[Pt],!!A){var P,_=A.options,m="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Mn&&!ko?P=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(P=document.createEvent("Event"),P.initEvent(i,!0,!0)),P.to=a||t,P.from=b||t,P.item=Q||t,P.clone=w,P.oldIndex=S,P.newIndex=f,P.oldDraggableIndex=N,P.newDraggableIndex=G,P.originalEvent=K,P.pullMode=Z?Z.lastPutMode:void 0;var L=En(En({},T),So.getEventProperties(i,A));for(var k in L)P[k]=L[k];t&&t.dispatchEvent(P),_[m]&&_[m].call(A,P)}}var wy=["evt"],St=function(A,t){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Q=i.evt,w=uy(i,wy);So.pluginEvent.bind(Be)(A,t,En({dragEl:qA,parentEl:Ve,ghostEl:fe,rootEl:ze,nextEl:hi,lastDownEl:Ys,cloneEl:At,cloneHidden:Zn,dragStarted:No,putSortable:Bt,activeSortable:Be.active,originalEvent:Q,oldIndex:Yi,oldDraggableIndex:xo,newIndex:Kt,newDraggableIndex:zn,hideGhostForTarget:dd,unhideGhostForTarget:hd,cloneNowHidden:function(){Zn=!0},cloneNowShown:function(){Zn=!1},dispatchSortableEvent:function(b){Dt({sortable:t,name:b,originalEvent:Q})}},w))};function Dt(n){fy(En({putSortable:Bt,cloneEl:At,targetEl:qA,rootEl:ze,oldIndex:Yi,oldDraggableIndex:xo,newIndex:Kt,newDraggableIndex:zn},n))}var qA,Ve,fe,ze,hi,Ys,At,Zn,Yi,Kt,xo,zn,Os,Bt,Oi=!1,$s=!1,Js=[],pi,gn,Wa,ja,rd,ad,No,$i,Fo,Ro=!1,Zs=!1,zs,Qt,qa=[],Xa=!1,Ws=[],js=typeof document<"u",qs=Xu,ld=ko||Mn?"cssFloat":"float",Dy=js&&!hy&&!Xu&&"draggable"in document.createElement("div"),cd=function(){if(js){if(Mn)return!1;var n=document.createElement("x");return n.style.cssText="pointer-events:auto",n.style.pointerEvents==="auto"}}(),gd=function(A,t){var i=pe(A),Q=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),w=Ui(A,0,t),a=Ui(A,1,t),b=w&&pe(w),S=a&&pe(a),f=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+lt(w).width,N=S&&parseInt(S.marginLeft)+parseInt(S.marginRight)+lt(a).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(w&&b.float&&b.float!=="none"){var G=b.float==="left"?"left":"right";return a&&(S.clear==="both"||S.clear===G)?"vertical":"horizontal"}return w&&(b.display==="block"||b.display==="flex"||b.display==="table"||b.display==="grid"||f>=Q&&i[ld]==="none"||a&&i[ld]==="none"&&f+N>Q)?"vertical":"horizontal"},by=function(A,t,i){var Q=i?A.left:A.top,w=i?A.right:A.bottom,a=i?A.width:A.height,b=i?t.left:t.top,S=i?t.right:t.bottom,f=i?t.width:t.height;return Q===b||w===S||Q+a/2===b+f/2},yy=function(A,t){var i;return Js.some(function(Q){var w=Q[Pt].options.emptyInsertThreshold;if(!(!w||Ja(Q))){var a=lt(Q),b=A>=a.left-w&&A<=a.right+w,S=t>=a.top-w&&t<=a.bottom+w;if(b&&S)return i=Q}}),i},ud=function(A){function t(w,a){return function(b,S,f,N){var G=b.options.group.name&&S.options.group.name&&b.options.group.name===S.options.group.name;if(w==null&&(a||G))return!0;if(w==null||w===!1)return!1;if(a&&w==="clone")return w;if(typeof w=="function")return t(w(b,S,f,N),a)(b,S,f,N);var K=(a?b:S).options.group.name;return w===!0||typeof w=="string"&&w===K||w.join&&w.indexOf(K)>-1}}var i={},Q=A.group;(!Q||Us(Q)!="object")&&(Q={name:Q}),i.name=Q.name,i.checkPull=t(Q.pull,!0),i.checkPut=t(Q.put),i.revertClone=Q.revertClone,A.group=i},dd=function(){!cd&&fe&&pe(fe,"display","none")},hd=function(){!cd&&fe&&pe(fe,"display","")};js&&document.addEventListener("click",function(n){if($s)return n.preventDefault(),n.stopPropagation&&n.stopPropagation(),n.stopImmediatePropagation&&n.stopImmediatePropagation(),$s=!1,!1},!0);var Bi=function(A){if(qA){A=A.touches?A.touches[0]:A;var t=yy(A.clientX,A.clientY);if(t){var i={};for(var Q in A)A.hasOwnProperty(Q)&&(i[Q]=A[Q]);i.target=i.rootEl=t,i.preventDefault=void 0,i.stopPropagation=void 0,t[Pt]._onDragOver(i)}}},vy=function(A){qA&&qA.parentNode[Pt]._isOutsideThisEl(A.target)};function Be(n,A){if(!(n&&n.nodeType&&n.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(n));this.el=n,this.options=A=kn({},A),n[Pt]=this;var t={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 gd(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,b){a.setData("Text",b.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:Be.supportPointer!==!1&&"PointerEvent"in window&&!_o,emptyInsertThreshold:5};So.initializePlugins(this,n,t);for(var i in t)!(i in A)&&(A[i]=t[i]);ud(A);for(var Q in this)Q.charAt(0)==="_"&&typeof this[Q]=="function"&&(this[Q]=this[Q].bind(this));this.nativeDraggable=A.forceFallback?!1:Dy,this.nativeDraggable&&(this.options.touchStartThreshold=1),A.supportPointer?Ne(n,"pointerdown",this._onTapStart):(Ne(n,"mousedown",this._onTapStart),Ne(n,"touchstart",this._onTapStart)),this.nativeDraggable&&(Ne(n,"dragover",this),Ne(n,"dragenter",this)),Js.push(this.el),A.store&&A.store.get&&this.sort(A.store.get(this)||[]),kn(this,Qy())}Be.prototype={constructor:Be,_isOutsideThisEl:function(A){!this.el.contains(A)&&A!==this.el&&($i=null)},_getDirection:function(A,t){return typeof this.options.direction=="function"?this.options.direction.call(this,A,t,qA):this.options.direction},_onTapStart:function(A){if(A.cancelable){var t=this,i=this.el,Q=this.options,w=Q.preventOnFilter,a=A.type,b=A.touches&&A.touches[0]||A.pointerType&&A.pointerType==="touch"&&A,S=(b||A).target,f=A.target.shadowRoot&&(A.path&&A.path[0]||A.composedPath&&A.composedPath()[0])||S,N=Q.filter;if(Ry(i),!qA&&!(/mousedown|pointerdown/.test(a)&&A.button!==0||Q.disabled)&&!f.isContentEditable&&!(!this.nativeDraggable&&_o&&S&&S.tagName.toUpperCase()==="SELECT")&&(S=Qn(S,Q.draggable,i,!1),!(S&&S.animated)&&Ys!==S)){if(Yi=qt(S),xo=qt(S,Q.draggable),typeof N=="function"){if(N.call(this,A,S,this)){Dt({sortable:t,rootEl:f,name:"filter",targetEl:S,toEl:i,fromEl:i}),St("filter",t,{evt:A}),w&&A.cancelable&&A.preventDefault();return}}else if(N&&(N=N.split(",").some(function(G){if(G=Qn(f,G.trim(),i,!1),G)return Dt({sortable:t,rootEl:G,name:"filter",targetEl:S,fromEl:i,toEl:i}),St("filter",t,{evt:A}),!0}),N)){w&&A.cancelable&&A.preventDefault();return}Q.handle&&!Qn(f,Q.handle,i,!1)||this._prepareDragStart(A,b,S)}}},_prepareDragStart:function(A,t,i){var Q=this,w=Q.el,a=Q.options,b=w.ownerDocument,S;if(i&&!qA&&i.parentNode===w){var f=lt(i);if(ze=w,qA=i,Ve=qA.parentNode,hi=qA.nextSibling,Ys=i,Os=a.group,Be.dragged=qA,pi={target:qA,clientX:(t||A).clientX,clientY:(t||A).clientY},rd=pi.clientX-f.left,ad=pi.clientY-f.top,this._lastX=(t||A).clientX,this._lastY=(t||A).clientY,qA.style["will-change"]="all",S=function(){if(St("delayEnded",Q,{evt:A}),Be.eventCanceled){Q._onDrop();return}Q._disableDelayedDragEvents(),!qu&&Q.nativeDraggable&&(qA.draggable=!0),Q._triggerDragStart(A,t),Dt({sortable:Q,name:"choose",originalEvent:A}),Ht(qA,a.chosenClass,!0)},a.ignore.split(",").forEach(function(N){ed(qA,N.trim(),Va)}),Ne(b,"dragover",Bi),Ne(b,"mousemove",Bi),Ne(b,"touchmove",Bi),Ne(b,"mouseup",Q._onDrop),Ne(b,"touchend",Q._onDrop),Ne(b,"touchcancel",Q._onDrop),qu&&this.nativeDraggable&&(this.options.touchStartThreshold=4,qA.draggable=!0),St("delayStart",this,{evt:A}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ko||Mn))){if(Be.eventCanceled){this._onDrop();return}Ne(b,"mouseup",Q._disableDelayedDrag),Ne(b,"touchend",Q._disableDelayedDrag),Ne(b,"touchcancel",Q._disableDelayedDrag),Ne(b,"mousemove",Q._delayedDragTouchMoveHandler),Ne(b,"touchmove",Q._delayedDragTouchMoveHandler),a.supportPointer&&Ne(b,"pointermove",Q._delayedDragTouchMoveHandler),Q._dragStartTimer=setTimeout(S,a.delay)}else S()}},_delayedDragTouchMoveHandler:function(A){var t=A.touches?A.touches[0]:A;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){qA&&Va(qA),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var A=this.el.ownerDocument;Se(A,"mouseup",this._disableDelayedDrag),Se(A,"touchend",this._disableDelayedDrag),Se(A,"touchcancel",this._disableDelayedDrag),Se(A,"mousemove",this._delayedDragTouchMoveHandler),Se(A,"touchmove",this._delayedDragTouchMoveHandler),Se(A,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(A,t){t=t||A.pointerType=="touch"&&A,!this.nativeDraggable||t?this.options.supportPointer?Ne(document,"pointermove",this._onTouchMove):t?Ne(document,"touchmove",this._onTouchMove):Ne(document,"mousemove",this._onTouchMove):(Ne(qA,"dragend",this),Ne(ze,"dragstart",this._onDragStart));try{document.selection?Vs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(A,t){if(Oi=!1,ze&&qA){St("dragStarted",this,{evt:t}),this.nativeDraggable&&Ne(document,"dragover",vy);var i=this.options;!A&&Ht(qA,i.dragClass,!1),Ht(qA,i.ghostClass,!0),Be.active=this,A&&this._appendGhost(),Dt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(gn){this._lastX=gn.clientX,this._lastY=gn.clientY,dd();for(var A=document.elementFromPoint(gn.clientX,gn.clientY),t=A;A&&A.shadowRoot&&(A=A.shadowRoot.elementFromPoint(gn.clientX,gn.clientY),A!==t);)t=A;if(qA.parentNode[Pt]._isOutsideThisEl(A),t)do{if(t[Pt]){var i=void 0;if(i=t[Pt]._onDragOver({clientX:gn.clientX,clientY:gn.clientY,target:A,rootEl:t}),i&&!this.options.dragoverBubble)break}A=t}while(t=t.parentNode);hd()}},_onTouchMove:function(A){if(pi){var t=this.options,i=t.fallbackTolerance,Q=t.fallbackOffset,w=A.touches?A.touches[0]:A,a=fe&&Ki(fe,!0),b=fe&&a&&a.a,S=fe&&a&&a.d,f=qs&&Qt&&nd(Qt),N=(w.clientX-pi.clientX+Q.x)/(b||1)+(f?f[0]-qa[0]:0)/(b||1),G=(w.clientY-pi.clientY+Q.y)/(S||1)+(f?f[1]-qa[1]:0)/(S||1);if(!Be.active&&!Oi){if(i&&Math.max(Math.abs(w.clientX-this._lastX),Math.abs(w.clientY-this._lastY))<i)return;this._onDragStart(A,!0)}if(fe){a?(a.e+=N-(Wa||0),a.f+=G-(ja||0)):a={a:1,b:0,c:0,d:1,e:N,f:G};var K="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");pe(fe,"webkitTransform",K),pe(fe,"mozTransform",K),pe(fe,"msTransform",K),pe(fe,"transform",K),Wa=N,ja=G,gn=w}A.cancelable&&A.preventDefault()}},_appendGhost:function(){if(!fe){var A=this.options.fallbackOnBody?document.body:ze,t=lt(qA,!0,qs,!0,A),i=this.options;if(qs){for(Qt=A;pe(Qt,"position")==="static"&&pe(Qt,"transform")==="none"&&Qt!==document;)Qt=Qt.parentNode;Qt!==document.body&&Qt!==document.documentElement?(Qt===document&&(Qt=mn()),t.top+=Qt.scrollTop,t.left+=Qt.scrollLeft):Qt=mn(),qa=nd(Qt)}fe=qA.cloneNode(!0),Ht(fe,i.ghostClass,!1),Ht(fe,i.fallbackClass,!0),Ht(fe,i.dragClass,!0),pe(fe,"transition",""),pe(fe,"transform",""),pe(fe,"box-sizing","border-box"),pe(fe,"margin",0),pe(fe,"top",t.top),pe(fe,"left",t.left),pe(fe,"width",t.width),pe(fe,"height",t.height),pe(fe,"opacity","0.8"),pe(fe,"position",qs?"absolute":"fixed"),pe(fe,"zIndex","100000"),pe(fe,"pointerEvents","none"),Be.ghost=fe,A.appendChild(fe),pe(fe,"transform-origin",rd/parseInt(fe.style.width)*100+"% "+ad/parseInt(fe.style.height)*100+"%")}},_onDragStart:function(A,t){var i=this,Q=A.dataTransfer,w=i.options;if(St("dragStart",this,{evt:A}),Be.eventCanceled){this._onDrop();return}St("setupClone",this),Be.eventCanceled||(At=sd(qA),At.draggable=!1,At.style["will-change"]="",this._hideClone(),Ht(At,this.options.chosenClass,!1),Be.clone=At),i.cloneId=Vs(function(){St("clone",i),!Be.eventCanceled&&(i.options.removeCloneOnHide||ze.insertBefore(At,qA),i._hideClone(),Dt({sortable:i,name:"clone"}))}),!t&&Ht(qA,w.dragClass,!0),t?($s=!0,i._loopId=setInterval(i._emulateDragOver,50)):(Se(document,"mouseup",i._onDrop),Se(document,"touchend",i._onDrop),Se(document,"touchcancel",i._onDrop),Q&&(Q.effectAllowed="move",w.setData&&w.setData.call(i,Q,qA)),Ne(document,"drop",i),pe(qA,"transform","translateZ(0)")),Oi=!0,i._dragStartId=Vs(i._dragStarted.bind(i,t,A)),Ne(document,"selectstart",i),No=!0,_o&&pe(document.body,"user-select","none")},_onDragOver:function(A){var t=this.el,i=A.target,Q,w,a,b=this.options,S=b.group,f=Be.active,N=Os===S,G=b.sort,K=Bt||f,Z,T=this,P=!1;if(Xa)return;function _(D,x){St(D,T,En({evt:A,isOwner:N,axis:Z?"vertical":"horizontal",revert:a,dragRect:Q,targetRect:w,canSort:G,fromSortable:K,target:i,completed:L,onMove:function($,j){return Xs(ze,t,qA,Q,$,lt($),A,j)},changed:k},x))}function m(){_("dragOverAnimationCapture"),T.captureAnimationState(),T!==K&&K.captureAnimationState()}function L(D){return _("dragOverCompleted",{insertion:D}),D&&(N?f._hideClone():f._showClone(T),T!==K&&(Ht(qA,Bt?Bt.options.ghostClass:f.options.ghostClass,!1),Ht(qA,b.ghostClass,!0)),Bt!==T&&T!==Be.active?Bt=T:T===Be.active&&Bt&&(Bt=null),K===T&&(T._ignoreWhileAnimating=i),T.animateAll(function(){_("dragOverAnimationComplete"),T._ignoreWhileAnimating=null}),T!==K&&(K.animateAll(),K._ignoreWhileAnimating=null)),(i===qA&&!qA.animated||i===t&&!i.animated)&&($i=null),!b.dragoverBubble&&!A.rootEl&&i!==document&&(qA.parentNode[Pt]._isOutsideThisEl(A.target),!D&&Bi(A)),!b.dragoverBubble&&A.stopPropagation&&A.stopPropagation(),P=!0}function k(){Kt=qt(qA),zn=qt(qA,b.draggable),Dt({sortable:T,name:"change",toEl:t,newIndex:Kt,newDraggableIndex:zn,originalEvent:A})}if(A.preventDefault!==void 0&&A.cancelable&&A.preventDefault(),i=Qn(i,b.draggable,t,!0),_("dragOver"),Be.eventCanceled)return P;if(qA.contains(A.target)||i.animated&&i.animatingX&&i.animatingY||T._ignoreWhileAnimating===i)return L(!1);if($s=!1,f&&!b.disabled&&(N?G||(a=Ve!==ze):Bt===this||(this.lastPutMode=Os.checkPull(this,f,qA,A))&&S.checkPut(this,f,qA,A))){if(Z=this._getDirection(A,i)==="vertical",Q=lt(qA),_("dragOverValid"),Be.eventCanceled)return P;if(a)return Ve=ze,m(),this._hideClone(),_("revert"),Be.eventCanceled||(hi?ze.insertBefore(qA,hi):ze.appendChild(qA)),L(!0);var y=Ja(t,b.draggable);if(!y||Sy(A,Z,this)&&!y.animated){if(y===qA)return L(!1);if(y&&t===A.target&&(i=y),i&&(w=lt(i)),Xs(ze,t,qA,Q,i,w,A,!!i)!==!1)return m(),t.appendChild(qA),Ve=t,k(),L(!0)}else if(y&&My(A,Z,this)){var C=Ui(t,0,b,!0);if(C===qA)return L(!1);if(i=C,w=lt(i),Xs(ze,t,qA,Q,i,w,A,!1)!==!1)return m(),t.insertBefore(qA,C),Ve=t,k(),L(!0)}else if(i.parentNode===t){w=lt(i);var u=0,p,l=qA.parentNode!==t,g=!by(qA.animated&&qA.toRect||Q,i.animated&&i.toRect||w,Z),r=Z?"top":"left",d=td(i,"top","top")||td(qA,"top","top"),h=d?d.scrollTop:void 0;$i!==i&&(p=w[r],Ro=!1,Zs=!g&&b.invertSwap||l),u=xy(A,i,w,Z,g?1:b.swapThreshold,b.invertedSwapThreshold==null?b.swapThreshold:b.invertedSwapThreshold,Zs,$i===i);var s;if(u!==0){var o=qt(qA);do o-=u,s=Ve.children[o];while(s&&(pe(s,"display")==="none"||s===fe))}if(u===0||s===i)return L(!1);$i=i,Fo=u;var B=i.nextElementSibling,E=!1;E=u===1;var M=Xs(ze,t,qA,Q,i,w,A,E);if(M!==!1)return(M===1||M===-1)&&(E=M===1),Xa=!0,setTimeout(_y,30),m(),E&&!B?t.appendChild(qA):i.parentNode.insertBefore(qA,E?B:i),d&&od(d,0,h-d.scrollTop),Ve=qA.parentNode,p!==void 0&&!Zs&&(zs=Math.abs(p-lt(i)[r])),k(),L(!0)}if(t.contains(qA))return L(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Se(document,"mousemove",this._onTouchMove),Se(document,"touchmove",this._onTouchMove),Se(document,"pointermove",this._onTouchMove),Se(document,"dragover",Bi),Se(document,"mousemove",Bi),Se(document,"touchmove",Bi)},_offUpEvents:function(){var A=this.el.ownerDocument;Se(A,"mouseup",this._onDrop),Se(A,"touchend",this._onDrop),Se(A,"pointerup",this._onDrop),Se(A,"touchcancel",this._onDrop),Se(document,"selectstart",this)},_onDrop:function(A){var t=this.el,i=this.options;if(Kt=qt(qA),zn=qt(qA,i.draggable),St("drop",this,{evt:A}),Ve=qA&&qA.parentNode,Kt=qt(qA),zn=qt(qA,i.draggable),Be.eventCanceled){this._nulling();return}Oi=!1,Zs=!1,Ro=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Al(this.cloneId),Al(this._dragStartId),this.nativeDraggable&&(Se(document,"drop",this),Se(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),_o&&pe(document.body,"user-select",""),pe(qA,"transform",""),A&&(No&&(A.cancelable&&A.preventDefault(),!i.dropBubble&&A.stopPropagation()),fe&&fe.parentNode&&fe.parentNode.removeChild(fe),(ze===Ve||Bt&&Bt.lastPutMode!=="clone")&&At&&At.parentNode&&At.parentNode.removeChild(At),qA&&(this.nativeDraggable&&Se(qA,"dragend",this),Va(qA),qA.style["will-change"]="",No&&!Oi&&Ht(qA,Bt?Bt.options.ghostClass:this.options.ghostClass,!1),Ht(qA,this.options.chosenClass,!1),Dt({sortable:this,name:"unchoose",toEl:Ve,newIndex:null,newDraggableIndex:null,originalEvent:A}),ze!==Ve?(Kt>=0&&(Dt({rootEl:Ve,name:"add",toEl:Ve,fromEl:ze,originalEvent:A}),Dt({sortable:this,name:"remove",toEl:Ve,originalEvent:A}),Dt({rootEl:Ve,name:"sort",toEl:Ve,fromEl:ze,originalEvent:A}),Dt({sortable:this,name:"sort",toEl:Ve,originalEvent:A})),Bt&&Bt.save()):Kt!==Yi&&Kt>=0&&(Dt({sortable:this,name:"update",toEl:Ve,originalEvent:A}),Dt({sortable:this,name:"sort",toEl:Ve,originalEvent:A})),Be.active&&((Kt==null||Kt===-1)&&(Kt=Yi,zn=xo),Dt({sortable:this,name:"end",toEl:Ve,originalEvent:A}),this.save()))),this._nulling()},_nulling:function(){St("nulling",this),ze=qA=Ve=fe=hi=At=Ys=Zn=pi=gn=No=Kt=zn=Yi=xo=$i=Fo=Bt=Os=Be.dragged=Be.ghost=Be.clone=Be.active=null,Ws.forEach(function(A){A.checked=!0}),Ws.length=Wa=ja=0},handleEvent:function(A){switch(A.type){case"drop":case"dragend":this._onDrop(A);break;case"dragenter":case"dragover":qA&&(this._onDragOver(A),ky(A));break;case"selectstart":A.preventDefault();break}},toArray:function(){for(var A=[],t,i=this.el.children,Q=0,w=i.length,a=this.options;Q<w;Q++)t=i[Q],Qn(t,a.draggable,this.el,!1)&&A.push(t.getAttribute(a.dataIdAttr)||Fy(t));return A},sort:function(A,t){var i={},Q=this.el;this.toArray().forEach(function(w,a){var b=Q.children[a];Qn(b,this.options.draggable,Q,!1)&&(i[w]=b)},this),t&&this.captureAnimationState(),A.forEach(function(w){i[w]&&(Q.removeChild(i[w]),Q.appendChild(i[w]))}),t&&this.animateAll()},save:function(){var A=this.options.store;A&&A.set&&A.set(this)},closest:function(A,t){return Qn(A,t||this.options.draggable,this.el,!1)},option:function(A,t){var i=this.options;if(t===void 0)return i[A];var Q=So.modifyOption(this,A,t);typeof Q<"u"?i[A]=Q:i[A]=t,A==="group"&&ud(i)},destroy:function(){St("destroy",this);var A=this.el;A[Pt]=null,Se(A,"mousedown",this._onTapStart),Se(A,"touchstart",this._onTapStart),Se(A,"pointerdown",this._onTapStart),this.nativeDraggable&&(Se(A,"dragover",this),Se(A,"dragenter",this)),Array.prototype.forEach.call(A.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Js.splice(Js.indexOf(this.el),1),this.el=A=null},_hideClone:function(){if(!Zn){if(St("hideClone",this),Be.eventCanceled)return;pe(At,"display","none"),this.options.removeCloneOnHide&&At.parentNode&&At.parentNode.removeChild(At),Zn=!0}},_showClone:function(A){if(A.lastPutMode!=="clone"){this._hideClone();return}if(Zn){if(St("showClone",this),Be.eventCanceled)return;qA.parentNode==ze&&!this.options.group.revertClone?ze.insertBefore(At,qA):hi?ze.insertBefore(At,hi):ze.appendChild(At),this.options.group.revertClone&&this.animate(qA,At),pe(At,"display",""),Zn=!1}}};function ky(n){n.dataTransfer&&(n.dataTransfer.dropEffect="move"),n.cancelable&&n.preventDefault()}function Xs(n,A,t,i,Q,w,a,b){var S,f=n[Pt],N=f.options.onMove,G;return window.CustomEvent&&!Mn&&!ko?S=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(S=document.createEvent("Event"),S.initEvent("move",!0,!0)),S.to=A,S.from=n,S.dragged=t,S.draggedRect=i,S.related=Q||A,S.relatedRect=w||lt(A),S.willInsertAfter=b,S.originalEvent=a,n.dispatchEvent(S),N&&(G=N.call(f,S,a)),G}function Va(n){n.draggable=!1}function _y(){Xa=!1}function My(n,A,t){var i=lt(Ui(t.el,0,t.options,!0)),Q=10;return A?n.clientX<i.left-Q||n.clientY<i.top&&n.clientX<i.right:n.clientY<i.top-Q||n.clientY<i.bottom&&n.clientX<i.left}function Sy(n,A,t){var i=lt(Ja(t.el,t.options.draggable)),Q=10;return A?n.clientX>i.right+Q||n.clientX<=i.right&&n.clientY>i.bottom&&n.clientX>=i.left:n.clientX>i.right&&n.clientY>i.top||n.clientX<=i.right&&n.clientY>i.bottom+Q}function xy(n,A,t,i,Q,w,a,b){var S=i?n.clientY:n.clientX,f=i?t.height:t.width,N=i?t.top:t.left,G=i?t.bottom:t.right,K=!1;if(!a){if(b&&zs<f*Q){if(!Ro&&(Fo===1?S>N+f*w/2:S<G-f*w/2)&&(Ro=!0),Ro)K=!0;else if(Fo===1?S<N+zs:S>G-zs)return-Fo}else if(S>N+f*(1-Q)/2&&S<G-f*(1-Q)/2)return Ny(A)}return K=K||a,K&&(S<N+f*w/2||S>G-f*w/2)?S>N+f/2?1:-1:0}function Ny(n){return qt(qA)<qt(n)?1:-1}function Fy(n){for(var A=n.tagName+n.className+n.src+n.href+n.textContent,t=A.length,i=0;t--;)i+=A.charCodeAt(t);return i.toString(36)}function Ry(n){Ws.length=0;for(var A=n.getElementsByTagName("input"),t=A.length;t--;){var i=A[t];i.checked&&Ws.push(i)}}function Vs(n){return setTimeout(n,0)}function Al(n){return clearTimeout(n)}js&&Ne(document,"touchmove",function(n){(Be.active||Oi)&&n.cancelable&&n.preventDefault()}),Be.utils={on:Ne,off:Se,css:pe,find:ed,is:function(A,t){return!!Qn(A,t,A,!1)},extend:Cy,throttle:id,closest:Qn,toggleClass:Ht,clone:sd,index:qt,nextTick:Vs,cancelNextTick:Al,detectDirection:gd,getChild:Ui},Be.get=function(n){return n[Pt]},Be.mount=function(){for(var n=arguments.length,A=new Array(n),t=0;t<n;t++)A[t]=arguments[t];A[0].constructor===Array&&(A=A[0]),A.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(Be.utils=En(En({},Be.utils),i.utils)),So.mount(i)})},Be.create=function(n,A){return new Be(n,A)},Be.version=dy;var rt=[],Lo,el,tl=!1,nl,il,Ar,Go;function Ly(){function n(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var A in this)A.charAt(0)==="_"&&typeof this[A]=="function"&&(this[A]=this[A].bind(this))}return n.prototype={dragStarted:function(t){var i=t.originalEvent;this.sortable.nativeDraggable?Ne(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Ne(document,"pointermove",this._handleFallbackAutoScroll):i.touches?Ne(document,"touchmove",this._handleFallbackAutoScroll):Ne(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var i=t.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?Se(document,"dragover",this._handleAutoScroll):(Se(document,"pointermove",this._handleFallbackAutoScroll),Se(document,"touchmove",this._handleFallbackAutoScroll),Se(document,"mousemove",this._handleFallbackAutoScroll)),pd(),er(),Ey()},nulling:function(){Ar=el=Lo=tl=Go=nl=il=null,rt.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,i){var Q=this,w=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,b=document.elementFromPoint(w,a);if(Ar=t,i||this.options.forceAutoScrollFallback||ko||Mn||_o){ol(t,this.options,b,i);var S=Jn(b,!0);tl&&(!Go||w!==nl||a!==il)&&(Go&&pd(),Go=setInterval(function(){var f=Jn(document.elementFromPoint(w,a),!0);f!==S&&(S=f,er()),ol(t,Q.options,f,i)},10),nl=w,il=a)}else{if(!this.options.bubbleScroll||Jn(b,!0)===mn()){er();return}ol(t,this.options,Jn(b,!1),!1)}}},kn(n,{pluginName:"scroll",initializeByDefault:!0})}function er(){rt.forEach(function(n){clearInterval(n.pid)}),rt=[]}function pd(){clearInterval(Go)}var ol=id(function(n,A,t,i){if(A.scroll){var Q=(n.touches?n.touches[0]:n).clientX,w=(n.touches?n.touches[0]:n).clientY,a=A.scrollSensitivity,b=A.scrollSpeed,S=mn(),f=!1,N;el!==t&&(el=t,er(),Lo=A.scroll,N=A.scrollFn,Lo===!0&&(Lo=Jn(t,!0)));var G=0,K=Lo;do{var Z=K,T=lt(Z),P=T.top,_=T.bottom,m=T.left,L=T.right,k=T.width,y=T.height,C=void 0,u=void 0,p=Z.scrollWidth,l=Z.scrollHeight,g=pe(Z),r=Z.scrollLeft,d=Z.scrollTop;Z===S?(C=k<p&&(g.overflowX==="auto"||g.overflowX==="scroll"||g.overflowX==="visible"),u=y<l&&(g.overflowY==="auto"||g.overflowY==="scroll"||g.overflowY==="visible")):(C=k<p&&(g.overflowX==="auto"||g.overflowX==="scroll"),u=y<l&&(g.overflowY==="auto"||g.overflowY==="scroll"));var h=C&&(Math.abs(L-Q)<=a&&r+k<p)-(Math.abs(m-Q)<=a&&!!r),s=u&&(Math.abs(_-w)<=a&&d+y<l)-(Math.abs(P-w)<=a&&!!d);if(!rt[G])for(var o=0;o<=G;o++)rt[o]||(rt[o]={});(rt[G].vx!=h||rt[G].vy!=s||rt[G].el!==Z)&&(rt[G].el=Z,rt[G].vx=h,rt[G].vy=s,clearInterval(rt[G].pid),(h!=0||s!=0)&&(f=!0,rt[G].pid=setInterval((function(){i&&this.layer===0&&Be.active._onTouchMove(Ar);var B=rt[this.layer].vy?rt[this.layer].vy*b:0,E=rt[this.layer].vx?rt[this.layer].vx*b:0;typeof N=="function"&&N.call(Be.dragged.parentNode[Pt],E,B,n,Ar,rt[this.layer].el)!=="continue"||od(rt[this.layer].el,E,B)}).bind({layer:G}),24))),G++}while(A.bubbleScroll&&K!==S&&(K=Jn(K,!1)));tl=f}},30),Bd=function(A){var t=A.originalEvent,i=A.putSortable,Q=A.dragEl,w=A.activeSortable,a=A.dispatchSortableEvent,b=A.hideGhostForTarget,S=A.unhideGhostForTarget;if(t){var f=i||w;b();var N=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,G=document.elementFromPoint(N.clientX,N.clientY);S(),f&&!f.el.contains(G)&&(a("spill"),this.onSpill({dragEl:Q,putSortable:i}))}};function sl(){}sl.prototype={startIndex:null,dragStart:function(A){var t=A.oldDraggableIndex;this.startIndex=t},onSpill:function(A){var t=A.dragEl,i=A.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var Q=Ui(this.sortable.el,this.startIndex,this.options);Q?this.sortable.el.insertBefore(t,Q):this.sortable.el.appendChild(t),this.sortable.animateAll(),i&&i.animateAll()},drop:Bd},kn(sl,{pluginName:"revertOnSpill"});function rl(){}rl.prototype={onSpill:function(A){var t=A.dragEl,i=A.putSortable,Q=i||this.sortable;Q.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),Q.animateAll()},drop:Bd},kn(rl,{pluginName:"removeOnSpill"}),Be.mount(new Ly),Be.mount(rl,sl);var Gy=Object.defineProperty,Hy=Object.defineProperties,Py=Object.getOwnPropertyDescriptors,Cd=Object.getOwnPropertySymbols,Ky=Object.prototype.hasOwnProperty,Uy=Object.prototype.propertyIsEnumerable,Ed=(n,A,t)=>A in n?Gy(n,A,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[A]=t,Wn=(n,A)=>{for(var t in A||(A={}))Ky.call(A,t)&&Ed(n,t,A[t]);if(Cd)for(var t of Cd(A))Uy.call(A,t)&&Ed(n,t,A[t]);return n},tr=(n,A)=>Hy(n,Py(A));function al(n){n.parentElement!==null&&n.parentElement.removeChild(n)}function Qd(n,A,t){const i=t===0?n.children[0]:n.children[t-1].nextSibling;n.insertBefore(A,i)}function Ty(){return typeof window<"u"?window.console:global.console}const Yy=Ty();function Oy(n){const A=Object.create(null);return function(i){return A[i]||(A[i]=n(i))}}const $y=/-(\w)/g,Jy=Oy(n=>n.replace($y,(A,t)=>t.toUpperCase())),md=["Start","Add","Remove","Update","End"],Id=["Choose","Unchoose","Sort","Filter","Clone"],fd=["Move"],Zy=[fd,md,Id].flatMap(n=>n).map(n=>`on${n}`),ll={manage:fd,manageAndEmit:md,emit:Id};function zy(n){return Zy.indexOf(n)!==-1}const Wy=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function jy(n){return Wy.includes(n)}function qy(n){return["transition-group","TransitionGroup"].includes(n)}function wd(n){return["id","class","role","style"].includes(n)||n.startsWith("data-")||n.startsWith("aria-")||n.startsWith("on")}function Dd(n){return n.reduce((A,[t,i])=>(A[t]=i,A),{})}function Xy({$attrs:n,componentData:A={}}){const t=Dd(Object.entries(n).filter(([i,Q])=>wd(i)));return Wn(Wn({},t),A)}function Vy({$attrs:n,callBackBuilder:A}){const t=Dd(bd(n));Object.entries(A).forEach(([Q,w])=>{ll[Q].forEach(a=>{t[`on${a}`]=w(a)})});const i=`[data-draggable]${t.draggable||""}`;return tr(Wn({},t),{draggable:i})}function bd(n){return Object.entries(n).filter(([A,t])=>!wd(A)).map(([A,t])=>[Jy(A),t]).filter(([A,t])=>!zy(A))}const yd=n=>{const A=n.el||Array.isArray(n.children)&&n.children[0].el.parentNode;return A||console.error("使用 transition-group , 需要在slot中template内至少2层html标签"),A||{}},Av=(n,A)=>n.__draggable_context=A,vd=n=>n.__draggable_context;class ev{constructor({nodes:{header:A,default:t,footer:i},root:Q,realList:w}){this.defaultNodes=t,this.children=[...A,...t,...i],this.externalComponent=Q.externalComponent,this.rootTransition=Q.transition,this.tag=Q.tag,this.realList=w}get _isRootComponent(){return this.externalComponent||this.rootTransition}render(A,t){const{tag:i,children:Q,_isRootComponent:w}=this;return A(i,t,w?{default:()=>Q}:Q)}updated(){const{defaultNodes:A,realList:t}=this;A.forEach((i,Q)=>{Av(yd(i),{element:t[Q],index:Q})})}getUnderlyingVm(A){return vd(A)}getVmIndexFromDomIndex(A,t){const{defaultNodes:i}=this,{length:Q}=i,w=t.children,a=w.item(A);if(a===null)return Q;const b=vd(a);if(b)return b.index;if(Q===0)return 0;const S=yd(i[0]),f=[...w].findIndex(N=>N===S);return A<f?0:Q}}function tv(n,A){const t=n[A];return t?t():[]}function nv({$slots:n,realList:A,getKey:t}){const i=A||[],[Q,w]=["header","footer"].map(S=>tv(n,S)),{item:a}=n;if(!a)throw new Error("draggable element must have an item slot");const b=i.flatMap((S,f)=>a({element:S,index:f}).map(N=>(N.key=t(S),N.props=tr(Wn({},N.props||{}),{"data-draggable":!0}),N)));if(b.length!==i.length)throw new Error("Item slot must have only one child");return{header:Q,footer:w,default:b}}function iv(n){const A=qy(n),t=!jy(n)&&!A;return{transition:A,externalComponent:t,tag:t?e.resolveComponent(n):A?e.TransitionGroup:n}}function ov({$slots:n,tag:A,realList:t,getKey:i}){const Q=nv({$slots:n,realList:t,getKey:i}),w=iv(A);return new ev({nodes:Q,root:w,realList:t})}function kd(n,A){e.nextTick(()=>this.$emit(n.toLowerCase(),A))}function _d(n){return(A,t)=>{if(this.realList!==null)return this[`onDrag${n}`](A,t)}}function sv(n){const A=_d.call(this,n);return(t,i)=>{A.call(this,t,i),kd.call(this,n,t)}}let cl=null;const rv={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:n=>n},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},av=["update:modelValue","change",...[...ll.manageAndEmit,...ll.emit].map(n=>n.toLowerCase())],Md=e.defineComponent({name:"draggable",inheritAttrs:!1,props:rv,emits:av,data(){return{error:!1}},render(){try{this.error=!1;const{$slots:n,$attrs:A,tag:t,componentData:i,realList:Q,getKey:w}=this,a=ov({$slots:n,tag:t,realList:Q,getKey:w});this.componentStructure=a;const b=Xy({$attrs:A,componentData:i});return a.render(e.h,b)}catch(n){return this.error=!0,e.h("pre",{style:{color:"red"}},n.stack)}},created(){this.list!==null&&this.modelValue!==null&&Yy.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted(){if(this.error)return;const{$attrs:n,$el:A,componentStructure:t}=this;t.updated();const i=Vy({$attrs:n,callBackBuilder:{manageAndEmit:w=>sv.call(this,w),emit:w=>kd.bind(this,w),manage:w=>_d.call(this,w)}}),Q=A.nodeType===1?A:A.parentElement;this._sortable=new Be(Q,i),this.targetDomElement=Q,Q.__draggable_component__=this},updated(){this.componentStructure.updated()},beforeUnmount(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList(){const{list:n}=this;return n||this.modelValue},getKey(){const{itemKey:n}=this;return typeof n=="function"?n:A=>A[n]}},watch:{$attrs:{handler(n){const{_sortable:A}=this;A&&bd(n).forEach(([t,i])=>{A.option(t,i)})},deep:!0}},methods:{getUnderlyingVm(n){return this.componentStructure.getUnderlyingVm(n)||null},getUnderlyingPotencialDraggableComponent(n){return n.__draggable_component__},emitChanges(n){e.nextTick(()=>this.$emit("change",n))},alterList(n){if(this.list){n(this.list);return}const A=[...this.modelValue];n(A),this.$emit("update:modelValue",A)},spliceList(){const n=A=>A.splice(...arguments);this.alterList(n)},updatePosition(n,A){const t=i=>i.splice(A,0,i.splice(n,1)[0]);this.alterList(t)},getRelatedContextFromMoveEvent({to:n,related:A}){const t=this.getUnderlyingPotencialDraggableComponent(n);if(!t)return{component:t};const i=t.realList,Q={list:i,component:t};if(n!==A&&i){const w=t.getUnderlyingVm(A)||{};return Wn(Wn({},w),Q)}return Q},getVmIndexFromDomIndex(n){return this.componentStructure.getVmIndexFromDomIndex(n,this.targetDomElement)},onDragStart(n){this.context=this.getUnderlyingVm(n.item),n.item._underlying_vm_=this.clone(this.context.element),cl=n.item},onDragAdd(n){const A=n.item._underlying_vm_;if(A===void 0)return;al(n.item);const t=this.getVmIndexFromDomIndex(n.newIndex);this.spliceList(t,0,A);const i={element:A,newIndex:t};this.emitChanges({added:i})},onDragRemove(n){if(Qd(this.$el,n.item,n.oldIndex),n.pullMode==="clone"){al(n.clone);return}const{index:A,element:t}=this.context;this.spliceList(A,1);const i={element:t,oldIndex:A};this.emitChanges({removed:i})},onDragUpdate(n){al(n.item),Qd(n.from,n.item,n.oldIndex);const A=this.context.index,t=this.getVmIndexFromDomIndex(n.newIndex);this.updatePosition(A,t);const i={element:this.context.element,oldIndex:A,newIndex:t};this.emitChanges({moved:i})},computeFutureIndex(n,A){if(!n.element)return 0;const t=[...A.to.children].filter(a=>a.style.display!=="none"),i=t.indexOf(A.related),Q=n.component.getVmIndexFromDomIndex(i);return t.indexOf(cl)!==-1||!A.willInsertAfter?Q:Q+1},onDragMove(n,A){const{move:t,realList:i}=this;if(!t||!i)return!0;const Q=this.getRelatedContextFromMoveEvent(n),w=this.computeFutureIndex(Q,n),a=tr(Wn({},this.context),{futureIndex:w}),b=tr(Wn({},n),{relatedContext:Q,draggedContext:a});return t(b,A)},onDragEnd(){cl=null}}}),Ji=e.defineComponent({__name:"FormItem",props:{label:{},name:{},component:{},required:{type:Boolean},props:{},initialValue:{},help:{},children:{},hidden:{type:[Boolean,String]},hideLabel:{type:Boolean},designKey:{},rules:{},class:{},style:{},change:{},dialog:{type:Boolean},width:{}},setup(n){const A=n,t=ut(),i=Fi(),Q=e.reactive({visible:!1,title:""}),w=()=>{Q.visible=!0,Q.title=A.label},a=e.computed({get(){return ns(t.formValues,A.name)},set(G){const K=_i(t.formValues,A.name,G);t.updateFormValues(K)}}),b=e.computed(()=>{const{rules:G,required:K,component:Z}=A,T=[];if(K&&T.push({required:!0,trigger:"blur",message:"Required"}),G){const P=G.map(_=>{const{type:m,message:L,trigger:k,customReg:y,templateExp:C}=_,u={message:L,trigger:k};return["email","url"].includes(m)?{...u,type:m}:m==="custom"&&y?{...u,pattern:aB(y)}:rB(m)?{...u,pattern:m}:m==="template"?{...u,validator:()=>C}:{}});return[...T,...P]}if(Z==="VerifyCode"){const P={trigger:"blur",message:"验证码错误!",validator:()=>t.vCodePass};return[...T,P]}return T}),S=e.computed(()=>{const G=i[A.component]||{};return G.modelName||(G.modelName="modelValue"),G}),f=e.computed(()=>{const G={name:A.name,...A.props};return A.children&&(G.children=A.children),G}),N=G=>G.replace(/&nbsp;/g," ");return e.onBeforeMount(()=>{if(a.value===void 0&&A.initialValue!==void 0&&!t.design){const G=_i(t.initialValues,A.name,A.initialValue);t.updateInitialValues(G),a.value=A.initialValue}}),e.watch(a,(G,K)=>{const Z=A.change,T=Oe.isEqual(G,K);if(!Z||T)return;let P=Oe.cloneDeep(t.formValues);Z.forEach(({target:_,value:m,condition:L})=>{if(L!==!1){if(_.includes(".*.")){const k=_.split(".*."),y=k.pop(),C=k.join("."),u=ns(t.formValues,C);Oe.isArray(u)&&(P=_i(P,C,u.map(p=>({...p,[y]:m}))));return}P=_i(P,_,m)}}),t.updateFormValues(P)},{immediate:!0}),(G,K)=>{var m;const Z=e.resolveComponent("el-tooltip"),T=e.resolveComponent("el-dialog"),P=e.resolveComponent("el-button"),_=e.resolveComponent("el-form-item");return e.unref(t).design||!G.hidden?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[S.value.type==="layout"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.mergeProps({key:0},f.value,{style:{minWidth:0}}),null,16)):S.value.type==="assist"?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.normalizeProps(e.mergeProps({key:1},f.value)),null,16)):(e.openBlock(),e.createBlock(_,{class:e.normalizeClass([e.unref(ke)("form-item"),A.class,`${G.component}-${G.name}`,{readMode:(m=A.props)==null?void 0:m.read}]),style:e.normalizeStyle(G.style),key:G.name,prop:G.name,"label-width":G.hideLabel?"0":e.unref(t).schema.labelWidth,rules:b.value},e.createSlots({default:e.withCtx(()=>[G.dialog?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(T,{modelValue:Q.visible,"onUpdate:modelValue":K[1]||(K[1]=L=>Q.visible=L),title:Q.title,width:"70%",center:"","destroy-on-close":""},{default:e.withCtx(()=>[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.mergeProps({size:e.unref(t).schema.size},f.value,{disabled:e.unref(t).schema.disabled,[S.value.modelName]:a.value,["onUpdate:"+S.value.modelName]:K[0]||(K[0]=L=>a.value=L)}),null,16,["size","disabled"]))]),_:1},8,["modelValue","title"]),e.createVNode(P,{type:"primary",plain:"",onClick:w},{default:e.withCtx(()=>K[3]||(K[3]=[e.createTextVNode("配置")])),_:1})],64)):(e.openBlock(),e.createBlock(e.resolveDynamicComponent(S.value.render),e.mergeProps({key:1,size:e.unref(t).schema.size,disabled:e.unref(t).schema.disabled},e.unref(zt)(f.value,e.unref(t).context),{[S.value.modelName]:a.value,["onUpdate:"+S.value.modelName]:K[2]||(K[2]=L=>a.value=L)}),null,16,["size","disabled"]))]),_:2},[G.hideLabel?void 0:{name:"label",fn:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass([e.unref(ke)("form-item-label"),G.label&&`${G.name}-label`])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(t).schema.labelBold&&"font-weight: bold")},e.toDisplayString(N(G.label)),5),G.help?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ke)("form-item-label-ico"))},[e.createVNode(Z,{effect:"dark",content:G.help},{default:e.withCtx(()=>[e.createElementVNode("div",null,[e.createVNode(e.unref(te),{name:"help"})])]),_:1},8,["content"])],2)):e.createCommentVNode("",!0),e.unref(t).schema.labelSuffix?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(e.unref(ke)("form-item-label-suffix"))},e.toDisplayString(e.unref(t).schema.labelSuffix),3)):e.createCommentVNode("",!0)],2)]),key:"0"}]),1032,["class","style","prop","label-width","rules"]))],64)):e.createCommentVNode("",!0)}}}),lv={key:0,class:"actions-lt"},cv={class:"canvas-move",size:"small",type:"primary"},gv={key:1,class:"hidden-ico"},uv={key:2,class:"actions-rb"},dv=["onClick"],hv={key:3,class:"layout-title"},pv=e.defineComponent({__name:"CanvasItem",props:{data:{}},setup(n){const A=n,t=Wt(),Q=Fi()[A.data.component],w=e.computed(()=>{var K;return{[ke("canvas-item")]:!0,active:A.data.designKey===((K=t.current)==null?void 0:K.designKey),hover:A.data.designKey===t.hoverKey,mask:A.data.designKey===t.hoverKey&&!A.data.children,collapse:f.value}}),a=()=>{A.data.designKey&&t.updateHoverKey(A.data.designKey)},b=()=>{t.updateHoverKey("")},S=K=>{t.updateCurrent(K),t.rightTab="attr"},f=e.ref(!1),N=()=>{f.value=!f.value},G=[{icon:"copy",handle:K=>{const Z=Pg(t.list,K.designKey);t.updateList(Z)}},{icon:"delete",bg:"var(--el-color-danger)",handle:K=>{const Z=bc(t.list,T=>T.designKey!==K.designKey);t.updateList(Z)}}];return(K,Z)=>{var T,P;return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(w.value),onClick:Z[0]||(Z[0]=e.withModifiers(_=>S(K.data),["stop"])),onMousemove:e.withModifiers(a,["stop"]),onMouseleave:e.withModifiers(b,["stop"])},[K.data.designKey===((T=e.unref(t).current)==null?void 0:T.designKey)?(e.openBlock(),e.createElementBlock("div",lv,[e.createElementVNode("div",cv,[e.createVNode(e.unref(te),{name:"move"})]),e.createElementVNode("div",{class:"canvas-collapse",size:"small",type:"primary",onClick:N},[e.createVNode(e.unref(te),{name:"select"})])])):e.createCommentVNode("",!0),K.data.hidden?(e.openBlock(),e.createElementBlock("div",gv,[e.createVNode(e.unref(te),{name:"hidden"})])):e.createCommentVNode("",!0),K.data.designKey===((P=e.unref(t).current)==null?void 0:P.designKey)?(e.openBlock(),e.createElementBlock("ul",uv,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(G,({icon:_,handle:m,bg:L})=>e.createElementVNode("li",{class:"actions-rb-item",onClick:e.withModifiers(k=>m(K.data),["stop"]),key:_,style:e.normalizeStyle({backgroundColor:L})},[e.createVNode(e.unref(te),{name:_},null,8,["name"])],12,dv)),64))])):e.createCommentVNode("",!0),e.unref(Q).lbTitle?(e.openBlock(),e.createElementBlock("div",hv,e.toDisplayString(e.unref(Q).title),1)):e.createCommentVNode("",!0),e.createVNode(Ji,e.mergeProps(K.data,{props:K.data.props}),null,16,["props"])],34)}}}),gl=e.defineComponent({__name:"CanvasGroup",props:{list:{},style:{},class:{},emptyText:{default:"请拖入子字段"},emptySize:{default:12}},setup(n){const A=n,t=Wt(),i=Q=>{const w=Q.item._underlying_vm_;t.updateCurrent(Ca(t.list,w.designKey)),t.hoverKey=w.designKey,t.rightTab="attr",t.handleEmit("add",w)};return(Q,w)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(ke)("canvas-group")),style:e.normalizeStyle({overflow:Q.list.length?"auto":"hidden"})},[Q.list.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(e.unref(ke)("canvas-group-empty")),style:e.normalizeStyle({fontSize:Q.emptySize+"px"})},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("canvas-group-empty-ico"))},[e.createVNode(e.unref(te),{name:"add"})],2),e.createElementVNode("p",null,e.toDisplayString(Q.emptyText),1)],6)),e.createVNode(e.unref(Md),{list:Q.list,group:"formDesign",itemKey:"name","ghost-class":e.unref(ke)("canvas-group-ghost"),class:e.normalizeClass([e.unref(ke)("canvas-group-draggable"),A.class]),style:e.normalizeStyle(Q.style),animation:300,handle:".canvas-move","force-fallback":"",onAdd:i},{item:e.withCtx(({element:a})=>[a.designKey?(e.openBlock(),e.createBlock(pv,{key:0,data:a},null,8,["data"])):e.createCommentVNode("",!0)]),_:1},8,["list","ghost-class","class","style"])],6))}}),Bv={key:1},Sn=e.defineComponent({__name:"FormItemGroup",props:{list:{}},setup(n){const A=ut();return(t,i)=>e.unref(A).design?(e.openBlock(),e.createBlock(gl,{key:0,list:t.list},null,8,["list"])):(e.openBlock(),e.createElementBlock("div",Bv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.list,Q=>(e.openBlock(),e.createBlock(Ji,e.mergeProps({key:Q.name,ref_for:!0},Q),null,16))),128))]))}}),Cv={key:0,class:"btn-render-wrapper"},Zi=JA(e.defineComponent({__name:"ButtonRender",props:{btns:{}},setup(n){const A=e.inject("ruleModule",void 0),t=e.inject("pageMethodMap",{}),i=e.ref({}),Q=async w=>{if(w.onClick&&A){try{i.value[w.key]=!0,await A[w.onClick](t)}catch(a){console.error(a)}i.value[w.key]=!1}};return(w,a)=>{const b=e.resolveComponent("el-button");return w.btns&&w.btns.length>0?(e.openBlock(),e.createElementBlock("div",Cv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.btns,S=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:S.key},[S.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(b,{key:0,onClick:f=>Q(S),disabled:S.disabled,type:S.type,text:S.isTextBtn,link:S.isLinkBtn,plain:S.isPlainBtn||S.type!=="primary",color:S.color,loading:i.value[S.key]},{default:e.withCtx(()=>[S.icon?(e.openBlock(),e.createBlock($e,{key:0,name:S.icon.name,color:S.icon.color,class:e.normalizeClass({"btn-icon":S.text||S.label})},null,8,["name","color","class"])):e.createCommentVNode("",!0),e.createTextVNode(" "+e.toDisplayString(S.text||S.label),1)]),_:2},1032,["onClick","disabled","type","text","link","plain","color","loading"]))],64))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-d29b257a"]]),Ev={key:0,class:"dropdown-render-wrapper"},Qv=JA(e.defineComponent({__name:"dropdownRender",props:{dropdowns:{}},setup(n){const A=e.inject("ruleModule",void 0),t=e.inject("pageMethodMap",{}),i=async(Q,w)=>{if(w.onClick&&A)try{await A[w.onClick](t,Q)}catch(a){console.error(a)}};return(Q,w)=>{const a=e.resolveComponent("el-button"),b=e.resolveComponent("el-dropdown-item"),S=e.resolveComponent("el-dropdown-menu"),f=e.resolveComponent("el-dropdown");return Q.dropdowns&&Q.dropdowns.length>0?(e.openBlock(),e.createElementBlock("div",Ev,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.dropdowns,N=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:N.key},[N.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(f,{key:0,disabled:N.disabled},{dropdown:e.withCtx(()=>[e.createVNode(S,null,{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(N.options,G=>(e.openBlock(),e.createBlock(b,{key:G.value,command:G.value,onClick:K=>i(G,N)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(G.label),1)]),_:2},1032,["command","onClick"]))),128))]),_:2},1024)]),default:e.withCtx(()=>[e.createVNode(a,{plain:"",color:N.color},{default:e.withCtx(()=>[e.createElementVNode("span",null,e.toDisplayString(N.text),1),e.createVNode($e,{name:"icon-gongnengjixiajiantou"})]),_:2},1032,["color"])]),_:2},1032,["disabled"]))],64))),128))])):e.createCommentVNode("",!0)}}}),[["__scopeId","data-v-37daa772"]]),Sd=n=>{let A=[];for(const t of n)t.component==="Table"&&t.name&&A.push(t.name),t.children&&Array.isArray(t.children)&&(A=A.concat(Sd(t.children)));return A},xd=n=>{var t;if(!(n!=null&&n.content))return[];let A=[];for(const i of n.content)i.type==="form"&&((t=i.schema)!=null&&t.items)&&(A=A.concat(Sd(i.schema.items)));return A},Nd=Symbol("RefManager"),mv=()=>{const n=new Map,A=new Map;function t(i){const Q=i.sort().join(","),w=A.get(Q);w&&w.resolve&&i.every(b=>n.has(b))&&(w.resolve(),w.resolve=null)}return{register:(i,Q)=>{n.set(i,Q);for(const[w]of A)t(w.split(","))},unregister:i=>{n.delete(i)},findRef:i=>n.get(i),waitForKeys:i=>{if(i.every(b=>n.has(b)))return Promise.resolve();const Q=i.sort().join(",");if(A.has(Q))return A.get(Q).promise;let w=null;const a=new Promise(b=>{w=b});return A.set(Q,{promise:a,resolve:w}),t(i),a}}},Iv=()=>{const n=mv();return e.provide(Nd,n),n},Fd=()=>{const n=e.inject(Nd);if(!n)throw new Error("RefManager not provided. Make sure to call provideRefManager first.");return n},fv=(n,A)=>{const t=Fd();return t.register(n,A),()=>{t.unregister(n)}},wv=["id"],Ut=e.defineComponent({__name:"index",props:e.mergeModels({schema:{},schemaContext:{},design:{type:Boolean},footer:{type:Boolean},read:{type:Boolean},pageRulePath:{}},{modelValue:{default:{}},modelModifiers:{},realValues:{default:{}},realValuesModifiers:{},schema:{default:e.reactive({labelWidth:150,labelPosition:"right",scrollToError:!0,size:"default",items:[]})},schemaModifiers:{}}),emits:e.mergeModels(["finish","failed","reset"],["update:modelValue","update:realValues","update:schema"]),setup(n,{expose:A,emit:t}){const i=n,Q=e.inject("ruleMap",{}),w=e.inject("pageMethodMap",{}),a=e.computed(()=>i.schema.rulePath&&Q[i.schema.rulePath]?i.schema.rulePath:i.pageRulePath);a.value&&e.provide("ruleModule",Q[a.value]);const b=t,S=e.ref(),f=e.useModel(n,"modelValue"),N=e.useModel(n,"realValues"),G=(x,R,$)=>{$===void 0?f.value[x]=R:(N.value[x]=R,f.value[x]=$)},K=x=>f.value[x],Z=(x,R)=>{let $=E(P.value.items,x);$&&$.props&&($.props.disabled=!R)},T=(x,R)=>{let $=E(P.value.items,x);$&&($.hidden=!R)},P=e.useModel(n,"schema");if(P.value.onValuesChange){const x=e.ref(JSON.stringify(f.value));e.watch(()=>f.value,R=>{x.value=JSON.stringify(R)},{deep:!0}),e.watch(()=>x.value,(R,$)=>{const j=JSON.parse(R),J=JSON.parse($),Y=Object.keys(j).filter(q=>JSON.stringify(j[q])!==JSON.stringify(J[q]));if(!(!a.value||!P.value.onValuesChange))try{Q[a.value][P.value.onValuesChange](w,Y,J,j)}catch(q){console.error(q)}})}const _=e.computed({get(){return i.design,P.value.items},set(x){P.value.items=x}}),m=e.reactive({}),L=e.ref({}),k=e.ref(!1),y=$n(),C=e.computed(()=>({...i.schemaContext,$values:f.value,$selectData:m,$locale:y.value})),u=Fd();e.onMounted(async()=>{var $,j;if(($=i.schema)!=null&&$.initialValues){const J=(j=i.schema)==null?void 0:j.initialValues;s(J),f.value=Oe.mergeWith(J,f.value,(Y,q)=>{if(Array.isArray(Y))return q})}await e.nextTick();const x=xd({content:[{type:"form",schema:P.value}]});if(await u.waitForKeys(x),!P.value||!P.value.onMounted||!a.value)return;const R=P.value.onMounted;try{Q[a.value][R](w)}catch(J){console.error(J)}}),e.onActivated(()=>{if(!P.value||!P.value.onActivated||!a.value)return;const x=P.value.onActivated;try{Q[a.value][x](w)}catch(R){console.error(R)}});const p=()=>{var x;return(x=S.value)==null?void 0:x.validate()},l=x=>{const R=["Input","InputNumber","Select","DatePicker","TextArea","SearchInput","SearchSelect","Radio","SelectInput","Upload"],$=j=>{j.forEach(J=>{R.includes(J.component)?J.props&&(J.props.disabled=x):J.children&&$(J.children)})};$(P.value.items)},g=()=>{var x;(x=p())==null||x.then(()=>{b("finish",f.value)}).catch(R=>{b("failed",R)})},r=x=>{if(b("reset"),x){let R=Oe.cloneDeep(f.value);x.forEach($=>{R=_i(R,$,ns(L.value,$))}),f.value=R}else f.value=Oe.cloneDeep(e.toRaw(L.value))},d=(x,R=!0)=>{R?Object.assign(f.value,x):f.value=x},h=(x,R)=>{m[x]=R},s=x=>{L.value={...x}},o=()=>L.value,B=x=>{k.value=x},E=(x,R)=>{for(const $ of x){if($.name===R)return $;if($.children&&$.children.length>0){const j=E($.children,R);if(j)return j}}return null},M=e.useTemplateRef("rootRef"),D=e.reactive({...e.toRefs(i),formValues:f,formRealValues:N,selectData:m,initialValues:L,context:C,vCodePass:k,updateFormValues:d,updateSelectData:h,updateInitialValues:s,getInitialValues:o,updateVCodePass:B,validate:p,resetFields:r,submit:g,setDisabled:l,findItemByName:E,setFieldEditSts:Z,setFieldVisibleSts:T,setFieldValue:G,getFieldValue:K,rootRef:M,type:"form"});return e.provide(Fg,D),A(D),(x,R)=>{const $=e.resolveComponent("el-form");return e.openBlock(),e.createElementBlock("div",{ref_key:"rootRef",ref:M,id:P.value.key},[P.value.hidden?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock($,e.mergeProps({key:0,model:f.value,"label-position":P.value.labelPosition,size:P.value.size,"hide-required-asterisk":P.value.hideRequiredAsterisk,"scroll-to-error":P.value.scrollToError,"require-asterisk-position":"right",ref_key:"formRef",ref:S},x.$attrs,{onSubmit:R[0]||(R[0]=e.withModifiers(()=>{},["prevent"]))}),{default:e.withCtx(()=>[e.renderSlot(x.$slots,"default"),e.createVNode(e.unref(Sn),{list:_.value,"empty-text":e.unref(y).canvas.emptyTip,"empty-size":18},null,8,["list","empty-text"]),e.createVNode(Gw)]),_:3},16,["model","label-position","size","hide-required-asterisk","scroll-to-error"]))],8,wv)}}}),Dv=({elements:n,lang:A,omits:t})=>{const i=a=>Object.values(n).filter(b=>b.type===a&&!t.includes(b.component)).sort((b,S)=>b.order-S.order).map(b=>({...b,title:A==="zh"?b.title:b.component})),Q=Lg[A];return[{title:Q.menus.basicTitle,children:i("basic")},{title:Q.menus.highTitle,children:i("high")},{title:Q.menus.layoutTitle,children:i("layout")},{title:Q.menus.assistTitle,children:i("assist")}]},bv=e.defineComponent({__name:"index",setup(n){var N;const A=e.ref(!1),t=Wt(),i=Fi(),Q=$n(),w=Ea(),a=(N=t.templates)!=null&&N.length?t.templates:DC,b=e.computed(()=>Dv({elements:i,omits:t.omitMenus||[],lang:w.value})),S=G=>{t.updateSchema(G)},f=G=>{const K={component:G.component,designKey:`design-${Yn(4)}`,name:`form-${Yn(4)}`};return G.type==="layout"&&(K.children=[]),K};return(G,K)=>{const Z=e.resolveComponent("el-button"),T=e.resolveComponent("el-space"),P=e.resolveComponent("el-drawer");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(ke)("form-design-left")),style:e.normalizeStyle({overflow:A.value?"hidden":"auto"})},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("template"))},[e.createVNode(Z,{class:e.normalizeClass(e.unref(ke)("template-button")),size:"small",onClick:K[0]||(K[0]=_=>A.value=!0)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(Q).menus.useTemplateBtn),1)]),_:1},8,["class"]),e.createVNode(P,{modelValue:A.value,"onUpdate:modelValue":K[1]||(K[1]=_=>A.value=_),title:"模板列表",size:"70%",class:e.normalizeClass(e.unref(ke)("template-drawer")),"append-to-body":!1},{default:e.withCtx(()=>[e.createVNode(T,{wrap:"",direction:"vertical",alignment:"start"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({name:_,schema:m})=>(e.openBlock(),e.createBlock(Z,{key:_,onClick:L=>S(m)},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(_),1)]),_:2},1032,["onClick"]))),128))]),_:1})]),_:1},8,["modelValue","class"])],2),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(b.value,({title:_,children:m})=>(e.openBlock(),e.createElementBlock("div",{key:_,class:e.normalizeClass(e.unref(ke)("menu"))},[e.createElementVNode("h4",{class:e.normalizeClass(e.unref(ke)("menu-title"))},e.toDisplayString(_),3),e.createVNode(e.unref(Md),{class:e.normalizeClass(e.unref(ke)("menu-list")),list:m,group:{name:"formDesign",pull:"clone",put:!1},sort:!1,"ghost-class":e.unref(ke)("menu-list-ghost"),"drag-class":e.unref(ke)("menu-list-drag"),"fallback-class":e.unref(ke)("menu-list-fallback"),"item-key":"designKey",clone:f},{item:e.withCtx(({element:L})=>[e.createElementVNode("li",{class:e.normalizeClass(e.unref(ke)("menu-list-item"))},[e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("menu-list-item-ico"))},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(L.icon),{class:"ico-content"}))],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(ke)("menu-list-item-name")),style:e.normalizeStyle({fontSize:e.unref(w)==="zh"?"12px":"10px"})},e.toDisplayString(L.title),7)],2)]),_:2},1032,["class","list","ghost-class","drag-class","fallback-class"])],2))),128))],6)}}}),yv=n=>`<template>
97
97
  <FormRender v-model="formValues" :schema="schema" ref="formRef" />
98
98
  <el-button @click="handleSubmit">提交</el-button>
99
99
  </template>
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, ref as g, inject as h, resolveComponent as d, openBlock as s, createBlock as i, mergeProps as M, withCtx as c, createElementVNode as o, createElementBlock as n, createVNode as t, unref as p, normalizeClass as $, createCommentVNode as I, toDisplayString as v, Fragment as u, renderList as C, withDirectives as E, vShow as V } from "vue";
2
- import { _ as D, I as k, B as F, a as N, b as S } from "./index-1TVN549d.js";
2
+ import { _ as D, I as k, B as F, a as N, b as S } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const j = { class: "card-header" }, H = { class: "card-btns" }, L = { class: "card-sub-header" }, P = /* @__PURE__ */ B({
5
5
  __name: "Card",
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as f, mergeModels as g, useModel as v, inject as r, resolveComponent as y, openBlock as M, createBlock as C, mergeProps as h, unref as d } from "vue";
2
2
  import "element-plus";
3
- import { u as b } from "./useSelect-CtwRemo0.js";
3
+ import { u as b } from "./useSelect-Vv5vdsqq.js";
4
4
  const k = /* @__PURE__ */ f({
5
5
  __name: "Cascader",
6
6
  props: /* @__PURE__ */ g({
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as w, mergeModels as z, useModel as D, watch as F, resolveComponent as t, resolveDirective as M, unref as a, openBlock as l, createElementBlock as s, toDisplayString as I, withDirectives as P, createBlock as r, mergeProps as S, withCtx as b, Fragment as y, renderList as v, createCommentVNode as f } from "vue";
2
2
  import "element-plus";
3
- import { u as j } from "./index-1TVN549d.js";
4
- import { u as E } from "./useSelect-CtwRemo0.js";
3
+ import { u as j } from "./index-Dbtt2wXu.js";
4
+ import { u as E } from "./useSelect-Vv5vdsqq.js";
5
5
  const L = { key: 0 }, q = /* @__PURE__ */ w({
6
6
  __name: "Checkbox",
7
7
  props: /* @__PURE__ */ z({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as u, ref as f, onMounted as _, watch as h, resolveComponent as c, openBlock as o, createBlock as i, mergeProps as C, withCtx as r, createElementBlock as E, Fragment as k, renderList as v, createVNode as m, unref as V } from "vue";
2
- import { a as y } from "./index-1TVN549d.js";
2
+ import { a as y } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  import { _ as B } from "./Title.vue_vue_type_script_setup_true_lang-Ceco_9-w.js";
5
5
  const x = /* @__PURE__ */ u({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as s, mergeModels as p, useModel as u, resolveComponent as i, openBlock as t, createElementBlock as d, toDisplayString as c, createBlock as y, mergeProps as f } from "vue";
2
- import { u as v } from "./index-1TVN549d.js";
2
+ import { u as v } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const k = { key: 0 }, K = /* @__PURE__ */ s({
5
5
  __name: "Component",
@@ -2,7 +2,7 @@ var u = Object.defineProperty;
2
2
  var m = (o, e, t) => e in o ? u(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t;
3
3
  var a = (o, e, t) => m(o, typeof e != "symbol" ? e + "" : e, t);
4
4
  import { defineComponent as g, mergeModels as v, useModel as I, ref as c, onMounted as w, resolveComponent as C, openBlock as y, createElementBlock as _, createVNode as V, createElementVNode as M } from "vue";
5
- import { u as b, b as x } from "./index-1TVN549d.js";
5
+ import { u as b, b as x } from "./index-Dbtt2wXu.js";
6
6
  import "element-plus";
7
7
  function S() {
8
8
  return "a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",");
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as w, inject as C, ref as v, watch as $, resolveComponent as m, openBlock as d, createBlock as y, mergeProps as A, withCtx as f, createElementVNode as c, toDisplayString as B, createElementBlock as k, createCommentVNode as _, Fragment as N, renderList as E, unref as I, withModifiers as P, createVNode as V } from "vue";
2
- import { f as F, I as j, b as D } from "./index-1TVN549d.js";
2
+ import { f as F, I as j, b as D } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const R = { class: "custom-tree-node" }, S = { class: "tree-node-text" }, q = { class: "tree-node-label" }, z = {
5
5
  key: 0,
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as b, mergeModels as V, useModel as B, resolveComponent as d, openBlock as l, createBlock as n, createSlots as C, withCtx as a, createElementBlock as m, Fragment as w, createVNode as E, unref as r, createElementVNode as o, createTextVNode as i, toDisplayString as p, createCommentVNode as u } from "vue";
2
2
  import { ElMessage as M, ElMessageBox as N } from "element-plus";
3
- import { _ as f } from "./index-1TVN549d.js";
3
+ import { _ as f } from "./index-Dbtt2wXu.js";
4
4
  const $ = {
5
5
  key: 0,
6
6
  style: { "min-width": "300px" }
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as d, mergeModels as m, useModel as r, resolveComponent as u, openBlock as p, createBlock as i, mergeProps as c, unref as f } from "vue";
2
- import { u as V } from "./index-1TVN549d.js";
2
+ import { u as V } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const B = /* @__PURE__ */ d({
5
5
  __name: "Component",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as $, ref as v, computed as N, watch as L, onMounted as x, onBeforeUnmount as F, openBlock as T, createElementBlock as E, mergeModels as J, useModel as A, resolveComponent as G, unref as W, createElementVNode as P, createBlock as X, withCtx as D, createTextVNode as I, createCommentVNode as Y, createVNode as R } from "vue";
2
- import { b as H, u as K, c as Q } from "./index-1TVN549d.js";
2
+ import { b as H, u as K, c as Q } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const Z = $({
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as D, inject as V, ref as I, resolveComponent as C, openBlock as n, createElementBlock as s, createElementVNode as i, normalizeClass as y, createBlock as r, createCommentVNode as m, toDisplayString as M, withCtx as f, Fragment as w, renderList as $, createTextVNode as j, createVNode as p, unref as T, withDirectives as P, vShow as U } from "vue";
2
- import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-1TVN549d.js";
2
+ import { u as q, I as u, B as A, a as R, h as G, b as H } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const J = { class: "crm-curd-card" }, K = { class: "left-part" }, O = { class: "title" }, Q = { class: "right-part" }, W = {
5
5
  key: 0,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as n, mergeModels as s, useModel as p, openBlock as t, createElementBlock as r, createBlock as u, resolveDynamicComponent as d, mergeProps as c } from "vue";
2
- import { b as i } from "./index-1TVN549d.js";
2
+ import { b as i } from "./index-Dbtt2wXu.js";
3
3
  const f = {
4
4
  key: 0,
5
5
  class: "empty"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as S, mergeModels as j, useModel as G, ref as T, computed as M, watch as H, onMounted as J, provide as K, resolveComponent as b, openBlock as l, createElementBlock as _, unref as m, createBlock as s, Fragment as $, renderList as g, withCtx as r, createElementVNode as C, createVNode as v, mergeProps as R, createCommentVNode as y, toDisplayString as F, createTextVNode as O, h as Q } from "vue";
2
- import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-1TVN549d.js";
2
+ import { u as U, l as w, d as W, e as V, _ as L, f as X } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const Y = { class: "vfc-formList" }, Z = { key: 1 }, x = { class: "list-item-content" }, ee = { class: "card-header" }, le = { style: { "margin-top": "5px" } }, oe = /* @__PURE__ */ S({
5
5
  __name: "FormList",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, computed as a, openBlock as d, createBlock as e, unref as r, normalizeStyle as l } from "vue";
2
- import { a as m } from "./index-1TVN549d.js";
2
+ import { a as m } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const f = /* @__PURE__ */ o({
5
5
  __name: "Grid",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as o, computed as l, openBlock as i, createBlock as p, unref as r, normalizeStyle as s } from "vue";
2
- import { a as c, b as m } from "./index-1TVN549d.js";
2
+ import { a as c, b as m } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const f = /* @__PURE__ */ o({
5
5
  __name: "Inline",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as At, openBlock as mt, createElementBlock as wt, mergeProps as St, createElementVNode as pt, renderSlot as It, normalizeClass as bt, mergeModels as Tt, useModel as Et, createBlock as Rt, unref as $t, withCtx as _t, createVNode as Lt } from "vue";
2
- import { b as xt, g as Nt } from "./index-1TVN549d.js";
2
+ import { b as xt, g as Nt } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const Mt = /* @__PURE__ */ At({
5
5
  __name: "Disabled",
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, openBlock as e, createElementBlock as o, Fragment as a, renderList as d, createElementVNode as s, normalizeStyle as i, toDisplayString as l, normalizeClass as u, createTextVNode as g, createCommentVNode as v } from "vue";
2
- import { b as y } from "./index-1TVN549d.js";
2
+ import { b as y } from "./index-Dbtt2wXu.js";
3
3
  const b = { class: "log-list" }, f = { class: "title-part" }, h = { class: "title" }, m = { class: "sub-title" }, k = { class: "content" }, C = { key: 0 }, L = /* @__PURE__ */ p({
4
4
  __name: "LogList",
5
5
  props: {
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, inject as i, provide as d, ref as f, openBlock as e, createElementBlock as o, unref as n, createBlock as m, Fragment as _, renderList as $, mergeProps as b } from "vue";
2
- import { u as j, d as h, e as k } from "./index-1TVN549d.js";
2
+ import { u as j, d as h, e as k } from "./index-Dbtt2wXu.js";
3
3
  import "element-plus";
4
4
  const v = { class: "vfc-ObjGroup" }, B = {
5
5
  key: 1,
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as B, resolveComponent as M, openBlock as l, createBlock as O, withCtx as E, createVNode as g, createElementVNode as i, createElementBlock as r, Fragment as u, renderList as b, toDisplayString as y, createCommentVNode as I, ref as D, inject as N, watchEffect as A, onMounted as R, normalizeStyle as S, unref as $ } from "vue";
2
- import { j as U, $ as z, _ as F, b as j } from "./index-1TVN549d.js";
2
+ import { j as U, $ as z, _ as F, b as j } from "./index-Dbtt2wXu.js";
3
3
  const x = { class: "content" }, K = { class: "product-list" }, L = { class: "attribute-list" }, V = {
4
4
  key: 0,
5
5
  class: "attribute-list-item"
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as p, resolveComponent as m, openBlock as n, createElementBlock as s, createVNode as l, withCtx as a, Fragment as u, renderList as f, createBlock as g, createElementVNode as e, toDisplayString as r, createTextVNode as h, unref as k, createCommentVNode as N } from "vue";
2
- import { I as v, _ as C, b as V } from "./index-1TVN549d.js";
2
+ import { I as v, _ as C, b as V } from "./index-Dbtt2wXu.js";
3
3
  const b = { class: "progress" }, y = { class: "timeline-content" }, B = { class: "timeline-content__title" }, E = {
4
4
  key: 0,
5
5
  class: "empty-content"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as T, mergeModels as _, useModel as w, inject as g, resolveComponent as i, resolveDirective as z, openBlock as l, createElementBlock as c, toDisplayString as F, unref as s, withDirectives as I, createBlock as m, mergeProps as K, withCtx as h, createVNode as N, Fragment as k, renderList as M } from "vue";
2
- import { u as P } from "./index-1TVN549d.js";
3
- import { u as $ } from "./useSelect-CtwRemo0.js";
2
+ import { u as P } from "./index-Dbtt2wXu.js";
3
+ import { u as $ } from "./useSelect-Vv5vdsqq.js";
4
4
  const j = { key: 0 }, R = /* @__PURE__ */ T({
5
5
  __name: "Radio",
6
6
  props: /* @__PURE__ */ _({
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as w, mergeModels as A, useModel as F, inject as S, resolveComponent as f, resolveDirective as I, openBlock as o, createElementBlock as i, toDisplayString as b, unref as u, withDirectives as N, createBlock as k, mergeProps as j, withCtx as y, Fragment as P, renderList as $, createTextVNode as E, createVNode as C } from "vue";
2
- import { u as L, _ as O, b as T } from "./index-1TVN549d.js";
3
- import { u as U } from "./useSelect-CtwRemo0.js";
2
+ import { u as L, _ as O, b as T } from "./index-Dbtt2wXu.js";
3
+ import { u as U } from "./useSelect-Vv5vdsqq.js";
4
4
  const q = { key: 0 }, z = { key: 0 }, G = { key: 1 }, H = {
5
5
  key: 1,
6
6
  class: "search-select-wrapper"
@@ -1,6 +1,6 @@
1
1
  import { defineComponent as _, mergeModels as k, useModel as B, inject as f, computed as D, resolveComponent as y, resolveDirective as S, openBlock as s, createElementBlock as i, toDisplayString as v, createBlock as b, mergeProps as A, withCtx as g, withDirectives as F, Fragment as j, renderList as w, unref as h, createTextVNode as I } from "vue";
2
- import { u as N } from "./index-1TVN549d.js";
3
- import { u as P } from "./useSelect-CtwRemo0.js";
2
+ import { u as N } from "./index-Dbtt2wXu.js";
3
+ import { u as P } from "./useSelect-Vv5vdsqq.js";
4
4
  const $ = { key: 0 }, E = { style: { "min-height": "32px" } }, U = /* @__PURE__ */ _({
5
5
  __name: "Select",
6
6
  props: /* @__PURE__ */ k({
@@ -1,5 +1,5 @@
1
1
  import { defineComponent as be, computed as _, inject as k, ref as v, useTemplateRef as Se, readonly as ze, toRefs as Be, onMounted as Re, nextTick as Pe, onActivated as _e, onUnmounted as Ne, resolveComponent as B, openBlock as u, createElementBlock as g, normalizeClass as N, withDirectives as G, createElementVNode as f, createVNode as b, unref as R, withCtx as h, createBlock as S, createCommentVNode as m, Fragment as P, renderList as H, toDisplayString as M, withModifiers as Me, vShow as K, mergeProps as Te } from "vue";
2
- import { $ as De, f as L, i as $e, _ as Fe, I as Ae, C as Ee, b as Ve } from "./index-1TVN549d.js";
2
+ import { $ as De, f as L, i as $e, _ as Fe, I as Ae, C as Ee, b as Ve } from "./index-Dbtt2wXu.js";
3
3
  import { ElTable as Ue } from "element-plus";
4
4
  const je = ["id"], Ge = { class: "empty-content" }, He = ["title"], Ke = ["title", "onClick"], Le = ["title"], We = { class: "row-btn-wrapper" }, qe = /* @__PURE__ */ be({
5
5
  __name: "Table",