1 line
71 KiB
JavaScript
1 line
71 KiB
JavaScript
import{Bt as e,Et as t,Gt as n,Ht as r,It as i,Jt as a,Kt as o,Lt as s,Mt as c,Ot as l,St as u,Tt as d,Ut as f,Vt as p,Wt as m,Xt as h,Yt as g,_t as _,bt as v,gt as y,lt as b,qt as x,vt as S,yt as ee,zt as C}from"./vendor-quasar-BdHTqpDy.js";var w=typeof window<`u`,T,E=e=>T=e,D=Symbol();function O(e){return e&&typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`&&typeof e.toJSON!=`function`}var k;(function(e){e.direct=`direct`,e.patchObject=`patch object`,e.patchFunction=`patch function`})(k||={});var te=typeof window==`object`&&window.window===window?window:typeof self==`object`&&self.self===self?self:typeof global==`object`&&global.global===global?global:typeof globalThis==`object`?globalThis:{HTMLElement:null};function ne(e,{autoBom:t=!1}={}){return t&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(e.type)?new Blob([``,e],{type:e.type}):e}function re(e,t,n){let r=new XMLHttpRequest;r.open(`GET`,e),r.responseType=`blob`,r.onload=function(){ce(r.response,t,n)},r.onerror=function(){console.error(`could not download file`)},r.send()}function ie(e){let t=new XMLHttpRequest;t.open(`HEAD`,e,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function ae(e){try{e.dispatchEvent(new MouseEvent(`click`))}catch{let t=new MouseEvent(`click`,{bubbles:!0,cancelable:!0,view:window,detail:0,screenX:80,screenY:20,clientX:80,clientY:20,ctrlKey:!1,altKey:!1,shiftKey:!1,metaKey:!1,button:0,relatedTarget:null});e.dispatchEvent(t)}}var oe=typeof navigator==`object`?navigator:{userAgent:``},se=/Macintosh/.test(oe.userAgent)&&/AppleWebKit/.test(oe.userAgent)&&!/Safari/.test(oe.userAgent),ce=w?typeof HTMLAnchorElement<`u`&&`download`in HTMLAnchorElement.prototype&&!se?le:`msSaveOrOpenBlob`in oe?ue:de:()=>{};function le(e,t=`download`,n){let r=document.createElement(`a`);r.download=t,r.rel=`noopener`,typeof e==`string`?(r.href=e,r.origin===location.origin?ae(r):ie(r.href)?re(e,t,n):(r.target=`_blank`,ae(r))):(r.href=URL.createObjectURL(e),setTimeout(function(){URL.revokeObjectURL(r.href)},4e4),setTimeout(function(){ae(r)},0))}function ue(e,t=`download`,n){if(typeof e==`string`)if(ie(e))re(e,t,n);else{let t=document.createElement(`a`);t.href=e,t.target=`_blank`,setTimeout(function(){ae(t)})}else navigator.msSaveOrOpenBlob(ne(e,n),t)}function de(e,t,n,r){if(r||=open(``,`_blank`),r&&(r.document.title=r.document.body.innerText=`downloading...`),typeof e==`string`)return re(e,t,n);let i=e.type===`application/octet-stream`,a=/constructor/i.test(String(te.HTMLElement))||`safari`in te,o=/CriOS\/[\d]+/.test(navigator.userAgent);if((o||i&&a||se)&&typeof FileReader<`u`){let t=new FileReader;t.onloadend=function(){let e=t.result;if(typeof e!=`string`)throw r=null,Error(`Wrong reader.result type`);e=o?e:e.replace(/^data:[^;]*;/,`data:attachment/file;`),r?r.location.href=e:location.assign(e),r=null},t.readAsDataURL(e)}else{let t=URL.createObjectURL(e);r?r.location.assign(t):location.href=t,r=null,setTimeout(function(){URL.revokeObjectURL(t)},4e4)}}var{assign:fe}=Object;function pe(){let e=i(!0),t=e.run(()=>m({})),n=[],r=[],a=p({install(e){E(a),a._a=e,e.provide(D,a),e.config.globalProperties.$pinia=a,r.forEach(e=>n.push(e)),r=[]},use(e){return this._a?n.push(e):r.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return a}var me=()=>{};function he(e,t,n,i=me){e.add(t);let a=()=>{e.delete(t)&&i()};return!n&&s()&&r(a),a}function A(e,...t){e.forEach(e=>{e(...t)})}var ge=e=>e(),_e=Symbol(),ve=Symbol();function ye(t,n){t instanceof Map&&n instanceof Map?n.forEach((e,n)=>t.set(n,e)):t instanceof Set&&n instanceof Set&&n.forEach(t.add,t);for(let r in n){if(!n.hasOwnProperty(r))continue;let i=n[r],a=t[r];O(a)&&O(i)&&t.hasOwnProperty(r)&&!e(i)&&!C(i)?t[r]=ye(a,i):t[r]=i}return t}var be=Symbol();function xe(e){return!O(e)||!Object.prototype.hasOwnProperty.call(e,be)}var{assign:Se}=Object;function Ce(t){return!!(e(t)&&t.effect)}function we(e,t,n,r){let{state:i,actions:a,getters:o}=t,s=n.state.value[e],c;function l(){return s||(n.state.value[e]=i?i():{}),Se(g(n.state.value[e]),a,Object.keys(o||{}).reduce((t,r)=>(t[r]=p(b(()=>{E(n);let t=n._s.get(e);return o[r].call(t,t)})),t),{}))}return c=Te(e,l,t,n,r,!0),c}function Te(t,n,r={},a,o,s){let l,d=Se({actions:{}},r),p={deep:!0},h,g,_=new Set,v=new Set,y=a.state.value[t];!s&&!y&&(a.state.value[t]={}),m({});let b;function S(e){let n;h=g=!1,typeof e==`function`?(e(a.state.value[t]),n={type:k.patchFunction,storeId:t,events:void 0}):(ye(a.state.value[t],e),n={type:k.patchObject,payload:e,storeId:t,events:void 0});let r=b=Symbol();u().then(()=>{b===r&&(h=!0)}),g=!0,A(_,n,a.state.value[t])}let ee=s?function(){let{state:e}=r,t=e?e():{};this.$patch(e=>{Se(e,t)})}:me;function w(){l.stop(),_.clear(),v.clear(),a._s.delete(t)}let T=(e,n=``)=>{if(_e in e)return e[ve]=n,e;let r=function(){E(a);let n=Array.from(arguments),i=new Set,o=new Set;function s(e){i.add(e)}function c(e){o.add(e)}A(v,{args:n,name:r[ve],store:D,after:s,onError:c});let l;try{l=e.apply(this&&this.$id===t?this:D,n)}catch(e){throw A(o,e),e}return l instanceof Promise?l.then(e=>(A(i,e),e)).catch(e=>(A(o,e),Promise.reject(e))):(A(i,l),l)};return r[_e]=!0,r[ve]=n,r},D=f({_p:a,$id:t,$onAction:he.bind(null,v),$patch:S,$reset:ee,$subscribe(e,n={}){let r=he(_,e,n.detached,()=>i()),i=l.run(()=>c(()=>a.state.value[t],r=>{(n.flush===`sync`?g:h)&&e({storeId:t,type:k.direct,events:void 0},r)},Se({},p,n)));return r},$dispose:w});a._s.set(t,D);let O=(a._a&&a._a.runWithContext||ge)(()=>a._e.run(()=>(l=i()).run(()=>n({action:T}))));for(let n in O){let r=O[n];e(r)&&!Ce(r)||C(r)?s||(y&&xe(r)&&(e(r)?r.value=y[n]:ye(r,y[n])),a.state.value[t][n]=r):typeof r==`function`&&(O[n]=T(r,n),d.actions[n]=r)}return Se(D,O),Se(x(D),O),Object.defineProperty(D,`$state`,{get:()=>a.state.value[t],set:e=>{S(t=>{Se(t,e)})}}),a._p.forEach(e=>{Se(D,l.run(()=>e({store:D,app:a._a,pinia:a,options:d})))}),y&&s&&r.hydrate&&r.hydrate(D.$state,y),h=!0,g=!0,D}function Ee(e,t,n){let r,i=typeof t==`function`;r=i?n:t;function a(n,a){let o=ee();return n||=o?v(D,null):null,n&&E(n),n=T,n._s.has(e)||(i?Te(e,t,r,n):we(e,r,n)),n._s.get(e)}return a.$id=e,a}function De(t){let n=x(t),r={};for(let i in n){let o=n[i];o.effect?r[i]=b({get:()=>t[i],set(e){t[i]=e}}):(e(o)||C(o))&&(r[i]=a(t,i))}return r}var Oe=typeof document<`u`;function ke(e){return typeof e==`object`||`displayName`in e||`props`in e||`__vccOpts`in e}function Ae(e){return e.__esModule||e[Symbol.toStringTag]===`Module`||e.default&&ke(e.default)}var j=Object.assign;function je(e,t){let n={};for(let r in t){let i=t[r];n[r]=Ne(i)?i.map(e):e(i)}return n}var Me=()=>{},Ne=Array.isArray;function Pe(e,t){let n={};for(let r in e)n[r]=r in t?t[r]:e[r];return n}var M=function(e){return e[e.MATCHER_NOT_FOUND=1]=`MATCHER_NOT_FOUND`,e[e.NAVIGATION_GUARD_REDIRECT=2]=`NAVIGATION_GUARD_REDIRECT`,e[e.NAVIGATION_ABORTED=4]=`NAVIGATION_ABORTED`,e[e.NAVIGATION_CANCELLED=8]=`NAVIGATION_CANCELLED`,e[e.NAVIGATION_DUPLICATED=16]=`NAVIGATION_DUPLICATED`,e}({}),Fe=Symbol(``);M.MATCHER_NOT_FOUND,M.NAVIGATION_GUARD_REDIRECT,M.NAVIGATION_ABORTED,M.NAVIGATION_CANCELLED,M.NAVIGATION_DUPLICATED;function Ie(e,t){return j(Error(),{type:e,[Fe]:!0},t)}function Le(e,t){return e instanceof Error&&Fe in e&&(t==null||!!(e.type&t))}var Re=Symbol(``),ze=Symbol(``),Be=Symbol(``),Ve=Symbol(``),He=Symbol(``),Ue=/#/g,We=/&/g,Ge=/\//g,Ke=/=/g,qe=/\?/g,Je=/\+/g,Ye=/%5B/g,Xe=/%5D/g,Ze=/%5E/g,Qe=/%60/g,$e=/%7B/g,et=/%7C/g,tt=/%7D/g,nt=/%20/g;function rt(e){return e==null?``:encodeURI(``+e).replace(et,`|`).replace(Ye,`[`).replace(Xe,`]`)}function it(e){return rt(e).replace($e,`{`).replace(tt,`}`).replace(Ze,`^`)}function at(e){return rt(e).replace(Je,`%2B`).replace(nt,`+`).replace(Ue,`%23`).replace(We,`%26`).replace(Qe,"`").replace($e,`{`).replace(tt,`}`).replace(Ze,`^`)}function ot(e){return at(e).replace(Ke,`%3D`)}function st(e){return rt(e).replace(Ue,`%23`).replace(qe,`%3F`)}function ct(e){return st(e).replace(Ge,`%2F`)}function lt(e){if(e==null)return null;try{return decodeURIComponent(``+e)}catch{}return``+e}var ut=/\/$/,dt=e=>e.replace(ut,``);function ft(e,t,n=`/`){let r,i={},a=``,o=``,s=t.indexOf(`#`),c=t.indexOf(`?`);return c=s>=0&&c>s?-1:c,c>=0&&(r=t.slice(0,c),a=t.slice(c,s>0?s:t.length),i=e(a.slice(1))),s>=0&&(r||=t.slice(0,s),o=t.slice(s,t.length)),r=bt(r??t,n),{fullPath:r+a+o,path:r,query:i,hash:lt(o)}}function pt(e,t){let n=t.query?e(t.query):``;return t.path+(n&&`?`)+n+(t.hash||``)}function mt(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||`/`}function ht(e,t,n){let r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&>(t.matched[r],n.matched[i])&&_t(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function gt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _t(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!vt(e[n],t[n]))return!1;return!0}function vt(e,t){return Ne(e)?yt(e,t):Ne(t)?yt(t,e):(e&&e.valueOf())===(t&&t.valueOf())}function yt(e,t){return Ne(t)?e.length===t.length&&e.every((e,n)=>e===t[n]):e.length===1&&e[0]===t}function bt(e,t){if(e.startsWith(`/`))return e;if(!e)return t;let n=t.split(`/`),r=e.split(`/`),i=r[r.length-1];(i===`..`||i===`.`)&&r.push(``);let a=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],s!==`.`)if(s===`..`)a>1&&a--;else break;return n.slice(0,a).join(`/`)+`/`+r.slice(o).join(`/`)}var xt={path:`/`,name:void 0,params:{},query:{},hash:``,fullPath:`/`,matched:[],meta:{},redirectedFrom:void 0},St=function(e){return e.pop=`pop`,e.push=`push`,e}({}),Ct=function(e){return e.back=`back`,e.forward=`forward`,e.unknown=``,e}({});function wt(e){if(!e)if(Oe){let t=document.querySelector(`base`);e=t&&t.getAttribute(`href`)||`/`,e=e.replace(/^\w+:\/\/[^\/]+/,``)}else e=`/`;return e[0]!==`/`&&e[0]!==`#`&&(e=`/`+e),dt(e)}var Tt=/^[^#]+#/;function Et(e,t){return e.replace(Tt,`#`)+t}function Dt(e,t){let n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}var Ot=()=>({left:window.scrollX,top:window.scrollY});function kt(e){let t;if(`el`in e){let n=e.el,r=typeof n==`string`&&n.startsWith(`#`),i=typeof n==`string`?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=Dt(i,e)}else t=e;`scrollBehavior`in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left==null?window.scrollX:t.left,t.top==null?window.scrollY:t.top)}function At(e,t){return(history.state?history.state.position-t:-1)+e}var jt=new Map;function Mt(e,t){jt.set(e,t)}function Nt(e){let t=jt.get(e);return jt.delete(e),t}function Pt(e){return typeof e==`string`||e&&typeof e==`object`}function Ft(e){return typeof e==`string`||typeof e==`symbol`}function It(e){let t={};if(e===``||e===`?`)return t;let n=(e[0]===`?`?e.slice(1):e).split(`&`);for(let e=0;e<n.length;++e){let r=n[e].replace(Je,` `),i=r.indexOf(`=`),a=lt(i<0?r:r.slice(0,i)),o=i<0?null:lt(r.slice(i+1));if(a in t){let e=t[a];Ne(e)||(e=t[a]=[e]),e.push(o)}else t[a]=o}return t}function Lt(e){let t=``;for(let n in e){let r=e[n];if(n=ot(n),r==null){r!==void 0&&(t+=(t.length?`&`:``)+n);continue}(Ne(r)?r.map(e=>e&&at(e)):[r&&at(r)]).forEach(e=>{e!==void 0&&(t+=(t.length?`&`:``)+n,e!=null&&(t+=`=`+e))})}return t}function Rt(e){let t={};for(let n in e){let r=e[n];r!==void 0&&(t[n]=Ne(r)?r.map(e=>e==null?null:``+e):r==null?r:``+r)}return t}function zt(){let e=[];function t(t){return e.push(t),()=>{let n=e.indexOf(t);n>-1&&e.splice(n,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Bt(e,t,n,r,i,a=e=>e()){let o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,c)=>{let l=e=>{e===!1?c(Ie(M.NAVIGATION_ABORTED,{from:n,to:t})):e instanceof Error?c(e):Pt(e)?c(Ie(M.NAVIGATION_GUARD_REDIRECT,{from:t,to:e})):(o&&r.enterCallbacks[i]===o&&typeof e==`function`&&o.push(e),s())},u=a(()=>e.call(r&&r.instances[i],t,n,l)),d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(e=>c(e))})}function Vt(e,t,n,r,i=e=>e()){let a=[];for(let o of e)for(let e in o.components){let s=o.components[e];if(!(t!==`beforeRouteEnter`&&!o.instances[e]))if(ke(s)){let c=(s.__vccOpts||s)[t];c&&a.push(Bt(c,n,r,o,e,i))}else{let c=s();a.push(()=>c.then(a=>{if(!a)throw Error(`Couldn't resolve component "${e}" at "${o.path}"`);let s=Ae(a)?a.default:a;o.mods[e]=a,o.components[e]=s;let c=(s.__vccOpts||s)[t];return c&&Bt(c,n,r,o,e,i)()}))}}return a}function Ht(e,t){let n=[],r=[],i=[],a=Math.max(t.matched.length,e.matched.length);for(let o=0;o<a;o++){let a=t.matched[o];a&&(e.matched.find(e=>gt(e,a))?r.push(a):n.push(a));let s=e.matched[o];s&&(t.matched.find(e=>gt(e,s))||i.push(s))}return[n,r,i]}var Ut=()=>location.protocol+`//`+location.host;function Wt(e,t){let{pathname:n,search:r,hash:i}=t,a=e.indexOf(`#`);if(a>-1){let t=i.includes(e.slice(a))?e.slice(a).length:1,n=i.slice(t);return n[0]!==`/`&&(n=`/`+n),mt(n,``)}return mt(n,e)+r+i}function Gt(e,t,n,r){let i=[],a=[],o=null,s=({state:a})=>{let s=Wt(e,location),c=n.value,l=t.value,u=0;if(a){if(n.value=s,t.value=a,o&&o===c){o=null;return}u=l?a.position-l.position:0}else r(s);i.forEach(e=>{e(n.value,c,{delta:u,type:St.pop,direction:u?u>0?Ct.forward:Ct.back:Ct.unknown})})};function c(){o=n.value}function l(e){i.push(e);let t=()=>{let t=i.indexOf(e);t>-1&&i.splice(t,1)};return a.push(t),t}function u(){if(document.visibilityState===`hidden`){let{history:e}=window;if(!e.state)return;e.replaceState(j({},e.state,{scroll:Ot()}),``)}}function d(){for(let e of a)e();a=[],window.removeEventListener(`popstate`,s),window.removeEventListener(`pagehide`,u),document.removeEventListener(`visibilitychange`,u)}return window.addEventListener(`popstate`,s),window.addEventListener(`pagehide`,u),document.addEventListener(`visibilitychange`,u),{pauseListeners:c,listen:l,destroy:d}}function Kt(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?Ot():null}}function qt(e){let{history:t,location:n}=window,r={value:Wt(e,n)},i={value:t.state};i.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(r,a,o){let s=e.indexOf(`#`),c=s>-1?(n.host&&document.querySelector(`base`)?e:e.slice(s))+r:Ut()+e+r;try{t[o?`replaceState`:`pushState`](a,``,c),i.value=a}catch(e){console.error(e),n[o?`replace`:`assign`](c)}}function o(e,n){a(e,j({},t.state,Kt(i.value.back,e,i.value.forward,!0),n,{position:i.value.position}),!0),r.value=e}function s(e,n){let o=j({},i.value,t.state,{forward:e,scroll:Ot()});a(o.current,o,!0),a(e,j({},Kt(r.value,e,null),{position:o.position+1},n),!1),r.value=e}return{location:r,state:i,push:s,replace:o}}function Jt(e){e=wt(e);let t=qt(e),n=Gt(e,t.state,t.location,t.replace);function r(e,t=!0){t||n.pauseListeners(),history.go(e)}let i=j({location:``,base:e,go:r,createHref:Et.bind(null,e)},t,n);return Object.defineProperty(i,`location`,{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,`state`,{enumerable:!0,get:()=>t.state.value}),i}var Yt=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.Group=2]=`Group`,e}({}),N=function(e){return e[e.Static=0]=`Static`,e[e.Param=1]=`Param`,e[e.ParamRegExp=2]=`ParamRegExp`,e[e.ParamRegExpEnd=3]=`ParamRegExpEnd`,e[e.EscapeNext=4]=`EscapeNext`,e}(N||{}),Xt={type:Yt.Static,value:``},Zt=/[a-zA-Z0-9_]/;function Qt(e){if(!e)return[[]];if(e===`/`)return[[Xt]];if(!e.startsWith(`/`))throw Error(`Invalid path "${e}"`);function t(e){throw Error(`ERR (${n})/"${l}": ${e}`)}let n=N.Static,r=n,i=[],a;function o(){a&&i.push(a),a=[]}let s=0,c,l=``,u=``;function d(){l&&=(n===N.Static?a.push({type:Yt.Static,value:l}):n===N.Param||n===N.ParamRegExp||n===N.ParamRegExpEnd?(a.length>1&&(c===`*`||c===`+`)&&t(`A repeatable param (${l}) must be alone in its segment. eg: '/:ids+.`),a.push({type:Yt.Param,value:l,regexp:u,repeatable:c===`*`||c===`+`,optional:c===`*`||c===`?`})):t(`Invalid state to consume buffer`),``)}function f(){l+=c}for(;s<e.length;){if(c=e[s++],c===`\\`&&n!==N.ParamRegExp){r=n,n=N.EscapeNext;continue}switch(n){case N.Static:c===`/`?(l&&d(),o()):c===`:`?(d(),n=N.Param):f();break;case N.EscapeNext:f(),n=r;break;case N.Param:c===`(`?n=N.ParamRegExp:Zt.test(c)?f():(d(),n=N.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--);break;case N.ParamRegExp:c===`)`?u[u.length-1]==`\\`?u=u.slice(0,-1)+c:n=N.ParamRegExpEnd:u+=c;break;case N.ParamRegExpEnd:d(),n=N.Static,c!==`*`&&c!==`?`&&c!==`+`&&s--,u=``;break;default:t(`Unknown state`);break}}return n===N.ParamRegExp&&t(`Unfinished custom RegExp for param "${l}"`),d(),o(),i}var $t=`[^/]+?`,en={sensitive:!1,strict:!1,start:!0,end:!0},P=function(e){return e[e._multiplier=10]=`_multiplier`,e[e.Root=90]=`Root`,e[e.Segment=40]=`Segment`,e[e.SubSegment=30]=`SubSegment`,e[e.Static=40]=`Static`,e[e.Dynamic=20]=`Dynamic`,e[e.BonusCustomRegExp=10]=`BonusCustomRegExp`,e[e.BonusWildcard=-50]=`BonusWildcard`,e[e.BonusRepeatable=-20]=`BonusRepeatable`,e[e.BonusOptional=-8]=`BonusOptional`,e[e.BonusStrict=.7000000000000001]=`BonusStrict`,e[e.BonusCaseSensitive=.25]=`BonusCaseSensitive`,e}(P||{}),tn=/[.+*?^${}()[\]/\\]/g;function nn(e,t){let n=j({},en,t),r=[],i=n.start?`^`:``,a=[];for(let t of e){let e=t.length?[]:[P.Root];n.strict&&!t.length&&(i+=`/`);for(let r=0;r<t.length;r++){let o=t[r],s=P.Segment+(n.sensitive?P.BonusCaseSensitive:0);if(o.type===Yt.Static)r||(i+=`/`),i+=o.value.replace(tn,`\\$&`),s+=P.Static;else if(o.type===Yt.Param){let{value:e,repeatable:n,optional:c,regexp:l}=o;a.push({name:e,repeatable:n,optional:c});let u=l||$t;if(u!==$t){s+=P.BonusCustomRegExp;try{RegExp(`(${u})`)}catch(t){throw Error(`Invalid custom RegExp for param "${e}" (${u}): `+t.message)}}let d=n?`((?:${u})(?:/(?:${u}))*)`:`(${u})`;r||(d=c&&t.length<2?`(?:/${d})`:`/`+d),c&&(d+=`?`),i+=d,s+=P.Dynamic,c&&(s+=P.BonusOptional),n&&(s+=P.BonusRepeatable),u===`.*`&&(s+=P.BonusWildcard)}e.push(s)}r.push(e)}if(n.strict&&n.end){let e=r.length-1;r[e][r[e].length-1]+=P.BonusStrict}n.strict||(i+=`/?`),n.end?i+=`$`:n.strict&&!i.endsWith(`/`)&&(i+=`(?:/|$)`);let o=new RegExp(i,n.sensitive?``:`i`);function s(e){let t=e.match(o),n={};if(!t)return null;for(let e=1;e<t.length;e++){let r=t[e]||``,i=a[e-1];n[i.name]=r&&i.repeatable?r.split(`/`):r}return n}function c(t){let n=``,r=!1;for(let i of e){(!r||!n.endsWith(`/`))&&(n+=`/`),r=!1;for(let e of i)if(e.type===Yt.Static)n+=e.value;else if(e.type===Yt.Param){let{value:a,repeatable:o,optional:s}=e,c=a in t?t[a]:``;if(Ne(c)&&!o)throw Error(`Provided param "${a}" is an array but it is not repeatable (* or + modifiers)`);let l=Ne(c)?c.join(`/`):c;if(!l)if(s)i.length<2&&(n.endsWith(`/`)?n=n.slice(0,-1):r=!0);else throw Error(`Missing required param "${a}"`);n+=l}}return n||`/`}return{re:o,score:r,keys:a,parse:s,stringify:c}}function rn(e,t){let n=0;for(;n<e.length&&n<t.length;){let r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===P.Static+P.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===P.Static+P.Segment?1:-1:0}function an(e,t){let n=0,r=e.score,i=t.score;for(;n<r.length&&n<i.length;){let e=rn(r[n],i[n]);if(e)return e;n++}if(Math.abs(i.length-r.length)===1){if(on(r))return 1;if(on(i))return-1}return i.length-r.length}function on(e){let t=e[e.length-1];return e.length>0&&t[t.length-1]<0}var sn={strict:!1,end:!0,sensitive:!1};function cn(e,t,n){let r=j(nn(Qt(e.path),n),{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function ln(e,t){let n=[],r=new Map;t=Pe(sn,t);function i(e){return r.get(e)}function a(e,n,r){let i=!r,s=dn(e);s.aliasOf=r&&r.record;let l=Pe(t,e),u=[s];if(`alias`in e){let t=typeof e.alias==`string`?[e.alias]:e.alias;for(let e of t)u.push(dn(j({},s,{components:r?r.record.components:s.components,path:e,aliasOf:r?r.record:s})))}let d,f;for(let t of u){let{path:u}=t;if(n&&u[0]!==`/`){let e=n.record.path,r=e[e.length-1]===`/`?``:`/`;t.path=n.record.path+(u&&r+u)}if(d=cn(t,n,l),r?r.alias.push(d):(f||=d,f!==d&&f.alias.push(d),i&&e.name&&!pn(d)&&o(e.name)),_n(d)&&c(d),s.children){let e=s.children;for(let t=0;t<e.length;t++)a(e[t],d,r&&r.children[t])}r||=d}return f?()=>{o(f)}:Me}function o(e){if(Ft(e)){let t=r.get(e);t&&(r.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(o),t.alias.forEach(o))}else{let t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&r.delete(e.record.name),e.children.forEach(o),e.alias.forEach(o))}}function s(){return n}function c(e){let t=hn(e,n);n.splice(t,0,e),e.record.name&&!pn(e)&&r.set(e.record.name,e)}function l(e,t){let i,a={},o,s;if(`name`in e&&e.name){if(i=r.get(e.name),!i)throw Ie(M.MATCHER_NOT_FOUND,{location:e});s=i.record.name,a=j(un(t.params,i.keys.filter(e=>!e.optional).concat(i.parent?i.parent.keys.filter(e=>e.optional):[]).map(e=>e.name)),e.params&&un(e.params,i.keys.map(e=>e.name))),o=i.stringify(a)}else if(e.path!=null)o=e.path,i=n.find(e=>e.re.test(o)),i&&(a=i.parse(o),s=i.record.name);else{if(i=t.name?r.get(t.name):n.find(e=>e.re.test(t.path)),!i)throw Ie(M.MATCHER_NOT_FOUND,{location:e,currentLocation:t});s=i.record.name,a=j({},t.params,e.params),o=i.stringify(a)}let c=[],l=i;for(;l;)c.unshift(l.record),l=l.parent;return{name:s,path:o,params:a,matched:c,meta:mn(c)}}e.forEach(e=>a(e));function u(){n.length=0,r.clear()}return{addRoute:a,resolve:l,removeRoute:o,clearRoutes:u,getRoutes:s,getRecordMatcher:i}}function un(e,t){let n={};for(let r of t)r in e&&(n[r]=e[r]);return n}function dn(e){let t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:fn(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:`components`in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,`mods`,{value:{}}),t}function fn(e){let t={},n=e.props||!1;if(`component`in e)t.default=n;else for(let r in e.components)t[r]=typeof n==`object`?n[r]:n;return t}function pn(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mn(e){return e.reduce((e,t)=>j(e,t.meta),{})}function hn(e,t){let n=0,r=t.length;for(;n!==r;){let i=n+r>>1;an(e,t[i])<0?r=i:n=i+1}let i=gn(e);return i&&(r=t.lastIndexOf(i,r-1)),r}function gn(e){let t=e;for(;t=t.parent;)if(_n(t)&&an(e,t)===0)return t}function _n({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function vn(e){let t=v(Be),n=v(Ve),r=b(()=>{let n=h(e.to);return t.resolve(n)}),i=b(()=>{let{matched:e}=r.value,{length:t}=e,i=e[t-1],a=n.matched;if(!i||!a.length)return-1;let o=a.findIndex(gt.bind(null,i));if(o>-1)return o;let s=Cn(e[t-2]);return t>1&&Cn(i)===s&&a[a.length-1].path!==s?a.findIndex(gt.bind(null,e[t-2])):o}),a=b(()=>i.value>-1&&Sn(n.params,r.value.params)),o=b(()=>i.value>-1&&i.value===n.matched.length-1&&_t(n.params,r.value.params));function s(n={}){if(xn(n)){let n=t[h(e.replace)?`replace`:`push`](h(e.to)).catch(Me);return e.viewTransition&&typeof document<`u`&&`startViewTransition`in document&&document.startViewTransition(()=>n),n}return Promise.resolve()}return{route:r,href:b(()=>r.value.href),isActive:a,isExactActive:o,navigate:s}}function yn(e){return e.length===1?e[0]:e}var bn=y({name:`RouterLink`,compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:`page`},viewTransition:Boolean},useLink:vn,setup(e,{slots:t}){let n=f(vn(e)),{options:r}=v(Be),i=b(()=>({[wn(e.activeClass,r.linkActiveClass,`router-link-active`)]:n.isActive,[wn(e.exactActiveClass,r.linkExactActiveClass,`router-link-exact-active`)]:n.isExactActive}));return()=>{let r=t.default&&yn(t.default(n));return e.custom?r:S(`a`,{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}});function xn(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){let t=e.currentTarget.getAttribute(`target`);if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Sn(e,t){for(let n in t){let r=t[n],i=e[n];if(typeof r==`string`){if(r!==i)return!1}else if(!Ne(i)||i.length!==r.length||r.some((e,t)=>e.valueOf()!==i[t].valueOf()))return!1}return!0}function Cn(e){return e?e.aliasOf?e.aliasOf.path:e.path:``}var wn=(e,t,n)=>e??t??n,Tn=y({name:`RouterView`,inheritAttrs:!1,props:{name:{type:String,default:`default`},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){let r=v(He),i=b(()=>e.route||r.value),a=v(ze,0),o=b(()=>{let e=h(a),{matched:t}=i.value,n;for(;(n=t[e])&&!n.components;)e++;return e}),s=b(()=>i.value.matched[o.value]);l(ze,b(()=>o.value+1)),l(Re,s),l(He,i);let u=m();return c(()=>[u.value,s.value,e.name],([e,t,n],[r,i,a])=>{t&&(t.instances[n]=e,i&&i!==t&&e&&e===r&&(t.leaveGuards.size||(t.leaveGuards=i.leaveGuards),t.updateGuards.size||(t.updateGuards=i.updateGuards))),e&&t&&(!i||!gt(t,i)||!r)&&(t.enterCallbacks[n]||[]).forEach(t=>t(e))},{flush:`post`}),()=>{let r=i.value,a=e.name,o=s.value,c=o&&o.components[a];if(!c)return En(n.default,{Component:c,route:r});let l=o.props[a],d=S(c,j({},l?l===!0?r.params:typeof l==`function`?l(r):l:null,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(o.instances[a]=null)},ref:u}));return En(n.default,{Component:d,route:r})||d}}});function En(e,t){if(!e)return null;let n=e(t);return n.length===1?n[0]:n}var Dn=Tn;function On(e){let t=ln(e.routes,e),r=e.parseQuery||It,i=e.stringifyQuery||Lt,a=e.history,s=zt(),c=zt(),l=zt(),d=o(xt),f=xt;Oe&&e.scrollBehavior&&`scrollRestoration`in history&&(history.scrollRestoration=`manual`);let p=je.bind(null,e=>``+e),m=je.bind(null,ct),g=je.bind(null,lt);function _(e,n){let r,i;return Ft(e)?(r=t.getRecordMatcher(e),i=n):i=e,t.addRoute(i,r)}function v(e){let n=t.getRecordMatcher(e);n&&t.removeRoute(n)}function y(){return t.getRoutes().map(e=>e.record)}function b(e){return!!t.getRecordMatcher(e)}function x(e,n){if(n=j({},n||d.value),typeof e==`string`){let i=ft(r,e,n.path),o=t.resolve({path:i.path},n),s=a.createHref(i.fullPath);return j(i,o,{params:g(o.params),hash:lt(i.hash),redirectedFrom:void 0,href:s})}let o;if(e.path!=null)o=j({},e,{path:ft(r,e.path,n.path).path});else{let t=j({},e.params);for(let e in t)t[e]??delete t[e];o=j({},e,{params:m(t)}),n.params=m(n.params)}let s=t.resolve(o,n),c=e.hash||``;s.params=p(g(s.params));let l=pt(i,j({},e,{hash:it(c),path:s.path})),u=a.createHref(l);return j({fullPath:l,hash:c,query:i===Lt?Rt(e.query):e.query||{}},s,{redirectedFrom:void 0,href:u})}function S(e){return typeof e==`string`?ft(r,e,d.value.path):j({},e)}function ee(e,t){if(f!==e)return Ie(M.NAVIGATION_CANCELLED,{from:t,to:e})}function C(e){return E(e)}function w(e){return C(j(S(e),{replace:!0}))}function T(e,t){let n=e.matched[e.matched.length-1];if(n&&n.redirect){let{redirect:r}=n,i=typeof r==`function`?r(e,t):r;return typeof i==`string`&&(i=i.includes(`?`)||i.includes(`#`)?i=S(i):{path:i},i.params={}),j({query:e.query,hash:e.hash,params:i.path==null?e.params:{}},i)}}function E(e,t){let n=f=x(e),r=d.value,a=e.state,o=e.force,s=e.replace===!0,c=T(n,r);if(c)return E(j(S(c),{state:typeof c==`object`?j({},a,c.state):a,force:o,replace:s}),t||n);let l=n;l.redirectedFrom=t;let u;return!o&&ht(i,r,n)&&(u=Ie(M.NAVIGATION_DUPLICATED,{to:l,from:r}),de(r,r,!0,!1)),(u?Promise.resolve(u):k(l,r)).catch(e=>Le(e)?Le(e,M.NAVIGATION_GUARD_REDIRECT)?e:ue(e):ce(e,l,r)).then(e=>{if(e){if(Le(e,M.NAVIGATION_GUARD_REDIRECT))return E(j({replace:s},S(e.to),{state:typeof e.to==`object`?j({},a,e.to.state):a,force:o}),t||l)}else e=ne(l,r,!0,s,a);return te(l,r,e),e})}function D(e,t){let n=ee(e,t);return n?Promise.reject(n):Promise.resolve()}function O(e){let t=me.values().next().value;return t&&typeof t.runWithContext==`function`?t.runWithContext(e):e()}function k(e,t){let n,[r,i,a]=Ht(e,t);n=Vt(r.reverse(),`beforeRouteLeave`,e,t);for(let i of r)i.leaveGuards.forEach(r=>{n.push(Bt(r,e,t))});let o=D.bind(null,e,t);return n.push(o),A(n).then(()=>{n=[];for(let r of s.list())n.push(Bt(r,e,t));return n.push(o),A(n)}).then(()=>{n=Vt(i,`beforeRouteUpdate`,e,t);for(let r of i)r.updateGuards.forEach(r=>{n.push(Bt(r,e,t))});return n.push(o),A(n)}).then(()=>{n=[];for(let r of a)if(r.beforeEnter)if(Ne(r.beforeEnter))for(let i of r.beforeEnter)n.push(Bt(i,e,t));else n.push(Bt(r.beforeEnter,e,t));return n.push(o),A(n)}).then(()=>(e.matched.forEach(e=>e.enterCallbacks={}),n=Vt(a,`beforeRouteEnter`,e,t,O),n.push(o),A(n))).then(()=>{n=[];for(let r of c.list())n.push(Bt(r,e,t));return n.push(o),A(n)}).catch(e=>Le(e,M.NAVIGATION_CANCELLED)?e:Promise.reject(e))}function te(e,t,n){l.list().forEach(r=>O(()=>r(e,t,n)))}function ne(e,t,n,r,i){let o=ee(e,t);if(o)return o;let s=t===xt,c=Oe?history.state:{};n&&(r||s?a.replace(e.fullPath,j({scroll:s&&c&&c.scroll},i)):a.push(e.fullPath,i)),d.value=e,de(e,t,n,s),ue()}let re;function ie(){re||=a.listen((e,t,n)=>{if(!he.listening)return;let r=x(e),i=T(r,he.currentRoute.value);if(i){E(j(i,{replace:!0,force:!0}),r).catch(Me);return}f=r;let o=d.value;Oe&&Mt(At(o.fullPath,n.delta),Ot()),k(r,o).catch(e=>Le(e,M.NAVIGATION_ABORTED|M.NAVIGATION_CANCELLED)?e:Le(e,M.NAVIGATION_GUARD_REDIRECT)?(E(j(S(e.to),{force:!0}),r).then(e=>{Le(e,M.NAVIGATION_ABORTED|M.NAVIGATION_DUPLICATED)&&!n.delta&&n.type===St.pop&&a.go(-1,!1)}).catch(Me),Promise.reject()):(n.delta&&a.go(-n.delta,!1),ce(e,r,o))).then(e=>{e||=ne(r,o,!1),e&&(n.delta&&!Le(e,M.NAVIGATION_CANCELLED)?a.go(-n.delta,!1):n.type===St.pop&&Le(e,M.NAVIGATION_ABORTED|M.NAVIGATION_DUPLICATED)&&a.go(-1,!1)),te(r,o,e)}).catch(Me)})}let ae=zt(),oe=zt(),se;function ce(e,t,n){ue(e);let r=oe.list();return r.length?r.forEach(r=>r(e,t,n)):console.error(e),Promise.reject(e)}function le(){return se&&d.value!==xt?Promise.resolve():new Promise((e,t)=>{ae.add([e,t])})}function ue(e){return se||(se=!e,ie(),ae.list().forEach(([t,n])=>e?n(e):t()),ae.reset()),e}function de(t,n,r,i){let{scrollBehavior:a}=e;if(!Oe||!a)return Promise.resolve();let o=!r&&Nt(At(t.fullPath,0))||(i||!r)&&history.state&&history.state.scroll||null;return u().then(()=>a(t,n,o)).then(e=>e&&kt(e)).catch(e=>ce(e,t,n))}let fe=e=>a.go(e),pe,me=new Set,he={currentRoute:d,listening:!0,addRoute:_,removeRoute:v,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:y,resolve:x,options:e,push:C,replace:w,go:fe,back:()=>fe(-1),forward:()=>fe(1),beforeEach:s.add,beforeResolve:c.add,afterEach:l.add,onError:oe.add,isReady:le,install(e){e.component(`RouterLink`,bn),e.component(`RouterView`,Dn),e.config.globalProperties.$router=he,Object.defineProperty(e.config.globalProperties,`$route`,{enumerable:!0,get:()=>h(d)}),Oe&&!pe&&d.value===xt&&(pe=!0,C(a.location).catch(e=>{}));let t={};for(let e in xt)Object.defineProperty(t,e,{get:()=>d.value[e],enumerable:!0});e.provide(Be,he),e.provide(Ve,n(t)),e.provide(He,d);let r=e.unmount;me.add(e),e.unmount=function(){me.delete(e),me.size<1&&(f=xt,re&&re(),re=null,d.value=xt,pe=!1,se=!1),r()}}};function A(e){return e.reduce((e,t)=>e.then(()=>O(t)),Promise.resolve())}return he}var kn=Object.defineProperty,An=Object.getOwnPropertySymbols,jn=Object.prototype.hasOwnProperty,Mn=Object.prototype.propertyIsEnumerable,Nn=(e,t,n)=>t in e?kn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Pn=(e,t)=>{for(var n in t||={})jn.call(t,n)&&Nn(e,n,t[n]);if(An)for(var n of An(t))Mn.call(t,n)&&Nn(e,n,t[n]);return e},Fn=(e,t)=>{var n={};for(var r in e)jn.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&An)for(var r of An(e))t.indexOf(r)<0&&Mn.call(e,r)&&(n[r]=e[r]);return n},In=`[vue-draggable-plus]: `;function Ln(e){console.warn(In+e)}function Rn(e){console.error(In+e)}function zn(e,t,n){return n>=0&&n<e.length&&e.splice(n,0,e.splice(t,1)[0]),e}function Bn(e){return e.replace(/-(\w)/g,(e,t)=>t?t.toUpperCase():``)}function Vn(e){return Object.keys(e).reduce((t,n)=>(e[n]!==void 0&&(t[Bn(n)]=e[n]),t),{})}function Hn(e,t){return Array.isArray(e)&&e.splice(t,1),e}function Un(e,t,n){return Array.isArray(e)&&e.splice(t,0,n),e}function Wn(e){return e===void 0}function Gn(e){return typeof e==`string`}function Kn(e,t,n){let r=e.children[n];e.insertBefore(t,r)}function qn(e){e.parentNode&&e.parentNode.removeChild(e)}function Jn(e,t=document){let n=null;return n=typeof t?.querySelector==`function`?(t?.querySelector)?.call(t,e):document.querySelector(e),n||Ln(`Element not found: ${e}`),n}function Yn(e,t,n=null){return function(...r){return e.apply(n,r),t.apply(n,r)}}function Xn(e,t){let n=Pn({},e);return Object.keys(t).forEach(r=>{n[r]?n[r]=Yn(e[r],t[r]):n[r]=t[r]}),n}function Zn(e){return e instanceof HTMLElement}function Qn(e,t){Object.keys(e).forEach(n=>{t(n,e[n])})}function $n(e){return e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97)}var er=Object.assign;function tr(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 nr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tr(Object(n),!0).forEach(function(t){ir(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rr(e){"@babel/helpers - typeof";return rr=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},rr(e)}function ir(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ar(){return ar=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},ar.apply(this,arguments)}function or(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 sr(e,t){if(e==null)return{};var n=or(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}var cr=`1.15.2`;function lr(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}var ur=lr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),dr=lr(/Edge/i),fr=lr(/firefox/i),pr=lr(/safari/i)&&!lr(/chrome/i)&&!lr(/android/i),mr=lr(/iP(ad|od|hone)/i),hr=lr(/chrome/i)&&lr(/android/i),gr={capture:!1,passive:!1};function F(e,t,n){e.addEventListener(t,n,!ur&&gr)}function I(e,t,n){e.removeEventListener(t,n,!ur&&gr)}function _r(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{return!1}return!1}}function vr(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function yr(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&_r(e,t):_r(e,t))||r&&e===n)return e;if(e===n)break}while(e=vr(e))}return null}var br=/\s+/g;function L(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(br,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(br,` `))}function R(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 xr(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=R(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 Sr(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 Cr(){return document.scrollingElement||document.documentElement}function z(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==Cr()?(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||=e.parentNode,!ur))do if(i&&i.getBoundingClientRect&&(R(i,`transform`)!==`none`||n&&R(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(R(i,`border-top-width`)),s-=f.left+parseInt(R(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=xr(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 wr(e,t,n){for(var r=kr(e,!0),i=z(e)[t];r;){var a=z(r)[n],o=void 0;if(o=i>=a,!o)return r;if(r===Cr())break;r=kr(r,!1)}return!1}function Tr(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==Q.ghost&&(r||o[a]!==Q.dragged)&&yr(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function Er(e,t){for(var n=e.lastElementChild;n&&(n===Q.ghost||R(n,`display`)===`none`||t&&!_r(n,t));)n=n.previousElementSibling;return n||null}function B(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==Q.clone&&(!t||_r(e,t))&&n++;return n}function Dr(e){var t=0,n=0,r=Cr();if(e)do{var i=xr(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 Or(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 kr(e,t){if(!e||!e.getBoundingClientRect)return Cr();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=R(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 Cr();if(r||t)return n;r=!0}}while(n=n.parentNode);return Cr()}function Ar(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function jr(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)}var Mr;function Nr(e,t){return function(){if(!Mr){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Mr=setTimeout(function(){Mr=void 0},t)}}}function Pr(){clearTimeout(Mr),Mr=void 0}function Fr(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Ir(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 Lr(e,t,n){var r={};return Array.from(e.children).forEach(function(i){if(!(!yr(i,t.draggable,e,!1)||i.animated||i===n)){var a=z(i);r.left=Math.min(r.left??1/0,a.left),r.top=Math.min(r.top??1/0,a.top),r.right=Math.max(r.right??-1/0,a.right),r.bottom=Math.max(r.bottom??-1/0,a.bottom)}}),r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}var V=`Sortable`+new Date().getTime();function Rr(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(R(t,`display`)===`none`||t===Q.ghost)){e.push({target:t,rect:z(t)});var n=nr({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=xr(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(Or(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=z(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=xr(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&jr(c,s)&&!jr(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=Br(u,c,l,r.options)),jr(s,o)||(n.prevFromRect=o,n.prevToRect=s,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){R(e,`transition`,``),R(e,`transform`,``);var i=xr(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,R(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=zr(e),R(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),R(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){R(e,`transition`,``),R(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function zr(e){return e.offsetWidth}function Br(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}var Vr=[],Hr={initializeByDefault:!0},Ur={mount:function(e){for(var t in Hr)Hr.hasOwnProperty(t)&&!(t in e)&&(e[t]=Hr[t]);Vr.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),Vr.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;Vr.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](nr({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](nr({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in Vr.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,ar(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 Vr.forEach(function(r){typeof r.eventProperties==`function`&&ar(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return Vr.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}};function Wr(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||=n&&n[V],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!ur&&!dr?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 v=nr(nr({},m),Ur.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}var Gr=[`evt`],H=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=sr(n,Gr);Ur.pluginEvent.bind(Q)(e,t,nr({dragEl:W,parentEl:G,ghostEl:K,rootEl:q,nextEl:Kr,lastDownEl:qr,cloneEl:J,cloneHidden:Jr,dragStarted:ci,putSortable:X,activeSortable:Q.active,originalEvent:r,oldIndex:Yr,oldDraggableIndex:Xr,newIndex:Y,newDraggableIndex:Zr,hideGhostForTarget:Ei,unhideGhostForTarget:Di,cloneNowHidden:function(){Jr=!0},cloneNowShown:function(){Jr=!1},dispatchSortableEvent:function(e){U({sortable:t,name:e,originalEvent:r})}},i))};function U(e){Wr(nr({putSortable:X,cloneEl:J,targetEl:W,rootEl:q,oldIndex:Yr,oldDraggableIndex:Xr,newIndex:Y,newDraggableIndex:Zr},e))}var W,G,K,q,Kr,qr,J,Jr,Yr,Y,Xr,Zr,Qr,X,$r=!1,ei=!1,ti=[],ni,ri,ii,ai,oi,si,ci,li,ui,di=!1,fi=!1,pi,Z,mi=[],hi=!1,gi=[],_i=typeof document<`u`,vi=mr,yi=dr||ur?`cssFloat`:`float`,bi=_i&&!hr&&!mr&&`draggable`in document.createElement(`div`),xi=function(){if(_i){if(ur)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),Si=function(e,t){var n=R(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Tr(e,0,t),a=Tr(e,1,t),o=i&&R(i),s=a&&R(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+z(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+z(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&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[yi]===`none`||a&&n[yi]===`none`&&c+l>r)?`vertical`:`horizontal`},Ci=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},wi=function(e,t){var n;return ti.some(function(r){var i=r[V].options.emptyInsertThreshold;if(!(!i||Er(r))){var a=z(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},Ti=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||rr(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},Ei=function(){!xi&&K&&R(K,`display`,`none`)},Di=function(){!xi&&K&&R(K,`display`,``)};_i&&!hr&&document.addEventListener(`click`,function(e){if(ei)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),ei=!1,!1},!0);var Oi=function(e){if(W){e=e.touches?e.touches[0]:e;var t=wi(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[V]._onDragOver(n)}}},ki=function(e){W&&W.parentNode[V]._isOutsideThisEl(e.target)};function Q(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=ar({},t),e[V]=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 Si(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:Q.supportPointer!==!1&&`PointerEvent`in window&&!pr,emptyInsertThreshold:5};for(var r in Ur.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in Ti(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:bi,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?F(e,`pointerdown`,this._onTapStart):(F(e,`mousedown`,this._onTapStart),F(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(F(e,`dragover`,this),F(e,`dragenter`,this)),ti.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),ar(this,Rr())}Q.prototype={constructor:Q,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(li=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,W):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(zi(n),!W&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&pr&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=yr(s,r.draggable,n,!1),!(s&&s.animated)&&qr!==s)){if(Yr=B(s),Xr=B(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){U({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),H(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=yr(c,r.trim(),n,!1),r)return U({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),H(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!yr(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&&!W&&n.parentNode===i){var c=z(n);if(q=i,W=n,G=W.parentNode,Kr=W.nextSibling,qr=n,Qr=a.group,Q.dragged=W,ni={target:W,clientX:(t||e).clientX,clientY:(t||e).clientY},oi=ni.clientX-c.left,si=ni.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,W.style[`will-change`]=`all`,s=function(){if(H(`delayEnded`,r,{evt:e}),Q.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!fr&&r.nativeDraggable&&(W.draggable=!0),r._triggerDragStart(e,t),U({sortable:r,name:`choose`,originalEvent:e}),L(W,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){Sr(W,e.trim(),Mi)}),F(o,`dragover`,Oi),F(o,`mousemove`,Oi),F(o,`touchmove`,Oi),F(o,`mouseup`,r._onDrop),F(o,`touchend`,r._onDrop),F(o,`touchcancel`,r._onDrop),fr&&this.nativeDraggable&&(this.options.touchStartThreshold=4,W.draggable=!0),H(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(dr||ur))){if(Q.eventCanceled){this._onDrop();return}F(o,`mouseup`,r._disableDelayedDrag),F(o,`touchend`,r._disableDelayedDrag),F(o,`touchcancel`,r._disableDelayedDrag),F(o,`mousemove`,r._delayedDragTouchMoveHandler),F(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&F(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(){W&&Mi(W),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;I(e,`mouseup`,this._disableDelayedDrag),I(e,`touchend`,this._disableDelayedDrag),I(e,`touchcancel`,this._disableDelayedDrag),I(e,`mousemove`,this._delayedDragTouchMoveHandler),I(e,`touchmove`,this._delayedDragTouchMoveHandler),I(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?F(document,`pointermove`,this._onTouchMove):t?F(document,`touchmove`,this._onTouchMove):F(document,`mousemove`,this._onTouchMove):(F(W,`dragend`,this),F(q,`dragstart`,this._onDragStart));try{document.selection?Bi(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if($r=!1,q&&W){H(`dragStarted`,this,{evt:t}),this.nativeDraggable&&F(document,`dragover`,ki);var n=this.options;!e&&L(W,n.dragClass,!1),L(W,n.ghostClass,!0),Q.active=this,e&&this._appendGhost(),U({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(ri){this._lastX=ri.clientX,this._lastY=ri.clientY,Ei();for(var e=document.elementFromPoint(ri.clientX,ri.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(ri.clientX,ri.clientY),e!==t);)t=e;if(W.parentNode[V]._isOutsideThisEl(e),t)do{if(t[V]){var n=void 0;if(n=t[V]._onDragOver({clientX:ri.clientX,clientY:ri.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Di()}},_onTouchMove:function(e){if(ni){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=K&&xr(K,!0),o=K&&a&&a.a,s=K&&a&&a.d,c=vi&&Z&&Dr(Z),l=(i.clientX-ni.clientX+r.x)/(o||1)+(c?c[0]-mi[0]:0)/(o||1),u=(i.clientY-ni.clientY+r.y)/(s||1)+(c?c[1]-mi[1]:0)/(s||1);if(!Q.active&&!$r){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(K){a?(a.e+=l-(ii||0),a.f+=u-(ai||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;R(K,`webkitTransform`,d),R(K,`mozTransform`,d),R(K,`msTransform`,d),R(K,`transform`,d),ii=l,ai=u,ri=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!K){var e=this.options.fallbackOnBody?document.body:q,t=z(W,!0,vi,!0,e),n=this.options;if(vi){for(Z=e;R(Z,`position`)===`static`&&R(Z,`transform`)===`none`&&Z!==document;)Z=Z.parentNode;Z!==document.body&&Z!==document.documentElement?(Z===document&&(Z=Cr()),t.top+=Z.scrollTop,t.left+=Z.scrollLeft):Z=Cr(),mi=Dr(Z)}K=W.cloneNode(!0),L(K,n.ghostClass,!1),L(K,n.fallbackClass,!0),L(K,n.dragClass,!0),R(K,`transition`,``),R(K,`transform`,``),R(K,`box-sizing`,`border-box`),R(K,`margin`,0),R(K,`top`,t.top),R(K,`left`,t.left),R(K,`width`,t.width),R(K,`height`,t.height),R(K,`opacity`,`0.8`),R(K,`position`,vi?`absolute`:`fixed`),R(K,`zIndex`,`100000`),R(K,`pointerEvents`,`none`),Q.ghost=K,e.appendChild(K),R(K,`transform-origin`,oi/parseInt(K.style.width)*100+`% `+si/parseInt(K.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(H(`dragStart`,this,{evt:e}),Q.eventCanceled){this._onDrop();return}H(`setupClone`,this),Q.eventCanceled||(J=Ir(W),J.removeAttribute(`id`),J.draggable=!1,J.style[`will-change`]=``,this._hideClone(),L(J,this.options.chosenClass,!1),Q.clone=J),n.cloneId=Bi(function(){H(`clone`,n),!Q.eventCanceled&&(n.options.removeCloneOnHide||q.insertBefore(J,W),n._hideClone(),U({sortable:n,name:`clone`}))}),!t&&L(W,i.dragClass,!0),t?(ei=!0,n._loopId=setInterval(n._emulateDragOver,50)):(I(document,`mouseup`,n._onDrop),I(document,`touchend`,n._onDrop),I(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,W)),F(document,`drop`,n),R(W,`transform`,`translateZ(0)`)),$r=!0,n._dragStartId=Bi(n._dragStarted.bind(n,t,e)),F(document,`selectstart`,n),ci=!0,pr&&R(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=Q.active,l=Qr===s,u=o.sort,d=X||c,f,p=this,m=!1;if(hi)return;function h(o,s){H(o,p,nr({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 ji(q,t,W,r,n,z(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&&(L(W,X?X.options.ghostClass:c.options.ghostClass,!1),L(W,o.ghostClass,!0)),X!==p&&p!==Q.active?X=p:p===Q.active&&X&&(X=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===W&&!W.animated||n===t&&!n.animated)&&(li=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(W.parentNode[V]._isOutsideThisEl(e.target),!r&&Oi(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Y=B(W),Zr=B(W,o.draggable),U({sortable:p,name:`change`,toEl:t,newIndex:Y,newDraggableIndex:Zr,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=yr(n,o.draggable,t,!0),h(`dragOver`),Q.eventCanceled)return m;if(W.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(ei=!1,c&&!o.disabled&&(l?u||(a=G!==q):X===this||(this.lastPutMode=Qr.checkPull(this,c,W,e))&&s.checkPut(this,c,W,e))){if(f=this._getDirection(e,n)===`vertical`,r=z(W),h(`dragOverValid`),Q.eventCanceled)return m;if(a)return G=q,g(),this._hideClone(),h(`revert`),Q.eventCanceled||(Kr?q.insertBefore(W,Kr):q.appendChild(W)),_(!0);var y=Er(t,o.draggable);if(!y||Fi(e,f,this)&&!y.animated){if(y===W)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=z(n)),ji(q,t,W,r,n,i,e,!!n)!==!1)return g(),y&&y.nextSibling?t.insertBefore(W,y.nextSibling):t.appendChild(W),G=t,v(),_(!0)}else if(y&&Pi(e,f,this)){var b=Tr(t,0,o,!0);if(b===W)return _(!1);if(n=b,i=z(n),ji(q,t,W,r,n,i,e,!1)!==!1)return g(),t.insertBefore(W,b),G=t,v(),_(!0)}else if(n.parentNode===t){i=z(n);var x=0,S,ee=W.parentNode!==t,C=!Ci(W.animated&&W.toRect||r,n.animated&&n.toRect||i,f),w=f?`top`:`left`,T=wr(n,`top`,`top`)||wr(W,`top`,`top`),E=T?T.scrollTop:void 0;li!==n&&(S=i[w],di=!1,fi=!C&&o.invertSwap||ee),x=Ii(e,n,i,f,C?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,fi,li===n);var D;if(x!==0){var O=B(W);do O-=x,D=G.children[O];while(D&&(R(D,`display`)===`none`||D===K))}if(x===0||D===n)return _(!1);li=n,ui=x;var k=n.nextElementSibling,te=!1;te=x===1;var ne=ji(q,t,W,r,n,i,e,te);if(ne!==!1)return(ne===1||ne===-1)&&(te=ne===1),hi=!0,setTimeout(Ni,30),g(),te&&!k?t.appendChild(W):n.parentNode.insertBefore(W,te?k:n),T&&Fr(T,0,E-T.scrollTop),G=W.parentNode,S!==void 0&&!fi&&(pi=Math.abs(S-z(n)[w])),v(),_(!0)}if(t.contains(W))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){I(document,`mousemove`,this._onTouchMove),I(document,`touchmove`,this._onTouchMove),I(document,`pointermove`,this._onTouchMove),I(document,`dragover`,Oi),I(document,`mousemove`,Oi),I(document,`touchmove`,Oi)},_offUpEvents:function(){var e=this.el.ownerDocument;I(e,`mouseup`,this._onDrop),I(e,`touchend`,this._onDrop),I(e,`pointerup`,this._onDrop),I(e,`touchcancel`,this._onDrop),I(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(Y=B(W),Zr=B(W,n.draggable),H(`drop`,this,{evt:e}),G=W&&W.parentNode,Y=B(W),Zr=B(W,n.draggable),Q.eventCanceled){this._nulling();return}$r=!1,fi=!1,di=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vi(this.cloneId),Vi(this._dragStartId),this.nativeDraggable&&(I(document,`drop`,this),I(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pr&&R(document.body,`user-select`,``),R(W,`transform`,``),e&&(ci&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),K&&K.parentNode&&K.parentNode.removeChild(K),(q===G||X&&X.lastPutMode!==`clone`)&&J&&J.parentNode&&J.parentNode.removeChild(J),W&&(this.nativeDraggable&&I(W,`dragend`,this),Mi(W),W.style[`will-change`]=``,ci&&!$r&&L(W,X?X.options.ghostClass:this.options.ghostClass,!1),L(W,this.options.chosenClass,!1),U({sortable:this,name:`unchoose`,toEl:G,newIndex:null,newDraggableIndex:null,originalEvent:e}),q===G?Y!==Yr&&Y>=0&&(U({sortable:this,name:`update`,toEl:G,originalEvent:e}),U({sortable:this,name:`sort`,toEl:G,originalEvent:e})):(Y>=0&&(U({rootEl:G,name:`add`,toEl:G,fromEl:q,originalEvent:e}),U({sortable:this,name:`remove`,toEl:G,originalEvent:e}),U({rootEl:G,name:`sort`,toEl:G,fromEl:q,originalEvent:e}),U({sortable:this,name:`sort`,toEl:G,originalEvent:e})),X&&X.save()),Q.active&&((Y==null||Y===-1)&&(Y=Yr,Zr=Xr),U({sortable:this,name:`end`,toEl:G,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){H(`nulling`,this),q=W=G=K=Kr=J=qr=Jr=ni=ri=ci=Y=Zr=Yr=Xr=li=ui=X=Qr=Q.dragged=Q.ghost=Q.clone=Q.active=null,gi.forEach(function(e){e.checked=!0}),gi.length=ii=ai=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:W&&(this._onDragOver(e),Ai(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],yr(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Ri(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];yr(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 yr(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=Ur.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&Ti(n)},destroy:function(){H(`destroy`,this);var e=this.el;e[V]=null,I(e,`mousedown`,this._onTapStart),I(e,`touchstart`,this._onTapStart),I(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(I(e,`dragover`,this),I(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),ti.splice(ti.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!Jr){if(H(`hideClone`,this),Q.eventCanceled)return;R(J,`display`,`none`),this.options.removeCloneOnHide&&J.parentNode&&J.parentNode.removeChild(J),Jr=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(Jr){if(H(`showClone`,this),Q.eventCanceled)return;W.parentNode==q&&!this.options.group.revertClone?q.insertBefore(J,W):Kr?q.insertBefore(J,Kr):q.appendChild(J),this.options.group.revertClone&&this.animate(W,J),R(J,`display`,``),Jr=!1}}};function Ai(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function ji(e,t,n,r,i,a,o,s){var c,l=e[V],u=l.options.onMove,d;return window.CustomEvent&&!ur&&!dr?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||z(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function Mi(e){e.draggable=!1}function Ni(){hi=!1}function Pi(e,t,n){var r=z(Tr(n.el,0,n.options,!0)),i=Lr(n.el,n.options,K),a=10;return t?e.clientX<i.left-a||e.clientY<r.top&&e.clientX<r.right:e.clientY<i.top-a||e.clientY<r.bottom&&e.clientX<r.left}function Fi(e,t,n){var r=z(Er(n.el,n.options.draggable)),i=Lr(n.el,n.options,K),a=10;return t?e.clientX>i.right+a||e.clientY>r.bottom&&e.clientX>r.left:e.clientY>i.bottom+a||e.clientX>r.right&&e.clientY>r.top}function Ii(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&&pi<l*i){if(!di&&(ui===1?c>u+l*a/2:c<d-l*a/2)&&(di=!0),di)f=!0;else if(ui===1?c<u+pi:c>d-pi)return-ui}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return Li(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function Li(e){return B(W)<B(e)?1:-1}function Ri(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 zi(e){gi.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&gi.push(r)}}function Bi(e){return setTimeout(e,0)}function Vi(e){return clearTimeout(e)}_i&&F(document,`touchmove`,function(e){(Q.active||$r)&&e.cancelable&&e.preventDefault()}),Q.utils={on:F,off:I,css:R,find:Sr,is:function(e,t){return!!yr(e,t,e,!1)},extend:Ar,throttle:Nr,closest:yr,toggleClass:L,clone:Ir,index:B,nextTick:Bi,cancelNextTick:Vi,detectDirection:Si,getChild:Tr},Q.get=function(e){return e[V]},Q.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 ${{}.toString.call(e)}`;e.utils&&(Q.utils=nr(nr({},Q.utils),e.utils)),Ur.mount(e)})},Q.create=function(e,t){return new Q(e,t)},Q.version=cr;var $=[],Hi,Ui,Wi=!1,Gi,Ki,qi,Ji;function Yi(){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?F(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?F(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?F(document,`touchmove`,this._handleFallbackAutoScroll):F(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?I(document,`dragover`,this._handleAutoScroll):(I(document,`pointermove`,this._handleFallbackAutoScroll),I(document,`touchmove`,this._handleFallbackAutoScroll),I(document,`mousemove`,this._handleFallbackAutoScroll)),Zi(),Xi(),Pr()},nulling:function(){qi=Ui=Hi=Wi=Ji=Gi=Ki=null,$.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(qi=e,t||this.options.forceAutoScrollFallback||dr||ur||pr){Qi(e,this.options,a,t);var o=kr(a,!0);Wi&&(!Ji||r!==Gi||i!==Ki)&&(Ji&&Zi(),Ji=setInterval(function(){var a=kr(document.elementFromPoint(r,i),!0);a!==o&&(o=a,Xi()),Qi(e,n.options,a,t)},10),Gi=r,Ki=i)}else{if(!this.options.bubbleScroll||kr(a,!0)===Cr()){Xi();return}Qi(e,this.options,kr(a,!1),!1)}}},ar(e,{pluginName:`scroll`,initializeByDefault:!0})}function Xi(){$.forEach(function(e){clearInterval(e.pid)}),$=[]}function Zi(){clearInterval(Ji)}var Qi=Nr(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=Cr(),l=!1,u;Ui!==n&&(Ui=n,Xi(),Hi=t.scroll,u=t.scrollFn,Hi===!0&&(Hi=kr(n,!0)));var d=0,f=Hi;do{var p=f,m=z(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,ee=p.scrollWidth,C=p.scrollHeight,w=R(p),T=p.scrollLeft,E=p.scrollTop;p===c?(x=y<ee&&(w.overflowX===`auto`||w.overflowX===`scroll`||w.overflowX===`visible`),S=b<C&&(w.overflowY===`auto`||w.overflowY===`scroll`||w.overflowY===`visible`)):(x=y<ee&&(w.overflowX===`auto`||w.overflowX===`scroll`),S=b<C&&(w.overflowY===`auto`||w.overflowY===`scroll`));var D=x&&(Math.abs(v-i)<=o&&T+y<ee)-(Math.abs(_-i)<=o&&!!T),O=S&&(Math.abs(g-a)<=o&&E+b<C)-(Math.abs(h-a)<=o&&!!E);if(!$[d])for(var k=0;k<=d;k++)$[k]||($[k]={});($[d].vx!=D||$[d].vy!=O||$[d].el!==p)&&($[d].el=p,$[d].vx=D,$[d].vy=O,clearInterval($[d].pid),(D!=0||O!=0)&&(l=!0,$[d].pid=setInterval(function(){r&&this.layer===0&&Q.active._onTouchMove(qi);var t=$[this.layer].vy?$[this.layer].vy*s:0,n=$[this.layer].vx?$[this.layer].vx*s:0;typeof u==`function`&&u.call(Q.dragged.parentNode[V],n,t,e,qi,$[this.layer].el)!==`continue`||Fr($[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=kr(f,!1)));Wi=l}},30),$i=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}))}};function ea(){}ea.prototype={startIndex:null,dragStart:function(e){this.startIndex=e.oldDraggableIndex},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Tr(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:$i},ar(ea,{pluginName:`revertOnSpill`});function ta(){}ta.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:$i},ar(ta,{pluginName:`removeOnSpill`}),Q.mount(new Yi),Q.mount(ta,ea);function na(e){return e==null?e:JSON.parse(JSON.stringify(e))}function ra(e){_()&&t(e)}function ia(e){_()?d(e):u(e)}var aa=null,oa=null;function sa(e=null,t=null){aa=e,oa=t}function ca(){return{data:aa,clonedData:oa}}var la=Symbol(`cloneElement`);function ua(...t){let n=_()?.proxy,r=null,i=t[0],[,a,o]=t;Array.isArray(h(a))||(o=a,a=null);let s=null,{immediate:l=!0,clone:d=na,forceFallback:f,fallbackOnBody:p,customUpdate:m}=h(o)??{};function g(e){let{from:t,oldIndex:n,item:i}=e,o=Array.from(t.childNodes);r=f&&!p?o.slice(0,-1):o;let s=h(h(a)?.[n]),c=d(s);sa(s,c),i[la]=c}function v(t){let n=t.item[la];if(!Wn(n)){if(qn(t.item),e(a)){let e=[...h(a)];a.value=Un(e,t.newDraggableIndex,n);return}Un(h(a),t.newDraggableIndex,n)}}function y(t){let{from:n,item:r,oldIndex:i,oldDraggableIndex:o,pullMode:s,clone:c}=t;if(Kn(n,r,i),s===`clone`){qn(c);return}if(e(a)){let e=[...h(a)];a.value=Hn(e,o);return}Hn(h(a),o)}function b(t){if(m){m(t);return}let{from:n,item:r,oldIndex:i,oldDraggableIndex:o,newDraggableIndex:s}=t;if(qn(r),Kn(n,r,i),e(a)){let e=[...h(a)];a.value=zn(e,o,s);return}zn(h(a),o,s)}function x(e){let{newIndex:t,oldIndex:n,from:i,to:a}=e,o=null,s=t===n&&i===a;try{if(s){let e=null;r?.some((t,n)=>{if(e&&r?.length!==a.childNodes.length)return i.insertBefore(e,t.nextSibling),!0;let o=a.childNodes[n];e=a?.replaceChild(t,o)})}}catch(e){o=e}finally{r=null}u(()=>{if(sa(),o)throw o})}let S={onUpdate:b,onStart:g,onAdd:v,onRemove:y,onEnd:x};function ee(e){let t=h(i);return e||=Gn(t)?Jn(t,n?.$el):t,e&&!Zn(e)&&(e=e.$el),e||Rn(`Root element not found`),e}function C(){let e=h(o)??{},{immediate:t,clone:n}=e,r=Fn(e,[`immediate`,`clone`]);return Qn(r,(e,t)=>{$n(e)&&(r[e]=(e,...n)=>(er(e,ca()),t(e,...n)))}),Xn(a===null?{}:S,r)}let w=e=>{e=ee(e),s&&T.destroy(),s=new Q(e,C())};c(()=>o,()=>{s&&Qn(C(),(e,t)=>{s?.option(e,t)})},{deep:!0});let T={option:(e,t)=>s?.option(e,t),destroy:()=>{s?.destroy(),s=null},save:()=>s?.save(),toArray:()=>s?.toArray(),closest:(...e)=>s?.closest(...e)};return ia(()=>{l&&w()}),ra(T.destroy),Pn({start:w,pause:()=>T?.option(`disabled`,!0),resume:()=>T?.option(`disabled`,!1)},T)}var da=[`update`,`start`,`add`,`remove`,`choose`,`unchoose`,`end`,`sort`,`filter`,`clone`,`move`,`change`],fa=y({name:`VueDraggable`,model:{prop:`modelValue`,event:`update:modelValue`},props:[`clone`,`animation`,`ghostClass`,`group`,`sort`,`disabled`,`store`,`handle`,`draggable`,`swapThreshold`,`invertSwap`,`invertedSwapThreshold`,`removeCloneOnHide`,`direction`,`chosenClass`,`dragClass`,`ignore`,`filter`,`preventOnFilter`,`easing`,`setData`,`dropBubble`,`dragoverBubble`,`dataIdAttr`,`delay`,`delayOnTouchOnly`,`touchStartThreshold`,`forceFallback`,`fallbackClass`,`fallbackOnBody`,`fallbackTolerance`,`fallbackOffset`,`supportPointer`,`emptyInsertThreshold`,`scroll`,`forceAutoScrollFallback`,`scrollSensitivity`,`scrollSpeed`,`bubbleScroll`,`modelValue`,`tag`,`target`,`customUpdate`,...da.map(e=>`on${e.replace(/^\S/,e=>e.toUpperCase())}`)],emits:[`update:modelValue`,...da],setup(e,{slots:t,emit:n,expose:r,attrs:i}){let a=da.reduce((e,t)=>{let r=`on${t.replace(/^\S/,e=>e.toUpperCase())}`;return e[r]=(...e)=>n(t,...e),e},{}),o=b(()=>{let t=g(e),{modelValue:n}=t,r=Fn(t,[`modelValue`]),o=Object.entries(r).reduce((e,[t,n])=>{let r=h(n);return r!==void 0&&(e[t]=r),e},{});return Pn(Pn({},a),Vn(Pn(Pn({},i),o)))}),s=b({get:()=>e.modelValue,set:e=>n(`update:modelValue`,e)}),c=m(),l=f(ua(e.target||c,s,o));return r(l),()=>S(e.tag||`div`,{ref:c},(t?.default)?.call(t,l))}}),pa={mounted:`mounted`,unmounted:`unmounted`};pa.mounted,pa.unmounted;export{Ee as a,pe as i,On as n,De as o,Jt as r,fa as t}; |