@opengis/cms 0.0.14 → 0.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (98) hide show
  1. package/dist/assets/ArticlesPage-BveM4q3g.js +11 -0
  2. package/dist/assets/CollectionsPage-D5td-UBm.js +1 -0
  3. package/dist/assets/ContentBlock.vue_vue_type_script_setup_true_lang-BwF6D-yB.js +30 -0
  4. package/dist/assets/CreateCollectionPage-Cu0RW5ui.js +76 -0
  5. package/dist/assets/Dashboard-faSjwmB8.js +11 -0
  6. package/dist/assets/EditCollectionPage-K5oPPzCd.js +1 -0
  7. package/dist/assets/MediaPage-BoW3aWgN.js +1 -0
  8. package/dist/assets/PermissionsPage-DGy5fha2.js +1 -0
  9. package/dist/assets/SingletonsPage-C1X2xkQE.js +1 -0
  10. package/dist/assets/UniversalTable.vue_vue_type_script_setup_true_lang-DUqfWJcy.js +6 -0
  11. package/dist/assets/calendar-hsWc4yH-.js +6 -0
  12. package/dist/assets/contentForm-DMVC4vho.js +1 -0
  13. package/dist/assets/database-BTxZQzYy.js +6 -0
  14. package/dist/assets/index-9GY17iSP.css +1 -0
  15. package/dist/assets/index-DYyZmLWO.js +2138 -0
  16. package/dist/assets/index-xsH4HHeE.js +6 -0
  17. package/dist/assets/logo-Cct5WB26.png +0 -0
  18. package/dist/assets/plus-D9etvrM2.js +6 -0
  19. package/dist/assets/save-C2B6th9J.js +11 -0
  20. package/dist/assets/search-BI-hqhq6.js +6 -0
  21. package/dist/assets/settings-DbyDiH2g.js +6 -0
  22. package/dist/assets/square-pen-61CkyXzK.js +6 -0
  23. package/dist/assets/trash-2-CJSl_r88.js +6 -0
  24. package/dist/assets/vue.-sixQ7xP-DwXf3zRn.js +1 -0
  25. package/dist/assets/x-BNquQe5y.js +6 -0
  26. package/dist/assets/x-circle-C3q70RMH.js +16 -0
  27. package/dist/images/logo.png +0 -0
  28. package/dist/index.html +30 -0
  29. package/package.json +40 -31
  30. package/plugin.js +32 -7
  31. package/server/app.js +10 -20
  32. package/server/index.js +3 -3
  33. package/server/migrations/site.sql +13 -7
  34. package/server/plugins/adminHook.js +78 -0
  35. package/server/plugins/hook.js +54 -78
  36. package/server/plugins/vite.js +13 -9
  37. package/server/routes/{site → cms}/controllers/deleteContent.js +59 -44
  38. package/server/routes/{site → cms}/controllers/deleteMedia.js +46 -46
  39. package/server/routes/{site → cms}/controllers/downloadMedia.js +48 -48
  40. package/server/routes/cms/controllers/getContent.js +96 -0
  41. package/server/routes/{site → cms}/controllers/getPermissions.js +15 -15
  42. package/server/routes/{site → cms}/controllers/insertContent.js +68 -47
  43. package/server/routes/{site → cms}/controllers/listMedia.js +72 -72
  44. package/server/routes/{site → cms}/controllers/metadataMedia.js +37 -37
  45. package/server/routes/{site → cms}/controllers/setPermissions.js +49 -49
  46. package/server/routes/cms/controllers/updateContent.js +112 -0
  47. package/server/routes/{site → cms}/controllers/uploadMedia.js +65 -65
  48. package/server/routes/{site → cms}/index.mjs +13 -13
  49. package/server/routes/contentType/controllers/cms.type.delete.js +22 -0
  50. package/server/routes/contentType/controllers/cms.type.get.js +22 -0
  51. package/server/routes/contentType/controllers/cms.type.list.js +25 -0
  52. package/server/routes/contentType/controllers/cms.type.post.js +22 -0
  53. package/server/routes/contentType/controllers/cms.type.put.js +24 -0
  54. package/server/routes/contentType/index.mjs +25 -0
  55. package/server/routes/contentType/utils/builderCache.js +58 -0
  56. package/server/routes/fileContent/data/deleteContent.js +34 -0
  57. package/server/routes/fileContent/data/deleteMedia.js +28 -0
  58. package/server/routes/fileContent/data/downloadMedia.js +41 -0
  59. package/server/routes/fileContent/data/getContent.js +32 -0
  60. package/server/routes/fileContent/data/insertContent.js +37 -0
  61. package/server/routes/fileContent/data/listMedia.js +47 -0
  62. package/server/routes/fileContent/data/metadataMedia.js +38 -0
  63. package/server/routes/fileContent/data/updateContent.js +40 -0
  64. package/server/routes/fileContent/data/uploadMedia.js +49 -0
  65. package/server/routes/fileContent/index.mjs +54 -0
  66. package/server/routes/fileContent/type/contentTypeList.js +7 -0
  67. package/server/routes/fileContent/type/createContentType.js +31 -0
  68. package/server/routes/fileContent/type/deleteContentType.js +29 -0
  69. package/server/routes/fileContent/type/getContentType.js +15 -0
  70. package/server/routes/fileContent/type/updateContentType.js +40 -0
  71. package/server/routes/fileContent/utils/astroBuilderCache.js +47 -0
  72. package/server/routes/fileContent/utils/contentDir.js +12 -0
  73. package/server/routes/fileContent/utils/contentTypeExists.js +15 -0
  74. package/server/routes/root.mjs +0 -7
  75. package/dist/cms.js +0 -6727
  76. package/dist/cms.umd.cjs +0 -19
  77. package/dist/style.css +0 -1
  78. package/server/routes/builder/controllers/cms.builder.delete.js +0 -21
  79. package/server/routes/builder/controllers/cms.builder.get.js +0 -17
  80. package/server/routes/builder/controllers/cms.builder.list.js +0 -16
  81. package/server/routes/builder/controllers/cms.builder.post.js +0 -21
  82. package/server/routes/builder/controllers/cms.builder.put.js +0 -23
  83. package/server/routes/builder/index.mjs +0 -22
  84. package/server/routes/manager/controllers/cms.manager.delete.js +0 -22
  85. package/server/routes/manager/controllers/cms.manager.get.js +0 -21
  86. package/server/routes/manager/controllers/cms.manager.list.js +0 -31
  87. package/server/routes/manager/controllers/cms.manager.post.js +0 -28
  88. package/server/routes/manager/controllers/cms.manager.put.js +0 -23
  89. package/server/routes/manager/index.mjs +0 -22
  90. package/server/routes/media/controllers/delete.js +0 -59
  91. package/server/routes/media/controllers/edit.js +0 -94
  92. package/server/routes/media/controllers/list.js +0 -74
  93. package/server/routes/media/controllers/metadata.js +0 -51
  94. package/server/routes/media/controllers/preview.js +0 -47
  95. package/server/routes/media/controllers/upload.js +0 -79
  96. package/server/routes/media/index.mjs +0 -16
  97. package/server/routes/site/controllers/getContent.js +0 -43
  98. package/server/routes/site/controllers/updateContent.js +0 -52
