mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-08-17 21:25:47 +02:00
8 lines
246 KiB
JavaScript
8 lines
246 KiB
JavaScript
(function(){System.register([`./rolldown-runtime-legacy.js?v=1784873523001`,`./vendor-utils-legacy.js?v=1784873523001`,`./vendor-vue-legacy.js?v=1784873523001`,`./vendor-legacy.js?v=1784873523001`],function(e,t){var n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,N,P,ee,te,F,ne,re,ie,I,ae,oe,se,L,R,ce,le,ue,de,fe,pe,me,he,ge,z,_e,B,ve,ye,be,xe,Se,Ce,V,we,Te,Ee,De,Oe,ke,Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re,H,U,ze,Be,W,Ve,G,He,Ue,K,We,Ge,Ke,qe,Je,Ye,Xe,Ze,q,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,J,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,Y,nn,rn;function an(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function on(e){if(Array.isArray(e))return e}function sn(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function cn(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function ln(e,t,n){return t&&cn(e.prototype,t),n&&cn(e,n),e}function un(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dn(e,t){"@swc/helpers - instanceof";return t!=null&&typeof Symbol<`u`&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function fn(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function pn(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function mn(e,t){return on(e)||fn(e,t)||gn(e,t)||pn()}function hn(e){"@swc/helpers - typeof";return e&&typeof Symbol<`u`&&e.constructor===Symbol?`symbol`:typeof e}function gn(e,t){if(e){if(typeof e==`string`)return an(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return an(e,t)}}function _n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_n(Object(n),!0).forEach(function(t){bn(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_n(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yn(e){"@babel/helpers - typeof";return yn=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yn(e)}function bn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xn(){return xn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xn.apply(this,arguments)}function Sn(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Cn(e,t){if(e==null)return{};var n=Sn(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wn(e){return Tn(e)||En(e)||Dn(e)||kn()}function Tn(e){if(Array.isArray(e))return On(e)}function En(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Dn(e,t){if(e){if(typeof e==`string`)return On(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return On(e,t)}}function On(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function kn(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function An(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function X(e,t,n){e.addEventListener(t,n,!D&&ke)}function Z(e,t,n){e.removeEventListener(t,n,!D&&ke)}function jn(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function Mn(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Nn(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&jn(e,t):jn(e,t))||r&&e===n)return e;if(e===n)break}while(e=Mn(e))}return null}function Pn(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(ae,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(ae,` `))}function Q(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function Fn(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=Q(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function In(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function Ln(){return document.scrollingElement||document.documentElement}function Rn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==Ln()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!D))do if(i&&i.getBoundingClientRect&&(Q(i,`transform`)!==`none`||n&&Q(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(Q(i,`border-top-width`)),s-=f.left+parseInt(Q(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=Fn(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function zn(e,t,n){for(var r=Gn(e,!0),i=Rn(e)[t];r;){var a=Rn(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===Ln())break;r=Gn(r,!1)}return!1}function Bn(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==$.ghost&&(r||o[a]!==$.dragged)&&Nn(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function Vn(e,t){for(var n=e.lastElementChild;n&&(n===$.ghost||Q(n,`display`)===`none`||t&&!jn(n,t));)n=n.previousElementSibling;return n||null}function Hn(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==$.clone&&(!t||jn(e,t))&&n++;return n}function Un(e){var t=0,n=0,r=Ln();if(e)do{var i=Fn(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Wn(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Gn(e,t){if(!e||!e.getBoundingClientRect)return Ln();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Q(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return Ln();if(r||t)return n;r=!0}}while(n=n.parentNode);return Ln()}function Kn(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function qn(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Jn(e,t){return function(){if(!Se){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Se=setTimeout(function(){Se=void 0},t)}}}function Yn(){clearTimeout(Se),Se=void 0}function Xn(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Zn(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Qn(e,t){Q(e,`position`,`absolute`),Q(e,`top`,t.top),Q(e,`left`,t.left),Q(e,`width`,t.width),Q(e,`height`,t.height)}function $n(e){Q(e,`position`,``),Q(e,`top`,``),Q(e,`left`,``),Q(e,`width`,``),Q(e,`height`,``)}function er(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(Q(t,`display`)===`none`||t===$.ghost)){e.push({target:t,rect:Rn(t)});var n=vn({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=Fn(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Wn(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=Rn(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=Fn(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&qn(c,s)&&!qn(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=nr(u,c,l,r.options)),qn(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||(t=r.options.animation),r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){Q(e,`transition`,``),Q(e,`transform`,``);var i=Fn(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,Q(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=tr(e),Q(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),Q(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){Q(e,`transition`,``),Q(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function tr(e){return e.offsetWidth}function nr(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}function rr(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t=t||n&&n[W],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!D&&!v?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var y=vn(vn({},m),ne.getEventProperties(r,t));for(var b in y)h[b]=y[b];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function ir(e){rr(vn({putSortable:Mt,cloneEl:Ae,targetEl:H,rootEl:Rt,oldIndex:wt,oldDraggableIndex:Ct,newIndex:bt,newDraggableIndex:yt},e))}function $(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=xn({},t),e[W]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return ge(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.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:$.supportPointer!==!1&&`PointerEvent`in window&&!se,emptyInsertThreshold:5};for(var r in ne.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in be(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=!t.forceFallback&&Yt,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?X(e,`pointerdown`,this._onTapStart):(X(e,`mousedown`,this._onTapStart),X(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(X(e,`dragover`,this),X(e,`dragenter`,this)),Kt.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),xn(this,er())}function ar(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function or(e,t,n,r,i,a,o,s){var c,l=e[W],u=l.options.onMove,d;return window.CustomEvent&&!D&&!v?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||Rn(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function sr(e){e.draggable=!1}function cr(){xe=!1}function lr(e,t,n){var r=Rn(Bn(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function ur(e,t,n){var r=Rn(Vn(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function dr(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&$t<l*i){if(!Dt&&(st===1?c>u+l*a/2:c<d-l*a/2)&&(Dt=!0),Dt)f=!0;else if(st===1?c<u+$t:c>d-$t)return-st}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return fr(t)}return f=f||o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function fr(e){return Hn(H)<Hn(e)?1:-1}function pr(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function mr(e){zt.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&zt.push(r)}}function hr(e){return setTimeout(e,0)}function gr(e){return clearTimeout(e)}function _r(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?X(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?X(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?X(document,`touchmove`,this._handleFallbackAutoScroll):X(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Z(document,`dragover`,this._handleAutoScroll):(Z(document,`pointermove`,this._handleFallbackAutoScroll),Z(document,`touchmove`,this._handleFallbackAutoScroll),Z(document,`mousemove`,this._handleFallbackAutoScroll)),yr(),vr(),Yn()},nulling:function(){tn=Vt=Bt=Ht=At=at=ot=null,De.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(tn=e,t||this.options.forceAutoScrollFallback||v||D||se){Ee(e,this.options,a,t);var o=Gn(a,!0);Ht&&(!At||r!==at||i!==ot)&&(At&&yr(),At=setInterval(function(){var a=Gn(document.elementFromPoint(r,i),!0);a!==o&&(o=a,vr()),Ee(e,n.options,a,t)},10),at=r,ot=i)}else{if(!this.options.bubbleScroll||Gn(a,!0)===Ln()){vr();return}Ee(e,this.options,Gn(a,!1),!1)}}},xn(e,{pluginName:`scroll`,initializeByDefault:!0})}function vr(){De.forEach(function(e){clearInterval(e.pid)}),De=[]}function yr(){clearInterval(At)}function br(){}function xr(){}function Sr(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){ft=e.dragEl},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,a=e.changed,o=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=ft;r(n)===!1?ft=null:(Pn(n,c.swapClass,!0),ft=n),l&&l!==ft&&Pn(l,c.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,a=this.options;ft&&Pn(ft,a.swapClass,!1),ft&&(a.swap||n&&n.options.swap)&&r!==ft&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Cr(r,ft),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){ft=null}},xn(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:ft}}})}function Cr(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Hn(e),a=Hn(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function wr(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.supportPointer?X(document,`pointerup`,this._deselectMultiDrag):(X(document,`mouseup`,this._deselectMultiDrag),X(document,`touchend`,this._deselectMultiDrag)),X(document,`keydown`,this._checkKeyDown),X(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,setData:function(t,n){var r=``;J.length&>===e?J.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){U=e.dragEl},delayEnded:function(){this.isMultiDrag=~J.indexOf(U)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<J.length;r++)ht.push(Zn(J[r])),ht[r].sortableIndex=J[r].sortableIndex,ht[r].draggable=!1,ht[r].style[`will-change`]=``,Pn(ht[r],this.options.selectedClass,!1),J[r]===U&&Pn(ht[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||J.length&>===t&&(Er(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(Er(!1,n),ht.forEach(function(e){Q(e,`display`,``)}),t(),Ne=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(ht.forEach(function(e){Q(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),Ne=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&>&>.multiDrag._deselectMultiDrag(),J.forEach(function(e){e.sortableIndex=Hn(e)}),J=J.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),ze=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){J.forEach(function(e){e!==U&&Q(e,`position`,`absolute`)});var r=Rn(U,!1,!0,!0);J.forEach(function(e){e!==U&&Qn(e,r)}),Ve=!0,Je=!0}n.animateAll(function(){Ve=!1,Je=!1,t.options.animation&&J.forEach(function(e){$n(e)}),t.options.sort&&Dr()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Ve&&~J.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;J.length>1&&(J.forEach(function(e){r.addAnimationState({target:e,rect:Ve?Rn(e):i}),$n(e),e.fromRect=i,t.removeAnimationState(e)}),Ve=!1,Tr(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),Je=!1,s.animation&&J.length>1&&(Ve||!n&&!i.options.sort&&!o)){var c=Rn(U,!1,!0,!0);J.forEach(function(e){e!==U&&(Qn(e,c),a.appendChild(e))}),Ve=!0}if(!n)if(Ve||Dr(),J.length>1){var l=Ne;i._showClone(t),i.options.animation&&!Ne&&l&&ht.forEach(function(e){i.addAnimationState({target:e,rect:Me}),e.fromRect=Me,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(J.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Me=xn({},t);var i=Fn(U,!0);Me.top-=i.f,Me.left-=i.e}},dragOverAnimationComplete:function(){Ve&&(Ve=!1,Dr())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!ze)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Pn(U,l.selectedClass,!~J.indexOf(U)),~J.indexOf(U))J.splice(J.indexOf(U),1),dt=null,rr({sortable:i,rootEl:n,name:`deselect`,targetEl:U,originalEvt:t});else{if(J.push(U),rr({sortable:i,rootEl:n,name:`select`,targetEl:U,originalEvt:t}),t.shiftKey&&dt&&i.el.contains(dt)){var d=Hn(dt),f=Hn(U);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~J.indexOf(u[m])||(Pn(u[m],l.selectedClass,!0),J.push(u[m]),rr({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvt:t}))}}else dt=U;gt=c}if(ze&&this.isMultiDrag){if(Ve=!1,(r[W].options.sort||r!==n)&&J.length>1){var h=Rn(U),g=Hn(U,`:not(.`+this.options.selectedClass+`)`);if(!Je&&l.animation&&(U.thisAnimationDuration=null),c.captureAnimationState(),!Je&&(l.animation&&(U.fromRect=h,J.forEach(function(e){if(e.thisAnimationDuration=null,e!==U){var t=Ve?Rn(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),Dr(),J.forEach(function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++}),o===Hn(U))){var _=!1;J.forEach(function(e){if(e.sortableIndex!==Hn(e)){_=!0;return}}),_&&a(`update`)}J.forEach(function(e){$n(e)}),c.animateAll()}gt=c}(n===r||s&&s.lastPutMode!==`clone`)&&ht.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=ze=!1,ht.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Z(document,`pointerup`,this._deselectMultiDrag),Z(document,`mouseup`,this._deselectMultiDrag),Z(document,`touchend`,this._deselectMultiDrag),Z(document,`keydown`,this._checkKeyDown),Z(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(ze!==void 0&&ze)&>===this.sortable&&!(e&&Nn(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;J.length;){var t=J[0];Pn(t,this.options.selectedClass,!1),J.shift(),rr({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},xn(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[W];!t||!t.options.multiDrag||~J.indexOf(e)||(gt&>!==t&&(gt.multiDrag._deselectMultiDrag(),gt=t),Pn(e,t.options.selectedClass,!0),J.push(e))},deselect:function(e){var t=e.parentNode[W],n=J.indexOf(e);!t||!t.options.multiDrag||!~n||(Pn(e,t.options.selectedClass,!1),J.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return J.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=Ve&&r!==U?-1:Ve?Hn(r,`:not(.`+e.options.selectedClass+`)`):Hn(r);n.push({multiDragElement:r,index:i})}),{items:wn(J),clones:[].concat(ht),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Tr(e,t){J.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Er(e,t){ht.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function Dr(){J.forEach(function(e){e!==U&&e.parentNode&&e.parentNode.removeChild(e)})}function Or(e){jt(l,e)}function kr(){return Ze(l)}function Ar(e,t,n){return t.split(`.`).reduce(function(e,t){return e&&e[t]?e[t]:n||null},e)}function jr(e,t){return e.filter(function(e){return e!==t})}function Mr(e){return(e===void 0?`undefined`:hn(e))===`object`}function Nr(e,t){var n=new Map,r=function(e){n.set(e,n.has(e)?n.get(e)+1:1)};e.forEach(r),t.forEach(r);var i=[];return n.forEach(function(e,t){e===1&&i.push(t)}),i}function Pr(e,t){return e.filter(function(e){return t.indexOf(e)>-1})}function Fr(e,t){return{type:O,payload:{sourceClientOffset:t||null,clientOffset:e||null}}}function Ir(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{publishSource:!0},r=n.publishSource,i=r===void 0||r,o=n.clientOffset,s=n.getSourceClientOffset,c=e.getMonitor(),l=e.getRegistry();e.dispatch(Fr(o)),Lr(t,c,l);var u=Br(t,c);if(u==null){e.dispatch(oe);return}var d=null;if(o){if(!s)throw Error(`getSourceClientOffset must be defined`);Rr(s),d=s(u)}e.dispatch(Fr(o,d));var f=l.getSource(u).beginDrag(c,u);if(f!=null)return zr(f),l.pinSource(u),{type:a,payload:{itemType:l.getSourceType(u),item:f,sourceId:u,clientOffset:o||null,sourceClientOffset:d||null,isSourcePublic:!!i}}}}function Lr(e,t,n){q(!t.isDragging(),`Cannot call beginDrag while dragging.`),e.forEach(function(e){q(n.getSource(e),`Expected sourceIds to be registered.`)})}function Rr(e){q(typeof e==`function`,`When clientOffset is provided, getSourceClientOffset must be a function.`)}function zr(e){q(Mr(e),`Item must be an object.`)}function Br(e,t){for(var n=null,r=e.length-1;r>=0;r--)if(t.canDragSource(e[r])){n=e[r];break}return n}function Vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Vr(e,t,n[t])})}return e}function Ur(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=e.getMonitor(),r=e.getRegistry();Wr(n),qr(n).forEach(function(i,a){var o={type:c,payload:{dropResult:Hr({},t,Gr(i,a,r,n))}};e.dispatch(o)})}}function Wr(e){q(e.isDragging(),`Cannot call drop while not dragging.`),q(!e.didDrop(),`Cannot call drop twice during one drag operation.`)}function Gr(e,t,n,r){var i=n.getTarget(e),a=i?i.drop(r,e):void 0;return Kr(a),a===void 0&&(a=t===0?{}:r.getDropResult()),a}function Kr(e){q(e===void 0||Mr(e),`Drop result must either be an object or undefined.`)}function qr(e){var t=e.getTargetIds().filter(e.canDropOnTarget,e);return t.reverse(),t}function Jr(e){return function(){var t=e.getMonitor(),n=e.getRegistry();Yr(t);var r=t.getSourceId();return r!=null&&(n.getSource(r,!0).endDrag(t,r),n.unpinSource()),{type:_}}}function Yr(e){q(e.isDragging(),`Cannot call endDrag while not dragging.`)}function Xr(e,t){return t===null?e===null:Array.isArray(e)?e.some(function(e){return e===t}):e===t}function Zr(e){return function(t){var n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).clientOffset;Qr(t);var r=t.slice(0),i=e.getMonitor(),a=e.getRegistry();return ei(r,a,i.getItemType()),$r(r,i,a),ti(r,i,a),{type:S,payload:{targetIds:r,clientOffset:n||null}}}}function Qr(e){q(Array.isArray(e),`Expected targetIds to be an array.`)}function $r(e,t,n){q(t.isDragging(),`Cannot call hover while not dragging.`),q(!t.didDrop(),`Cannot call hover after drop.`);for(var r=0;r<e.length;r++){var i=e[r];q(e.lastIndexOf(i)===r,`Expected targetIds to be unique in the passed array.`),q(n.getTarget(i),`Expected targetIds to be registered.`)}}function ei(e,t,n){for(var r=e.length-1;r>=0;r--){var i=e[r];Xr(t.getTargetType(i),n)||e.splice(r,1)}}function ti(e,t,n){e.forEach(function(e){n.getTarget(e).hover(t,e)})}function ni(e){return function(){if(e.getMonitor().isDragging())return{type:F}}}function ri(e){return{beginDrag:Ir(e),publishDragSource:ni(e),hover:Zr(e),drop:Ur(e),endDrag:Jr(e)}}function ii(e,t){return{x:e.x+t.x,y:e.y+t.y}}function ai(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oi(e){var t=e.clientOffset,n=e.initialClientOffset,r=e.initialSourceClientOffset;return!t||!n||!r?null:ai(ii(t,r),n)}function si(e){var t=e.clientOffset,n=e.initialClientOffset;return!t||!n?null:ai(t,n)}function ci(e,t){return e===N?!1:e===i||t===void 0||Pr(t,e).length>0}function li(e){return{type:n,payload:{sourceId:e}}}function ui(e){return{type:r,payload:{targetId:e}}}function di(e){return{type:ie,payload:{sourceId:e}}}function fi(e){return{type:I,payload:{targetId:e}}}function pi(e){q(typeof e.canDrag==`function`,`Expected canDrag to be a function.`),q(typeof e.beginDrag==`function`,`Expected beginDrag to be a function.`),q(typeof e.endDrag==`function`,`Expected endDrag to be a function.`)}function mi(e){q(typeof e.canDrop==`function`,`Expected canDrop to be a function.`),q(typeof e.hover==`function`,`Expected hover to be a function.`),q(typeof e.drop==`function`,`Expected beginDrag to be a function.`)}function hi(e,t){if(t&&Array.isArray(e)){e.forEach(function(e){return hi(e,!1)});return}q(typeof e==`string`||(e===void 0?`undefined`:hn(e))===`symbol`,t?`Type can only be a string, a symbol, or an array of either.`:`Type can only be a string or a symbol.`)}function gi(){return St++}function _i(e){var t=gi().toString();switch(e){case E.SOURCE:return`S`.concat(t);case E.TARGET:return`T`.concat(t);default:throw Error(`Unknown Handler Role: `.concat(e))}}function vi(e){switch(e[0]){case`S`:return E.SOURCE;case`T`:return E.TARGET;default:throw Error(`Cannot parse handler ID: `.concat(e))}}function yi(e,t){var n=e.entries(),r=!1;do{var i=n.next(),a=i.done;if(mn(i.value,2)[1]===t)return!0;r=!!a}while(!r);return!1}function bi(e,t){return!e&&!t?!0:!e||!t?!1:e.x===t.x&&e.y===t.y}function xi(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:qt;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!n(e[r],t[r]))return!1;return!0}function Si(){arguments.length>0&&arguments[0]!==void 0&&arguments[0];var e=arguments.length>1?arguments[1]:void 0;switch(e.type){case S:break;case n:case r:case I:case ie:return N;case a:case F:case _:case c:default:return i}var t=e.payload,o=t.targetIds,s=o===void 0?[]:o,l=t.prevTargetIds,u=l===void 0?[]:l,d=Nr(s,u);if(!(d.length>0||!xi(s,u)))return N;var f=u[u.length-1],p=s[s.length-1];return f!==p&&(f&&d.push(f),p&&d.push(p)),d}function Ci(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ci(e,t,n[t])})}return e}function Ti(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Xe,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case O:case a:return{initialSourceClientOffset:n.sourceClientOffset,initialClientOffset:n.clientOffset,clientOffset:n.clientOffset};case S:return bi(e.clientOffset,n.clientOffset)?e:wi({},e,{clientOffset:n.clientOffset});case _:case c:return Xe;default:return e}}function Ei(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Di(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){Ei(e,t,n[t])})}return e}function Oi(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ye,t=arguments.length>1?arguments[1]:void 0,n=t.payload;switch(t.type){case a:return Di({},e,{itemType:n.itemType,item:n.item,sourceId:n.sourceId,isSourcePublic:n.isSourcePublic,dropResult:null,didDrop:!1});case F:return Di({},e,{isSourcePublic:!0});case S:return Di({},e,{targetIds:n.targetIds});case I:return e.targetIds.indexOf(n.targetId)===-1?e:Di({},e,{targetIds:jr(e.targetIds,n.targetId)});case c:return Di({},e,{dropResult:n.dropResult,didDrop:!0,targetIds:[]});case _:return Di({},e,{itemType:null,item:null,sourceId:null,dropResult:null,didDrop:!1,isSourcePublic:null,targetIds:[]});default:return e}}function ki(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;switch((arguments.length>1?arguments[1]:void 0).type){case n:case r:return e+1;case ie:case I:return e-1;default:return e}}function Ai(){return(arguments.length>0&&arguments[0]!==void 0?arguments[0]:0)+1}function ji(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){ji(e,t,n[t])})}return e}function Ni(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return{dirtyHandlerIds:Si(e.dirtyHandlerIds,{type:t.type,payload:Mi({},t.payload,{prevTargetIds:Ar(e,`dragOperation.targetIds`,[])})}),dragOffset:Ti(e.dragOffset,t),refCount:ki(e.refCount,t),dragOperation:Oi(e.dragOperation,t),stateId:Ai(e.stateId)}}function Pi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:void 0,n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Fi(arguments.length>3&&arguments[3]!==void 0&&arguments[3]),i=new u(r,new d(r,new T(r))),a=e(i,t,n);return i.receiveBackend(a),i}function Fi(e){var t=typeof window<`u`&&window.__REDUX_DEVTOOLS_EXTENSION__;return Fe(Ni,e&&t&&t({name:`dnd-core`,instanceId:`dnd-core`}))}function Ii(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Li(e){if(Array.isArray(e))return e}function Ri(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function zi(){throw TypeError(`Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Bi(e,t){return Li(e)||Ri(e,t)||Vi(e,t)||zi()}function Vi(e,t){if(e){if(typeof e==`string`)return Ii(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ii(e,t)}}function Hi(e){return`manager`in e&&e.manager}function Ui(e){return Hi(e)?[e.manager,!1]:[Wi(e.backend,e.context,e.options,e.debugMode),!e.context]}function Wi(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Gi(),n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0,i=t;return i[k]||(i[k]=Pi(e,t,n,r)),i[k]}function Gi(){return typeof globalThis<`u`?globalThis:typeof global<`u`?global:window}function Ki(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function qi(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function Ji(e){return e?e.__v_isVNode===!0:!1}function Yi(e){return e?e.__v_skip:!1}function Xi(e){return Ji(e)&&Ce(e.type)!==`symbol`}function Zi(){throw Error(`Only native element nodes can now be passed to Vue DnD connectors.You can either wrap Component into a <div>, or turn it into a drag source or a drop target itself.`)}function Qi(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(Yi(t)&&Zi(),!Xi(t)){var r=t;return e(r,n),r}}}function $i(e){var t={};return Object.keys(e).forEach(function(n){var r=e[n];if(n.endsWith(`Ref`))t[n]=e[n];else{var i=Qi(r);t[n]=function(){return i}}}),t}function ea(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function ta(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function na(e,t,n){return t&&ta(e.prototype,t),n&&ta(e,n),e}function ra(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function ia(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function aa(e,t,n){return t&&ia(e.prototype,t),n&&ia(e,n),e}function oa(e,t,n){var r=Y(n).getRegistry(),i=r.addTarget(Y(e),Y(t));return[i,function(){return r.removeTarget(i)}]}function sa(e,t,n){var r=n.getRegistry(),i=r.addSource(e,t);return[i,function(){return r.removeSource(i)}]}function ca(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function la(e,t,n){var r=Pe(function(){return new f(Y(e),Y(t),Y(n))});return rn(function(){r.value.spec=Y(e)}),r}function ua(){var e=kr();return q(e!=null,`Expected drag drop context`),e}function da(e){return Pe(function(){var t=Y(e).type;return q(t!=null,`spec.type must be defined`),t})}function fa(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function pa(e){if(Array.isArray(e))return e}function ma(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function ha(){throw TypeError(`Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ga(e,t){return pa(e)||ma(e,t)||_a(e,t)||ha()}function _a(e,t){if(e){if(typeof e==`string`)return fa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return fa(e,t)}}function va(e,t,n){var r=ua(),i=la(e,t,n),a=da(e);rn(function(e){if(Y(a)!=null){var o=ga(sa(Y(a),Y(i),Y(r)),2),s=o[0],c=o[1];Y(t).receiveHandlerId(s),Y(n).receiveHandlerId(s),e(c)}})}function ya(e){return Pe(function(){return typeof e==`function`?e():e})}function ba(){var e=ua();return Pe(function(){return new p(Y(e))})}function xa(e,t){var n=ua(),r=Pe(function(){return new L(Y(n).getBackend())});return rn(function(t){r.value.dragSourceOptions=Y(e)||null,Y(r).reconnect(),t(function(){r.value.disconnectDragSource()})}),rn(function(e){r.value.dragPreviewOptions=Y(t)||null,Y(r).reconnect(),e(function(){r.value.disconnectDragPreview()})}),r}function Sa(e,t,n){var r=Pt(Y(t)(Y(e))),i=function(){var i=Y(t)(Y(e));(0,We.default)(r.value,i)||(r.value=i,n&&n())};return rn(i),[r,i]}function Ca(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function wa(e){if(Array.isArray(e))return e}function Ta(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Ea(){throw TypeError(`Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Da(e,t){return wa(e)||Ta(e,t)||Oa(e,t)||Ea()}function Oa(e,t){if(e){if(typeof e==`string`)return Ca(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ca(e,t)}}function ka(e,t,n){var r=Da(Sa(e,t,n),2),i=r[0],a=r[1];return rn(function(t){var n=Y(e).getHandlerId();n!=null&&t(Y(e).subscribeToStateChange(a,{handlerIds:[n]}))}),i}function Aa(e,t,n){return ka(t,e||function(){return{}},function(){return Y(n).reconnect()})}function ja(e,t){var n=Nt({el:null,options:Y(t)});return rn(function(){e(n)},{flush:`post`}),function(e,r){Ut(n,`el`,e);var i=Y(t)||r;return(0,We.default)(n.options,i)||Ut(n,`options`,i),Y(e)}}function Ma(e,t){return ja(function(t){Y(e).hooks.dragSource()(t.el,t.options)},Pe(function(){return Y(t).options}))}function Na(e,t){return ja(function(t){Y(e).hooks.dragPreview()(t.el,t.options)},Pe(function(){return Y(t).previewOptions}))}function Pa(e){var t=ya(e),n=ba(),r=xa(Pe(function(){return Y(t).options}),Pe(function(){return Y(t).previewOptions}));return va(t,n,r),[Aa(Pe(function(){return Y(t).collect||function(){return{}}}),n,r),Ma(r,t),Na(r,t)]}function Fa(e){return Pe(function(){var t=Y(e).accept;return q(t!=null,`accept must be defined`),Array.isArray(t)?t:[t]})}function Ia(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function La(e,t){var n=Pe(function(){return new m(Y(e),Y(t))});return rn(function(){n.value.spec=Y(e)}),n}function Ra(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function za(e){if(Array.isArray(e))return e}function Ba(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r=[],i=!0,a=!1,o,s;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(e){a=!0,s=e}finally{try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}return r}}function Va(){throw TypeError(`Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ha(e,t){return za(e)||Ba(e,t)||Ua(e,t)||Va()}function Ua(e,t){if(e){if(typeof e==`string`)return Ra(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(n);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ra(e,t)}}function Wa(e,t,n){var r=ua(),i=La(e,t),a=Fa(e);rn(function(e){var o=Ha(oa(a,i,r),2),s=o[0],c=o[1];Y(t).receiveHandlerId(s),Y(n).receiveHandlerId(s),e(c)})}function Ga(){var e=ua();return Pe(function(){return new h(Y(e))})}function Ka(e){var t=ua(),n=Pe(function(){return new ce(Y(t).getBackend())});return rn(function(t){n.value.dropTargetOptions=Y(e)||null,n.value.reconnect(),t(function(){return n.value.disconnectDropTarget()})}),n}function qa(e,t){return ja(function(t){Y(e).hooks.dropTarget()(t.el,t.options)},Pe(function(){return Y(t).options}))}function Ja(e){var t=ya(e),n=Ga(),r=Ka(Pe(function(){return Y(t).options}));return Wa(t,n,r),[Aa(Pe(function(){return Y(t).collect||function(){return{}}}),n,r),qa(r,t)]}function Ya(e){var t=null;return function(){return t==null&&(t=e()),t}}function Xa(e,t){return e.filter(function(e){return e!==t})}function Za(e,t){var n=new Set,r=function(e){return n.add(e)};e.forEach(r),t.forEach(r);var i=[];return n.forEach(function(e){return i.push(e)}),i}function Qa(e,t,n){var r=t.reduce(function(t,n){return t||e.getData(n)},``);return r==null?n:r}function $a(e,t){var n=_t[e];if(!n)throw Error(`native type `.concat(e,` has no configuration`));var r=new P(n);return r.loadDataTransfer(t),r}function eo(e){if(!e)return null;var t=Array.prototype.slice.call(e.types||[]);return Object.keys(_t).filter(function(e){var n=_t[e];return n!=null&&n.matchesTypes?n.matchesTypes.some(function(e){return t.indexOf(e)>-1}):!1})[0]||null}function to(e){var t=e.nodeType===g?e:e.parentElement;if(!t)return null;var n=t.getBoundingClientRect(),r=n.top;return{x:n.left,y:r}}function no(e){return{x:e.clientX,y:e.clientY}}function ro(e){var t;return e.nodeName===`IMG`&&(nt()||!((t=document.documentElement)!=null&&t.contains(e)))}function io(e,t,n,r){var i=e?t.width:n,a=e?t.height:r;return it()&&e&&(a/=window.devicePixelRatio,i/=window.devicePixelRatio),{dragPreviewWidth:i,dragPreviewHeight:a}}function ao(e,t,n,r,i){var a=ro(t),o=to(a?e:t),s={x:n.x-o.x,y:n.y-o.y},c=e.offsetWidth,l=e.offsetHeight,u=r.anchorX,d=r.anchorY,f=io(a,t,c,l),p=f.dragPreviewWidth,m=f.dragPreviewHeight,h=function(){var e=new M([0,.5,1],[s.y,s.y/l*m,s.y+m-l]).interpolate(d);return it()&&a&&(e+=(window.devicePixelRatio-1)*m),e},g=function(){return new M([0,.5,1],[s.x,s.x/c*p,s.x+p-c]).interpolate(u)},_=i.offsetX,v=i.offsetY,y=_===0||_,b=v===0||v;return{x:y?_:g(),y:b?v:h()}}function oo(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function so(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t],r=Object.keys(n);typeof Object.getOwnPropertySymbols==`function`&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){oo(e,t,n[t])})}return e}return e({a:void 0,i:void 0,n:Ja,o:void 0,r:Pa,t:void 0}),{setters:[function(e){ue=e.t,de=e.n,fe=e.r,pe=e.i,me=e.a},function(e){Pe=e.yn,Le=e.kn,Ge=e.dr,Ke=e.Nn,Ze=e.Pn,rt=e.mr,Tt=e.Gn,jt=e.Jn,Nt=e._r,Pt=e.yr,Ut=e.b,Y=e.Er,rn=e.or},function(e){Lt=e.t},function(e){Te=e.a,Fe=e.s,q=e.o,It=e.r,Wt=e.i}],execute:function(){Gt=fe({MultiDrag:function(){return wr},Sortable:function(){return $},Swap:function(){return Sr},default:function(){return $}}),qe=de(function(){nn=`1.14.0`,D=An(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),v=An(/Edge/i),x=An(/firefox/i),se=An(/safari/i)&&!An(/chrome/i)&&!An(/android/i),A=An(/iP(ad|od|hone)/i),s=An(/chrome/i)&&An(/android/i),ke={capture:!1,passive:!1},ae=/\s+/g,W=`Sortable`+new Date().getTime(),kt=[],Ie={initializeByDefault:!0},ne={mount:function(e){for(var t in Ie)Ie.hasOwnProperty(t)&&!(t in e)&&(e[t]=Ie[t]);kt.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin `.concat(e.pluginName,` more than once`)}),kt.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;kt.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](vn({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](vn({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in kt.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,xn(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return kt.forEach(function(r){typeof r.eventProperties==`function`&&xn(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return kt.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},B=[`evt`],Ot=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Cn(n,B);ne.pluginEvent.bind($)(e,t,vn({dragEl:H,parentEl:Et,ghostEl:G,rootEl:Rt,nextEl:xt,lastDownEl:ct,cloneEl:Ae,cloneHidden:je,dragStarted:mt,putSortable:Mt,activeSortable:$.active,originalEvent:r,oldIndex:wt,oldDraggableIndex:Ct,newIndex:bt,newDraggableIndex:yt,hideGhostForTarget:ve,unhideGhostForTarget:V,cloneNowHidden:function(){je=!0},cloneNowShown:function(){je=!1},dispatchSortableEvent:function(e){ir({sortable:t,name:e,originalEvent:r})}},i))},Oe=!1,K=!1,Kt=[],Dt=!1,tt=!1,Ue=[],xe=!1,zt=[],Re=typeof document<`u`,re=A,o=v||D?`cssFloat`:`float`,Yt=Re&&!s&&!A&&`draggable`in document.createElement(`div`),Jt=function(){if(Re){if(D)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),ge=function(e,t){var n=Q(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Bn(e,0,t),a=Bn(e,1,t),s=i&&Q(i),c=a&&Q(a),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Rn(i).width,u=c&&parseInt(c.marginLeft)+parseInt(c.marginRight)+Rn(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&s.float&&s.float!==`none`){var d=s.float===`left`?`left`:`right`;return a&&(c.clear===`both`||c.clear===d)?`vertical`:`horizontal`}return i&&(s.display===`block`||s.display===`flex`||s.display===`table`||s.display===`grid`||l>=r&&n[o]===`none`||a&&n[o]===`none`&&l+u>r)?`vertical`:`horizontal`},_e=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},z=function(e,t){var n;return Kt.some(function(r){var i=r[W].options.emptyInsertThreshold;if(!(!i||Vn(r))){var a=Rn(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},be=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||yn(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},ve=function(){!Jt&&G&&Q(G,`display`,`none`)},V=function(){!Jt&&G&&Q(G,`display`,``)},Re&&document.addEventListener(`click`,function(e){if(K)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),K=!1,!1},!0),vt=function(e){if(H){e=e.touches?e.touches[0]:e;var t=z(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[W]._onDragOver(n)}}},he=function(e){H&&H.parentNode[W]._isOutsideThisEl(e.target)},$.prototype={constructor:$,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(pt=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,H):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(mr(n),!H&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&se&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=Nn(s,r.draggable,n,!1),!(s&&s.animated)&&ct!==s)){if(wt=Hn(s),Ct=Hn(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){ir({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),Ot(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=Nn(c,r.trim(),n,!1),r)return ir({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),Ot(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!Nn(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!H&&n.parentNode===i){var c=Rn(n);if(Rt=i,H=n,Et=H.parentNode,xt=H.nextSibling,ct=n,we=a.group,$.dragged=H,Qt={target:H,clientX:(t||e).clientX,clientY:(t||e).clientY},Xt=Qt.clientX-c.left,Zt=Qt.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,H.style[`will-change`]=`all`,s=function(){if(Ot(`delayEnded`,r,{evt:e}),$.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!x&&r.nativeDraggable&&(H.draggable=!0),r._triggerDragStart(e,t),ir({sortable:r,name:`choose`,originalEvent:e}),Pn(H,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){In(H,e.trim(),sr)}),X(o,`dragover`,vt),X(o,`mousemove`,vt),X(o,`touchmove`,vt),X(o,`mouseup`,r._onDrop),X(o,`touchend`,r._onDrop),X(o,`touchcancel`,r._onDrop),x&&this.nativeDraggable&&(this.options.touchStartThreshold=4,H.draggable=!0),Ot(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(v||D))){if($.eventCanceled){this._onDrop();return}X(o,`mouseup`,r._disableDelayedDrag),X(o,`touchend`,r._disableDelayedDrag),X(o,`touchcancel`,r._disableDelayedDrag),X(o,`mousemove`,r._delayedDragTouchMoveHandler),X(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&X(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){H&&sr(H),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Z(e,`mouseup`,this._disableDelayedDrag),Z(e,`touchend`,this._disableDelayedDrag),Z(e,`touchcancel`,this._disableDelayedDrag),Z(e,`mousemove`,this._delayedDragTouchMoveHandler),Z(e,`touchmove`,this._delayedDragTouchMoveHandler),Z(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?X(document,`pointermove`,this._onTouchMove):t?X(document,`touchmove`,this._onTouchMove):X(document,`mousemove`,this._onTouchMove):(X(H,`dragend`,this),X(Rt,`dragstart`,this._onDragStart));try{document.selection?hr(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Oe=!1,Rt&&H){Ot(`dragStarted`,this,{evt:t}),this.nativeDraggable&&X(document,`dragover`,he);var n=this.options;!e&&Pn(H,n.dragClass,!1),Pn(H,n.ghostClass,!0),$.active=this,e&&this._appendGhost(),ir({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(en){this._lastX=en.clientX,this._lastY=en.clientY,ve();for(var e=document.elementFromPoint(en.clientX,en.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(en.clientX,en.clientY),e!==t);)t=e;if(H.parentNode[W]._isOutsideThisEl(e),t)do{if(t[W]){var n=void 0;if(n=t[W]._onDragOver({clientX:en.clientX,clientY:en.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);V()}},_onTouchMove:function(e){if(Qt){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=G&&Fn(G,!0),o=G&&a&&a.a,s=G&&a&&a.d,c=re&&He&&Un(He),l=(i.clientX-Qt.clientX+r.x)/(o||1)+(c?c[0]-Ue[0]:0)/(o||1),u=(i.clientY-Qt.clientY+r.y)/(s||1)+(c?c[1]-Ue[1]:0)/(s||1);if(!$.active&&!Oe){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(G){a?(a.e+=l-(lt||0),a.f+=u-(ut||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(`.concat(a.a,`,`,a.b,`,`,a.c,`,`,a.d,`,`,a.e,`,`,a.f,`)`);Q(G,`webkitTransform`,d),Q(G,`mozTransform`,d),Q(G,`msTransform`,d),Q(G,`transform`,d),lt=l,ut=u,en=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!G){var e=this.options.fallbackOnBody?document.body:Rt,t=Rn(H,!0,re,!0,e),n=this.options;if(re){for(He=e;Q(He,`position`)===`static`&&Q(He,`transform`)===`none`&&He!==document;)He=He.parentNode;He!==document.body&&He!==document.documentElement?(He===document&&(He=Ln()),t.top+=He.scrollTop,t.left+=He.scrollLeft):He=Ln(),Ue=Un(He)}G=H.cloneNode(!0),Pn(G,n.ghostClass,!1),Pn(G,n.fallbackClass,!0),Pn(G,n.dragClass,!0),Q(G,`transition`,``),Q(G,`transform`,``),Q(G,`box-sizing`,`border-box`),Q(G,`margin`,0),Q(G,`top`,t.top),Q(G,`left`,t.left),Q(G,`width`,t.width),Q(G,`height`,t.height),Q(G,`opacity`,`0.8`),Q(G,`position`,re?`absolute`:`fixed`),Q(G,`zIndex`,`100000`),Q(G,`pointerEvents`,`none`),$.ghost=G,e.appendChild(G),Q(G,`transform-origin`,Xt/parseInt(G.style.width)*100+`% `+Zt/parseInt(G.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Ot(`dragStart`,this,{evt:e}),$.eventCanceled){this._onDrop();return}Ot(`setupClone`,this),$.eventCanceled||(Ae=Zn(H),Ae.draggable=!1,Ae.style[`will-change`]=``,this._hideClone(),Pn(Ae,this.options.chosenClass,!1),$.clone=Ae),n.cloneId=hr(function(){Ot(`clone`,n),!$.eventCanceled&&(n.options.removeCloneOnHide||Rt.insertBefore(Ae,H),n._hideClone(),ir({sortable:n,name:`clone`}))}),!t&&Pn(H,i.dragClass,!0),t?(K=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Z(document,`mouseup`,n._onDrop),Z(document,`touchend`,n._onDrop),Z(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,H)),X(document,`drop`,n),Q(H,`transform`,`translateZ(0)`)),Oe=!0,n._dragStartId=hr(n._dragStarted.bind(n,t,e)),X(document,`selectstart`,n),mt=!0,se&&Q(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=$.active,l=we===s,u=o.sort,d=Mt||c,f,p=this,m=!1;if(xe)return;function h(o,s){Ot(o,p,vn({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return or(Rt,t,H,r,n,Rn(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(Pn(H,Mt?Mt.options.ghostClass:c.options.ghostClass,!1),Pn(H,o.ghostClass,!0)),Mt!==p&&p!==$.active?Mt=p:p===$.active&&Mt&&(Mt=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===H&&!H.animated||n===t&&!n.animated)&&(pt=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(H.parentNode[W]._isOutsideThisEl(e.target),!r&&vt(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){bt=Hn(H),yt=Hn(H,o.draggable),ir({sortable:p,name:`change`,toEl:t,newIndex:bt,newDraggableIndex:yt,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Nn(n,o.draggable,t,!0),h(`dragOver`),$.eventCanceled)return m;if(H.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(K=!1,c&&!o.disabled&&(l?u||(a=Et!==Rt):Mt===this||(this.lastPutMode=we.checkPull(this,c,H,e))&&s.checkPut(this,c,H,e))){if(f=this._getDirection(e,n)===`vertical`,r=Rn(H),h(`dragOverValid`),$.eventCanceled)return m;if(a)return Et=Rt,g(),this._hideClone(),h(`revert`),$.eventCanceled||(xt?Rt.insertBefore(H,xt):Rt.appendChild(H)),_(!0);var y=Vn(t,o.draggable);if(!y||ur(e,f,this)&&!y.animated){if(y===H)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=Rn(n)),or(Rt,t,H,r,n,i,e,!!n)!==!1)return g(),t.appendChild(H),Et=t,v(),_(!0)}else if(y&&lr(e,f,this)){var b=Bn(t,0,o,!0);if(b===H)return _(!1);if(n=b,i=Rn(n),or(Rt,t,H,r,n,i,e,!1)!==!1)return g(),t.insertBefore(H,b),Et=t,v(),_(!0)}else if(n.parentNode===t){i=Rn(n);var x=0,S,C=H.parentNode!==t,w=!_e(H.animated&&H.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=zn(n,`top`,`top`)||zn(H,`top`,`top`),D=E?E.scrollTop:void 0;pt!==n&&(S=i[T],Dt=!1,tt=!w&&o.invertSwap||C),x=dr(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,tt,pt===n);var O;if(x!==0){var k=Hn(H);do k-=x,O=Et.children[k];while(O&&(Q(O,`display`)===`none`||O===G))}if(x===0||O===n)return _(!1);pt=n,st=x;var A=n.nextElementSibling,j=!1;j=x===1;var M=or(Rt,t,H,r,n,i,e,j);if(M!==!1)return(M===1||M===-1)&&(j=M===1),xe=!0,setTimeout(cr,30),g(),j&&!A?t.appendChild(H):n.parentNode.insertBefore(H,j?A:n),E&&Xn(E,0,D-E.scrollTop),Et=H.parentNode,S!==void 0&&!tt&&($t=Math.abs(S-Rn(n)[T])),v(),_(!0)}if(t.contains(H))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Z(document,`mousemove`,this._onTouchMove),Z(document,`touchmove`,this._onTouchMove),Z(document,`pointermove`,this._onTouchMove),Z(document,`dragover`,vt),Z(document,`mousemove`,vt),Z(document,`touchmove`,vt)},_offUpEvents:function(){var e=this.el.ownerDocument;Z(e,`mouseup`,this._onDrop),Z(e,`touchend`,this._onDrop),Z(e,`pointerup`,this._onDrop),Z(e,`touchcancel`,this._onDrop),Z(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(bt=Hn(H),yt=Hn(H,n.draggable),Ot(`drop`,this,{evt:e}),Et=H&&H.parentNode,bt=Hn(H),yt=Hn(H,n.draggable),$.eventCanceled){this._nulling();return}Oe=!1,tt=!1,Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),gr(this.cloneId),gr(this._dragStartId),this.nativeDraggable&&(Z(document,`drop`,this),Z(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),se&&Q(document.body,`user-select`,``),Q(H,`transform`,``),e&&(mt&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),G&&G.parentNode&&G.parentNode.removeChild(G),(Rt===Et||Mt&&Mt.lastPutMode!==`clone`)&&Ae&&Ae.parentNode&&Ae.parentNode.removeChild(Ae),H&&(this.nativeDraggable&&Z(H,`dragend`,this),sr(H),H.style[`will-change`]=``,mt&&!Oe&&Pn(H,Mt?Mt.options.ghostClass:this.options.ghostClass,!1),Pn(H,this.options.chosenClass,!1),ir({sortable:this,name:`unchoose`,toEl:Et,newIndex:null,newDraggableIndex:null,originalEvent:e}),Rt===Et?bt!==wt&&bt>=0&&(ir({sortable:this,name:`update`,toEl:Et,originalEvent:e}),ir({sortable:this,name:`sort`,toEl:Et,originalEvent:e})):(bt>=0&&(ir({rootEl:Et,name:`add`,toEl:Et,fromEl:Rt,originalEvent:e}),ir({sortable:this,name:`remove`,toEl:Et,originalEvent:e}),ir({rootEl:Et,name:`sort`,toEl:Et,fromEl:Rt,originalEvent:e}),ir({sortable:this,name:`sort`,toEl:Et,originalEvent:e})),Mt&&Mt.save()),$.active&&((bt==null||bt===-1)&&(bt=wt,yt=Ct),ir({sortable:this,name:`end`,toEl:Et,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ot(`nulling`,this),Rt=H=Et=G=xt=Ae=ct=je=Qt=en=mt=bt=yt=wt=Ct=pt=st=Mt=we=$.dragged=$.ghost=$.clone=$.active=null,zt.forEach(function(e){e.checked=!0}),zt.length=lt=ut=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:H&&(this._onDragOver(e),ar(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],Nn(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||pr(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];Nn(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Nn(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=ne.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&be(n)},destroy:function(){Ot(`destroy`,this);var e=this.el;e[W]=null,Z(e,`mousedown`,this._onTapStart),Z(e,`touchstart`,this._onTapStart),Z(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(Z(e,`dragover`,this),Z(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),Kt.splice(Kt.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!je){if(Ot(`hideClone`,this),$.eventCanceled)return;Q(Ae,`display`,`none`),this.options.removeCloneOnHide&&Ae.parentNode&&Ae.parentNode.removeChild(Ae),je=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(je){if(Ot(`showClone`,this),$.eventCanceled)return;H.parentNode==Rt&&!this.options.group.revertClone?Rt.insertBefore(Ae,H):xt?Rt.insertBefore(Ae,xt):Rt.appendChild(Ae),this.options.group.revertClone&&this.animate(H,Ae),Q(Ae,`display`,``),je=!1}}},Re&&X(document,`touchmove`,function(e){($.active||Oe)&&e.cancelable&&e.preventDefault()}),$.utils={on:X,off:Z,css:Q,find:In,is:function(e,t){return!!Nn(e,t,e,!1)},extend:Kn,throttle:Jn,closest:Nn,toggleClass:Pn,clone:Zn,index:Hn,nextTick:hr,cancelNextTick:gr,detectDirection:ge,getChild:Bn},$.get=function(e){return e[W]},$.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not `.concat({}.toString.call(e));e.utils&&($.utils=vn(vn({},$.utils),e.utils)),ne.mount(e)})},$.create=function(e,t){return new $(e,t)},$.version=nn,De=[],Ht=!1,Ee=Jn(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=Ln(),l=!1,u;Vt!==n&&(Vt=n,vr(),Bt=t.scroll,u=t.scrollFn,Bt===!0&&(Bt=Gn(n,!0)));var d=0,f=Bt;do{var p=f,m=Rn(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=Q(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),k=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!De[d])for(var A=0;A<=d;A++)De[A]||(De[A]={});(De[d].vx!=O||De[d].vy!=k||De[d].el!==p)&&(De[d].el=p,De[d].vx=O,De[d].vy=k,clearInterval(De[d].pid),(O!=0||k!=0)&&(l=!0,De[d].pid=setInterval((function(){r&&this.layer===0&&$.active._onTouchMove(tn);var t=De[this.layer].vy?De[this.layer].vy*s:0,n=De[this.layer].vx?De[this.layer].vx*s:0;typeof u==`function`&&u.call($.dragged.parentNode[W],n,t,e,tn,De[this.layer].el)!==`continue`||Xn(De[this.layer].el,n,t)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=Gn(f,!1)));Ht=l}},30),Be=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}},br.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Bn(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Be},xn(br,{pluginName:`revertOnSpill`}),xr.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Be},xn(xr,{pluginName:`removeOnSpill`}),J=[],ht=[],Je=!1,Ve=!1,ze=!1,$.mount(new _r),$.mount(xr,br)}),e(`o`,ue(function(e,t){(function(n,r){(e===void 0?`undefined`:hn(e))===`object`&&(t===void 0?`undefined`:hn(t))===`object`?t.exports=r(Lt(),(qe(),pe(Gt))):typeof define==`function`&&define.amd?define([,`sortablejs`],r):(e===void 0?`undefined`:hn(e))===`object`?e.vuedraggable=r(Lt(),(qe(),pe(Gt))):n.vuedraggable=r(n.Vue,n.Sortable)})(typeof self<`u`?self:e,function(e,t){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&(e===void 0?`undefined`:hn(e))===`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,(function(t){return e[t]}).bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=`fb15`)}({"00ee":function(e,t,n){var r=n(`b622`)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`},"0366":function(e,t,n){var r=n(`1c0b`);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"057f":function(e,t,n){var r=n(`fc6a`),i=n(`241c`).f,a={}.toString,o=(typeof window>`u`?`undefined`:hn(window))==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return o.slice()}};e.exports.f=function(e){return o&&a.call(e)==`[object Window]`?s(e):i(r(e))}},"06cf":function(e,t,n){var r=n(`83ab`),i=n(`d1e7`),a=n(`5c6c`),o=n(`fc6a`),s=n(`c04e`),c=n(`5135`),l=n(`0cfb`),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch(e){}if(c(e,t))return a(!i.f.call(e,t),e[t])}},"0cfb":function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`cc12`);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),"a",{get:function(){return 7}}).a!=7})},"13d5":function(e,t,n){var r=n(`23e7`),i=n(`d58f`).left,a=n(`a640`),o=n(`ae40`),s=a(`reduce`),c=o(`reduce`,{1:0});r({target:`Array`,proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,t,n){var r=n(`c6b6`),i=n(`9263`);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if((a===void 0?`undefined`:hn(a))!==`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}},"159b":function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`17c2`),o=n(`9112`);for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{o(l,`forEach`,a)}catch(e){l.forEach=a}}},"17c2":function(e,t,n){var r=n(`b727`).forEach,i=n(`a640`),a=n(`ae40`),o=i(`forEach`),s=a(`forEach`);e.exports=!o||!s?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(e,t,n){e.exports=n(`d066`)(`document`,`documentElement`)},"1c0b":function(e,t){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}},"1c7e":function(e,t,n){var r=n(`b622`)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch(e){}return n}},"1d80":function(e,t){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}},"1dde":function(e,t,n){var r=n(`d039`),i=n(`b622`),a=n(`2d00`),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}},"23cb":function(e,t,n){var r=n(`a691`),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}},"23e7":function(e,t,n){var r=n(`da84`),i=n(`06cf`).f,a=n(`9112`),o=n(`6eeb`),s=n(`ce4e`),c=n(`e893`),l=n(`94ca`);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if((g===void 0?`undefined`:hn(g))===(h===void 0?`undefined`:hn(h)))continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}},"241c":function(e,t,n){var r=n(`ca84`),i=n(`7839`).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"25f0":function(e,t,n){var r=n(`6eeb`),i=n(`825a`),a=n(`d039`),o=n(`ad6d`),s=`toString`,c=RegExp.prototype,l=c[s],u=a(function(){return l.call({source:`a`,flags:`b`})!=`/a/b`}),d=l.name!=s;(u||d)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags,r=String(n===void 0&&dn(e,RegExp)&&!(`flags`in c)?o.call(e):n);return`/`+t+`/`+r},{unsafe:!0})},"2ca0":function(e,t,n){var r=n(`23e7`),i=n(`06cf`).f,a=n(`50c4`),o=n(`5a34`),s=n(`1d80`),c=n(`ab13`),l=n(`c430`),u=``.startsWith,d=Math.min,f=c(`startsWith`);r({target:`String`,proto:!0,forced:!(!l&&!f&&function(){var e=i(String.prototype,`startsWith`);return e&&!e.writable}())&&!f},{startsWith:function(e){var t=String(s(this));o(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})},"2d00":function(e,t,n){var r=n(`da84`),i=n(`342f`),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l},"342f":function(e,t,n){e.exports=n(`d066`)(`navigator`,`userAgent`)||``},"35a1":function(e,t,n){var r=n(`f5df`),i=n(`3f8c`),a=n(`b622`)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}},"37e8":function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`825a`),o=n(`df75`);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}},"3bbe":function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}},"3ca3":function(e,t,n){var r=n(`6547`).charAt,i=n(`69f3`),a=n(`7dd0`),o=`String Iterator`,s=i.set,c=i.getterFor(o);a(String,`String`,function(e){s(this,{type:o,string:String(e),index:0})},function(){var e=c(this),t=e.string,n=e.index,i;return n>=t.length?{value:void 0,done:!0}:(i=r(t,n),e.index+=i.length,{value:i,done:!1})})},"3f8c":function(e,t){e.exports={}},4160:function(e,t,n){var r=n(`23e7`),i=n(`17c2`);r({target:`Array`,proto:!0,forced:[].forEach!=i},{forEach:i})},"428f":function(e,t,n){e.exports=n(`da84`)},"44ad":function(e,t,n){var r=n(`d039`),i=n(`c6b6`),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object},"44d2":function(e,t,n){var r=n(`b622`),i=n(`7c73`),a=n(`9bf2`),o=r(`unscopables`),s=Array.prototype;s[o]==null&&a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}},"44e7":function(e,t,n){var r=n(`861d`),i=n(`c6b6`),a=n(`b622`)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}},4930:function(e,t,n){var r=n(`d039`);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})},"4d64":function(e,t,n){var r=n(`fc6a`),i=n(`50c4`),a=n(`23cb`),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},"4de4":function(e,t,n){var r=n(`23e7`),i=n(`b727`).filter,a=n(`1dde`),o=n(`ae40`),s=a(`filter`),c=o(`filter`);r({target:`Array`,proto:!0,forced:!s||!c},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,t,n){var r=n(`0366`),i=n(`7b0b`),a=n(`9bdd`),o=n(`e95a`),s=n(`50c4`),c=n(`8418`),l=n(`35a1`);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}},"4fad":function(e,t,n){var r=n(`23e7`),i=n(`6f53`).entries;r({target:`Object`,stat:!0},{entries:function(e){return i(e)}})},"50c4":function(e,t,n){var r=n(`a691`),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},5135:function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},5319:function(e,t,n){var r=n(`d784`),i=n(`825a`),a=n(`7b0b`),o=n(`50c4`),s=n(`a691`),c=n(`1d80`),l=n(`8aa5`),u=n(`14c3`),d=Math.max,f=Math.min,p=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,g=function(e){return e===void 0?e:String(e)};r(`replace`,2,function(e,t,n,r){var _=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,y=_?`$`:`$0`;return[function(n,r){var i=c(this),a=n==null?void 0:n[e];return a===void 0?t.call(String(i),n,r):a.call(n,i,r)},function(e,r){if(!_&&v||typeof r==`string`&&r.indexOf(y)===-1){var a=n(t,e,this,r);if(a.done)return a.value}var c=i(e),p=String(this),m=typeof r==`function`;m||(r=String(r));var h=c.global;if(h){var x=c.unicode;c.lastIndex=0}for(var S=[];;){var C=u(c,p);if(C===null||(S.push(C),!h))break;String(C[0])===``&&(c.lastIndex=l(p,o(c.lastIndex),x))}for(var w=``,T=0,E=0;E<S.length;E++){C=S[E];for(var D=String(C[0]),O=d(f(s(C.index),p.length),0),k=[],A=1;A<C.length;A++)k.push(g(C[A]));var j=C.groups;if(m){var M=[D].concat(k,O,p);j!==void 0&&M.push(j);var N=String(r.apply(void 0,M))}else N=b(D,p,O,k,j,r);O>=T&&(w+=p.slice(T,O)+N,T=O+D.length)}return w+p.slice(T)}];function b(e,n,r,i,o,s){var c=r+e.length,l=i.length,u=h;return o!==void 0&&(o=a(o),u=m),t.call(s,u,function(t,a){var s;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return n.slice(0,r);case`'`:return n.slice(c);case`<`:s=o[a.slice(1,-1)];break;default:var u=+a;if(u===0)return t;if(u>l){var d=p(u/10);return d===0?t:d<=l?i[d-1]===void 0?a.charAt(1):i[d-1]+a.charAt(1):t}s=i[u-1]}return s===void 0?``:s})}})},5692:function(e,t,n){var r=n(`c430`),i=n(`c6cd`);(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.6.5`,mode:r?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})},"56ef":function(e,t,n){var r=n(`d066`),i=n(`241c`),a=n(`7418`),o=n(`825a`);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}},"5a34":function(e,t,n){var r=n(`44e7`);e.exports=function(e){if(r(e))throw TypeError(`The method doesn't accept regular expressions`);return e}},"5c6c":function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}},"5db7":function(e,t,n){var r=n(`23e7`),i=n(`a2bf`),a=n(`7b0b`),o=n(`50c4`),s=n(`1c0b`),c=n(`65f0`);r({target:`Array`,proto:!0},{flatMap:function(e){var t=a(this),n=o(t.length),r;return s(e),r=c(t,0),r.length=i(r,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),r}})},6547:function(e,t,n){var r=n(`a691`),i=n(`1d80`),a=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}},"65f0":function(e,t,n){var r=n(`861d`),i=n(`e8b5`),a=n(`b622`)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}},"69f3":function(e,t,n){var r=n(`7f9a`),i=n(`da84`),a=n(`861d`),o=n(`9112`),s=n(`5135`),c=n(`f772`),l=n(`d012`),u=i.WeakMap,d,f,p,m=function(e){return p(e)?f(e):d(e,{})},h=function(e){return function(t){var n;if(!a(t)||(n=f(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var g=new u,_=g.get,v=g.has,y=g.set;d=function(e,t){return y.call(g,e,t),t},f=function(e){return _.call(g,e)||{}},p=function(e){return v.call(g,e)}}else{var b=c(`state`);l[b]=!0,d=function(e,t){return o(e,b,t),t},f=function(e){return s(e,b)?e[b]:{}},p=function(e){return s(e,b)}}e.exports={set:d,get:f,has:p,enforce:m,getterFor:h}},"6eeb":function(e,t,n){var r=n(`da84`),i=n(`9112`),a=n(`5135`),o=n(`ce4e`),s=n(`8925`),c=n(`69f3`),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),u(n).source=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})},"6f53":function(e,t,n){var r=n(`83ab`),i=n(`df75`),a=n(`fc6a`),o=n(`d1e7`).f,s=function(e){return function(t){for(var n=a(t),s=i(n),c=s.length,l=0,u=[],d;c>l;)d=s[l++],(!r||o.call(n,d))&&u.push(e?[d,n[d]]:n[d]);return u}};e.exports={entries:s(!0),values:s(!1)}},"73d9":function(e,t,n){n(`44d2`)(`flatMap`)},7418:function(e,t){t.f=Object.getOwnPropertySymbols},"746f":function(e,t,n){var r=n(`428f`),i=n(`5135`),a=n(`e538`),o=n(`9bf2`).f;e.exports=function(e){var t=r.Symbol||(r.Symbol={});i(t,e)||o(t,e,{value:a.f(e)})}},7839:function(e,t){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]},"7b0b":function(e,t,n){var r=n(`1d80`);e.exports=function(e){return Object(r(e))}},"7c73":function(e,t,n){var r=n(`825a`),i=n(`37e8`),a=n(`7839`),o=n(`d012`),s=n(`1be4`),c=n(`cc12`),l=n(`f772`),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch(e){}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}},"7dd0":function(e,t,n){var r=n(`23e7`),i=n(`9ed3`),a=n(`e163`),o=n(`d2bb`),s=n(`d44e`),c=n(`9112`),l=n(`6eeb`),u=n(`b622`),d=n(`c430`),f=n(`3f8c`),p=n(`ae93`),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),k=t==`Array`&&E.entries||D,A,j,M;if(k&&(A=a(k.call(new e)),m!==Object.prototype&&A.next&&(!d&&a(A)!==m&&(o?o(A,m):typeof A[g]!=`function`&&c(A,g,b)),s(A,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(j={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(M in j)(h||T||!(M in E))&&l(E,M,j[M]);else r({target:t,proto:!0,forced:h||T},j);return j}},"7f9a":function(e,t,n){var r=n(`da84`),i=n(`8925`),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))},"825a":function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}},"83ab":function(e,t,n){e.exports=!n(`d039`)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,t,n){var r=n(`c04e`),i=n(`9bf2`),a=n(`5c6c`);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}},"861d":function(e,t){e.exports=function(e){return(e===void 0?`undefined`:hn(e))===`object`?e!==null:typeof e==`function`}},8875:function(e,t,n){var r,i,a;(function(n,o){i=[],r=o,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(typeof self<`u`?self:this,function(){function e(){var t=Object.getOwnPropertyDescriptor(document,`currentScript`);if(!t&&`currentScript`in document&&document.currentScript||t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw Error()}catch(e){var n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),r=n&&n[1]||!1,i=n&&n[2]||!1,a=document.location.href.replace(document.location.hash,``),o,s,c,l=document.getElementsByTagName(`script`);r===a&&(o=document.documentElement.outerHTML,s=RegExp(`(?:[^\\n]+?\\n){0,`+(i-2)+`}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*`,`i`),c=o.replace(s,`$1`).trim());for(var u=0;u<l.length;u++)if(l[u].readyState===`interactive`||l[u].src===r||r===a&&l[u].innerHTML&&l[u].innerHTML.trim()===c)return l[u];return null}}return e})},8925:function(e,t,n){var r=n(`c6cd`),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource},"8aa5":function(e,t,n){var r=n(`6547`).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},"8bbf":function(t,n){t.exports=e},"90e3":function(e,t){var n=0,r=Math.random();e.exports=function(e){return`Symbol(`+String(e===void 0?``:e)+`)_`+(++n+r).toString(36)}},9112:function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`5c6c`);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}},9263:function(e,t,n){var r=n(`ad6d`),i=n(`9f7f`),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
|
|
`)&&(m=`(?: `+m+`)`,g=` `+g,h++),i=RegExp(`^(?:`+m+`)`,p)),u&&(i=RegExp(`^`+m+`$(?!\\s)`,p)),c&&(n=t.lastIndex),s=a.call(f?i:t,g),f?s?(s.input=s.input.slice(h),s[0]=s[0].slice(h),s.index=t.lastIndex,t.lastIndex+=s[0].length):t.lastIndex=0:c&&s&&(t.lastIndex=t.global?s.index+s[0].length:n),u&&s&&s.length>1&&o.call(s[0],i,function(){for(d=1;d<arguments.length-2;d++)arguments[d]===void 0&&(s[d]=void 0)}),s}),e.exports=s},"94ca":function(e,t,n){var r=n(`d039`),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a},"99af":function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`e8b5`),o=n(`861d`),s=n(`7b0b`),c=n(`50c4`),l=n(`8418`),u=n(`65f0`),d=n(`1dde`),f=n(`b622`),p=n(`2d00`),m=f(`isConcatSpreadable`),h=9007199254740991,g=`Maximum allowed index exceeded`,_=p>=51||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=d(`concat`),y=function(e){if(!o(e))return!1;var t=e[m];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,forced:!_||!v},{concat:function(e){var t=s(this),n=u(t,0),r=0,i,a,o,d,f;for(i=-1,o=arguments.length;i<o;i++)if(f=i===-1?t:arguments[i],y(f)){if(d=c(f.length),r+d>h)throw TypeError(g);for(a=0;a<d;a++,r++)a in f&&l(n,r,f[a])}else{if(r>=h)throw TypeError(g);l(n,r++,f)}return n.length=r,n}})},"9bdd":function(e,t,n){var r=n(`825a`);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw a!==void 0&&r(a.call(e)),t}}},"9bf2":function(e,t,n){var r=n(`83ab`),i=n(`0cfb`),a=n(`825a`),o=n(`c04e`),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch(e){}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},"9ed3":function(e,t,n){var r=n(`ae93`).IteratorPrototype,i=n(`7c73`),a=n(`5c6c`),o=n(`d44e`),s=n(`3f8c`),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}},"9f7f":function(e,t,n){var r=n(`d039`);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null}),t.BROKEN_CARET=r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})},a2bf:function(e,t,n){var r=n(`e8b5`),i=n(`50c4`),a=n(`0366`),o=function(e,t,n,s,c,l,u,d){for(var f=c,p=0,m=u?a(u,d,3):!1,h;p<s;){if(p in n){if(h=m?m(n[p],p,t):n[p],l>0&&r(h))f=o(e,t,h,i(h.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError(`Exceed the acceptable array length`);e[f]=h}f++}p++}return f};e.exports=o},a352:function(e,n){e.exports=t},a434:function(e,t,n){var r=n(`23e7`),i=n(`23cb`),a=n(`a691`),o=n(`50c4`),s=n(`7b0b`),c=n(`65f0`),l=n(`8418`),u=n(`1dde`),d=n(`ae40`),f=u(`splice`),p=d(`splice`,{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,_=`Maximum allowed length exceeded`;r({target:`Array`,proto:!0,forced:!f||!p},{splice:function(e,t){var n=s(this),r=o(n.length),u=i(e,r),d=arguments.length,f,p,v,y,b,x;if(d===0?f=p=0:d===1?(f=0,p=r-u):(f=d-2,p=h(m(a(t),0),r-u)),r+f-p>g)throw TypeError(_);for(v=c(n,p),y=0;y<p;y++)b=u+y,b in n&&l(v,y,n[b]);if(v.length=p,f<p){for(y=u;y<r-p;y++)b=y+p,x=y+f,b in n?n[x]=n[b]:delete n[x];for(y=r;y>r-p+f;y--)delete n[y-1]}else if(f>p)for(y=r-p;y>u;y--)b=y+p-1,x=y+f-1,b in n?n[x]=n[b]:delete n[x];for(y=0;y<f;y++)n[y+u]=arguments[y+2];return n.length=r-p+f,v}})},a4d3:function(e,t,n){var r=n(`23e7`),i=n(`da84`),a=n(`d066`),o=n(`c430`),s=n(`83ab`),c=n(`4930`),l=n(`fdbf`),u=n(`d039`),d=n(`5135`),f=n(`e8b5`),p=n(`861d`),m=n(`825a`),h=n(`7b0b`),g=n(`fc6a`),_=n(`c04e`),v=n(`5c6c`),y=n(`7c73`),b=n(`df75`),x=n(`241c`),S=n(`057f`),C=n(`7418`),w=n(`06cf`),T=n(`9bf2`),E=n(`d1e7`),D=n(`9112`),O=n(`6eeb`),k=n(`5692`),A=n(`f772`),j=n(`d012`),M=n(`90e3`),N=n(`b622`),P=n(`e538`),ee=n(`746f`),te=n(`d44e`),F=n(`69f3`),ne=n(`b727`).forEach,re=A(`hidden`),ie=`Symbol`,I=`prototype`,ae=N(`toPrimitive`),oe=F.set,se=F.getterFor(ie),L=Object[I],R=i.Symbol,ce=a(`JSON`,`stringify`),le=w.f,ue=T.f,de=S.f,fe=E.f,pe=k(`symbols`),me=k(`op-symbols`),he=k(`string-to-symbol-registry`),ge=k(`symbol-to-string-registry`),z=k(`wks`),_e=i.QObject,B=!_e||!_e[I]||!_e[I].findChild,ve=s&&u(function(){return y(ue({},`a`,{get:function(){return ue(this,`a`,{value:7}).a}})).a!=7})?function(e,t,n){var r=le(L,t);r&&delete L[t],ue(e,t,n),r&&e!==L&&ue(L,t,r)}:ue,ye=function(e,t){var n=pe[e]=y(R[I]);return oe(n,{type:ie,tag:e,description:t}),s||(n.description=t),n},be=l?function(e){return(e===void 0?`undefined`:hn(e))==`symbol`}:function(e){return dn(Object(e),R)},xe=function(e,t,n){e===L&&xe(me,t,n),m(e);var r=_(t,!0);return m(n),d(pe,r)?(n.enumerable?(d(e,re)&&e[re][r]&&(e[re][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,re)||ue(e,re,v(1,{})),e[re][r]=!0),ve(e,r,n)):ue(e,r,n)},Se=function(e,t){m(e);var n=g(t);return ne(b(n).concat(Ee(n)),function(t){(!s||V.call(n,t))&&xe(e,t,n[t])}),e},Ce=function(e,t){return t===void 0?y(e):Se(y(e),t)},V=function(e){var t=_(e,!0),n=fe.call(this,t);return this===L&&d(pe,t)&&!d(me,t)?!1:n||!d(this,t)||!d(pe,t)||d(this,re)&&this[re][t]?n:!0},we=function(e,t){var n=g(e),r=_(t,!0);if(!(n===L&&d(pe,r)&&!d(me,r))){var i=le(n,r);return i&&d(pe,r)&&!(d(n,re)&&n[re][r])&&(i.enumerable=!0),i}},Te=function(e){var t=de(g(e)),n=[];return ne(t,function(e){!d(pe,e)&&!d(j,e)&&n.push(e)}),n},Ee=function(e){var t=e===L,n=de(t?me:g(e)),r=[];return ne(n,function(e){d(pe,e)&&(!t||d(L,e))&&r.push(pe[e])}),r};c||(R=function(){if(dn(this,R))throw TypeError(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=M(e),n=function(e){this===L&&n.call(me,e),d(this,re)&&d(this[re],t)&&(this[re][t]=!1),ve(this,t,v(1,e))};return s&&B&&ve(L,t,{configurable:!0,set:n}),ye(t,e)},O(R[I],`toString`,function(){return se(this).tag}),O(R,`withoutSetter`,function(e){return ye(M(e),e)}),E.f=V,T.f=xe,w.f=we,x.f=S.f=Te,C.f=Ee,P.f=function(e){return ye(N(e),e)},s&&(ue(R[I],`description`,{configurable:!0,get:function(){return se(this).description}}),o||O(L,`propertyIsEnumerable`,V,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:R}),ne(b(z),function(e){ee(e)}),r({target:ie,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(he,t))return he[t];var n=R(t);return he[t]=n,ge[n]=t,n},keyFor:function(e){if(!be(e))throw TypeError(e+` is not a symbol`);if(d(ge,e))return ge[e]},useSetter:function(){B=!0},useSimple:function(){B=!1}}),r({target:`Object`,stat:!0,forced:!c,sham:!s},{create:Ce,defineProperty:xe,defineProperties:Se,getOwnPropertyDescriptor:we}),r({target:`Object`,stat:!0,forced:!c},{getOwnPropertyNames:Te,getOwnPropertySymbols:Ee}),r({target:`Object`,stat:!0,forced:u(function(){C.f(1)})},{getOwnPropertySymbols:function(e){return C.f(h(e))}}),ce&&r({target:`JSON`,stat:!0,forced:!c||u(function(){var e=R();return ce([e])!=`[null]`||ce({a:e})!=`{}`||ce(Object(e))!=`{}`})},{stringify:function(e,t,n){for(var r=[e],i=1,a;arguments.length>i;)r.push(arguments[i++]);if(a=t,!(!p(t)&&e===void 0||be(e)))return f(t)||(t=function(e,t){if(typeof a==`function`&&(t=a.call(this,e,t)),!be(t))return t}),r[1]=t,ce.apply(null,r)}}),R[I][ae]||D(R[I],ae,R[I].valueOf),te(R,ie),j[re]=!0},a630:function(e,t,n){var r=n(`23e7`),i=n(`4df4`);r({target:`Array`,stat:!0,forced:!n(`1c7e`)(function(e){Array.from(e)})},{from:i})},a640:function(e,t,n){var r=n(`d039`);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}},a691:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},ab13:function(e,t,n){var r=n(`b622`)(`match`);e.exports=function(e){var t=/./;try{`/./`[e](t)}catch(n){try{return t[r]=!1,`/./`[e](t)}catch(e){}}return!1}},ac1f:function(e,t,n){var r=n(`23e7`),i=n(`9263`);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})},ad6d:function(e,t,n){var r=n(`825a`);e.exports=function(){var e=r(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t}},ae40:function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`5135`),o=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||(t={});var n=[][e],l=a(t,`ACCESSORS`)?t.ACCESSORS:!1,u=a(t,0)?t[0]:c,d=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(l&&!r)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)})}},ae93:function(e,t,n){var r=n(`e163`),i=n(`9112`),a=n(`5135`),o=n(`b622`),s=n(`c430`),c=o(`iterator`),l=!1,u=function(){return this},d,f,p;[].keys&&(p=[].keys(),`next`in p?(f=r(r(p)),f!==Object.prototype&&(d=f)):l=!0),d==null&&(d={}),!s&&!a(d,c)&&i(d,c,u),e.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:l}},b041:function(e,t,n){var r=n(`00ee`),i=n(`f5df`);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}},b0c0:function(e,t,n){var r=n(`83ab`),i=n(`9bf2`).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c=`name`;r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch(e){return``}}})},b622:function(e,t,n){var r=n(`da84`),i=n(`5692`),a=n(`5135`),o=n(`90e3`),s=n(`4930`),c=n(`fdbf`),l=i(`wks`),u=r.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=d(`Symbol.`+e)),l[e]}},b64b:function(e,t,n){var r=n(`23e7`),i=n(`7b0b`),a=n(`df75`);r({target:`Object`,stat:!0,forced:n(`d039`)(function(){a(1)})},{keys:function(e){return a(i(e))}})},b727:function(e,t,n){var r=n(`0366`),i=n(`44ad`),a=n(`7b0b`),o=n(`50c4`),s=n(`65f0`),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==5||d;return function(p,m,h,g){for(var _=a(p),v=i(_),y=r(m,h,3),b=o(v.length),x=0,S=g||s,C=t?S(p,b):n?S(p,0):void 0,w,T;b>x;x++)if((f||x in v)&&(w=v[x],T=y(w,x,_),e)){if(t)C[x]=T;else if(T)switch(e){case 3:return!0;case 5:return w;case 6:return x;case 2:c.call(C,w)}else if(u)return!1}return d?-1:l||u?u:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},c04e:function(e,t,n){var r=n(`861d`);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}},c430:function(e,t){e.exports=!1},c6b6:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},c6cd:function(e,t,n){var r=n(`da84`),i=n(`ce4e`),a=`__core-js_shared__`;e.exports=r[a]||i(a,{})},c740:function(e,t,n){var r=n(`23e7`),i=n(`b727`).findIndex,a=n(`44d2`),o=n(`ae40`),s=`findIndex`,c=!0,l=o(s);s in[]&&[,][s](function(){c=!1}),r({target:`Array`,proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)},c8ba:function(e,t){var n=function(){return this}();try{n=n||Function(`return this`)()}catch(e){(typeof window>`u`?`undefined`:hn(window))===`object`&&(n=window)}e.exports=n},c975:function(e,t,n){var r=n(`23e7`),i=n(`4d64`).indexOf,a=n(`a640`),o=n(`ae40`),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=a(`indexOf`),u=o(`indexOf`,{ACCESSORS:!0,1:0});r({target:`Array`,proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,t,n){var r=n(`5135`),i=n(`fc6a`),a=n(`4d64`).indexOf,o=n(`d012`);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}},caad:function(e,t,n){var r=n(`23e7`),i=n(`4d64`).includes,a=n(`44d2`);r({target:`Array`,proto:!0,forced:!n(`ae40`)(`indexOf`,{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(`includes`)},cc12:function(e,t,n){var r=n(`da84`),i=n(`861d`),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}},ce4e:function(e,t,n){var r=n(`da84`),i=n(`9112`);e.exports=function(e,t){try{i(r,e,t)}catch(n){r[e]=t}return t}},d012:function(e,t){e.exports={}},d039:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},d066:function(e,t,n){var r=n(`428f`),i=n(`da84`),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}},d1e7:function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r},d28b:function(e,t,n){n(`746f`)(`iterator`)},d2bb:function(e,t,n){var r=n(`825a`),i=n(`3bbe`);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=dn(t,Array)}catch(e){}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)},d3b7:function(e,t,n){var r=n(`00ee`),i=n(`6eeb`),a=n(`b041`);r||i(Object.prototype,`toString`,a,{unsafe:!0})},d44e:function(e,t,n){var r=n(`9bf2`).f,i=n(`5135`),a=n(`b622`)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}},d58f:function(e,t,n){var r=n(`1c0b`),i=n(`7b0b`),a=n(`44ad`),o=n(`50c4`),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}},d784:function(e,t,n){n(`ac1f`);var r=n(`6eeb`),i=n(`d039`),a=n(`b622`),o=n(`9263`),s=n(`9112`),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=function(){return`a`.replace(/./,`$0`)===`$0`}(),d=a(`replace`),f=function(){return/./[d]?/./[d](`a`,`$0`)===``:!1}(),p=!i(function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}},d81d:function(e,t,n){var r=n(`23e7`),i=n(`b727`).map,a=n(`1dde`),o=n(`ae40`),s=a(`map`),c=o(`map`);r({target:`Array`,proto:!0,forced:!s||!c},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n((typeof globalThis>`u`?`undefined`:hn(globalThis))==`object`&&globalThis)||n((typeof window>`u`?`undefined`:hn(window))==`object`&&window)||n((typeof self>`u`?`undefined`:hn(self))==`object`&&self)||n((t===void 0?`undefined`:hn(t))==`object`&&t)||Function(`return this`)()}).call(this,n(`c8ba`))},dbb4:function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`56ef`),o=n(`fc6a`),s=n(`06cf`),c=n(`8418`);r({target:`Object`,stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t=o(e),n=s.f,r=a(t),i={},l=0,u,d;r.length>l;)d=n(t,u=r[l++]),d!==void 0&&c(i,u,d);return i}})},dbf1:function(e,t,n){(function(e){n.d(t,`a`,function(){return i});function r(){return typeof window<`u`?window.console:e.console}var i=r()}).call(this,n(`c8ba`))},ddb0:function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`e260`),o=n(`9112`),s=n(`b622`),c=s(`iterator`),l=s(`toStringTag`),u=a.values;for(var d in i){var f=r[d],p=f&&f.prototype;if(p){if(p[c]!==u)try{o(p,c,u)}catch(e){p[c]=u}if(p[l]||o(p,l,d),i[d]){for(var m in a)if(p[m]!==a[m])try{o(p,m,a[m])}catch(e){p[m]=a[m]}}}}},df75:function(e,t,n){var r=n(`ca84`),i=n(`7839`);e.exports=Object.keys||function(e){return r(e,i)}},e01a:function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`da84`),o=n(`5135`),s=n(`861d`),c=n(`9bf2`).f,l=n(`e893`),u=a.Symbol;if(i&&typeof u==`function`&&(!(`description`in u.prototype)||u().description!==void 0)){var d={},f=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=dn(this,f)?new u(e):e===void 0?u():u(e);return e===``&&(d[t]=!0),t};l(f,u);var p=f.prototype=u.prototype;p.constructor=f;var m=p.toString,h=String(u(`test`))==`Symbol(test)`,g=/^Symbol\((.*)\)[^)]+$/;c(p,`description`,{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(o(d,e))return``;var n=h?t.slice(7,-1):t.replace(g,`$1`);return n===``?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}},e163:function(e,t,n){var r=n(`5135`),i=n(`7b0b`),a=n(`f772`),o=n(`e177`),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&dn(e,e.constructor)?e.constructor.prototype:dn(e,Object)?c:null}},e177:function(e,t,n){e.exports=!n(`d039`)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})},e260:function(e,t,n){var r=n(`fc6a`),i=n(`44d2`),a=n(`3f8c`),o=n(`69f3`),s=n(`7dd0`),c=`Array Iterator`,l=o.set,u=o.getterFor(c);e.exports=s(Array,`Array`,function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=u(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}},`values`),a.Arguments=a.Array,i(`keys`),i(`values`),i(`entries`)},e439:function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`fc6a`),o=n(`06cf`).f,s=n(`83ab`),c=i(function(){o(1)});r({target:`Object`,stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})},e538:function(e,t,n){t.f=n(`b622`)},e893:function(e,t,n){var r=n(`5135`),i=n(`56ef`),a=n(`06cf`),o=n(`9bf2`);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}},e8b5:function(e,t,n){var r=n(`c6b6`);e.exports=Array.isArray||function(e){return r(e)==`Array`}},e95a:function(e,t,n){var r=n(`b622`),i=n(`3f8c`),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}},f5df:function(e,t,n){var r=n(`00ee`),i=n(`c6b6`),a=n(`b622`)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch(e){}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}},f772:function(e,t,n){var r=n(`5692`),i=n(`90e3`),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}},fb15:function(e,t,n){if(n.r(t),typeof window<`u`){var r=window.document.currentScript,i=n(`8875`);r=i(),`currentScript`in document||Object.defineProperty(document,"currentScript",{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n(`99af`),n(`4de4`),n(`4160`),n(`c975`),n(`d81d`),n(`a434`),n(`159b`),n(`a4d3`),n(`e439`),n(`dbb4`),n(`b64b`);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){if(Array.isArray(e))return e}n(`e01a`),n(`d28b`),n(`e260`),n(`d3b7`),n(`3ca3`),n(`ddb0`);function u(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}n(`a630`),n(`fb6a`),n(`b0c0`),n(`25f0`);function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(e){if(typeof e==`string`)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}function p(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(e,t){return l(e)||u(e,t)||f(e,t)||p()}function h(e){if(Array.isArray(e))return d(e)}function g(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function _(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(e){return h(e)||g(e)||f(e)||_()}var y=n(`a352`),b=n.n(y);function x(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function S(e,t,n){var r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var C=n(`dbf1`);n(`13d5`),n(`4fad`),n(`ac1f`),n(`5319`);function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var T=/-(\w)/g,E=w(function(e){return e.replace(T,function(e,t){return t.toUpperCase()})});n(`5db7`),n(`73d9`);var D=[`Start`,`Add`,`Remove`,`Update`,`End`],O=[`Choose`,`Unchoose`,`Sort`,`Filter`,`Clone`],k=[`Move`],A=[k,D,O].flatMap(function(e){return e}).map(function(e){return`on`.concat(e)}),j={manage:k,manageAndEmit:D,emit:O};function M(e){return A.indexOf(e)!==-1}n(`caad`),n(`2ca0`);var N=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function P(e){return N.includes(e)}function ee(e){return[`transition-group`,`TransitionGroup`].includes(e)}function te(e){return[`id`,`class`,`role`,`style`].includes(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`)}function F(e){return e.reduce(function(e,t){var n=m(t,2),r=n[0];return e[r]=n[1],e},{})}function ne(e){var t=e.$attrs,n=e.componentData,r=n===void 0?{}:n;return c(c({},F(Object.entries(t).filter(function(e){var t=m(e,2),n=t[0];return t[1],te(n)}))),r)}function re(e){var t=e.$attrs,n=e.callBackBuilder,r=F(ie(t));Object.entries(n).forEach(function(e){var t=m(e,2),n=t[0],i=t[1];j[n].forEach(function(e){r[`on`.concat(e)]=i(e)})});var i=`[data-draggable]`.concat(r.draggable||``);return c(c({},r),{},{draggable:i})}function ie(e){return Object.entries(e).filter(function(e){var t=m(e,2),n=t[0];return t[1],!te(n)}).map(function(e){var t=m(e,2),n=t[0],r=t[1];return[E(n),r]}).filter(function(e){var t=m(e,2),n=t[0];return t[1],!M(n)})}n(`c740`);function I(e,t){if(!dn(e,t))throw TypeError(`Cannot call a class as a function`)}function ae(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function oe(e,t,n){return t&&ae(e.prototype,t),n&&ae(e,n),e}var se=function(e){return e.el},L=function(e,t){return e.__draggable_context=t},R=function(e){return e.__draggable_context},ce=function(){function e(t){var n=t.nodes,r=n.header,i=n.default,a=n.footer,o=t.root,s=t.realList;I(this,e),this.defaultNodes=i,this.children=[].concat(v(r),v(i),v(a)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return oe(e,[{key:`render`,value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:`updated`,value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){L(se(e),{element:t[n],index:n})})}},{key:`getUnderlyingVm`,value:function(e){return R(e)}},{key:`getVmIndexFromDomIndex`,value:function(e,t){var n=this.defaultNodes,r=n.length,i=t.children,a=i.item(e);if(a===null)return r;var o=R(a);if(o)return o.index;if(r===0)return 0;var s=se(n[0]);return e<v(i).findIndex(function(e){return e===s})?0:r}},{key:`_isRootComponent`,get:function(){return this.externalComponent||this.rootTransition}}]),e}(),le=n(`8bbf`);function ue(e,t){var n=e[t];return n?n():[]}function de(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],a=m([`header`,`footer`].map(function(e){return ue(t,e)}),2),o=a[0],s=a[1],l=t.item;if(!l)throw Error(`draggable element must have an item slot`);var u=i.flatMap(function(e,t){return l({element:e,index:t}).map(function(t){return t.key=r(e),t.props=c(c({},t.props||{}),{},{"data-draggable":!0}),t})});if(u.length!==i.length)throw Error(`Item slot must have only one child`);return{header:o,footer:s,default:u}}function fe(e){var t=ee(e),n=!P(e)&&!t;return{transition:t,externalComponent:n,tag:n?(0,le.resolveComponent)(e):t?le.TransitionGroup:e}}function pe(e){var t=e.$slots,n=e.tag,r=e.realList,i=e.getKey;return new ce({nodes:de({$slots:t,realList:r,getKey:i}),root:fe(n),realList:r})}function me(e,t){var n=this;(0,le.nextTick)(function(){return n.$emit(e.toLowerCase(),t)})}function he(e){var t=this;return function(n,r){if(t.realList!==null)return t[`onDrag`.concat(e)](n,r)}}function ge(e){var t=this,n=he.call(this,e);return function(r,i){n.call(t,r,i),me.call(t,e,r)}}var z=null,_e={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:`div`},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},B=[`update:modelValue`,`change`].concat(v([].concat(v(j.manageAndEmit),v(j.emit)).map(function(e){return e.toLowerCase()})));t.default=(0,le.defineComponent)({name:`draggable`,inheritAttrs:!1,props:_e,emits:B,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,i=this.realList,a=this.getKey,o=pe({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=o;var s=ne({$attrs:t,componentData:r});return o.render(le.h,s)}catch(e){return this.error=!0,(0,le.h)(`pre`,{style:{color:`red`}},e.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&C.a.error(`modelValue and list props are mutually exclusive! Please set one or another.`)},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=re({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return ge.call(e,t)},emit:function(t){return me.bind(e,t)},manage:function(t){return he.call(e,t)}}}),i=n.nodeType===1?n:n.parentElement;this._sortable=new b.a(i,r),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){return this.list||this.modelValue},getKey:function(){var e=this.itemKey;return typeof e==`function`?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&ie(e).forEach(function(e){var n=m(e,2),r=n[0],i=n[1];t.option(r,i)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;(0,le.nextTick)(function(){return t.$emit(`change`,e)})},alterList:function(e){if(this.list){e(this.list);return}var t=v(this.modelValue);e(t),this.$emit(`update:modelValue`,t)},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,v(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};return t!==n&&i?c(c({},r.getUnderlyingVm(n)||{}),a):a},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),z=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(t!==void 0){x(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(S(this.$el,e.item,e.oldIndex),e.pullMode===`clone`){x(e.clone);return}var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var i={element:r,oldIndex:n};this.emitChanges({removed:i})},onDragUpdate:function(e){x(e.item),S(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=v(t.to.children).filter(function(e){return e.style.display!==`none`}),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return n.indexOf(z)!==-1||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var i=this.getRelatedContextFromMoveEvent(e),a=this.computeFutureIndex(i,e),o=c(c({},this.context),{},{futureIndex:a});return n(c(c({},e),{},{relatedContext:i,draggedContext:o}),t)},onDragEnd:function(){z=null}}})},fb6a:function(e,t,n){var r=n(`23e7`),i=n(`861d`),a=n(`e8b5`),o=n(`23cb`),s=n(`50c4`),c=n(`fc6a`),l=n(`8418`),u=n(`b622`),d=n(`1dde`),f=n(`ae40`),p=d(`slice`),m=f(`slice`,{ACCESSORS:!0,0:0,1:2}),h=u(`species`),g=[].slice,_=Math.max;r({target:`Array`,proto:!0,forced:!p||!m},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),f,p,m;if(a(n)&&(f=n.constructor,typeof f==`function`&&(f===Array||a(f.prototype))?f=void 0:i(f)&&(f=f[h],f===null&&(f=void 0)),f===Array||f===void 0))return g.call(n,u,d);for(p=new(f===void 0?Array:f)(_(d-u,0)),m=0;u<d;u++,m++)u in n&&l(p,m,n[u]);return p.length=m,p}})},fc6a:function(e,t,n){var r=n(`44ad`),i=n(`1d80`);e.exports=function(e){return r(i(e))}},fdbc:function(e,t){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,t,n){e.exports=n(`4930`)&&!Symbol.sham&&hn(Symbol.iterator)==`symbol`}}).default})})),j=function(){var e,t,n,r,i,a,o,s,c,l,u,d,f,p=`leader-line`,m=1,h=2,g=3,_=4,v={top:m,right:h,bottom:g,left:_},y=1,b=2,x=3,S=4,C=5,w={straight:y,arc:b,fluid:x,magnet:S,grid:C},T=`behind`,E=p+`-defs`,D=`<svg xmlns="http://www.w3.org/2000/svg" version="1.1" id="leader-line-defs"><style><![CDATA[.leader-line{position:absolute;overflow:visible!important;pointer-events:none!important;font-size:16px}#leader-line-defs{width:0;height:0;position:absolute;left:0;top:0}.leader-line-line-path{fill:none}.leader-line-mask-bg-rect{fill:#fff}.leader-line-caps-mask-anchor,.leader-line-caps-mask-marker-shape{fill:#000}.leader-line-caps-mask-anchor{stroke:#000}.leader-line-caps-mask-line,.leader-line-plugs-face{stroke:transparent}.leader-line-line-mask-shape{stroke:#fff}.leader-line-line-outline-mask-shape{stroke:#000}.leader-line-plug-mask-shape{fill:#fff;stroke:#000}.leader-line-plug-outline-mask-shape{fill:#000;stroke:#fff}.leader-line-areaAnchor{position:absolute;overflow:visible!important}]]></style><defs><circle id="leader-line-disc" cx="0" cy="0" r="5"/><rect id="leader-line-square" x="-5" y="-5" width="10" height="10"/><polygon id="leader-line-arrow1" points="-8,-8 8,0 -8,8 -5,0"/><polygon id="leader-line-arrow2" points="-4,-8 4,0 -4,8 -7,5 -2,0 -7,-5"/><polygon id="leader-line-arrow3" points="-4,-5 8,0 -4,5"/><g id="leader-line-hand"><path style="fill: #fcfcfc" d="M9.19 11.14h4.75c1.38 0 2.49-1.11 2.49-2.49 0-.51-.15-.98-.41-1.37h1.3c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.53-2.49-2.53h1.02c1.38 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49h14.96c1.37 0 2.49-1.11 2.49-2.49s-1.11-2.49-2.49-2.49H16.58C16-9.86 14.28-11.14 9.7-11.14c-4.79 0-6.55 3.42-7.87 4.73H-2.14v13.23h3.68C3.29 9.97 5.47 11.14 9.19 11.14L9.19 11.14Z"/><path style="fill: black" d="M13.95 12c1.85 0 3.35-1.5 3.35-3.35 0-.17-.02-.34-.04-.51h.07c1.85 0 3.35-1.5 3.35-3.35 0-.79-.27-1.51-.72-2.08 1.03-.57 1.74-1.67 1.74-2.93 0-.59-.16-1.15-.43-1.63h12.04c1.85 0 3.35-1.5 3.35-3.35 0-1.85-1.5-3.35-3.35-3.35H17.2C16.26-10.93 13.91-12 9.7-12 5.36-12 3.22-9.4 1.94-7.84c0 0-.29.33-.5.57-.63 0-3.58 0-3.58 0C-2.61-7.27-3-6.88-3-6.41v13.23c0 .47.39.86.86.86 0 0 2.48 0 3.2 0C2.9 10.73 5.29 12 9.19 12L13.95 12ZM9.19 10.28c-3.46 0-5.33-1.05-6.9-3.87-.15-.27-.44-.44-.75-.44 0 0-1.81 0-2.82 0V-5.55c1.06 0 3.11 0 3.11 0 .25 0 .44-.06.61-.25l.83-.95c1.23-1.49 2.91-3.53 6.43-3.53 3.45 0 4.9.74 5.57 1.72h-4.3c-.48 0-.86.38-.86.86s.39.86.86.86h22.34c.9 0 1.63.73 1.63 1.63 0 .9-.73 1.63-1.63 1.63H15.83c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.52c.9 0 1.63.73 1.63 1.63s-.73 1.63-1.63 1.63h-3.12c-.48 0-.86.38-.86.86 0 .47.39.86.86.86h2.11c.88 0 1.63.76 1.63 1.67 0 .9-.73 1.63-1.63 1.63h-3.2c-.48 0-.86.39-.86.86 0 .47.39.86.86.86h1.36c.05.16.09.34.09.51 0 .9-.73 1.63-1.63 1.63C13.95 10.28 9.19 10.28 9.19 10.28Z"/></g><g id="leader-line-crosshair"><path d="M0-78.97c-43.54 0-78.97 35.43-78.97 78.97 0 43.54 35.43 78.97 78.97 78.97s78.97-35.43 78.97-78.97C78.97-43.54 43.55-78.97 0-78.97ZM76.51-1.21h-9.91v-9.11h-2.43v9.11h-11.45c-.64-28.12-23.38-50.86-51.5-51.5V-64.17h9.11V-66.6h-9.11v-9.91C42.46-75.86 75.86-42.45 76.51-1.21ZM-1.21-30.76h-9.11v2.43h9.11V-4.2c-1.44.42-2.57 1.54-2.98 2.98H-28.33v-9.11h-2.43v9.11H-50.29C-49.65-28-27.99-49.65-1.21-50.29V-30.76ZM-30.76 1.21v9.11h2.43v-9.11H-4.2c.42 1.44 1.54 2.57 2.98 2.98v24.13h-9.11v2.43h9.11v19.53C-27.99 49.65-49.65 28-50.29 1.21H-30.76ZM1.22 30.75h9.11v-2.43h-9.11V4.2c1.44-.42 2.56-1.54 2.98-2.98h24.13v9.11h2.43v-9.11h19.53C49.65 28 28 49.65 1.22 50.29V30.75ZM30.76-1.21v-9.11h-2.43v9.11H4.2c-.42-1.44-1.54-2.56-2.98-2.98V-28.33h9.11v-2.43h-9.11V-50.29C28-49.65 49.65-28 50.29-1.21H30.76ZM-1.21-76.51v9.91h-9.11v2.43h9.11v11.45c-28.12.64-50.86 23.38-51.5 51.5H-64.17v-9.11H-66.6v9.11h-9.91C-75.86-42.45-42.45-75.86-1.21-76.51ZM-76.51 1.21h9.91v9.11h2.43v-9.11h11.45c.64 28.12 23.38 50.86 51.5 51.5v11.45h-9.11v2.43h9.11v9.91C-42.45 75.86-75.86 42.45-76.51 1.21ZM1.22 76.51v-9.91h9.11v-2.43h-9.11v-11.45c28.12-.64 50.86-23.38 51.5-51.5h11.45v9.11h2.43v-9.11h9.91C75.86 42.45 42.45 75.86 1.22 76.51Z"/><path d="M0 83.58-7.1 96 7.1 96Z"/><path d="M0-83.58 7.1-96-7.1-96"/><path d="M83.58 0 96 7.1 96-7.1Z"/><path d="M-83.58 0-96-7.1-96 7.1Z"/></g></defs></svg>`,O={disc:{elmId:`leader-line-disc`,noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},square:{elmId:`leader-line-square`,noRotate:!0,bBox:{left:-5,top:-5,width:10,height:10,right:5,bottom:5},widthR:2.5,heightR:2.5,bCircle:5,sideLen:5,backLen:5,overhead:0,outlineBase:1,outlineMax:4},arrow1:{elmId:`leader-line-arrow1`,bBox:{left:-8,top:-8,width:16,height:16,right:8,bottom:8},widthR:4,heightR:4,bCircle:8,sideLen:8,backLen:8,overhead:8,outlineBase:2,outlineMax:1.5},arrow2:{elmId:`leader-line-arrow2`,bBox:{left:-7,top:-8,width:11,height:16,right:4,bottom:8},widthR:2.75,heightR:4,bCircle:8,sideLen:8,backLen:7,overhead:4,outlineBase:1,outlineMax:1.75},arrow3:{elmId:`leader-line-arrow3`,bBox:{left:-4,top:-5,width:12,height:10,right:8,bottom:5},widthR:3,heightR:2.5,bCircle:8,sideLen:5,backLen:4,overhead:8,outlineBase:1,outlineMax:2.5},hand:{elmId:`leader-line-hand`,bBox:{left:-3,top:-12,width:40,height:24,right:37,bottom:12},widthR:10,heightR:6,bCircle:37,sideLen:12,backLen:3,overhead:37},crosshair:{elmId:`leader-line-crosshair`,noRotate:!0,bBox:{left:-96,top:-96,width:192,height:192,right:96,bottom:96},widthR:48,heightR:48,bCircle:96,sideLen:96,backLen:96,overhead:0}},k={behind:T,disc:`disc`,square:`square`,arrow1:`arrow1`,arrow2:`arrow2`,arrow3:`arrow3`,hand:`hand`,crosshair:`crosshair`},A={disc:`disc`,square:`square`,arrow1:`arrow1`,arrow2:`arrow2`,arrow3:`arrow3`,hand:`hand`,crosshair:`crosshair`},j=[m,h,g,_],M=`auto`,N={x:`left`,y:`top`,width:`width`,height:`height`},P=80,ee=4,te=5,F=120,ne=8,re=3.75,ie=10,I=30,ae=.5522847,oe=.25*Math.PI,se=/^\s*(\-?[\d\.]+)\s*(\%)?\s*$/,L=`http://www.w3.org/2000/svg`,R=`-ms-scroll-limit`in document.documentElement.style&&`-ms-ime-align`in document.documentElement.style&&!window.navigator.msPointerEnabled,ce=!R&&!!document.uniqueID,le=`MozAppearance`in document.documentElement.style,ue=!(R||le||!window.chrome||!window.CSS),de=!R&&!ce&&!le&&!ue&&!window.chrome&&`WebkitAppearance`in document.documentElement.style,fe=ce||R?.2:.1,pe={path:x,lineColor:`coral`,lineSize:4,plugSE:[T,`arrow1`],plugSizeSE:[1,1],lineOutlineEnabled:!1,lineOutlineColor:`indianred`,lineOutlineSize:.25,plugOutlineEnabledSE:[!1,!1],plugOutlineSizeSE:[1,1]},me=(u={}.toString,d={}.hasOwnProperty.toString,f=d.call(Object),function(e){var t,n;return e&&u.call(e)===`[object Object]`&&(!(t=Object.getPrototypeOf(e))||(n=t.hasOwnProperty(`constructor`)&&t.constructor)&&typeof n==`function`&&d.call(n)===f)}),he=Number.isFinite||function(e){return typeof e==`number`&&window.isFinite(e)},ge=function(){var e,t={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},n=1e3/60/2,r=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){setTimeout(e,n)},i=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){clearTimeout(e)},a=Number.isFinite||function(e){return typeof e==`number`&&window.isFinite(e)},o=[],s=0;function c(){var t=Date.now(),a=!1;e&&(i.call(window,e),e=null),o.forEach(function(e){var r,i,o;if(e.framesStart){if((r=t-e.framesStart)>=e.duration&&e.count&&e.loopsLeft<=1)return o=e.frames[e.lastFrame=e.reverse?0:e.frames.length-1],e.frameCallback(o.value,!0,o.timeRatio,o.outputRatio),void(e.framesStart=null);if(r>e.duration){if(i=Math.floor(r/e.duration),e.count){if(i>=e.loopsLeft)return o=e.frames[e.lastFrame=e.reverse?0:e.frames.length-1],e.frameCallback(o.value,!0,o.timeRatio,o.outputRatio),void(e.framesStart=null);e.loopsLeft-=i}e.framesStart+=e.duration*i,r=t-e.framesStart}e.reverse&&(r=e.duration-r),o=e.frames[e.lastFrame=Math.round(r/n)],!1===e.frameCallback(o.value,!1,o.timeRatio,o.outputRatio)?e.framesStart=null:a=!0}}),a&&(e=r.call(window,c))}function l(e,t){e.framesStart=Date.now(),t!=null&&(e.framesStart-=e.duration*(e.reverse?1-t:t)),e.loopsLeft=e.count,e.lastFrame=null,c()}return{add:function(e,r,i,a,c,u,d){var f,p,m,h,g,_,v,y,b,x,S,C,w,T=++s;function E(t,n){return{value:e(n),timeRatio:t,outputRatio:n}}if(typeof c==`string`&&(c=t[c]),e=e||function(){},i<n)p=[E(0,0),E(1,1)];else{if(m=n/i,p=[E(0,0)],c[0]===0&&c[1]===0&&c[2]===1&&c[3]===1)for(g=m;g<=1;g+=m)p.push(E(g,g));else for(_=h=(g=m)/10;_<=1;_+=h)x=(b=(y=_)*y)*y,w=3*(S=1-y)*b,g<=(v={x:(C=S*S*3*y)*c[0]+w*c[2]+x,y:C*c[1]+w*c[3]+x}).x&&(p.push(E(v.x,v.y)),g+=m);p.push(E(1,1))}return f={animId:T,frameCallback:r,duration:i,count:a,frames:p,reverse:!!u},o.push(f),!1!==d&&l(f,d),T},remove:function(e){var t;o.some(function(n,r){return n.animId===e&&(t=r,!(n.framesStart=null))})&&o.splice(t,1)},start:function(e,t,n){o.some(function(r){return r.animId===e&&(r.reverse=!!t,l(r,n),!0)})},stop:function(e,t){var n;return o.some(function(r){return r.animId===e&&(t?r.lastFrame!=null&&(n=r.frames[r.lastFrame].timeRatio):(n=(Date.now()-r.framesStart)/r.duration,r.reverse&&(n=1-n),n<0?n=0:1<n&&(n=1)),!(r.framesStart=null))}),n},validTiming:function(e){return typeof e==`string`?t[e]:Array.isArray(e)&&[0,1,2,3].every(function(t){return a(e[t])&&0<=e[t]&&e[t]<=1})?[e[0],e[1],e[2],e[3]]:null}}}(),z=function(e){e.SVGPathElement.prototype.getPathData&&e.SVGPathElement.prototype.setPathData||function(){var t={Z:`Z`,M:`M`,L:`L`,C:`C`,Q:`Q`,A:`A`,H:`H`,V:`V`,S:`S`,T:`T`,z:`Z`,m:`m`,l:`l`,c:`c`,q:`q`,a:`a`,h:`h`,v:`v`,s:`s`,t:`t`},n=function(e){this._string=e,this._currentIndex=0,this._endIndex=this._string.length,this._prevCommand=null,this._skipOptionalSpaces()},r=e.navigator.userAgent.indexOf(`MSIE `)!==-1;n.prototype={parseSegment:function(){var e=this._string[this._currentIndex],n=t[e]?t[e]:null;if(n===null){if(this._prevCommand===null||(n=(e===`+`||e===`-`||e===`.`||`0`<=e&&e<=`9`)&&this._prevCommand!==`Z`?this._prevCommand===`M`?`L`:this._prevCommand===`m`?`l`:this._prevCommand:null)===null)return null}else this._currentIndex+=1;var r=null,i=(this._prevCommand=n).toUpperCase();return i===`H`||i===`V`?r=[this._parseNumber()]:i===`M`||i===`L`||i===`T`?r=[this._parseNumber(),this._parseNumber()]:i===`S`||i===`Q`?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:i===`C`?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseNumber()]:i===`A`?r=[this._parseNumber(),this._parseNumber(),this._parseNumber(),this._parseArcFlag(),this._parseArcFlag(),this._parseNumber(),this._parseNumber()]:i===`Z`&&(this._skipOptionalSpaces(),r=[]),r===null||0<=r.indexOf(null)?null:{type:n,values:r}},hasMoreData:function(){return this._currentIndex<this._endIndex},peekSegmentType:function(){var e=this._string[this._currentIndex];return t[e]?t[e]:null},initialCommandIsMoveTo:function(){if(!this.hasMoreData())return!0;var e=this.peekSegmentType();return e===`M`||e===`m`},_isCurrentSpace:function(){var e=this._string[this._currentIndex];return e<=` `&&(e===` `||e===`
|
|
`||e===` `||e===`\r`||e===`\f`)},_skipOptionalSpaces:function(){for(;this._currentIndex<this._endIndex&&this._isCurrentSpace();)this._currentIndex+=1;return this._currentIndex<this._endIndex},_skipOptionalSpacesOrDelimiter:function(){return!(this._currentIndex<this._endIndex&&!this._isCurrentSpace()&&this._string[this._currentIndex]!==`,`)&&(this._skipOptionalSpaces()&&this._currentIndex<this._endIndex&&this._string[this._currentIndex]===`,`&&(this._currentIndex+=1,this._skipOptionalSpaces()),this._currentIndex<this._endIndex)},_parseNumber:function(){var e=0,t=0,n=1,r=0,i=1,a=1,o=this._currentIndex;if(this._skipOptionalSpaces(),this._currentIndex<this._endIndex&&this._string[this._currentIndex]===`+`?this._currentIndex+=1:this._currentIndex<this._endIndex&&this._string[this._currentIndex]===`-`&&(this._currentIndex+=1,i=-1),this._currentIndex===this._endIndex||(this._string[this._currentIndex]<`0`||`9`<this._string[this._currentIndex])&&this._string[this._currentIndex]!==`.`)return null;for(var s=this._currentIndex;this._currentIndex<this._endIndex&&`0`<=this._string[this._currentIndex]&&this._string[this._currentIndex]<=`9`;)this._currentIndex+=1;if(this._currentIndex!==s)for(var c=this._currentIndex-1,l=1;s<=c;)t+=l*(this._string[c]-`0`),--c,l*=10;if(this._currentIndex<this._endIndex&&this._string[this._currentIndex]===`.`){if(this._currentIndex+=1,this._currentIndex>=this._endIndex||this._string[this._currentIndex]<`0`||`9`<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&`0`<=this._string[this._currentIndex]&&this._string[this._currentIndex]<=`9`;)n*=10,r+=(this._string.charAt(this._currentIndex)-`0`)/n,this._currentIndex+=1}if(this._currentIndex!==o&&this._currentIndex+1<this._endIndex&&(this._string[this._currentIndex]===`e`||this._string[this._currentIndex]===`E`)&&this._string[this._currentIndex+1]!==`x`&&this._string[this._currentIndex+1]!==`m`){if(this._currentIndex+=1,this._string[this._currentIndex]===`+`?this._currentIndex+=1:this._string[this._currentIndex]===`-`&&(this._currentIndex+=1,a=-1),this._currentIndex>=this._endIndex||this._string[this._currentIndex]<`0`||`9`<this._string[this._currentIndex])return null;for(;this._currentIndex<this._endIndex&&`0`<=this._string[this._currentIndex]&&this._string[this._currentIndex]<=`9`;)e*=10,e+=this._string[this._currentIndex]-`0`,this._currentIndex+=1}var u=t+r;return u*=i,e&&(u*=10**(a*e)),o===this._currentIndex?null:(this._skipOptionalSpacesOrDelimiter(),u)},_parseArcFlag:function(){if(this._currentIndex>=this._endIndex)return null;var e=null,t=this._string[this._currentIndex];if(this._currentIndex+=1,t===`0`)e=0;else{if(t!==`1`)return null;e=1}return this._skipOptionalSpacesOrDelimiter(),e}};var i=function(e){if(!e||e.length===0)return[];var t=new n(e),r=[];if(t.initialCommandIsMoveTo())for(;t.hasMoreData();){var i=t.parseSegment();if(i===null)break;r.push(i)}return r},a=e.SVGPathElement.prototype.setAttribute,o=e.SVGPathElement.prototype.removeAttribute,s=e.Symbol?e.Symbol():`__cachedPathData`,c=e.Symbol?e.Symbol():`__cachedNormalizedPathData`,l=function(e,t,n,r,i,a,o,s,c,u){var d,f,p,m,h,g=function(e,t,n){return{x:e*Math.cos(n)-t*Math.sin(n),y:e*Math.sin(n)+t*Math.cos(n)}},_=(d=o,Math.PI*d/180),v=[];if(u)f=u[0],p=u[1],m=u[2],h=u[3];else{var y=g(e,t,-_);e=y.x,t=y.y;var b=g(n,r,-_),x=(e-(n=b.x))/2,S=(t-(r=b.y))/2,C=x*x/(i*i)+S*S/(a*a);1<C&&(i*=C=Math.sqrt(C),a*=C);var w=i*i,T=a*a,E=w*T-w*S*S-T*x*x,D=w*S*S+T*x*x,O=(s===c?-1:1)*Math.sqrt(Math.abs(E/D));m=O*i*S/a+(e+n)/2,h=O*-a*x/i+(t+r)/2,f=Math.asin(parseFloat(((t-h)/a).toFixed(9))),p=Math.asin(parseFloat(((r-h)/a).toFixed(9))),e<m&&(f=Math.PI-f),n<m&&(p=Math.PI-p),f<0&&(f=2*Math.PI+f),p<0&&(p=2*Math.PI+p),c&&p<f&&(f-=2*Math.PI),!c&&f<p&&(p-=2*Math.PI)}var k=p-f;if(Math.abs(k)>120*Math.PI/180){var A=p,j=n,M=r;p=c&&f<p?f+120*Math.PI/180*1:f+120*Math.PI/180*-1,n=m+i*Math.cos(p),r=h+a*Math.sin(p),v=l(n,r,j,M,i,a,o,0,c,[p,A,m,h])}k=p-f;var N=Math.cos(f),P=Math.sin(f),ee=Math.cos(p),te=Math.sin(p),F=Math.tan(k/4),ne=4/3*i*F,re=4/3*a*F,ie=[e,t],I=[e+ne*P,t-re*N],ae=[n+ne*te,r-re*ee],oe=[n,r];if(I[0]=2*ie[0]-I[0],I[1]=2*ie[1]-I[1],u)return[I,ae,oe].concat(v);v=[I,ae,oe].concat(v).join().split(`,`);var se=[],L=[];return v.forEach(function(e,t){t%2?L.push(g(v[t-1],v[t],_).y):L.push(g(v[t],v[t+1],_).x),L.length===6&&(se.push(L),L=[])}),se},u=function(e){return e.map(function(e){return{type:e.type,values:Array.prototype.slice.call(e.values)}})},d=function(e){var t=[],n=null,r=null,i=null,a=null,o=null,s=null,c=null;return e.forEach(function(e){if(e.type===`M`){var u=e.values[0],d=e.values[1];t.push({type:`M`,values:[u,d]}),a=s=u,o=c=d}else if(e.type===`C`){var f=e.values[0],p=e.values[1],m=e.values[2],h=e.values[3];u=e.values[4],d=e.values[5],t.push({type:`C`,values:[f,p,m,h,u,d]}),r=m,i=h,a=u,o=d}else if(e.type===`L`)u=e.values[0],d=e.values[1],t.push({type:`L`,values:[u,d]}),a=u,o=d;else if(e.type===`H`)u=e.values[0],t.push({type:`L`,values:[u,o]}),a=u;else if(e.type===`V`)d=e.values[0],t.push({type:`L`,values:[a,d]}),o=d;else if(e.type===`S`)m=e.values[0],h=e.values[1],u=e.values[2],d=e.values[3],n===`C`||n===`S`?(g=a+(a-r),_=o+(o-i)):(g=a,_=o),t.push({type:`C`,values:[g,_,m,h,u,d]}),r=m,i=h,a=u,o=d;else if(e.type===`T`){u=e.values[0],d=e.values[1],n===`Q`||n===`T`?(f=a+(a-r),p=o+(o-i)):(f=a,p=o);var g=a+2*(f-a)/3,_=o+2*(p-o)/3,v=u+2*(f-u)/3,y=d+2*(p-d)/3;t.push({type:`C`,values:[g,_,v,y,u,d]}),r=f,i=p,a=u,o=d}else if(e.type===`Q`)f=e.values[0],p=e.values[1],u=e.values[2],d=e.values[3],g=a+2*(f-a)/3,_=o+2*(p-o)/3,v=u+2*(f-u)/3,y=d+2*(p-d)/3,t.push({type:`C`,values:[g,_,v,y,u,d]}),r=f,i=p,a=u,o=d;else if(e.type===`A`){var b=e.values[0],x=e.values[1],S=e.values[2],C=e.values[3],w=e.values[4];u=e.values[5],d=e.values[6],b===0||x===0?(t.push({type:`C`,values:[a,o,u,d,u,d]}),a=u,o=d):(a!==u||o!==d)&&l(a,o,u,d,b,x,S,C,w).forEach(function(e){t.push({type:`C`,values:e}),a=u,o=d})}else e.type===`Z`&&(t.push(e),a=s,o=c);n=e.type}),t};e.SVGPathElement.prototype.setAttribute=function(e,t){e===`d`&&(this[s]=null,this[c]=null),a.call(this,e,t)},e.SVGPathElement.prototype.removeAttribute=function(e,t){e===`d`&&(this[s]=null,this[c]=null),o.call(this,e)},e.SVGPathElement.prototype.getPathData=function(e){if(e&&e.normalize){if(this[c])return u(this[c]);this[s]?f=u(this[s]):(f=i(this.getAttribute(`d`)||``),this[s]=u(f));var t=d((n=[],l=o=a=r=null,f.forEach(function(e){var t=e.type;if(t===`M`){var i=e.values[0],s=e.values[1];n.push({type:`M`,values:[i,s]}),r=o=i,a=l=s}else if(t===`m`)i=r+e.values[0],s=a+e.values[1],n.push({type:`M`,values:[i,s]}),r=o=i,a=l=s;else if(t===`L`)i=e.values[0],s=e.values[1],n.push({type:`L`,values:[i,s]}),r=i,a=s;else if(t===`l`)i=r+e.values[0],s=a+e.values[1],n.push({type:`L`,values:[i,s]}),r=i,a=s;else if(t===`C`){var c=e.values[0],u=e.values[1],d=e.values[2],f=e.values[3];i=e.values[4],s=e.values[5],n.push({type:`C`,values:[c,u,d,f,i,s]}),r=i,a=s}else t===`c`?(c=r+e.values[0],u=a+e.values[1],d=r+e.values[2],f=a+e.values[3],i=r+e.values[4],s=a+e.values[5],n.push({type:`C`,values:[c,u,d,f,i,s]}),r=i,a=s):t===`Q`?(c=e.values[0],u=e.values[1],i=e.values[2],s=e.values[3],n.push({type:`Q`,values:[c,u,i,s]}),r=i,a=s):t===`q`?(c=r+e.values[0],u=a+e.values[1],i=r+e.values[2],s=a+e.values[3],n.push({type:`Q`,values:[c,u,i,s]}),r=i,a=s):t===`A`?(i=e.values[5],s=e.values[6],n.push({type:`A`,values:[e.values[0],e.values[1],e.values[2],e.values[3],e.values[4],i,s]}),r=i,a=s):t===`a`?(i=r+e.values[5],s=a+e.values[6],n.push({type:`A`,values:[e.values[0],e.values[1],e.values[2],e.values[3],e.values[4],i,s]}),r=i,a=s):t===`H`?(i=e.values[0],n.push({type:`H`,values:[i]}),r=i):t===`h`?(i=r+e.values[0],n.push({type:`H`,values:[i]}),r=i):t===`V`?(s=e.values[0],n.push({type:`V`,values:[s]}),a=s):t===`v`?(s=a+e.values[0],n.push({type:`V`,values:[s]}),a=s):t===`S`?(d=e.values[0],f=e.values[1],i=e.values[2],s=e.values[3],n.push({type:`S`,values:[d,f,i,s]}),r=i,a=s):t===`s`?(d=r+e.values[0],f=a+e.values[1],i=r+e.values[2],s=a+e.values[3],n.push({type:`S`,values:[d,f,i,s]}),r=i,a=s):t===`T`?(i=e.values[0],s=e.values[1],n.push({type:`T`,values:[i,s]}),r=i,a=s):t===`t`?(i=r+e.values[0],s=a+e.values[1],n.push({type:`T`,values:[i,s]}),r=i,a=s):t!==`Z`&&t!==`z`||(n.push({type:`Z`,values:[]}),r=o,a=l)}),n));return this[c]=u(t),t}if(this[s])return u(this[s]);var n,r,a,o,l,f=i(this.getAttribute(`d`)||``);return this[s]=u(f),f},e.SVGPathElement.prototype.setPathData=function(e){if(e.length===0)r?this.setAttribute(`d`,``):this.removeAttribute(`d`);else{for(var t=``,n=0,i=e.length;n<i;n+=1){var a=e[n];0<n&&(t+=` `),t+=a.type,a.values&&0<a.values.length&&(t+=` `+a.values.join(` `))}this.setAttribute(`d`,t)}},e.SVGRectElement.prototype.getPathData=function(e){var t=this.x.baseVal.value,n=this.y.baseVal.value,r=this.width.baseVal.value,i=this.height.baseVal.value,a=this.hasAttribute(`rx`)?this.rx.baseVal.value:this.ry.baseVal.value,o=this.hasAttribute(`ry`)?this.ry.baseVal.value:this.rx.baseVal.value;r/2<a&&(a=r/2),i/2<o&&(o=i/2);var s=[{type:`M`,values:[t+a,n]},{type:`H`,values:[t+r-a]},{type:`A`,values:[a,o,0,0,1,t+r,n+o]},{type:`V`,values:[n+i-o]},{type:`A`,values:[a,o,0,0,1,t+r-a,n+i]},{type:`H`,values:[t+a]},{type:`A`,values:[a,o,0,0,1,t,n+i-o]},{type:`V`,values:[n+o]},{type:`A`,values:[a,o,0,0,1,t+a,n]},{type:`Z`,values:[]}];return s=s.filter(function(e){return e.type!==`A`||e.values[0]!==0&&e.values[1]!==0}),e&&!0===e.normalize&&(s=d(s)),s},e.SVGCircleElement.prototype.getPathData=function(e){var t=this.cx.baseVal.value,n=this.cy.baseVal.value,r=this.r.baseVal.value,i=[{type:`M`,values:[t+r,n]},{type:`A`,values:[r,r,0,0,1,t,n+r]},{type:`A`,values:[r,r,0,0,1,t-r,n]},{type:`A`,values:[r,r,0,0,1,t,n-r]},{type:`A`,values:[r,r,0,0,1,t+r,n]},{type:`Z`,values:[]}];return e&&!0===e.normalize&&(i=d(i)),i},e.SVGEllipseElement.prototype.getPathData=function(e){var t=this.cx.baseVal.value,n=this.cy.baseVal.value,r=this.rx.baseVal.value,i=this.ry.baseVal.value,a=[{type:`M`,values:[t+r,n]},{type:`A`,values:[r,i,0,0,1,t,n+i]},{type:`A`,values:[r,i,0,0,1,t-r,n]},{type:`A`,values:[r,i,0,0,1,t,n-i]},{type:`A`,values:[r,i,0,0,1,t+r,n]},{type:`Z`,values:[]}];return e&&!0===e.normalize&&(a=d(a)),a},e.SVGLineElement.prototype.getPathData=function(){return[{type:`M`,values:[this.x1.baseVal.value,this.y1.baseVal.value]},{type:`L`,values:[this.x2.baseVal.value,this.y2.baseVal.value]}]},e.SVGPolylineElement.prototype.getPathData=function(){for(var e=[],t=0;t<this.points.numberOfItems;t+=1){var n=this.points.getItem(t);e.push({type:t===0?`M`:`L`,values:[n.x,n.y]})}return e},e.SVGPolygonElement.prototype.getPathData=function(){for(var e=[],t=0;t<this.points.numberOfItems;t+=1){var n=this.points.getItem(t);e.push({type:t===0?`M`:`L`,values:[n.x,n.y]})}return e.push({type:`Z`,values:[]}),e}}()},_e=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=0)}([function(e,t,n){n.r(t);var r=500,i=[],a=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||function(e){return setTimeout(e,1e3/60)},o=window.cancelAnimationFrame||window.mozCancelAnimationFrame||window.webkitCancelAnimationFrame||window.msCancelAnimationFrame||function(e){return clearTimeout(e)},s=void 0,c=Date.now();function l(){var e=void 0,t=void 0;s&&(o.call(window,s),s=null),i.forEach(function(t){t.event&&(t.listener(t.event),t.event=null,e=!0)}),e?(c=Date.now(),t=!0):Date.now()-c<r&&(t=!0),t&&(s=a.call(window,l))}function u(e){var t=-1;return i.some(function(n,r){return n.listener===e&&(t=r,!0)}),t}t.default={add:function(e){var t=void 0;return u(e)===-1?(i.push(t={listener:e}),function(e){t.event=e,s||l()}):null},remove:function(e){var t;-1<(t=u(e))&&(i.splice(t,1),!i.length&&s&&(o.call(window,s),s=null))}}}]).default,B={line_altColor:{iniValue:!1},line_color:{},line_colorTra:{iniValue:!1},line_strokeWidth:{},plug_enabled:{iniValue:!1},plug_enabledSE:{hasSE:!0,iniValue:!1},plug_plugSE:{hasSE:!0,iniValue:T},plug_colorSE:{hasSE:!0},plug_colorTraSE:{hasSE:!0,iniValue:!1},plug_markerWidthSE:{hasSE:!0},plug_markerHeightSE:{hasSE:!0},lineOutline_enabled:{iniValue:!1},lineOutline_color:{},lineOutline_colorTra:{iniValue:!1},lineOutline_strokeWidth:{},lineOutline_inStrokeWidth:{},plugOutline_enabledSE:{hasSE:!0,iniValue:!1},plugOutline_plugSE:{hasSE:!0,iniValue:T},plugOutline_colorSE:{hasSE:!0},plugOutline_colorTraSE:{hasSE:!0,iniValue:!1},plugOutline_strokeWidthSE:{hasSE:!0},plugOutline_inStrokeWidthSE:{hasSE:!0},position_socketXYSE:{hasSE:!0,hasProps:!0},position_plugOverheadSE:{hasSE:!0},position_path:{},position_lineStrokeWidth:{},position_socketGravitySE:{hasSE:!0},path_pathData:{},path_edge:{hasProps:!0},viewBox_bBox:{hasProps:!0},viewBox_plugBCircleSE:{hasSE:!0},lineMask_enabled:{iniValue:!1},lineMask_outlineMode:{iniValue:!1},lineMask_x:{},lineMask_y:{},lineOutlineMask_x:{},lineOutlineMask_y:{},maskBGRect_x:{},maskBGRect_y:{},capsMaskAnchor_enabledSE:{hasSE:!0,iniValue:!1},capsMaskAnchor_pathDataSE:{hasSE:!0},capsMaskAnchor_strokeWidthSE:{hasSE:!0},capsMaskMarker_enabled:{iniValue:!1},capsMaskMarker_enabledSE:{hasSE:!0,iniValue:!1},capsMaskMarker_plugSE:{hasSE:!0,iniValue:T},capsMaskMarker_markerWidthSE:{hasSE:!0},capsMaskMarker_markerHeightSE:{hasSE:!0},caps_enabled:{iniValue:!1},attach_plugSideLenSE:{hasSE:!0},attach_plugBackLenSE:{hasSE:!0}},ve={show_on:{},show_effect:{},show_animOptions:{},show_animId:{},show_inAnim:{}},ye=`fade`,be=[],xe={},Se=0,Ce={},V=0;function we(e,t){var n,r;return(e===void 0?`undefined`:hn(e))!=(t===void 0?`undefined`:hn(t))||(n=me(e)?`obj`:Array.isArray(e)?`array`:``)!=(me(t)?`obj`:Array.isArray(t)?`array`:``)||(n===`obj`?we(r=Object.keys(e).sort(),Object.keys(t).sort())||r.some(function(n){return we(e[n],t[n])}):n===`array`?e.length!==t.length||e.some(function(e,n){return we(e,t[n])}):e!==t)}function Te(e){return e&&(me(e)?Object.keys(e).reduce(function(t,n){return t[n]=Te(e[n]),t},{}):Array.isArray(e)?e.map(Te):e)}function Ee(e){var t,n,r,i=1,a=e=(e+``).trim();function o(e){var t=1,n=se.exec(e);return n&&(t=parseFloat(n[1]),n[2]?t=0<=t&&t<=100?t/100:1:(t<0||1<t)&&(t=1)),t}return(t=/^(rgba|hsla|hwb|gray|device\-cmyk)\s*\(([\s\S]+)\)$/i.exec(e))?(n=t[1].toLowerCase(),r=t[2].trim().split(/\s*,\s*/),n===`rgba`&&r.length===4?(i=o(r[3]),a=`rgb(`+r.slice(0,3).join(`, `)+`)`):n===`hsla`&&r.length===4?(i=o(r[3]),a=`hsl(`+r.slice(0,3).join(`, `)+`)`):n===`hwb`&&r.length===4?(i=o(r[3]),a=`hwb(`+r.slice(0,3).join(`, `)+`)`):n===`gray`&&r.length===2?(i=o(r[1]),a=`gray(`+r[0]+`)`):n===`device-cmyk`&&5<=r.length&&(i=o(r[4]),a=`device-cmyk(`+r.slice(0,4).join(`, `)+`)`)):(t=/^\#(?:([\da-f]{6})([\da-f]{2})|([\da-f]{3})([\da-f]))$/i.exec(e))?t[1]?(i=parseInt(t[2],16)/255,a=`#`+t[1]):(i=parseInt(t[4]+t[4],16)/255,a=`#`+t[3]):e.toLocaleLowerCase()===`transparent`&&(i=0),[i,a]}function De(e){return!(!e||e.nodeType!==Node.ELEMENT_NODE||typeof e.getBoundingClientRect!=`function`)}function Oe(e,t){var n,r,i,a,o={};if(!(i=e.ownerDocument))return console.error(`Cannot get document that contains the element.`),null;if(e.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_DISCONNECTED)return console.error(`A disconnected element was passed.`),null;for(r in n=e.getBoundingClientRect())o[r]=n[r];if(!t){if(!(a=i.defaultView))return console.error(`Cannot get window that contains the element.`),null;o.left+=a.pageXOffset,o.right+=a.pageXOffset,o.top+=a.pageYOffset,o.bottom+=a.pageYOffset}return o}function ke(e,t){var n,r,i=[],a=e;for(t=t||window;;){if(!(n=a.ownerDocument))return console.error(`Cannot get document that contains the element.`),null;if(!(r=n.defaultView))return console.error(`Cannot get window that contains the element.`),null;if(r===t)break;if(!(a=r.frameElement))return console.error("`baseWindow` was not found."),null;i.unshift(a)}return i}function Ae(e,t){var n,r,i=0,a=0;return(r=ke(e,t=t||window))?r.length?(r.forEach(function(e,t){var n,r,o=Oe(e,0<t);i+=o.left,a+=o.top,r=(n=e).ownerDocument.defaultView.getComputedStyle(n,``),o={left:n.clientLeft+parseFloat(r.paddingLeft),top:n.clientTop+parseFloat(r.paddingTop)},i+=o.left,a+=o.top}),(n=Oe(e,!0)).left+=i,n.right+=i,n.top+=a,n.bottom+=a,n):Oe(e):null}function je(e,t){var n=e.x-t.x,r=e.y-t.y;return Math.sqrt(n*n+r*r)}function Me(e,t,n){var r=t.x-e.x,i=t.y-e.y;return{x:e.x+r*n,y:e.y+i*n,angle:Math.atan2(i,r)/(Math.PI/180)}}function Ne(e,t,n){var r=Math.atan2(e.y-t.y,t.x-e.x);return{x:t.x+Math.cos(r)*n,y:t.y+Math.sin(r)*n*-1}}function Pe(e,t,n,r,i){var a=i*i,o=a*i,s=1-i,c=s*s,l=c*s,u=l*e.x+3*c*i*t.x+3*s*a*n.x+o*r.x,d=l*e.y+3*c*i*t.y+3*s*a*n.y+o*r.y,f=e.x+2*i*(t.x-e.x)+a*(n.x-2*t.x+e.x),p=e.y+2*i*(t.y-e.y)+a*(n.y-2*t.y+e.y),m=t.x+2*i*(n.x-t.x)+a*(r.x-2*n.x+t.x),h=t.y+2*i*(n.y-t.y)+a*(r.y-2*n.y+t.y),g=s*e.x+i*t.x,_=s*e.y+i*t.y,v=s*n.x+i*r.x,y=s*n.y+i*r.y,b=90-180*Math.atan2(f-m,p-h)/Math.PI;return{x:u,y:d,fromP2:{x:f,y:p},toP1:{x:m,y:h},fromP1:{x:g,y:_},toP2:{x:v,y},angle:b+=180<b?-180:180}}function Fe(e,t,n,r,i){function a(e,t,n,r,i){return e*(e*(-3*t+9*n-9*r+3*i)+6*t-12*n+6*r)-3*t+3*n}var o,s,c,l,u,d=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],f=0;return o=(i=i==null||1<i?1:i<0?0:i)/2,[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816].forEach(function(i,p){c=a(s=o*i+o,e.x,t.x,n.x,r.x),l=a(s,e.y,t.y,n.y,r.y),u=c*c+l*l,f+=d[p]*Math.sqrt(u)}),o*f}function Ie(e,t,n,r,i){for(var a,o=.5,s=1-o;a=Fe(e,t,n,r,s),!(Math.abs(a-i)<=.01);)s+=(a<i?1:-1)*(o/=2);return s}function Le(e,t){var n;return e.forEach(function(e){var r=t?e.map(function(e){var n={x:e.x,y:e.y};return t(n),n}):e;n||(n=[{type:`M`,values:[r[0].x,r[0].y]}]),n.push(r.length?r.length===2?{type:`L`,values:[r[1].x,r[1].y]}:{type:`C`,values:[r[1].x,r[1].y,r[2].x,r[2].y,r[3].x,r[3].y]}:{type:`Z`,values:[]})}),n}function Re(e){var t=[],n=0;return e.forEach(function(e){var r=(e.length===2?je:Fe).apply(null,e);t.push(r),n+=r}),{segsLen:t,lenAll:n}}function H(e,t){return e==null||t==null||e.length!==t.length||e.some(function(e,n){var r=t[n];return e.type!==r.type||e.values.some(function(e,t){return e!==r.values[t]})})}function U(e,t,n){e.events[t]?e.events[t].indexOf(n)<0&&e.events[t].push(n):e.events[t]=[n]}function ze(e,t,n){var r;e.events[t]&&-1<(r=e.events[t].indexOf(n))&&e.events[t].splice(r,1)}function Be(e){o&&clearTimeout(o),be.push(e),o=setTimeout(function(){be.forEach(function(e){e()}),be=[]},0)}function W(e,t){e.reflowTargets.indexOf(t)<0&&e.reflowTargets.push(t)}function Ve(e){e.reflowTargets.forEach(function(e){var t=e;setTimeout(function(){var e=t.parentNode,n=t.nextSibling;e.insertBefore(e.removeChild(t),n)},0)}),e.reflowTargets=[]}function G(e,t,n,r,i,a,o){var c,l,u;n===`auto-start-reverse`?(typeof s!=`boolean`&&(t.setAttribute(`orient`,`auto-start-reverse`),s=t.orientType.baseVal===SVGMarkerElement.SVG_MARKER_ORIENT_UNKNOWN),s?t.setAttribute(`orient`,n):((c=i.createSVGTransform()).setRotate(180,0,0),a.transform.baseVal.appendItem(c),t.setAttribute(`orient`,`auto`),u=!0)):(t.setAttribute(`orient`,n),!1===s&&a.transform.baseVal.clear()),l=t.viewBox.baseVal,u?(l.x=-r.right,l.y=-r.bottom):(l.x=r.left,l.y=r.top),l.width=r.width,l.height=r.height,ce&&W(e,o)}function He(e,t){return{prop:e?`markerEnd`:`markerStart`,orient:t?t.noRotate?`0`:e?`auto`:`auto-start-reverse`:null}}function Ue(e,t){Object.keys(t).forEach(function(n){var r=t[n];e[n]=r.iniValue==null?r.hasSE?r.hasProps?[{},{}]:[]:r.hasProps?{}:null:r.hasSE?[r.iniValue,r.iniValue]:r.iniValue})}function K(e,t,n,r,i){return r!==t[n]&&(t[n]=r,i&&i.forEach(function(t){t(e,r,n)}),!0)}function We(e){function t(e,t){return e+parseFloat(t)}var n=e.document,r=e.getComputedStyle(n.documentElement,``),i=e.getComputedStyle(n.body,``),a={x:0,y:0};return i.position===`static`?r.position!==`static`&&(a.x-=[r.marginLeft,r.borderLeftWidth].reduce(t,0),a.y-=[r.marginTop,r.borderTopWidth].reduce(t,0)):(a.x-=[r.marginLeft,r.borderLeftWidth,r.paddingLeft,i.marginLeft,i.borderLeftWidth].reduce(t,0),a.y-=[r.marginTop,r.borderTopWidth,r.paddingTop,i.marginTop,i.borderTopWidth].reduce(t,0)),a}function Ge(e){var t,n=e.document;n.getElementById(E)||(t=new e.DOMParser().parseFromString(D,`image/svg+xml`),n.body.appendChild(t.documentElement),z(e))}function Ke(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,v,w,T,E,D,O,k=e.options,A=e.curStats,M=e.aplStats,N=A.position_socketXYSE,se=!1;function L(e,t){var n=t===m?{x:e.left+e.width/2,y:e.top}:t===h?{x:e.right,y:e.top+e.height/2}:t===g?{x:e.left+e.width/2,y:e.bottom}:{x:e.left,y:e.top+e.height/2};return n.socketId=t,n}function R(e){return{x:e.x,y:e.y}}if(A.position_path=k.path,A.position_lineStrokeWidth=A.line_strokeWidth,A.position_socketGravitySE=t=Te(k.socketGravitySE),n=[0,1].map(function(t){var n,r,i,a=k.anchorSE[t],o=e.optionIsAttach.anchorSE[t],s=!1===o?null:Ce[a._id],c=!1!==o&&s.conf.getStrokeWidth?s.conf.getStrokeWidth(s,e):0,l=!1!==o&&s.conf.getBBoxNest?s.conf.getBBoxNest(s,e,c):Ae(a,e.baseWindow);return A.capsMaskAnchor_pathDataSE[t]=!1!==o&&s.conf.getPathData?s.conf.getPathData(s,e,c):(r=(n=l).right==null?n.left+n.width:n.right,i=n.bottom==null?n.top+n.height:n.bottom,[{type:`M`,values:[n.left,n.top]},{type:`L`,values:[r,n.top]},{type:`L`,values:[r,i]},{type:`L`,values:[n.left,i]},{type:`Z`,values:[]}]),A.capsMaskAnchor_strokeWidthSE[t]=c,l}),s=-1,k.socketSE[0]&&k.socketSE[1]?(N[0]=L(n[0],k.socketSE[0]),N[1]=L(n[1],k.socketSE[1])):(k.socketSE[0]||k.socketSE[1]?(k.socketSE[0]?(a=0,o=1):(a=1,o=0),N[a]=L(n[a],k.socketSE[a]),(i=j.map(function(e){return L(n[o],e)})).forEach(function(e){var t=je(e,N[a]);(t<s||s===-1)&&(N[o]=e,s=t)})):(i=j.map(function(e){return L(n[1],e)}),j.map(function(e){return L(n[0],e)}).forEach(function(e){i.forEach(function(t){var n=je(e,t);(n<s||s===-1)&&(N[0]=e,N[1]=t,s=n)})})),[0,1].forEach(function(e){var t,r;k.socketSE[e]||(n[e].width||n[e].height?n[e].width||N[e].socketId!==_&&N[e].socketId!==h?n[e].height||N[e].socketId!==m&&N[e].socketId!==g||(N[e].socketId=0<=N[+!e].y-n[e].top?g:m):N[e].socketId=0<=N[+!e].x-n[e].left?h:_:(t=N[+!e].x-n[e].left,r=N[+!e].y-n[e].top,N[e].socketId=Math.abs(t)>=Math.abs(r)?0<=t?h:_:0<=r?g:m))})),A.position_path!==M.position_path||A.position_lineStrokeWidth!==M.position_lineStrokeWidth||[0,1].some(function(e){return A.position_plugOverheadSE[e]!==M.position_plugOverheadSE[e]||(a=N[e],o=M.position_socketXYSE[e],a.x!==o.x||a.y!==o.y||a.socketId!==o.socketId)||(n=t[e],r=M.position_socketGravitySE[e],(i=n==null?`auto`:Array.isArray(n)?`array`:`number`)!=(r==null?`auto`:Array.isArray(r)?`array`:`number`)||(i===`array`?n[0]!==r[0]||n[1]!==r[1]:n!==r));var n,r,i,a,o})){switch(e.pathList.baseVal=r=[],e.pathList.animVal=null,A.position_path){case y:r.push([R(N[0]),R(N[1])]);break;case b:f=typeof t[0]==`number`&&0<t[0]||typeof t[1]==`number`&&0<t[1],p=oe*(f?-1:1),v=Math.atan2(N[1].y-N[0].y,N[1].x-N[0].x),w=-v+p,T=Math.PI-v-p,E=je(N[0],N[1])/Math.sqrt(2)*ae,D={x:N[0].x+Math.cos(w)*E,y:N[0].y+Math.sin(w)*E*-1},O={x:N[1].x+Math.cos(T)*E,y:N[1].y+Math.sin(T)*E*-1},r.push([R(N[0]),D,O,R(N[1])]);break;case x:case S:l=[t[0],A.position_path===S?0:t[1]],u=[],d=[],N.forEach(function(e,t){var n,r,i,a,o,s=l[t];Array.isArray(s)?n={x:s[0],y:s[1]}:typeof s==`number`?n=e.socketId===m?{x:0,y:-s}:e.socketId===h?{x:s,y:0}:e.socketId===g?{x:0,y:s}:{x:-s,y:0}:(r=N[+!t],a=0<(i=A.position_plugOverheadSE[t])?F+(ne<i?(i-ne)*re:0):P+(A.position_lineStrokeWidth>ee?(A.position_lineStrokeWidth-ee)*te:0),e.socketId===m?((o=(e.y-r.y)/2)<a&&(o=a),n={x:0,y:-o}):e.socketId===h?((o=(r.x-e.x)/2)<a&&(o=a),n={x:o,y:0}):e.socketId===g?((o=(r.y-e.y)/2)<a&&(o=a),n={x:0,y:o}):((o=(e.x-r.x)/2)<a&&(o=a),n={x:-o,y:0})),u[t]=e.x+n.x,d[t]=e.y+n.y}),r.push([R(N[0]),{x:u[0],y:d[0]},{x:u[1],y:d[1]},R(N[1])]);break;case C:(function(){var e,n=[[],[]],i=[];function a(e){return e===1?3:e===2?4:e===3?1:2}function o(e){return e===2||e===4?`x`:`y`}function s(e,t,n){var r={x:e.x,y:e.y};if(n){if(n===a(e.dirId))throw Error(`Invalid dirId: `+n);r.dirId=n}else r.dirId=e.dirId;return r.dirId===1?r.y-=t:r.dirId===2?r.x+=t:r.dirId===3?r.y+=t:r.x-=t,r}function c(e,t){return t.dirId===1?e.y<=t.y:t.dirId===2?e.x>=t.x:t.dirId===3?e.y>=t.y:e.x<=t.x}function l(e,t){return t.dirId===1||t.dirId===3?e.x===t.x:e.y===t.y}function u(e){return e[0]?{contain:0,notContain:1}:{contain:1,notContain:0}}function d(e,t,n){return Math.abs(t[n]-e[n])}function f(e,t,n){return n===`x`?e.x<t.x?2:4:e.y<t.y?3:1}function p(){var e,t,r,a,p=[c(i[1],i[0]),c(i[0],i[1])],m=[o(i[0].dirId),o(i[1].dirId)];if(m[0]===m[1]){if(p[0]&&p[1])return l(i[1],i[0])||(i[0][m[0]]===i[1][m[1]]?(n[0].push(i[0]),n[1].push(i[1])):(e=i[0][m[0]]+(i[1][m[1]]-i[0][m[0]])/2,n[0].push(s(i[0],Math.abs(e-i[0][m[0]]))),n[1].push(s(i[1],Math.abs(e-i[1][m[1]]))))),!1;p[0]===p[1]?(r=d(i[0],i[1],m[0]===`x`?`y`:`x`),n.forEach(function(e,t){var n=+(t===0);e.push(i[t]),i[t]=s(i[t],I,2*I<=r?f(i[t],i[n],m[t]===`x`?`y`:`x`):m[t]===`x`?3:2)})):(t=u(p),(r=d(i[t.notContain],i[t.contain],m[t.notContain]))<I&&(i[t.notContain]=s(i[t.notContain],I-r)),n[t.notContain].push(i[t.notContain]),i[t.notContain]=s(i[t.notContain],I,l(i[t.contain],i[t.notContain])?m[t.notContain]===`x`?3:2:f(i[t.notContain],i[t.contain],m[t.notContain]===`x`?`y`:`x`)))}else{if(p[0]&&p[1])return l(i[1],i[0])?n[1].push(i[1]):l(i[0],i[1])?n[0].push(i[0]):n[0].push(m[0]===`x`?{x:i[1].x,y:i[0].y}:{x:i[0].x,y:i[1].y}),!1;p[0]===p[1]?(a=[{x:i[0].x,y:i[0].y},{x:i[1].x,y:i[1].y}],n.forEach(function(e,t){var n=+(t===0),r=d(a[t],a[n],m[t]);r<I&&(i[t]=s(i[t],I-r)),e.push(i[t]),i[t]=s(i[t],I,f(i[t],i[n],m[n]))})):(t=u(p),n[t.notContain].push(i[t.notContain]),i[t.notContain]=s(i[t.notContain],I,d(i[t.notContain],i[t.contain],m[t.contain])>=I?f(i[t.notContain],i[t.contain],m[t.contain]):i[t.contain].dirId))}return!0}for(N.forEach(function(e,r){var o,c=R(e),l=t[r];o=Array.isArray(l)?l[0]<0?[4,-l[0]]:0<l[0]?[2,l[0]]:l[1]<0?[1,-l[1]]:0<l[1]?[3,l[1]]:[e.socketId,0]:typeof l==`number`?0<=l?[e.socketId,l]:[a(e.socketId),-l]:[e.socketId,I],c.dirId=o[0],l=o[1],n[r].push(c),i[r]=s(c,l)});p(););n[1].reverse(),n[0].concat(n[1]).forEach(function(t,n){var i={x:t.x,y:t.y};0<n&&r.push([e,i]),e=i})})()}c=[],A.position_plugOverheadSE.forEach(function(e,t){var i,a,o,s,l,u,d,f,p,g,v,y=!t;0<e?(i=r[a=y?0:r.length-1]).length===2?(c[a]=c[a]||je.apply(null,i),c[a]>ie&&(c[a]-e<ie&&(e=c[a]-ie),o=Me(i[0],i[1],(y?e:c[a]-e)/c[a]),r[a]=y?[o,i[1]]:[i[0],o],c[a]-=e)):(c[a]=c[a]||Fe.apply(null,i),c[a]>ie&&(c[a]-e<ie&&(e=c[a]-ie),o=Pe(i[0],i[1],i[2],i[3],Ie(i[0],i[1],i[2],i[3],y?e:c[a]-e)),y?(s=i[0],l=o.toP1):(s=i[3],l=o.fromP2),u=Math.atan2(s.y-o.y,o.x-s.x),d=je(o,l),o.x=s.x+Math.cos(u)*e,o.y=s.y+Math.sin(u)*e*-1,l.x=o.x+Math.cos(u)*d,l.y=o.y+Math.sin(u)*d*-1,r[a]=y?[o,o.toP1,o.toP2,i[3]]:[i[0],o.fromP1,o.fromP2,o],c[a]=null)):e<0&&(i=r[a=y?0:r.length-1],f=N[t].socketId,p=f===_||f===h?`x`:`y`,e<(v=-n[t][p===`x`?`width`:`height`])&&(e=v),g=e*(f===_||f===m?-1:1),i.length===2?i[y?0:i.length-1][p]+=g:(y?[0,1]:[i.length-2,i.length-1]).forEach(function(e){i[e][p]+=g}),c[a]=null)}),M.position_socketXYSE=Te(N),M.position_plugOverheadSE=Te(A.position_plugOverheadSE),M.position_path=A.position_path,M.position_lineStrokeWidth=A.position_lineStrokeWidth,M.position_socketGravitySE=Te(t),se=!0,e.events.apl_position&&e.events.apl_position.forEach(function(t){t(e,r)})}return se}function qe(e,t){t!==e.isShown&&(!!t!=!!e.isShown&&(e.svg.style.visibility=t?``:`hidden`),e.isShown=t,e.events&&e.events.svgShow&&e.events.svgShow.forEach(function(n){n(e,t)}))}function Je(t,n){var r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,E,D,k,j,M,P,ee,te,F,ne,re,ie,I,ae,oe,se,L,R,me,he,ge,z,_e,B,ve,ye,be,xe,Se,Ce,V={};n.line&&(V.line=(i=(r=t).options,a=r.curStats,o=r.events,s=!1,s=K(r,a,`line_color`,i.lineColor,o.cur_line_color)||s,s=K(r,a,`line_colorTra`,Ee(a.line_color)[0]<1)||s,s=K(r,a,`line_strokeWidth`,i.lineSize,o.cur_line_strokeWidth)||s)),(n.plug||V.line)&&(V.plug=(l=(c=t).options,u=c.curStats,d=c.events,f=!1,[0,1].forEach(function(e){var t,n,r,i,a,o,s,p,m=l.plugSE[e];f=K(c,u.plug_enabledSE,e,m!==T)||f,f=K(c,u.plug_plugSE,e,m)||f,f=K(c,u.plug_colorSE,e,p=l.plugColorSE[e]||u.line_color,d.cur_plug_colorSE)||f,f=K(c,u.plug_colorTraSE,e,Ee(p)[0]<1)||f,m!==T&&(i=n=(t=O[A[m]]).widthR*l.plugSizeSE[e],a=r=t.heightR*l.plugSizeSE[e],de&&(i*=u.line_strokeWidth,a*=u.line_strokeWidth),f=K(c,u.plug_markerWidthSE,e,i)||f,f=K(c,u.plug_markerHeightSE,e,a)||f,u.capsMaskMarker_markerWidthSE[e]=n,u.capsMaskMarker_markerHeightSE[e]=r),u.plugOutline_plugSE[e]=u.capsMaskMarker_plugSE[e]=m,u.plug_enabledSE[e]?(p=u.line_strokeWidth/pe.lineSize*l.plugSizeSE[e],u.position_plugOverheadSE[e]=t.overhead*p,u.viewBox_plugBCircleSE[e]=t.bCircle*p,o=t.sideLen*p,s=t.backLen*p):(u.position_plugOverheadSE[e]=-u.line_strokeWidth/2,u.viewBox_plugBCircleSE[e]=o=s=0),K(c,u.attach_plugSideLenSE,e,o,d.cur_attach_plugSideLenSE),K(c,u.attach_plugBackLenSE,e,s,d.cur_attach_plugBackLenSE),u.capsMaskAnchor_enabledSE[e]=!u.plug_enabledSE[e]}),f=K(c,u,`plug_enabled`,u.plug_enabledSE[0]||u.plug_enabledSE[1])||f)),(n.lineOutline||V.line)&&(V.lineOutline=(h=(p=t).options,g=p.curStats,_=!1,_=K(p,g,`lineOutline_enabled`,h.lineOutlineEnabled)||_,_=K(p,g,`lineOutline_color`,h.lineOutlineColor)||_,_=K(p,g,`lineOutline_colorTra`,Ee(g.lineOutline_color)[0]<1)||_,m=g.line_strokeWidth*h.lineOutlineSize,_=K(p,g,`lineOutline_strokeWidth`,g.line_strokeWidth-2*m)||_,_=K(p,g,`lineOutline_inStrokeWidth`,g.lineOutline_colorTra?g.lineOutline_strokeWidth+2*fe:g.line_strokeWidth-m)||_)),(n.plugOutline||V.line||V.plug||V.lineOutline)&&(V.plugOutline=(y=(v=t).options,b=v.curStats,x=!1,[0,1].forEach(function(e){var t,n=b.plugOutline_plugSE[e],r=n===T?null:O[A[n]];x=K(v,b.plugOutline_enabledSE,e,y.plugOutlineEnabledSE[e]&&b.plug_enabled&&b.plug_enabledSE[e]&&!!r&&!!r.outlineBase)||x,x=K(v,b.plugOutline_colorSE,e,t=y.plugOutlineColorSE[e]||b.lineOutline_color)||x,x=K(v,b.plugOutline_colorTraSE,e,Ee(t)[0]<1)||x,r&&r.outlineBase&&((t=y.plugOutlineSizeSE[e])>r.outlineMax&&(t=r.outlineMax),t*=2*r.outlineBase,x=K(v,b.plugOutline_strokeWidthSE,e,t)||x,x=K(v,b.plugOutline_inStrokeWidthSE,e,b.plugOutline_colorTraSE[e]?t-fe/(b.line_strokeWidth/pe.lineSize)/y.plugSizeSE[e]*2:t/2)||x)}),x)),(n.faces||V.line||V.plug||V.lineOutline||V.plugOutline)&&(V.faces=(w=(S=t).curStats,E=S.aplStats,D=S.events,k=!1,!w.line_altColor&&K(S,E,`line_color`,C=w.line_color,D.apl_line_color)&&(S.lineFace.style.stroke=C,k=!0),K(S,E,`line_strokeWidth`,C=w.line_strokeWidth,D.apl_line_strokeWidth)&&(S.lineShape.style.strokeWidth=C+`px`,k=!0,(le||ce)&&(W(S,S.lineShape),ce&&(W(S,S.lineFace),W(S,S.lineMaskCaps)))),K(S,E,`lineOutline_enabled`,C=w.lineOutline_enabled,D.apl_lineOutline_enabled)&&(S.lineOutlineFace.style.display=C?`inline`:`none`,k=!0),w.lineOutline_enabled&&(K(S,E,`lineOutline_color`,C=w.lineOutline_color,D.apl_lineOutline_color)&&(S.lineOutlineFace.style.stroke=C,k=!0),K(S,E,`lineOutline_strokeWidth`,C=w.lineOutline_strokeWidth,D.apl_lineOutline_strokeWidth)&&(S.lineOutlineMaskShape.style.strokeWidth=C+`px`,k=!0,ce&&(W(S,S.lineOutlineMaskCaps),W(S,S.lineOutlineFace))),K(S,E,`lineOutline_inStrokeWidth`,C=w.lineOutline_inStrokeWidth,D.apl_lineOutline_inStrokeWidth)&&(S.lineMaskShape.style.strokeWidth=C+`px`,k=!0,ce&&(W(S,S.lineOutlineMaskCaps),W(S,S.lineOutlineFace)))),K(S,E,`plug_enabled`,C=w.plug_enabled,D.apl_plug_enabled)&&(S.plugsFace.style.display=C?`inline`:`none`,k=!0),w.plug_enabled&&[0,1].forEach(function(e){var t=w.plug_plugSE[e],n=t===T?null:O[A[t]],r=He(e,n);K(S,E.plug_enabledSE,e,C=w.plug_enabledSE[e],D.apl_plug_enabledSE)&&(S.plugsFace.style[r.prop]=C?`url(#`+S.plugMarkerIdSE[e]+`)`:`none`,k=!0),w.plug_enabledSE[e]&&(K(S,E.plug_plugSE,e,t,D.apl_plug_plugSE)&&(S.plugFaceSE[e].href.baseVal=`#`+n.elmId,G(S,S.plugMarkerSE[e],r.orient,n.bBox,S.svg,S.plugMarkerShapeSE[e],S.plugsFace),k=!0,le&&W(S,S.plugsFace)),K(S,E.plug_colorSE,e,C=w.plug_colorSE[e],D.apl_plug_colorSE)&&(S.plugFaceSE[e].style.fill=C,k=!0,(ue||de||ce)&&!w.line_colorTra&&W(S,ce?S.lineMaskCaps:S.capsMaskLine)),[`markerWidth`,`markerHeight`].forEach(function(t){var n=`plug_`+t+`SE`;K(S,E[n],e,C=w[n][e],D[`apl_`+n])&&(S.plugMarkerSE[e][t].baseVal.value=C,k=!0)}),K(S,E.plugOutline_enabledSE,e,C=w.plugOutline_enabledSE[e],D.apl_plugOutline_enabledSE)&&(C?(S.plugFaceSE[e].style.mask=`url(#`+S.plugMaskIdSE[e]+`)`,S.plugOutlineFaceSE[e].style.display=`inline`):(S.plugFaceSE[e].style.mask=`none`,S.plugOutlineFaceSE[e].style.display=`none`),k=!0),w.plugOutline_enabledSE[e]&&(K(S,E.plugOutline_plugSE,e,t,D.apl_plugOutline_plugSE)&&(S.plugOutlineFaceSE[e].href.baseVal=S.plugMaskShapeSE[e].href.baseVal=S.plugOutlineMaskShapeSE[e].href.baseVal=`#`+n.elmId,[S.plugMaskSE[e],S.plugOutlineMaskSE[e]].forEach(function(e){e.x.baseVal.value=n.bBox.left,e.y.baseVal.value=n.bBox.top,e.width.baseVal.value=n.bBox.width,e.height.baseVal.value=n.bBox.height}),k=!0),K(S,E.plugOutline_colorSE,e,C=w.plugOutline_colorSE[e],D.apl_plugOutline_colorSE)&&(S.plugOutlineFaceSE[e].style.fill=C,k=!0,ce&&(W(S,S.lineMaskCaps),W(S,S.lineOutlineMaskCaps))),K(S,E.plugOutline_strokeWidthSE,e,C=w.plugOutline_strokeWidthSE[e],D.apl_plugOutline_strokeWidthSE)&&(S.plugOutlineMaskShapeSE[e].style.strokeWidth=C+`px`,k=!0),K(S,E.plugOutline_inStrokeWidthSE,e,C=w.plugOutline_inStrokeWidthSE[e],D.apl_plugOutline_inStrokeWidthSE)&&(S.plugMaskShapeSE[e].style.strokeWidth=C+`px`,k=!0)))}),k)),(n.position||V.line||V.plug)&&(V.position=Ke(t)),(n.path||V.position)&&(V.path=(P=(j=t).curStats,ee=j.aplStats,te=j.pathList.animVal||j.pathList.baseVal,F=P.path_edge,ne=!1,te&&(F.x1=F.x2=te[0][0].x,F.y1=F.y2=te[0][0].y,P.path_pathData=M=Le(te,function(e){e.x<F.x1&&(F.x1=e.x),e.y<F.y1&&(F.y1=e.y),e.x>F.x2&&(F.x2=e.x),e.y>F.y2&&(F.y2=e.y)}),H(M,ee.path_pathData)&&(j.linePath.setPathData(M),ee.path_pathData=M,ne=!0,ce?(W(j,j.plugsFace),W(j,j.lineMaskCaps)):le&&W(j,j.linePath),j.events.apl_path&&j.events.apl_path.forEach(function(e){e(j,M)}))),ne)),V.viewBox=(ae=(re=t).curStats,oe=re.aplStats,se=ae.path_edge,L=ae.viewBox_bBox,R=oe.viewBox_bBox,me=re.svg.viewBox.baseVal,he=re.svg.style,ge=!1,ie=Math.max(ae.line_strokeWidth/2,ae.viewBox_plugBCircleSE[0]||0,ae.viewBox_plugBCircleSE[1]||0),I={x1:se.x1-ie,y1:se.y1-ie,x2:se.x2+ie,y2:se.y2+ie},re.events.new_edge4viewBox&&re.events.new_edge4viewBox.forEach(function(e){e(re,I)}),L.x=ae.lineMask_x=ae.lineOutlineMask_x=ae.maskBGRect_x=I.x1,L.y=ae.lineMask_y=ae.lineOutlineMask_y=ae.maskBGRect_y=I.y1,L.width=I.x2-I.x1,L.height=I.y2-I.y1,[`x`,`y`,`width`,`height`].forEach(function(e){var t;(t=L[e])!==R[e]&&(me[e]=R[e]=t,he[N[e]]=t+(e===`x`||e===`y`?re.bodyOffset[e]:0)+`px`,ge=!0)}),ge),V.mask=(B=(z=t).curStats,ve=z.aplStats,ye=!1,B.plug_enabled?[0,1].forEach(function(e){B.capsMaskMarker_enabledSE[e]=B.plug_enabledSE[e]&&B.plug_colorTraSE[e]||B.plugOutline_enabledSE[e]&&B.plugOutline_colorTraSE[e]}):B.capsMaskMarker_enabledSE[0]=B.capsMaskMarker_enabledSE[1]=!1,B.capsMaskMarker_enabled=B.capsMaskMarker_enabledSE[0]||B.capsMaskMarker_enabledSE[1],B.lineMask_outlineMode=B.lineOutline_enabled,B.caps_enabled=B.capsMaskMarker_enabled||B.capsMaskAnchor_enabledSE[0]||B.capsMaskAnchor_enabledSE[1],B.lineMask_enabled=B.caps_enabled||B.lineMask_outlineMode,(B.lineMask_enabled&&!B.lineMask_outlineMode||B.lineOutline_enabled)&&[`x`,`y`].forEach(function(e){var t=`maskBGRect_`+e;K(z,ve,t,_e=B[t])&&(z.maskBGRect[e].baseVal.value=_e,ye=!0)}),K(z,ve,`lineMask_enabled`,_e=B.lineMask_enabled)&&(z.lineFace.style.mask=_e?`url(#`+z.lineMaskId+`)`:`none`,ye=!0,de&&W(z,z.lineMask)),B.lineMask_enabled&&(K(z,ve,`lineMask_outlineMode`,_e=B.lineMask_outlineMode)&&(_e?(z.lineMaskBG.style.display=`none`,z.lineMaskShape.style.display=`inline`):(z.lineMaskBG.style.display=`inline`,z.lineMaskShape.style.display=`none`),ye=!0),[`x`,`y`].forEach(function(e){var t=`lineMask_`+e;K(z,ve,t,_e=B[t])&&(z.lineMask[e].baseVal.value=_e,ye=!0)}),K(z,ve,`caps_enabled`,_e=B.caps_enabled)&&(z.lineMaskCaps.style.display=z.lineOutlineMaskCaps.style.display=_e?`inline`:`none`,ye=!0,de&&W(z,z.capsMaskLine)),B.caps_enabled&&([0,1].forEach(function(e){var t;K(z,ve.capsMaskAnchor_enabledSE,e,_e=B.capsMaskAnchor_enabledSE[e])&&(z.capsMaskAnchorSE[e].style.display=_e?`inline`:`none`,ye=!0,de&&W(z,z.lineMask)),B.capsMaskAnchor_enabledSE[e]&&(H(t=B.capsMaskAnchor_pathDataSE[e],ve.capsMaskAnchor_pathDataSE[e])&&(z.capsMaskAnchorSE[e].setPathData(t),ve.capsMaskAnchor_pathDataSE[e]=t,ye=!0),K(z,ve.capsMaskAnchor_strokeWidthSE,e,_e=B.capsMaskAnchor_strokeWidthSE[e])&&(z.capsMaskAnchorSE[e].style.strokeWidth=_e+`px`,ye=!0))}),K(z,ve,`capsMaskMarker_enabled`,_e=B.capsMaskMarker_enabled)&&(z.capsMaskLine.style.display=_e?`inline`:`none`,ye=!0),B.capsMaskMarker_enabled&&[0,1].forEach(function(e){var t=B.capsMaskMarker_plugSE[e],n=t===T?null:O[A[t]],r=He(e,n);K(z,ve.capsMaskMarker_enabledSE,e,_e=B.capsMaskMarker_enabledSE[e])&&(z.capsMaskLine.style[r.prop]=_e?`url(#`+z.lineMaskMarkerIdSE[e]+`)`:`none`,ye=!0),B.capsMaskMarker_enabledSE[e]&&(K(z,ve.capsMaskMarker_plugSE,e,t)&&(z.capsMaskMarkerShapeSE[e].href.baseVal=`#`+n.elmId,G(z,z.capsMaskMarkerSE[e],r.orient,n.bBox,z.svg,z.capsMaskMarkerShapeSE[e],z.capsMaskLine),ye=!0,le&&(W(z,z.capsMaskLine),W(z,z.lineFace))),[`markerWidth`,`markerHeight`].forEach(function(t){var n=`capsMaskMarker_`+t+`SE`;K(z,ve[n],e,_e=B[n][e])&&(z.capsMaskMarkerSE[e][t].baseVal.value=_e,ye=!0)}))}))),B.lineOutline_enabled&&[`x`,`y`].forEach(function(e){var t=`lineOutlineMask_`+e;K(z,ve,t,_e=B[t])&&(z.lineOutlineMask[e].baseVal.value=_e,ye=!0)}),ye),n.effect&&(Se=(be=t).curStats,Ce=be.aplStats,Object.keys(e).forEach(function(t){var n=e[t],r=t+`_enabled`,i=t+`_options`,a=Se[i];K(be,Ce,r,xe=Se[r])?(xe&&(Ce[i]=Te(a)),n[xe?`init`:`remove`](be)):xe&&we(a,Ce[i])&&(n.remove(be),Ce[r]=!0,Ce[i]=Te(a),n.init(be))})),(ue||de)&&V.line&&!V.path&&W(t,t.lineShape),ue&&V.plug&&!V.line&&W(t,t.plugsFace),Ve(t)}function Ye(e,t){return{duration:he(e.duration)&&0<e.duration?e.duration:t.duration,timing:ge.validTiming(e.timing)?e.timing:Te(t.timing)}}function Xe(e,n,r,i){var a,o=e.curStats,s=e.aplStats,c={};function l(){[`show_on`,`show_effect`,`show_animOptions`].forEach(function(e){s[e]=o[e]})}o.show_on=n,r&&t[r]&&(o.show_effect=r,o.show_animOptions=Ye(me(i)?i:{},t[r].defaultAnimOptions)),c.show_on=o.show_on!==s.show_on,c.show_effect=o.show_effect!==s.show_effect,c.show_animOptions=we(o.show_animOptions,s.show_animOptions),c.show_effect||c.show_animOptions?o.show_inAnim?(a=c.show_effect?t[s.show_effect].stop(e,!0,!0):t[s.show_effect].stop(e),l(),t[s.show_effect].init(e,a)):c.show_on&&(s.show_effect&&c.show_effect&&t[s.show_effect].stop(e,!0,!0),l(),t[s.show_effect].init(e)):c.show_on&&(l(),t[s.show_effect].start(e))}function Ze(e,t,n){var r={props:e,optionName:n};return!(!(e.attachments.indexOf(t)<0)||t.conf.bind&&!t.conf.bind(t,r))&&(e.attachments.push(t),t.boundTargets.push(r),!0)}function q(e,t,n){var r=e.attachments.indexOf(t);-1<r&&e.attachments.splice(r,1),t.boundTargets.some(function(n,i){return n.props===e&&(t.conf.unbind&&t.conf.unbind(t,n),r=i,!0)})&&(t.boundTargets.splice(r,1),n||Be(function(){t.boundTargets.length||a(t)}))}function Qe(a,o){var s,c,l=a.options,u={};function d(e,t,n,r,i){var a={};return n?r==null?(a.container=e,a.key=n):(a.container=e[n],a.key=r):(a.container=e,a.key=t),a.default=i,a.acceptsAuto=a.default==null,a}function f(e,t,n,r,i,a,o){var s,c,l,u=d(e,n,i,a,o);return t[n]!=null&&(c=(t[n]+``).toLowerCase())&&(u.acceptsAuto&&c===M||(l=r[c]))&&l!==u.container[u.key]&&(u.container[u.key]=l,s=!0),u.container[u.key]!=null||u.acceptsAuto||(u.container[u.key]=u.default,s=!0),s}function m(e,t,n,r,i,a,o,s,c){var l,u,f,p,m=d(e,n,i,a,o);if(!r){if(m.default==null)throw Error("Invalid `type`: "+n);r=hn(m.default)}return t[n]!=null&&(m.acceptsAuto&&(t[n]+``).toLowerCase()===M||(f=u=t[n],((p=r)===`number`?he(f):(f===void 0?`undefined`:hn(f))===p)&&(u=c&&r===`string`&&u?u.trim():u,1)&&(!s||s(u))))&&u!==m.container[m.key]&&(m.container[m.key]=u,l=!0),m.container[m.key]!=null||m.acceptsAuto||(m.container[m.key]=m.default,l=!0),l}if(o=o||{},[`start`,`end`].forEach(function(e,t){var n=o[e],r=!1;if(n&&(De(n)||(r=i(n,`anchor`)))&&n!==l.anchorSE[t]){if(!1!==a.optionIsAttach.anchorSE[t]&&q(a,Ce[l.anchorSE[t]._id]),r&&!Ze(a,Ce[n._id],e))throw Error(`Can't bind attachment`);l.anchorSE[t]=n,a.optionIsAttach.anchorSE[t]=r,c=u.position=!0}}),!l.anchorSE[0]||!l.anchorSE[1]||l.anchorSE[0]===l.anchorSE[1])throw Error("`start` and `end` are required.");c&&(s=function(e,t){var n,r,i;if(!(n=ke(e))||!(r=ke(t)))throw Error(`Cannot get frames.`);return n.length&&r.length&&(n.reverse(),r.reverse(),n.some(function(e){return r.some(function(t){return t===e&&(i=t.contentWindow,!0)})})),i||window}(!1===a.optionIsAttach.anchorSE[0]?l.anchorSE[0]:Ce[l.anchorSE[0]._id].element,!1===a.optionIsAttach.anchorSE[1]?l.anchorSE[1]:Ce[l.anchorSE[1]._id].element))!==a.baseWindow&&(function(n,r){var a,o,s,c,l,u,d,f,m,h,g=n.aplStats,_=r.document,v=p+`-`+n._id;function y(e){var t=o.appendChild(_.createElementNS(L,`mask`));return t.id=e,t.maskUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[t.x,t.y,t.width,t.height].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)}),t}function b(e){var t=o.appendChild(_.createElementNS(L,`marker`));return t.id=e,t.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_STROKEWIDTH,t.viewBox.baseVal||t.setAttribute(`viewBox`,`0 0 0 0`),t}function x(e){return[e.width,e.height].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100)}),e}n.pathList={},Ue(g,B),Object.keys(e).forEach(function(t){var r=t+`_enabled`;g[r]&&(e[t].remove(n),g[r]=!1)}),n.baseWindow&&n.svg&&n.baseWindow.document.body.removeChild(n.svg),Ge(n.baseWindow=r),n.bodyOffset=We(r),n.svg=a=_.createElementNS(L,`svg`),a.className.baseVal=p,a.viewBox.baseVal||a.setAttribute(`viewBox`,`0 0 0 0`),n.defs=o=a.appendChild(_.createElementNS(L,`defs`)),n.linePath=c=o.appendChild(_.createElementNS(L,`path`)),c.id=l=v+`-line-path`,c.className.baseVal=p+`-line-path`,de&&(c.style.fill=`none`),n.lineShape=c=o.appendChild(_.createElementNS(L,`use`)),c.id=u=v+`-line-shape`,c.href.baseVal=`#`+l,(s=o.appendChild(_.createElementNS(L,`g`))).id=d=v+`-caps`,n.capsMaskAnchorSE=[0,1].map(function(){var e=s.appendChild(_.createElementNS(L,`path`));return e.className.baseVal=p+`-caps-mask-anchor`,e}),n.lineMaskMarkerIdSE=[v+`-caps-mask-marker-0`,v+`-caps-mask-marker-1`],n.capsMaskMarkerSE=[0,1].map(function(e){return b(n.lineMaskMarkerIdSE[e])}),n.capsMaskMarkerShapeSE=[0,1].map(function(e){var t=n.capsMaskMarkerSE[e].appendChild(_.createElementNS(L,`use`));return t.className.baseVal=p+`-caps-mask-marker-shape`,t}),n.capsMaskLine=c=s.appendChild(_.createElementNS(L,`use`)),c.className.baseVal=p+`-caps-mask-line`,c.href.baseVal=`#`+u,n.maskBGRect=c=x(o.appendChild(_.createElementNS(L,`rect`))),c.id=f=v+`-mask-bg-rect`,c.className.baseVal=p+`-mask-bg-rect`,de&&(c.style.fill=`white`),n.lineMask=x(y(n.lineMaskId=v+`-line-mask`)),n.lineMaskBG=c=n.lineMask.appendChild(_.createElementNS(L,`use`)),c.href.baseVal=`#`+f,n.lineMaskShape=c=n.lineMask.appendChild(_.createElementNS(L,`use`)),c.className.baseVal=p+`-line-mask-shape`,c.href.baseVal=`#`+l,c.style.display=`none`,n.lineMaskCaps=c=n.lineMask.appendChild(_.createElementNS(L,`use`)),c.href.baseVal=`#`+d,n.lineOutlineMask=x(y(m=v+`-line-outline-mask`)),(c=n.lineOutlineMask.appendChild(_.createElementNS(L,`use`))).href.baseVal=`#`+f,n.lineOutlineMaskShape=c=n.lineOutlineMask.appendChild(_.createElementNS(L,`use`)),c.className.baseVal=p+`-line-outline-mask-shape`,c.href.baseVal=`#`+l,n.lineOutlineMaskCaps=c=n.lineOutlineMask.appendChild(_.createElementNS(L,`use`)),c.href.baseVal=`#`+d,n.face=a.appendChild(_.createElementNS(L,`g`)),n.lineFace=c=n.face.appendChild(_.createElementNS(L,`use`)),c.href.baseVal=`#`+u,n.lineOutlineFace=c=n.face.appendChild(_.createElementNS(L,`use`)),c.href.baseVal=`#`+u,c.style.mask=`url(#`+m+`)`,c.style.display=`none`,n.plugMaskIdSE=[v+`-plug-mask-0`,v+`-plug-mask-1`],n.plugMaskSE=[0,1].map(function(e){return y(n.plugMaskIdSE[e])}),n.plugMaskShapeSE=[0,1].map(function(e){var t=n.plugMaskSE[e].appendChild(_.createElementNS(L,`use`));return t.className.baseVal=p+`-plug-mask-shape`,t}),h=[],n.plugOutlineMaskSE=[0,1].map(function(e){return y(h[e]=v+`-plug-outline-mask-`+e)}),n.plugOutlineMaskShapeSE=[0,1].map(function(e){var t=n.plugOutlineMaskSE[e].appendChild(_.createElementNS(L,`use`));return t.className.baseVal=p+`-plug-outline-mask-shape`,t}),n.plugMarkerIdSE=[v+`-plug-marker-0`,v+`-plug-marker-1`],n.plugMarkerSE=[0,1].map(function(e){var t=b(n.plugMarkerIdSE[e]);return de&&(t.markerUnits.baseVal=SVGMarkerElement.SVG_MARKERUNITS_USERSPACEONUSE),t}),n.plugMarkerShapeSE=[0,1].map(function(e){return n.plugMarkerSE[e].appendChild(_.createElementNS(L,`g`))}),n.plugFaceSE=[0,1].map(function(e){return n.plugMarkerShapeSE[e].appendChild(_.createElementNS(L,`use`))}),n.plugOutlineFaceSE=[0,1].map(function(e){var t=n.plugMarkerShapeSE[e].appendChild(_.createElementNS(L,`use`));return t.style.mask=`url(#`+h[e]+`)`,t.style.display=`none`,t}),n.plugsFace=c=n.face.appendChild(_.createElementNS(L,`use`)),c.className.baseVal=p+`-plugs-face`,c.href.baseVal=`#`+u,c.style.display=`none`,n.curStats.show_inAnim?(n.isShown=1,t[g.show_effect].stop(n,!0)):n.isShown||(a.style.visibility=`hidden`),_.body.appendChild(a),[0,1,2].forEach(function(e){var t,r=n.options.labelSEM[e];r&&i(r,`label`)&&(t=Ce[r._id]).conf.initSvg&&t.conf.initSvg(t,n)})}(a,s),u.line=u.plug=u.lineOutline=u.plugOutline=u.faces=u.effect=!0),u.position=f(l,o,`path`,w,null,null,pe.path)||u.position,u.position=f(l,o,`startSocket`,v,`socketSE`,0)||u.position,u.position=f(l,o,`endSocket`,v,`socketSE`,1)||u.position,[o.startSocketGravity,o.endSocketGravity].forEach(function(e,t){var n,r,i=!1;e!=null&&(Array.isArray(e)?he(e[0])&&he(e[1])&&(i=[e[0],e[1]],Array.isArray(l.socketGravitySE[t])&&(n=i,r=l.socketGravitySE[t],n.length===r.length&&n.every(function(e,t){return e===r[t]}))&&(i=!1)):((e+``).toLowerCase()===M?i=null:he(e)&&0<=e&&(i=e),i===l.socketGravitySE[t]&&(i=!1)),!1!==i&&(l.socketGravitySE[t]=i,u.position=!0))}),u.line=m(l,o,`color`,null,`lineColor`,null,pe.lineColor,null,!0)||u.line,u.line=m(l,o,`size`,null,`lineSize`,null,pe.lineSize,function(e){return 0<e})||u.line,[`startPlug`,`endPlug`].forEach(function(e,t){u.plug=f(l,o,e,k,`plugSE`,t,pe.plugSE[t])||u.plug,u.plug=m(l,o,e+`Color`,`string`,`plugColorSE`,t,null,null,!0)||u.plug,u.plug=m(l,o,e+`Size`,null,`plugSizeSE`,t,pe.plugSizeSE[t],function(e){return 0<e})||u.plug}),u.lineOutline=m(l,o,`outline`,null,`lineOutlineEnabled`,null,pe.lineOutlineEnabled)||u.lineOutline,u.lineOutline=m(l,o,`outlineColor`,null,`lineOutlineColor`,null,pe.lineOutlineColor,null,!0)||u.lineOutline,u.lineOutline=m(l,o,`outlineSize`,null,`lineOutlineSize`,null,pe.lineOutlineSize,function(e){return 0<e&&e<=.48})||u.lineOutline,[`startPlugOutline`,`endPlugOutline`].forEach(function(e,t){u.plugOutline=m(l,o,e,null,`plugOutlineEnabledSE`,t,pe.plugOutlineEnabledSE[t])||u.plugOutline,u.plugOutline=m(l,o,e+`Color`,`string`,`plugOutlineColorSE`,t,null,null,!0)||u.plugOutline,u.plugOutline=m(l,o,e+`Size`,null,`plugOutlineSizeSE`,t,pe.plugOutlineSizeSE[t],function(e){return 1<=e})||u.plugOutline}),[`startLabel`,`endLabel`,`middleLabel`].forEach(function(e,t){var s,c,u,d=o[e],f=l.labelSEM[t]&&!a.optionIsAttach.labelSEM[t]?Ce[l.labelSEM[t]._id].text:l.labelSEM[t],p=!1;if((s=typeof d==`string`)&&(d=d.trim()),(s||d&&(p=i(d,`label`)))&&d!==f){if(l.labelSEM[t]&&(q(a,Ce[l.labelSEM[t]._id]),l.labelSEM[t]=``),d){if(p?(c=Ce[(u=d)._id]).boundTargets.slice().forEach(function(e){c.conf.removeOption(c,e)}):u=new r(n.captionLabel,[d]),!Ze(a,Ce[u._id],e))throw Error(`Can't bind attachment`);l.labelSEM[t]=u}a.optionIsAttach.labelSEM[t]=p}}),Object.keys(e).forEach(function(t){var n,r,i=e[t],s=t+`_enabled`,c=t+`_options`;function d(e){var t={};return i.optionsConf.forEach(function(n){var r=n[0],i=n[3];n[4]==null||t[i]||(t[i]=[]),(typeof r==`function`?r:r===`id`?f:m).apply(null,[t,e].concat(n.slice(1)))}),t}function p(e){var n,r=t+`_animOptions`;return e.hasOwnProperty(`animation`)?me(e.animation)?n=a.curStats[r]=Ye(e.animation,i.defaultAnimOptions):(n=!!e.animation,a.curStats[r]=n?Ye({},i.defaultAnimOptions):null):(n=!!i.defaultEnabled,a.curStats[r]=n?Ye({},i.defaultAnimOptions):null),n}o.hasOwnProperty(t)&&(n=o[t],me(n)?(a.curStats[s]=!0,r=a.curStats[c]=d(n),i.anim&&(a.curStats[c].animation=p(n))):(r=a.curStats[s]=!!n)&&(a.curStats[c]=d({}),i.anim&&(a.curStats[c].animation=p({}))),we(r,l[t])&&(l[t]=r,u.effect=!0))}),Je(a,u)}function $e(n,r,i){var a={options:{anchorSE:[],socketSE:[],socketGravitySE:[],plugSE:[],plugColorSE:[],plugSizeSE:[],plugOutlineEnabledSE:[],plugOutlineColorSE:[],plugOutlineSizeSE:[],labelSEM:[``,``,``]},optionIsAttach:{anchorSE:[!1,!1],labelSEM:[!1,!1,!1]},curStats:{},aplStats:{},attachments:[],events:{},reflowTargets:[]};Ue(a.curStats,B),Ue(a.aplStats,B),Object.keys(e).forEach(function(t){var n=e[t].stats;Ue(a.curStats,n),Ue(a.aplStats,n),a.options[t]=!1}),Ue(a.curStats,ve),Ue(a.aplStats,ve),a.curStats.show_effect=ye,a.curStats.show_animOptions=Te(t[ye].defaultAnimOptions),Object.defineProperty(this,"_id",{value:++Se}),a._id=this._id,xe[this._id]=a,arguments.length===1&&(i=n,n=null),i=i||{},(n||r)&&(i=Te(i),n&&(i.start=n),r&&(i.end=r)),a.isShown=a.aplStats.show_on=!i.hide,this.setOptions(i)}return e={dash:{stats:{dash_len:{},dash_gap:{},dash_maxOffset:{}},anim:!0,defaultAnimOptions:{duration:1e3,timing:`linear`},optionsConf:[[`type`,`len`,`number`,null,null,null,function(e){return 0<e}],[`type`,`gap`,`number`,null,null,null,function(e){return 0<e}]],init:function(t){U(t,`apl_line_strokeWidth`,e.dash.update),t.lineFace.style.strokeDashoffset=0,e.dash.update(t)},remove:function(t){var n=t.curStats;ze(t,`apl_line_strokeWidth`,e.dash.update),n.dash_animId&&(ge.remove(n.dash_animId),n.dash_animId=null),t.lineFace.style.strokeDasharray=`none`,t.lineFace.style.strokeDashoffset=0,Ue(t.aplStats,e.dash.stats)},update:function(e){var t,n=e.curStats,r=e.aplStats,i=r.dash_options,a=!1;n.dash_len=i.len||2*r.line_strokeWidth,n.dash_gap=i.gap||r.line_strokeWidth,n.dash_maxOffset=n.dash_len+n.dash_gap,a=K(e,r,`dash_len`,n.dash_len)||a,(a=K(e,r,`dash_gap`,n.dash_gap)||a)&&(e.lineFace.style.strokeDasharray=r.dash_len+`,`+r.dash_gap),n.dash_animOptions?(a=K(e,r,`dash_maxOffset`,n.dash_maxOffset),r.dash_animOptions&&(a||we(n.dash_animOptions,r.dash_animOptions))&&(n.dash_animId&&(t=ge.stop(n.dash_animId),ge.remove(n.dash_animId)),r.dash_animOptions=null),r.dash_animOptions||(n.dash_animId=ge.add(function(e){return(1-e)*r.dash_maxOffset+`px`},function(t){e.lineFace.style.strokeDashoffset=t},n.dash_animOptions.duration,0,n.dash_animOptions.timing,!1,t),r.dash_animOptions=Te(n.dash_animOptions))):r.dash_animOptions&&(n.dash_animId&&(ge.remove(n.dash_animId),n.dash_animId=null),e.lineFace.style.strokeDashoffset=0,r.dash_animOptions=null)}},gradient:{stats:{gradient_colorSE:{hasSE:!0},gradient_pointSE:{hasSE:!0,hasProps:!0}},optionsConf:[[`type`,`startColor`,`string`,`colorSE`,0,null,null,!0],[`type`,`endColor`,`string`,`colorSE`,1,null,null,!0]],init:function(t){var n,r=t.baseWindow.document,i=t.defs,a=p+`-`+t._id+`-gradient`;t.efc_gradient_gradient=n=i.appendChild(r.createElementNS(L,`linearGradient`)),n.id=a,n.gradientUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,[n.x1,n.y1,n.x2,n.y2].forEach(function(e){e.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0)}),t.efc_gradient_stopSE=[0,1].map(function(e){var n=t.efc_gradient_gradient.appendChild(r.createElementNS(L,`stop`));try{n.offset.baseVal=e}catch(t){if(t.code!==DOMException.NO_MODIFICATION_ALLOWED_ERR)throw t;n.setAttribute(`offset`,e)}return n}),U(t,`cur_plug_colorSE`,e.gradient.update),U(t,`apl_path`,e.gradient.update),t.curStats.line_altColor=!0,t.lineFace.style.stroke=`url(#`+a+`)`,e.gradient.update(t)},remove:function(t){t.efc_gradient_gradient&&(t.defs.removeChild(t.efc_gradient_gradient),t.efc_gradient_gradient=t.efc_gradient_stopSE=null),ze(t,`cur_plug_colorSE`,e.gradient.update),ze(t,`apl_path`,e.gradient.update),t.curStats.line_altColor=!1,t.lineFace.style.stroke=t.curStats.line_color,Ue(t.aplStats,e.gradient.stats)},update:function(e){var t,n,r=e.curStats,i=e.aplStats,a=i.gradient_options,o=e.pathList.animVal||e.pathList.baseVal;[0,1].forEach(function(e){r.gradient_colorSE[e]=a.colorSE[e]||r.plug_colorSE[e]}),n=o[0][0],r.gradient_pointSE[0]={x:n.x,y:n.y},n=(t=o[o.length-1])[t.length-1],r.gradient_pointSE[1]={x:n.x,y:n.y},[0,1].forEach(function(t){var n;K(e,i.gradient_colorSE,t,n=r.gradient_colorSE[t])&&(de?(n=Ee(n),e.efc_gradient_stopSE[t].style.stopColor=n[1],e.efc_gradient_stopSE[t].style.stopOpacity=n[0]):e.efc_gradient_stopSE[t].style.stopColor=n),[`x`,`y`].forEach(function(a){(n=r.gradient_pointSE[t][a])!==i.gradient_pointSE[t][a]&&(e.efc_gradient_gradient[a+(t+1)].baseVal.value=i.gradient_pointSE[t][a]=n)})})}},dropShadow:{stats:{dropShadow_dx:{},dropShadow_dy:{},dropShadow_blur:{},dropShadow_color:{},dropShadow_opacity:{},dropShadow_x:{},dropShadow_y:{}},optionsConf:[[`type`,`dx`,null,null,null,2],[`type`,`dy`,null,null,null,4],[`type`,`blur`,null,null,null,3,function(e){return 0<=e}],[`type`,`color`,null,null,null,`#000`,null,!0],[`type`,`opacity`,null,null,null,.8,function(e){return 0<=e&&e<=1}]],init:function(t){var n,r,i,a,o,s=t.baseWindow.document,c=t.defs,u=p+`-`+t._id+`-dropShadow`,d=(n=s,r=u,o={},typeof l!=`boolean`&&(l=!!window.SVGFEDropShadowElement&&!de),o.elmsAppend=[o.elmFilter=i=n.createElementNS(L,`filter`)],i.filterUnits.baseVal=SVGUnitTypes.SVG_UNIT_TYPE_USERSPACEONUSE,i.x.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),i.y.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),i.width.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),i.height.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,100),i.id=r,l?(o.elmOffset=o.elmBlur=a=i.appendChild(n.createElementNS(L,`feDropShadow`)),o.styleFlood=a.style):(o.elmBlur=i.appendChild(n.createElementNS(L,`feGaussianBlur`)),o.elmOffset=a=i.appendChild(n.createElementNS(L,`feOffset`)),a.result.baseVal=`offsetblur`,a=i.appendChild(n.createElementNS(L,`feFlood`)),o.styleFlood=a.style,(a=i.appendChild(n.createElementNS(L,`feComposite`))).in2.baseVal=`offsetblur`,a.operator.baseVal=SVGFECompositeElement.SVG_FECOMPOSITE_OPERATOR_IN,(a=i.appendChild(n.createElementNS(L,`feMerge`))).appendChild(n.createElementNS(L,`feMergeNode`)),a.appendChild(n.createElementNS(L,`feMergeNode`)).in1.baseVal=`SourceGraphic`),o);[`elmFilter`,`elmOffset`,`elmBlur`,`styleFlood`,`elmsAppend`].forEach(function(e){t[`efc_dropShadow_`+e]=d[e]}),d.elmsAppend.forEach(function(e){c.appendChild(e)}),t.face.setAttribute(`filter`,`url(#`+u+`)`),U(t,`new_edge4viewBox`,e.dropShadow.adjustEdge),e.dropShadow.update(t)},remove:function(t){var n=t.defs;t.efc_dropShadow_elmsAppend&&(t.efc_dropShadow_elmsAppend.forEach(function(e){n.removeChild(e)}),t.efc_dropShadow_elmFilter=t.efc_dropShadow_elmOffset=t.efc_dropShadow_elmBlur=t.efc_dropShadow_styleFlood=t.efc_dropShadow_elmsAppend=null),ze(t,`new_edge4viewBox`,e.dropShadow.adjustEdge),Je(t,{}),t.face.removeAttribute(`filter`),Ue(t.aplStats,e.dropShadow.stats)},update:function(e){var t,n,r=e.curStats,i=e.aplStats,a=i.dropShadow_options;r.dropShadow_dx=t=a.dx,K(e,i,`dropShadow_dx`,t)&&(e.efc_dropShadow_elmOffset.dx.baseVal=t,n=!0),r.dropShadow_dy=t=a.dy,K(e,i,`dropShadow_dy`,t)&&(e.efc_dropShadow_elmOffset.dy.baseVal=t,n=!0),r.dropShadow_blur=t=a.blur,K(e,i,`dropShadow_blur`,t)&&(e.efc_dropShadow_elmBlur.setStdDeviation(t,t),n=!0),n&&Je(e,{}),r.dropShadow_color=t=a.color,K(e,i,`dropShadow_color`,t)&&(e.efc_dropShadow_styleFlood.floodColor=t),r.dropShadow_opacity=t=a.opacity,K(e,i,`dropShadow_opacity`,t)&&(e.efc_dropShadow_styleFlood.floodOpacity=t)},adjustEdge:function(e,t){var n,r,i=e.curStats,a=e.aplStats;i.dropShadow_dx!=null&&(n=3*i.dropShadow_blur,(r={x1:t.x1-n+i.dropShadow_dx,y1:t.y1-n+i.dropShadow_dy,x2:t.x2+n+i.dropShadow_dx,y2:t.y2+n+i.dropShadow_dy}).x1<t.x1&&(t.x1=r.x1),r.y1<t.y1&&(t.y1=r.y1),r.x2>t.x2&&(t.x2=r.x2),r.y2>t.y2&&(t.y2=r.y2),[`x`,`y`].forEach(function(n){var r,o=`dropShadow_`+n;i[o]=r=t[n+`1`],K(e,a,o,r)&&(e.efc_dropShadow_elmFilter[n].baseVal.value=r)}))}}},Object.keys(e).forEach(function(t){var n=e[t],r=n.stats;r[t+`_enabled`]={iniValue:!1},r[t+`_options`]={hasProps:!0},n.anim&&(r[t+`_animOptions`]={},r[t+`_animId`]={})}),t={none:{defaultAnimOptions:{},init:function(e,n){var r=e.curStats;r.show_animId&&(ge.remove(r.show_animId),r.show_animId=null),t.none.start(e,n)},start:function(e,n){t.none.stop(e,!0)},stop:function(e,t,n){var r=e.curStats;return n=n==null?e.aplStats.show_on:n,r.show_inAnim=!1,t&&qe(e,n),+!!n}},fade:{defaultAnimOptions:{duration:300,timing:`linear`},init:function(e,n){var r=e.curStats,i=e.aplStats;r.show_animId&&ge.remove(r.show_animId),r.show_animId=ge.add(function(e){return e},function(n,r){r?t.fade.stop(e,!0):(e.svg.style.opacity=n+``,ce&&(W(e,e.svg),Ve(e)))},i.show_animOptions.duration,1,i.show_animOptions.timing,null,!1),t.fade.start(e,n)},start:function(e,t){var n,r=e.curStats;r.show_inAnim&&(n=ge.stop(r.show_animId)),qe(e,1),r.show_inAnim=!0,ge.start(r.show_animId,!e.aplStats.show_on,t==null?n:t)},stop:function(e,t,n){var r,i=e.curStats;return n=n==null?e.aplStats.show_on:n,r=i.show_inAnim?ge.stop(i.show_animId):+!!n,i.show_inAnim=!1,t&&(e.svg.style.opacity=n?``:`0`,qe(e,n)),r}},draw:{defaultAnimOptions:{duration:500,timing:[.58,0,.42,1]},init:function(e,n){var r=e.curStats,i=e.aplStats,a=e.pathList.baseVal,o=Re(a),s=o.segsLen,c=o.lenAll;r.show_animId&&ge.remove(r.show_animId),r.show_animId=ge.add(function(e){var t,n,r,i,o=-1;if(e===0)n=[[a[0][0],a[0][0]]];else if(e===1)n=a;else{for(t=c*e,n=[];t>=s[++o];)n.push(a[o]),t-=s[o];t&&((r=a[o]).length===2?n.push([r[0],Me(r[0],r[1],t/s[o])]):(i=Pe(r[0],r[1],r[2],r[3],Ie(r[0],r[1],r[2],r[3],t)),n.push([r[0],i.fromP1,i.fromP2,i])))}return n},function(n,r){r?t.draw.stop(e,!0):(e.pathList.animVal=n,Je(e,{path:!0}))},i.show_animOptions.duration,1,i.show_animOptions.timing,null,!1),t.draw.start(e,n)},start:function(e,n){var r,i=e.curStats;i.show_inAnim&&(r=ge.stop(i.show_animId)),qe(e,1),i.show_inAnim=!0,U(e,`apl_position`,t.draw.update),ge.start(i.show_animId,!e.aplStats.show_on,n==null?r:n)},stop:function(e,t,n){var r,i=e.curStats;return n=n==null?e.aplStats.show_on:n,r=i.show_inAnim?ge.stop(i.show_animId):+!!n,i.show_inAnim=!1,t&&(e.pathList.animVal=n?null:[[e.pathList.baseVal[0][0],e.pathList.baseVal[0][0]]],Je(e,{path:!0}),qe(e,n)),r},update:function(e){ze(e,`apl_position`,t.draw.update),e.curStats.show_inAnim?t.draw.init(e,t.draw.stop(e)):e.aplStats.show_animOptions={}}}},function(){function t(e){return function(t){var n={};n[e]=t,this.setOptions(n)}}[[`start`,`anchorSE`,0],[`end`,`anchorSE`,1],[`color`,`lineColor`],[`size`,`lineSize`],[`startSocketGravity`,`socketGravitySE`,0],[`endSocketGravity`,`socketGravitySE`,1],[`startPlugColor`,`plugColorSE`,0],[`endPlugColor`,`plugColorSE`,1],[`startPlugSize`,`plugSizeSE`,0],[`endPlugSize`,`plugSizeSE`,1],[`outline`,`lineOutlineEnabled`],[`outlineColor`,`lineOutlineColor`],[`outlineSize`,`lineOutlineSize`],[`startPlugOutline`,`plugOutlineEnabledSE`,0],[`endPlugOutline`,`plugOutlineEnabledSE`,1],[`startPlugOutlineColor`,`plugOutlineColorSE`,0],[`endPlugOutlineColor`,`plugOutlineColorSE`,1],[`startPlugOutlineSize`,`plugOutlineSizeSE`,0],[`endPlugOutlineSize`,`plugOutlineSizeSE`,1]].forEach(function(e){var n=e[0],r=e[1],i=e[2];Object.defineProperty($e.prototype,n,{get:function(){var e=i==null?r?xe[this._id].options[r]:xe[this._id].options[n]:xe[this._id].options[r][i];return e==null?M:Te(e)},set:t(n),enumerable:!0})}),[[`path`,w],[`startSocket`,v,`socketSE`,0],[`endSocket`,v,`socketSE`,1],[`startPlug`,k,`plugSE`,0],[`endPlug`,k,`plugSE`,1]].forEach(function(e){var n=e[0],r=e[1],i=e[2],a=e[3];Object.defineProperty($e.prototype,n,{get:function(){var e,t=a==null?i?xe[this._id].options[i]:xe[this._id].options[n]:xe[this._id].options[i][a];return t?Object.keys(r).some(function(n){return r[n]===t&&(e=n,!0)})?e:Error(`It's broken`):M},set:t(n),enumerable:!0})}),Object.keys(e).forEach(function(n){var r=e[n];Object.defineProperty($e.prototype,n,{get:function(){var e,t,i=xe[this._id].options[n];return me(i)?(e=i,t=r.optionsConf.reduce(function(t,n){var r,i=n[0],a=n[1],o=n[2],s=n[3],c=n[4],l=c==null?s?e[s]:e[a]:e[s][c];return t[a]=i===`id`?l?Object.keys(o).some(function(e){return o[e]===l&&(r=e,!0)})?r:Error(`It's broken`):M:l==null?M:Te(l),t},{}),r.anim&&(t.animation=Te(e.animation)),t):i},set:t(n),enumerable:!0})}),[`startLabel`,`endLabel`,`middleLabel`].forEach(function(e,n){Object.defineProperty($e.prototype,e,{get:function(){var e=xe[this._id],t=e.options;return t.labelSEM[n]&&!e.optionIsAttach.labelSEM[n]?Ce[t.labelSEM[n]._id].text:t.labelSEM[n]||``},set:t(e),enumerable:!0})})}(),$e.prototype.setOptions=function(e){return Qe(xe[this._id],e),this},$e.prototype.position=function(){return Je(xe[this._id],{position:!0}),this},$e.prototype.remove=function(){var t=xe[this._id],n=t.curStats;Object.keys(e).forEach(function(e){var t=e+`_animId`;n[t]&&ge.remove(n[t])}),n.show_animId&&ge.remove(n.show_animId),t.attachments.slice().forEach(function(e){q(t,e)}),t.baseWindow&&t.svg&&t.baseWindow.document.body.removeChild(t.svg),delete xe[this._id]},$e.prototype.show=function(e,t){return Xe(xe[this._id],!0,e,t),this},$e.prototype.hide=function(e,t){return Xe(xe[this._id],!1,e,t),this},a=function(e){e&&Ce[e._id]&&(e.boundTargets.slice().forEach(function(t){q(t.props,e,!0)}),e.conf.remove&&e.conf.remove(e),delete Ce[e._id])},r=function(){function e(e,t){var n,r={conf:e,curStats:{},aplStats:{},boundTargets:[]},i={};e.argOptions.every(function(e){return!(!t.length||(typeof e.type==`string`?hn(t[0])!==e.type:typeof e.type!=`function`||!e.type(t[0])))&&(i[e.optionName]=t.shift(),!0)}),n=t.length&&me(t[0])?Te(t[0]):{},Object.keys(i).forEach(function(e){n[e]=i[e]}),e.stats&&(Ue(r.curStats,e.stats),Ue(r.aplStats,e.stats)),Object.defineProperty(this,"_id",{value:++V}),Object.defineProperty(this,"isRemoved",{get:function(){return!Ce[this._id]}}),r._id=this._id,e.init&&!e.init(r,n)||(Ce[this._id]=r)}return e.prototype.remove=function(){var e=this,t=Ce[e._id];t&&(t.boundTargets.slice().forEach(function(e){t.conf.removeOption(t,e)}),Be(function(){var t=Ce[e._id];t&&(console.error(`LeaderLineAttachment was not removed by removeOption`),a(t))}))},e}(),window.LeaderLineAttachment=r,i=function(e,t){return dn(e,r)&&(!(e.isRemoved||t&&Ce[e._id].conf.type!==t)||null)},n={pointAnchor:{type:`anchor`,argOptions:[{optionName:`element`,type:De}],init:function(e,t){return e.element=n.pointAnchor.checkElement(t.element),e.x=n.pointAnchor.parsePercent(t.x,!0)||[.5,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[.5,!0],!0},removeOption:function(e,t){var i=t.props,a={},o=e.element,s=i.options.anchorSE[+(t.optionName===`start`)];o===s&&(o=s===document.body?new r(n.pointAnchor,[o]):document.body),a[t.optionName]=o,Qe(i,a)},getBBoxNest:function(e,t){var n=Ae(e.element,t.baseWindow),r=n.width,i=n.height;return n.width=n.height=0,n.left=n.right=n.left+e.x[0]*(e.x[1]?r:1),n.top=n.bottom=n.top+e.y[0]*(e.y[1]?i:1),n},parsePercent:function(e,t){var n,r,i=!1;return he(e)?r=e:typeof e==`string`&&(n=se.exec(e))&&n[2]&&(i=(r=parseFloat(n[1])/100)!=0),r!=null&&(t||0<=r)?[r,i]:null},checkElement:function(e){if(e==null)e=document.body;else if(!De(e))throw Error("`element` must be Element");return e}},areaAnchor:{type:`anchor`,argOptions:[{optionName:`element`,type:De},{optionName:`shape`,type:`string`}],stats:{color:{},strokeWidth:{},elementWidth:{},elementHeight:{},elementLeft:{},elementTop:{},pathListRel:{},bBoxRel:{},pathData:{},viewBoxBBox:{hasProps:!0},dashLen:{},dashGap:{}},init:function(e,t){var r,i,a,o=[];return e.element=n.pointAnchor.checkElement(t.element),typeof t.color==`string`&&(e.color=t.color.trim()),typeof t.fillColor==`string`&&(e.fill=t.fillColor.trim()),he(t.size)&&0<=t.size&&(e.size=t.size),t.dash&&(e.dash=!0,he(t.dash.len)&&0<t.dash.len&&(e.dashLen=t.dash.len),he(t.dash.gap)&&0<t.dash.gap&&(e.dashGap=t.dash.gap)),t.shape===`circle`?e.shape=t.shape:t.shape===`polygon`&&Array.isArray(t.points)&&3<=t.points.length&&t.points.every(function(t){var r={};return!(!(r.x=n.pointAnchor.parsePercent(t[0],!0))||!(r.y=n.pointAnchor.parsePercent(t[1],!0)))&&(o.push(r),(r.x[1]||r.y[1])&&(e.hasRatio=!0),!0)})?(e.shape=t.shape,e.points=o):(e.shape=`rect`,e.radius=he(t.radius)&&0<=t.radius?t.radius:0),e.shape!==`rect`&&e.shape!==`circle`||(e.x=n.pointAnchor.parsePercent(t.x,!0)||[-.05,!0],e.y=n.pointAnchor.parsePercent(t.y,!0)||[-.05,!0],e.width=n.pointAnchor.parsePercent(t.width)||[1.1,!0],e.height=n.pointAnchor.parsePercent(t.height)||[1.1,!0],(e.x[1]||e.y[1]||e.width[1]||e.height[1])&&(e.hasRatio=!0)),r=e.element.ownerDocument,e.svg=i=r.createElementNS(L,`svg`),i.className.baseVal=p+`-areaAnchor`,i.viewBox.baseVal||i.setAttribute(`viewBox`,`0 0 0 0`),e.path=i.appendChild(r.createElementNS(L,`path`)),e.path.style.fill=e.fill||`none`,e.isShown=!1,i.style.visibility=`hidden`,r.body.appendChild(i),Ge(a=r.defaultView),e.bodyOffset=We(a),e.updateColor=function(){var t,n=e.curStats,r=e.aplStats,i=e.boundTargets.length?e.boundTargets[0].props.curStats:null;n.color=t=e.color||(i?i.line_color:pe.lineColor),K(e,r,`color`,t)&&(e.path.style.stroke=t)},e.updateShow=function(){qe(e,e.boundTargets.some(function(e){return!0===e.props.isShown}))},!0},bind:function(e,t){var n=t.props;return e.color||U(n,`cur_line_color`,e.updateColor),U(n,`svgShow`,e.updateShow),Be(function(){e.updateColor(),e.updateShow()}),!0},unbind:function(e,t){var r=t.props;e.color||ze(r,`cur_line_color`,e.updateColor),ze(r,`svgShow`,e.updateShow),1<e.boundTargets.length&&Be(function(){e.updateColor(),e.updateShow(),n.areaAnchor.update(e)&&e.boundTargets.forEach(function(e){Je(e.props,{position:!0})})})},removeOption:function(e,t){n.pointAnchor.removeOption(e,t)},remove:function(e){e.boundTargets.length&&(console.error(`LeaderLineAttachment was not unbound by remove`),e.boundTargets.forEach(function(t){n.areaAnchor.unbind(e,t)})),e.svg.parentNode.removeChild(e.svg)},getStrokeWidth:function(e,t){return n.areaAnchor.update(e)&&1<e.boundTargets.length&&Be(function(){e.boundTargets.forEach(function(e){e.props!==t&&Je(e.props,{position:!0})})}),e.curStats.strokeWidth},getPathData:function(e,t){var n=Ae(e.element,t.baseWindow);return Le(e.curStats.pathListRel,function(e){e.x+=n.left,e.y+=n.top})},getBBoxNest:function(e,t){var n=Ae(e.element,t.baseWindow),r=e.curStats.bBoxRel;return{left:r.left+n.left,top:r.top+n.top,right:r.right+n.left,bottom:r.bottom+n.top,width:r.width,height:r.height}},update:function(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T,E,D,O,k,A,j,M,P=e.curStats,ee=e.aplStats,te=e.boundTargets.length?e.boundTargets[0].props.curStats:null,F={};if(F.strokeWidth=K(e,P,`strokeWidth`,e.size==null?te?te.line_strokeWidth:pe.lineSize:e.size),t=Oe(e.element),F.elementWidth=K(e,P,`elementWidth`,t.width),F.elementHeight=K(e,P,`elementHeight`,t.height),F.elementLeft=K(e,P,`elementLeft`,t.left),F.elementTop=K(e,P,`elementTop`,t.top),F.strokeWidth||e.hasRatio&&(F.elementWidth||F.elementHeight)){switch(e.shape){case`rect`:(b={left:e.x[0]*(e.x[1]?t.width:1),top:e.y[0]*(e.y[1]?t.height:1),width:e.width[0]*(e.width[1]?t.width:1),height:e.height[0]*(e.height[1]?t.height:1)}).right=b.left+b.width,b.bottom=b.top+b.height,w=P.strokeWidth/2,S=(C=Math.min(b.width,b.height))?C/2*Math.SQRT2+w:0,(x=e.radius?e.radius<=S?e.radius:S:0)?(E=x-(T=(x-w)/Math.SQRT2),O=x*ae,D=[{x:b.left-E,y:b.top+T},{x:b.left+T,y:b.top-E},{x:b.right-T,y:b.top-E},{x:b.right+E,y:b.top+T},{x:b.right+E,y:b.bottom-T},{x:b.right-T,y:b.bottom+E},{x:b.left+T,y:b.bottom+E},{x:b.left-E,y:b.bottom-T}],P.pathListRel=[[D[0],{x:D[0].x,y:D[0].y-O},{x:D[1].x-O,y:D[1].y},D[1]]],D[1].x!==D[2].x&&P.pathListRel.push([D[1],D[2]]),P.pathListRel.push([D[2],{x:D[2].x+O,y:D[2].y},{x:D[3].x,y:D[3].y-O},D[3]]),D[3].y!==D[4].y&&P.pathListRel.push([D[3],D[4]]),P.pathListRel.push([D[4],{x:D[4].x,y:D[4].y+O},{x:D[5].x+O,y:D[5].y},D[5]]),D[5].x!==D[6].x&&P.pathListRel.push([D[5],D[6]]),P.pathListRel.push([D[6],{x:D[6].x-O,y:D[6].y},{x:D[7].x,y:D[7].y+O},D[7]]),D[7].y!==D[0].y&&P.pathListRel.push([D[7],D[0]]),P.pathListRel.push([]),E=x-T+P.strokeWidth/2,D=[{x:b.left-E,y:b.top-E},{x:b.right+E,y:b.bottom+E}]):(E=P.strokeWidth/2,D=[{x:b.left-E,y:b.top-E},{x:b.right+E,y:b.bottom+E}],P.pathListRel=[[D[0],{x:D[1].x,y:D[0].y}],[{x:D[1].x,y:D[0].y},D[1]],[D[1],{x:D[0].x,y:D[1].y}],[]],D=[{x:b.left-P.strokeWidth,y:b.top-P.strokeWidth},{x:b.right+P.strokeWidth,y:b.bottom+P.strokeWidth}]),P.bBoxRel={left:D[0].x,top:D[0].y,right:D[1].x,bottom:D[1].y,width:D[1].x-D[0].x,height:D[1].y-D[0].y};break;case`circle`:(s={left:e.x[0]*(e.x[1]?t.width:1),top:e.y[0]*(e.y[1]?t.height:1),width:e.width[0]*(e.width[1]?t.width:1),height:e.height[0]*(e.height[1]?t.height:1)}).width||s.height||(s.width=s.height=10),s.width||(s.width=s.height),s.height||(s.height=s.width),s.right=s.left+s.width,s.bottom=s.top+s.height,c=s.left+s.width/2,l=s.top+s.height/2,m=P.strokeWidth/2,h=s.width/2,g=s.height/2,u=h*Math.SQRT2+m,d=g*Math.SQRT2+m,f=u*ae,p=d*ae,y=[{x:c-u,y:l},{x:c,y:l-d},{x:c+u,y:l},{x:c,y:l+d}],P.pathListRel=[[y[0],{x:y[0].x,y:y[0].y-p},{x:y[1].x-f,y:y[1].y},y[1]],[y[1],{x:y[1].x+f,y:y[1].y},{x:y[2].x,y:y[2].y-p},y[2]],[y[2],{x:y[2].x,y:y[2].y+p},{x:y[3].x+f,y:y[3].y},y[3]],[y[3],{x:y[3].x-f,y:y[3].y},{x:y[0].x,y:y[0].y+p},y[0]],[]],_=u-h+P.strokeWidth/2,v=d-g+P.strokeWidth/2,y=[{x:s.left-_,y:s.top-v},{x:s.right+_,y:s.bottom+v}],P.bBoxRel={left:y[0].x,top:y[0].y,right:y[1].x,bottom:y[1].y,width:y[1].x-y[0].x,height:y[1].y-y[0].y};break;case`polygon`:e.points.forEach(function(e){var n=e.x[0]*(e.x[1]?t.width:1),a=e.y[0]*(e.y[1]?t.height:1);r?(n<r.left&&(r.left=n),n>r.right&&(r.right=n),a<r.top&&(r.top=a),a>r.bottom&&(r.bottom=a)):r={left:n,right:n,top:a,bottom:a},i?P.pathListRel.push([i,{x:n,y:a}]):P.pathListRel=[],i={x:n,y:a}}),P.pathListRel.push([]),a=P.strokeWidth/2,o=[{x:r.left-a,y:r.top-a},{x:r.right+a,y:r.bottom+a}],P.bBoxRel={left:o[0].x,top:o[0].y,right:o[1].x,bottom:o[1].y,width:o[1].x-o[0].x,height:o[1].y-o[0].y}}F.pathListRel=F.bBoxRel=!0}return(F.pathListRel||F.elementLeft||F.elementTop)&&(P.pathData=Le(P.pathListRel,function(e){e.x+=t.left,e.y+=t.top})),K(e,ee,`strokeWidth`,n=P.strokeWidth)&&(e.path.style.strokeWidth=n+`px`),H(n=P.pathData,ee.pathData)&&(e.path.setPathData(n),ee.pathData=n,F.pathData=!0),e.dash&&(!F.pathData&&(!F.strokeWidth||e.dashLen&&e.dashGap)||(P.dashLen=e.dashLen||2*P.strokeWidth,P.dashGap=e.dashGap||P.strokeWidth),F.dash=K(e,ee,`dashLen`,P.dashLen)||F.dash,F.dash=K(e,ee,`dashGap`,P.dashGap)||F.dash,F.dash&&(e.path.style.strokeDasharray=ee.dashLen+`,`+ee.dashGap)),k=P.viewBoxBBox,A=ee.viewBoxBBox,j=e.svg.viewBox.baseVal,M=e.svg.style,k.x=P.bBoxRel.left+t.left,k.y=P.bBoxRel.top+t.top,k.width=P.bBoxRel.width,k.height=P.bBoxRel.height,[`x`,`y`,`width`,`height`].forEach(function(t){(n=k[t])!==A[t]&&(j[t]=A[t]=n,M[N[t]]=n+(t===`x`||t===`y`?e.bodyOffset[t]:0)+`px`)}),F.strokeWidth||F.pathListRel||F.bBoxRel}},mouseHoverAnchor:{type:`anchor`,argOptions:[{optionName:`element`,type:De},{optionName:`showEffectName`,type:`string`}],style:{backgroundImage:`url('data:image/svg+xml;charset=utf-8;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0Ij48cG9seWdvbiBwb2ludHM9IjI0LDAgMCw4IDgsMTEgMCwxOSA1LDI0IDEzLDE2IDE2LDI0IiBmaWxsPSJjb3JhbCIvPjwvc3ZnPg==')`,backgroundSize:``,backgroundRepeat:`no-repeat`,backgroundColor:`#f8f881`,cursor:`default`},hoverStyle:{backgroundImage:`none`,backgroundColor:`#fadf8f`},padding:{top:1,right:15,bottom:1,left:2},minHeight:15,backgroundPosition:{right:2,top:2},backgroundSize:{width:12,height:12},dirKeys:[[`top`,`Top`],[`right`,`Right`],[`bottom`,`Bottom`],[`left`,`Left`]],init:function(e,r){var i,a,o,s,c,l,u,d,f,p,m,h=n.mouseHoverAnchor,g={};if(e.element=n.pointAnchor.checkElement(r.element),d=e.element,!((p=d.ownerDocument)&&(f=p.defaultView)&&f.HTMLElement&&dn(d,f.HTMLElement)))throw Error("`element` must be HTML element");return h.style.backgroundSize=h.backgroundSize.width+`px `+h.backgroundSize.height+`px`,[`style`,`hoverStyle`].forEach(function(t){var n=h[t];e[t]=Object.keys(n).reduce(function(e,t){return e[t]=n[t],e},{})}),(i=e.element.ownerDocument.defaultView.getComputedStyle(e.element,``)).display===`inline`?e.style.display=`inline-block`:i.display===`none`&&(e.style.display=`block`),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n=t[0],r=`padding`+t[1];parseFloat(i[r])<h.padding[n]&&(e.style[r]=h.padding[n]+`px`)}),e.style.display&&(s=e.element.style.display,e.element.style.display=e.style.display),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n=`padding`+t[1];e.style[n]&&(g[n]=e.element.style[n],e.element.style[n]=e.style[n])}),(o=e.element.getBoundingClientRect()).height<h.minHeight&&(ce?(m=h.minHeight,i.boxSizing===`content-box`?m-=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)+parseFloat(i.paddingTop)+parseFloat(i.paddingBottom):i.boxSizing===`padding-box`&&(m-=parseFloat(i.borderTopWidth)+parseFloat(i.borderBottomWidth)),e.style.height=m+`px`):e.style.height=parseFloat(i.height)+(h.minHeight-o.height)+`px`),e.style.backgroundPosition=de?o.width-h.backgroundSize.width-h.backgroundPosition.right+`px `+h.backgroundPosition.top+`px`:`right `+h.backgroundPosition.right+`px top `+h.backgroundPosition.top+`px`,e.style.display&&(e.element.style.display=s),n.mouseHoverAnchor.dirKeys.forEach(function(t){var n=`padding`+t[1];e.style[n]&&(e.element.style[n]=g[n])}),[`style`,`hoverStyle`].forEach(function(t){var n=e[t],i=r[t];me(i)&&Object.keys(i).forEach(function(e){typeof i[e]==`string`||he(i[e])?n[e]=i[e]:i[e]==null&&delete n[e]})}),typeof r.onSwitch==`function`&&(u=r.onSwitch),r.showEffectName&&t[r.showEffectName]&&(e.showEffectName=c=r.showEffectName),l=r.animOptions,e.elmStyle=a=e.element.style,e.mouseenter=function(t){e.hoverStyleSave=h.getStyles(a,Object.keys(e.hoverStyle)),h.setStyles(a,e.hoverStyle),e.boundTargets.forEach(function(e){Xe(e.props,!0,c,l)}),u&&u(t)},e.mouseleave=function(t){h.setStyles(a,e.hoverStyleSave),e.boundTargets.forEach(function(e){Xe(e.props,!1,c,l)}),u&&u(t)},!0},bind:function(e,t){var r,i,a,o,s;return t.props.svg?n.mouseHoverAnchor.llShow(t.props,!1,e.showEffectName):Be(function(){n.mouseHoverAnchor.llShow(t.props,!1,e.showEffectName)}),e.enabled||(e.styleSave=n.mouseHoverAnchor.getStyles(e.elmStyle,Object.keys(e.style)),n.mouseHoverAnchor.setStyles(e.elmStyle,e.style),e.removeEventListener=(r=e.element,i=e.mouseenter,a=e.mouseleave,`onmouseenter`in r&&`onmouseleave`in r?(r.addEventListener(`mouseenter`,i,!1),r.addEventListener(`mouseleave`,a,!1),function(){r.removeEventListener(`mouseenter`,i,!1),r.removeEventListener(`mouseleave`,a,!1)}):(console.warn(`mouseenter and mouseleave events polyfill is enabled.`),o=function(e){e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||i.apply(this,arguments)},r.addEventListener(`mouseover`,o),s=function(e){e.relatedTarget&&(e.relatedTarget===this||this.compareDocumentPosition(e.relatedTarget)&Node.DOCUMENT_POSITION_CONTAINED_BY)||a.apply(this,arguments)},r.addEventListener(`mouseout`,s),function(){r.removeEventListener(`mouseover`,o,!1),r.removeEventListener(`mouseout`,s,!1)})),e.enabled=!0),!0},unbind:function(e,t){e.enabled&&e.boundTargets.length<=1&&(e.removeEventListener(),n.mouseHoverAnchor.setStyles(e.elmStyle,e.styleSave),e.enabled=!1),n.mouseHoverAnchor.llShow(t.props,!0,e.showEffectName)},removeOption:function(e,t){n.pointAnchor.removeOption(e,t)},remove:function(e){e.boundTargets.length&&(console.error(`LeaderLineAttachment was not unbound by remove`),e.boundTargets.forEach(function(t){n.mouseHoverAnchor.unbind(e,t)}))},getBBoxNest:function(e,t){return Ae(e.element,t.baseWindow)},llShow:function(e,n,r){t[r||e.curStats.show_effect].stop(e,!0,n),e.aplStats.show_on=n},getStyles:function(e,t){return t.reduce(function(t,n){return t[n]=e[n],t},{})},setStyles:function(e,t){Object.keys(t).forEach(function(n){e[n]=t[n]})}},captionLabel:{type:`label`,argOptions:[{optionName:`text`,type:`string`}],stats:{color:{},x:{},y:{}},textStyleProps:[`fontFamily`,`fontStyle`,`fontVariant`,`fontWeight`,`fontStretch`,`fontSize`,`fontSizeAdjust`,`kerning`,`letterSpacing`,`wordSpacing`,`textDecoration`],init:function(e,t){return typeof t.text==`string`&&(e.text=t.text.trim()),!!e.text&&(typeof t.color==`string`&&(e.color=t.color.trim()),e.outlineColor=typeof t.outlineColor==`string`?t.outlineColor.trim():`#fff`,Array.isArray(t.offset)&&he(t.offset[0])&&he(t.offset[1])&&(e.offset={x:t.offset[0],y:t.offset[1]}),he(t.lineOffset)&&(e.lineOffset=t.lineOffset),n.captionLabel.textStyleProps.forEach(function(n){t[n]!=null&&(e[n]=t[n])}),e.updateColor=function(t){n.captionLabel.updateColor(e,t)},e.updateSocketXY=function(t){var n,r,i,a,o=e.curStats,s=e.aplStats,c=t.curStats,l=c.position_socketXYSE[e.socketIndex];l.x!=null&&(e.offset?(o.x=l.x+e.offset.x,o.y=l.y+e.offset.y):(n=e.height/2,r=Math.max(c.attach_plugSideLenSE[e.socketIndex]||0,c.line_strokeWidth/2),i=c.position_socketXYSE[+!e.socketIndex],l.socketId===_||l.socketId===h?(o.x=l.socketId===_?l.x-n-e.width:l.x+n,o.y=i.y<l.y?l.y+r+n:l.y-r-n-e.height):(o.x=i.x<l.x?l.x+r+n:l.x-r-n-e.width,o.y=l.socketId===m?l.y-n-e.height:l.y+n)),K(e,s,`x`,a=o.x)&&(e.elmPosition.x.baseVal.getItem(0).value=a),K(e,s,`y`,a=o.y)&&(e.elmPosition.y.baseVal.getItem(0).value=a+e.height))},e.updatePath=function(t){var r,i,a=e.curStats,o=e.aplStats,s=t.pathList.animVal||t.pathList.baseVal;s&&(r=n.captionLabel.getMidPoint(s,e.lineOffset),a.x=r.x-e.width/2,a.y=r.y-e.height/2,K(e,o,`x`,i=a.x)&&(e.elmPosition.x.baseVal.getItem(0).value=i),K(e,o,`y`,i=a.y)&&(e.elmPosition.y.baseVal.getItem(0).value=i+e.height))},e.updateShow=function(t){n.captionLabel.updateShow(e,t)},de&&(e.adjustEdge=function(t,r){var i=e.curStats;i.x!=null&&n.captionLabel.adjustEdge(r,{x:i.x,y:i.y,width:e.width,height:e.height},e.strokeWidth/2)}),!0)},updateColor:function(e,t){var n,r=e.curStats,i=e.aplStats,a=t.curStats;r.color=n=e.color||a.line_color,K(e,i,`color`,n)&&(e.styleFill.fill=n)},updateShow:function(e,t){var n=!0===t.isShown;n!==e.isShown&&(e.styleShow.visibility=n?``:`hidden`,e.isShown=n)},adjustEdge:function(e,t,n){var r={x1:t.x-n,y1:t.y-n,x2:t.x+t.width+n,y2:t.y+t.height+n};r.x1<e.x1&&(e.x1=r.x1),r.y1<e.y1&&(e.y1=r.y1),r.x2>e.x2&&(e.x2=r.x2),r.y2>e.y2&&(e.y2=r.y2)},newText:function(e,t,n,r,i){var a,o,s,l,u,d;return(a=t.createElementNS(L,`text`)).textContent=e,[a.x,a.y].forEach(function(e){var t=n.createSVGLength();t.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),e.baseVal.initialize(t)}),typeof c!=`boolean`&&(c=`paintOrder`in a.style),i&&!c?(s=t.createElementNS(L,`defs`),a.id=r,s.appendChild(a),(u=(o=t.createElementNS(L,`g`)).appendChild(t.createElementNS(L,`use`))).href.baseVal=`#`+r,(l=o.appendChild(t.createElementNS(L,`use`))).href.baseVal=`#`+r,(d=u.style).strokeLinejoin=`round`,{elmPosition:a,styleText:a.style,styleFill:l.style,styleStroke:d,styleShow:o.style,elmsAppend:[s,o]}):(d=a.style,i&&(d.strokeLinejoin=`round`,d.paintOrder=`stroke`),{elmPosition:a,styleText:d,styleFill:d,styleStroke:i?d:null,styleShow:d,elmsAppend:[a]})},getMidPoint:function(e,t){var n,r,i,a=Re(e),o=a.segsLen,s=a.lenAll,c=-1;if((n=s/2+(t||0))<=0)return(r=e[0]).length===2?Me(r[0],r[1],0):Pe(r[0],r[1],r[2],r[3],0);if(s<=n)return(r=e[e.length-1]).length===2?Me(r[0],r[1],1):Pe(r[0],r[1],r[2],r[3],1);for(i=[];n>o[++c];)i.push(e[c]),n-=o[c];return(r=e[c]).length===2?Me(r[0],r[1],n/o[c]):Pe(r[0],r[1],r[2],r[3],Ie(r[0],r[1],r[2],r[3],n))},initSvg:function(e,t){var r,i,a=n.captionLabel.newText(e.text,t.baseWindow.document,t.svg,p+`-captionLabel-`+e._id,e.outlineColor);[`elmPosition`,`styleFill`,`styleShow`,`elmsAppend`].forEach(function(t){e[t]=a[t]}),e.isShown=!1,e.styleShow.visibility=`hidden`,n.captionLabel.textStyleProps.forEach(function(t){e[t]!=null&&(a.styleText[t]=e[t])}),a.elmsAppend.forEach(function(e){t.svg.appendChild(e)}),r=a.elmPosition.getBBox(),e.width=r.width,e.height=r.height,e.outlineColor&&(i=10<(i=r.height/9)?10:i<2?2:i,a.styleStroke.strokeWidth=i+`px`,a.styleStroke.stroke=e.outlineColor),e.strokeWidth=i||0,Ue(e.aplStats,n.captionLabel.stats),e.updateColor(t),e.refSocketXY?e.updateSocketXY(t):e.updatePath(t),de&&Je(t,{}),e.updateShow(t)},bind:function(e,t){var r=t.props;return e.color||U(r,`cur_line_color`,e.updateColor),(e.refSocketXY=t.optionName===`startLabel`||t.optionName===`endLabel`)?(e.socketIndex=t.optionName===`startLabel`?0:1,U(r,`apl_position`,e.updateSocketXY),e.offset||(U(r,`cur_attach_plugSideLenSE`,e.updateSocketXY),U(r,`cur_line_strokeWidth`,e.updateSocketXY))):U(r,`apl_path`,e.updatePath),U(r,`svgShow`,e.updateShow),de&&U(r,`new_edge4viewBox`,e.adjustEdge),n.captionLabel.initSvg(e,r),!0},unbind:function(e,t){var r=t.props;e.elmsAppend&&(e.elmsAppend.forEach(function(e){r.svg.removeChild(e)}),e.elmPosition=e.styleFill=e.styleShow=e.elmsAppend=null),Ue(e.curStats,n.captionLabel.stats),Ue(e.aplStats,n.captionLabel.stats),e.color||ze(r,`cur_line_color`,e.updateColor),e.refSocketXY?(ze(r,`apl_position`,e.updateSocketXY),e.offset||(ze(r,`cur_attach_plugSideLenSE`,e.updateSocketXY),ze(r,`cur_line_strokeWidth`,e.updateSocketXY))):ze(r,`apl_path`,e.updatePath),ze(r,`svgShow`,e.updateShow),de&&(ze(r,`new_edge4viewBox`,e.adjustEdge),Je(r,{}))},removeOption:function(e,t){var n=t.props,r={};r[t.optionName]=``,Qe(n,r)},remove:function(e){e.boundTargets.length&&(console.error(`LeaderLineAttachment was not unbound by remove`),e.boundTargets.forEach(function(t){n.captionLabel.unbind(e,t)}))}},pathLabel:{type:`label`,argOptions:[{optionName:`text`,type:`string`}],stats:{color:{},startOffset:{},pathData:{}},init:function(e,t){return typeof t.text==`string`&&(e.text=t.text.trim()),!!e.text&&(typeof t.color==`string`&&(e.color=t.color.trim()),e.outlineColor=typeof t.outlineColor==`string`?t.outlineColor.trim():`#fff`,he(t.lineOffset)&&(e.lineOffset=t.lineOffset),n.captionLabel.textStyleProps.forEach(function(n){t[n]!=null&&(e[n]=t[n])}),e.updateColor=function(t){n.captionLabel.updateColor(e,t)},e.updatePath=function(t){var r,i=e.curStats,a=e.aplStats,o=t.curStats,s=t.pathList.animVal||t.pathList.baseVal;s&&(i.pathData=r=n.pathLabel.getOffsetPathData(s,o.line_strokeWidth/2+e.strokeWidth/2+e.height/4,1.25*e.height),H(r,a.pathData)&&(e.elmPath.setPathData(r),a.pathData=r,e.bBox=e.elmPosition.getBBox(),e.updateStartOffset(t)))},e.updateStartOffset=function(t){var n,r,i,a,o=e.curStats,s=e.aplStats,c=t.curStats;o.pathData&&(e.semIndex!==2||e.lineOffset)&&(n=o.pathData.reduce(function(e,t){var n,r=t.values;switch(t.type){case`M`:a={x:r[0],y:r[1]};break;case`L`:n={x:r[0],y:r[1]},a&&(e+=je(a,n)),a=n;break;case`C`:n={x:r[4],y:r[5]},a&&(e+=Fe(a,{x:r[0],y:r[1]},{x:r[2],y:r[3]},n)),a=n}return e},0),i=e.semIndex===0?0:e.semIndex===1?n:n/2,e.semIndex!==2&&(r=Math.max(c.attach_plugBackLenSE[e.semIndex]||0,c.line_strokeWidth/2)+e.strokeWidth/2+e.height/4,i=(i+=e.semIndex===0?r:-r)<0?0:n<i?n:i),e.lineOffset&&(i=(i+=e.lineOffset)<0?0:n<i?n:i),o.startOffset=i,K(e,s,`startOffset`,i)&&(e.elmOffset.startOffset.baseVal.value=i))},e.updateShow=function(t){n.captionLabel.updateShow(e,t)},de&&(e.adjustEdge=function(t,r){e.bBox&&n.captionLabel.adjustEdge(r,e.bBox,e.strokeWidth/2)}),!0)},getOffsetPathData:function(e,t,n){var r,i,a=[];function o(e,t){return Math.abs(e.x-t.x)<3&&Math.abs(e.y-t.y)<3}return e.forEach(function(e){var n,i,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S,C,w,T;e.length===2?(S=e[0],C=e[1],w=t,T=Math.atan2(S.y-C.y,C.x-S.x)+.5*Math.PI,n=[{x:S.x+Math.cos(T)*w,y:S.y+Math.sin(T)*w*-1},{x:C.x+Math.cos(T)*w,y:C.y+Math.sin(T)*w*-1}],r?(s=r.points,0<=(c=Math.atan2(s[1].y-s[0].y,s[0].x-s[1].x)-Math.atan2(e[0].y-e[1].y,e[1].x-e[0].x))&&c<=Math.PI?i={type:`line`,points:n,inside:!0}:(u=Ne(s[0],s[1],t),l=Ne(n[1],n[0],t),f=s[0],m=l,h=n[1],g=(p=u).x-f.x,_=p.y-f.y,v=h.x-m.x,y=h.y-m.y,b=(-_*(f.x-m.x)+g*(f.y-m.y))/(-v*_+g*y),x=(v*(f.y-m.y)-y*(f.x-m.x))/(-v*_+g*y),(d=0<=b&&b<=1&&0<=x&&x<=1?{x:f.x+x*g,y:f.y+x*_}:null)?i={type:`line`,points:[s[1]=d,n[1]]}:(s[1]=o(l,u)?l:u,i={type:`line`,points:[l,n[1]]}),r.len=je(s[0],s[1]))):i={type:`line`,points:n},i.len=je(i.points[0],i.points[1]),a.push(r=i)):(a.push({type:`cubic`,points:function(e,t,n,r,i,a){for(var o,s,c=Fe(e,t,n,r)/a,l=1/(a<i?i/a*c:c),u=[],d=0;s=(90-(o=Pe(e,t,n,r,d)).angle)*(Math.PI/180),u.push({x:o.x+Math.cos(s)*i,y:o.y+Math.sin(s)*i*-1}),!(1<=d);)1<(d+=l)&&(d=1);return u}(e[0],e[1],e[2],e[3],t,16)}),r=null)}),r=null,a.forEach(function(e){var i;e.type===`line`?(e.inside&&(r.len>t?((i=r.points)[1]=Ne(i[0],i[1],-t),r.len=je(i[0],i[1])):(r.points=null,r.len=0),e.len>t+n?((i=e.points)[0]=Ne(i[1],i[0],-(t+n)),e.len=je(i[0],i[1])):(e.points=null,e.len=0)),r=e):r=null}),a.reduce(function(e,t){var n=t.points;return n&&(i&&o(n[0],i)||e.push({type:`M`,values:[n[0].x,n[0].y]}),t.type===`line`?e.push({type:`L`,values:[n[1].x,n[1].y]}):(n.shift(),n.forEach(function(t){e.push({type:`L`,values:[t.x,t.y]})})),i=n[n.length-1]),e},[])},newText:function(e,t,n,r){var i,a,o,s,l,u,d,f,p,m;return(s=(o=t.createElementNS(L,`defs`)).appendChild(t.createElementNS(L,`path`))).id=i=n+`-path`,(u=(l=t.createElementNS(L,`text`)).appendChild(t.createElementNS(L,`textPath`))).href.baseVal=`#`+i,u.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PX,0),u.textContent=e,typeof c!=`boolean`&&(c=`paintOrder`in l.style),r&&!c?(l.id=a=n+`-text`,o.appendChild(l),(p=(d=t.createElementNS(L,`g`)).appendChild(t.createElementNS(L,`use`))).href.baseVal=`#`+a,(f=d.appendChild(t.createElementNS(L,`use`))).href.baseVal=`#`+a,(m=p.style).strokeLinejoin=`round`,{elmPosition:l,elmPath:s,elmOffset:u,styleText:l.style,styleFill:f.style,styleStroke:m,styleShow:d.style,elmsAppend:[o,d]}):(m=l.style,r&&(m.strokeLinejoin=`round`,m.paintOrder=`stroke`),{elmPosition:l,elmPath:s,elmOffset:u,styleText:m,styleFill:m,styleStroke:r?m:null,styleShow:m,elmsAppend:[o,l]})},initSvg:function(e,t){var r,i,a=n.pathLabel.newText(e.text,t.baseWindow.document,p+`-pathLabel-`+e._id,e.outlineColor);[`elmPosition`,`elmPath`,`elmOffset`,`styleFill`,`styleShow`,`elmsAppend`].forEach(function(t){e[t]=a[t]}),e.isShown=!1,e.styleShow.visibility=`hidden`,n.captionLabel.textStyleProps.forEach(function(t){e[t]!=null&&(a.styleText[t]=e[t])}),a.elmsAppend.forEach(function(e){t.svg.appendChild(e)}),a.elmPath.setPathData([{type:`M`,values:[0,100]},{type:`h`,values:[100]}]),r=a.elmPosition.getBBox(),a.styleText.textAnchor=[`start`,`end`,`middle`][e.semIndex],e.semIndex!==2||e.lineOffset||a.elmOffset.startOffset.baseVal.newValueSpecifiedUnits(SVGLength.SVG_LENGTHTYPE_PERCENTAGE,50),e.height=r.height,e.outlineColor&&(i=10<(i=r.height/9)?10:i<2?2:i,a.styleStroke.strokeWidth=i+`px`,a.styleStroke.stroke=e.outlineColor),e.strokeWidth=i||0,Ue(e.aplStats,n.pathLabel.stats),e.updateColor(t),e.updatePath(t),e.updateStartOffset(t),de&&Je(t,{}),e.updateShow(t)},bind:function(e,t){var r=t.props;return e.color||U(r,`cur_line_color`,e.updateColor),U(r,`cur_line_strokeWidth`,e.updatePath),U(r,`apl_path`,e.updatePath),e.semIndex=t.optionName===`startLabel`?0:t.optionName===`endLabel`?1:2,(e.semIndex!==2||e.lineOffset)&&U(r,`cur_attach_plugBackLenSE`,e.updateStartOffset),U(r,`svgShow`,e.updateShow),de&&U(r,`new_edge4viewBox`,e.adjustEdge),n.pathLabel.initSvg(e,r),!0},unbind:function(e,t){var r=t.props;e.elmsAppend&&(e.elmsAppend.forEach(function(e){r.svg.removeChild(e)}),e.elmPosition=e.elmPath=e.elmOffset=e.styleFill=e.styleShow=e.elmsAppend=null),Ue(e.curStats,n.pathLabel.stats),Ue(e.aplStats,n.pathLabel.stats),e.color||ze(r,`cur_line_color`,e.updateColor),ze(r,`cur_line_strokeWidth`,e.updatePath),ze(r,`apl_path`,e.updatePath),(e.semIndex!==2||e.lineOffset)&&ze(r,`cur_attach_plugBackLenSE`,e.updateStartOffset),ze(r,`svgShow`,e.updateShow),de&&(ze(r,`new_edge4viewBox`,e.adjustEdge),Je(r,{}))},removeOption:function(e,t){var n=t.props,r={};r[t.optionName]=``,Qe(n,r)},remove:function(e){e.boundTargets.length&&(console.error(`LeaderLineAttachment was not unbound by remove`),e.boundTargets.forEach(function(t){n.pathLabel.unbind(e,t)}))}}},Object.keys(n).forEach(function(e){$e[e]=function(){return new r(n[e],Array.prototype.slice.call(arguments))}}),$e.positionByWindowResize=!0,window.addEventListener(`resize`,_e.add(function(){$e.positionByWindowResize&&Object.keys(xe).forEach(function(e){Je(xe[e],{position:!0})})}),!1),$e}(),e(`a`,{setLine:function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return new j(e,t,n)},obj:j}),Ke(),l=Symbol.for(`DndContextType`),O=`dnd-core/INIT_COORDS`,a=`dnd-core/BEGIN_DRAG`,F=`dnd-core/PUBLISH_DRAG_SOURCE`,S=`dnd-core/HOVER`,c=`dnd-core/DROP`,_=`dnd-core/END_DRAG`,oe={type:O,payload:{clientOffset:null,sourceClientOffset:null}},u=function(){function e(t,n){var r=this;sn(this,e),this.isSetUp=!1,this.handleRefCountChange=function(){var e=r.store.getState().refCount>0;r.backend&&(e&&!r.isSetUp?(r.backend.setup(),r.isSetUp=!0):!e&&r.isSetUp&&(r.backend.teardown(),r.isSetUp=!1))},this.store=t,this.monitor=n,t.subscribe(this.handleRefCountChange)}return ln(e,[{key:`receiveBackend`,value:function(e){this.backend=e}},{key:`getMonitor`,value:function(){return this.monitor}},{key:`getBackend`,value:function(){return this.backend}},{key:`getRegistry`,value:function(){return this.monitor.registry}},{key:`getActions`,value:function(){var e=this,t=this.store.dispatch;function n(n){return function(){var r=[...arguments],i=n.apply(e,r);i!==void 0&&t(i)}}var r=ri(this);return Object.keys(r).reduce(function(e,t){var i=r[t];return e[t]=n(i),e},{})}},{key:`dispatch`,value:function(e){this.store.dispatch(e)}}]),e}(),N=[],i=[],N.__IS_NONE__=!0,i.__IS_ALL__=!0,d=function(){function e(t,n){sn(this,e),this.store=t,this.registry=n}return ln(e,[{key:`subscribeToStateChange`,value:function(e){var t=this,n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{}).handlerIds;q(typeof e==`function`,`listener must be a function.`),q(n===void 0||Array.isArray(n),`handlerIds, when specified, must be an array of strings.`);var r=this.store.getState().stateId;return this.store.subscribe(function(){var i=t.store.getState(),a=i.stateId;try{a===r||a===r+1&&!ci(i.dirtyHandlerIds,n)||e()}finally{r=a}})}},{key:`subscribeToOffsetChange`,value:function(e){var t=this;q(typeof e==`function`,`listener must be a function.`);var n=this.store.getState().dragOffset;return this.store.subscribe(function(){var r=t.store.getState().dragOffset;r!==n&&(n=r,e())})}},{key:`canDragSource`,value:function(e){if(!e)return!1;var t=this.registry.getSource(e);return q(t,`Expected to find a valid source. sourceId=`.concat(e)),!this.isDragging()&&t.canDrag(this,e)}},{key:`canDropOnTarget`,value:function(e){if(!e)return!1;var t=this.registry.getTarget(e);return q(t,`Expected to find a valid target. targetId=`.concat(e)),!this.isDragging()||this.didDrop()?!1:Xr(this.registry.getTargetType(e),this.getItemType())&&t.canDrop(this,e)}},{key:`isDragging`,value:function(){return!!this.getItemType()}},{key:`isDraggingSource`,value:function(e){if(!e)return!1;var t=this.registry.getSource(e,!0);return q(t,`Expected to find a valid source. sourceId=`.concat(e)),!this.isDragging()||!this.isSourcePublic()||this.registry.getSourceType(e)!==this.getItemType()?!1:t.isDragging(this,e)}},{key:`isOverTarget`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{shallow:!1};if(!e)return!1;var n=t.shallow;if(!this.isDragging())return!1;var r=this.registry.getTargetType(e),i=this.getItemType();if(i&&!Xr(r,i))return!1;var a=this.getTargetIds();if(!a.length)return!1;var o=a.indexOf(e);return n?o===a.length-1:o>-1}},{key:`getItemType`,value:function(){return this.store.getState().dragOperation.itemType}},{key:`getItem`,value:function(){return this.store.getState().dragOperation.item}},{key:`getSourceId`,value:function(){return this.store.getState().dragOperation.sourceId}},{key:`getTargetIds`,value:function(){return this.store.getState().dragOperation.targetIds}},{key:`getDropResult`,value:function(){return this.store.getState().dragOperation.dropResult}},{key:`didDrop`,value:function(){return this.store.getState().dragOperation.didDrop}},{key:`isSourcePublic`,value:function(){return!!this.store.getState().dragOperation.isSourcePublic}},{key:`getInitialClientOffset`,value:function(){return this.store.getState().dragOffset.initialClientOffset}},{key:`getInitialSourceClientOffset`,value:function(){return this.store.getState().dragOffset.initialSourceClientOffset}},{key:`getClientOffset`,value:function(){return this.store.getState().dragOffset.clientOffset}},{key:`getSourceClientOffset`,value:function(){return oi(this.store.getState().dragOffset)}},{key:`getDifferenceFromInitialOffset`,value:function(){return si(this.store.getState().dragOffset)}}]),e}(),n=`dnd-core/ADD_SOURCE`,r=`dnd-core/ADD_TARGET`,ie=`dnd-core/REMOVE_SOURCE`,I=`dnd-core/REMOVE_TARGET`,(function(e){e.SOURCE=`SOURCE`,e.TARGET=`TARGET`})(E||(E={})),St=0,T=function(){function e(t){sn(this,e),this.types=new Map,this.dragSources=new Map,this.dropTargets=new Map,this.pinnedSourceId=null,this.pinnedSource=null,this.store=t}return ln(e,[{key:`addSource`,value:function(e,t){hi(e),pi(t);var n=this.addHandler(E.SOURCE,e,t);return this.store.dispatch(li(n)),n}},{key:`addTarget`,value:function(e,t){hi(e,!0),mi(t);var n=this.addHandler(E.TARGET,e,t);return this.store.dispatch(ui(n)),n}},{key:`containsHandler`,value:function(e){return yi(this.dragSources,e)||yi(this.dropTargets,e)}},{key:`getSource`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return q(this.isSourceId(e),`Expected a valid source ID.`),t&&e===this.pinnedSourceId?this.pinnedSource:this.dragSources.get(e)}},{key:`getTarget`,value:function(e){return q(this.isTargetId(e),`Expected a valid target ID.`),this.dropTargets.get(e)}},{key:`getSourceType`,value:function(e){return q(this.isSourceId(e),`Expected a valid source ID.`),this.types.get(e)}},{key:`getTargetType`,value:function(e){return q(this.isTargetId(e),`Expected a valid target ID.`),this.types.get(e)}},{key:`isSourceId`,value:function(e){return vi(e)===E.SOURCE}},{key:`isTargetId`,value:function(e){return vi(e)===E.TARGET}},{key:`removeSource`,value:function(e){var t=this;q(this.getSource(e),`Expected an existing source.`),this.store.dispatch(di(e)),Te(function(){t.dragSources.delete(e),t.types.delete(e)})}},{key:`removeTarget`,value:function(e){q(this.getTarget(e),`Expected an existing target.`),this.store.dispatch(fi(e)),this.dropTargets.delete(e),this.types.delete(e)}},{key:`pinSource`,value:function(e){var t=this.getSource(e);q(t,`Expected an existing source.`),this.pinnedSourceId=e,this.pinnedSource=t}},{key:`unpinSource`,value:function(){q(this.pinnedSource,`No source is pinned at the time.`),this.pinnedSourceId=null,this.pinnedSource=null}},{key:`addHandler`,value:function(e,t,n){var r=_i(e);return this.types.set(r,t),e===E.SOURCE?this.dragSources.set(r,n):e===E.TARGET&&this.dropTargets.set(r,n),r}}]),e}(),qt=function(e,t){return e===t},Xe={initialSourceClientOffset:null,initialClientOffset:null,clientOffset:null},Ye={itemType:null,item:null,sourceId:null,targetIds:[],dropResult:null,didDrop:!1,isSourcePublic:null},Ke(),Ft=0,k=Symbol.for(`__VUE_DND_CONTEXT_INSTANCE__`),e(`i`,Le({name:`DndProvider`,props:{manager:{type:Object},backend:{type:Function},context:{type:Object},options:{type:Object},debugMode:{type:Boolean}},setup:function(e,t){var n=t.slots,r=Bi(Ui(e),2),i=r[0],a=r[1];a&&++Ft,Tt(function(){if(a){var e=Gi();--Ft===0&&(e[k]=null)}}),Or(i);var o;return function(){var e;return(o=(e=n.default)==null?void 0:e.call(n))==null?null:o}}})),Ke(),Le({props:{connect:{type:Function,required:!0},src:{type:String,required:!0}},setup:function(e){return rn(function(){if(!(typeof Image>`u`)){var t=!1,n=new Image;return n.src=e.src,n.onload=function(){e.connect(n),t=!0},function(){t&&e.connect(null)}}}),function(){return null}}}),Qe=!1,et=!1,p=function(){function e(t){Ki(this,e),this.sourceId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.sourceId=e},t.getHandlerId=function(){return this.sourceId},t.canDrag=function(){q(!Qe,`You may not call monitor.canDrag() inside your canDrag() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return Qe=!0,this.internalMonitor.canDragSource(this.sourceId)}finally{Qe=!1}},t.isDragging=function(){if(!this.sourceId)return!1;q(!et,`You may not call monitor.isDragging() inside your isDragging() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drag-source-monitor`);try{return et=!0,this.internalMonitor.isDraggingSource(this.sourceId)}finally{et=!1}},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.isDraggingSource=function(e){return this.internalMonitor.isDraggingSource(e)},t.isOverTarget=function(e,t){return this.internalMonitor.isOverTarget(e,t)},t.getTargetIds=function(){return this.internalMonitor.getTargetIds()},t.isSourcePublic=function(){return this.internalMonitor.isSourcePublic()},t.getSourceId=function(){return this.internalMonitor.getSourceId()},t.subscribeToOffsetChange=function(e){return this.internalMonitor.subscribeToOffsetChange(e)},t.canDragSource=function(e){return this.internalMonitor.canDragSource(e)},t.canDropOnTarget=function(e){return this.internalMonitor.canDropOnTarget(e)},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),$e=!1,h=function(){function e(t){qi(this,e),this.targetId=null,this.internalMonitor=t.getMonitor()}var t=e.prototype;return t.receiveHandlerId=function(e){this.targetId=e},t.getHandlerId=function(){return this.targetId},t.subscribeToStateChange=function(e,t){return this.internalMonitor.subscribeToStateChange(e,t)},t.canDrop=function(){if(!this.targetId)return!1;q(!$e,`You may not call monitor.canDrop() inside your canDrop() implementation. Read more: http://react-dnd.github.io/react-dnd/docs/api/drop-target-monitor`);try{return $e=!0,this.internalMonitor.canDropOnTarget(this.targetId)}finally{$e=!1}},t.isOver=function(e){return this.targetId?this.internalMonitor.isOverTarget(this.targetId,e):!1},t.getItemType=function(){return this.internalMonitor.getItemType()},t.getItem=function(){return this.internalMonitor.getItem()},t.getDropResult=function(){return this.internalMonitor.getDropResult()},t.didDrop=function(){return this.internalMonitor.didDrop()},t.getInitialClientOffset=function(){return this.internalMonitor.getInitialClientOffset()},t.getInitialSourceClientOffset=function(){return this.internalMonitor.getInitialSourceClientOffset()},t.getSourceClientOffset=function(){return this.internalMonitor.getSourceClientOffset()},t.getClientOffset=function(){return this.internalMonitor.getClientOffset()},t.getDifferenceFromInitialOffset=function(){return this.internalMonitor.getDifferenceFromInitialOffset()},e}(),Ce=function(e){"@swc/helpers - typeof";return e&&typeof Symbol<`u`&&e.constructor===Symbol?`symbol`:typeof e},L=function(){function e(t){var n=this;ea(this,e),this.hooks=$i({dragSource:function(e,t){n.clearDragSource(),n.dragSourceOptions=t||null,n.dragSourceNode=e,n.reconnectDragSource()},dragPreview:function(e,t){n.clearDragPreview(),n.dragPreviewOptions=t||null,n.dragPreviewNode=e,n.reconnectDragPreview()}}),this.handlerId=null,this.dragSourceOptionsInternal=null,this.dragPreviewOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDragSource=null,this.lastConnectedDragSourceOptions=null,this.lastConnectedDragPreview=null,this.lastConnectedDragPreviewOptions=null,this.backend=t}var t=e.prototype;return t.receiveHandlerId=function(e){this.handlerId!==e&&(this.handlerId=e,this.reconnect())},t.reconnect=function(){var e=this.reconnectDragSource();this.reconnectDragPreview(e)},t.reconnectDragSource=function(){var e=this.dragSource,t=this.didHandlerIdChange()||this.didConnectedDragSourceChange()||this.didDragSourceOptionsChange();return t&&this.disconnectDragSource(),this.handlerId?e?(t&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragSource=e,this.lastConnectedDragSourceOptions=this.dragSourceOptions,this.dragSourceUnsubscribe=this.backend.connectDragSource(this.handlerId,e,this.dragSourceOptions)),t):(this.lastConnectedDragSource=e,t):t},t.reconnectDragPreview=function(){var e=arguments.length>0&&arguments[0]!==void 0&&arguments[0],t=this.dragPreview,n=e||this.didHandlerIdChange()||this.didConnectedDragPreviewChange()||this.didDragPreviewOptionsChange();if(n&&this.disconnectDragPreview(),this.handlerId){if(!t){this.lastConnectedDragPreview=t;return}n&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDragPreview=t,this.lastConnectedDragPreviewOptions=this.dragPreviewOptions,this.dragPreviewUnsubscribe=this.backend.connectDragPreview(this.handlerId,t,this.dragPreviewOptions))}},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didConnectedDragSourceChange=function(){return this.lastConnectedDragSource!==this.dragSource},t.didConnectedDragPreviewChange=function(){return this.lastConnectedDragPreview!==this.dragPreview},t.didDragSourceOptionsChange=function(){return!Wt(this.lastConnectedDragSourceOptions,this.dragSourceOptions)},t.didDragPreviewOptionsChange=function(){return!Wt(this.lastConnectedDragPreviewOptions,this.dragPreviewOptions)},t.disconnectDragSource=function(){this.dragSourceUnsubscribe&&(this.dragSourceUnsubscribe(),this.dragSourceUnsubscribe=void 0)},t.disconnectDragPreview=function(){this.dragPreviewUnsubscribe&&(this.dragPreviewUnsubscribe(),this.dragPreviewUnsubscribe=void 0,this.dragPreviewNode=null)},t.clearDragSource=function(){this.dragSourceNode=null},t.clearDragPreview=function(){this.dragPreviewNode=null},na(e,[{key:`connectTarget`,get:function(){return this.dragSource}},{key:`dragSourceOptions`,get:function(){return this.dragSourceOptionsInternal},set:function(e){this.dragSourceOptionsInternal=e}},{key:`dragPreviewOptions`,get:function(){return this.dragPreviewOptionsInternal},set:function(e){this.dragPreviewOptionsInternal=e}},{key:`dragSource`,get:function(){return this.dragSourceNode}},{key:`dragPreview`,get:function(){return this.dragPreviewNode}}]),e}(),Ge(),ce=function(){function e(t){var n=this;ra(this,e),this.hooks=$i({dropTarget:function(e,t){n.clearDropTarget(),n.dropTargetOptions=t,rt(e)?n.dropTargetRef=e:n.dropTargetNode=e,n.reconnect()}}),this.handlerId=null,this.dropTargetRef=null,this.dropTargetOptionsInternal=null,this.lastConnectedHandlerId=null,this.lastConnectedDropTarget=null,this.lastConnectedDropTargetOptions=null,this.backend=t}var t=e.prototype;return t.reconnect=function(){var e=this.didHandlerIdChange()||this.didDropTargetChange()||this.didOptionsChange();e&&this.disconnectDropTarget();var t=this.dropTarget;if(this.handlerId){if(!t){this.lastConnectedDropTarget=t;return}e&&(this.lastConnectedHandlerId=this.handlerId,this.lastConnectedDropTarget=t,this.lastConnectedDropTargetOptions=this.dropTargetOptions,this.unsubscribeDropTarget=this.backend.connectDropTarget(this.handlerId,t,this.dropTargetOptions))}},t.receiveHandlerId=function(e){e!==this.handlerId&&(this.handlerId=e,this.reconnect())},t.didHandlerIdChange=function(){return this.lastConnectedHandlerId!==this.handlerId},t.didDropTargetChange=function(){return this.lastConnectedDropTarget!==this.dropTarget},t.didOptionsChange=function(){return!Wt(this.lastConnectedDropTargetOptions,this.dropTargetOptions)},t.disconnectDropTarget=function(){this.unsubscribeDropTarget&&(this.unsubscribeDropTarget(),this.unsubscribeDropTarget=void 0)},t.clearDropTarget=function(){this.dropTargetRef=null,this.dropTargetNode=null},aa(e,[{key:`connectTarget`,get:function(){return this.dropTarget}},{key:`dropTargetOptions`,get:function(){return this.dropTargetOptionsInternal},set:function(e){this.dropTargetOptionsInternal=e}},{key:`dropTarget`,get:function(){return this.dropTargetNode||this.dropTargetRef&&this.dropTargetRef.value}}]),e}(),Ge(),f=function(){function e(t,n,r){ca(this,e),this.spec=t,this.monitor=n,this.connector=r}var t=e.prototype;return t.beginDrag=function(){var e=this.spec,t=this.monitor,n=null;return n=hn(e.item)===`object`?e.item:typeof e.item==`function`?e.item(t):{},n==null?null:n},t.canDrag=function(){var e=this.spec,t=this.monitor;return typeof e.canDrag==`boolean`?e.canDrag:typeof e.canDrag!=`function`||e.canDrag(t)},t.isDragging=function(e,t){var n=this.spec,r=this.monitor,i=n.isDragging;return i?i(r):t===e.getSourceId()},t.endDrag=function(){var e=this.spec,t=this.monitor,n=this.connector,r=e.end;r&&r(t.getItem(),t),n.reconnect()},e}(),Ke(),Ge(),Ke(),Ge(),Ge(),Ke(),Ke(),Ke(),Ge(),Ke(),Ge(),We=me(It()),Ge(),Ke(),Ge(),Ke(),Ge(),Ge(),Ke(),Ke(),Ge(),Ke(),Ge(),Ke(),Ge(),m=function(){function e(t,n){Ia(this,e),this.spec=t,this.monitor=n}var t=e.prototype;return t.canDrop=function(){var e=this.spec,t=this.monitor;return!e.canDrop||e.canDrop(t.getItem(),t)},t.hover=function(){var e=this.spec,t=this.monitor;e.hover&&e.hover(t.getItem(),t)},t.drop=function(){var e=this.spec,t=this.monitor;if(e.drop)return e.drop(t.getItem(),t)},e}(),Ke(),Ge(),Ge(),Ke(),Ke(),Ge(),Ke(),Ge(),Ke(),Ge(),Ke(),Ge(),y=function(){function e(t){sn(this,e),this.entered=[],this.isNodeInDocument=t}return ln(e,[{key:`enter`,value:function(e){var t=this,n=this.entered.length,r=function(n){return t.isNodeInDocument(n)&&(!n.contains||n.contains(e))};return this.entered=Za(this.entered.filter(r),[e]),n===0&&this.entered.length>0}},{key:`leave`,value:function(e){var t=this.entered.length;return this.entered=Xa(this.entered.filter(this.isNodeInDocument),e),t>0&&this.entered.length===0}},{key:`reset`,value:function(){this.entered=[]}}]),e}(),P=function(){function e(t){sn(this,e),this.config=t,this.item={},this.initializeExposedProperties()}return ln(e,[{key:`initializeExposedProperties`,value:function(){var e=this;Object.keys(this.config.exposeProperties).forEach(function(t){Object.defineProperty(e.item,t,{configurable:!0,enumerable:!0,get:function(){return console.warn(`Browser doesn't allow reading "`.concat(t,`" until the drop event.`)),null}})})}},{key:`loadDataTransfer`,value:function(e){var t=this;if(e){var n={};Object.keys(this.config.exposeProperties).forEach(function(r){var i=t.config.exposeProperties[r];i!=null&&(n[r]={value:i(e,t.config.matchesTypes),configurable:!0,enumerable:!0})}),Object.defineProperties(this.item,n)}}},{key:`canDrag`,value:function(){return!0}},{key:`beginDrag`,value:function(){return this.item}},{key:`isDragging`,value:function(e,t){return t===e.getSourceId()}},{key:`endDrag`,value:function(){}}]),e}(),ee=fe({FILE:function(){return b},HTML:function(){return C},TEXT:function(){return R},URL:function(){return le}}),b=`__NATIVE_FILE__`,le=`__NATIVE_URL__`,R=`__NATIVE_TEXT__`,C=`__NATIVE_HTML__`,_t=(ye={},un(ye,b,{exposeProperties:{files:function(e){return Array.prototype.slice.call(e.files)},items:function(e){return e.items},dataTransfer:function(e){return e}},matchesTypes:[`Files`]}),un(ye,C,{exposeProperties:{html:function(e,t){return Qa(e,t,``)},dataTransfer:function(e){return e}},matchesTypes:[`Html`,`text/html`]}),un(ye,le,{exposeProperties:{urls:function(e,t){return Qa(e,t,``).split(`
|
|
`)},dataTransfer:function(e){return e}},matchesTypes:[`Url`,`text/uri-list`]}),un(ye,R,{exposeProperties:{text:function(e,t){return Qa(e,t,``)},dataTransfer:function(e){return e}},matchesTypes:[`Text`,`text/plain`]}),ye),nt=Ya(function(){return/firefox/i.test(navigator.userAgent)}),it=Ya(function(){return!!window.safari}),M=function(){function e(t,n){sn(this,e);for(var r=t.length,i=[],a=0;a<r;a++)i.push(a);i.sort(function(e,n){return t[e]<t[n]?-1:1});for(var o=[],s=[],c=[],l,u,d=0;d<r-1;d++)l=t[d+1]-t[d],u=n[d+1]-n[d],s.push(l),o.push(u),c.push(u/l);for(var f=[c[0]],p=0;p<s.length-1;p++){var m=c[p],h=c[p+1];if(m*h<=0)f.push(0);else{l=s[p];var g=s[p+1],_=l+g;f.push(3*_/((_+g)/m+(_+l)/h))}}f.push(c[c.length-1]);for(var v=[],y=[],b,x=0;x<f.length-1;x++){b=c[x];var S=f[x],C=1/s[x],w=S+f[x+1]-b-b;v.push((b-S-w)*C),y.push(w*C*C)}this.xs=t,this.ys=n,this.c1s=f,this.c2s=v,this.c3s=y}return ln(e,[{key:`interpolate`,value:function(e){var t=this,n=t.xs,r=t.ys,i=t.c1s,a=t.c2s,o=t.c3s,s=n.length-1;if(e===n[s])return r[s];for(var c=0,l=o.length-1,u;c<=l;){u=Math.floor(.5*(c+l));var d=n[u];if(d<e)c=u+1;else if(d>e)l=u-1;else return r[u]}s=Math.max(0,l);var f=e-n[s],p=f*f;return r[s]+i[s]*f+a[s]*p+o[s]*f*p}}]),e}(),g=1,te=function(){function e(t,n){sn(this,e),this.ownerDocument=null,this.globalContext=t,this.optionsArgs=n}return ln(e,[{key:`window`,get:function(){if(this.globalContext)return this.globalContext;if(typeof window<`u`)return window}},{key:`document`,get:function(){var e;if((e=this.globalContext)!=null&&e.document)return this.globalContext.document;if(this.window)return this.window.document}},{key:`rootElement`,get:function(){var e;return((e=this.optionsArgs)==null?void 0:e.rootElement)||this.window}}]),e}(),w=function(){function e(t,n,r){var i=this;sn(this,e),this.sourcePreviewNodes=new Map,this.sourcePreviewNodeOptions=new Map,this.sourceNodes=new Map,this.sourceNodeOptions=new Map,this.dragStartSourceIds=null,this.dropTargetIds=[],this.dragEnterTargetIds=[],this.currentNativeSource=null,this.currentNativeHandle=null,this.currentDragSourceNode=null,this.altKeyPressed=!1,this.mouseMoveTimeoutTimer=null,this.asyncEndDragFrameId=null,this.dragOverTargetIds=null,this.lastClientOffset=null,this.hoverRafId=null,this.getSourceClientOffset=function(e){var t=i.sourceNodes.get(e);return t&&to(t)||null},this.endDragNativeItem=function(){i.isDraggingNativeItem()&&(i.actions.endDrag(),i.currentNativeHandle&&i.registry.removeSource(i.currentNativeHandle),i.currentNativeHandle=null,i.currentNativeSource=null)},this.isNodeInDocument=function(e){return!!(e&&i.document&&i.document.body&&i.document.body.contains(e))},this.endDragIfSourceWasRemovedFromDOM=function(){var e=i.currentDragSourceNode;e==null||i.isNodeInDocument(e)||(i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag(),i.cancelHover())},this.scheduleHover=function(e){i.hoverRafId===null&&typeof requestAnimationFrame<`u`&&(i.hoverRafId=requestAnimationFrame(function(){i.monitor.isDragging()&&i.actions.hover(e||[],{clientOffset:i.lastClientOffset}),i.hoverRafId=null}))},this.cancelHover=function(){i.hoverRafId!==null&&typeof cancelAnimationFrame<`u`&&(cancelAnimationFrame(i.hoverRafId),i.hoverRafId=null)},this.handleTopDragStartCapture=function(){i.clearCurrentDragSourceNode(),i.dragStartSourceIds=[]},this.handleTopDragStart=function(e){if(!e.defaultPrevented){var t=i.dragStartSourceIds;i.dragStartSourceIds=null;var n=no(e);i.monitor.isDragging()&&(i.actions.endDrag(),i.cancelHover()),i.actions.beginDrag(t||[],{publishSource:!1,getSourceClientOffset:i.getSourceClientOffset,clientOffset:n});var r=e.dataTransfer,a=eo(r);if(i.monitor.isDragging()){if(r&&typeof r.setDragImage==`function`){var o=i.monitor.getSourceId(),s=i.sourceNodes.get(o),c=i.sourcePreviewNodes.get(o)||s;if(c){var l=i.getCurrentSourcePreviewNodeOptions(),u=l.anchorX,d=l.anchorY,f=l.offsetX,p=l.offsetY,m=ao(s,c,n,{anchorX:u,anchorY:d},{offsetX:f,offsetY:p});r.setDragImage(c,m.x,m.y)}}try{r==null||r.setData(`application/json`,{})}catch(e){}i.setCurrentDragSourceNode(e.target),i.getCurrentSourcePreviewNodeOptions().captureDraggingState?i.actions.publishDragSource():setTimeout(function(){return i.actions.publishDragSource()},0)}else if(a)i.beginDragNativeItem(a);else if(r&&!r.types&&(e.target&&!e.target.hasAttribute||!e.target.hasAttribute(`draggable`)))return;else e.preventDefault()}},this.handleTopDragEndCapture=function(){i.clearCurrentDragSourceNode()&&i.monitor.isDragging()&&i.actions.endDrag(),i.cancelHover()},this.handleTopDragEnterCapture=function(e){if(i.dragEnterTargetIds=[],i.isDraggingNativeItem()){var t;(t=i.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}if(!(!i.enterLeaveCounter.enter(e.target)||i.monitor.isDragging())){var n=e.dataTransfer,r=eo(n);r&&i.beginDragNativeItem(r,n)}},this.handleTopDragEnter=function(e){var t=i.dragEnterTargetIds;i.dragEnterTargetIds=[],i.monitor.isDragging()&&(i.altKeyPressed=e.altKey,t.length>0&&i.actions.hover(t,{clientOffset:no(e)}),t.some(function(e){return i.monitor.canDropOnTarget(e)})&&(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())))},this.handleTopDragOverCapture=function(e){if(i.dragOverTargetIds=[],i.isDraggingNativeItem()){var t;(t=i.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}},this.handleTopDragOver=function(e){var t=i.dragOverTargetIds;if(i.dragOverTargetIds=[],!i.monitor.isDragging()){e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`);return}i.altKeyPressed=e.altKey,i.lastClientOffset=no(e),i.scheduleHover(t),(t||[]).some(function(e){return i.monitor.canDropOnTarget(e)})?(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=i.getCurrentDropEffect())):i.isDraggingNativeItem()?e.preventDefault():(e.preventDefault(),e.dataTransfer&&(e.dataTransfer.dropEffect=`none`))},this.handleTopDragLeaveCapture=function(e){i.isDraggingNativeItem()&&e.preventDefault(),i.enterLeaveCounter.leave(e.target)&&(i.isDraggingNativeItem()&&setTimeout(function(){return i.endDragNativeItem()},0),i.cancelHover())},this.handleTopDropCapture=function(e){if(i.dropTargetIds=[],i.isDraggingNativeItem()){var t;e.preventDefault(),(t=i.currentNativeSource)==null||t.loadDataTransfer(e.dataTransfer)}else eo(e.dataTransfer)&&e.preventDefault();i.enterLeaveCounter.reset()},this.handleTopDrop=function(e){var t=i.dropTargetIds;i.dropTargetIds=[],i.actions.hover(t,{clientOffset:no(e)}),i.actions.drop({dropEffect:i.getCurrentDropEffect()}),i.isDraggingNativeItem()?i.endDragNativeItem():i.monitor.isDragging()&&i.actions.endDrag(),i.cancelHover()},this.handleSelectStart=function(e){var t=e.target;typeof t.dragDrop==`function`&&(t.tagName===`INPUT`||t.tagName===`SELECT`||t.tagName===`TEXTAREA`||t.isContentEditable||(e.preventDefault(),t.dragDrop()))},this.options=new te(n,r),this.actions=t.getActions(),this.monitor=t.getMonitor(),this.registry=t.getRegistry(),this.enterLeaveCounter=new y(this.isNodeInDocument)}return ln(e,[{key:`profile`,value:function(){var e,t;return{sourcePreviewNodes:this.sourcePreviewNodes.size,sourcePreviewNodeOptions:this.sourcePreviewNodeOptions.size,sourceNodeOptions:this.sourceNodeOptions.size,sourceNodes:this.sourceNodes.size,dragStartSourceIds:((e=this.dragStartSourceIds)==null?void 0:e.length)||0,dropTargetIds:this.dropTargetIds.length,dragEnterTargetIds:this.dragEnterTargetIds.length,dragOverTargetIds:((t=this.dragOverTargetIds)==null?void 0:t.length)||0}}},{key:`window`,get:function(){return this.options.window}},{key:`document`,get:function(){return this.options.document}},{key:`rootElement`,get:function(){return this.options.rootElement}},{key:`setup`,value:function(){var e=this.rootElement;if(e!==void 0){if(e.__isReactDndBackendSetUp)throw Error(`Cannot have two HTML5 backends at the same time.`);e.__isReactDndBackendSetUp=!0,this.addEventListeners(e)}}},{key:`teardown`,value:function(){var e=this.rootElement;if(e!==void 0&&(e.__isReactDndBackendSetUp=!1,this.removeEventListeners(this.rootElement),this.clearCurrentDragSourceNode(),this.asyncEndDragFrameId)){var t;(t=this.window)==null||t.cancelAnimationFrame(this.asyncEndDragFrameId)}}},{key:`connectDragPreview`,value:function(e,t,n){var r=this;return this.sourcePreviewNodeOptions.set(e,n),this.sourcePreviewNodes.set(e,t),function(){r.sourcePreviewNodes.delete(e),r.sourcePreviewNodeOptions.delete(e)}}},{key:`connectDragSource`,value:function(e,t,n){var r=this;this.sourceNodes.set(e,t),this.sourceNodeOptions.set(e,n);var i=function(t){return r.handleDragStart(t,e)},a=function(e){return r.handleSelectStart(e)};return t.setAttribute(`draggable`,`true`),t.addEventListener(`dragstart`,i),t.addEventListener(`selectstart`,a),function(){r.sourceNodes.delete(e),r.sourceNodeOptions.delete(e),t.removeEventListener(`dragstart`,i),t.removeEventListener(`selectstart`,a),t.setAttribute(`draggable`,`false`)}}},{key:`connectDropTarget`,value:function(e,t){var n=this,r=function(t){return n.handleDragEnter(t,e)},i=function(t){return n.handleDragOver(t,e)},a=function(t){return n.handleDrop(t,e)};return t.addEventListener(`dragenter`,r),t.addEventListener(`dragover`,i),t.addEventListener(`drop`,a),function(){t.removeEventListener(`dragenter`,r),t.removeEventListener(`dragover`,i),t.removeEventListener(`drop`,a)}}},{key:`addEventListeners`,value:function(e){e.addEventListener&&(e.addEventListener(`dragstart`,this.handleTopDragStart),e.addEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.addEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.addEventListener(`dragenter`,this.handleTopDragEnter),e.addEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.addEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.addEventListener(`dragover`,this.handleTopDragOver),e.addEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.addEventListener(`drop`,this.handleTopDrop),e.addEventListener(`drop`,this.handleTopDropCapture,!0))}},{key:`removeEventListeners`,value:function(e){e.removeEventListener&&(e.removeEventListener(`dragstart`,this.handleTopDragStart),e.removeEventListener(`dragstart`,this.handleTopDragStartCapture,!0),e.removeEventListener(`dragend`,this.handleTopDragEndCapture,!0),e.removeEventListener(`dragenter`,this.handleTopDragEnter),e.removeEventListener(`dragenter`,this.handleTopDragEnterCapture,!0),e.removeEventListener(`dragleave`,this.handleTopDragLeaveCapture,!0),e.removeEventListener(`dragover`,this.handleTopDragOver),e.removeEventListener(`dragover`,this.handleTopDragOverCapture,!0),e.removeEventListener(`drop`,this.handleTopDrop),e.removeEventListener(`drop`,this.handleTopDropCapture,!0))}},{key:`getCurrentSourceNodeOptions`,value:function(){var e=this.monitor.getSourceId(),t=this.sourceNodeOptions.get(e);return so({dropEffect:this.altKeyPressed?`copy`:`move`},t||{})}},{key:`getCurrentDropEffect`,value:function(){return this.isDraggingNativeItem()?`copy`:this.getCurrentSourceNodeOptions().dropEffect}},{key:`getCurrentSourcePreviewNodeOptions`,value:function(){var e=this.monitor.getSourceId();return so({anchorX:.5,anchorY:.5,captureDraggingState:!1},this.sourcePreviewNodeOptions.get(e)||{})}},{key:`isDraggingNativeItem`,value:function(){var e=this.monitor.getItemType();return Object.keys(ee).some(function(t){return ee[t]===e})}},{key:`beginDragNativeItem`,value:function(e,t){this.clearCurrentDragSourceNode(),this.currentNativeSource=$a(e,t),this.currentNativeHandle=this.registry.addSource(e,this.currentNativeSource),this.actions.beginDrag([this.currentNativeHandle])}},{key:`setCurrentDragSourceNode`,value:function(e){var t=this;this.clearCurrentDragSourceNode(),this.currentDragSourceNode=e;var n=1e3;this.mouseMoveTimeoutTimer=setTimeout(function(){var e;return(e=t.rootElement)==null?void 0:e.addEventListener(`mousemove`,t.endDragIfSourceWasRemovedFromDOM,!0)},n)}},{key:`clearCurrentDragSourceNode`,value:function(){if(this.currentDragSourceNode){if(this.currentDragSourceNode=null,this.rootElement){var e;(e=this.window)==null||e.clearTimeout(this.mouseMoveTimeoutTimer||void 0),this.rootElement.removeEventListener(`mousemove`,this.endDragIfSourceWasRemovedFromDOM,!0)}return this.mouseMoveTimeoutTimer=null,!0}return!1}},{key:`handleDragStart`,value:function(e,t){e.defaultPrevented||(this.dragStartSourceIds||(this.dragStartSourceIds=[]),this.dragStartSourceIds.unshift(t))}},{key:`handleDragEnter`,value:function(e,t){this.dragEnterTargetIds.unshift(t)}},{key:`handleDragOver`,value:function(e,t){this.dragOverTargetIds===null&&(this.dragOverTargetIds=[]),this.dragOverTargetIds.unshift(t)}},{key:`handleDrop`,value:function(e,t){this.dropTargetIds.unshift(t)}}]),e}(),e(`t`,function(e,t,n){return new w(e,t,n)})}}})})(); |