@webalternatif/js-core 1.6.5 → 1.6.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/onOff.js +3 -6
- package/dist/cjs/utils.js +30 -2
- package/dist/esm/onOff.js +3 -6
- package/dist/esm/utils.js +29 -1
- package/dist/umd/dom.umd.js +1 -1
- package/dist/umd/mouse.umd.js +1 -1
- package/dist/umd/webf.umd.js +1 -1
- package/package.json +1 -1
- package/src/onOff.js +4 -4
- package/src/utils.js +39 -0
- package/types/index.d.ts +1 -0
- package/types/utils.d.ts +1 -0
package/dist/cjs/onOff.js
CHANGED
|
@@ -57,8 +57,6 @@ var enableLongTap = function enableLongTap() {
|
|
|
57
57
|
}, LONGPRESS_DELAY);
|
|
58
58
|
};
|
|
59
59
|
var move = function move(ev) {
|
|
60
|
-
// if (!timer) return;
|
|
61
|
-
|
|
62
60
|
var pos = _Mouse["default"].getViewportPosition(ev);
|
|
63
61
|
if (Math.hypot(pos.x - startX, pos.y - startY) > MOVE_TOLERANCE) {
|
|
64
62
|
clearTimeout(timer);
|
|
@@ -115,6 +113,7 @@ var enableDblTap = function enableDblTap() {
|
|
|
115
113
|
} else {
|
|
116
114
|
var pos = _Mouse["default"].getViewportPosition(ev);
|
|
117
115
|
if (Math.hypot(pos.x - lastPos.x, pos.y - lastPos.y) <= MOVE_TOLERANCE) {
|
|
116
|
+
ev.preventDefault();
|
|
118
117
|
target.dispatchEvent(new CustomEvent('dbltap', {
|
|
119
118
|
bubbles: true,
|
|
120
119
|
cancelable: true,
|
|
@@ -128,12 +127,10 @@ var enableDblTap = function enableDblTap() {
|
|
|
128
127
|
}
|
|
129
128
|
};
|
|
130
129
|
document.addEventListener('touchstart', start, {
|
|
131
|
-
passive:
|
|
130
|
+
passive: false
|
|
132
131
|
});
|
|
133
132
|
_teardownDblTap = function teardownDblTap() {
|
|
134
|
-
document.removeEventListener('touchstart', start
|
|
135
|
-
passive: true
|
|
136
|
-
});
|
|
133
|
+
document.removeEventListener('touchstart', start);
|
|
137
134
|
_teardownDblTap = null;
|
|
138
135
|
};
|
|
139
136
|
};
|
package/dist/cjs/utils.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.throttle = exports.strParseFloat = exports.sizeOf = exports.noop = exports.flatten = exports.equals = exports.debounce = void 0;
|
|
6
|
+
exports.throttle = exports.strParseFloat = exports.sizeOf = exports.noop = exports.getScrollbarWidth = exports.flatten = exports.equals = exports.debounce = void 0;
|
|
7
7
|
var _traversal = require("./traversal.js");
|
|
8
8
|
var _is = require("./is.js");
|
|
9
9
|
var _array = require("./array.js");
|
|
@@ -244,4 +244,32 @@ var debounce = exports.debounce = function debounce(func, wait) {
|
|
|
244
244
|
func.apply(context || _this2, args);
|
|
245
245
|
}, wait);
|
|
246
246
|
};
|
|
247
|
-
};
|
|
247
|
+
};
|
|
248
|
+
var getScrollbarWidth = exports.getScrollbarWidth = function () {
|
|
249
|
+
var scrollbarWidth = null;
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* Returns the browser scrollbar width in pixels.
|
|
253
|
+
* The value is computed once and then cached.
|
|
254
|
+
*
|
|
255
|
+
* @returns {number} - The scrollbar width in pixels.
|
|
256
|
+
*/
|
|
257
|
+
return function () {
|
|
258
|
+
if (scrollbarWidth === null) {
|
|
259
|
+
var outer = document.createElement('div');
|
|
260
|
+
outer.style.visibility = 'hidden';
|
|
261
|
+
outer.style.width = '100px';
|
|
262
|
+
outer.style.msOverflowStyle = 'scrollbar';
|
|
263
|
+
document.body.appendChild(outer);
|
|
264
|
+
var widthNoScroll = outer.offsetWidth;
|
|
265
|
+
outer.style.overflow = 'scroll';
|
|
266
|
+
var inner = document.createElement('div');
|
|
267
|
+
inner.style.width = '100%';
|
|
268
|
+
outer.appendChild(inner);
|
|
269
|
+
var widthWithScroll = inner.offsetWidth;
|
|
270
|
+
outer.remove();
|
|
271
|
+
scrollbarWidth = widthNoScroll - widthWithScroll;
|
|
272
|
+
}
|
|
273
|
+
return scrollbarWidth;
|
|
274
|
+
};
|
|
275
|
+
}();
|
package/dist/esm/onOff.js
CHANGED
|
@@ -48,8 +48,6 @@ var enableLongTap = function enableLongTap() {
|
|
|
48
48
|
}, LONGPRESS_DELAY);
|
|
49
49
|
};
|
|
50
50
|
var move = function move(ev) {
|
|
51
|
-
// if (!timer) return;
|
|
52
|
-
|
|
53
51
|
var pos = Mouse.getViewportPosition(ev);
|
|
54
52
|
if (Math.hypot(pos.x - startX, pos.y - startY) > MOVE_TOLERANCE) {
|
|
55
53
|
clearTimeout(timer);
|
|
@@ -106,6 +104,7 @@ var enableDblTap = function enableDblTap() {
|
|
|
106
104
|
} else {
|
|
107
105
|
var pos = Mouse.getViewportPosition(ev);
|
|
108
106
|
if (Math.hypot(pos.x - lastPos.x, pos.y - lastPos.y) <= MOVE_TOLERANCE) {
|
|
107
|
+
ev.preventDefault();
|
|
109
108
|
target.dispatchEvent(new CustomEvent('dbltap', {
|
|
110
109
|
bubbles: true,
|
|
111
110
|
cancelable: true,
|
|
@@ -119,12 +118,10 @@ var enableDblTap = function enableDblTap() {
|
|
|
119
118
|
}
|
|
120
119
|
};
|
|
121
120
|
document.addEventListener('touchstart', start, {
|
|
122
|
-
passive:
|
|
121
|
+
passive: false
|
|
123
122
|
});
|
|
124
123
|
_teardownDblTap = function teardownDblTap() {
|
|
125
|
-
document.removeEventListener('touchstart', start
|
|
126
|
-
passive: true
|
|
127
|
-
});
|
|
124
|
+
document.removeEventListener('touchstart', start);
|
|
128
125
|
_teardownDblTap = null;
|
|
129
126
|
};
|
|
130
127
|
};
|
package/dist/esm/utils.js
CHANGED
|
@@ -240,4 +240,32 @@ export var debounce = function debounce(func, wait) {
|
|
|
240
240
|
func.apply(context || _this2, args);
|
|
241
241
|
}, wait);
|
|
242
242
|
};
|
|
243
|
-
};
|
|
243
|
+
};
|
|
244
|
+
export var getScrollbarWidth = function () {
|
|
245
|
+
var scrollbarWidth = null;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* Returns the browser scrollbar width in pixels.
|
|
249
|
+
* The value is computed once and then cached.
|
|
250
|
+
*
|
|
251
|
+
* @returns {number} - The scrollbar width in pixels.
|
|
252
|
+
*/
|
|
253
|
+
return function () {
|
|
254
|
+
if (scrollbarWidth === null) {
|
|
255
|
+
var outer = document.createElement('div');
|
|
256
|
+
outer.style.visibility = 'hidden';
|
|
257
|
+
outer.style.width = '100px';
|
|
258
|
+
outer.style.msOverflowStyle = 'scrollbar';
|
|
259
|
+
document.body.appendChild(outer);
|
|
260
|
+
var widthNoScroll = outer.offsetWidth;
|
|
261
|
+
outer.style.overflow = 'scroll';
|
|
262
|
+
var inner = document.createElement('div');
|
|
263
|
+
inner.style.width = '100%';
|
|
264
|
+
outer.appendChild(inner);
|
|
265
|
+
var widthWithScroll = inner.offsetWidth;
|
|
266
|
+
outer.remove();
|
|
267
|
+
scrollbarWidth = widthNoScroll - widthWithScroll;
|
|
268
|
+
}
|
|
269
|
+
return scrollbarWidth;
|
|
270
|
+
};
|
|
271
|
+
}();
|
package/dist/umd/dom.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.dom=n():t.dom=n()}(this,()=>(()=>{"use strict";var t={153(t,n,e){e.d(n,{default:()=>ae});var r={};e.r(r),e.d(r,{debounce:()=>m,equals:()=>s,flatten:()=>v,noop:()=>p,sizeOf:()=>d,strParseFloat:()=>y,throttle:()=>h});var o={};e.r(o),e.d(o,{clone:()=>O,each:()=>E,extend:()=>x,foreach:()=>A,map:()=>C,merge:()=>P,reduce:()=>j});var i={};e.r(i),e.d(i,{dec2hex:()=>N,floorTo:()=>L,hex2dec:()=>D,max:()=>I,min:()=>_,plancher:()=>M,round:()=>T});var a={};e.r(a),e.d(a,{arrayDiff:()=>F,arrayUnique:()=>X,array_diff:()=>q,array_unique:()=>Y,inArray:()=>R,indexOf:()=>B,lastIndexOf:()=>U,range:()=>z});var u={};e.r(u),e.d(u,{isArray:()=>nt,isArrayLike:()=>tt,isBool:()=>K,isBoolean:()=>J,isDate:()=>et,isDocument:()=>st,isDomElement:()=>pt,isEvent:()=>rt,isEventSupported:()=>lt,isFloat:()=>at,isFunction:()=>G,isInt:()=>it,isInteger:()=>ot,isObject:()=>H,isPlainObject:()=>Z,isScalar:()=>ut,isString:()=>V,isTouchDevice:()=>ct,isUndefined:()=>Q,isWindow:()=>ft});var l={};e.r(l),e.d(l,{addUrlParam:()=>Rt,br2nl:()=>wt,camelCase:()=>Wt,compareMixAlphaDigits:()=>Jt,decodeHtml:()=>Bt,escapeRegex:()=>zt,f:()=>Vt,format:()=>$t,formatSize:()=>Zt,hex2rgb:()=>kt,hextorgb:()=>Nt,hilite:()=>Gt,htmlquotes:()=>Ut,htmlsimplequotes:()=>Xt,insert:()=>xt,insertTag:()=>Ct,lcfirst:()=>At,ltrim:()=>ht,nl2br:()=>St,noAccent:()=>bt,numberFormat:()=>Tt,pad:()=>Mt,parse_url:()=>Dt,repeat:()=>Yt,reverse:()=>Ot,rgb2hex:()=>_t,rgbtohex:()=>It,rtrim:()=>mt,stripMultipleSpaces:()=>gt,stripTags:()=>Ft,substringIndex:()=>jt,thousandSeparator:()=>Pt,toCssClassName:()=>Ht,toPrice:()=>Lt,toUrl:()=>qt,trim:()=>yt,ucfirst:()=>Et});var c={};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}e.r(c),e.d(c,{rand:()=>on,randAlpha:()=>Qt,randAlphaCs:()=>tn,randAlphaNum:()=>nn,randAlphaNumCs:()=>en,randNum:()=>rn,uniqid:()=>an});var s=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(f(t)!==f(n)||null===t||null===n)return!1;if(nt(t)||H(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(nt(t)||nt(n))return!(!nt(t)||!nt(n))&&t.length===n.length&&t.every(function(t,o){return r(t,n[o],e)});if(H(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var o=Object.keys(t),i=Object.keys(n);return o.length===i.length&&o.every(function(o){return r(t[o],n[o],e)})}return!1},o=n[0];return n.slice(1).every(function(t){return r(o,t)})},p=function(){},d=function(t){return C(t,p).length},v=function(t){return H(t)||nt(t)?[].concat.apply([],C(t,function(t,n){return v(n)})):t},y=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},h=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=e?Date.now():0,t.apply(o||u,c)},p))}},m=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},n)}};function g(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||w(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=w(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function w(t,n){if(t){if("string"==typeof t)return S(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?S(t,n):void 0}}function S(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var E=function(t,n,e){if(Z(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===n.call(null!=e?e:t[o],o,t[o],t,++r))return}else{if(V(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===n.call(null!=e?e:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=b(t.entries());try{for(c.s();!(u=c.n()).done;){var f=g(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,y=b(t.values());try{for(y.s();!(d=y.n()).done;){var h=d.value;if(!1===n.call(null!=e?e:h,v,h,t,v))return t;v++}}catch(t){y.e(t)}finally{y.f()}}else if(tt(t))for(var m=Array.from(t),w=0;w<m.length;w++)if(!1===n.call(e||m[w],w,m[w],m,w))return t}return t},A=function(t,n,e){return E(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},C=function(t,n,e){var r=[];return E(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r},j=function(t,n,e){var r=!Q(e);if(!d(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?e:C(t,function(t,n,e,r){return 0===r?n:null})[0];return E(t,function(t,e,i,a){(0!==a||r)&&(o=n(o,e,t,a,i))}),o},x=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(J(e[0])&&(t=e.shift()),e.length<2||Q(e[0])||null===e[0])return e[0];var o=e[0];return H(o)||(e[0]=o={}),A(e.slice(1),function(n){if(H(n))for(var e in n)t&&Z(n[e])?o[e]=x(!0,{},o[e],n[e]):o[e]=n[e]}),o},O=function(t){if(!H(t)&&!nt(t)||ft(t))return t;var n=H(t)?{}:[];return E(t,function(t,e){H(e)?n[t]=O(e):n[t]=e}),n},P=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=C(t,function(t,n){return n});E(n,function(t,n){e.push(n)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?P.apply(void 0,[e].concat(o)):e},T=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},L=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return T(Math.floor(t/n)*n,6)},M=L,_=function(t,n){return k(t,n=G(n)?n:function(t,n){return t<n?-1:1})},I=function(t,n){return k(t,n=G(n)?n:function(t,n){return t>n?-1:1})};function k(t,n){var e;return E(t,function(t,r,o,i){e=0===i||n.call(null,e,r)>0?r:e}),e}var N=function(t){return t.toString(16)},D=function(t){t=Ot(t+"").toUpperCase();var n=0;return E(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},R=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return E(n,function(n,i){if(n>=e)if(r){if(i===t)return o=!0,!1}else{if(H(t)&&H(i))return o=s(i,t),!1;if(nt(t)&&H(i))return o=s(i,t),!1;if(i==t)return o=!0,!1}}),o},B=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=V(t)?C(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},U=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=V(t)?C(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},X=function(t){return t.filter(function(t,n,e){return n===B(e,t)})},Y=X,F=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!R(t,n,0,e)})},q=F,z=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=T(t),e=T(e);var r=[];if(Q(n)||t<1||0===e||t<Math.abs(e))return r;var o=t*e;if(V(n)){n=n.charCodeAt(0);for(var i=0;e>0?i<o:i>o;i+=e)r.push(String.fromCharCode(n+i))}else if(ot(n))for(var a=0;e>0?a<o:a>o;a+=e)r.push(n+a);return r};function W(t){return W="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},W(t)}var $,V=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},H=function(t){return!!t&&!nt(t)&&"object"===W(t)},G=function(t){return!!t&&"function"==typeof t},Z=function(t){return!1!==H(t)&&(void 0===t.constructor||!1!==H(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},J=function(t){return!0===t||!1===t},K=J,Q=function(t){return void 0===t},tt=function(t){return!!t&&!V(t)&&!G(t)&&it(t.length)&&Number.isFinite(t.length)},nt=function(t){return Array.isArray(t)},et=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},rt=function(t){return H(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},ot=function(t){return/^[-+]?\d+$/.test(t+"")},it=ot,at=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},ut=function(t){var n=W(t);return null===t||R(n,["string","number","bigint","symbol","boolean"])},lt=($={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement($[t]||"div"),e=(t="on"+t)in n;return n=null,e}),ct=function(){return lt("touchstart")},ft=function(t){return!!t&&t===t.window},st=function(t){return!!t&&9===t.nodeType},pt=function(t){return H(t)&&1===t.nodeType&&!Z(t)};function dt(t){return function(t){if(Array.isArray(t))return vt(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return vt(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?vt(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vt(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var yt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return ht(mt(t,n),n)},ht=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},gt=function(t){return t.trim().replace(/ +/g," ")},bt=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},wt=function(t){return t.split(/<br\s*\/*>/).join("\n")},St=function(t){return t.split("\n").join("<br>")},Et=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},At=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},Ct=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(n,">"),i="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(o="<".concat(n,"/>"),i=""),t.slice(0,e)+o+t.slice(e,e+r)+i+t.slice(e+r)},jt=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},xt=function(t,n,e){return e>=t.length?t:dt(t).reduce(function(t,r,o){return o>0&&o%e===0?t+n+r:t+r},"")},Ot=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Pt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(Q(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=Ot(xt(Ot(r),Ot(n),3));return t.indexOf(".")>0?o+e+jt(t,".",-1):o}return(t+"").replace(".",e)},Tt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=T(parseFloat(t.replace(",",".")),n)+"",0===n)return Pt(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===e&&(t+=o+Yt("0",n)),Pt(t,r,o);var a=t.slice(i+1).length;return Pt(n>a?t+"0".repeat(n-a):t.slice(0,i+1+n),r,o)},Lt=Tt,Mt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return Q(n)||t.length>=n||!R(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},_t=function(t,n,e){return nt(t)?_t.apply(void 0,dt(t)):ot(t)&&ot(n)&&ot(e)?[Mt(N(parseInt(t)),2,"0").toUpperCase(),Mt(N(parseInt(n)),2,"0").toUpperCase(),Mt(N(parseInt(e)),2,"0").toUpperCase()].join(""):""},It=_t,kt=function(t){if(!V(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=C(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return C(xt(t,",",2).split(","),function(t,n){return D(n)})},Nt=kt,Dt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)e[o]&&(r[n[o]]=e[o]);return delete r.source,r},Rt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(Z(n))return E(n,function(n,e){t=Rt(t,n,e)}),t;var r,o=Dt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Bt=function(t){return V(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},Ut=function(t){return V(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},Xt=function(t){return V(t)?t.replace(/'/g,"'"):""},Yt=function(t,n){return V(t)&&at(n)?new Array(Math.floor(n)+1).join(t):""},Ft=function(t,n){if(V(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},qt=function(t){return yt(bt(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},zt=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},Wt=function(t){if(!t)return"";var n="",e=!1,r=!1,o=!1;t=yt(t),t=yt(t,"_"),t=yt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return C(t,function(t,u){return r=a(n),o=i(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):i(u)?((0===t||o&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},$t=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&E(e,function(n,e){if(V(e)){var r={};r[n]=e,e=r}E(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return Q(e)?t:e})})}),t},Vt=$t,Ht=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Gt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Bt(t);var r,o,i=bt(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(nt(n)||(n=[n]),E(n,function(t,n){n.length&&(n=Bt(n),r=bt(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp(zt(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return E(a,function(n,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(e,">"),"g"),"<".concat(e,">")).replace(new RegExp("</".concat(e,">"),"g"),"</".concat(e,">")).replace(new RegExp("<br>","g"),"<br>")},Zt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);ot(t)||(r=1);var o=C(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Tt(Math.max(t,0),r,!0,"",n)+" "+o[e]},Jt=function(t,n){if(t===n)return 0;if(ot(t)&&ot(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!ot(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var o="",i=null;E(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);i=t,n>="0"&&n<="9"&&(o+=n)});var a="",u=null;return E(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),o.length&&a.length&&i===u&&t.substring(0,i)===n.substring(0,u)?Math.sign(o-a):t>n?1:-1};A(Object.keys(l),function(t){var n=l[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var Kt,Qt=function(t){return on("abcdefghijklmnopqrstuvwxyz".split(""),t)},tn=function(t){return on("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},nn=function(t){return on("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},en=function(t){return on("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},rn=function(t){return on("0123456789".split(""),t)},on=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},an=(Kt=0,function(){return Kt++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(Kt.toString(36),"_").concat(nn(5))});function un(t){return un="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},un(t)}function ln(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,cn(r.key),r)}}function cn(t){var n=function(t){if("object"!=un(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=un(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==un(n)?n:n+""}function fn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var sn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=fn(t,this,pn).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=fn(t,this,pn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=fn(t,this,pn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ln(n.prototype,null),e&&ln(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function pn(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const dn=sn;function vn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=mn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function yn(t){return function(t){if(Array.isArray(t))return gn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||mn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function hn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||mn(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function mn(t,n){if(t){if("string"==typeof t)return gn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?gn(t,n):void 0}}function gn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=sn);var bn=new Map,wn=["longtap","dbltap"],Sn=new Set;function En(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var o=t[e];return G(o)?o.bind(t):o}})}function An(t){return function(t){if(Array.isArray(t))return Cn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return Cn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Cn(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Cn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var jn=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],xn={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),tt(n))return C(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,An(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,An(e))}),t},toggleClass:function(t,n,e){return A(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return A(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!R(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return A(r,function(e){V(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return A([].concat(r).reverse(),function(e){V(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||nt(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=G(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(Z(n))return E(n,function(n,e){return r.data(t,n,e)}),t;var o=/^data-/.test(n+""),i=Wt(o?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[i]:null===e?(delete t.dataset[i],t):(t.dataset[i]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if(V(n)){var o=n.startsWith("--")?n:Wt(n);if(void 0===e){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(n)||i[Wt(n)]||""}return t.style[Wt(n)]||""}o.startsWith("--")?t.style.setProperty(o,String(e)):("number"!=typeof e||R(o,jn)||(e+="px"),t.style[o]=e)}else E(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!V(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?(V(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?(V(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=V(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return A(o,function(t){V(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(ft(t))return{top:t.scrollY,left:t.scrollX};if(st(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(R(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,o){return G(e)&&(o=r,r=e,e=null),A(n.split(" "),function(n){var i=hn(n.split("."),2),a=i[0],u=i[1],l=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=yn(bn.get(t)),i=vn(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,c=vn(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===n.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=En(n,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=bn.get(t);c||(c=[],bn.set(t,c)),R(a,wn)&&function(t){var n,e,r,o,i,a,u;null!=Sn&&Sn.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=dn.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=dn.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=dn.getViewportPosition(t);else{var o=dn.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=o}},{passive:!0})),Sn.add(t))}(a);var f=C(c,function(t,n){return n.event});R(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:e,listener:l,namespace:u,options:o})}),t},off:function(t,n,e,r,o){G(e)&&(o=r,r=e,e=null);var i=bn.get(t);if(!i)return t;var a=n?n.split(" "):[void 0];return A(a,function(n){var a=hn(void 0===n?[void 0,void 0]:n.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;A(yn(i).reverse(),function(n){if((!c&&!f||c&&!f&&n.event===u||!c&&f&&n.namespace===l||c&&f&&n.event===u&&n.namespace===l)&&(void 0===u||n.event===u)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===l||n.namespace===l)&&(void 0===o||n.options===o)){var a=i.indexOf(n);-1!==a&&i.splice(a,1),C(i,function(t,n){return n.event===u?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};function On(t){return On="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},On(t)}function Pn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Tn(r.key),r)}}function Tn(t){var n=function(t){if("object"!=On(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=On(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==On(n)?n:n+""}function Ln(t,n){return t.get(Mn(t,n))}function Mn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=xn);var _n=new WeakMap,In=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,_n,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!G(n))throw new Error("Callback must be a function.");if(!V(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:n,context:e,args:i};return E(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?Ln(_n,r)[n].push(u):Ln(_n,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return E(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!V(t))throw new Error("Events name must be a string seperated by comma.");return E(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void E(Ln(_n,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return Q(n)?!Q(Ln(_n,this)[t]):!!C(Ln(_n,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(Q(n)?Ln(_n,this)[t].splice(0):E(Ln(_n,this)[t],function(n){return Ln(_n,r)[t].splice(n,1),delete Ln(_n,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?Ln(_n,this)[t]||[]:Ln(_n,this)}},{key:"reset",value:function(){var t,n;n={},(t=_n).set(Mn(t,this),n)}}],n&&Pn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),kn=new In;function Nn(t){return Nn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Nn(t)}function Dn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Rn(r.key),r)}}function Rn(t){var n=function(t){if("object"!=Nn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Nn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Nn(n)?n:n+""}function Bn(t,n,e){Un(t,n),n.set(t,e)}function Un(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Xn(t,n){return t.get(Fn(t,n))}function Yn(t,n,e){return t.set(Fn(t,n),e),e}function Fn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=kn);var qn=new WeakMap,zn=new WeakMap,Wn=new WeakSet,$n=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Un(this,r=Wn),r.add(this),Bn(this,qn,void 0),Bn(this,zn,void 0),Fn(Wn,this,Vn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Xn(zn,this)[e]&&void 0!==Xn(zn,this)[e][n]&&void 0!==Xn(zn,this)[e][n][t]){var r=Xn(zn,this)[e][n][t];return Fn(Wn,this,Gn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Xn(zn,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[n],u=null==i?void 0:i[e];if(!a||!u)return t;var l=Fn(Wn,this,Hn).call(this,a,t);if(!l)return t;var c=u[l],f=Fn(Wn,this,Gn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Xn(qn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),Yn(qn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&Dn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Vn(t){var n={},e={};E(t,function(t,r){E(r,function(r,o){Z(o)?(void 0===n[t]&&(n[t]={}),n[t][r]=o):(void 0===e[t]&&(e[t]={}),e[t][r]=o)})}),Yn(zn,this,x(!0,n,{core:x({},n.core||{},e)}))}function Hn(t,n){for(var e in t)if(Fn(Wn,this,Gn).call(this,t[e])===n)return e;return null}function Gn(t){return G(t)?t():t}function Zn(t){return Zn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zn(t)}function Jn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function Kn(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Jn(Object(e),!0).forEach(function(n){Qn(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Jn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function Qn(t,n,e){return(n=function(t){var n=function(t){if("object"!=Zn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Zn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Zn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function te(t){return te="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(t)}function ne(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,ee(r.key),r)}}function ee(t){var n=function(t){if("object"!=te(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=te(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==te(n)?n:n+""}function re(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=$n),Kn(Kn(Kn(Kn(Kn(Kn(Kn({},l),a),o),u),c),i),r);var oe=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=re(t,this,ie).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=re(t,this,ie).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=re(t,this,ie).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&ne(n.prototype,null),e&&ne(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function ie(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const ae=oe;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=oe)},626(t,n,e){e.d(n,{inArray:()=>a});var r=e(385),o=e(531),i=(e(245),e(82)),a=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(n,function(n,r){if(n>=e)if(a){if(r===t)return u=!0,!1}else{if((0,o.isObject)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if((0,o.isArray)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u}},531(t,n,e){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}e.d(n,{isArray:()=>c,isArrayLike:()=>l,isDocument:()=>p,isFunction:()=>a,isObject:()=>i,isPlainObject:()=>u,isString:()=>o,isWindow:()=>s}),e(626);var o=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},i=function(t){return!!t&&!c(t)&&"object"===r(t)},a=function(t){return!!t&&"function"==typeof t},u=function(t){return!1!==i(t)&&(void 0===t.constructor||!1!==i(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},l=function(t){return!!t&&!o(t)&&!a(t)&&f(t.length)&&Number.isFinite(t.length)},c=function(t){return Array.isArray(t)},f=function(t){return/^[-+]?\d+$/.test(t+"")},s=function(t){return!!t&&t===t.window},p=function(t){return!!t&&9===t.nodeType}},245(t,n,e){e(385),e(531),e(54)},54(t,n,e){e.d(n,{camelCase:()=>u}),e(531),e(245),e(626);var r=e(385),o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return i(a(t,n),n)},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},u=function(t){if(!t)return"";var n="",e=!1,i=!1,a=!1;t=o(t),t=o(t,"_"),t=o(t,"-");var u=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},l=function(t){return"-"===t||"_"===t||" "===t};return(0,r.map)(t,function(t,r){return i=l(n),a=u(n),n=r,l(r)?null:(i?(r=r.toUpperCase(),e=!0):u(r)?((0===t||a&&!e)&&(r=r.toLowerCase()),e=!1):e=!1,r)}).join("")}},385(t,n,e){e.d(n,{each:()=>l,foreach:()=>c,map:()=>f});var r=e(531);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||a(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=a(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){l=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(l)throw i}}}}function a(t,n){if(t){if("string"==typeof t)return u(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}e(82);var l=function(t,n,e){if((0,r.isPlainObject)(t)){var a=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===n.call(null!=e?e:t[u],u,t[u],t,++a))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===n.call(null!=e?e:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=i(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],y=d[1];if(!1===n.call(null!=e?e:y,v,y,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var h,m=0,g=i(t.values());try{for(g.s();!(h=g.n()).done;){var b=h.value;if(!1===n.call(null!=e?e:b,m,b,t,m))return t;m++}}catch(t){g.e(t)}finally{g.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===n.call(e||w[S],S,w[S],w,S))return t}return t},c=function(t,n,e){return l(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},f=function(t,n,e){var r=[];return l(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r}},82(t,n,e){e.d(n,{equals:()=>i}),e(385);var r=e(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}e(626);var i=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var i=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(o(t)!==o(n)||null===t||null===n)return!1;if((0,r.isArray)(t)||(0,r.isObject)(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if((0,r.isArray)(t)||(0,r.isArray)(n))return!(!(0,r.isArray)(t)||!(0,r.isArray)(n))&&t.length===n.length&&t.every(function(t,r){return i(t,n[r],e)});if((0,r.isObject)(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var a=Object.keys(t),u=Object.keys(n);return a.length===u.length&&a.every(function(r){return i(t[r],n[r],e)})}return!1},a=n[0];return n.slice(1).every(function(t){return i(a,t)})}}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};e.r(r),e.d(r,{default:()=>E});var o=e(531),i=e(54),a=e(385),u=e(626),l=e(153);function c(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=p(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function f(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||p(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,n){if(t){if("string"==typeof t)return d(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var v=new Map,y=["longtap","dbltap"],h=new Set;function m(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var i=t[e];return(0,o.isFunction)(i)?i.bind(t):i}})}function g(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return b(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?b(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var w=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],S={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),(0,o.isArrayLike)(n))return(0,a.map)(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,g(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,g(e))}),t},toggleClass:function(t,n,e){return(0,a.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return(0,a.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!(0,u.inArray)(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return(0,a.foreach)(r,function(e){(0,o.isString)(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return(0,a.foreach)([].concat(r).reverse(),function(e){(0,o.isString)(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||(0,o.isArray)(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=(0,o.isFunction)(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if((0,o.isPlainObject)(n))return(0,a.each)(n,function(n,e){return r.data(t,n,e)}),t;var u=/^data-/.test(n+""),l=(0,i.camelCase)(u?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[l]:null===e?(delete t.dataset[l],t):(t.dataset[l]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if((0,o.isString)(n)){var l=n.startsWith("--")?n:(0,i.camelCase)(n);if(void 0===e){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(n)||c[(0,i.camelCase)(n)]||""}return t.style[(0,i.camelCase)(n)]||""}l.startsWith("--")?t.style.setProperty(l,String(e)):("number"!=typeof e||(0,u.inArray)(l,w)||(e+="px"),t.style[l]=e)}else(0,a.each)(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!(0,o.isString)(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?((0,o.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?((0,o.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=(0,o.isString)(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return(0,a.foreach)(i,function(t){(0,o.isString)(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if((0,o.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,o.isDocument)(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&((0,u.inArray)(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,i){return(0,o.isFunction)(e)&&(i=r,r=e,e=null),(0,a.foreach)(n.split(" "),function(n){var o=s(n.split("."),2),p=o[0],d=o[1],g=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=f(v.get(t)),i=c(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,s=c(o);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===n.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==t)continue;var d=m(n,u);if(p.handler.call(u,d),d._immediateStopped)return;d._propagationStopped&&(l=!0)}}}catch(t){s.e(t)}finally{s.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},b=v.get(t);b||(b=[],v.set(t,b)),(0,u.inArray)(p,y)&&function(t){var n,e,r,o,i,a,u;null!=h&&h.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=l.default.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=l.default.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=l.default.getViewportPosition(t);else{var o=l.default.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),n=Date.now(),e=o}},{passive:!0})),h.add(t))}(p);var w=(0,a.map)(b,function(t,n){return n.event});(0,u.inArray)(p,w)||t.addEventListener(p,g,i),b.push({event:p,handler:r,selector:e,listener:g,namespace:d,options:i})}),t},off:function(t,n,e,r,i){(0,o.isFunction)(e)&&(i=r,r=e,e=null);var u=v.get(t);if(!u)return t;var l=n?n.split(" "):[void 0];return(0,a.foreach)(l,function(n){var o=s(void 0===n?[void 0,void 0]:n.split("."),2),l=o[0],c=o[1],p=void 0!==(l=l||void 0),d=void 0!==c;(0,a.foreach)(f(u).reverse(),function(n){if((!p&&!d||p&&!d&&n.event===l||!p&&d&&n.namespace===c||p&&d&&n.event===l&&n.namespace===c)&&(void 0===l||n.event===l)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===c||n.namespace===c)&&(void 0===i||n.options===i)){var o=u.indexOf(n);-1!==o&&u.splice(o,1),(0,a.map)(u,function(t,n){return n.event===l?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};const E=S;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=S),r})());
|
|
1
|
+
!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.dom=n():t.dom=n()}(this,()=>(()=>{"use strict";var t={153(t,n,e){e.d(n,{default:()=>le});var r={};e.r(r),e.d(r,{debounce:()=>g,equals:()=>p,flatten:()=>y,getScrollbarWidth:()=>b,noop:()=>d,sizeOf:()=>v,strParseFloat:()=>h,throttle:()=>m});var o={};e.r(o),e.d(o,{clone:()=>T,each:()=>C,extend:()=>P,foreach:()=>j,map:()=>x,merge:()=>L,reduce:()=>O});var i={};e.r(i),e.d(i,{dec2hex:()=>R,floorTo:()=>_,hex2dec:()=>B,max:()=>D,min:()=>k,plancher:()=>I,round:()=>M});var a={};e.r(a),e.d(a,{arrayDiff:()=>W,arrayUnique:()=>F,array_diff:()=>z,array_unique:()=>q,inArray:()=>U,indexOf:()=>X,lastIndexOf:()=>Y,range:()=>$});var u={};e.r(u),e.d(u,{isArray:()=>rt,isArrayLike:()=>et,isBool:()=>tt,isBoolean:()=>Q,isDate:()=>ot,isDocument:()=>dt,isDomElement:()=>vt,isEvent:()=>it,isEventSupported:()=>ft,isFloat:()=>lt,isFunction:()=>J,isInt:()=>ut,isInteger:()=>at,isObject:()=>Z,isPlainObject:()=>K,isScalar:()=>ct,isString:()=>G,isTouchDevice:()=>st,isUndefined:()=>nt,isWindow:()=>pt});var l={};e.r(l),e.d(l,{addUrlParam:()=>Ut,br2nl:()=>Et,camelCase:()=>Vt,compareMixAlphaDigits:()=>Qt,decodeHtml:()=>Xt,escapeRegex:()=>$t,f:()=>Gt,format:()=>Ht,formatSize:()=>Kt,hex2rgb:()=>Nt,hextorgb:()=>Rt,hilite:()=>Jt,htmlquotes:()=>Yt,htmlsimplequotes:()=>Ft,insert:()=>Pt,insertTag:()=>xt,lcfirst:()=>jt,ltrim:()=>gt,nl2br:()=>At,noAccent:()=>St,numberFormat:()=>Mt,pad:()=>It,parse_url:()=>Bt,repeat:()=>qt,reverse:()=>Tt,rgb2hex:()=>kt,rgbtohex:()=>Dt,rtrim:()=>bt,stripMultipleSpaces:()=>wt,stripTags:()=>Wt,substringIndex:()=>Ot,thousandSeparator:()=>Lt,toCssClassName:()=>Zt,toPrice:()=>_t,toUrl:()=>zt,trim:()=>mt,ucfirst:()=>Ct});var c={};function f(t){return f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},f(t)}e.r(c),e.d(c,{rand:()=>un,randAlpha:()=>nn,randAlphaCs:()=>en,randAlphaNum:()=>rn,randAlphaNumCs:()=>on,randNum:()=>an,uniqid:()=>ln});var s,p=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var r=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(f(t)!==f(n)||null===t||null===n)return!1;if(rt(t)||Z(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if(rt(t)||rt(n))return!(!rt(t)||!rt(n))&&t.length===n.length&&t.every(function(t,o){return r(t,n[o],e)});if(Z(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var o=Object.keys(t),i=Object.keys(n);return o.length===i.length&&o.every(function(o){return r(t[o],n[o],e)})}return!1},o=n[0];return n.slice(1).every(function(t){return r(o,t)})},d=function(){},v=function(t){return x(t,d).length},y=function(t){return Z(t)||rt(t)?[].concat.apply([],x(t,function(t,n){return y(n)})):t},h=function(t){if(!t)return 0;var n=parseFloat((t+"").replace(/\s/g,"").replace(",","."));return Number.isNaN(n)?0:n},m=function(t,n){var e=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:null,i=null,a=0;return function(){for(var u=this,l=arguments.length,c=new Array(l),f=0;f<l;f++)c[f]=arguments[f];var s=Date.now();a||e||(a=s);var p=n-(s-a);p<=0||p>n?(a=s,t.apply(o||this,c)):!i&&r&&(i=setTimeout(function(){i=null,a=e?Date.now():0,t.apply(o||u,c)},p))}},g=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=null,i=0;return function(){for(var a=this,u=arguments.length,l=new Array(u),c=0;c<u;c++)l[c]=arguments[c];var f=Date.now();e&&(i||(i=f,t.apply(r||this,l))),clearTimeout(o),o=null,o=setTimeout(function(){i=f,clearTimeout(o),o=null,t.apply(r||a,l)},n)}},b=(s=null,function(){if(null===s){var t=document.createElement("div");t.style.visibility="hidden",t.style.width="100px",t.style.msOverflowStyle="scrollbar",document.body.appendChild(t);var n=t.offsetWidth;t.style.overflow="scroll";var e=document.createElement("div");e.style.width="100%",t.appendChild(e);var r=e.offsetWidth;t.remove(),s=n-r}return s});function w(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||E(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function S(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=E(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function E(t,n){if(t){if("string"==typeof t)return A(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?A(t,n):void 0}}function A(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var C=function(t,n,e){if(K(t)){var r=-1;for(var o in t)if(t.hasOwnProperty(o)&&!1===n.call(null!=e?e:t[o],o,t[o],t,++r))return}else{if(G(t)){for(var i=t.split(""),a=0;a<i.length;a++)if(!1===n.call(null!=e?e:i[a],a,i[a],t,a))return t;return t}if(t instanceof Map){var u,l=0,c=S(t.entries());try{for(c.s();!(u=c.n()).done;){var f=w(u.value,2),s=f[0],p=f[1];if(!1===n.call(null!=e?e:p,s,p,t,l++))return t}}catch(t){c.e(t)}finally{c.f()}}else if(t instanceof Set){var d,v=0,y=S(t.values());try{for(y.s();!(d=y.n()).done;){var h=d.value;if(!1===n.call(null!=e?e:h,v,h,t,v))return t;v++}}catch(t){y.e(t)}finally{y.f()}}else if(et(t))for(var m=Array.from(t),g=0;g<m.length;g++)if(!1===n.call(e||m[g],g,m[g],m,g))return t}return t},j=function(t,n,e){return C(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},x=function(t,n,e){var r=[];return C(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r},O=function(t,n,e){var r=!nt(e);if(!v(t)&&!r)throw new Error("Nothing to reduce and no initial value");var o=r?e:x(t,function(t,n,e,r){return 0===r?n:null})[0];return C(t,function(t,e,i,a){(0!==a||r)&&(o=n(o,e,t,a,i))}),o},P=function(){for(var t=!1,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];if(Q(e[0])&&(t=e.shift()),e.length<2||nt(e[0])||null===e[0])return e[0];var o=e[0];return Z(o)||(e[0]=o={}),j(e.slice(1),function(n){if(Z(n))for(var e in n)t&&K(n[e])?o[e]=P(!0,{},o[e],n[e]):o[e]=n[e]}),o},T=function(t){if(!Z(t)&&!rt(t)||pt(t))return t;var n=Z(t)?{}:[];return C(t,function(t,e){Z(e)?n[t]=T(e):n[t]=e}),n},L=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],e=x(t,function(t,n){return n});C(n,function(t,n){e.push(n)});for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];return o.length?L.apply(void 0,[e].concat(o)):e},M=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Math.round(t*Math.pow(10,n))/Math.pow(10,n)},_=function(t,n){if(n<=0)throw new Error("Precision must be greater than 0");return M(Math.floor(t/n)*n,6)},I=_,k=function(t,n){return N(t,n=J(n)?n:function(t,n){return t<n?-1:1})},D=function(t,n){return N(t,n=J(n)?n:function(t,n){return t>n?-1:1})};function N(t,n){var e;return C(t,function(t,r,o,i){e=0===i||n.call(null,e,r)>0?r:e}),e}var R=function(t){return t.toString(16)},B=function(t){t=Tt(t+"").toUpperCase();var n=0;return C(t,function(t,e){var r="0123456789ABCDEF".indexOf(e);if(-1===r)return n=0,!1;n+=r*Math.pow(2,4*t)}),n},U=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=!1;return C(n,function(n,i){if(n>=e)if(r){if(i===t)return o=!0,!1}else{if(Z(t)&&Z(i))return o=p(i,t),!1;if(rt(t)&&Z(i))return o=p(i,t),!1;if(i==t)return o=!0,!1}}),o},X=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=G(t)?x(t,function(t,n){return n}):t;for(e=e<0?Math.ceil(e)+r.length:Math.floor(e);e<r.length;e++)if(e in r&&r[e]===n)return e;return-1},Y=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,r=G(t)?x(t,function(t,n){return n}):t;for(e=e<0?r.length+Math.ceil(e):Math.floor(e);e>=0;e--)if(e in r&&r[e]===n)return e;return-1},F=function(t){return t.filter(function(t,n,e){return n===X(e,t)})},q=F,W=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return t.filter(function(t){return!U(t,n,0,e)})},z=W,$=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;t=M(t),e=M(e);var r=[];if(nt(n)||t<1||0===e||t<Math.abs(e))return r;var o=t*e;if(G(n)){n=n.charCodeAt(0);for(var i=0;e>0?i<o:i>o;i+=e)r.push(String.fromCharCode(n+i))}else if(at(n))for(var a=0;e>0?a<o:a>o;a+=e)r.push(n+a);return r};function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}var H,G=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},Z=function(t){return!!t&&!rt(t)&&"object"===V(t)},J=function(t){return!!t&&"function"==typeof t},K=function(t){return!1!==Z(t)&&(void 0===t.constructor||!1!==Z(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},Q=function(t){return!0===t||!1===t},tt=Q,nt=function(t){return void 0===t},et=function(t){return!!t&&!G(t)&&!J(t)&&ut(t.length)&&Number.isFinite(t.length)},rt=function(t){return Array.isArray(t)},ot=function(t){return!!t&&"[object Date]"===Object.prototype.toString.call(t)},it=function(t){return Z(t)&&(!!t.preventDefault||/\[object Event\]/.test(t.constructor.toString()))},at=function(t){return/^[-+]?\d+$/.test(t+"")},ut=at,lt=function(t){return/^[-+]?\d+(\.\d+)?$/.test(t+"")},ct=function(t){var n=V(t);return null===t||U(n,["string","number","bigint","symbol","boolean"])},ft=(H={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"},function(t){var n=document.createElement(H[t]||"div"),e=(t="on"+t)in n;return n=null,e}),st=function(){return ft("touchstart")},pt=function(t){return!!t&&t===t.window},dt=function(t){return!!t&&9===t.nodeType},vt=function(t){return Z(t)&&1===t.nodeType&&!K(t)};function yt(t){return function(t){if(Array.isArray(t))return ht(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return ht(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?ht(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ht(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return gt(bt(t,n),n)},gt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},bt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},wt=function(t){return t.trim().replace(/ +/g," ")},St=function(t){return t.replace(/[àäâ]/g,"a").replace(/[èéêë]/g,"e").replace(/[îïí]/g,"i").replace(/[öô]/g,"o").replace(/[üù]/g,"u").replace(/ç/g,"c").replace(/ÿ/g,"y").replace(/[ÀÄÂ]/g,"A").replace(/[ÈÉÊË]/g,"E").replace(/[ÎÏÍ]/g,"I").replace(/[ÖÔ]/g,"O").replace(/[ÜÙ]/g,"U").replace(/Ç/g,"C").replace(/Ÿ/g,"Y")},Et=function(t){return t.split(/<br\s*\/*>/).join("\n")},At=function(t){return t.split("\n").join("<br>")},Ct=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},jt=function(t){return t.charAt(0).toLowerCase()+t.slice(1)},xt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o="<".concat(n,">"),i="</".concat(n,">");return["br","hr","img","link","input"].includes(n)&&(o="<".concat(n,"/>"),i=""),t.slice(0,e)+o+t.slice(e,e+r)+i+t.slice(e+r)},Ot=function(t,n,e){var r=(t+"").split(n);return e>0?r.splice(e,r.length-e):e<0&&r.splice(0,r.length+e),r.join(n)},Pt=function(t,n,e){return e>=t.length?t:yt(t).reduce(function(t,r,o){return o>0&&o%e===0?t+n+r:t+r},"")},Tt=function(t){for(var n=[],e=0;e<t.length;e++)n.unshift(t[e]);return n.join("")},Lt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:".",e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(nt(t)||null===t)return t;if(t=(t+"").replace(",","."),Math.abs(t)>=1e3){var r=Math[t>=1e3?"floor":"ceil"](t)+"",o=Tt(Pt(Tt(r),Tt(n),3));return t.indexOf(".")>0?o+e+Ot(t,".",-1):o}return(t+"").replace(".",e)},Mt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,e=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:".";if(t=t?t+"":"0",t=M(parseFloat(t.replace(",",".")),n)+"",0===n)return Lt(t,r,o);var i=t.lastIndexOf(".");if(-1===i)return!0===e&&(t+=o+qt("0",n)),Lt(t,r,o);var a=t.slice(i+1).length;return Lt(n>a?t+"0".repeat(n-a):t.slice(0,i+1+n),r,o)},_t=Mt,It=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:" ",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"left";return nt(n)||t.length>=n||!U(r,["left","right"])?t:"left"===r?e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)+t:t+e.repeat(Math.ceil(n/e.length)).slice(0,n-t.length)},kt=function(t,n,e){return rt(t)?kt.apply(void 0,yt(t)):at(t)&&at(n)&&at(e)?[It(R(parseInt(t)),2,"0").toUpperCase(),It(R(parseInt(n)),2,"0").toUpperCase(),It(R(parseInt(e)),2,"0").toUpperCase()].join(""):""},Dt=kt,Nt=function(t){if(!G(t)||!t.length)return[];(t=t.slice(-6).toUpperCase()).length<6&&(t=x(t.slice(-3),function(t,n){return n+""+n}).join(""));for(var n=0;n<t.length;n++)if(-1==="0123456789ABCDEF".indexOf(t[n]))return[];return x(Pt(t,",",2).split(","),function(t,n){return B(n)})},Rt=Nt,Bt=function(t){for(var n=["source","scheme","authority","userInfo","user","pass","host","port","relative","path","directory","file","query","fragment"],e=/^(?:([^:\/?#]+):)?(?:\/\/()(?:(?:()(?:([^:@]*):?([^:@]*))?@)?([^:\/?#]*)(?::(\d*))?))?()(?:(()(?:(?:[^?#\/]*\/)*)()(?:[^?#]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(t),r={},o=14;o--;)e[o]&&(r[n[o]]=e[o]);return delete r.source,r},Ut=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(K(n))return C(n,function(n,e){t=Ut(t,n,e)}),t;var r,o=Bt(t),i="";(r=t.indexOf("#"))>-1&&(i=t.slice(r),t=t.slice(0,r));var a=encodeURIComponent(n),u=null===e?"":encodeURIComponent(e);if(!o.query)return t+"?"+a+"="+u+i;for(var l=o.query.split("&"),c=!1,f=0;f<l.length;f++)if(l[f].startsWith(a+"=")){l[f]=a+"="+u,c=!0;break}return c||l.push(a+"="+u),o.scheme&&o.host?o.scheme+"://"+o.host+(o.path||"")+"?"+l.join("&")+i:(o.host||"")+o.path+"?"+l.join("&")+i},Xt=function(t){return G(t)?t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'"):""},Yt=function(t){return G(t)?t.replace(/"/g,""").replace(/'/g,"'"):""},Ft=function(t){return G(t)?t.replace(/'/g,"'"):""},qt=function(t,n){return G(t)&<(n)?new Array(Math.floor(n)+1).join(t):""},Wt=function(t,n){if(G(n)){for(var e=new RegExp("<".concat(n,"[^>]*>(.*?)</").concat(n,">|<").concat(n,"[^>]*/>"),"ig");e.test(t);)t=t.replace(e,"$1");return t}return t.replace(/(<([^>]+)>)/gi,"")},zt=function(t){return mt(St(t).toLowerCase().replace(/[^a-z0-9]/g,"-").replace(/-{2,}/g,"-"),"-")},$t=function(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&").replace(/[\n\t]/g," ")},Vt=function(t){if(!t)return"";var n="",e=!1,r=!1,o=!1;t=mt(t),t=mt(t,"_"),t=mt(t,"-");var i=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},a=function(t){return"-"===t||"_"===t||" "===t};return x(t,function(t,u){return r=a(n),o=i(n),n=u,a(u)?null:(r?(u=u.toUpperCase(),e=!0):i(u)?((0===t||o&&!e)&&(u=u.toLowerCase()),e=!1):e=!1,u)}).join("")},Ht=function(t){for(var n=arguments.length,e=new Array(n>1?n-1:0),r=1;r<n;r++)e[r-1]=arguments[r];return e.length&&C(e,function(n,e){if(G(e)){var r={};r[n]=e,e=r}C(e,function(n,e){t=t.replace(new RegExp("\\{"+n+"\\}","gm"),function(t){return nt(e)?t:e})})}),t},Gt=Ht,Zt=function(t){return t.replace(/[^a-z0-9_-]/gi,function(t){var n=t.charCodeAt(0);return 32===n?"-":"__"+("000"+n.toString(16)).slice(-4)})},Jt=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"strong";t=Xt(t);var r,o,i=St(t).toLowerCase().replace(/[[\]]+/g,""),a="";if(rt(n)||(n=[n]),C(n,function(t,n){n.length&&(n=Xt(n),r=St(n).toLowerCase().replace(/[[\]]+/g,""),o=new RegExp($t(r),"g"),a=i.replace(o,"[".concat(r,"]")),i=a)}),!a.length)return t;var u=0,l="",c="end";return C(a,function(n,r){var o=t.charAt(u);"["===r&&"end"===c?(l+="<".concat(e,">"),c="start"):"]"===r&&"start"===c?(l+="</".concat(e,">"),c="end"):(u+=1,l+=o)}),l.replace(/</g,"<").replace(/>/g,">").replace(new RegExp("<".concat(e,">"),"g"),"<".concat(e,">")).replace(new RegExp("</".concat(e,">"),"g"),"</".concat(e,">")).replace(new RegExp("<br>","g"),"<br>")},Kt=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:",",e=-1,r=0;do{t/=1024,e++}while(t>999);at(t)||(r=1);var o=x(["k","M","G","T","P","E"],function(t,n){return n+"B"});return Mt(Math.max(t,0),r,!0,"",n)+" "+o[e]},Qt=function(t,n){if(t===n)return 0;if(at(t)&&at(n))return Math.sign(t-n);for(var e="",r=0;r<Math.min(t.length,n.length)&&t.charAt(r)===n.charAt(r)&&!at(t);r++)e+=t.charAt(r);t=t.slice(e.length),n=n.slice(e.length);var o="",i=null;C(t,function(t,n){if(o)return n>="0"&&n<="9"&&(o+=n,!0);i=t,n>="0"&&n<="9"&&(o+=n)});var a="",u=null;return C(n,function(t,n){if(a)return n>="0"&&n<="9"&&(a+=n,!0);u=t,n>="0"&&n<="9"&&(a+=n)}),o.length&&a.length&&i===u&&t.substring(0,i)===n.substring(0,u)?Math.sign(o-a):t>n?1:-1};j(Object.keys(l),function(t){var n=l[t],e=String.prototype,r=e[t];e[t]=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return r&&e.length===r.length?r.apply(this,e):n.apply(void 0,[this].concat(e))}});var tn,nn=function(t){return un("abcdefghijklmnopqrstuvwxyz".split(""),t)},en=function(t){return un("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},rn=function(t){return un("0123456789abcdefghijklmnopqrstuvwxyz".split(""),t)},on=function(t){return un("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".split(""),t)},an=function(t){return un("0123456789".split(""),t)},un=function(t,n){for(var e="",r=0;r<n;r++)e+=t[Math.floor(1e3*Math.random())%t.length];return e},ln=(tn=0,function(){return tn++,"".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").concat(Date.now().toString(36),"_").concat(tn.toString(36),"_").concat(rn(5))});function cn(t){return cn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cn(t)}function fn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,sn(r.key),r)}}function sn(t){var n=function(t){if("object"!=cn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=cn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==cn(n)?n:n+""}function pn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}var dn=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=pn(t,this,vn).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=pn(t,this,vn).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=pn(t,this,vn).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&fn(n.prototype,null),e&&fn(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function vn(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const yn=dn;function hn(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=bn(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function mn(t){return function(t){if(Array.isArray(t))return wn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||bn(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function gn(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||bn(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function bn(t,n){if(t){if("string"==typeof t)return wn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?wn(t,n):void 0}}function wn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=dn);var Sn=new Map,En=["longtap","dbltap"],An=new Set;function Cn(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var o=t[e];return J(o)?o.bind(t):o}})}function jn(t){return function(t){if(Array.isArray(t))return xn(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return xn(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?xn(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xn(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var On=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],Pn={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),et(n))return x(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,jn(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,jn(e))}),t},toggleClass:function(t,n,e){return j(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return j(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!U(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return j(r,function(e){G(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];return j([].concat(r).reverse(),function(e){G(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||rt(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=J(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if(K(n))return C(n,function(n,e){return r.data(t,n,e)}),t;var o=/^data-/.test(n+""),i=Vt(o?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[i]:null===e?(delete t.dataset[i],t):(t.dataset[i]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if(G(n)){var o=n.startsWith("--")?n:Vt(n);if(void 0===e){if(window.getComputedStyle){var i=window.getComputedStyle(t,null);return i.getPropertyValue(n)||i[Vt(n)]||""}return t.style[Vt(n)]||""}o.startsWith("--")?t.style.setProperty(o,String(e)):("number"!=typeof e||U(o,On)||(e+="px"),t.style[o]=e)}else C(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!G(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?(G(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?(G(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=G(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return j(o,function(t){G(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if(pt(t))return{top:t.scrollY,left:t.scrollX};if(dt(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&(U(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,o){return J(e)&&(o=r,r=e,e=null),j(n.split(" "),function(n){var i=gn(n.split("."),2),a=i[0],u=i[1],l=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=mn(Sn.get(t)),i=hn(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,c=hn(o);try{for(c.s();!(a=c.n()).done;){var f=a.value;if(f.event===n.type){if(f.selector){if(!u.matches(f.selector))continue}else if(u!==t)continue;var s=Cn(n,u);if(f.handler.call(u,s),s._immediateStopped)return;s._propagationStopped&&(l=!0)}}}catch(t){c.e(t)}finally{c.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},c=Sn.get(t);c||(c=[],Sn.set(t,c)),U(a,En)&&function(t){var n,e,r,o,i,a,u;null!=An&&An.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=yn.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=yn.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=yn.getViewportPosition(t);else{var o=yn.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),n=Date.now(),e=o}},{passive:!1})),An.add(t))}(a);var f=x(c,function(t,n){return n.event});U(a,f)||t.addEventListener(a,l,o),c.push({event:a,handler:r,selector:e,listener:l,namespace:u,options:o})}),t},off:function(t,n,e,r,o){J(e)&&(o=r,r=e,e=null);var i=Sn.get(t);if(!i)return t;var a=n?n.split(" "):[void 0];return j(a,function(n){var a=gn(void 0===n?[void 0,void 0]:n.split("."),2),u=a[0],l=a[1],c=void 0!==(u=u||void 0),f=void 0!==l;j(mn(i).reverse(),function(n){if((!c&&!f||c&&!f&&n.event===u||!c&&f&&n.namespace===l||c&&f&&n.event===u&&n.namespace===l)&&(void 0===u||n.event===u)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===l||n.namespace===l)&&(void 0===o||n.options===o)){var a=i.indexOf(n);-1!==a&&i.splice(a,1),x(i,function(t,n){return n.event===u?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};function Tn(t){return Tn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tn(t)}function Ln(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Mn(r.key),r)}}function Mn(t){var n=function(t){if("object"!=Tn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Tn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Tn(n)?n:n+""}function _n(t,n){return t.get(In(t,n))}function In(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=Pn);var kn=new WeakMap,Dn=function(){return t=function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),function(t,n,e){(function(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")})(t,n),n.set(t,e)}(this,kn,{})},n=[{key:"addListener",value:function(t,n,e){var r=this;if(!J(n))throw new Error("Callback must be a function.");if(!G(t))throw new Error("Events name must be a string separated by comma.");for(var o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];var u={callback:n,context:e,args:i};return C(t.split(","),function(t,n){if(!n)return!0;n=n.trim(),r.hasListener(n)?_n(kn,r)[n].push(u):_n(kn,r)[n]=[u]}),this}},{key:"addListenerOnce",value:function(t,n,e){for(var r=this,o=arguments.length,i=new Array(o>3?o-3:0),a=3;a<o;a++)i[a-3]=arguments[a];return C(t.split(","),function(t,o){if(!(o=o.trim()))return!0;var a=function(){for(var t=arguments.length,u=new Array(t),l=0;l<t;l++)u[l]=arguments[l];n.apply(e,[o].concat(i).concat(u.slice(1))),r.removeListener(o,a)};r.addListener(o,a,e)}),this}},{key:"dispatch",value:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),o=1;o<e;o++)r[o-1]=arguments[o];if(!G(t))throw new Error("Events name must be a string seperated by comma.");return C(t.split(","),function(t,e){return!(e=e.trim())||(n.hasListener(e)?void C(_n(kn,n)[e],function(t,n){n.callback.apply(n.context,[e].concat(n.args).concat(r))}):(console.warn("No listeners found for event: ".concat(e)),!0))}),this}},{key:"hasListener",value:function(t,n,e){return nt(n)?!nt(_n(kn,this)[t]):!!x(_n(kn,this)[t],function(t,r){return r.callback===n&&r.context===e||null}).length}},{key:"removeListener",value:function(t,n,e){var r=this;return this.hasListener(t,n,e)&&(nt(n)?_n(kn,this)[t].splice(0):C(_n(kn,this)[t],function(n){return _n(kn,r)[t].splice(n,1),delete _n(kn,r)[t],!1})),this}},{key:"getListeners",value:function(t){return t?_n(kn,this)[t]||[]:_n(kn,this)}},{key:"reset",value:function(){var t,n;n={},(t=kn).set(In(t,this),n)}}],n&&Ln(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}(),Nn=new Dn;function Rn(t){return Rn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rn(t)}function Bn(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Un(r.key),r)}}function Un(t){var n=function(t){if("object"!=Rn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Rn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rn(n)?n:n+""}function Xn(t,n,e){Yn(t,n),n.set(t,e)}function Yn(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Fn(t,n){return t.get(Wn(t,n))}function qn(t,n,e){return t.set(Wn(t,n),e),e}function Wn(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.eventDispatcher=Nn);var zn=new WeakMap,$n=new WeakMap,Vn=new WeakSet,Hn=function(){return t=function t(n,e){var r;!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t),Yn(this,r=Vn),r.add(this),Xn(this,zn,void 0),Xn(this,$n,void 0),Wn(Vn,this,Gn).call(this,n),this.setLang(e)},n=[{key:"translate",value:function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"core";if(n=void 0===n?this.getLang():n,void 0!==Fn($n,this)[e]&&void 0!==Fn($n,this)[e][n]&&void 0!==Fn($n,this)[e][n][t]){var r=Fn($n,this)[e][n][t];return Wn(Vn,this,Jn).call(this,r)}return"en"!==n?this.translate(t,"en",e):t}},{key:"translateFrom",value:function(t,n,e){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"core";if(!t)return t;var i=null===(r=Fn($n,this))||void 0===r?void 0:r[o];if(!i)return t;var a=null==i?void 0:i[n],u=null==i?void 0:i[e];if(!a||!u)return t;var l=Wn(Vn,this,Zn).call(this,a,t);if(!l)return t;var c=u[l],f=Wn(Vn,this,Jn).call(this,c);return null!=f?f:t}},{key:"_",value:function(){return this.translate.apply(this,arguments)}},{key:"getLang",value:function(){return Fn(zn,this)}},{key:"setLang",value:function(t){t||("undefined"!=typeof navigator&&navigator.language?t=navigator.language:"undefined"!=typeof process&&process.env&&(t=process.env.LANG||process.env.LC_ALL||process.env.LC_MESSAGES)),qn(zn,this,(t||"en").trim().toLowerCase().slice(0,2))}}],n&&Bn(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n}();function Gn(t){var n={},e={};C(t,function(t,r){C(r,function(r,o){K(o)?(void 0===n[t]&&(n[t]={}),n[t][r]=o):(void 0===e[t]&&(e[t]={}),e[t][r]=o)})}),qn($n,this,P(!0,n,{core:P({},n.core||{},e)}))}function Zn(t,n){for(var e in t)if(Wn(Vn,this,Jn).call(this,t[e])===n)return e;return null}function Jn(t){return J(t)?t():t}function Kn(t){return Kn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kn(t)}function Qn(t,n){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);n&&(r=r.filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable})),e.push.apply(e,r)}return e}function te(t){for(var n=1;n<arguments.length;n++){var e=null!=arguments[n]?arguments[n]:{};n%2?Qn(Object(e),!0).forEach(function(n){ne(t,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):Qn(Object(e)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(e,n))})}return t}function ne(t,n,e){return(n=function(t){var n=function(t){if("object"!=Kn(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=Kn(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Kn(n)?n:n+""}(n))in t?Object.defineProperty(t,n,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[n]=e,t}function ee(t){return ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ee(t)}function re(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,oe(r.key),r)}}function oe(t){var n=function(t){if("object"!=ee(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var e=n.call(t,"string");if("object"!=ee(e))return e;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==ee(n)?n:n+""}function ie(t,n,e){if("function"==typeof t?t===n:t.has(n))return arguments.length<3?n:e;throw new TypeError("Private element is not present on this object")}"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.Translator=Hn),te(te(te(te(te(te(te({},l),a),o),u),c),i),r);var ae=function(){function t(){!function(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this,t)}return n=t,e=[{key:"getPosition",value:function(n,e){n=ie(t,this,ue).call(this,n);var r={left:0,top:0};if(e instanceof Element){var o=e.getBoundingClientRect();r={left:window.scrollX+o.left,top:window.scrollY+o.top}}return{x:n.pageX-r.left,y:n.pageY-r.top}}},{key:"getViewportPosition",value:function(n){return{x:(n=ie(t,this,ue).call(this,n)).clientX,y:n.clientY}}},{key:"getElement",value:function(n){return n=ie(t,this,ue).call(this,n),window.document.elementFromPoint(n.clientX,n.clientY)}}],null&&re(n.prototype,null),e&&re(n,e),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,e}();function ue(t){var n,e,r,o,i,a,u,l=null!==(n=null!==(e=null==t||null===(r=t.detail)||void 0===r?void 0:r.originalEvent)&&void 0!==e?e:null==t?void 0:t.originalEvent)&&void 0!==n?n:t;if(!l)return null;var c=null!==(o=null!==(i=null===(a=l.changedTouches)||void 0===a?void 0:a[0])&&void 0!==i?i:null===(u=l.touches)||void 0===u?void 0:u[0])&&void 0!==o?o:l,f="number"==typeof c.clientX?c.clientX:0,s="number"==typeof c.clientY?c.clientY:0;return{clientX:f,clientY:s,pageX:"number"==typeof c.pageX?c.pageX:f+("undefined"!=typeof window?window.scrollX:0),pageY:"number"==typeof c.pageY?c.pageY:s+("undefined"!=typeof window?window.scrollY:0)}}const le=ae;"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.mouse=ae)},626(t,n,e){e.d(n,{inArray:()=>a});var r=e(385),o=e(531),i=(e(245),e(82)),a=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=!1;return(0,r.each)(n,function(n,r){if(n>=e)if(a){if(r===t)return u=!0,!1}else{if((0,o.isObject)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if((0,o.isArray)(t)&&(0,o.isObject)(r))return u=(0,i.equals)(r,t),!1;if(r==t)return u=!0,!1}}),u}},531(t,n,e){function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}e.d(n,{isArray:()=>c,isArrayLike:()=>l,isDocument:()=>p,isFunction:()=>a,isObject:()=>i,isPlainObject:()=>u,isString:()=>o,isWindow:()=>s}),e(626);var o=function(t){return"string"==typeof t||"[object String]"===Object.prototype.toString.call(t)},i=function(t){return!!t&&!c(t)&&"object"===r(t)},a=function(t){return!!t&&"function"==typeof t},u=function(t){return!1!==i(t)&&(void 0===t.constructor||!1!==i(t.constructor.prototype)&&!1!==t.constructor.prototype.hasOwnProperty("isPrototypeOf"))},l=function(t){return!!t&&!o(t)&&!a(t)&&f(t.length)&&Number.isFinite(t.length)},c=function(t){return Array.isArray(t)},f=function(t){return/^[-+]?\d+$/.test(t+"")},s=function(t){return!!t&&t===t.window},p=function(t){return!!t&&9===t.nodeType}},245(t,n,e){e(385),e(531),e(54)},54(t,n,e){e.d(n,{camelCase:()=>u}),e(531),e(245),e(626);var r=e(385),o=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return i(a(t,n),n)},i=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("^".concat(n,"+"),"g"),"")},a=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"\\s";return t.replace(new RegExp("".concat(n,"+$"),"g"),"")},u=function(t){if(!t)return"";var n="",e=!1,i=!1,a=!1;t=o(t),t=o(t,"_"),t=o(t,"-");var u=function(t){return t===t.toUpperCase()&&t!==t.toLowerCase()},l=function(t){return"-"===t||"_"===t||" "===t};return(0,r.map)(t,function(t,r){return i=l(n),a=u(n),n=r,l(r)?null:(i?(r=r.toUpperCase(),e=!0):u(r)?((0===t||a&&!e)&&(r=r.toLowerCase()),e=!1):e=!1,r)}).join("")}},385(t,n,e){e.d(n,{each:()=>l,foreach:()=>c,map:()=>f});var r=e(531);function o(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||a(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function i(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=a(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return u=t.done,t},e:function(t){l=!0,i=t},f:function(){try{u||null==e.return||e.return()}finally{if(l)throw i}}}}function a(t,n){if(t){if("string"==typeof t)return u(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?u(t,n):void 0}}function u(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}e(82);var l=function(t,n,e){if((0,r.isPlainObject)(t)){var a=-1;for(var u in t)if(t.hasOwnProperty(u)&&!1===n.call(null!=e?e:t[u],u,t[u],t,++a))return}else{if((0,r.isString)(t)){for(var l=t.split(""),c=0;c<l.length;c++)if(!1===n.call(null!=e?e:l[c],c,l[c],t,c))return t;return t}if(t instanceof Map){var f,s=0,p=i(t.entries());try{for(p.s();!(f=p.n()).done;){var d=o(f.value,2),v=d[0],y=d[1];if(!1===n.call(null!=e?e:y,v,y,t,s++))return t}}catch(t){p.e(t)}finally{p.f()}}else if(t instanceof Set){var h,m=0,g=i(t.values());try{for(g.s();!(h=g.n()).done;){var b=h.value;if(!1===n.call(null!=e?e:b,m,b,t,m))return t;m++}}catch(t){g.e(t)}finally{g.f()}}else if((0,r.isArrayLike)(t))for(var w=Array.from(t),S=0;S<w.length;S++)if(!1===n.call(e||w[S],S,w[S],w,S))return t}return t},c=function(t,n,e){return l(t,function(t,r,o,i){return n.apply(e||r,[r,t,o,i])},e)},f=function(t,n,e){var r=[];return l(t,function(t,o,i,a){var u=n.call(e,t,o,i,a);null!==u&&r.push(u)}),r}},82(t,n,e){e.d(n,{equals:()=>i}),e(385);var r=e(531);function o(t){return o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(t)}e(626);var i=function(){for(var t=arguments.length,n=new Array(t),e=0;e<t;e++)n[e]=arguments[e];if(n.length<2)return!1;var i=function(t,n){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:new WeakMap;if(t===n)return!0;if(Number.isNaN(t)&&Number.isNaN(n))return!0;if(o(t)!==o(n)||null===t||null===n)return!1;if((0,r.isArray)(t)||(0,r.isObject)(t)){if(e.has(t))return e.get(t)===n;e.set(t,n)}if((0,r.isArray)(t)||(0,r.isArray)(n))return!(!(0,r.isArray)(t)||!(0,r.isArray)(n))&&t.length===n.length&&t.every(function(t,r){return i(t,n[r],e)});if((0,r.isObject)(t)){if(Object.getPrototypeOf(t)!==Object.getPrototypeOf(n))return!1;if(t instanceof Date)return t.getTime()===n.getTime();if(t instanceof RegExp)return t.toString()===n.toString();var a=Object.keys(t),u=Object.keys(n);return a.length===u.length&&a.every(function(r){return i(t[r],n[r],e)})}return!1},a=n[0];return n.slice(1).every(function(t){return i(a,t)})}}},n={};function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r](i,i.exports,e),i.exports}e.d=(t,n)=>{for(var r in n)e.o(n,r)&&!e.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:n[r]})},e.o=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),e.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var r={};e.r(r),e.d(r,{default:()=>E});var o=e(531),i=e(54),a=e(385),u=e(626),l=e(153);function c(t,n){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=p(t))||n&&t&&"number"==typeof t.length){e&&(t=e);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,u=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return a=t.done,t},e:function(t){u=!0,i=t},f:function(){try{a||null==e.return||e.return()}finally{if(u)throw i}}}}function f(t){return function(t){if(Array.isArray(t))return d(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||p(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,n){var e=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=e){var r,o,i,a,u=[],l=!0,c=!1;try{if(i=(e=e.call(t)).next,0===n){if(Object(e)!==e)return;l=!1}else for(;!(l=(r=i.call(e)).done)&&(u.push(r.value),u.length!==n);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=e.return&&(a=e.return(),Object(a)!==a))return}finally{if(c)throw o}}return u}}(t,n)||p(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function p(t,n){if(t){if("string"==typeof t)return d(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?d(t,n):void 0}}function d(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var v=new Map,y=["longtap","dbltap"],h=new Set;function m(t,n){var e={_immediateStopped:!1,_propagationStopped:!1,originalEvent:t,currentTarget:n,stopPropagation:function(){e._propagationStopped=!0,t.stopPropagation.apply(t,arguments)},stopImmediatePropagation:function(){e._immediateStopped=!0,e._propagationStopped=!0,t.stopImmediatePropagation.apply(t,arguments)}};return new Proxy(e,{get:function(n,e,r){if(e in n)return Reflect.get(n,e,r);var i=t[e];return(0,o.isFunction)(i)?i.bind(t):i}})}function g(t){return function(t){if(Array.isArray(t))return b(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,n){if(t){if("string"==typeof t)return b(t,n);var e={}.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?b(t,n):void 0}}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function b(t,n){(null==n||n>t.length)&&(n=t.length);for(var e=0,r=Array(n);e<n;e++)r[e]=t[e];return r}var w=["animationIterationCount","aspectRatio","borderImageSlice","columnCount","flexGrow","flexShrink","fontWeight","gridArea","gridColumn","gridColumnEnd","gridColumnStart","gridRow","gridRowEnd","gridRowStart","lineHeight","opacity","order","orphans","scale","widows","zIndex","zoom","fillOpacity","floodOpacity","stopOpacity","strokeMiterlimit","strokeOpacity"],S={children:function(t,n){return n?this.find(t,":scope > ".concat(n)):Array.from(t.children)},child:function(t,n){return this.first(this.children(t,n))},find:function(t,n){if(void 0===n&&(n=t,t=document),n instanceof Element&&(n=[n]),(0,o.isArrayLike)(n))return(0,a.map)(Array.from(n),function(n,e){return e instanceof Element&&(t===e||t.contains(e))?e:null});try{return Array.from(t.querySelectorAll(n))}catch(t){return[]}},findOne:function(t,n){var e;return null!==(e=this.find(t,n)[0])&&void 0!==e?e:null},findByData:function(t,n,e){if(void 0===e)return this.find(t,"[data-".concat(n,"]"));var r=CSS.escape(e+"");return this.find(t,"[data-".concat(n,'="').concat(r,'"]'))},findOneByData:function(t,n,e){var r;return null!==(r=this.findByData(t,n,e)[0])&&void 0!==r?r:null},addClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).add.apply(n,g(e))}),t},removeClass:function(t,n){if(!n)return t;var e=n.split(" ").map(function(t){return t.trim()}).filter(Boolean);return(t instanceof Element?[t]:Array.from(t)).forEach(function(t){var n;t instanceof Element&&(n=t.classList).remove.apply(n,g(e))}),t},toggleClass:function(t,n,e){return(0,a.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){return t.classList.toggle(n,e)}),t},hasClass:function(t,n){if(!n)return!1;var e=!0;return(0,a.foreach)(n.split(" ").map(function(t){return t.trim()}).filter(Boolean),function(n){if(!(0,u.inArray)(n,Array.from(t.classList)))return e=!1,!1}),e},append:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return(0,a.foreach)(r,function(e){(0,o.isString)(e)&&(e=n.create(e)),e&&t.append(e)}),t},prepend:function(t){for(var n=this,e=arguments.length,r=new Array(e>1?e-1:0),i=1;i<e;i++)r[i-1]=arguments[i];return(0,a.foreach)([].concat(r).reverse(),function(e){(0,o.isString)(e)&&(e=n.create(e)),e&&t.prepend(e)}),t},remove:function(){for(var t=this,n=arguments.length,e=new Array(n),r=0;r<n;r++)e[r]=arguments[r];e.forEach(function(n){n instanceof Element?n.remove():n instanceof NodeList||(0,o.isArray)(n)?Array.from(n).forEach(function(t){return t.remove()}):t.find(n).forEach(function(t){return t.remove()})})},closest:function(t,n){if(n instanceof Element){if(t===n)return t;for(var e=t.parentElement;e;){if(e===n)return e;e=e.parentElement}return null}return void 0===n?t:t.closest(n)},next:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.nextElementSibling;return n?e&&e.matches(n)?e:null:e},prev:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,e=t.previousElementSibling;return n?e&&e.matches(n)?e:null:e},nextAll:function(t,n){for(var e=[],r=t.nextElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.nextElementSibling;return e},prevAll:function(t,n){for(var e=[],r=t.previousElementSibling;r;)(void 0===n||r.matches(n))&&e.push(r),r=r.previousElementSibling;return e},index:function(t,n){return this.prevAll(t,n).length},nextUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.nextElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.nextElementSibling;return r},prevUntil:function(t,n){var e=!1,r=[];n instanceof Element&&(e=!0);for(var o=t.previousElementSibling;o&&!(e?o===n:o.matches(n));)r.push(o),o=o.previousElementSibling;return r},wrap:function(t,n){return n.isConnected||t.parentNode.insertBefore(n,t),this.append(n,t),t},attr:function(t,n,e){return void 0===e?t.getAttribute(n):(null===e?t.removeAttribute(n):t.setAttribute(n,e),t)},prop:function(t,n,e){return void 0===e?t[n]:(t[n]=e,t)},html:function(t,n){return void 0===n?t.innerHTML:(t.innerHTML=n,t)},text:function(t,n){return void 0===n?t.innerText:(t.innerText=n,t)},hide:function(t){if(void 0===this.data(t,"__display__")){var n;n=(0,o.isFunction)(window.getComputedStyle)?window.getComputedStyle(t).display:t.style.display,this.data(t,"__display__",n)}return t.style.display="none",t},show:function(t){var n=this.data(t,"__display__");return void 0===n?t.style.removeProperty("display"):(t.style.display=n,this.removeData(t,"__display__")),t},toggle:function(t){return"none"===this.css(t,"display")?this.show(t):this.hide(t)},data:function(t,n,e){var r=this;if(void 0===n&&void 0===e)return t.dataset;if((0,o.isPlainObject)(n))return(0,a.each)(n,function(n,e){return r.data(t,n,e)}),t;var u=/^data-/.test(n+""),l=(0,i.camelCase)(u?(n+"").replace(/^data-/,""):n+"");return void 0===e?t.dataset[l]:null===e?(delete t.dataset[l],t):(t.dataset[l]=e,t)},removeData:function(t,n){return this.data(t,n,null)},css:function(t,n,e){var r=this;if((0,o.isString)(n)){var l=n.startsWith("--")?n:(0,i.camelCase)(n);if(void 0===e){if(window.getComputedStyle){var c=window.getComputedStyle(t,null);return c.getPropertyValue(n)||c[(0,i.camelCase)(n)]||""}return t.style[(0,i.camelCase)(n)]||""}l.startsWith("--")?t.style.setProperty(l,String(e)):("number"!=typeof e||(0,u.inArray)(l,w)||(e+="px"),t.style[l]=e)}else(0,a.each)(n,function(n,e){r.css(t,n,e)});return t},closestFind:function(t,n,e){var r=this.closest(t,n);return r?this.find(r,e):[]},closestFindOne:function(t,n,e){var r=this.closest(t,n);return r?this.findOne(r,e):null},first:function(t){var n;return t instanceof Element?t:null!==(n=Array.from(t)[0])&&void 0!==n?n:null},last:function(t){var n;if(t instanceof Element)return t;var e=Array.from(t);return null!==(n=e[e.length-1])&&void 0!==n?n:null},create:function(t){if(!(0,o.isString)(t))return null;if(/^[A-Za-z][A-Za-z0-9-]*$/.test(t))return document.createElement(t);var n=document.createElement("template");n.innerHTML=t.trim();var e=n.content;return 1===e.childElementCount&&1===e.children.length?e.firstElementChild:e.cloneNode(!0)},eq:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return t=Array.from(t),Math.abs(n)>=t.length?null:(n<0&&(n=t.length+n),t[n])},after:function(t,n){return t.parentElement?((0,o.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t.nextElementSibling)):null},before:function(t,n){return t.parentElement?((0,o.isString)(n)&&(n=this.create(n)),t.parentElement.insertBefore(n,t)):null},empty:function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t},not:function(t,n){var e=t instanceof Element?[t]:Array.from(t),r=(0,o.isString)(n);return e.filter(function(t){return r?!t.matches(n):t!==n})},collide:function(t,n){var e=t.getBoundingClientRect(),r=n.getBoundingClientRect();return e.x<r.x+r.width&&e.x+e.width>r.x&&e.y<r.y+r.height&&e.y+e.height>r.y},matches:function(t,n){return!!t&&(n instanceof Element?n===t:t.matches(n))},replaceChild:function(t,n,e){return t.replaceChild(n,e)},replaceChildren:function(t){for(var n=this,e=[],r=arguments.length,i=new Array(r>1?r-1:0),u=1;u<r;u++)i[u-1]=arguments[u];return(0,a.foreach)(i,function(t){(0,o.isString)(t)&&(t=n.create(t)),e.push(t)}),t.replaceChildren.apply(t,e),t},offset:function(t){if((0,o.isWindow)(t))return{top:t.scrollY,left:t.scrollX};if((0,o.isDocument)(t))return{top:t.documentElement.scrollTop,left:t.documentElement.scrollLeft};var n=t.getBoundingClientRect(),e=this.offset(window);return{top:n.top+e.top,left:n.left+e.left}},isEditable:function(t){var n;return 3===(null===(n=t)||void 0===n?void 0:n.nodeType)&&(t=t.parentElement),t instanceof HTMLElement&&((0,u.inArray)(t.tagName,["INPUT","TEXTAREA","SELECT"])||t.isContentEditable||!!this.closest(t,'[contenteditable="true"]'))},isInDOM:function(t){return t instanceof Node&&t.getRootNode({composed:!0})===document},on:function(t,n,e,r,i){return(0,o.isFunction)(e)&&(i=r,r=e,e=null),(0,a.foreach)(n.split(" "),function(n){var o=s(n.split("."),2),p=o[0],d=o[1],g=function(n){if(!n.cancelBubble){var e,r=function(t,n){for(var e=[],r=3===t.nodeType?t.parentNode:t;r&&(e.push(r),r!==n);)r=r.parentNode;return e}(n.target,t),o=f(v.get(t)),i=c(r);try{for(i.s();!(e=i.n()).done;){var a,u=e.value,l=!1,s=c(o);try{for(s.s();!(a=s.n()).done;){var p=a.value;if(p.event===n.type){if(p.selector){if(!u.matches(p.selector))continue}else if(u!==t)continue;var d=m(n,u);if(p.handler.call(u,d),d._immediateStopped)return;d._propagationStopped&&(l=!0)}}}catch(t){s.e(t)}finally{s.f()}if(l)return}}catch(t){i.e(t)}finally{i.f()}}},b=v.get(t);b||(b=[],v.set(t,b)),(0,u.inArray)(p,y)&&function(t){var n,e,r,o,i,a,u;null!=h&&h.has(t)||("longtap"===t&&(r=null,o=0,i=0,a=null,u=function(){clearTimeout(r),r=null},document.addEventListener("touchstart",function(t){a=t.target;var n=l.default.getViewportPosition(t);o=n.x,i=n.y,r=setTimeout(function(){a.dispatchEvent(new CustomEvent("longtap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}})),r=null},800)},{passive:!0}),document.addEventListener("touchmove",function(t){var n=l.default.getViewportPosition(t);Math.hypot(n.x-o,n.y-i)>40&&(clearTimeout(r),r=null)},{passive:!0}),document.addEventListener("touchend",u),document.addEventListener("touchcancel",u)),"dbltap"===t&&(n=0,e=null,document.addEventListener("touchstart",function(t){var r=t.target;if(Date.now()-n>300)n=Date.now(),e=l.default.getViewportPosition(t);else{var o=l.default.getViewportPosition(t);Math.hypot(o.x-e.x,o.y-e.y)<=40&&(t.preventDefault(),r.dispatchEvent(new CustomEvent("dbltap",{bubbles:!0,cancelable:!0,detail:{originalEvent:t}}))),n=Date.now(),e=o}},{passive:!1})),h.add(t))}(p);var w=(0,a.map)(b,function(t,n){return n.event});(0,u.inArray)(p,w)||t.addEventListener(p,g,i),b.push({event:p,handler:r,selector:e,listener:g,namespace:d,options:i})}),t},off:function(t,n,e,r,i){(0,o.isFunction)(e)&&(i=r,r=e,e=null);var u=v.get(t);if(!u)return t;var l=n?n.split(" "):[void 0];return(0,a.foreach)(l,function(n){var o=s(void 0===n?[void 0,void 0]:n.split("."),2),l=o[0],c=o[1],p=void 0!==(l=l||void 0),d=void 0!==c;(0,a.foreach)(f(u).reverse(),function(n){if((!p&&!d||p&&!d&&n.event===l||!p&&d&&n.namespace===c||p&&d&&n.event===l&&n.namespace===c)&&(void 0===l||n.event===l)&&(void 0===r||n.handler===r)&&(void 0===e||n.selector===e)&&(void 0===c||n.namespace===c)&&(void 0===i||n.options===i)){var o=u.indexOf(n);-1!==o&&u.splice(o,1),(0,a.map)(u,function(t,n){return n.event===l?n:null})[0]||t.removeEventListener(n.event,n.listener,n.options)}})}),t}};const E=S;return"undefined"!=typeof window&&(window.webf=window.webf||{},window.webf.dom=S),r})());
|