Comparing version 1.6.1 to 1.6.2
# Change Log | ||
## Dom7 v1.6.2 - Released on May 12, 2017 | ||
* Proxified events. Now all events are being added/removed using proxy functions. This allows to pass additional arguments to events handlers and detach all assigned event listener by calling e.g. `$$(document).off('someEvent');` | ||
## Dom7 v1.6.1 - Released on April 19, 2017 | ||
@@ -4,0 +7,0 @@ * New `Dom7.extend(obj1, obj2, ...)` method |
191
dist/dom7.js
/** | ||
* Dom7 1.6.1 | ||
* Dom7 1.6.2 | ||
* Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API | ||
@@ -12,3 +12,3 @@ * http://framework7.io/docs/dom.html | ||
* | ||
* Released on: April 19, 2017 | ||
* Released on: May 11, 2017 | ||
*/ | ||
@@ -21,3 +21,3 @@ (function (global, factory) { | ||
var Dom7$1 = function Dom7(arr) { | ||
var Dom7 = function Dom7(arr) { | ||
var self = this; | ||
@@ -37,3 +37,3 @@ // Create array-like object | ||
if (selector && !context) { | ||
if (selector instanceof Dom7$1) { | ||
if (selector instanceof Dom7) { | ||
return selector; | ||
@@ -82,3 +82,3 @@ } | ||
} | ||
return new Dom7$1(arr); | ||
return new Dom7(arr); | ||
} | ||
@@ -967,27 +967,50 @@ | ||
// Events | ||
on: function on(eventName, targetSelector, listener, capture) { | ||
var arguments$1 = arguments; | ||
on: function on() { | ||
var this$1 = this; | ||
var args = [], len = arguments.length; | ||
while ( len-- ) args[ len ] = arguments[ len ]; | ||
var eventType = args[0]; | ||
var targetSelector; | ||
var listener; | ||
var capture = false; | ||
if (typeof args[1] === 'function') { | ||
targetSelector = false; | ||
listener = args[1]; | ||
capture = args[2]; | ||
} else { | ||
targetSelector = args[1]; | ||
listener = args[2]; | ||
capture = args[3]; | ||
} | ||
function handleLiveEvent(e) { | ||
var target = e.target; | ||
if ($(target).is(targetSelector)) { listener.call(target, e); } | ||
var eventData = e.target.dom7EventData || []; | ||
eventData.unshift(e); | ||
if ($(target).is(targetSelector)) { listener.apply(target, eventData); } | ||
else { | ||
var parents = $(target).parents(); | ||
for (var k = 0; k < parents.length; k += 1) { | ||
if ($(parents[k]).is(targetSelector)) { listener.call(parents[k], e); } | ||
if ($(parents[k]).is(targetSelector)) { listener.apply(parents[k], eventData); } | ||
} | ||
} | ||
} | ||
var events = eventName.split(' '); | ||
function handleEvent(e) { | ||
var eventData = e.target.dom7EventData || []; | ||
eventData.unshift(e); | ||
listener.apply(this, eventData); | ||
} | ||
var events = eventType.split(' '); | ||
var j; | ||
for (var i = 0; i < this.length; i += 1) { | ||
if (typeof targetSelector === 'function' || targetSelector === false) { | ||
// Usual events | ||
if (typeof targetSelector === 'function') { | ||
listener = arguments$1[1]; | ||
capture = arguments$1[2] || false; | ||
} | ||
var el = this$1[i]; | ||
if (!targetSelector) { | ||
for (j = 0; j < events.length; j += 1) { | ||
this$1[i].addEventListener(events[j], listener, capture); | ||
if (!el.dom7Listeners) { el.dom7Listeners = []; } | ||
el.dom7Listeners.push({ | ||
type: eventType, | ||
listener: listener, | ||
proxyListener: handleEvent, | ||
}); | ||
el.addEventListener(events[j], handleEvent, capture); | ||
} | ||
@@ -997,29 +1020,56 @@ } else { | ||
for (j = 0; j < events.length; j += 1) { | ||
if (!this$1[i].dom7LiveListeners) { this$1[i].dom7LiveListeners = []; } | ||
this$1[i].dom7LiveListeners.push({ listener: listener, liveListener: handleLiveEvent }); | ||
this$1[i].addEventListener(events[j], handleLiveEvent, capture); | ||
if (!el.dom7LiveListeners) { el.dom7LiveListeners = []; } | ||
el.dom7LiveListeners.push({ | ||
type: eventType, | ||
listener: listener, | ||
proxyListener: handleLiveEvent, | ||
}); | ||
el.addEventListener(events[j], handleLiveEvent, capture); | ||
} | ||
} | ||
} | ||
return this; | ||
}, | ||
off: function off(eventName, targetSelector, listener, capture) { | ||
var arguments$1 = arguments; | ||
off: function off() { | ||
var this$1 = this; | ||
var args = [], len = arguments.length; | ||
while ( len-- ) args[ len ] = arguments[ len ]; | ||
var events = eventName.split(' '); | ||
var eventType = args[0]; | ||
var targetSelector; | ||
var listener; | ||
var capture = false; | ||
if (typeof args[1] === 'function') { | ||
targetSelector = false; | ||
listener = args[1]; | ||
capture = args[2]; | ||
} else { | ||
targetSelector = args[1]; | ||
listener = args[2]; | ||
capture = args[3]; | ||
} | ||
var events = eventType.split(' '); | ||
for (var i = 0; i < events.length; i += 1) { | ||
for (var j = 0; j < this.length; j += 1) { | ||
if (typeof targetSelector === 'function' || targetSelector === false) { | ||
// Usual events | ||
if (typeof targetSelector === 'function') { | ||
listener = arguments$1[1]; | ||
capture = arguments$1[2] || false; | ||
var el = this$1[j]; | ||
if (!targetSelector) { | ||
if (el.dom7Listeners) { | ||
for (var k = 0; k < el.dom7Listeners.length; k += 1) { | ||
if (listener) { | ||
if (el.dom7Listeners[k].listener === listener) { | ||
el.removeEventListener(events[i], el.dom7Listeners[k].proxyListener, capture); | ||
} | ||
} else if (el.dom7Listeners[k].type === events[i]) { | ||
el.removeEventListener(events[i], el.dom7Listeners[k].proxyListener, capture); | ||
} | ||
} | ||
} | ||
this$1[j].removeEventListener(events[i], listener, capture); | ||
} else if (this$1[j].dom7LiveListeners) { | ||
for (var k = 0; k < this[j].dom7LiveListeners.length; k += 1) { | ||
if (this$1[j].dom7LiveListeners[k].listener === listener) { | ||
this$1[j].removeEventListener(events[i], this$1[j].dom7LiveListeners[k].liveListener, capture); | ||
} else if (el.dom7LiveListeners) { | ||
for (var k$1 = 0; k$1 < el.dom7LiveListeners.length; k$1 += 1) { | ||
if (listener) { | ||
if (el.dom7LiveListeners[k$1].listener === listener) { | ||
el.removeEventListener(events[i], el.dom7LiveListeners[k$1].proxyListener, capture); | ||
} | ||
} else if (el.dom7Listeners[k$1].type === events[i]) { | ||
el.removeEventListener(events[i], el.dom7LiveListeners[k$1].proxyListener, capture); | ||
} | ||
@@ -1040,3 +1090,4 @@ } | ||
function proxy(e) { | ||
listener.call(e.target, e); | ||
var eventData = e.target.dom7EventData || []; | ||
listener.apply(this, eventData); | ||
dom.off(eventName, targetSelector, proxy, capture); | ||
@@ -1046,6 +1097,9 @@ } | ||
}, | ||
trigger: function trigger(eventName, eventData) { | ||
trigger: function trigger() { | ||
var this$1 = this; | ||
var args = [], len = arguments.length; | ||
while ( len-- ) args[ len ] = arguments[ len ]; | ||
var events = eventName.split(' '); | ||
var events = args[0].split(' '); | ||
var eventData = args[1]; | ||
for (var i = 0; i < events.length; i += 1) { | ||
@@ -1061,3 +1115,6 @@ for (var j = 0; j < this.length; j += 1) { | ||
} | ||
this$1[j].dom7EventData = args.filter(function (data, dataIndex) { return dataIndex > 0; }); | ||
this$1[j].dispatchEvent(evt); | ||
this$1[j].dom7EventData = []; | ||
delete this$1[j].dom7EventData; | ||
} | ||
@@ -1231,3 +1288,3 @@ } | ||
} | ||
return new Dom7$1(matchedItems); | ||
return new Dom7(matchedItems); | ||
}, | ||
@@ -1279,3 +1336,3 @@ html: function html(html$1) { | ||
if (selector.nodeType || selector instanceof Dom7$1) { | ||
if (selector.nodeType || selector instanceof Dom7) { | ||
compareWith = selector.nodeType ? [selector] : selector; | ||
@@ -1312,10 +1369,10 @@ for (i = 0; i < compareWith.length; i += 1) { | ||
if (index > length - 1) { | ||
return new Dom7$1([]); | ||
return new Dom7([]); | ||
} | ||
if (index < 0) { | ||
returnIndex = length + index; | ||
if (returnIndex < 0) { return new Dom7$1([]); } | ||
return new Dom7$1([this[returnIndex]]); | ||
if (returnIndex < 0) { return new Dom7([]); } | ||
return new Dom7([this[returnIndex]]); | ||
} | ||
return new Dom7$1([this[index]]); | ||
return new Dom7([this[index]]); | ||
}, | ||
@@ -1338,3 +1395,3 @@ append: function append() { | ||
} | ||
} else if (newChild instanceof Dom7$1) { | ||
} else if (newChild instanceof Dom7) { | ||
for (var j = 0; j < newChild.length; j += 1) { | ||
@@ -1367,3 +1424,3 @@ this$1[i].appendChild(newChild[j]); | ||
} | ||
} else if (newChild instanceof Dom7$1) { | ||
} else if (newChild instanceof Dom7) { | ||
for (j = 0; j < newChild.length; j += 1) { | ||
@@ -1413,10 +1470,10 @@ this$1[i].insertBefore(newChild[j], this$1[i].childNodes[0]); | ||
if (selector) { | ||
if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) { return new Dom7$1([this[0].nextElementSibling]); } | ||
return new Dom7$1([]); | ||
if (this[0].nextElementSibling && $(this[0].nextElementSibling).is(selector)) { return new Dom7([this[0].nextElementSibling]); } | ||
return new Dom7([]); | ||
} | ||
if (this[0].nextElementSibling) { return new Dom7$1([this[0].nextElementSibling]); } | ||
return new Dom7$1([]); | ||
if (this[0].nextElementSibling) { return new Dom7([this[0].nextElementSibling]); } | ||
return new Dom7([]); | ||
} | ||
return new Dom7$1([]); | ||
return new Dom7([]); | ||
}, | ||
@@ -1426,3 +1483,3 @@ nextAll: function nextAll(selector) { | ||
var el = this[0]; | ||
if (!el) { return new Dom7$1([]); } | ||
if (!el) { return new Dom7([]); } | ||
while (el.nextElementSibling) { | ||
@@ -1435,3 +1492,3 @@ var next = el.nextElementSibling; | ||
} | ||
return new Dom7$1(nextEls); | ||
return new Dom7(nextEls); | ||
}, | ||
@@ -1442,10 +1499,10 @@ prev: function prev(selector) { | ||
if (selector) { | ||
if (el.previousElementSibling && $(el.previousElementSibling).is(selector)) { return new Dom7$1([el.previousElementSibling]); } | ||
return new Dom7$1([]); | ||
if (el.previousElementSibling && $(el.previousElementSibling).is(selector)) { return new Dom7([el.previousElementSibling]); } | ||
return new Dom7([]); | ||
} | ||
if (el.previousElementSibling) { return new Dom7$1([el.previousElementSibling]); } | ||
return new Dom7$1([]); | ||
if (el.previousElementSibling) { return new Dom7([el.previousElementSibling]); } | ||
return new Dom7([]); | ||
} | ||
return new Dom7$1([]); | ||
return new Dom7([]); | ||
}, | ||
@@ -1455,3 +1512,3 @@ prevAll: function prevAll(selector) { | ||
var el = this[0]; | ||
if (!el) { return new Dom7$1([]); } | ||
if (!el) { return new Dom7([]); } | ||
while (el.previousElementSibling) { | ||
@@ -1464,3 +1521,3 @@ var prev = el.previousElementSibling; | ||
} | ||
return new Dom7$1(prevEls); | ||
return new Dom7(prevEls); | ||
}, | ||
@@ -1505,3 +1562,3 @@ siblings: function siblings(selector) { | ||
if (typeof selector === 'undefined') { | ||
return new Dom7$1([]); | ||
return new Dom7([]); | ||
} | ||
@@ -1523,3 +1580,3 @@ if (!closest.is(selector)) { | ||
} | ||
return new Dom7$1(foundElements); | ||
return new Dom7(foundElements); | ||
}, | ||
@@ -1539,3 +1596,3 @@ children: function children(selector) { | ||
} | ||
return new Dom7$1(Utils.unique(children)); | ||
return new Dom7(Utils.unique(children)); | ||
}, | ||
@@ -1782,3 +1839,3 @@ remove: function remove() { | ||
Object.keys(Methods).forEach(function (key) { | ||
Dom7$1.prototype[key] = Methods[key]; | ||
Dom7.prototype[key] = Methods[key]; | ||
}); | ||
@@ -1788,8 +1845,8 @@ | ||
Object.keys(Scroll).forEach(function (key) { | ||
Dom7$1.prototype[key] = Scroll[key]; | ||
Dom7.prototype[key] = Scroll[key]; | ||
}); | ||
// Animate | ||
Dom7$1.prototype.animate = Animate; | ||
Dom7$1.prototype.stop = Stop; | ||
Dom7.prototype.animate = Animate; | ||
Dom7.prototype.stop = Stop; | ||
@@ -1837,3 +1894,3 @@ // Ajax | ||
// Link to prototype | ||
$.fn = Dom7$1.prototype; | ||
$.fn = Dom7.prototype; | ||
@@ -1840,0 +1897,0 @@ return $; |
/** | ||
* Dom7 1.6.1 | ||
* Dom7 1.6.2 | ||
* Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API | ||
@@ -12,5 +12,5 @@ * http://framework7.io/docs/dom.html | ||
* | ||
* Released on: April 19, 2017 | ||
* Released on: May 11, 2017 | ||
*/ | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Dom7=t()}(this,function(){"use strict";function e(e,t){var r=[],n=0;if(e&&!t&&e instanceof i)return e;if(e)if("string"==typeof e){var s,o,a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var l="div";for(0===a.indexOf("<li")&&(l="ul"),0===a.indexOf("<tr")&&(l="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(l="tr"),0===a.indexOf("<tbody")&&(l="table"),0===a.indexOf("<option")&&(l="select"),o=document.createElement(l),o.innerHTML=a,n=0;n<o.childNodes.length;n+=1)r.push(o.childNodes[n])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||document).querySelectorAll(e.trim()):[document.getElementById(e.trim().split("#")[1])],n=0;n<s.length;n+=1)s[n]&&r.push(s[n])}else if(e.nodeType||e===window||e===document)r.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)r.push(e[n]);return new i(r)}function t(t){function r(r,n,i){var o=arguments;r&&e(document).trigger(r,n),i&&(i in s&&s[i](o[3],o[4],o[5],o[6]),t[i]&&t[i](o[3],o[4],o[5],o[6]))}var n={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},i=["beforeSend","error","complete","success","statusCode"];t.type&&(t.method=t.type);var s=h;f.each(s,function(e,t){i.indexOf(e)<0&&(n[e]=t)}),f.each(n,function(e,r){e in t||(t[e]=r)}),t.url||(t.url=window.location.toString());var o=t.url.indexOf("?")>=0?"&":"?",a=t.method.toUpperCase();if(("GET"===a||"HEAD"===a||"OPTIONS"===a||"DELETE"===a)&&t.data){var l;l="string"==typeof t.data?t.data.indexOf("?")>=0?t.data.split("?")[1]:t.data:f.serializeObject(t.data),l.length&&(t.url+=o+l,"?"===o&&(o="&"))}if("json"===t.dataType&&t.url.indexOf("callback=")>=0){var u,d="f7jsonp_"+(Date.now()+(c+=1)),p=t.url.split("callback="),m=p[0]+"callback="+d;if(p[1].indexOf("&")>=0){var v=p[1].split("&").filter(function(e){return e.indexOf("=")>0}).join("&");v.length>0&&(m+="&"+v)}var g=document.createElement("script");return g.type="text/javascript",g.onerror=function(){clearTimeout(u),r(void 0,void 0,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},g.src=m,window[d]=function(e){clearTimeout(u),r(void 0,void 0,"success",e),g.parentNode.removeChild(g),g=null,delete window[d]},document.querySelector("head").appendChild(g),void(t.timeout>0&&(u=setTimeout(function(){g.parentNode.removeChild(g),g=null,r(void 0,void 0,"error",null,"timeout")},t.timeout)))}"GET"!==a&&"HEAD"!==a&&"OPTIONS"!==a&&"DELETE"!==a||!1===t.cache&&(t.url+=o+"_nocache"+Date.now());var b=new XMLHttpRequest;b.requestUrl=t.url,b.requestParameters=t,b.open(a,t.url,t.async,t.user,t.password);var w=null;if(("POST"===a||"PUT"===a||"PATCH"===a)&&t.data)if(t.processData){var y=[ArrayBuffer,Blob,Document,FormData];if(y.indexOf(t.data.constructor)>=0)w=t.data;else{var x="---------------------------"+Date.now().toString(16);"multipart/form-data"===t.contentType?b.setRequestHeader("Content-Type","multipart/form-data; boundary="+x):b.setRequestHeader("Content-Type",t.contentType),w="";var T=f.serializeObject(t.data);if("multipart/form-data"===t.contentType){x="---------------------------"+Date.now().toString(16),T=T.split("&");for(var E=[],S=0;S<T.length;S+=1)E.push('Content-Disposition: form-data; name="'+_data[S].split("=")[0]+'"\r\n\r\n'+_data[S].split("=")[1]+"\r\n");w="--"+x+"\r\n"+E.join("--"+x+"\r\n")+"--"+x+"--\r\n"}else w=T}}else w=t.data;t.headers&&f.each(t.headers,function(e,t){b.setRequestHeader(e,t)}),void 0===t.crossDomain&&(t.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(t.url)&&RegExp.$2!==window.location.host),t.crossDomain||b.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.xhrFields&&f.each(t.xhrFields,function(e,t){b[e]=t});var j;return b.onload=function(e){if(j&&clearTimeout(j),b.status>=200&&b.status<300||0===b.status){var n;if("json"===t.dataType)try{n=JSON.parse(b.responseText),r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}catch(e){r("ajaxError ajax:error",{xhr:b,parseerror:!0},"error",b,"parseerror")}else n="text"===b.responseType||""===b.responseType?b.responseText:b.response,r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}else r("ajaxError ajax:error",{xhr:b},"error",b,b.status);t.statusCode&&(s.statusCode&&s.statusCode[b.status]&&s.statusCode[b.status](b),t.statusCode[b.status]&&t.statusCode[b.status](b)),r("ajaxComplete ajax:complete",{xhr:b},"complete",b,b.status)},b.onerror=function(e){j&&clearTimeout(j),r("ajaxError ajax:error",{xhr:b},"error",b,b.status),r("ajaxComplete ajax:complete",{xhr:b,error:!0},"complete",b,"error")},r("ajaxStart ajax:start",{xhr:b},"start",b),r(void 0,void 0,"beforeSend",b),t.timeout>0&&(b.onabort=function(){j&&clearTimeout(j)},j=setTimeout(function(){b.abort(),r("ajaxError ajax:error",{xhr:b,timeout:!0},"error",b,"timeout"),r("ajaxComplete ajax:complete",{xhr:b,timeout:!0},"complete",b,"timeout")},t.timeout)),b.send(w),b}function r(t,r){var n=this,i={props:e.extend({},t),params:e.extend({duration:300,easing:"swing"},r),elements:n,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){i.frameId&&f.cancelAnimationFrame(i.frameId),i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),e&&e(n),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){function r(){o=(new Date).getTime();var d,p;c||(c=!0,t.begin&&t.begin(n)),null===l&&(l=o),t.progress&&t.progress(n,Math.max(Math.min((o-l)/t.duration,1),0),l+t.duration-o<0?0:l+t.duration-o,l),s.forEach(function(r){var n=r;a||n.done||Object.keys(e).forEach(function(r){if(!a&&!n.done){d=Math.max(Math.min((o-l)/t.duration,1),0),p=i.easingProgress(t.easing,d);var f=n[r],c=f.initialValue,m=f.finalValue,v=f.unit;n[r].currentValue=c+p*(m-c);var g=n[r].currentValue;if((m>c&&g>=m||m<c&&g<=m)&&(n.container.style[r]=m+v,h+=1,h===Object.keys(e).length&&(n.done=!0,u+=1),u===s.length&&(a=!0)),a)return void i.done(t.complete);n.container.style[r]=g+v}})}),a||(i.frameId=f.requestAnimationFrame(r))}if(i.animating)return i.que.push([e,t]),i;var s=[];i.elements.each(function(t,r){var n,o,a,l,u;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),s[t]={container:r},Object.keys(e).forEach(function(i){n=window.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),o=parseFloat(n),a=n.replace(o,""),l=parseFloat(e[i]),u=e[i]+a,s[t][i]={initialFullValue:n,initialValue:o,unit:a,finalValue:l,finalFullValue:u,currentValue:o}})});var o,a,l=null,u=0,h=0,c=!1;return i.animating=!0,i.frameId=f.requestAnimationFrame(r),i}};if(0===i.elements.length)return n;for(var s,o=0;o<i.elements.length;o+=1)i.elements[o].dom7AnimateInstance?s=i.elements[o].dom7AnimateInstance:i.elements[o].dom7AnimateInstance=i;return s||(s=i),"stop"===t?s.stop():s.animate(i.props,i.params),n}function n(){for(var e=this,t=0;t<e.length;t+=1)e[t].dom7AnimateInstance&&e[t].dom7AnimateInstance.stop()}for(var i=function(e){for(var t=this,r=0;r<e.length;r+=1)t[r]=e[r];return t.length=e.length,this},s=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],o={},a=0;a<s.length;a+=1)for(var l=s[a].letters,u=0;u<l.length;u+=1)o[l[u]]=s[a].base;var f={parseUrlQuery:function(e){var t,r,n,i,s={},o=e||window.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",r=o.split("&").filter(function(e){return""!==e}),i=r.length,t=0;t<i;t+=1)n=r[t].replace(/#\S+/g,"").split("="),s[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return s},isArray:function(e){return Array.isArray(e)},each:function(e,t){if("object"==typeof e&&t)if(Array.isArray(e)||e instanceof Dom7){for(var r=0;r<e.length;r++)if(!1===t(r,e[r]))return}else for(var n in e)if(e.hasOwnProperty(n)&&!1===t(n,e[n]))return},unique:function(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t},serializeObject:function(e,t){function r(e){if(t.length>0){for(var r="",n=0;n<t.length;n+=1)r+=0===n?t[n]:"["+encodeURIComponent(t[n])+"]";return r+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function n(e){return encodeURIComponent(e)}if(void 0===t&&(t=[]),"string"==typeof e)return e;var i,s=[];for(var o in e)if(e.hasOwnProperty(o)){var a=void 0;if(Array.isArray(e[o])){a=[];for(var l=0;l<e[o].length;l+=1)Array.isArray(e[o][l])||"object"!=typeof e[o][l]?a.push(r(o)+"[]="+n(e[o][l])):(i=t.slice(),i.push(o),i.push(String(l)),a.push(f.serializeObject(e[o][l],i)));a.length>0&&s.push(a.join("&"))}else null===e[o]||""===e[o]?s.push(r(o)+"="):"object"==typeof e[o]?(i=t.slice(),i.push(o),""!==(a=f.serializeObject(e[o],i))&&s.push(a)):void 0!==e[o]&&""!==e[o]?s.push(r(o)+"="+n(e[o])):""===e[o]&&s.push(r(o))}return s.join("&")},toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})},dataset:function(t){return e(t).dataset()},getTranslate:function(e,t){void 0===t&&(t="x");var r,n,i,s=window.getComputedStyle(e,null);return window.WebKitCSSMatrix?(n=s.transform||s.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===n?"":n)):(i=s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),"x"===t&&(n=window.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=window.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},requestAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,1e3/60)},cancelAnimationFrame:function(e){return window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e):window.clearTimeout(e)},supportTouch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return o[e]||e})},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=Object(e[0]),n=1;n<e.length;n+=1){var i=e[n];if(void 0!==i&&null!==i)for(var s=Object.keys(Object(i)),o=0,a=s.length;o<a;o+=1){var l=s[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&("object"==typeof r[l]&&"object"==typeof i[l]?f.extend(r[l],i[l]):r[l]=i[l])}}return r}};f.parseQuery=f.parseUrlQuery,f.param=f.serializeObject;var h={};e.ajaxSetup=function(e){e.type&&!e.method&&(e.method=e.type),f.each(e,function(e,t){h[e]=t})};var c=0,d={scrollTo:function(e,t,r,n,i){return void 0===n&&(n="swing"),4===arguments.length&&"function"==typeof n&&(i=n,n=void 0),this.each(function(){function s(e){void 0===e&&(e=(new Date).getTime()),null===b&&(b=e);var t,l=Math.max(Math.min((e-b)/r,1),0),u="linear"===n?l:.5-Math.cos(l*Math.PI)/2;if(v&&(d=o+u*(h-o)),g&&(p=a+u*(c-a)),v&&h>o&&d>=h&&(m.scrollTop=h,t=!0),v&&h<o&&d<=h&&(m.scrollTop=h,t=!0),g&&c>a&&p>=c&&(m.scrollLeft=c,t=!0),g&&c<a&&p<=c&&(m.scrollLeft=c,t=!0),t)return void(i&&i());v&&(m.scrollTop=d),g&&(m.scrollLeft=p),f.requestAnimationFrame(s)}var o,a,l,u,h,c,d,p,m=this,v=t>0||0===t,g=e>0||0===e;if(void 0===n&&(n="swing"),v&&(o=m.scrollTop,r||(m.scrollTop=t)),g&&(a=m.scrollLeft,r||(m.scrollLeft=e)),r){v&&(l=m.scrollHeight-m.offsetHeight,h=Math.max(Math.min(t,l),0)),g&&(u=m.scrollWidth-m.offsetWidth,c=Math.max(Math.min(e,u),0));var b=null;v&&h===o&&(v=!1),g&&c===a&&(g=!1),f.requestAnimationFrame(s)}})},scrollTop:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollTop:null:i.scrollTo(void 0,e,t,r,n)},scrollLeft:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollLeft:null:i.scrollTo(e,void 0,t,r,n)}},p={addClass:function(e){var t=this;if(void 0===e)return this;for(var r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.add(r[n]);return this},removeClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.remove(r[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.toggle(r[n]);return this},attr:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i].setAttribute(e,t);else for(var s in e)n[i][s]=e[s],n[i].setAttribute(s,e[s]);return this}if(this[0])return this[0].getAttribute(e)},removeAttr:function(e){for(var t=this,r=0;r<this.length;r+=1)t[r].removeAttribute(e);return this},prop:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i][e]=t;else for(var s in e)n[i][s]=e[s];return this}if(this[0])return this[0][e]},data:function(e,t){var r,n=this;if(void 0!==t){for(var i=0;i<this.length;i+=1)r=n[i],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}if(r=this[0]){if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];var s=r.getAttribute("data-"+e);if(s)return s}else;},removeData:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){var e=this[0];if(e){var t={};if(e.dataset)for(var r in e.dataset)t[r]=e.dataset[r];else for(var n=0;n<e.attributes.length;n+=1){var i=e.attributes[n];i.name.indexOf("data-")>=0&&(t[f.toCamelCase(i.name.split("data-")[1])]=i.value)}for(var s in t)"false"===t[s]?t[s]=!1:"true"===t[s]?t[s]=!0:parseFloat(t[s])===1*t[s]&&(t[s]*=1);return t}},val:function(e){var t=this;{if(void 0!==e){for(var r=0;r<this.length;r+=1)t[r].value=e;return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var n=[],i=0;i<this[0].selectedOptions.length;i+=1)n.push(t[0].selectedOptions[i].value);return n}return this[0].value}}},transform:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){var t=this;"string"!=typeof e&&(e+="ms");for(var r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(t,r,n,i){function s(t){var i=t.target;if(e(i).is(r))n.call(i,t);else for(var s=e(i).parents(),o=0;o<s.length;o+=1)e(s[o]).is(r)&&n.call(s[o],t)}for(var o,a=arguments,l=this,u=t.split(" "),f=0;f<this.length;f+=1)if("function"==typeof r||!1===r)for("function"==typeof r&&(n=a[1],i=a[2]||!1),o=0;o<u.length;o+=1)l[f].addEventListener(u[o],n,i);else for(o=0;o<u.length;o+=1)l[f].dom7LiveListeners||(l[f].dom7LiveListeners=[]),l[f].dom7LiveListeners.push({listener:n,liveListener:s}),l[f].addEventListener(u[o],s,i);return this},off:function(e,t,r,n){for(var i=arguments,s=this,o=e.split(" "),a=0;a<o.length;a+=1)for(var l=0;l<this.length;l+=1)if("function"==typeof t||!1===t)"function"==typeof t&&(r=i[1],n=i[2]||!1),s[l].removeEventListener(o[a],r,n);else if(s[l].dom7LiveListeners)for(var u=0;u<this[l].dom7LiveListeners.length;u+=1)s[l].dom7LiveListeners[u].listener===r&&s[l].removeEventListener(o[a],s[l].dom7LiveListeners[u].liveListener,n);return this},once:function(e,t,r,n){function i(o){r.call(o.target,o),s.off(e,t,i,n)}var s=this;return"function"==typeof t&&(r=arguments[1],n=arguments[2],t=!1),s.on(e,t,i,n)},trigger:function(e,t){for(var r=this,n=e.split(" "),i=0;i<n.length;i+=1)for(var s=0;s<this.length;s+=1){var o=void 0;try{o=new CustomEvent(n[i],{detail:t,bubbles:!0,cancelable:!0})}catch(e){o=document.createEvent("Event"),o.initEvent(n[i],!0,!0),o.detail=t}r[s].dispatchEvent(o)}return this},transitionEnd:function(e){function t(s){if(s.target===this)for(e.call(this,s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitTransitionEnd","transitionend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},animationEnd:function(e){function t(s){for(e(s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitAnimationEnd","animationend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),r=document.body,n=e.clientTop||r.clientTop||0,i=e.clientLeft||r.clientLeft||0,s=e===window?window.scrollY:e.scrollTop,o=e===window?window.scrollX:e.scrollLeft;return{top:t.top+s-n,left:t.left+o-i}}return null},hide:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="none";return this},show:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="block";return this},styles:function(){if(this[0])return window.getComputedStyle(this[0],null)},css:function(e,t){var r,n=this;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(var i in e)n[r].style[i]=e[i];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)n[r].style[e]=t;return this}return this},each:function(e){var t=this;if(!e)return this;for(var r=0;r<this.length;r+=1)if(!1===e.call(t[r],r,t[r]))return t;return this},filter:function(e){for(var t=[],r=this,n=0;n<r.length;n+=1)e.call(r[n],n,r[n])&&t.push(r[n]);return new i(t)},html:function(e){var t=this;if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var r=0;r<this.length;r+=1)t[r].innerHTML=e;return this},text:function(e){var t=this;if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var r=0;r<this.length;r+=1)t[r].textContent=e;return this},is:function(t){var r,n,s=this[0];if(!s||void 0===t)return!1;if("string"==typeof t){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(r=e(t),n=0;n<r.length;n+=1)if(r[n]===s)return!0;return!1}if(t===document)return s===document;if(t===window)return s===window;if(t.nodeType||t instanceof i){for(r=t.nodeType?[t]:t,n=0;n<r.length;n+=1)if(r[n]===s)return!0;return!1}return!1},indexOf:function(e){for(var t=this,r=0;r<this.length;r+=1)if(t[r]===e)return r},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,r=this.length;return e>r-1?new i([]):e<0?(t=r+e,new i(t<0?[]:[this[t]])):new i([this[e]])},append:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n,s=0;s<t.length;s+=1){n=t[s];for(var o=0;o<this.length;o+=1)if("string"==typeof n){var a=document.createElement("div");for(a.innerHTML=n;a.firstChild;)e[o].appendChild(a.firstChild)}else if(n instanceof i)for(var l=0;l<n.length;l+=1)e[o].appendChild(n[l]);else e[o].appendChild(n)}return this},appendTo:function(t){return e(t).append(this),this},prepend:function(e){var t,r,n=this;for(t=0;t<this.length;t+=1)if("string"==typeof e){var s=document.createElement("div");for(s.innerHTML=e,r=s.childNodes.length-1;r>=0;r-=1)n[t].insertBefore(s.childNodes[r],n[t].childNodes[0])}else if(e instanceof i)for(r=0;r<e.length;r+=1)n[t].insertBefore(e[r],n[t].childNodes[0]);else n[t].insertBefore(e,n[t].childNodes[0]);return this},prependTo:function(t){return e(t).prepend(this),this},insertBefore:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0]);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s])},insertAfter:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0].nextSibling);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s].nextSibling)},next:function(t){return new i(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],n=this[0];if(!n)return new i([]);for(;n.nextElementSibling;){var s=n.nextElementSibling;t?e(s).is(t)&&r.push(s):r.push(s),n=s}return new i(r)},prev:function(t){if(this.length>0){var r=this[0];return new i(t?r.previousElementSibling&&e(r.previousElementSibling).is(t)?[r.previousElementSibling]:[]:r.previousElementSibling?[r.previousElementSibling]:[])}return new i([])},prevAll:function(t){var r=[],n=this[0];if(!n)return new i([]);for(;n.previousElementSibling;){var s=n.previousElementSibling;t?e(s).is(t)&&r.push(s):r.push(s),n=s}return new i(r)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)null!==r[i].parentNode&&(t?e(r[i].parentNode).is(t)&&n.push(r[i].parentNode):n.push(r[i].parentNode));return e(f.unique(n))},parents:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)for(var s=r[i].parentNode;s;)t?e(s).is(t)&&n.push(s):n.push(s),s=s.parentNode;return e(f.unique(n))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=this,r=[],n=0;n<this.length;n+=1)for(var s=t[n].querySelectorAll(e),o=0;o<s.length;o+=1)r.push(s[o]);return new i(r)},children:function(t){for(var r=this,n=[],s=0;s<this.length;s+=1)for(var o=r[s].childNodes,a=0;a<o.length;a+=1)t?1===o[a].nodeType&&e(o[a]).is(t)&&n.push(o[a]):1===o[a].nodeType&&n.push(o[a]);return new i(f.unique(n))},remove:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].parentNode&&e[t].parentNode.removeChild(e[t]);return this},detach:function(){return this.remove()},add:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=this;for(n=0;n<t.length;n+=1){var o=e(t[n]);for(i=0;i<o.length;i+=1)s[s.length]=o[i],s.length+=1}return s},empty:function(){for(var e=this,t=0;t<this.length;t+=1){var r=e[t];if(1===r.nodeType){for(var n=0;n<r.childNodes.length;n+=1)r.childNodes[n].parentNode&&r.childNodes[n].parentNode.removeChild(r.childNodes[n]);r.textContent=""}}return this}};return function(){return Object.keys(f).forEach(function(t){e[t]=f[t]}),Object.keys(p).forEach(function(e){i.prototype[e]=p[e]}),Object.keys(d).forEach(function(e){i.prototype[e]=d[e]}),i.prototype.animate=r,i.prototype.stop=n,e.ajax=t,"get post getJSON".split(" ").forEach(function(t){e[t]=function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];var i,s,o,a,l;if("function"==typeof r[1]){var u;u=r,i=u[0],o=u[1],a=u[2],l=u[3]}else{var f;f=r,i=f[0],s=f[1],o=f[2],a=f[3],l=f[4]}return[o,a].forEach(function(e){"string"==typeof e&&(l=e,e===o?o=void 0:a=void 0)}),l=l||("getJSON"===t?"json":void 0),e.ajax({url:i,method:"post"===t?"POST":"GET",data:s,success:o,error:a,dataType:l})}}),e.fn=i.prototype,e}()}); | ||
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.Dom7=t()}(this,function(){"use strict";function e(e,t){var r=[],n=0;if(e&&!t&&e instanceof i)return e;if(e)if("string"==typeof e){var s,o,a=e.trim();if(a.indexOf("<")>=0&&a.indexOf(">")>=0){var l="div";for(0===a.indexOf("<li")&&(l="ul"),0===a.indexOf("<tr")&&(l="tbody"),0!==a.indexOf("<td")&&0!==a.indexOf("<th")||(l="tr"),0===a.indexOf("<tbody")&&(l="table"),0===a.indexOf("<option")&&(l="select"),o=document.createElement(l),o.innerHTML=a,n=0;n<o.childNodes.length;n+=1)r.push(o.childNodes[n])}else for(s=t||"#"!==e[0]||e.match(/[ .<>:~]/)?(t||document).querySelectorAll(e.trim()):[document.getElementById(e.trim().split("#")[1])],n=0;n<s.length;n+=1)s[n]&&r.push(s[n])}else if(e.nodeType||e===window||e===document)r.push(e);else if(e.length>0&&e[0].nodeType)for(n=0;n<e.length;n+=1)r.push(e[n]);return new i(r)}function t(t){function r(r,n,i){var o=arguments;r&&e(document).trigger(r,n),i&&(i in s&&s[i](o[3],o[4],o[5],o[6]),t[i]&&t[i](o[3],o[4],o[5],o[6]))}var n={method:"GET",data:!1,async:!0,cache:!0,user:"",password:"",headers:{},xhrFields:{},statusCode:{},processData:!0,dataType:"text",contentType:"application/x-www-form-urlencoded",timeout:0},i=["beforeSend","error","complete","success","statusCode"];t.type&&(t.method=t.type);var s=h;f.each(s,function(e,t){i.indexOf(e)<0&&(n[e]=t)}),f.each(n,function(e,r){e in t||(t[e]=r)}),t.url||(t.url=window.location.toString());var o=t.url.indexOf("?")>=0?"&":"?",a=t.method.toUpperCase();if(("GET"===a||"HEAD"===a||"OPTIONS"===a||"DELETE"===a)&&t.data){var l;l="string"==typeof t.data?t.data.indexOf("?")>=0?t.data.split("?")[1]:t.data:f.serializeObject(t.data),l.length&&(t.url+=o+l,"?"===o&&(o="&"))}if("json"===t.dataType&&t.url.indexOf("callback=")>=0){var u,d="f7jsonp_"+(Date.now()+(c+=1)),p=t.url.split("callback="),m=p[0]+"callback="+d;if(p[1].indexOf("&")>=0){var v=p[1].split("&").filter(function(e){return e.indexOf("=")>0}).join("&");v.length>0&&(m+="&"+v)}var g=document.createElement("script");return g.type="text/javascript",g.onerror=function(){clearTimeout(u),r(void 0,void 0,"error",null,"scripterror"),r("ajaxComplete ajax:complete",{scripterror:!0},"complete",null,"scripterror")},g.src=m,window[d]=function(e){clearTimeout(u),r(void 0,void 0,"success",e),g.parentNode.removeChild(g),g=null,delete window[d]},document.querySelector("head").appendChild(g),void(t.timeout>0&&(u=setTimeout(function(){g.parentNode.removeChild(g),g=null,r(void 0,void 0,"error",null,"timeout")},t.timeout)))}"GET"!==a&&"HEAD"!==a&&"OPTIONS"!==a&&"DELETE"!==a||!1===t.cache&&(t.url+=o+"_nocache"+Date.now());var b=new XMLHttpRequest;b.requestUrl=t.url,b.requestParameters=t,b.open(a,t.url,t.async,t.user,t.password);var y=null;if(("POST"===a||"PUT"===a||"PATCH"===a)&&t.data)if(t.processData){var w=[ArrayBuffer,Blob,Document,FormData];if(w.indexOf(t.data.constructor)>=0)y=t.data;else{var x="---------------------------"+Date.now().toString(16);"multipart/form-data"===t.contentType?b.setRequestHeader("Content-Type","multipart/form-data; boundary="+x):b.setRequestHeader("Content-Type",t.contentType),y="";var E=f.serializeObject(t.data);if("multipart/form-data"===t.contentType){x="---------------------------"+Date.now().toString(16),E=E.split("&");for(var T=[],L=0;L<E.length;L+=1)T.push('Content-Disposition: form-data; name="'+_data[L].split("=")[0]+'"\r\n\r\n'+_data[L].split("=")[1]+"\r\n");y="--"+x+"\r\n"+T.join("--"+x+"\r\n")+"--"+x+"--\r\n"}else y=E}}else y=t.data;t.headers&&f.each(t.headers,function(e,t){b.setRequestHeader(e,t)}),void 0===t.crossDomain&&(t.crossDomain=/^([\w-]+:)?\/\/([^\/]+)/.test(t.url)&&RegExp.$2!==window.location.host),t.crossDomain||b.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.xhrFields&&f.each(t.xhrFields,function(e,t){b[e]=t});var S;return b.onload=function(e){if(S&&clearTimeout(S),b.status>=200&&b.status<300||0===b.status){var n;if("json"===t.dataType)try{n=JSON.parse(b.responseText),r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}catch(e){r("ajaxError ajax:error",{xhr:b,parseerror:!0},"error",b,"parseerror")}else n="text"===b.responseType||""===b.responseType?b.responseText:b.response,r("ajaxSuccess ajax:success",{xhr:b},"success",n,b.status,b)}else r("ajaxError ajax:error",{xhr:b},"error",b,b.status);t.statusCode&&(s.statusCode&&s.statusCode[b.status]&&s.statusCode[b.status](b),t.statusCode[b.status]&&t.statusCode[b.status](b)),r("ajaxComplete ajax:complete",{xhr:b},"complete",b,b.status)},b.onerror=function(e){S&&clearTimeout(S),r("ajaxError ajax:error",{xhr:b},"error",b,b.status),r("ajaxComplete ajax:complete",{xhr:b,error:!0},"complete",b,"error")},r("ajaxStart ajax:start",{xhr:b},"start",b),r(void 0,void 0,"beforeSend",b),t.timeout>0&&(b.onabort=function(){S&&clearTimeout(S)},S=setTimeout(function(){b.abort(),r("ajaxError ajax:error",{xhr:b,timeout:!0},"error",b,"timeout"),r("ajaxComplete ajax:complete",{xhr:b,timeout:!0},"complete",b,"timeout")},t.timeout)),b.send(y),b}function r(t,r){var n=this,i={props:e.extend({},t),params:e.extend({duration:300,easing:"swing"},r),elements:n,animating:!1,que:[],easingProgress:function(e,t){return"swing"===e?.5-Math.cos(t*Math.PI)/2:"function"==typeof e?e(t):t},stop:function(){i.frameId&&f.cancelAnimationFrame(i.frameId),i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),i.que=[]},done:function(e){if(i.animating=!1,i.elements.each(function(e,t){delete t.dom7AnimateInstance}),e&&e(n),i.que.length>0){var t=i.que.shift();i.animate(t[0],t[1])}},animate:function(e,t){function r(){o=(new Date).getTime();var d,p;c||(c=!0,t.begin&&t.begin(n)),null===l&&(l=o),t.progress&&t.progress(n,Math.max(Math.min((o-l)/t.duration,1),0),l+t.duration-o<0?0:l+t.duration-o,l),s.forEach(function(r){var n=r;a||n.done||Object.keys(e).forEach(function(r){if(!a&&!n.done){d=Math.max(Math.min((o-l)/t.duration,1),0),p=i.easingProgress(t.easing,d);var f=n[r],c=f.initialValue,m=f.finalValue,v=f.unit;n[r].currentValue=c+p*(m-c);var g=n[r].currentValue;if((m>c&&g>=m||m<c&&g<=m)&&(n.container.style[r]=m+v,h+=1,h===Object.keys(e).length&&(n.done=!0,u+=1),u===s.length&&(a=!0)),a)return void i.done(t.complete);n.container.style[r]=g+v}})}),a||(i.frameId=f.requestAnimationFrame(r))}if(i.animating)return i.que.push([e,t]),i;var s=[];i.elements.each(function(t,r){var n,o,a,l,u;r.dom7AnimateInstance||(i.elements[t].dom7AnimateInstance=i),s[t]={container:r},Object.keys(e).forEach(function(i){n=window.getComputedStyle(r,null).getPropertyValue(i).replace(",","."),o=parseFloat(n),a=n.replace(o,""),l=parseFloat(e[i]),u=e[i]+a,s[t][i]={initialFullValue:n,initialValue:o,unit:a,finalValue:l,finalFullValue:u,currentValue:o}})});var o,a,l=null,u=0,h=0,c=!1;return i.animating=!0,i.frameId=f.requestAnimationFrame(r),i}};if(0===i.elements.length)return n;for(var s,o=0;o<i.elements.length;o+=1)i.elements[o].dom7AnimateInstance?s=i.elements[o].dom7AnimateInstance:i.elements[o].dom7AnimateInstance=i;return s||(s=i),"stop"===t?s.stop():s.animate(i.props,i.params),n}function n(){for(var e=this,t=0;t<e.length;t+=1)e[t].dom7AnimateInstance&&e[t].dom7AnimateInstance.stop()}for(var i=function(e){for(var t=this,r=0;r<e.length;r+=1)t[r]=e[r];return t.length=e.length,this},s=[{base:"A",letters:"AⒶAÀÁÂẦẤẪẨÃĀĂẰẮẴẲȦǠÄǞẢÅǺǍȀȂẠẬẶḀĄȺⱯ"},{base:"AA",letters:"Ꜳ"},{base:"AE",letters:"ÆǼǢ"},{base:"AO",letters:"Ꜵ"},{base:"AU",letters:"Ꜷ"},{base:"AV",letters:"ꜸꜺ"},{base:"AY",letters:"Ꜽ"},{base:"B",letters:"BⒷBḂḄḆɃƂƁ"},{base:"C",letters:"CⒸCĆĈĊČÇḈƇȻꜾ"},{base:"D",letters:"DⒹDḊĎḌḐḒḎĐƋƊƉꝹ"},{base:"DZ",letters:"DZDŽ"},{base:"Dz",letters:"DzDž"},{base:"E",letters:"EⒺEÈÉÊỀẾỄỂẼĒḔḖĔĖËẺĚȄȆẸỆȨḜĘḘḚƐƎ"},{base:"F",letters:"FⒻFḞƑꝻ"},{base:"G",letters:"GⒼGǴĜḠĞĠǦĢǤƓꞠꝽꝾ"},{base:"H",letters:"HⒽHĤḢḦȞḤḨḪĦⱧⱵꞍ"},{base:"I",letters:"IⒾIÌÍÎĨĪĬİÏḮỈǏȈȊỊĮḬƗ"},{base:"J",letters:"JⒿJĴɈ"},{base:"K",letters:"KⓀKḰǨḲĶḴƘⱩꝀꝂꝄꞢ"},{base:"L",letters:"LⓁLĿĹĽḶḸĻḼḺŁȽⱢⱠꝈꝆꞀ"},{base:"LJ",letters:"LJ"},{base:"Lj",letters:"Lj"},{base:"M",letters:"MⓂMḾṀṂⱮƜ"},{base:"N",letters:"NⓃNǸŃÑṄŇṆŅṊṈȠƝꞐꞤ"},{base:"NJ",letters:"NJ"},{base:"Nj",letters:"Nj"},{base:"O",letters:"OⓄOÒÓÔỒỐỖỔÕṌȬṎŌṐṒŎȮȰÖȪỎŐǑȌȎƠỜỚỠỞỢỌỘǪǬØǾƆƟꝊꝌ"},{base:"OI",letters:"Ƣ"},{base:"OO",letters:"Ꝏ"},{base:"OU",letters:"Ȣ"},{base:"OE",letters:"Œ"},{base:"oe",letters:"œ"},{base:"P",letters:"PⓅPṔṖƤⱣꝐꝒꝔ"},{base:"Q",letters:"QⓆQꝖꝘɊ"},{base:"R",letters:"RⓇRŔṘŘȐȒṚṜŖṞɌⱤꝚꞦꞂ"},{base:"S",letters:"SⓈSẞŚṤŜṠŠṦṢṨȘŞⱾꞨꞄ"},{base:"T",letters:"TⓉTṪŤṬȚŢṰṮŦƬƮȾꞆ"},{base:"TZ",letters:"Ꜩ"},{base:"U",letters:"UⓊUÙÚÛŨṸŪṺŬÜǛǗǕǙỦŮŰǓȔȖƯỪỨỮỬỰỤṲŲṶṴɄ"},{base:"V",letters:"VⓋVṼṾƲꝞɅ"},{base:"VY",letters:"Ꝡ"},{base:"W",letters:"WⓌWẀẂŴẆẄẈⱲ"},{base:"X",letters:"XⓍXẊẌ"},{base:"Y",letters:"YⓎYỲÝŶỸȲẎŸỶỴƳɎỾ"},{base:"Z",letters:"ZⓏZŹẐŻŽẒẔƵȤⱿⱫꝢ"},{base:"a",letters:"aⓐaẚàáâầấẫẩãāăằắẵẳȧǡäǟảåǻǎȁȃạậặḁąⱥɐ"},{base:"aa",letters:"ꜳ"},{base:"ae",letters:"æǽǣ"},{base:"ao",letters:"ꜵ"},{base:"au",letters:"ꜷ"},{base:"av",letters:"ꜹꜻ"},{base:"ay",letters:"ꜽ"},{base:"b",letters:"bⓑbḃḅḇƀƃɓ"},{base:"c",letters:"cⓒcćĉċčçḉƈȼꜿↄ"},{base:"d",letters:"dⓓdḋďḍḑḓḏđƌɖɗꝺ"},{base:"dz",letters:"dzdž"},{base:"e",letters:"eⓔeèéêềếễểẽēḕḗĕėëẻěȅȇẹệȩḝęḙḛɇɛǝ"},{base:"f",letters:"fⓕfḟƒꝼ"},{base:"g",letters:"gⓖgǵĝḡğġǧģǥɠꞡᵹꝿ"},{base:"h",letters:"hⓗhĥḣḧȟḥḩḫẖħⱨⱶɥ"},{base:"hv",letters:"ƕ"},{base:"i",letters:"iⓘiìíîĩīĭïḯỉǐȉȋịįḭɨı"},{base:"j",letters:"jⓙjĵǰɉ"},{base:"k",letters:"kⓚkḱǩḳķḵƙⱪꝁꝃꝅꞣ"},{base:"l",letters:"lⓛlŀĺľḷḹļḽḻſłƚɫⱡꝉꞁꝇ"},{base:"lj",letters:"lj"},{base:"m",letters:"mⓜmḿṁṃɱɯ"},{base:"n",letters:"nⓝnǹńñṅňṇņṋṉƞɲʼnꞑꞥ"},{base:"nj",letters:"nj"},{base:"o",letters:"oⓞoòóôồốỗổõṍȭṏōṑṓŏȯȱöȫỏőǒȍȏơờớỡởợọộǫǭøǿɔꝋꝍɵ"},{base:"oi",letters:"ƣ"},{base:"ou",letters:"ȣ"},{base:"oo",letters:"ꝏ"},{base:"p",letters:"pⓟpṕṗƥᵽꝑꝓꝕ"},{base:"q",letters:"qⓠqɋꝗꝙ"},{base:"r",letters:"rⓡrŕṙřȑȓṛṝŗṟɍɽꝛꞧꞃ"},{base:"s",letters:"sⓢsßśṥŝṡšṧṣṩșşȿꞩꞅẛ"},{base:"t",letters:"tⓣtṫẗťṭțţṱṯŧƭʈⱦꞇ"},{base:"tz",letters:"ꜩ"},{base:"u",letters:"uⓤuùúûũṹūṻŭüǜǘǖǚủůűǔȕȗưừứữửựụṳųṷṵʉ"},{base:"v",letters:"vⓥvṽṿʋꝟʌ"},{base:"vy",letters:"ꝡ"},{base:"w",letters:"wⓦwẁẃŵẇẅẘẉⱳ"},{base:"x",letters:"xⓧxẋẍ"},{base:"y",letters:"yⓨyỳýŷỹȳẏÿỷẙỵƴɏỿ"},{base:"z",letters:"zⓩzźẑżžẓẕƶȥɀⱬꝣ"}],o={},a=0;a<s.length;a+=1)for(var l=s[a].letters,u=0;u<l.length;u+=1)o[l[u]]=s[a].base;var f={parseUrlQuery:function(e){var t,r,n,i,s={},o=e||window.location.href;if("string"==typeof o&&o.length)for(o=o.indexOf("?")>-1?o.replace(/\S*\?/,""):"",r=o.split("&").filter(function(e){return""!==e}),i=r.length,t=0;t<i;t+=1)n=r[t].replace(/#\S+/g,"").split("="),s[decodeURIComponent(n[0])]=void 0===n[1]?void 0:decodeURIComponent(n[1])||"";return s},isArray:function(e){return Array.isArray(e)},each:function(e,t){if("object"==typeof e&&t)if(Array.isArray(e)||e instanceof i){for(var r=0;r<e.length;r++)if(!1===t(r,e[r]))return}else for(var n in e)if(e.hasOwnProperty(n)&&!1===t(n,e[n]))return},unique:function(e){for(var t=[],r=0;r<e.length;r+=1)-1===t.indexOf(e[r])&&t.push(e[r]);return t},serializeObject:function(e,t){function r(e){if(t.length>0){for(var r="",n=0;n<t.length;n+=1)r+=0===n?t[n]:"["+encodeURIComponent(t[n])+"]";return r+"["+encodeURIComponent(e)+"]"}return encodeURIComponent(e)}function n(e){return encodeURIComponent(e)}if(void 0===t&&(t=[]),"string"==typeof e)return e;var i,s=[];for(var o in e)if(e.hasOwnProperty(o)){var a=void 0;if(Array.isArray(e[o])){a=[];for(var l=0;l<e[o].length;l+=1)Array.isArray(e[o][l])||"object"!=typeof e[o][l]?a.push(r(o)+"[]="+n(e[o][l])):(i=t.slice(),i.push(o),i.push(String(l)),a.push(f.serializeObject(e[o][l],i)));a.length>0&&s.push(a.join("&"))}else null===e[o]||""===e[o]?s.push(r(o)+"="):"object"==typeof e[o]?(i=t.slice(),i.push(o),""!==(a=f.serializeObject(e[o],i))&&s.push(a)):void 0!==e[o]&&""!==e[o]?s.push(r(o)+"="+n(e[o])):""===e[o]&&s.push(r(o))}return s.join("&")},toCamelCase:function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})},dataset:function(t){return e(t).dataset()},getTranslate:function(e,t){void 0===t&&(t="x");var r,n,i,s=window.getComputedStyle(e,null);return window.WebKitCSSMatrix?(n=s.transform||s.webkitTransform,n.split(",").length>6&&(n=n.split(", ").map(function(e){return e.replace(",",".")}).join(", ")),i=new window.WebKitCSSMatrix("none"===n?"":n)):(i=s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,"),r=i.toString().split(",")),"x"===t&&(n=window.WebKitCSSMatrix?i.m41:16===r.length?parseFloat(r[12]):parseFloat(r[4])),"y"===t&&(n=window.WebKitCSSMatrix?i.m42:16===r.length?parseFloat(r[13]):parseFloat(r[5])),n||0},requestAnimationFrame:function(e){return window.requestAnimationFrame?window.requestAnimationFrame(e):window.webkitRequestAnimationFrame?window.webkitRequestAnimationFrame(e):window.setTimeout(e,1e3/60)},cancelAnimationFrame:function(e){return window.cancelAnimationFrame?window.cancelAnimationFrame(e):window.webkitCancelAnimationFrame?window.webkitCancelAnimationFrame(e):window.clearTimeout(e)},supportTouch:!!("ontouchstart"in window||window.DocumentTouch&&document instanceof window.DocumentTouch),removeDiacritics:function(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return o[e]||e})},extend:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var r=Object(e[0]),n=1;n<e.length;n+=1){var i=e[n];if(void 0!==i&&null!==i)for(var s=Object.keys(Object(i)),o=0,a=s.length;o<a;o+=1){var l=s[o],u=Object.getOwnPropertyDescriptor(i,l);void 0!==u&&u.enumerable&&("object"==typeof r[l]&&"object"==typeof i[l]?f.extend(r[l],i[l]):r[l]=i[l])}}return r}};f.parseQuery=f.parseUrlQuery,f.param=f.serializeObject;var h={};e.ajaxSetup=function(e){e.type&&!e.method&&(e.method=e.type),f.each(e,function(e,t){h[e]=t})};var c=0,d={scrollTo:function(e,t,r,n,i){return void 0===n&&(n="swing"),4===arguments.length&&"function"==typeof n&&(i=n,n=void 0),this.each(function(){function s(e){void 0===e&&(e=(new Date).getTime()),null===b&&(b=e);var t,l=Math.max(Math.min((e-b)/r,1),0),u="linear"===n?l:.5-Math.cos(l*Math.PI)/2;if(v&&(d=o+u*(h-o)),g&&(p=a+u*(c-a)),v&&h>o&&d>=h&&(m.scrollTop=h,t=!0),v&&h<o&&d<=h&&(m.scrollTop=h,t=!0),g&&c>a&&p>=c&&(m.scrollLeft=c,t=!0),g&&c<a&&p<=c&&(m.scrollLeft=c,t=!0),t)return void(i&&i());v&&(m.scrollTop=d),g&&(m.scrollLeft=p),f.requestAnimationFrame(s)}var o,a,l,u,h,c,d,p,m=this,v=t>0||0===t,g=e>0||0===e;if(void 0===n&&(n="swing"),v&&(o=m.scrollTop,r||(m.scrollTop=t)),g&&(a=m.scrollLeft,r||(m.scrollLeft=e)),r){v&&(l=m.scrollHeight-m.offsetHeight,h=Math.max(Math.min(t,l),0)),g&&(u=m.scrollWidth-m.offsetWidth,c=Math.max(Math.min(e,u),0));var b=null;v&&h===o&&(v=!1),g&&c===a&&(g=!1),f.requestAnimationFrame(s)}})},scrollTop:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollTop:null:i.scrollTo(void 0,e,t,r,n)},scrollLeft:function(e,t,r,n){3===arguments.length&&"function"==typeof r&&(n=r,r=void 0);var i=this;return void 0===e?i.length>0?i[0].scrollLeft:null:i.scrollTo(e,void 0,t,r,n)}},p={addClass:function(e){var t=this;if(void 0===e)return this;for(var r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.add(r[n]);return this},removeClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.remove(r[n]);return this},hasClass:function(e){return!!this[0]&&this[0].classList.contains(e)},toggleClass:function(e){for(var t=this,r=e.split(" "),n=0;n<r.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==t[i].classList&&t[i].classList.toggle(r[n]);return this},attr:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i].setAttribute(e,t);else for(var s in e)n[i][s]=e[s],n[i].setAttribute(s,e[s]);return this}if(this[0])return this[0].getAttribute(e)},removeAttr:function(e){for(var t=this,r=0;r<this.length;r+=1)t[r].removeAttribute(e);return this},prop:function(e,t){var r=arguments,n=this;if(1!==arguments.length||"string"!=typeof e){for(var i=0;i<this.length;i+=1)if(2===r.length)n[i][e]=t;else for(var s in e)n[i][s]=e[s];return this}if(this[0])return this[0][e]},data:function(e,t){var r,n=this;if(void 0!==t){for(var i=0;i<this.length;i+=1)r=n[i],r.dom7ElementDataStorage||(r.dom7ElementDataStorage={}),r.dom7ElementDataStorage[e]=t;return this}if(r=this[0]){if(r.dom7ElementDataStorage&&e in r.dom7ElementDataStorage)return r.dom7ElementDataStorage[e];var s=r.getAttribute("data-"+e);if(s)return s}else;},removeData:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r];n.dom7ElementDataStorage&&n.dom7ElementDataStorage[e]&&(n.dom7ElementDataStorage[e]=null,delete n.dom7ElementDataStorage[e])}},dataset:function(){var e=this[0];if(e){var t={};if(e.dataset)for(var r in e.dataset)t[r]=e.dataset[r];else for(var n=0;n<e.attributes.length;n+=1){var i=e.attributes[n];i.name.indexOf("data-")>=0&&(t[f.toCamelCase(i.name.split("data-")[1])]=i.value)}for(var s in t)"false"===t[s]?t[s]=!1:"true"===t[s]?t[s]=!0:parseFloat(t[s])===1*t[s]&&(t[s]*=1);return t}},val:function(e){var t=this;{if(void 0!==e){for(var r=0;r<this.length;r+=1)t[r].value=e;return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var n=[],i=0;i<this[0].selectedOptions.length;i+=1)n.push(t[0].selectedOptions[i].value);return n}return this[0].value}}},transform:function(e){for(var t=this,r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransform=e,n.transform=e}return this},transition:function(e){var t=this;"string"!=typeof e&&(e+="ms");for(var r=0;r<this.length;r+=1){var n=t[r].style;n.webkitTransitionDuration=e,n.transitionDuration=e}return this},on:function(){function t(t){var r=t.target,n=t.target.dom7EventData||[];if(n.unshift(t),e(r).is(o))a.apply(r,n);else for(var i=e(r).parents(),s=0;s<i.length;s+=1)e(i[s]).is(o)&&a.apply(i[s],n)}function r(e){var t=e.target.dom7EventData||[];t.unshift(e),a.apply(this,t)}for(var n=this,i=[],s=arguments.length;s--;)i[s]=arguments[s];var o,a,l=i[0],u=!1;"function"==typeof i[1]?(o=!1,a=i[1],u=i[2]):(o=i[1],a=i[2],u=i[3]);for(var f,h=l.split(" "),c=0;c<this.length;c+=1){var d=n[c];if(o)for(f=0;f<h.length;f+=1)d.dom7LiveListeners||(d.dom7LiveListeners=[]),d.dom7LiveListeners.push({type:l,listener:a,proxyListener:t}),d.addEventListener(h[f],t,u);else for(f=0;f<h.length;f+=1)d.dom7Listeners||(d.dom7Listeners=[]),d.dom7Listeners.push({type:l,listener:a,proxyListener:r}),d.addEventListener(h[f],r,u)}return this},off:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=t[0],o=!1;"function"==typeof t[1]?(n=!1,i=t[1],o=t[2]):(n=t[1],i=t[2],o=t[3]);for(var a=s.split(" "),l=0;l<a.length;l+=1)for(var u=0;u<this.length;u+=1){var f=e[u];if(n){if(f.dom7LiveListeners)for(var h=0;h<f.dom7LiveListeners.length;h+=1)i?f.dom7LiveListeners[h].listener===i&&f.removeEventListener(a[l],f.dom7LiveListeners[h].proxyListener,o):f.dom7Listeners[h].type===a[l]&&f.removeEventListener(a[l],f.dom7LiveListeners[h].proxyListener,o)}else if(f.dom7Listeners)for(var c=0;c<f.dom7Listeners.length;c+=1)i?f.dom7Listeners[c].listener===i&&f.removeEventListener(a[l],f.dom7Listeners[c].proxyListener,o):f.dom7Listeners[c].type===a[l]&&f.removeEventListener(a[l],f.dom7Listeners[c].proxyListener,o)}return this},once:function(e,t,r,n){function i(o){var a=o.target.dom7EventData||[];r.apply(this,a),s.off(e,t,i,n)}var s=this;return"function"==typeof t&&(r=arguments[1],n=arguments[2],t=!1),s.on(e,t,i,n)},trigger:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n=t[0].split(" "),i=t[1],s=0;s<n.length;s+=1)for(var o=0;o<this.length;o+=1){var a=void 0;try{a=new CustomEvent(n[s],{detail:i,bubbles:!0,cancelable:!0})}catch(e){a=document.createEvent("Event"),a.initEvent(n[s],!0,!0),a.detail=i}e[o].dom7EventData=t.filter(function(e,t){return t>0}),e[o].dispatchEvent(a),e[o].dom7EventData=[],delete e[o].dom7EventData}return this},transitionEnd:function(e){function t(s){if(s.target===this)for(e.call(this,s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitTransitionEnd","transitionend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},animationEnd:function(e){function t(s){for(e(s),r=0;r<n.length;r+=1)i.off(n[r],t)}var r,n=["webkitAnimationEnd","animationend"],i=this;if(e)for(r=0;r<n.length;r+=1)i.on(n[r],t);return this},width:function(){return this[0]===window?window.innerWidth:this.length>0?parseFloat(this.css("width")):null},outerWidth:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetWidth+parseFloat(t.getPropertyValue("margin-right"))+parseFloat(t.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},height:function(){return this[0]===window?window.innerHeight:this.length>0?parseFloat(this.css("height")):null},outerHeight:function(e){if(this.length>0){if(e){var t=this.styles();return this[0].offsetHeight+parseFloat(t.getPropertyValue("margin-top"))+parseFloat(t.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var e=this[0],t=e.getBoundingClientRect(),r=document.body,n=e.clientTop||r.clientTop||0,i=e.clientLeft||r.clientLeft||0,s=e===window?window.scrollY:e.scrollTop,o=e===window?window.scrollX:e.scrollLeft;return{top:t.top+s-n,left:t.left+o-i}}return null},hide:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="none";return this},show:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].style.display="block";return this},styles:function(){if(this[0])return window.getComputedStyle(this[0],null)},css:function(e,t){var r,n=this;if(1===arguments.length){if("string"!=typeof e){for(r=0;r<this.length;r+=1)for(var i in e)n[r].style[i]=e[i];return this}if(this[0])return window.getComputedStyle(this[0],null).getPropertyValue(e)}if(2===arguments.length&&"string"==typeof e){for(r=0;r<this.length;r+=1)n[r].style[e]=t;return this}return this},each:function(e){var t=this;if(!e)return this;for(var r=0;r<this.length;r+=1)if(!1===e.call(t[r],r,t[r]))return t;return this},filter:function(e){for(var t=[],r=this,n=0;n<r.length;n+=1)e.call(r[n],n,r[n])&&t.push(r[n]);return new i(t)},html:function(e){var t=this;if(void 0===e)return this[0]?this[0].innerHTML:void 0;for(var r=0;r<this.length;r+=1)t[r].innerHTML=e;return this},text:function(e){var t=this;if(void 0===e)return this[0]?this[0].textContent.trim():null;for(var r=0;r<this.length;r+=1)t[r].textContent=e;return this},is:function(t){var r,n,s=this[0];if(!s||void 0===t)return!1;if("string"==typeof t){if(s.matches)return s.matches(t);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(t);if(s.msMatchesSelector)return s.msMatchesSelector(t);for(r=e(t),n=0;n<r.length;n+=1)if(r[n]===s)return!0;return!1}if(t===document)return s===document;if(t===window)return s===window;if(t.nodeType||t instanceof i){for(r=t.nodeType?[t]:t,n=0;n<r.length;n+=1)if(r[n]===s)return!0;return!1}return!1},indexOf:function(e){for(var t=this,r=0;r<this.length;r+=1)if(t[r]===e)return r},index:function(){var e,t=this[0];if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},eq:function(e){if(void 0===e)return this;var t,r=this.length;return e>r-1?new i([]):e<0?(t=r+e,new i(t<0?[]:[this[t]])):new i([this[e]])},append:function(){for(var e=this,t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var n,s=0;s<t.length;s+=1){n=t[s];for(var o=0;o<this.length;o+=1)if("string"==typeof n){var a=document.createElement("div");for(a.innerHTML=n;a.firstChild;)e[o].appendChild(a.firstChild)}else if(n instanceof i)for(var l=0;l<n.length;l+=1)e[o].appendChild(n[l]);else e[o].appendChild(n)}return this},appendTo:function(t){return e(t).append(this),this},prepend:function(e){var t,r,n=this;for(t=0;t<this.length;t+=1)if("string"==typeof e){var s=document.createElement("div");for(s.innerHTML=e,r=s.childNodes.length-1;r>=0;r-=1)n[t].insertBefore(s.childNodes[r],n[t].childNodes[0])}else if(e instanceof i)for(r=0;r<e.length;r+=1)n[t].insertBefore(e[r],n[t].childNodes[0]);else n[t].insertBefore(e,n[t].childNodes[0]);return this},prependTo:function(t){return e(t).prepend(this),this},insertBefore:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0]);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s])},insertAfter:function(t){for(var r=this,n=e(t),i=0;i<this.length;i+=1)if(1===n.length)n[0].parentNode.insertBefore(r[i],n[0].nextSibling);else if(n.length>1)for(var s=0;s<n.length;s+=1)n[s].parentNode.insertBefore(r[i].cloneNode(!0),n[s].nextSibling)},next:function(t){return new i(this.length>0?t?this[0].nextElementSibling&&e(this[0].nextElementSibling).is(t)?[this[0].nextElementSibling]:[]:this[0].nextElementSibling?[this[0].nextElementSibling]:[]:[])},nextAll:function(t){var r=[],n=this[0];if(!n)return new i([]);for(;n.nextElementSibling;){var s=n.nextElementSibling;t?e(s).is(t)&&r.push(s):r.push(s),n=s}return new i(r)},prev:function(t){if(this.length>0){var r=this[0];return new i(t?r.previousElementSibling&&e(r.previousElementSibling).is(t)?[r.previousElementSibling]:[]:r.previousElementSibling?[r.previousElementSibling]:[])}return new i([])},prevAll:function(t){var r=[],n=this[0];if(!n)return new i([]);for(;n.previousElementSibling;){var s=n.previousElementSibling;t?e(s).is(t)&&r.push(s):r.push(s),n=s}return new i(r)},siblings:function(e){return this.nextAll(e).add(this.prevAll(e))},parent:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)null!==r[i].parentNode&&(t?e(r[i].parentNode).is(t)&&n.push(r[i].parentNode):n.push(r[i].parentNode));return e(f.unique(n))},parents:function(t){for(var r=this,n=[],i=0;i<this.length;i+=1)for(var s=r[i].parentNode;s;)t?e(s).is(t)&&n.push(s):n.push(s),s=s.parentNode;return e(f.unique(n))},closest:function(e){var t=this;return void 0===e?new i([]):(t.is(e)||(t=t.parents(e).eq(0)),t)},find:function(e){for(var t=this,r=[],n=0;n<this.length;n+=1)for(var s=t[n].querySelectorAll(e),o=0;o<s.length;o+=1)r.push(s[o]);return new i(r)},children:function(t){for(var r=this,n=[],s=0;s<this.length;s+=1)for(var o=r[s].childNodes,a=0;a<o.length;a+=1)t?1===o[a].nodeType&&e(o[a]).is(t)&&n.push(o[a]):1===o[a].nodeType&&n.push(o[a]);return new i(f.unique(n))},remove:function(){for(var e=this,t=0;t<this.length;t+=1)e[t].parentNode&&e[t].parentNode.removeChild(e[t]);return this},detach:function(){return this.remove()},add:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];var n,i,s=this;for(n=0;n<t.length;n+=1){var o=e(t[n]);for(i=0;i<o.length;i+=1)s[s.length]=o[i],s.length+=1}return s},empty:function(){for(var e=this,t=0;t<this.length;t+=1){var r=e[t];if(1===r.nodeType){for(var n=0;n<r.childNodes.length;n+=1)r.childNodes[n].parentNode&&r.childNodes[n].parentNode.removeChild(r.childNodes[n]);r.textContent=""}}return this}};return function(){return Object.keys(f).forEach(function(t){e[t]=f[t]}),Object.keys(p).forEach(function(e){i.prototype[e]=p[e]}),Object.keys(d).forEach(function(e){i.prototype[e]=d[e]}),i.prototype.animate=r,i.prototype.stop=n,e.ajax=t,"get post getJSON".split(" ").forEach(function(t){e[t]=function(){for(var r=[],n=arguments.length;n--;)r[n]=arguments[n];var i,s,o,a,l;if("function"==typeof r[1]){var u;u=r,i=u[0],o=u[1],a=u[2],l=u[3]}else{var f;f=r,i=f[0],s=f[1],o=f[2],a=f[3],l=f[4]}return[o,a].forEach(function(e){"string"==typeof e&&(l=e,e===o?o=void 0:a=void 0)}),l=l||("getJSON"===t?"json":void 0),e.ajax({url:i,method:"post"===t?"POST":"GET",data:s,success:o,error:a,dataType:l})}}),e.fn=i.prototype,e}()}); | ||
//# sourceMappingURL=dom7.min.js.map |
{ | ||
"name": "dom7", | ||
"version": "1.6.1", | ||
"version": "1.6.2", | ||
"description": "Minimalistic JavaScript library for DOM manipulation, with a jQuery-compatible API", | ||
"main": "dist/dom7.js", | ||
"jsnext:main": "dist/dom7.es2015.js", | ||
"module": "dist/dom7.es2015.js", | ||
"jsnext:main": "dist/dom7.module.js", | ||
"module": "dist/dom7.module.js", | ||
"repository": { | ||
@@ -9,0 +9,0 @@ "type": "git", |
@@ -189,24 +189,46 @@ import Dom7 from './dom7-class'; | ||
// Events | ||
on(eventName, targetSelector, listener, capture) { | ||
on(...args) { | ||
const eventType = args[0]; | ||
let targetSelector; | ||
let listener; | ||
let capture = false; | ||
if (typeof args[1] === 'function') { | ||
targetSelector = false; | ||
listener = args[1]; | ||
capture = args[2]; | ||
} else { | ||
targetSelector = args[1]; | ||
listener = args[2]; | ||
capture = args[3]; | ||
} | ||
function handleLiveEvent(e) { | ||
const target = e.target; | ||
if ($(target).is(targetSelector)) listener.call(target, e); | ||
const eventData = e.target.dom7EventData || []; | ||
eventData.unshift(e); | ||
if ($(target).is(targetSelector)) listener.apply(target, eventData); | ||
else { | ||
const parents = $(target).parents(); | ||
for (let k = 0; k < parents.length; k += 1) { | ||
if ($(parents[k]).is(targetSelector)) listener.call(parents[k], e); | ||
if ($(parents[k]).is(targetSelector)) listener.apply(parents[k], eventData); | ||
} | ||
} | ||
} | ||
const events = eventName.split(' '); | ||
function handleEvent(e) { | ||
const eventData = e.target.dom7EventData || []; | ||
eventData.unshift(e); | ||
listener.apply(this, eventData); | ||
} | ||
const events = eventType.split(' '); | ||
let j; | ||
for (let i = 0; i < this.length; i += 1) { | ||
if (typeof targetSelector === 'function' || targetSelector === false) { | ||
// Usual events | ||
if (typeof targetSelector === 'function') { | ||
listener = arguments[1]; | ||
capture = arguments[2] || false; | ||
} | ||
const el = this[i]; | ||
if (!targetSelector) { | ||
for (j = 0; j < events.length; j += 1) { | ||
this[i].addEventListener(events[j], listener, capture); | ||
if (!el.dom7Listeners) el.dom7Listeners = []; | ||
el.dom7Listeners.push({ | ||
type: eventType, | ||
listener, | ||
proxyListener: handleEvent, | ||
}); | ||
el.addEventListener(events[j], handleEvent, capture); | ||
} | ||
@@ -216,26 +238,52 @@ } else { | ||
for (j = 0; j < events.length; j += 1) { | ||
if (!this[i].dom7LiveListeners) this[i].dom7LiveListeners = []; | ||
this[i].dom7LiveListeners.push({ listener, liveListener: handleLiveEvent }); | ||
this[i].addEventListener(events[j], handleLiveEvent, capture); | ||
if (!el.dom7LiveListeners) el.dom7LiveListeners = []; | ||
el.dom7LiveListeners.push({ | ||
type: eventType, | ||
listener, | ||
proxyListener: handleLiveEvent, | ||
}); | ||
el.addEventListener(events[j], handleLiveEvent, capture); | ||
} | ||
} | ||
} | ||
return this; | ||
}, | ||
off(eventName, targetSelector, listener, capture) { | ||
const events = eventName.split(' '); | ||
off(...args) { | ||
const eventType = args[0]; | ||
let targetSelector; | ||
let listener; | ||
let capture = false; | ||
if (typeof args[1] === 'function') { | ||
targetSelector = false; | ||
listener = args[1]; | ||
capture = args[2]; | ||
} else { | ||
targetSelector = args[1]; | ||
listener = args[2]; | ||
capture = args[3]; | ||
} | ||
const events = eventType.split(' '); | ||
for (let i = 0; i < events.length; i += 1) { | ||
for (let j = 0; j < this.length; j += 1) { | ||
if (typeof targetSelector === 'function' || targetSelector === false) { | ||
// Usual events | ||
if (typeof targetSelector === 'function') { | ||
listener = arguments[1]; | ||
capture = arguments[2] || false; | ||
const el = this[j]; | ||
if (!targetSelector) { | ||
if (el.dom7Listeners) { | ||
for (let k = 0; k < el.dom7Listeners.length; k += 1) { | ||
if (listener) { | ||
if (el.dom7Listeners[k].listener === listener) { | ||
el.removeEventListener(events[i], el.dom7Listeners[k].proxyListener, capture); | ||
} | ||
} else if (el.dom7Listeners[k].type === events[i]) { | ||
el.removeEventListener(events[i], el.dom7Listeners[k].proxyListener, capture); | ||
} | ||
} | ||
} | ||
this[j].removeEventListener(events[i], listener, capture); | ||
} else if (this[j].dom7LiveListeners) { | ||
for (let k = 0; k < this[j].dom7LiveListeners.length; k += 1) { | ||
if (this[j].dom7LiveListeners[k].listener === listener) { | ||
this[j].removeEventListener(events[i], this[j].dom7LiveListeners[k].liveListener, capture); | ||
} else if (el.dom7LiveListeners) { | ||
for (let k = 0; k < el.dom7LiveListeners.length; k += 1) { | ||
if (listener) { | ||
if (el.dom7LiveListeners[k].listener === listener) { | ||
el.removeEventListener(events[i], el.dom7LiveListeners[k].proxyListener, capture); | ||
} | ||
} else if (el.dom7Listeners[k].type === events[i]) { | ||
el.removeEventListener(events[i], el.dom7LiveListeners[k].proxyListener, capture); | ||
} | ||
@@ -256,3 +304,4 @@ } | ||
function proxy(e) { | ||
listener.call(e.target, e); | ||
const eventData = e.target.dom7EventData || []; | ||
listener.apply(this, eventData); | ||
dom.off(eventName, targetSelector, proxy, capture); | ||
@@ -262,4 +311,5 @@ } | ||
}, | ||
trigger(eventName, eventData) { | ||
const events = eventName.split(' '); | ||
trigger(...args) { | ||
const events = args[0].split(' '); | ||
const eventData = args[1]; | ||
for (let i = 0; i < events.length; i += 1) { | ||
@@ -275,3 +325,6 @@ for (let j = 0; j < this.length; j += 1) { | ||
} | ||
this[j].dom7EventData = args.filter((data, dataIndex) => dataIndex > 0); | ||
this[j].dispatchEvent(evt); | ||
this[j].dom7EventData = []; | ||
delete this[j].dom7EventData; | ||
} | ||
@@ -278,0 +331,0 @@ } |
@@ -0,1 +1,2 @@ | ||
import Dom7 from './dom7-class'; | ||
import $ from './$'; | ||
@@ -2,0 +3,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5270
447223