uikit 3.20.6 → 3.20.8-dev.a340cc6f4
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/CHANGELOG.md +13 -0
- package/build/package.json +4 -0
- package/build/util.js +0 -14
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +5 -2
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +9 -6
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +9 -6
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +9 -6
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +9 -6
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +9 -6
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +28 -18
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +3 -3
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +30 -20
- package/dist/js/uikit.min.js +1 -1
- package/package.json +8 -14
- package/src/js/components/sortable.js +25 -19
- package/src/js/mixin/internal/animate-slide.js +9 -1
- package/src/js/util/filter.js +5 -5
- package/dist/js/components/countdown.esm.js +0 -1
- package/dist/js/components/filter.esm.js +0 -1
- package/dist/js/components/lightbox-panel.esm.js +0 -1
- package/dist/js/components/lightbox.esm.js +0 -1
- package/dist/js/components/notification.esm.js +0 -1
- package/dist/js/components/parallax.esm.js +0 -1
- package/dist/js/components/slider-parallax.esm.js +0 -1
- package/dist/js/components/slider.esm.js +0 -1
- package/dist/js/components/slideshow-parallax.esm.js +0 -1
- package/dist/js/components/slideshow.esm.js +0 -1
- package/dist/js/components/sortable.esm.js +0 -1
- package/dist/js/components/tooltip.esm.js +0 -1
- package/dist/js/components/upload.esm.js +0 -1
- package/dist/js/uikit-icons.esm.js +0 -1
- package/dist/js/uikit.esm.js +0 -1
- /package/{eslint.config.js → eslint.config.mjs} +0 -0
package/package.json
CHANGED
|
@@ -2,20 +2,14 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.20.
|
|
6
|
-
"
|
|
7
|
-
".": {
|
|
8
|
-
"import": "./dist/js/uikit.esm.js",
|
|
9
|
-
"require": "./dist/js/uikit.js"
|
|
10
|
-
}
|
|
11
|
-
},
|
|
5
|
+
"version": "3.20.8-dev.a340cc6f4",
|
|
6
|
+
"main": "dist/js/uikit.js",
|
|
12
7
|
"style": "dist/css/uikit.css",
|
|
13
8
|
"sideEffects": [
|
|
14
9
|
"*.css",
|
|
15
10
|
"./src/js/*.js",
|
|
16
11
|
"./dist/**/*.js"
|
|
17
12
|
],
|
|
18
|
-
"type": "module",
|
|
19
13
|
"repository": {
|
|
20
14
|
"type": "git",
|
|
21
15
|
"url": "git+https://github.com/uikit/uikit.git"
|
|
@@ -26,7 +20,7 @@
|
|
|
26
20
|
},
|
|
27
21
|
"homepage": "https://getuikit.com",
|
|
28
22
|
"devDependencies": {
|
|
29
|
-
"@eslint/js": "^9.
|
|
23
|
+
"@eslint/js": "^9.1.1",
|
|
30
24
|
"@rollup/plugin-alias": "^5.1.0",
|
|
31
25
|
"@rollup/plugin-replace": "^5.0.5",
|
|
32
26
|
"archiver": "^7.0.1",
|
|
@@ -34,21 +28,21 @@
|
|
|
34
28
|
"chokidar-cli": "^3.0.0",
|
|
35
29
|
"clean-css": "^5.3.3",
|
|
36
30
|
"dateformat": "^5.0.3",
|
|
37
|
-
"esbuild": "^0.20.
|
|
38
|
-
"eslint": "^9.
|
|
31
|
+
"esbuild": "^0.20.2",
|
|
32
|
+
"eslint": "^9.1.1",
|
|
39
33
|
"eslint-config-prettier": "^9.1.0",
|
|
40
34
|
"execa": "^8.0.1",
|
|
41
35
|
"fs-extra": "^11.2.0",
|
|
42
|
-
"glob": "^10.3.
|
|
36
|
+
"glob": "^10.3.12",
|
|
43
37
|
"globals": "^15.0.0",
|
|
44
|
-
"inquirer": "^9.2.
|
|
38
|
+
"inquirer": "^9.2.19",
|
|
45
39
|
"less": "^4.2.0",
|
|
46
40
|
"minimist": "^1.2.8",
|
|
47
41
|
"number-precision": "^1.6.0",
|
|
48
42
|
"p-limit": "^5.0.0",
|
|
49
43
|
"prettier": "^3.2.5",
|
|
50
44
|
"prettier-plugin-organize-imports": "^3.2.4",
|
|
51
|
-
"rollup": "^4.
|
|
45
|
+
"rollup": "^4.16.4",
|
|
52
46
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
53
47
|
"rollup-plugin-modify": "^3.0.0",
|
|
54
48
|
"rtlcss": "^4.1.1",
|
|
@@ -65,16 +65,6 @@ export default {
|
|
|
65
65
|
pos: {},
|
|
66
66
|
},
|
|
67
67
|
|
|
68
|
-
created() {
|
|
69
|
-
for (const key of ['init', 'start', 'move', 'end']) {
|
|
70
|
-
const fn = this[key];
|
|
71
|
-
this[key] = (e) => {
|
|
72
|
-
assign(this.pos, getEventPos(e));
|
|
73
|
-
fn(e);
|
|
74
|
-
};
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
|
|
78
68
|
events: {
|
|
79
69
|
name: pointerDown,
|
|
80
70
|
passive: false,
|
|
@@ -194,6 +184,7 @@ export default {
|
|
|
194
184
|
|
|
195
185
|
e.preventDefault();
|
|
196
186
|
|
|
187
|
+
this.pos = getEventPos(e);
|
|
197
188
|
this.touched = new Set([this]);
|
|
198
189
|
this.placeholder = placeholder;
|
|
199
190
|
this.origin = { target, index: index(placeholder), ...this.pos };
|
|
@@ -223,7 +214,9 @@ export default {
|
|
|
223
214
|
this.move(e);
|
|
224
215
|
},
|
|
225
216
|
|
|
226
|
-
move(e) {
|
|
217
|
+
move: throttle(function (e) {
|
|
218
|
+
assign(this.pos, getEventPos(e));
|
|
219
|
+
|
|
227
220
|
if (this.drag) {
|
|
228
221
|
this.$emit('move');
|
|
229
222
|
} else if (
|
|
@@ -232,7 +225,7 @@ export default {
|
|
|
232
225
|
) {
|
|
233
226
|
this.start(e);
|
|
234
227
|
}
|
|
235
|
-
},
|
|
228
|
+
}),
|
|
236
229
|
|
|
237
230
|
end() {
|
|
238
231
|
off(document, pointerMove, this.move);
|
|
@@ -272,17 +265,17 @@ export default {
|
|
|
272
265
|
insert(element, target) {
|
|
273
266
|
addClass(this.items, this.clsItem);
|
|
274
267
|
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
this.
|
|
268
|
+
if (target && target.previousElementSibling !== element) {
|
|
269
|
+
this.animate(() => before(target, element));
|
|
270
|
+
} else if (!target && this.target.lastElementChild !== element) {
|
|
271
|
+
this.animate(() => append(this.target, element));
|
|
272
|
+
}
|
|
278
273
|
},
|
|
279
274
|
|
|
280
275
|
remove(element) {
|
|
281
|
-
if (
|
|
282
|
-
|
|
276
|
+
if (this.target.contains(element)) {
|
|
277
|
+
this.animate(() => remove(element));
|
|
283
278
|
}
|
|
284
|
-
|
|
285
|
-
this.animate(() => remove(element));
|
|
286
279
|
},
|
|
287
280
|
|
|
288
281
|
getSortable(element) {
|
|
@@ -438,3 +431,16 @@ function isHorizontal(list, placeholder) {
|
|
|
438
431
|
function linesIntersect(lineA, lineB) {
|
|
439
432
|
return lineA[1] > lineB[0] && lineB[1] > lineA[0];
|
|
440
433
|
}
|
|
434
|
+
|
|
435
|
+
function throttle(fn) {
|
|
436
|
+
let throttled;
|
|
437
|
+
return function (...args) {
|
|
438
|
+
if (!throttled) {
|
|
439
|
+
throttled = true;
|
|
440
|
+
requestAnimationFrame(() => {
|
|
441
|
+
throttled = false;
|
|
442
|
+
fn.call(this, ...args);
|
|
443
|
+
});
|
|
444
|
+
}
|
|
445
|
+
};
|
|
446
|
+
}
|
|
@@ -21,8 +21,13 @@ export default async function (action, target, duration) {
|
|
|
21
21
|
const currentProps = nodes.map((el) => getProps(el, true));
|
|
22
22
|
const targetProps = { ...css(target, ['height', 'padding']), display: 'block' };
|
|
23
23
|
|
|
24
|
+
const targets = nodes.concat(target);
|
|
25
|
+
|
|
24
26
|
// Cancel previous animations
|
|
25
|
-
await Promise.all(
|
|
27
|
+
await Promise.all(targets.map(Transition.cancel));
|
|
28
|
+
|
|
29
|
+
// Force transition to be canceled in Safari
|
|
30
|
+
css(targets, 'transitionProperty', 'none');
|
|
26
31
|
|
|
27
32
|
// Adding, sorting, removing nodes
|
|
28
33
|
await action();
|
|
@@ -33,6 +38,9 @@ export default async function (action, target, duration) {
|
|
|
33
38
|
// Wait for update to propagate
|
|
34
39
|
await Promise.resolve();
|
|
35
40
|
|
|
41
|
+
// Possibly reset the forced transition property
|
|
42
|
+
css(targets, 'transitionProperty', '');
|
|
43
|
+
|
|
36
44
|
// Get new state
|
|
37
45
|
const targetStyle = attr(target, 'style');
|
|
38
46
|
const targetPropsTo = css(target, ['height', 'padding']);
|
package/src/js/util/filter.js
CHANGED
|
@@ -22,11 +22,11 @@ export function isVoidElement(element) {
|
|
|
22
22
|
return toNodes(element).some((element) => voidElements[element.tagName.toLowerCase()]);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
const isVisibleFn =
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
const isVisibleFn =
|
|
26
|
+
(inBrowser && Element.prototype.checkVisibility) ||
|
|
27
|
+
function () {
|
|
28
|
+
return this.offsetWidth || this.offsetHeight || this.getClientRects().length;
|
|
29
|
+
};
|
|
30
30
|
export function isVisible(element) {
|
|
31
31
|
return toNodes(element).some((element) => isVisibleFn.call(element));
|
|
32
32
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{addClass as d,attr as h,toFloat as l,trigger as s,$ as c,html as p}from"uikit-util";var u={connected(){d(this.$el,this.$options.id)}};const m=["days","hours","minutes","seconds"];var o={mixins:[u],props:{date:String,clsWrapper:String,role:String},data:{date:"",clsWrapper:".uk-countdown-%unit%",role:"timer"},connected(){h(this.$el,"role",this.role),this.date=l(Date.parse(this.$props.date)),this.end=!1,this.start()},disconnected(){this.stop()},events:{name:"visibilitychange",el:()=>document,handler(){document.hidden?this.stop():this.start()}},methods:{start(){this.stop(),this.update(),this.timer||(s(this.$el,"countdownstart"),this.timer=setInterval(this.update,1e3))},stop(){this.timer&&(clearInterval(this.timer),s(this.$el,"countdownstop"),this.timer=null)},update(){const n=f(this.date);n.total||(this.stop(),this.end||(s(this.$el,"countdownend"),this.end=!0));for(const e of m){const i=c(this.clsWrapper.replace("%unit%",e),this.$el);if(!i)continue;let t=String(Math.trunc(n[e]));t=t.length<2?`0${t}`:t,i.textContent!==t&&(t=t.split(""),t.length!==i.children.length&&p(i,t.map(()=>"<span></span>").join("")),t.forEach((a,r)=>i.children[r].textContent=a))}}}};function f(n){const e=Math.max(0,n-Date.now())/1e3;return{total:e,seconds:e%60,minutes:e/60%60,hours:e/60/60%24,days:e/60/60/24}}typeof window<"u"&&window.UIkit&&window.UIkit.component("countdown",o);export{o as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{startsWith as X,includes as C,isUndefined as v,fastdom as T,isPlainObject as Y,assign as Z,observeResize as tt,observeMutation as et,children as d,toggleClass as b,isRtl as it,isVisible as g,offsetPosition as ot,css as c,Transition as m,attr as w,trigger as I,parent as P,index as nt,offset as st,position as rt,hasClass as E,toNumber as at,once as ft,addClass as z,removeClass as N,height as F,noop as ct,$$ as S,isTag as lt,isEqual as U,append as ut,isEmpty as dt,each as pt,data as _,$ as ht,matches as mt}from"uikit-util";function yt(t,e=[]){try{return t?X(t,"{")?JSON.parse(t):e.length&&!C(t,":")?{[e[0]]:t}:t.split(";").reduce((i,o)=>{const[s,n]=o.split(/:(.*)/);return s&&!v(n)&&(i[s.trim()]=n.trim()),i},{}):{}}catch{return{}}}function wt(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,T.read(()=>{t._connected&>(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function gt(t,e){for(const{read:i,write:o,events:s=[]}of t._updates){if(!e.has("update")&&!s.some(r=>e.has(r)))continue;let n;i&&(n=i.call(t,t._data,e),n&&Y(n)&&Z(t._data,n)),o&&n!==!1&&T.write(()=>{t._connected&&o.call(t,t._data,e)})}}function vt(t){return H(tt,t,"resize")}function B(t){return H(et,t)}function H(t,e,i){return{observe:t,handler(){wt(this,i)},...e}}B({options:{childList:!0}}),B({options:{attributes:!0,attributeFilter:["style"]},target:({$el:t})=>[t,...d(t)]}),vt({target:({$el:t})=>[t,...d(t)]});function L(t){const e=[[]],i=t.some((o,s)=>s&&t[s-1].offsetParent!==o.offsetParent);for(const o of t){if(!g(o))continue;const s=$(o,i);for(let n=e.length-1;n>=0;n--){const r=e[n];if(!r[0]){r.push(o);break}const f=$(r[0],i);if(s.top>=f.bottom-1&&s.top!==f.top){e.push([o]);break}if(s.bottom-1>f.top||s.top===f.top){let l=r.length-1;for(;l>=0;l--){const p=$(r[l],i);if(s.left>=p.left)break}r.splice(l+1,0,o);break}if(n===0){e.unshift([o]);break}}}return e}function $(t,e=!1){let{offsetTop:i,offsetLeft:o,offsetHeight:s,offsetWidth:n}=t;return e&&([i,o]=ot(t)),{top:i,left:o,bottom:i+s,right:o+n}}async function bt(t,e,i){await x();let o=d(e);const s=o.map(a=>M(a,!0)),n={...c(e,["height","padding"]),display:"block"};await Promise.all(o.concat(e).map(m.cancel)),await t(),o=o.concat(d(e).filter(a=>!C(o,a))),await Promise.resolve();const r=w(e,"style"),f=c(e,["height","padding"]),[l,p]=Pt(e,o,s),h=o.map(a=>({style:w(a,"style")}));o.forEach((a,u)=>p[u]&&c(a,p[u])),c(e,n),I(e,"scroll"),await x();const y=o.map((a,u)=>P(a)===e&&m.start(a,l[u],i,"ease")).concat(m.start(e,f,i,"ease"));try{await Promise.all(y),o.forEach((a,u)=>{w(a,h[u]),P(a)===e&&c(a,"display",l[u].opacity===0?"none":"")}),w(e,"style",r)}catch{w(o,"style",""),St(e,n)}}function M(t,e){const i=c(t,"zIndex");return g(t)?{display:"",opacity:e?c(t,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:i==="auto"?nt(t):i,...R(t)}:!1}function Pt(t,e,i){const o=e.map((n,r)=>P(n)&&r in i?i[r]?g(n)?R(n):{opacity:0}:{opacity:g(n)?1:0}:!1),s=o.map((n,r)=>{const f=P(e[r])===t&&(i[r]||M(e[r]));if(!f)return!1;if(!n)delete f.opacity;else if(!("opacity"in n)){const{opacity:l}=f;l%1?n.opacity=1:delete f.opacity}return f});return[o,s]}function St(t,e){for(const i in e)c(t,i,"")}function R(t){const{height:e,width:i}=st(t);return{height:e,width:i,transform:"",...rt(t),...c(t,["marginTop","marginLeft"])}}function x(){return new Promise(t=>requestAnimationFrame(t))}const A="uk-transition-leave",q="uk-transition-enter";function W(t,e,i,o=0){const s=k(e,!0),n={opacity:1},r={opacity:0},f=h=>()=>s===k(e)?h():Promise.reject(),l=f(async()=>{z(e,A),await Promise.all(D(e).map((h,y)=>new Promise(a=>setTimeout(()=>m.start(h,r,i/2,"ease").then(a),y*o)))),N(e,A)}),p=f(async()=>{const h=F(e);z(e,q),t(),c(d(e),{opacity:0}),await x();const y=d(e),a=F(e);c(e,"alignContent","flex-start"),F(e,h);const u=D(e);c(y,r);const O=u.map(async(K,Q)=>{await kt(Q*o),await m.start(K,n,i/2,"ease")});h!==a&&O.push(m.start(e,{height:a},i/2+u.length*o,"ease")),await Promise.all(O).then(()=>{N(e,q),s===k(e)&&(c(e,{height:"",alignContent:""}),c(y,{opacity:""}),delete e.dataset.transition)})});return E(e,A)?j(e).then(p):E(e,q)?j(e).then(l).then(p):l().then(p)}function k(t,e){return e&&(t.dataset.transition=1+k(t)),at(t.dataset.transition)||0}function j(t){return Promise.all(d(t).filter(m.inProgress).map(e=>new Promise(i=>ft(e,"transitionend transitioncanceled",i))))}function D(t){return L(d(t)).flat().filter(g)}function kt(t){return new Promise(e=>setTimeout(e,t))}var Ct={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(t,e=this.$el){const i=this.animation;return(i==="fade"?W:i==="delayed-fade"?(...s)=>W(...s,40):i?bt:()=>(t(),Promise.resolve()))(t,e,this.duration).catch(ct)}}};const Tt={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var G={mixins:[Ct],args:"target",props:{target:String,selActive:Boolean},data:{target:"",selActive:!1,attrItem:"uk-filter-control",cls:"uk-active",duration:250},computed:{children:({target:t},e)=>S(`${t} > *`,e),toggles:({attrItem:t},e)=>S(`[${t}],[data-${t}]`,e)},watch:{toggles(t){this.updateState();const e=S(this.selActive,this.$el);for(const i of t){this.selActive!==!1&&b(i,this.cls,C(e,i));const o=xt(i);lt(o,"a")&&w(o,"role","button")}},children(t,e){e&&this.updateState()}},events:{name:"click keydown",delegate(){return`[${this.attrItem}],[data-${this.attrItem}]`},handler(t){t.type==="keydown"&&t.keyCode!==Tt.SPACE||t.target.closest("a,button")&&(t.preventDefault(),this.apply(t.current))}},methods:{apply(t){const e=this.getState(),i=V(t,this.attrItem,this.getState());It(e,i)||this.setState(i)},getState(){return this.toggles.filter(t=>E(t,this.cls)).reduce((t,e)=>V(e,this.attrItem,t),{filter:{"":""},sort:[]})},async setState(t,e=!0){t={filter:{"":""},sort:[],...t},I(this.$el,"beforeFilter",[this,t]);for(const i of this.toggles)b(i,this.cls,Ft(i,this.attrItem,t));await Promise.all(S(this.target,this.$el).map(i=>{const o=()=>Et(t,i,d(i));return e?this.animate(o,i):o()})),I(this.$el,"afterFilter",[this])},updateState(){T.write(()=>this.setState(this.getState(),!1))}}};function J(t,e){return yt(_(t,e),["filter"])}function It(t,e){return["filter","sort"].every(i=>U(t[i],e[i]))}function Et(t,e,i){const o=_t(t);for(const r of i)c(r,"display",o&&!mt(r,o)?"none":"");const[s,n]=t.sort;if(s){const r=$t(i,s,n);U(r,i)||ut(e,r)}}function V(t,e,i){const{filter:o,group:s,sort:n,order:r="asc"}=J(t,e);return(o||v(n))&&(s?o?(delete i.filter[""],i.filter[s]=o):(delete i.filter[s],(dt(i.filter)||""in i.filter)&&(i.filter={"":o||""})):i.filter={"":o||""}),v(n)||(i.sort=[n,r]),i}function Ft(t,e,{filter:i={"":""},sort:[o,s]}){const{filter:n="",group:r="",sort:f,order:l="asc"}=J(t,e);return v(f)?r in i&&n===i[r]||!n&&r&&!(r in i)&&!i[""]:o===f&&s===l}function _t({filter:t}){let e="";return pt(t,i=>e+=i||""),e}function $t(t,e,i){return[...t].sort((o,s)=>_(o,e).localeCompare(_(s,e),void 0,{numeric:!0})*(i==="asc"||-1))}function xt(t){return ht("a,button",t)||t}typeof window<"u"&&window.UIkit&&window.UIkit.component("filter",G);export{G as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{on as g,matches as _,getEventPos as V,scrollParents as Et,once as S,css as d,width as Tt,addClass as k,$ as v,startsWith as Pt,toNodes as Nt,isBoolean as Dt,trigger as u,isFunction as Ot,removeClass as b,toNode as Lt,hasClass as D,isVisible as nt,includes as $,toggleClass as j,$$ as rt,Animation as G,Transition as w,dimensions as ot,toFloat as E,wrapInner as Mt,unwrap as Bt,attr as f,isSameSiteAnchor as jt,isFocusable as Ht,parent as at,append as H,endsWith as zt,last as X,pointerDown as ht,pointerUp as lt,pointerCancel as Ut,fastdom as dt,isPlainObject as Ft,assign as Wt,observeResize as qt,clamp as ct,noop as Y,createEvent as Rt,isRtl as z,isTouch as Vt,selInput as Gt,off as J,toArray as Xt,memoize as Yt,hyphenate as ut,children as pt,isTag as Jt,data as U,isNumeric as K,toNumber as ft,empty as Kt,getIndex as mt,isNumber as gt,pointerMove as Qt,html as vt,fragment as Zt}from"uikit-util";let Q;function te(t){const e=g(t,"touchstart",s=>{if(s.targetTouches.length!==1||_(s.target,'input[type="range"'))return;let r=V(s).y;const n=g(t,"touchmove",a=>{const o=V(a).y;o!==r&&(r=o,Et(a.target).some(c=>{if(!t.contains(c))return!1;let{scrollHeight:h,clientHeight:l}=c;return l<h})||a.preventDefault())},{passive:!1});S(t,"scroll touchend touchcanel",n,{capture:!0})});if(Q)return e;Q=!0;const{scrollingElement:i}=document;return d(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:Tt(window)-i.clientWidth||""}),()=>{Q=!1,e(),d(i,{overflowY:"",touchAction:"",paddingRight:""})}}var ee={connected(){k(this.$el,this.$options.id)}},ie={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&v(t)}}},se={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>Pt(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(Nt(t).map(s=>{const r=Dt(e)?e:!this.isToggled(s);if(!u(s,`before${r?"show":"hide"}`,[this]))return Promise.reject();const n=(Ot(i)?i:i===!1||!this.hasAnimation?ne:this.hasTransition?re:oe)(s,r,this),a=r?this.clsEnter:this.clsLeave;k(s,a),u(s,r?"show":"hide",[this]);const o=()=>{b(s,a),u(s,r?"shown":"hidden",[this])};return n?n.then(o,()=>(b(s,a),Promise.reject())):o()})),!0}catch{return!1}},isToggled(t=this.$el){return t=Lt(t),D(t,this.clsEnter)?!0:D(t,this.clsLeave)?!1:this.cls?D(t,this.cls.split(" ")[0]):nt(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=$(this.cls," ")||e!==D(t,this.cls),i&&j(t,this.cls,$(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),rt("[autofocus]",t).some(s=>nt(s)?s.focus()||!0:s.blur()),i&&u(t,"toggled",[e,this])}}};function ne(t,e,{_toggle:i}){return G.cancel(t),w.cancel(t),i(t,e)}async function re(t,e,{animation:i,duration:s,velocity:r,transition:n,_toggle:a}){var o;const[c="reveal",h="top"]=((o=i[0])==null?void 0:o.split("-"))||[],l=[["left","right"],["top","bottom"]],p=l[$(l[0],h)?0:1],I=p[1]===h,A=["width","height"][l.indexOf(p)],C=`margin-${p[0]}`,M=`margin-${h}`;let P=ot(t)[A];const Ct=w.inProgress(t);await w.cancel(t),e&&a(t,!0);const St=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",C,M].map(st=>[st,t.style[st]])),N=ot(t),R=E(d(t,C)),tt=E(d(t,M)),y=N[A]+tt;!Ct&&!e&&(P+=tt);const[B]=Mt(t,"<div>");d(B,{boxSizing:"border-box",height:N.height,width:N.width,...d(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",M])}),d(t,{padding:0,border:0,minWidth:0,minHeight:0,[M]:0,width:N.width,height:N.height,overflow:"hidden",[A]:P});const et=P/y;s=(r*y+s)*(e?1-et:et);const it={[A]:e?y:0};I&&(d(t,C,y-P+R),it[C]=e?R:y+R),!I^c==="reveal"&&(d(B,C,-y+P),w.start(B,{[C]:e?0:-y},s,n));try{await w.start(t,it,s,n)}finally{d(t,St),Bt(B.firstChild),e||a(t,!1)}}function oe(t,e,i){const{animation:s,duration:r,_toggle:n}=i;return e?(n(t,!0),G.in(t,s[0],r,i.origin)):G.out(t,s[1]||s[0],r,i.origin).then(()=>n(t,!1))}const m=[];var ae={mixins:[ee,ie,se],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>v(t,e),transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){f(this.panel||this.$el,"role",this.role),this.overlay&&f(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){$(m,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&jt(e)&&!this.$el.contains(v(s))?this.hide():_(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===$(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if($(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(e=>e.hide())).then(this.show),t.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&d(this.$el,"zIndex",E(d(this.$el,"zIndex"))+m.length);const t=[this.overlay&&le(this),this.overlay&&te(this.$el),this.bgClose&&de(this),this.escClose&&ce(this)];S(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),k(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){Ht(this.$el)||f(this.$el,"tabindex","-1"),_(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){$(m,this)&&m.splice(m.indexOf(this),1),d(this.$el,"zIndex",""),m.some(t=>t.clsPage===this.clsPage)||b(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&at(this.$el)!==this.container?(H(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,bt)},hide(){return this.toggleElement(this.$el,!1,bt)}}};function bt(t,e,{transitionElement:i,_toggle:s}){return new Promise((r,n)=>S(t,"show hide",()=>{var a;(a=t._reject)==null||a.call(t),t._reject=n,s(t,e);const o=S(i,"transitionstart",()=>{S(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(c)},{self:!0}),c=setTimeout(()=>{o(),r()},he(d(i,"transitionDuration")))})).then(()=>delete t._reject)}function he(t){return t?zt(t,"ms")?E(t):E(t)*1e3:0}function le(t){return g(document,"focusin",e=>{X(m)===t&&!t.$el.contains(e.target)&&t.$el.focus()})}function de(t){return g(document,ht,({target:e})=>{X(m)!==t||t.overlay&&!t.$el.contains(e)||t.panel.contains(e)||S(document,`${lt} ${Ut} scroll`,({defaultPrevented:i,type:s,target:r})=>{!i&&s===lt&&e===r&&t.hide()},!0)})}function ce(t){return g(document,"keydown",e=>{e.keyCode===27&&X(m)===t&&t.hide()})}function ue(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,dt.read(()=>{t._connected&&pe(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function pe(t,e){for(const{read:i,write:s,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(a=>e.has(a)))continue;let n;i&&(n=i.call(t,t._data,e),n&&Ft(n)&&Wt(t._data,n)),s&&n!==!1&&dt.write(()=>{t._connected&&s.call(t,t._data,e)})}}function fe(t){return me(qt,t,"resize")}function me(t,e,i){return{observe:t,handler(){ue(this,i)},...e}}var wt={slide:{show(t){return[{transform:F(t*-100)},{transform:F()}]},percent(t){return ge(t)},translate(t,e){return[{transform:F(e*-100*t)},{transform:F(e*100*(1-t))}]}}};function ge(t){return Math.abs(d(t,"transform").split(",")[4]/t.offsetWidth)}function F(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function W(t){return`scale3d(${t}, ${t}, 1)`}function ve(t,e,i,{animation:s,easing:r}){const{percent:n,translate:a,show:o=Y}=s,c=o(i);let h;return{dir:i,show(l,p=0,I){const T=I?"linear":r;return l-=Math.round(l*ct(p,-1,1)),this.translate(p),q(e,"itemin",{percent:p,duration:l,timing:T,dir:i}),q(t,"itemout",{percent:1-p,duration:l,timing:T,dir:i}),new Promise(A=>{h||(h=A),Promise.all([w.start(e,c[1],l,T),w.start(t,c[0],l,T)]).then(()=>{this.reset(),h()},Y)})},cancel(){return w.cancel([e,t])},reset(){for(const l in c[0])d([e,t],l,"")},async forward(l,p=this.percent()){return await this.cancel(),this.show(l,p,!0)},translate(l){this.reset();const p=a(l,i);d(e,p[1]),d(t,p[0]),q(e,"itemtranslatein",{percent:l,dir:i}),q(t,"itemtranslateout",{percent:1-l,dir:i})},percent(){return n(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function q(t,e,i){u(t,Rt(e,!1,!1,i))}var be={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,r;let n=0;return((r=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[n++]||""))||""}}},we={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){f(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){f(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&_(this.$el,":focus-within")&&!_(this.$el,":focus")||this.pauseOnHover&&_(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const O={passive:!1,capture:!0},xt={passive:!0,capture:!0},xe="touchstart mousedown",Z="touchmove mousemove",kt="touchend touchcancel mouseup click input scroll",$t=t=>t.preventDefault();var ke={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=V(i).x*(z?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:xe,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!Vt(t)&&$e(t.target)||t.target.closest(Gt)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:Z,el(){return this.list},handler:Y,...O}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,g(document,Z,this.move,O),g(document,kt,this.end,xt),d(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||g(this.list,"click",$t,O),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,r=Math.abs(e),n=this.getIndex(s+this.dir),a=It.call(this,s,n);for(;n!==s&&r>a;)this.drag-=a*this.dir,s=n,r-=a,n=this.getIndex(s+this.dir),a=It.call(this,s,n);this.percent=r/a;const o=i[s],c=i[n],h=this.index!==n,l=s===n;let p;for(const I of[this.index,this.prevIndex])$([n,s],I)||(u(i[I],"itemhidden",[this]),l&&(p=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||p)&&u(i[this.index],"itemshown",[this]),h&&(this.prevIndex=s,this.index=n,l||(u(o,"beforeitemhide",[this]),u(o,"itemhide",[this])),u(c,"beforeitemshow",[this]),u(c,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!l&&c)},end(){if(J(document,Z,this.move,O),J(document,kt,this.end,xt),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(z?this.dir*(z?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>J(this.list,"click",$t,O)),d(this.list,{userSelect:""}),this.drag=this.percent=null}}};function It(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function $e(t){return d(t,"userSelect")!=="none"&&Xt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}Yt((t,e)=>{const i=Object.keys(e),s=i.concat(t).map(r=>[ut(r),`data-${ut(r)}`]).flat();return{attributes:i,filter:s}});let Ie=1;function yt(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Ie++}`}const x={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var ye={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>v(t,e),navChildren(){return pt(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return rt(this.selNavItem,e)}},watch:{nav(t,e){f(t,"role","tablist"),e&&this.$emit()},list(t){Jt(t,"ul")&&f(t,"role","presentation")},navChildren(t){f(t,"role","presentation")},navItems(t){for(const e of t){const i=U(e,this.attrItem),s=v("a,button",e)||e;let r,n=null;if(K(i)){const a=ft(i),o=this.slides[a];o&&(o.id||(o.id=yt(this,o)),n=o.id),r=this.t("slideX",E(i)+1),f(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=yt(this,this.list)),n=this.list.id),r=this.t(i);f(s,{"aria-controls":n,"aria-label":f(s,"aria-label")||r})}},slides(t){t.forEach((e,i)=>f(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){Kt(this.nav);for(let i=0;i<t;i++)H(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){f(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===x.SPACE)&&(t.preventDefault(),this.show(U(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,s=U(e,this.attrItem);if(!K(s))return;let r=i===x.HOME?0:i===x.END?"last":i===x.LEFT?"previous":i===x.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=U(e,this.attrItem),s=v("a,button",e)||e;if(K(i)){const n=ft(i)===t;j(e,this.clsActive,n),j(s,"uk-disabled",this.parallax),f(s,{"aria-selected":n,tabindex:n&&!this.parallax?null:-1}),n&&s&&_(at(e),":focus-within")&&s.focus()}else j(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},_e={mixins:[we,ke,ye,be],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){b(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Ce(e.offsetWidth/t),list:({selList:t},e)=>v(t,e),maxIndex(){return this.length-1},slides(){return pt(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){k(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){b(t,this.clsEnter)},itemhide({target:t}){k(t,this.clsLeave)},itemhidden({target:t}){b(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,r=e?0:s.length,n=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),o=D(this.slides,this.clsActive)&&this.slides[a],c=this.getIndex(t,this.index),h=this.slides[c];if(o===h){n();return}if(this.dir=Ae(t,a),this.prevIndex=a,this.index=c,o&&!u(o,"beforeitemhide",[this])||!u(h,"beforeitemshow",[this,o])){this.index=this.prevIndex,n();return}const l=this._show(o,h,e).then(()=>{o&&u(o,"itemhidden",[this]),u(h,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return o&&u(o,"itemhide",[this]),u(h,"itemshow",[this]),l},getIndex(t=this.index,e=this.index){return ct(mt(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(gt(t)?this.slides[t]:t,gt(e)?this.slides[e]:e,i*(z?-1:1),s)}}};function Ae(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Ce(t){return .5*t+300}var Se={mixins:[_e],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:wt,Transitioner:ve},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:fe(),events:{beforeitemshow({target:t}){k(t,this.clsActive)},itemshown({target:t}){k(t,this.clsActivated)},itemhidden({target:t}){b(t,this.clsActive,this.clsActivated)}}},_t={...wt,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-d(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:W(1-.2)},{opacity:1,transform:W(1)}]},percent(t){return 1-d(t,"opacity")},translate(t){return[{opacity:1-t,transform:W(1-.2*t)},{opacity:t,transform:W(1-.2+.2*t)}]}}},At={mixins:[ae,Se],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:_t,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const t=v(this.template),e=v(this.selList,t);this.items.forEach(()=>H(e,"<li>"));const i=v("[uk-close]",t),s=this.t("close");i&&s&&(i.dataset.i18n=JSON.stringify({label:s})),this.$mount(H(this.container,t))},computed:{caption:({selCaption:t},e)=>v(t,e)},events:[{name:`${Qt} ${ht} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:"showControls"},{name:"hide",self:!0,handler(){this.hideControls(),b(this.slides,this.clsActive),w.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===x.LEFT?e="previous":t===x.RIGHT?e="next":t===x.HOME?e=0:t===x.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=_t.scale,b(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){vt(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:r="",poster:n,attrs:a={}}=e;if(this.setItem(e,"<span uk-spinner></span>"),!i)return;let o;const c={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const h=L("img",{src:i,alt:r,...a});g(h,"load",()=>this.setItem(e,h)),g(h,"error",()=>this.setError(e))}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const h=L("video",{src:i,poster:n,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...a});g(h,"loadedmetadata",()=>this.setItem(e,h)),g(h,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,L("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...a}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,L("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...c,...a}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:h,width:l}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,L("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:l,height:h,...c,...a}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||u(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[mt(t,this.slides)]},setItem(t,e){u(this.$el,"itemloaded",[this,vt(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),k(this.$el,"uk-active","uk-transition-active")},hideControls(){b(this.$el,"uk-active","uk-transition-active")}}};function L(t,e){const i=Zt(`<${t}>`);return f(i,e),i}typeof window<"u"&&window.UIkit&&window.UIkit.component("lightboxPanel",At);export{At as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{startsWith as rt,includes as w,isUndefined as Dt,on as g,matches as _,getEventPos as V,scrollParents as Ot,once as S,css as c,width as Lt,addClass as k,$ as v,toNodes as Mt,isBoolean as Bt,trigger as u,isFunction as jt,removeClass as b,toNode as Ht,hasClass as D,isVisible as ot,toggleClass as H,$$ as G,Animation as X,Transition as x,dimensions as at,toFloat as P,wrapInner as zt,unwrap as qt,attr as f,isSameSiteAnchor as Ft,isFocusable as Ut,parent as ht,append as z,endsWith as Wt,last as Y,pointerDown as lt,pointerUp as ct,pointerCancel as Rt,fastdom as dt,isPlainObject as Vt,assign as ut,observeResize as Gt,clamp as pt,noop as J,createEvent as Xt,isRtl as q,isTouch as Yt,selInput as Jt,off as K,toArray as Kt,memoize as Qt,hyphenate as ft,children as mt,isTag as gt,data as O,isNumeric as Q,toNumber as vt,empty as Zt,getIndex as bt,isNumber as wt,pointerMove as te,html as xt,fragment as ee,uniqueBy as ie,isElement as se,findIndex as ne}from"uikit-util";function re(t,e=[]){try{return t?rt(t,"{")?JSON.parse(t):e.length&&!w(t,":")?{[e[0]]:t}:t.split(";").reduce((i,s)=>{const[r,n]=s.split(/:(.*)/);return r&&!Dt(n)&&(i[r.trim()]=n.trim()),i},{}):{}}catch{return{}}}let Z;function oe(t){const e=g(t,"touchstart",s=>{if(s.targetTouches.length!==1||_(s.target,'input[type="range"'))return;let r=V(s).y;const n=g(t,"touchmove",a=>{const o=V(a).y;o!==r&&(r=o,Ot(a.target).some(d=>{if(!t.contains(d))return!1;let{scrollHeight:h,clientHeight:l}=d;return l<h})||a.preventDefault())},{passive:!1});S(t,"scroll touchend touchcanel",n,{capture:!0})});if(Z)return e;Z=!0;const{scrollingElement:i}=document;return c(i,{overflowY:CSS.supports("overflow","clip")?"clip":"hidden",touchAction:"none",paddingRight:Lt(window)-i.clientWidth||""}),()=>{Z=!1,e(),c(i,{overflowY:"",touchAction:"",paddingRight:""})}}var ae={connected(){k(this.$el,this.$options.id)}},he={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&v(t)}}},le={props:{cls:Boolean,animation:"list",duration:Number,velocity:Number,origin:String,transition:String},data:{cls:!1,animation:[!1],duration:200,velocity:.2,origin:!1,transition:"ease",clsEnter:"uk-togglable-enter",clsLeave:"uk-togglable-leave"},computed:{hasAnimation:({animation:t})=>!!t[0],hasTransition:({animation:t})=>["slide","reveal"].some(e=>rt(t[0],e))},methods:{async toggleElement(t,e,i){try{return await Promise.all(Mt(t).map(s=>{const r=Bt(e)?e:!this.isToggled(s);if(!u(s,`before${r?"show":"hide"}`,[this]))return Promise.reject();const n=(jt(i)?i:i===!1||!this.hasAnimation?ce:this.hasTransition?de:ue)(s,r,this),a=r?this.clsEnter:this.clsLeave;k(s,a),u(s,r?"show":"hide",[this]);const o=()=>{b(s,a),u(s,r?"shown":"hidden",[this])};return n?n.then(o,()=>(b(s,a),Promise.reject())):o()})),!0}catch{return!1}},isToggled(t=this.$el){return t=Ht(t),D(t,this.clsEnter)?!0:D(t,this.clsLeave)?!1:this.cls?D(t,this.cls.split(" ")[0]):ot(t)},_toggle(t,e){if(!t)return;e=!!e;let i;this.cls?(i=w(this.cls," ")||e!==D(t,this.cls),i&&H(t,this.cls,w(this.cls," ")?void 0:e)):(i=e===t.hidden,i&&(t.hidden=!e)),G("[autofocus]",t).some(s=>ot(s)?s.focus()||!0:s.blur()),i&&u(t,"toggled",[e,this])}}};function ce(t,e,{_toggle:i}){return X.cancel(t),x.cancel(t),i(t,e)}async function de(t,e,{animation:i,duration:s,velocity:r,transition:n,_toggle:a}){var o;const[d="reveal",h="top"]=((o=i[0])==null?void 0:o.split("-"))||[],l=[["left","right"],["top","bottom"]],p=l[w(l[0],h)?0:1],y=p[1]===h,A=["width","height"][l.indexOf(p)],C=`margin-${p[0]}`,B=`margin-${h}`;let T=at(t)[A];const Tt=x.inProgress(t);await x.cancel(t),e&&a(t,!0);const Nt=Object.fromEntries(["padding","border","width","height","minWidth","minHeight","overflowY","overflowX",C,B].map(nt=>[nt,t.style[nt]])),N=at(t),R=P(c(t,C)),et=P(c(t,B)),I=N[A]+et;!Tt&&!e&&(T+=et);const[j]=zt(t,"<div>");c(j,{boxSizing:"border-box",height:N.height,width:N.width,...c(t,["overflow","padding","borderTop","borderRight","borderBottom","borderLeft","borderImage",B])}),c(t,{padding:0,border:0,minWidth:0,minHeight:0,[B]:0,width:N.width,height:N.height,overflow:"hidden",[A]:T});const it=T/I;s=(r*I+s)*(e?1-it:it);const st={[A]:e?I:0};y&&(c(t,C,I-T+R),st[C]=e?R:I+R),!y^d==="reveal"&&(c(j,C,-I+T),x.start(j,{[C]:e?0:-I},s,n));try{await x.start(t,st,s,n)}finally{c(t,Nt),qt(j.firstChild),e||a(t,!1)}}function ue(t,e,i){const{animation:s,duration:r,_toggle:n}=i;return e?(n(t,!0),X.in(t,s[0],r,i.origin)):X.out(t,s[1]||s[0],r,i.origin).then(()=>n(t,!1))}const m=[];var pe={mixins:[ae,he,le],props:{selPanel:String,selClose:String,escClose:Boolean,bgClose:Boolean,stack:Boolean,role:String},data:{cls:"uk-open",escClose:!0,bgClose:!0,overlay:!0,stack:!1,role:"dialog"},computed:{panel:({selPanel:t},e)=>v(t,e),transitionElement(){return this.panel},bgClose({bgClose:t}){return t&&this.panel}},connected(){f(this.panel||this.$el,"role",this.role),this.overlay&&f(this.panel||this.$el,"aria-modal",!0)},beforeDisconnect(){w(m,this)&&this.toggleElement(this.$el,!1,!1)},events:[{name:"click",delegate(){return`${this.selClose},a[href*="#"]`},handler(t){const{current:e,defaultPrevented:i}=t,{hash:s}=e;!i&&s&&Ft(e)&&!this.$el.contains(v(s))?this.hide():_(e,this.selClose)&&(t.preventDefault(),this.hide())}},{name:"toggle",self:!0,handler(t){t.defaultPrevented||(t.preventDefault(),this.isToggled()===w(m,this)&&this.toggle())}},{name:"beforeshow",self:!0,handler(t){if(w(m,this))return!1;!this.stack&&m.length?(Promise.all(m.map(e=>e.hide())).then(this.show),t.preventDefault()):m.push(this)}},{name:"show",self:!0,handler(){this.stack&&c(this.$el,"zIndex",P(c(this.$el,"zIndex"))+m.length);const t=[this.overlay&&me(this),this.overlay&&oe(this.$el),this.bgClose&&ge(this),this.escClose&&ve(this)];S(this.$el,"hidden",()=>t.forEach(e=>e&&e()),{self:!0}),k(document.documentElement,this.clsPage)}},{name:"shown",self:!0,handler(){Ut(this.$el)||f(this.$el,"tabindex","-1"),_(this.$el,":focus-within")||this.$el.focus()}},{name:"hidden",self:!0,handler(){w(m,this)&&m.splice(m.indexOf(this),1),c(this.$el,"zIndex",""),m.some(t=>t.clsPage===this.clsPage)||b(document.documentElement,this.clsPage)}}],methods:{toggle(){return this.isToggled()?this.hide():this.show()},show(){return this.container&&ht(this.$el)!==this.container?(z(this.container,this.$el),new Promise(t=>requestAnimationFrame(()=>this.show().then(t)))):this.toggleElement(this.$el,!0,$t)},hide(){return this.toggleElement(this.$el,!1,$t)}}};function $t(t,e,{transitionElement:i,_toggle:s}){return new Promise((r,n)=>S(t,"show hide",()=>{var a;(a=t._reject)==null||a.call(t),t._reject=n,s(t,e);const o=S(i,"transitionstart",()=>{S(i,"transitionend transitioncancel",r,{self:!0}),clearTimeout(d)},{self:!0}),d=setTimeout(()=>{o(),r()},fe(c(i,"transitionDuration")))})).then(()=>delete t._reject)}function fe(t){return t?Wt(t,"ms")?P(t):P(t)*1e3:0}function me(t){return g(document,"focusin",e=>{Y(m)===t&&!t.$el.contains(e.target)&&t.$el.focus()})}function ge(t){return g(document,lt,({target:e})=>{Y(m)!==t||t.overlay&&!t.$el.contains(e)||t.panel.contains(e)||S(document,`${ct} ${Rt} scroll`,({defaultPrevented:i,type:s,target:r})=>{!i&&s===ct&&e===r&&t.hide()},!0)})}function ve(t){return g(document,"keydown",e=>{e.keyCode===27&&Y(m)===t&&t.hide()})}function be(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,dt.read(()=>{t._connected&&we(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function we(t,e){for(const{read:i,write:s,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(a=>e.has(a)))continue;let n;i&&(n=i.call(t,t._data,e),n&&Vt(n)&&ut(t._data,n)),s&&n!==!1&&dt.write(()=>{t._connected&&s.call(t,t._data,e)})}}function xe(t){return $e(Gt,t,"resize")}function $e(t,e,i){return{observe:t,handler(){be(this,i)},...e}}var kt={slide:{show(t){return[{transform:F(t*-100)},{transform:F()}]},percent(t){return ke(t)},translate(t,e){return[{transform:F(e*-100*t)},{transform:F(e*100*(1-t))}]}}};function ke(t){return Math.abs(c(t,"transform").split(",")[4]/t.offsetWidth)}function F(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function U(t){return`scale3d(${t}, ${t}, 1)`}function ye(t,e,i,{animation:s,easing:r}){const{percent:n,translate:a,show:o=J}=s,d=o(i);let h;return{dir:i,show(l,p=0,y){const E=y?"linear":r;return l-=Math.round(l*pt(p,-1,1)),this.translate(p),W(e,"itemin",{percent:p,duration:l,timing:E,dir:i}),W(t,"itemout",{percent:1-p,duration:l,timing:E,dir:i}),new Promise(A=>{h||(h=A),Promise.all([x.start(e,d[1],l,E),x.start(t,d[0],l,E)]).then(()=>{this.reset(),h()},J)})},cancel(){return x.cancel([e,t])},reset(){for(const l in d[0])c([e,t],l,"")},async forward(l,p=this.percent()){return await this.cancel(),this.show(l,p,!0)},translate(l){this.reset();const p=a(l,i);c(e,p[1]),c(t,p[0]),W(e,"itemtranslatein",{percent:l,dir:i}),W(t,"itemtranslateout",{percent:1-l,dir:i})},percent(){return n(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function W(t,e,i){u(t,Xt(e,!1,!1,i))}var Ie={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,r;let n=0;return((r=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[n++]||""))||""}}},_e={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){f(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){f(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&_(this.$el,":focus-within")&&!_(this.$el,":focus")||this.pauseOnHover&&_(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const L={passive:!1,capture:!0},yt={passive:!0,capture:!0},Ae="touchstart mousedown",tt="touchmove mousemove",It="touchend touchcancel mouseup click input scroll",_t=t=>t.preventDefault();var Ce={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=V(i).x*(q?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:Ae,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!Yt(t)&&Se(t.target)||t.target.closest(Jt)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:tt,el(){return this.list},handler:J,...L}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,g(document,tt,this.move,L),g(document,It,this.end,yt),c(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||g(this.list,"click",_t,L),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,r=Math.abs(e),n=this.getIndex(s+this.dir),a=At.call(this,s,n);for(;n!==s&&r>a;)this.drag-=a*this.dir,s=n,r-=a,n=this.getIndex(s+this.dir),a=At.call(this,s,n);this.percent=r/a;const o=i[s],d=i[n],h=this.index!==n,l=s===n;let p;for(const y of[this.index,this.prevIndex])w([n,s],y)||(u(i[y],"itemhidden",[this]),l&&(p=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||p)&&u(i[this.index],"itemshown",[this]),h&&(this.prevIndex=s,this.index=n,l||(u(o,"beforeitemhide",[this]),u(o,"itemhide",[this])),u(d,"beforeitemshow",[this]),u(d,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),o,!l&&d)},end(){if(K(document,tt,this.move,L),K(document,It,this.end,yt),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(q?this.dir*(q?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>K(this.list,"click",_t,L)),c(this.list,{userSelect:""}),this.drag=this.percent=null}}};function At(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function Se(t){return c(t,"userSelect")!=="none"&&Kt(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}Qt((t,e)=>{const i=Object.keys(e),s=i.concat(t).map(r=>[ft(r),`data-${ft(r)}`]).flat();return{attributes:i,filter:s}});let Pe=1;function Ct(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Pe++}`}const $={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var Ee={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>v(t,e),navChildren(){return mt(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return G(this.selNavItem,e)}},watch:{nav(t,e){f(t,"role","tablist"),e&&this.$emit()},list(t){gt(t,"ul")&&f(t,"role","presentation")},navChildren(t){f(t,"role","presentation")},navItems(t){for(const e of t){const i=O(e,this.attrItem),s=v("a,button",e)||e;let r,n=null;if(Q(i)){const a=vt(i),o=this.slides[a];o&&(o.id||(o.id=Ct(this,o)),n=o.id),r=this.t("slideX",P(i)+1),f(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=Ct(this,this.list)),n=this.list.id),r=this.t(i);f(s,{"aria-controls":n,"aria-label":f(s,"aria-label")||r})}},slides(t){t.forEach((e,i)=>f(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){Zt(this.nav);for(let i=0;i<t;i++)z(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){f(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===$.SPACE)&&(t.preventDefault(),this.show(O(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,s=O(e,this.attrItem);if(!Q(s))return;let r=i===$.HOME?0:i===$.END?"last":i===$.LEFT?"previous":i===$.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=O(e,this.attrItem),s=v("a,button",e)||e;if(Q(i)){const n=vt(i)===t;H(e,this.clsActive,n),H(s,"uk-disabled",this.parallax),f(s,{"aria-selected":n,tabindex:n&&!this.parallax?null:-1}),n&&s&&_(ht(e),":focus-within")&&s.focus()}else H(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},Te={mixins:[_e,Ce,Ee,Ie],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){b(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>De(e.offsetWidth/t),list:({selList:t},e)=>v(t,e),maxIndex(){return this.length-1},slides(){return mt(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){k(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){b(t,this.clsEnter)},itemhide({target:t}){k(t,this.clsLeave)},itemhidden({target:t}){b(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,r=e?0:s.length,n=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const a=this.getIndex(this.index),o=D(this.slides,this.clsActive)&&this.slides[a],d=this.getIndex(t,this.index),h=this.slides[d];if(o===h){n();return}if(this.dir=Ne(t,a),this.prevIndex=a,this.index=d,o&&!u(o,"beforeitemhide",[this])||!u(h,"beforeitemshow",[this,o])){this.index=this.prevIndex,n();return}const l=this._show(o,h,e).then(()=>{o&&u(o,"itemhidden",[this]),u(h,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return o&&u(o,"itemhide",[this]),u(h,"itemshow",[this]),l},getIndex(t=this.index,e=this.index){return pt(bt(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(wt(t)?this.slides[t]:t,wt(e)?this.slides[e]:e,i*(q?-1:1),s)}}};function Ne(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function De(t){return .5*t+300}var Oe={mixins:[Te],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:kt,Transitioner:ye},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:xe(),events:{beforeitemshow({target:t}){k(t,this.clsActive)},itemshown({target:t}){k(t,this.clsActivated)},itemhidden({target:t}){b(t,this.clsActive,this.clsActivated)}}},St={...kt,fade:{show(){return[{opacity:0},{opacity:1}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t},{opacity:t}]}},scale:{show(){return[{opacity:0,transform:U(1-.2)},{opacity:1,transform:U(1)}]},percent(t){return 1-c(t,"opacity")},translate(t){return[{opacity:1-t,transform:U(1-.2*t)},{opacity:t,transform:U(1-.2+.2*t)}]}}},Le={mixins:[pe,Oe],functional:!0,props:{delayControls:Number,preload:Number,videoAutoplay:Boolean,template:String},data:()=>({preload:1,videoAutoplay:!1,delayControls:3e3,items:[],cls:"uk-open",clsPage:"uk-lightbox-page",selList:".uk-lightbox-items",attrItem:"uk-lightbox-item",selClose:".uk-close-large",selCaption:".uk-lightbox-caption",pauseOnHover:!1,velocity:2,Animations:St,template:'<div class="uk-lightbox uk-overflow-hidden"> <ul class="uk-lightbox-items"></ul> <div class="uk-lightbox-toolbar uk-position-top uk-text-right uk-transition-slide-top uk-transition-opaque"> <button class="uk-lightbox-toolbar-icon uk-close-large" type="button" uk-close></button> </div> <a class="uk-lightbox-button uk-position-center-left uk-position-medium uk-transition-fade" href uk-slidenav-previous uk-lightbox-item="previous"></a> <a class="uk-lightbox-button uk-position-center-right uk-position-medium uk-transition-fade" href uk-slidenav-next uk-lightbox-item="next"></a> <div class="uk-lightbox-toolbar uk-lightbox-caption uk-position-bottom uk-text-center uk-transition-slide-bottom uk-transition-opaque"></div> </div>'}),created(){const t=v(this.template),e=v(this.selList,t);this.items.forEach(()=>z(e,"<li>"));const i=v("[uk-close]",t),s=this.t("close");i&&s&&(i.dataset.i18n=JSON.stringify({label:s})),this.$mount(z(this.container,t))},computed:{caption:({selCaption:t},e)=>v(t,e)},events:[{name:`${te} ${lt} keydown`,handler:"showControls"},{name:"click",self:!0,delegate(){return`${this.selList} > *`},handler(t){t.defaultPrevented||this.hide()}},{name:"shown",self:!0,handler:"showControls"},{name:"hide",self:!0,handler(){this.hideControls(),b(this.slides,this.clsActive),x.stop(this.slides)}},{name:"hidden",self:!0,handler(){this.$destroy(!0)}},{name:"keyup",el:()=>document,handler({keyCode:t}){if(!this.isToggled(this.$el)||!this.draggable)return;let e=-1;t===$.LEFT?e="previous":t===$.RIGHT?e="next":t===$.HOME?e=0:t===$.END&&(e="last"),~e&&this.show(e)}},{name:"beforeitemshow",handler(t){this.isToggled()||(this.draggable=!1,t.preventDefault(),this.toggleElement(this.$el,!0,!1),this.animation=St.scale,b(t.target,this.clsActive),this.stack.splice(1,0,this.index))}},{name:"itemshow",handler(){xt(this.caption,this.getItem().caption||"");for(let t=-this.preload;t<=this.preload;t++)this.loadItem(this.index+t)}},{name:"itemshown",handler(){this.draggable=this.$props.draggable}},{name:"itemload",async handler(t,e){const{source:i,type:s,alt:r="",poster:n,attrs:a={}}=e;if(this.setItem(e,"<span uk-spinner></span>"),!i)return;let o;const d={allowfullscreen:"",style:"max-width: 100%; box-sizing: border-box;","uk-responsive":"","uk-video":`${this.videoAutoplay}`};if(s==="image"||i.match(/\.(avif|jpe?g|jfif|a?png|gif|svg|webp)($|\?)/i)){const h=M("img",{src:i,alt:r,...a});g(h,"load",()=>this.setItem(e,h)),g(h,"error",()=>this.setError(e))}else if(s==="video"||i.match(/\.(mp4|webm|ogv)($|\?)/i)){const h=M("video",{src:i,poster:n,controls:"",playsinline:"","uk-video":`${this.videoAutoplay}`,...a});g(h,"loadedmetadata",()=>this.setItem(e,h)),g(h,"error",()=>this.setError(e))}else if(s==="iframe"||i.match(/\.(html|php)($|\?)/i))this.setItem(e,M("iframe",{src:i,allowfullscreen:"",class:"uk-lightbox-iframe",...a}));else if(o=i.match(/\/\/(?:.*?youtube(-nocookie)?\..*?(?:[?&]v=|\/shorts\/)|youtu\.be\/)([\w-]{11})[&?]?(.*)?/))this.setItem(e,M("iframe",{src:`https://www.youtube${o[1]||""}.com/embed/${o[2]}${o[3]?`?${o[3]}`:""}`,width:1920,height:1080,...d,...a}));else if(o=i.match(/\/\/.*?vimeo\.[a-z]+\/(\d+)[&?]?(.*)?/))try{const{height:h,width:l}=await(await fetch(`https://vimeo.com/api/oembed.json?maxwidth=1920&url=${encodeURI(i)}`,{credentials:"omit"})).json();this.setItem(e,M("iframe",{src:`https://player.vimeo.com/video/${o[1]}${o[2]?`?${o[2]}`:""}`,width:l,height:h,...d,...a}))}catch{this.setError(e)}}}],methods:{loadItem(t=this.index){const e=this.getItem(t);this.getSlide(e).childElementCount||u(this.$el,"itemload",[e])},getItem(t=this.index){return this.items[bt(t,this.slides)]},setItem(t,e){u(this.$el,"itemloaded",[this,xt(this.getSlide(t),e)])},getSlide(t){return this.slides[this.items.indexOf(t)]},setError(t){this.setItem(t,'<span uk-icon="icon: bolt; ratio: 2"></span>')},showControls(){clearTimeout(this.controlsTimer),this.controlsTimer=setTimeout(this.hideControls,this.delayControls),k(this.$el,"uk-active","uk-transition-active")},hideControls(){b(this.$el,"uk-active","uk-transition-active")}}};function M(t,e){const i=ee(`<${t}>`);return f(i,e),i}var Pt={install:Me,props:{toggle:String},data:{toggle:"a"},computed:{toggles:({toggle:t},e)=>G(t,e)},watch:{toggles(t){this.hide();for(const e of t)gt(e,"a")&&f(e,"role","button")}},disconnected(){this.hide()},events:{name:"click",delegate(){return`${this.toggle}:not(.uk-disabled)`},handler(t){t.preventDefault(),this.show(t.current)}},methods:{show(t){const e=ie(this.toggles.map(Et),"source");if(se(t)){const{source:i}=Et(t);t=ne(e,({source:s})=>i===s)}return this.panel=this.panel||this.$create("lightboxPanel",{...this.$props,items:e}),g(this.panel.$el,"hidden",()=>this.panel=null),this.panel.show(t)},hide(){var t;return(t=this.panel)==null?void 0:t.hide()}}};function Me(t,e){t.lightboxPanel||t.component("lightboxPanel",Le),ut(e.props,t.component("lightboxPanel").options.props)}function Et(t){const e={};for(const i of["href","caption","type","poster","alt","attrs"])e[i==="href"?"source":i]=O(t,i);return e.attrs=re(e.attrs),e}typeof window<"u"&&window.UIkit&&window.UIkit.component("lightbox",Pt);export{Pt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{$ as n,append as a,toFloat as m,css as r,Transition as c,pointerEnter as u,pointerLeave as p,parent as f,trigger as d,remove as h,apply as $}from"uikit-util";var g={props:{container:Boolean},data:{container:!0},computed:{container({container:t}){return t===!0&&this.$container||t&&n(t)}}},l={mixins:[g],functional:!0,args:["message","status"],data:{message:"",status:"",timeout:5e3,group:"",pos:"top-center",clsContainer:"uk-notification",clsClose:"uk-notification-close",clsMsg:"uk-notification-message"},install:v,computed:{marginProp:({pos:t})=>`margin-${t.match(/[a-z]+(?=-)/)[0]}`,startProps(){return{opacity:0,[this.marginProp]:-this.$el.offsetHeight}}},created(){const t=`${this.clsContainer}-${this.pos}`,i=`data-${this.clsContainer}-container`,s=n(`.${t}[${i}]`,this.container)||a(this.container,`<div class="${this.clsContainer} ${t}" ${i}></div>`);this.$mount(a(s,`<div class="${this.clsMsg}${this.status?` ${this.clsMsg}-${this.status}`:""}" role="alert"> <a href class="${this.clsClose}" data-uk-close></a> <div>${this.message}</div> </div>`))},async connected(){const t=m(r(this.$el,this.marginProp));await c.start(r(this.$el,this.startProps),{opacity:1,[this.marginProp]:t}),this.timeout&&(this.timer=setTimeout(this.close,this.timeout))},events:{click(t){t.target.closest('a[href="#"],a[href=""]')&&t.preventDefault(),this.close()},[u](){this.timer&&clearTimeout(this.timer)},[p](){this.timeout&&(this.timer=setTimeout(this.close,this.timeout))}},methods:{async close(t){const i=s=>{const e=f(s);d(s,"close",[this]),h(s),e!=null&&e.hasChildNodes()||h(e)};this.timer&&clearTimeout(this.timer),t||await c.start(this.$el,this.startProps),i(this.$el)}}};function v(t){t.notification.closeAll=function(i,s){$(document.body,e=>{const o=t.getComponent(e,"notification");o&&(!i||i===o.group)&&o.close(s)})}}typeof window<"u"&&window.UIkit&&window.UIkit.component("notification",l);export{l as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{fastdom as I,isPlainObject as it,assign as ot,observeResize as st,observeViewportResize as ut,on as R,toNodes as ct,scrollParent as D,trigger as T,createEvent as U,isString as V,startsWith as at,toFloat as f,css as h,isNumeric as ft,isUndefined as lt,clamp as dt,propName as ht,ucfirst as gt,noop as O,Dimensions as mt,once as bt,findIndex as $t,toPx as x,query as wt,isVisible as pt,scrolledOver as xt,parent as vt}from"uikit-util";function yt(t,n="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,I.read(()=>{t._connected&&St(t,t._queued),delete t._queued})),t._queued.add(n.type||n))}function St(t,n){for(const{read:e,write:i,events:o=[]}of t._updates){if(!n.has("update")&&!o.some(u=>n.has(u)))continue;let r;e&&(r=e.call(t,t._data,n),r&&it(r)&&ot(t._data,r)),i&&r!==!1&&I.write(()=>{t._connected&&i.call(t,t._data,n)})}}function kt(t){return C(st,t,"resize")}function _t(t){return C((n,e)=>ut(e),t,"resize")}function Mt(t){return C((n,e)=>({disconnect:R(Ot(n),"scroll",e,{passive:!0})}),t,"scroll")}function C(t,n,e){return{observe:t,handler(){yt(this,e)},...n}}function Ot(t){return ct(t).map(n=>{const{ownerDocument:e}=n,i=D(n,!0);return i===e.scrollingElement?e:i})}var Ct={props:{media:Boolean},data:{media:!1},connected(){const t=Nt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const n=()=>{this.matchMedia=this.mediaObj.matches,T(this.$el,U("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=R(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function Nt(t,n){if(V(t)){if(at(t,"@"))t=f(h(n,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&ft(t)?`(min-width: ${t}px)`:""}function jt(t,n){var e;return(e=t==null?void 0:t.startsWith)==null?void 0:e.call(t,n)}const{isArray:hn,from:Et}=Array;function Pt(t){return typeof t=="function"}function N(t){return t!==null&&typeof t=="object"}function Ft(t){return N(t)&&t===t.window}function Wt(t){return q(t)===9}function H(t){return q(t)>=1}function q(t){return!Ft(t)&&N(t)&&t.nodeType}function j(t){return typeof t=="string"}function zt(t){return t===void 0}function v(t){return t&&g(t)[0]}function g(t){return H(t)?[t]:Array.from(t||[]).filter(H)}function B(t){const n=Object.create(null);return(e,...i)=>n[e]||(n[e]=t(e,...i))}function E(t,n,e){var i;if(N(n)){for(const o in n)E(t,o,n[o]);return}if(zt(e))return(i=v(t))==null?void 0:i.getAttribute(n);for(const o of g(t))Pt(e)&&(e=e.call(o,E(o,n))),e===null?At(o,n):o.setAttribute(n,e)}function At(t,n){g(t).forEach(e=>e.removeAttribute(n))}const It=typeof window<"u",Rt=It?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Dt(t){return g(t).some(n=>Rt.call(n))}function Tt(t){var n;return(n=v(t))==null?void 0:n.parentElement}function Ut(t,n){return g(t).some(e=>e.matches(n))}function Vt(t,n){return t=v(t),t?Et(t.children):[]}function L(t,n){return Vt(Tt(t)).indexOf(t)}function Ht(t,n){return g(Gt(t,v(n),"querySelectorAll"))}const qt=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Bt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Lt=/\s*,$/,Qt=B(t=>{var n;t=t.replace(qt,"$1 *");let e=!1;const i=[];for(let o of(n=t.match(Bt))!=null?n:[])o=o.replace(Lt,"").trim(),e||(e=["!","+","~","-",">"].includes(o[0])),i.push(o);return{selector:i.join(","),selectors:i,isContextSelector:e}}),Q=B(t=>{t=t.substr(1).trim();const n=t.indexOf(" ");return~n?[t.substring(0,n),t.substring(n+1)]:[t,""]});function Gt(t,n=document,e){if(!j(t))return t;const i=Qt(t);if(!i.isContextSelector)return P(n,e,i.selector);t="";const o=i.selectors.length===1;for(let r of i.selectors){let u,s=n;if(r[0]==="!"&&([u,r]=Q(r),s=n.parentElement.closest(u),!r&&o)||s&&r[0]==="-"&&([u,r]=Q(r),s=s.previousElementSibling,s=Ut(s,u)?s:null,!r&&o))return s;if(s){if(o)return r[0]==="~"||r[0]==="+"?(r=`:scope > :nth-child(${L(s)+1}) ${r}`,s=s.parentElement):r[0]===">"&&(r=`:scope ${r}`),P(s,e,r);t+=`,${Jt(s)} ${r}`}}return Wt(n)||(n=n.ownerDocument),P(n,e,t)}function P(t,n,e){try{return t[n](e)}catch{return null}}function Jt(t){const n=[];for(;t.parentNode;){const e=E(t,"id");if(e){n.unshift(`#${Kt(e)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${L(t)+1})`),n.unshift(i),t=t.parentNode}}return n.join(" > ")}function Kt(t){return j(t)?CSS.escape(t):""}const Xt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Yt(t){const n=Xt.exec(t);if(n)return document.createElement(n[1]);const e=document.createElement("template");return e.innerHTML=t.trim(),Zt(e.content.childNodes)}function Zt(t){return t.length>1?t:t[0]}function tn(t,n){return nn(t)?g(Yt(t)):Ht(t,n)}function nn(t){return j(t)&&jt(t.trim(),"<")}function en(t){return Dt(t)?Math.ceil(Math.max(0,...tn("[stroke]",t).map(n=>n.getTotalLength()))):0}const y={x:S,y:S,rotate:S,scale:S,color:F,backgroundColor:F,borderColor:F,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:sn,stroke:un,bgx:J,bgy:J},{keys:G}=Object;var rn={mixins:[Ct],props:tt(G(y),"list"),data:tt(G(y),void 0),computed:{props(t,n){const e={};for(const o in t)o in y&&!lt(t[o])&&(e[o]=t[o].slice());const i={};for(const o in e)i[o]=y[o](o,n,e[o],e);return i}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))h(this.$el,t,"")},getCss(t){const n={};for(const e in this.props)this.props[e](n,dt(t));return n.willChange=Object.keys(n).map(ht).join(","),n}}};function S(t,n,e){let i=_(e)||{x:"px",y:"px",rotate:"deg"}[t]||"",o;return t==="x"||t==="y"?(t=`translate${gt(t)}`,o=r=>f(f(r).toFixed(i==="px"?0:6))):t==="scale"&&(i="",o=r=>{var u;return _([r])?x(r,"width",n,!0)/n[`offset${(u=r.endsWith)!=null&&u.call(r,"vh")?"Height":"Width"}`]:f(r)}),e.length===1&&e.unshift(t==="scale"?1:0),e=b(e,o),(r,u)=>{r.transform=`${r.transform||""} ${t}(${w(e,u)}${i})`}}function F(t,n,e){return e.length===1&&e.unshift(p(n,t,"")),e=b(e,i=>on(n,i)),(i,o)=>{const[r,u,s]=Z(e,o),l=r.map((d,c)=>(d+=s*(u[c]-d),c===3?f(d):parseInt(d,10))).join(",");i[t]=`rgba(${l})`}}function on(t,n){return p(t,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(f)}function m(t,n,e){e.length===1&&e.unshift(0);const i=_(e)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,e=b(e),(o,r)=>{const u=w(e,r);o.filter=`${o.filter||""} ${t}(${u+i})`}}function sn(t,n,e){return e.length===1&&e.unshift(p(n,t,"")),e=b(e),(i,o)=>{i[t]=w(e,o)}}function un(t,n,e){e.length===1&&e.unshift(0);const i=_(e),o=en(n);return e=b(e.reverse(),r=>(r=f(r),i==="%"?r*o/100:r)),e.some(([r])=>r)?(h(n,"strokeDasharray",o),(r,u)=>{r.strokeDashoffset=w(e,u)}):O}function J(t,n,e,i){e.length===1&&e.unshift(0);const o=t==="bgy"?"height":"width";i[t]=b(e,s=>x(s,o,n));const r=["bgx","bgy"].filter(s=>s in i);if(r.length===2&&t==="bgx")return O;if(p(n,"backgroundSize","")==="cover")return cn(t,n,e,i);const u={};for(const s of r)u[s]=K(n,s);return X(r,u,i)}function cn(t,n,e,i){const o=an(n);if(!o.width)return O;const r={width:n.offsetWidth,height:n.offsetHeight},u=["bgx","bgy"].filter(c=>c in i),s={};for(const c of u){const a=i[c].map(([rt])=>rt),$=Math.min(...a),M=Math.max(...a),z=a.indexOf($)<a.indexOf(M),A=M-$;s[c]=`${(z?-A:0)-(z?$:M)}px`,r[c==="bgy"?"height":"width"]+=A}const l=mt.cover(o,r);for(const c of u){const a=c==="bgy"?"height":"width",$=l[a]-r[a];s[c]=`max(${K(n,c)},-${$}px) + ${s[c]}`}const d=X(u,s,i);return(c,a)=>{d(c,a),c.backgroundSize=`${l.width}px ${l.height}px`,c.backgroundRepeat="no-repeat"}}function K(t,n){return p(t,`background-position-${n.substr(-1)}`,"")}function X(t,n,e){return function(i,o){for(const r of t){const u=w(e[r],o);i[`background-position-${r.substr(-1)}`]=`calc(${n[r]} + ${u}px)`}}}const Y={},k={};function an(t){const n=h(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(k[n])return k[n];const e=new Image;return n&&(e.src=n,!e.naturalWidth&&!Y[n])?(bt(e,"error load",()=>{k[n]=W(e),T(t,U("load",!1))}),Y[n]=!0,W(e)):k[n]=W(e)}function W(t){return{width:t.naturalWidth,height:t.naturalHeight}}function b(t,n=f){const e=[],{length:i}=t;let o=0;for(let r=0;r<i;r++){let[u,s]=V(t[r])?t[r].trim().split(/ (?![^(]*\))/):[t[r]];if(u=n(u),s=s?f(s)/100:null,r===0?s===null?s=0:s&&e.push([u,0]):r===i-1&&(s===null?s=1:s!==1&&(e.push([u,s]),s=1)),e.push([u,s]),s===null)o++;else if(o){const l=e[r-o-1][1],d=(s-l)/(o+1);for(let c=o;c>0;c--)e[r-c][1]=l+d*(o-c+1);o=0}}return e}function Z(t,n){const e=$t(t.slice(1),([,i])=>n<=i)+1;return[t[e-1][0],t[e][0],(n-t[e-1][1])/(t[e][1]-t[e-1][1])]}function w(t,n){const[e,i,o]=Z(t,n);return e+Math.abs(e-i)*o*(e<i?1:-1)}const fn=/^-?\d+(?:\.\d+)?(\S+)?/;function _(t,n){var e;for(const i of t){const o=(e=i.match)==null?void 0:e.call(i,fn);if(o)return o[1]}return n}function p(t,n,e){const i=t.style[n],o=h(h(t,n,e),n);return t.style[n]=i,o}function tt(t,n){return t.reduce((e,i)=>(e[i]=n,e),{})}function ln(t,n){return n>=0?Math.pow(t,n+1):1-Math.pow(1-t,1-n)}var nt={mixins:[rn],props:{target:String,viewport:Number,easing:Number,start:String,end:String},data:{target:!1,viewport:1,easing:1,start:0,end:0},computed:{target:({target:t},n)=>et(t&&wt(t,n)||n),start({start:t}){return x(t,"height",this.target,!0)},end({end:t,viewport:n}){return x(t||(n=(1-n)*100)&&`${n}vh+${n}%`,"height",this.target,!0)}},observe:[_t(),Mt({target:({target:t})=>t}),kt({target:({$el:t,target:n})=>[t,n,D(n,!0)]})],update:{read({percent:t},n){if(n.has("scroll")||(t=!1),!pt(this.$el))return!1;if(!this.matchMedia)return;const e=t;return t=ln(xt(this.target,this.start,this.end),this.easing),{percent:t,style:e===t?!1:this.getCss(t)}},write({style:t}){if(!this.matchMedia){this.reset();return}t&&h(this.$el,t)},events:["scroll","resize"]}};function et(t){return t?"offsetTop"in t?t:et(vt(t)):document.documentElement}typeof window<"u"&&window.UIkit&&window.UIkit.component("parallax",nt);export{nt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{on as it,trigger as _,createEvent as T,isString as D,startsWith as rt,toFloat as f,css as d,isNumeric as ot,isUndefined as st,clamp as ct,propName as ut,ucfirst as at,noop as y,Dimensions as ft,once as lt,findIndex as ht,toPx as H,fastdom as p,Transition as R,endsWith as dt}from"uikit-util";var gt={props:{media:Boolean},data:{media:!1},connected(){const t=mt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const n=()=>{this.matchMedia=this.mediaObj.matches,_(this.$el,T("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=it(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function mt(t,n){if(D(t)){if(rt(t,"@"))t=f(d(n,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&ot(t)?`(min-width: ${t}px)`:""}function $t(t,n){var e;return(e=t==null?void 0:t.startsWith)==null?void 0:e.call(t,n)}const{isArray:Xt,from:bt}=Array;function xt(t){return typeof t=="function"}function P(t){return t!==null&&typeof t=="object"}function wt(t){return P(t)&&t===t.window}function yt(t){return B(t)===9}function U(t){return B(t)>=1}function B(t){return!wt(t)&&P(t)&&t.nodeType}function j(t){return typeof t=="string"}function pt(t){return t===void 0}function k(t){return t&&g(t)[0]}function g(t){return U(t)?[t]:Array.from(t||[]).filter(U)}function V(t){const n=Object.create(null);return(e,...i)=>n[e]||(n[e]=t(e,...i))}function F(t,n,e){var i;if(P(n)){for(const r in n)F(t,r,n[r]);return}if(pt(e))return(i=k(t))==null?void 0:i.getAttribute(n);for(const r of g(t))xt(e)&&(e=e.call(r,F(r,n))),e===null?kt(r,n):r.setAttribute(n,e)}function kt(t,n){g(t).forEach(e=>e.removeAttribute(n))}const vt=typeof window<"u",St=vt?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ct(t){return g(t).some(n=>St.call(n))}function Mt(t){var n;return(n=k(t))==null?void 0:n.parentElement}function Ot(t,n){return g(t).some(e=>e.matches(n))}function Pt(t,n){return t=k(t),t?bt(t.children):[]}function z(t,n){return Pt(Mt(t)).indexOf(t)}function jt(t,n){return g(Et(t,k(n),"querySelectorAll"))}const Ft=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Wt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Nt=/\s*,$/,At=V(t=>{var n;t=t.replace(Ft,"$1 *");let e=!1;const i=[];for(let r of(n=t.match(Wt))!=null?n:[])r=r.replace(Nt,"").trim(),e||(e=["!","+","~","-",">"].includes(r[0])),i.push(r);return{selector:i.join(","),selectors:i,isContextSelector:e}}),L=V(t=>{t=t.substr(1).trim();const n=t.indexOf(" ");return~n?[t.substring(0,n),t.substring(n+1)]:[t,""]});function Et(t,n=document,e){if(!j(t))return t;const i=At(t);if(!i.isContextSelector)return W(n,e,i.selector);t="";const r=i.selectors.length===1;for(let o of i.selectors){let c,s=n;if(o[0]==="!"&&([c,o]=L(o),s=n.parentElement.closest(c),!o&&r)||s&&o[0]==="-"&&([c,o]=L(o),s=s.previousElementSibling,s=Ot(s,c)?s:null,!o&&r))return s;if(s){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${z(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),W(s,e,o);t+=`,${It(s)} ${o}`}}return yt(n)||(n=n.ownerDocument),W(n,e,t)}function W(t,n,e){try{return t[n](e)}catch{return null}}function It(t){const n=[];for(;t.parentNode;){const e=F(t,"id");if(e){n.unshift(`#${_t(e)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${z(t)+1})`),n.unshift(i),t=t.parentNode}}return n.join(" > ")}function _t(t){return j(t)?CSS.escape(t):""}const Tt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Dt(t){const n=Tt.exec(t);if(n)return document.createElement(n[1]);const e=document.createElement("template");return e.innerHTML=t.trim(),Ht(e.content.childNodes)}function Ht(t){return t.length>1?t:t[0]}function Rt(t,n){return Ut(t)?g(Dt(t)):jt(t,n)}function Ut(t){return j(t)&&$t(t.trim(),"<")}function Bt(t){return Ct(t)?Math.ceil(Math.max(0,...Rt("[stroke]",t).map(n=>n.getTotalLength()))):0}const v={x:S,y:S,rotate:S,scale:S,color:N,backgroundColor:N,borderColor:N,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Lt,stroke:Qt,bgx:q,bgy:q},{keys:Q}=Object;var Vt={mixins:[gt],props:Y(Q(v),"list"),data:Y(Q(v),void 0),computed:{props(t,n){const e={};for(const r in t)r in v&&!st(t[r])&&(e[r]=t[r].slice());const i={};for(const r in e)i[r]=v[r](r,n,e[r],e);return i}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))d(this.$el,t,"")},getCss(t){const n={};for(const e in this.props)this.props[e](n,ct(t));return n.willChange=Object.keys(n).map(ut).join(","),n}}};function S(t,n,e){let i=M(e)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${at(t)}`,r=o=>f(f(o).toFixed(i==="px"?0:6))):t==="scale"&&(i="",r=o=>{var c;return M([o])?H(o,"width",n,!0)/n[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:f(o)}),e.length===1&&e.unshift(t==="scale"?1:0),e=$(e,r),(o,c)=>{o.transform=`${o.transform||""} ${t}(${x(e,c)}${i})`}}function N(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e,i=>zt(n,i)),(i,r)=>{const[o,c,s]=X(e,r),l=o.map((h,u)=>(h+=s*(c[u]-h),u===3?f(h):parseInt(h,10))).join(",");i[t]=`rgba(${l})`}}function zt(t,n){return w(t,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(f)}function m(t,n,e){e.length===1&&e.unshift(0);const i=M(e)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,e=$(e),(r,o)=>{const c=x(e,o);r.filter=`${r.filter||""} ${t}(${c+i})`}}function Lt(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e),(i,r)=>{i[t]=x(e,r)}}function Qt(t,n,e){e.length===1&&e.unshift(0);const i=M(e),r=Bt(n);return e=$(e.reverse(),o=>(o=f(o),i==="%"?o*r/100:o)),e.some(([o])=>o)?(d(n,"strokeDasharray",r),(o,c)=>{o.strokeDashoffset=x(e,c)}):y}function q(t,n,e,i){e.length===1&&e.unshift(0);const r=t==="bgy"?"height":"width";i[t]=$(e,s=>H(s,r,n));const o=["bgx","bgy"].filter(s=>s in i);if(o.length===2&&t==="bgx")return y;if(w(n,"backgroundSize","")==="cover")return qt(t,n,e,i);const c={};for(const s of o)c[s]=G(n,s);return J(o,c,i)}function qt(t,n,e,i){const r=Gt(n);if(!r.width)return y;const o={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(u=>u in i),s={};for(const u of c){const a=i[u].map(([et])=>et),b=Math.min(...a),O=Math.max(...a),E=a.indexOf(b)<a.indexOf(O),I=O-b;s[u]=`${(E?-I:0)-(E?b:O)}px`,o[u==="bgy"?"height":"width"]+=I}const l=ft.cover(r,o);for(const u of c){const a=u==="bgy"?"height":"width",b=l[a]-o[a];s[u]=`max(${G(n,u)},-${b}px) + ${s[u]}`}const h=J(c,s,i);return(u,a)=>{h(u,a),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function G(t,n){return w(t,`background-position-${n.substr(-1)}`,"")}function J(t,n,e){return function(i,r){for(const o of t){const c=x(e[o],r);i[`background-position-${o.substr(-1)}`]=`calc(${n[o]} + ${c}px)`}}}const K={},C={};function Gt(t){const n=d(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[n])return C[n];const e=new Image;return n&&(e.src=n,!e.naturalWidth&&!K[n])?(lt(e,"error load",()=>{C[n]=A(e),_(t,T("load",!1))}),K[n]=!0,A(e)):C[n]=A(e)}function A(t){return{width:t.naturalWidth,height:t.naturalHeight}}function $(t,n=f){const e=[],{length:i}=t;let r=0;for(let o=0;o<i;o++){let[c,s]=D(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(c=n(c),s=s?f(s)/100:null,o===0?s===null?s=0:s&&e.push([c,0]):o===i-1&&(s===null?s=1:s!==1&&(e.push([c,s]),s=1)),e.push([c,s]),s===null)r++;else if(r){const l=e[o-r-1][1],h=(s-l)/(r+1);for(let u=r;u>0;u--)e[o-u][1]=l+h*(r-u+1);r=0}}return e}function X(t,n){const e=ht(t.slice(1),([,i])=>n<=i)+1;return[t[e-1][0],t[e][0],(n-t[e-1][1])/(t[e][1]-t[e-1][1])]}function x(t,n){const[e,i,r]=X(t,n);return e+Math.abs(e-i)*r*(e<i?1:-1)}const Jt=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,n){var e;for(const i of t){const r=(e=i.match)==null?void 0:e.call(i,Jt);if(r)return r[1]}return n}function w(t,n,e){const i=t.style[n],r=d(d(t,n,e),n);return t.style[n]=i,r}function Y(t,n){return t.reduce((e,i)=>(e[i]=n,e),{})}var Z={mixins:[Vt],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,duration:e,timing:i,dir:r}}){p.read(()=>{if(!this.matchMedia)return;const o=this.getCss(nt(t,r,n)),c=this.getCss(tt(t)?.5:r>0?1:0);p.write(()=>{d(this.$el,o),R.start(this.$el,c,e,i).catch(y)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){R.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,dir:e}}){p.read(()=>{if(!this.matchMedia){this.reset();return}const i=this.getCss(nt(t,e,n));p.write(()=>d(this.$el,i))})}}]};function tt(t){return dt(t,"in")}function nt(t,n,e){return e/=2,tt(t)^n<0?e:1-e}typeof window<"u"&&window.UIkit&&window.UIkit.component("sliderParallax",Z);export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{fastdom as gt,isPlainObject as qt,assign as Gt,toNodes as mt,isFunction as Xt,$$ as Y,removeAttr as Qt,observeResize as Jt,observeIntersection as Kt,on as E,scrollParent as Yt,addClass as z,attr as p,matches as V,getEventPos as Zt,isRtl as w,isTouch as te,selInput as ee,noop as N,css as m,includes as b,trigger as g,off as Z,toArray as ie,memoize as se,hyphenate as pt,$ as O,children as $,isTag as ne,data as T,isNumeric as B,toNumber as tt,toFloat as I,empty as re,append as ae,toggleClass as D,parent as oe,removeClass as et,hasClass as y,clamp as _,getIndex as R,isNumber as xt,createEvent as it,isString as vt,startsWith as he,isUndefined as le,propName as de,ucfirst as ce,Dimensions as ue,once as fe,findIndex as st,toPx as U,query as ge,scrolledOver as me,dimensions as c,Transition as wt,sumBy as It,position as pe,last as bt,isVisible as xe,selFocusable as ve,hasOwn as we}from"uikit-util";function Ie(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,gt.read(()=>{t._connected&&be(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function be(t,e){for(const{read:i,write:s,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(o=>e.has(o)))continue;let n;i&&(n=i.call(t,t._data,e),n&&qt(n)&&Gt(t._data,n)),s&&n!==!1&>.write(()=>{t._connected&&s.call(t,t._data,e)})}}function $t(t){return nt(Jt,t,"resize")}function $e(t){return nt(Kt,t)}function ye(t={}){return $e({handler:function(e,i){const{targets:s=this.$el,preload:r=5}=t;for(const n of mt(Xt(s)?s(this):s))Y('[loading="lazy"]',n).slice(0,r-1).forEach(o=>Qt(o,"loading"));for(const n of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))i.unobserve(n)},...t})}function Se(t){return nt((e,i)=>({disconnect:E(Ae(e),"scroll",i,{passive:!0})}),t,"scroll")}function nt(t,e,i){return{observe:t,handler(){Ie(this,i)},...e}}function Ae(t){return mt(t).map(e=>{const{ownerDocument:i}=e,s=Yt(e,!0);return s===i.scrollingElement?i:s})}var _e={connected(){z(this.$el,this.$options.id)}},ke={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,s,r;let n=0;return((r=((i=this.i18n)==null?void 0:i[t])||((s=this.$options.i18n)==null?void 0:s[t]))==null?void 0:r.replace(/%s/g,()=>e[n++]||""))||""}}},Me={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&V(this.$el,":focus-within")&&!V(this.$el,":focus")||this.pauseOnHover&&V(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const P={passive:!1,capture:!0},yt={passive:!0,capture:!0},Ce="touchstart mousedown",rt="touchmove mousemove",St="touchend touchcancel mouseup click input scroll",At=t=>t.preventDefault();var Ee={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const s=Zt(i).x*(w?-1:1);this.prevPos=s===this.pos?this.prevPos:this.pos,this.pos=s,e(i)}}},events:[{name:Ce,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!te(t)&&Ne(t.target)||t.target.closest(ee)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:rt,el(){return this.list},handler:N,...P}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,E(document,rt,this.move,P),E(document,St,this.end,yt),m(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||E(this.list,"click",At,P),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:s}=this,r=Math.abs(e),n=this.getIndex(s+this.dir),o=_t.call(this,s,n);for(;n!==s&&r>o;)this.drag-=o*this.dir,s=n,r-=o,n=this.getIndex(s+this.dir),o=_t.call(this,s,n);this.percent=r/o;const a=i[s],l=i[n],d=this.index!==n,h=s===n;let u;for(const f of[this.index,this.prevIndex])b([n,s],f)||(g(i[f],"itemhidden",[this]),h&&(u=!0,this.prevIndex=s));(this.index===s&&this.prevIndex!==s||u)&&g(i[this.index],"itemshown",[this]),d&&(this.prevIndex=s,this.index=n,h||(g(a,"beforeitemhide",[this]),g(a,"itemhide",[this])),g(l,"beforeitemshow",[this]),g(l,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!h&&l)},end(){if(Z(document,rt,this.move,P),Z(document,St,this.end,yt),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(w?this.dir*(w?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>Z(this.list,"click",At,P)),m(this.list,{userSelect:""}),this.drag=this.percent=null}}};function _t(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function Ne(t){return m(t,"userSelect")!=="none"&&ie(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}se((t,e)=>{const i=Object.keys(e),s=i.concat(t).map(r=>[pt(r),`data-${pt(r)}`]).flat();return{attributes:i,filter:s}});let Oe=1;function kt(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${Oe++}`}const W={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var Te={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>O(t,e),navChildren(){return $(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return Y(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){ne(t,"ul")&&p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=T(e,this.attrItem),s=O("a,button",e)||e;let r,n=null;if(B(i)){const o=tt(i),a=this.slides[o];a&&(a.id||(a.id=kt(this,a)),n=a.id),r=this.t("slideX",I(i)+1),p(s,"role","tab")}else this.list&&(this.list.id||(this.list.id=kt(this,this.list)),n=this.list.id),r=this.t(i);p(s,{"aria-controls":n,"aria-label":p(s,"aria-label")||r})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){re(this.nav);for(let i=0;i<t;i++)ae(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){p(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===W.SPACE)&&(t.preventDefault(),this.show(T(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,s=T(e,this.attrItem);if(!B(s))return;let r=i===W.HOME?0:i===W.END?"last":i===W.LEFT?"previous":i===W.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=T(e,this.attrItem),s=O("a,button",e)||e;if(B(i)){const n=tt(i)===t;D(e,this.clsActive,n),D(s,"uk-disabled",this.parallax),p(s,{"aria-selected":n,tabindex:n&&!this.parallax?null:-1}),n&&s&&V(oe(e),":focus-within")&&s.focus()}else D(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},De={mixins:[Me,Ee,Te,ke],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){et(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>Mt(e.offsetWidth/t),list:({selList:t},e)=>O(t,e),maxIndex(){return this.length-1},slides(){return $(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){z(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){et(t,this.clsEnter)},itemhide({target:t}){z(t,this.clsLeave)},itemhidden({target:t}){et(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:s}=this,r=e?0:s.length,n=()=>{s.splice(r,1),s.length&&this.show(s.shift(),!0)};if(s[e?"unshift":"push"](t),!e&&s.length>1){s.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),a=y(this.slides,this.clsActive)&&this.slides[o],l=this.getIndex(t,this.index),d=this.slides[l];if(a===d){n();return}if(this.dir=Pe(t,o),this.prevIndex=o,this.index=l,a&&!g(a,"beforeitemhide",[this])||!g(d,"beforeitemshow",[this,a])){this.index=this.prevIndex,n();return}const h=this._show(a,d,e).then(()=>{a&&g(a,"itemhidden",[this]),g(d,"itemshown",[this]),s.shift(),this._transitioner=null,requestAnimationFrame(()=>s.length&&this.show(s.shift(),!0))});return a&&g(a,"itemhide",[this]),g(d,"itemshow",[this]),h},getIndex(t=this.index,e=this.index){return _(R(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:s}=this.stack;return this._transitioner[s>1?"forward":"show"](s>1?Math.min(this.duration,75+75/(s-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const s=this._getTransitioner(e===i?!1:e,i);return s.translate(t),s},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,s=this.transitionOptions){return new this.Transitioner(xt(t)?this.slides[t]:t,xt(e)?this.slides[e]:e,i*(w?-1:1),s)}}};function Pe(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function Mt(t){return .5*t+300}var We={props:{media:Boolean},data:{media:!1},connected(){const t=je(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,g(this.$el,it("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=E(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function je(t,e){if(vt(t)){if(he(t,"@"))t=I(m(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&B(t)?`(min-width: ${t}px)`:""}function He(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:ki,from:Le}=Array;function Fe(t){return typeof t=="function"}function at(t){return t!==null&&typeof t=="object"}function ze(t){return at(t)&&t===t.window}function Ve(t){return Et(t)===9}function Ct(t){return Et(t)>=1}function Et(t){return!ze(t)&&at(t)&&t.nodeType}function ot(t){return typeof t=="string"}function Be(t){return t===void 0}function q(t){return t&&S(t)[0]}function S(t){return Ct(t)?[t]:Array.from(t||[]).filter(Ct)}function Nt(t){const e=Object.create(null);return(i,...s)=>e[i]||(e[i]=t(i,...s))}function ht(t,e,i){var s;if(at(e)){for(const r in e)ht(t,r,e[r]);return}if(Be(i))return(s=q(t))==null?void 0:s.getAttribute(e);for(const r of S(t))Fe(i)&&(i=i.call(r,ht(r,e))),i===null?Re(r,e):r.setAttribute(e,i)}function Re(t,e){S(t).forEach(i=>i.removeAttribute(e))}const Ue=typeof window<"u",qe=Ue?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ge(t){return S(t).some(e=>qe.call(e))}function Xe(t){var e;return(e=q(t))==null?void 0:e.parentElement}function Qe(t,e){return S(t).some(i=>i.matches(e))}function Je(t,e){return t=q(t),t?Le(t.children):[]}function Ot(t,e){return Je(Xe(t)).indexOf(t)}function Ke(t,e){return S(ii(t,q(e),"querySelectorAll"))}const Ye=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Ze=/.*?[^\\](?![^(]*\))(?:,|$)/g,ti=/\s*,$/,ei=Nt(t=>{var e;t=t.replace(Ye,"$1 *");let i=!1;const s=[];for(let r of(e=t.match(Ze))!=null?e:[])r=r.replace(ti,"").trim(),i||(i=["!","+","~","-",">"].includes(r[0])),s.push(r);return{selector:s.join(","),selectors:s,isContextSelector:i}}),Tt=Nt(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function ii(t,e=document,i){if(!ot(t))return t;const s=ei(t);if(!s.isContextSelector)return lt(e,i,s.selector);t="";const r=s.selectors.length===1;for(let n of s.selectors){let o,a=e;if(n[0]==="!"&&([o,n]=Tt(n),a=e.parentElement.closest(o),!n&&r)||a&&n[0]==="-"&&([o,n]=Tt(n),a=a.previousElementSibling,a=Qe(a,o)?a:null,!n&&r))return a;if(a){if(r)return n[0]==="~"||n[0]==="+"?(n=`:scope > :nth-child(${Ot(a)+1}) ${n}`,a=a.parentElement):n[0]===">"&&(n=`:scope ${n}`),lt(a,i,n);t+=`,${si(a)} ${n}`}}return Ve(e)||(e=e.ownerDocument),lt(e,i,t)}function lt(t,e,i){try{return t[e](i)}catch{return null}}function si(t){const e=[];for(;t.parentNode;){const i=ht(t,"id");if(i){e.unshift(`#${ni(i)}`);break}else{let{tagName:s}=t;s!=="HTML"&&(s+=`:nth-child(${Ot(t)+1})`),e.unshift(s),t=t.parentNode}}return e.join(" > ")}function ni(t){return ot(t)?CSS.escape(t):""}const ri=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function ai(t){const e=ri.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),oi(i.content.childNodes)}function oi(t){return t.length>1?t:t[0]}function hi(t,e){return li(t)?S(ai(t)):Ke(t,e)}function li(t){return ot(t)&&He(t.trim(),"<")}function di(t){return Ge(t)?Math.ceil(Math.max(0,...hi("[stroke]",t).map(e=>e.getTotalLength()))):0}const G={x:X,y:X,rotate:X,scale:X,color:dt,backgroundColor:dt,borderColor:dt,blur:A,hue:A,fopacity:A,grayscale:A,invert:A,saturate:A,sepia:A,opacity:ui,stroke:fi,bgx:Pt,bgy:Pt},{keys:Dt}=Object;Ft(Dt(G),"list"),Ft(Dt(G),void 0);function X(t,e,i){let s=J(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${ce(t)}`,r=n=>I(I(n).toFixed(s==="px"?0:6))):t==="scale"&&(s="",r=n=>{var o;return J([n])?U(n,"width",e,!0)/e[`offset${(o=n.endsWith)!=null&&o.call(n,"vh")?"Height":"Width"}`]:I(n)}),i.length===1&&i.unshift(t==="scale"?1:0),i=k(i,r),(n,o)=>{n.transform=`${n.transform||""} ${t}(${j(i,o)}${s})`}}function dt(t,e,i){return i.length===1&&i.unshift(H(e,t,"")),i=k(i,s=>ci(e,s)),(s,r)=>{const[n,o,a]=Lt(i,r),l=n.map((d,h)=>(d+=a*(o[h]-d),h===3?I(d):parseInt(d,10))).join(",");s[t]=`rgba(${l})`}}function ci(t,e){return H(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(I)}function A(t,e,i){i.length===1&&i.unshift(0);const s=J(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=k(i),(r,n)=>{const o=j(i,n);r.filter=`${r.filter||""} ${t}(${o+s})`}}function ui(t,e,i){return i.length===1&&i.unshift(H(e,t,"")),i=k(i),(s,r)=>{s[t]=j(i,r)}}function fi(t,e,i){i.length===1&&i.unshift(0);const s=J(i),r=di(e);return i=k(i.reverse(),n=>(n=I(n),s==="%"?n*r/100:n)),i.some(([n])=>n)?(m(e,"strokeDasharray",r),(n,o)=>{n.strokeDashoffset=j(i,o)}):N}function Pt(t,e,i,s){i.length===1&&i.unshift(0);const r=t==="bgy"?"height":"width";s[t]=k(i,a=>U(a,r,e));const n=["bgx","bgy"].filter(a=>a in s);if(n.length===2&&t==="bgx")return N;if(H(e,"backgroundSize","")==="cover")return gi(t,e,i,s);const o={};for(const a of n)o[a]=Wt(e,a);return jt(n,o,s)}function gi(t,e,i,s){const r=mi(e);if(!r.width)return N;const n={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(h=>h in s),a={};for(const h of o){const u=s[h].map(([F])=>F),f=Math.min(...u),x=Math.max(...u),v=u.indexOf(f)<u.indexOf(x),C=x-f;a[h]=`${(v?-C:0)-(v?f:x)}px`,n[h==="bgy"?"height":"width"]+=C}const l=ue.cover(r,n);for(const h of o){const u=h==="bgy"?"height":"width",f=l[u]-n[u];a[h]=`max(${Wt(e,h)},-${f}px) + ${a[h]}`}const d=jt(o,a,s);return(h,u)=>{d(h,u),h.backgroundSize=`${l.width}px ${l.height}px`,h.backgroundRepeat="no-repeat"}}function Wt(t,e){return H(t,`background-position-${e.substr(-1)}`,"")}function jt(t,e,i){return function(s,r){for(const n of t){const o=j(i[n],r);s[`background-position-${n.substr(-1)}`]=`calc(${e[n]} + ${o}px)`}}}const Ht={},Q={};function mi(t){const e=m(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(Q[e])return Q[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!Ht[e])?(fe(i,"error load",()=>{Q[e]=ct(i),g(t,it("load",!1))}),Ht[e]=!0,ct(i)):Q[e]=ct(i)}function ct(t){return{width:t.naturalWidth,height:t.naturalHeight}}function k(t,e=I){const i=[],{length:s}=t;let r=0;for(let n=0;n<s;n++){let[o,a]=vt(t[n])?t[n].trim().split(/ (?![^(]*\))/):[t[n]];if(o=e(o),a=a?I(a)/100:null,n===0?a===null?a=0:a&&i.push([o,0]):n===s-1&&(a===null?a=1:a!==1&&(i.push([o,a]),a=1)),i.push([o,a]),a===null)r++;else if(r){const l=i[n-r-1][1],d=(a-l)/(r+1);for(let h=r;h>0;h--)i[n-h][1]=l+d*(r-h+1);r=0}}return i}function Lt(t,e){const i=st(t.slice(1),([,s])=>e<=s)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function j(t,e){const[i,s,r]=Lt(t,e);return i+Math.abs(i-s)*r*(i<s?1:-1)}const pi=/^-?\d+(?:\.\d+)?(\S+)?/;function J(t,e){var i;for(const s of t){const r=(i=s.match)==null?void 0:i.call(s,pi);if(r)return r[1]}return e}function H(t,e,i){const s=t.style[e],r=m(m(t,e,i),e);return t.style[e]=s,r}function Ft(t,e){return t.reduce((i,s)=>(i[s]=e,i),{})}function xi(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var vi={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[$t({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),Se({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&ge(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=U(this.parallaxStart,"height",t,!0),i=U(this.parallaxEnd,"height",t,!0),s=xi(me(t,e,i),this.parallaxEasing),[r,n]=this.getIndexAt(s),o=this.getValidIndex(r+Math.ceil(n)),a=this.slides[r],l=this.slides[o],{triggerShow:d,triggerShown:h,triggerHide:u,triggerHidden:f}=wi(this);if(~this.prevIndex)for(const v of new Set([this.index,this.prevIndex]))b([o,r],v)||(u(this.slides[v]),f(this.slides[v]));const x=this.prevIndex!==r||this.index!==o;this.dir=1,this.prevIndex=r,this.index=o,a!==l&&u(a),d(l),x&&h(a),this._translate(a===l?1:n,a,l)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function wi(t){const{clsSlideActive:e,clsEnter:i,clsLeave:s}=t;return{triggerShow:r,triggerShown:n,triggerHide:o,triggerHidden:a};function r(l){y(l,s)&&(o(l),a(l)),y(l,e)||(g(l,"beforeitemshow",[t]),g(l,"itemshow",[t]))}function n(l){y(l,i)&&g(l,"itemshown",[t])}function o(l){y(l,e)||r(l),y(l,i)&&n(l),y(l,s)||(g(l,"beforeitemhide",[t]),g(l,"itemhide",[t]))}function a(l){y(l,s)&&g(l,"itemhidden",[t])}}var Ii={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},bi={observe:ye({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};function zt(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function $i(t,e,i,{center:s,easing:r,list:n}){const o=t?L(t,n,s):L(e,n,s)+c(e).width*i,a=e?L(e,n,s):o+c(t).width*i*(w?-1:1);let l;return{dir:i,show(d,h=0,u){const f=u?"linear":r;return d-=Math.round(d*_(h,-1,1)),this.translate(h),h=t?h:_(h,0,1),ut(this.getItemIn(),"itemin",{percent:h,duration:d,timing:f,dir:i}),t&&ut(this.getItemIn(!0),"itemout",{percent:1-h,duration:d,timing:f,dir:i}),new Promise(x=>{l||(l=x),wt.start(n,{transform:zt(-a*(w?-1:1),"px")},d,f).then(l,N)})},cancel(){return wt.cancel(n)},reset(){m(n,"transform","")},async forward(d,h=this.percent()){return await this.cancel(),this.show(d,h,!0)},translate(d){const h=this.getDistance()*i*(w?-1:1);m(n,"transform",zt(_(-a+(h-h*d),-M(n),c(n).width)*(w?-1:1),"px"));const u=this.getActives(),f=this.getItemIn(),x=this.getItemIn(!0);d=t?_(d,-1,1):0;for(const v of $(n)){const C=b(u,v),F=v===f,ft=v===x,Ut=F||!ft&&(C||i*(w?-1:1)===-1^K(v,n)>K(t||e));ut(v,`itemtranslate${Ut?"in":"out"}`,{dir:i,percent:ft?1-d:F?d:C?1:0})}},percent(){return Math.abs((m(n,"transform").split(",")[4]*(w?-1:1)+o)/(a-o))},getDistance(){return Math.abs(a-o)},getItemIn(d=!1){let h=this.getActives(),u=Bt(n,L(e||t,n,s));if(d){const f=h;h=u,u=f}return u[st(u,f=>!b(h,f))]},getActives(){return Bt(n,L(t||e,n,s))}}}function L(t,e,i){const s=K(t,e);return i?s-yi(t,e):Math.min(s,Vt(e))}function Vt(t){return Math.max(0,M(t)-c(t).width)}function M(t,e){return It($(t).slice(0,e),i=>c(i).width)}function yi(t,e){return c(e).width/2-c(t).width/2}function K(t,e){return t&&(pe(t).left+(w?c(t).width-c(e).width:0))*(w?-1:1)||0}function Bt(t,e){e-=1;const i=c(t).width,s=e+i+2;return $(t).filter(r=>{const n=K(r,t),o=n+Math.min(c(r).width,i);return n>=e&&o<=s})}function ut(t,e,i){g(t,it(e,!1,!1,i))}var Rt={mixins:[_e,De,Ii,vi,bi],props:{center:Boolean,sets:Boolean,active:String},data:{center:!1,sets:!1,attrItem:"uk-slider-item",selList:".uk-slider-items",selNav:".uk-slider-nav",clsContainer:"uk-slider-container",active:"all",Transitioner:$i},computed:{finite({finite:t}){return t||Si(this.list,this.center)},maxIndex(){if(!this.finite||this.center&&!this.sets)return this.length-1;if(this.center)return bt(this.sets);let t=0;const e=Vt(this.list),i=st(this.slides,s=>{if(t>=e)return!0;t+=c(s).width});return~i?i:this.length-1},sets({sets:t}){if(!t||this.parallax)return;let e=0;const i=[],s=c(this.list).width;for(let r=0;r<this.length;r++){const n=c(this.slides[r]).width;e+n>s&&(e=0),this.center?e<s/2&&e+n+c(this.slides[R(+r+1,this.slides)]).width/2>s/2&&(i.push(+r),e=s/2-n/2):e===0&&i.push(Math.min(+r,this.maxIndex)),e+=n}if(i.length)return i},transitionOptions(){return{center:this.center,list:this.list}},slides(){return $(this.list).filter(xe)}},connected(){D(this.$el,this.clsContainer,!O(`.${this.clsContainer}`,this.$el))},observe:$t({target:({slides:t,$el:e})=>[e,...t]}),update:{write(){for(const t of this.navItems){const e=tt(T(t,this.attrItem));e!==!1&&(t.hidden=!this.maxIndex||e>this.maxIndex||this.sets&&!b(this.sets,e))}this.reorder(),this.updateActiveClasses()},events:["resize"]},events:{beforeitemshow(t){!this.dragging&&this.sets&&this.stack.length<2&&!b(this.sets,this.index)&&(this.index=this.getValidIndex());const e=Math.abs(this.index-this.prevIndex+(this.dir>0&&this.index<this.prevIndex||this.dir<0&&this.index>this.prevIndex?(this.maxIndex+1)*this.dir:0));if(!this.dragging&&e>1){for(let r=0;r<e;r++)this.stack.splice(1,0,this.dir>0?"next":"previous");t.preventDefault();return}const i=this.dir<0||!this.slides[this.prevIndex]?this.index:this.prevIndex,s=M(this.list)/this.length;this.duration=Mt(s/this.velocity)*(c(this.slides[i]).width/s),this.reorder()},itemshow(){~this.prevIndex&&z(this._getTransitioner().getItemIn(),this.clsActive),this.updateActiveClasses(this.prevIndex)},itemshown(){this.updateActiveClasses()}},methods:{reorder(){if(this.finite){m(this.slides,"order","");return}const t=this.dir>0&&this.slides[this.prevIndex]?this.prevIndex:this.index;if(this.slides.forEach((r,n)=>m(r,"order",this.dir>0&&n<t?1:this.dir<0&&n>=this.index?-1:"")),!this.center)return;const e=this.slides[t];let i=c(this.list).width/2-c(e).width/2,s=0;for(;i>0;){const r=this.getIndex(--s+t,t),n=this.slides[r];m(n,"order",r>t?-2:-1),i-=c(n).width}},updateActiveClasses(t=this.index){let e=this._getTransitioner(t).getActives();this.active!=="all"&&(e=[this.slides[this.getValidIndex(t)]]);const i=[this.clsActive,!this.sets||b(this.sets,I(this.index))?this.clsActivated:""];for(const s of this.slides){const r=b(e,s);D(s,i,r),p(s,"aria-hidden",!r);for(const n of Y(ve,s))we(n,"_tabindex")||(n._tabindex=p(n,"tabindex")),p(n,"tabindex",r?n._tabindex:-1)}},getValidIndex(t=this.index,e=this.prevIndex){if(t=this.getIndex(t,e),!this.sets)return t;let i;do{if(b(this.sets,t))return t;i=t,t=this.getIndex(t+this.dir,e)}while(t!==i);return t},getAdjacentSlides(){const{width:t}=c(this.list),e=-t,i=t*2,s=c(this.slides[this.index]).width,r=this.center?t/2-s/2:0,n=new Set;for(const o of[-1,1]){let a=r+(o>0?s:0),l=0;do{const d=this.slides[this.getIndex(this.index+o+l++*o)];a+=c(d).width*o,n.add(d)}while(this.length>l&&a>e&&a<i)}return Array.from(n)},getIndexAt(t){let e=-1;const i=this.center?M(this.list)-(c(this.slides[0]).width/2+c(bt(this.slides)).width/2):M(this.list,this.maxIndex);let s=t*i,r=0;do{const n=c(this.slides[++e]).width,o=this.center?n/2+c(this.slides[e+1]).width/2:n;r=s/o%1,s-=o}while(s>=0&&e<this.maxIndex);return[e,r]}}};function Si(t,e){if(!t||t.length<2)return!0;const{width:i}=c(t);if(!e)return Math.ceil(M(t))<Math.trunc(i+Ai(t));const s=$(t),r=Math.trunc(i/2);for(const n in s){const o=s[n],a=c(o).width,l=new Set([o]);let d=0;for(const h of[-1,1]){let u=a/2,f=0;for(;u<r;){const x=s[R(+n+h+f++*h,s)];if(l.has(x))return!0;u+=c(x).width,l.add(x)}d=Math.max(d,a/2+c(s[R(+n+h,s)]).width/2-(u-r))}if(Math.trunc(d)>It(s.filter(h=>!l.has(h)),h=>c(h).width))return!0}return!1}function Ai(t){return Math.max(0,...$(t).map(e=>c(e).width))}typeof window<"u"&&window.UIkit&&window.UIkit.component("slider",Rt);export{Rt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{on as it,trigger as _,createEvent as T,isString as D,startsWith as rt,toFloat as f,css as d,isNumeric as ot,isUndefined as st,clamp as ct,propName as ut,ucfirst as at,noop as y,Dimensions as ft,once as lt,findIndex as ht,toPx as H,fastdom as p,Transition as R,endsWith as dt}from"uikit-util";var gt={props:{media:Boolean},data:{media:!1},connected(){const t=mt(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const n=()=>{this.matchMedia=this.mediaObj.matches,_(this.$el,T("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=it(this.mediaObj,"change",()=>{n(),this.$emit("resize")}),n()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function mt(t,n){if(D(t)){if(rt(t,"@"))t=f(d(n,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&ot(t)?`(min-width: ${t}px)`:""}function $t(t,n){var e;return(e=t==null?void 0:t.startsWith)==null?void 0:e.call(t,n)}const{isArray:Xt,from:bt}=Array;function xt(t){return typeof t=="function"}function P(t){return t!==null&&typeof t=="object"}function wt(t){return P(t)&&t===t.window}function yt(t){return B(t)===9}function U(t){return B(t)>=1}function B(t){return!wt(t)&&P(t)&&t.nodeType}function j(t){return typeof t=="string"}function pt(t){return t===void 0}function k(t){return t&&g(t)[0]}function g(t){return U(t)?[t]:Array.from(t||[]).filter(U)}function V(t){const n=Object.create(null);return(e,...i)=>n[e]||(n[e]=t(e,...i))}function F(t,n,e){var i;if(P(n)){for(const r in n)F(t,r,n[r]);return}if(pt(e))return(i=k(t))==null?void 0:i.getAttribute(n);for(const r of g(t))xt(e)&&(e=e.call(r,F(r,n))),e===null?kt(r,n):r.setAttribute(n,e)}function kt(t,n){g(t).forEach(e=>e.removeAttribute(n))}const vt=typeof window<"u",St=vt?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function Ct(t){return g(t).some(n=>St.call(n))}function Mt(t){var n;return(n=k(t))==null?void 0:n.parentElement}function Ot(t,n){return g(t).some(e=>e.matches(n))}function Pt(t,n){return t=k(t),t?bt(t.children):[]}function z(t,n){return Pt(Mt(t)).indexOf(t)}function jt(t,n){return g(Et(t,k(n),"querySelectorAll"))}const Ft=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Wt=/.*?[^\\](?![^(]*\))(?:,|$)/g,Nt=/\s*,$/,At=V(t=>{var n;t=t.replace(Ft,"$1 *");let e=!1;const i=[];for(let r of(n=t.match(Wt))!=null?n:[])r=r.replace(Nt,"").trim(),e||(e=["!","+","~","-",">"].includes(r[0])),i.push(r);return{selector:i.join(","),selectors:i,isContextSelector:e}}),L=V(t=>{t=t.substr(1).trim();const n=t.indexOf(" ");return~n?[t.substring(0,n),t.substring(n+1)]:[t,""]});function Et(t,n=document,e){if(!j(t))return t;const i=At(t);if(!i.isContextSelector)return W(n,e,i.selector);t="";const r=i.selectors.length===1;for(let o of i.selectors){let c,s=n;if(o[0]==="!"&&([c,o]=L(o),s=n.parentElement.closest(c),!o&&r)||s&&o[0]==="-"&&([c,o]=L(o),s=s.previousElementSibling,s=Ot(s,c)?s:null,!o&&r))return s;if(s){if(r)return o[0]==="~"||o[0]==="+"?(o=`:scope > :nth-child(${z(s)+1}) ${o}`,s=s.parentElement):o[0]===">"&&(o=`:scope ${o}`),W(s,e,o);t+=`,${It(s)} ${o}`}}return yt(n)||(n=n.ownerDocument),W(n,e,t)}function W(t,n,e){try{return t[n](e)}catch{return null}}function It(t){const n=[];for(;t.parentNode;){const e=F(t,"id");if(e){n.unshift(`#${_t(e)}`);break}else{let{tagName:i}=t;i!=="HTML"&&(i+=`:nth-child(${z(t)+1})`),n.unshift(i),t=t.parentNode}}return n.join(" > ")}function _t(t){return j(t)?CSS.escape(t):""}const Tt=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function Dt(t){const n=Tt.exec(t);if(n)return document.createElement(n[1]);const e=document.createElement("template");return e.innerHTML=t.trim(),Ht(e.content.childNodes)}function Ht(t){return t.length>1?t:t[0]}function Rt(t,n){return Ut(t)?g(Dt(t)):jt(t,n)}function Ut(t){return j(t)&&$t(t.trim(),"<")}function Bt(t){return Ct(t)?Math.ceil(Math.max(0,...Rt("[stroke]",t).map(n=>n.getTotalLength()))):0}const v={x:S,y:S,rotate:S,scale:S,color:N,backgroundColor:N,borderColor:N,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Lt,stroke:Qt,bgx:q,bgy:q},{keys:Q}=Object;var Vt={mixins:[gt],props:Y(Q(v),"list"),data:Y(Q(v),void 0),computed:{props(t,n){const e={};for(const r in t)r in v&&!st(t[r])&&(e[r]=t[r].slice());const i={};for(const r in e)i[r]=v[r](r,n,e[r],e);return i}},events:{load(){this.$emit()}},methods:{reset(){for(const t in this.getCss(0))d(this.$el,t,"")},getCss(t){const n={};for(const e in this.props)this.props[e](n,ct(t));return n.willChange=Object.keys(n).map(ut).join(","),n}}};function S(t,n,e){let i=M(e)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${at(t)}`,r=o=>f(f(o).toFixed(i==="px"?0:6))):t==="scale"&&(i="",r=o=>{var c;return M([o])?H(o,"width",n,!0)/n[`offset${(c=o.endsWith)!=null&&c.call(o,"vh")?"Height":"Width"}`]:f(o)}),e.length===1&&e.unshift(t==="scale"?1:0),e=$(e,r),(o,c)=>{o.transform=`${o.transform||""} ${t}(${x(e,c)}${i})`}}function N(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e,i=>zt(n,i)),(i,r)=>{const[o,c,s]=X(e,r),l=o.map((h,u)=>(h+=s*(c[u]-h),u===3?f(h):parseInt(h,10))).join(",");i[t]=`rgba(${l})`}}function zt(t,n){return w(t,"color",n).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(f)}function m(t,n,e){e.length===1&&e.unshift(0);const i=M(e)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,e=$(e),(r,o)=>{const c=x(e,o);r.filter=`${r.filter||""} ${t}(${c+i})`}}function Lt(t,n,e){return e.length===1&&e.unshift(w(n,t,"")),e=$(e),(i,r)=>{i[t]=x(e,r)}}function Qt(t,n,e){e.length===1&&e.unshift(0);const i=M(e),r=Bt(n);return e=$(e.reverse(),o=>(o=f(o),i==="%"?o*r/100:o)),e.some(([o])=>o)?(d(n,"strokeDasharray",r),(o,c)=>{o.strokeDashoffset=x(e,c)}):y}function q(t,n,e,i){e.length===1&&e.unshift(0);const r=t==="bgy"?"height":"width";i[t]=$(e,s=>H(s,r,n));const o=["bgx","bgy"].filter(s=>s in i);if(o.length===2&&t==="bgx")return y;if(w(n,"backgroundSize","")==="cover")return qt(t,n,e,i);const c={};for(const s of o)c[s]=G(n,s);return J(o,c,i)}function qt(t,n,e,i){const r=Gt(n);if(!r.width)return y;const o={width:n.offsetWidth,height:n.offsetHeight},c=["bgx","bgy"].filter(u=>u in i),s={};for(const u of c){const a=i[u].map(([et])=>et),b=Math.min(...a),O=Math.max(...a),E=a.indexOf(b)<a.indexOf(O),I=O-b;s[u]=`${(E?-I:0)-(E?b:O)}px`,o[u==="bgy"?"height":"width"]+=I}const l=ft.cover(r,o);for(const u of c){const a=u==="bgy"?"height":"width",b=l[a]-o[a];s[u]=`max(${G(n,u)},-${b}px) + ${s[u]}`}const h=J(c,s,i);return(u,a)=>{h(u,a),u.backgroundSize=`${l.width}px ${l.height}px`,u.backgroundRepeat="no-repeat"}}function G(t,n){return w(t,`background-position-${n.substr(-1)}`,"")}function J(t,n,e){return function(i,r){for(const o of t){const c=x(e[o],r);i[`background-position-${o.substr(-1)}`]=`calc(${n[o]} + ${c}px)`}}}const K={},C={};function Gt(t){const n=d(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(C[n])return C[n];const e=new Image;return n&&(e.src=n,!e.naturalWidth&&!K[n])?(lt(e,"error load",()=>{C[n]=A(e),_(t,T("load",!1))}),K[n]=!0,A(e)):C[n]=A(e)}function A(t){return{width:t.naturalWidth,height:t.naturalHeight}}function $(t,n=f){const e=[],{length:i}=t;let r=0;for(let o=0;o<i;o++){let[c,s]=D(t[o])?t[o].trim().split(/ (?![^(]*\))/):[t[o]];if(c=n(c),s=s?f(s)/100:null,o===0?s===null?s=0:s&&e.push([c,0]):o===i-1&&(s===null?s=1:s!==1&&(e.push([c,s]),s=1)),e.push([c,s]),s===null)r++;else if(r){const l=e[o-r-1][1],h=(s-l)/(r+1);for(let u=r;u>0;u--)e[o-u][1]=l+h*(r-u+1);r=0}}return e}function X(t,n){const e=ht(t.slice(1),([,i])=>n<=i)+1;return[t[e-1][0],t[e][0],(n-t[e-1][1])/(t[e][1]-t[e-1][1])]}function x(t,n){const[e,i,r]=X(t,n);return e+Math.abs(e-i)*r*(e<i?1:-1)}const Jt=/^-?\d+(?:\.\d+)?(\S+)?/;function M(t,n){var e;for(const i of t){const r=(e=i.match)==null?void 0:e.call(i,Jt);if(r)return r[1]}return n}function w(t,n,e){const i=t.style[n],r=d(d(t,n,e),n);return t.style[n]=i,r}function Y(t,n){return t.reduce((e,i)=>(e[i]=n,e),{})}var Z={mixins:[Vt],beforeConnect(){this.item=this.$el.closest(`.${this.$options.id.replace("parallax","items")} > *`)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,duration:e,timing:i,dir:r}}){p.read(()=>{if(!this.matchMedia)return;const o=this.getCss(nt(t,r,n)),c=this.getCss(tt(t)?.5:r>0?1:0);p.write(()=>{d(this.$el,o),R.start(this.$el,c,e,i).catch(y)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){R.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:t,detail:{percent:n,dir:e}}){p.read(()=>{if(!this.matchMedia){this.reset();return}const i=this.getCss(nt(t,e,n));p.write(()=>d(this.$el,i))})}}]};function tt(t){return dt(t,"in")}function nt(t,n,e){return e/=2,tt(t)^n<0?e:1-e}typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",Z);export{Z as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{addClass as k,fastdom as rt,isPlainObject as Ht,assign as Dt,toNodes as at,isFunction as Wt,$$ as ot,removeAttr as jt,observeResize as Ft,observeIntersection as Lt,on as _,scrollParent as Rt,trigger as u,createEvent as V,isString as ht,startsWith as Ut,toFloat as v,css as g,isNumeric as M,isUndefined as Bt,clamp as q,propName as Vt,ucfirst as qt,noop as y,Dimensions as Gt,once as Xt,findIndex as Qt,toPx as O,query as Jt,scrolledOver as Kt,includes as lt,hasClass as I,Transition as G,attr as p,matches as T,getEventPos as Yt,isRtl as P,isTouch as Zt,selInput as te,off as X,toArray as ee,memoize as ie,hyphenate as dt,$ as H,children as ct,isTag as ne,data as D,toNumber as ut,empty as se,append as re,toggleClass as Q,parent as ae,removeClass as W,getIndex as oe,isNumber as ft}from"uikit-util";var he={connected(){k(this.$el,this.$options.id)}};function le(t,e="update"){t._connected&&t._updates.length&&(t._queued||(t._queued=new Set,rt.read(()=>{t._connected&&de(t,t._queued),delete t._queued})),t._queued.add(e.type||e))}function de(t,e){for(const{read:i,write:n,events:r=[]}of t._updates){if(!e.has("update")&&!r.some(o=>e.has(o)))continue;let s;i&&(s=i.call(t,t._data,e),s&&Ht(s)&&Dt(t._data,s)),n&&s!==!1&&rt.write(()=>{t._connected&&n.call(t,t._data,e)})}}function gt(t){return J(Ft,t,"resize")}function ce(t){return J(Lt,t)}function ue(t={}){return ce({handler:function(e,i){const{targets:n=this.$el,preload:r=5}=t;for(const s of at(Wt(n)?n(this):n))ot('[loading="lazy"]',s).slice(0,r-1).forEach(o=>jt(o,"loading"));for(const s of e.filter(({isIntersecting:o})=>o).map(({target:o})=>o))i.unobserve(s)},...t})}function fe(t){return J((e,i)=>({disconnect:_(ge(e),"scroll",i,{passive:!0})}),t,"scroll")}function J(t,e,i){return{observe:t,handler(){le(this,i)},...e}}function ge(t){return at(t).map(e=>{const{ownerDocument:i}=e,n=Rt(e,!0);return n===i.scrollingElement?i:n})}var me={props:{media:Boolean},data:{media:!1},connected(){const t=pe(this.media,this.$el);if(this.matchMedia=!0,t){this.mediaObj=window.matchMedia(t);const e=()=>{this.matchMedia=this.mediaObj.matches,u(this.$el,V("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=_(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var t;(t=this.offMediaObj)==null||t.call(this)}};function pe(t,e){if(ht(t)){if(Ut(t,"@"))t=v(g(e,`--uk-breakpoint-${t.substr(1)}`));else if(isNaN(t))return t}return t&&M(t)?`(min-width: ${t}px)`:""}function xe(t,e){var i;return(i=t==null?void 0:t.startsWith)==null?void 0:i.call(t,e)}const{isArray:mi,from:ve}=Array;function be(t){return typeof t=="function"}function K(t){return t!==null&&typeof t=="object"}function Ie(t){return K(t)&&t===t.window}function we(t){return pt(t)===9}function mt(t){return pt(t)>=1}function pt(t){return!Ie(t)&&K(t)&&t.nodeType}function Y(t){return typeof t=="string"}function $e(t){return t===void 0}function j(t){return t&&w(t)[0]}function w(t){return mt(t)?[t]:Array.from(t||[]).filter(mt)}function xt(t){const e=Object.create(null);return(i,...n)=>e[i]||(e[i]=t(i,...n))}function Z(t,e,i){var n;if(K(e)){for(const r in e)Z(t,r,e[r]);return}if($e(i))return(n=j(t))==null?void 0:n.getAttribute(e);for(const r of w(t))be(i)&&(i=i.call(r,Z(r,e))),i===null?ye(r,e):r.setAttribute(e,i)}function ye(t,e){w(t).forEach(i=>i.removeAttribute(e))}const Se=typeof window<"u",ke=Se?Element.prototype.checkVisibility:function(){return this.offsetWidth||this.offsetHeight||this.getClientRects().length};function _e(t){return w(t).some(e=>ke.call(e))}function Ae(t){var e;return(e=j(t))==null?void 0:e.parentElement}function ze(t,e){return w(t).some(i=>i.matches(e))}function Ee(t,e){return t=j(t),t?ve(t.children):[]}function vt(t,e){return Ee(Ae(t)).indexOf(t)}function Ne(t,e){return w(Pe(t,j(e),"querySelectorAll"))}const Ce=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,Me=/.*?[^\\](?![^(]*\))(?:,|$)/g,Oe=/\s*,$/,Te=xt(t=>{var e;t=t.replace(Ce,"$1 *");let i=!1;const n=[];for(let r of(e=t.match(Me))!=null?e:[])r=r.replace(Oe,"").trim(),i||(i=["!","+","~","-",">"].includes(r[0])),n.push(r);return{selector:n.join(","),selectors:n,isContextSelector:i}}),bt=xt(t=>{t=t.substr(1).trim();const e=t.indexOf(" ");return~e?[t.substring(0,e),t.substring(e+1)]:[t,""]});function Pe(t,e=document,i){if(!Y(t))return t;const n=Te(t);if(!n.isContextSelector)return tt(e,i,n.selector);t="";const r=n.selectors.length===1;for(let s of n.selectors){let o,a=e;if(s[0]==="!"&&([o,s]=bt(s),a=e.parentElement.closest(o),!s&&r)||a&&s[0]==="-"&&([o,s]=bt(s),a=a.previousElementSibling,a=ze(a,o)?a:null,!s&&r))return a;if(a){if(r)return s[0]==="~"||s[0]==="+"?(s=`:scope > :nth-child(${vt(a)+1}) ${s}`,a=a.parentElement):s[0]===">"&&(s=`:scope ${s}`),tt(a,i,s);t+=`,${He(a)} ${s}`}}return we(e)||(e=e.ownerDocument),tt(e,i,t)}function tt(t,e,i){try{return t[e](i)}catch{return null}}function He(t){const e=[];for(;t.parentNode;){const i=Z(t,"id");if(i){e.unshift(`#${De(i)}`);break}else{let{tagName:n}=t;n!=="HTML"&&(n+=`:nth-child(${vt(t)+1})`),e.unshift(n),t=t.parentNode}}return e.join(" > ")}function De(t){return Y(t)?CSS.escape(t):""}const We=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function je(t){const e=We.exec(t);if(e)return document.createElement(e[1]);const i=document.createElement("template");return i.innerHTML=t.trim(),Fe(i.content.childNodes)}function Fe(t){return t.length>1?t:t[0]}function Le(t,e){return Re(t)?w(je(t)):Ne(t,e)}function Re(t){return Y(t)&&xe(t.trim(),"<")}function Ue(t){return _e(t)?Math.ceil(Math.max(0,...Le("[stroke]",t).map(e=>e.getTotalLength()))):0}const F={x:L,y:L,rotate:L,scale:L,color:et,backgroundColor:et,borderColor:et,blur:$,hue:$,fopacity:$,grayscale:$,invert:$,saturate:$,sepia:$,opacity:Ve,stroke:qe,bgx:wt,bgy:wt},{keys:It}=Object;_t(It(F),"list"),_t(It(F),void 0);function L(t,e,i){let n=U(i)||{x:"px",y:"px",rotate:"deg"}[t]||"",r;return t==="x"||t==="y"?(t=`translate${qt(t)}`,r=s=>v(v(s).toFixed(n==="px"?0:6))):t==="scale"&&(n="",r=s=>{var o;return U([s])?O(s,"width",e,!0)/e[`offset${(o=s.endsWith)!=null&&o.call(s,"vh")?"Height":"Width"}`]:v(s)}),i.length===1&&i.unshift(t==="scale"?1:0),i=S(i,r),(s,o)=>{s.transform=`${s.transform||""} ${t}(${A(i,o)}${n})`}}function et(t,e,i){return i.length===1&&i.unshift(z(e,t,"")),i=S(i,n=>Be(e,n)),(n,r)=>{const[s,o,a]=kt(i,r),h=s.map((c,l)=>(c+=a*(o[l]-c),l===3?v(c):parseInt(c,10))).join(",");n[t]=`rgba(${h})`}}function Be(t,e){return z(t,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(v)}function $(t,e,i){i.length===1&&i.unshift(0);const n=U(i)||{blur:"px",hue:"deg"}[t]||"%";return t={fopacity:"opacity",hue:"hue-rotate"}[t]||t,i=S(i),(r,s)=>{const o=A(i,s);r.filter=`${r.filter||""} ${t}(${o+n})`}}function Ve(t,e,i){return i.length===1&&i.unshift(z(e,t,"")),i=S(i),(n,r)=>{n[t]=A(i,r)}}function qe(t,e,i){i.length===1&&i.unshift(0);const n=U(i),r=Ue(e);return i=S(i.reverse(),s=>(s=v(s),n==="%"?s*r/100:s)),i.some(([s])=>s)?(g(e,"strokeDasharray",r),(s,o)=>{s.strokeDashoffset=A(i,o)}):y}function wt(t,e,i,n){i.length===1&&i.unshift(0);const r=t==="bgy"?"height":"width";n[t]=S(i,a=>O(a,r,e));const s=["bgx","bgy"].filter(a=>a in n);if(s.length===2&&t==="bgx")return y;if(z(e,"backgroundSize","")==="cover")return Ge(t,e,i,n);const o={};for(const a of s)o[a]=$t(e,a);return yt(s,o,n)}function Ge(t,e,i,n){const r=Xe(e);if(!r.width)return y;const s={width:e.offsetWidth,height:e.offsetHeight},o=["bgx","bgy"].filter(l=>l in n),a={};for(const l of o){const d=n[l].map(([Pt])=>Pt),m=Math.min(...d),x=Math.max(...d),b=d.indexOf(m)<d.indexOf(x),st=x-m;a[l]=`${(b?-st:0)-(b?m:x)}px`,s[l==="bgy"?"height":"width"]+=st}const h=Gt.cover(r,s);for(const l of o){const d=l==="bgy"?"height":"width",m=h[d]-s[d];a[l]=`max(${$t(e,l)},-${m}px) + ${a[l]}`}const c=yt(o,a,n);return(l,d)=>{c(l,d),l.backgroundSize=`${h.width}px ${h.height}px`,l.backgroundRepeat="no-repeat"}}function $t(t,e){return z(t,`background-position-${e.substr(-1)}`,"")}function yt(t,e,i){return function(n,r){for(const s of t){const o=A(i[s],r);n[`background-position-${s.substr(-1)}`]=`calc(${e[s]} + ${o}px)`}}}const St={},R={};function Xe(t){const e=g(t,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(R[e])return R[e];const i=new Image;return e&&(i.src=e,!i.naturalWidth&&!St[e])?(Xt(i,"error load",()=>{R[e]=it(i),u(t,V("load",!1))}),St[e]=!0,it(i)):R[e]=it(i)}function it(t){return{width:t.naturalWidth,height:t.naturalHeight}}function S(t,e=v){const i=[],{length:n}=t;let r=0;for(let s=0;s<n;s++){let[o,a]=ht(t[s])?t[s].trim().split(/ (?![^(]*\))/):[t[s]];if(o=e(o),a=a?v(a)/100:null,s===0?a===null?a=0:a&&i.push([o,0]):s===n-1&&(a===null?a=1:a!==1&&(i.push([o,a]),a=1)),i.push([o,a]),a===null)r++;else if(r){const h=i[s-r-1][1],c=(a-h)/(r+1);for(let l=r;l>0;l--)i[s-l][1]=h+c*(r-l+1);r=0}}return i}function kt(t,e){const i=Qt(t.slice(1),([,n])=>e<=n)+1;return[t[i-1][0],t[i][0],(e-t[i-1][1])/(t[i][1]-t[i-1][1])]}function A(t,e){const[i,n,r]=kt(t,e);return i+Math.abs(i-n)*r*(i<n?1:-1)}const Qe=/^-?\d+(?:\.\d+)?(\S+)?/;function U(t,e){var i;for(const n of t){const r=(i=n.match)==null?void 0:i.call(n,Qe);if(r)return r[1]}return e}function z(t,e,i){const n=t.style[e],r=g(g(t,e,i),e);return t.style[e]=n,r}function _t(t,e){return t.reduce((i,n)=>(i[n]=e,i),{})}function Je(t,e){return e>=0?Math.pow(t,e+1):1-Math.pow(1-t,1-e)}var Ke={props:{parallax:Boolean,parallaxTarget:Boolean,parallaxStart:String,parallaxEnd:String,parallaxEasing:Number},data:{parallax:!1,parallaxTarget:!1,parallaxStart:0,parallaxEnd:0,parallaxEasing:0},observe:[gt({target:({$el:t,parallaxTarget:e})=>[t,e],filter:({parallax:t})=>t}),fe({filter:({parallax:t})=>t})],computed:{parallaxTarget({parallaxTarget:t},e){return t&&Jt(t,e)||this.list}},update:{write(){if(!this.parallax)return;const t=this.parallaxTarget,e=O(this.parallaxStart,"height",t,!0),i=O(this.parallaxEnd,"height",t,!0),n=Je(Kt(t,e,i),this.parallaxEasing),[r,s]=this.getIndexAt(n),o=this.getValidIndex(r+Math.ceil(s)),a=this.slides[r],h=this.slides[o],{triggerShow:c,triggerShown:l,triggerHide:d,triggerHidden:m}=Ye(this);if(~this.prevIndex)for(const b of new Set([this.index,this.prevIndex]))lt([o,r],b)||(d(this.slides[b]),m(this.slides[b]));const x=this.prevIndex!==r||this.index!==o;this.dir=1,this.prevIndex=r,this.index=o,a!==h&&d(a),c(h),x&&l(a),this._translate(a===h?1:s,a,h)},events:["scroll","resize"]},methods:{getIndexAt(t){const e=t*(this.length-1);return[Math.floor(e),e%1]}}};function Ye(t){const{clsSlideActive:e,clsEnter:i,clsLeave:n}=t;return{triggerShow:r,triggerShown:s,triggerHide:o,triggerHidden:a};function r(h){I(h,n)&&(o(h),a(h)),I(h,e)||(u(h,"beforeitemshow",[t]),u(h,"itemshow",[t]))}function s(h){I(h,i)&&u(h,"itemshown",[t])}function o(h){I(h,e)||r(h),I(h,i)&&s(h),I(h,n)||(u(h,"beforeitemhide",[t]),u(h,"itemhide",[t]))}function a(h){I(h,n)&&u(h,"itemhidden",[t])}}var Ze={update:{write(){if(this.stack.length||this.dragging||this.parallax)return;const t=this.getValidIndex();!~this.prevIndex||this.index!==t?this.show(t):this._translate(1,this.prevIndex,this.index)},events:["resize"]}},At={slide:{show(t){return[{transform:f(t*-100)},{transform:f()}]},percent(t){return E(t)},translate(t,e){return[{transform:f(e*-100*t)},{transform:f(e*100*(1-t))}]}}};function E(t){return Math.abs(g(t,"transform").split(",")[4]/t.offsetWidth)}function f(t=0,e="%"){return t+=t?e:"",`translate3d(${t}, 0, 0)`}function zt(t){return`scale3d(${t}, ${t}, 1)`}function ti(t,e,i,{animation:n,easing:r}){const{percent:s,translate:o,show:a=y}=n,h=a(i);let c;return{dir:i,show(l,d=0,m){const x=m?"linear":r;return l-=Math.round(l*q(d,-1,1)),this.translate(d),B(e,"itemin",{percent:d,duration:l,timing:x,dir:i}),B(t,"itemout",{percent:1-d,duration:l,timing:x,dir:i}),new Promise(b=>{c||(c=b),Promise.all([G.start(e,h[1],l,x),G.start(t,h[0],l,x)]).then(()=>{this.reset(),c()},y)})},cancel(){return G.cancel([e,t])},reset(){for(const l in h[0])g([e,t],l,"")},async forward(l,d=this.percent()){return await this.cancel(),this.show(l,d,!0)},translate(l){this.reset();const d=o(l,i);g(e,d[1]),g(t,d[0]),B(e,"itemtranslatein",{percent:l,dir:i}),B(t,"itemtranslateout",{percent:1-l,dir:i})},percent(){return s(t||e,e,i)},getDistance(){return t==null?void 0:t.offsetWidth}}}function B(t,e,i){u(t,V(e,!1,!1,i))}var ei={props:{i18n:Object},data:{i18n:null},methods:{t(t,...e){var i,n,r;let s=0;return((r=((i=this.i18n)==null?void 0:i[t])||((n=this.$options.i18n)==null?void 0:n[t]))==null?void 0:r.replace(/%s/g,()=>e[s++]||""))||""}}},ii={props:{autoplay:Boolean,autoplayInterval:Number,pauseOnHover:Boolean},data:{autoplay:!1,autoplayInterval:7e3,pauseOnHover:!0},connected(){p(this.list,"aria-live",this.autoplay?"off":"polite"),this.autoplay&&this.startAutoplay()},disconnected(){this.stopAutoplay()},update(){p(this.slides,"tabindex","-1")},events:[{name:"visibilitychange",el:()=>document,filter(){return this.autoplay},handler(){document.hidden?this.stopAutoplay():this.startAutoplay()}}],methods:{startAutoplay(){this.stopAutoplay(),this.interval=setInterval(()=>{this.stack.length||this.draggable&&T(this.$el,":focus-within")&&!T(this.$el,":focus")||this.pauseOnHover&&T(this.$el,":hover")||this.show("next")},this.autoplayInterval)},stopAutoplay(){clearInterval(this.interval)}}};const N={passive:!1,capture:!0},Et={passive:!0,capture:!0},ni="touchstart mousedown",nt="touchmove mousemove",Nt="touchend touchcancel mouseup click input scroll",Ct=t=>t.preventDefault();var si={props:{draggable:Boolean},data:{draggable:!0,threshold:10},created(){for(const t of["start","move","end"]){const e=this[t];this[t]=i=>{const n=Yt(i).x*(P?-1:1);this.prevPos=n===this.pos?this.prevPos:this.pos,this.pos=n,e(i)}}},events:[{name:ni,passive:!0,delegate(){return`${this.selList} > *`},handler(t){!this.draggable||this.parallax||!Zt(t)&&ri(t.target)||t.target.closest(te)||t.button>0||this.length<2||this.start(t)}},{name:"dragstart",handler(t){t.preventDefault()}},{name:nt,el(){return this.list},handler:y,...N}],methods:{start(){this.drag=this.pos,this._transitioner?(this.percent=this._transitioner.percent(),this.drag+=this._transitioner.getDistance()*this.percent*this.dir,this._transitioner.cancel(),this._transitioner.translate(this.percent),this.dragging=!0,this.stack=[]):this.prevIndex=this.index,_(document,nt,this.move,N),_(document,Nt,this.end,Et),g(this.list,"userSelect","none")},move(t){const e=this.pos-this.drag;if(e===0||this.prevPos===this.pos||!this.dragging&&Math.abs(e)<this.threshold)return;this.dragging||_(this.list,"click",Ct,N),t.cancelable&&t.preventDefault(),this.dragging=!0,this.dir=e<0?1:-1;let{slides:i,prevIndex:n}=this,r=Math.abs(e),s=this.getIndex(n+this.dir),o=Mt.call(this,n,s);for(;s!==n&&r>o;)this.drag-=o*this.dir,n=s,r-=o,s=this.getIndex(n+this.dir),o=Mt.call(this,n,s);this.percent=r/o;const a=i[n],h=i[s],c=this.index!==s,l=n===s;let d;for(const m of[this.index,this.prevIndex])lt([s,n],m)||(u(i[m],"itemhidden",[this]),l&&(d=!0,this.prevIndex=n));(this.index===n&&this.prevIndex!==n||d)&&u(i[this.index],"itemshown",[this]),c&&(this.prevIndex=n,this.index=s,l||(u(a,"beforeitemhide",[this]),u(a,"itemhide",[this])),u(h,"beforeitemshow",[this]),u(h,"itemshow",[this])),this._transitioner=this._translate(Math.abs(this.percent),a,!l&&h)},end(){if(X(document,nt,this.move,N),X(document,Nt,this.end,Et),this.dragging)if(this.dragging=null,this.index===this.prevIndex)this.percent=1-this.percent,this.dir*=-1,this._show(!1,this.index,!0),this._transitioner=null;else{const t=(P?this.dir*(P?1:-1):this.dir)<0==this.prevPos>this.pos;this.index=t?this.index:this.prevIndex,t&&(this.percent=1-this.percent),this.show(this.dir>0&&!t||this.dir<0&&t?"next":"previous",!0)}setTimeout(()=>X(this.list,"click",Ct,N)),g(this.list,{userSelect:""}),this.drag=this.percent=null}}};function Mt(t,e){return this._getTransitioner(t,t!==e&&e).getDistance()||this.slides[t].offsetWidth}function ri(t){return g(t,"userSelect")!=="none"&&ee(t.childNodes).some(e=>e.nodeType===3&&e.textContent.trim())}ie((t,e)=>{const i=Object.keys(e),n=i.concat(t).map(r=>[dt(r),`data-${dt(r)}`]).flat();return{attributes:i,filter:n}});let ai=1;function Ot(t,e=null){return(e==null?void 0:e.id)||`${t.$options.id}-${ai++}`}const C={TAB:9,ESC:27,SPACE:32,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40};var oi={i18n:{next:"Next slide",previous:"Previous slide",slideX:"Slide %s",slideLabel:"%s of %s",role:"String"},data:{selNav:!1,role:"region"},computed:{nav:({selNav:t},e)=>H(t,e),navChildren(){return ct(this.nav)},selNavItem:({attrItem:t})=>`[${t}],[data-${t}]`,navItems(t,e){return ot(this.selNavItem,e)}},watch:{nav(t,e){p(t,"role","tablist"),e&&this.$emit()},list(t){ne(t,"ul")&&p(t,"role","presentation")},navChildren(t){p(t,"role","presentation")},navItems(t){for(const e of t){const i=D(e,this.attrItem),n=H("a,button",e)||e;let r,s=null;if(M(i)){const o=ut(i),a=this.slides[o];a&&(a.id||(a.id=Ot(this,a)),s=a.id),r=this.t("slideX",v(i)+1),p(n,"role","tab")}else this.list&&(this.list.id||(this.list.id=Ot(this,this.list)),s=this.list.id),r=this.t(i);p(n,{"aria-controls":s,"aria-label":p(n,"aria-label")||r})}},slides(t){t.forEach((e,i)=>p(e,{role:this.nav?"tabpanel":"group","aria-label":this.t("slideLabel",i+1,this.length),"aria-roledescription":this.nav?null:"slide"}))},length(t){const e=this.navChildren.length;if(this.nav&&t!==e){se(this.nav);for(let i=0;i<t;i++)re(this.nav,`<li ${this.attrItem}="${i}"><a href></a></li>`)}}},connected(){p(this.$el,{role:this.role,"aria-roledescription":"carousel"})},update:[{write(){this.navItems.concat(this.nav).forEach(t=>t&&(t.hidden=!this.maxIndex)),this.updateNav()},events:["resize"]}],events:[{name:"click keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){t.target.closest("a,button")&&(t.type==="click"||t.keyCode===C.SPACE)&&(t.preventDefault(),this.show(D(t.current,this.attrItem)))}},{name:"itemshow",handler:"updateNav"},{name:"keydown",delegate(){return this.selNavItem},filter(){return!this.parallax},handler(t){const{current:e,keyCode:i}=t,n=D(e,this.attrItem);if(!M(n))return;let r=i===C.HOME?0:i===C.END?"last":i===C.LEFT?"previous":i===C.RIGHT?"next":-1;~r&&(t.preventDefault(),this.show(r))}}],methods:{updateNav(){const t=this.getValidIndex();for(const e of this.navItems){const i=D(e,this.attrItem),n=H("a,button",e)||e;if(M(i)){const s=ut(i)===t;Q(e,this.clsActive,s),Q(n,"uk-disabled",this.parallax),p(n,{"aria-selected":s,tabindex:s&&!this.parallax?null:-1}),s&&n&&T(ae(e),":focus-within")&&n.focus()}else Q(e,"uk-invisible",this.finite&&(i==="previous"&&t===0||i==="next"&&t>=this.maxIndex))}}}},hi={mixins:[ii,si,oi,ei],props:{clsActivated:String,easing:String,index:Number,finite:Boolean,velocity:Number},data:()=>({easing:"ease",finite:!1,velocity:1,index:0,prevIndex:-1,stack:[],percent:0,clsActive:"uk-active",clsActivated:"",clsEnter:"uk-slide-enter",clsLeave:"uk-slide-leave",clsSlideActive:"uk-slide-active",Transitioner:!1,transitionOptions:{}}),connected(){this.prevIndex=-1,this.index=this.getValidIndex(this.$props.index),this.stack=[]},disconnected(){W(this.slides,this.clsActive)},computed:{duration:({velocity:t},e)=>di(e.offsetWidth/t),list:({selList:t},e)=>H(t,e),maxIndex(){return this.length-1},slides(){return ct(this.list)},length(){return this.slides.length}},watch:{slides(t,e){e&&this.$emit()}},events:{itemshow({target:t}){k(t,this.clsEnter,this.clsSlideActive)},itemshown({target:t}){W(t,this.clsEnter)},itemhide({target:t}){k(t,this.clsLeave)},itemhidden({target:t}){W(t,this.clsLeave,this.clsSlideActive)}},methods:{show(t,e=!1){var i;if(this.dragging||!this.length||this.parallax)return;const{stack:n}=this,r=e?0:n.length,s=()=>{n.splice(r,1),n.length&&this.show(n.shift(),!0)};if(n[e?"unshift":"push"](t),!e&&n.length>1){n.length===2&&((i=this._transitioner)==null||i.forward(Math.min(this.duration,200)));return}const o=this.getIndex(this.index),a=I(this.slides,this.clsActive)&&this.slides[o],h=this.getIndex(t,this.index),c=this.slides[h];if(a===c){s();return}if(this.dir=li(t,o),this.prevIndex=o,this.index=h,a&&!u(a,"beforeitemhide",[this])||!u(c,"beforeitemshow",[this,a])){this.index=this.prevIndex,s();return}const l=this._show(a,c,e).then(()=>{a&&u(a,"itemhidden",[this]),u(c,"itemshown",[this]),n.shift(),this._transitioner=null,requestAnimationFrame(()=>n.length&&this.show(n.shift(),!0))});return a&&u(a,"itemhide",[this]),u(c,"itemshow",[this]),l},getIndex(t=this.index,e=this.index){return q(oe(t,this.slides,e,this.finite),0,Math.max(0,this.maxIndex))},getValidIndex(t=this.index,e=this.prevIndex){return this.getIndex(t,e)},_show(t,e,i){if(this._transitioner=this._getTransitioner(t,e,this.dir,{easing:i?e.offsetWidth<600?"cubic-bezier(0.25, 0.46, 0.45, 0.94)":"cubic-bezier(0.165, 0.84, 0.44, 1)":this.easing,...this.transitionOptions}),!i&&!t)return this._translate(1),Promise.resolve();const{length:n}=this.stack;return this._transitioner[n>1?"forward":"show"](n>1?Math.min(this.duration,75+75/(n-1)):this.duration,this.percent)},_translate(t,e=this.prevIndex,i=this.index){const n=this._getTransitioner(e===i?!1:e,i);return n.translate(t),n},_getTransitioner(t=this.prevIndex,e=this.index,i=this.dir||1,n=this.transitionOptions){return new this.Transitioner(ft(t)?this.slides[t]:t,ft(e)?this.slides[e]:e,i*(P?-1:1),n)}}};function li(t,e){return t==="next"?1:t==="previous"||t<e?-1:1}function di(t){return .5*t+300}var ci={mixins:[hi],props:{animation:String},data:{animation:"slide",clsActivated:"uk-transition-active",Animations:At,Transitioner:ti},computed:{animation({animation:t,Animations:e}){return{...e[t]||e.slide,name:t}},transitionOptions(){return{animation:this.animation}}},observe:gt(),events:{beforeitemshow({target:t}){k(t,this.clsActive)},itemshown({target:t}){k(t,this.clsActivated)},itemhidden({target:t}){W(t,this.clsActive,this.clsActivated)}}},ui={observe:ue({target:({slides:t})=>t,targets:t=>t.getAdjacentSlides()}),methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}},fi={...At,fade:{show(){return[{opacity:0,zIndex:0},{zIndex:-1}]},percent(t){return 1-g(t,"opacity")},translate(t){return[{opacity:1-t,zIndex:0},{zIndex:-1}]}},scale:{show(){return[{opacity:0,transform:zt(1+.5),zIndex:0},{zIndex:-1}]},percent(t){return 1-g(t,"opacity")},translate(t){return[{opacity:1-t,transform:zt(1+.5*t),zIndex:0},{zIndex:-1}]}},pull:{show(t){return t<0?[{transform:f(30),zIndex:-1},{transform:f(),zIndex:0}]:[{transform:f(-100),zIndex:0},{transform:f(),zIndex:-1}]},percent(t,e,i){return i<0?1-E(e):E(t)},translate(t,e){return e<0?[{transform:f(30*t),zIndex:-1},{transform:f(-100*(1-t)),zIndex:0}]:[{transform:f(-t*100),zIndex:0},{transform:f(30*(1-t)),zIndex:-1}]}},push:{show(t){return t<0?[{transform:f(100),zIndex:0},{transform:f(),zIndex:-1}]:[{transform:f(-30),zIndex:-1},{transform:f(),zIndex:0}]},percent(t,e,i){return i>0?1-E(e):E(t)},translate(t,e){return e<0?[{transform:f(t*100),zIndex:0},{transform:f(-30*(1-t)),zIndex:-1}]:[{transform:f(-30*t),zIndex:-1},{transform:f(100*(1-t)),zIndex:0}]}}},Tt={mixins:[he,ci,Ze,Ke,ui],props:{ratio:String,minHeight:String,maxHeight:String},data:{ratio:"16:9",minHeight:void 0,maxHeight:void 0,selList:".uk-slideshow-items",attrItem:"uk-slideshow-item",selNav:".uk-slideshow-nav",Animations:fi},watch:{list(t){g(t,{aspectRatio:this.ratio?this.ratio.replace(":","/"):void 0,minHeight:this.minHeight,maxHeight:this.maxHeight,minWidth:"100%",maxWidth:"100%"})}},methods:{getAdjacentSlides(){return[1,-1].map(t=>this.slides[this.getIndex(this.index+t)])}}};typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshow",Tt);export{Tt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! UIkit 3.20.6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */import{fastdom as q,isPlainObject as et,assign as C,observeResize as ot,observeMutation as st,children as p,toggleClass as D,isRtl as it,isVisible as S,offsetPosition as nt,css as d,Transition as g,includes as rt,attr as w,trigger as v,parent as y,index as E,offset as at,position as lt,hasClass as A,toNumber as ct,once as ht,addClass as b,removeClass as T,height as k,noop as ft,getEventPos as dt,pointerDown as ut,$$ as pt,isInput as mt,on as L,pointerMove as R,pointerUp as B,dimensions as P,off as M,remove as _,before as gt,append as x,scrollParents as bt,offsetViewport as wt,isTag as vt,$ as yt,findIndex as Pt,pointInRect as St}from"uikit-util";function kt(e,t="update"){e._connected&&e._updates.length&&(e._queued||(e._queued=new Set,q.read(()=>{e._connected&&Tt(e,e._queued),delete e._queued})),e._queued.add(t.type||t))}function Tt(e,t){for(const{read:o,write:s,events:r=[]}of e._updates){if(!t.has("update")&&!r.some(i=>t.has(i)))continue;let n;o&&(n=o.call(e,e._data,t),n&&et(n)&&C(e._data,n)),s&&n!==!1&&q.write(()=>{e._connected&&s.call(e,e._data,t)})}}function xt(e){return O(ot,e,"resize")}function U(e){return O(st,e)}function O(e,t,o){return{observe:e,handler(){kt(this,o)},...t}}U({options:{childList:!0}}),U({options:{attributes:!0,attributeFilter:["style"]},target:({$el:e})=>[e,...p(e)]}),xt({target:({$el:e})=>[e,...p(e)]});function j(e){const t=[[]],o=e.some((s,r)=>r&&e[r-1].offsetParent!==s.offsetParent);for(const s of e){if(!S(s))continue;const r=$(s,o);for(let n=t.length-1;n>=0;n--){const i=t[n];if(!i[0]){i.push(s);break}const a=$(i[0],o);if(r.top>=a.bottom-1&&r.top!==a.top){t.push([s]);break}if(r.bottom-1>a.top||r.top===a.top){let l=i.length-1;for(;l>=0;l--){const h=$(i[l],o);if(r.left>=h.left)break}i.splice(l+1,0,s);break}if(n===0){t.unshift([s]);break}}}return t}function $(e,t=!1){let{offsetTop:o,offsetLeft:s,offsetHeight:r,offsetWidth:n}=e;return t&&([o,s]=nt(e)),{top:o,left:s,bottom:o+r,right:s+n}}async function It(e,t,o){await F();let s=p(t);const r=s.map(c=>W(c,!0)),n={...d(t,["height","padding"]),display:"block"};await Promise.all(s.concat(t).map(g.cancel)),await e(),s=s.concat(p(t).filter(c=>!rt(s,c))),await Promise.resolve();const i=w(t,"style"),a=d(t,["height","padding"]),[l,h]=Ct(t,s,r),f=s.map(c=>({style:w(c,"style")}));s.forEach((c,u)=>h[u]&&d(c,h[u])),d(t,n),v(t,"scroll"),await F();const m=s.map((c,u)=>y(c)===t&&g.start(c,l[u],o,"ease")).concat(g.start(t,a,o,"ease"));try{await Promise.all(m),s.forEach((c,u)=>{w(c,f[u]),y(c)===t&&d(c,"display",l[u].opacity===0?"none":"")}),w(t,"style",i)}catch{w(s,"style",""),Dt(t,n)}}function W(e,t){const o=d(e,"zIndex");return S(e)?{display:"",opacity:t?d(e,"opacity"):"0",pointerEvents:"none",position:"absolute",zIndex:o==="auto"?E(e):o,...V(e)}:!1}function Ct(e,t,o){const s=t.map((n,i)=>y(n)&&i in o?o[i]?S(n)?V(n):{opacity:0}:{opacity:S(n)?1:0}:!1),r=s.map((n,i)=>{const a=y(t[i])===e&&(o[i]||W(t[i]));if(!a)return!1;if(!n)delete a.opacity;else if(!("opacity"in n)){const{opacity:l}=a;l%1?n.opacity=1:delete a.opacity}return a});return[s,r]}function Dt(e,t){for(const o in t)d(e,o,"")}function V(e){const{height:t,width:o}=at(e);return{height:t,width:o,transform:"",...lt(e),...d(e,["marginTop","marginLeft"])}}function F(){return new Promise(e=>requestAnimationFrame(e))}const N="uk-transition-leave",z="uk-transition-enter";function G(e,t,o,s=0){const r=I(t,!0),n={opacity:1},i={opacity:0},a=f=>()=>r===I(t)?f():Promise.reject(),l=a(async()=>{b(t,N),await Promise.all(K(t).map((f,m)=>new Promise(c=>setTimeout(()=>g.start(f,i,o/2,"ease").then(c),m*s)))),T(t,N)}),h=a(async()=>{const f=k(t);b(t,z),e(),d(p(t),{opacity:0}),await F();const m=p(t),c=k(t);d(t,"alignContent","flex-start"),k(t,f);const u=K(t);d(m,i);const H=u.map(async(Z,tt)=>{await Et(tt*s),await g.start(Z,n,o/2,"ease")});f!==c&&H.push(g.start(t,{height:c},o/2+u.length*s,"ease")),await Promise.all(H).then(()=>{T(t,z),r===I(t)&&(d(t,{height:"",alignContent:""}),d(m,{opacity:""}),delete t.dataset.transition)})});return A(t,N)?J(t).then(h):A(t,z)?J(t).then(l).then(h):l().then(h)}function I(e,t){return t&&(e.dataset.transition=1+I(e)),ct(e.dataset.transition)||0}function J(e){return Promise.all(p(e).filter(g.inProgress).map(t=>new Promise(o=>ht(t,"transitionend transitioncanceled",o))))}function K(e){return j(p(e)).flat().filter(S)}function Et(e){return new Promise(t=>setTimeout(t,e))}var _t={props:{duration:Number,animation:Boolean},data:{duration:150,animation:"slide"},methods:{animate(e,t=this.$el){const o=this.animation;return(o==="fade"?G:o==="delayed-fade"?(...r)=>G(...r,40):o?It:()=>(e(),Promise.resolve()))(e,t,this.duration).catch(ft)}}},$t={connected(){b(this.$el,this.$options.id)}},Q={mixins:[$t,_t],props:{group:String,threshold:Number,clsItem:String,clsPlaceholder:String,clsDrag:String,clsDragState:String,clsBase:String,clsNoDrag:String,clsEmpty:String,clsCustom:String,handle:String},data:{group:!1,threshold:5,clsItem:"uk-sortable-item",clsPlaceholder:"uk-sortable-placeholder",clsDrag:"uk-sortable-drag",clsDragState:"uk-drag",clsBase:"uk-sortable",clsNoDrag:"uk-sortable-nodrag",clsEmpty:"uk-sortable-empty",clsCustom:"",handle:!1,pos:{}},created(){for(const e of["init","start","move","end"]){const t=this[e];this[e]=o=>{C(this.pos,dt(o)),t(o)}}},events:{name:ut,passive:!1,handler:"init"},computed:{target:(e,t)=>(t.tBodies||[t])[0],items(){return p(this.target)},isEmpty(){return!this.items.length},handles({handle:e},t){return e?pt(e,t):this.items}},watch:{isEmpty(e){D(this.target,this.clsEmpty,e)},handles(e,t){d(t,{touchAction:"",userSelect:""}),d(e,{touchAction:"none",userSelect:"none"})}},update:{write(e){if(!this.drag||!y(this.placeholder))return;const{pos:{x:t,y:o},origin:{offsetTop:s,offsetLeft:r},placeholder:n}=this;d(this.drag,{top:o-s,left:t-r});const i=this.getSortable(document.elementFromPoint(t,o));if(!i)return;const{items:a}=i;if(a.some(g.inProgress))return;const l=Ht(a,{x:t,y:o});if(a.length&&(!l||l===n))return;const h=this.getSortable(n),f=qt(i.target,l,n,t,o,i===h&&e.moved!==l);f!==!1&&(f&&n===f||(i!==h?(h.remove(n),e.moved=l):delete e.moved,i.insert(n,f),this.touched.add(i)))},events:["move"]},methods:{init(e){const{target:t,button:o,defaultPrevented:s}=e,[r]=this.items.filter(n=>n.contains(t));!r||s||o>0||mt(t)||t.closest(`.${this.clsNoDrag}`)||this.handle&&!t.closest(this.handle)||(e.preventDefault(),this.touched=new Set([this]),this.placeholder=r,this.origin={target:t,index:E(r),...this.pos},L(document,R,this.move),L(document,B,this.end),this.threshold||this.start(e))},start(e){this.drag=zt(this.$container,this.placeholder);const{left:t,top:o}=P(this.placeholder);C(this.origin,{offsetLeft:this.pos.x-t,offsetTop:this.pos.y-o}),b(this.drag,this.clsDrag,this.clsCustom),b(this.placeholder,this.clsPlaceholder),b(this.items,this.clsItem),b(document.documentElement,this.clsDragState),v(this.$el,"start",[this,this.placeholder]),Ft(this.pos),this.move(e)},move(e){this.drag?this.$emit("move"):(Math.abs(this.pos.x-this.origin.x)>this.threshold||Math.abs(this.pos.y-this.origin.y)>this.threshold)&&this.start(e)},end(){if(M(document,R,this.move),M(document,B,this.end),!this.drag)return;Nt();const e=this.getSortable(this.placeholder);this===e?this.origin.index!==E(this.placeholder)&&v(this.$el,"moved",[this,this.placeholder]):(v(e.$el,"added",[e,this.placeholder]),v(this.$el,"removed",[this,this.placeholder])),v(this.$el,"stop",[this,this.placeholder]),_(this.drag),this.drag=null;for(const{clsPlaceholder:t,clsItem:o}of this.touched)for(const s of this.touched)T(s.items,t,o);this.touched=null,T(document.documentElement,this.clsDragState)},insert(e,t){b(this.items,this.clsItem);const o=()=>t?gt(t,e):x(this.target,e);this.animate(o)},remove(e){this.target.contains(e)&&this.animate(()=>_(e))},getSortable(e){do{const t=this.$getComponent(e,"sortable");if(t&&(t===this||this.group!==!1&&t.group===this.group))return t}while(e=y(e))}}};let X;function Ft(e){let t=Date.now();X=setInterval(()=>{let{x:o,y:s}=e;s+=document.scrollingElement.scrollTop;const r=(Date.now()-t)*.3;t=Date.now(),bt(document.elementFromPoint(o,e.y)).reverse().some(n=>{let{scrollTop:i,scrollHeight:a}=n;const{top:l,bottom:h,height:f}=wt(n);if(l<s&&l+35>s)i-=r;else if(h>s&&h-35<s)i+=r;else return;if(i>0&&i<a-f)return n.scrollTop=i,!0})},15)}function Nt(){clearInterval(X)}function zt(e,t){let o;if(vt(t,"li","tr")){o=yt("<div>"),x(o,t.cloneNode(!0).children);for(const s of t.getAttributeNames())w(o,s,t.getAttribute(s))}else o=t.cloneNode(!0);return x(e,o),d(o,"margin","0","important"),d(o,{boxSizing:"border-box",width:t.offsetWidth,height:t.offsetHeight,padding:d(t,"padding")}),k(o.firstElementChild,k(t.firstElementChild)),o}function Ht(e,t){return e[Pt(e,o=>St(t,P(o)))]}function qt(e,t,o,s,r,n){if(!p(e).length)return;const i=P(t);if(!n)return At(e,o)||r<i.top+i.height/2?t:t.nextElementSibling;const a=P(o),l=Y([i.top,i.bottom],[a.top,a.bottom]),[h,f,m,c]=l?[s,"width","left","right"]:[r,"height","top","bottom"],u=a[f]<i[f]?i[f]-a[f]:0;return a[m]<i[m]?u&&h<i[m]+u?!1:t.nextElementSibling:u&&h>i[c]-u?!1:t}function At(e,t){const o=p(e).length===1;o&&x(e,t);const s=p(e),r=s.some((n,i)=>{const a=P(n);return s.slice(i+1).some(l=>{const h=P(l);return!Y([a.left,a.right],[h.left,h.right])})});return o&&_(t),r}function Y(e,t){return e[1]>t[0]&&t[1]>e[0]}typeof window<"u"&&window.UIkit&&window.UIkit.component("sortable",Q);export{Q as default};
|