uikit 3.16.24-dev.d6158da87 → 3.16.25-dev.12f581d90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/.eslintrc.json +0 -9
  2. package/.prettierrc.json +3 -4
  3. package/CHANGELOG.md +2 -1
  4. package/build/build.js +2 -2
  5. package/build/less.js +2 -2
  6. package/build/prefix.js +3 -3
  7. package/build/release.js +7 -7
  8. package/build/scope.js +3 -3
  9. package/build/scss.js +9 -9
  10. package/build/util.js +11 -11
  11. package/dist/css/uikit-core-rtl.css +1 -1
  12. package/dist/css/uikit-core-rtl.min.css +1 -1
  13. package/dist/css/uikit-core.css +1 -1
  14. package/dist/css/uikit-core.min.css +1 -1
  15. package/dist/css/uikit-rtl.css +1 -1
  16. package/dist/css/uikit-rtl.min.css +1 -1
  17. package/dist/css/uikit.css +1 -1
  18. package/dist/css/uikit.min.css +1 -1
  19. package/dist/js/components/countdown.js +2 -2
  20. package/dist/js/components/countdown.min.js +1 -1
  21. package/dist/js/components/filter.js +18 -18
  22. package/dist/js/components/filter.min.js +1 -1
  23. package/dist/js/components/lightbox-panel.js +351 -350
  24. package/dist/js/components/lightbox-panel.min.js +1 -1
  25. package/dist/js/components/lightbox.js +353 -352
  26. package/dist/js/components/lightbox.min.js +1 -1
  27. package/dist/js/components/notification.js +6 -6
  28. package/dist/js/components/notification.min.js +1 -1
  29. package/dist/js/components/parallax.js +69 -69
  30. package/dist/js/components/parallax.min.js +1 -1
  31. package/dist/js/components/slider-parallax.js +37 -37
  32. package/dist/js/components/slider-parallax.min.js +1 -1
  33. package/dist/js/components/slider.js +222 -224
  34. package/dist/js/components/slider.min.js +1 -1
  35. package/dist/js/components/slideshow-parallax.js +37 -37
  36. package/dist/js/components/slideshow-parallax.min.js +1 -1
  37. package/dist/js/components/slideshow.js +300 -302
  38. package/dist/js/components/slideshow.min.js +1 -1
  39. package/dist/js/components/sortable.js +2 -2
  40. package/dist/js/components/sortable.min.js +1 -1
  41. package/dist/js/components/tooltip.js +95 -95
  42. package/dist/js/components/tooltip.min.js +1 -1
  43. package/dist/js/components/upload.js +2 -2
  44. package/dist/js/components/upload.min.js +1 -1
  45. package/dist/js/uikit-core.js +452 -449
  46. package/dist/js/uikit-core.min.js +1 -1
  47. package/dist/js/uikit-icons.js +1 -1
  48. package/dist/js/uikit-icons.min.js +1 -1
  49. package/dist/js/uikit.js +6837 -6836
  50. package/dist/js/uikit.min.js +1 -1
  51. package/package.json +8 -7
  52. package/src/js/api/app.js +1 -1
  53. package/src/js/api/boot.js +2 -2
  54. package/src/js/api/component.js +1 -1
  55. package/src/js/api/computed.js +2 -2
  56. package/src/js/api/events.js +2 -2
  57. package/src/js/api/global.js +3 -3
  58. package/src/js/api/hooks.js +4 -4
  59. package/src/js/api/instance.js +3 -3
  60. package/src/js/api/log.js +1 -1
  61. package/src/js/api/observables.js +1 -1
  62. package/src/js/api/observer.js +2 -2
  63. package/src/js/api/options.js +2 -2
  64. package/src/js/api/props.js +2 -2
  65. package/src/js/api/state.js +2 -2
  66. package/src/js/components/countdown.js +1 -1
  67. package/src/js/components/filter.js +5 -5
  68. package/src/js/components/internal/lightbox-animations.js +1 -1
  69. package/src/js/components/internal/slider-transitioner.js +6 -6
  70. package/src/js/components/internal/slideshow-animations.js +1 -1
  71. package/src/js/components/lightbox-panel.js +10 -10
  72. package/src/js/components/lightbox.js +2 -2
  73. package/src/js/components/notification.js +4 -4
  74. package/src/js/components/parallax.js +3 -3
  75. package/src/js/components/slider-parallax.js +1 -1
  76. package/src/js/components/slider.js +12 -12
  77. package/src/js/components/slideshow.js +3 -3
  78. package/src/js/components/sortable.js +4 -4
  79. package/src/js/components/tooltip.js +6 -6
  80. package/src/js/components/upload.js +4 -4
  81. package/src/js/core/accordion.js +8 -8
  82. package/src/js/core/alert.js +2 -2
  83. package/src/js/core/cover.js +1 -1
  84. package/src/js/core/drop.js +12 -12
  85. package/src/js/core/dropnav.js +7 -7
  86. package/src/js/core/form-custom.js +1 -1
  87. package/src/js/core/grid.js +9 -9
  88. package/src/js/core/height-match.js +2 -2
  89. package/src/js/core/height-viewport.js +1 -1
  90. package/src/js/core/icon.js +23 -23
  91. package/src/js/core/img.js +2 -2
  92. package/src/js/core/index.js +16 -14
  93. package/src/js/core/leader.js +2 -2
  94. package/src/js/core/modal.js +7 -7
  95. package/src/js/core/navbar.js +4 -4
  96. package/src/js/core/offcanvas.js +3 -3
  97. package/src/js/core/overflow-auto.js +3 -3
  98. package/src/js/core/responsive.js +3 -3
  99. package/src/js/core/scrollspy-nav.js +1 -1
  100. package/src/js/core/scrollspy.js +1 -1
  101. package/src/js/core/sticky.js +12 -12
  102. package/src/js/core/svg.js +4 -4
  103. package/src/js/core/switcher.js +7 -7
  104. package/src/js/core/tab.js +2 -2
  105. package/src/js/core/toggle.js +5 -5
  106. package/src/js/core/video.js +1 -1
  107. package/src/js/mixin/animate.js +1 -1
  108. package/src/js/mixin/i18n.js +1 -1
  109. package/src/js/mixin/internal/animate-fade.js +14 -14
  110. package/src/js/mixin/internal/animate-slide.js +1 -1
  111. package/src/js/mixin/internal/scroll.js +1 -1
  112. package/src/js/mixin/modal.js +15 -12
  113. package/src/js/mixin/parallax.js +2 -2
  114. package/src/js/mixin/position.js +2 -2
  115. package/src/js/mixin/slider-drag.js +1 -1
  116. package/src/js/mixin/slider-nav.js +8 -9
  117. package/src/js/mixin/slider.js +9 -9
  118. package/src/js/mixin/slideshow.js +1 -1
  119. package/src/js/mixin/togglable.js +4 -4
  120. package/src/js/uikit-core.js +2 -2
  121. package/src/js/uikit.js +2 -2
  122. package/src/js/util/animation.js +8 -8
  123. package/src/js/util/class.js +1 -1
  124. package/src/js/util/dimensions.js +5 -5
  125. package/src/js/util/dom.js +3 -3
  126. package/src/js/util/event.js +3 -3
  127. package/src/js/util/filter.js +1 -1
  128. package/src/js/util/lang.js +4 -4
  129. package/src/js/util/observer.js +2 -2
  130. package/src/js/util/player.js +1 -1
  131. package/src/js/util/position.js +5 -5
  132. package/src/js/util/selector.js +1 -1
  133. package/src/js/util/style.js +1 -1
  134. package/src/js/util/svg.js +2 -2
  135. package/src/js/util/viewport.js +6 -6
  136. package/tests/js/index.js +7 -7
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.16.24-dev.d6158da87 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
1
+ /*! UIkit 3.16.25-dev.12f581d90 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('uikit-util')) :
@@ -37,12 +37,12 @@
37
37
  function toMedia(value, element) {
38
38
  if (uikitUtil.isString(value)) {
39
39
  if (uikitUtil.startsWith(value, "@")) {
40
- value = uikitUtil.toFloat(uikitUtil.css(element, `--uk-breakpoint-${value.substr(1)}`));
40
+ value = uikitUtil.toFloat(uikitUtil.css(element, "--uk-breakpoint-".concat(value.substr(1))));
41
41
  } else if (isNaN(value)) {
42
42
  return value;
43
43
  }
44
44
  }
45
- return value && uikitUtil.isNumeric(value) ? `(min-width: ${value}px)` : "";
45
+ return value && uikitUtil.isNumeric(value) ? "(min-width: ".concat(value, "px)") : "";
46
46
  }
47
47
 
48
48
  function startsWith(str, search) {
@@ -85,6 +85,28 @@
85
85
  return (key) => cache[key] || (cache[key] = fn(key));
86
86
  }
87
87
 
88
+ function parent(element) {
89
+ var _a;
90
+ return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
91
+ }
92
+ function filter(element, selector) {
93
+ return toNodes(element).filter((element2) => matches(element2, selector));
94
+ }
95
+ function matches(element, selector) {
96
+ return toNodes(element).some((element2) => element2.matches(selector));
97
+ }
98
+ function closest(element, selector) {
99
+ return isElement(element) ? element.closest(startsWith(selector, ">") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);
100
+ }
101
+ function children(element, selector) {
102
+ element = toNode(element);
103
+ const children2 = element ? toArray(element.children) : [];
104
+ return selector ? filter(children2, selector) : children2;
105
+ }
106
+ function index(element, ref) {
107
+ return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);
108
+ }
109
+
88
110
  function attr(element, name, value) {
89
111
  var _a;
90
112
  if (isObject(name)) {
@@ -112,28 +134,6 @@
112
134
  toNodes(element).forEach((element2) => element2.removeAttribute(name));
113
135
  }
114
136
 
115
- function parent(element) {
116
- var _a;
117
- return (_a = toNode(element)) == null ? void 0 : _a.parentElement;
118
- }
119
- function filter(element, selector) {
120
- return toNodes(element).filter((element2) => matches(element2, selector));
121
- }
122
- function matches(element, selector) {
123
- return toNodes(element).some((element2) => element2.matches(selector));
124
- }
125
- function closest(element, selector) {
126
- return isElement(element) ? element.closest(startsWith(selector, ">") ? selector.slice(1) : selector) : toNodes(element).map((element2) => closest(element2, selector)).filter(Boolean);
127
- }
128
- function children(element, selector) {
129
- element = toNode(element);
130
- const children2 = element ? toArray(element.children) : [];
131
- return selector ? filter(children2, selector) : children2;
132
- }
133
- function index(element, ref) {
134
- return ref ? toNodes(element).indexOf(toNode(ref)) : children(parent(element)).indexOf(element);
135
- }
136
-
137
137
  function findAll(selector, context) {
138
138
  return toNodes(_query(selector, toNode(context), "querySelectorAll"));
139
139
  }
@@ -166,7 +166,7 @@
166
166
  sel = selectors.slice(1).join(" ");
167
167
  }
168
168
  if (ctx) {
169
- selector += `${selector ? "," : ""}${domPath(ctx)} ${sel}`;
169
+ selector += "".concat(selector ? "," : "").concat(domPath(ctx), " ").concat(sel);
170
170
  }
171
171
  }
172
172
  context = document;
@@ -186,12 +186,12 @@
186
186
  while (element.parentNode) {
187
187
  const id = attr(element, "id");
188
188
  if (id) {
189
- names.unshift(`#${escape(id)}`);
189
+ names.unshift("#".concat(escape(id)));
190
190
  break;
191
191
  } else {
192
192
  let { tagName } = element;
193
193
  if (tagName !== "HTML") {
194
- tagName += `:nth-child(${index(element) + 1})`;
194
+ tagName += ":nth-child(".concat(index(element) + 1, ")");
195
195
  }
196
196
  names.unshift(tagName);
197
197
  element = element.parentNode;
@@ -308,7 +308,7 @@
308
308
  let unit = getUnit(stops) || { x: "px", y: "px", rotate: "deg" }[prop] || "";
309
309
  let transformFn2;
310
310
  if (prop === "x" || prop === "y") {
311
- prop = `translate${uikitUtil.ucfirst(prop)}`;
311
+ prop = "translate".concat(uikitUtil.ucfirst(prop));
312
312
  transformFn2 = (stop) => uikitUtil.toFloat(uikitUtil.toFloat(stop).toFixed(unit === "px" ? 0 : 6));
313
313
  } else if (prop === "scale") {
314
314
  unit = "";
@@ -319,7 +319,7 @@
319
319
  }
320
320
  stops = parseStops(stops, transformFn2);
321
321
  return (css2, percent) => {
322
- css2.transform += ` ${prop}(${getValue(stops, percent)}${unit})`;
322
+ css2.transform += " ".concat(prop, "(").concat(getValue(stops, percent)).concat(unit, ")");
323
323
  };
324
324
  }
325
325
  function colorFn(prop, el, stops) {
@@ -333,7 +333,7 @@
333
333
  value2 += p * (end[i] - value2);
334
334
  return i === 3 ? uikitUtil.toFloat(value2) : parseInt(value2, 10);
335
335
  }).join(",");
336
- css2[prop] = `rgba(${value})`;
336
+ css2[prop] = "rgba(".concat(value, ")");
337
337
  };
338
338
  }
339
339
  function parseColor(el, color) {
@@ -348,7 +348,7 @@
348
348
  stops = parseStops(stops);
349
349
  return (css2, percent) => {
350
350
  const value = getValue(stops, percent);
351
- css2.filter += ` ${prop}(${value + unit})`;
351
+ css2.filter += " ".concat(prop, "(").concat(value + unit, ")");
352
352
  };
353
353
  }
354
354
  function cssPropFn(prop, el, stops) {
@@ -414,30 +414,30 @@
414
414
  const max = Math.max(...values);
415
415
  const down = values.indexOf(min) < values.indexOf(max);
416
416
  const diff = max - min;
417
- positions[prop2] = `${(down ? -diff : 0) - (down ? min : max)}px`;
417
+ positions[prop2] = "".concat((down ? -diff : 0) - (down ? min : max), "px");
418
418
  dimEl[prop2 === "bgy" ? "height" : "width"] += diff;
419
419
  }
420
420
  const dim = uikitUtil.Dimensions.cover(dimImage, dimEl);
421
421
  for (const prop2 of bgProps) {
422
422
  const attr = prop2 === "bgy" ? "height" : "width";
423
423
  const overflow = dim[attr] - dimEl[attr];
424
- positions[prop2] = `max(${getBackgroundPos(el, prop2)},-${overflow}px) + ${positions[prop2]}`;
424
+ positions[prop2] = "max(".concat(getBackgroundPos(el, prop2), ",-").concat(overflow, "px) + ").concat(positions[prop2]);
425
425
  }
426
426
  const fn = setBackgroundPosFn(bgProps, positions, props2);
427
427
  return (css2, percent) => {
428
428
  fn(css2, percent);
429
- css2.backgroundSize = `${dim.width}px ${dim.height}px`;
429
+ css2.backgroundSize = "".concat(dim.width, "px ").concat(dim.height, "px");
430
430
  css2.backgroundRepeat = "no-repeat";
431
431
  };
432
432
  }
433
433
  function getBackgroundPos(el, prop) {
434
- return getCssValue(el, `background-position-${prop.substr(-1)}`, "");
434
+ return getCssValue(el, "background-position-".concat(prop.substr(-1)), "");
435
435
  }
436
436
  function setBackgroundPosFn(bgProps, positions, props2) {
437
437
  return function(css2, percent) {
438
438
  for (const prop of bgProps) {
439
439
  const value = getValue(props2[prop], percent);
440
- css2[`background-position-${prop.substr(-1)}`] = `calc(${positions[prop]} + ${value}px)`;
440
+ css2["background-position-".concat(prop.substr(-1))] = "calc(".concat(positions[prop], " + ").concat(value, "px)");
441
441
  }
442
442
  };
443
443
  }
@@ -1 +1 @@
1
- /*! UIkit 3.16.24-dev.d6158da87 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(i,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],b):(i=typeof globalThis<"u"?globalThis:i||self,i.UIkitSlideshow_parallax=b(i.UIkit.util))})(this,function(i){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=X(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,i.trigger(this.$el,i.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=i.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function X(n,e){if(i.isString(n)){if(i.startsWith(n,"@"))n=i.toFloat(i.css(e,`--uk-breakpoint-${n.substr(1)}`));else if(isNaN(n))return n}return n&&i.isNumeric(n)?`(min-width: ${n}px)`:""}function A(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:Nn,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function T(n){return E(n)>=1}function U(n){return E(n)===1}function E(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function x(n){return u(n)[0]}function u(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function j(n){const e=Object.create(null);return t=>e[t]||(e[t]=n(t))}function O(n,e,t){var o;if(C(e)){for(const r in e)O(n,r,e[r]);return}if(nn(t))return(o=x(n))==null?void 0:o.getAttribute(e);for(const r of u(n))Z(t)&&(t=t.call(r,O(r,e))),t===null?tn(r,e):r.setAttribute(e,t)}function tn(n,e){u(n).forEach(t=>t.removeAttribute(e))}function W(n){var e;return(e=x(n))==null?void 0:e.parentElement}function en(n,e){return u(n).filter(t=>_(t,e))}function _(n,e){return u(n).some(t=>t.matches(e))}function R(n,e){return U(n)?n.closest(A(e,">")?e.slice(1):e):u(n).map(t=>R(t,e)).filter(Boolean)}function rn(n,e){n=x(n);const t=n?Y(n.children):[];return e?en(t,e):t}function on(n,e){return e?u(n).indexOf(x(e)):rn(W(n)).indexOf(n)}function sn(n,e){return u(dn(n,x(e),"querySelectorAll"))}const cn=/(^|[^\\],)\s*[!>+~-]/,an=j(n=>n.match(cn)),fn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,un=j(n=>n.replace(fn,"$1 *"));function dn(n,e=document,t){if(!n||!M(n))return n;if(n=un(n),an(n)){const o=ln(n);n="";for(let r of o){let s=e;if(r[0]==="!"){const a=r.substr(1).trim().split(" ");if(s=R(W(e),a[0]),r=a.slice(1).join(" ").trim(),!r.length&&o.length===1)return s}if(r[0]==="-"){const a=r.substr(1).trim().split(" "),c=(s||e).previousElementSibling;s=_(c,r.substr(1))?c:null,r=a.slice(1).join(" ")}s&&(n+=`${n?",":""}${mn(s)} ${r}`)}e=document}try{return e[t](n)}catch{return null}}const hn=/.*?[^\\](?:,|$)/g,ln=j(n=>n.match(hn).map(e=>e.replace(/,$/,"").trim()));function mn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift(`#${gn(t)}`);break}else{let{tagName:o}=n;o!=="HTML"&&(o+=`:nth-child(${on(n)+1})`),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function gn(n){return M(n)?CSS.escape(n):""}const bn=/^\s*<(\w+|!)[^>]*>/,xn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function $n(n){const e=xn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("div");return bn.test(n)?t.insertAdjacentHTML("beforeend",n.trim()):t.textContent=n,yn(t.childNodes)}function yn(n){return n.length>1?n:n[0]}function wn(n,e){return pn(n)?u($n(n)):sn(n,e)}function pn(n){return M(n)&&A(n.trim(),"<")}function vn(n){return Math.ceil(Math.max(0,...wn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const p={x:v,y:v,rotate:v,scale:v,color:I,backgroundColor:I,borderColor:I,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Cn,stroke:Mn,bgx:B,bgy:B},{keys:z}=Object;var Fn={mixins:[b],props:L(z(p),"list"),data:L(z(p),void 0),computed:{props(n,e){const t={};for(const r in n)r in p&&!i.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=p[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))i.css(this.$el,n,"")},getCss(n){const e={transform:"",filter:""};for(const t in this.props)this.props[t](e,i.clamp(n));return e.willChange=Object.keys(e).filter(t=>e[t]!=="").map(i.propName).join(","),e}}};function v(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n=`translate${i.ucfirst(n)}`,r=s=>i.toFloat(i.toFloat(s).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=s=>S([s])?i.toPx(s,"width",e,!0)/e.offsetWidth:s),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(s,a)=>{s.transform+=` ${n}(${$(t,a)}${o})`}}function I(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t,o=>Sn(e,o)),(o,r)=>{const[s,a,c]=q(t,r),h=s.map((l,f)=>(l+=c*(a[f]-l),f===3?i.toFloat(l):parseInt(l,10))).join(",");o[n]=`rgba(${h})`}}function Sn(n,e){return y(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(i.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,s)=>{const a=$(t,s);r.filter+=` ${n}(${a+o})`}}function Cn(n,e,t){return t.length===1&&t.unshift(y(e,n,"")),t=g(t),(o,r)=>{o[n]=$(t,r)}}function Mn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=vn(e);return t=g(t.reverse(),s=>(s=i.toFloat(s),o==="%"?s*r/100:s)),t.some(([s])=>s)?(i.css(e,"strokeDasharray",r),(s,a)=>{s.strokeDashoffset=$(t,a)}):i.noop}function B(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,c=>i.toPx(c,r,e));const s=["bgx","bgy"].filter(c=>c in o);if(s.length===2&&n==="bgx")return i.noop;if(y(e,"backgroundSize","")==="cover")return jn(n,e,t,o);const a={};for(const c of s)a[c]=D(e,c);return H(s,a,o)}function jn(n,e,t,o){const r=On(e);if(!r.width)return i.noop;const s={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),c={};for(const f of a){const d=o[f].map(([Pn])=>Pn),w=Math.min(...d),N=Math.max(...d),K=d.indexOf(w)<d.indexOf(N),Q=N-w;c[f]=`${(K?-Q:0)-(K?w:N)}px`,s[f==="bgy"?"height":"width"]+=Q}const h=i.Dimensions.cover(r,s);for(const f of a){const d=f==="bgy"?"height":"width",w=h[d]-s[d];c[f]=`max(${D(e,f)},-${w}px) + ${c[f]}`}const l=H(a,c,o);return(f,d)=>{l(f,d),f.backgroundSize=`${h.width}px ${h.height}px`,f.backgroundRepeat="no-repeat"}}function D(n,e){return y(n,`background-position-${e.substr(-1)}`,"")}function H(n,e,t){return function(o,r){for(const s of n){const a=$(t[s],r);o[`background-position-${s.substr(-1)}`]=`calc(${e[s]} + ${a}px)`}}}const F={};function On(n){const e=i.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if(F[e])return F[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{F[e]=P(t),i.trigger(n,i.createEvent("load",!1))},P(t)):F[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=i.toFloat){const t=[],{length:o}=n;let r=0;for(let s=0;s<o;s++){let[a,c]=i.isString(n[s])?n[s].trim().split(/ (?![^(]*\))/):[n[s]];if(a=e(a),c=c?i.toFloat(c)/100:null,s===0?c===null?c=0:c&&t.push([a,0]):s===o-1&&(c===null?c=1:c!==1&&(t.push([a,c]),c=1)),t.push([a,c]),c===null)r++;else if(r){const h=t[s-r-1][1],l=(c-h)/(r+1);for(let f=r;f>0;f--)t[s-f][1]=h+l*(r-f+1);r=0}}return t}function q(n,e){const t=i.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function $(n,e){const[t,o,r]=q(n,e);return i.isNumber(t)?t+Math.abs(t-o)*r*(t<o?1:-1):+o}const In=/^-?\d+(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,In);if(r)return r[1]}return e}function y(n,e,t){const o=n.style[e],r=i.css(i.css(n,e,t),e);return n.style[e]=o,r}function L(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var V={mixins:[Fn],data:{selItem:"!li"},beforeConnect(){this.item=i.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){i.fastdom.read(()=>{if(!this.matchMedia)return;const s=this.getCss(J(n,r,e)),a=this.getCss(G(n)?.5:r>0?1:0);i.fastdom.write(()=>{i.css(this.$el,s),i.Transition.start(this.$el,a,t,o).catch(i.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){i.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){i.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(J(n,t,e));i.fastdom.write(()=>i.css(this.$el,o))})}}]};function G(n){return i.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",V),V});
1
+ /*! UIkit 3.16.25-dev.12f581d90 | https://www.getuikit.com | (c) 2014 - 2023 YOOtheme | MIT License */(function(c,b){typeof exports=="object"&&typeof module<"u"?module.exports=b(require("uikit-util")):typeof define=="function"&&define.amd?define("uikitslideshow_parallax",["uikit-util"],b):(c=typeof globalThis<"u"?globalThis:c||self,c.UIkitSlideshow_parallax=b(c.UIkit.util))})(this,function(c){"use strict";var b={props:{media:Boolean},data:{media:!1},connected(){const n=X(this.media,this.$el);if(this.matchMedia=!0,n){this.mediaObj=window.matchMedia(n);const e=()=>{this.matchMedia=this.mediaObj.matches,c.trigger(this.$el,c.createEvent("mediachange",!1,!0,[this.mediaObj]))};this.offMediaObj=c.on(this.mediaObj,"change",()=>{e(),this.$emit("resize")}),e()}},disconnected(){var n;(n=this.offMediaObj)==null||n.call(this)}};function X(n,e){if(c.isString(n)){if(c.startsWith(n,"@"))n=c.toFloat(c.css(e,"--uk-breakpoint-".concat(n.substr(1))));else if(isNaN(n))return n}return n&&c.isNumeric(n)?"(min-width: ".concat(n,"px)"):""}function A(n,e){var t;return(t=n==null?void 0:n.startsWith)==null?void 0:t.call(n,e)}const{isArray:Nn,from:Y}=Array;function Z(n){return typeof n=="function"}function C(n){return n!==null&&typeof n=="object"}function k(n){return C(n)&&n===n.window}function T(n){return E(n)>=1}function U(n){return E(n)===1}function E(n){return!k(n)&&C(n)&&n.nodeType}function M(n){return typeof n=="string"}function nn(n){return n===void 0}function x(n){return u(n)[0]}function u(n){return T(n)?[n]:Array.from(n||[]).filter(T)}function j(n){const e=Object.create(null);return t=>e[t]||(e[t]=n(t))}function W(n){var e;return(e=x(n))==null?void 0:e.parentElement}function tn(n,e){return u(n).filter(t=>_(t,e))}function _(n,e){return u(n).some(t=>t.matches(e))}function R(n,e){return U(n)?n.closest(A(e,">")?e.slice(1):e):u(n).map(t=>R(t,e)).filter(Boolean)}function en(n,e){n=x(n);const t=n?Y(n.children):[];return e?tn(t,e):t}function rn(n,e){return e?u(n).indexOf(x(e)):en(W(n)).indexOf(n)}function O(n,e,t){var o;if(C(e)){for(const r in e)O(n,r,e[r]);return}if(nn(t))return(o=x(n))==null?void 0:o.getAttribute(e);for(const r of u(n))Z(t)&&(t=t.call(r,O(r,e))),t===null?on(r,e):r.setAttribute(e,t)}function on(n,e){u(n).forEach(t=>t.removeAttribute(e))}function cn(n,e){return u(dn(n,x(e),"querySelectorAll"))}const sn=/(^|[^\\],)\s*[!>+~-]/,an=j(n=>n.match(sn)),fn=/([!>+~-])(?=\s+[!>+~-]|\s*$)/g,un=j(n=>n.replace(fn,"$1 *"));function dn(n,e=document,t){if(!n||!M(n))return n;if(n=un(n),an(n)){const o=ln(n);n="";for(let r of o){let i=e;if(r[0]==="!"){const a=r.substr(1).trim().split(" ");if(i=R(W(e),a[0]),r=a.slice(1).join(" ").trim(),!r.length&&o.length===1)return i}if(r[0]==="-"){const a=r.substr(1).trim().split(" "),s=(i||e).previousElementSibling;i=_(s,r.substr(1))?s:null,r=a.slice(1).join(" ")}i&&(n+="".concat(n?",":"").concat(mn(i)," ").concat(r))}e=document}try{return e[t](n)}catch{return null}}const hn=/.*?[^\\](?:,|$)/g,ln=j(n=>n.match(hn).map(e=>e.replace(/,$/,"").trim()));function mn(n){const e=[];for(;n.parentNode;){const t=O(n,"id");if(t){e.unshift("#".concat(gn(t)));break}else{let{tagName:o}=n;o!=="HTML"&&(o+=":nth-child(".concat(rn(n)+1,")")),e.unshift(o),n=n.parentNode}}return e.join(" > ")}function gn(n){return M(n)?CSS.escape(n):""}const bn=/^\s*<(\w+|!)[^>]*>/,xn=/^<(\w+)\s*\/?>(?:<\/\1>)?$/;function yn(n){const e=xn.exec(n);if(e)return document.createElement(e[1]);const t=document.createElement("div");return bn.test(n)?t.insertAdjacentHTML("beforeend",n.trim()):t.textContent=n,wn(t.childNodes)}function wn(n){return n.length>1?n:n[0]}function pn(n,e){return vn(n)?u(yn(n)):cn(n,e)}function vn(n){return M(n)&&A(n.trim(),"<")}function Fn(n){return Math.ceil(Math.max(0,...pn("[stroke]",n).map(e=>{try{return e.getTotalLength()}catch{return 0}})))}const v={x:F,y:F,rotate:F,scale:F,color:I,backgroundColor:I,borderColor:I,blur:m,hue:m,fopacity:m,grayscale:m,invert:m,saturate:m,sepia:m,opacity:Cn,stroke:Mn,bgx:B,bgy:B},{keys:z}=Object;var $n={mixins:[b],props:L(z(v),"list"),data:L(z(v),void 0),computed:{props(n,e){const t={};for(const r in n)r in v&&!c.isUndefined(n[r])&&(t[r]=n[r].slice());const o={};for(const r in t)o[r]=v[r](r,e,t[r],t);return o}},events:{load(){this.$emit()}},methods:{reset(){for(const n in this.getCss(0))c.css(this.$el,n,"")},getCss(n){const e={transform:"",filter:""};for(const t in this.props)this.props[t](e,c.clamp(n));return e.willChange=Object.keys(e).filter(t=>e[t]!=="").map(c.propName).join(","),e}}};function F(n,e,t){let o=S(t)||{x:"px",y:"px",rotate:"deg"}[n]||"",r;return n==="x"||n==="y"?(n="translate".concat(c.ucfirst(n)),r=i=>c.toFloat(c.toFloat(i).toFixed(o==="px"?0:6))):n==="scale"&&(o="",r=i=>S([i])?c.toPx(i,"width",e,!0)/e.offsetWidth:i),t.length===1&&t.unshift(n==="scale"?1:0),t=g(t,r),(i,a)=>{i.transform+=" ".concat(n,"(").concat(y(t,a)).concat(o,")")}}function I(n,e,t){return t.length===1&&t.unshift(w(e,n,"")),t=g(t,o=>Sn(e,o)),(o,r)=>{const[i,a,s]=q(t,r),h=i.map((l,f)=>(l+=s*(a[f]-l),f===3?c.toFloat(l):parseInt(l,10))).join(",");o[n]="rgba(".concat(h,")")}}function Sn(n,e){return w(n,"color",e).split(/[(),]/g).slice(1,-1).concat(1).slice(0,4).map(c.toFloat)}function m(n,e,t){t.length===1&&t.unshift(0);const o=S(t)||{blur:"px",hue:"deg"}[n]||"%";return n={fopacity:"opacity",hue:"hue-rotate"}[n]||n,t=g(t),(r,i)=>{const a=y(t,i);r.filter+=" ".concat(n,"(").concat(a+o,")")}}function Cn(n,e,t){return t.length===1&&t.unshift(w(e,n,"")),t=g(t),(o,r)=>{o[n]=y(t,r)}}function Mn(n,e,t){t.length===1&&t.unshift(0);const o=S(t),r=Fn(e);return t=g(t.reverse(),i=>(i=c.toFloat(i),o==="%"?i*r/100:i)),t.some(([i])=>i)?(c.css(e,"strokeDasharray",r),(i,a)=>{i.strokeDashoffset=y(t,a)}):c.noop}function B(n,e,t,o){t.length===1&&t.unshift(0);const r=n==="bgy"?"height":"width";o[n]=g(t,s=>c.toPx(s,r,e));const i=["bgx","bgy"].filter(s=>s in o);if(i.length===2&&n==="bgx")return c.noop;if(w(e,"backgroundSize","")==="cover")return jn(n,e,t,o);const a={};for(const s of i)a[s]=D(e,s);return H(i,a,o)}function jn(n,e,t,o){const r=On(e);if(!r.width)return c.noop;const i={width:e.offsetWidth,height:e.offsetHeight},a=["bgx","bgy"].filter(f=>f in o),s={};for(const f of a){const d=o[f].map(([Pn])=>Pn),p=Math.min(...d),N=Math.max(...d),K=d.indexOf(p)<d.indexOf(N),Q=N-p;s[f]="".concat((K?-Q:0)-(K?p:N),"px"),i[f==="bgy"?"height":"width"]+=Q}const h=c.Dimensions.cover(r,i);for(const f of a){const d=f==="bgy"?"height":"width",p=h[d]-i[d];s[f]="max(".concat(D(e,f),",-").concat(p,"px) + ").concat(s[f])}const l=H(a,s,o);return(f,d)=>{l(f,d),f.backgroundSize="".concat(h.width,"px ").concat(h.height,"px"),f.backgroundRepeat="no-repeat"}}function D(n,e){return w(n,"background-position-".concat(e.substr(-1)),"")}function H(n,e,t){return function(o,r){for(const i of n){const a=y(t[i],r);o["background-position-".concat(i.substr(-1))]="calc(".concat(e[i]," + ").concat(a,"px)")}}}const $={};function On(n){const e=c.css(n,"backgroundImage").replace(/^none|url\(["']?(.+?)["']?\)$/,"$1");if($[e])return $[e];const t=new Image;return e&&(t.src=e,!t.naturalWidth)?(t.onload=()=>{$[e]=P(t),c.trigger(n,c.createEvent("load",!1))},P(t)):$[e]=P(t)}function P(n){return{width:n.naturalWidth,height:n.naturalHeight}}function g(n,e=c.toFloat){const t=[],{length:o}=n;let r=0;for(let i=0;i<o;i++){let[a,s]=c.isString(n[i])?n[i].trim().split(/ (?![^(]*\))/):[n[i]];if(a=e(a),s=s?c.toFloat(s)/100:null,i===0?s===null?s=0:s&&t.push([a,0]):i===o-1&&(s===null?s=1:s!==1&&(t.push([a,s]),s=1)),t.push([a,s]),s===null)r++;else if(r){const h=t[i-r-1][1],l=(s-h)/(r+1);for(let f=r;f>0;f--)t[i-f][1]=h+l*(r-f+1);r=0}}return t}function q(n,e){const t=c.findIndex(n.slice(1),([,o])=>e<=o)+1;return[n[t-1][0],n[t][0],(e-n[t-1][1])/(n[t][1]-n[t-1][1])]}function y(n,e){const[t,o,r]=q(n,e);return c.isNumber(t)?t+Math.abs(t-o)*r*(t<o?1:-1):+o}const In=/^-?\d+(\S+)?/;function S(n,e){var t;for(const o of n){const r=(t=o.match)==null?void 0:t.call(o,In);if(r)return r[1]}return e}function w(n,e,t){const o=n.style[e],r=c.css(c.css(n,e,t),e);return n.style[e]=o,r}function L(n,e){return n.reduce((t,o)=>(t[o]=e,t),{})}var V={mixins:[$n],data:{selItem:"!li"},beforeConnect(){this.item=c.query(this.selItem,this.$el)},disconnected(){this.item=null},events:[{name:"itemin itemout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,duration:t,timing:o,dir:r}}){c.fastdom.read(()=>{if(!this.matchMedia)return;const i=this.getCss(J(n,r,e)),a=this.getCss(G(n)?.5:r>0?1:0);c.fastdom.write(()=>{c.css(this.$el,i),c.Transition.start(this.$el,a,t,o).catch(c.noop)})})}},{name:"transitioncanceled transitionend",self:!0,el(){return this.item},handler(){c.Transition.cancel(this.$el)}},{name:"itemtranslatein itemtranslateout",self:!0,el(){return this.item},handler({type:n,detail:{percent:e,dir:t}}){c.fastdom.read(()=>{if(!this.matchMedia){this.reset();return}const o=this.getCss(J(n,t,e));c.fastdom.write(()=>c.css(this.$el,o))})}}]};function G(n){return c.endsWith(n,"in")}function J(n,e,t){return t/=2,G(n)^e<0?t:1-t}return typeof window<"u"&&window.UIkit&&window.UIkit.component("slideshowParallax",V),V});