@@ -0,0 +1,11 @@
1
+ import{c as f,d as w,r as m,u as _,q as $,b as C,e,t as s,h as o,l as i,m as l,s as j,v as A,J as D,x as L,o as P}from"./index-DYyZmLWO.js";import{F as S,_ as q}from"./UniversalTable.vue_vue_type_script_setup_true_lang-DUqfWJcy.js";import{a as I}from"./index-xsH4HHeE.js";import{u as M}from"./vue.-sixQ7xP-DwXf3zRn.js";import{P as N}from"./plus-D9etvrM2.js";import{S as V}from"./search-BI-hqhq6.js";import"./calendar-hsWc4yH-.js";import"./x-circle-C3q70RMH.js";import"./square-pen-61CkyXzK.js";import"./trash-2-CJSl_r88.js";/**
2
+ * @license lucide-vue-next v0.344.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const B=f("ChevronLeftIcon",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]);/**
7
+ * @license lucide-vue-next v0.344.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const E=f("DownloadIcon",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]),F={class:"space-y-6"},R={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},H={class:"text-2xl font-semibold text-gray-900 dark:text-white"},T={class:"bg-white dark:bg-gray-800 shadow-sm rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden"},z={class:"p-4 sm:p-6 border-b border-gray-200 dark:border-gray-700"},J={class:"flex flex-col sm:flex-row gap-4"},O={class:"flex-1 relative"},Q={class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},U=["placeholder"],G={class:"flex space-x-2"},K={class:"inline-flex items-center px-3 py-2 border border-gray-300 dark:border-gray-600 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},W={class:"inline-flex items-center px-3 py-2 border border-gray-300 dark:border-gray-600 shadow-sm text-sm leading-4 font-medium rounded-md text-gray-700 dark:text-gray-200 bg-white dark:bg-gray-700 hover:bg-gray-50 dark:hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},X={class:"px-4 py-3 flex items-center justify-between border-t border-gray-200 dark:border-gray-700 sm:px-6"},Y={class:"flex-1 flex justify-between sm:hidden"},Z={class:"relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},ee={class:"ml-3 relative inline-flex items-center px-4 py-2 border border-gray-300 text-sm font-medium rounded-md text-gray-700 bg-white hover:bg-gray-50"},te={class:"hidden sm:flex-1 sm:flex sm:items-center sm:justify-between"},re={class:"text-sm text-gray-700 dark:text-gray-300"},se={class:"font-medium"},oe={class:"font-medium"},ae={class:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination"},ne={class:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600"},ie={class:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 dark:border-gray-600 bg-white dark:bg-gray-700 text-sm font-medium text-gray-500 dark:text-gray-400 hover:bg-gray-50 dark:hover:bg-gray-600"},xe=w({__name:"ArticlesPage",setup(le){const g=L(),d=m(""),{t:b}=_(),a=m([]),c=m([]),h=()=>{g.push("/collections/articles/create")},p=async t=>{await I.delete(`/api/cms/articles/${t.id}`),u()},x=t=>{g.push(`/collections/articles/${t.id}`)},u=async()=>{const r=await(await fetch("/api/cms/articles")).json();a.value=r.rows||[],c.value=r.columns||(a.value.length>0?Object.keys(a.value[0]).map(n=>({name:n,title:n})):[])},v=(t,r)=>{if(!r)return!0;const n=r.toLowerCase();return c.value.some(k=>{const y=t[k.name];return y&&y.toString().toLowerCase().includes(n)})};return $(u),M({title:()=>b("articles.title")+" | CMS"}),(t,r)=>(P(),C("div",F,[e("div",R,[e("h1",H,s(t.$t("articles.title")),1),e("button",{onClick:h,class:"inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-sky-600 hover:bg-sky-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},[o(l(N),{class:"h-4 w-4 mr-2"}),i(" "+s(t.$t("articles.createArticle")),1)])]),e("div",T,[e("div",z,[e("div",J,[e("div",O,[e("div",Q,[o(l(V),{class:"h-5 w-5 text-gray-400"})]),j(e("input",{type:"text",class:"block w-full pl-10 pr-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md leading-5 bg-white dark:bg-gray-700 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-sky-500 focus:border-sky-500 text-gray-900 dark:text-white sm:text-sm transition-colors",placeholder:t.$t("articles.searchArticles"),"onUpdate:modelValue":r[0]||(r[0]=n=>d.value=n)},null,8,U),[[A,d.value]])]),e("div",G,[e("button",K,[o(l(S),{class:"h-4 w-4 mr-2 text-gray-500 dark:text-gray-400"}),i(" "+s(t.$t("common.actions.filter")),1)]),e("button",W,[o(l(E),{class:"h-4 w-4 mr-2 text-gray-500 dark:text-gray-400"}),i(" "+s(t.$t("common.actions.export")),1)])])])]),o(q,{rows:a.value,columns:c.value,query:d.value,filterFn:v,onDelete:p,onEdit:x},null,8,["rows","columns","query"]),e("div",X,[e("div",Y,[e("button",Z,s(t.$t("common.pagination.previous")),1),e("button",ee,s(t.$t("common.pagination.next")),1)]),e("div",te,[e("div",null,[e("p",re,[i(s(t.$t("common.pagination.showing"))+" ",1),e("span",se,s(a.value.length),1),i(" "+s(t.$t("common.pagination.of"))+" ",1),e("span",oe,s(a.value.length),1),i(" "+s(t.$t("common.pagination.results")),1)])]),e("div",null,[e("nav",ae,[e("button",ne,[r[1]||(r[1]=e("span",{class:"sr-only"},"Previous",-1)),o(l(B),{class:"h-5 w-5"})]),r[3]||(r[3]=e("button",{class:"relative inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 bg-sky-50 dark:bg-sky-900 text-sm font-medium text-sky-600 dark:text-sky-400 hover:bg-sky-100 dark:hover:bg-sky-800"}," 1 ",-1)),e("button",ie,[r[2]||(r[2]=e("span",{class:"sr-only"},"Next",-1)),o(l(D),{class:"h-5 w-5"})])])])])])])]))}});export{xe as default};
@@ -0,0 +1 @@
1
+ import{r as f,p as $,d as T,u as D,q as V,a as j,b as c,e,t as a,h as n,l as E,m as l,s as L,v as P,f as p,g as x,x as q,o as d}from"./index-DYyZmLWO.js";import{u as B}from"./vue.-sixQ7xP-DwXf3zRn.js";import{P as M}from"./plus-D9etvrM2.js";import{S as N}from"./search-BI-hqhq6.js";import{D as F}from"./database-BTxZQzYy.js";import{S as Q}from"./square-pen-61CkyXzK.js";import{T as A}from"./trash-2-CJSl_r88.js";import{S as G}from"./settings-DbyDiH2g.js";function H(m,i=300){const r=f(m);let u;return $(()=>m,g=>{clearTimeout(u),u=setTimeout(()=>{r.value=g},i)},{immediate:!0}),r}const I={class:"space-y-6"},R={class:"flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4"},U={class:"text-2xl font-semibold text-gray-900 dark:text-white"},z={class:"bg-white dark:bg-gray-800 shadow-sm rounded-lg border border-gray-200 dark:border-gray-700 overflow-hidden"},J={class:"p-4 sm:p-6 border-b border-gray-200 dark:border-gray-700"},K={class:"relative"},O={class:"absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none"},W=["placeholder"],X={class:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4 p-4 sm:p-6"},Y={class:"flex items-start justify-between"},Z={class:"flex items-center"},ee=["onClick"],te={class:"flex space-x-2"},se=["onClick"],oe=["onClick"],re={class:"text-gray-400 hover:text-gray-500 dark:hover:text-gray-300"},ae={class:"mt-1 text-sm text-gray-500 dark:text-gray-400"},ne={class:"mt-4"},le={class:"text-xs font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider"},ie={class:"mt-2 flex flex-wrap gap-2"},pe=T({__name:"CollectionsPage",setup(m){const i=q(),r=f(""),u=H(r.value,300),{t:g}=D();B({title:()=>g("collections.title")+" | CMS"});const y=f([]);async function b(){try{const t=await fetch("/api/cms-type");if(!t.ok)throw new Error("Failed to fetch collections");const o=await t.json();y.value=o.rows.filter(s=>s.type==="collection")}catch(t){console.error("Error fetching collections:",t)}}V(()=>{b()});const _=j(()=>{const t=u.value.toLowerCase();return y.value.filter(o=>o.name.toLowerCase().includes(t)||o.description.toLowerCase().includes(t))}),k=()=>{i.push("/collections/create")},v=t=>{i.push(`/collections/edit/${t.id}`)},w=t=>{confirm("Are you sure you want to delete this collection? This action cannot be undone.")&&console.log("Deleting collection:",t)},C=t=>{i.push(`/collections/${t.name}`)};return(t,o)=>(d(),c("div",I,[e("div",R,[e("h1",U,a(t.$t("collections.title")),1),e("button",{onClick:k,class:"inline-flex items-center justify-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-sky-600 hover:bg-sky-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},[n(l(M),{class:"h-4 w-4 mr-2"}),E(" "+a(t.$t("collections.createCollection")),1)])]),e("div",z,[e("div",J,[e("div",K,[e("div",O,[n(l(N),{class:"h-5 w-5 text-gray-400"})]),L(e("input",{type:"text",class:"block w-full pl-10 pr-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md leading-5 bg-white dark:bg-gray-700 placeholder-gray-500 dark:placeholder-gray-400 focus:outline-none focus:ring-sky-500 focus:border-sky-500 text-gray-900 dark:text-white sm:text-sm transition-colors",placeholder:t.$t("collections.searchCollections"),"onUpdate:modelValue":o[0]||(o[0]=s=>r.value=s)},null,8,W),[[P,r.value]])])]),e("div",X,[(d(!0),c(p,null,x(_.value,s=>(d(),c("div",{key:s.id,class:"bg-gray-50 dark:bg-gray-700 border border-gray-200 dark:border-gray-600 rounded-lg p-4 hover:shadow-md transition-shadow"},[e("div",Y,[e("div",Z,[n(l(F),{class:"h-5 w-5 text-sky-500 mr-2"}),e("h3",{class:"text-lg font-medium text-gray-900 dark:text-white cursor-pointer hover:underline",onClick:h=>C(s)},a(s.title),9,ee)]),e("div",te,[e("button",{onClick:h=>v(s),class:"text-gray-400 hover:text-gray-500 dark:hover:text-gray-300"},[n(l(Q),{class:"h-4 w-4"})],8,se),e("button",{onClick:h=>w(s.id),class:"text-gray-400 hover:text-red-500 dark:hover:text-red-400"},[n(l(A),{class:"h-4 w-4"})],8,oe),e("button",re,[n(l(G),{class:"h-4 w-4"})])])]),e("p",ae,a(s.description),1),e("div",ne,[e("h4",le,a(t.$t("collections.form.fields")),1),e("div",ie,[(d(!0),c(p,null,x(s.fields,(h,S)=>(d(),c("span",{key:S,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-gray-100 text-gray-800 dark:bg-gray-600 dark:text-gray-300"},a(h.label),1))),128))])])]))),128))])])]))}});export{pe as default};
@@ -0,0 +1,30 @@
1
+ import{c as Je,B as Vr,C as Yr,D as zr,E as Jr,d as Qr,a as Sr,b as Zr,e as qt,j as kr,h as qe,m as _e,t as qr,G as _r,H as tn,k as en,o as br}from"./index-DYyZmLWO.js";import{S as rn}from"./settings-DbyDiH2g.js";import{X as nn}from"./x-BNquQe5y.js";/**
2
+ * @license lucide-vue-next v0.344.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const on=Je("GripVerticalIcon",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
7
+ * @license lucide-vue-next v0.344.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const _n=Je("LinkIcon",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
12
+ * @license lucide-vue-next v0.344.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const to=Je("ListIcon",[["line",{x1:"8",x2:"21",y1:"6",y2:"6",key:"7ey8pc"}],["line",{x1:"8",x2:"21",y1:"12",y2:"12",key:"rjfblc"}],["line",{x1:"8",x2:"21",y1:"18",y2:"18",key:"c3b1m8"}],["line",{x1:"3",x2:"3.01",y1:"6",y2:"6",key:"1g7gq3"}],["line",{x1:"3",x2:"3.01",y1:"12",y2:"12",key:"1pjlvk"}],["line",{x1:"3",x2:"3.01",y1:"18",y2:"18",key:"28t2mc"}]]);/**
17
+ * @license lucide-vue-next v0.344.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const eo=Je("TypeIcon",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);var Mr={exports:{}};/**!
22
+ * Sortable 1.14.0
23
+ * @author RubaXa <trash@rubaxa.org>
24
+ * @author owenm <owen23355@gmail.com>
25
+ * @license MIT
26
+ */function xr(s,r){var n=Object.keys(s);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(s);r&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(s,e).enumerable})),n.push.apply(n,i)}return n}function Kt(s){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?xr(Object(n),!0).forEach(function(i){an(s,i,n[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(n)):xr(Object(n)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(n,i))})}return s}function Ge(s){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ge=function(r){return typeof r}:Ge=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ge(s)}function an(s,r,n){return r in s?Object.defineProperty(s,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):s[r]=n,s}function jt(){return jt=Object.assign||function(s){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(s[i]=n[i])}return s},jt.apply(this,arguments)}function sn(s,r){if(s==null)return{};var n={},i=Object.keys(s),e,f;for(f=0;f<i.length;f++)e=i[f],!(r.indexOf(e)>=0)&&(n[e]=s[e]);return n}function ln(s,r){if(s==null)return{};var n=sn(s,r),i,e;if(Object.getOwnPropertySymbols){var f=Object.getOwnPropertySymbols(s);for(e=0;e<f.length;e++)i=f[e],!(r.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(s,i)&&(n[i]=s[i])}return n}function fn(s){return un(s)||cn(s)||dn(s)||vn()}function un(s){if(Array.isArray(s))return ur(s)}function cn(s){if(typeof Symbol<"u"&&s[Symbol.iterator]!=null||s["@@iterator"]!=null)return Array.from(s)}function dn(s,r){if(s){if(typeof s=="string")return ur(s,r);var n=Object.prototype.toString.call(s).slice(8,-1);if(n==="Object"&&s.constructor&&(n=s.constructor.name),n==="Map"||n==="Set")return Array.from(s);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ur(s,r)}}function ur(s,r){(r==null||r>s.length)&&(r=s.length);for(var n=0,i=new Array(r);n<r;n++)i[n]=s[n];return i}function vn(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
27
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var hn="1.14.0";function Ht(s){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(s)}var Wt=Ht(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ce=Ht(/Edge/i),Er=Ht(/firefox/i),Oe=Ht(/safari/i)&&!Ht(/chrome/i)&&!Ht(/android/i),jr=Ht(/iP(ad|od|hone)/i),pn=Ht(/chrome/i)&&Ht(/android/i),Fr={capture:!1,passive:!1};function Z(s,r,n){s.addEventListener(r,n,!Wt&&Fr)}function Q(s,r,n){s.removeEventListener(r,n,!Wt&&Fr)}function We(s,r){if(r){if(r[0]===">"&&(r=r.substring(1)),s)try{if(s.matches)return s.matches(r);if(s.msMatchesSelector)return s.msMatchesSelector(r);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(r)}catch{return!1}return!1}}function gn(s){return s.host&&s!==document&&s.host.nodeType?s.host:s.parentNode}function Ut(s,r,n,i){if(s){n=n||document;do{if(r!=null&&(r[0]===">"?s.parentNode===n&&We(s,r):We(s,r))||i&&s===n)return s;if(s===n)break}while(s=gn(s))}return null}var Or=/\s+/g;function st(s,r,n){if(s&&r)if(s.classList)s.classList[n?"add":"remove"](r);else{var i=(" "+s.className+" ").replace(Or," ").replace(" "+r+" "," ");s.className=(i+(n?" "+r:"")).replace(Or," ")}}function w(s,r,n){var i=s&&s.style;if(i){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(s,""):s.currentStyle&&(n=s.currentStyle),r===void 0?n:n[r];!(r in i)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),i[r]=n+(typeof n=="string"?"":"px")}}function re(s,r){var n="";if(typeof s=="string")n=s;else do{var i=w(s,"transform");i&&i!=="none"&&(n=i+" "+n)}while(!r&&(s=s.parentNode));var e=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return e&&new e(n)}function Lr(s,r,n){if(s){var i=s.getElementsByTagName(r),e=0,f=i.length;if(n)for(;e<f;e++)n(i[e],e);return i}return[]}function Bt(){var s=document.scrollingElement;return s||document.documentElement}function at(s,r,n,i,e){if(!(!s.getBoundingClientRect&&s!==window)){var f,t,o,a,l,c,u;if(s!==window&&s.parentNode&&s!==Bt()?(f=s.getBoundingClientRect(),t=f.top,o=f.left,a=f.bottom,l=f.right,c=f.height,u=f.width):(t=0,o=0,a=window.innerHeight,l=window.innerWidth,c=window.innerHeight,u=window.innerWidth),(r||n)&&s!==window&&(e=e||s.parentNode,!Wt))do if(e&&e.getBoundingClientRect&&(w(e,"transform")!=="none"||n&&w(e,"position")!=="static")){var d=e.getBoundingClientRect();t-=d.top+parseInt(w(e,"border-top-width")),o-=d.left+parseInt(w(e,"border-left-width")),a=t+f.height,l=o+f.width;break}while(e=e.parentNode);if(i&&s!==window){var v=re(e||s),h=v&&v.a,p=v&&v.d;v&&(t/=p,o/=h,u/=h,c/=p,a=t+c,l=o+u)}return{top:t,left:o,bottom:a,right:l,width:u,height:c}}}function Tr(s,r,n){for(var i=Qt(s,!0),e=at(s)[r];i;){var f=at(i)[n],t=void 0;if(t=e>=f,!t)return i;if(i===Bt())break;i=Qt(i,!1)}return!1}function fe(s,r,n,i){for(var e=0,f=0,t=s.children;f<t.length;){if(t[f].style.display!=="none"&&t[f]!==K.ghost&&(i||t[f]!==K.dragged)&&Ut(t[f],n.draggable,s,!1)){if(e===r)return t[f];e++}f++}return null}function pr(s,r){for(var n=s.lastElementChild;n&&(n===K.ghost||w(n,"display")==="none"||r&&!We(n,r));)n=n.previousElementSibling;return n||null}function dt(s,r){var n=0;if(!s||!s.parentNode)return-1;for(;s=s.previousElementSibling;)s.nodeName.toUpperCase()!=="TEMPLATE"&&s!==K.clone&&(!r||We(s,r))&&n++;return n}function Ir(s){var r=0,n=0,i=Bt();if(s)do{var e=re(s),f=e.a,t=e.d;r+=s.scrollLeft*f,n+=s.scrollTop*t}while(s!==i&&(s=s.parentNode));return[r,n]}function mn(s,r){for(var n in s)if(s.hasOwnProperty(n)){for(var i in r)if(r.hasOwnProperty(i)&&r[i]===s[n][i])return Number(n)}return-1}function Qt(s,r){if(!s||!s.getBoundingClientRect)return Bt();var n=s,i=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var e=w(n);if(n.clientWidth<n.scrollWidth&&(e.overflowX=="auto"||e.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(e.overflowY=="auto"||e.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Bt();if(i||r)return n;i=!0}}while(n=n.parentNode);return Bt()}function yn(s,r){if(s&&r)for(var n in r)r.hasOwnProperty(n)&&(s[n]=r[n]);return s}function tr(s,r){return Math.round(s.top)===Math.round(r.top)&&Math.round(s.left)===Math.round(r.left)&&Math.round(s.height)===Math.round(r.height)&&Math.round(s.width)===Math.round(r.width)}var Te;function wr(s,r){return function(){if(!Te){var n=arguments,i=this;n.length===1?s.call(i,n[0]):s.apply(i,n),Te=setTimeout(function(){Te=void 0},r)}}}function Sn(){clearTimeout(Te),Te=void 0}function Ur(s,r,n){s.scrollLeft+=r,s.scrollTop+=n}function gr(s){var r=window.Polymer,n=window.jQuery||window.Zepto;return r&&r.dom?r.dom(s).cloneNode(!0):n?n(s).clone(!0)[0]:s.cloneNode(!0)}function Pr(s,r){w(s,"position","absolute"),w(s,"top",r.top),w(s,"left",r.left),w(s,"width",r.width),w(s,"height",r.height)}function er(s){w(s,"position",""),w(s,"top",""),w(s,"left",""),w(s,"width",""),w(s,"height","")}var Ot="Sortable"+new Date().getTime();function bn(){var s=[],r;return{captureAnimationState:function(){if(s=[],!!this.options.animation){var i=[].slice.call(this.el.children);i.forEach(function(e){if(!(w(e,"display")==="none"||e===K.ghost)){s.push({target:e,rect:at(e)});var f=Kt({},s[s.length-1].rect);if(e.thisAnimationDuration){var t=re(e,!0);t&&(f.top-=t.f,f.left-=t.e)}e.fromRect=f}})}},addAnimationState:function(i){s.push(i)},removeAnimationState:function(i){s.splice(mn(s,{target:i}),1)},animateAll:function(i){var e=this;if(!this.options.animation){clearTimeout(r),typeof i=="function"&&i();return}var f=!1,t=0;s.forEach(function(o){var a=0,l=o.target,c=l.fromRect,u=at(l),d=l.prevFromRect,v=l.prevToRect,h=o.rect,p=re(l,!0);p&&(u.top-=p.f,u.left-=p.e),l.toRect=u,l.thisAnimationDuration&&tr(d,u)&&!tr(c,u)&&(h.top-u.top)/(h.left-u.left)===(c.top-u.top)/(c.left-u.left)&&(a=En(h,d,v,e.options)),tr(u,c)||(l.prevFromRect=c,l.prevToRect=u,a||(a=e.options.animation),e.animate(l,h,u,a)),a&&(f=!0,t=Math.max(t,a),clearTimeout(l.animationResetTimer),l.animationResetTimer=setTimeout(function(){l.animationTime=0,l.prevFromRect=null,l.fromRect=null,l.prevToRect=null,l.thisAnimationDuration=null},a),l.thisAnimationDuration=a)}),clearTimeout(r),f?r=setTimeout(function(){typeof i=="function"&&i()},t):typeof i=="function"&&i(),s=[]},animate:function(i,e,f,t){if(t){w(i,"transition",""),w(i,"transform","");var o=re(this.el),a=o&&o.a,l=o&&o.d,c=(e.left-f.left)/(a||1),u=(e.top-f.top)/(l||1);i.animatingX=!!c,i.animatingY=!!u,w(i,"transform","translate3d("+c+"px,"+u+"px,0)"),this.forRepaintDummy=xn(i),w(i,"transition","transform "+t+"ms"+(this.options.easing?" "+this.options.easing:"")),w(i,"transform","translate3d(0,0,0)"),typeof i.animated=="number"&&clearTimeout(i.animated),i.animated=setTimeout(function(){w(i,"transition",""),w(i,"transform",""),i.animated=!1,i.animatingX=!1,i.animatingY=!1},t)}}}}function xn(s){return s.offsetWidth}function En(s,r,n,i){return Math.sqrt(Math.pow(r.top-s.top,2)+Math.pow(r.left-s.left,2))/Math.sqrt(Math.pow(r.top-n.top,2)+Math.pow(r.left-n.left,2))*i.animation}var oe=[],rr={initializeByDefault:!0},Ae={mount:function(r){for(var n in rr)rr.hasOwnProperty(n)&&!(n in r)&&(r[n]=rr[n]);oe.forEach(function(i){if(i.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),oe.push(r)},pluginEvent:function(r,n,i){var e=this;this.eventCanceled=!1,i.cancel=function(){e.eventCanceled=!0};var f=r+"Global";oe.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][f]&&n[t.pluginName][f](Kt({sortable:n},i)),n.options[t.pluginName]&&n[t.pluginName][r]&&n[t.pluginName][r](Kt({sortable:n},i)))})},initializePlugins:function(r,n,i,e){oe.forEach(function(o){var a=o.pluginName;if(!(!r.options[a]&&!o.initializeByDefault)){var l=new o(r,n,r.options);l.sortable=r,l.options=r.options,r[a]=l,jt(i,l.defaults)}});for(var f in r.options)if(r.options.hasOwnProperty(f)){var t=this.modifyOption(r,f,r.options[f]);typeof t<"u"&&(r.options[f]=t)}},getEventProperties:function(r,n){var i={};return oe.forEach(function(e){typeof e.eventProperties=="function"&&jt(i,e.eventProperties.call(n[e.pluginName],r))}),i},modifyOption:function(r,n,i){var e;return oe.forEach(function(f){r[f.pluginName]&&f.optionListeners&&typeof f.optionListeners[n]=="function"&&(e=f.optionListeners[n].call(r[f.pluginName],i))}),e}};function Se(s){var r=s.sortable,n=s.rootEl,i=s.name,e=s.targetEl,f=s.cloneEl,t=s.toEl,o=s.fromEl,a=s.oldIndex,l=s.newIndex,c=s.oldDraggableIndex,u=s.newDraggableIndex,d=s.originalEvent,v=s.putSortable,h=s.extraEventProperties;if(r=r||n&&n[Ot],!!r){var p,g=r.options,S="on"+i.charAt(0).toUpperCase()+i.substr(1);window.CustomEvent&&!Wt&&!Ce?p=new CustomEvent(i,{bubbles:!0,cancelable:!0}):(p=document.createEvent("Event"),p.initEvent(i,!0,!0)),p.to=t||n,p.from=o||n,p.item=e||n,p.clone=f,p.oldIndex=a,p.newIndex=l,p.oldDraggableIndex=c,p.newDraggableIndex=u,p.originalEvent=d,p.pullMode=v?v.lastPutMode:void 0;var b=Kt(Kt({},h),Ae.getEventProperties(i,r));for(var I in b)p[I]=b[I];n&&n.dispatchEvent(p),g[S]&&g[S].call(r,p)}}var On=["evt"],Dt=function(r,n){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},e=i.evt,f=ln(i,On);Ae.pluginEvent.bind(K)(r,n,Kt({dragEl:A,parentEl:ut,ghostEl:z,rootEl:ot,nextEl:ee,lastDownEl:$e,cloneEl:ct,cloneHidden:Jt,dragStarted:be,putSortable:xt,activeSortable:K.active,originalEvent:e,oldIndex:le,oldDraggableIndex:Ie,newIndex:Nt,newDraggableIndex:zt,hideGhostForTarget:Kr,unhideGhostForTarget:Hr,cloneNowHidden:function(){Jt=!0},cloneNowShown:function(){Jt=!1},dispatchSortableEvent:function(o){It({sortable:n,name:o,originalEvent:e})}},f))};function It(s){Se(Kt({putSortable:xt,cloneEl:ct,targetEl:A,rootEl:ot,oldIndex:le,oldDraggableIndex:Ie,newIndex:Nt,newDraggableIndex:zt},s))}var A,ut,z,ot,ee,$e,ct,Jt,le,Nt,Ie,zt,Me,xt,se=!1,Xe=!1,Ve=[],_t,Lt,nr,or,Dr,Cr,be,ae,Pe,De=!1,je=!1,Be,Et,ar=[],cr=!1,Ye=[],Qe=typeof document<"u",Fe=jr,Ar=Ce||Wt?"cssFloat":"float",Tn=Qe&&!pn&&!jr&&"draggable"in document.createElement("div"),Gr=function(){if(Qe){if(Wt)return!1;var s=document.createElement("x");return s.style.cssText="pointer-events:auto",s.style.pointerEvents==="auto"}}(),$r=function(r,n){var i=w(r),e=parseInt(i.width)-parseInt(i.paddingLeft)-parseInt(i.paddingRight)-parseInt(i.borderLeftWidth)-parseInt(i.borderRightWidth),f=fe(r,0,n),t=fe(r,1,n),o=f&&w(f),a=t&&w(t),l=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+at(f).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+at(t).width;if(i.display==="flex")return i.flexDirection==="column"||i.flexDirection==="column-reverse"?"vertical":"horizontal";if(i.display==="grid")return i.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(f&&o.float&&o.float!=="none"){var u=o.float==="left"?"left":"right";return t&&(a.clear==="both"||a.clear===u)?"vertical":"horizontal"}return f&&(o.display==="block"||o.display==="flex"||o.display==="table"||o.display==="grid"||l>=e&&i[Ar]==="none"||t&&i[Ar]==="none"&&l+c>e)?"vertical":"horizontal"},In=function(r,n,i){var e=i?r.left:r.top,f=i?r.right:r.bottom,t=i?r.width:r.height,o=i?n.left:n.top,a=i?n.right:n.bottom,l=i?n.width:n.height;return e===o||f===a||e+t/2===o+l/2},Pn=function(r,n){var i;return Ve.some(function(e){var f=e[Ot].options.emptyInsertThreshold;if(!(!f||pr(e))){var t=at(e),o=r>=t.left-f&&r<=t.right+f,a=n>=t.top-f&&n<=t.bottom+f;if(o&&a)return i=e}}),i},Br=function(r){function n(f,t){return function(o,a,l,c){var u=o.options.group.name&&a.options.group.name&&o.options.group.name===a.options.group.name;if(f==null&&(t||u))return!0;if(f==null||f===!1)return!1;if(t&&f==="clone")return f;if(typeof f=="function")return n(f(o,a,l,c),t)(o,a,l,c);var d=(t?o:a).options.group.name;return f===!0||typeof f=="string"&&f===d||f.join&&f.indexOf(d)>-1}}var i={},e=r.group;(!e||Ge(e)!="object")&&(e={name:e}),i.name=e.name,i.checkPull=n(e.pull,!0),i.checkPut=n(e.put),i.revertClone=e.revertClone,r.group=i},Kr=function(){!Gr&&z&&w(z,"display","none")},Hr=function(){!Gr&&z&&w(z,"display","")};Qe&&document.addEventListener("click",function(s){if(Xe)return s.preventDefault(),s.stopPropagation&&s.stopPropagation(),s.stopImmediatePropagation&&s.stopImmediatePropagation(),Xe=!1,!1},!0);var te=function(r){if(A){r=r.touches?r.touches[0]:r;var n=Pn(r.clientX,r.clientY);if(n){var i={};for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);i.target=i.rootEl=n,i.preventDefault=void 0,i.stopPropagation=void 0,n[Ot]._onDragOver(i)}}},Dn=function(r){A&&A.parentNode[Ot]._isOutsideThisEl(r.target)};function K(s,r){if(!(s&&s.nodeType&&s.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(s));this.el=s,this.options=r=jt({},r),s[Ot]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(s.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $r(s,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,o){t.setData("Text",o.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:K.supportPointer!==!1&&"PointerEvent"in window&&!Oe,emptyInsertThreshold:5};Ae.initializePlugins(this,s,n);for(var i in n)!(i in r)&&(r[i]=n[i]);Br(r);for(var e in this)e.charAt(0)==="_"&&typeof this[e]=="function"&&(this[e]=this[e].bind(this));this.nativeDraggable=r.forceFallback?!1:Tn,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?Z(s,"pointerdown",this._onTapStart):(Z(s,"mousedown",this._onTapStart),Z(s,"touchstart",this._onTapStart)),this.nativeDraggable&&(Z(s,"dragover",this),Z(s,"dragenter",this)),Ve.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),jt(this,bn())}K.prototype={constructor:K,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(ae=null)},_getDirection:function(r,n){return typeof this.options.direction=="function"?this.options.direction.call(this,r,n,A):this.options.direction},_onTapStart:function(r){if(r.cancelable){var n=this,i=this.el,e=this.options,f=e.preventOnFilter,t=r.type,o=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,a=(o||r).target,l=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||a,c=e.filter;if(Ln(i),!A&&!(/mousedown|pointerdown/.test(t)&&r.button!==0||e.disabled)&&!l.isContentEditable&&!(!this.nativeDraggable&&Oe&&a&&a.tagName.toUpperCase()==="SELECT")&&(a=Ut(a,e.draggable,i,!1),!(a&&a.animated)&&$e!==a)){if(le=dt(a),Ie=dt(a,e.draggable),typeof c=="function"){if(c.call(this,r,a,this)){It({sortable:n,rootEl:l,name:"filter",targetEl:a,toEl:i,fromEl:i}),Dt("filter",n,{evt:r}),f&&r.cancelable&&r.preventDefault();return}}else if(c&&(c=c.split(",").some(function(u){if(u=Ut(l,u.trim(),i,!1),u)return It({sortable:n,rootEl:u,name:"filter",targetEl:a,fromEl:i,toEl:i}),Dt("filter",n,{evt:r}),!0}),c)){f&&r.cancelable&&r.preventDefault();return}e.handle&&!Ut(l,e.handle,i,!1)||this._prepareDragStart(r,o,a)}}},_prepareDragStart:function(r,n,i){var e=this,f=e.el,t=e.options,o=f.ownerDocument,a;if(i&&!A&&i.parentNode===f){var l=at(i);if(ot=f,A=i,ut=A.parentNode,ee=A.nextSibling,$e=i,Me=t.group,K.dragged=A,_t={target:A,clientX:(n||r).clientX,clientY:(n||r).clientY},Dr=_t.clientX-l.left,Cr=_t.clientY-l.top,this._lastX=(n||r).clientX,this._lastY=(n||r).clientY,A.style["will-change"]="all",a=function(){if(Dt("delayEnded",e,{evt:r}),K.eventCanceled){e._onDrop();return}e._disableDelayedDragEvents(),!Er&&e.nativeDraggable&&(A.draggable=!0),e._triggerDragStart(r,n),It({sortable:e,name:"choose",originalEvent:r}),st(A,t.chosenClass,!0)},t.ignore.split(",").forEach(function(c){Lr(A,c.trim(),ir)}),Z(o,"dragover",te),Z(o,"mousemove",te),Z(o,"touchmove",te),Z(o,"mouseup",e._onDrop),Z(o,"touchend",e._onDrop),Z(o,"touchcancel",e._onDrop),Er&&this.nativeDraggable&&(this.options.touchStartThreshold=4,A.draggable=!0),Dt("delayStart",this,{evt:r}),t.delay&&(!t.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ce||Wt))){if(K.eventCanceled){this._onDrop();return}Z(o,"mouseup",e._disableDelayedDrag),Z(o,"touchend",e._disableDelayedDrag),Z(o,"touchcancel",e._disableDelayedDrag),Z(o,"mousemove",e._delayedDragTouchMoveHandler),Z(o,"touchmove",e._delayedDragTouchMoveHandler),t.supportPointer&&Z(o,"pointermove",e._delayedDragTouchMoveHandler),e._dragStartTimer=setTimeout(a,t.delay)}else a()}},_delayedDragTouchMoveHandler:function(r){var n=r.touches?r.touches[0]:r;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(){A&&ir(A),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;Q(r,"mouseup",this._disableDelayedDrag),Q(r,"touchend",this._disableDelayedDrag),Q(r,"touchcancel",this._disableDelayedDrag),Q(r,"mousemove",this._delayedDragTouchMoveHandler),Q(r,"touchmove",this._delayedDragTouchMoveHandler),Q(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,n){n=n||r.pointerType=="touch"&&r,!this.nativeDraggable||n?this.options.supportPointer?Z(document,"pointermove",this._onTouchMove):n?Z(document,"touchmove",this._onTouchMove):Z(document,"mousemove",this._onTouchMove):(Z(A,"dragend",this),Z(ot,"dragstart",this._onDragStart));try{document.selection?Ke(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,n){if(se=!1,ot&&A){Dt("dragStarted",this,{evt:n}),this.nativeDraggable&&Z(document,"dragover",Dn);var i=this.options;!r&&st(A,i.dragClass,!1),st(A,i.ghostClass,!0),K.active=this,r&&this._appendGhost(),It({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Lt){this._lastX=Lt.clientX,this._lastY=Lt.clientY,Kr();for(var r=document.elementFromPoint(Lt.clientX,Lt.clientY),n=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(Lt.clientX,Lt.clientY),r!==n);)n=r;if(A.parentNode[Ot]._isOutsideThisEl(r),n)do{if(n[Ot]){var i=void 0;if(i=n[Ot]._onDragOver({clientX:Lt.clientX,clientY:Lt.clientY,target:r,rootEl:n}),i&&!this.options.dragoverBubble)break}r=n}while(n=n.parentNode);Hr()}},_onTouchMove:function(r){if(_t){var n=this.options,i=n.fallbackTolerance,e=n.fallbackOffset,f=r.touches?r.touches[0]:r,t=z&&re(z,!0),o=z&&t&&t.a,a=z&&t&&t.d,l=Fe&&Et&&Ir(Et),c=(f.clientX-_t.clientX+e.x)/(o||1)+(l?l[0]-ar[0]:0)/(o||1),u=(f.clientY-_t.clientY+e.y)/(a||1)+(l?l[1]-ar[1]:0)/(a||1);if(!K.active&&!se){if(i&&Math.max(Math.abs(f.clientX-this._lastX),Math.abs(f.clientY-this._lastY))<i)return;this._onDragStart(r,!0)}if(z){t?(t.e+=c-(nr||0),t.f+=u-(or||0)):t={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(t.a,",").concat(t.b,",").concat(t.c,",").concat(t.d,",").concat(t.e,",").concat(t.f,")");w(z,"webkitTransform",d),w(z,"mozTransform",d),w(z,"msTransform",d),w(z,"transform",d),nr=c,or=u,Lt=f}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!z){var r=this.options.fallbackOnBody?document.body:ot,n=at(A,!0,Fe,!0,r),i=this.options;if(Fe){for(Et=r;w(Et,"position")==="static"&&w(Et,"transform")==="none"&&Et!==document;)Et=Et.parentNode;Et!==document.body&&Et!==document.documentElement?(Et===document&&(Et=Bt()),n.top+=Et.scrollTop,n.left+=Et.scrollLeft):Et=Bt(),ar=Ir(Et)}z=A.cloneNode(!0),st(z,i.ghostClass,!1),st(z,i.fallbackClass,!0),st(z,i.dragClass,!0),w(z,"transition",""),w(z,"transform",""),w(z,"box-sizing","border-box"),w(z,"margin",0),w(z,"top",n.top),w(z,"left",n.left),w(z,"width",n.width),w(z,"height",n.height),w(z,"opacity","0.8"),w(z,"position",Fe?"absolute":"fixed"),w(z,"zIndex","100000"),w(z,"pointerEvents","none"),K.ghost=z,r.appendChild(z),w(z,"transform-origin",Dr/parseInt(z.style.width)*100+"% "+Cr/parseInt(z.style.height)*100+"%")}},_onDragStart:function(r,n){var i=this,e=r.dataTransfer,f=i.options;if(Dt("dragStart",this,{evt:r}),K.eventCanceled){this._onDrop();return}Dt("setupClone",this),K.eventCanceled||(ct=gr(A),ct.draggable=!1,ct.style["will-change"]="",this._hideClone(),st(ct,this.options.chosenClass,!1),K.clone=ct),i.cloneId=Ke(function(){Dt("clone",i),!K.eventCanceled&&(i.options.removeCloneOnHide||ot.insertBefore(ct,A),i._hideClone(),It({sortable:i,name:"clone"}))}),!n&&st(A,f.dragClass,!0),n?(Xe=!0,i._loopId=setInterval(i._emulateDragOver,50)):(Q(document,"mouseup",i._onDrop),Q(document,"touchend",i._onDrop),Q(document,"touchcancel",i._onDrop),e&&(e.effectAllowed="move",f.setData&&f.setData.call(i,e,A)),Z(document,"drop",i),w(A,"transform","translateZ(0)")),se=!0,i._dragStartId=Ke(i._dragStarted.bind(i,n,r)),Z(document,"selectstart",i),be=!0,Oe&&w(document.body,"user-select","none")},_onDragOver:function(r){var n=this.el,i=r.target,e,f,t,o=this.options,a=o.group,l=K.active,c=Me===a,u=o.sort,d=xt||l,v,h=this,p=!1;if(cr)return;function g(_,rt){Dt(_,h,Kt({evt:r,isOwner:c,axis:v?"vertical":"horizontal",revert:t,dragRect:e,targetRect:f,canSort:u,fromSortable:d,target:i,completed:b,onMove:function(lt,ft){return Le(ot,n,A,e,lt,at(lt),r,ft)},changed:I},rt))}function S(){g("dragOverAnimationCapture"),h.captureAnimationState(),h!==d&&d.captureAnimationState()}function b(_){return g("dragOverCompleted",{insertion:_}),_&&(c?l._hideClone():l._showClone(h),h!==d&&(st(A,xt?xt.options.ghostClass:l.options.ghostClass,!1),st(A,o.ghostClass,!0)),xt!==h&&h!==K.active?xt=h:h===K.active&&xt&&(xt=null),d===h&&(h._ignoreWhileAnimating=i),h.animateAll(function(){g("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(i===A&&!A.animated||i===n&&!i.animated)&&(ae=null),!o.dragoverBubble&&!r.rootEl&&i!==document&&(A.parentNode[Ot]._isOutsideThisEl(r.target),!_&&te(r)),!o.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),p=!0}function I(){Nt=dt(A),zt=dt(A,o.draggable),It({sortable:h,name:"change",toEl:n,newIndex:Nt,newDraggableIndex:zt,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),i=Ut(i,o.draggable,n,!0),g("dragOver"),K.eventCanceled)return p;if(A.contains(r.target)||i.animated&&i.animatingX&&i.animatingY||h._ignoreWhileAnimating===i)return b(!1);if(Xe=!1,l&&!o.disabled&&(c?u||(t=ut!==ot):xt===this||(this.lastPutMode=Me.checkPull(this,l,A,r))&&a.checkPut(this,l,A,r))){if(v=this._getDirection(r,i)==="vertical",e=at(A),g("dragOverValid"),K.eventCanceled)return p;if(t)return ut=ot,S(),this._hideClone(),g("revert"),K.eventCanceled||(ee?ot.insertBefore(A,ee):ot.appendChild(A)),b(!0);var E=pr(n,o.draggable);if(!E||Nn(r,v,this)&&!E.animated){if(E===A)return b(!1);if(E&&n===r.target&&(i=E),i&&(f=at(i)),Le(ot,n,A,e,i,f,r,!!i)!==!1)return S(),n.appendChild(A),ut=n,I(),b(!0)}else if(E&&Rn(r,v,this)){var P=fe(n,0,o,!0);if(P===A)return b(!1);if(i=P,f=at(i),Le(ot,n,A,e,i,f,r,!1)!==!1)return S(),n.insertBefore(A,P),ut=n,I(),b(!0)}else if(i.parentNode===n){f=at(i);var O=0,L,U=A.parentNode!==n,T=!In(A.animated&&A.toRect||e,i.animated&&i.toRect||f,v),N=v?"top":"left",j=Tr(i,"top","top")||Tr(A,"top","top"),V=j?j.scrollTop:void 0;ae!==i&&(L=f[N],De=!1,je=!T&&o.invertSwap||U),O=Mn(r,i,f,v,T?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,je,ae===i);var C;if(O!==0){var R=dt(A);do R-=O,C=ut.children[R];while(C&&(w(C,"display")==="none"||C===z))}if(O===0||C===i)return b(!1);ae=i,Pe=O;var X=i.nextElementSibling,M=!1;M=O===1;var $=Le(ot,n,A,e,i,f,r,M);if($!==!1)return($===1||$===-1)&&(M=$===1),cr=!0,setTimeout(An,30),S(),M&&!X?n.appendChild(A):i.parentNode.insertBefore(A,M?X:i),j&&Ur(j,0,V-j.scrollTop),ut=A.parentNode,L!==void 0&&!je&&(Be=Math.abs(L-at(i)[N])),I(),b(!0)}if(n.contains(A))return b(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Q(document,"mousemove",this._onTouchMove),Q(document,"touchmove",this._onTouchMove),Q(document,"pointermove",this._onTouchMove),Q(document,"dragover",te),Q(document,"mousemove",te),Q(document,"touchmove",te)},_offUpEvents:function(){var r=this.el.ownerDocument;Q(r,"mouseup",this._onDrop),Q(r,"touchend",this._onDrop),Q(r,"pointerup",this._onDrop),Q(r,"touchcancel",this._onDrop),Q(document,"selectstart",this)},_onDrop:function(r){var n=this.el,i=this.options;if(Nt=dt(A),zt=dt(A,i.draggable),Dt("drop",this,{evt:r}),ut=A&&A.parentNode,Nt=dt(A),zt=dt(A,i.draggable),K.eventCanceled){this._nulling();return}se=!1,je=!1,De=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),dr(this.cloneId),dr(this._dragStartId),this.nativeDraggable&&(Q(document,"drop",this),Q(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Oe&&w(document.body,"user-select",""),w(A,"transform",""),r&&(be&&(r.cancelable&&r.preventDefault(),!i.dropBubble&&r.stopPropagation()),z&&z.parentNode&&z.parentNode.removeChild(z),(ot===ut||xt&&xt.lastPutMode!=="clone")&&ct&&ct.parentNode&&ct.parentNode.removeChild(ct),A&&(this.nativeDraggable&&Q(A,"dragend",this),ir(A),A.style["will-change"]="",be&&!se&&st(A,xt?xt.options.ghostClass:this.options.ghostClass,!1),st(A,this.options.chosenClass,!1),It({sortable:this,name:"unchoose",toEl:ut,newIndex:null,newDraggableIndex:null,originalEvent:r}),ot!==ut?(Nt>=0&&(It({rootEl:ut,name:"add",toEl:ut,fromEl:ot,originalEvent:r}),It({sortable:this,name:"remove",toEl:ut,originalEvent:r}),It({rootEl:ut,name:"sort",toEl:ut,fromEl:ot,originalEvent:r}),It({sortable:this,name:"sort",toEl:ut,originalEvent:r})),xt&&xt.save()):Nt!==le&&Nt>=0&&(It({sortable:this,name:"update",toEl:ut,originalEvent:r}),It({sortable:this,name:"sort",toEl:ut,originalEvent:r})),K.active&&((Nt==null||Nt===-1)&&(Nt=le,zt=Ie),It({sortable:this,name:"end",toEl:ut,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){Dt("nulling",this),ot=A=ut=z=ee=ct=$e=Jt=_t=Lt=be=Nt=zt=le=Ie=ae=Pe=xt=Me=K.dragged=K.ghost=K.clone=K.active=null,Ye.forEach(function(r){r.checked=!0}),Ye.length=nr=or=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":A&&(this._onDragOver(r),Cn(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],n,i=this.el.children,e=0,f=i.length,t=this.options;e<f;e++)n=i[e],Ut(n,t.draggable,this.el,!1)&&r.push(n.getAttribute(t.dataIdAttr)||Fn(n));return r},sort:function(r,n){var i={},e=this.el;this.toArray().forEach(function(f,t){var o=e.children[t];Ut(o,this.options.draggable,e,!1)&&(i[f]=o)},this),n&&this.captureAnimationState(),r.forEach(function(f){i[f]&&(e.removeChild(i[f]),e.appendChild(i[f]))}),n&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,n){return Ut(r,n||this.options.draggable,this.el,!1)},option:function(r,n){var i=this.options;if(n===void 0)return i[r];var e=Ae.modifyOption(this,r,n);typeof e<"u"?i[r]=e:i[r]=n,r==="group"&&Br(i)},destroy:function(){Dt("destroy",this);var r=this.el;r[Ot]=null,Q(r,"mousedown",this._onTapStart),Q(r,"touchstart",this._onTapStart),Q(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(Q(r,"dragover",this),Q(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Ve.splice(Ve.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!Jt){if(Dt("hideClone",this),K.eventCanceled)return;w(ct,"display","none"),this.options.removeCloneOnHide&&ct.parentNode&&ct.parentNode.removeChild(ct),Jt=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(Jt){if(Dt("showClone",this),K.eventCanceled)return;A.parentNode==ot&&!this.options.group.revertClone?ot.insertBefore(ct,A):ee?ot.insertBefore(ct,ee):ot.appendChild(ct),this.options.group.revertClone&&this.animate(A,ct),w(ct,"display",""),Jt=!1}}};function Cn(s){s.dataTransfer&&(s.dataTransfer.dropEffect="move"),s.cancelable&&s.preventDefault()}function Le(s,r,n,i,e,f,t,o){var a,l=s[Ot],c=l.options.onMove,u;return window.CustomEvent&&!Wt&&!Ce?a=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(a=document.createEvent("Event"),a.initEvent("move",!0,!0)),a.to=r,a.from=s,a.dragged=n,a.draggedRect=i,a.related=e||r,a.relatedRect=f||at(r),a.willInsertAfter=o,a.originalEvent=t,s.dispatchEvent(a),c&&(u=c.call(l,a,t)),u}function ir(s){s.draggable=!1}function An(){cr=!1}function Rn(s,r,n){var i=at(fe(n.el,0,n.options,!0)),e=10;return r?s.clientX<i.left-e||s.clientY<i.top&&s.clientX<i.right:s.clientY<i.top-e||s.clientY<i.bottom&&s.clientX<i.left}function Nn(s,r,n){var i=at(pr(n.el,n.options.draggable)),e=10;return r?s.clientX>i.right+e||s.clientX<=i.right&&s.clientY>i.bottom&&s.clientX>=i.left:s.clientX>i.right&&s.clientY>i.top||s.clientX<=i.right&&s.clientY>i.bottom+e}function Mn(s,r,n,i,e,f,t,o){var a=i?s.clientY:s.clientX,l=i?n.height:n.width,c=i?n.top:n.left,u=i?n.bottom:n.right,d=!1;if(!t){if(o&&Be<l*e){if(!De&&(Pe===1?a>c+l*f/2:a<u-l*f/2)&&(De=!0),De)d=!0;else if(Pe===1?a<c+Be:a>u-Be)return-Pe}else if(a>c+l*(1-e)/2&&a<u-l*(1-e)/2)return jn(r)}return d=d||t,d&&(a<c+l*f/2||a>u-l*f/2)?a>c+l/2?1:-1:0}function jn(s){return dt(A)<dt(s)?1:-1}function Fn(s){for(var r=s.tagName+s.className+s.src+s.href+s.textContent,n=r.length,i=0;n--;)i+=r.charCodeAt(n);return i.toString(36)}function Ln(s){Ye.length=0;for(var r=s.getElementsByTagName("input"),n=r.length;n--;){var i=r[n];i.checked&&Ye.push(i)}}function Ke(s){return setTimeout(s,0)}function dr(s){return clearTimeout(s)}Qe&&Z(document,"touchmove",function(s){(K.active||se)&&s.cancelable&&s.preventDefault()});K.utils={on:Z,off:Q,css:w,find:Lr,is:function(r,n){return!!Ut(r,n,r,!1)},extend:yn,throttle:wr,closest:Ut,toggleClass:st,clone:gr,index:dt,nextTick:Ke,cancelNextTick:dr,detectDirection:$r,getChild:fe};K.get=function(s){return s[Ot]};K.mount=function(){for(var s=arguments.length,r=new Array(s),n=0;n<s;n++)r[n]=arguments[n];r[0].constructor===Array&&(r=r[0]),r.forEach(function(i){if(!i.prototype||!i.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(i));i.utils&&(K.utils=Kt(Kt({},K.utils),i.utils)),Ae.mount(i)})};K.create=function(s,r){return new K(s,r)};K.version=hn;var pt=[],xe,vr,hr=!1,sr,lr,ze,Ee;function wn(){function s(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return s.prototype={dragStarted:function(n){var i=n.originalEvent;this.sortable.nativeDraggable?Z(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Z(document,"pointermove",this._handleFallbackAutoScroll):i.touches?Z(document,"touchmove",this._handleFallbackAutoScroll):Z(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var i=n.originalEvent;!this.options.dragOverBubble&&!i.rootEl&&this._handleAutoScroll(i)},drop:function(){this.sortable.nativeDraggable?Q(document,"dragover",this._handleAutoScroll):(Q(document,"pointermove",this._handleFallbackAutoScroll),Q(document,"touchmove",this._handleFallbackAutoScroll),Q(document,"mousemove",this._handleFallbackAutoScroll)),Rr(),He(),Sn()},nulling:function(){ze=vr=xe=hr=Ee=sr=lr=null,pt.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,i){var e=this,f=(n.touches?n.touches[0]:n).clientX,t=(n.touches?n.touches[0]:n).clientY,o=document.elementFromPoint(f,t);if(ze=n,i||this.options.forceAutoScrollFallback||Ce||Wt||Oe){fr(n,this.options,o,i);var a=Qt(o,!0);hr&&(!Ee||f!==sr||t!==lr)&&(Ee&&Rr(),Ee=setInterval(function(){var l=Qt(document.elementFromPoint(f,t),!0);l!==a&&(a=l,He()),fr(n,e.options,l,i)},10),sr=f,lr=t)}else{if(!this.options.bubbleScroll||Qt(o,!0)===Bt()){He();return}fr(n,this.options,Qt(o,!1),!1)}}},jt(s,{pluginName:"scroll",initializeByDefault:!0})}function He(){pt.forEach(function(s){clearInterval(s.pid)}),pt=[]}function Rr(){clearInterval(Ee)}var fr=wr(function(s,r,n,i){if(r.scroll){var e=(s.touches?s.touches[0]:s).clientX,f=(s.touches?s.touches[0]:s).clientY,t=r.scrollSensitivity,o=r.scrollSpeed,a=Bt(),l=!1,c;vr!==n&&(vr=n,He(),xe=r.scroll,c=r.scrollFn,xe===!0&&(xe=Qt(n,!0)));var u=0,d=xe;do{var v=d,h=at(v),p=h.top,g=h.bottom,S=h.left,b=h.right,I=h.width,E=h.height,P=void 0,O=void 0,L=v.scrollWidth,U=v.scrollHeight,T=w(v),N=v.scrollLeft,j=v.scrollTop;v===a?(P=I<L&&(T.overflowX==="auto"||T.overflowX==="scroll"||T.overflowX==="visible"),O=E<U&&(T.overflowY==="auto"||T.overflowY==="scroll"||T.overflowY==="visible")):(P=I<L&&(T.overflowX==="auto"||T.overflowX==="scroll"),O=E<U&&(T.overflowY==="auto"||T.overflowY==="scroll"));var V=P&&(Math.abs(b-e)<=t&&N+I<L)-(Math.abs(S-e)<=t&&!!N),C=O&&(Math.abs(g-f)<=t&&j+E<U)-(Math.abs(p-f)<=t&&!!j);if(!pt[u])for(var R=0;R<=u;R++)pt[R]||(pt[R]={});(pt[u].vx!=V||pt[u].vy!=C||pt[u].el!==v)&&(pt[u].el=v,pt[u].vx=V,pt[u].vy=C,clearInterval(pt[u].pid),(V!=0||C!=0)&&(l=!0,pt[u].pid=setInterval((function(){i&&this.layer===0&&K.active._onTouchMove(ze);var X=pt[this.layer].vy?pt[this.layer].vy*o:0,M=pt[this.layer].vx?pt[this.layer].vx*o:0;typeof c=="function"&&c.call(K.dragged.parentNode[Ot],M,X,s,ze,pt[this.layer].el)!=="continue"||Ur(pt[this.layer].el,M,X)}).bind({layer:u}),24))),u++}while(r.bubbleScroll&&d!==a&&(d=Qt(d,!1)));hr=l}},30),Wr=function(r){var n=r.originalEvent,i=r.putSortable,e=r.dragEl,f=r.activeSortable,t=r.dispatchSortableEvent,o=r.hideGhostForTarget,a=r.unhideGhostForTarget;if(n){var l=i||f;o();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,u=document.elementFromPoint(c.clientX,c.clientY);a(),l&&!l.el.contains(u)&&(t("spill"),this.onSpill({dragEl:e,putSortable:i}))}};function mr(){}mr.prototype={startIndex:null,dragStart:function(r){var n=r.oldDraggableIndex;this.startIndex=n},onSpill:function(r){var n=r.dragEl,i=r.putSortable;this.sortable.captureAnimationState(),i&&i.captureAnimationState();var e=fe(this.sortable.el,this.startIndex,this.options);e?this.sortable.el.insertBefore(n,e):this.sortable.el.appendChild(n),this.sortable.animateAll(),i&&i.animateAll()},drop:Wr};jt(mr,{pluginName:"revertOnSpill"});function yr(){}yr.prototype={onSpill:function(r){var n=r.dragEl,i=r.putSortable,e=i||this.sortable;e.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),e.animateAll()},drop:Wr};jt(yr,{pluginName:"removeOnSpill"});var Mt;function Un(){function s(){this.defaults={swapClass:"sortable-swap-highlight"}}return s.prototype={dragStart:function(n){var i=n.dragEl;Mt=i},dragOverValid:function(n){var i=n.completed,e=n.target,f=n.onMove,t=n.activeSortable,o=n.changed,a=n.cancel;if(t.options.swap){var l=this.sortable.el,c=this.options;if(e&&e!==l){var u=Mt;f(e)!==!1?(st(e,c.swapClass,!0),Mt=e):Mt=null,u&&u!==Mt&&st(u,c.swapClass,!1)}o(),i(!0),a()}},drop:function(n){var i=n.activeSortable,e=n.putSortable,f=n.dragEl,t=e||this.sortable,o=this.options;Mt&&st(Mt,o.swapClass,!1),Mt&&(o.swap||e&&e.options.swap)&&f!==Mt&&(t.captureAnimationState(),t!==i&&i.captureAnimationState(),Gn(f,Mt),t.animateAll(),t!==i&&i.animateAll())},nulling:function(){Mt=null}},jt(s,{pluginName:"swap",eventProperties:function(){return{swapItem:Mt}}})}function Gn(s,r){var n=s.parentNode,i=r.parentNode,e,f;!n||!i||n.isEqualNode(r)||i.isEqualNode(s)||(e=dt(s),f=dt(r),n.isEqualNode(i)&&e<f&&f++,n.insertBefore(r,n.children[e]),i.insertBefore(s,i.children[f]))}var Y=[],Rt=[],ge,wt,me=!1,Ct=!1,ie=!1,et,ye,we;function $n(){function s(r){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));r.options.supportPointer?Z(document,"pointerup",this._deselectMultiDrag):(Z(document,"mouseup",this._deselectMultiDrag),Z(document,"touchend",this._deselectMultiDrag)),Z(document,"keydown",this._checkKeyDown),Z(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,f){var t="";Y.length&&wt===r?Y.forEach(function(o,a){t+=(a?", ":"")+o.textContent}):t=f.textContent,e.setData("Text",t)}}}return s.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var i=n.dragEl;et=i},delayEnded:function(){this.isMultiDrag=~Y.indexOf(et)},setupClone:function(n){var i=n.sortable,e=n.cancel;if(this.isMultiDrag){for(var f=0;f<Y.length;f++)Rt.push(gr(Y[f])),Rt[f].sortableIndex=Y[f].sortableIndex,Rt[f].draggable=!1,Rt[f].style["will-change"]="",st(Rt[f],this.options.selectedClass,!1),Y[f]===et&&st(Rt[f],this.options.chosenClass,!1);i._hideClone(),e()}},clone:function(n){var i=n.sortable,e=n.rootEl,f=n.dispatchSortableEvent,t=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Y.length&&wt===i&&(Nr(!0,e),f("clone"),t()))},showClone:function(n){var i=n.cloneNowShown,e=n.rootEl,f=n.cancel;this.isMultiDrag&&(Nr(!1,e),Rt.forEach(function(t){w(t,"display","")}),i(),we=!1,f())},hideClone:function(n){var i=this;n.sortable;var e=n.cloneNowHidden,f=n.cancel;this.isMultiDrag&&(Rt.forEach(function(t){w(t,"display","none"),i.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),e(),we=!0,f())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&wt&&wt.multiDrag._deselectMultiDrag(),Y.forEach(function(i){i.sortableIndex=dt(i)}),Y=Y.sort(function(i,e){return i.sortableIndex-e.sortableIndex}),ie=!0},dragStarted:function(n){var i=this,e=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(e.captureAnimationState(),this.options.animation)){Y.forEach(function(t){t!==et&&w(t,"position","absolute")});var f=at(et,!1,!0,!0);Y.forEach(function(t){t!==et&&Pr(t,f)}),Ct=!0,me=!0}e.animateAll(function(){Ct=!1,me=!1,i.options.animation&&Y.forEach(function(t){er(t)}),i.options.sort&&Ue()})}},dragOver:function(n){var i=n.target,e=n.completed,f=n.cancel;Ct&&~Y.indexOf(i)&&(e(!1),f())},revert:function(n){var i=n.fromSortable,e=n.rootEl,f=n.sortable,t=n.dragRect;Y.length>1&&(Y.forEach(function(o){f.addAnimationState({target:o,rect:Ct?at(o):t}),er(o),o.fromRect=t,i.removeAnimationState(o)}),Ct=!1,Bn(!this.options.removeCloneOnHide,e))},dragOverCompleted:function(n){var i=n.sortable,e=n.isOwner,f=n.insertion,t=n.activeSortable,o=n.parentEl,a=n.putSortable,l=this.options;if(f){if(e&&t._hideClone(),me=!1,l.animation&&Y.length>1&&(Ct||!e&&!t.options.sort&&!a)){var c=at(et,!1,!0,!0);Y.forEach(function(d){d!==et&&(Pr(d,c),o.appendChild(d))}),Ct=!0}if(!e)if(Ct||Ue(),Y.length>1){var u=we;t._showClone(i),t.options.animation&&!we&&u&&Rt.forEach(function(d){t.addAnimationState({target:d,rect:ye}),d.fromRect=ye,d.thisAnimationDuration=null})}else t._showClone(i)}},dragOverAnimationCapture:function(n){var i=n.dragRect,e=n.isOwner,f=n.activeSortable;if(Y.forEach(function(o){o.thisAnimationDuration=null}),f.options.animation&&!e&&f.multiDrag.isMultiDrag){ye=jt({},i);var t=re(et,!0);ye.top-=t.f,ye.left-=t.e}},dragOverAnimationComplete:function(){Ct&&(Ct=!1,Ue())},drop:function(n){var i=n.originalEvent,e=n.rootEl,f=n.parentEl,t=n.sortable,o=n.dispatchSortableEvent,a=n.oldIndex,l=n.putSortable,c=l||this.sortable;if(i){var u=this.options,d=f.children;if(!ie)if(u.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),st(et,u.selectedClass,!~Y.indexOf(et)),~Y.indexOf(et))Y.splice(Y.indexOf(et),1),ge=null,Se({sortable:t,rootEl:e,name:"deselect",targetEl:et});else{if(Y.push(et),Se({sortable:t,rootEl:e,name:"select",targetEl:et}),i.shiftKey&&ge&&t.el.contains(ge)){var v=dt(ge),h=dt(et);if(~v&&~h&&v!==h){var p,g;for(h>v?(g=v,p=h):(g=h,p=v+1);g<p;g++)~Y.indexOf(d[g])||(st(d[g],u.selectedClass,!0),Y.push(d[g]),Se({sortable:t,rootEl:e,name:"select",targetEl:d[g]}))}}else ge=et;wt=c}if(ie&&this.isMultiDrag){if(Ct=!1,(f[Ot].options.sort||f!==e)&&Y.length>1){var S=at(et),b=dt(et,":not(."+this.options.selectedClass+")");if(!me&&u.animation&&(et.thisAnimationDuration=null),c.captureAnimationState(),!me&&(u.animation&&(et.fromRect=S,Y.forEach(function(E){if(E.thisAnimationDuration=null,E!==et){var P=Ct?at(E):S;E.fromRect=P,c.addAnimationState({target:E,rect:P})}})),Ue(),Y.forEach(function(E){d[b]?f.insertBefore(E,d[b]):f.appendChild(E),b++}),a===dt(et))){var I=!1;Y.forEach(function(E){if(E.sortableIndex!==dt(E)){I=!0;return}}),I&&o("update")}Y.forEach(function(E){er(E)}),c.animateAll()}wt=c}(e===f||l&&l.lastPutMode!=="clone")&&Rt.forEach(function(E){E.parentNode&&E.parentNode.removeChild(E)})}},nullingGlobal:function(){this.isMultiDrag=ie=!1,Rt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Q(document,"pointerup",this._deselectMultiDrag),Q(document,"mouseup",this._deselectMultiDrag),Q(document,"touchend",this._deselectMultiDrag),Q(document,"keydown",this._checkKeyDown),Q(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof ie<"u"&&ie)&&wt===this.sortable&&!(n&&Ut(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;Y.length;){var i=Y[0];st(i,this.options.selectedClass,!1),Y.shift(),Se({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:i})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},jt(s,{pluginName:"multiDrag",utils:{select:function(n){var i=n.parentNode[Ot];!i||!i.options.multiDrag||~Y.indexOf(n)||(wt&&wt!==i&&(wt.multiDrag._deselectMultiDrag(),wt=i),st(n,i.options.selectedClass,!0),Y.push(n))},deselect:function(n){var i=n.parentNode[Ot],e=Y.indexOf(n);!i||!i.options.multiDrag||!~e||(st(n,i.options.selectedClass,!1),Y.splice(e,1))}},eventProperties:function(){var n=this,i=[],e=[];return Y.forEach(function(f){i.push({multiDragElement:f,index:f.sortableIndex});var t;Ct&&f!==et?t=-1:Ct?t=dt(f,":not(."+n.options.selectedClass+")"):t=dt(f),e.push({multiDragElement:f,index:t})}),{items:fn(Y),clones:[].concat(Rt),oldIndicies:i,newIndicies:e}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function Bn(s,r){Y.forEach(function(n,i){var e=r.children[n.sortableIndex+(s?Number(i):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function Nr(s,r){Rt.forEach(function(n,i){var e=r.children[n.sortableIndex+(s?Number(i):0)];e?r.insertBefore(n,e):r.appendChild(n)})}function Ue(){Y.forEach(function(s){s!==et&&s.parentNode&&s.parentNode.removeChild(s)})}K.mount(new wn);K.mount(yr,mr);const Kn=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:$n,Sortable:K,Swap:Un,default:K},Symbol.toStringTag,{value:"Module"})),Hn=Vr(Kn);(function(s,r){(function(i,e){s.exports=e(zr,Hn)})(typeof self<"u"?self:Jr,function(n,i){return function(e){var f={};function t(o){if(f[o])return f[o].exports;var a=f[o]={i:o,l:!1,exports:{}};return e[o].call(a.exports,a,a.exports,t),a.l=!0,a.exports}return t.m=e,t.c=f,t.d=function(o,a,l){t.o(o,a)||Object.defineProperty(o,a,{enumerable:!0,get:l})},t.r=function(o){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})},t.t=function(o,a){if(a&1&&(o=t(o)),a&8||a&4&&typeof o=="object"&&o&&o.__esModule)return o;var l=Object.create(null);if(t.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:o}),a&2&&typeof o!="string")for(var c in o)t.d(l,c,(function(u){return o[u]}).bind(null,c));return l},t.n=function(o){var a=o&&o.__esModule?function(){return o.default}:function(){return o};return t.d(a,"a",a),a},t.o=function(o,a){return Object.prototype.hasOwnProperty.call(o,a)},t.p="",t(t.s="fb15")}({"00ee":function(e,f,t){var o=t("b622"),a=o("toStringTag"),l={};l[a]="z",e.exports=String(l)==="[object z]"},"0366":function(e,f,t){var o=t("1c0b");e.exports=function(a,l,c){if(o(a),l===void 0)return a;switch(c){case 0:return function(){return a.call(l)};case 1:return function(u){return a.call(l,u)};case 2:return function(u,d){return a.call(l,u,d)};case 3:return function(u,d,v){return a.call(l,u,d,v)}}return function(){return a.apply(l,arguments)}}},"057f":function(e,f,t){var o=t("fc6a"),a=t("241c").f,l={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(d){try{return a(d)}catch{return c.slice()}};e.exports.f=function(v){return c&&l.call(v)=="[object Window]"?u(v):a(o(v))}},"06cf":function(e,f,t){var o=t("83ab"),a=t("d1e7"),l=t("5c6c"),c=t("fc6a"),u=t("c04e"),d=t("5135"),v=t("0cfb"),h=Object.getOwnPropertyDescriptor;f.f=o?h:function(g,S){if(g=c(g),S=u(S,!0),v)try{return h(g,S)}catch{}if(d(g,S))return l(!a.f.call(g,S),g[S])}},"0cfb":function(e,f,t){var o=t("83ab"),a=t("d039"),l=t("cc12");e.exports=!o&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(e,f,t){var o=t("23e7"),a=t("d58f").left,l=t("a640"),c=t("ae40"),u=l("reduce"),d=c("reduce",{1:0});o({target:"Array",proto:!0,forced:!u||!d},{reduce:function(h){return a(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(e,f,t){var o=t("c6b6"),a=t("9263");e.exports=function(l,c){var u=l.exec;if(typeof u=="function"){var d=u.call(l,c);if(typeof d!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return d}if(o(l)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return a.call(l,c)}},"159b":function(e,f,t){var o=t("da84"),a=t("fdbc"),l=t("17c2"),c=t("9112");for(var u in a){var d=o[u],v=d&&d.prototype;if(v&&v.forEach!==l)try{c(v,"forEach",l)}catch{v.forEach=l}}},"17c2":function(e,f,t){var o=t("b727").forEach,a=t("a640"),l=t("ae40"),c=a("forEach"),u=l("forEach");e.exports=!c||!u?function(v){return o(this,v,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(e,f,t){var o=t("d066");e.exports=o("document","documentElement")},"1c0b":function(e,f){e.exports=function(t){if(typeof t!="function")throw TypeError(String(t)+" is not a function");return t}},"1c7e":function(e,f,t){var o=t("b622"),a=o("iterator"),l=!1;try{var c=0,u={next:function(){return{done:!!c++}},return:function(){l=!0}};u[a]=function(){return this},Array.from(u,function(){throw 2})}catch{}e.exports=function(d,v){if(!v&&!l)return!1;var h=!1;try{var p={};p[a]=function(){return{next:function(){return{done:h=!0}}}},d(p)}catch{}return h}},"1d80":function(e,f){e.exports=function(t){if(t==null)throw TypeError("Can't call method on "+t);return t}},"1dde":function(e,f,t){var o=t("d039"),a=t("b622"),l=t("2d00"),c=a("species");e.exports=function(u){return l>=51||!o(function(){var d=[],v=d.constructor={};return v[c]=function(){return{foo:1}},d[u](Boolean).foo!==1})}},"23cb":function(e,f,t){var o=t("a691"),a=Math.max,l=Math.min;e.exports=function(c,u){var d=o(c);return d<0?a(d+u,0):l(d,u)}},"23e7":function(e,f,t){var o=t("da84"),a=t("06cf").f,l=t("9112"),c=t("6eeb"),u=t("ce4e"),d=t("e893"),v=t("94ca");e.exports=function(h,p){var g=h.target,S=h.global,b=h.stat,I,E,P,O,L,U;if(S?E=o:b?E=o[g]||u(g,{}):E=(o[g]||{}).prototype,E)for(P in p){if(L=p[P],h.noTargetGet?(U=a(E,P),O=U&&U.value):O=E[P],I=v(S?P:g+(b?".":"#")+P,h.forced),!I&&O!==void 0){if(typeof L==typeof O)continue;d(L,O)}(h.sham||O&&O.sham)&&l(L,"sham",!0),c(E,P,L,h)}}},"241c":function(e,f,t){var o=t("ca84"),a=t("7839"),l=a.concat("length","prototype");f.f=Object.getOwnPropertyNames||function(u){return o(u,l)}},"25f0":function(e,f,t){var o=t("6eeb"),a=t("825a"),l=t("d039"),c=t("ad6d"),u="toString",d=RegExp.prototype,v=d[u],h=l(function(){return v.call({source:"a",flags:"b"})!="/a/b"}),p=v.name!=u;(h||p)&&o(RegExp.prototype,u,function(){var S=a(this),b=String(S.source),I=S.flags,E=String(I===void 0&&S instanceof RegExp&&!("flags"in d)?c.call(S):I);return"/"+b+"/"+E},{unsafe:!0})},"2ca0":function(e,f,t){var o=t("23e7"),a=t("06cf").f,l=t("50c4"),c=t("5a34"),u=t("1d80"),d=t("ab13"),v=t("c430"),h="".startsWith,p=Math.min,g=d("startsWith"),S=!v&&!g&&!!function(){var b=a(String.prototype,"startsWith");return b&&!b.writable}();o({target:"String",proto:!0,forced:!S&&!g},{startsWith:function(I){var E=String(u(this));c(I);var P=l(p(arguments.length>1?arguments[1]:void 0,E.length)),O=String(I);return h?h.call(E,O,P):E.slice(P,P+O.length)===O}})},"2d00":function(e,f,t){var o=t("da84"),a=t("342f"),l=o.process,c=l&&l.versions,u=c&&c.v8,d,v;u?(d=u.split("."),v=d[0]+d[1]):a&&(d=a.match(/Edge\/(\d+)/),(!d||d[1]>=74)&&(d=a.match(/Chrome\/(\d+)/),d&&(v=d[1]))),e.exports=v&&+v},"342f":function(e,f,t){var o=t("d066");e.exports=o("navigator","userAgent")||""},"35a1":function(e,f,t){var o=t("f5df"),a=t("3f8c"),l=t("b622"),c=l("iterator");e.exports=function(u){if(u!=null)return u[c]||u["@@iterator"]||a[o(u)]}},"37e8":function(e,f,t){var o=t("83ab"),a=t("9bf2"),l=t("825a"),c=t("df75");e.exports=o?Object.defineProperties:function(d,v){l(d);for(var h=c(v),p=h.length,g=0,S;p>g;)a.f(d,S=h[g++],v[S]);return d}},"3bbe":function(e,f,t){var o=t("861d");e.exports=function(a){if(!o(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(e,f,t){var o=t("6547").charAt,a=t("69f3"),l=t("7dd0"),c="String Iterator",u=a.set,d=a.getterFor(c);l(String,"String",function(v){u(this,{type:c,string:String(v),index:0})},function(){var h=d(this),p=h.string,g=h.index,S;return g>=p.length?{value:void 0,done:!0}:(S=o(p,g),h.index+=S.length,{value:S,done:!1})})},"3f8c":function(e,f){e.exports={}},4160:function(e,f,t){var o=t("23e7"),a=t("17c2");o({target:"Array",proto:!0,forced:[].forEach!=a},{forEach:a})},"428f":function(e,f,t){var o=t("da84");e.exports=o},"44ad":function(e,f,t){var o=t("d039"),a=t("c6b6"),l="".split;e.exports=o(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return a(c)=="String"?l.call(c,""):Object(c)}:Object},"44d2":function(e,f,t){var o=t("b622"),a=t("7c73"),l=t("9bf2"),c=o("unscopables"),u=Array.prototype;u[c]==null&&l.f(u,c,{configurable:!0,value:a(null)}),e.exports=function(d){u[c][d]=!0}},"44e7":function(e,f,t){var o=t("861d"),a=t("c6b6"),l=t("b622"),c=l("match");e.exports=function(u){var d;return o(u)&&((d=u[c])!==void 0?!!d:a(u)=="RegExp")}},4930:function(e,f,t){var o=t("d039");e.exports=!!Object.getOwnPropertySymbols&&!o(function(){return!String(Symbol())})},"4d64":function(e,f,t){var o=t("fc6a"),a=t("50c4"),l=t("23cb"),c=function(u){return function(d,v,h){var p=o(d),g=a(p.length),S=l(h,g),b;if(u&&v!=v){for(;g>S;)if(b=p[S++],b!=b)return!0}else for(;g>S;S++)if((u||S in p)&&p[S]===v)return u||S||0;return!u&&-1}};e.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(e,f,t){var o=t("23e7"),a=t("b727").filter,l=t("1dde"),c=t("ae40"),u=l("filter"),d=c("filter");o({target:"Array",proto:!0,forced:!u||!d},{filter:function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(e,f,t){var o=t("0366"),a=t("7b0b"),l=t("9bdd"),c=t("e95a"),u=t("50c4"),d=t("8418"),v=t("35a1");e.exports=function(p){var g=a(p),S=typeof this=="function"?this:Array,b=arguments.length,I=b>1?arguments[1]:void 0,E=I!==void 0,P=v(g),O=0,L,U,T,N,j,V;if(E&&(I=o(I,b>2?arguments[2]:void 0,2)),P!=null&&!(S==Array&&c(P)))for(N=P.call(g),j=N.next,U=new S;!(T=j.call(N)).done;O++)V=E?l(N,I,[T.value,O],!0):T.value,d(U,O,V);else for(L=u(g.length),U=new S(L);L>O;O++)V=E?I(g[O],O):g[O],d(U,O,V);return U.length=O,U}},"4fad":function(e,f,t){var o=t("23e7"),a=t("6f53").entries;o({target:"Object",stat:!0},{entries:function(c){return a(c)}})},"50c4":function(e,f,t){var o=t("a691"),a=Math.min;e.exports=function(l){return l>0?a(o(l),9007199254740991):0}},5135:function(e,f){var t={}.hasOwnProperty;e.exports=function(o,a){return t.call(o,a)}},5319:function(e,f,t){var o=t("d784"),a=t("825a"),l=t("7b0b"),c=t("50c4"),u=t("a691"),d=t("1d80"),v=t("8aa5"),h=t("14c3"),p=Math.max,g=Math.min,S=Math.floor,b=/\$([$&'`]|\d\d?|<[^>]*>)/g,I=/\$([$&'`]|\d\d?)/g,E=function(P){return P===void 0?P:String(P)};o("replace",2,function(P,O,L,U){var T=U.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=U.REPLACE_KEEPS_$0,j=T?"$":"$0";return[function(R,X){var M=d(this),$=R==null?void 0:R[P];return $!==void 0?$.call(R,M,X):O.call(String(M),R,X)},function(C,R){if(!T&&N||typeof R=="string"&&R.indexOf(j)===-1){var X=L(O,C,this,R);if(X.done)return X.value}var M=a(C),$=String(this),_=typeof R=="function";_||(R=String(R));var rt=M.global;if(rt){var yt=M.unicode;M.lastIndex=0}for(var lt=[];;){var ft=h(M,$);if(ft===null||(lt.push(ft),!rt))break;var gt=String(ft[0]);gt===""&&(M.lastIndex=v($,c(M.lastIndex),yt))}for(var mt="",ht=0,nt=0;nt<lt.length;nt++){ft=lt[nt];for(var it=String(ft[0]),At=p(g(u(ft.index),$.length),0),Tt=[],Xt=1;Xt<ft.length;Xt++)Tt.push(E(ft[Xt]));var Zt=ft.groups;if(_){var Vt=[it].concat(Tt,At,$);Zt!==void 0&&Vt.push(Zt);var St=String(R.apply(void 0,Vt))}else St=V(it,$,At,Tt,Zt,R);At>=ht&&(mt+=$.slice(ht,At)+St,ht=At+it.length)}return mt+$.slice(ht)}];function V(C,R,X,M,$,_){var rt=X+C.length,yt=M.length,lt=I;return $!==void 0&&($=l($),lt=b),O.call(_,lt,function(ft,gt){var mt;switch(gt.charAt(0)){case"$":return"$";case"&":return C;case"`":return R.slice(0,X);case"'":return R.slice(rt);case"<":mt=$[gt.slice(1,-1)];break;default:var ht=+gt;if(ht===0)return ft;if(ht>yt){var nt=S(ht/10);return nt===0?ft:nt<=yt?M[nt-1]===void 0?gt.charAt(1):M[nt-1]+gt.charAt(1):ft}mt=M[ht-1]}return mt===void 0?"":mt})}})},5692:function(e,f,t){var o=t("c430"),a=t("c6cd");(e.exports=function(l,c){return a[l]||(a[l]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:o?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(e,f,t){var o=t("d066"),a=t("241c"),l=t("7418"),c=t("825a");e.exports=o("Reflect","ownKeys")||function(d){var v=a.f(c(d)),h=l.f;return h?v.concat(h(d)):v}},"5a34":function(e,f,t){var o=t("44e7");e.exports=function(a){if(o(a))throw TypeError("The method doesn't accept regular expressions");return a}},"5c6c":function(e,f){e.exports=function(t,o){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:o}}},"5db7":function(e,f,t){var o=t("23e7"),a=t("a2bf"),l=t("7b0b"),c=t("50c4"),u=t("1c0b"),d=t("65f0");o({target:"Array",proto:!0},{flatMap:function(h){var p=l(this),g=c(p.length),S;return u(h),S=d(p,0),S.length=a(S,p,p,g,0,1,h,arguments.length>1?arguments[1]:void 0),S}})},6547:function(e,f,t){var o=t("a691"),a=t("1d80"),l=function(c){return function(u,d){var v=String(a(u)),h=o(d),p=v.length,g,S;return h<0||h>=p?c?"":void 0:(g=v.charCodeAt(h),g<55296||g>56319||h+1===p||(S=v.charCodeAt(h+1))<56320||S>57343?c?v.charAt(h):g:c?v.slice(h,h+2):(g-55296<<10)+(S-56320)+65536)}};e.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(e,f,t){var o=t("861d"),a=t("e8b5"),l=t("b622"),c=l("species");e.exports=function(u,d){var v;return a(u)&&(v=u.constructor,typeof v=="function"&&(v===Array||a(v.prototype))?v=void 0:o(v)&&(v=v[c],v===null&&(v=void 0))),new(v===void 0?Array:v)(d===0?0:d)}},"69f3":function(e,f,t){var o=t("7f9a"),a=t("da84"),l=t("861d"),c=t("9112"),u=t("5135"),d=t("f772"),v=t("d012"),h=a.WeakMap,p,g,S,b=function(T){return S(T)?g(T):p(T,{})},I=function(T){return function(N){var j;if(!l(N)||(j=g(N)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return j}};if(o){var E=new h,P=E.get,O=E.has,L=E.set;p=function(T,N){return L.call(E,T,N),N},g=function(T){return P.call(E,T)||{}},S=function(T){return O.call(E,T)}}else{var U=d("state");v[U]=!0,p=function(T,N){return c(T,U,N),N},g=function(T){return u(T,U)?T[U]:{}},S=function(T){return u(T,U)}}e.exports={set:p,get:g,has:S,enforce:b,getterFor:I}},"6eeb":function(e,f,t){var o=t("da84"),a=t("9112"),l=t("5135"),c=t("ce4e"),u=t("8925"),d=t("69f3"),v=d.get,h=d.enforce,p=String(String).split("String");(e.exports=function(g,S,b,I){var E=I?!!I.unsafe:!1,P=I?!!I.enumerable:!1,O=I?!!I.noTargetGet:!1;if(typeof b=="function"&&(typeof S=="string"&&!l(b,"name")&&a(b,"name",S),h(b).source=p.join(typeof S=="string"?S:"")),g===o){P?g[S]=b:c(S,b);return}else E?!O&&g[S]&&(P=!0):delete g[S];P?g[S]=b:a(g,S,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&v(this).source||u(this)})},"6f53":function(e,f,t){var o=t("83ab"),a=t("df75"),l=t("fc6a"),c=t("d1e7").f,u=function(d){return function(v){for(var h=l(v),p=a(h),g=p.length,S=0,b=[],I;g>S;)I=p[S++],(!o||c.call(h,I))&&b.push(d?[I,h[I]]:h[I]);return b}};e.exports={entries:u(!0),values:u(!1)}},"73d9":function(e,f,t){var o=t("44d2");o("flatMap")},7418:function(e,f){f.f=Object.getOwnPropertySymbols},"746f":function(e,f,t){var o=t("428f"),a=t("5135"),l=t("e538"),c=t("9bf2").f;e.exports=function(u){var d=o.Symbol||(o.Symbol={});a(d,u)||c(d,u,{value:l.f(u)})}},7839:function(e,f){e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(e,f,t){var o=t("1d80");e.exports=function(a){return Object(o(a))}},"7c73":function(e,f,t){var o=t("825a"),a=t("37e8"),l=t("7839"),c=t("d012"),u=t("1be4"),d=t("cc12"),v=t("f772"),h=">",p="<",g="prototype",S="script",b=v("IE_PROTO"),I=function(){},E=function(T){return p+S+h+T+p+"/"+S+h},P=function(T){T.write(E("")),T.close();var N=T.parentWindow.Object;return T=null,N},O=function(){var T=d("iframe"),N="java"+S+":",j;return T.style.display="none",u.appendChild(T),T.src=String(N),j=T.contentWindow.document,j.open(),j.write(E("document.F=Object")),j.close(),j.F},L,U=function(){try{L=document.domain&&new ActiveXObject("htmlfile")}catch{}U=L?P(L):O();for(var T=l.length;T--;)delete U[g][l[T]];return U()};c[b]=!0,e.exports=Object.create||function(N,j){var V;return N!==null?(I[g]=o(N),V=new I,I[g]=null,V[b]=N):V=U(),j===void 0?V:a(V,j)}},"7dd0":function(e,f,t){var o=t("23e7"),a=t("9ed3"),l=t("e163"),c=t("d2bb"),u=t("d44e"),d=t("9112"),v=t("6eeb"),h=t("b622"),p=t("c430"),g=t("3f8c"),S=t("ae93"),b=S.IteratorPrototype,I=S.BUGGY_SAFARI_ITERATORS,E=h("iterator"),P="keys",O="values",L="entries",U=function(){return this};e.exports=function(T,N,j,V,C,R,X){a(j,N,V);var M=function(nt){if(nt===C&&lt)return lt;if(!I&&nt in rt)return rt[nt];switch(nt){case P:return function(){return new j(this,nt)};case O:return function(){return new j(this,nt)};case L:return function(){return new j(this,nt)}}return function(){return new j(this)}},$=N+" Iterator",_=!1,rt=T.prototype,yt=rt[E]||rt["@@iterator"]||C&&rt[C],lt=!I&&yt||M(C),ft=N=="Array"&&rt.entries||yt,gt,mt,ht;if(ft&&(gt=l(ft.call(new T)),b!==Object.prototype&&gt.next&&(!p&&l(gt)!==b&&(c?c(gt,b):typeof gt[E]!="function"&&d(gt,E,U)),u(gt,$,!0,!0),p&&(g[$]=U))),C==O&&yt&&yt.name!==O&&(_=!0,lt=function(){return yt.call(this)}),(!p||X)&&rt[E]!==lt&&d(rt,E,lt),g[N]=lt,C)if(mt={values:M(O),keys:R?lt:M(P),entries:M(L)},X)for(ht in mt)(I||_||!(ht in rt))&&v(rt,ht,mt[ht]);else o({target:N,proto:!0,forced:I||_},mt);return mt}},"7f9a":function(e,f,t){var o=t("da84"),a=t("8925"),l=o.WeakMap;e.exports=typeof l=="function"&&/native code/.test(a(l))},"825a":function(e,f,t){var o=t("861d");e.exports=function(a){if(!o(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(e,f,t){var o=t("d039");e.exports=!o(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(e,f,t){var o=t("c04e"),a=t("9bf2"),l=t("5c6c");e.exports=function(c,u,d){var v=o(u);v in c?a.f(c,v,l(0,d)):c[v]=d}},"861d":function(e,f){e.exports=function(t){return typeof t=="object"?t!==null:typeof t=="function"}},8875:function(e,f,t){var o,a,l;(function(c,u){a=[],o=u,l=typeof o=="function"?o.apply(f,a):o,l!==void 0&&(e.exports=l)})(typeof self<"u"?self:this,function(){function c(){var u=Object.getOwnPropertyDescriptor(document,"currentScript");if(!u&&"currentScript"in document&&document.currentScript||u&&u.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(L){var d=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,v=/@([^@]*):(\d+):(\d+)\s*$/ig,h=d.exec(L.stack)||v.exec(L.stack),p=h&&h[1]||!1,g=h&&h[2]||!1,S=document.location.href.replace(document.location.hash,""),b,I,E,P=document.getElementsByTagName("script");p===S&&(b=document.documentElement.outerHTML,I=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),E=b.replace(I,"$1").trim());for(var O=0;O<P.length;O++)if(P[O].readyState==="interactive"||P[O].src===p||p===S&&P[O].innerHTML&&P[O].innerHTML.trim()===E)return P[O];return null}}return c})},8925:function(e,f,t){var o=t("c6cd"),a=Function.toString;typeof o.inspectSource!="function"&&(o.inspectSource=function(l){return a.call(l)}),e.exports=o.inspectSource},"8aa5":function(e,f,t){var o=t("6547").charAt;e.exports=function(a,l,c){return l+(c?o(a,l).length:1)}},"8bbf":function(e,f){e.exports=n},"90e3":function(e,f){var t=0,o=Math.random();e.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++t+o).toString(36)}},9112:function(e,f,t){var o=t("83ab"),a=t("9bf2"),l=t("5c6c");e.exports=o?function(c,u,d){return a.f(c,u,l(1,d))}:function(c,u,d){return c[u]=d,c}},9263:function(e,f,t){var o=t("ad6d"),a=t("9f7f"),l=RegExp.prototype.exec,c=String.prototype.replace,u=l,d=function(){var g=/a/,S=/b*/g;return l.call(g,"a"),l.call(S,"a"),g.lastIndex!==0||S.lastIndex!==0}(),v=a.UNSUPPORTED_Y||a.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,p=d||h||v;p&&(u=function(S){var b=this,I,E,P,O,L=v&&b.sticky,U=o.call(b),T=b.source,N=0,j=S;return L&&(U=U.replace("y",""),U.indexOf("g")===-1&&(U+="g"),j=String(S).slice(b.lastIndex),b.lastIndex>0&&(!b.multiline||b.multiline&&S[b.lastIndex-1]!==`
28
+ `)&&(T="(?: "+T+")",j=" "+j,N++),E=new RegExp("^(?:"+T+")",U)),h&&(E=new RegExp("^"+T+"$(?!\\s)",U)),d&&(I=b.lastIndex),P=l.call(L?E:b,j),L?P?(P.input=P.input.slice(N),P[0]=P[0].slice(N),P.index=b.lastIndex,b.lastIndex+=P[0].length):b.lastIndex=0:d&&P&&(b.lastIndex=b.global?P.index+P[0].length:I),h&&P&&P.length>1&&c.call(P[0],E,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&(P[O]=void 0)}),P}),e.exports=u},"94ca":function(e,f,t){var o=t("d039"),a=/#|\.prototype\./,l=function(h,p){var g=u[c(h)];return g==v?!0:g==d?!1:typeof p=="function"?o(p):!!p},c=l.normalize=function(h){return String(h).replace(a,".").toLowerCase()},u=l.data={},d=l.NATIVE="N",v=l.POLYFILL="P";e.exports=l},"99af":function(e,f,t){var o=t("23e7"),a=t("d039"),l=t("e8b5"),c=t("861d"),u=t("7b0b"),d=t("50c4"),v=t("8418"),h=t("65f0"),p=t("1dde"),g=t("b622"),S=t("2d00"),b=g("isConcatSpreadable"),I=9007199254740991,E="Maximum allowed index exceeded",P=S>=51||!a(function(){var T=[];return T[b]=!1,T.concat()[0]!==T}),O=p("concat"),L=function(T){if(!c(T))return!1;var N=T[b];return N!==void 0?!!N:l(T)},U=!P||!O;o({target:"Array",proto:!0,forced:U},{concat:function(N){var j=u(this),V=h(j,0),C=0,R,X,M,$,_;for(R=-1,M=arguments.length;R<M;R++)if(_=R===-1?j:arguments[R],L(_)){if($=d(_.length),C+$>I)throw TypeError(E);for(X=0;X<$;X++,C++)X in _&&v(V,C,_[X])}else{if(C>=I)throw TypeError(E);v(V,C++,_)}return V.length=C,V}})},"9bdd":function(e,f,t){var o=t("825a");e.exports=function(a,l,c,u){try{return u?l(o(c)[0],c[1]):l(c)}catch(v){var d=a.return;throw d!==void 0&&o(d.call(a)),v}}},"9bf2":function(e,f,t){var o=t("83ab"),a=t("0cfb"),l=t("825a"),c=t("c04e"),u=Object.defineProperty;f.f=o?u:function(v,h,p){if(l(v),h=c(h,!0),l(p),a)try{return u(v,h,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(v[h]=p.value),v}},"9ed3":function(e,f,t){var o=t("ae93").IteratorPrototype,a=t("7c73"),l=t("5c6c"),c=t("d44e"),u=t("3f8c"),d=function(){return this};e.exports=function(v,h,p){var g=h+" Iterator";return v.prototype=a(o,{next:l(1,p)}),c(v,g,!1,!0),u[g]=d,v}},"9f7f":function(e,f,t){var o=t("d039");function a(l,c){return RegExp(l,c)}f.UNSUPPORTED_Y=o(function(){var l=a("a","y");return l.lastIndex=2,l.exec("abcd")!=null}),f.BROKEN_CARET=o(function(){var l=a("^r","gy");return l.lastIndex=2,l.exec("str")!=null})},a2bf:function(e,f,t){var o=t("e8b5"),a=t("50c4"),l=t("0366"),c=function(u,d,v,h,p,g,S,b){for(var I=p,E=0,P=S?l(S,b,3):!1,O;E<h;){if(E in v){if(O=P?P(v[E],E,d):v[E],g>0&&o(O))I=c(u,d,O,a(O.length),I,g-1)-1;else{if(I>=9007199254740991)throw TypeError("Exceed the acceptable array length");u[I]=O}I++}E++}return I};e.exports=c},a352:function(e,f){e.exports=i},a434:function(e,f,t){var o=t("23e7"),a=t("23cb"),l=t("a691"),c=t("50c4"),u=t("7b0b"),d=t("65f0"),v=t("8418"),h=t("1dde"),p=t("ae40"),g=h("splice"),S=p("splice",{ACCESSORS:!0,0:0,1:2}),b=Math.max,I=Math.min,E=9007199254740991,P="Maximum allowed length exceeded";o({target:"Array",proto:!0,forced:!g||!S},{splice:function(L,U){var T=u(this),N=c(T.length),j=a(L,N),V=arguments.length,C,R,X,M,$,_;if(V===0?C=R=0:V===1?(C=0,R=N-j):(C=V-2,R=I(b(l(U),0),N-j)),N+C-R>E)throw TypeError(P);for(X=d(T,R),M=0;M<R;M++)$=j+M,$ in T&&v(X,M,T[$]);if(X.length=R,C<R){for(M=j;M<N-R;M++)$=M+R,_=M+C,$ in T?T[_]=T[$]:delete T[_];for(M=N;M>N-R+C;M--)delete T[M-1]}else if(C>R)for(M=N-R;M>j;M--)$=M+R-1,_=M+C-1,$ in T?T[_]=T[$]:delete T[_];for(M=0;M<C;M++)T[M+j]=arguments[M+2];return T.length=N-R+C,X}})},a4d3:function(e,f,t){var o=t("23e7"),a=t("da84"),l=t("d066"),c=t("c430"),u=t("83ab"),d=t("4930"),v=t("fdbf"),h=t("d039"),p=t("5135"),g=t("e8b5"),S=t("861d"),b=t("825a"),I=t("7b0b"),E=t("fc6a"),P=t("c04e"),O=t("5c6c"),L=t("7c73"),U=t("df75"),T=t("241c"),N=t("057f"),j=t("7418"),V=t("06cf"),C=t("9bf2"),R=t("d1e7"),X=t("9112"),M=t("6eeb"),$=t("5692"),_=t("f772"),rt=t("d012"),yt=t("90e3"),lt=t("b622"),ft=t("e538"),gt=t("746f"),mt=t("d44e"),ht=t("69f3"),nt=t("b727").forEach,it=_("hidden"),At="Symbol",Tt="prototype",Xt=lt("toPrimitive"),Zt=ht.set,Vt=ht.getterFor(At),St=Object[Tt],bt=a.Symbol,kt=l("JSON","stringify"),Gt=V.f,$t=C.f,Re=N.f,Ze=R.f,Ft=$("symbols"),Yt=$("op-symbols"),ne=$("string-to-symbol-registry"),ue=$("symbol-to-string-registry"),ce=$("wks"),de=a.QObject,ve=!de||!de[Tt]||!de[Tt].findChild,he=u&&h(function(){return L($t({},"a",{get:function(){return $t(this,"a",{value:7}).a}})).a!=7})?function(W,G,B){var k=Gt(St,G);k&&delete St[G],$t(W,G,B),k&&W!==St&&$t(St,G,k)}:$t,pe=function(W,G){var B=Ft[W]=L(bt[Tt]);return Zt(B,{type:At,tag:W,description:G}),u||(B.description=G),B},y=v?function(W){return typeof W=="symbol"}:function(W){return Object(W)instanceof bt},m=function(G,B,k){G===St&&m(Yt,B,k),b(G);var q=P(B,!0);return b(k),p(Ft,q)?(k.enumerable?(p(G,it)&&G[it][q]&&(G[it][q]=!1),k=L(k,{enumerable:O(0,!1)})):(p(G,it)||$t(G,it,O(1,{})),G[it][q]=!0),he(G,q,k)):$t(G,q,k)},x=function(G,B){b(G);var k=E(B),q=U(k).concat(tt(k));return nt(q,function(Pt){(!u||F.call(k,Pt))&&m(G,Pt,k[Pt])}),G},D=function(G,B){return B===void 0?L(G):x(L(G),B)},F=function(G){var B=P(G,!0),k=Ze.call(this,B);return this===St&&p(Ft,B)&&!p(Yt,B)?!1:k||!p(this,B)||!p(Ft,B)||p(this,it)&&this[it][B]?k:!0},H=function(G,B){var k=E(G),q=P(B,!0);if(!(k===St&&p(Ft,q)&&!p(Yt,q))){var Pt=Gt(k,q);return Pt&&p(Ft,q)&&!(p(k,it)&&k[it][q])&&(Pt.enumerable=!0),Pt}},J=function(G){var B=Re(E(G)),k=[];return nt(B,function(q){!p(Ft,q)&&!p(rt,q)&&k.push(q)}),k},tt=function(G){var B=G===St,k=Re(B?Yt:E(G)),q=[];return nt(k,function(Pt){p(Ft,Pt)&&(!B||p(St,Pt))&&q.push(Ft[Pt])}),q};if(d||(bt=function(){if(this instanceof bt)throw TypeError("Symbol is not a constructor");var G=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),B=yt(G),k=function(q){this===St&&k.call(Yt,q),p(this,it)&&p(this[it],B)&&(this[it][B]=!1),he(this,B,O(1,q))};return u&&ve&&he(St,B,{configurable:!0,set:k}),pe(B,G)},M(bt[Tt],"toString",function(){return Vt(this).tag}),M(bt,"withoutSetter",function(W){return pe(yt(W),W)}),R.f=F,C.f=m,V.f=H,T.f=N.f=J,j.f=tt,ft.f=function(W){return pe(lt(W),W)},u&&($t(bt[Tt],"description",{configurable:!0,get:function(){return Vt(this).description}}),c||M(St,"propertyIsEnumerable",F,{unsafe:!0}))),o({global:!0,wrap:!0,forced:!d,sham:!d},{Symbol:bt}),nt(U(ce),function(W){gt(W)}),o({target:At,stat:!0,forced:!d},{for:function(W){var G=String(W);if(p(ne,G))return ne[G];var B=bt(G);return ne[G]=B,ue[B]=G,B},keyFor:function(G){if(!y(G))throw TypeError(G+" is not a symbol");if(p(ue,G))return ue[G]},useSetter:function(){ve=!0},useSimple:function(){ve=!1}}),o({target:"Object",stat:!0,forced:!d,sham:!u},{create:D,defineProperty:m,defineProperties:x,getOwnPropertyDescriptor:H}),o({target:"Object",stat:!0,forced:!d},{getOwnPropertyNames:J,getOwnPropertySymbols:tt}),o({target:"Object",stat:!0,forced:h(function(){j.f(1)})},{getOwnPropertySymbols:function(G){return j.f(I(G))}}),kt){var vt=!d||h(function(){var W=bt();return kt([W])!="[null]"||kt({a:W})!="{}"||kt(Object(W))!="{}"});o({target:"JSON",stat:!0,forced:vt},{stringify:function(G,B,k){for(var q=[G],Pt=1,ke;arguments.length>Pt;)q.push(arguments[Pt++]);if(ke=B,!(!S(B)&&G===void 0||y(G)))return g(B)||(B=function(Xr,Ne){if(typeof ke=="function"&&(Ne=ke.call(this,Xr,Ne)),!y(Ne))return Ne}),q[1]=B,kt.apply(null,q)}})}bt[Tt][Xt]||X(bt[Tt],Xt,bt[Tt].valueOf),mt(bt,At),rt[it]=!0},a630:function(e,f,t){var o=t("23e7"),a=t("4df4"),l=t("1c7e"),c=!l(function(u){Array.from(u)});o({target:"Array",stat:!0,forced:c},{from:a})},a640:function(e,f,t){var o=t("d039");e.exports=function(a,l){var c=[][a];return!!c&&o(function(){c.call(null,l||function(){throw 1},1)})}},a691:function(e,f){var t=Math.ceil,o=Math.floor;e.exports=function(a){return isNaN(a=+a)?0:(a>0?o:t)(a)}},ab13:function(e,f,t){var o=t("b622"),a=o("match");e.exports=function(l){var c=/./;try{"/./"[l](c)}catch{try{return c[a]=!1,"/./"[l](c)}catch{}}return!1}},ac1f:function(e,f,t){var o=t("23e7"),a=t("9263");o({target:"RegExp",proto:!0,forced:/./.exec!==a},{exec:a})},ad6d:function(e,f,t){var o=t("825a");e.exports=function(){var a=o(this),l="";return a.global&&(l+="g"),a.ignoreCase&&(l+="i"),a.multiline&&(l+="m"),a.dotAll&&(l+="s"),a.unicode&&(l+="u"),a.sticky&&(l+="y"),l}},ae40:function(e,f,t){var o=t("83ab"),a=t("d039"),l=t("5135"),c=Object.defineProperty,u={},d=function(v){throw v};e.exports=function(v,h){if(l(u,v))return u[v];h||(h={});var p=[][v],g=l(h,"ACCESSORS")?h.ACCESSORS:!1,S=l(h,0)?h[0]:d,b=l(h,1)?h[1]:void 0;return u[v]=!!p&&!a(function(){if(g&&!o)return!0;var I={length:-1};g?c(I,1,{enumerable:!0,get:d}):I[1]=1,p.call(I,S,b)})}},ae93:function(e,f,t){var o=t("e163"),a=t("9112"),l=t("5135"),c=t("b622"),u=t("c430"),d=c("iterator"),v=!1,h=function(){return this},p,g,S;[].keys&&(S=[].keys(),"next"in S?(g=o(o(S)),g!==Object.prototype&&(p=g)):v=!0),p==null&&(p={}),!u&&!l(p,d)&&a(p,d,h),e.exports={IteratorPrototype:p,BUGGY_SAFARI_ITERATORS:v}},b041:function(e,f,t){var o=t("00ee"),a=t("f5df");e.exports=o?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(e,f,t){var o=t("83ab"),a=t("9bf2").f,l=Function.prototype,c=l.toString,u=/^\s*function ([^ (]*)/,d="name";o&&!(d in l)&&a(l,d,{configurable:!0,get:function(){try{return c.call(this).match(u)[1]}catch{return""}}})},b622:function(e,f,t){var o=t("da84"),a=t("5692"),l=t("5135"),c=t("90e3"),u=t("4930"),d=t("fdbf"),v=a("wks"),h=o.Symbol,p=d?h:h&&h.withoutSetter||c;e.exports=function(g){return l(v,g)||(u&&l(h,g)?v[g]=h[g]:v[g]=p("Symbol."+g)),v[g]}},b64b:function(e,f,t){var o=t("23e7"),a=t("7b0b"),l=t("df75"),c=t("d039"),u=c(function(){l(1)});o({target:"Object",stat:!0,forced:u},{keys:function(v){return l(a(v))}})},b727:function(e,f,t){var o=t("0366"),a=t("44ad"),l=t("7b0b"),c=t("50c4"),u=t("65f0"),d=[].push,v=function(h){var p=h==1,g=h==2,S=h==3,b=h==4,I=h==6,E=h==5||I;return function(P,O,L,U){for(var T=l(P),N=a(T),j=o(O,L,3),V=c(N.length),C=0,R=U||u,X=p?R(P,V):g?R(P,0):void 0,M,$;V>C;C++)if((E||C in N)&&(M=N[C],$=j(M,C,T),h)){if(p)X[C]=$;else if($)switch(h){case 3:return!0;case 5:return M;case 6:return C;case 2:d.call(X,M)}else if(b)return!1}return I?-1:S||b?b:X}};e.exports={forEach:v(0),map:v(1),filter:v(2),some:v(3),every:v(4),find:v(5),findIndex:v(6)}},c04e:function(e,f,t){var o=t("861d");e.exports=function(a,l){if(!o(a))return a;var c,u;if(l&&typeof(c=a.toString)=="function"&&!o(u=c.call(a))||typeof(c=a.valueOf)=="function"&&!o(u=c.call(a))||!l&&typeof(c=a.toString)=="function"&&!o(u=c.call(a)))return u;throw TypeError("Can't convert object to primitive value")}},c430:function(e,f){e.exports=!1},c6b6:function(e,f){var t={}.toString;e.exports=function(o){return t.call(o).slice(8,-1)}},c6cd:function(e,f,t){var o=t("da84"),a=t("ce4e"),l="__core-js_shared__",c=o[l]||a(l,{});e.exports=c},c740:function(e,f,t){var o=t("23e7"),a=t("b727").findIndex,l=t("44d2"),c=t("ae40"),u="findIndex",d=!0,v=c(u);u in[]&&Array(1)[u](function(){d=!1}),o({target:"Array",proto:!0,forced:d||!v},{findIndex:function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}}),l(u)},c8ba:function(e,f){var t;t=function(){return this}();try{t=t||new Function("return this")()}catch{typeof window=="object"&&(t=window)}e.exports=t},c975:function(e,f,t){var o=t("23e7"),a=t("4d64").indexOf,l=t("a640"),c=t("ae40"),u=[].indexOf,d=!!u&&1/[1].indexOf(1,-0)<0,v=l("indexOf"),h=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:d||!v||!h},{indexOf:function(g){return d?u.apply(this,arguments)||0:a(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(e,f,t){var o=t("5135"),a=t("fc6a"),l=t("4d64").indexOf,c=t("d012");e.exports=function(u,d){var v=a(u),h=0,p=[],g;for(g in v)!o(c,g)&&o(v,g)&&p.push(g);for(;d.length>h;)o(v,g=d[h++])&&(~l(p,g)||p.push(g));return p}},caad:function(e,f,t){var o=t("23e7"),a=t("4d64").includes,l=t("44d2"),c=t("ae40"),u=c("indexOf",{ACCESSORS:!0,1:0});o({target:"Array",proto:!0,forced:!u},{includes:function(v){return a(this,v,arguments.length>1?arguments[1]:void 0)}}),l("includes")},cc12:function(e,f,t){var o=t("da84"),a=t("861d"),l=o.document,c=a(l)&&a(l.createElement);e.exports=function(u){return c?l.createElement(u):{}}},ce4e:function(e,f,t){var o=t("da84"),a=t("9112");e.exports=function(l,c){try{a(o,l,c)}catch{o[l]=c}return c}},d012:function(e,f){e.exports={}},d039:function(e,f){e.exports=function(t){try{return!!t()}catch{return!0}}},d066:function(e,f,t){var o=t("428f"),a=t("da84"),l=function(c){return typeof c=="function"?c:void 0};e.exports=function(c,u){return arguments.length<2?l(o[c])||l(a[c]):o[c]&&o[c][u]||a[c]&&a[c][u]}},d1e7:function(e,f,t){var o={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!o.call({1:2},1);f.f=l?function(u){var d=a(this,u);return!!d&&d.enumerable}:o},d28b:function(e,f,t){var o=t("746f");o("iterator")},d2bb:function(e,f,t){var o=t("825a"),a=t("3bbe");e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l=!1,c={},u;try{u=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,u.call(c,[]),l=c instanceof Array}catch{}return function(v,h){return o(v),a(h),l?u.call(v,h):v.__proto__=h,v}}():void 0)},d3b7:function(e,f,t){var o=t("00ee"),a=t("6eeb"),l=t("b041");o||a(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(e,f,t){var o=t("9bf2").f,a=t("5135"),l=t("b622"),c=l("toStringTag");e.exports=function(u,d,v){u&&!a(u=v?u:u.prototype,c)&&o(u,c,{configurable:!0,value:d})}},d58f:function(e,f,t){var o=t("1c0b"),a=t("7b0b"),l=t("44ad"),c=t("50c4"),u=function(d){return function(v,h,p,g){o(h);var S=a(v),b=l(S),I=c(S.length),E=d?I-1:0,P=d?-1:1;if(p<2)for(;;){if(E in b){g=b[E],E+=P;break}if(E+=P,d?E<0:I<=E)throw TypeError("Reduce of empty array with no initial value")}for(;d?E>=0:I>E;E+=P)E in b&&(g=h(g,b[E],E,S));return g}};e.exports={left:u(!1),right:u(!0)}},d784:function(e,f,t){t("ac1f");var o=t("6eeb"),a=t("d039"),l=t("b622"),c=t("9263"),u=t("9112"),d=l("species"),v=!a(function(){var b=/./;return b.exec=function(){var I=[];return I.groups={a:"7"},I},"".replace(b,"$<a>")!=="7"}),h=function(){return"a".replace(/./,"$0")==="$0"}(),p=l("replace"),g=function(){return/./[p]?/./[p]("a","$0")==="":!1}(),S=!a(function(){var b=/(?:)/,I=b.exec;b.exec=function(){return I.apply(this,arguments)};var E="ab".split(b);return E.length!==2||E[0]!=="a"||E[1]!=="b"});e.exports=function(b,I,E,P){var O=l(b),L=!a(function(){var C={};return C[O]=function(){return 7},""[b](C)!=7}),U=L&&!a(function(){var C=!1,R=/a/;return b==="split"&&(R={},R.constructor={},R.constructor[d]=function(){return R},R.flags="",R[O]=/./[O]),R.exec=function(){return C=!0,null},R[O](""),!C});if(!L||!U||b==="replace"&&!(v&&h&&!g)||b==="split"&&!S){var T=/./[O],N=E(O,""[b],function(C,R,X,M,$){return R.exec===c?L&&!$?{done:!0,value:T.call(R,X,M)}:{done:!0,value:C.call(X,R,M)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),j=N[0],V=N[1];o(String.prototype,b,j),o(RegExp.prototype,O,I==2?function(C,R){return V.call(C,this,R)}:function(C){return V.call(C,this)})}P&&u(RegExp.prototype[O],"sham",!0)}},d81d:function(e,f,t){var o=t("23e7"),a=t("b727").map,l=t("1dde"),c=t("ae40"),u=l("map"),d=c("map");o({target:"Array",proto:!0,forced:!u||!d},{map:function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}})},da84:function(e,f,t){(function(o){var a=function(l){return l&&l.Math==Math&&l};e.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof o=="object"&&o)||Function("return this")()}).call(this,t("c8ba"))},dbb4:function(e,f,t){var o=t("23e7"),a=t("83ab"),l=t("56ef"),c=t("fc6a"),u=t("06cf"),d=t("8418");o({target:"Object",stat:!0,sham:!a},{getOwnPropertyDescriptors:function(h){for(var p=c(h),g=u.f,S=l(p),b={},I=0,E,P;S.length>I;)P=g(p,E=S[I++]),P!==void 0&&d(b,E,P);return b}})},dbf1:function(e,f,t){(function(o){t.d(f,"a",function(){return l});function a(){return typeof window<"u"?window.console:o.console}var l=a()}).call(this,t("c8ba"))},ddb0:function(e,f,t){var o=t("da84"),a=t("fdbc"),l=t("e260"),c=t("9112"),u=t("b622"),d=u("iterator"),v=u("toStringTag"),h=l.values;for(var p in a){var g=o[p],S=g&&g.prototype;if(S){if(S[d]!==h)try{c(S,d,h)}catch{S[d]=h}if(S[v]||c(S,v,p),a[p]){for(var b in l)if(S[b]!==l[b])try{c(S,b,l[b])}catch{S[b]=l[b]}}}}},df75:function(e,f,t){var o=t("ca84"),a=t("7839");e.exports=Object.keys||function(c){return o(c,a)}},e01a:function(e,f,t){var o=t("23e7"),a=t("83ab"),l=t("da84"),c=t("5135"),u=t("861d"),d=t("9bf2").f,v=t("e893"),h=l.Symbol;if(a&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var p={},g=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),L=this instanceof g?new h(O):O===void 0?h():h(O);return O===""&&(p[L]=!0),L};v(g,h);var S=g.prototype=h.prototype;S.constructor=g;var b=S.toString,I=String(h("test"))=="Symbol(test)",E=/^Symbol\((.*)\)[^)]+$/;d(S,"description",{configurable:!0,get:function(){var O=u(this)?this.valueOf():this,L=b.call(O);if(c(p,O))return"";var U=I?L.slice(7,-1):L.replace(E,"$1");return U===""?void 0:U}}),o({global:!0,forced:!0},{Symbol:g})}},e163:function(e,f,t){var o=t("5135"),a=t("7b0b"),l=t("f772"),c=t("e177"),u=l("IE_PROTO"),d=Object.prototype;e.exports=c?Object.getPrototypeOf:function(v){return v=a(v),o(v,u)?v[u]:typeof v.constructor=="function"&&v instanceof v.constructor?v.constructor.prototype:v instanceof Object?d:null}},e177:function(e,f,t){var o=t("d039");e.exports=!o(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},e260:function(e,f,t){var o=t("fc6a"),a=t("44d2"),l=t("3f8c"),c=t("69f3"),u=t("7dd0"),d="Array Iterator",v=c.set,h=c.getterFor(d);e.exports=u(Array,"Array",function(p,g){v(this,{type:d,target:o(p),index:0,kind:g})},function(){var p=h(this),g=p.target,S=p.kind,b=p.index++;return!g||b>=g.length?(p.target=void 0,{value:void 0,done:!0}):S=="keys"?{value:b,done:!1}:S=="values"?{value:g[b],done:!1}:{value:[b,g[b]],done:!1}},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},e439:function(e,f,t){var o=t("23e7"),a=t("d039"),l=t("fc6a"),c=t("06cf").f,u=t("83ab"),d=a(function(){c(1)}),v=!u||d;o({target:"Object",stat:!0,forced:v,sham:!u},{getOwnPropertyDescriptor:function(p,g){return c(l(p),g)}})},e538:function(e,f,t){var o=t("b622");f.f=o},e893:function(e,f,t){var o=t("5135"),a=t("56ef"),l=t("06cf"),c=t("9bf2");e.exports=function(u,d){for(var v=a(d),h=c.f,p=l.f,g=0;g<v.length;g++){var S=v[g];o(u,S)||h(u,S,p(d,S))}}},e8b5:function(e,f,t){var o=t("c6b6");e.exports=Array.isArray||function(l){return o(l)=="Array"}},e95a:function(e,f,t){var o=t("b622"),a=t("3f8c"),l=o("iterator"),c=Array.prototype;e.exports=function(u){return u!==void 0&&(a.Array===u||c[l]===u)}},f5df:function(e,f,t){var o=t("00ee"),a=t("c6b6"),l=t("b622"),c=l("toStringTag"),u=a(function(){return arguments}())=="Arguments",d=function(v,h){try{return v[h]}catch{}};e.exports=o?a:function(v){var h,p,g;return v===void 0?"Undefined":v===null?"Null":typeof(p=d(h=Object(v),c))=="string"?p:u?a(h):(g=a(h))=="Object"&&typeof h.callee=="function"?"Arguments":g}},f772:function(e,f,t){var o=t("5692"),a=t("90e3"),l=o("keys");e.exports=function(c){return l[c]||(l[c]=a(c))}},fb15:function(e,f,t){if(t.r(f),typeof window<"u"){var o=window.document.currentScript;{var a=t("8875");o=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a})}var l=o&&o.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(t.p=l[1])}t("99af"),t("4de4"),t("4160"),t("c975"),t("d81d"),t("a434"),t("159b"),t("a4d3"),t("e439"),t("dbb4"),t("b64b");function c(y,m,x){return m in y?Object.defineProperty(y,m,{value:x,enumerable:!0,configurable:!0,writable:!0}):y[m]=x,y}function u(y,m){var x=Object.keys(y);if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(y);m&&(D=D.filter(function(F){return Object.getOwnPropertyDescriptor(y,F).enumerable})),x.push.apply(x,D)}return x}function d(y){for(var m=1;m<arguments.length;m++){var x=arguments[m]!=null?arguments[m]:{};m%2?u(Object(x),!0).forEach(function(D){c(y,D,x[D])}):Object.getOwnPropertyDescriptors?Object.defineProperties(y,Object.getOwnPropertyDescriptors(x)):u(Object(x)).forEach(function(D){Object.defineProperty(y,D,Object.getOwnPropertyDescriptor(x,D))})}return y}function v(y){if(Array.isArray(y))return y}t("e01a"),t("d28b"),t("e260"),t("d3b7"),t("3ca3"),t("ddb0");function h(y,m){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(y)))){var x=[],D=!0,F=!1,H=void 0;try{for(var J=y[Symbol.iterator](),tt;!(D=(tt=J.next()).done)&&(x.push(tt.value),!(m&&x.length===m));D=!0);}catch(vt){F=!0,H=vt}finally{try{!D&&J.return!=null&&J.return()}finally{if(F)throw H}}return x}}t("a630"),t("fb6a"),t("b0c0"),t("25f0");function p(y,m){(m==null||m>y.length)&&(m=y.length);for(var x=0,D=new Array(m);x<m;x++)D[x]=y[x];return D}function g(y,m){if(y){if(typeof y=="string")return p(y,m);var x=Object.prototype.toString.call(y).slice(8,-1);if(x==="Object"&&y.constructor&&(x=y.constructor.name),x==="Map"||x==="Set")return Array.from(y);if(x==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(x))return p(y,m)}}function S(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
29
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function b(y,m){return v(y)||h(y,m)||g(y,m)||S()}function I(y){if(Array.isArray(y))return p(y)}function E(y){if(typeof Symbol<"u"&&Symbol.iterator in Object(y))return Array.from(y)}function P(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
30
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function O(y){return I(y)||E(y)||g(y)||P()}var L=t("a352"),U=t.n(L);function T(y){y.parentElement!==null&&y.parentElement.removeChild(y)}function N(y,m,x){var D=x===0?y.children[0]:y.children[x-1].nextSibling;y.insertBefore(m,D)}var j=t("dbf1");t("13d5"),t("4fad"),t("ac1f"),t("5319");function V(y){var m=Object.create(null);return function(D){var F=m[D];return F||(m[D]=y(D))}}var C=/-(\w)/g,R=V(function(y){return y.replace(C,function(m,x){return x.toUpperCase()})});t("5db7"),t("73d9");var X=["Start","Add","Remove","Update","End"],M=["Choose","Unchoose","Sort","Filter","Clone"],$=["Move"],_=[$,X,M].flatMap(function(y){return y}).map(function(y){return"on".concat(y)}),rt={manage:$,manageAndEmit:X,emit:M};function yt(y){return _.indexOf(y)!==-1}t("caad"),t("2ca0");var lt=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ft(y){return lt.includes(y)}function gt(y){return["transition-group","TransitionGroup"].includes(y)}function mt(y){return["id","class","role","style"].includes(y)||y.startsWith("data-")||y.startsWith("aria-")||y.startsWith("on")}function ht(y){return y.reduce(function(m,x){var D=b(x,2),F=D[0],H=D[1];return m[F]=H,m},{})}function nt(y){var m=y.$attrs,x=y.componentData,D=x===void 0?{}:x,F=ht(Object.entries(m).filter(function(H){var J=b(H,2),tt=J[0];return J[1],mt(tt)}));return d(d({},F),D)}function it(y){var m=y.$attrs,x=y.callBackBuilder,D=ht(At(m));Object.entries(x).forEach(function(H){var J=b(H,2),tt=J[0],vt=J[1];rt[tt].forEach(function(W){D["on".concat(W)]=vt(W)})});var F="[data-draggable]".concat(D.draggable||"");return d(d({},D),{},{draggable:F})}function At(y){return Object.entries(y).filter(function(m){var x=b(m,2),D=x[0];return x[1],!mt(D)}).map(function(m){var x=b(m,2),D=x[0],F=x[1];return[R(D),F]}).filter(function(m){var x=b(m,2),D=x[0];return x[1],!yt(D)})}t("c740");function Tt(y,m){if(!(y instanceof m))throw new TypeError("Cannot call a class as a function")}function Xt(y,m){for(var x=0;x<m.length;x++){var D=m[x];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(y,D.key,D)}}function Zt(y,m,x){return m&&Xt(y.prototype,m),y}var Vt=function(m){var x=m.el;return x},St=function(m,x){return m.__draggable_context=x},bt=function(m){return m.__draggable_context},kt=function(){function y(m){var x=m.nodes,D=x.header,F=x.default,H=x.footer,J=m.root,tt=m.realList;Tt(this,y),this.defaultNodes=F,this.children=[].concat(O(D),O(F),O(H)),this.externalComponent=J.externalComponent,this.rootTransition=J.transition,this.tag=J.tag,this.realList=tt}return Zt(y,[{key:"render",value:function(x,D){var F=this.tag,H=this.children,J=this._isRootComponent,tt=J?{default:function(){return H}}:H;return x(F,D,tt)}},{key:"updated",value:function(){var x=this.defaultNodes,D=this.realList;x.forEach(function(F,H){St(Vt(F),{element:D[H],index:H})})}},{key:"getUnderlyingVm",value:function(x){return bt(x)}},{key:"getVmIndexFromDomIndex",value:function(x,D){var F=this.defaultNodes,H=F.length,J=D.children,tt=J.item(x);if(tt===null)return H;var vt=bt(tt);if(vt)return vt.index;if(H===0)return 0;var W=Vt(F[0]),G=O(J).findIndex(function(B){return B===W});return x<G?0:H}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),y}(),Gt=t("8bbf");function $t(y,m){var x=y[m];return x?x():[]}function Re(y){var m=y.$slots,x=y.realList,D=y.getKey,F=x||[],H=["header","footer"].map(function(B){return $t(m,B)}),J=b(H,2),tt=J[0],vt=J[1],W=m.item;if(!W)throw new Error("draggable element must have an item slot");var G=F.flatMap(function(B,k){return W({element:B,index:k}).map(function(q){return q.key=D(B),q.props=d(d({},q.props||{}),{},{"data-draggable":!0}),q})});if(G.length!==F.length)throw new Error("Item slot must have only one child");return{header:tt,footer:vt,default:G}}function Ze(y){var m=gt(y),x=!ft(y)&&!m;return{transition:m,externalComponent:x,tag:x?Object(Gt.resolveComponent)(y):m?Gt.TransitionGroup:y}}function Ft(y){var m=y.$slots,x=y.tag,D=y.realList,F=y.getKey,H=Re({$slots:m,realList:D,getKey:F}),J=Ze(x);return new kt({nodes:H,root:J,realList:D})}function Yt(y,m){var x=this;Object(Gt.nextTick)(function(){return x.$emit(y.toLowerCase(),m)})}function ne(y){var m=this;return function(x,D){if(m.realList!==null)return m["onDrag".concat(y)](x,D)}}function ue(y){var m=this,x=ne.call(this,y);return function(D,F){x.call(m,D,F),Yt.call(m,y,D)}}var ce=null,de={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(m){return m}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},ve=["update:modelValue","change"].concat(O([].concat(O(rt.manageAndEmit),O(rt.emit)).map(function(y){return y.toLowerCase()}))),he=Object(Gt.defineComponent)({name:"draggable",inheritAttrs:!1,props:de,emits:ve,data:function(){return{error:!1}},render:function(){try{this.error=!1;var m=this.$slots,x=this.$attrs,D=this.tag,F=this.componentData,H=this.realList,J=this.getKey,tt=Ft({$slots:m,tag:D,realList:H,getKey:J});this.componentStructure=tt;var vt=nt({$attrs:x,componentData:F});return tt.render(Gt.h,vt)}catch(W){return this.error=!0,Object(Gt.h)("pre",{style:{color:"red"}},W.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&j.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var m=this;if(!this.error){var x=this.$attrs,D=this.$el,F=this.componentStructure;F.updated();var H=it({$attrs:x,callBackBuilder:{manageAndEmit:function(vt){return ue.call(m,vt)},emit:function(vt){return Yt.bind(m,vt)},manage:function(vt){return ne.call(m,vt)}}}),J=D.nodeType===1?D:D.parentElement;this._sortable=new U.a(J,H),this.targetDomElement=J,J.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var m=this.list;return m||this.modelValue},getKey:function(){var m=this.itemKey;return typeof m=="function"?m:function(x){return x[m]}}},watch:{$attrs:{handler:function(m){var x=this._sortable;x&&At(m).forEach(function(D){var F=b(D,2),H=F[0],J=F[1];x.option(H,J)})},deep:!0}},methods:{getUnderlyingVm:function(m){return this.componentStructure.getUnderlyingVm(m)||null},getUnderlyingPotencialDraggableComponent:function(m){return m.__draggable_component__},emitChanges:function(m){var x=this;Object(Gt.nextTick)(function(){return x.$emit("change",m)})},alterList:function(m){if(this.list){m(this.list);return}var x=O(this.modelValue);m(x),this.$emit("update:modelValue",x)},spliceList:function(){var m=arguments,x=function(F){return F.splice.apply(F,O(m))};this.alterList(x)},updatePosition:function(m,x){var D=function(H){return H.splice(x,0,H.splice(m,1)[0])};this.alterList(D)},getRelatedContextFromMoveEvent:function(m){var x=m.to,D=m.related,F=this.getUnderlyingPotencialDraggableComponent(x);if(!F)return{component:F};var H=F.realList,J={list:H,component:F};if(x!==D&&H){var tt=F.getUnderlyingVm(D)||{};return d(d({},tt),J)}return J},getVmIndexFromDomIndex:function(m){return this.componentStructure.getVmIndexFromDomIndex(m,this.targetDomElement)},onDragStart:function(m){this.context=this.getUnderlyingVm(m.item),m.item._underlying_vm_=this.clone(this.context.element),ce=m.item},onDragAdd:function(m){var x=m.item._underlying_vm_;if(x!==void 0){T(m.item);var D=this.getVmIndexFromDomIndex(m.newIndex);this.spliceList(D,0,x);var F={element:x,newIndex:D};this.emitChanges({added:F})}},onDragRemove:function(m){if(N(this.$el,m.item,m.oldIndex),m.pullMode==="clone"){T(m.clone);return}var x=this.context,D=x.index,F=x.element;this.spliceList(D,1);var H={element:F,oldIndex:D};this.emitChanges({removed:H})},onDragUpdate:function(m){T(m.item),N(m.from,m.item,m.oldIndex);var x=this.context.index,D=this.getVmIndexFromDomIndex(m.newIndex);this.updatePosition(x,D);var F={element:this.context.element,oldIndex:x,newIndex:D};this.emitChanges({moved:F})},computeFutureIndex:function(m,x){if(!m.element)return 0;var D=O(x.to.children).filter(function(tt){return tt.style.display!=="none"}),F=D.indexOf(x.related),H=m.component.getVmIndexFromDomIndex(F),J=D.indexOf(ce)!==-1;return J||!x.willInsertAfter?H:H+1},onDragMove:function(m,x){var D=this.move,F=this.realList;if(!D||!F)return!0;var H=this.getRelatedContextFromMoveEvent(m),J=this.computeFutureIndex(H,m),tt=d(d({},this.context),{},{futureIndex:J}),vt=d(d({},m),{},{relatedContext:H,draggedContext:tt});return D(vt,x)},onDragEnd:function(){ce=null}}}),pe=he;f.default=pe},fb6a:function(e,f,t){var o=t("23e7"),a=t("861d"),l=t("e8b5"),c=t("23cb"),u=t("50c4"),d=t("fc6a"),v=t("8418"),h=t("b622"),p=t("1dde"),g=t("ae40"),S=p("slice"),b=g("slice",{ACCESSORS:!0,0:0,1:2}),I=h("species"),E=[].slice,P=Math.max;o({target:"Array",proto:!0,forced:!S||!b},{slice:function(L,U){var T=d(this),N=u(T.length),j=c(L,N),V=c(U===void 0?N:U,N),C,R,X;if(l(T)&&(C=T.constructor,typeof C=="function"&&(C===Array||l(C.prototype))?C=void 0:a(C)&&(C=C[I],C===null&&(C=void 0)),C===Array||C===void 0))return E.call(T,j,V);for(R=new(C===void 0?Array:C)(P(V-j,0)),X=0;j<V;j++,X++)j in T&&v(R,X,T[j]);return R.length=X,R}})},fc6a:function(e,f,t){var o=t("44ad"),a=t("1d80");e.exports=function(l){return o(a(l))}},fdbc:function(e,f){e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(e,f,t){var o=t("4930");e.exports=o&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Mr);var Wn=Mr.exports;const ro=Yr(Wn),Xn={ref:"blockRef",class:"bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-4 mb-4"},Vn={class:"flex items-center justify-between mb-4"},Yn={class:"flex items-center"},zn={class:"handle p-1 text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400"},Jn={class:"ml-2 text-sm font-medium text-gray-700 dark:text-gray-300"},Qn={class:"flex items-center space-x-2"},no=Qr({__name:"ContentBlock",props:{block:{}},emits:["remove","edit"],setup(s){const r=s,n=Sr(()=>{switch(r.block.type){case"heading":return"HeadingBlock";case"paragraph":return"ParagraphBlock";default:return"div"}}),i=Sr(()=>({content:r.block.content}));return(e,f)=>(br(),Zr("div",Xn,[qt("div",Vn,[qt("div",Yn,[qt("button",zn,[qe(_e(on),{class:"h-5 w-5"})]),qt("span",Jn,qr(e.block.type.charAt(0).toUpperCase()+e.block.type.slice(1)),1)]),qt("div",Qn,[qt("button",{onClick:f[0]||(f[0]=t=>e.$emit("edit",e.block.id)),class:"p-1 text-gray-400 hover:text-gray-600 dark:text-gray-500 dark:hover:text-gray-400"},[qe(_e(rn),{class:"h-5 w-5"})]),qt("button",{onClick:f[1]||(f[1]=t=>e.$emit("remove",e.block.id)),class:"p-1 text-red-400 hover:text-red-600 dark:text-red-500 dark:hover:text-red-400"},[qe(_e(nn),{class:"h-5 w-5"})])])]),(br(),kr(en(n.value),_r(tn(i.value)),null,16))],512))}});export{to as L,eo as T,no as _,_n as a,ro as d};
@@ -0,0 +1,76 @@
1
+ import{c as o,d as S,r as x,u as q,a as A,F as u,I as j,P as y,b as n,e,m,x as P,h as g,t as l,n as v,l as D,f,g as w,y as F,s as h,v as b,z as H,w as Z,j as U,k as E,o as i}from"./index-DYyZmLWO.js";import{T as G,L as N,a as _,d as Q,_ as R}from"./ContentBlock.vue_vue_type_script_setup_true_lang-BwF6D-yB.js";import{u as J}from"./vue.-sixQ7xP-DwXf3zRn.js";import{C as K}from"./calendar-hsWc4yH-.js";import{A as O,S as W}from"./save-C2B6th9J.js";import"./settings-DbyDiH2g.js";import"./x-BNquQe5y.js";/**
2
+ * @license lucide-vue-next v0.344.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const X=o("BarChartIcon",[["line",{x1:"12",x2:"12",y1:"20",y2:"10",key:"1vz5eb"}],["line",{x1:"18",x2:"18",y1:"20",y2:"4",key:"cun8e5"}],["line",{x1:"6",x2:"6",y1:"20",y2:"16",key:"hq0ia6"}]]);/**
7
+ * @license lucide-vue-next v0.344.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const Y=o("BoxIcon",[["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
12
+ * @license lucide-vue-next v0.344.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const ee=o("ClockIcon",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
17
+ * @license lucide-vue-next v0.344.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const C=o("CodeIcon",[["polyline",{points:"16 18 22 12 16 6",key:"z7tu5w"}],["polyline",{points:"8 6 2 12 8 18",key:"1eg1df"}]]);/**
22
+ * @license lucide-vue-next v0.344.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */const te=o("Grid3x3Icon",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M9 3v18",key:"fh3hqa"}],["path",{d:"M15 3v18",key:"14nvp0"}]]);/**
27
+ * @license lucide-vue-next v0.344.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const ae=o("LayersIcon",[["path",{d:"m12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z",key:"8b97xw"}],["path",{d:"m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65",key:"dd6zsq"}],["path",{d:"m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65",key:"ep9fru"}]]);/**
32
+ * @license lucide-vue-next v0.344.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const oe=o("MapIcon",[["polygon",{points:"3 6 9 3 15 6 21 3 21 18 15 21 9 18 3 21",key:"ok2ie8"}],["line",{x1:"9",x2:"9",y1:"3",y2:"18",key:"w34qz5"}],["line",{x1:"15",x2:"15",y1:"6",y2:"21",key:"volv9a"}]]);/**
37
+ * @license lucide-vue-next v0.344.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const re=o("MusicIcon",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]);/**
42
+ * @license lucide-vue-next v0.344.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const se=o("PaletteIcon",[["circle",{cx:"13.5",cy:"6.5",r:".5",fill:"currentColor",key:"1okk4w"}],["circle",{cx:"17.5",cy:"10.5",r:".5",fill:"currentColor",key:"f64h9f"}],["circle",{cx:"8.5",cy:"7.5",r:".5",fill:"currentColor",key:"fotxhn"}],["circle",{cx:"6.5",cy:"12.5",r:".5",fill:"currentColor",key:"qy21gx"}],["path",{d:"M12 2C6.5 2 2 6.5 2 12s4.5 10 10 10c.926 0 1.648-.746 1.648-1.688 0-.437-.18-.835-.437-1.125-.29-.289-.438-.652-.438-1.125a1.64 1.64 0 0 1 1.668-1.668h1.996c3.051 0 5.555-2.503 5.555-5.554C21.965 6.012 17.461 2 12 2z",key:"12rzf8"}]]);/**
47
+ * @license lucide-vue-next v0.344.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const le=o("PuzzleIcon",[["path",{d:"M19.439 7.85c-.049.322.059.648.289.878l1.568 1.568c.47.47.706 1.087.706 1.704s-.235 1.233-.706 1.704l-1.611 1.611a.98.98 0 0 1-.837.276c-.47-.07-.802-.48-.968-.925a2.501 2.501 0 1 0-3.214 3.214c.446.166.855.497.925.968a.979.979 0 0 1-.276.837l-1.61 1.61a2.404 2.404 0 0 1-1.705.707 2.402 2.402 0 0 1-1.704-.706l-1.568-1.568a1.026 1.026 0 0 0-.877-.29c-.493.074-.84.504-1.02.968a2.5 2.5 0 1 1-3.237-3.237c.464-.18.894-.527.967-1.02a1.026 1.026 0 0 0-.289-.877l-1.568-1.568A2.402 2.402 0 0 1 1.998 12c0-.617.236-1.234.706-1.704L4.23 8.77c.24-.24.581-.353.917-.303.515.077.877.528 1.073 1.01a2.5 2.5 0 1 0 3.259-3.259c-.482-.196-.933-.558-1.01-1.073-.05-.336.062-.676.303-.917l1.525-1.525A2.402 2.402 0 0 1 12 1.998c.617 0 1.234.236 1.704.706l1.568 1.568c.23.23.556.338.877.29.493-.074.84-.504 1.02-.968a2.5 2.5 0 1 1 3.237 3.237c-.464.18-.894.527-.967 1.02Z",key:"i0oyt7"}]]);/**
52
+ * @license lucide-vue-next v0.344.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const ie=o("QuoteIcon",[["path",{d:"M3 21c3 0 7-1 7-8V5c0-1.25-.756-2.017-2-2H4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2 1 0 1 0 1 1v1c0 1-1 2-2 2s-1 .008-1 1.031V20c0 1 0 1 1 1z",key:"4rm80e"}],["path",{d:"M15 21c3 0 7-1 7-8V5c0-1.25-.757-2.017-2-2h-4c-1.25 0-2 .75-2 1.972V11c0 1.25.75 2 2 2h.75c0 2.25.25 4-2.75 4v3c0 1 0 1 1 1z",key:"10za9r"}]]);/**
57
+ * @license lucide-vue-next v0.344.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const ne=o("ShapesIcon",[["path",{d:"M8.3 10a.7.7 0 0 1-.626-1.079L11.4 3a.7.7 0 0 1 1.198-.043L16.3 8.9a.7.7 0 0 1-.572 1.1Z",key:"1bo67w"}],["rect",{x:"3",y:"14",width:"7",height:"7",rx:"1",key:"1bkyp8"}],["circle",{cx:"17.5",cy:"17.5",r:"3.5",key:"w3z12y"}]]);/**
62
+ * @license lucide-vue-next v0.344.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const ce=o("SparklesIcon",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]);/**
67
+ * @license lucide-vue-next v0.344.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const de=o("TableIcon",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]);/**
72
+ * @license lucide-vue-next v0.344.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const ue=o("VideoIcon",[["path",{d:"m22 8-6 4 6 4V8Z",key:"50v9me"}],["rect",{width:"14",height:"12",x:"2",y:"6",rx:"2",ry:"2",key:"1rqjg6"}]]),ye={class:"min-h-full bg-gray-50 dark:bg-gray-900"},me={class:"bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700"},ge={class:"px-4 sm:px-6 lg:px-8 py-4"},pe={class:"flex items-center justify-between"},he={class:"flex items-center"},be={class:"text-2xl font-semibold text-gray-900 dark:text-white"},ke={class:"flex items-center space-x-3"},xe={class:"border border-gray-300 dark:border-gray-600 rounded-md overflow-hidden"},ve={type:"submit",form:"collection-form",class:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-sky-600 hover:bg-sky-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},fe={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},we={class:"grid grid-cols-12 gap-6"},_e={class:"col-span-12 md:col-span-3"},Ce={class:"bg-white dark:bg-gray-800 rounded-lg shadow-sm p-4 border border-gray-200 dark:border-gray-700"},Me={class:"text-lg font-medium text-gray-900 dark:text-white mb-4"},Be={class:"text-sm font-medium text-gray-500 dark:text-gray-400 uppercase tracking-wider mb-3"},ze={class:"grid grid-cols-2 gap-3"},Le=["onClick"],Ve={class:"mb-2"},Ie={class:"text-sm text-gray-700 dark:text-gray-300"},Te={class:"col-span-12 md:col-span-9"},$e={class:"bg-white dark:bg-gray-800 shadow-sm rounded-lg border border-gray-200 dark:border-gray-700"},Se={class:"p-6 space-y-6"},qe={for:"name",class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},Ae={for:"slug",class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},je={for:"description",class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},Pe={class:"bg-white dark:bg-gray-800 shadow-sm rounded-lg border border-gray-200 dark:border-gray-700"},De={class:"p-6"},Fe={class:"text-lg font-medium text-gray-900 dark:text-white mb-4"},He={key:0,class:"border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-6"},Ze={class:"text-center text-gray-500 dark:text-gray-400"},We=S({__name:"CreateCollectionPage",setup(Ue){const k=P(),c=x("edit"),{t:M}=q();J({title:()=>M("collections.createCollection")+" | CMS"});const s=x({name:"",slug:"",description:"",contentBlocks:[]}),B=[{id:"heading",label:"Heading",icon:G,category:"text"},{id:"paragraph",label:"Text",icon:u,category:"text"},{id:"quote",label:"Quote",icon:ie,category:"text"},{id:"code",label:"Code",icon:C,category:"text"},{id:"list",label:"List",icon:N,category:"text"},{id:"image",label:"Image",icon:j,category:"media"},{id:"gallery",label:"Gallery",icon:te,category:"media"},{id:"video",label:"Video",icon:ue,category:"media"},{id:"audio",label:"Audio",icon:re,category:"media"},{id:"file",label:"File",icon:u,category:"media"},{id:"container",label:"Container",icon:Y,category:"layout"},{id:"columns",label:"Columns",icon:y,category:"layout"},{id:"divider",label:"Divider",icon:ae,category:"layout"},{id:"spacer",label:"Spacer",icon:ne,category:"layout"},{id:"button",label:"Button",icon:_,category:"interactive"},{id:"form",label:"Form",icon:u,category:"interactive"},{id:"tabs",label:"Tabs",icon:y,category:"interactive"},{id:"accordion",label:"Accordion",icon:y,category:"interactive"},{id:"carousel",label:"Carousel",icon:y,category:"interactive"},{id:"table",label:"Table",icon:de,category:"data"},{id:"chart",label:"Chart",icon:X,category:"data"},{id:"timeline",label:"Timeline",icon:ee,category:"data"},{id:"calendar",label:"Calendar",icon:K,category:"data"},{id:"map",label:"Map",icon:oe,category:"embeds"},{id:"social",label:"Social",icon:_,category:"embeds"},{id:"customHtml",label:"Custom HTML",icon:C,category:"special"},{id:"markdown",label:"Markdown",icon:u,category:"special"},{id:"svg",label:"SVG",icon:se,category:"special"},{id:"animation",label:"Animation",icon:ce,category:"special"},{id:"snippet",label:"Snippet",icon:le,category:"special"}],z=A(()=>B.reduce((t,a)=>(t[a.category]||(t[a.category]=[]),t[a.category].push(a),t),{})),L=t=>{switch(t){case"heading":return{text:"",level:1};case"paragraph":return{text:""};case"quote":return{text:"",author:"",citation:""};case"code":return{code:"",language:"javascript",showLineNumbers:!0};case"list":return{items:[""],type:"bullet",showCheckboxes:!1};case"image":return{url:"",alt:"",caption:"",size:"medium"};case"gallery":return{images:[],columns:3,gap:"medium"};case"video":return{url:"",type:"upload",autoplay:!1,controls:!0};case"audio":return{url:"",autoplay:!1,controls:!0};case"file":return{url:"",name:"",size:"",type:""};case"container":return{width:"full",padding:"medium",background:"none"};case"columns":return{columns:[],count:2,gap:"medium"};case"divider":return{style:"solid",width:"full",color:"gray"};case"spacer":return{height:"medium"};case"button":return{text:"",url:"",style:"primary",size:"medium"};case"form":return{fields:[],submitText:"Submit",action:""};case"tabs":return{tabs:[{title:"Tab 1",content:""}]};case"accordion":return{items:[{title:"Item 1",content:""}]};case"carousel":return{items:[],autoplay:!1,indicators:!0};case"table":return{headers:[],rows:[],striped:!0};case"chart":return{type:"bar",data:{},options:{}};case"timeline":return{items:[],style:"vertical"};case"calendar":return{events:[],view:"month"};case"map":return{latitude:0,longitude:0,zoom:13};case"social":return{platform:"",url:"",showCount:!0};case"customHtml":return{code:"",scripts:[]};case"markdown":return{content:"",sanitize:!0};case"svg":return{code:"",width:"auto",height:"auto"};case"animation":return{type:"fade",duration:300,delay:0};case"snippet":return{code:"",language:"javascript"};default:return{}}},V=t=>{const a={id:`block-${Date.now()}`,type:t,content:L(t)};s.value.contentBlocks.push(a)},I=t=>{s.value.contentBlocks=s.value.contentBlocks.filter(a=>a.id!==t)},T=t=>{console.log("Editing block:",t)},$=()=>{console.log("Form submitted:",s.value),k.push("/collections")};return(t,a)=>(i(),n("div",ye,[e("div",me,[e("div",ge,[e("div",pe,[e("div",he,[e("button",{onClick:a[0]||(a[0]=r=>m(k).push("/collections")),class:"mr-4 p-2 text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors"},[g(m(O),{class:"h-5 w-5"})]),e("h1",be,l(t.$t("collections.createCollection")),1)]),e("div",ke,[e("div",xe,[e("button",{class:v(["px-4 py-2 text-sm font-medium",[c.value==="edit"?"bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300":"bg-white text-gray-700 dark:bg-gray-700 dark:text-gray-200"]]),onClick:a[1]||(a[1]=r=>c.value="edit")}," Edit ",2),e("button",{class:v(["px-4 py-2 text-sm font-medium",[c.value==="preview"?"bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300":"bg-white text-gray-700 dark:bg-gray-700 dark:text-gray-200"]]),onClick:a[2]||(a[2]=r=>c.value="preview")}," Preview ",2)]),e("button",ve,[g(m(W),{class:"h-4 w-4 mr-2"}),D(" "+l(t.$t("common.actions.save"))+" "+l(t.$t("collections.title")),1)])])])])]),e("div",fe,[e("div",we,[e("div",_e,[e("div",Ce,[e("h2",Me,l(t.$t("common.content"))+" "+l(t.$t("collections.title")),1),(i(!0),n(f,null,w(z.value,(r,p)=>(i(),n("div",{key:p,class:"mb-6"},[e("h3",Be,l(p.charAt(0).toUpperCase()+p.slice(1)),1),e("div",ze,[(i(!0),n(f,null,w(r,d=>(i(),n("div",{key:d.id,onClick:Ee=>V(d.id),class:"flex flex-col items-center justify-center p-4 border border-gray-200 dark:border-gray-700 rounded-md hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer transition-colors"},[e("div",Ve,[(i(),U(E(d.icon),{class:"h-5 w-5"}))]),e("span",Ie,l(d.label),1)],8,Le))),128))])]))),128))])]),e("div",Te,[e("form",{id:"collection-form",onSubmit:F($,["prevent"]),class:"space-y-6"},[e("div",$e,[e("div",Se,[e("div",null,[e("label",qe,l(t.$t("collections.form.name")),1),h(e("input",{type:"text",name:"name",id:"name","onUpdate:modelValue":a[3]||(a[3]=r=>s.value.name=r),class:"mt-1 block w-full border border-gray-300 dark:border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-sky-500 focus:border-sky-500 sm:text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-colors",required:""},null,512),[[b,s.value.name]])]),e("div",null,[e("label",Ae,l(t.$t("collections.form.slug")),1),h(e("input",{type:"text",name:"slug",id:"slug","onUpdate:modelValue":a[4]||(a[4]=r=>s.value.slug=r),class:"mt-1 block w-full border border-gray-300 dark:border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-sky-500 focus:border-sky-500 sm:text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-colors",required:""},null,512),[[b,s.value.slug]])]),e("div",null,[e("label",je,l(t.$t("collections.form.description")),1),h(e("textarea",{name:"description",id:"description",rows:"3","onUpdate:modelValue":a[5]||(a[5]=r=>s.value.description=r),class:"mt-1 block w-full border border-gray-300 dark:border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-sky-500 focus:border-sky-500 sm:text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-colors"},null,512),[[b,s.value.description]])])])]),e("div",Pe,[e("div",De,[e("h3",Fe,l(t.$t("common.content"))+" "+l(t.$t("collections.title")),1),g(m(Q),{modelValue:s.value.contentBlocks,"onUpdate:modelValue":a[6]||(a[6]=r=>s.value.contentBlocks=r),"item-key":"id",handle:".handle",class:"space-y-4"},{item:Z(({element:r})=>[g(R,{block:r,onRemove:I,onEdit:T},null,8,["block"])]),_:1},8,["modelValue"]),s.value.contentBlocks.length===0?(i(),n("div",He,[e("div",Ze,l(t.$t("collections.dragToBuild")),1)])):H("",!0)])])],32)])])])]))}});export{We as default};
@@ -0,0 +1,11 @@
1
+ import{c as M,d as B,u as I,a as k,F as T,I as P,r as p,b as n,e,f as m,g as y,h as o,t as s,w as h,i as q,o as i,j as g,n as u,k as x,l as a,m as c,U as w}from"./index-DYyZmLWO.js";import{u as E}from"./vue.-sixQ7xP-DwXf3zRn.js";import{D as F}from"./database-BTxZQzYy.js";import{P as L}from"./plus-D9etvrM2.js";import{C}from"./calendar-hsWc4yH-.js";import{E as D,X as N,C as H}from"./x-circle-C3q70RMH.js";import{S as R}from"./square-pen-61CkyXzK.js";/**
2
+ * @license lucide-vue-next v0.344.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const A=M("TagIcon",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
7
+ * @license lucide-vue-next v0.344.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const V=M("UsersIcon",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]),z={class:"space-y-6"},J={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"},X={class:"flex justify-between items-start"},G={class:"text-sm font-medium text-gray-500 dark:text-gray-400"},K={class:"text-2xl font-semibold text-gray-900 dark:text-white mt-1"},W={class:"p-3 rounded-full bg-gray-100 dark:bg-gray-700"},O={class:"mt-4 flex items-center"},Q={class:"text-sm text-gray-500 dark:text-gray-400 ml-1"},Y={class:"bg-white dark:bg-gray-800 rounded-lg shadow-sm p-6 border border-gray-200 dark:border-gray-700"},Z={class:"flex items-center justify-between mb-6"},ee={class:"text-lg font-medium text-gray-900 dark:text-white"},te={class:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6"},se={class:"flex items-center justify-between mb-2"},ae={class:"text-lg font-medium text-gray-900 dark:text-white"},re={class:"text-sm font-medium text-gray-500 dark:text-gray-400"},oe={class:"text-sm text-gray-500 dark:text-gray-400"},de={class:"grid grid-cols-1 lg:grid-cols-2 gap-6"},ie={class:"bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},ce={class:"p-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between"},ne={class:"text-lg font-medium text-gray-900 dark:text-white"},le={class:"divide-y divide-gray-200 dark:divide-gray-700"},he={class:"flex items-center justify-between mb-2"},ge={class:"flex items-center space-x-4 text-sm text-gray-500 dark:text-gray-400"},ue={class:"flex items-center"},me={class:"flex items-center"},ye={class:"flex items-center"},xe={class:"flex items-center"},be={class:"bg-white dark:bg-gray-800 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700"},ve={class:"p-4 border-b border-gray-200 dark:border-gray-700 flex items-center justify-between"},_e={class:"text-lg font-medium text-gray-900 dark:text-white"},fe={class:"divide-y divide-gray-200 dark:divide-gray-700"},ke={class:"flex items-center justify-between mb-2"},pe={class:"flex items-center space-x-4 text-sm text-gray-500 dark:text-gray-400"},we={class:"flex items-center"},Ce={class:"flex items-center"},De={class:"flex items-center"},Ae={class:"flex items-center"},qe=B({__name:"Dashboard",setup(Me){const{t:d,locale:Se}=I();E({title:()=>d("dashboard.title")+" | CMS"});const S=k(()=>[{title:d("dashboard.stats.totalArticles"),value:"128",change:"+12%",trend:"up",icon:T,iconColor:"text-blue-500"},{title:d("dashboard.stats.totalMedia"),value:"843",change:"+5%",trend:"up",icon:P,iconColor:"text-purple-500"},{title:d("dashboard.stats.activeUsers"),value:"24",change:"+2",trend:"up",icon:V,iconColor:"text-green-500"},{title:d("dashboard.stats.apiRequests"),value:"15.2k",change:"-3%",trend:"down",icon:F,iconColor:"text-orange-500"}]),$=k(()=>[{name:d("dashboard.collections.articles"),description:d("dashboard.collections.articlesDesc"),count:128,path:"/collections/articles"},{name:d("dashboard.collections.posts"),description:d("dashboard.collections.postsDesc"),count:256,path:"/collections/posts"},{name:d("dashboard.collections.products"),description:d("dashboard.collections.productsDesc"),count:64,path:"/collections/products"},{name:d("dashboard.collections.categories"),description:d("dashboard.collections.categoriesDesc"),count:12,path:"/collections/categories"}]),U=p([{id:"1",title:"Getting Started with Keystatic CMS",author:"Alex Morgan",category:"Tutorials",status:"published",date:"2024-03-15",views:1245},{id:"2",title:"Content Modeling Best Practices",author:"Jamie Chen",category:"Best Practices",status:"published",date:"2024-03-14",views:932},{id:"3",title:"Advanced Content Builder Techniques",author:"Sam Wilson",category:"Advanced",status:"draft",date:"2024-03-13",views:0}]),j=p([{id:"1",title:"New Feature Release",author:"Riley Thompson",category:"Updates",status:"published",date:"2024-03-15",views:456},{id:"2",title:"Community Spotlight",author:"Jordan Lee",category:"Community",status:"published",date:"2024-03-14",views:789},{id:"3",title:"Upcoming Events",author:"Alex Morgan",category:"Events",status:"draft",date:"2024-03-13",views:0}]),b=r=>{const f=new Date(r);return new Intl.DateTimeFormat("en-US",{year:"numeric",month:"short",day:"numeric"}).format(f)},v=r=>{switch(r){case"published":return"bg-green-100 text-green-800 dark:bg-green-900 dark:text-green-200";case"draft":return"bg-yellow-100 text-yellow-800 dark:bg-yellow-900 dark:text-yellow-200";default:return"bg-gray-100 text-gray-800 dark:bg-gray-700 dark:text-gray-300"}},_=r=>{switch(r){case"published":return H;case"draft":return R;default:return N}};return(r,f)=>{const l=q("router-link");return i(),n("div",z,[e("div",J,[(i(!0),n(m,null,y(S.value,t=>(i(),n("div",{key:t.title,class:"bg-white dark:bg-gray-800 p-6 rounded-lg shadow-sm border border-gray-200 dark:border-gray-700 transform transition-transform duration-300 hover:scale-105"},[e("div",X,[e("div",null,[e("p",G,s(t.title),1),e("h3",K,s(t.value),1)]),e("div",W,[(i(),g(x(t.icon),{class:u(["h-6 w-6",t.iconColor])},null,8,["class"]))])]),e("div",O,[(i(),g(x(t.trend==="up"?"ArrowUp":"ArrowDown"),{class:u(["w-4 h-4 mr-1",t.trend==="up"?"text-green-500":"text-red-500"])},null,8,["class"])),e("span",{class:u(["text-sm font-medium",t.trend==="up"?"text-green-500":"text-red-500"])},s(t.change),3),e("span",Q,s(r.$t("dashboard.stats.fromLastMonth")),1)])]))),128))]),e("div",Y,[e("div",Z,[e("h2",ee,s(r.$t("dashboard.collections.title")),1),o(l,{to:"/collections",class:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-sky-600 hover:bg-sky-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},{default:h(()=>[o(c(L),{class:"h-4 w-4 mr-2"}),a(" "+s(r.$t("dashboard.collections.new")),1)]),_:1})]),e("div",te,[(i(!0),n(m,null,y($.value,t=>(i(),g(l,{key:t.name,to:t.path,class:"block p-6 bg-gray-50 dark:bg-gray-700 rounded-lg hover:bg-gray-100 dark:hover:bg-gray-600 transition-colors"},{default:h(()=>[e("div",se,[e("h3",ae,s(t.name),1),e("span",re,s(t.count)+" "+s(r.$t("dashboard.collections.items")),1)]),e("p",oe,s(t.description),1)]),_:2},1032,["to"]))),128))])]),e("div",de,[e("div",ie,[e("div",ce,[e("h2",ne,s(r.$t("dashboard.recentArticles")),1),o(l,{to:"/collections/articles",class:"text-sm text-sky-600 dark:text-sky-400 hover:text-sky-700 dark:hover:text-sky-300"},{default:h(()=>[a(s(r.$t("common.actions.viewAll")),1)]),_:1})]),e("div",le,[(i(!0),n(m,null,y(U.value,t=>(i(),n("div",{key:t.id,class:"p-4 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"},[e("div",he,[o(l,{to:`/collections/articles/${t.id}`,class:"text-base font-medium text-gray-900 dark:text-white hover:text-sky-600 dark:hover:text-sky-400"},{default:h(()=>[a(s(t.title),1)]),_:2},1032,["to"]),e("span",{class:u([v(t.status),"px-2.5 py-0.5 rounded-full text-xs font-medium inline-flex items-center"])},[(i(),g(x(_(t.status)),{class:"h-3 w-3 mr-1"})),a(" "+s(t.status),1)],2)]),e("div",ge,[e("div",ue,[o(c(w),{class:"h-4 w-4 mr-1"}),a(" "+s(t.author),1)]),e("div",me,[o(c(A),{class:"h-4 w-4 mr-1"}),a(" "+s(t.category),1)]),e("div",ye,[o(c(C),{class:"h-4 w-4 mr-1"}),a(" "+s(b(t.date)),1)]),e("div",xe,[o(c(D),{class:"h-4 w-4 mr-1"}),a(" "+s(t.views),1)])])]))),128))])]),e("div",be,[e("div",ve,[e("h2",_e,s(r.$t("dashboard.recentPosts")),1),o(l,{to:"/collections/posts",class:"text-sm text-sky-600 dark:text-sky-400 hover:text-sky-700 dark:hover:text-sky-300"},{default:h(()=>[a(s(r.$t("common.actions.viewAll")),1)]),_:1})]),e("div",fe,[(i(!0),n(m,null,y(j.value,t=>(i(),n("div",{key:t.id,class:"p-4 hover:bg-gray-50 dark:hover:bg-gray-700 transition-colors"},[e("div",ke,[o(l,{to:`/collections/posts/${t.id}`,class:"text-base font-medium text-gray-900 dark:text-white hover:text-sky-600 dark:hover:text-sky-400"},{default:h(()=>[a(s(t.title),1)]),_:2},1032,["to"]),e("span",{class:u([v(t.status),"px-2.5 py-0.5 rounded-full text-xs font-medium inline-flex items-center"])},[(i(),g(x(_(t.status)),{class:"h-3 w-3 mr-1"})),a(" "+s(t.status),1)],2)]),e("div",pe,[e("div",we,[o(c(w),{class:"h-4 w-4 mr-1"}),a(" "+s(t.author),1)]),e("div",Ce,[o(c(A),{class:"h-4 w-4 mr-1"}),a(" "+s(t.category),1)]),e("div",De,[o(c(C),{class:"h-4 w-4 mr-1"}),a(" "+s(b(t.date)),1)]),e("div",Ae,[o(c(D),{class:"h-4 w-4 mr-1"}),a(" "+s(t.views),1)])])]))),128))])])])])}}});export{qe as default};
@@ -0,0 +1 @@
1
+ import{d as B,r as b,u as C,b as c,e,m as d,x as $,h as l,t as a,n as y,l as T,f as V,g as D,y as L,s as g,v as m,z as A,w as S,j as E,k as I,I as N,P,A as U,o as i}from"./index-DYyZmLWO.js";import{d as j,T as k,L as F,a as M,_ as R}from"./ContentBlock.vue_vue_type_script_setup_true_lang-BwF6D-yB.js";import{u as q}from"./vue.-sixQ7xP-DwXf3zRn.js";import{A as z,S as H}from"./save-C2B6th9J.js";import"./settings-DbyDiH2g.js";import"./x-BNquQe5y.js";const G={class:"min-h-full bg-gray-50 dark:bg-gray-900"},J={class:"bg-white dark:bg-gray-800 shadow-sm border-b border-gray-200 dark:border-gray-700"},K={class:"px-4 sm:px-6 lg:px-8 py-4"},O={class:"flex items-center justify-between"},Q={class:"flex items-center"},W={class:"text-2xl font-semibold text-gray-900 dark:text-white"},X={class:"flex items-center space-x-3"},Y={class:"border border-gray-300 dark:border-gray-600 rounded-md overflow-hidden"},Z={type:"submit",form:"collection-form",class:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-sky-600 hover:bg-sky-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-sky-500 transition-colors"},ee={class:"max-w-7xl mx-auto px-4 sm:px-6 lg:px-8 py-8"},te={class:"grid grid-cols-12 gap-6"},oe={class:"col-span-12 md:col-span-3"},se={class:"bg-white dark:bg-gray-800 rounded-lg shadow-sm p-4 border border-gray-200 dark:border-gray-700"},re={class:"text-lg font-medium text-gray-900 dark:text-white mb-4"},ae={class:"grid grid-cols-2 gap-3"},ne=["onClick"],de={class:"mb-2"},le={class:"text-sm text-gray-700 dark:text-gray-300"},ie={class:"col-span-12 md:col-span-9"},ce={class:"bg-white dark:bg-gray-800 shadow-sm rounded-lg border border-gray-200 dark:border-gray-700"},ge={class:"p-6 space-y-6"},me={for:"name",class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},ue={for:"slug",class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},be={for:"description",class:"block text-sm font-medium text-gray-700 dark:text-gray-300"},ye={class:"bg-white dark:bg-gray-800 shadow-sm rounded-lg border border-gray-200 dark:border-gray-700"},ke={class:"p-6"},pe={class:"text-lg font-medium text-gray-900 dark:text-white mb-4"},he={key:0,class:"border-2 border-dashed border-gray-300 dark:border-gray-600 rounded-lg p-6"},xe={class:"text-center text-gray-500 dark:text-gray-400"},Ve=B({__name:"EditCollectionPage",setup(ve){const u=$();U();const n=b("edit"),{t:p}=C();q({title:()=>p("collections.editCollection")+" | CMS"});const r=b({name:"Articles",slug:"articles",description:"Blog articles and news posts",contentBlocks:[{id:"block-1",type:"heading",content:{text:"Article Title",level:1}},{id:"block-2",type:"paragraph",content:{text:"Article content goes here..."}},{id:"block-3",type:"image",content:{url:"",alt:"Featured Image"}}]}),h=[{id:"heading",label:"Heading",icon:k},{id:"paragraph",label:"Text",icon:k},{id:"image",label:"Image",icon:N},{id:"list",label:"List",icon:F},{id:"button",label:"Button",icon:M},{id:"divider",label:"Divider",icon:P}],x=t=>{switch(t){case"heading":return{text:"",level:1};case"paragraph":return{text:""};case"image":return{url:"",alt:""};case"list":return{items:[""]};case"button":return{text:"",url:""};case"divider":return{style:"solid"};default:return{}}},v=t=>{const o={id:`block-${Date.now()}`,type:t,content:x(t)};r.value.contentBlocks.push(o)},f=t=>{r.value.contentBlocks=r.value.contentBlocks.filter(o=>o.id!==t)},w=t=>{console.log("Editing block:",t)},_=()=>{console.log("Form submitted:",r.value),u.push("/collections")};return(t,o)=>(i(),c("div",G,[e("div",J,[e("div",K,[e("div",O,[e("div",Q,[e("button",{onClick:o[0]||(o[0]=s=>d(u).push("/collections")),class:"mr-4 p-2 text-gray-500 hover:text-gray-900 dark:text-gray-400 dark:hover:text-white rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 transition-colors"},[l(d(z),{class:"h-5 w-5"})]),e("h1",W,a(t.$t("collections.editCollection")),1)]),e("div",X,[e("div",Y,[e("button",{class:y(["px-4 py-2 text-sm font-medium",[n.value==="edit"?"bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300":"bg-white text-gray-700 dark:bg-gray-700 dark:text-gray-200"]]),onClick:o[1]||(o[1]=s=>n.value="edit")}," Edit ",2),e("button",{class:y(["px-4 py-2 text-sm font-medium",[n.value==="preview"?"bg-sky-100 text-sky-700 dark:bg-sky-900 dark:text-sky-300":"bg-white text-gray-700 dark:bg-gray-700 dark:text-gray-200"]]),onClick:o[2]||(o[2]=s=>n.value="preview")}," Preview ",2)]),e("button",Z,[l(d(H),{class:"h-4 w-4 mr-2"}),T(" "+a(t.$t("common.actions.save"))+" "+a(t.$t("common.actions.edit")),1)])])])])]),e("div",ee,[e("div",te,[e("div",oe,[e("div",se,[e("h2",re,a(t.$t("common.content"))+" "+a(t.$t("collections.title")),1),e("div",ae,[(i(),c(V,null,D(h,s=>e("div",{key:s.id,onClick:fe=>v(s.id),class:"flex flex-col items-center justify-center p-4 border border-gray-200 dark:border-gray-700 rounded-md hover:bg-gray-50 dark:hover:bg-gray-700 cursor-pointer transition-colors"},[e("div",de,[(i(),E(I(s.icon),{class:"h-5 w-5"}))]),e("span",le,a(s.label),1)],8,ne)),64))])])]),e("div",ie,[e("form",{id:"collection-form",onSubmit:L(_,["prevent"]),class:"space-y-6"},[e("div",ce,[e("div",ge,[e("div",null,[e("label",me,a(t.$t("collections.form.name")),1),g(e("input",{type:"text",name:"name",id:"name","onUpdate:modelValue":o[3]||(o[3]=s=>r.value.name=s),class:"mt-1 block w-full border border-gray-300 dark:border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-sky-500 focus:border-sky-500 sm:text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-colors",required:""},null,512),[[m,r.value.name]])]),e("div",null,[e("label",ue,a(t.$t("collections.form.slug")),1),g(e("input",{type:"text",name:"slug",id:"slug","onUpdate:modelValue":o[4]||(o[4]=s=>r.value.slug=s),class:"mt-1 block w-full border border-gray-300 dark:border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-sky-500 focus:border-sky-500 sm:text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-colors",required:""},null,512),[[m,r.value.slug]])]),e("div",null,[e("label",be,a(t.$t("collections.form.description")),1),g(e("textarea",{name:"description",id:"description",rows:"3","onUpdate:modelValue":o[5]||(o[5]=s=>r.value.description=s),class:"mt-1 block w-full border border-gray-300 dark:border-gray-600 rounded-md shadow-sm py-2 px-3 focus:outline-none focus:ring-sky-500 focus:border-sky-500 sm:text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white transition-colors"},null,512),[[m,r.value.description]])])])]),e("div",ye,[e("div",ke,[e("h3",pe,a(t.$t("common.content"))+" "+a(t.$t("collections.title")),1),l(d(j),{modelValue:r.value.contentBlocks,"onUpdate:modelValue":o[6]||(o[6]=s=>r.value.contentBlocks=s),"item-key":"id",handle:".handle",class:"space-y-4"},{item:S(({element:s})=>[l(R,{block:s,onRemove:f,onEdit:w},null,8,["block"])]),_:1},8,["modelValue"]),r.value.contentBlocks.length===0?(i(),c("div",he,[e("div",xe,a(t.$t("collections.dragToBuild")),1)])):A("",!0)])])],32)])])])]))}});export{Ve as default};
@@ -0,0 +1 @@
1
+ import{b as i,o as l,e as t,j as p,z as k,h as c,f as j,g as I,t as h,n as M,L as K,l as G,i as $,m as V,M as J,N as Q,r as _,w as Z,q as W}from"./index-DYyZmLWO.js";import{a as A}from"./index-xsH4HHeE.js";const w=(s,o)=>{const n=s.__vccOpts||s;for(const[r,e]of o)n[r]=e;return n},Y={},ee={xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function te(s,o){return l(),i("svg",ee,o[0]||(o[0]=[t("path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z"},null,-1),t("polyline",{points:"9 22 9 12 15 12 15 22"},null,-1)]))}const se=w(Y,[["render",te]]),ne={},oe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-chevron-right"};function le(s,o){return l(),i("svg",oe,o[0]||(o[0]=[t("path",{d:"m9 18 6-6-6-6"},null,-1)]))}const R=w(ne,[["render",le]]),ie={class:"flex items-center space-x-1 text-sm"},re=["onClick"],ae={__name:"MediaBreadcrumb",props:{currentPath:{type:Array,required:!0}},emits:["navigate"],setup(s){return(o,n)=>(l(),i("nav",ie,[t("button",{class:"inline-flex items-center justify-center h-8 px-2 text-sm font-medium transition-colors rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground",onClick:n[0]||(n[0]=r=>o.$emit("navigate",[]))},[c(se,{class:"w-4 h-4"})]),s.currentPath.length>0?(l(),p(R,{key:0,class:"w-4 h-4 text-muted-foreground"})):k("",!0),(l(!0),i(j,null,I(s.currentPath,(r,e)=>(l(),i("div",{key:e,class:"flex items-center"},[t("button",{class:M(["inline-flex items-center justify-center h-8 px-2 text-sm font-medium transition-colors rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 hover:bg-accent hover:text-accent-foreground",{"font-semibold":e===s.currentPath.length-1}]),onClick:m=>o.$emit("navigate",s.currentPath.slice(0,e+1))},h(r),11,re),e<s.currentPath.length-1?(l(),p(R,{key:0,class:"w-4 h-4 text-muted-foreground"})):k("",!0)]))),128))]))}},de={},ce={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"w-4 h-4 lucide lucide-layout-grid"};function ue(s,o){return l(),i("svg",ce,o[0]||(o[0]=[t("rect",{width:"7",height:"7",x:"3",y:"3",rx:"1"},null,-1),t("rect",{width:"7",height:"7",x:"14",y:"3",rx:"1"},null,-1),t("rect",{width:"7",height:"7",x:"14",y:"14",rx:"1"},null,-1),t("rect",{width:"7",height:"7",x:"3",y:"14",rx:"1"},null,-1)]))}const me=w(de,[["render",ue]]),ge={},he={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-list"};function fe(s,o){return l(),i("svg",he,o[0]||(o[0]=[K('<line x1="8" x2="21" y1="6" y2="6"></line><line x1="8" x2="21" y1="12" y2="12"></line><line x1="8" x2="21" y1="18" y2="18"></line><line x1="3" x2="3.01" y1="6" y2="6"></line><line x1="3" x2="3.01" y1="12" y2="12"></line><line x1="3" x2="3.01" y1="18" y2="18"></line>',6)]))}const pe=w(ge,[["render",fe]]),ve={},xe={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",class:"lucide lucide-plus"};function ye(s,o){return l(),i("svg",xe,o[0]||(o[0]=[t("path",{d:"M5 12h14"},null,-1),t("path",{d:"M12 5v14"},null,-1)]))}const E=w(ve,[["render",ye]]),be={class:"flex items-center gap-2"},we={class:"inline-flex border rounded-md"},_e={__name:"MediaViewControls",props:{modelValue:{type:String,required:!0}},emits:["update:modelValue","create-folder","file-change"],setup(s){return(o,n)=>(l(),i("div",be,[t("div",we,[t("button",{class:M(["inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground h-10 px-3",{"bg-gray-100":s.modelValue==="grid"}]),onClick:n[0]||(n[0]=r=>o.$emit("update:modelValue","grid")),"aria-label":"Grid view"},[c(me,{class:"w-4 h-4"})],2),t("button",{class:M(["inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground h-10 px-3",{"bg-gray-100":s.modelValue==="list"}]),onClick:n[1]||(n[1]=r=>o.$emit("update:modelValue","list")),"aria-label":"List view"},[c(pe,{class:"w-4 h-4"})],2)]),t("button",{class:"inline-flex items-center justify-center px-3 text-sm font-medium transition-colors border rounded-md whitespace-nowrap ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 border-input bg-background hover:bg-accent hover:text-accent-foreground h-9",onClick:n[2]||(n[2]=r=>o.$emit("create-folder"))},[c(E,{class:"w-4 h-4 mr-2"}),n[5]||(n[5]=G(" Нова папка "))]),t("div",null,[t("input",{type:"file",onChange:n[3]||(n[3]=r=>o.$emit("file-change",r)),ref:"fileInputRef",class:"hidden",multiple:""},null,544),t("button",{class:"flex bg-sky-600 hover:bg-sky-700 text-white px-3 py-1.5 rounded-md items-center gap-x-2",onClick:n[4]||(n[4]=r=>o.$refs.fileInputRef.click())},[c(E,{class:"w-4 h-4 mr-2"}),n[6]||(n[6]=G(" Завантажити медіа "))])])]))}},ke={},$e={"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"};function Ce(s,o){return l(),i("svg",$e,o[0]||(o[0]=[t("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H 13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"},null,-1),t("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"},null,-1)]))}const B=w(ke,[["render",Ce]]);function z(s){if(s===0)return"0 Bytes";const o=1024,n=["Bytes","KB","MB","GB","TB"],r=Math.floor(Math.log(s)/Math.log(o));return Number.parseFloat((s/Math.pow(o,r)).toFixed(2))+" "+n[r]}function H(s){return new Date(s).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})}const Fe={class:"grid grid-cols-2 gap-4 sm:grid-cols-3 md:grid-cols-4 lg:grid-cols-5"},Ve={key:0,class:"flex flex-col items-center justify-center h-64 text-muted-foreground col-span-full"},je=["onClick"],Me={class:"flex flex-col items-center text-center"},Be={class:"flex items-center justify-center w-16 h-16 mb-2"},Ae={key:0,class:"relative w-16 h-16"},He=["src","alt"],Ie={class:"w-full text-sm font-medium truncate"},ze={key:0,class:"text-xs text-muted-foreground"},De=["onClick"],Le={class:"text-sm"},Ne={__name:"MediaGrid",props:{files:{type:Array,required:!0},selectedFile:{type:Object,default:null}},emits:["file-click"],setup(s){return(o,n)=>{const r=$("File");return l(),i("div",Fe,[s.files.length===0?(l(),i("div",Ve,[c(r,{class:"w-12 h-12 mb-2"}),n[0]||(n[0]=t("p",null,"Немає файлів у цій папці",-1))])):k("",!0),(l(!0),i(j,null,I(s.files,e=>{var m;return l(),i(j,{key:e.id},[e.type==="file"?(l(),i("div",{key:0,class:M(["border rounded-lg p-3 h-[140px] cursor-pointer hover:bg-gray-100",{"bg-accent text-accent-foreground ring-2 ring-primary":((m=s.selectedFile)==null?void 0:m.id)===e.id}]),onClick:u=>o.$emit("file-click",e)},[t("div",Me,[t("div",Be,[(e==null?void 0:e.filetype)==="image"&&(e!=null&&e.filepath)?(l(),i("div",Ae,[t("img",{src:e==null?void 0:e.filepath,alt:(e==null?void 0:e.alt)||(e==null?void 0:e.filename),class:"object-cover w-full h-full rounded"},null,8,He)])):(l(),p(r,{key:1,class:"w-12 h-12 text-gray-500"}))]),t("div",Ie,h(e==null?void 0:e.filename),1),e.filesize?(l(),i("div",ze,h(V(z)(e.filesize)),1)):k("",!0)])],10,je)):e.type==="dir"?(l(),i("div",{key:1,class:"border rounded-lg p-3 hover:bg-gray-100 h-[140px] cursor-pointer flex flex-col items-center justify-center",onClick:u=>o.$emit("file-click",e)},[c(B,{class:"w-12 h-12 text-blue-500"}),t("span",Le,h(e==null?void 0:e.name),1)],8,De)):k("",!0)],64)}),128))])}}},Pe={},Se={"aria-hidden":"true",focusable:"false",role:"img",viewBox:"0 0 16 16",width:"16",height:"16",fill:"currentColor"};function Ue(s,o){return l(),i("svg",Se,o[0]||(o[0]=[t("path",{d:"M.513 1.513A1.75 1.75 0 0 1 1.75 1h3.5c.55 0 1.07.26 1.4.7l.9 1.2a.25.25 0 0 0 .2.1H 13a1 1 0 0 1 1 1v.5H2.75a.75.75 0 0 0 0 1.5h11.978a1 1 0 0 1 .994 1.117L15 13.25A1.75 1.75 0 0 1 13.25 15H1.75A1.75 1.75 0 0 1 0 13.25V2.75c0-.464.184-.91.513-1.237Z"},null,-1),t("path",{d:"M1.75 1A1.75 1.75 0 0 0 0 2.75v10.5C0 14.216.784 15 1.75 15h12.5A1.75 1.75 0 0 0 16 13.25v-8.5A1.75 1.75 0 0 0 14.25 3H7.5a.25.25 0 0 1-.2-.1l-.9-1.2C6.07 1.26 5.55 1 5 1H1.75Z"},null,-1)]))}const X=w(Pe,[["render",Ue]]),Te={key:0,class:"flex flex-col items-center justify-center h-64 text-muted-foreground"},qe={key:1,class:"w-full text-sm caption-bottom"},Oe={class:"[&_tr:last-child]:border-0"},Ge=["onClick"],Ze={class:"p-4 font-medium align-middle"},Re={class:"flex items-center gap-2"},Ee={key:1,class:"relative w-8 h-8"},Ke=["src","alt"],Xe={class:"truncate max-w-[200px]"},Je={class:"p-4 align-middle"},Qe={class:"p-4 align-middle"},We={class:"hidden p-4 align-middle md:table-cell"},Ye={__name:"MediaList",props:{files:{type:Array,required:!0},selectedFile:{type:Object,default:null}},emits:["file-click"],setup(s){return(o,n)=>{const r=$("File");return l(),i("div",null,[s.files.length===0?(l(),i("div",Te,[c(r,{class:"w-12 h-12 mb-2"}),n[0]||(n[0]=t("p",null,"Немає файлів у цій папці",-1))])):(l(),i("table",qe,[n[1]||(n[1]=t("thead",{class:"[&_tr]:border-b"},[t("tr",{class:"border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted"},[t("th",{class:"h-12 px-4 text-left align-middle font-medium text-muted-foreground w-[300px]"}," Назва "),t("th",{class:"h-12 px-4 font-medium text-left align-middle text-muted-foreground"}," Тип "),t("th",{class:"h-12 px-4 font-medium text-left align-middle text-muted-foreground"}," Розмір "),t("th",{class:"hidden h-12 px-4 font-medium text-left align-middle text-muted-foreground md:table-cell"}," Змінено ")])],-1)),t("tbody",Oe,[(l(!0),i(j,null,I(s.files,e=>{var m,u,v,f;return l(),i("tr",{key:e.id,class:M(["border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted cursor-pointer",{"bg-accent":((m=s.selectedFile)==null?void 0:m.id)===e.id}]),onClick:y=>o.$emit("file-click",e)},[t("td",Ze,[t("div",Re,[e.type==="dir"?(l(),p(B,{key:0,class:"w-5 h-5 text-blue-500"})):(e==null?void 0:e.filetype)==="image"&&(e!=null&&e.filepath)?(l(),i("div",Ee,[t("img",{src:e==null?void 0:e.filepath,alt:(e==null?void 0:e.alt)||(e==null?void 0:e.filename),class:"object-cover w-full h-full rounded"},null,8,Ke)])):(e==null?void 0:e.filetype)==="image"?(l(),p(X,{key:2,class:"w-5 h-5 text-green-500"})):(l(),p(r,{key:3,class:"w-5 h-5 text-gray-500"})),t("span",Xe,h((e==null?void 0:e.filename)||(e==null?void 0:e.name)),1)])]),t("td",Je,h((e==null?void 0:e.type)==="dir"?"Папка":((v=(u=e==null?void 0:e.filetype)==null?void 0:u.charAt(0))==null?void 0:v.toUpperCase())+((f=e==null?void 0:e.filetype)==null?void 0:f.slice(1))),1),t("td",Qe,h((e==null?void 0:e.type)==="dir"?"--":V(z)(e==null?void 0:e.filesize)),1),t("td",We,h(e!=null&&e.updated_at?V(H)(e==null?void 0:e.updated_at):"--"),1)],10,Ge)}),128))])]))])}}},et={},tt={xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"};function st(s,o){return l(),i("svg",tt,o[0]||(o[0]=[K('<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2z"></path><polyline points="14 2 14 8 20 8"></polyline><line x1="16" y1="13" x2="8" y2="13"></line><line x1="16" y1="17" x2="8" y2="17"></line><line x1="10" y1="9" x2="8" y2="9"></line>',5)]))}const nt=w(et,[["render",st]]),ot={class:"border rounded-lg shadow-sm bg-card text-card-foreground"},lt={class:"p-6 space-y-4"},it={key:0,class:"flex flex-col items-center justify-center h-64 text-muted-foreground"},rt={class:"flex justify-center mb-4"},at={key:1,class:"flex items-center justify-center w-full h-48"},dt=["src","alt"],ct={class:"text-lg font-semibold truncate"},ut={class:"text-sm text-muted-foreground"},mt={class:"space-y-2"},gt={class:"flex items-center gap-2"},ht={class:"ml-auto text-sm"},ft={class:"flex items-center gap-2"},pt={class:"ml-auto text-sm"},vt={class:"flex items-center gap-2"},xt={class:"ml-auto text-sm"},yt={key:0,class:"flex items-start gap-2"},bt={class:"ml-auto text-sm text-right"},wt={key:1,class:"flex items-start gap-2"},_t={class:"ml-auto text-sm text-right"},kt={__name:"MediaFileInfo",props:{file:{type:Object,default:null}},setup(s){return(o,n)=>{var u,v,f,y,C,x,b,d,a,g,F,D,L,N,P,S,U,T,q,O;const r=$("File"),e=$("HardDrive"),m=$("Calendar");return l(),i("div",ot,[n[7]||(n[7]=t("div",{class:"flex flex-col space-y-1.5 p-6"},[t("h3",{class:"text-2xl font-semibold leading-none tracking-tight"}," Інформація про файл ")],-1)),t("div",lt,[s.file?(l(),i(j,{key:1},[t("div",rt,[s.file.filetype==="folder"?(l(),p(B,{key:0,class:"w-24 h-24 text-blue-500"})):((u=s.file)==null?void 0:u.filetype)==="image"&&((v=s.file)!=null&&v.filepath)?(l(),i("div",at,[t("img",{src:(f=s.file)==null?void 0:f.filepath,alt:((y=s.file)==null?void 0:y.alt)||((C=s.file)==null?void 0:C.filename),class:"object-contain max-w-full max-h-full rounded"},null,8,dt)])):((x=s.file)==null?void 0:x.filetype)==="image"?(l(),p(X,{key:2,class:"w-24 h-24 text-green-500"})):(l(),p(r,{key:3,class:"w-24 h-24 text-gray-500"}))]),t("div",null,[t("h3",ct,h((b=s.file)==null?void 0:b.filename),1),t("p",ut,h(((d=s.file)==null?void 0:d.filetype)==="folder"?"Папка":((a=s.file)==null?void 0:a.filetype.charAt(0).toUpperCase())+((g=s.file)==null?void 0:g.filetype.slice(1))),1)]),n[6]||(n[6]=t("div",{class:"w-full h-px bg-border"},null,-1)),t("div",mt,[t("div",gt,[c(e,{class:"w-4 h-4 text-muted-foreground"}),n[1]||(n[1]=t("span",{class:"text-sm"},"Розмір: ",-1)),t("span",ht,h(((F=s.file)==null?void 0:F.filetype)==="folder"?"--":V(z)((D=s.file)==null?void 0:D.filesize)),1)]),t("div",ft,[c(m,{class:"w-4 h-4 text-muted-foreground"}),n[2]||(n[2]=t("span",{class:"text-sm"},"Створено: ",-1)),t("span",pt,h((L=s.file)!=null&&L.created_at?V(H)((N=s.file)==null?void 0:N.created_at):"--"),1)]),t("div",vt,[c(m,{class:"w-4 h-4 text-muted-foreground"}),n[3]||(n[3]=t("span",{class:"text-sm"},"Змінено: ",-1)),t("span",xt,h((P=s.file)!=null&&P.updated_at?V(H)((S=s.file)==null?void 0:S.updated_at):"--"),1)]),(U=s.file)!=null&&U.filepath?(l(),i("div",yt,[c(B,{class:"h-4 w-4 text-muted-foreground mt-0.5"}),n[4]||(n[4]=t("span",{class:"text-sm"},"Шлях: ",-1)),t("span",bt,h((T=s.file)==null?void 0:T.filepath),1)])):k("",!0),(q=s.file)!=null&&q.description?(l(),i("div",wt,[c(nt,{class:"h-4 w-4 text-muted-foreground mt-0.5"}),n[5]||(n[5]=t("span",{class:"text-sm"},"Опис: ",-1)),t("span",_t,h((O=s.file)==null?void 0:O.description),1)])):k("",!0)])],64)):(l(),i("div",it,n[0]||(n[0]=[t("p",null,"Виберіть файл для перегляду деталей",-1)])))])])}}},$t={class:"flex justify-end p-[20px] gap-[10px] border-t w-full"},Ct={__name:"MediaCreateFolder",props:{modelValue:{},modelModifiers:{}},emits:J(["update:modelValue","create"],["update:modelValue"]),setup(s,{emit:o}){const n=Q(s,"modelValue"),r=o,e=_({}),m={name:{name:"name",label:"Назва",type:"Text"}},u=()=>{r("create",{...e.value}),e.value={}};return(v,f)=>{const y=$("VsForm"),C=$("VsDialog");return l(),p(C,{visible:n.value,"onUpdate:visible":f[2]||(f[2]=x=>n.value=x),title:"Створити папку"},{footer:Z(()=>[t("div",$t,[t("button",{onClick:f[1]||(f[1]=x=>v.$emit("update:modelValue",!1)),class:"inline-flex items-center px-3 py-2 text-sm text-black duration-300 border border-gray-200 rounded-lg gap-x-2 whitespace-nowrap hover:bg-gray-100"}," Скасувати "),t("button",{onClick:u,class:"py-2 px-3 inline-flex items-center gap-x-2 text-sm whitespace-nowrap text-white bg-blue-500 rounded-lg !border-gray-200 hover:bg-blue-700 duration-300"}," Створити ")])]),default:Z(()=>[c(y,{scheme:m,modelValue:e.value,"onUpdate:modelValue":f[0]||(f[0]=x=>e.value=x)},null,8,["modelValue"])]),_:1},8,["visible"])}}},Ft={class:"container min-h-screen p-4 mx-auto"},Vt={class:"grid grid-cols-1 gap-6 lg:grid-cols-4"},jt={class:"space-y-4 lg:col-span-3"},Mt={class:"flex flex-col items-start justify-between gap-4 sm:flex-row sm:items-center"},Ht={__name:"MediaPage",setup(s){const o=_("grid"),n=_([]),r=_(null),e=_([]),m=_(!1),u=_([]),v=d=>{n.value=d,u.value=[...u.value,d],r.value=null,b()},f=()=>{u.value.length>1&&(u.value.pop(),n.value=u.value[u.value.length-1],r.value=null,b())},y=d=>{var a;d.type==="dir"?v([...n.value,d.name]):r.value=d.id===((a=r.value)==null?void 0:a.id)?null:d},C=async d=>{const a=d.target.files[0];if(!a)return;const g=new FormData;g.append("file",a);try{const F=n.value.join("/");await A.post(`/api/cms-media/upload?subdir=${F}`,g,{headers:{"Content-Type":"multipart/form-data","X-Skip-Session":"true"}}),await b()}catch(F){error.value="Failed to upload files",console.error("Upload error:",F)}},x=async d=>{try{const a=n.value.join("/");await A.post(`/api/cms-media/upload?subdir=${a}/${d.name}`),m.value=!1,await b()}catch{error.value="Failed to create folder"}},b=async()=>{try{const d=n.value.join("/"),a=await A.get("/api/cms-media",{params:{subdir:d}});a.data&&a.data.data?e.value=a.data.data.map(g=>({...g,id:g.type==="dir"?`dir-${g.name}`:g.name})):e.value=[]}catch(d){error.value="Failed to fetch files",console.error("Fetch error:",d),e.value=[]}};return W(()=>{u.value=[[]],b()}),(d,a)=>(l(),i("div",Ft,[a[4]||(a[4]=t("h1",{class:"mb-6 text-3xl font-bold"},"Медіа бібліотека",-1)),t("div",Vt,[t("div",jt,[t("div",Mt,[c(ae,{"current-path":n.value,onNavigate:v,onNavigateBack:f},null,8,["current-path"]),c(_e,{modelValue:o.value,"onUpdate:modelValue":a[0]||(a[0]=g=>o.value=g),onCreateFolder:a[1]||(a[1]=g=>m.value=!0),onFileChange:C},null,8,["modelValue"])]),a[3]||(a[3]=t("div",{class:"w-full h-px bg-border"},null,-1)),o.value==="grid"?(l(),p(Ne,{key:0,files:e.value,"selected-file":r.value,onFileClick:y},null,8,["files","selected-file"])):(l(),p(Ye,{key:1,files:e.value,"selected-file":r.value,onFileClick:y},null,8,["files","selected-file"]))]),c(kt,{file:r.value},null,8,["file"])]),c(Ct,{modelValue:m.value,"onUpdate:modelValue":a[2]||(a[2]=g=>m.value=g),onCreate:x},null,8,["modelValue"])]))}};export{Ht as default};