yxuse 1.0.80 → 1.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.cjs2.js CHANGED
@@ -17,4 +17,4 @@ usage: app.provide(ID_INJECTION_KEY, {
17
17
  * @author RubaXa <trash@rubaxa.org>
18
18
  * @author owenm <owen23355@gmail.com>
19
19
  * @license MIT
20
- */function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(o){Ar(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function dt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(e){return typeof e}:dt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(t)}function Ar(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function me(){return me=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)}function Mr(t,e){if(t==null)return{};var n={},o=Object.keys(t),a,i;for(i=0;i<o.length;i++)a=o[i],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function Pr(t,e){if(t==null)return{};var n=Mr(t,e),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var Or="1.15.0";function he(t){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(t)}var ge=he(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),et=he(/Edge/i),En=he(/firefox/i),Ge=he(/safari/i)&&!he(/chrome/i)&&!he(/android/i),$n=he(/iP(ad|od|hone)/i),Hn=he(/chrome/i)&&he(/android/i),Ln={capture:!1,passive:!1};function T(t,e,n){t.addEventListener(e,n,!ge&&Ln)}function C(t,e,n){t.removeEventListener(e,n,!ge&&Ln)}function gt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function Vr(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function le(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&gt(t,e):gt(t,e))||o&&t===n)return t;if(t===n)break}while(t=Vr(t))}return null}var xn=/\s+/g;function G(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(xn," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(xn," ")}}function w(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function Ve(t,e){var n="";if(typeof t=="string")n=t;else do{var o=w(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function jn(t,e,n){if(t){var o=t.getElementsByTagName(e),a=0,i=o.length;if(n)for(;a<i;a++)n(o[a],a);return o}return[]}function ce(){var t=document.scrollingElement;return t||document.documentElement}function O(t,e,n,o,a){if(!(!t.getBoundingClientRect&&t!==window)){var i,s,l,c,u,f,d;if(t!==window&&t.parentNode&&t!==ce()?(i=t.getBoundingClientRect(),s=i.top,l=i.left,c=i.bottom,u=i.right,f=i.height,d=i.width):(s=0,l=0,c=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(a=a||t.parentNode,!ge))do if(a&&a.getBoundingClientRect&&(w(a,"transform")!=="none"||n&&w(a,"position")!=="static")){var _=a.getBoundingClientRect();s-=_.top+parseInt(w(a,"border-top-width")),l-=_.left+parseInt(w(a,"border-left-width")),c=s+i.height,u=l+i.width;break}while(a=a.parentNode);if(o&&t!==window){var v=Ve(a||t),y=v&&v.a,m=v&&v.d;v&&(s/=m,l/=y,d/=y,f/=m,c=s+f,u=l+d)}return{top:s,left:l,bottom:c,right:u,width:d,height:f}}}function kn(t,e,n){for(var o=ke(t,!0),a=O(t)[e];o;){var i=O(o)[n],s=void 0;if(n==="top"||n==="left"?s=a>=i:s=a<=i,!s)return o;if(o===ce())break;o=ke(o,!1)}return!1}function Re(t,e,n,o){for(var a=0,i=0,s=t.children;i<s.length;){if(s[i].style.display!=="none"&&s[i]!==S.ghost&&(o||s[i]!==S.dragged)&&le(s[i],n.draggable,t,!1)){if(a===e)return s[i];a++}i++}return null}function Jt(t,e){for(var n=t.lastElementChild;n&&(n===S.ghost||w(n,"display")==="none"||e&&!gt(n,e));)n=n.previousElementSibling;return n||null}function ee(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==S.clone&&(!e||gt(t,e))&&n++;return n}function Cn(t){var e=0,n=0,o=ce();if(t)do{var a=Ve(t),i=a.a,s=a.d;e+=t.scrollLeft*i,n+=t.scrollTop*s}while(t!==o&&(t=t.parentNode));return[e,n]}function Fr(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n)}return-1}function ke(t,e){if(!t||!t.getBoundingClientRect)return ce();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=w(n);if(n.clientWidth<n.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ce();if(o||e)return n;o=!0}}while(n=n.parentNode);return ce()}function zr(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Bt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var qe;function Yn(t,e){return function(){if(!qe){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),qe=setTimeout(function(){qe=void 0},e)}}}function Rr(){clearTimeout(qe),qe=void 0}function Un(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Xn(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var K="Sortable"+new Date().getTime();function $r(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(w(a,"display")==="none"||a===S.ghost)){t.push({target:a,rect:O(a)});var i=ue({},t[t.length-1].rect);if(a.thisAnimationDuration){var s=Ve(a,!0);s&&(i.top-=s.f,i.left-=s.e)}a.fromRect=i}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Fr(t,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var i=!1,s=0;t.forEach(function(l){var c=0,u=l.target,f=u.fromRect,d=O(u),_=u.prevFromRect,v=u.prevToRect,y=l.rect,m=Ve(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&Bt(_,d)&&!Bt(f,d)&&(y.top-d.top)/(y.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(c=Lr(y,_,v,a.options)),Bt(d,f)||(u.prevFromRect=f,u.prevToRect=d,c||(c=a.options.animation),a.animate(u,y,d,c)),c&&(i=!0,s=Math.max(s,c),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},c),u.thisAnimationDuration=c)}),clearTimeout(e),i?e=setTimeout(function(){typeof o=="function"&&o()},s):typeof o=="function"&&o(),t=[]},animate:function(o,a,i,s){if(s){w(o,"transition",""),w(o,"transform","");var l=Ve(this.el),c=l&&l.a,u=l&&l.d,f=(a.left-i.left)/(c||1),d=(a.top-i.top)/(u||1);o.animatingX=!!f,o.animatingY=!!d,w(o,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Hr(o),w(o,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),w(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){w(o,"transition",""),w(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},s)}}}}function Hr(t){return t.offsetWidth}function Lr(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var Ae=[],Nt={initializeByDefault:!0},tt={mount:function(e){for(var n in Nt)Nt.hasOwnProperty(n)&&!(n in e)&&(e[n]=Nt[n]);Ae.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ae.push(e)},pluginEvent:function(e,n,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var i=e+"Global";Ae.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][i]&&n[s.pluginName][i](ue({sortable:n},o)),n.options[s.pluginName]&&n[s.pluginName][e]&&n[s.pluginName][e](ue({sortable:n},o)))})},initializePlugins:function(e,n,o,a){Ae.forEach(function(l){var c=l.pluginName;if(!(!e.options[c]&&!l.initializeByDefault)){var u=new l(e,n,e.options);u.sortable=e,u.options=e.options,e[c]=u,me(o,u.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var s=this.modifyOption(e,i,e.options[i]);typeof s!="undefined"&&(e.options[i]=s)}},getEventProperties:function(e,n){var o={};return Ae.forEach(function(a){typeof a.eventProperties=="function"&&me(o,a.eventProperties.call(n[a.pluginName],e))}),o},modifyOption:function(e,n,o){var a;return Ae.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(a=i.optionListeners[n].call(e[i.pluginName],o))}),a}};function jr(t){var e=t.sortable,n=t.rootEl,o=t.name,a=t.targetEl,i=t.cloneEl,s=t.toEl,l=t.fromEl,c=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,_=t.originalEvent,v=t.putSortable,y=t.extraEventProperties;if(e=e||n&&n[K],!!e){var m,I=e.options,b="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!ge&&!et?m=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(o,!0,!0)),m.to=s||n,m.from=l||n,m.item=a||n,m.clone=i,m.oldIndex=c,m.newIndex=u,m.oldDraggableIndex=f,m.newDraggableIndex=d,m.originalEvent=_,m.pullMode=v?v.lastPutMode:void 0;var E=ue(ue({},y),tt.getEventProperties(o,e));for(var D in E)m[D]=E[D];n&&n.dispatchEvent(m),I[b]&&I[b].call(e,m)}}var Yr=["evt"],Y=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,i=Pr(o,Yr);tt.pluginEvent.bind(S)(e,n,ue({dragEl:p,parentEl:M,ghostEl:x,rootEl:B,nextEl:Ie,lastDownEl:ft,cloneEl:N,cloneHidden:Ee,dragStarted:Ue,putSortable:z,activeSortable:S.active,originalEvent:a,oldIndex:Oe,oldDraggableIndex:Ke,newIndex:q,newDraggableIndex:_e,hideGhostForTarget:Kn,unhideGhostForTarget:Jn,cloneNowHidden:function(){Ee=!0},cloneNowShown:function(){Ee=!1},dispatchSortableEvent:function(l){j({sortable:n,name:l,originalEvent:a})}},i))};function j(t){jr(ue({putSortable:z,cloneEl:N,targetEl:p,rootEl:B,oldIndex:Oe,oldDraggableIndex:Ke,newIndex:q,newDraggableIndex:_e},t))}var p,M,x,B,Ie,ft,N,Ee,Oe,q,Ke,_e,st,z,Pe=!1,vt=!1,bt=[],Ce,ne,At,Mt,Tn,In,Ue,Me,Je,Ze=!1,lt=!1,pt,$,Pt=[],jt=!1,yt=[],St=typeof document!="undefined",ct=$n,Dn=et||ge?"cssFloat":"float",Ur=St&&!Hn&&!$n&&"draggable"in document.createElement("div"),Wn=function(){if(St){if(ge)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Gn=function(e,n){var o=w(e),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=Re(e,0,n),s=Re(e,1,n),l=i&&w(i),c=s&&w(s),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(i).width,f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+O(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=a&&o[Dn]==="none"||s&&o[Dn]==="none"&&u+f>a)?"vertical":"horizontal"},Xr=function(e,n,o){var a=o?e.left:e.top,i=o?e.right:e.bottom,s=o?e.width:e.height,l=o?n.left:n.top,c=o?n.right:n.bottom,u=o?n.width:n.height;return a===l||i===c||a+s/2===l+u/2},Wr=function(e,n){var o;return bt.some(function(a){var i=a[K].options.emptyInsertThreshold;if(!(!i||Jt(a))){var s=O(a),l=e>=s.left-i&&e<=s.right+i,c=n>=s.top-i&&n<=s.bottom+i;if(l&&c)return o=a}}),o},qn=function(e){function n(i,s){return function(l,c,u,f){var d=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(i==null&&(s||d))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(l,c,u,f),s)(l,c,u,f);var _=(s?l:c).options.group.name;return i===!0||typeof i=="string"&&i===_||i.join&&i.indexOf(_)>-1}}var o={},a=e.group;(!a||dt(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=n(a.pull,!0),o.checkPut=n(a.put),o.revertClone=a.revertClone,e.group=o},Kn=function(){!Wn&&x&&w(x,"display","none")},Jn=function(){!Wn&&x&&w(x,"display","")};St&&!Hn&&document.addEventListener("click",function(t){if(vt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),vt=!1,!1},!0);var Te=function(e){if(p){e=e.touches?e.touches[0]:e;var n=Wr(e.clientX,e.clientY);if(n){var o={};for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[K]._onDragOver(o)}}},Gr=function(e){p&&p.parentNode[K]._isOutsideThisEl(e.target)};function S(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=me({},e),t[K]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Gn(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:S.supportPointer!==!1&&"PointerEvent"in window&&!Ge,emptyInsertThreshold:5};tt.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);qn(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:Ur,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?T(t,"pointerdown",this._onTapStart):(T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),bt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),me(this,$r())}S.prototype={constructor:S,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Me=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,p):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,a=this.options,i=a.preventOnFilter,s=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,f=a.filter;if(na(o),!p&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||a.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ge&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=le(c,a.draggable,o,!1),!(c&&c.animated)&&ft!==c)){if(Oe=ee(c),Ke=ee(c,a.draggable),typeof f=="function"){if(f.call(this,e,c,this)){j({sortable:n,rootEl:u,name:"filter",targetEl:c,toEl:o,fromEl:o}),Y("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=le(u,d.trim(),o,!1),d)return j({sortable:n,rootEl:d,name:"filter",targetEl:c,fromEl:o,toEl:o}),Y("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}a.handle&&!le(u,a.handle,o,!1)||this._prepareDragStart(e,l,c)}}},_prepareDragStart:function(e,n,o){var a=this,i=a.el,s=a.options,l=i.ownerDocument,c;if(o&&!p&&o.parentNode===i){var u=O(o);if(B=i,p=o,M=p.parentNode,Ie=p.nextSibling,ft=o,st=s.group,S.dragged=p,Ce={target:p,clientX:(n||e).clientX,clientY:(n||e).clientY},Tn=Ce.clientX-u.left,In=Ce.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,p.style["will-change"]="all",c=function(){if(Y("delayEnded",a,{evt:e}),S.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!En&&a.nativeDraggable&&(p.draggable=!0),a._triggerDragStart(e,n),j({sortable:a,name:"choose",originalEvent:e}),G(p,s.chosenClass,!0)},s.ignore.split(",").forEach(function(f){jn(p,f.trim(),Ot)}),T(l,"dragover",Te),T(l,"mousemove",Te),T(l,"touchmove",Te),T(l,"mouseup",a._onDrop),T(l,"touchend",a._onDrop),T(l,"touchcancel",a._onDrop),En&&this.nativeDraggable&&(this.options.touchStartThreshold=4,p.draggable=!0),Y("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(et||ge))){if(S.eventCanceled){this._onDrop();return}T(l,"mouseup",a._disableDelayedDrag),T(l,"touchend",a._disableDelayedDrag),T(l,"touchcancel",a._disableDelayedDrag),T(l,"mousemove",a._delayedDragTouchMoveHandler),T(l,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&T(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){p&&Ot(p),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?T(document,"pointermove",this._onTouchMove):n?T(document,"touchmove",this._onTouchMove):T(document,"mousemove",this._onTouchMove):(T(p,"dragend",this),T(B,"dragstart",this._onDragStart));try{document.selection?ht(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,n){if(Pe=!1,B&&p){Y("dragStarted",this,{evt:n}),this.nativeDraggable&&T(document,"dragover",Gr);var o=this.options;!e&&G(p,o.dragClass,!1),G(p,o.ghostClass,!0),S.active=this,e&&this._appendGhost(),j({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ne){this._lastX=ne.clientX,this._lastY=ne.clientY,Kn();for(var e=document.elementFromPoint(ne.clientX,ne.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ne.clientX,ne.clientY),e!==n);)n=e;if(p.parentNode[K]._isOutsideThisEl(e),n)do{if(n[K]){var o=void 0;if(o=n[K]._onDragOver({clientX:ne.clientX,clientY:ne.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Jn()}},_onTouchMove:function(e){if(Ce){var n=this.options,o=n.fallbackTolerance,a=n.fallbackOffset,i=e.touches?e.touches[0]:e,s=x&&Ve(x,!0),l=x&&s&&s.a,c=x&&s&&s.d,u=ct&&$&&Cn($),f=(i.clientX-Ce.clientX+a.x)/(l||1)+(u?u[0]-Pt[0]:0)/(l||1),d=(i.clientY-Ce.clientY+a.y)/(c||1)+(u?u[1]-Pt[1]:0)/(c||1);if(!S.active&&!Pe){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(x){s?(s.e+=f-(At||0),s.f+=d-(Mt||0)):s={a:1,b:0,c:0,d:1,e:f,f:d};var _="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");w(x,"webkitTransform",_),w(x,"mozTransform",_),w(x,"msTransform",_),w(x,"transform",_),At=f,Mt=d,ne=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!x){var e=this.options.fallbackOnBody?document.body:B,n=O(p,!0,ct,!0,e),o=this.options;if(ct){for($=e;w($,"position")==="static"&&w($,"transform")==="none"&&$!==document;)$=$.parentNode;$!==document.body&&$!==document.documentElement?($===document&&($=ce()),n.top+=$.scrollTop,n.left+=$.scrollLeft):$=ce(),Pt=Cn($)}x=p.cloneNode(!0),G(x,o.ghostClass,!1),G(x,o.fallbackClass,!0),G(x,o.dragClass,!0),w(x,"transition",""),w(x,"transform",""),w(x,"box-sizing","border-box"),w(x,"margin",0),w(x,"top",n.top),w(x,"left",n.left),w(x,"width",n.width),w(x,"height",n.height),w(x,"opacity","0.8"),w(x,"position",ct?"absolute":"fixed"),w(x,"zIndex","100000"),w(x,"pointerEvents","none"),S.ghost=x,e.appendChild(x),w(x,"transform-origin",Tn/parseInt(x.style.width)*100+"% "+In/parseInt(x.style.height)*100+"%")}},_onDragStart:function(e,n){var o=this,a=e.dataTransfer,i=o.options;if(Y("dragStart",this,{evt:e}),S.eventCanceled){this._onDrop();return}Y("setupClone",this),S.eventCanceled||(N=Xn(p),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),G(N,this.options.chosenClass,!1),S.clone=N),o.cloneId=ht(function(){Y("clone",o),!S.eventCanceled&&(o.options.removeCloneOnHide||B.insertBefore(N,p),o._hideClone(),j({sortable:o,name:"clone"}))}),!n&&G(p,i.dragClass,!0),n?(vt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(C(document,"mouseup",o._onDrop),C(document,"touchend",o._onDrop),C(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(o,a,p)),T(document,"drop",o),w(p,"transform","translateZ(0)")),Pe=!0,o._dragStartId=ht(o._dragStarted.bind(o,n,e)),T(document,"selectstart",o),Ue=!0,Ge&&w(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,o=e.target,a,i,s,l=this.options,c=l.group,u=S.active,f=st===c,d=l.sort,_=z||u,v,y=this,m=!1;if(jt)return;function I(be,ie){Y(be,y,ue({evt:e,isOwner:f,axis:v?"vertical":"horizontal",revert:s,dragRect:a,targetRect:i,canSort:d,fromSortable:_,target:o,completed:E,onMove:function(Ne,ye){return ut(B,n,p,a,Ne,O(Ne),e,ye)},changed:D},ie))}function b(){I("dragOverAnimationCapture"),y.captureAnimationState(),y!==_&&_.captureAnimationState()}function E(be){return I("dragOverCompleted",{insertion:be}),be&&(f?u._hideClone():u._showClone(y),y!==_&&(G(p,z?z.options.ghostClass:u.options.ghostClass,!1),G(p,l.ghostClass,!0)),z!==y&&y!==S.active?z=y:y===S.active&&z&&(z=null),_===y&&(y._ignoreWhileAnimating=o),y.animateAll(function(){I("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==_&&(_.animateAll(),_._ignoreWhileAnimating=null)),(o===p&&!p.animated||o===n&&!o.animated)&&(Me=null),!l.dragoverBubble&&!e.rootEl&&o!==document&&(p.parentNode[K]._isOutsideThisEl(e.target),!be&&Te(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function D(){q=ee(p),_e=ee(p,l.draggable),j({sortable:y,name:"change",toEl:n,newIndex:q,newDraggableIndex:_e,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=le(o,l.draggable,n,!0),I("dragOver"),S.eventCanceled)return m;if(p.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||y._ignoreWhileAnimating===o)return E(!1);if(vt=!1,u&&!l.disabled&&(f?d||(s=M!==B):z===this||(this.lastPutMode=st.checkPull(this,u,p,e))&&c.checkPut(this,u,p,e))){if(v=this._getDirection(e,o)==="vertical",a=O(p),I("dragOverValid"),S.eventCanceled)return m;if(s)return M=B,b(),this._hideClone(),I("revert"),S.eventCanceled||(Ie?B.insertBefore(p,Ie):B.appendChild(p)),E(!0);var A=Jt(n,l.draggable);if(!A||Zr(e,v,this)&&!A.animated){if(A===p)return E(!1);if(A&&n===e.target&&(o=A),o&&(i=O(o)),ut(B,n,p,a,o,i,e,!!o)!==!1)return b(),A&&A.nextSibling?n.insertBefore(p,A.nextSibling):n.appendChild(p),M=n,D(),E(!0)}else if(A&&Jr(e,v,this)){var V=Re(n,0,l,!0);if(V===p)return E(!1);if(o=V,i=O(o),ut(B,n,p,a,o,i,e,!1)!==!1)return b(),n.insertBefore(p,V),M=n,D(),E(!0)}else if(o.parentNode===n){i=O(o);var H=0,J,Z=p.parentNode!==n,L=!Xr(p.animated&&p.toRect||a,o.animated&&o.toRect||i,v),de=v?"top":"left",U=kn(o,"top","top")||kn(p,"top","top"),re=U?U.scrollTop:void 0;Me!==o&&(J=i[de],Ze=!1,lt=!L&&l.invertSwap||Z),H=Qr(e,o,i,v,L?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,lt,Me===o);var Q;if(H!==0){var X=ee(p);do X-=H,Q=M.children[X];while(Q&&(w(Q,"display")==="none"||Q===x))}if(H===0||Q===o)return E(!1);Me=o,Je=H;var ve=o.nextElementSibling,ae=!1;ae=H===1;var Be=ut(B,n,p,a,o,i,e,ae);if(Be!==!1)return(Be===1||Be===-1)&&(ae=Be===1),jt=!0,setTimeout(Kr,30),b(),ae&&!ve?n.appendChild(p):o.parentNode.insertBefore(p,ae?ve:o),U&&Un(U,0,re-U.scrollTop),M=p.parentNode,J!==void 0&&!lt&&(pt=Math.abs(J-O(o)[de])),D(),E(!0)}if(n.contains(p))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Te),C(document,"mousemove",Te),C(document,"touchmove",Te)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var n=this.el,o=this.options;if(q=ee(p),_e=ee(p,o.draggable),Y("drop",this,{evt:e}),M=p&&p.parentNode,q=ee(p),_e=ee(p,o.draggable),S.eventCanceled){this._nulling();return}Pe=!1,lt=!1,Ze=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yt(this.cloneId),Yt(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ge&&w(document.body,"user-select",""),w(p,"transform",""),e&&(Ue&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),x&&x.parentNode&&x.parentNode.removeChild(x),(B===M||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),p&&(this.nativeDraggable&&C(p,"dragend",this),Ot(p),p.style["will-change"]="",Ue&&!Pe&&G(p,z?z.options.ghostClass:this.options.ghostClass,!1),G(p,this.options.chosenClass,!1),j({sortable:this,name:"unchoose",toEl:M,newIndex:null,newDraggableIndex:null,originalEvent:e}),B!==M?(q>=0&&(j({rootEl:M,name:"add",toEl:M,fromEl:B,originalEvent:e}),j({sortable:this,name:"remove",toEl:M,originalEvent:e}),j({rootEl:M,name:"sort",toEl:M,fromEl:B,originalEvent:e}),j({sortable:this,name:"sort",toEl:M,originalEvent:e})),z&&z.save()):q!==Oe&&q>=0&&(j({sortable:this,name:"update",toEl:M,originalEvent:e}),j({sortable:this,name:"sort",toEl:M,originalEvent:e})),S.active&&((q==null||q===-1)&&(q=Oe,_e=Ke),j({sortable:this,name:"end",toEl:M,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Y("nulling",this),B=p=M=x=Ie=N=ft=Ee=Ce=ne=Ue=q=_e=Oe=Ke=Me=Je=z=st=S.dragged=S.ghost=S.clone=S.active=null,yt.forEach(function(e){e.checked=!0}),yt.length=At=Mt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":p&&(this._onDragOver(e),qr(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,a=0,i=o.length,s=this.options;a<i;a++)n=o[a],le(n,s.draggable,this.el,!1)&&e.push(n.getAttribute(s.dataIdAttr)||ta(n));return e},sort:function(e,n){var o={},a=this.el;this.toArray().forEach(function(i,s){var l=a.children[s];le(l,this.options.draggable,a,!1)&&(o[i]=l)},this),n&&this.captureAnimationState(),e.forEach(function(i){o[i]&&(a.removeChild(o[i]),a.appendChild(o[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return le(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var o=this.options;if(n===void 0)return o[e];var a=tt.modifyOption(this,e,n);typeof a!="undefined"?o[e]=a:o[e]=n,e==="group"&&qn(o)},destroy:function(){Y("destroy",this);var e=this.el;e[K]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),bt.splice(bt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ee){if(Y("hideClone",this),S.eventCanceled)return;w(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),Ee=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ee){if(Y("showClone",this),S.eventCanceled)return;p.parentNode==B&&!this.options.group.revertClone?B.insertBefore(N,p):Ie?B.insertBefore(N,Ie):B.appendChild(N),this.options.group.revertClone&&this.animate(p,N),w(N,"display",""),Ee=!1}}};function qr(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function ut(t,e,n,o,a,i,s,l){var c,u=t[K],f=u.options.onMove,d;return window.CustomEvent&&!ge&&!et?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=t,c.dragged=n,c.draggedRect=o,c.related=a||e,c.relatedRect=i||O(e),c.willInsertAfter=l,c.originalEvent=s,t.dispatchEvent(c),f&&(d=f.call(u,c,s)),d}function Ot(t){t.draggable=!1}function Kr(){jt=!1}function Jr(t,e,n){var o=O(Re(n.el,0,n.options,!0)),a=10;return e?t.clientX<o.left-a||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-a||t.clientY<o.bottom&&t.clientX<o.left}function Zr(t,e,n){var o=O(Jt(n.el,n.options.draggable)),a=10;return e?t.clientX>o.right+a||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+a}function Qr(t,e,n,o,a,i,s,l){var c=o?t.clientY:t.clientX,u=o?n.height:n.width,f=o?n.top:n.left,d=o?n.bottom:n.right,_=!1;if(!s){if(l&&pt<u*a){if(!Ze&&(Je===1?c>f+u*i/2:c<d-u*i/2)&&(Ze=!0),Ze)_=!0;else if(Je===1?c<f+pt:c>d-pt)return-Je}else if(c>f+u*(1-a)/2&&c<d-u*(1-a)/2)return ea(e)}return _=_||s,_&&(c<f+u*i/2||c>d-u*i/2)?c>f+u/2?1:-1:0}function ea(t){return ee(p)<ee(t)?1:-1}function ta(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function na(t){yt.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&yt.push(o)}}function ht(t){return setTimeout(t,0)}function Yt(t){return clearTimeout(t)}St&&T(document,"touchmove",function(t){(S.active||Pe)&&t.cancelable&&t.preventDefault()});S.utils={on:T,off:C,css:w,find:jn,is:function(e,n){return!!le(e,n,e,!1)},extend:zr,throttle:Yn,closest:le,toggleClass:G,clone:Xn,index:ee,nextTick:ht,cancelNextTick:Yt,detectDirection:Gn,getChild:Re};S.get=function(t){return t[K]};S.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(S.utils=ue(ue({},S.utils),o.utils)),tt.mount(o)})};S.create=function(t,e){return new S(t,e)};S.version=Or;var P=[],Xe,Ut,Xt=!1,Vt,Ft,wt,We;function oa(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):this.options.supportPointer?T(document,"pointermove",this._handleFallbackAutoScroll):o.touches?T(document,"touchmove",this._handleFallbackAutoScroll):T(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),Bn(),mt(),Rr()},nulling:function(){wt=Ut=Xe=Xt=We=Vt=Ft=null,P.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var a=this,i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(i,s);if(wt=n,o||this.options.forceAutoScrollFallback||et||ge||Ge){zt(n,this.options,l,o);var c=ke(l,!0);Xt&&(!We||i!==Vt||s!==Ft)&&(We&&Bn(),We=setInterval(function(){var u=ke(document.elementFromPoint(i,s),!0);u!==c&&(c=u,mt()),zt(n,a.options,u,o)},10),Vt=i,Ft=s)}else{if(!this.options.bubbleScroll||ke(l,!0)===ce()){mt();return}zt(n,this.options,ke(l,!1),!1)}}},me(t,{pluginName:"scroll",initializeByDefault:!0})}function mt(){P.forEach(function(t){clearInterval(t.pid)}),P=[]}function Bn(){clearInterval(We)}var zt=Yn(function(t,e,n,o){if(e.scroll){var a=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=ce(),u=!1,f;Ut!==n&&(Ut=n,mt(),Xe=e.scroll,f=e.scrollFn,Xe===!0&&(Xe=ke(n,!0)));var d=0,_=Xe;do{var v=_,y=O(v),m=y.top,I=y.bottom,b=y.left,E=y.right,D=y.width,A=y.height,V=void 0,H=void 0,J=v.scrollWidth,Z=v.scrollHeight,L=w(v),de=v.scrollLeft,U=v.scrollTop;v===c?(V=D<J&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),H=A<Z&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(V=D<J&&(L.overflowX==="auto"||L.overflowX==="scroll"),H=A<Z&&(L.overflowY==="auto"||L.overflowY==="scroll"));var re=V&&(Math.abs(E-a)<=s&&de+D<J)-(Math.abs(b-a)<=s&&!!de),Q=H&&(Math.abs(I-i)<=s&&U+A<Z)-(Math.abs(m-i)<=s&&!!U);if(!P[d])for(var X=0;X<=d;X++)P[X]||(P[X]={});(P[d].vx!=re||P[d].vy!=Q||P[d].el!==v)&&(P[d].el=v,P[d].vx=re,P[d].vy=Q,clearInterval(P[d].pid),(re!=0||Q!=0)&&(u=!0,P[d].pid=setInterval(function(){o&&this.layer===0&&S.active._onTouchMove(wt);var ve=P[this.layer].vy?P[this.layer].vy*l:0,ae=P[this.layer].vx?P[this.layer].vx*l:0;typeof f=="function"&&f.call(S.dragged.parentNode[K],ae,ve,t,wt,P[this.layer].el)!=="continue"||Un(P[this.layer].el,ae,ve)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&_!==c&&(_=ke(_,!1)));Xt=u}},30),Zn=function(e){var n=e.originalEvent,o=e.putSortable,a=e.dragEl,i=e.activeSortable,s=e.dispatchSortableEvent,l=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(n){var u=o||i;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);c(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function Zt(){}Zt.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=Re(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(n,a):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Zn};me(Zt,{pluginName:"revertOnSpill"});function Qt(){}Qt.prototype={onSpill:function(e){var n=e.dragEl,o=e.putSortable,a=o||this.sortable;a.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),a.animateAll()},drop:Zn};me(Qt,{pluginName:"removeOnSpill"});S.mount(new oa);S.mount(Qt,Zt);function ra(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!r.isVNode(t)}const aa={"operate-handle":(t,e)=>!!(t||e),"sort-end":(t,e)=>!!(t||e),"update-page":(t,e)=>!!(t||e),"size-change":()=>!0},ia=r.defineComponent({name:"YxTable",props:{tableProps:{type:Object,required:!0}},emits:aa,setup(t,{attrs:e,slots:n,emit:o,expose:a}){r.onMounted(()=>{r.nextTick(()=>{i()})});const i=()=>{if(!t.tableProps.sort)return;const l=document.querySelector(".el-table__body tbody");S.create(l,{animation:200,sort:!0,handle:t.tableProps.sortHandle?`.${t.tableProps.sortHandle}`:null,onEnd:({oldIndex:c,newIndex:u})=>{o("sort-end",c,u)}})},s=r.ref();return a({tableRef:s}),()=>{let l;const{columns:c,rowKey:u,tableData:f,pageInfo:d}=t.tableProps,_=(I,b)=>{var E;return I.slotName&&((E=n[I.slotName])==null?void 0:E.call(n,b))},v=I=>I.map(b=>{const A=b,{children:E}=A,D=hn(A,["children"]);return r.createVNode(r.resolveComponent("el-table-column"),D,{default:V=>{if((b==null?void 0:b.renderType)==="operate")return y(b,V);if(b!=null&&b.renderType&&(b==null?void 0:b.renderType)!=="operate"){const H={renderType:b.renderType,prop:b.prop,config:b.config};return r.createVNode(Nr,{conf:H,model:V.row,onChange:b==null?void 0:b.change},null)}return b!=null&&b.render?b==null?void 0:b.render(V):E&&(E==null?void 0:E.length)>0?v(E):(b==null?void 0:b.slotName)&&_(b,V)}})}),y=(I,b)=>{var E;return r.createVNode("div",{class:"flex justify-center cursor-pointer"},[(E=I.operate)==null?void 0:E.filter(D=>!D.show||D.show(b.row)).map(D=>D!=null&&D.render?D.render(b.row):r.createVNode("span",{onClick:g.withModifiers(()=>o("operate-handle",D.key,b.row),["stop"]),class:"mr-10 whitespace-nowrap"},[D.label]))])},m=()=>{if(!(d&&d.total>d.size))return null;const I=E=>{o("update-page","size",E)},b=E=>{o("update-page","current",E)};return r.createVNode("div",{class:"pagination-wrap"},[r.createVNode(r.resolveComponent("el-pagination"),{currentPage:d.current,"onUpdate:currentPage":E=>d.current=E,pageSize:d.size,"onUpdate:pageSize":E=>d.size=E,small:!1,disabled:!1,"page-sizes":[10,20,50,100],layout:"total,sizes,prev, pager, next",background:!1,total:d.total,onSizeChange:I,onCurrentChange:b},null)])};return r.createVNode("div",{class:"w-full h-full flex flex-col"},[r.createVNode(r.resolveComponent("el-table"),r.mergeProps({ref:s},e,{"row-key":u,data:f}),ra(l=v(c))?l:{default:()=>[l]}),m()])}}});function sa(t){const e=t;return e.install=n=>{n.component(e.name,e)},e}const Qn=sa(ia);const la={class:"w-200 my-5"},eo=r.defineComponent({__name:"index",setup(t){const e=r.ref("");return(n,o)=>{const a=tr;return r.openBlock(),r.createElementBlock("div",null,[r.createBaseVNode("div",la,[r.createVNode(a,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=i=>e.value=i),placeholder:"请输入"},null,8,["modelValue"])])])}}});class ca extends HTMLElement{constructor(e){super(),this.initComponent(e)}initComponent(e){const n=this.attachShadow({mode:"open"}),a=document.getElementById("theme-tool").content.cloneNode(!0);n.appendChild(a)}}customElements.define("theme-component",ca);let to,no,ua;const da=()=>{localStorage.setItem(to,no),window.location.reload(!0)},fa=()=>{ua.unmount(),document.body.removeChild(document.querySelector("#update")),localStorage.setItem(to,no)},pa=t=>(r.pushScopeId("data-v-668773ee"),t=t(),r.popScopeId(),t),ha={class:"update-wrap flex items-center justify-center"},ma={class:"relative update-content"},ga={class:"flex items-center justify-center"},va={class:"flex flex-col gap-5 mt-10"},ba={class:"update-title"},ya={class:"update-item px-20"},wa={class:"text-end"},Sa={class:"flex justify-end items-center mt-10"},_a=pa(()=>r.createBaseVNode("span",{class:"tips mt-10"},"提示: 选择立即更新后,会立即刷新页面更新系统,当前页面缓存数据会消失选择暂不更新后,请稍后自行刷新页面更新系统。",-1)),Ea=r.defineComponent({__name:"index",props:{title:{},description:{},content:{},time:{}},setup(t){const e=t;return console.log(e),(n,o)=>{const a=Cr;return r.openBlock(),r.createElementBlock("div",ha,[r.createBaseVNode("div",ma,[r.createBaseVNode("div",ga,r.toDisplayString(e==null?void 0:e.title),1),r.createBaseVNode("div",va,[r.createBaseVNode("div",ba,r.toDisplayString(e==null?void 0:e.description),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e==null?void 0:e.content,(i,s)=>(r.openBlock(),r.createElementBlock("div",ya,[r.createBaseVNode("span",null,r.toDisplayString(s)+":",1),r.createTextVNode(),r.createBaseVNode("span",null,r.toDisplayString(i),1)]))),256)),r.createBaseVNode("div",wa,r.toDisplayString(e.time)+" 软件专业部",1),r.createBaseVNode("div",Sa,[r.createVNode(a,{plain:"",onClick:r.unref(fa)},{default:r.withCtx(()=>[r.createTextVNode("暂不更新")]),_:1},8,["onClick"]),r.createVNode(a,{onClick:r.unref(da)},{default:r.withCtx(()=>[r.createTextVNode("立即更新")]),_:1},8,["onClick"])]),_a])])])}}});const $e=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},oo=$e(Ea,[["__scopeId","data-v-668773ee"]]);Array.prototype.handler=function(t){return t(this)};const xa={name:"YxToolbarHelper",props:["item"],data(){return{}},mounted(){},methods:{}},ka={id:"toolbar-helper",class:"toolbar-helper"};function Ca(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",ka)}const ro=$e(xa,[["render",Ca],["__scopeId","data-v-bc010fa9"]]),Ta={name:"YxToolbarIssue",props:["item"],data(){return{dialogVisible:!1}},watch:{"item.status":{handler:function(){const t=window.location.pathname.split("/")[1];window.open(`${t}/integrated/workOrderManagement`)}}}},Ia={id:"toolbar-issue",class:"toolbar-issue absolute"};function Da(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",Ia)}const ao=$e(Ta,[["render",Da]]);const Ba={name:"YxToolbarTheme",props:["item"],data(){return console.log(window.theme),{themeSource:window.theme}},computed:{status(){return this.item.status},themeData(){var t;return(t=this.themeSource)==null?void 0:t.map((e,n)=>{const o=(()=>{const c=this.themeSource.length;return c<=2?Math.PI/3:c<=3?Math.PI/2:c<=5?Math.PI:Math.PI*2})(),a=o===Math.PI*2?this.themeSource.length:this.themeSource.length-1,i=o*n/a,s=-70*Math.sin(i)+"px",l=-70*Math.cos(i)+"px";return fe(se({},e),{style:{background:e.themeColor},activeStyle:{background:e.themeColor,transform:`translate(${s}, ${l}) scale(1)`,opacity:"1"}})})}},methods:{handlerSwitchTheme(t){console.log(`%c yx-toolbar %c 切换主题:${t.theme}`,"background:#CE9FFC ; padding: 2px; border-radius: 3px 0 0 3px; color: #fff","background:#6b3af6 ; padding: 2px; border-radius: 0 3px 3px 0; color: #fff",t),en(t)}}},Na={id:"toolbar-theme",class:"toolbar-theme"},Aa=["title","onClick"];function Ma(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",Na,[r.createBaseVNode("div",{class:r.normalizeClass(["theme-wrap",{active:i.status}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.themeData,s=>(r.openBlock(),r.createElementBlock("div",{key:s.id,class:r.normalizeClass(["theme-item",{active:i.status}]),title:s.theme,style:r.normalizeStyle(i.status?s.activeStyle:s.style),onClick:g.withModifiers(()=>i.handlerSwitchTheme(s),["stop"])},null,14,Aa))),128))],2)])}const io=$e(Ba,[["render",Ma],["__scopeId","data-v-41428219"]]),Pa={name:"toolbar",version:"1.0.0",icon:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-menu-icon.svg",tooltip:"工具栏",children:[{name:"theme",label:"主题切换",icon:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-theme.svg",icon_active:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-theme-back.svg",position:[50,0],desc:"跳转到问题反馈页面",action:"hiddenTool",component:"Theme"},{name:"issue",label:"问题反馈",icon:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-issue.svg",position:[100,0],desc:"跳转到问题反馈页面",component:"Issue"}]},so=()=>Pa,Oa={Helper:r.markRaw(ro),Issue:r.markRaw(ao),Theme:r.markRaw(io)};function Va(t){return t.map(e=>fe(se({},e),{status:!1,showIcon:e.icon,hidden:!1}))}const Fa={data(){return{itemList:JSON.parse(JSON.stringify(Va(so().children)))}},components:{Helper:ro,Issue:ao,Theme:io}};function za(t){let e=0,n=0;t.onmousedown=o=>{e=o.clientX-t.offsetLeft,n=o.clientY-t.offsetTop;const a=s=>{s.stopPropagation(),s.preventDefault();const l=s.clientX,c=s.clientY;let u=l-e,f=c-n;u<0&&(u=0),f<0&&(f=0),u>document.body.clientWidth-t.clientWidth&&(u=document.body.clientWidth-t.clientWidth),f>document.body.clientHeight-t.clientHeight&&(f=document.body.clientHeight-t.clientHeight),t.style.left=u+"px",t.style.top=f+"px"},i=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",i)}}const Ra={name:"YxToolbarItem",props:["item","itemList"],data(){return{status:!1}},methods:{handlerClick(){console.log(`%c yx-toolbar %c 点击组件:${this.item.name}`,"background:#CE9FFC ; padding: 2px; border-radius: 3px 0 0 3px; color: #fff","background:#b54381 ; padding: 2px; border-radius: 0 3px 3px 0; color: #fff",this.item)}}},$a=["title"];function Ha(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"toolbar-item",title:n.item.label,onClick:e[0]||(e[0]=(...s)=>i.handlerClick&&i.handlerClick(...s))},[r.renderSlot(t.$slots,"default")],8,$a)}const La=$e(Ra,[["render",Ha]]);let Ye;const ja={config:so(),compMap:Oa,status:!1,expandedComponent:null},Ya={name:"YxToolbar",components:{Item:La},mixins:[Fa],data(){return fe(se({},ja),{opacity:.5})},computed:{hiddenToolbar(){return this.itemList.find(t=>t.hidden)}},mounted(){this.move()},methods:{move(){za(document.querySelector("#toolbar-container"))},cssFormat(t){var e,n;return{backgroundImage:`url(${t.showIcon})`,top:((e=t.position)==null?void 0:e[0])+"px",left:((n=t.position)==null?void 0:n[1])+"px",display:t.hidden?"none":"block"}},handleItemClick(t){const{hiddenOther:e,changeStatus:n}=this.actions(t),o=this.itemList.handler(e).handler(n);this.expandedComponent=t,this.itemList.splice(0,this.itemList.length,...o)},actions(t){function e(o){return o.map(a=>fe(se({},a),{hidden:!t.status&&a.name!==t.name&&t.action==="hiddenTool"}))}function n(o){return o.map(a=>a.name!==t.name?a:fe(se({},a),{status:!a.status,showIcon:t.status?t.icon:t.icon_active||t.icon}))}return{hiddenOther:e,changeStatus:n}},mouseenter(){this.opacity=1,Ye&&clearTimeout(Ye)},mouseleave(){Ye&&clearTimeout(Ye),Ye=setTimeout(()=>{this.opacity=.5;const t=document.querySelector(".toolbar-checkbox");t.checked=!1,this.itemList[0].status&&this.handleItemClick(this.itemList[0])},3e3)}}};function Ua(t,e,n,o,a,i){const s=r.resolveComponent("Item");return r.openBlock(),r.createElementBlock("div",{id:"toolbar-container",class:"toolbar-container",style:r.normalizeStyle({opacity:a.opacity}),onMouseenter:e[0]||(e[0]=(...l)=>i.mouseenter&&i.mouseenter(...l)),onMouseleave:e[1]||(e[1]=(...l)=>i.mouseleave&&i.mouseleave(...l))},[r.createBaseVNode("div",{class:"item parent",style:r.normalizeStyle({backgroundImage:`url(${t.config.icon})`,display:`${i.hiddenToolbar?"none":"block"}`})},null,4),r.createBaseVNode("input",{class:"item parent toolbar-checkbox",style:r.normalizeStyle({display:`${i.hiddenToolbar?"none":"block"}`}),value:"test",type:"checkbox"},null,4),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.itemList,(l,c)=>{var u;return r.openBlock(),r.createElementBlock("div",{key:l.name,"data-name":"",class:r.normalizeClass(["item son",{active:((u=t.expandedComponent)==null?void 0:u.name)===l.name&&l.status}]),style:r.normalizeStyle(i.cssFormat(l))},[r.createVNode(s,{item:l,itemList:t.itemList,onClick:f=>i.handleItemClick(l)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.compMap[l.component]),{item:l},null,8,["item"]))]),_:2},1032,["item","itemList","onClick"])],6)}),128))],36)}const Nn=$e(Ya,[["render",Ua],["__scopeId","data-v-65496eff"]]);var ze;const Qe=class{constructor({theme:e}){gn(this,ze,"yxToolbar");return Qe.instance||(window.theme=e,console.log("theme",e),this.init(),Qe.instance=this),Qe.instance}get vueVersion(){return r.version[0]}init(){this.mount()}mount(){const e=document.createElement("div");if(e.id=rt(this,ze),document.body.appendChild(e),this.vueVersion==="3")return console.log(this.vueVersion),g.createApp(Nn).mount(`#${rt(this,ze)}`);{const n=require("vue");return new n({render:o=>o(Nn)}).$mount(`#${rt(this,ze)}`)}}};let Fe=Qe;ze=new WeakMap,mn(Fe,"instance",null);const lo=Object.freeze(Object.defineProperty({__proto__:null,SearchForm:eo,Toolbar:Fe,Update:oo,YxTable:Qn},Symbol.toStringTag,{value:"Module"})),co=(t=!0)=>we(exports,null,function*(){var n;let e=nn();try{const{data:o}=yield Gt.getUserThemeList();t&&new Fe({theme:o});let a=e?(n=o.find(s=>s.id===e))==null?void 0:n.themeUrl:"";if(!e||!a){const l=o.find(c=>c.defaultTheme===1)||o[0];a=l.themeUrl,e=l.id}const i=yield Wt(a);uo({themeCssVar:i,themeId:e}),An(),Et.onmessage=s=>{const l=s.data;l.type==="theme"&&Wt(l.data.themeUrl)},console.log("主题初始化完毕!!!")}catch(o){An(),tn()}}),An=()=>{const t=document.createElement("style");t.innerHTML=Br,document.head.appendChild(t)},uo=({themeCssVar:t,themeId:e})=>{const n=localStorage.getItem("ttcGlobalState")||"{}",o=JSON.parse(n);o.theme={themeCssVar:t,id:e},localStorage.setItem("ttcGlobalState",JSON.stringify(o))},en=t=>we(exports,null,function*(){const e=yield Wt(t.themeUrl);uo({themeCssVar:e,themeId:t==null?void 0:t.id}),Et.postMessage({type:"theme",data:t})}),tn=()=>{const t=_t(),e=document.documentElement;Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(o=>{const a=`--${n}-${o}`;e.style.setProperty(a,t[n][o])})})},Wt=t=>we(exports,null,function*(){const n=yield(yield fetch(t)).json(),o=document.documentElement;return Object.keys(n).forEach(a=>{Object.keys(n[a]).forEach(i=>{const s=`--${a}-${i}`;o.style.setProperty(s,n[a][i])})}),n}),fo=()=>we(exports,null,function*(){const{data:t}=yield Gt.getUserThemeList(),e=t.find(o=>o.defaultTheme===1);return e?e.themeUrl:t[0].themeUrl}),nn=()=>{var n;const t=localStorage.getItem("ttcGlobalState"),e=t&&((n=JSON.parse(t))==null?void 0:n.theme);return(e==null?void 0:e.id)||null},_t=()=>{var n;const t=localStorage.getItem("ttcGlobalState");return(t&&((n=JSON.parse(t))==null?void 0:n.theme)).themeCssVar},po=t=>_t()[t]||{},Xa=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:en,getCurTheme:nn,getCurThemeCssVar:_t,getDefaultThemeUrl:fo,getGroupColor:po,install:co,updateTheme:tn},Symbol.toStringTag,{value:"Module"}));console.log(lo);const Et=new BroadcastChannel("YXUSE_BC"),Wa={utils:Io.utils,api:Gt.api,theme:Xa,icons:Do.icons,components:lo,directives:Bo.directives,BC:Et};exports.BC=Et;exports.Toolbar=Fe;exports.Update=oo;exports.YxTable=Qn;exports._sfc_main=eo;exports.changeTheme=en;exports.getCurTheme=nn;exports.getCurThemeCssVar=_t;exports.getDefaultThemeUrl=fo;exports.getGroupColor=po;exports.index=Wa;exports.install=co;exports.updateTheme=tn;
20
+ */function _n(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),n.push.apply(n,o)}return n}function ue(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?_n(Object(n),!0).forEach(function(o){Ar(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function dt(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?dt=function(e){return typeof e}:dt=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},dt(t)}function Ar(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function me(){return me=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},me.apply(this,arguments)}function Mr(t,e){if(t==null)return{};var n={},o=Object.keys(t),a,i;for(i=0;i<o.length;i++)a=o[i],!(e.indexOf(a)>=0)&&(n[a]=t[a]);return n}function Pr(t,e){if(t==null)return{};var n=Mr(t,e),o,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(a=0;a<i.length;a++)o=i[a],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var Or="1.15.0";function he(t){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(t)}var ge=he(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),et=he(/Edge/i),En=he(/firefox/i),Ge=he(/safari/i)&&!he(/chrome/i)&&!he(/android/i),$n=he(/iP(ad|od|hone)/i),Hn=he(/chrome/i)&&he(/android/i),Ln={capture:!1,passive:!1};function T(t,e,n){t.addEventListener(e,n,!ge&&Ln)}function C(t,e,n){t.removeEventListener(e,n,!ge&&Ln)}function gt(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function Vr(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function le(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&gt(t,e):gt(t,e))||o&&t===n)return t;if(t===n)break}while(t=Vr(t))}return null}var xn=/\s+/g;function G(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(xn," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(xn," ")}}function w(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function Ve(t,e){var n="";if(typeof t=="string")n=t;else do{var o=w(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var a=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return a&&new a(n)}function jn(t,e,n){if(t){var o=t.getElementsByTagName(e),a=0,i=o.length;if(n)for(;a<i;a++)n(o[a],a);return o}return[]}function ce(){var t=document.scrollingElement;return t||document.documentElement}function O(t,e,n,o,a){if(!(!t.getBoundingClientRect&&t!==window)){var i,s,l,c,u,f,d;if(t!==window&&t.parentNode&&t!==ce()?(i=t.getBoundingClientRect(),s=i.top,l=i.left,c=i.bottom,u=i.right,f=i.height,d=i.width):(s=0,l=0,c=window.innerHeight,u=window.innerWidth,f=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(a=a||t.parentNode,!ge))do if(a&&a.getBoundingClientRect&&(w(a,"transform")!=="none"||n&&w(a,"position")!=="static")){var _=a.getBoundingClientRect();s-=_.top+parseInt(w(a,"border-top-width")),l-=_.left+parseInt(w(a,"border-left-width")),c=s+i.height,u=l+i.width;break}while(a=a.parentNode);if(o&&t!==window){var v=Ve(a||t),y=v&&v.a,m=v&&v.d;v&&(s/=m,l/=y,d/=y,f/=m,c=s+f,u=l+d)}return{top:s,left:l,bottom:c,right:u,width:d,height:f}}}function kn(t,e,n){for(var o=ke(t,!0),a=O(t)[e];o;){var i=O(o)[n],s=void 0;if(n==="top"||n==="left"?s=a>=i:s=a<=i,!s)return o;if(o===ce())break;o=ke(o,!1)}return!1}function Re(t,e,n,o){for(var a=0,i=0,s=t.children;i<s.length;){if(s[i].style.display!=="none"&&s[i]!==S.ghost&&(o||s[i]!==S.dragged)&&le(s[i],n.draggable,t,!1)){if(a===e)return s[i];a++}i++}return null}function Jt(t,e){for(var n=t.lastElementChild;n&&(n===S.ghost||w(n,"display")==="none"||e&&!gt(n,e));)n=n.previousElementSibling;return n||null}function ee(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==S.clone&&(!e||gt(t,e))&&n++;return n}function Cn(t){var e=0,n=0,o=ce();if(t)do{var a=Ve(t),i=a.a,s=a.d;e+=t.scrollLeft*i,n+=t.scrollTop*s}while(t!==o&&(t=t.parentNode));return[e,n]}function Fr(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n)}return-1}function ke(t,e){if(!t||!t.getBoundingClientRect)return ce();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var a=w(n);if(n.clientWidth<n.scrollWidth&&(a.overflowX=="auto"||a.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(a.overflowY=="auto"||a.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return ce();if(o||e)return n;o=!0}}while(n=n.parentNode);return ce()}function zr(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function Bt(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var qe;function Yn(t,e){return function(){if(!qe){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),qe=setTimeout(function(){qe=void 0},e)}}}function Rr(){clearTimeout(qe),qe=void 0}function Un(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Xn(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var K="Sortable"+new Date().getTime();function $r(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(a){if(!(w(a,"display")==="none"||a===S.ghost)){t.push({target:a,rect:O(a)});var i=ue({},t[t.length-1].rect);if(a.thisAnimationDuration){var s=Ve(a,!0);s&&(i.top-=s.f,i.left-=s.e)}a.fromRect=i}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Fr(t,{target:o}),1)},animateAll:function(o){var a=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var i=!1,s=0;t.forEach(function(l){var c=0,u=l.target,f=u.fromRect,d=O(u),_=u.prevFromRect,v=u.prevToRect,y=l.rect,m=Ve(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&Bt(_,d)&&!Bt(f,d)&&(y.top-d.top)/(y.left-d.left)===(f.top-d.top)/(f.left-d.left)&&(c=Lr(y,_,v,a.options)),Bt(d,f)||(u.prevFromRect=f,u.prevToRect=d,c||(c=a.options.animation),a.animate(u,y,d,c)),c&&(i=!0,s=Math.max(s,c),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},c),u.thisAnimationDuration=c)}),clearTimeout(e),i?e=setTimeout(function(){typeof o=="function"&&o()},s):typeof o=="function"&&o(),t=[]},animate:function(o,a,i,s){if(s){w(o,"transition",""),w(o,"transform","");var l=Ve(this.el),c=l&&l.a,u=l&&l.d,f=(a.left-i.left)/(c||1),d=(a.top-i.top)/(u||1);o.animatingX=!!f,o.animatingY=!!d,w(o,"transform","translate3d("+f+"px,"+d+"px,0)"),this.forRepaintDummy=Hr(o),w(o,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),w(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){w(o,"transition",""),w(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},s)}}}}function Hr(t){return t.offsetWidth}function Lr(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var Ae=[],Nt={initializeByDefault:!0},tt={mount:function(e){for(var n in Nt)Nt.hasOwnProperty(n)&&!(n in e)&&(e[n]=Nt[n]);Ae.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),Ae.push(e)},pluginEvent:function(e,n,o){var a=this;this.eventCanceled=!1,o.cancel=function(){a.eventCanceled=!0};var i=e+"Global";Ae.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][i]&&n[s.pluginName][i](ue({sortable:n},o)),n.options[s.pluginName]&&n[s.pluginName][e]&&n[s.pluginName][e](ue({sortable:n},o)))})},initializePlugins:function(e,n,o,a){Ae.forEach(function(l){var c=l.pluginName;if(!(!e.options[c]&&!l.initializeByDefault)){var u=new l(e,n,e.options);u.sortable=e,u.options=e.options,e[c]=u,me(o,u.defaults)}});for(var i in e.options)if(e.options.hasOwnProperty(i)){var s=this.modifyOption(e,i,e.options[i]);typeof s!="undefined"&&(e.options[i]=s)}},getEventProperties:function(e,n){var o={};return Ae.forEach(function(a){typeof a.eventProperties=="function"&&me(o,a.eventProperties.call(n[a.pluginName],e))}),o},modifyOption:function(e,n,o){var a;return Ae.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[n]=="function"&&(a=i.optionListeners[n].call(e[i.pluginName],o))}),a}};function jr(t){var e=t.sortable,n=t.rootEl,o=t.name,a=t.targetEl,i=t.cloneEl,s=t.toEl,l=t.fromEl,c=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,d=t.newDraggableIndex,_=t.originalEvent,v=t.putSortable,y=t.extraEventProperties;if(e=e||n&&n[K],!!e){var m,I=e.options,b="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!ge&&!et?m=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(o,!0,!0)),m.to=s||n,m.from=l||n,m.item=a||n,m.clone=i,m.oldIndex=c,m.newIndex=u,m.oldDraggableIndex=f,m.newDraggableIndex=d,m.originalEvent=_,m.pullMode=v?v.lastPutMode:void 0;var E=ue(ue({},y),tt.getEventProperties(o,e));for(var D in E)m[D]=E[D];n&&n.dispatchEvent(m),I[b]&&I[b].call(e,m)}}var Yr=["evt"],Y=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=o.evt,i=Pr(o,Yr);tt.pluginEvent.bind(S)(e,n,ue({dragEl:p,parentEl:M,ghostEl:x,rootEl:B,nextEl:Ie,lastDownEl:ft,cloneEl:N,cloneHidden:Ee,dragStarted:Ue,putSortable:z,activeSortable:S.active,originalEvent:a,oldIndex:Oe,oldDraggableIndex:Ke,newIndex:q,newDraggableIndex:_e,hideGhostForTarget:Kn,unhideGhostForTarget:Jn,cloneNowHidden:function(){Ee=!0},cloneNowShown:function(){Ee=!1},dispatchSortableEvent:function(l){j({sortable:n,name:l,originalEvent:a})}},i))};function j(t){jr(ue({putSortable:z,cloneEl:N,targetEl:p,rootEl:B,oldIndex:Oe,oldDraggableIndex:Ke,newIndex:q,newDraggableIndex:_e},t))}var p,M,x,B,Ie,ft,N,Ee,Oe,q,Ke,_e,st,z,Pe=!1,vt=!1,bt=[],Ce,ne,At,Mt,Tn,In,Ue,Me,Je,Ze=!1,lt=!1,pt,$,Pt=[],jt=!1,yt=[],St=typeof document!="undefined",ct=$n,Dn=et||ge?"cssFloat":"float",Ur=St&&!Hn&&!$n&&"draggable"in document.createElement("div"),Wn=function(){if(St){if(ge)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),Gn=function(e,n){var o=w(e),a=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=Re(e,0,n),s=Re(e,1,n),l=i&&w(i),c=s&&w(s),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+O(i).width,f=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+O(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&l.float&&l.float!=="none"){var d=l.float==="left"?"left":"right";return s&&(c.clear==="both"||c.clear===d)?"vertical":"horizontal"}return i&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=a&&o[Dn]==="none"||s&&o[Dn]==="none"&&u+f>a)?"vertical":"horizontal"},Xr=function(e,n,o){var a=o?e.left:e.top,i=o?e.right:e.bottom,s=o?e.width:e.height,l=o?n.left:n.top,c=o?n.right:n.bottom,u=o?n.width:n.height;return a===l||i===c||a+s/2===l+u/2},Wr=function(e,n){var o;return bt.some(function(a){var i=a[K].options.emptyInsertThreshold;if(!(!i||Jt(a))){var s=O(a),l=e>=s.left-i&&e<=s.right+i,c=n>=s.top-i&&n<=s.bottom+i;if(l&&c)return o=a}}),o},qn=function(e){function n(i,s){return function(l,c,u,f){var d=l.options.group.name&&c.options.group.name&&l.options.group.name===c.options.group.name;if(i==null&&(s||d))return!0;if(i==null||i===!1)return!1;if(s&&i==="clone")return i;if(typeof i=="function")return n(i(l,c,u,f),s)(l,c,u,f);var _=(s?l:c).options.group.name;return i===!0||typeof i=="string"&&i===_||i.join&&i.indexOf(_)>-1}}var o={},a=e.group;(!a||dt(a)!="object")&&(a={name:a}),o.name=a.name,o.checkPull=n(a.pull,!0),o.checkPut=n(a.put),o.revertClone=a.revertClone,e.group=o},Kn=function(){!Wn&&x&&w(x,"display","none")},Jn=function(){!Wn&&x&&w(x,"display","")};St&&!Hn&&document.addEventListener("click",function(t){if(vt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),vt=!1,!1},!0);var Te=function(e){if(p){e=e.touches?e.touches[0]:e;var n=Wr(e.clientX,e.clientY);if(n){var o={};for(var a in e)e.hasOwnProperty(a)&&(o[a]=e[a]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[K]._onDragOver(o)}}},Gr=function(e){p&&p.parentNode[K]._isOutsideThisEl(e.target)};function S(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=me({},e),t[K]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Gn(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,l){s.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:S.supportPointer!==!1&&"PointerEvent"in window&&!Ge,emptyInsertThreshold:5};tt.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);qn(e);for(var a in this)a.charAt(0)==="_"&&typeof this[a]=="function"&&(this[a]=this[a].bind(this));this.nativeDraggable=e.forceFallback?!1:Ur,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?T(t,"pointerdown",this._onTapStart):(T(t,"mousedown",this._onTapStart),T(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(T(t,"dragover",this),T(t,"dragenter",this)),bt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),me(this,$r())}S.prototype={constructor:S,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(Me=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,p):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,a=this.options,i=a.preventOnFilter,s=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,c=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||c,f=a.filter;if(na(o),!p&&!(/mousedown|pointerdown/.test(s)&&e.button!==0||a.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ge&&c&&c.tagName.toUpperCase()==="SELECT")&&(c=le(c,a.draggable,o,!1),!(c&&c.animated)&&ft!==c)){if(Oe=ee(c),Ke=ee(c,a.draggable),typeof f=="function"){if(f.call(this,e,c,this)){j({sortable:n,rootEl:u,name:"filter",targetEl:c,toEl:o,fromEl:o}),Y("filter",n,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(d){if(d=le(u,d.trim(),o,!1),d)return j({sortable:n,rootEl:d,name:"filter",targetEl:c,fromEl:o,toEl:o}),Y("filter",n,{evt:e}),!0}),f)){i&&e.cancelable&&e.preventDefault();return}a.handle&&!le(u,a.handle,o,!1)||this._prepareDragStart(e,l,c)}}},_prepareDragStart:function(e,n,o){var a=this,i=a.el,s=a.options,l=i.ownerDocument,c;if(o&&!p&&o.parentNode===i){var u=O(o);if(B=i,p=o,M=p.parentNode,Ie=p.nextSibling,ft=o,st=s.group,S.dragged=p,Ce={target:p,clientX:(n||e).clientX,clientY:(n||e).clientY},Tn=Ce.clientX-u.left,In=Ce.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,p.style["will-change"]="all",c=function(){if(Y("delayEnded",a,{evt:e}),S.eventCanceled){a._onDrop();return}a._disableDelayedDragEvents(),!En&&a.nativeDraggable&&(p.draggable=!0),a._triggerDragStart(e,n),j({sortable:a,name:"choose",originalEvent:e}),G(p,s.chosenClass,!0)},s.ignore.split(",").forEach(function(f){jn(p,f.trim(),Ot)}),T(l,"dragover",Te),T(l,"mousemove",Te),T(l,"touchmove",Te),T(l,"mouseup",a._onDrop),T(l,"touchend",a._onDrop),T(l,"touchcancel",a._onDrop),En&&this.nativeDraggable&&(this.options.touchStartThreshold=4,p.draggable=!0),Y("delayStart",this,{evt:e}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(et||ge))){if(S.eventCanceled){this._onDrop();return}T(l,"mouseup",a._disableDelayedDrag),T(l,"touchend",a._disableDelayedDrag),T(l,"touchcancel",a._disableDelayedDrag),T(l,"mousemove",a._delayedDragTouchMoveHandler),T(l,"touchmove",a._delayedDragTouchMoveHandler),s.supportPointer&&T(l,"pointermove",a._delayedDragTouchMoveHandler),a._dragStartTimer=setTimeout(c,s.delay)}else c()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){p&&Ot(p),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._disableDelayedDrag),C(e,"touchend",this._disableDelayedDrag),C(e,"touchcancel",this._disableDelayedDrag),C(e,"mousemove",this._delayedDragTouchMoveHandler),C(e,"touchmove",this._delayedDragTouchMoveHandler),C(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?T(document,"pointermove",this._onTouchMove):n?T(document,"touchmove",this._onTouchMove):T(document,"mousemove",this._onTouchMove):(T(p,"dragend",this),T(B,"dragstart",this._onDragStart));try{document.selection?ht(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(o){}},_dragStarted:function(e,n){if(Pe=!1,B&&p){Y("dragStarted",this,{evt:n}),this.nativeDraggable&&T(document,"dragover",Gr);var o=this.options;!e&&G(p,o.dragClass,!1),G(p,o.ghostClass,!0),S.active=this,e&&this._appendGhost(),j({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(ne){this._lastX=ne.clientX,this._lastY=ne.clientY,Kn();for(var e=document.elementFromPoint(ne.clientX,ne.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ne.clientX,ne.clientY),e!==n);)n=e;if(p.parentNode[K]._isOutsideThisEl(e),n)do{if(n[K]){var o=void 0;if(o=n[K]._onDragOver({clientX:ne.clientX,clientY:ne.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Jn()}},_onTouchMove:function(e){if(Ce){var n=this.options,o=n.fallbackTolerance,a=n.fallbackOffset,i=e.touches?e.touches[0]:e,s=x&&Ve(x,!0),l=x&&s&&s.a,c=x&&s&&s.d,u=ct&&$&&Cn($),f=(i.clientX-Ce.clientX+a.x)/(l||1)+(u?u[0]-Pt[0]:0)/(l||1),d=(i.clientY-Ce.clientY+a.y)/(c||1)+(u?u[1]-Pt[1]:0)/(c||1);if(!S.active&&!Pe){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(x){s?(s.e+=f-(At||0),s.f+=d-(Mt||0)):s={a:1,b:0,c:0,d:1,e:f,f:d};var _="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");w(x,"webkitTransform",_),w(x,"mozTransform",_),w(x,"msTransform",_),w(x,"transform",_),At=f,Mt=d,ne=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!x){var e=this.options.fallbackOnBody?document.body:B,n=O(p,!0,ct,!0,e),o=this.options;if(ct){for($=e;w($,"position")==="static"&&w($,"transform")==="none"&&$!==document;)$=$.parentNode;$!==document.body&&$!==document.documentElement?($===document&&($=ce()),n.top+=$.scrollTop,n.left+=$.scrollLeft):$=ce(),Pt=Cn($)}x=p.cloneNode(!0),G(x,o.ghostClass,!1),G(x,o.fallbackClass,!0),G(x,o.dragClass,!0),w(x,"transition",""),w(x,"transform",""),w(x,"box-sizing","border-box"),w(x,"margin",0),w(x,"top",n.top),w(x,"left",n.left),w(x,"width",n.width),w(x,"height",n.height),w(x,"opacity","0.8"),w(x,"position",ct?"absolute":"fixed"),w(x,"zIndex","100000"),w(x,"pointerEvents","none"),S.ghost=x,e.appendChild(x),w(x,"transform-origin",Tn/parseInt(x.style.width)*100+"% "+In/parseInt(x.style.height)*100+"%")}},_onDragStart:function(e,n){var o=this,a=e.dataTransfer,i=o.options;if(Y("dragStart",this,{evt:e}),S.eventCanceled){this._onDrop();return}Y("setupClone",this),S.eventCanceled||(N=Xn(p),N.removeAttribute("id"),N.draggable=!1,N.style["will-change"]="",this._hideClone(),G(N,this.options.chosenClass,!1),S.clone=N),o.cloneId=ht(function(){Y("clone",o),!S.eventCanceled&&(o.options.removeCloneOnHide||B.insertBefore(N,p),o._hideClone(),j({sortable:o,name:"clone"}))}),!n&&G(p,i.dragClass,!0),n?(vt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(C(document,"mouseup",o._onDrop),C(document,"touchend",o._onDrop),C(document,"touchcancel",o._onDrop),a&&(a.effectAllowed="move",i.setData&&i.setData.call(o,a,p)),T(document,"drop",o),w(p,"transform","translateZ(0)")),Pe=!0,o._dragStartId=ht(o._dragStarted.bind(o,n,e)),T(document,"selectstart",o),Ue=!0,Ge&&w(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,o=e.target,a,i,s,l=this.options,c=l.group,u=S.active,f=st===c,d=l.sort,_=z||u,v,y=this,m=!1;if(jt)return;function I(be,ie){Y(be,y,ue({evt:e,isOwner:f,axis:v?"vertical":"horizontal",revert:s,dragRect:a,targetRect:i,canSort:d,fromSortable:_,target:o,completed:E,onMove:function(Ne,ye){return ut(B,n,p,a,Ne,O(Ne),e,ye)},changed:D},ie))}function b(){I("dragOverAnimationCapture"),y.captureAnimationState(),y!==_&&_.captureAnimationState()}function E(be){return I("dragOverCompleted",{insertion:be}),be&&(f?u._hideClone():u._showClone(y),y!==_&&(G(p,z?z.options.ghostClass:u.options.ghostClass,!1),G(p,l.ghostClass,!0)),z!==y&&y!==S.active?z=y:y===S.active&&z&&(z=null),_===y&&(y._ignoreWhileAnimating=o),y.animateAll(function(){I("dragOverAnimationComplete"),y._ignoreWhileAnimating=null}),y!==_&&(_.animateAll(),_._ignoreWhileAnimating=null)),(o===p&&!p.animated||o===n&&!o.animated)&&(Me=null),!l.dragoverBubble&&!e.rootEl&&o!==document&&(p.parentNode[K]._isOutsideThisEl(e.target),!be&&Te(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function D(){q=ee(p),_e=ee(p,l.draggable),j({sortable:y,name:"change",toEl:n,newIndex:q,newDraggableIndex:_e,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=le(o,l.draggable,n,!0),I("dragOver"),S.eventCanceled)return m;if(p.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||y._ignoreWhileAnimating===o)return E(!1);if(vt=!1,u&&!l.disabled&&(f?d||(s=M!==B):z===this||(this.lastPutMode=st.checkPull(this,u,p,e))&&c.checkPut(this,u,p,e))){if(v=this._getDirection(e,o)==="vertical",a=O(p),I("dragOverValid"),S.eventCanceled)return m;if(s)return M=B,b(),this._hideClone(),I("revert"),S.eventCanceled||(Ie?B.insertBefore(p,Ie):B.appendChild(p)),E(!0);var A=Jt(n,l.draggable);if(!A||Zr(e,v,this)&&!A.animated){if(A===p)return E(!1);if(A&&n===e.target&&(o=A),o&&(i=O(o)),ut(B,n,p,a,o,i,e,!!o)!==!1)return b(),A&&A.nextSibling?n.insertBefore(p,A.nextSibling):n.appendChild(p),M=n,D(),E(!0)}else if(A&&Jr(e,v,this)){var V=Re(n,0,l,!0);if(V===p)return E(!1);if(o=V,i=O(o),ut(B,n,p,a,o,i,e,!1)!==!1)return b(),n.insertBefore(p,V),M=n,D(),E(!0)}else if(o.parentNode===n){i=O(o);var H=0,J,Z=p.parentNode!==n,L=!Xr(p.animated&&p.toRect||a,o.animated&&o.toRect||i,v),de=v?"top":"left",U=kn(o,"top","top")||kn(p,"top","top"),re=U?U.scrollTop:void 0;Me!==o&&(J=i[de],Ze=!1,lt=!L&&l.invertSwap||Z),H=Qr(e,o,i,v,L?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,lt,Me===o);var Q;if(H!==0){var X=ee(p);do X-=H,Q=M.children[X];while(Q&&(w(Q,"display")==="none"||Q===x))}if(H===0||Q===o)return E(!1);Me=o,Je=H;var ve=o.nextElementSibling,ae=!1;ae=H===1;var Be=ut(B,n,p,a,o,i,e,ae);if(Be!==!1)return(Be===1||Be===-1)&&(ae=Be===1),jt=!0,setTimeout(Kr,30),b(),ae&&!ve?n.appendChild(p):o.parentNode.insertBefore(p,ae?ve:o),U&&Un(U,0,re-U.scrollTop),M=p.parentNode,J!==void 0&&!lt&&(pt=Math.abs(J-O(o)[de])),D(),E(!0)}if(n.contains(p))return E(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){C(document,"mousemove",this._onTouchMove),C(document,"touchmove",this._onTouchMove),C(document,"pointermove",this._onTouchMove),C(document,"dragover",Te),C(document,"mousemove",Te),C(document,"touchmove",Te)},_offUpEvents:function(){var e=this.el.ownerDocument;C(e,"mouseup",this._onDrop),C(e,"touchend",this._onDrop),C(e,"pointerup",this._onDrop),C(e,"touchcancel",this._onDrop),C(document,"selectstart",this)},_onDrop:function(e){var n=this.el,o=this.options;if(q=ee(p),_e=ee(p,o.draggable),Y("drop",this,{evt:e}),M=p&&p.parentNode,q=ee(p),_e=ee(p,o.draggable),S.eventCanceled){this._nulling();return}Pe=!1,lt=!1,Ze=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yt(this.cloneId),Yt(this._dragStartId),this.nativeDraggable&&(C(document,"drop",this),C(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ge&&w(document.body,"user-select",""),w(p,"transform",""),e&&(Ue&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),x&&x.parentNode&&x.parentNode.removeChild(x),(B===M||z&&z.lastPutMode!=="clone")&&N&&N.parentNode&&N.parentNode.removeChild(N),p&&(this.nativeDraggable&&C(p,"dragend",this),Ot(p),p.style["will-change"]="",Ue&&!Pe&&G(p,z?z.options.ghostClass:this.options.ghostClass,!1),G(p,this.options.chosenClass,!1),j({sortable:this,name:"unchoose",toEl:M,newIndex:null,newDraggableIndex:null,originalEvent:e}),B!==M?(q>=0&&(j({rootEl:M,name:"add",toEl:M,fromEl:B,originalEvent:e}),j({sortable:this,name:"remove",toEl:M,originalEvent:e}),j({rootEl:M,name:"sort",toEl:M,fromEl:B,originalEvent:e}),j({sortable:this,name:"sort",toEl:M,originalEvent:e})),z&&z.save()):q!==Oe&&q>=0&&(j({sortable:this,name:"update",toEl:M,originalEvent:e}),j({sortable:this,name:"sort",toEl:M,originalEvent:e})),S.active&&((q==null||q===-1)&&(q=Oe,_e=Ke),j({sortable:this,name:"end",toEl:M,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Y("nulling",this),B=p=M=x=Ie=N=ft=Ee=Ce=ne=Ue=q=_e=Oe=Ke=Me=Je=z=st=S.dragged=S.ghost=S.clone=S.active=null,yt.forEach(function(e){e.checked=!0}),yt.length=At=Mt=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":p&&(this._onDragOver(e),qr(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,a=0,i=o.length,s=this.options;a<i;a++)n=o[a],le(n,s.draggable,this.el,!1)&&e.push(n.getAttribute(s.dataIdAttr)||ta(n));return e},sort:function(e,n){var o={},a=this.el;this.toArray().forEach(function(i,s){var l=a.children[s];le(l,this.options.draggable,a,!1)&&(o[i]=l)},this),n&&this.captureAnimationState(),e.forEach(function(i){o[i]&&(a.removeChild(o[i]),a.appendChild(o[i]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return le(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var o=this.options;if(n===void 0)return o[e];var a=tt.modifyOption(this,e,n);typeof a!="undefined"?o[e]=a:o[e]=n,e==="group"&&qn(o)},destroy:function(){Y("destroy",this);var e=this.el;e[K]=null,C(e,"mousedown",this._onTapStart),C(e,"touchstart",this._onTapStart),C(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(C(e,"dragover",this),C(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),bt.splice(bt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Ee){if(Y("hideClone",this),S.eventCanceled)return;w(N,"display","none"),this.options.removeCloneOnHide&&N.parentNode&&N.parentNode.removeChild(N),Ee=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(Ee){if(Y("showClone",this),S.eventCanceled)return;p.parentNode==B&&!this.options.group.revertClone?B.insertBefore(N,p):Ie?B.insertBefore(N,Ie):B.appendChild(N),this.options.group.revertClone&&this.animate(p,N),w(N,"display",""),Ee=!1}}};function qr(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function ut(t,e,n,o,a,i,s,l){var c,u=t[K],f=u.options.onMove,d;return window.CustomEvent&&!ge&&!et?c=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(c=document.createEvent("Event"),c.initEvent("move",!0,!0)),c.to=e,c.from=t,c.dragged=n,c.draggedRect=o,c.related=a||e,c.relatedRect=i||O(e),c.willInsertAfter=l,c.originalEvent=s,t.dispatchEvent(c),f&&(d=f.call(u,c,s)),d}function Ot(t){t.draggable=!1}function Kr(){jt=!1}function Jr(t,e,n){var o=O(Re(n.el,0,n.options,!0)),a=10;return e?t.clientX<o.left-a||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-a||t.clientY<o.bottom&&t.clientX<o.left}function Zr(t,e,n){var o=O(Jt(n.el,n.options.draggable)),a=10;return e?t.clientX>o.right+a||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+a}function Qr(t,e,n,o,a,i,s,l){var c=o?t.clientY:t.clientX,u=o?n.height:n.width,f=o?n.top:n.left,d=o?n.bottom:n.right,_=!1;if(!s){if(l&&pt<u*a){if(!Ze&&(Je===1?c>f+u*i/2:c<d-u*i/2)&&(Ze=!0),Ze)_=!0;else if(Je===1?c<f+pt:c>d-pt)return-Je}else if(c>f+u*(1-a)/2&&c<d-u*(1-a)/2)return ea(e)}return _=_||s,_&&(c<f+u*i/2||c>d-u*i/2)?c>f+u/2?1:-1:0}function ea(t){return ee(p)<ee(t)?1:-1}function ta(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function na(t){yt.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&yt.push(o)}}function ht(t){return setTimeout(t,0)}function Yt(t){return clearTimeout(t)}St&&T(document,"touchmove",function(t){(S.active||Pe)&&t.cancelable&&t.preventDefault()});S.utils={on:T,off:C,css:w,find:jn,is:function(e,n){return!!le(e,n,e,!1)},extend:zr,throttle:Yn,closest:le,toggleClass:G,clone:Xn,index:ee,nextTick:ht,cancelNextTick:Yt,detectDirection:Gn,getChild:Re};S.get=function(t){return t[K]};S.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(S.utils=ue(ue({},S.utils),o.utils)),tt.mount(o)})};S.create=function(t,e){return new S(t,e)};S.version=Or;var P=[],Xe,Ut,Xt=!1,Vt,Ft,wt,We;function oa(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?T(document,"dragover",this._handleAutoScroll):this.options.supportPointer?T(document,"pointermove",this._handleFallbackAutoScroll):o.touches?T(document,"touchmove",this._handleFallbackAutoScroll):T(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?C(document,"dragover",this._handleAutoScroll):(C(document,"pointermove",this._handleFallbackAutoScroll),C(document,"touchmove",this._handleFallbackAutoScroll),C(document,"mousemove",this._handleFallbackAutoScroll)),Bn(),mt(),Rr()},nulling:function(){wt=Ut=Xe=Xt=We=Vt=Ft=null,P.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var a=this,i=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(i,s);if(wt=n,o||this.options.forceAutoScrollFallback||et||ge||Ge){zt(n,this.options,l,o);var c=ke(l,!0);Xt&&(!We||i!==Vt||s!==Ft)&&(We&&Bn(),We=setInterval(function(){var u=ke(document.elementFromPoint(i,s),!0);u!==c&&(c=u,mt()),zt(n,a.options,u,o)},10),Vt=i,Ft=s)}else{if(!this.options.bubbleScroll||ke(l,!0)===ce()){mt();return}zt(n,this.options,ke(l,!1),!1)}}},me(t,{pluginName:"scroll",initializeByDefault:!0})}function mt(){P.forEach(function(t){clearInterval(t.pid)}),P=[]}function Bn(){clearInterval(We)}var zt=Yn(function(t,e,n,o){if(e.scroll){var a=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,s=e.scrollSensitivity,l=e.scrollSpeed,c=ce(),u=!1,f;Ut!==n&&(Ut=n,mt(),Xe=e.scroll,f=e.scrollFn,Xe===!0&&(Xe=ke(n,!0)));var d=0,_=Xe;do{var v=_,y=O(v),m=y.top,I=y.bottom,b=y.left,E=y.right,D=y.width,A=y.height,V=void 0,H=void 0,J=v.scrollWidth,Z=v.scrollHeight,L=w(v),de=v.scrollLeft,U=v.scrollTop;v===c?(V=D<J&&(L.overflowX==="auto"||L.overflowX==="scroll"||L.overflowX==="visible"),H=A<Z&&(L.overflowY==="auto"||L.overflowY==="scroll"||L.overflowY==="visible")):(V=D<J&&(L.overflowX==="auto"||L.overflowX==="scroll"),H=A<Z&&(L.overflowY==="auto"||L.overflowY==="scroll"));var re=V&&(Math.abs(E-a)<=s&&de+D<J)-(Math.abs(b-a)<=s&&!!de),Q=H&&(Math.abs(I-i)<=s&&U+A<Z)-(Math.abs(m-i)<=s&&!!U);if(!P[d])for(var X=0;X<=d;X++)P[X]||(P[X]={});(P[d].vx!=re||P[d].vy!=Q||P[d].el!==v)&&(P[d].el=v,P[d].vx=re,P[d].vy=Q,clearInterval(P[d].pid),(re!=0||Q!=0)&&(u=!0,P[d].pid=setInterval(function(){o&&this.layer===0&&S.active._onTouchMove(wt);var ve=P[this.layer].vy?P[this.layer].vy*l:0,ae=P[this.layer].vx?P[this.layer].vx*l:0;typeof f=="function"&&f.call(S.dragged.parentNode[K],ae,ve,t,wt,P[this.layer].el)!=="continue"||Un(P[this.layer].el,ae,ve)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&_!==c&&(_=ke(_,!1)));Xt=u}},30),Zn=function(e){var n=e.originalEvent,o=e.putSortable,a=e.dragEl,i=e.activeSortable,s=e.dispatchSortableEvent,l=e.hideGhostForTarget,c=e.unhideGhostForTarget;if(n){var u=o||i;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(f.clientX,f.clientY);c(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:a,putSortable:o}))}};function Zt(){}Zt.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var a=Re(this.sortable.el,this.startIndex,this.options);a?this.sortable.el.insertBefore(n,a):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Zn};me(Zt,{pluginName:"revertOnSpill"});function Qt(){}Qt.prototype={onSpill:function(e){var n=e.dragEl,o=e.putSortable,a=o||this.sortable;a.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),a.animateAll()},drop:Zn};me(Qt,{pluginName:"removeOnSpill"});S.mount(new oa);S.mount(Qt,Zt);function ra(t){return typeof t=="function"||Object.prototype.toString.call(t)==="[object Object]"&&!r.isVNode(t)}const aa={"operate-handle":(t,e)=>!!(t||e),"sort-end":(t,e)=>!!(t||e),"update-page":(t,e)=>!!(t||e),"size-change":()=>!0},ia=r.defineComponent({name:"YxTable",props:{tableProps:{type:Object,required:!0}},emits:aa,setup(t,{attrs:e,slots:n,emit:o,expose:a}){r.onMounted(()=>{r.nextTick(()=>{i()})});const i=()=>{if(!t.tableProps.sort)return;const l=document.querySelector(".el-table__body tbody");S.create(l,{animation:200,sort:!0,handle:t.tableProps.sortHandle?`.${t.tableProps.sortHandle}`:null,onEnd:({oldIndex:c,newIndex:u})=>{o("sort-end",c,u)}})},s=r.ref();return a({tableRef:s}),()=>{let l;const{columns:c,rowKey:u,tableData:f,pageInfo:d}=t.tableProps,_=(I,b)=>{var E;return I.slotName&&((E=n[I.slotName])==null?void 0:E.call(n,b))},v=I=>I.map(b=>{const A=b,{children:E}=A,D=hn(A,["children"]);return r.createVNode(r.resolveComponent("el-table-column"),D,{default:V=>{if((b==null?void 0:b.renderType)==="operate")return y(b,V);if(b!=null&&b.renderType&&(b==null?void 0:b.renderType)!=="operate"){const H={renderType:b.renderType,prop:b.prop,config:b.config};return r.createVNode(Nr,{conf:H,model:V.row,onChange:b==null?void 0:b.change},null)}return b!=null&&b.render?b==null?void 0:b.render(V):E&&(E==null?void 0:E.length)>0?v(E):(b==null?void 0:b.slotName)&&_(b,V)}})}),y=(I,b)=>{var E;return r.createVNode("div",{class:"flex justify-center cursor-pointer"},[(E=I.operate)==null?void 0:E.filter(D=>!D.show||D.show(b.row)).map(D=>D!=null&&D.render?D.render(b.row):r.createVNode("span",{onClick:g.withModifiers(()=>o("operate-handle",D.key,b.row),["stop"]),class:"mr-10 whitespace-nowrap"},[D.label]))])},m=()=>{if(!(d&&d.total>d.size))return null;const I=E=>{o("update-page","size",E)},b=E=>{o("update-page","current",E)};return r.createVNode("div",{class:"pagination-wrap"},[r.createVNode(r.resolveComponent("el-pagination"),{currentPage:d.current,"onUpdate:currentPage":E=>d.current=E,pageSize:d.size,"onUpdate:pageSize":E=>d.size=E,small:!1,disabled:!1,"page-sizes":[10,20,50,100],layout:"total,sizes,prev, pager, next",background:!1,total:d.total,onSizeChange:I,onCurrentChange:b},null)])};return r.createVNode("div",{class:"w-full h-full flex flex-col"},[r.createVNode(r.resolveComponent("el-table"),r.mergeProps({ref:s},e,{"row-key":u,data:f}),ra(l=v(c))?l:{default:()=>[l]}),m()])}}});function sa(t){const e=t;return e.install=n=>{n.component(e.name,e)},e}const Qn=sa(ia);const la={class:"w-200 my-5"},eo=r.defineComponent({__name:"index",setup(t){const e=r.ref("");return(n,o)=>{const a=tr;return r.openBlock(),r.createElementBlock("div",null,[r.createBaseVNode("div",la,[r.createVNode(a,{modelValue:e.value,"onUpdate:modelValue":o[0]||(o[0]=i=>e.value=i),placeholder:"请输入"},null,8,["modelValue"])])])}}});class ca extends HTMLElement{constructor(e){super(),this.initComponent(e)}initComponent(e){const n=this.attachShadow({mode:"open"}),a=document.getElementById("theme-tool").content.cloneNode(!0);n.appendChild(a)}}customElements.define("theme-component",ca);let to,no,ua;const da=()=>{localStorage.setItem(to,no),window.location.reload(!0)},fa=()=>{ua.unmount(),document.body.removeChild(document.querySelector("#update")),localStorage.setItem(to,no)},pa=t=>(r.pushScopeId("data-v-668773ee"),t=t(),r.popScopeId(),t),ha={class:"update-wrap flex items-center justify-center"},ma={class:"relative update-content"},ga={class:"flex items-center justify-center"},va={class:"flex flex-col gap-5 mt-10"},ba={class:"update-title"},ya={class:"update-item px-20"},wa={class:"text-end"},Sa={class:"flex justify-end items-center mt-10"},_a=pa(()=>r.createBaseVNode("span",{class:"tips mt-10"},"提示: 选择立即更新后,会立即刷新页面更新系统,当前页面缓存数据会消失选择暂不更新后,请稍后自行刷新页面更新系统。",-1)),Ea=r.defineComponent({__name:"index",props:{title:{},description:{},content:{},time:{}},setup(t){const e=t;return console.log(e),(n,o)=>{const a=Cr;return r.openBlock(),r.createElementBlock("div",ha,[r.createBaseVNode("div",ma,[r.createBaseVNode("div",ga,r.toDisplayString(e==null?void 0:e.title),1),r.createBaseVNode("div",va,[r.createBaseVNode("div",ba,r.toDisplayString(e==null?void 0:e.description),1),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(e==null?void 0:e.content,(i,s)=>(r.openBlock(),r.createElementBlock("div",ya,[r.createBaseVNode("span",null,r.toDisplayString(s)+":",1),r.createTextVNode(),r.createBaseVNode("span",null,r.toDisplayString(i),1)]))),256)),r.createBaseVNode("div",wa,r.toDisplayString(e.time)+" 软件专业部",1),r.createBaseVNode("div",Sa,[r.createVNode(a,{plain:"",onClick:r.unref(fa)},{default:r.withCtx(()=>[r.createTextVNode("暂不更新")]),_:1},8,["onClick"]),r.createVNode(a,{onClick:r.unref(da)},{default:r.withCtx(()=>[r.createTextVNode("立即更新")]),_:1},8,["onClick"])]),_a])])])}}});const $e=(t,e)=>{const n=t.__vccOpts||t;for(const[o,a]of e)n[o]=a;return n},oo=$e(Ea,[["__scopeId","data-v-668773ee"]]);Array.prototype.handler=function(t){return t(this)};const xa={name:"YxToolbarHelper",props:["item"],data(){return{}},mounted(){},methods:{}},ka={id:"toolbar-helper",class:"toolbar-helper"};function Ca(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",ka)}const ro=$e(xa,[["render",Ca],["__scopeId","data-v-bc010fa9"]]),Ta={name:"YxToolbarIssue",props:["item"],data(){return{dialogVisible:!1}},watch:{"item.status":{handler:function(){const t=window.location.pathname.split("/")[1];window.open(`/${t}/integrated/#/workOrderManagement`)}}}},Ia={id:"toolbar-issue",class:"toolbar-issue absolute"};function Da(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",Ia)}const ao=$e(Ta,[["render",Da]]);const Ba={name:"YxToolbarTheme",props:["item"],data(){return console.log(window.theme),{themeSource:window.theme}},computed:{status(){return this.item.status},themeData(){var t;return(t=this.themeSource)==null?void 0:t.map((e,n)=>{const o=(()=>{const c=this.themeSource.length;return c<=2?Math.PI/3:c<=3?Math.PI/2:c<=5?Math.PI:Math.PI*2})(),a=o===Math.PI*2?this.themeSource.length:this.themeSource.length-1,i=o*n/a,s=-70*Math.sin(i)+"px",l=-70*Math.cos(i)+"px";return fe(se({},e),{style:{background:e.themeColor},activeStyle:{background:e.themeColor,transform:`translate(${s}, ${l}) scale(1)`,opacity:"1"}})})}},methods:{handlerSwitchTheme(t){console.log(`%c yx-toolbar %c 切换主题:${t.theme}`,"background:#CE9FFC ; padding: 2px; border-radius: 3px 0 0 3px; color: #fff","background:#6b3af6 ; padding: 2px; border-radius: 0 3px 3px 0; color: #fff",t),en(t)}}},Na={id:"toolbar-theme",class:"toolbar-theme"},Aa=["title","onClick"];function Ma(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",Na,[r.createBaseVNode("div",{class:r.normalizeClass(["theme-wrap",{active:i.status}])},[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(i.themeData,s=>(r.openBlock(),r.createElementBlock("div",{key:s.id,class:r.normalizeClass(["theme-item",{active:i.status}]),title:s.theme,style:r.normalizeStyle(i.status?s.activeStyle:s.style),onClick:g.withModifiers(()=>i.handlerSwitchTheme(s),["stop"])},null,14,Aa))),128))],2)])}const io=$e(Ba,[["render",Ma],["__scopeId","data-v-41428219"]]),Pa={name:"toolbar",version:"1.0.0",icon:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-menu-icon.svg",tooltip:"工具栏",children:[{name:"theme",label:"主题切换",icon:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-theme.svg",icon_active:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-theme-back.svg",position:[50,0],desc:"跳转到问题反馈页面",action:"hiddenTool",component:"Theme"},{name:"issue",label:"问题反馈",icon:"https://yx-picture.obs.cn-north-4.myhuaweicloud.com/ttc/bucket/toolbar-issue.svg",position:[100,0],desc:"跳转到问题反馈页面",component:"Issue"}]},so=()=>Pa,Oa={Helper:r.markRaw(ro),Issue:r.markRaw(ao),Theme:r.markRaw(io)};function Va(t){return t.map(e=>fe(se({},e),{status:!1,showIcon:e.icon,hidden:!1}))}const Fa={data(){return{itemList:JSON.parse(JSON.stringify(Va(so().children)))}},components:{Helper:ro,Issue:ao,Theme:io}};function za(t){let e=0,n=0;t.onmousedown=o=>{e=o.clientX-t.offsetLeft,n=o.clientY-t.offsetTop;const a=s=>{s.stopPropagation(),s.preventDefault();const l=s.clientX,c=s.clientY;let u=l-e,f=c-n;u<0&&(u=0),f<0&&(f=0),u>document.body.clientWidth-t.clientWidth&&(u=document.body.clientWidth-t.clientWidth),f>document.body.clientHeight-t.clientHeight&&(f=document.body.clientHeight-t.clientHeight),t.style.left=u+"px",t.style.top=f+"px"},i=()=>{document.removeEventListener("mousemove",a),document.removeEventListener("mouseup",i)};document.addEventListener("mousemove",a),document.addEventListener("mouseup",i)}}const Ra={name:"YxToolbarItem",props:["item","itemList"],data(){return{status:!1}},methods:{handlerClick(){console.log(`%c yx-toolbar %c 点击组件:${this.item.name}`,"background:#CE9FFC ; padding: 2px; border-radius: 3px 0 0 3px; color: #fff","background:#b54381 ; padding: 2px; border-radius: 0 3px 3px 0; color: #fff",this.item)}}},$a=["title"];function Ha(t,e,n,o,a,i){return r.openBlock(),r.createElementBlock("div",{class:"toolbar-item",title:n.item.label,onClick:e[0]||(e[0]=(...s)=>i.handlerClick&&i.handlerClick(...s))},[r.renderSlot(t.$slots,"default")],8,$a)}const La=$e(Ra,[["render",Ha]]);let Ye;const ja={config:so(),compMap:Oa,status:!1,expandedComponent:null},Ya={name:"YxToolbar",components:{Item:La},mixins:[Fa],data(){return fe(se({},ja),{opacity:.5})},computed:{hiddenToolbar(){return this.itemList.find(t=>t.hidden)}},mounted(){this.move()},methods:{move(){za(document.querySelector("#toolbar-container"))},cssFormat(t){var e,n;return{backgroundImage:`url(${t.showIcon})`,top:((e=t.position)==null?void 0:e[0])+"px",left:((n=t.position)==null?void 0:n[1])+"px",display:t.hidden?"none":"block"}},handleItemClick(t){const{hiddenOther:e,changeStatus:n}=this.actions(t),o=this.itemList.handler(e).handler(n);this.expandedComponent=t,this.itemList.splice(0,this.itemList.length,...o)},actions(t){function e(o){return o.map(a=>fe(se({},a),{hidden:!t.status&&a.name!==t.name&&t.action==="hiddenTool"}))}function n(o){return o.map(a=>a.name!==t.name?a:fe(se({},a),{status:!a.status,showIcon:t.status?t.icon:t.icon_active||t.icon}))}return{hiddenOther:e,changeStatus:n}},mouseenter(){this.opacity=1,Ye&&clearTimeout(Ye)},mouseleave(){Ye&&clearTimeout(Ye),Ye=setTimeout(()=>{this.opacity=.5;const t=document.querySelector(".toolbar-checkbox");t.checked=!1,this.itemList[0].status&&this.handleItemClick(this.itemList[0])},3e3)}}};function Ua(t,e,n,o,a,i){const s=r.resolveComponent("Item");return r.openBlock(),r.createElementBlock("div",{id:"toolbar-container",class:"toolbar-container",style:r.normalizeStyle({opacity:a.opacity}),onMouseenter:e[0]||(e[0]=(...l)=>i.mouseenter&&i.mouseenter(...l)),onMouseleave:e[1]||(e[1]=(...l)=>i.mouseleave&&i.mouseleave(...l))},[r.createBaseVNode("div",{class:"item parent",style:r.normalizeStyle({backgroundImage:`url(${t.config.icon})`,display:`${i.hiddenToolbar?"none":"block"}`})},null,4),r.createBaseVNode("input",{class:"item parent toolbar-checkbox",style:r.normalizeStyle({display:`${i.hiddenToolbar?"none":"block"}`}),value:"test",type:"checkbox"},null,4),(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(t.itemList,(l,c)=>{var u;return r.openBlock(),r.createElementBlock("div",{key:l.name,"data-name":"",class:r.normalizeClass(["item son",{active:((u=t.expandedComponent)==null?void 0:u.name)===l.name&&l.status}]),style:r.normalizeStyle(i.cssFormat(l))},[r.createVNode(s,{item:l,itemList:t.itemList,onClick:f=>i.handleItemClick(l)},{default:r.withCtx(()=>[(r.openBlock(),r.createBlock(r.resolveDynamicComponent(t.compMap[l.component]),{item:l},null,8,["item"]))]),_:2},1032,["item","itemList","onClick"])],6)}),128))],36)}const Nn=$e(Ya,[["render",Ua],["__scopeId","data-v-65496eff"]]);var ze;const Qe=class{constructor({theme:e}){gn(this,ze,"yxToolbar");return Qe.instance||(window.theme=e,console.log("theme",e),this.init(),Qe.instance=this),Qe.instance}get vueVersion(){return r.version[0]}init(){this.mount()}mount(){const e=document.createElement("div");if(e.id=rt(this,ze),document.body.appendChild(e),this.vueVersion==="3")return console.log(this.vueVersion),g.createApp(Nn).mount(`#${rt(this,ze)}`);{const n=require("vue");return new n({render:o=>o(Nn)}).$mount(`#${rt(this,ze)}`)}}};let Fe=Qe;ze=new WeakMap,mn(Fe,"instance",null);const lo=Object.freeze(Object.defineProperty({__proto__:null,SearchForm:eo,Toolbar:Fe,Update:oo,YxTable:Qn},Symbol.toStringTag,{value:"Module"})),co=(t=!0)=>we(exports,null,function*(){var n;let e=nn();try{const{data:o}=yield Gt.getUserThemeList();t&&new Fe({theme:o});let a=e?(n=o.find(s=>s.id===e))==null?void 0:n.themeUrl:"";if(!e||!a){const l=o.find(c=>c.defaultTheme===1)||o[0];a=l.themeUrl,e=l.id}const i=yield Wt(a);uo({themeCssVar:i,themeId:e}),An(),Et.onmessage=s=>{const l=s.data;l.type==="theme"&&Wt(l.data.themeUrl)},console.log("主题初始化完毕!!!")}catch(o){An(),tn()}}),An=()=>{const t=document.createElement("style");t.innerHTML=Br,document.head.appendChild(t)},uo=({themeCssVar:t,themeId:e})=>{const n=localStorage.getItem("ttcGlobalState")||"{}",o=JSON.parse(n);o.theme={themeCssVar:t,id:e},localStorage.setItem("ttcGlobalState",JSON.stringify(o))},en=t=>we(exports,null,function*(){const e=yield Wt(t.themeUrl);uo({themeCssVar:e,themeId:t==null?void 0:t.id}),Et.postMessage({type:"theme",data:t})}),tn=()=>{const t=_t(),e=document.documentElement;Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(o=>{const a=`--${n}-${o}`;e.style.setProperty(a,t[n][o])})})},Wt=t=>we(exports,null,function*(){const n=yield(yield fetch(t)).json(),o=document.documentElement;return Object.keys(n).forEach(a=>{Object.keys(n[a]).forEach(i=>{const s=`--${a}-${i}`;o.style.setProperty(s,n[a][i])})}),n}),fo=()=>we(exports,null,function*(){const{data:t}=yield Gt.getUserThemeList(),e=t.find(o=>o.defaultTheme===1);return e?e.themeUrl:t[0].themeUrl}),nn=()=>{var n;const t=localStorage.getItem("ttcGlobalState"),e=t&&((n=JSON.parse(t))==null?void 0:n.theme);return(e==null?void 0:e.id)||null},_t=()=>{var n;const t=localStorage.getItem("ttcGlobalState");return(t&&((n=JSON.parse(t))==null?void 0:n.theme)).themeCssVar},po=t=>_t()[t]||{},Xa=Object.freeze(Object.defineProperty({__proto__:null,changeTheme:en,getCurTheme:nn,getCurThemeCssVar:_t,getDefaultThemeUrl:fo,getGroupColor:po,install:co,updateTheme:tn},Symbol.toStringTag,{value:"Module"}));console.log(lo);const Et=new BroadcastChannel("YXUSE_BC"),Wa={utils:Io.utils,api:Gt.api,theme:Xa,icons:Do.icons,components:lo,directives:Bo.directives,BC:Et};exports.BC=Et;exports.Toolbar=Fe;exports.Update=oo;exports.YxTable=Qn;exports._sfc_main=eo;exports.changeTheme=en;exports.getCurTheme=nn;exports.getCurThemeCssVar=_t;exports.getDefaultThemeUrl=fo;exports.getGroupColor=po;exports.index=Wa;exports.install=co;exports.updateTheme=tn;
Binary file
package/lib/index.es2.js CHANGED
@@ -2922,7 +2922,7 @@ const Vo = /* @__PURE__ */ it(Bi, [["render", Hi], ["__scopeId", "data-v-bc010fa
2922
2922
  "item.status": {
2923
2923
  handler: function() {
2924
2924
  const t = window.location.pathname.split("/")[1];
2925
- window.open(`${t}/integrated/workOrderManagement`);
2925
+ window.open(`/${t}/integrated/#/workOrderManagement`);
2926
2926
  }
2927
2927
  }
2928
2928
  }
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yxuse",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "private": false,
5
5
  "keywords": [
6
6
  "yx"