@bagelink/vue 1.9.106 → 1.9.110
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AddressSearch.vue.d.ts +4 -4
- package/dist/components/Dropdown.vue.d.ts +1 -1
- package/dist/components/Dropdown.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DateInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/SelectInput.vue.d.ts +8 -8
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +97 -97
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/Dropdown.vue +3 -1
- package/src/components/form/inputs/DateInput.vue +1 -0
- package/src/styles/toast-overrides.css +18 -17
|
@@ -89,7 +89,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
89
89
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
90
90
|
onShow?: (() => any) | undefined;
|
|
91
91
|
}>, {
|
|
92
|
-
show: () => void
|
|
92
|
+
show: () => Promise<void>;
|
|
93
93
|
hide: () => void;
|
|
94
94
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
95
95
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -170,19 +170,19 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
|
|
|
170
170
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
171
171
|
onShow?: (() => any) | undefined;
|
|
172
172
|
}>, "hide" | "shown" | "show" | ("flat" | "thin" | "placement" | "disablePlacement" | "autoHide" | "triggers" | "popperTriggers" | "popperShowTriggers" | "popperHideTriggers")> & import('vue').ShallowUnwrapRef<{
|
|
173
|
-
show: () => void
|
|
173
|
+
show: () => Promise<void>;
|
|
174
174
|
hide: () => void;
|
|
175
175
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
176
176
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
177
177
|
$slots: {
|
|
178
178
|
trigger?(_: {
|
|
179
|
-
show: () => void
|
|
179
|
+
show: () => Promise<void>;
|
|
180
180
|
hide: () => void;
|
|
181
181
|
shown: boolean;
|
|
182
182
|
}): any;
|
|
183
183
|
default?(_: {
|
|
184
184
|
hide: () => void;
|
|
185
|
-
show: () => void
|
|
185
|
+
show: () => Promise<void>;
|
|
186
186
|
shown: boolean;
|
|
187
187
|
}): any;
|
|
188
188
|
};
|
|
@@ -32,7 +32,7 @@ type __VLS_Props = {
|
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
declare const shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
35
|
-
declare function internalShow(): void
|
|
35
|
+
declare function internalShow(): Promise<void>;
|
|
36
36
|
declare function hide(): void;
|
|
37
37
|
type __VLS_PublicProps = {
|
|
38
38
|
'shown'?: typeof shown['value'];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.vue"],"names":[],"mappings":"AAEA;AAAA,
|
|
1
|
+
{"version":3,"file":"Dropdown.vue.d.ts","sourceRoot":"","sources":["../../src/components/Dropdown.vue"],"names":[],"mappings":"AAEA;AAAA,OA6TO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAKxD,MAAM,MAAM,IAAI,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;AACtD,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,KAAK,CAAA;AACvC,MAAM,MAAM,gBAAgB,GAAG,MAAM,GAAG,IAAI,GAAG,GAAG,IAAI,IAAI,SAAS,EAAE,CAAA;AACrE,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,OAAO,CAAA;AAI5C,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,SAAS,CAAC,EAAE,gBAAgB,CAAA;IAC5B,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,YAAY,EAAE,CAAA;IACzB,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,YAAY,CAAC,EAAE,YAAY,EAAE,CAAA;IAC7B,cAAc,CAAC,EAAE,YAAY,EAAE,CAAA;IAC/B,kBAAkB,CAAC,EAAE,YAAY,EAAE,CAAA;IACnC,kBAAkB,CAAC,EAAE,YAAY,EAAE,CAAA;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;CAC/C,CAAC;AAgBF,QAAA,MAAM,KAAK,2DAA0D,CAAA;AAoErE,iBAAe,YAAY,kBAY1B;AAYD,iBAAS,IAAI,SAAqB;AAoGlC,KAAK,iBAAiB,GAAG;IACzB,OAAO,CAAC,EAAE,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC;CAC/B,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WA6GT,OAAO,IAA6B;;;;;;YAdrB,GAAG;;;;;YACF,GAAG;;;;;;;EAkBhC;AAyBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;UAxXb,OAAO;UADP,OAAO;eAUF,gBAAgB;sBACT,OAAO;cAEf,OAAO;cACP,YAAY,EAAE;oBAGR,YAAY,EAAE;wBACV,YAAY,EAAE;wBACd,YAAY,EAAE;;;;OAgXlC,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DateInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DateInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DateInput.vue"],"names":[],"mappings":"AAmNA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAI/D,OAAO,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAG7D,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,KAAK,CAAC,EAAE,MAAM,CAAA;CACd,CAAC;AA6JH,KAAK,iBAAiB,GAAG;IACzB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC1B,GAAG,WAAW,CAAC;;;;;;WA9KN,OAAO;UASR,QAAQ;YAGN,MAAM;cAbJ,OAAO;gBAML,OAAO;oBAMH,cAAc;;;;;AAoVjC,wBAUG"}
|
|
@@ -111,7 +111,7 @@ declare function __VLS_template(): {
|
|
|
111
111
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
112
112
|
onShow?: (() => any) | undefined;
|
|
113
113
|
}>, {
|
|
114
|
-
show: () => void
|
|
114
|
+
show: () => Promise<void>;
|
|
115
115
|
hide: () => void;
|
|
116
116
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
117
117
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -192,19 +192,19 @@ declare function __VLS_template(): {
|
|
|
192
192
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
193
193
|
onShow?: (() => any) | undefined;
|
|
194
194
|
}>, "hide" | "shown" | "show" | ("flat" | "thin" | "placement" | "disablePlacement" | "autoHide" | "triggers" | "popperTriggers" | "popperShowTriggers" | "popperHideTriggers")> & import('vue').ShallowUnwrapRef<{
|
|
195
|
-
show: () => void
|
|
195
|
+
show: () => Promise<void>;
|
|
196
196
|
hide: () => void;
|
|
197
197
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
198
198
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
199
199
|
$slots: {
|
|
200
200
|
trigger?(_: {
|
|
201
|
-
show: () => void
|
|
201
|
+
show: () => Promise<void>;
|
|
202
202
|
hide: () => void;
|
|
203
203
|
shown: boolean;
|
|
204
204
|
}): any;
|
|
205
205
|
default?(_: {
|
|
206
206
|
hide: () => void;
|
|
207
|
-
show: () => void
|
|
207
|
+
show: () => Promise<void>;
|
|
208
208
|
shown: boolean;
|
|
209
209
|
}): any;
|
|
210
210
|
};
|
|
@@ -339,7 +339,7 @@ declare const __VLS_component: import('vue').DefineComponent<PropTypes, {}, {},
|
|
|
339
339
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
340
340
|
onShow?: (() => any) | undefined;
|
|
341
341
|
}>, {
|
|
342
|
-
show: () => void
|
|
342
|
+
show: () => Promise<void>;
|
|
343
343
|
hide: () => void;
|
|
344
344
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
345
345
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
@@ -420,19 +420,19 @@ declare const __VLS_component: import('vue').DefineComponent<PropTypes, {}, {},
|
|
|
420
420
|
"onUpdate:shown"?: ((value: boolean) => any) | undefined;
|
|
421
421
|
onShow?: (() => any) | undefined;
|
|
422
422
|
}>, "hide" | "shown" | "show" | ("flat" | "thin" | "placement" | "disablePlacement" | "autoHide" | "triggers" | "popperTriggers" | "popperShowTriggers" | "popperHideTriggers")> & import('vue').ShallowUnwrapRef<{
|
|
423
|
-
show: () => void
|
|
423
|
+
show: () => Promise<void>;
|
|
424
424
|
hide: () => void;
|
|
425
425
|
shown: import('vue').ModelRef<boolean, string, boolean, boolean>;
|
|
426
426
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
427
427
|
$slots: {
|
|
428
428
|
trigger?(_: {
|
|
429
|
-
show: () => void
|
|
429
|
+
show: () => Promise<void>;
|
|
430
430
|
hide: () => void;
|
|
431
431
|
shown: boolean;
|
|
432
432
|
}): any;
|
|
433
433
|
default?(_: {
|
|
434
434
|
hide: () => void;
|
|
435
|
-
show: () => void
|
|
435
|
+
show: () => Promise<void>;
|
|
436
436
|
shown: boolean;
|
|
437
437
|
}): any;
|
|
438
438
|
};
|
package/dist/index.cjs
CHANGED
|
@@ -17,7 +17,7 @@ ${f}}`:h.map(([m,g])=>{const b=typeof g=="object"&&g!==null?l(g,d+1):String(g);r
|
|
|
17
17
|
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
|
|
18
18
|
transition: transform 0.1s;
|
|
19
19
|
}
|
|
20
|
-
`,document.head.appendChild(F)}const s={animation:150,mode:"line",ghostClass:"draggable-ghost",dragClass:"draggable-dragging",dropIndicatorClass:"draggable-drop-indicator",...e};let c=0,u=0,d=0,f=0,p=0,h,m=null,g=-1,b=0;const v=150,y=new Map;function _(H){if(!i)return null;const F=H.cloneNode(!0),Z=H.getBoundingClientRect();return F.style.position="fixed",F.style.margin="0",F.style.top=`${Z.top}px`,F.style.left=`${Z.left}px`,F.style.width=`${Z.width}px`,F.style.height=`${Z.height}px`,F.style.transform="translate3d(0, 0, 0)",F.style.pointerEvents="none",F.style.zIndex="9999",F.style.cursor="grabbing",F.style.willChange="transform",F.classList.add(s.ghostClass),document.body.appendChild(F),F}function w(H){if(!i)return null;const F=document.createElement("div");F.classList.add(s.dropIndicatorClass),F.style.position="fixed",F.style.pointerEvents="none",F.style.zIndex="9999",F.style.height="2px",F.style.background="var(--primary-color, #0066ff)",F.style.boxShadow="0 0 4px rgba(0, 102, 255, 0.5)",F.style.transition="all 0.15s ease",F.style.display="none";const Z=document.createElement("div");return Z.style.position="absolute",Z.style.left="-4px",Z.style.top="-3px",Z.style.width="8px",Z.style.height="8px",Z.style.borderRadius="50%",Z.style.background="var(--primary-color, #0066ff)",F.appendChild(Z),document.body.appendChild(F),F}function $(H,F){if(!a.value)return;const Z=H.getBoundingClientRect();a.value.style.display="block",a.value.style.width=`${Z.width}px`,a.value.style.left=`${Z.left}px`,F?a.value.style.top=`${Z.bottom}px`:a.value.style.top=`${Z.top}px`}function k(H){let F=H;for(;F&&(!("__drag_group"in F)||F.dataset.draggable==="false");)F=F.parentElement;return F}function C(H){return H.style.opacity="0.4",H.style.transform="scale(0.95)",H.offsetHeight}function D(H){return H.style.opacity="0.5",2}function x(H){y.clear(),H.forEach((F,Z)=>{const te=F.getBoundingClientRect();y.set(Z,{top:te.top,bottom:te.bottom})})}function L(H,F,Z,te){const be=Date.now();if(be-b<v)return g!==-1?g:Z;y.size===0&&x(F);const he=H.clientY,Me=F.indexOf(te),Ie=y.get(Me);if(!Ie)return Z;const Ne=Ie.bottom-Ie.top,ot=he-Ie.top,qe=Ne*.3,me=Ne*.7;let we=Me;return Me===Z?ot>me&&(we+=1):Me===g?Me>Z?ot<qe?we=Me:we=Me+1:ot>me?we=Me+1:we=Me:ot>Ne*.6&&(we+=1),g=we,b=be,we}function M(){if(i){if(document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R),document.removeEventListener("keydown",E),document.removeEventListener("touchmove",ne),document.removeEventListener("touchend",ee),document.removeEventListener("touchcancel",ee),window.removeEventListener("blur",M),r.value&&(r.value.style.opacity="0",r.value.style.transform+=" scale(0.8)",setTimeout(()=>{var H,F;(F=(H=r.value)==null?void 0:H.parentNode)==null||F.removeChild(r.value),r.value=null},150)),a.value&&(a.value.style.opacity="0",setTimeout(()=>{var H,F;(F=(H=a.value)==null?void 0:H.parentNode)==null||F.removeChild(a.value),a.value=null},150)),n.value){const H=n.value.__drag_list;H==null||H.forEach(F=>{F.style.transition="",F.style.transform="",F.style.opacity=""}),n.value.classList.remove(s.dragClass),n.value=null}t.value=!1,l.value=null,i&&(document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor=""),m&&(cancelAnimationFrame(m),m=null),g=-1,b=0,y.clear()}}function E(H){H.key==="Escape"&&t.value&&M()}function S(H){var te;if(!i||s.disabled||H.button!==0||H.ctrlKey||H.metaKey||H.shiftKey||H.altKey)return;const F=k(H.target);if(!F||F.dataset.draggable==="false")return;if(s.handle){const be=H.target.closest(s.handle);if(!be||!F.contains(be))return}H.preventDefault(),t.value=!0,n.value=F,c=H.clientX,u=H.clientY;const Z=F.getBoundingClientRect();d=Z.left,f=Z.top,r.value=_(F),r.value&&(r.value.style.left=`${d}px`,r.value.style.top=`${f}px`),s.mode==="line"&&(a.value=w()),F.classList.add(s.dragClass),p=s.mode==="ghost"?C(F):D(F),(te=s.onStart)==null||te.call(s,H),i&&(document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="grabbing",window.addEventListener("blur",M),document.addEventListener("mousemove",P),document.addEventListener("mouseup",R),document.addEventListener("keydown",E))}function A(H){let F=H.parentElement;for(;F;){const{overflow:Z,overflowY:te}=window.getComputedStyle(F);if(/auto|scroll/.test(Z+te))return F;F=F.parentElement}return document.scrollingElement||document.documentElement||document.body}function B(H){n.value&&(m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{const F=A(n.value),Z=F.getBoundingClientRect(),te=50,be=Math.min(20,Z.height*.1),{scrollTop:he}=F,Me=F.scrollHeight-F.clientHeight;if(H.clientY-Z.top<te){const Ie=Math.max(0,he-be);F.scrollTop=Ie}else if(Z.bottom-H.clientY<te){const Ie=Math.min(Me,he+be);F.scrollTop=Ie}}))}function P(H){if(!t.value||!n.value)return;if(r.value){const Ie=H.clientX-c,Ne=H.clientY-u;r.value.style.transform=`translate3d(${Ie}px, ${Ne}px, 0)`}const Z=n.value.__drag_list.filter(Ie=>Ie.dataset.draggable!=="false"),te=Z.indexOf(n.value),be=document.elementFromPoint(H.clientX,H.clientY),he=k(be);if(!he||he.__drag_group!==n.value.__drag_group){a.value&&(a.value.style.display="none");return}const Me=L(H,Z,te,he);if(l.value!==he||l.value.__intended_index!==Me){if(l.value=he,l.value.__intended_index=Me,a.value&&s.mode==="line"){const Ne=Me>te;$(he,Ne)}const Ie=p;Z.forEach(Ne=>{if(Ne.style.transition=`transform ${s.animation}ms cubic-bezier(0.2, 0, 0, 1)`,Ne.style.transform="translate3d(0, 0, 0)",Ne===n.value){if(s.mode==="ghost"){const ot=(Me-te)*Ie;Ne.style.transform=`translate3d(0, ${ot}px, 0)`}}else{const ot=Z.indexOf(Ne);te<Me?ot>te&&ot<=Me&&(Ne.style.transform=`translate3d(0, -${Ie}px, 0)`):te>Me&&ot>=Me&&ot<te&&(Ne.style.transform=`translate3d(0, ${Ie}px, 0)`)}})}B(H)}function R(H){var he;if(!t.value||!n.value||!l.value){M();return}const F=n.value.__drag_list;if(!F||!F.length){M();return}const te=F.filter(Me=>Me.dataset.draggable!=="false").indexOf(n.value),be=l.value.__intended_index;if(te!==-1&&be!==-1){F.forEach(Ie=>{Ie.style.transition="none",Ie.style.transform=""}),document.body.offsetHeight;const Me=new MouseEvent("mouseup",H);Me.oldIndex=te,Me.newIndex=be,Me.item=n.value.__drag_data,(he=s.onEnd)==null||he.call(s,Me)}M()}function V(H){var Me;if(!i||s.disabled||!H.target)return;const F=H.touches[0];if(!F)return;const Z=H.target,te=k(Z);if(!te)return;const{handle:be}=s;if(be&&!Z.closest(be))return;H.preventDefault(),t.value=!0,n.value=te,c=F.clientX,u=F.clientY;const he=te.getBoundingClientRect();d=he.left,f=he.top,r.value=_(te),r.value&&(r.value.style.left=`${d}px`,r.value.style.top=`${f}px`),s.mode==="line"&&(a.value=w()),n.value.classList.add(s.dragClass),p=s.mode==="ghost"?C(n.value):D(n.value),(Me=s.onStart)==null||Me.call(s,H),i&&(document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="grabbing",window.addEventListener("blur",M),document.addEventListener("touchmove",ne,{passive:!1}),document.addEventListener("touchend",ee),document.addEventListener("touchcancel",ee))}function ne(H){H.preventDefault();const F=H.touches[0];if(!F)return;const Z={clientX:F.clientX,clientY:F.clientY,target:document.elementFromPoint(F.clientX,F.clientY)};P(Z),B(Z)}function ee(H){const F=H.changedTouches[0];if(!F)return;const Z={clientX:F.clientX,clientY:F.clientY,target:document.elementFromPoint(F.clientX,F.clientY)};R(Z),document.removeEventListener("touchmove",ne),document.removeEventListener("touchend",ee),document.removeEventListener("touchcancel",ee)}function I(H){if(!i)return;h==null||h(),t.value=!1,n.value=null,r.value=null,a.value=null,l.value=null;const F=Array.from(H.children);F.forEach(te=>{delete te.__drag_group,delete te.__drag_index,delete te.__drag_list});let Z=0;F.forEach((te,be)=>{te.dataset.draggable!=="false"&&(te.style.userSelect="none",te.style.webkitUserSelect="none",te.__drag_group=e.group,te.__drag_index=Z++,te.__drag_list=F.filter(he=>he.dataset.draggable!=="false"),e.items&&(te.__drag_data=e.items[be]),te.addEventListener("mousedown",S),te.addEventListener("touchstart",V))}),h=()=>{F.forEach(te=>{te.removeEventListener("mousedown",S),te.removeEventListener("touchstart",V),delete te.__drag_group,delete te.__drag_index,delete te.__drag_list}),M()}}return o.onUnmounted(()=>{h==null||h()}),{isDragging:t,dragElement:n,initDraggableContainer:I}}const j_=o.defineComponent({__name:"Draggable",props:{modelValue:{},group:{},handle:{},mode:{default:"line"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","start","end"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(),{initDraggableContainer:l}=Gl({group:n.group,handle:n.handle,mode:n.mode,disabled:n.disabled,items:n.modelValue,onStart:i=>{r("start",i)},onEnd:i=>{const s=[...n.modelValue],[c]=s.splice(i.oldIndex,1);s.splice(i.newIndex,0,c),r("update:modelValue",s),r("end",i),o.nextTick(()=>{a.value&&l(a.value)})}});return o.watch(()=>n.modelValue,()=>{a.value&&l(a.value)},{deep:!0}),o.onMounted(()=>{a.value&&l(a.value)}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dragContainer",ref:a},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.modelValue,(c,u)=>o.renderSlot(i.$slots,"default",{key:u,item:c,index:u})),128))],512))}}),W_={mounted(e,t){const{initDraggableContainer:n}=Gl(t.value||{});n(e)},updated(e,t){if(t.value!==t.oldValue){const{initDraggableContainer:n}=Gl(t.value||{});n(e)}}},q_={key:0,class:"drag-overlay"},G_=o.defineComponent({__name:"DragOver",props:{multiple:{type:Boolean},accept:{},disabled:{type:Boolean},browse:{type:Boolean}},emits:["addFiles"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(!1),l=o.ref(0);function i(f){n.disabled||(f.preventDefault(),f.stopPropagation(),l.value++,a.value=!0)}function s(f){n.disabled||(f.preventDefault(),f.stopPropagation())}function c(f){n.disabled||(f.preventDefault(),f.stopPropagation(),l.value--,l.value===0&&(a.value=!1))}function u(f){if(!n.browse||n.disabled)return;f.preventDefault(),f.stopPropagation();const p=document.createElement("input");p.type="file",p.multiple=!!n.multiple,p.accept=n.accept||"*",p.onchange=h=>{const{files:m}=h.target;m&&r("addFiles",m)},p.click()}function d(f){n.disabled||(f.preventDefault(),f.stopPropagation(),l.value=0,a.value=!1,f.dataTransfer&&r("addFiles",f.dataTransfer.files))}return(f,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["drag-over-container",{"is-dragging":a.value,"is-disabled":e.disabled}]),onDragenter:i,onDragover:s,onDragleave:c,onDrop:d,onClick:u},[o.renderSlot(f.$slots,"default",{},void 0,!0),a.value&&!e.disabled?(o.openBlock(),o.createElementBlock("div",q_,[o.createVNode(o.unref(xe),{name:"download",color:"white",size:"2"})])):o.createCommentVNode("",!0)],34))}}),yc=De(G_,[["__scopeId","data-v-8facbf91"]]),Y_=["top","right","bottom","left"],Fd=["start","end"],zd=Y_.reduce((e,t)=>e.concat(t,t+"-"+Fd[0],t+"-"+Fd[1]),[]),bc=Math.min,Er=Math.max,Yl=Math.round,Wn=e=>({x:e,y:e}),X_={left:"right",right:"left",bottom:"top",top:"bottom"},K_={start:"end",end:"start"};function Ud(e,t,n){return Er(e,bc(t,n))}function Ka(e,t){return typeof e=="function"?e(t):e}function ho(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function ph(e){return e==="x"?"y":"x"}function hh(e){return e==="y"?"height":"width"}const J_=new Set(["top","bottom"]);function To(e){return J_.has(ho(e))?"y":"x"}function gh(e){return ph(To(e))}function vh(e,t,n){n===void 0&&(n=!1);const r=fo(e),a=gh(e),l=hh(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Kl(i)),[i,Kl(i)]}function Z_(e){const t=Kl(e);return[Xl(e),t,Xl(t)]}function Xl(e){return e.replace(/start|end/g,t=>K_[t])}const Hd=["left","right"],jd=["right","left"],Q_=["top","bottom"],ew=["bottom","top"];function tw(e,t,n){switch(e){case"top":case"bottom":return n?t?jd:Hd:t?Hd:jd;case"left":case"right":return t?Q_:ew;default:return[]}}function nw(e,t,n,r){const a=fo(e);let l=tw(ho(e),n==="start",r);return a&&(l=l.map(i=>i+"-"+a),t&&(l=l.concat(l.map(Xl)))),l}function Kl(e){return e.replace(/left|right|bottom|top/g,t=>X_[t])}function ow(e){return{top:0,right:0,bottom:0,left:0,...e}}function rw(e){return typeof e!="number"?ow(e):{top:e,right:e,bottom:e,left:e}}function Jl(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Wd(e,t,n){let{reference:r,floating:a}=e;const l=To(t),i=gh(t),s=hh(i),c=ho(t),u=l==="y",d=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(c){case"top":h={x:d,y:r.y-a.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-a.width,y:f};break;default:h={x:r.x,y:r.y}}switch(fo(t)){case"start":h[i]-=p*(n&&u?-1:1);break;case"end":h[i]+=p*(n&&u?-1:1);break}return h}async function aw(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:l,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ka(t,e),m=rw(h),b=s[p?f==="floating"?"reference":"floating":f],v=Jl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),w=await(l.isElement==null?void 0:l.isElement(_))?await(l.getScale==null?void 0:l.getScale(_))||{x:1,y:1}:{x:1,y:1},$=Jl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:_,strategy:c}):y);return{top:(v.top-$.top+m.top)/w.y,bottom:($.bottom-v.bottom+m.bottom)/w.y,left:(v.left-$.left+m.left)/w.x,right:($.right-v.right+m.right)/w.x}}const lw=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Wd(u,r,c),p=r,h={},m=0;for(let b=0;b<s.length;b++){var g;const{name:v,fn:y}=s[b],{x:_,y:w,data:$,reset:k}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:u,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:aw},elements:{reference:e,floating:t}});d=_??d,f=w??f,h={...h,[v]:{...h[v],...$}},k&&m<=50&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:d,y:f}=Wd(u,p,c)),b=-1)}return{x:d,y:f,placement:p,strategy:a,middlewareData:h}};function iw(e,t,n){return(e?[...n.filter(a=>fo(a)===e),...n.filter(a=>fo(a)!==e)]:n.filter(a=>ho(a)===a)).filter(a=>e?fo(a)===e||(t?Xl(a)!==a:!1):!0)}const sw=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:l,middlewareData:i,placement:s,platform:c,elements:u}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:p=zd,autoAlignment:h=!0,...m}=Ka(e,t),g=f!==void 0||p===zd?iw(f||null,h,p):p,b=await c.detectOverflow(t,m),v=((n=i.autoPlacement)==null?void 0:n.index)||0,y=g[v];if(y==null)return{};const _=vh(y,l,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(s!==y)return{reset:{placement:g[0]}};const w=[b[ho(y)],b[_[0]],b[_[1]]],$=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:w}],k=g[v+1];if(k)return{data:{index:v+1,overflows:$},reset:{placement:k}};const C=$.map(L=>{const M=fo(L.placement);return[L.placement,M&&d?L.overflows.slice(0,2).reduce((E,S)=>E+S,0):L.overflows[0],L.overflows]}).sort((L,M)=>L[1]-M[1]),x=((a=C.filter(L=>L[2].slice(0,fo(L[0])?2:3).every(M=>M<=0))[0])==null?void 0:a[0])||C[0][0];return x!==s?{data:{index:v+1,overflows:$},reset:{placement:x}}:{}}}},cw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:l,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ka(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const v=ho(a),y=To(s),_=ho(s)===s,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),$=p||(_||!g?[Kl(s)]:Z_(s)),k=m!=="none";!p&&k&&$.push(...nw(s,g,m,w));const C=[s,...$],D=await c.detectOverflow(t,b),x=[];let L=((r=l.flip)==null?void 0:r.overflows)||[];if(d&&x.push(D[v]),f){const A=vh(a,i,w);x.push(D[A[0]],D[A[1]])}if(L=[...L,{placement:a,overflows:x}],!x.every(A=>A<=0)){var M,E;const A=(((M=l.flip)==null?void 0:M.index)||0)+1,B=C[A];if(B&&(!(f==="alignment"?y!==To(B):!1)||L.every(V=>To(V.placement)===y?V.overflows[0]>0:!0)))return{data:{index:A,overflows:L},reset:{placement:B}};let P=(E=L.filter(R=>R.overflows[0]<=0).sort((R,V)=>R.overflows[1]-V.overflows[1])[0])==null?void 0:E.placement;if(!P)switch(h){case"bestFit":{var S;const R=(S=L.filter(V=>{if(k){const ne=To(V.placement);return ne===y||ne==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ne=>ne>0).reduce((ne,ee)=>ne+ee,0)]).sort((V,ne)=>V[1]-ne[1])[0])==null?void 0:S[0];R&&(P=R);break}case"initialPlacement":P=s;break}if(a!==P)return{reset:{placement:P}}}return{}}}},uw=new Set(["left","top"]);async function dw(e,t){const{placement:n,platform:r,elements:a}=e,l=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=ho(n),s=fo(n),c=To(n)==="y",u=uw.has(i)?-1:1,d=l&&c?-1:1,f=Ka(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*d,y:p*u}:{x:p*u,y:h*d}}const fw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:l,placement:i,middlewareData:s}=t,c=await dw(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:l+c.y,data:{...c,placement:i}}}}},mw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:l}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:y,y:_}=v;return{x:y,y:_}}},...u}=Ka(e,t),d={x:n,y:r},f=await l.detectOverflow(t,u),p=To(ho(a)),h=ph(p);let m=d[h],g=d[p];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=m+f[v],w=m-f[y];m=Ud(_,m,w)}if(s){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",_=g+f[v],w=g-f[y];g=Ud(_,g,w)}const b=c.fn({...t,[h]:m,[p]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:i,[p]:s}}}}}};function Ni(){return typeof window<"u"}function Hr(e){return yh(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yo(e){var t;return(t=(yh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yh(e){return Ni()?e instanceof Node||e instanceof hn(e).Node:!1}function Ln(e){return Ni()?e instanceof Element||e instanceof hn(e).Element:!1}function Jn(e){return Ni()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function qd(e){return!Ni()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const pw=new Set(["inline","contents"]);function Ja(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pw.has(a)}const hw=new Set(["table","td","th"]);function gw(e){return hw.has(Hr(e))}const vw=[":popover-open",":modal"];function Di(e){return vw.some(t=>{try{return e.matches(t)}catch{return!1}})}const yw=["transform","translate","scale","rotate","perspective"],bw=["transform","translate","scale","rotate","perspective","filter"],_w=["paint","layout","strict","content"];function Eu(e){const t=Cu(),n=Ln(e)?Mn(e):e;return yw.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bw.some(r=>(n.willChange||"").includes(r))||_w.some(r=>(n.contain||"").includes(r))}function ww(e){let t=Lo(e);for(;Jn(t)&&!Ar(t);){if(Eu(t))return t;if(Di(t))return null;t=Lo(t)}return null}function Cu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $w=new Set(["html","body","#document"]);function Ar(e){return $w.has(Hr(e))}function Mn(e){return hn(e).getComputedStyle(e)}function Ai(e){return Ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lo(e){if(Hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qd(e)&&e.host||yo(e);return qd(t)?t.host:t}function bh(e){const t=Lo(e);return Ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jn(t)&&Ja(t)?t:bh(t)}function _h(e,t,n){var r;t===void 0&&(t=[]);const a=bh(e),l=a===((r=e.ownerDocument)==null?void 0:r.body),i=hn(a);return l?(_c(i),t.concat(i,i.visualViewport||[],Ja(a)?a:[],[])):t.concat(a,_h(a,[]))}function _c(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wh(e){const t=Mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Jn(e),l=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=Yl(n)!==l||Yl(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function $h(e){return Ln(e)?e:e.contextElement}function Cr(e){const t=$h(e);if(!Jn(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:l}=wh(t);let i=(l?Yl(n.width):n.width)/r,s=(l?Yl(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const kw=Wn(0);function kh(e){const t=hn(e);return!Cu()||!t.visualViewport?kw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ew(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hn(e)?!1:t}function ka(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=$h(e);let i=Wn(1);t&&(r?Ln(r)&&(i=Cr(r)):i=Cr(e));const s=Ew(l,n,r)?kh(l):Wn(0);let c=(a.left+s.x)/i.x,u=(a.top+s.y)/i.y,d=a.width/i.x,f=a.height/i.y;if(l){const p=hn(l),h=r&&Ln(r)?hn(r):r;let m=p,g=_c(m);for(;g&&r&&h!==m;){const b=Cr(g),v=g.getBoundingClientRect(),y=Mn(g),_=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,w=v.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=_,u+=w,m=hn(g),g=_c(m)}}return Jl({width:d,height:f,x:c,y:u})}function Bi(e,t){const n=Ai(e).scrollLeft;return t?t.left+n:ka(yo(e)).left+n}function Eh(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Bi(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function Cw(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const l=a==="fixed",i=yo(r),s=t?Di(t.floating):!1;if(r===i||s&&l)return n;let c={scrollLeft:0,scrollTop:0},u=Wn(1);const d=Wn(0),f=Jn(r);if((f||!f&&!l)&&((Hr(r)!=="body"||Ja(i))&&(c=Ai(r)),Jn(r))){const h=ka(r);u=Cr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const p=i&&!f&&!l?Eh(i,c):Wn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function Sw(e){return Array.from(e.getClientRects())}function Tw(e){const t=yo(e),n=Ai(e),r=e.ownerDocument.body,a=Er(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Er(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Bi(e);const s=-n.scrollTop;return Mn(r).direction==="rtl"&&(i+=Er(t.clientWidth,r.clientWidth)-a),{width:a,height:l,x:i,y:s}}const Gd=25;function xw(e,t){const n=hn(e),r=yo(e),a=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){l=a.width,i=a.height;const d=Cu();(!d||d&&t==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const u=Bi(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-f.clientWidth-h);m<=Gd&&(l-=m)}else u<=Gd&&(l+=u);return{width:l,height:i,x:s,y:c}}const Nw=new Set(["absolute","fixed"]);function Dw(e,t){const n=ka(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,l=Jn(e)?Cr(e):Wn(1),i=e.clientWidth*l.x,s=e.clientHeight*l.y,c=a*l.x,u=r*l.y;return{width:i,height:s,x:c,y:u}}function Yd(e,t,n){let r;if(t==="viewport")r=xw(e,n);else if(t==="document")r=Tw(yo(e));else if(Ln(t))r=Dw(t,n);else{const a=kh(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Jl(r)}function Ch(e,t){const n=Lo(e);return n===t||!Ln(n)||Ar(n)?!1:Mn(n).position==="fixed"||Ch(n,t)}function Aw(e,t){const n=t.get(e);if(n)return n;let r=_h(e,[]).filter(s=>Ln(s)&&Hr(s)!=="body"),a=null;const l=Mn(e).position==="fixed";let i=l?Lo(e):e;for(;Ln(i)&&!Ar(i);){const s=Mn(i),c=Eu(i);!c&&s.position==="fixed"&&(a=null),(l?!c&&!a:!c&&s.position==="static"&&!!a&&Nw.has(a.position)||Ja(i)&&!c&&Ch(e,i))?r=r.filter(d=>d!==i):a=s,i=Lo(i)}return t.set(e,r),r}function Bw(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?Di(t)?[]:Aw(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((u,d)=>{const f=Yd(t,d,a);return u.top=Er(f.top,u.top),u.right=bc(f.right,u.right),u.bottom=bc(f.bottom,u.bottom),u.left=Er(f.left,u.left),u},Yd(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Lw(e){const{width:t,height:n}=wh(e);return{width:t,height:n}}function Mw(e,t,n){const r=Jn(t),a=yo(t),l=n==="fixed",i=ka(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const c=Wn(0);function u(){c.x=Bi(a)}if(r||!r&&!l)if((Hr(t)!=="body"||Ja(a))&&(s=Ai(t)),r){const h=ka(t,!0,l,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else a&&u();l&&!r&&a&&u();const d=a&&!r&&!l?Eh(a,s):Wn(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function ks(e){return Mn(e).position==="static"}function Xd(e,t){if(!Jn(e)||Mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yo(e)===n&&(n=n.ownerDocument.body),n}function Sh(e,t){const n=hn(e);if(Di(e))return n;if(!Jn(e)){let a=Lo(e);for(;a&&!Ar(a);){if(Ln(a)&&!ks(a))return a;a=Lo(a)}return n}let r=Xd(e,t);for(;r&&gw(r)&&ks(r);)r=Xd(r,t);return r&&Ar(r)&&ks(r)&&!Eu(r)?n:r||ww(e)||n}const Vw=async function(e){const t=this.getOffsetParent||Sh,n=this.getDimensions,r=await n(e.floating);return{reference:Mw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pw(e){return Mn(e).direction==="rtl"}const Iw={convertOffsetParentRelativeRectToViewportRelativeRect:Cw,getDocumentElement:yo,getClippingRect:Bw,getOffsetParent:Sh,getElementRects:Vw,getClientRects:Sw,getDimensions:Lw,getScale:Cr,isElement:Ln,isRTL:Pw},Ow=fw,Rw=sw,Fw=mw,zw=cw,Uw=(e,t,n)=>{const r=new Map,a={platform:Iw,...n},l={...a.platform,_c:r};return lw(e,t,{...a,platform:l})},Hw={class:"bgl-dropdown__content"},nn=o.defineComponent({inheritAttrs:!1,__name:"Dropdown",props:o.mergeModels({value:{},thin:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},disabled:{type:Boolean},icon:{},color:{},triggerClass:{},iconEnd:{},border:{type:Boolean},outline:{type:Boolean},round:{type:Boolean},placement:{default:"bottom-start"},disablePlacement:{type:Boolean,default:!1},noAutoFocus:{type:Boolean},autoHide:{type:Boolean,default:!0},triggers:{default:()=>["click"]},showTriggers:{},hideTriggers:{},popperTriggers:{default:()=>[]},popperShowTriggers:{default:()=>[]},popperHideTriggers:{default:()=>[]},showGroup:{},delay:{}},{shown:{type:Boolean,default:!1},shownModifiers:{}}),emits:o.mergeModels(["show","hide"],["update:shown"]),setup(e,{expose:t,emit:n}){const r=e,a=n,l=o.useModel(e,"shown"),i=o.ref(null),s=o.ref(null),c=o.ref("body"),{isMobile:u,innerWidth:d}=cl(),f=o.computed(()=>r.disablePlacement&&u.value),p=o.computed(()=>d.value<910),h=o.computed(()=>p.value?r.triggers.map(I=>I==="hover"?"click":I):r.triggers),m=o.computed(()=>h.value.includes("click")),g=o.computed(()=>h.value.includes("hover")),b=o.computed(()=>r.popperTriggers.length>0?r.popperTriggers.includes("hover"):r.triggers.includes("hover")&&!p.value),v=o.computed(()=>{if(r.icon!==void 0&&r.icon!=="")return r.icon;if(r.value===void 0||r.value==="")return"more_vert"}),y=o.computed(()=>r.delay!==void 0?typeof r.delay=="number"?{show:r.delay,hide:r.delay}:r.delay:r.triggers.includes("hover")&&!p.value?{show:0,hide:10}:{show:0,hide:0}),_=new Map;async function w(){var te;const I=(te=i.value)==null?void 0:te.firstElementChild;if(!s.value||!I||f.value)return;const H=r.placement==="auto",{x:F,y:Z}=await Uw(I,s.value,{placement:H?void 0:r.placement,strategy:"fixed",middleware:[Ow(4),...H?[Rw()]:[zw()],Fw({padding:8})]});s.value&&(s.value.style.left=`${F}px`,s.value.style.top=`${Z}px`)}function $(){var I;return!!((I=s.value)!=null&&I.matches(":popover-open"))}function k(){var I,H;r.disabled||$()||(c.value=((I=i.value)==null?void 0:I.closest("dialog[open]"))??"body",r.showGroup&&_.has(r.showGroup)&&_.get(r.showGroup).forEach(F=>F()),(H=s.value)==null||H.showPopover())}function C(){var H,F;if(!$())return;const I=(H=i.value)==null?void 0:H.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');I==null||I.focus(),(F=s.value)==null||F.hidePopover()}const D=k;function x(){C()}o.watch(l,I=>{I&&!$()?k():!I&&$()&&C()});function L(I){I.newState==="open"?(l.value=!0,o.nextTick(w),a("show")):(l.value=!1,a("hide"))}function M(I){var F,Z;if(!r.autoHide||!$())return;const H=I.target;(F=s.value)!=null&&F.contains(H)||(Z=i.value)!=null&&Z.contains(H)||C()}function E(I){I.key==="Escape"&&$()&&(I.stopPropagation(),C())}let S,A;function B(){clearTimeout(S),clearTimeout(A)}function P(){m.value&&($()?C():k())}function R(){g.value&&(clearTimeout(A),S=setTimeout(k,y.value.show))}function V(){g.value&&(clearTimeout(S),A=setTimeout(C,y.value.hide))}function ne(){b.value&&clearTimeout(A)}function ee(){b.value&&(A=setTimeout(C,y.value.hide))}return o.onMounted(()=>{document.addEventListener("pointerdown",M,!0),document.addEventListener("keydown",E),r.showGroup&&(_.has(r.showGroup)||_.set(r.showGroup,new Set),_.get(r.showGroup).add(C))}),o.onBeforeUnmount(()=>{var I,H;document.removeEventListener("pointerdown",M,!0),document.removeEventListener("keydown",E),B(),r.showGroup&&((I=_.get(r.showGroup))==null||I.delete(C)),$()&&((H=s.value)==null||H.hidePopover())}),t({show:D,hide:x,shown:l}),(I,H)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",o.mergeProps({ref_key:"triggerWrapRef",ref:i},I.$attrs,{onMouseenter:R,onMouseleave:V,onFocus:R,onBlur:V}),[o.renderSlot(I.$slots,"trigger",{show:o.unref(D),hide:x,shown:l.value},()=>[o.createVNode(o.unref(ae),{class:o.normalizeClass(e.triggerClass),iconEnd:e.iconEnd,icon:v.value,value:e.value,thin:e.thin,flat:e.flat,outline:e.outline,round:e.round,color:e.color,disabled:e.disabled,onClick:P},null,8,["class","iconEnd","icon","value","thin","flat","outline","round","color","disabled"])])],16),(o.openBlock(),o.createBlock(o.Teleport,{to:c.value},[o.createElementVNode("div",{ref_key:"popoverRef",ref:s,popover:"manual",class:o.normalizeClass(["bgl-dropdown",{"bgl-dropdown--no-positioning":f.value}]),onToggle:L,onMouseenter:ne,onMouseleave:ee,onFocus:ne,onBlur:ee},[H[0]||(H[0]=o.createElementVNode("div",{class:"bgl-dropdown__backdrop"},null,-1)),o.createElementVNode("div",Hw,[o.renderSlot(I.$slots,"default",{hide:x,show:o.unref(D),shown:l.value})])],34)],8,["to"]))],64))}}),jw={class:"px-1 pt-025 pb-1"},Ww={class:"ms-1"},qw=o.defineComponent({__name:"FieldSetVue",props:{label:{},legend:{}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("fieldset",jw,[o.createElementVNode("legend",Ww,o.toDisplayString(e.legend||e.label),1),o.renderSlot(t.$slots,"default",{},void 0,!0)]))}}),Gw=De(qw,[["__scopeId","data-v-f7e758e5"]]),Yw={class:"p-1 m_p-05"},Xw={class:"p-025 bg-bg radius-1 mb-05"},Kw={key:0,class:"opacity-3 flex gap-05 p-025 min-w-450px m_min-0"},Jw={class:""},Zw={key:0,class:"min-w-100px"},Qw={key:2},e2={class:"flex gap-1 space-between"},t2={class:"flex gap-05"},n2=o.defineComponent({__name:"Filter",props:o.mergeModels({fields:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:o.mergeModels(["change","save"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=t,a=o.useModel(e,"modelValue"),l=o.ref([...a.value]),{$t:i}=xt(),s=o.getCurrentInstance(),c=o.computed(()=>{var ee;return!!((ee=s==null?void 0:s.vnode.props)!=null&&ee.onSave)});function u(ee){return!ee.field||!ee.op?!1:ee.op==="pr"?!0:ee.op==="in"||ee.op==="nin"?Array.isArray(ee.value)&&ee.value.length>0:ee.value!==""&&ee.value!==null&&ee.value!==void 0}const d=Qo(()=>{const ee=l.value.filter(u);console.log("[Filter] flushing - internal:",l.value,"| complete:",ee),a.value=ee,r("change",ee)},400);let f=0;function p(){return`cond_${++f}_${Date.now()}`}const h=o.computed(()=>({filter:i("filter.filter"),noActiveFilters:i("filter.noActiveFilters"),connectors:{and:i("filter.connectors.and"),or:i("filter.connectors.or")},operators:{eq:i("filter.operators.eq"),ne:i("filter.operators.ne"),gt:i("filter.operators.gt"),ge:i("filter.operators.ge"),lt:i("filter.operators.lt"),le:i("filter.operators.le"),co:i("filter.operators.co"),sw:i("filter.operators.sw"),ew:i("filter.operators.ew"),pr:i("filter.operators.pr"),in:i("filter.operators.in"),nin:i("filter.operators.nin")},placeholders:{selectField:i("filter.placeholders.selectField"),selectOption:i("filter.placeholders.selectOption"),selectDate:i("filter.placeholders.selectDate"),enterValue:i("filter.placeholders.enterValue")},buttons:{addCondition:i("filter.buttons.addCondition"),clearAll:i("filter.buttons.clearAll")},boolean:{true:i("select.yes"),false:i("select.no")}})),m=new Map,g=o.computed(()=>(l.value||[]).map((I,H)=>(m.has(H)||m.set(H,p()),{id:m.get(H),field:I.field,operator:I.op,value:Array.isArray(I.value)?I.value.map(String):I.value===null?"null":I.value===void 0?"":String(I.value),connector:H>0?I.connector||"and":""}))),b=o.computed(()=>[{label:h.value.operators.eq,value:"eq"},{label:h.value.operators.ne,value:"ne"},{label:h.value.operators.gt,value:"gt"},{label:h.value.operators.ge,value:"ge"},{label:h.value.operators.lt,value:"lt"},{label:h.value.operators.le,value:"le"},{label:h.value.operators.co,value:"co"},{label:h.value.operators.sw,value:"sw"},{label:h.value.operators.ew,value:"ew"},{label:h.value.operators.pr,value:"pr"},{label:h.value.operators.in,value:"in"},{label:h.value.operators.nin,value:"nin"}]);function v(ee,I,H){if(H&&I)return b.value.filter(F=>["in","nin","pr"].includes(F.value));if(I)return b.value.filter(F=>["eq","ne","pr"].includes(F.value));switch(ee){case"boolean":return b.value.filter(F=>["eq","ne","pr"].includes(F.value));case"number":case"date":return b.value.filter(F=>["eq","ne","gt","ge","lt","le","pr"].includes(F.value));default:return b.value.filter(F=>["eq","ne","co","sw","ew","pr"].includes(F.value))}}function y(ee){return n.fields.find(I=>I.value===ee)}function _(ee){var I;return(I=y(ee))==null?void 0:I.options}function w(ee){const I=y(ee);return!!(I!=null&&I.multiple&&(I!=null&&I.options))}const $=o.computed(()=>[{label:h.value.boolean.true,value:"true"},{label:h.value.boolean.false,value:"false"}]);function k(ee){return typeof ee=="number"||typeof ee=="boolean"||ee===null?ee:ee==="true"?!0:ee==="false"?!1:ee==="null"?null:!Number.isNaN(Number(ee))&&ee.trim()!==""?Number(ee):ee}function C(ee,I){const H=[...l.value],F=H[ee];if(!F)return;const Z={...F};I.field!==void 0&&(Z.field=I.field),I.op!==void 0&&(Z.op=I.op),I.value!==void 0&&(Z.value=Array.isArray(I.value)?I.value:k(I.value)),I.connector!==void 0&&(Z.connector=I.connector),H[ee]=Z,l.value=H,d()}function D(){var Z;const ee=((Z=n.fields[0])==null?void 0:Z.value)||"field",I=w(ee),H={field:ee,op:I?"in":"eq",value:I?[]:"",connector:a.value.length>0?"and":void 0},F=[...l.value,H];l.value=F,console.log("[Filter] addCondition - skipping flush (incomplete)")}function x(ee){const I=[...l.value];I.splice(ee,1),I.length>0&&I[0].connector&&(I[0]={...I[0],connector:void 0}),m.delete(ee),l.value=I,d()}function L(){m.clear(),l.value=[],a.value=[],console.log("[Filter] clearAll"),r("change",[])}function M(ee){var I;return((I=n.fields.find(H=>H.value===ee))==null?void 0:I.type)||"string"}function E(ee){return ee!=="pr"}function S(ee){return ee==="in"||ee==="nin"}const A=o.computed(()=>g.value.filter(ee=>!!ee.field&&(ee.operator==="pr"||!!ee.value)).length);function B(ee){return g.value.findIndex(I=>I.id===ee)}function P(ee,I){const H=B(ee);H>=0&&C(H,{field:I})}function R(ee,I){const H=B(ee);if(H<0)return;const F=g.value[H],Z=(F==null?void 0:F.operator)==="in"||(F==null?void 0:F.operator)==="nin",te=I==="in"||I==="nin",be={op:I};Z&&!te?be.value="":!Z&&te&&(be.value=[]),C(H,be)}function V(ee,I){const H=B(ee);H>=0&&C(H,{value:I})}function ne(ee,I){const H=B(ee);H>=0&&C(H,{connector:I})}return(ee,I)=>(o.openBlock(),o.createBlock(o.unref(nn),{flat:"",placement:"bottom-end",icon:"filter_alt",value:A.value>0?`${h.value.filter} (${A.value})`:h.value.filter,thin:"","auto-hide":!1},{default:o.withCtx(()=>[o.createElementVNode("div",Yw,[o.createElementVNode("div",Xw,[g.value.length===0?(o.openBlock(),o.createElementBlock("div",Kw,[o.createVNode(o.unref(xe),{name:"info"}),o.createElementVNode("div",Jw,o.toDisplayString(h.value.noActiveFilters),1)])):o.createCommentVNode("",!0),o.createVNode(o.TransitionGroup,{name:"condition"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(H,F)=>(o.openBlock(),o.createElementBlock("div",{key:H.id,class:o.normalizeClass(["grid gap-025 align-items-center pt-025",{"mt-025":F>0&&H.connector==="or","pt-075 border-top-or":F>0&&H.connector==="or","first-filter-row":F===0,"filter-row":F>0}])},[F>0?(o.openBlock(),o.createElementBlock("div",Zw,[o.createVNode(o.unref(yt),{"model-value":H.connector||"and",options:[{label:h.value.connectors.and,value:"and"},{label:h.value.connectors.or,value:"or"}],class:"m-0 and-or-select txt-12","onUpdate:modelValue":Z=>ne(H.id,Z)},null,8,["model-value","options","onUpdate:modelValue"])])):o.createCommentVNode("",!0),o.createVNode(o.unref(yt),{"model-value":H.field,options:e.fields,placeholder:h.value.placeholders.selectField,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>P(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"]),o.createVNode(o.unref(yt),{"model-value":H.operator,options:v(M(H.field),!!_(H.field),w(H.field)),class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>R(H.id,Z)},null,8,["model-value","options","onUpdate:modelValue"]),E(H.operator)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[_(H.field)&&S(H.operator)?(o.openBlock(),o.createBlock(o.unref(yt),{key:0,"model-value":Array.isArray(H.value)?H.value:[],options:_(H.field),placeholder:h.value.placeholders.selectOption,class:"m-0 light-input borderHover",searchable:"",multiselect:"","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"])):_(H.field)?(o.openBlock(),o.createBlock(o.unref(yt),{key:1,"model-value":H.value,options:_(H.field),placeholder:h.value.placeholders.selectOption,class:"m-0 light-input borderHover",searchable:"","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"])):M(H.field)==="boolean"?(o.openBlock(),o.createBlock(o.unref(yt),{key:2,"model-value":H.value,options:$.value,placeholder:h.value.placeholders.selectOption,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"])):M(H.field)==="date"?(o.openBlock(),o.createBlock(o.unref(Ca),{key:3,"model-value":H.value,placeholder:h.value.placeholders.selectDate,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,String(Z))},null,8,["model-value","placeholder","onUpdate:modelValue"])):M(H.field)==="number"?(o.openBlock(),o.createBlock(o.unref(tt),{key:4,"model-value":H.value,placeholder:"0",type:"number",class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(o.unref(tt),{key:5,"model-value":H.value,placeholder:h.value.placeholders.enterValue,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","placeholder","onUpdate:modelValue"]))],64)):(o.openBlock(),o.createElementBlock("div",Qw)),o.createVNode(o.unref(ae),{icon:"close",thin:"",flat:"",size:"small",class:"m_bg-gray-40 m_px-3 m_mx-auto",onClick:Z=>x(F)},null,8,["onClick"])],2))),128))]),_:1})]),o.createElementVNode("div",e2,[o.createVNode(o.unref(ae),{icon:"add",flat:"",thin:"",value:h.value.buttons.addCondition,onClick:D},null,8,["value"]),o.createElementVNode("div",t2,[g.value.length>0?(o.openBlock(),o.createBlock(o.unref(ae),{key:0,icon:"delete_sweep",flat:"",thin:"",color:"gray",value:h.value.buttons.clearAll,onClick:L},null,8,["value"])):o.createCommentVNode("",!0),c.value?(o.openBlock(),o.createBlock(o.unref(ae),{key:1,disabled:g.value.length===0,class:"color-green",icon:"save",thin:"",color:"green-light",value:o.unref(i)("filter.buttons.save"),onClick:I[0]||(I[0]=H=>r("save",l.value.filter(u)))},null,8,["disabled","value"])):o.createCommentVNode("",!0)])])])]),_:1},8,["value"]))}}),o2=De(n2,[["__scopeId","data-v-8f45ed04"]]),r2=o.defineComponent({__name:"Flag",props:{country:{},size:{},circle:{type:Boolean},square:{type:Boolean}},setup(e){const t=e,n=o.computed(()=>!!(t.circle||t.square)),r=o.computed(()=>`${t.size??1}rem`),a=o.computed(()=>{let l=t.country.toLowerCase();l==="ac"&&(l="sh-ac");const i="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.0.0/flags";return n.value?`url(${i}/1x1/${l.toLowerCase()}.svg)`:`url(${i}/4x3/${l.toLowerCase()}.svg)`});return(l,i)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["fi",{fis:n.value,circle:e.circle}]),style:o.normalizeStyle({height:r.value,backgroundImage:a.value})},null,6))}}),wc=De(r2,[["__scopeId","data-v-9f07b0be"]]);function Su(e,t={},n={}){return typeof t=="object"?{id:e,...t}:{id:e,label:t,...n}}function Li(e,t,n){return{$el:"richtext",class:n==null?void 0:n.class,required:n==null?void 0:n.required,id:e,label:t,helptext:n==null?void 0:n.helpText,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,placeholder:n==null?void 0:n.placeholder,attrs:{height:n==null?void 0:n.height,basic:n==null?void 0:n.basic,simple:n==null?void 0:n.simple,debug:n==null?void 0:n.debug,hideToolbar:n==null?void 0:n.hideToolbar,hideInlineToolbar:n==null?void 0:n.hideInlineToolbar,hideImages:n==null?void 0:n.hideImages,hideVideos:n==null?void 0:n.hideVideos,hideEmbed:n==null?void 0:n.hideEmbed,hideTables:n==null?void 0:n.hideTables,hideAlignment:n==null?void 0:n.hideAlignment,hideDirections:n==null?void 0:n.hideDirections,hideH5H6:n==null?void 0:n.hideH5H6,hide:n==null?void 0:n.hide,autofocus:n==null?void 0:n.autofocus,textColor:n==null?void 0:n.textColor,fontSize:n==null?void 0:n.fontSize,autocomplete:n==null?void 0:n.autocomplete}}}function Mi(e,t,n){return{$el:"text",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,placeholder:n==null?void 0:n.placeholder,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,autocomplete:n==null?void 0:n.autocomplete,pattern:n==null?void 0:n.pattern,multiline:n==null?void 0:n.multiline,autoheight:n==null?void 0:n.autoheight,code:n==null?void 0:n.code,rows:n==null?void 0:n.rows,icon:n==null?void 0:n.icon,iconStart:n==null?void 0:n.iconStart,type:n==null?void 0:n.type}}}function Za(e,t,n,r){return{$el:"select",id:e,label:t,class:r==null?void 0:r.class,required:r==null?void 0:r.required,helptext:r==null?void 0:r.helptext,disabled:r==null?void 0:r.disabled,defaultValue:r==null?void 0:r.defaultValue,vIf:r==null?void 0:r.vIf,transform:r==null?void 0:r.transform,placeholder:r==null?void 0:r.placeholder,options:n,attrs:{...r==null?void 0:r.attrs,title:r==null?void 0:r.title,searchable:r==null?void 0:r.searchable,multiselect:r==null?void 0:r.multiselect,clearable:r==null?void 0:r.clearable}}}const Th=Za;function Vi(e,t,n){return{$el:"check",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{...n==null?void 0:n.attrs,value:n==null?void 0:n.value}}}function Pi(e,t,n){return{$el:"email",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,autocorrect:n==null?void 0:n.autocorrect,serverValidate:n==null?void 0:n.serverValidate,preventFakeEmails:n==null?void 0:n.preventFakeEmails,pattern:n==null?void 0:n.pattern}}}function Ii(e,t,n){return{$el:"date",class:n==null?void 0:n.class,required:n==null?void 0:n.required,id:e,disabled:n==null?void 0:n.disabled,label:t,...(n==null?void 0:n.defaultValue)!==void 0&&{defaultValue:n.defaultValue},vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,disabled:n==null?void 0:n.disabled,autocomplete:n==null?void 0:n.autocomplete,enableTime:n==null?void 0:n.enableTime,mode:n==null?void 0:n.mode,locale:n==null?void 0:n.locale,timezone:n==null?void 0:n.timezone}}}function Oi(e,t,n){return{$el:"number",class:n==null?void 0:n.class,required:n==null?void 0:n.required,defaultValue:n==null?void 0:n.defaultValue,id:e,label:t,disabled:n==null?void 0:n.disabled,placeholder:n==null?void 0:n.placeholder,helptext:n==null?void 0:n.helptext,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,autocomplete:n==null?void 0:n.autocomplete,step:n==null?void 0:n.step,min:n==null?void 0:n.min,max:n==null?void 0:n.max,layout:n==null?void 0:n.layout,padZero:n==null?void 0:n.padZero,center:n==null?void 0:n.center,useGrouping:n==null?void 0:n.useGrouping}}}function Ri(...e){return{$el:"div",class:"flex gap-1 m_block align-items-end",children:e}}function Fi(e,t,n){return{$el:"upload",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{...n}}}function zi(e,t,n){return{$el:"range",id:e,label:t,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{autocomplete:n==null?void 0:n.autocomplete,min:n==null?void 0:n.min,max:n==null?void 0:n.max,step:n==null?void 0:n.step,rtl:n==null?void 0:n.rtl,multiRange:n==null?void 0:n.multiRange,formatValue:n==null?void 0:n.formatValue}}}function Tu(e,...t){return typeof e=="string"?{$el:"bagelform",id:e,attrs:{schema:[e,...t]}}:{$el:"bagelform",attrs:{schema:[e,...t]}}}function Ui(e,t,n){return{$el:"tel",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,placeholder:n==null?void 0:n.placeholder,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{...n==null?void 0:n.attrs,title:n==null?void 0:n.title,pattern:n==null?void 0:n.pattern,autocomplete:n==null?void 0:n.autocomplete}}}function Hi(e,t,n){return{$el:"color",id:e,label:t,vIf:n==null?void 0:n.vIf,attrs:n,class:n==null?void 0:n.class,transform:n==null?void 0:n.transform}}function ji(e,t){for(const n of t){if(n.id===e)return n;if(n.children&&Number(n.children.length)>0){const r=n.children.filter(l=>typeof l=="object"&&"$el"in l),a=ji(e,r);if(a)return a}}}function xu(e,t,n,r){const l={delete:!0,add:!0,...r,...typeof n=="string"?{type:n}:{schema:n}};return{label:t,id:e,class:r==null?void 0:r.class,$el:"array",vIf:r==null?void 0:r.vIf,transform:r==null?void 0:r.transform,attrs:l}}function Nu(){return{txtField:(e,t,n)=>Mi(e,t,n),selectField:(e,t,n,r)=>Za(e,t,n,r),dateField:(e,t,n)=>Ii(e,t,n),telField:(e,t,n)=>Ui(e,t,n),frmRow:(...e)=>Ri(...e),numField:(e,t,n)=>Oi(e,t,n),checkField:(e,t,n)=>Vi(e,t,n),emailField:(e,t,n)=>Pi(e,t,n),uploadField:(e,t,n)=>Fi(e,t,n),rangeField:(e,t,n)=>zi(e,t,n),colorField:(e,t,n)=>Hi(e,t,n),richText:(e,t,n)=>Li(e,t,n)}}function xh(){return{txtField:Mi,selectField:Za,checkField:Vi,dateField:Ii,numField:Oi,emailField:Pi,frmRow:Ri,uploadField:Fi,rangeField:zi,bglForm:Tu,telField:Ui,colorField:Hi,arrField:xu,richText:Li,findBglFieldById:ji,getBaseField:Su,createSchema:Nu}}const a2=Object.freeze(Object.defineProperty({__proto__:null,arrField:xu,bglForm:Tu,checkField:Vi,colorField:Hi,createSchema:Nu,dateField:Ii,emailField:Pi,findBglFieldById:ji,frmRow:Ri,getBaseField:Su,numField:Oi,rangeField:zi,richText:Li,selectField:Za,slctField:Th,telField:Ui,txtField:Mi,uploadField:Fi,useForm:xh},Symbol.toStringTag,{value:"Module"}));function Kd(e){return e===null?"null":typeof e=="string"?`"${e.replace(/"/g,'\\"')}"`:typeof e=="boolean"?e.toString():String(e)}function Wi(e){if(!e||e.length===0)return"";const t=[];for(let n=0;n<e.length;n++){const{field:r,op:a,value:l,connector:i}=e[n];if(n>0&&i&&t.push(i),a==="pr")t.push(`${r} pr`);else if(a==="in"||a==="nin"){const s=Array.isArray(l)?l:l!=null?[l]:[];if(s.length===0)continue;const c=a==="in"?"eq":"ne",u=a==="in"?"or":"and",d=s.map(f=>`${r} ${c} ${Kd(f)}`).join(` ${u} `);t.push(s.length>1?`(${d})`:d)}else t.push(`${r} ${a} ${Kd(l??null)}`)}return t.join(" ")}class Du{constructor(){Ve(this,"parts",[])}eq(t,n){return this.parts.push(`${t} eq ${this.formatValue(n)}`),this}ne(t,n){return this.parts.push(`${t} ne ${this.formatValue(n)}`),this}gt(t,n){return this.parts.push(`${t} gt ${this.formatValue(n)}`),this}ge(t,n){return this.parts.push(`${t} ge ${this.formatValue(n)}`),this}lt(t,n){return this.parts.push(`${t} lt ${this.formatValue(n)}`),this}le(t,n){return this.parts.push(`${t} le ${this.formatValue(n)}`),this}co(t,n){return this.parts.push(`${t} co ${this.formatValue(n)}`),this}sw(t,n){return this.parts.push(`${t} sw ${this.formatValue(n)}`),this}ew(t,n){return this.parts.push(`${t} ew ${this.formatValue(n)}`),this}pr(t){return this.parts.push(`${t} pr`),this}and(){return this.parts.push("and"),this}or(){return this.parts.push("or"),this}not(){return this.parts.push("not"),this}group(t){const n=new Du;t(n);const r=n.build();return r&&this.parts.push(`(${r})`),this}raw(t){return this.parts.push(t),this}clear(){return this.parts=[],this}build(){return this.parts.join(" ")}toString(){return this.build()}[Symbol.toPrimitive](t){return t==="string"?this.build():this.parts.length}formatValue(t){return t===null?"null":typeof t=="string"?`"${t.replace(/"/g,'\\"')}"`:typeof t=="boolean"?t.toString():String(t)}}function l2(e){const t=new Du;return e&&e.length>0&&t.raw(Wi(e)),t}function i2(e,t){const n=e.map((r,a)=>({field:r,op:"eq",value:t,connector:a>0?"or":void 0}));return Wi(n)}function s2(e,t,n){return Wi([{field:e,op:"ge",value:t},{field:e,op:"le",value:n,connector:"and"}])}function c2(e,t){const n=e.map((r,a)=>({field:r,op:"co",value:t,connector:a>0?"or":void 0}));return Wi(n)}const u2=["eq","ne","gt","ge","lt","le","co","sw","ew","pr","in","nin"],d2=["and","or"];function f2(e){const t=e.trim();if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.startsWith('"')&&t.endsWith('"'))return t.slice(1,-1).replace(/\\"/g,'"');const n=Number(t);return!Number.isNaN(n)&&t!==""?n:t}function Au(e){if(!e||!e.trim())return[];const t=m2(e);return Nh(t,0,t.length).conditions}function Nh(e,t,n){var l,i;const r=[];let a=t;for(;a<n;){let s;if(r.length>0&&d2.includes((l=e[a])==null?void 0:l.toLowerCase())&&(s=e[a].toLowerCase(),a++),a>=n)break;if(e[a]==="("){let p=1,h=a+1;for(;h<n&&p>0;)e[h]==="("?p++:e[h]===")"&&p--,h++;const m=Nh(e,a+1,h-1);s&&m.conditions.length>0&&(m.conditions[0].connector=s),r.push(...m.conditions),a=h;continue}if(e[a]===")"){a++;continue}const c=e[a++];if(a>=n)break;const u=(i=e[a++])==null?void 0:i.toLowerCase();if(!u2.includes(u))throw new Error(`Invalid operator: ${u}`);let d;if(u!=="pr"){if(a>=n)throw new Error(`Missing value for operator ${u}`);d=f2(e[a++])}const f={field:c,op:u,value:d};s&&(f.connector=s),r.push(f)}return{conditions:r,endIndex:a}}function m2(e){const t=[];let n="",r=!1,a=0;for(;a<e.length;){const l=e[a];if(r){if(l==="\\"&&e[a+1]==='"'){n+='\\"',a+=2;continue}if(l==='"'){n+='"',t.push(n),n="",r=!1,a++;continue}n+=l,a++}else{if(l==='"'){n&&t.push(n),n='"',r=!0,a++;continue}if(l==="("||l===")"){n&&(t.push(n),n=""),t.push(l),a++;continue}if(l===" "||l===" "){n&&(t.push(n),n=""),a++;continue}n+=l,a++}}return n&&t.push(n),t}const Dh={omitExtraWLInCodeBlocks:!1,noHeaderId:!1,prefixHeaderId:!1,rawPrefixHeaderId:!1,ghCompatibleHeaderId:!1,rawHeaderId:!1,headerLevelStart:0,parseImgDimensions:!1,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!1,literalMidWordUnderscores:!1,literalMidWordAsterisks:!1,strikethrough:!1,tables:!1,tablesHeaderId:!1,ghCodeBlocks:!0,tasklists:!1,smoothLivePreview:!1,smartIndentationFix:!1,disableForced4SpacesIndentedSublists:!1,simpleLineBreaks:!1,requireSpaceBeforeHeadingText:!1,ghMentions:!1,encodeEmails:!0,openLinksInNewWindow:!0,backslashEscapesHTMLTags:!1,customizedHeaderId:!1,tableHeaderId:!1,underline:!1,completeHTMLDocument:!1,splitAdjacentBlockquotes:!1},Jd={},q={helper:{},subParser:(e,t)=>{if(t!==void 0)Jd[e]=t;else return Jd[e]},Converter:void 0};q.helper.isString=function(e){return typeof e=="string"||e instanceof String};q.helper.isFunction=function(e){return e&&{}.toString.call(e)==="[object Function]"};q.helper.isArray=function(e){return Array.isArray(e)};q.helper.isUndefined=function(e){return typeof e>"u"};q.helper.forEach=function(e,t){if(q.helper.isUndefined(e))throw new TypeError("obj param is required");if(q.helper.isUndefined(t))throw new TypeError("callback param is required");if(!q.helper.isFunction(t))throw new TypeError("callback param must be a function/closure");if(typeof e.forEach=="function")e.forEach(t);else if(q.helper.isArray(e))for(let n=0;n<e.length;n++)t(e[n],n,e);else if(typeof e=="object")for(let n in e)e.hasOwnProperty(n)&&t(e[n],n,e);else throw new TypeError("obj does not seem to be an array or an iterable object")};function Ah(e,t){return`¨E${t.charCodeAt(0)}E`}q.helper.escapeCharactersCallback=Ah;q.helper.escapeCharacters=function(e,t,n){let r=`([${t.replace(/([[\]\\])/g,"\\$1")}])`;n&&(r=`\\\\${r}`);let a=new RegExp(r,"g");return e=e.replace(a,Ah),e};q.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};let Bh=function(e,t,n,r){let a=r||"",l=a.includes("g"),i=new RegExp(`${t}|${n}`,`g${a.replace(/g/g,"")}`),s=new RegExp(t,a.replace(/g/g,"")),c=[],u=0,d=0,f,p=0,h=0;do for(u=0;f=i.exec(e);)if(s.test(f[0]))u++||(d=i.lastIndex,p=d-f[0].length);else if(u&&!--u){h=f.index+f[0].length;let m={left:{start:p,end:d},match:{start:d,end:f.index},right:{start:f.index,end:h},wholeMatch:{start:p,end:h}};if(c.push(m),!l)return c}while(u&&(i.lastIndex=d));return c};q.helper.matchRecursiveRegExp=function(e,t,n,r){let a=Bh(e,t,n,r),l=[];for(let i=0;i<a.length;++i)l.push([e.slice(a[i].wholeMatch.start,a[i].wholeMatch.end),e.slice(a[i].match.start,a[i].match.end),e.slice(a[i].left.start,a[i].left.end),e.slice(a[i].right.start,a[i].right.end)]);return l};q.helper.replaceRecursiveRegExp=function(e,t,n,r,a){let l;if(q.helper.isFunction(t))l=t;else{let u=t;l=function(){return u}}let i=Bh(e,n,r,a),s=e,c=i.length;if(c>0){let u=[];i[0].wholeMatch.start!==0&&u.push(e.slice(0,i[0].wholeMatch.start));for(let d=0;d<c;++d)u.push(l(e.slice(i[d].wholeMatch.start,i[d].wholeMatch.end),e.slice(i[d].match.start,i[d].match.end),e.slice(i[d].left.start,i[d].left.end),e.slice(i[d].right.start,i[d].right.end))),d<c-1&&u.push(e.slice(i[d].wholeMatch.end,i[d+1].wholeMatch.start));i[c-1].wholeMatch.end<e.length&&u.push(e.slice(i[c-1].wholeMatch.end)),s=u.join("")}return s};q.helper.regexIndexOf=function(e,t,n){if(!q.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(t instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";let r=e.substring(n||0).search(t);return r>=0?r+(n||0):r};q.helper.splitAtIndex=function(e,t){if(!q.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]};q.helper.encodeEmailAddress=function(e){let t=[function(n){return`&#${n.charCodeAt(0)};`},function(n){return`&#x${n.charCodeAt(0).toString(16)};`},function(n){return n}];return e=e.replace(/./g,n=>{if(n==="@")n=t[Math.floor(Math.random()*2)](n);else{let r=Math.random();n=r>.9?t[2](n):r>.45?t[1](n):t[0](n)}return n}),e};q.helper.padEnd=function(t,n,r){return n=n>>0,r=String(r||" "),t.length>n?String(t):(n=n-t.length,n>r.length&&(r+=r.repeat(n/r.length)),String(t)+r.slice(0,n))};typeof console>"u"&&(console={warn(e){alert(e)},log(e){alert(e)},error(e){throw e}});q.helper.regexes={asteriskDashAndColon:/([*_:~])/g};q.Converter=function(e){let t={};n();function n(){if(e=e||{},typeof e!="object")throw new TypeError(`Converter expects the passed parameter to be an object, but ${typeof e} was passed instead.`);t={...Dh,...e}}function r(a){var s;let l=((s=a.match(/^\s*/))==null?void 0:s[0].length)||0,i=new RegExp(`^\\s{0,${l}}`,"gm");return a.replace(i,"")}this.makeHtml=function(a){if(!a)return a;let l={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return a=a.replace(/¨/g,"¨T"),a=a.replace(/\$/g,"¨D"),a=a.replace(/\r\n/g,`
|
|
20
|
+
`,document.head.appendChild(F)}const s={animation:150,mode:"line",ghostClass:"draggable-ghost",dragClass:"draggable-dragging",dropIndicatorClass:"draggable-drop-indicator",...e};let c=0,u=0,d=0,f=0,p=0,h,m=null,g=-1,b=0;const v=150,y=new Map;function _(H){if(!i)return null;const F=H.cloneNode(!0),Z=H.getBoundingClientRect();return F.style.position="fixed",F.style.margin="0",F.style.top=`${Z.top}px`,F.style.left=`${Z.left}px`,F.style.width=`${Z.width}px`,F.style.height=`${Z.height}px`,F.style.transform="translate3d(0, 0, 0)",F.style.pointerEvents="none",F.style.zIndex="9999",F.style.cursor="grabbing",F.style.willChange="transform",F.classList.add(s.ghostClass),document.body.appendChild(F),F}function w(H){if(!i)return null;const F=document.createElement("div");F.classList.add(s.dropIndicatorClass),F.style.position="fixed",F.style.pointerEvents="none",F.style.zIndex="9999",F.style.height="2px",F.style.background="var(--primary-color, #0066ff)",F.style.boxShadow="0 0 4px rgba(0, 102, 255, 0.5)",F.style.transition="all 0.15s ease",F.style.display="none";const Z=document.createElement("div");return Z.style.position="absolute",Z.style.left="-4px",Z.style.top="-3px",Z.style.width="8px",Z.style.height="8px",Z.style.borderRadius="50%",Z.style.background="var(--primary-color, #0066ff)",F.appendChild(Z),document.body.appendChild(F),F}function $(H,F){if(!a.value)return;const Z=H.getBoundingClientRect();a.value.style.display="block",a.value.style.width=`${Z.width}px`,a.value.style.left=`${Z.left}px`,F?a.value.style.top=`${Z.bottom}px`:a.value.style.top=`${Z.top}px`}function k(H){let F=H;for(;F&&(!("__drag_group"in F)||F.dataset.draggable==="false");)F=F.parentElement;return F}function C(H){return H.style.opacity="0.4",H.style.transform="scale(0.95)",H.offsetHeight}function D(H){return H.style.opacity="0.5",2}function x(H){y.clear(),H.forEach((F,Z)=>{const te=F.getBoundingClientRect();y.set(Z,{top:te.top,bottom:te.bottom})})}function L(H,F,Z,te){const be=Date.now();if(be-b<v)return g!==-1?g:Z;y.size===0&&x(F);const he=H.clientY,Me=F.indexOf(te),Ie=y.get(Me);if(!Ie)return Z;const Ne=Ie.bottom-Ie.top,ot=he-Ie.top,qe=Ne*.3,me=Ne*.7;let we=Me;return Me===Z?ot>me&&(we+=1):Me===g?Me>Z?ot<qe?we=Me:we=Me+1:ot>me?we=Me+1:we=Me:ot>Ne*.6&&(we+=1),g=we,b=be,we}function M(){if(i){if(document.removeEventListener("mousemove",P),document.removeEventListener("mouseup",R),document.removeEventListener("keydown",E),document.removeEventListener("touchmove",ne),document.removeEventListener("touchend",ee),document.removeEventListener("touchcancel",ee),window.removeEventListener("blur",M),r.value&&(r.value.style.opacity="0",r.value.style.transform+=" scale(0.8)",setTimeout(()=>{var H,F;(F=(H=r.value)==null?void 0:H.parentNode)==null||F.removeChild(r.value),r.value=null},150)),a.value&&(a.value.style.opacity="0",setTimeout(()=>{var H,F;(F=(H=a.value)==null?void 0:H.parentNode)==null||F.removeChild(a.value),a.value=null},150)),n.value){const H=n.value.__drag_list;H==null||H.forEach(F=>{F.style.transition="",F.style.transform="",F.style.opacity=""}),n.value.classList.remove(s.dragClass),n.value=null}t.value=!1,l.value=null,i&&(document.body.style.userSelect="",document.body.style.webkitUserSelect="",document.body.style.cursor=""),m&&(cancelAnimationFrame(m),m=null),g=-1,b=0,y.clear()}}function E(H){H.key==="Escape"&&t.value&&M()}function S(H){var te;if(!i||s.disabled||H.button!==0||H.ctrlKey||H.metaKey||H.shiftKey||H.altKey)return;const F=k(H.target);if(!F||F.dataset.draggable==="false")return;if(s.handle){const be=H.target.closest(s.handle);if(!be||!F.contains(be))return}H.preventDefault(),t.value=!0,n.value=F,c=H.clientX,u=H.clientY;const Z=F.getBoundingClientRect();d=Z.left,f=Z.top,r.value=_(F),r.value&&(r.value.style.left=`${d}px`,r.value.style.top=`${f}px`),s.mode==="line"&&(a.value=w()),F.classList.add(s.dragClass),p=s.mode==="ghost"?C(F):D(F),(te=s.onStart)==null||te.call(s,H),i&&(document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="grabbing",window.addEventListener("blur",M),document.addEventListener("mousemove",P),document.addEventListener("mouseup",R),document.addEventListener("keydown",E))}function A(H){let F=H.parentElement;for(;F;){const{overflow:Z,overflowY:te}=window.getComputedStyle(F);if(/auto|scroll/.test(Z+te))return F;F=F.parentElement}return document.scrollingElement||document.documentElement||document.body}function B(H){n.value&&(m&&cancelAnimationFrame(m),m=requestAnimationFrame(()=>{const F=A(n.value),Z=F.getBoundingClientRect(),te=50,be=Math.min(20,Z.height*.1),{scrollTop:he}=F,Me=F.scrollHeight-F.clientHeight;if(H.clientY-Z.top<te){const Ie=Math.max(0,he-be);F.scrollTop=Ie}else if(Z.bottom-H.clientY<te){const Ie=Math.min(Me,he+be);F.scrollTop=Ie}}))}function P(H){if(!t.value||!n.value)return;if(r.value){const Ie=H.clientX-c,Ne=H.clientY-u;r.value.style.transform=`translate3d(${Ie}px, ${Ne}px, 0)`}const Z=n.value.__drag_list.filter(Ie=>Ie.dataset.draggable!=="false"),te=Z.indexOf(n.value),be=document.elementFromPoint(H.clientX,H.clientY),he=k(be);if(!he||he.__drag_group!==n.value.__drag_group){a.value&&(a.value.style.display="none");return}const Me=L(H,Z,te,he);if(l.value!==he||l.value.__intended_index!==Me){if(l.value=he,l.value.__intended_index=Me,a.value&&s.mode==="line"){const Ne=Me>te;$(he,Ne)}const Ie=p;Z.forEach(Ne=>{if(Ne.style.transition=`transform ${s.animation}ms cubic-bezier(0.2, 0, 0, 1)`,Ne.style.transform="translate3d(0, 0, 0)",Ne===n.value){if(s.mode==="ghost"){const ot=(Me-te)*Ie;Ne.style.transform=`translate3d(0, ${ot}px, 0)`}}else{const ot=Z.indexOf(Ne);te<Me?ot>te&&ot<=Me&&(Ne.style.transform=`translate3d(0, -${Ie}px, 0)`):te>Me&&ot>=Me&&ot<te&&(Ne.style.transform=`translate3d(0, ${Ie}px, 0)`)}})}B(H)}function R(H){var he;if(!t.value||!n.value||!l.value){M();return}const F=n.value.__drag_list;if(!F||!F.length){M();return}const te=F.filter(Me=>Me.dataset.draggable!=="false").indexOf(n.value),be=l.value.__intended_index;if(te!==-1&&be!==-1){F.forEach(Ie=>{Ie.style.transition="none",Ie.style.transform=""}),document.body.offsetHeight;const Me=new MouseEvent("mouseup",H);Me.oldIndex=te,Me.newIndex=be,Me.item=n.value.__drag_data,(he=s.onEnd)==null||he.call(s,Me)}M()}function V(H){var Me;if(!i||s.disabled||!H.target)return;const F=H.touches[0];if(!F)return;const Z=H.target,te=k(Z);if(!te)return;const{handle:be}=s;if(be&&!Z.closest(be))return;H.preventDefault(),t.value=!0,n.value=te,c=F.clientX,u=F.clientY;const he=te.getBoundingClientRect();d=he.left,f=he.top,r.value=_(te),r.value&&(r.value.style.left=`${d}px`,r.value.style.top=`${f}px`),s.mode==="line"&&(a.value=w()),n.value.classList.add(s.dragClass),p=s.mode==="ghost"?C(n.value):D(n.value),(Me=s.onStart)==null||Me.call(s,H),i&&(document.body.style.userSelect="none",document.body.style.webkitUserSelect="none",document.body.style.cursor="grabbing",window.addEventListener("blur",M),document.addEventListener("touchmove",ne,{passive:!1}),document.addEventListener("touchend",ee),document.addEventListener("touchcancel",ee))}function ne(H){H.preventDefault();const F=H.touches[0];if(!F)return;const Z={clientX:F.clientX,clientY:F.clientY,target:document.elementFromPoint(F.clientX,F.clientY)};P(Z),B(Z)}function ee(H){const F=H.changedTouches[0];if(!F)return;const Z={clientX:F.clientX,clientY:F.clientY,target:document.elementFromPoint(F.clientX,F.clientY)};R(Z),document.removeEventListener("touchmove",ne),document.removeEventListener("touchend",ee),document.removeEventListener("touchcancel",ee)}function I(H){if(!i)return;h==null||h(),t.value=!1,n.value=null,r.value=null,a.value=null,l.value=null;const F=Array.from(H.children);F.forEach(te=>{delete te.__drag_group,delete te.__drag_index,delete te.__drag_list});let Z=0;F.forEach((te,be)=>{te.dataset.draggable!=="false"&&(te.style.userSelect="none",te.style.webkitUserSelect="none",te.__drag_group=e.group,te.__drag_index=Z++,te.__drag_list=F.filter(he=>he.dataset.draggable!=="false"),e.items&&(te.__drag_data=e.items[be]),te.addEventListener("mousedown",S),te.addEventListener("touchstart",V))}),h=()=>{F.forEach(te=>{te.removeEventListener("mousedown",S),te.removeEventListener("touchstart",V),delete te.__drag_group,delete te.__drag_index,delete te.__drag_list}),M()}}return o.onUnmounted(()=>{h==null||h()}),{isDragging:t,dragElement:n,initDraggableContainer:I}}const j_=o.defineComponent({__name:"Draggable",props:{modelValue:{},group:{},handle:{},mode:{default:"line"},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","start","end"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(),{initDraggableContainer:l}=Gl({group:n.group,handle:n.handle,mode:n.mode,disabled:n.disabled,items:n.modelValue,onStart:i=>{r("start",i)},onEnd:i=>{const s=[...n.modelValue],[c]=s.splice(i.oldIndex,1);s.splice(i.newIndex,0,c),r("update:modelValue",s),r("end",i),o.nextTick(()=>{a.value&&l(a.value)})}});return o.watch(()=>n.modelValue,()=>{a.value&&l(a.value)},{deep:!0}),o.onMounted(()=>{a.value&&l(a.value)}),(i,s)=>(o.openBlock(),o.createElementBlock("div",{ref_key:"dragContainer",ref:a},[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(e.modelValue,(c,u)=>o.renderSlot(i.$slots,"default",{key:u,item:c,index:u})),128))],512))}}),W_={mounted(e,t){const{initDraggableContainer:n}=Gl(t.value||{});n(e)},updated(e,t){if(t.value!==t.oldValue){const{initDraggableContainer:n}=Gl(t.value||{});n(e)}}},q_={key:0,class:"drag-overlay"},G_=o.defineComponent({__name:"DragOver",props:{multiple:{type:Boolean},accept:{},disabled:{type:Boolean},browse:{type:Boolean}},emits:["addFiles"],setup(e,{emit:t}){const n=e,r=t,a=o.ref(!1),l=o.ref(0);function i(f){n.disabled||(f.preventDefault(),f.stopPropagation(),l.value++,a.value=!0)}function s(f){n.disabled||(f.preventDefault(),f.stopPropagation())}function c(f){n.disabled||(f.preventDefault(),f.stopPropagation(),l.value--,l.value===0&&(a.value=!1))}function u(f){if(!n.browse||n.disabled)return;f.preventDefault(),f.stopPropagation();const p=document.createElement("input");p.type="file",p.multiple=!!n.multiple,p.accept=n.accept||"*",p.onchange=h=>{const{files:m}=h.target;m&&r("addFiles",m)},p.click()}function d(f){n.disabled||(f.preventDefault(),f.stopPropagation(),l.value=0,a.value=!1,f.dataTransfer&&r("addFiles",f.dataTransfer.files))}return(f,p)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["drag-over-container",{"is-dragging":a.value,"is-disabled":e.disabled}]),onDragenter:i,onDragover:s,onDragleave:c,onDrop:d,onClick:u},[o.renderSlot(f.$slots,"default",{},void 0,!0),a.value&&!e.disabled?(o.openBlock(),o.createElementBlock("div",q_,[o.createVNode(o.unref(xe),{name:"download",color:"white",size:"2"})])):o.createCommentVNode("",!0)],34))}}),yc=De(G_,[["__scopeId","data-v-8facbf91"]]),Y_=["top","right","bottom","left"],Fd=["start","end"],zd=Y_.reduce((e,t)=>e.concat(t,t+"-"+Fd[0],t+"-"+Fd[1]),[]),bc=Math.min,Er=Math.max,Yl=Math.round,Wn=e=>({x:e,y:e}),X_={left:"right",right:"left",bottom:"top",top:"bottom"},K_={start:"end",end:"start"};function Ud(e,t,n){return Er(e,bc(t,n))}function Ka(e,t){return typeof e=="function"?e(t):e}function ho(e){return e.split("-")[0]}function fo(e){return e.split("-")[1]}function ph(e){return e==="x"?"y":"x"}function hh(e){return e==="y"?"height":"width"}const J_=new Set(["top","bottom"]);function To(e){return J_.has(ho(e))?"y":"x"}function gh(e){return ph(To(e))}function vh(e,t,n){n===void 0&&(n=!1);const r=fo(e),a=gh(e),l=hh(a);let i=a==="x"?r===(n?"end":"start")?"right":"left":r==="start"?"bottom":"top";return t.reference[l]>t.floating[l]&&(i=Kl(i)),[i,Kl(i)]}function Z_(e){const t=Kl(e);return[Xl(e),t,Xl(t)]}function Xl(e){return e.replace(/start|end/g,t=>K_[t])}const Hd=["left","right"],jd=["right","left"],Q_=["top","bottom"],ew=["bottom","top"];function tw(e,t,n){switch(e){case"top":case"bottom":return n?t?jd:Hd:t?Hd:jd;case"left":case"right":return t?Q_:ew;default:return[]}}function nw(e,t,n,r){const a=fo(e);let l=tw(ho(e),n==="start",r);return a&&(l=l.map(i=>i+"-"+a),t&&(l=l.concat(l.map(Xl)))),l}function Kl(e){return e.replace(/left|right|bottom|top/g,t=>X_[t])}function ow(e){return{top:0,right:0,bottom:0,left:0,...e}}function rw(e){return typeof e!="number"?ow(e):{top:e,right:e,bottom:e,left:e}}function Jl(e){const{x:t,y:n,width:r,height:a}=e;return{width:r,height:a,top:n,left:t,right:t+r,bottom:n+a,x:t,y:n}}function Wd(e,t,n){let{reference:r,floating:a}=e;const l=To(t),i=gh(t),s=hh(i),c=ho(t),u=l==="y",d=r.x+r.width/2-a.width/2,f=r.y+r.height/2-a.height/2,p=r[s]/2-a[s]/2;let h;switch(c){case"top":h={x:d,y:r.y-a.height};break;case"bottom":h={x:d,y:r.y+r.height};break;case"right":h={x:r.x+r.width,y:f};break;case"left":h={x:r.x-a.width,y:f};break;default:h={x:r.x,y:r.y}}switch(fo(t)){case"start":h[i]-=p*(n&&u?-1:1);break;case"end":h[i]+=p*(n&&u?-1:1);break}return h}async function aw(e,t){var n;t===void 0&&(t={});const{x:r,y:a,platform:l,rects:i,elements:s,strategy:c}=e,{boundary:u="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ka(t,e),m=rw(h),b=s[p?f==="floating"?"reference":"floating":f],v=Jl(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement(b)))==null||n?b:b.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(s.floating)),boundary:u,rootBoundary:d,strategy:c})),y=f==="floating"?{x:r,y:a,width:i.floating.width,height:i.floating.height}:i.reference,_=await(l.getOffsetParent==null?void 0:l.getOffsetParent(s.floating)),w=await(l.isElement==null?void 0:l.isElement(_))?await(l.getScale==null?void 0:l.getScale(_))||{x:1,y:1}:{x:1,y:1},$=Jl(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:y,offsetParent:_,strategy:c}):y);return{top:(v.top-$.top+m.top)/w.y,bottom:($.bottom-v.bottom+m.bottom)/w.y,left:(v.left-$.left+m.left)/w.x,right:($.right-v.right+m.right)/w.x}}const lw=async(e,t,n)=>{const{placement:r="bottom",strategy:a="absolute",middleware:l=[],platform:i}=n,s=l.filter(Boolean),c=await(i.isRTL==null?void 0:i.isRTL(t));let u=await i.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:f}=Wd(u,r,c),p=r,h={},m=0;for(let b=0;b<s.length;b++){var g;const{name:v,fn:y}=s[b],{x:_,y:w,data:$,reset:k}=await y({x:d,y:f,initialPlacement:r,placement:p,strategy:a,middlewareData:h,rects:u,platform:{...i,detectOverflow:(g=i.detectOverflow)!=null?g:aw},elements:{reference:e,floating:t}});d=_??d,f=w??f,h={...h,[v]:{...h[v],...$}},k&&m<=50&&(m++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(u=k.rects===!0?await i.getElementRects({reference:e,floating:t,strategy:a}):k.rects),{x:d,y:f}=Wd(u,p,c)),b=-1)}return{x:d,y:f,placement:p,strategy:a,middlewareData:h}};function iw(e,t,n){return(e?[...n.filter(a=>fo(a)===e),...n.filter(a=>fo(a)!==e)]:n.filter(a=>ho(a)===a)).filter(a=>e?fo(a)===e||(t?Xl(a)!==a:!1):!0)}const sw=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,r,a;const{rects:l,middlewareData:i,placement:s,platform:c,elements:u}=t,{crossAxis:d=!1,alignment:f,allowedPlacements:p=zd,autoAlignment:h=!0,...m}=Ka(e,t),g=f!==void 0||p===zd?iw(f||null,h,p):p,b=await c.detectOverflow(t,m),v=((n=i.autoPlacement)==null?void 0:n.index)||0,y=g[v];if(y==null)return{};const _=vh(y,l,await(c.isRTL==null?void 0:c.isRTL(u.floating)));if(s!==y)return{reset:{placement:g[0]}};const w=[b[ho(y)],b[_[0]],b[_[1]]],$=[...((r=i.autoPlacement)==null?void 0:r.overflows)||[],{placement:y,overflows:w}],k=g[v+1];if(k)return{data:{index:v+1,overflows:$},reset:{placement:k}};const C=$.map(L=>{const M=fo(L.placement);return[L.placement,M&&d?L.overflows.slice(0,2).reduce((E,S)=>E+S,0):L.overflows[0],L.overflows]}).sort((L,M)=>L[1]-M[1]),x=((a=C.filter(L=>L[2].slice(0,fo(L[0])?2:3).every(M=>M<=0))[0])==null?void 0:a[0])||C[0][0];return x!==s?{data:{index:v+1,overflows:$},reset:{placement:x}}:{}}}},cw=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:a,middlewareData:l,rects:i,initialPlacement:s,platform:c,elements:u}=t,{mainAxis:d=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ka(e,t);if((n=l.arrow)!=null&&n.alignmentOffset)return{};const v=ho(a),y=To(s),_=ho(s)===s,w=await(c.isRTL==null?void 0:c.isRTL(u.floating)),$=p||(_||!g?[Kl(s)]:Z_(s)),k=m!=="none";!p&&k&&$.push(...nw(s,g,m,w));const C=[s,...$],D=await c.detectOverflow(t,b),x=[];let L=((r=l.flip)==null?void 0:r.overflows)||[];if(d&&x.push(D[v]),f){const A=vh(a,i,w);x.push(D[A[0]],D[A[1]])}if(L=[...L,{placement:a,overflows:x}],!x.every(A=>A<=0)){var M,E;const A=(((M=l.flip)==null?void 0:M.index)||0)+1,B=C[A];if(B&&(!(f==="alignment"?y!==To(B):!1)||L.every(V=>To(V.placement)===y?V.overflows[0]>0:!0)))return{data:{index:A,overflows:L},reset:{placement:B}};let P=(E=L.filter(R=>R.overflows[0]<=0).sort((R,V)=>R.overflows[1]-V.overflows[1])[0])==null?void 0:E.placement;if(!P)switch(h){case"bestFit":{var S;const R=(S=L.filter(V=>{if(k){const ne=To(V.placement);return ne===y||ne==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(ne=>ne>0).reduce((ne,ee)=>ne+ee,0)]).sort((V,ne)=>V[1]-ne[1])[0])==null?void 0:S[0];R&&(P=R);break}case"initialPlacement":P=s;break}if(a!==P)return{reset:{placement:P}}}return{}}}},uw=new Set(["left","top"]);async function dw(e,t){const{placement:n,platform:r,elements:a}=e,l=await(r.isRTL==null?void 0:r.isRTL(a.floating)),i=ho(n),s=fo(n),c=To(n)==="y",u=uw.has(i)?-1:1,d=l&&c?-1:1,f=Ka(t,e);let{mainAxis:p,crossAxis:h,alignmentAxis:m}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&typeof m=="number"&&(h=s==="end"?m*-1:m),c?{x:h*d,y:p*u}:{x:p*u,y:h*d}}const fw=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:a,y:l,placement:i,middlewareData:s}=t,c=await dw(t,e);return i===((n=s.offset)==null?void 0:n.placement)&&(r=s.arrow)!=null&&r.alignmentOffset?{}:{x:a+c.x,y:l+c.y,data:{...c,placement:i}}}}},mw=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:a,platform:l}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:c={fn:v=>{let{x:y,y:_}=v;return{x:y,y:_}}},...u}=Ka(e,t),d={x:n,y:r},f=await l.detectOverflow(t,u),p=To(ho(a)),h=ph(p);let m=d[h],g=d[p];if(i){const v=h==="y"?"top":"left",y=h==="y"?"bottom":"right",_=m+f[v],w=m-f[y];m=Ud(_,m,w)}if(s){const v=p==="y"?"top":"left",y=p==="y"?"bottom":"right",_=g+f[v],w=g-f[y];g=Ud(_,g,w)}const b=c.fn({...t,[h]:m,[p]:g});return{...b,data:{x:b.x-n,y:b.y-r,enabled:{[h]:i,[p]:s}}}}}};function Ni(){return typeof window<"u"}function Hr(e){return yh(e)?(e.nodeName||"").toLowerCase():"#document"}function hn(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function yo(e){var t;return(t=(yh(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function yh(e){return Ni()?e instanceof Node||e instanceof hn(e).Node:!1}function Ln(e){return Ni()?e instanceof Element||e instanceof hn(e).Element:!1}function Jn(e){return Ni()?e instanceof HTMLElement||e instanceof hn(e).HTMLElement:!1}function qd(e){return!Ni()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof hn(e).ShadowRoot}const pw=new Set(["inline","contents"]);function Ja(e){const{overflow:t,overflowX:n,overflowY:r,display:a}=Mn(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!pw.has(a)}const hw=new Set(["table","td","th"]);function gw(e){return hw.has(Hr(e))}const vw=[":popover-open",":modal"];function Di(e){return vw.some(t=>{try{return e.matches(t)}catch{return!1}})}const yw=["transform","translate","scale","rotate","perspective"],bw=["transform","translate","scale","rotate","perspective","filter"],_w=["paint","layout","strict","content"];function Eu(e){const t=Cu(),n=Ln(e)?Mn(e):e;return yw.some(r=>n[r]?n[r]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!t&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!t&&(n.filter?n.filter!=="none":!1)||bw.some(r=>(n.willChange||"").includes(r))||_w.some(r=>(n.contain||"").includes(r))}function ww(e){let t=Lo(e);for(;Jn(t)&&!Ar(t);){if(Eu(t))return t;if(Di(t))return null;t=Lo(t)}return null}function Cu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const $w=new Set(["html","body","#document"]);function Ar(e){return $w.has(Hr(e))}function Mn(e){return hn(e).getComputedStyle(e)}function Ai(e){return Ln(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Lo(e){if(Hr(e)==="html")return e;const t=e.assignedSlot||e.parentNode||qd(e)&&e.host||yo(e);return qd(t)?t.host:t}function bh(e){const t=Lo(e);return Ar(t)?e.ownerDocument?e.ownerDocument.body:e.body:Jn(t)&&Ja(t)?t:bh(t)}function _h(e,t,n){var r;t===void 0&&(t=[]);const a=bh(e),l=a===((r=e.ownerDocument)==null?void 0:r.body),i=hn(a);return l?(_c(i),t.concat(i,i.visualViewport||[],Ja(a)?a:[],[])):t.concat(a,_h(a,[]))}function _c(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wh(e){const t=Mn(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const a=Jn(e),l=a?e.offsetWidth:n,i=a?e.offsetHeight:r,s=Yl(n)!==l||Yl(r)!==i;return s&&(n=l,r=i),{width:n,height:r,$:s}}function $h(e){return Ln(e)?e:e.contextElement}function Cr(e){const t=$h(e);if(!Jn(t))return Wn(1);const n=t.getBoundingClientRect(),{width:r,height:a,$:l}=wh(t);let i=(l?Yl(n.width):n.width)/r,s=(l?Yl(n.height):n.height)/a;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const kw=Wn(0);function kh(e){const t=hn(e);return!Cu()||!t.visualViewport?kw:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Ew(e,t,n){return t===void 0&&(t=!1),!n||t&&n!==hn(e)?!1:t}function ka(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);const a=e.getBoundingClientRect(),l=$h(e);let i=Wn(1);t&&(r?Ln(r)&&(i=Cr(r)):i=Cr(e));const s=Ew(l,n,r)?kh(l):Wn(0);let c=(a.left+s.x)/i.x,u=(a.top+s.y)/i.y,d=a.width/i.x,f=a.height/i.y;if(l){const p=hn(l),h=r&&Ln(r)?hn(r):r;let m=p,g=_c(m);for(;g&&r&&h!==m;){const b=Cr(g),v=g.getBoundingClientRect(),y=Mn(g),_=v.left+(g.clientLeft+parseFloat(y.paddingLeft))*b.x,w=v.top+(g.clientTop+parseFloat(y.paddingTop))*b.y;c*=b.x,u*=b.y,d*=b.x,f*=b.y,c+=_,u+=w,m=hn(g),g=_c(m)}}return Jl({width:d,height:f,x:c,y:u})}function Bi(e,t){const n=Ai(e).scrollLeft;return t?t.left+n:ka(yo(e)).left+n}function Eh(e,t){const n=e.getBoundingClientRect(),r=n.left+t.scrollLeft-Bi(e,n),a=n.top+t.scrollTop;return{x:r,y:a}}function Cw(e){let{elements:t,rect:n,offsetParent:r,strategy:a}=e;const l=a==="fixed",i=yo(r),s=t?Di(t.floating):!1;if(r===i||s&&l)return n;let c={scrollLeft:0,scrollTop:0},u=Wn(1);const d=Wn(0),f=Jn(r);if((f||!f&&!l)&&((Hr(r)!=="body"||Ja(i))&&(c=Ai(r)),Jn(r))){const h=ka(r);u=Cr(r),d.x=h.x+r.clientLeft,d.y=h.y+r.clientTop}const p=i&&!f&&!l?Eh(i,c):Wn(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-c.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-c.scrollTop*u.y+d.y+p.y}}function Sw(e){return Array.from(e.getClientRects())}function Tw(e){const t=yo(e),n=Ai(e),r=e.ownerDocument.body,a=Er(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),l=Er(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+Bi(e);const s=-n.scrollTop;return Mn(r).direction==="rtl"&&(i+=Er(t.clientWidth,r.clientWidth)-a),{width:a,height:l,x:i,y:s}}const Gd=25;function xw(e,t){const n=hn(e),r=yo(e),a=n.visualViewport;let l=r.clientWidth,i=r.clientHeight,s=0,c=0;if(a){l=a.width,i=a.height;const d=Cu();(!d||d&&t==="fixed")&&(s=a.offsetLeft,c=a.offsetTop)}const u=Bi(r);if(u<=0){const d=r.ownerDocument,f=d.body,p=getComputedStyle(f),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(r.clientWidth-f.clientWidth-h);m<=Gd&&(l-=m)}else u<=Gd&&(l+=u);return{width:l,height:i,x:s,y:c}}const Nw=new Set(["absolute","fixed"]);function Dw(e,t){const n=ka(e,!0,t==="fixed"),r=n.top+e.clientTop,a=n.left+e.clientLeft,l=Jn(e)?Cr(e):Wn(1),i=e.clientWidth*l.x,s=e.clientHeight*l.y,c=a*l.x,u=r*l.y;return{width:i,height:s,x:c,y:u}}function Yd(e,t,n){let r;if(t==="viewport")r=xw(e,n);else if(t==="document")r=Tw(yo(e));else if(Ln(t))r=Dw(t,n);else{const a=kh(e);r={x:t.x-a.x,y:t.y-a.y,width:t.width,height:t.height}}return Jl(r)}function Ch(e,t){const n=Lo(e);return n===t||!Ln(n)||Ar(n)?!1:Mn(n).position==="fixed"||Ch(n,t)}function Aw(e,t){const n=t.get(e);if(n)return n;let r=_h(e,[]).filter(s=>Ln(s)&&Hr(s)!=="body"),a=null;const l=Mn(e).position==="fixed";let i=l?Lo(e):e;for(;Ln(i)&&!Ar(i);){const s=Mn(i),c=Eu(i);!c&&s.position==="fixed"&&(a=null),(l?!c&&!a:!c&&s.position==="static"&&!!a&&Nw.has(a.position)||Ja(i)&&!c&&Ch(e,i))?r=r.filter(d=>d!==i):a=s,i=Lo(i)}return t.set(e,r),r}function Bw(e){let{element:t,boundary:n,rootBoundary:r,strategy:a}=e;const i=[...n==="clippingAncestors"?Di(t)?[]:Aw(t,this._c):[].concat(n),r],s=i[0],c=i.reduce((u,d)=>{const f=Yd(t,d,a);return u.top=Er(f.top,u.top),u.right=bc(f.right,u.right),u.bottom=bc(f.bottom,u.bottom),u.left=Er(f.left,u.left),u},Yd(t,s,a));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function Lw(e){const{width:t,height:n}=wh(e);return{width:t,height:n}}function Mw(e,t,n){const r=Jn(t),a=yo(t),l=n==="fixed",i=ka(e,!0,l,t);let s={scrollLeft:0,scrollTop:0};const c=Wn(0);function u(){c.x=Bi(a)}if(r||!r&&!l)if((Hr(t)!=="body"||Ja(a))&&(s=Ai(t)),r){const h=ka(t,!0,l,t);c.x=h.x+t.clientLeft,c.y=h.y+t.clientTop}else a&&u();l&&!r&&a&&u();const d=a&&!r&&!l?Eh(a,s):Wn(0),f=i.left+s.scrollLeft-c.x-d.x,p=i.top+s.scrollTop-c.y-d.y;return{x:f,y:p,width:i.width,height:i.height}}function ks(e){return Mn(e).position==="static"}function Xd(e,t){if(!Jn(e)||Mn(e).position==="fixed")return null;if(t)return t(e);let n=e.offsetParent;return yo(e)===n&&(n=n.ownerDocument.body),n}function Sh(e,t){const n=hn(e);if(Di(e))return n;if(!Jn(e)){let a=Lo(e);for(;a&&!Ar(a);){if(Ln(a)&&!ks(a))return a;a=Lo(a)}return n}let r=Xd(e,t);for(;r&&gw(r)&&ks(r);)r=Xd(r,t);return r&&Ar(r)&&ks(r)&&!Eu(r)?n:r||ww(e)||n}const Vw=async function(e){const t=this.getOffsetParent||Sh,n=this.getDimensions,r=await n(e.floating);return{reference:Mw(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Pw(e){return Mn(e).direction==="rtl"}const Iw={convertOffsetParentRelativeRectToViewportRelativeRect:Cw,getDocumentElement:yo,getClippingRect:Bw,getOffsetParent:Sh,getElementRects:Vw,getClientRects:Sw,getDimensions:Lw,getScale:Cr,isElement:Ln,isRTL:Pw},Ow=fw,Rw=sw,Fw=mw,zw=cw,Uw=(e,t,n)=>{const r=new Map,a={platform:Iw,...n},l={...a.platform,_c:r};return lw(e,t,{...a,platform:l})},Hw={class:"bgl-dropdown__content"},nn=o.defineComponent({inheritAttrs:!1,__name:"Dropdown",props:o.mergeModels({value:{},thin:{type:Boolean,default:!0},flat:{type:Boolean,default:!0},disabled:{type:Boolean},icon:{},color:{},triggerClass:{},iconEnd:{},border:{type:Boolean},outline:{type:Boolean},round:{type:Boolean},placement:{default:"bottom-start"},disablePlacement:{type:Boolean,default:!1},noAutoFocus:{type:Boolean},autoHide:{type:Boolean,default:!0},triggers:{default:()=>["click"]},showTriggers:{},hideTriggers:{},popperTriggers:{default:()=>[]},popperShowTriggers:{default:()=>[]},popperHideTriggers:{default:()=>[]},showGroup:{},delay:{}},{shown:{type:Boolean,default:!1},shownModifiers:{}}),emits:o.mergeModels(["show","hide"],["update:shown"]),setup(e,{expose:t,emit:n}){const r=e,a=n,l=o.useModel(e,"shown"),i=o.ref(null),s=o.ref(null),c=o.ref("body"),{isMobile:u,innerWidth:d}=cl(),f=o.computed(()=>r.disablePlacement&&u.value),p=o.computed(()=>d.value<910),h=o.computed(()=>p.value?r.triggers.map(I=>I==="hover"?"click":I):r.triggers),m=o.computed(()=>h.value.includes("click")),g=o.computed(()=>h.value.includes("hover")),b=o.computed(()=>r.popperTriggers.length>0?r.popperTriggers.includes("hover"):r.triggers.includes("hover")&&!p.value),v=o.computed(()=>{if(r.icon!==void 0&&r.icon!=="")return r.icon;if(r.value===void 0||r.value==="")return"more_vert"}),y=o.computed(()=>r.delay!==void 0?typeof r.delay=="number"?{show:r.delay,hide:r.delay}:r.delay:r.triggers.includes("hover")&&!p.value?{show:0,hide:10}:{show:0,hide:0}),_=new Map;async function w(){var te;const I=(te=i.value)==null?void 0:te.firstElementChild;if(!s.value||!I||f.value)return;const H=r.placement==="auto",{x:F,y:Z}=await Uw(I,s.value,{placement:H?void 0:r.placement,strategy:"fixed",middleware:[Ow(4),...H?[Rw()]:[zw()],Fw({padding:8})]});s.value&&(s.value.style.left=`${F}px`,s.value.style.top=`${Z}px`)}function $(){var I;return!!((I=s.value)!=null&&I.matches(":popover-open"))}async function k(){var I,H;r.disabled||$()||(c.value=((I=i.value)==null?void 0:I.closest("dialog[open]"))??"body",r.showGroup&&_.has(r.showGroup)&&_.get(r.showGroup).forEach(F=>F()),await o.nextTick(),(H=s.value)==null||H.showPopover())}function C(){var H,F;if(!$())return;const I=(H=i.value)==null?void 0:H.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');I==null||I.focus(),(F=s.value)==null||F.hidePopover()}const D=k;function x(){C()}o.watch(l,I=>{I&&!$()?k():!I&&$()&&C()});function L(I){I.newState==="open"?(l.value=!0,o.nextTick(w),a("show")):(l.value=!1,a("hide"))}function M(I){var F,Z;if(!r.autoHide||!$())return;const H=I.target;(F=s.value)!=null&&F.contains(H)||(Z=i.value)!=null&&Z.contains(H)||C()}function E(I){I.key==="Escape"&&$()&&(I.stopPropagation(),C())}let S,A;function B(){clearTimeout(S),clearTimeout(A)}function P(){m.value&&($()?C():k())}function R(){g.value&&(clearTimeout(A),S=setTimeout(k,y.value.show))}function V(){g.value&&(clearTimeout(S),A=setTimeout(C,y.value.hide))}function ne(){b.value&&clearTimeout(A)}function ee(){b.value&&(A=setTimeout(C,y.value.hide))}return o.onMounted(()=>{document.addEventListener("pointerdown",M,!0),document.addEventListener("keydown",E),r.showGroup&&(_.has(r.showGroup)||_.set(r.showGroup,new Set),_.get(r.showGroup).add(C))}),o.onBeforeUnmount(()=>{var I,H;document.removeEventListener("pointerdown",M,!0),document.removeEventListener("keydown",E),B(),r.showGroup&&((I=_.get(r.showGroup))==null||I.delete(C)),$()&&((H=s.value)==null||H.hidePopover())}),t({show:D,hide:x,shown:l}),(I,H)=>(o.openBlock(),o.createElementBlock(o.Fragment,null,[o.createElementVNode("div",o.mergeProps({ref_key:"triggerWrapRef",ref:i},I.$attrs,{onMouseenter:R,onMouseleave:V,onFocus:R,onBlur:V}),[o.renderSlot(I.$slots,"trigger",{show:o.unref(D),hide:x,shown:l.value},()=>[o.createVNode(o.unref(ae),{class:o.normalizeClass(e.triggerClass),iconEnd:e.iconEnd,icon:v.value,value:e.value,thin:e.thin,flat:e.flat,outline:e.outline,round:e.round,color:e.color,disabled:e.disabled,onClick:P},null,8,["class","iconEnd","icon","value","thin","flat","outline","round","color","disabled"])])],16),(o.openBlock(),o.createBlock(o.Teleport,{to:c.value},[o.createElementVNode("div",{ref_key:"popoverRef",ref:s,popover:"manual",class:o.normalizeClass(["bgl-dropdown",{"bgl-dropdown--no-positioning":f.value}]),onToggle:L,onMouseenter:ne,onMouseleave:ee,onFocus:ne,onBlur:ee},[H[0]||(H[0]=o.createElementVNode("div",{class:"bgl-dropdown__backdrop"},null,-1)),o.createElementVNode("div",Hw,[o.renderSlot(I.$slots,"default",{hide:x,show:o.unref(D),shown:l.value})])],34)],8,["to"]))],64))}}),jw={class:"px-1 pt-025 pb-1"},Ww={class:"ms-1"},qw=o.defineComponent({__name:"FieldSetVue",props:{label:{},legend:{}},setup(e){return(t,n)=>(o.openBlock(),o.createElementBlock("fieldset",jw,[o.createElementVNode("legend",Ww,o.toDisplayString(e.legend||e.label),1),o.renderSlot(t.$slots,"default",{},void 0,!0)]))}}),Gw=De(qw,[["__scopeId","data-v-f7e758e5"]]),Yw={class:"p-1 m_p-05"},Xw={class:"p-025 bg-bg radius-1 mb-05"},Kw={key:0,class:"opacity-3 flex gap-05 p-025 min-w-450px m_min-0"},Jw={class:""},Zw={key:0,class:"min-w-100px"},Qw={key:2},e2={class:"flex gap-1 space-between"},t2={class:"flex gap-05"},n2=o.defineComponent({__name:"Filter",props:o.mergeModels({fields:{}},{modelValue:{default:()=>[]},modelModifiers:{}}),emits:o.mergeModels(["change","save"],["update:modelValue"]),setup(e,{emit:t}){const n=e,r=t,a=o.useModel(e,"modelValue"),l=o.ref([...a.value]),{$t:i}=xt(),s=o.getCurrentInstance(),c=o.computed(()=>{var ee;return!!((ee=s==null?void 0:s.vnode.props)!=null&&ee.onSave)});function u(ee){return!ee.field||!ee.op?!1:ee.op==="pr"?!0:ee.op==="in"||ee.op==="nin"?Array.isArray(ee.value)&&ee.value.length>0:ee.value!==""&&ee.value!==null&&ee.value!==void 0}const d=Qo(()=>{const ee=l.value.filter(u);console.log("[Filter] flushing - internal:",l.value,"| complete:",ee),a.value=ee,r("change",ee)},400);let f=0;function p(){return`cond_${++f}_${Date.now()}`}const h=o.computed(()=>({filter:i("filter.filter"),noActiveFilters:i("filter.noActiveFilters"),connectors:{and:i("filter.connectors.and"),or:i("filter.connectors.or")},operators:{eq:i("filter.operators.eq"),ne:i("filter.operators.ne"),gt:i("filter.operators.gt"),ge:i("filter.operators.ge"),lt:i("filter.operators.lt"),le:i("filter.operators.le"),co:i("filter.operators.co"),sw:i("filter.operators.sw"),ew:i("filter.operators.ew"),pr:i("filter.operators.pr"),in:i("filter.operators.in"),nin:i("filter.operators.nin")},placeholders:{selectField:i("filter.placeholders.selectField"),selectOption:i("filter.placeholders.selectOption"),selectDate:i("filter.placeholders.selectDate"),enterValue:i("filter.placeholders.enterValue")},buttons:{addCondition:i("filter.buttons.addCondition"),clearAll:i("filter.buttons.clearAll")},boolean:{true:i("select.yes"),false:i("select.no")}})),m=new Map,g=o.computed(()=>(l.value||[]).map((I,H)=>(m.has(H)||m.set(H,p()),{id:m.get(H),field:I.field,operator:I.op,value:Array.isArray(I.value)?I.value.map(String):I.value===null?"null":I.value===void 0?"":String(I.value),connector:H>0?I.connector||"and":""}))),b=o.computed(()=>[{label:h.value.operators.eq,value:"eq"},{label:h.value.operators.ne,value:"ne"},{label:h.value.operators.gt,value:"gt"},{label:h.value.operators.ge,value:"ge"},{label:h.value.operators.lt,value:"lt"},{label:h.value.operators.le,value:"le"},{label:h.value.operators.co,value:"co"},{label:h.value.operators.sw,value:"sw"},{label:h.value.operators.ew,value:"ew"},{label:h.value.operators.pr,value:"pr"},{label:h.value.operators.in,value:"in"},{label:h.value.operators.nin,value:"nin"}]);function v(ee,I,H){if(H&&I)return b.value.filter(F=>["in","nin","pr"].includes(F.value));if(I)return b.value.filter(F=>["eq","ne","pr"].includes(F.value));switch(ee){case"boolean":return b.value.filter(F=>["eq","ne","pr"].includes(F.value));case"number":case"date":return b.value.filter(F=>["eq","ne","gt","ge","lt","le","pr"].includes(F.value));default:return b.value.filter(F=>["eq","ne","co","sw","ew","pr"].includes(F.value))}}function y(ee){return n.fields.find(I=>I.value===ee)}function _(ee){var I;return(I=y(ee))==null?void 0:I.options}function w(ee){const I=y(ee);return!!(I!=null&&I.multiple&&(I!=null&&I.options))}const $=o.computed(()=>[{label:h.value.boolean.true,value:"true"},{label:h.value.boolean.false,value:"false"}]);function k(ee){return typeof ee=="number"||typeof ee=="boolean"||ee===null?ee:ee==="true"?!0:ee==="false"?!1:ee==="null"?null:!Number.isNaN(Number(ee))&&ee.trim()!==""?Number(ee):ee}function C(ee,I){const H=[...l.value],F=H[ee];if(!F)return;const Z={...F};I.field!==void 0&&(Z.field=I.field),I.op!==void 0&&(Z.op=I.op),I.value!==void 0&&(Z.value=Array.isArray(I.value)?I.value:k(I.value)),I.connector!==void 0&&(Z.connector=I.connector),H[ee]=Z,l.value=H,d()}function D(){var Z;const ee=((Z=n.fields[0])==null?void 0:Z.value)||"field",I=w(ee),H={field:ee,op:I?"in":"eq",value:I?[]:"",connector:a.value.length>0?"and":void 0},F=[...l.value,H];l.value=F,console.log("[Filter] addCondition - skipping flush (incomplete)")}function x(ee){const I=[...l.value];I.splice(ee,1),I.length>0&&I[0].connector&&(I[0]={...I[0],connector:void 0}),m.delete(ee),l.value=I,d()}function L(){m.clear(),l.value=[],a.value=[],console.log("[Filter] clearAll"),r("change",[])}function M(ee){var I;return((I=n.fields.find(H=>H.value===ee))==null?void 0:I.type)||"string"}function E(ee){return ee!=="pr"}function S(ee){return ee==="in"||ee==="nin"}const A=o.computed(()=>g.value.filter(ee=>!!ee.field&&(ee.operator==="pr"||!!ee.value)).length);function B(ee){return g.value.findIndex(I=>I.id===ee)}function P(ee,I){const H=B(ee);H>=0&&C(H,{field:I})}function R(ee,I){const H=B(ee);if(H<0)return;const F=g.value[H],Z=(F==null?void 0:F.operator)==="in"||(F==null?void 0:F.operator)==="nin",te=I==="in"||I==="nin",be={op:I};Z&&!te?be.value="":!Z&&te&&(be.value=[]),C(H,be)}function V(ee,I){const H=B(ee);H>=0&&C(H,{value:I})}function ne(ee,I){const H=B(ee);H>=0&&C(H,{connector:I})}return(ee,I)=>(o.openBlock(),o.createBlock(o.unref(nn),{flat:"",placement:"bottom-end",icon:"filter_alt",value:A.value>0?`${h.value.filter} (${A.value})`:h.value.filter,thin:"","auto-hide":!1},{default:o.withCtx(()=>[o.createElementVNode("div",Yw,[o.createElementVNode("div",Xw,[g.value.length===0?(o.openBlock(),o.createElementBlock("div",Kw,[o.createVNode(o.unref(xe),{name:"info"}),o.createElementVNode("div",Jw,o.toDisplayString(h.value.noActiveFilters),1)])):o.createCommentVNode("",!0),o.createVNode(o.TransitionGroup,{name:"condition"},{default:o.withCtx(()=>[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(g.value,(H,F)=>(o.openBlock(),o.createElementBlock("div",{key:H.id,class:o.normalizeClass(["grid gap-025 align-items-center pt-025",{"mt-025":F>0&&H.connector==="or","pt-075 border-top-or":F>0&&H.connector==="or","first-filter-row":F===0,"filter-row":F>0}])},[F>0?(o.openBlock(),o.createElementBlock("div",Zw,[o.createVNode(o.unref(yt),{"model-value":H.connector||"and",options:[{label:h.value.connectors.and,value:"and"},{label:h.value.connectors.or,value:"or"}],class:"m-0 and-or-select txt-12","onUpdate:modelValue":Z=>ne(H.id,Z)},null,8,["model-value","options","onUpdate:modelValue"])])):o.createCommentVNode("",!0),o.createVNode(o.unref(yt),{"model-value":H.field,options:e.fields,placeholder:h.value.placeholders.selectField,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>P(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"]),o.createVNode(o.unref(yt),{"model-value":H.operator,options:v(M(H.field),!!_(H.field),w(H.field)),class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>R(H.id,Z)},null,8,["model-value","options","onUpdate:modelValue"]),E(H.operator)?(o.openBlock(),o.createElementBlock(o.Fragment,{key:1},[_(H.field)&&S(H.operator)?(o.openBlock(),o.createBlock(o.unref(yt),{key:0,"model-value":Array.isArray(H.value)?H.value:[],options:_(H.field),placeholder:h.value.placeholders.selectOption,class:"m-0 light-input borderHover",searchable:"",multiselect:"","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"])):_(H.field)?(o.openBlock(),o.createBlock(o.unref(yt),{key:1,"model-value":H.value,options:_(H.field),placeholder:h.value.placeholders.selectOption,class:"m-0 light-input borderHover",searchable:"","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"])):M(H.field)==="boolean"?(o.openBlock(),o.createBlock(o.unref(yt),{key:2,"model-value":H.value,options:$.value,placeholder:h.value.placeholders.selectOption,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","options","placeholder","onUpdate:modelValue"])):M(H.field)==="date"?(o.openBlock(),o.createBlock(o.unref(Ca),{key:3,"model-value":H.value,placeholder:h.value.placeholders.selectDate,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,String(Z))},null,8,["model-value","placeholder","onUpdate:modelValue"])):M(H.field)==="number"?(o.openBlock(),o.createBlock(o.unref(tt),{key:4,"model-value":H.value,placeholder:"0",type:"number",class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","onUpdate:modelValue"])):(o.openBlock(),o.createBlock(o.unref(tt),{key:5,"model-value":H.value,placeholder:h.value.placeholders.enterValue,class:"m-0 light-input borderHover","onUpdate:modelValue":Z=>V(H.id,Z)},null,8,["model-value","placeholder","onUpdate:modelValue"]))],64)):(o.openBlock(),o.createElementBlock("div",Qw)),o.createVNode(o.unref(ae),{icon:"close",thin:"",flat:"",size:"small",class:"m_bg-gray-40 m_px-3 m_mx-auto",onClick:Z=>x(F)},null,8,["onClick"])],2))),128))]),_:1})]),o.createElementVNode("div",e2,[o.createVNode(o.unref(ae),{icon:"add",flat:"",thin:"",value:h.value.buttons.addCondition,onClick:D},null,8,["value"]),o.createElementVNode("div",t2,[g.value.length>0?(o.openBlock(),o.createBlock(o.unref(ae),{key:0,icon:"delete_sweep",flat:"",thin:"",color:"gray",value:h.value.buttons.clearAll,onClick:L},null,8,["value"])):o.createCommentVNode("",!0),c.value?(o.openBlock(),o.createBlock(o.unref(ae),{key:1,disabled:g.value.length===0,class:"color-green",icon:"save",thin:"",color:"green-light",value:o.unref(i)("filter.buttons.save"),onClick:I[0]||(I[0]=H=>r("save",l.value.filter(u)))},null,8,["disabled","value"])):o.createCommentVNode("",!0)])])])]),_:1},8,["value"]))}}),o2=De(n2,[["__scopeId","data-v-8f45ed04"]]),r2=o.defineComponent({__name:"Flag",props:{country:{},size:{},circle:{type:Boolean},square:{type:Boolean}},setup(e){const t=e,n=o.computed(()=>!!(t.circle||t.square)),r=o.computed(()=>`${t.size??1}rem`),a=o.computed(()=>{let l=t.country.toLowerCase();l==="ac"&&(l="sh-ac");const i="https://cdn.jsdelivr.net/gh/lipis/flag-icons@7.0.0/flags";return n.value?`url(${i}/1x1/${l.toLowerCase()}.svg)`:`url(${i}/4x3/${l.toLowerCase()}.svg)`});return(l,i)=>(o.openBlock(),o.createElementBlock("span",{class:o.normalizeClass(["fi",{fis:n.value,circle:e.circle}]),style:o.normalizeStyle({height:r.value,backgroundImage:a.value})},null,6))}}),wc=De(r2,[["__scopeId","data-v-9f07b0be"]]);function Su(e,t={},n={}){return typeof t=="object"?{id:e,...t}:{id:e,label:t,...n}}function Li(e,t,n){return{$el:"richtext",class:n==null?void 0:n.class,required:n==null?void 0:n.required,id:e,label:t,helptext:n==null?void 0:n.helpText,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,placeholder:n==null?void 0:n.placeholder,attrs:{height:n==null?void 0:n.height,basic:n==null?void 0:n.basic,simple:n==null?void 0:n.simple,debug:n==null?void 0:n.debug,hideToolbar:n==null?void 0:n.hideToolbar,hideInlineToolbar:n==null?void 0:n.hideInlineToolbar,hideImages:n==null?void 0:n.hideImages,hideVideos:n==null?void 0:n.hideVideos,hideEmbed:n==null?void 0:n.hideEmbed,hideTables:n==null?void 0:n.hideTables,hideAlignment:n==null?void 0:n.hideAlignment,hideDirections:n==null?void 0:n.hideDirections,hideH5H6:n==null?void 0:n.hideH5H6,hide:n==null?void 0:n.hide,autofocus:n==null?void 0:n.autofocus,textColor:n==null?void 0:n.textColor,fontSize:n==null?void 0:n.fontSize,autocomplete:n==null?void 0:n.autocomplete}}}function Mi(e,t,n){return{$el:"text",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,placeholder:n==null?void 0:n.placeholder,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,autocomplete:n==null?void 0:n.autocomplete,pattern:n==null?void 0:n.pattern,multiline:n==null?void 0:n.multiline,autoheight:n==null?void 0:n.autoheight,code:n==null?void 0:n.code,rows:n==null?void 0:n.rows,icon:n==null?void 0:n.icon,iconStart:n==null?void 0:n.iconStart,type:n==null?void 0:n.type}}}function Za(e,t,n,r){return{$el:"select",id:e,label:t,class:r==null?void 0:r.class,required:r==null?void 0:r.required,helptext:r==null?void 0:r.helptext,disabled:r==null?void 0:r.disabled,defaultValue:r==null?void 0:r.defaultValue,vIf:r==null?void 0:r.vIf,transform:r==null?void 0:r.transform,placeholder:r==null?void 0:r.placeholder,options:n,attrs:{...r==null?void 0:r.attrs,title:r==null?void 0:r.title,searchable:r==null?void 0:r.searchable,multiselect:r==null?void 0:r.multiselect,clearable:r==null?void 0:r.clearable}}}const Th=Za;function Vi(e,t,n){return{$el:"check",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{...n==null?void 0:n.attrs,value:n==null?void 0:n.value}}}function Pi(e,t,n){return{$el:"email",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,autocorrect:n==null?void 0:n.autocorrect,serverValidate:n==null?void 0:n.serverValidate,preventFakeEmails:n==null?void 0:n.preventFakeEmails,pattern:n==null?void 0:n.pattern}}}function Ii(e,t,n){return{$el:"date",class:n==null?void 0:n.class,required:n==null?void 0:n.required,id:e,disabled:n==null?void 0:n.disabled,label:t,...(n==null?void 0:n.defaultValue)!==void 0&&{defaultValue:n.defaultValue},vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,disabled:n==null?void 0:n.disabled,autocomplete:n==null?void 0:n.autocomplete,enableTime:n==null?void 0:n.enableTime,mode:n==null?void 0:n.mode,locale:n==null?void 0:n.locale,timezone:n==null?void 0:n.timezone}}}function Oi(e,t,n){return{$el:"number",class:n==null?void 0:n.class,required:n==null?void 0:n.required,defaultValue:n==null?void 0:n.defaultValue,id:e,label:t,disabled:n==null?void 0:n.disabled,placeholder:n==null?void 0:n.placeholder,helptext:n==null?void 0:n.helptext,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{title:n==null?void 0:n.title,autocomplete:n==null?void 0:n.autocomplete,step:n==null?void 0:n.step,min:n==null?void 0:n.min,max:n==null?void 0:n.max,layout:n==null?void 0:n.layout,padZero:n==null?void 0:n.padZero,center:n==null?void 0:n.center,useGrouping:n==null?void 0:n.useGrouping}}}function Ri(...e){return{$el:"div",class:"flex gap-1 m_block align-items-end",children:e}}function Fi(e,t,n){return{$el:"upload",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{...n}}}function zi(e,t,n){return{$el:"range",id:e,label:t,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{autocomplete:n==null?void 0:n.autocomplete,min:n==null?void 0:n.min,max:n==null?void 0:n.max,step:n==null?void 0:n.step,rtl:n==null?void 0:n.rtl,multiRange:n==null?void 0:n.multiRange,formatValue:n==null?void 0:n.formatValue}}}function Tu(e,...t){return typeof e=="string"?{$el:"bagelform",id:e,attrs:{schema:[e,...t]}}:{$el:"bagelform",attrs:{schema:[e,...t]}}}function Ui(e,t,n){return{$el:"tel",id:e,label:t,class:n==null?void 0:n.class,required:n==null?void 0:n.required,placeholder:n==null?void 0:n.placeholder,helptext:n==null?void 0:n.helptext,disabled:n==null?void 0:n.disabled,defaultValue:n==null?void 0:n.defaultValue,vIf:n==null?void 0:n.vIf,transform:n==null?void 0:n.transform,attrs:{...n==null?void 0:n.attrs,title:n==null?void 0:n.title,pattern:n==null?void 0:n.pattern,autocomplete:n==null?void 0:n.autocomplete}}}function Hi(e,t,n){return{$el:"color",id:e,label:t,vIf:n==null?void 0:n.vIf,attrs:n,class:n==null?void 0:n.class,transform:n==null?void 0:n.transform}}function ji(e,t){for(const n of t){if(n.id===e)return n;if(n.children&&Number(n.children.length)>0){const r=n.children.filter(l=>typeof l=="object"&&"$el"in l),a=ji(e,r);if(a)return a}}}function xu(e,t,n,r){const l={delete:!0,add:!0,...r,...typeof n=="string"?{type:n}:{schema:n}};return{label:t,id:e,class:r==null?void 0:r.class,$el:"array",vIf:r==null?void 0:r.vIf,transform:r==null?void 0:r.transform,attrs:l}}function Nu(){return{txtField:(e,t,n)=>Mi(e,t,n),selectField:(e,t,n,r)=>Za(e,t,n,r),dateField:(e,t,n)=>Ii(e,t,n),telField:(e,t,n)=>Ui(e,t,n),frmRow:(...e)=>Ri(...e),numField:(e,t,n)=>Oi(e,t,n),checkField:(e,t,n)=>Vi(e,t,n),emailField:(e,t,n)=>Pi(e,t,n),uploadField:(e,t,n)=>Fi(e,t,n),rangeField:(e,t,n)=>zi(e,t,n),colorField:(e,t,n)=>Hi(e,t,n),richText:(e,t,n)=>Li(e,t,n)}}function xh(){return{txtField:Mi,selectField:Za,checkField:Vi,dateField:Ii,numField:Oi,emailField:Pi,frmRow:Ri,uploadField:Fi,rangeField:zi,bglForm:Tu,telField:Ui,colorField:Hi,arrField:xu,richText:Li,findBglFieldById:ji,getBaseField:Su,createSchema:Nu}}const a2=Object.freeze(Object.defineProperty({__proto__:null,arrField:xu,bglForm:Tu,checkField:Vi,colorField:Hi,createSchema:Nu,dateField:Ii,emailField:Pi,findBglFieldById:ji,frmRow:Ri,getBaseField:Su,numField:Oi,rangeField:zi,richText:Li,selectField:Za,slctField:Th,telField:Ui,txtField:Mi,uploadField:Fi,useForm:xh},Symbol.toStringTag,{value:"Module"}));function Kd(e){return e===null?"null":typeof e=="string"?`"${e.replace(/"/g,'\\"')}"`:typeof e=="boolean"?e.toString():String(e)}function Wi(e){if(!e||e.length===0)return"";const t=[];for(let n=0;n<e.length;n++){const{field:r,op:a,value:l,connector:i}=e[n];if(n>0&&i&&t.push(i),a==="pr")t.push(`${r} pr`);else if(a==="in"||a==="nin"){const s=Array.isArray(l)?l:l!=null?[l]:[];if(s.length===0)continue;const c=a==="in"?"eq":"ne",u=a==="in"?"or":"and",d=s.map(f=>`${r} ${c} ${Kd(f)}`).join(` ${u} `);t.push(s.length>1?`(${d})`:d)}else t.push(`${r} ${a} ${Kd(l??null)}`)}return t.join(" ")}class Du{constructor(){Ve(this,"parts",[])}eq(t,n){return this.parts.push(`${t} eq ${this.formatValue(n)}`),this}ne(t,n){return this.parts.push(`${t} ne ${this.formatValue(n)}`),this}gt(t,n){return this.parts.push(`${t} gt ${this.formatValue(n)}`),this}ge(t,n){return this.parts.push(`${t} ge ${this.formatValue(n)}`),this}lt(t,n){return this.parts.push(`${t} lt ${this.formatValue(n)}`),this}le(t,n){return this.parts.push(`${t} le ${this.formatValue(n)}`),this}co(t,n){return this.parts.push(`${t} co ${this.formatValue(n)}`),this}sw(t,n){return this.parts.push(`${t} sw ${this.formatValue(n)}`),this}ew(t,n){return this.parts.push(`${t} ew ${this.formatValue(n)}`),this}pr(t){return this.parts.push(`${t} pr`),this}and(){return this.parts.push("and"),this}or(){return this.parts.push("or"),this}not(){return this.parts.push("not"),this}group(t){const n=new Du;t(n);const r=n.build();return r&&this.parts.push(`(${r})`),this}raw(t){return this.parts.push(t),this}clear(){return this.parts=[],this}build(){return this.parts.join(" ")}toString(){return this.build()}[Symbol.toPrimitive](t){return t==="string"?this.build():this.parts.length}formatValue(t){return t===null?"null":typeof t=="string"?`"${t.replace(/"/g,'\\"')}"`:typeof t=="boolean"?t.toString():String(t)}}function l2(e){const t=new Du;return e&&e.length>0&&t.raw(Wi(e)),t}function i2(e,t){const n=e.map((r,a)=>({field:r,op:"eq",value:t,connector:a>0?"or":void 0}));return Wi(n)}function s2(e,t,n){return Wi([{field:e,op:"ge",value:t},{field:e,op:"le",value:n,connector:"and"}])}function c2(e,t){const n=e.map((r,a)=>({field:r,op:"co",value:t,connector:a>0?"or":void 0}));return Wi(n)}const u2=["eq","ne","gt","ge","lt","le","co","sw","ew","pr","in","nin"],d2=["and","or"];function f2(e){const t=e.trim();if(t==="null")return null;if(t==="true")return!0;if(t==="false")return!1;if(t.startsWith('"')&&t.endsWith('"'))return t.slice(1,-1).replace(/\\"/g,'"');const n=Number(t);return!Number.isNaN(n)&&t!==""?n:t}function Au(e){if(!e||!e.trim())return[];const t=m2(e);return Nh(t,0,t.length).conditions}function Nh(e,t,n){var l,i;const r=[];let a=t;for(;a<n;){let s;if(r.length>0&&d2.includes((l=e[a])==null?void 0:l.toLowerCase())&&(s=e[a].toLowerCase(),a++),a>=n)break;if(e[a]==="("){let p=1,h=a+1;for(;h<n&&p>0;)e[h]==="("?p++:e[h]===")"&&p--,h++;const m=Nh(e,a+1,h-1);s&&m.conditions.length>0&&(m.conditions[0].connector=s),r.push(...m.conditions),a=h;continue}if(e[a]===")"){a++;continue}const c=e[a++];if(a>=n)break;const u=(i=e[a++])==null?void 0:i.toLowerCase();if(!u2.includes(u))throw new Error(`Invalid operator: ${u}`);let d;if(u!=="pr"){if(a>=n)throw new Error(`Missing value for operator ${u}`);d=f2(e[a++])}const f={field:c,op:u,value:d};s&&(f.connector=s),r.push(f)}return{conditions:r,endIndex:a}}function m2(e){const t=[];let n="",r=!1,a=0;for(;a<e.length;){const l=e[a];if(r){if(l==="\\"&&e[a+1]==='"'){n+='\\"',a+=2;continue}if(l==='"'){n+='"',t.push(n),n="",r=!1,a++;continue}n+=l,a++}else{if(l==='"'){n&&t.push(n),n='"',r=!0,a++;continue}if(l==="("||l===")"){n&&(t.push(n),n=""),t.push(l),a++;continue}if(l===" "||l===" "){n&&(t.push(n),n=""),a++;continue}n+=l,a++}}return n&&t.push(n),t}const Dh={omitExtraWLInCodeBlocks:!1,noHeaderId:!1,prefixHeaderId:!1,rawPrefixHeaderId:!1,ghCompatibleHeaderId:!1,rawHeaderId:!1,headerLevelStart:0,parseImgDimensions:!1,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!1,literalMidWordUnderscores:!1,literalMidWordAsterisks:!1,strikethrough:!1,tables:!1,tablesHeaderId:!1,ghCodeBlocks:!0,tasklists:!1,smoothLivePreview:!1,smartIndentationFix:!1,disableForced4SpacesIndentedSublists:!1,simpleLineBreaks:!1,requireSpaceBeforeHeadingText:!1,ghMentions:!1,encodeEmails:!0,openLinksInNewWindow:!0,backslashEscapesHTMLTags:!1,customizedHeaderId:!1,tableHeaderId:!1,underline:!1,completeHTMLDocument:!1,splitAdjacentBlockquotes:!1},Jd={},q={helper:{},subParser:(e,t)=>{if(t!==void 0)Jd[e]=t;else return Jd[e]},Converter:void 0};q.helper.isString=function(e){return typeof e=="string"||e instanceof String};q.helper.isFunction=function(e){return e&&{}.toString.call(e)==="[object Function]"};q.helper.isArray=function(e){return Array.isArray(e)};q.helper.isUndefined=function(e){return typeof e>"u"};q.helper.forEach=function(e,t){if(q.helper.isUndefined(e))throw new TypeError("obj param is required");if(q.helper.isUndefined(t))throw new TypeError("callback param is required");if(!q.helper.isFunction(t))throw new TypeError("callback param must be a function/closure");if(typeof e.forEach=="function")e.forEach(t);else if(q.helper.isArray(e))for(let n=0;n<e.length;n++)t(e[n],n,e);else if(typeof e=="object")for(let n in e)e.hasOwnProperty(n)&&t(e[n],n,e);else throw new TypeError("obj does not seem to be an array or an iterable object")};function Ah(e,t){return`¨E${t.charCodeAt(0)}E`}q.helper.escapeCharactersCallback=Ah;q.helper.escapeCharacters=function(e,t,n){let r=`([${t.replace(/([[\]\\])/g,"\\$1")}])`;n&&(r=`\\\\${r}`);let a=new RegExp(r,"g");return e=e.replace(a,Ah),e};q.helper.unescapeHTMLEntities=function(e){return e.replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&")};let Bh=function(e,t,n,r){let a=r||"",l=a.includes("g"),i=new RegExp(`${t}|${n}`,`g${a.replace(/g/g,"")}`),s=new RegExp(t,a.replace(/g/g,"")),c=[],u=0,d=0,f,p=0,h=0;do for(u=0;f=i.exec(e);)if(s.test(f[0]))u++||(d=i.lastIndex,p=d-f[0].length);else if(u&&!--u){h=f.index+f[0].length;let m={left:{start:p,end:d},match:{start:d,end:f.index},right:{start:f.index,end:h},wholeMatch:{start:p,end:h}};if(c.push(m),!l)return c}while(u&&(i.lastIndex=d));return c};q.helper.matchRecursiveRegExp=function(e,t,n,r){let a=Bh(e,t,n,r),l=[];for(let i=0;i<a.length;++i)l.push([e.slice(a[i].wholeMatch.start,a[i].wholeMatch.end),e.slice(a[i].match.start,a[i].match.end),e.slice(a[i].left.start,a[i].left.end),e.slice(a[i].right.start,a[i].right.end)]);return l};q.helper.replaceRecursiveRegExp=function(e,t,n,r,a){let l;if(q.helper.isFunction(t))l=t;else{let u=t;l=function(){return u}}let i=Bh(e,n,r,a),s=e,c=i.length;if(c>0){let u=[];i[0].wholeMatch.start!==0&&u.push(e.slice(0,i[0].wholeMatch.start));for(let d=0;d<c;++d)u.push(l(e.slice(i[d].wholeMatch.start,i[d].wholeMatch.end),e.slice(i[d].match.start,i[d].match.end),e.slice(i[d].left.start,i[d].left.end),e.slice(i[d].right.start,i[d].right.end))),d<c-1&&u.push(e.slice(i[d].wholeMatch.end,i[d+1].wholeMatch.start));i[c-1].wholeMatch.end<e.length&&u.push(e.slice(i[c-1].wholeMatch.end)),s=u.join("")}return s};q.helper.regexIndexOf=function(e,t,n){if(!q.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";if(!(t instanceof RegExp))throw"InvalidArgumentError: second parameter of showdown.helper.regexIndexOf function must be an instance of RegExp";let r=e.substring(n||0).search(t);return r>=0?r+(n||0):r};q.helper.splitAtIndex=function(e,t){if(!q.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]};q.helper.encodeEmailAddress=function(e){let t=[function(n){return`&#${n.charCodeAt(0)};`},function(n){return`&#x${n.charCodeAt(0).toString(16)};`},function(n){return n}];return e=e.replace(/./g,n=>{if(n==="@")n=t[Math.floor(Math.random()*2)](n);else{let r=Math.random();n=r>.9?t[2](n):r>.45?t[1](n):t[0](n)}return n}),e};q.helper.padEnd=function(t,n,r){return n=n>>0,r=String(r||" "),t.length>n?String(t):(n=n-t.length,n>r.length&&(r+=r.repeat(n/r.length)),String(t)+r.slice(0,n))};typeof console>"u"&&(console={warn(e){alert(e)},log(e){alert(e)},error(e){throw e}});q.helper.regexes={asteriskDashAndColon:/([*_:~])/g};q.Converter=function(e){let t={};n();function n(){if(e=e||{},typeof e!="object")throw new TypeError(`Converter expects the passed parameter to be an object, but ${typeof e} was passed instead.`);t={...Dh,...e}}function r(a){var s;let l=((s=a.match(/^\s*/))==null?void 0:s[0].length)||0,i=new RegExp(`^\\s{0,${l}}`,"gm");return a.replace(i,"")}this.makeHtml=function(a){if(!a)return a;let l={gHtmlBlocks:[],gHtmlMdBlocks:[],gHtmlSpans:[],gUrls:{},gTitles:{},gDimensions:{},gListLevel:0,hashLinkCounts:{},converter:this,ghCodeBlocks:[],metadata:{parsed:{},raw:"",format:""}};return a=a.replace(/¨/g,"¨T"),a=a.replace(/\$/g,"¨D"),a=a.replace(/\r\n/g,`
|
|
21
21
|
`),a=a.replace(/\r/g,`
|
|
22
22
|
`),a=a.replace(/\u00A0/g," "),t.smartIndentationFix&&(a=r(a)),a=`
|
|
23
23
|
|