@ozdao/prometheus-framework 0.1.82 → 0.1.84
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.cjs +4 -4
- package/dist/node_modules/vue-draggable-next/dist/vue-draggable-next.esm-bundler.js +3 -3
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@capacitor/core/dist/index.js +22 -22
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.cjs +1 -1
- package/dist/prometheus-framework/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js +2981 -2804
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.cjs +1 -0
- package/dist/prometheus-framework/node_modules/date-fns/esm/getQuarter/index.js +10 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/getNumberType.js +26 -26
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.cjs +1 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/helpers/isObject.js +7 -0
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/metadata.js +28 -29
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.cjs +2 -2
- package/dist/prometheus-framework/node_modules/libphonenumber-js/es6/normalizeArguments.js +55 -65
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.cjs +1 -1
- package/dist/prometheus-framework/node_modules/libphonenumber-js/metadata.min.json.js +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Address/Address.vue.js +23 -23
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Breadcrumbs/Breadcrumbs.vue2.js +31 -31
- package/dist/prometheus-framework/src/components/Button/Button.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue.js +2 -224
- package/dist/prometheus-framework/src/components/Button/Button.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Button/Button.vue2.js +224 -2
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Checkbox/Checkbox.vue.js +22 -22
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/DatePicker/DatePicker.vue.js +18 -18
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/EditImages/EditImages.vue.js +24 -24
- package/dist/prometheus-framework/src/components/Field/Field.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue.js +2 -76
- package/dist/prometheus-framework/src/components/Field/Field.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Field/Field.vue2.js +76 -2
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldBig/FieldBig.vue.js +31 -30
- package/dist/prometheus-framework/src/components/FieldPhone/FieldPhone.vue.js +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/FieldTags/BlockTags.vue.js +20 -20
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/LocationMarker/LocationMarker.vue.js +33 -33
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Popup/Popup.vue.js +21 -21
- package/dist/prometheus-framework/src/components/Select/Select.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue.js +2 -78
- package/dist/prometheus-framework/src/components/Select/Select.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Select/Select.vue2.js +78 -2
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue.js +2 -44
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.cjs +1 -1
- package/dist/prometheus-framework/src/components/Tab/Tab.vue2.js +44 -2
- package/dist/prometheus-framework/src/components/Text/Text.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Text/Text.vue.js +11 -11
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/Upload/Upload.vue.js +27 -27
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImage/UploadImage.vue.js +18 -18
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.cjs +1 -1
- package/dist/prometheus-framework/src/components/UploadImageMultiple/UploadImageMultiple.vue.js +17 -17
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/layouts/Auth.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterCode.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/EnterPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/Invite.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/ResetPassword.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignIn.vue.js +44 -43
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/components/pages/SignUp.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/auth/store/auth.cjs +1 -1
- package/dist/prometheus-framework/src/modules/auth/store/auth.js +65 -96
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/blocks/CardBlogpost.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/layouts/Community.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/community/components/pages/CreateBlogPost.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Audio.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.cjs +2 -2
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Bullets.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Caption.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Embed.vue.js +16 -16
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.cjs +3 -3
- package/dist/prometheus-framework/src/modules/constructor/components/elements/H2.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/ImageUpload.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.cjs +1 -4
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue.js +2 -62
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.cjs +4 -1
- package/dist/prometheus-framework/src/modules/constructor/components/elements/Textarea.vue2.js +62 -2
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/constructor/components/sections/Constructor.vue.js +56 -56
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/blocks/CardEvent.vue.js +44 -43
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/elements/ButtonJoin.vue.js +15 -15
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/layouts/layoutEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/EditEvent.vue.js +13 -13
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/events/components/pages/Events.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/BackofficeGallery.vue.js +51 -53
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/gallery/components/sections/GalleryWithCategories.vue.js +59 -61
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/globals/components/blocks/CardHeader.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/legal/components/pages/Legal.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Contacts.vue.js +22 -22
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/DepartmentMemberModify.vue.js +25 -25
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/EditArray.vue.js +9 -9
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/blocks/Socials.vue.js +23 -23
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/elements/ButtonToggleMembership.vue.js +11 -11
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/DepartmentEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organization.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/OrganizationEdit.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/pages/Organizations.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Documents.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/FeedDepartments.vue.js +19 -19
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersAdd.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/MembersList.vue.js +30 -30
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/organizations/components/sections/Organizations.vue.js +4 -4
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/products/components/sections/FilterProducts.vue.js +24 -24
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/reports/components/sections/FormReport.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/spots/components/sections/Feed.vue.js +21 -21
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/Profile.vue.js +2 -2
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileBlogposts.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEdit.vue.js +3 -3
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileEvents.vue.js +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.cjs +1 -1
- package/dist/prometheus-framework/src/modules/users/components/pages/ProfileOrganizations.vue.js +1 -1
- package/dist/prometheus-framework.cjs.js +27 -27
- package/dist/prometheus-framework.es.js +1949 -1937
- package/dist/style.css +1 -1
- package/package.json +2 -4
- package/src/modules/auth/components/pages/ResetPassword.vue +1 -1
- package/src/modules/auth/components/pages/SignIn.vue +1 -0
- package/src/modules/auth/store/auth.js +42 -51
@@ -1,10 +1,10 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
2
|
-
* vue-draggable-next v2.
|
3
|
-
* (c)
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Oe=require("vue");/*!
|
2
|
+
* vue-draggable-next v2.2.0
|
3
|
+
* (c) 2023 Anish George
|
4
4
|
* @license MIT
|
5
5
|
*//**!
|
6
6
|
* Sortable 1.14.0
|
7
7
|
* @author RubaXa <trash@rubaxa.org>
|
8
8
|
* @author owenm <owen23355@gmail.com>
|
9
9
|
* @license MIT
|
10
|
-
*/function ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(n),!0).forEach(function(o){Rt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Fe(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(e){return typeof e}:Fe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(t)}function Rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(){return U=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},U.apply(this,arguments)}function Yt(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,r;for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Bt(t,e){if(t==null)return{};var n=Yt(t,e),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var jt="1.14.0";function z(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var q=z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ce=z(/Edge/i),ht=z(/firefox/i),Ee=z(/safari/i)&&!z(/chrome/i)&&!z(/android/i),Dt=z(/iP(ad|od|hone)/i),$t=z(/chrome/i)&&z(/android/i),St={capture:!1,passive:!1};function y(t,e,n){t.addEventListener(e,n,!q&&St)}function b(t,e,n){t.removeEventListener(e,n,!q&&St)}function Ye(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Ht(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function $(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Ye(t,e):Ye(t,e))||o&&t===n)return t;if(t===n)break}while(t=Ht(t))}return null}var pt=/\s+/g;function M(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(pt," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(pt," ")}}function h(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function ce(t,e){var n="";if(typeof t=="string")n=t;else do{var o=h(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Tt(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function H(){var t=document.scrollingElement;return t||document.documentElement}function C(t,e,n,o,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,l,s,u,f,c;if(t!==window&&t.parentNode&&t!==H()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,c=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,c=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!q))do if(i&&i.getBoundingClientRect&&(h(i,"transform")!=="none"||n&&h(i,"position")!=="static")){var m=i.getBoundingClientRect();a-=m.top+parseInt(h(i,"border-top-width")),l-=m.left+parseInt(h(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(o&&t!==window){var E=ce(i||t),v=E&&E.a,w=E&&E.d;E&&(a/=w,l/=v,c/=v,f/=w,s=a+f,u=l+c)}return{top:a,left:l,bottom:s,right:u,width:c,height:f}}}function gt(t,e,n){for(var o=ee(t,!0),i=C(t)[e];o;){var r=C(o)[n],a=void 0;if(n==="top"||n==="left"?a=i>=r:a=i<=r,!a)return o;if(o===H())break;o=ee(o,!1)}return!1}function fe(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==p.ghost&&(o||a[r]!==p.dragged)&&$(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function st(t,e){for(var n=t.lastElementChild;n&&(n===p.ghost||h(n,"display")==="none"||e&&!Ye(n,e));)n=n.previousElementSibling;return n||null}function X(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!e||Ye(t,e))&&n++;return n}function mt(t){var e=0,n=0,o=H();if(t)do{var i=ce(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function Gt(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n)}return-1}function ee(t,e){if(!t||!t.getBoundingClientRect)return H();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=h(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 H();if(o||e)return n;o=!0}}while(n=n.parentNode);return H()}function Wt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function We(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var _e;function Ct(t,e){return function(){if(!_e){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),_e=setTimeout(function(){_e=void 0},e)}}}function Vt(){clearTimeout(_e),_e=void 0}function xt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Ot(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var L="Sortable"+new Date().getTime();function zt(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(h(i,"display")==="none"||i===p.ghost)){t.push({target:i,rect:C(i)});var r=G({},t[t.length-1].rect);if(i.thisAnimationDuration){var a=ce(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Gt(t,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var r=!1,a=0;t.forEach(function(l){var s=0,u=l.target,f=u.fromRect,c=C(u),m=u.prevFromRect,E=u.prevToRect,v=l.rect,w=ce(u,!0);w&&(c.top-=w.f,c.left-=w.e),u.toRect=c,u.thisAnimationDuration&&We(m,c)&&!We(f,c)&&(v.top-c.top)/(v.left-c.left)===(f.top-c.top)/(f.left-c.left)&&(s=qt(v,m,E,i.options)),We(c,f)||(u.prevFromRect=f,u.prevToRect=c,s||(s=i.options.animation),i.animate(u,v,c,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof o=="function"&&o()},a):typeof o=="function"&&o(),t=[]},animate:function(o,i,r,a){if(a){h(o,"transition",""),h(o,"transform","");var l=ce(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),c=(i.top-r.top)/(u||1);o.animatingX=!!f,o.animatingY=!!c,h(o,"transform","translate3d("+f+"px,"+c+"px,0)"),this.forRepaintDummy=Ut(o),h(o,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),h(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){h(o,"transition",""),h(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},a)}}}}function Ut(t){return t.offsetWidth}function qt(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var le=[],Ve={initializeByDefault:!0},xe={mount:function(e){for(var n in Ve)Ve.hasOwnProperty(n)&&!(n in e)&&(e[n]=Ve[n]);le.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),le.push(e)},pluginEvent:function(e,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=e+"Global";le.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][r]&&n[a.pluginName][r](G({sortable:n},o)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](G({sortable:n},o)))})},initializePlugins:function(e,n,o,i){le.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,n,e.options);u.sortable=e,u.options=e.options,e[s]=u,U(o,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,n){var o={};return le.forEach(function(i){typeof i.eventProperties=="function"&&U(o,i.eventProperties.call(n[i.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return le.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(e[r.pluginName],o))}),i}};function Kt(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,c=t.newDraggableIndex,m=t.originalEvent,E=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[L],!!e){var w,k=e.options,W="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!q&&!Ce?w=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(o,!0,!0)),w.to=a||n,w.from=l||n,w.item=i||n,w.clone=r,w.oldIndex=s,w.newIndex=u,w.oldDraggableIndex=f,w.newDraggableIndex=c,w.originalEvent=m,w.pullMode=E?E.lastPutMode:void 0;var I=G(G({},v),xe.getEventProperties(o,e));for(var R in I)w[R]=I[R];n&&n.dispatchEvent(w),k[W]&&k[W].call(e,w)}}var Zt=["evt"],P=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=Bt(o,Zt);xe.pluginEvent.bind(p)(e,n,G({dragEl:d,parentEl:D,ghostEl:g,rootEl:_,nextEl:ae,lastDownEl:Le,cloneEl:S,cloneHidden:J,dragStarted:be,putSortable:x,activeSortable:p.active,originalEvent:i,oldIndex:de,oldDraggableIndex:De,newIndex:F,newDraggableIndex:Q,hideGhostForTarget:Nt,unhideGhostForTarget:Mt,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){A({sortable:n,name:l,originalEvent:i})}},r))};function A(t){Kt(G({putSortable:x,cloneEl:S,targetEl:d,rootEl:_,oldIndex:de,oldDraggableIndex:De,newIndex:F,newDraggableIndex:Q},t))}var d,D,g,_,ae,Le,S,J,de,F,De,Q,Ae,x,ue=!1,Be=!1,je=[],ie,Y,ze,Ue,vt,bt,be,se,Se,Te=!1,Pe=!1,Xe,O,qe=[],nt=!1,$e=[],Ge=typeof document<"u",Ne=Dt,yt=Ce||q?"cssFloat":"float",Qt=Ge&&!$t&&!Dt&&"draggable"in document.createElement("div"),It=function(){if(Ge){if(q)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),At=function(e,n){var o=h(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=fe(e,0,n),a=fe(e,1,n),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+C(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var c=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&o[yt]==="none"||a&&o[yt]==="none"&&u+f>i)?"vertical":"horizontal"},Jt=function(e,n,o){var i=o?e.left:e.top,r=o?e.right:e.bottom,a=o?e.width:e.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return i===l||r===s||i+a/2===l+u/2},en=function(e,n){var o;return je.some(function(i){var r=i[L].options.emptyInsertThreshold;if(!(!r||st(i))){var a=C(i),l=e>=a.left-r&&e<=a.right+r,s=n>=a.top-r&&n<=a.bottom+r;if(l&&s)return o=i}}),o},Pt=function(e){function n(r,a){return function(l,s,u,f){var c=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||c))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(l,s,u,f),a)(l,s,u,f);var m=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===m||r.join&&r.indexOf(m)>-1}}var o={},i=e.group;(!i||Fe(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,e.group=o},Nt=function(){!It&&g&&h(g,"display","none")},Mt=function(){!It&&g&&h(g,"display","")};Ge&&document.addEventListener("click",function(t){if(Be)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Be=!1,!1},!0);var re=function(e){if(d){e=e.touches?e.touches[0]:e;var n=en(e.clientX,e.clientY);if(n){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[L]._onDragOver(o)}}},tn=function(e){d&&d.parentNode[L]._isOutsideThisEl(e.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=U({},e),t[L]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return At(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&!Ee,emptyInsertThreshold:5};xe.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);Pt(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:Qt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?y(t,"pointerdown",this._onTapStart):(y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),je.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),U(this,zt())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(se=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(dn(o),!d&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ee&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,o,!1),!(s&&s.animated)&&Le!==s)){if(de=X(s),De=X(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){A({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o}),P("filter",n,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=$(u,c.trim(),o,!1),c)return A({sortable:n,rootEl:c,name:"filter",targetEl:s,fromEl:o,toEl:o}),P("filter",n,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!$(u,i.handle,o,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,o){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(o&&!d&&o.parentNode===r){var u=C(o);if(_=r,d=o,D=d.parentNode,ae=d.nextSibling,Le=o,Ae=a.group,p.dragged=d,ie={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},vt=ie.clientX-u.left,bt=ie.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",s=function(){if(P("delayEnded",i,{evt:e}),p.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ht&&i.nativeDraggable&&(d.draggable=!0),i._triggerDragStart(e,n),A({sortable:i,name:"choose",originalEvent:e}),M(d,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){Tt(d,f.trim(),Ke)}),y(l,"dragover",re),y(l,"mousemove",re),y(l,"touchmove",re),y(l,"mouseup",i._onDrop),y(l,"touchend",i._onDrop),y(l,"touchcancel",i._onDrop),ht&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),P("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ce||q))){if(p.eventCanceled){this._onDrop();return}y(l,"mouseup",i._disableDelayedDrag),y(l,"touchend",i._disableDelayedDrag),y(l,"touchcancel",i._disableDelayedDrag),y(l,"mousemove",i._delayedDragTouchMoveHandler),y(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&y(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&Ke(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):n?y(document,"touchmove",this._onTouchMove):y(document,"mousemove",this._onTouchMove):(y(d,"dragend",this),y(_,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ue=!1,_&&d){P("dragStarted",this,{evt:n}),this.nativeDraggable&&y(document,"dragover",tn);var o=this.options;!e&&M(d,o.dragClass,!1),M(d,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),A({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Y){this._lastX=Y.clientX,this._lastY=Y.clientY,Nt();for(var e=document.elementFromPoint(Y.clientX,Y.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Y.clientX,Y.clientY),e!==n);)n=e;if(d.parentNode[L]._isOutsideThisEl(e),n)do{if(n[L]){var o=void 0;if(o=n[L]._onDragOver({clientX:Y.clientX,clientY:Y.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Mt()}},_onTouchMove:function(e){if(ie){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=e.touches?e.touches[0]:e,a=g&&ce(g,!0),l=g&&a&&a.a,s=g&&a&&a.d,u=Ne&&O&&mt(O),f=(r.clientX-ie.clientX+i.x)/(l||1)+(u?u[0]-qe[0]:0)/(l||1),c=(r.clientY-ie.clientY+i.y)/(s||1)+(u?u[1]-qe[1]:0)/(s||1);if(!p.active&&!ue){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(g){a?(a.e+=f-(ze||0),a.f+=c-(Ue||0)):a={a:1,b:0,c:0,d:1,e:f,f:c};var m="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");h(g,"webkitTransform",m),h(g,"mozTransform",m),h(g,"msTransform",m),h(g,"transform",m),ze=f,Ue=c,Y=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!g){var e=this.options.fallbackOnBody?document.body:_,n=C(d,!0,Ne,!0,e),o=this.options;if(Ne){for(O=e;h(O,"position")==="static"&&h(O,"transform")==="none"&&O!==document;)O=O.parentNode;O!==document.body&&O!==document.documentElement?(O===document&&(O=H()),n.top+=O.scrollTop,n.left+=O.scrollLeft):O=H(),qe=mt(O)}g=d.cloneNode(!0),M(g,o.ghostClass,!1),M(g,o.fallbackClass,!0),M(g,o.dragClass,!0),h(g,"transition",""),h(g,"transform",""),h(g,"box-sizing","border-box"),h(g,"margin",0),h(g,"top",n.top),h(g,"left",n.left),h(g,"width",n.width),h(g,"height",n.height),h(g,"opacity","0.8"),h(g,"position",Ne?"absolute":"fixed"),h(g,"zIndex","100000"),h(g,"pointerEvents","none"),p.ghost=g,e.appendChild(g),h(g,"transform-origin",vt/parseInt(g.style.width)*100+"% "+bt/parseInt(g.style.height)*100+"%")}},_onDragStart:function(e,n){var o=this,i=e.dataTransfer,r=o.options;if(P("dragStart",this,{evt:e}),p.eventCanceled){this._onDrop();return}P("setupClone",this),p.eventCanceled||(S=Ot(d),S.draggable=!1,S.style["will-change"]="",this._hideClone(),M(S,this.options.chosenClass,!1),p.clone=S),o.cloneId=ke(function(){P("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(S,d),o._hideClone(),A({sortable:o,name:"clone"}))}),!n&&M(d,r.dragClass,!0),n?(Be=!0,o._loopId=setInterval(o._emulateDragOver,50)):(b(document,"mouseup",o._onDrop),b(document,"touchend",o._onDrop),b(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,d)),y(document,"drop",o),h(d,"transform","translateZ(0)")),ue=!0,o._dragStartId=ke(o._dragStarted.bind(o,n,e)),y(document,"selectstart",o),be=!0,Ee&&h(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,o=e.target,i,r,a,l=this.options,s=l.group,u=p.active,f=Ae===s,c=l.sort,m=x||u,E,v=this,w=!1;if(nt)return;function k(ve,Xt){P(ve,v,G({evt:e,isOwner:f,axis:E?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:c,fromSortable:m,target:o,completed:I,onMove:function(ct,kt){return Me(_,n,d,i,ct,C(ct),e,kt)},changed:R},Xt))}function W(){k("dragOverAnimationCapture"),v.captureAnimationState(),v!==m&&m.captureAnimationState()}function I(ve){return k("dragOverCompleted",{insertion:ve}),ve&&(f?u._hideClone():u._showClone(v),v!==m&&(M(d,x?x.options.ghostClass:u.options.ghostClass,!1),M(d,l.ghostClass,!0)),x!==v&&v!==p.active?x=v:v===p.active&&x&&(x=null),m===v&&(v._ignoreWhileAnimating=o),v.animateAll(function(){k("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(o===d&&!d.animated||o===n&&!o.animated)&&(se=null),!l.dragoverBubble&&!e.rootEl&&o!==document&&(d.parentNode[L]._isOutsideThisEl(e.target),!ve&&re(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function R(){F=X(d),Q=X(d,l.draggable),A({sortable:v,name:"change",toEl:n,newIndex:F,newDraggableIndex:Q,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=$(o,l.draggable,n,!0),k("dragOver"),p.eventCanceled)return w;if(d.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||v._ignoreWhileAnimating===o)return I(!1);if(Be=!1,u&&!l.disabled&&(f?c||(a=D!==_):x===this||(this.lastPutMode=Ae.checkPull(this,u,d,e))&&s.checkPut(this,u,d,e))){if(E=this._getDirection(e,o)==="vertical",i=C(d),k("dragOverValid"),p.eventCanceled)return w;if(a)return D=_,W(),this._hideClone(),k("revert"),p.eventCanceled||(ae?_.insertBefore(d,ae):_.appendChild(d)),I(!0);var B=st(n,l.draggable);if(!B||an(e,E,this)&&!B.animated){if(B===d)return I(!1);if(B&&n===e.target&&(o=B),o&&(r=C(o)),Me(_,n,d,i,o,r,e,!!o)!==!1)return W(),n.appendChild(d),D=n,R(),I(!0)}else if(B&&rn(e,E,this)){var te=fe(n,0,l,!0);if(te===d)return I(!1);if(o=te,r=C(o),Me(_,n,d,i,o,r,e,!1)!==!1)return W(),n.insertBefore(d,te),D=n,R(),I(!0)}else if(o.parentNode===n){r=C(o);var j=0,ne,he=d.parentNode!==n,N=!Jt(d.animated&&d.toRect||i,o.animated&&o.toRect||r,E),pe=E?"top":"left",K=gt(o,"top","top")||gt(d,"top","top"),ge=K?K.scrollTop:void 0;se!==o&&(ne=r[pe],Te=!1,Pe=!N&&l.invertSwap||he),j=ln(e,o,r,E,N?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Pe,se===o);var V;if(j!==0){var oe=X(d);do oe-=j,V=D.children[oe];while(V&&(h(V,"display")==="none"||V===g))}if(j===0||V===o)return I(!1);se=o,Se=j;var me=o.nextElementSibling,Z=!1;Z=j===1;var Oe=Me(_,n,d,i,o,r,e,Z);if(Oe!==!1)return(Oe===1||Oe===-1)&&(Z=Oe===1),nt=!0,setTimeout(on,30),W(),Z&&!me?n.appendChild(d):o.parentNode.insertBefore(d,Z?me:o),K&&xt(K,0,ge-K.scrollTop),D=d.parentNode,ne!==void 0&&!Pe&&(Xe=Math.abs(ne-C(o)[pe])),R(),I(!0)}if(n.contains(d))return I(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",re),b(document,"mousemove",re),b(document,"touchmove",re)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var n=this.el,o=this.options;if(F=X(d),Q=X(d,o.draggable),P("drop",this,{evt:e}),D=d&&d.parentNode,F=X(d),Q=X(d,o.draggable),p.eventCanceled){this._nulling();return}ue=!1,Pe=!1,Te=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ot(this.cloneId),ot(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ee&&h(document.body,"user-select",""),h(d,"transform",""),e&&(be&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===D||x&&x.lastPutMode!=="clone")&&S&&S.parentNode&&S.parentNode.removeChild(S),d&&(this.nativeDraggable&&b(d,"dragend",this),Ke(d),d.style["will-change"]="",be&&!ue&&M(d,x?x.options.ghostClass:this.options.ghostClass,!1),M(d,this.options.chosenClass,!1),A({sortable:this,name:"unchoose",toEl:D,newIndex:null,newDraggableIndex:null,originalEvent:e}),_!==D?(F>=0&&(A({rootEl:D,name:"add",toEl:D,fromEl:_,originalEvent:e}),A({sortable:this,name:"remove",toEl:D,originalEvent:e}),A({rootEl:D,name:"sort",toEl:D,fromEl:_,originalEvent:e}),A({sortable:this,name:"sort",toEl:D,originalEvent:e})),x&&x.save()):F!==de&&F>=0&&(A({sortable:this,name:"update",toEl:D,originalEvent:e}),A({sortable:this,name:"sort",toEl:D,originalEvent:e})),p.active&&((F==null||F===-1)&&(F=de,Q=De),A({sortable:this,name:"end",toEl:D,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){P("nulling",this),_=d=D=g=ae=S=Le=J=ie=Y=be=F=Q=de=De=se=Se=x=Ae=p.dragged=p.ghost=p.clone=p.active=null,$e.forEach(function(e){e.checked=!0}),$e.length=ze=Ue=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),nn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,i=0,r=o.length,a=this.options;i<r;i++)n=o[i],$(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||un(n));return e},sort:function(e,n){var o={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(o[r]=l)},this),n&&this.captureAnimationState(),e.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return $(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var o=this.options;if(n===void 0)return o[e];var i=xe.modifyOption(this,e,n);typeof i<"u"?o[e]=i:o[e]=n,e==="group"&&Pt(o)},destroy:function(){P("destroy",this);var e=this.el;e[L]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),je.splice(je.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!J){if(P("hideClone",this),p.eventCanceled)return;h(S,"display","none"),this.options.removeCloneOnHide&&S.parentNode&&S.parentNode.removeChild(S),J=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(J){if(P("showClone",this),p.eventCanceled)return;d.parentNode==_&&!this.options.group.revertClone?_.insertBefore(S,d):ae?_.insertBefore(S,ae):_.appendChild(S),this.options.group.revertClone&&this.animate(d,S),h(S,"display",""),J=!1}}};function nn(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Me(t,e,n,o,i,r,a,l){var s,u=t[L],f=u.options.onMove,c;return window.CustomEvent&&!q&&!Ce?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||C(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function Ke(t){t.draggable=!1}function on(){nt=!1}function rn(t,e,n){var o=C(fe(n.el,0,n.options,!0)),i=10;return e?t.clientX<o.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-i||t.clientY<o.bottom&&t.clientX<o.left}function an(t,e,n){var o=C(st(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function ln(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,u=o?n.height:n.width,f=o?n.top:n.left,c=o?n.bottom:n.right,m=!1;if(!a){if(l&&Xe<u*i){if(!Te&&(Se===1?s>f+u*r/2:s<c-u*r/2)&&(Te=!0),Te)m=!0;else if(Se===1?s<f+Xe:s>c-Xe)return-Se}else if(s>f+u*(1-i)/2&&s<c-u*(1-i)/2)return sn(e)}return m=m||a,m&&(s<f+u*r/2||s>c-u*r/2)?s>f+u/2?1:-1:0}function sn(t){return X(d)<X(t)?1:-1}function un(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function dn(t){$e.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&$e.push(o)}}function ke(t){return setTimeout(t,0)}function ot(t){return clearTimeout(t)}Ge&&y(document,"touchmove",function(t){(p.active||ue)&&t.cancelable&&t.preventDefault()});p.utils={on:y,off:b,css:h,find:Tt,is:function(e,n){return!!$(e,n,e,!1)},extend:Wt,throttle:Ct,closest:$,toggleClass:M,clone:Ot,index:X,nextTick:ke,cancelNextTick:ot,detectDirection:At,getChild:fe};p.get=function(t){return t[L]};p.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(p.utils=G(G({},p.utils),o.utils)),xe.mount(o)})};p.create=function(t,e){return new p(t,e)};p.version=jt;var T=[],ye,it,rt=!1,Ze,Qe,He,we;function cn(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):o.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),wt(),Re(),Vt()},nulling:function(){He=it=ye=rt=we=Ze=Qe=null,T.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(r,a);if(He=n,o||this.options.forceAutoScrollFallback||Ce||q||Ee){Je(n,this.options,l,o);var s=ee(l,!0);rt&&(!we||r!==Ze||a!==Qe)&&(we&&wt(),we=setInterval(function(){var u=ee(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Re()),Je(n,i.options,u,o)},10),Ze=r,Qe=a)}else{if(!this.options.bubbleScroll||ee(l,!0)===H()){Re();return}Je(n,this.options,ee(l,!1),!1)}}},U(t,{pluginName:"scroll",initializeByDefault:!0})}function Re(){T.forEach(function(t){clearInterval(t.pid)}),T=[]}function wt(){clearInterval(we)}var Je=Ct(function(t,e,n,o){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=H(),u=!1,f;it!==n&&(it=n,Re(),ye=e.scroll,f=e.scrollFn,ye===!0&&(ye=ee(n,!0)));var c=0,m=ye;do{var E=m,v=C(E),w=v.top,k=v.bottom,W=v.left,I=v.right,R=v.width,B=v.height,te=void 0,j=void 0,ne=E.scrollWidth,he=E.scrollHeight,N=h(E),pe=E.scrollLeft,K=E.scrollTop;E===s?(te=R<ne&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),j=B<he&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(te=R<ne&&(N.overflowX==="auto"||N.overflowX==="scroll"),j=B<he&&(N.overflowY==="auto"||N.overflowY==="scroll"));var ge=te&&(Math.abs(I-i)<=a&&pe+R<ne)-(Math.abs(W-i)<=a&&!!pe),V=j&&(Math.abs(k-r)<=a&&K+B<he)-(Math.abs(w-r)<=a&&!!K);if(!T[c])for(var oe=0;oe<=c;oe++)T[oe]||(T[oe]={});(T[c].vx!=ge||T[c].vy!=V||T[c].el!==E)&&(T[c].el=E,T[c].vx=ge,T[c].vy=V,clearInterval(T[c].pid),(ge!=0||V!=0)&&(u=!0,T[c].pid=setInterval((function(){o&&this.layer===0&&p.active._onTouchMove(He);var me=T[this.layer].vy?T[this.layer].vy*l:0,Z=T[this.layer].vx?T[this.layer].vx*l:0;typeof f=="function"&&f.call(p.dragged.parentNode[L],Z,me,t,He,T[this.layer].el)!=="continue"||xt(T[this.layer].el,Z,me)}).bind({layer:c}),24))),c++}while(e.bubbleScroll&&m!==s&&(m=ee(m,!1)));rt=u}},30),Ft=function(e){var n=e.originalEvent,o=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(n){var u=o||r;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(c)&&(a("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function ut(){}ut.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=fe(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Ft};U(ut,{pluginName:"revertOnSpill"});function dt(){}dt.prototype={onSpill:function(e){var n=e.dragEl,o=e.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Ft};U(dt,{pluginName:"removeOnSpill"});p.mount(new cn);p.mount(dt,ut);function fn(){return typeof window<"u"?window.console:global.console}const hn=fn();function pn(t){const e=Object.create(null);return function(o){return e[o]||(e[o]=t(o))}}const gn=/-(\w)/g,Et=pn(t=>t.replace(gn,(e,n)=>n?n.toUpperCase():""));function et(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function _t(t,e,n){const o=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}function mn(t,e){return Object.values(t).indexOf(e)}function vn(t,e,n,o){if(!t)return[];const i=Object.values(t),r=e.length-o;return[...e].map((l,s)=>s>=r?i.length:i.indexOf(l))}function Lt(t,e){this.$nextTick(()=>this.$emit(t.toLowerCase(),e))}function bn(t){return e=>{this.realList!==null&&this["onDrag"+t](e),Lt.call(this,t,e)}}function yn(t){return["transition-group","TransitionGroup"].includes(t)}function wn(t){if(!t||t.length!==1)return!1;const[{type:e}]=t;return e?yn(e.name):!1}function En(t,e){return e?{...e.props,...e.attrs}:t}const at=["Start","Add","Remove","Update","End"],lt=["Choose","Unchoose","Sort","Filter","Clone"],_n=["Move",...at,...lt].map(t=>"on"+t);let tt=null;const Dn={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},Sn=Ie.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...at.map(t=>t.toLowerCase()),...lt.map(t=>t.toLowerCase())],props:Dn,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const t=this.$slots.default?this.$slots.default():null,e=En(this.$attrs,this.componentData);return t?(this.transitionMode=wn(t),Ie.h(this.getTag(),e,t)):Ie.h(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&hn.error("list props are mutually exclusive! Please set one.")},mounted(){const t={};at.forEach(i=>{t["on"+i]=bn.call(this,i)}),lt.forEach(i=>{t["on"+i]=Lt.bind(this,i)});const e=Object.keys(this.$attrs).reduce((i,r)=>(i[Et(r)]=this.$attrs[r],i),{}),n=Object.assign({},e,t,{onMove:(i,r)=>this.onDragMove(i,r)});!("draggable"in n)&&(n.draggable=">*");const o=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new p(o,n),o.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(t){this.updateOptions(t)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Ie.resolveComponent(this.component):this.tag},updateOptions(t){for(var e in t){const n=Et(e);_n.indexOf(n)===-1&&this._sortable.option(n,t[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=vn(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(t){const e=mn(this.getChildrenNodes()||[],t);if(e===-1)return null;const n=this.realList[e];return{index:e,element:n}},emitChanges(t){this.$nextTick(()=>{this.$emit("change",t)})},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=o=>o.splice(e,0,o.splice(t,1)[0]);this.alterList(n)},getVmIndex(t){const e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(t){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[t].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(t){this.context=this.getUnderlyingVm(t.item),this.context&&(t.item._underlying_vm_=this.clone(this.context.element),tt=t.item)},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;et(t.item);const n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(_t(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){et(t.clone);return}if(!this.context)return;const e=this.context.index;this.spliceList(e,1);const n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate(t){et(t.item),_t(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},onDragMove(t,e){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.context,r=this.computeFutureIndex(o,t);Object.assign(i,{futureIndex:r});const a=Object.assign({},t,{relatedContext:o,draggedContext:i});return n(a,e)},onDragEnd(){this.computeIndexes(),tt=null},getTrargetedComponent(t){return t.__draggable_component__},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getTrargetedComponent(t);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(t!==e&&o&&n.getUnderlyingVm){const r=n.getUnderlyingVm(e);if(r)return Object.assign(r,i)}return i},computeFutureIndex(t,e){const n=[...e.to.children].filter(a=>a.style.display!=="none");if(n.length===0)return 0;const o=n.indexOf(e.related),i=t.component.getVmIndex(o);return n.indexOf(tt)!==-1||!e.willInsertAfter?i:i+1}}});exports.VueDraggableNext=Sn;
|
10
|
+
*/function ft(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,o)}return n}function G(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?ft(Object(n),!0).forEach(function(o){Rt(t,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):ft(Object(n)).forEach(function(o){Object.defineProperty(t,o,Object.getOwnPropertyDescriptor(n,o))})}return t}function Fe(t){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fe=function(e){return typeof e}:Fe=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fe(t)}function Rt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U(){return U=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},U.apply(this,arguments)}function Yt(t,e){if(t==null)return{};var n={},o=Object.keys(t),i,r;for(r=0;r<o.length;r++)i=o[r],!(e.indexOf(i)>=0)&&(n[i]=t[i]);return n}function Bt(t,e){if(t==null)return{};var n=Yt(t,e),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(i=0;i<r.length;i++)o=r[i],!(e.indexOf(o)>=0)&&Object.prototype.propertyIsEnumerable.call(t,o)&&(n[o]=t[o])}return n}var jt="1.14.0";function z(t){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(t)}var q=z(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ce=z(/Edge/i),ht=z(/firefox/i),Ee=z(/safari/i)&&!z(/chrome/i)&&!z(/android/i),Dt=z(/iP(ad|od|hone)/i),$t=z(/chrome/i)&&z(/android/i),St={capture:!1,passive:!1};function y(t,e,n){t.addEventListener(e,n,!q&&St)}function b(t,e,n){t.removeEventListener(e,n,!q&&St)}function Ye(t,e){if(e){if(e[0]===">"&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch{return!1}return!1}}function Ht(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function $(t,e,n,o){if(t){n=n||document;do{if(e!=null&&(e[0]===">"?t.parentNode===n&&Ye(t,e):Ye(t,e))||o&&t===n)return t;if(t===n)break}while(t=Ht(t))}return null}var pt=/\s+/g;function M(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(pt," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(pt," ")}}function h(t,e,n){var o=t&&t.style;if(o){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),e===void 0?n:n[e];!(e in o)&&e.indexOf("webkit")===-1&&(e="-webkit-"+e),o[e]=n+(typeof n=="string"?"":"px")}}function ce(t,e){var n="";if(typeof t=="string")n=t;else do{var o=h(t,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Tt(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function H(){var t=document.scrollingElement;return t||document.documentElement}function C(t,e,n,o,i){if(!(!t.getBoundingClientRect&&t!==window)){var r,a,l,s,u,f,c;if(t!==window&&t.parentNode&&t!==H()?(r=t.getBoundingClientRect(),a=r.top,l=r.left,s=r.bottom,u=r.right,f=r.height,c=r.width):(a=0,l=0,s=window.innerHeight,u=window.innerWidth,f=window.innerHeight,c=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!q))do if(i&&i.getBoundingClientRect&&(h(i,"transform")!=="none"||n&&h(i,"position")!=="static")){var m=i.getBoundingClientRect();a-=m.top+parseInt(h(i,"border-top-width")),l-=m.left+parseInt(h(i,"border-left-width")),s=a+r.height,u=l+r.width;break}while(i=i.parentNode);if(o&&t!==window){var E=ce(i||t),v=E&&E.a,w=E&&E.d;E&&(a/=w,l/=v,c/=v,f/=w,s=a+f,u=l+c)}return{top:a,left:l,bottom:s,right:u,width:c,height:f}}}function gt(t,e,n){for(var o=ee(t,!0),i=C(t)[e];o;){var r=C(o)[n],a=void 0;if(n==="top"||n==="left"?a=i>=r:a=i<=r,!a)return o;if(o===H())break;o=ee(o,!1)}return!1}function fe(t,e,n,o){for(var i=0,r=0,a=t.children;r<a.length;){if(a[r].style.display!=="none"&&a[r]!==p.ghost&&(o||a[r]!==p.dragged)&&$(a[r],n.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function st(t,e){for(var n=t.lastElementChild;n&&(n===p.ghost||h(n,"display")==="none"||e&&!Ye(n,e));)n=n.previousElementSibling;return n||null}function X(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)t.nodeName.toUpperCase()!=="TEMPLATE"&&t!==p.clone&&(!e||Ye(t,e))&&n++;return n}function mt(t){var e=0,n=0,o=H();if(t)do{var i=ce(t),r=i.a,a=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*a}while(t!==o&&(t=t.parentNode));return[e,n]}function Gt(t,e){for(var n in t)if(t.hasOwnProperty(n)){for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n)}return-1}function ee(t,e){if(!t||!t.getBoundingClientRect)return H();var n=t,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=h(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 H();if(o||e)return n;o=!0}}while(n=n.parentNode);return H()}function Wt(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function We(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}var _e;function Ct(t,e){return function(){if(!_e){var n=arguments,o=this;n.length===1?t.call(o,n[0]):t.apply(o,n),_e=setTimeout(function(){_e=void 0},e)}}}function Vt(){clearTimeout(_e),_e=void 0}function xt(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function It(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}var L="Sortable"+new Date().getTime();function zt(){var t=[],e;return{captureAnimationState:function(){if(t=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(h(i,"display")==="none"||i===p.ghost)){t.push({target:i,rect:C(i)});var r=G({},t[t.length-1].rect);if(i.thisAnimationDuration){var a=ce(i,!0);a&&(r.top-=a.f,r.left-=a.e)}i.fromRect=r}})}},addAnimationState:function(o){t.push(o)},removeAnimationState:function(o){t.splice(Gt(t,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(e),typeof o=="function"&&o();return}var r=!1,a=0;t.forEach(function(l){var s=0,u=l.target,f=u.fromRect,c=C(u),m=u.prevFromRect,E=u.prevToRect,v=l.rect,w=ce(u,!0);w&&(c.top-=w.f,c.left-=w.e),u.toRect=c,u.thisAnimationDuration&&We(m,c)&&!We(f,c)&&(v.top-c.top)/(v.left-c.left)===(f.top-c.top)/(f.left-c.left)&&(s=qt(v,m,E,i.options)),We(c,f)||(u.prevFromRect=f,u.prevToRect=c,s||(s=i.options.animation),i.animate(u,v,c,s)),s&&(r=!0,a=Math.max(a,s),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},s),u.thisAnimationDuration=s)}),clearTimeout(e),r?e=setTimeout(function(){typeof o=="function"&&o()},a):typeof o=="function"&&o(),t=[]},animate:function(o,i,r,a){if(a){h(o,"transition",""),h(o,"transform","");var l=ce(this.el),s=l&&l.a,u=l&&l.d,f=(i.left-r.left)/(s||1),c=(i.top-r.top)/(u||1);o.animatingX=!!f,o.animatingY=!!c,h(o,"transform","translate3d("+f+"px,"+c+"px,0)"),this.forRepaintDummy=Ut(o),h(o,"transition","transform "+a+"ms"+(this.options.easing?" "+this.options.easing:"")),h(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){h(o,"transition",""),h(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},a)}}}}function Ut(t){return t.offsetWidth}function qt(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}var le=[],Ve={initializeByDefault:!0},xe={mount:function(e){for(var n in Ve)Ve.hasOwnProperty(n)&&!(n in e)&&(e[n]=Ve[n]);le.forEach(function(o){if(o.pluginName===e.pluginName)throw"Sortable: Cannot mount plugin ".concat(e.pluginName," more than once")}),le.push(e)},pluginEvent:function(e,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=e+"Global";le.forEach(function(a){n[a.pluginName]&&(n[a.pluginName][r]&&n[a.pluginName][r](G({sortable:n},o)),n.options[a.pluginName]&&n[a.pluginName][e]&&n[a.pluginName][e](G({sortable:n},o)))})},initializePlugins:function(e,n,o,i){le.forEach(function(l){var s=l.pluginName;if(!(!e.options[s]&&!l.initializeByDefault)){var u=new l(e,n,e.options);u.sortable=e,u.options=e.options,e[s]=u,U(o,u.defaults)}});for(var r in e.options)if(e.options.hasOwnProperty(r)){var a=this.modifyOption(e,r,e.options[r]);typeof a<"u"&&(e.options[r]=a)}},getEventProperties:function(e,n){var o={};return le.forEach(function(i){typeof i.eventProperties=="function"&&U(o,i.eventProperties.call(n[i.pluginName],e))}),o},modifyOption:function(e,n,o){var i;return le.forEach(function(r){e[r.pluginName]&&r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(e[r.pluginName],o))}),i}};function Kt(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,u=t.newIndex,f=t.oldDraggableIndex,c=t.newDraggableIndex,m=t.originalEvent,E=t.putSortable,v=t.extraEventProperties;if(e=e||n&&n[L],!!e){var w,k=e.options,W="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!q&&!Ce?w=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(w=document.createEvent("Event"),w.initEvent(o,!0,!0)),w.to=a||n,w.from=l||n,w.item=i||n,w.clone=r,w.oldIndex=s,w.newIndex=u,w.oldDraggableIndex=f,w.newDraggableIndex=c,w.originalEvent=m,w.pullMode=E?E.lastPutMode:void 0;var O=G(G({},v),xe.getEventProperties(o,e));for(var R in O)w[R]=O[R];n&&n.dispatchEvent(w),k[W]&&k[W].call(e,w)}}var Zt=["evt"],P=function(e,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=Bt(o,Zt);xe.pluginEvent.bind(p)(e,n,G({dragEl:d,parentEl:D,ghostEl:g,rootEl:_,nextEl:ae,lastDownEl:Le,cloneEl:S,cloneHidden:J,dragStarted:be,putSortable:x,activeSortable:p.active,originalEvent:i,oldIndex:de,oldDraggableIndex:De,newIndex:F,newDraggableIndex:Q,hideGhostForTarget:Nt,unhideGhostForTarget:Mt,cloneNowHidden:function(){J=!0},cloneNowShown:function(){J=!1},dispatchSortableEvent:function(l){A({sortable:n,name:l,originalEvent:i})}},r))};function A(t){Kt(G({putSortable:x,cloneEl:S,targetEl:d,rootEl:_,oldIndex:de,oldDraggableIndex:De,newIndex:F,newDraggableIndex:Q},t))}var d,D,g,_,ae,Le,S,J,de,F,De,Q,Ae,x,ue=!1,Be=!1,je=[],ie,Y,ze,Ue,vt,bt,be,se,Se,Te=!1,Pe=!1,Xe,I,qe=[],nt=!1,$e=[],Ge=typeof document<"u",Ne=Dt,yt=Ce||q?"cssFloat":"float",Qt=Ge&&!$t&&!Dt&&"draggable"in document.createElement("div"),Ot=function(){if(Ge){if(q)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto",t.style.pointerEvents==="auto"}}(),At=function(e,n){var o=h(e),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=fe(e,0,n),a=fe(e,1,n),l=r&&h(r),s=a&&h(a),u=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+C(r).width,f=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+C(a).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&l.float&&l.float!=="none"){var c=l.float==="left"?"left":"right";return a&&(s.clear==="both"||s.clear===c)?"vertical":"horizontal"}return r&&(l.display==="block"||l.display==="flex"||l.display==="table"||l.display==="grid"||u>=i&&o[yt]==="none"||a&&o[yt]==="none"&&u+f>i)?"vertical":"horizontal"},Jt=function(e,n,o){var i=o?e.left:e.top,r=o?e.right:e.bottom,a=o?e.width:e.height,l=o?n.left:n.top,s=o?n.right:n.bottom,u=o?n.width:n.height;return i===l||r===s||i+a/2===l+u/2},en=function(e,n){var o;return je.some(function(i){var r=i[L].options.emptyInsertThreshold;if(!(!r||st(i))){var a=C(i),l=e>=a.left-r&&e<=a.right+r,s=n>=a.top-r&&n<=a.bottom+r;if(l&&s)return o=i}}),o},Pt=function(e){function n(r,a){return function(l,s,u,f){var c=l.options.group.name&&s.options.group.name&&l.options.group.name===s.options.group.name;if(r==null&&(a||c))return!0;if(r==null||r===!1)return!1;if(a&&r==="clone")return r;if(typeof r=="function")return n(r(l,s,u,f),a)(l,s,u,f);var m=(a?l:s).options.group.name;return r===!0||typeof r=="string"&&r===m||r.join&&r.indexOf(m)>-1}}var o={},i=e.group;(!i||Fe(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,e.group=o},Nt=function(){!Ot&&g&&h(g,"display","none")},Mt=function(){!Ot&&g&&h(g,"display","")};Ge&&document.addEventListener("click",function(t){if(Be)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Be=!1,!1},!0);var re=function(e){if(d){e=e.touches?e.touches[0]:e;var n=en(e.clientX,e.clientY);if(n){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=e[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[L]._onDragOver(o)}}},tn=function(e){d&&d.parentNode[L]._isOutsideThisEl(e.target)};function p(t,e){if(!(t&&t.nodeType&&t.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=U({},e),t[L]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return At(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(a,l){a.setData("Text",l.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:p.supportPointer!==!1&&"PointerEvent"in window&&!Ee,emptyInsertThreshold:5};xe.initializePlugins(this,t,n);for(var o in n)!(o in e)&&(e[o]=n[o]);Pt(e);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=e.forceFallback?!1:Qt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?y(t,"pointerdown",this._onTapStart):(y(t,"mousedown",this._onTapStart),y(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(y(t,"dragover",this),y(t,"dragenter",this)),je.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),U(this,zt())}p.prototype={constructor:p,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(se=null)},_getDirection:function(e,n){return typeof this.options.direction=="function"?this.options.direction.call(this,e,n,d):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,a=e.type,l=e.touches&&e.touches[0]||e.pointerType&&e.pointerType==="touch"&&e,s=(l||e).target,u=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,f=i.filter;if(dn(o),!d&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ee&&s&&s.tagName.toUpperCase()==="SELECT")&&(s=$(s,i.draggable,o,!1),!(s&&s.animated)&&Le!==s)){if(de=X(s),De=X(s,i.draggable),typeof f=="function"){if(f.call(this,e,s,this)){A({sortable:n,rootEl:u,name:"filter",targetEl:s,toEl:o,fromEl:o}),P("filter",n,{evt:e}),r&&e.cancelable&&e.preventDefault();return}}else if(f&&(f=f.split(",").some(function(c){if(c=$(u,c.trim(),o,!1),c)return A({sortable:n,rootEl:c,name:"filter",targetEl:s,fromEl:o,toEl:o}),P("filter",n,{evt:e}),!0}),f)){r&&e.cancelable&&e.preventDefault();return}i.handle&&!$(u,i.handle,o,!1)||this._prepareDragStart(e,l,s)}}},_prepareDragStart:function(e,n,o){var i=this,r=i.el,a=i.options,l=r.ownerDocument,s;if(o&&!d&&o.parentNode===r){var u=C(o);if(_=r,d=o,D=d.parentNode,ae=d.nextSibling,Le=o,Ae=a.group,p.dragged=d,ie={target:d,clientX:(n||e).clientX,clientY:(n||e).clientY},vt=ie.clientX-u.left,bt=ie.clientY-u.top,this._lastX=(n||e).clientX,this._lastY=(n||e).clientY,d.style["will-change"]="all",s=function(){if(P("delayEnded",i,{evt:e}),p.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!ht&&i.nativeDraggable&&(d.draggable=!0),i._triggerDragStart(e,n),A({sortable:i,name:"choose",originalEvent:e}),M(d,a.chosenClass,!0)},a.ignore.split(",").forEach(function(f){Tt(d,f.trim(),Ke)}),y(l,"dragover",re),y(l,"mousemove",re),y(l,"touchmove",re),y(l,"mouseup",i._onDrop),y(l,"touchend",i._onDrop),y(l,"touchcancel",i._onDrop),ht&&this.nativeDraggable&&(this.options.touchStartThreshold=4,d.draggable=!0),P("delayStart",this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ce||q))){if(p.eventCanceled){this._onDrop();return}y(l,"mouseup",i._disableDelayedDrag),y(l,"touchend",i._disableDelayedDrag),y(l,"touchcancel",i._disableDelayedDrag),y(l,"mousemove",i._delayedDragTouchMoveHandler),y(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&y(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var n=e.touches?e.touches[0]:e;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){d&&Ke(d),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._disableDelayedDrag),b(e,"touchend",this._disableDelayedDrag),b(e,"touchcancel",this._disableDelayedDrag),b(e,"mousemove",this._delayedDragTouchMoveHandler),b(e,"touchmove",this._delayedDragTouchMoveHandler),b(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,n){n=n||e.pointerType=="touch"&&e,!this.nativeDraggable||n?this.options.supportPointer?y(document,"pointermove",this._onTouchMove):n?y(document,"touchmove",this._onTouchMove):y(document,"mousemove",this._onTouchMove):(y(d,"dragend",this),y(_,"dragstart",this._onDragStart));try{document.selection?ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,n){if(ue=!1,_&&d){P("dragStarted",this,{evt:n}),this.nativeDraggable&&y(document,"dragover",tn);var o=this.options;!e&&M(d,o.dragClass,!1),M(d,o.ghostClass,!0),p.active=this,e&&this._appendGhost(),A({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Y){this._lastX=Y.clientX,this._lastY=Y.clientY,Nt();for(var e=document.elementFromPoint(Y.clientX,Y.clientY),n=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Y.clientX,Y.clientY),e!==n);)n=e;if(d.parentNode[L]._isOutsideThisEl(e),n)do{if(n[L]){var o=void 0;if(o=n[L]._onDragOver({clientX:Y.clientX,clientY:Y.clientY,target:e,rootEl:n}),o&&!this.options.dragoverBubble)break}e=n}while(n=n.parentNode);Mt()}},_onTouchMove:function(e){if(ie){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=e.touches?e.touches[0]:e,a=g&&ce(g,!0),l=g&&a&&a.a,s=g&&a&&a.d,u=Ne&&I&&mt(I),f=(r.clientX-ie.clientX+i.x)/(l||1)+(u?u[0]-qe[0]:0)/(l||1),c=(r.clientY-ie.clientY+i.y)/(s||1)+(u?u[1]-qe[1]:0)/(s||1);if(!p.active&&!ue){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(e,!0)}if(g){a?(a.e+=f-(ze||0),a.f+=c-(Ue||0)):a={a:1,b:0,c:0,d:1,e:f,f:c};var m="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");h(g,"webkitTransform",m),h(g,"mozTransform",m),h(g,"msTransform",m),h(g,"transform",m),ze=f,Ue=c,Y=r}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!g){var e=this.options.fallbackOnBody?document.body:_,n=C(d,!0,Ne,!0,e),o=this.options;if(Ne){for(I=e;h(I,"position")==="static"&&h(I,"transform")==="none"&&I!==document;)I=I.parentNode;I!==document.body&&I!==document.documentElement?(I===document&&(I=H()),n.top+=I.scrollTop,n.left+=I.scrollLeft):I=H(),qe=mt(I)}g=d.cloneNode(!0),M(g,o.ghostClass,!1),M(g,o.fallbackClass,!0),M(g,o.dragClass,!0),h(g,"transition",""),h(g,"transform",""),h(g,"box-sizing","border-box"),h(g,"margin",0),h(g,"top",n.top),h(g,"left",n.left),h(g,"width",n.width),h(g,"height",n.height),h(g,"opacity","0.8"),h(g,"position",Ne?"absolute":"fixed"),h(g,"zIndex","100000"),h(g,"pointerEvents","none"),p.ghost=g,e.appendChild(g),h(g,"transform-origin",vt/parseInt(g.style.width)*100+"% "+bt/parseInt(g.style.height)*100+"%")}},_onDragStart:function(e,n){var o=this,i=e.dataTransfer,r=o.options;if(P("dragStart",this,{evt:e}),p.eventCanceled){this._onDrop();return}P("setupClone",this),p.eventCanceled||(S=It(d),S.draggable=!1,S.style["will-change"]="",this._hideClone(),M(S,this.options.chosenClass,!1),p.clone=S),o.cloneId=ke(function(){P("clone",o),!p.eventCanceled&&(o.options.removeCloneOnHide||_.insertBefore(S,d),o._hideClone(),A({sortable:o,name:"clone"}))}),!n&&M(d,r.dragClass,!0),n?(Be=!0,o._loopId=setInterval(o._emulateDragOver,50)):(b(document,"mouseup",o._onDrop),b(document,"touchend",o._onDrop),b(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,d)),y(document,"drop",o),h(d,"transform","translateZ(0)")),ue=!0,o._dragStartId=ke(o._dragStarted.bind(o,n,e)),y(document,"selectstart",o),be=!0,Ee&&h(document.body,"user-select","none")},_onDragOver:function(e){var n=this.el,o=e.target,i,r,a,l=this.options,s=l.group,u=p.active,f=Ae===s,c=l.sort,m=x||u,E,v=this,w=!1;if(nt)return;function k(ve,Xt){P(ve,v,G({evt:e,isOwner:f,axis:E?"vertical":"horizontal",revert:a,dragRect:i,targetRect:r,canSort:c,fromSortable:m,target:o,completed:O,onMove:function(ct,kt){return Me(_,n,d,i,ct,C(ct),e,kt)},changed:R},Xt))}function W(){k("dragOverAnimationCapture"),v.captureAnimationState(),v!==m&&m.captureAnimationState()}function O(ve){return k("dragOverCompleted",{insertion:ve}),ve&&(f?u._hideClone():u._showClone(v),v!==m&&(M(d,x?x.options.ghostClass:u.options.ghostClass,!1),M(d,l.ghostClass,!0)),x!==v&&v!==p.active?x=v:v===p.active&&x&&(x=null),m===v&&(v._ignoreWhileAnimating=o),v.animateAll(function(){k("dragOverAnimationComplete"),v._ignoreWhileAnimating=null}),v!==m&&(m.animateAll(),m._ignoreWhileAnimating=null)),(o===d&&!d.animated||o===n&&!o.animated)&&(se=null),!l.dragoverBubble&&!e.rootEl&&o!==document&&(d.parentNode[L]._isOutsideThisEl(e.target),!ve&&re(e)),!l.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),w=!0}function R(){F=X(d),Q=X(d,l.draggable),A({sortable:v,name:"change",toEl:n,newIndex:F,newDraggableIndex:Q,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),o=$(o,l.draggable,n,!0),k("dragOver"),p.eventCanceled)return w;if(d.contains(e.target)||o.animated&&o.animatingX&&o.animatingY||v._ignoreWhileAnimating===o)return O(!1);if(Be=!1,u&&!l.disabled&&(f?c||(a=D!==_):x===this||(this.lastPutMode=Ae.checkPull(this,u,d,e))&&s.checkPut(this,u,d,e))){if(E=this._getDirection(e,o)==="vertical",i=C(d),k("dragOverValid"),p.eventCanceled)return w;if(a)return D=_,W(),this._hideClone(),k("revert"),p.eventCanceled||(ae?_.insertBefore(d,ae):_.appendChild(d)),O(!0);var B=st(n,l.draggable);if(!B||an(e,E,this)&&!B.animated){if(B===d)return O(!1);if(B&&n===e.target&&(o=B),o&&(r=C(o)),Me(_,n,d,i,o,r,e,!!o)!==!1)return W(),n.appendChild(d),D=n,R(),O(!0)}else if(B&&rn(e,E,this)){var te=fe(n,0,l,!0);if(te===d)return O(!1);if(o=te,r=C(o),Me(_,n,d,i,o,r,e,!1)!==!1)return W(),n.insertBefore(d,te),D=n,R(),O(!0)}else if(o.parentNode===n){r=C(o);var j=0,ne,he=d.parentNode!==n,N=!Jt(d.animated&&d.toRect||i,o.animated&&o.toRect||r,E),pe=E?"top":"left",K=gt(o,"top","top")||gt(d,"top","top"),ge=K?K.scrollTop:void 0;se!==o&&(ne=r[pe],Te=!1,Pe=!N&&l.invertSwap||he),j=ln(e,o,r,E,N?1:l.swapThreshold,l.invertedSwapThreshold==null?l.swapThreshold:l.invertedSwapThreshold,Pe,se===o);var V;if(j!==0){var oe=X(d);do oe-=j,V=D.children[oe];while(V&&(h(V,"display")==="none"||V===g))}if(j===0||V===o)return O(!1);se=o,Se=j;var me=o.nextElementSibling,Z=!1;Z=j===1;var Ie=Me(_,n,d,i,o,r,e,Z);if(Ie!==!1)return(Ie===1||Ie===-1)&&(Z=Ie===1),nt=!0,setTimeout(on,30),W(),Z&&!me?n.appendChild(d):o.parentNode.insertBefore(d,Z?me:o),K&&xt(K,0,ge-K.scrollTop),D=d.parentNode,ne!==void 0&&!Pe&&(Xe=Math.abs(ne-C(o)[pe])),R(),O(!0)}if(n.contains(d))return O(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){b(document,"mousemove",this._onTouchMove),b(document,"touchmove",this._onTouchMove),b(document,"pointermove",this._onTouchMove),b(document,"dragover",re),b(document,"mousemove",re),b(document,"touchmove",re)},_offUpEvents:function(){var e=this.el.ownerDocument;b(e,"mouseup",this._onDrop),b(e,"touchend",this._onDrop),b(e,"pointerup",this._onDrop),b(e,"touchcancel",this._onDrop),b(document,"selectstart",this)},_onDrop:function(e){var n=this.el,o=this.options;if(F=X(d),Q=X(d,o.draggable),P("drop",this,{evt:e}),D=d&&d.parentNode,F=X(d),Q=X(d,o.draggable),p.eventCanceled){this._nulling();return}ue=!1,Pe=!1,Te=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ot(this.cloneId),ot(this._dragStartId),this.nativeDraggable&&(b(document,"drop",this),b(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ee&&h(document.body,"user-select",""),h(d,"transform",""),e&&(be&&(e.cancelable&&e.preventDefault(),!o.dropBubble&&e.stopPropagation()),g&&g.parentNode&&g.parentNode.removeChild(g),(_===D||x&&x.lastPutMode!=="clone")&&S&&S.parentNode&&S.parentNode.removeChild(S),d&&(this.nativeDraggable&&b(d,"dragend",this),Ke(d),d.style["will-change"]="",be&&!ue&&M(d,x?x.options.ghostClass:this.options.ghostClass,!1),M(d,this.options.chosenClass,!1),A({sortable:this,name:"unchoose",toEl:D,newIndex:null,newDraggableIndex:null,originalEvent:e}),_!==D?(F>=0&&(A({rootEl:D,name:"add",toEl:D,fromEl:_,originalEvent:e}),A({sortable:this,name:"remove",toEl:D,originalEvent:e}),A({rootEl:D,name:"sort",toEl:D,fromEl:_,originalEvent:e}),A({sortable:this,name:"sort",toEl:D,originalEvent:e})),x&&x.save()):F!==de&&F>=0&&(A({sortable:this,name:"update",toEl:D,originalEvent:e}),A({sortable:this,name:"sort",toEl:D,originalEvent:e})),p.active&&((F==null||F===-1)&&(F=de,Q=De),A({sortable:this,name:"end",toEl:D,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){P("nulling",this),_=d=D=g=ae=S=Le=J=ie=Y=be=F=Q=de=De=se=Se=x=Ae=p.dragged=p.ghost=p.clone=p.active=null,$e.forEach(function(e){e.checked=!0}),$e.length=ze=Ue=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":d&&(this._onDragOver(e),nn(e));break;case"selectstart":e.preventDefault();break}},toArray:function(){for(var e=[],n,o=this.el.children,i=0,r=o.length,a=this.options;i<r;i++)n=o[i],$(n,a.draggable,this.el,!1)&&e.push(n.getAttribute(a.dataIdAttr)||un(n));return e},sort:function(e,n){var o={},i=this.el;this.toArray().forEach(function(r,a){var l=i.children[a];$(l,this.options.draggable,i,!1)&&(o[r]=l)},this),n&&this.captureAnimationState(),e.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,n){return $(e,n||this.options.draggable,this.el,!1)},option:function(e,n){var o=this.options;if(n===void 0)return o[e];var i=xe.modifyOption(this,e,n);typeof i<"u"?o[e]=i:o[e]=n,e==="group"&&Pt(o)},destroy:function(){P("destroy",this);var e=this.el;e[L]=null,b(e,"mousedown",this._onTapStart),b(e,"touchstart",this._onTapStart),b(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(b(e,"dragover",this),b(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),je.splice(je.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!J){if(P("hideClone",this),p.eventCanceled)return;h(S,"display","none"),this.options.removeCloneOnHide&&S.parentNode&&S.parentNode.removeChild(S),J=!0}},_showClone:function(e){if(e.lastPutMode!=="clone"){this._hideClone();return}if(J){if(P("showClone",this),p.eventCanceled)return;d.parentNode==_&&!this.options.group.revertClone?_.insertBefore(S,d):ae?_.insertBefore(S,ae):_.appendChild(S),this.options.group.revertClone&&this.animate(d,S),h(S,"display",""),J=!1}}};function nn(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move"),t.cancelable&&t.preventDefault()}function Me(t,e,n,o,i,r,a,l){var s,u=t[L],f=u.options.onMove,c;return window.CustomEvent&&!q&&!Ce?s=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(s=document.createEvent("Event"),s.initEvent("move",!0,!0)),s.to=e,s.from=t,s.dragged=n,s.draggedRect=o,s.related=i||e,s.relatedRect=r||C(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),f&&(c=f.call(u,s,a)),c}function Ke(t){t.draggable=!1}function on(){nt=!1}function rn(t,e,n){var o=C(fe(n.el,0,n.options,!0)),i=10;return e?t.clientX<o.left-i||t.clientY<o.top&&t.clientX<o.right:t.clientY<o.top-i||t.clientY<o.bottom&&t.clientX<o.left}function an(t,e,n){var o=C(st(n.el,n.options.draggable)),i=10;return e?t.clientX>o.right+i||t.clientX<=o.right&&t.clientY>o.bottom&&t.clientX>=o.left:t.clientX>o.right&&t.clientY>o.top||t.clientX<=o.right&&t.clientY>o.bottom+i}function ln(t,e,n,o,i,r,a,l){var s=o?t.clientY:t.clientX,u=o?n.height:n.width,f=o?n.top:n.left,c=o?n.bottom:n.right,m=!1;if(!a){if(l&&Xe<u*i){if(!Te&&(Se===1?s>f+u*r/2:s<c-u*r/2)&&(Te=!0),Te)m=!0;else if(Se===1?s<f+Xe:s>c-Xe)return-Se}else if(s>f+u*(1-i)/2&&s<c-u*(1-i)/2)return sn(e)}return m=m||a,m&&(s<f+u*r/2||s>c-u*r/2)?s>f+u/2?1:-1:0}function sn(t){return X(d)<X(t)?1:-1}function un(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function dn(t){$e.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var o=e[n];o.checked&&$e.push(o)}}function ke(t){return setTimeout(t,0)}function ot(t){return clearTimeout(t)}Ge&&y(document,"touchmove",function(t){(p.active||ue)&&t.cancelable&&t.preventDefault()});p.utils={on:y,off:b,css:h,find:Tt,is:function(e,n){return!!$(e,n,e,!1)},extend:Wt,throttle:Ct,closest:$,toggleClass:M,clone:It,index:X,nextTick:ke,cancelNextTick:ot,detectDirection:At,getChild:fe};p.get=function(t){return t[L]};p.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach(function(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(p.utils=G(G({},p.utils),o.utils)),xe.mount(o)})};p.create=function(t,e){return new p(t,e)};p.version=jt;var T=[],ye,it,rt=!1,Ze,Qe,He,we;function cn(){function t(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this))}return t.prototype={dragStarted:function(n){var o=n.originalEvent;this.sortable.nativeDraggable?y(document,"dragover",this._handleAutoScroll):this.options.supportPointer?y(document,"pointermove",this._handleFallbackAutoScroll):o.touches?y(document,"touchmove",this._handleFallbackAutoScroll):y(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?b(document,"dragover",this._handleAutoScroll):(b(document,"pointermove",this._handleFallbackAutoScroll),b(document,"touchmove",this._handleFallbackAutoScroll),b(document,"mousemove",this._handleFallbackAutoScroll)),wt(),Re(),Vt()},nulling:function(){He=it=ye=rt=we=Ze=Qe=null,T.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,l=document.elementFromPoint(r,a);if(He=n,o||this.options.forceAutoScrollFallback||Ce||q||Ee){Je(n,this.options,l,o);var s=ee(l,!0);rt&&(!we||r!==Ze||a!==Qe)&&(we&&wt(),we=setInterval(function(){var u=ee(document.elementFromPoint(r,a),!0);u!==s&&(s=u,Re()),Je(n,i.options,u,o)},10),Ze=r,Qe=a)}else{if(!this.options.bubbleScroll||ee(l,!0)===H()){Re();return}Je(n,this.options,ee(l,!1),!1)}}},U(t,{pluginName:"scroll",initializeByDefault:!0})}function Re(){T.forEach(function(t){clearInterval(t.pid)}),T=[]}function wt(){clearInterval(we)}var Je=Ct(function(t,e,n,o){if(e.scroll){var i=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,s=H(),u=!1,f;it!==n&&(it=n,Re(),ye=e.scroll,f=e.scrollFn,ye===!0&&(ye=ee(n,!0)));var c=0,m=ye;do{var E=m,v=C(E),w=v.top,k=v.bottom,W=v.left,O=v.right,R=v.width,B=v.height,te=void 0,j=void 0,ne=E.scrollWidth,he=E.scrollHeight,N=h(E),pe=E.scrollLeft,K=E.scrollTop;E===s?(te=R<ne&&(N.overflowX==="auto"||N.overflowX==="scroll"||N.overflowX==="visible"),j=B<he&&(N.overflowY==="auto"||N.overflowY==="scroll"||N.overflowY==="visible")):(te=R<ne&&(N.overflowX==="auto"||N.overflowX==="scroll"),j=B<he&&(N.overflowY==="auto"||N.overflowY==="scroll"));var ge=te&&(Math.abs(O-i)<=a&&pe+R<ne)-(Math.abs(W-i)<=a&&!!pe),V=j&&(Math.abs(k-r)<=a&&K+B<he)-(Math.abs(w-r)<=a&&!!K);if(!T[c])for(var oe=0;oe<=c;oe++)T[oe]||(T[oe]={});(T[c].vx!=ge||T[c].vy!=V||T[c].el!==E)&&(T[c].el=E,T[c].vx=ge,T[c].vy=V,clearInterval(T[c].pid),(ge!=0||V!=0)&&(u=!0,T[c].pid=setInterval((function(){o&&this.layer===0&&p.active._onTouchMove(He);var me=T[this.layer].vy?T[this.layer].vy*l:0,Z=T[this.layer].vx?T[this.layer].vx*l:0;typeof f=="function"&&f.call(p.dragged.parentNode[L],Z,me,t,He,T[this.layer].el)!=="continue"||xt(T[this.layer].el,Z,me)}).bind({layer:c}),24))),c++}while(e.bubbleScroll&&m!==s&&(m=ee(m,!1)));rt=u}},30),Ft=function(e){var n=e.originalEvent,o=e.putSortable,i=e.dragEl,r=e.activeSortable,a=e.dispatchSortableEvent,l=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(n){var u=o||r;l();var f=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,c=document.elementFromPoint(f.clientX,f.clientY);s(),u&&!u.el.contains(c)&&(a("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function ut(){}ut.prototype={startIndex:null,dragStart:function(e){var n=e.oldDraggableIndex;this.startIndex=n},onSpill:function(e){var n=e.dragEl,o=e.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=fe(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:Ft};U(ut,{pluginName:"revertOnSpill"});function dt(){}dt.prototype={onSpill:function(e){var n=e.dragEl,o=e.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:Ft};U(dt,{pluginName:"removeOnSpill"});p.mount(new cn);p.mount(dt,ut);function fn(){return typeof window<"u"?window.console:global.console}const hn=fn();function pn(t){const e=Object.create(null);return function(o){return e[o]||(e[o]=t(o))}}const gn=/-(\w)/g,Et=pn(t=>t.replace(gn,(e,n)=>n?n.toUpperCase():""));function et(t){t.parentElement!==null&&t.parentElement.removeChild(t)}function _t(t,e,n){const o=n===0?t.children[0]:t.children[n-1].nextSibling;t.insertBefore(e,o)}function mn(t,e){return Object.values(t).indexOf(e)}function vn(t,e,n,o){if(!t)return[];const i=Object.values(t),r=e.length-o;return[...e].map((l,s)=>s>=r?i.length:i.indexOf(l))}function Lt(t,e){this.$nextTick(()=>this.$emit(t.toLowerCase(),e))}function bn(t){return e=>{this.realList!==null&&this["onDrag"+t](e),Lt.call(this,t,e)}}function yn(t){return["transition-group","TransitionGroup"].includes(t)}function wn(t){if(!t||t.length!==1)return!1;const[{type:e}]=t;return e?yn(e.name):!1}function En(t,e){return e?{...e.props,...e.attrs}:t}const at=["Start","Add","Remove","Update","End"],lt=["Choose","Unchoose","Sort","Filter","Clone"],_n=["Move",...at,...lt].map(t=>"on"+t);let tt=null;const Dn={options:Object,list:{type:Array,required:!1,default:null},noTransitionOnDrag:{type:Boolean,default:!1},clone:{type:Function,default:t=>t},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null},component:{type:String,default:null},modelValue:{type:Array,required:!1,default:null}},Sn=Oe.defineComponent({name:"VueDraggableNext",inheritAttrs:!1,emits:["update:modelValue","move","change",...at.map(t=>t.toLowerCase()),...lt.map(t=>t.toLowerCase())],props:Dn,data(){return{transitionMode:!1,noneFunctionalComponentMode:!1,headerOffset:0,footerOffset:0,_sortable:{},visibleIndexes:[],context:{}}},render(){const t=this.$slots.default?this.$slots.default():null,e=En(this.$attrs,this.componentData);return t?(this.transitionMode=wn(t),Oe.h(this.getTag(),e,t)):Oe.h(this.getTag(),e,[])},created(){this.list!==null&&this.modelValue!==null&&hn.error("list props are mutually exclusive! Please set one.")},mounted(){const t={};at.forEach(i=>{t["on"+i]=bn.call(this,i)}),lt.forEach(i=>{t["on"+i]=Lt.bind(this,i)});const e=Object.keys(this.$attrs).reduce((i,r)=>(i[Et(r)]=this.$attrs[r],i),{}),n=Object.assign({},e,t,{onMove:(i,r)=>this.onDragMove(i,r)});!("draggable"in n)&&(n.draggable=">*");const o=this.$el.nodeType===1?this.$el:this.$el.parentElement;this._sortable=new p(o,n),o.__draggable_component__=this,this.computeIndexes()},beforeUnmount(){try{this._sortable!==void 0&&this._sortable.destroy()}catch{}},computed:{realList(){return this.list?this.list:this.modelValue}},watch:{$attrs:{handler(t){this.updateOptions(t)},deep:!0},realList(){this.computeIndexes()}},methods:{getTag(){return this.component?Oe.resolveComponent(this.component):this.tag},updateOptions(t){for(var e in t){const n=Et(e);_n.indexOf(n)===-1&&this._sortable.option(n,t[e])}},getChildrenNodes(){return this.$el.children},computeIndexes(){this.$nextTick(()=>{this.visibleIndexes=vn(this.getChildrenNodes(),this.$el.children,this.transitionMode,this.footerOffset)})},getUnderlyingVm(t){const e=mn(this.getChildrenNodes()||[],t);if(e===-1)return null;const n=this.realList[e];return{index:e,element:n}},emitChanges(t){this.$nextTick(()=>{this.$emit("change",t)})},alterList(t){if(this.list){t(this.list);return}const e=[...this.modelValue];t(e),this.$emit("update:modelValue",e)},spliceList(){const t=e=>e.splice(...arguments);this.alterList(t)},updatePosition(t,e){const n=o=>o.splice(e,0,o.splice(t,1)[0]);this.alterList(n)},getVmIndex(t){const e=this.visibleIndexes,n=e.length;return t>n-1?n:e[t]},getComponent(){return this.$slots.default?this.$slots.default()[0].componentInstance:null},resetTransitionData(t){if(!this.noTransitionOnDrag||!this.transitionMode)return;var e=this.getChildrenNodes();e[t].data=null;const n=this.getComponent();n.children=[],n.kept=void 0},onDragStart(t){this.computeIndexes(),this.context=this.getUnderlyingVm(t.item),this.context&&(t.item._underlying_vm_=this.clone(this.context.element),tt=t.item)},onDragAdd(t){const e=t.item._underlying_vm_;if(e===void 0)return;et(t.item);const n=this.getVmIndex(t.newIndex);this.spliceList(n,0,e),this.computeIndexes();const o={element:e,newIndex:n};this.emitChanges({added:o})},onDragRemove(t){if(_t(this.$el,t.item,t.oldIndex),t.pullMode==="clone"){et(t.clone);return}if(!this.context)return;const e=this.context.index;this.spliceList(e,1);const n={element:this.context.element,oldIndex:e};this.resetTransitionData(e),this.emitChanges({removed:n})},onDragUpdate(t){et(t.item),_t(t.from,t.item,t.oldIndex);const e=this.context.index,n=this.getVmIndex(t.newIndex);this.updatePosition(e,n);const o={element:this.context.element,oldIndex:e,newIndex:n};this.emitChanges({moved:o})},updateProperty(t,e){t.hasOwnProperty(e)&&(t[e]+=this.headerOffset)},onDragMove(t,e){const n=this.move;if(!n||!this.realList)return!0;const o=this.getRelatedContextFromMoveEvent(t),i=this.context,r=this.computeFutureIndex(o,t);Object.assign(i,{futureIndex:r});const a=Object.assign({},t,{relatedContext:o,draggedContext:i});return n(a,e)},onDragEnd(){this.computeIndexes(),tt=null},getTrargetedComponent(t){return t.__draggable_component__},getRelatedContextFromMoveEvent({to:t,related:e}){const n=this.getTrargetedComponent(t);if(!n)return{component:n};const o=n.realList,i={list:o,component:n};if(t!==e&&o&&n.getUnderlyingVm){const r=n.getUnderlyingVm(e);if(r)return Object.assign(r,i)}return i},computeFutureIndex(t,e){const n=[...e.to.children].filter(a=>a.style.display!=="none");if(n.length===0)return 0;const o=n.indexOf(e.related),i=t.component.getVmIndex(o);return n.indexOf(tt)!==-1||!e.willInsertAfter?i:i+1}}});exports.VueDraggableNext=Sn;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent as Rt, h as ct, resolveComponent as Yt } from "vue";
|
2
2
|
/*!
|
3
|
-
* vue-draggable-next v2.
|
4
|
-
* (c)
|
3
|
+
* vue-draggable-next v2.2.0
|
4
|
+
* (c) 2023 Anish George
|
5
5
|
* @license MIT
|
6
6
|
*/
|
7
7
|
/**!
|
@@ -1479,7 +1479,7 @@ const Tn = {
|
|
1479
1479
|
n.children = [], n.kept = void 0;
|
1480
1480
|
},
|
1481
1481
|
onDragStart(t) {
|
1482
|
-
this.context = this.getUnderlyingVm(t.item), this.context && (t.item._underlying_vm_ = this.clone(this.context.element), et = t.item);
|
1482
|
+
this.computeIndexes(), this.context = this.getUnderlyingVm(t.item), this.context && (t.item._underlying_vm_ = this.clone(this.context.element), et = t.item);
|
1483
1483
|
},
|
1484
1484
|
onDragAdd(t) {
|
1485
1485
|
const e = t.item._underlying_vm_;
|
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*! Capacitor: https://capacitorjs.com/ - MIT License */const Z=t=>{const e=new Map;e.set("web",{name:"web"});const r=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},i=(o,a)=>{r.platforms.set(o,a)},n=o=>{r.platforms.has(o)&&(r.currentPlatform=r.platforms.get(o))};return r.addPlatform=i,r.setPlatform=n,r},N=t=>t.CapacitorPlatforms=Z(t),S=N(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});S.addPlatform;S.setPlatform;exports.ExceptionCode=void 0;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(exports.ExceptionCode||(exports.ExceptionCode={}));class O extends Error{constructor(e,r,i){super(e),this.message=e,this.code=r,this.data=i}}const ee=t=>{var e,r;return t!=null&&t.androidBridge?"android":!((r=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},te=t=>{var e,r,i,n,o;const a=t.CapacitorCustomPlatform||null,s=t.Capacitor||{},f=s.Plugins=s.Plugins||{},l=t.CapacitorPlatforms,E=()=>a!==null?a.name:ee(t),v=((e=l==null?void 0:l.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||E,$=()=>v()!=="web",D=((r=l==null?void 0:l.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||$,B=c=>{const d=j.get(c);return!!(d!=null&&d.platforms.has(v())||H(c))},G=((i=l==null?void 0:l.currentPlatform)===null||i===void 0?void 0:i.isPluginAvailable)||B,F=c=>{var d;return(d=s.PluginHeaders)===null||d===void 0?void 0:d.find(y=>y.name===c)},H=((n=l==null?void 0:l.currentPlatform)===null||n===void 0?void 0:n.getPluginHeader)||F,K=c=>t.console.error(c),z=(c,d,y)=>Promise.reject(`${y} does not have an implementation of "${d}".`),j=new Map,V=(c,d={})=>{const y=j.get(c);if(y)return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`),y.proxy;const P=v(),C=H(c);let h;const Q=async()=>(!h&&P in d?h=typeof d[P]=="function"?h=await d[P]():h=d[P]:a!==null&&!h&&"web"in d&&(h=typeof d.web=="function"?h=await d.web():h=d.web),h),X=(u,g)=>{var p,w;if(C){const b=C==null?void 0:C.methods.find(m=>g===m.name);if(b)return b.rtype==="promise"?m=>s.nativePromise(c,g.toString(),m):(m,k)=>s.nativeCallback(c,g.toString(),m,k);if(u)return(p=u[g])===null||p===void 0?void 0:p.bind(u)}else{if(u)return(w=u[g])===null||w===void 0?void 0:w.bind(u);throw new O(`"${c}" plugin is not implemented on ${P}`,exports.ExceptionCode.Unimplemented)}},U=u=>{let g;const p=(...w)=>{const b=Q().then(m=>{const k=X(m,u);if(k){const x=k(...w);return g=x==null?void 0:x.remove,x}else throw new O(`"${c}.${u}()" is not implemented on ${P}`,exports.ExceptionCode.Unimplemented)});return u==="addListener"&&(b.remove=async()=>g()),b};return p.toString=()=>`${u.toString()}() { [capacitor code] }`,Object.defineProperty(p,"name",{value:u,writable:!1,configurable:!1}),p},M=U("addListener"),W=U("removeListener"),Y=(u,g)=>{const p=M({eventName:u},g),w=async()=>{const m=await p;W({eventName:u,callbackId:m},g)},b=new Promise(m=>p.then(()=>m({remove:w})));return b.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await w()},b},A=new Proxy({},{get(u,g){switch(g){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return C?Y:M;case"removeListener":return W;default:return U(g)}}});return f[c]=A,j.set(c,{name:c,proxy:A,platforms:new Set([...Object.keys(d),...C?[P]:[]])}),A},J=((o=l==null?void 0:l.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||V;return s.convertFileSrc||(s.convertFileSrc=c=>c),s.getPlatform=v,s.handleError=K,s.isNativePlatform=D,s.isPluginAvailable=G,s.pluginMethodNoop=z,s.registerPlugin=J,s.Exception=O,s.DEBUG=!!s.DEBUG,s.isLoggingEnabled=!!s.isLoggingEnabled,s.platform=s.getPlatform(),s.isNative=s.isNativePlatform(),s},re=t=>t.Capacitor=te(t),L=re(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),T=L.registerPlugin;L.Plugins;class _{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(r);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const o=async()=>this.removeListener(e,r),a=Promise.resolve({remove:o});return Object.defineProperty(a,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await o()}}),a}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,r){const i=this.listeners[e];i&&i.forEach(n=>n(r))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,r){this.windowListeners[r]={registered:!1,windowEventName:e,pluginEventName:r,handler:i=>{this.notifyListeners(r,i)}}}unimplemented(e="not implemented"){return new L.Exception(e,exports.ExceptionCode.Unimplemented)}unavailable(e="not available"){return new L.Exception(e,exports.ExceptionCode.Unavailable)}async removeListener(e,r){const i=this.listeners[e];if(!i)return;const n=i.indexOf(r);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const R=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),I=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class ne extends _{async getCookies(){const e=document.cookie,r={};return e.split(";").forEach(i=>{if(i.length<=0)return;let[n,o]=i.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=I(n).trim(),o=I(o).trim(),r[n]=o}),r}async setCookie(e){try{const r=R(e.key),i=R(e.value),n=`; expires=${(e.expires||"").replace("expires=","")}`,o=(e.path||"/").replace("path=",""),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${r}=${i||""}${n}; path=${o}; ${a};`}catch(r){return Promise.reject(r)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const r of e)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});/*! Capacitor: https://capacitorjs.com/ - MIT License */const Z=t=>{const e=new Map;e.set("web",{name:"web"});const r=t.CapacitorPlatforms||{currentPlatform:{name:"web"},platforms:e},i=(o,a)=>{r.platforms.set(o,a)},n=o=>{r.platforms.has(o)&&(r.currentPlatform=r.platforms.get(o))};return r.addPlatform=i,r.setPlatform=n,r},N=t=>t.CapacitorPlatforms=Z(t),S=N(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});S.addPlatform;S.setPlatform;exports.ExceptionCode=void 0;(function(t){t.Unimplemented="UNIMPLEMENTED",t.Unavailable="UNAVAILABLE"})(exports.ExceptionCode||(exports.ExceptionCode={}));class O extends Error{constructor(e,r,i){super(e),this.message=e,this.code=r,this.data=i}}const ee=t=>{var e,r;return t!=null&&t.androidBridge?"android":!((r=(e=t==null?void 0:t.webkit)===null||e===void 0?void 0:e.messageHandlers)===null||r===void 0)&&r.bridge?"ios":"web"},te=t=>{var e,r,i,n,o;const a=t.CapacitorCustomPlatform||null,s=t.Capacitor||{},f=s.Plugins=s.Plugins||{},l=t.CapacitorPlatforms,E=()=>a!==null?a.name:ee(t),v=((e=l==null?void 0:l.currentPlatform)===null||e===void 0?void 0:e.getPlatform)||E,$=()=>v()!=="web",D=((r=l==null?void 0:l.currentPlatform)===null||r===void 0?void 0:r.isNativePlatform)||$,B=c=>{const d=j.get(c);return!!(d!=null&&d.platforms.has(v())||H(c))},G=((i=l==null?void 0:l.currentPlatform)===null||i===void 0?void 0:i.isPluginAvailable)||B,F=c=>{var d;return(d=s.PluginHeaders)===null||d===void 0?void 0:d.find(y=>y.name===c)},H=((n=l==null?void 0:l.currentPlatform)===null||n===void 0?void 0:n.getPluginHeader)||F,K=c=>t.console.error(c),z=(c,d,y)=>Promise.reject(`${y} does not have an implementation of "${d}".`),j=new Map,V=(c,d={})=>{const y=j.get(c);if(y)return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`),y.proxy;const P=v(),C=H(c);let h;const Q=async()=>(!h&&P in d?h=typeof d[P]=="function"?h=await d[P]():h=d[P]:a!==null&&!h&&"web"in d&&(h=typeof d.web=="function"?h=await d.web():h=d.web),h),X=(u,g)=>{var p,w;if(C){const b=C==null?void 0:C.methods.find(m=>g===m.name);if(b)return b.rtype==="promise"?m=>s.nativePromise(c,g.toString(),m):(m,k)=>s.nativeCallback(c,g.toString(),m,k);if(u)return(p=u[g])===null||p===void 0?void 0:p.bind(u)}else{if(u)return(w=u[g])===null||w===void 0?void 0:w.bind(u);throw new O(`"${c}" plugin is not implemented on ${P}`,exports.ExceptionCode.Unimplemented)}},U=u=>{let g;const p=(...w)=>{const b=Q().then(m=>{const k=X(m,u);if(k){const x=k(...w);return g=x==null?void 0:x.remove,x}else throw new O(`"${c}.${u}()" is not implemented on ${P}`,exports.ExceptionCode.Unimplemented)});return u==="addListener"&&(b.remove=async()=>g()),b};return p.toString=()=>`${u.toString()}() { [capacitor code] }`,Object.defineProperty(p,"name",{value:u,writable:!1,configurable:!1}),p},M=U("addListener"),W=U("removeListener"),Y=(u,g)=>{const p=M({eventName:u},g),w=async()=>{const m=await p;W({eventName:u,callbackId:m},g)},b=new Promise(m=>p.then(()=>m({remove:w})));return b.remove=async()=>{console.warn("Using addListener() without 'await' is deprecated."),await w()},b},A=new Proxy({},{get(u,g){switch(g){case"$$typeof":return;case"toJSON":return()=>({});case"addListener":return C?Y:M;case"removeListener":return W;default:return U(g)}}});return f[c]=A,j.set(c,{name:c,proxy:A,platforms:new Set([...Object.keys(d),...C?[P]:[]])}),A},J=((o=l==null?void 0:l.currentPlatform)===null||o===void 0?void 0:o.registerPlugin)||V;return s.convertFileSrc||(s.convertFileSrc=c=>c),s.getPlatform=v,s.handleError=K,s.isNativePlatform=D,s.isPluginAvailable=G,s.pluginMethodNoop=z,s.registerPlugin=J,s.Exception=O,s.DEBUG=!!s.DEBUG,s.isLoggingEnabled=!!s.isLoggingEnabled,s.platform=s.getPlatform(),s.isNative=s.isNativePlatform(),s},re=t=>t.Capacitor=te(t),L=re(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),T=L.registerPlugin;L.Plugins;class _{constructor(e){this.listeners={},this.windowListeners={},e&&(console.warn(`Capacitor WebPlugin "${e.name}" config object was deprecated in v3 and will be removed in v4.`),this.config=e)}addListener(e,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(r);const n=this.windowListeners[e];n&&!n.registered&&this.addWindowListener(n);const o=async()=>this.removeListener(e,r),a=Promise.resolve({remove:o});return Object.defineProperty(a,"remove",{value:async()=>{console.warn("Using addListener() without 'await' is deprecated."),await o()}}),a}async removeAllListeners(){this.listeners={};for(const e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,r){const i=this.listeners[e];i&&i.forEach(n=>n(r))}hasListeners(e){return!!this.listeners[e].length}registerWindowListener(e,r){this.windowListeners[r]={registered:!1,windowEventName:e,pluginEventName:r,handler:i=>{this.notifyListeners(r,i)}}}unimplemented(e="not implemented"){return new L.Exception(e,exports.ExceptionCode.Unimplemented)}unavailable(e="not available"){return new L.Exception(e,exports.ExceptionCode.Unavailable)}async removeListener(e,r){const i=this.listeners[e];if(!i)return;const n=i.indexOf(r);this.listeners[e].splice(n,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}}const R=t=>encodeURIComponent(t).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),I=t=>t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent);class ne extends _{async getCookies(){const e=document.cookie,r={};return e.split(";").forEach(i=>{if(i.length<=0)return;let[n,o]=i.replace(/=/,"CAP_COOKIE").split("CAP_COOKIE");n=I(n).trim(),o=I(o).trim(),r[n]=o}),r}async setCookie(e){try{const r=R(e.key),i=R(e.value),n=`; expires=${(e.expires||"").replace("expires=","")}`,o=(e.path||"/").replace("path=",""),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:"";document.cookie=`${r}=${i||""}${n}; path=${o}; ${a};`}catch(r){return Promise.reject(r)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(r){return Promise.reject(r)}}async clearCookies(){try{const e=document.cookie.split(";")||[];for(const r of e)document.cookie=r.replace(/^ +/,"").replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}}T("CapacitorCookies",{web:()=>new ne});const oe=async t=>new Promise((e,r)=>{const i=new FileReader;i.onload=()=>{const n=i.result;e(n.indexOf(",")>=0?n.split(",")[1]:n)},i.onerror=n=>r(n),i.readAsDataURL(t)}),se=(t={})=>{const e=Object.keys(t);return Object.keys(t).map(n=>n.toLocaleLowerCase()).reduce((n,o,a)=>(n[o]=t[e[a]],n),{})},ie=(t,e=!0)=>t?Object.entries(t).reduce((i,n)=>{const[o,a]=n;let s,f;return Array.isArray(a)?(f="",a.forEach(l=>{s=e?encodeURIComponent(l):l,f+=`${o}=${s}&`}),f.slice(0,-1)):(s=e?encodeURIComponent(a):a,f=`${o}=${s}`),`${i}&${f}`},"").substr(1):null,q=(t,e={})=>{const r=Object.assign({method:t.method||"GET",headers:t.headers},e),n=se(t.headers)["content-type"]||"";if(typeof t.data=="string")r.body=t.data;else if(n.includes("application/x-www-form-urlencoded")){const o=new URLSearchParams;for(const[a,s]of Object.entries(t.data||{}))o.set(a,s);r.body=o.toString()}else if(n.includes("multipart/form-data")){const o=new FormData;if(t.data instanceof FormData)t.data.forEach((s,f)=>{o.append(f,s)});else for(const s of Object.keys(t.data))o.append(s,t.data[s]);r.body=o;const a=new Headers(r.headers);a.delete("content-type"),r.headers=a}else(n.includes("application/json")||typeof t.data=="object")&&(r.body=JSON.stringify(t.data));return r};class ae extends _{async request(e){const r=q(e,e.webFetchExtra),i=ie(e.params,e.shouldEncodeUrlParams),n=i?`${e.url}?${i}`:e.url,o=await fetch(n,r),a=o.headers.get("content-type")||"";let{responseType:s="text"}=o.ok?e:{};a.includes("application/json")&&(s="json");let f,l;switch(s){case"arraybuffer":case"blob":l=await o.blob(),f=await oe(l);break;case"json":f=await o.json();break;case"document":case"text":default:f=await o.text()}const E={};return o.headers.forEach((v,$)=>{E[$]=v}),{data:f,headers:E,status:o.status,url:o.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:"GET"}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:"POST"}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:"PUT"}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:"PATCH"}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:"DELETE"}))}}T("CapacitorHttp",{web:()=>new ae});exports.Capacitor=L;exports.CapacitorException=O;exports.CapacitorPlatforms=S;exports.WebPlugin=_;exports.buildRequestInit=q;exports.registerPlugin=T;
|
@@ -38,33 +38,33 @@ const ee = (t) => {
|
|
38
38
|
const y = j.get(c);
|
39
39
|
if (y)
|
40
40
|
return console.warn(`Capacitor plugin "${c}" already registered. Cannot register plugins twice.`), y.proxy;
|
41
|
-
const
|
41
|
+
const p = P(), C = T(c);
|
42
42
|
let w;
|
43
|
-
const Q = async () => (!w &&
|
44
|
-
var h,
|
43
|
+
const Q = async () => (!w && p in d ? w = typeof d[p] == "function" ? w = await d[p]() : w = d[p] : a !== null && !w && "web" in d && (w = typeof d.web == "function" ? w = await d.web() : w = d.web), w), X = (u, m) => {
|
44
|
+
var h, v;
|
45
45
|
if (C) {
|
46
|
-
const
|
47
|
-
if (
|
48
|
-
return
|
46
|
+
const b = C == null ? void 0 : C.methods.find((g) => m === g.name);
|
47
|
+
if (b)
|
48
|
+
return b.rtype === "promise" ? (g) => o.nativePromise(c, m.toString(), g) : (g, E) => o.nativeCallback(c, m.toString(), g, E);
|
49
49
|
if (u)
|
50
50
|
return (h = u[m]) === null || h === void 0 ? void 0 : h.bind(u);
|
51
51
|
} else {
|
52
52
|
if (u)
|
53
|
-
return (
|
54
|
-
throw new S(`"${c}" plugin is not implemented on ${
|
53
|
+
return (v = u[m]) === null || v === void 0 ? void 0 : v.bind(u);
|
54
|
+
throw new S(`"${c}" plugin is not implemented on ${p}`, L.Unimplemented);
|
55
55
|
}
|
56
56
|
}, U = (u) => {
|
57
57
|
let m;
|
58
|
-
const h = (...
|
59
|
-
const
|
58
|
+
const h = (...v) => {
|
59
|
+
const b = Q().then((g) => {
|
60
60
|
const E = X(g, u);
|
61
61
|
if (E) {
|
62
|
-
const $ = E(...
|
62
|
+
const $ = E(...v);
|
63
63
|
return m = $ == null ? void 0 : $.remove, $;
|
64
64
|
} else
|
65
|
-
throw new S(`"${c}.${u}()" is not implemented on ${
|
65
|
+
throw new S(`"${c}.${u}()" is not implemented on ${p}`, L.Unimplemented);
|
66
66
|
});
|
67
|
-
return u === "addListener" && (
|
67
|
+
return u === "addListener" && (b.remove = async () => m()), b;
|
68
68
|
};
|
69
69
|
return h.toString = () => `${u.toString()}() { [capacitor code] }`, Object.defineProperty(h, "name", {
|
70
70
|
value: u,
|
@@ -72,16 +72,16 @@ const ee = (t) => {
|
|
72
72
|
configurable: !1
|
73
73
|
}), h;
|
74
74
|
}, _ = U("addListener"), H = U("removeListener"), Y = (u, m) => {
|
75
|
-
const h = _({ eventName: u }, m),
|
75
|
+
const h = _({ eventName: u }, m), v = async () => {
|
76
76
|
const g = await h;
|
77
77
|
H({
|
78
78
|
eventName: u,
|
79
79
|
callbackId: g
|
80
80
|
}, m);
|
81
|
-
},
|
82
|
-
return
|
83
|
-
console.warn("Using addListener() without 'await' is deprecated."), await
|
84
|
-
},
|
81
|
+
}, b = new Promise((g) => h.then(() => g({ remove: v })));
|
82
|
+
return b.remove = async () => {
|
83
|
+
console.warn("Using addListener() without 'await' is deprecated."), await v();
|
84
|
+
}, b;
|
85
85
|
}, A = new Proxy({}, {
|
86
86
|
get(u, m) {
|
87
87
|
switch (m) {
|
@@ -103,7 +103,7 @@ const ee = (t) => {
|
|
103
103
|
proxy: A,
|
104
104
|
platforms: /* @__PURE__ */ new Set([
|
105
105
|
...Object.keys(d),
|
106
|
-
...C ? [
|
106
|
+
...C ? [p] : []
|
107
107
|
])
|
108
108
|
}), A;
|
109
109
|
}, J = ((s = l == null ? void 0 : l.currentPlatform) === null || s === void 0 ? void 0 : s.registerPlugin) || V;
|
@@ -211,9 +211,10 @@ class ne extends q {
|
|
211
211
|
}
|
212
212
|
}
|
213
213
|
}
|
214
|
-
|
214
|
+
I("CapacitorCookies", {
|
215
215
|
web: () => new ne()
|
216
|
-
})
|
216
|
+
});
|
217
|
+
const se = async (t) => new Promise((e, r) => {
|
217
218
|
const i = new FileReader();
|
218
219
|
i.onload = () => {
|
219
220
|
const n = i.result;
|
@@ -327,7 +328,6 @@ I("CapacitorHttp", {
|
|
327
328
|
});
|
328
329
|
export {
|
329
330
|
O as Capacitor,
|
330
|
-
ce as CapacitorCookies,
|
331
331
|
S as CapacitorException,
|
332
332
|
R as CapacitorPlatforms,
|
333
333
|
L as ExceptionCode,
|