From 1e7820e1202452353550c2094da9cc883b9cefb0 Mon Sep 17 00:00:00 2001 From: Dmitry Korobkin Date: Thu, 22 May 2014 13:34:39 +0400 Subject: [PATCH] build 0.4.7 --- dev/jscore-ie10.js | 8 ++++++ dev/jscore-ie9.js | 52 ++++++------------------------------- dev/jscore-polyfill-ie10.js | 8 ++++++ dev/jscore-polyfill-ie9.js | 52 ++++++------------------------------- dev/jscore-polyfill.js | 52 ++++++------------------------------- dev/jscore.js | 52 ++++++------------------------------- min/jscore-ie10.js | 2 +- min/jscore-ie9.js | 2 +- min/jscore-polyfill-ie10.js | 2 +- min/jscore-polyfill-ie9.js | 2 +- min/jscore-polyfill.js | 2 +- min/jscore.js | 2 +- 12 files changed, 54 insertions(+), 182 deletions(-) diff --git a/dev/jscore-ie10.js b/dev/jscore-ie10.js index 15f5923..b9a845e 100644 --- a/dev/jscore-ie10.js +++ b/dev/jscore-ie10.js @@ -54,6 +54,14 @@ if (!Object.is) { }; } +//IE10+ +if (!Object.setPrototypeOf) { + Object.setPrototypeOf = function (object, prototype) { + object.__proto__ = prototype; + return object; + }; +} + if (!Array.from) { Array.from = function (iterable, func, boundThis) { if (!Object(iterable).length) { diff --git a/dev/jscore-ie9.js b/dev/jscore-ie9.js index e9d548f..fdd583f 100644 --- a/dev/jscore-ie9.js +++ b/dev/jscore-ie9.js @@ -54,6 +54,14 @@ if (!Object.is) { }; } +//IE10+ +if (!Object.setPrototypeOf) { + Object.setPrototypeOf = function (object, prototype) { + object.__proto__ = prototype; + return object; + }; +} + if (!Array.from) { Array.from = function (iterable, func, boundThis) { if (!Object(iterable).length) { @@ -1367,51 +1375,7 @@ window.FormData || (window.FormData = new function () { }); history.pushState || new function () { -/* - console.log('history polyfill'); - - var proto = history.constructor.prototype, - loc = window.location, - states = {}, - state = null, - skip = {}; - - function onPopState() { - var event = document.createEvent('CustomEvent'); - event.initEvent('popstate', false, false); - event.state = state; - window.dispatchEvent(event); - } - - proto.pushState = function (state, title, hash) { - if (!hash.startsWith('#')) { - hash = '#' + hash; - } - states[hash] = state; - skip[hash] = true; - loc.hash = hash; - }; - proto.replaceState = function (state, title, hash) { - throw Error('history.replaceState not implemented'); - }; - - Object.defineProperty(proto, 'state', { - get: function () { - return state; - } - }); - - window.addEventListener('hashchange', function (event) { - var hash = loc.hash; - if (skip[hash]) { - delete skip[hash]; - } else { - state = states[hash] || null; - onPopState(); - } - }); -*/ }; window.lib = {}; diff --git a/dev/jscore-polyfill-ie10.js b/dev/jscore-polyfill-ie10.js index 447d883..d2b587b 100644 --- a/dev/jscore-polyfill-ie10.js +++ b/dev/jscore-polyfill-ie10.js @@ -54,6 +54,14 @@ if (!Object.is) { }; } +//IE10+ +if (!Object.setPrototypeOf) { + Object.setPrototypeOf = function (object, prototype) { + object.__proto__ = prototype; + return object; + }; +} + if (!Array.from) { Array.from = function (iterable, func, boundThis) { if (!Object(iterable).length) { diff --git a/dev/jscore-polyfill-ie9.js b/dev/jscore-polyfill-ie9.js index 71f8ad7..68a6293 100644 --- a/dev/jscore-polyfill-ie9.js +++ b/dev/jscore-polyfill-ie9.js @@ -54,6 +54,14 @@ if (!Object.is) { }; } +//IE10+ +if (!Object.setPrototypeOf) { + Object.setPrototypeOf = function (object, prototype) { + object.__proto__ = prototype; + return object; + }; +} + if (!Array.from) { Array.from = function (iterable, func, boundThis) { if (!Object(iterable).length) { @@ -1367,51 +1375,7 @@ window.FormData || (window.FormData = new function () { }); history.pushState || new function () { -/* - console.log('history polyfill'); - - var proto = history.constructor.prototype, - loc = window.location, - states = {}, - state = null, - skip = {}; - - function onPopState() { - var event = document.createEvent('CustomEvent'); - event.initEvent('popstate', false, false); - event.state = state; - window.dispatchEvent(event); - } - - proto.pushState = function (state, title, hash) { - if (!hash.startsWith('#')) { - hash = '#' + hash; - } - states[hash] = state; - skip[hash] = true; - loc.hash = hash; - }; - proto.replaceState = function (state, title, hash) { - throw Error('history.replaceState not implemented'); - }; - - Object.defineProperty(proto, 'state', { - get: function () { - return state; - } - }); - - window.addEventListener('hashchange', function (event) { - var hash = loc.hash; - if (skip[hash]) { - delete skip[hash]; - } else { - state = states[hash] || null; - onPopState(); - } - }); -*/ }; };//the end of jsCore diff --git a/dev/jscore-polyfill.js b/dev/jscore-polyfill.js index e9d29b2..d64eb06 100644 --- a/dev/jscore-polyfill.js +++ b/dev/jscore-polyfill.js @@ -425,6 +425,14 @@ if (!Object.is) { }; } +//IE10+ +if (!Object.setPrototypeOf) { + Object.setPrototypeOf = function (object, prototype) { + object.__proto__ = prototype; + return object; + }; +} + if (!Array.from) { Array.from = function (iterable, func, boundThis) { if (!Object(iterable).length) { @@ -2409,51 +2417,7 @@ window.getComputedStyle || (window.getComputedStyle = new function () { }); history.pushState || new function () { -/* - console.log('history polyfill'); - - var proto = history.constructor.prototype, - loc = window.location, - states = {}, - state = null, - skip = {}; - - function onPopState() { - var event = document.createEvent('CustomEvent'); - event.initEvent('popstate', false, false); - event.state = state; - window.dispatchEvent(event); - } - proto.pushState = function (state, title, hash) { - if (!hash.startsWith('#')) { - hash = '#' + hash; - } - states[hash] = state; - skip[hash] = true; - loc.hash = hash; - }; - - proto.replaceState = function (state, title, hash) { - throw Error('history.replaceState not implemented'); - }; - - Object.defineProperty(proto, 'state', { - get: function () { - return state; - } - }); - - window.addEventListener('hashchange', function (event) { - var hash = loc.hash; - if (skip[hash]) { - delete skip[hash]; - } else { - state = states[hash] || null; - onPopState(); - } - }); -*/ }; };//the end of jsCore diff --git a/dev/jscore.js b/dev/jscore.js index 1f30728..bed9346 100644 --- a/dev/jscore.js +++ b/dev/jscore.js @@ -425,6 +425,14 @@ if (!Object.is) { }; } +//IE10+ +if (!Object.setPrototypeOf) { + Object.setPrototypeOf = function (object, prototype) { + object.__proto__ = prototype; + return object; + }; +} + if (!Array.from) { Array.from = function (iterable, func, boundThis) { if (!Object(iterable).length) { @@ -2409,51 +2417,7 @@ window.getComputedStyle || (window.getComputedStyle = new function () { }); history.pushState || new function () { -/* - console.log('history polyfill'); - - var proto = history.constructor.prototype, - loc = window.location, - states = {}, - state = null, - skip = {}; - - function onPopState() { - var event = document.createEvent('CustomEvent'); - event.initEvent('popstate', false, false); - event.state = state; - window.dispatchEvent(event); - } - - proto.pushState = function (state, title, hash) { - if (!hash.startsWith('#')) { - hash = '#' + hash; - } - states[hash] = state; - skip[hash] = true; - loc.hash = hash; - }; - proto.replaceState = function (state, title, hash) { - throw Error('history.replaceState not implemented'); - }; - - Object.defineProperty(proto, 'state', { - get: function () { - return state; - } - }); - - window.addEventListener('hashchange', function (event) { - var hash = loc.hash; - if (skip[hash]) { - delete skip[hash]; - } else { - state = states[hash] || null; - onPopState(); - } - }); -*/ }; window.lib = {}; diff --git a/min/jscore-ie10.js b/min/jscore-ie10.js index d77102c..eeee51d 100644 --- a/min/jscore-ie10.js +++ b/min/jscore-ie10.js @@ -1,2 +1,2 @@ //jsCore v0.4.7 IE10+ github.com/Octane/jsCore -!function(n,t,e,i,r,o,a,u,s,c,f,l,h,m,p,d,g){"use strict";function v(){}(function(){var n=e.create({});return n[0]=null,n.hasOwnProperty(0)})()||new function(){var n=e.create;e.create=function(t,i){var r=n(t,i);return e.hasOwnProperty.call(r,0)||(e.defineProperty(r,0,{configurable:!0}),delete r[0]),r}},e.assign||(e.assign=function(n){return i.prototype.slice.call(arguments,1).forEach(function(t){e.keys(t).forEach(function(e){n[e]=t[e]})}),n}),e.is||(e.is=function(n,t){return 0===n&&0===t?1/n===1/t:n!==n?t!==t:n===t}),i.from||(i.from=function(n,t,r){return e(n).length?t?i.map(n,t,r):i.slice(n,0):[]}),i.of||(i.of=function(){return i.from(arguments)}),i.prototype.find||(i.prototype.find=function(n,t){for(var e,i=this.length,r=0;i>r;){if(r in this&&(e=this[r],n.call(t,e,r,this)))return e;r++}return void 0}),i.prototype.findIndex||(i.prototype.findIndex=function(n,t){for(var e,i=this.length,r=0;i>r;){if(r in this&&(e=this[r],n.call(t,e,r,this)))return r;r++}return-1}),i.prototype.fill||(i.prototype.fill=function(n,t,e){var i,r=this.length;t=a(t)||0,e=2 in arguments?a(e)||0:r,i=0>t?f.max(r+t,0):f.min(t,r),e=0>e?f.max(r+e,0):f.min(e,r);for(;e>i;)this[i]=n,i++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(n,t){return t||(t=0),this.indexOf(n,t)==t}),o.prototype.endsWith||(o.prototype.endsWith=function(n,t){var e;return t=t||this.length,t-=n.length,e=this.lastIndexOf(n),-1!=e&&e==t}),o.prototype.contains||(o.prototype.contains=function(n,t){return-1!=this.indexOf(n,t||0)}),o.prototype.repeat||(o.prototype.repeat=function(n){return new i(n+1).join(this)}),a.isFinite||(a.isFinite=function(n){return"number"==typeof n&&m(n)}),a.isInteger||(a.isInteger=function(n){return"number"==typeof n&&m(n)&&n>-9007199254740992&&9007199254740992>n&&f.floor(n)==n}),a.isNaN||(a.isNaN=function(n){return"number"==typeof n&&p(n)}),a.parseInt||(a.parseInt=g),a.parseFloat||(a.parseFloat=d),f.trunc||(f.trunc=function(n){return n=a(n),p(n)||0===n||!a.isFinite(n)?n:f.sign(n)*f.floor(f.abs(n))}),f.sign||(f.sign=function(n){return 0===n||p(n)?n:(n>0)-(0>n)}),new function(){function n(n,t){var e=t[0];switch(t.length){case 1:return n.call(e);case 2:return n.call(e,t[1]);case 3:return n.call(e,t[1],t[2])}return n.apply(e,i.prototype.slice.call(t,1))}function t(t){return function(){return n(t,arguments)}}function r(n,e){return e.reduce(function(e,i){return e[i]=t(n[i]),e},{})}function a(n,t){e.keys(t).forEach(function(e){e in n||(n[e]=t[e])})}a(i,r(i.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,r(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},n.Set||(n.Set=new function(){function n(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return e.assign(n.prototype,{size:0,add:function(n){this.has(n)||(this.size=i.push(this,n))},has:function(n){return-1!=i.findIndex(this,function(t){return e.is(n,t)})},"delete":function(n){var t=i.findIndex(this,function(t){return e.is(n,t)});return-1==t?!1:(i.splice(this,t,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),n}),n.Map||(n.Map=new function(){function n(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var t=0,r=1;return e.assign(n.prototype,{size:0,_getPair:function(n){return i.find(this,function(i){return e.is(n,i[t])})},set:function(n,t){var e=this._getPair(n);e?e[r]=t:this.size=i.push(this,[n,t])},get:function(n){return e(this._getPair(n))[r]},has:function(n){return u(this._getPair(n))},"delete":function(n){var r=i.findIndex(this,function(i){return e.is(n,i[t])});return-1==r?!1:(i.splice(this,r,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),n}),n.WeakSet||(n.WeakSet=new function(){function n(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function t(n){return this===n}function r(n){if(e(n)!==n)throw h("Invalid value used in weak set");return n}return e.assign(n.prototype,{add:function(n){this.has(r(n))||i.push(this,n)},has:function(n){return-1!=i.findIndex(this,t,r(n))},"delete":function(n){var e=i.findIndex(this,t,r(n));return-1==e?!1:(i.splice(this,e,1),!0)},clear:function(){i.splice(this,0,this.length)}}),n}),n.WeakMap||(n.WeakMap=new function(){function n(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function t(n){return this===n[o]}function r(n){if(e(n)!==n)throw h("Invalid value used as weak map key");return n}var o=0,a=1;return e.assign(n.prototype,{_getPair:function(n){return i.find(this,t,r(n))},set:function(n,t){var e=this._getPair(n);e?e[a]=t:i.push(this,[n,t])},get:function(n){return e(this._getPair(n))[a]},has:function(n){return u(this._getPair(n))},"delete":function(n){var e=i.findIndex(this,t,r(n));return-1==e?!1:(i.splice(this,e,1),!0)},clear:function(){i.splice(this,0,this.length)}}),n}),n.setImmediate||e.assign(n,new function(){function t(t){var e=t[0];switch(t.length){case 1:return e();case 2:return e(t[1]);case 3:return e(t[1],t[2])}return e.apply(n,i.prototype.slice.call(t,1))}function e(n){var e,i=n.data;"string"==typeof i&&i.startsWith(u)&&(e=o[i],e&&(delete o[i],t(e)))}var r=0,o={},a=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var t=r++,i=u+t;return o[i]=arguments,a&&(a=!1,n.addEventListener("message",e)),n.postMessage(i,"*"),t},clearImmediate:function(n){delete o[u+n]}}}),n.Promise||(n.Promise=new function(){function t(t){return i(t)?t:new f(function(e,i){n.setImmediate(function(){try{t.then(e,i)}catch(n){i(n)}})})}function i(n){return n instanceof f}function r(n){return e(n)===n&&"function"==typeof n.then}function o(n){return n._fulfilled||n._rejected}function a(n){return n.every(o)}function u(n){return n}function s(n){throw n}function c(n){n()}function f(n){e.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(n)}return e.assign(f,{resolve:function(n){return r(n)?t(n):new f(function(t){t(n)})},reject:function(n){return new f(function(t,e){e(n)})},race:function(n){return new f(function(e,i){n.forEach(function(n){t(n).then(e,i)})})},all:function(n){return new f(function(e,i){var r=[];n=n.map(t),n.forEach(function(t,o){t.then(function(t){r[o]=t,a(n)&&e(r)},i)})})}}),e.assign(f.prototype,{_resolve:function(n){function t(n){i._fulfill(n)}function e(n){i._reject(n)}var i=this;try{n(t,e)}catch(r){o(i)||e(r)}},_fulfill:function(n){o(this)||(this._fulfilled=!0,this._value=n,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(n){o(this)||(this._rejected=!0,this._reason=n,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(n,t){this._onFulfilled.push(n),this._onRejected.push(t)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(e,i){var o=this;return new f(function(a,c){function f(){n.setImmediate(function(){var n;try{n=e(o._value)}catch(i){return void c(i)}r(n)?t(n).then(a,c):a(n)})}function l(){n.setImmediate(function(){var n;try{n=i(o._reason)}catch(e){return void c(e)}r(n)?t(n).then(a,c):a(n)})}e=e||u,i=i||s,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(n){return this.then(void 0,n)}}),f}),n.requestAnimationFrame||e.assign(n,{requestAnimationFrame:[n.msRequestAnimationFrame,n.mozRequestAnimationFrame,n.webkitRequestAnimationFrame,new function(){var t=60,e=1e3/t,i=s.now(),r=i;return function(t){var o=s.now(),a=f.max(0,e-(o-r)),u=o+a;return r=u,n.setTimeout(function(){t(u-i)},a)}}].find(u),cancelAnimationFrame:[n.mozCancelAnimationFrame,n.webkitCancelAnimationFrame,n.cancelRequestAnimationFrame,n.msCancelRequestAnimationFrame,n.mozCancelRequestAnimationFrame,n.webkitCancelRequestAnimationFrame,n.clearTimeout].find(u)}),"dataset"in t.documentElement||e.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function n(n){return n.charAt(1).toUpperCase()}function t(t){return t.substr(5).replace(/-./g,n)}function r(n){return{get:function(){return n.value},set:function(t){n.value=o(t)}}}function a(n,o){return i.forEach(o,function(i){var o=i.name.toLowerCase();o.startsWith("data-")&&e.defineProperty(n,t(o),r(i))}),n}return function(){return a(new v,this.attributes)}}}),"children"in t.createDocumentFragment()||new function(){function n(n){n in i||e.defineProperty(i,n,{get:o[n]})}var i,r=1,o={firstElementChild:function(){for(var n=this.firstChild;n&&r!=n.nodeType;)n=n.nextSibling;return n},lastElementChild:function(){for(var n=this.lastChild;n&&r!=n.nodeType;)n=n.previousSibling;return n},nextElementSibling:function(){var n=this;do n=n.nextSibling;while(n&&r!=n.nodeType);return n},previousElementSibling:function(){var n=this;do n=n.previousSibling;while(n&&r!=n.nodeType);return n},childElementCount:function(){return this.children.length},children:new function(){function n(){}return n.prototype.item=function(n){return this[n]||null},function(){for(var t,e=new n,i=this.childNodes,o=i.length,a=0,u=0;o>a;)t=i[a],r==t.nodeType&&(e[u++]=t),a++;return e.length=u,e}}};i=HTMLElement.prototype,e.keys(o).forEach(n),[t.constructor,t.createDocumentFragment().constructor].forEach(function(t){i=t.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(n)})},"append"in t.createDocumentFragment()||new function(){function n(n,t,e){return-1!=i.indexOf(n.querySelectorAll(e),t)}function r(n){var e,r,o,a=n.length;if(1==a)return e=n[0],"string"==typeof e?t.createTextNode(e):e;for(r=t.createDocumentFragment(),n=i.from(n),o=0;a>o;)e=n[o],"string"==typeof e&&(e=t.createTextNode(e)),r.appendChild(e),o++;return r}function o(n){n in s||(s[n]=c[n])}var a=1,s=HTMLElement.prototype,c={before:function(){var n=this.parentNode;n&&n.insertBefore(r(arguments),this)},after:function(){var n,t,e=this.parentNode;e&&(t=r(arguments),n=this.nextSibling,n?e.insertBefore(t,n):e.appendChild(t))},replace:function(){var n=this.parentNode;n&&n.replaceChild(r(arguments),this)},remove:function(){var n=this.parentNode;n&&n.removeChild(this)},append:function(){this.appendChild(r(arguments))},prepend:function(){this.insertBefore(r(arguments),this.firstChild)},query:function(n){return this.querySelector(n)},queryAll:function(n){return this.querySelectorAll(n)},matches:[s.matchesSelector,s.oMatchesSelector,s.msMatchesSelector,s.mozMatchesSelector,s.webkitMatchesSelector,function(e){var i,r;return this===t?!1:(r=this.parentNode)?(a==r.nodeType&&(r=r.ownerDocument),n(r,this,e)):(r=t.createDocumentFragment(),r.appendChild(this),i=n(r,this,e),void r.removeChild(this))}].find(u)};e.keys(c).forEach(o),s=t.constructor.prototype,["query","queryAll"].forEach(o),s=t.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},n.lib={},lib.classExtends=function(n,t){n.prototype=e.create(t.prototype),n.prototype.constructor=n,n.Super=t},lib.array={count:function(n){return i.reduce(n,function(n){return n+1},0)},contains:function(n,t,e){return-1!=i.indexOf(n,t,e)},unique:function(n){for(var t,e=[],i=n.length,r=0,o=0;i>r;)t=n[r],-1==e.indexOf(t)&&(e[o++]=t),r++;return e},all:function(n,t,i){var r=e(n).length;if(!r)return!1;for(;r--;){if(!(r in n))return!1;if(!t.call(i,n[r]))return!1}return!0},refine:function(n){return i.reduce(n,function(n,t){return n.push(t),n},[])},range:function(n,t){var e=[];1 in arguments||(t=n,n=0);for(;t>n;)e.push(n),n++;return e},shuffle:function(n){for(var t,e,r=i.from(n),o=r.length;o--;)t=f.floor(f.random()*(o+1)),e=r[t],r[t]=r[o],r[o]=e;return r},remove:function(n,t){var e=i.indexOf(n,t);return-1!=e&&i.splice(n,e,1)}},lib.date=new function(){var n=this,t=[31,28,31,30,31,30,31,31,30,31,30,31];n.isLeapYear=function(n){return arguments.length||(n=new s),n instanceof s&&(n=n.getFullYear()),n%4==0&&n%100!=0||n%400==0},n.getMonthLength=function(e,i){return arguments.length||(e=new s),e instanceof s&&(i=e.getFullYear(),e=e.getMonth()),1==e&&n.isLeapYear(i)?29:t[e]}},lib.html={parse:function(n){var e=t.createElement("div"),i=t.createDocumentFragment();for(e.innerHTML=n;e.hasChildNodes();)i.appendChild(e.firstChild);return i},escape:function(n){var e=t.createElement("div");return e.appendChild(t.createTextNode(n)),e.innerHTML},unescape:function(n){var e=t.createElement("div");return e.innerHTML=n,e.textContent}},lib.Template=new function(){function n(n){this.template=n}return n.match=function(n,t){return i.isArray(n)&&(n=n.join("")),e.keys(t).reduceRight(function(n,e){var i=t[e];return n.split("{"+e.toUpperCase()+"}").join(i)},n)},n.prototype.match=function(t){return n.match(this.template,t)},n},lib.I18n=new function(){function n(n){this.messageBundle=this[n]}function t(n,t){this.locale=n,this[n]=t}function e(e,i){function r(n,t){return n in r.messageBundle&&(n=r.messageBundle[n]),t?lib.Template.match(n,t):n}return r.add=t,r.use=n,r.add(e,i),r.use(e),r}return e},lib.css=new function(){var r,o=this;o.prefix=r=new function(){var n={},e=["ms","O","Webkit","Moz"],i=new function(){var n=t.documentElement.style,e=n.constructor.prototype;return"top"in e?e:n};return function(t){var r,o,a;if(t in n)return n[t];if(t in i)return n[t]=t,t;for(o=t.charAt(0).toUpperCase()+t.slice(1),a=e.length;a--;)if(r=e[a]+o,r in i)return n[t]=r,r;return void(n[t]=void 0)}},new function(){var n={animation:["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"],transition:["Delay","Duration","Property","TimingFunction"],transform:["Origin","Style"]};e.keys(n).forEach(function(t){var e=r(t);e&&(o[t]=e,n[t].forEach(function(n){o[t+n]=e+n}))})},o.getAnimationNames=new function(){function n(n){return"none"!=n}var t=/,\s*/;return function(e){var i=e[o.animationName];return i?i.split(t).filter(n):[]}},o.set=new function(){function t(n,t){e.keys(t).forEach(function(e){n[r(e)]=t[e]})}return o.transition||o.animation?function(e,i){var r=n.getComputedStyle(e),a=o.getAnimationNames(r);return t(e.style,i),lib.event.awaitTransAnimEnd(e,a)}:function(n,e){return t(n.style,e),Promise.resolve(n)}},o.get=function(t,e){var o=n.getComputedStyle(t);return i.isArray(e)?e.reduce(function(n,t){return n[t]=o[r(t)],n},{}):o[r(e)]},o.getTransitionTime=o.transition?new function(){function n(n){return n.split(",").map(function(n){return a.parseFloat(n)||0})}function t(n,t){for(var e,i=0,r=f.max(t.length,n.length),o=0;r>o;)e=(n[o]||0)+(t[o]||0),e>i&&(i=e),o++;return f.ceil(1e3*i)}return function(e){return t(n(e[o.transitionDelay]),n(e[o.transitionDuration]))}}:function(){return 0}},lib.event=e.assign({preventDefault:function(n){n.preventDefault()},stopPropagation:function(n){n.stopPropagation()}},new function(){function n(n){n.eventTypes.forEach(function(t){n.element.removeEventListener(t,n.callback)})}function t(n,t,e,i){var r;return 3==arguments.length&&(i=e,e=t,t=void 0),t?(t+=","+t+" *",r=function(e){var r=e.target;r.matches&&r.matches(t)&&(i.handleEvent?i.handleEvent(e):i.call(n,e))}):r=i,"string"==typeof e&&(e=e.split(/[\s,]+/)),e.forEach(function(t){n.addEventListener(t,r)}),{element:n,eventTypes:e,callback:r}}function e(e,i,r,o){function a(t){n(u),o.handleEvent?o.handleEvent(t):o.call(e,t)}var u;3==arguments.length&&(o=r,r=i,i=void 0),u=t(e,i,r,a)}function i(n,t,i){return 2==arguments.length&&(i=t,t=void 0),new Promise(function(r){e(n,t,i,r)})}return{off:n,on:t,one:e,when:i}},new function(){function t(n,t){return n?t.reduce(function(t,e){return-1==n.indexOf(e)&&t.push(e),t},[]):t}function e(n,t){var e=n.indexOf(t);return-1!=e&&n.splice(e,1),n.length}function i(n,t){return t||(t=a.getAnimationNames(n)),t.length?new Promise(function(i){function r(o){o.target!=n||e(t,o.animationName)||(n.removeEventListener(c,r),i(n))}n.addEventListener(c,r)}):Promise.resolve(n)}function r(t,e){var i;return e||(e=n.getComputedStyle(t)),i=a.getTransitionTime(e),i?new Promise(function(e){n.setTimeout(function(){e(t)},i)}):Promise.resolve(t)}function o(e,o){var u=n.getComputedStyle(e),s=a.getAnimationNames(u);return s=t(o,s),Promise.all([i(e,s),r(e,u)]).then(function(){return e})}var a=lib.css,u=a.animation,s=a.transition,c={animation:"animationend",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"}[u],f=Promise.resolve;return{animationEnd:c,animationStart:{animation:"animationstart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"}[u],animationIteration:{animation:"animationiteration",MozAnimation:"mozAnimationIteration",WebkitAnimation:"webkitAnimationIteration"}[u],transitionEnd:{transition:"transitionend",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd"}[s],awaitAnimationEnd:u?i:f,awaitTransitionEnd:s?r:f,awaitTransAnimEnd:u||s?o:f}}),lib.dom=e.assign({ready:function(){return"complete"==t.readyState?Promise.resolve():lib.event.when(t,"DOMContentLoaded")}},new function(){function t(n,t,e){var i=n.className,r=n.classList;return e.forEach(function(n){r[t](n)}),i!=n.className}function e(n,t){return o(t[0],n,i.slice(t,1))}var r=lib.css,o=r.animation||r.transition?function(e,i,o){var a=n.getComputedStyle(e),u=r.getAnimationNames(a);return t(e,i,o)?lib.event.awaitTransAnimEnd(e,u):Promise.resolve(e)}:function(n,e,i){return t(n,e,i),Promise.resolve(n)};return{addClass:function(){return e("add",arguments)},removeClass:function(){return e("remove",arguments)},toggleClass:function(){return e("toggle",arguments)}}}),lib.request=new function(){function i(n,t){return encodeURIComponent(n)+"="+encodeURIComponent(t)}function r(n){return e.keys(n).reduce(function(t,e){return t.push(i(e,n[e])),t},[]).join("&")}function o(n){n.onload=null,n.onerror=null,n.ontimeout=null}function a(t){var i=(t.method||"GET").toUpperCase(),a=t.url||n.location.href,s=t.data,c=t.userName||"",f=t.password||"",h=t.timeout||0,m=!1!==t.async,p=!1!==t.caching,d=!0===t.credentials,g=t.mimeType,v={"X-Requested-With":"XMLHttpRequest"};return e(s)===s&&(s instanceof FormData?v["Content-Type"]="multipart/form-data":s=r(s)),"POST"==i?v["Content-Type"]=v["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8":(p||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(p?"?":"&")+s),s=null),t.headers&&e.assign(v,t.headers),new Promise(function(n,t){function r(){o(this),this.status>=200&&this.status<400?n(this):t(new l(this.statusText))}function u(){o(this),t(new l(this.statusText))}function p(){o(this),t(new l("time is out"))}!new function(){var n=new XMLHttpRequest;n.open(i,a,m,c,f),d&&(n.withCredentials=!0),g&&n.overrideMimeType(g),e.keys(v).forEach(function(t){n.setRequestHeader(t,v[t])}),n.onload=r,n.onerror=u,h&&(n.timeout=h,n.ontimeout=p),n.send(s)}})}var u=new function(){var n={};return function(){var t=f.random().toString().slice(2);return n[t]?u():(n[t]=1,t)}};return e.assign(a,{toQueryParam:i,toQueryString:r,get:function(n){return"string"==typeof n&&(n={url:n}),n.method="GET",a(n)},post:function(n){return n.method="POST",a(n)},json:function(n){return a.get(n).then(function(n){return JSON.parse(n.responseText)})},jsonp:function(n){return a.script(n)},script:function(i){var a,s,c;return"string"==typeof i&&(i={url:i}),a=i.url||n.location.href,s=i.data,c=i.caching!==!1,e(s)===s&&(s=r(s)),c||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(c?"?":"&")+s),new Promise(function(n,i){t.head.appendChild(e.assign(t.createElement("script"),{onload:function(){o(this),this.remove(),n()},onerror:function(){o(this),this.remove(),i(new l("Could not load script"))},async:!0,defer:!0,src:a}))})}}),a},lib.cookie=new function(){function n(n){return l(f.cookie.replace(new c("(?:(?:^|.*;)\\s*"+h(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function e(n,t,e){e=e||{};var i="",r=e.end,u=e.path,c=e.domain,l=e.secure;if(!n||/^(?:expires|max\-age|path|domain|secure)$/i.test(n))return!1;if(r)switch(r.constructor){case a:i=1/0===r?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case o:i="; expires="+r;break;case s:i="; expires="+r.toUTCString()}return f.cookie=h(n)+"="+h(t)+i+(c?"; domain="+c:"")+(u?"; path="+u:"")+(l?"; secure":""),!0}function i(n,t){t=t||{};var e=t.path,i=t.domain;return n&&r(n)?(f.cookie=h(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(e?"; path="+e:""),!0):!1}function r(n){return new c("(?:^|;\\s*)"+h(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(f.cookie)}function u(){return f.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/).map(l)}var f=t,l=decodeURIComponent,h=encodeURIComponent;return{get:n,set:e,has:r,remove:i,keys:u}}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file +!function(n,t,e,r,i,o,a,u,s,c,f,l,h,m,p,d,g){"use strict";function v(){}(function(){var n=e.create({});return n[0]=null,n.hasOwnProperty(0)})()||new function(){var n=e.create;e.create=function(t,r){var i=n(t,r);return e.hasOwnProperty.call(i,0)||(e.defineProperty(i,0,{configurable:!0}),delete i[0]),i}},e.assign||(e.assign=function(n){return r.prototype.slice.call(arguments,1).forEach(function(t){e.keys(t).forEach(function(e){n[e]=t[e]})}),n}),e.is||(e.is=function(n,t){return 0===n&&0===t?1/n===1/t:n!==n?t!==t:n===t}),e.setPrototypeOf||(e.setPrototypeOf=function(n,t){return n.__proto__=t,n}),r.from||(r.from=function(n,t,i){return e(n).length?t?r.map(n,t,i):r.slice(n,0):[]}),r.of||(r.of=function(){return r.from(arguments)}),r.prototype.find||(r.prototype.find=function(n,t){for(var e,r=this.length,i=0;r>i;){if(i in this&&(e=this[i],n.call(t,e,i,this)))return e;i++}return void 0}),r.prototype.findIndex||(r.prototype.findIndex=function(n,t){for(var e,r=this.length,i=0;r>i;){if(i in this&&(e=this[i],n.call(t,e,i,this)))return i;i++}return-1}),r.prototype.fill||(r.prototype.fill=function(n,t,e){var r,i=this.length;t=a(t)||0,e=2 in arguments?a(e)||0:i,r=0>t?f.max(i+t,0):f.min(t,i),e=0>e?f.max(i+e,0):f.min(e,i);for(;e>r;)this[r]=n,r++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(n,t){return t||(t=0),this.indexOf(n,t)==t}),o.prototype.endsWith||(o.prototype.endsWith=function(n,t){var e;return t=t||this.length,t-=n.length,e=this.lastIndexOf(n),-1!=e&&e==t}),o.prototype.contains||(o.prototype.contains=function(n,t){return-1!=this.indexOf(n,t||0)}),o.prototype.repeat||(o.prototype.repeat=function(n){return new r(n+1).join(this)}),a.isFinite||(a.isFinite=function(n){return"number"==typeof n&&m(n)}),a.isInteger||(a.isInteger=function(n){return"number"==typeof n&&m(n)&&n>-9007199254740992&&9007199254740992>n&&f.floor(n)==n}),a.isNaN||(a.isNaN=function(n){return"number"==typeof n&&p(n)}),a.parseInt||(a.parseInt=g),a.parseFloat||(a.parseFloat=d),f.trunc||(f.trunc=function(n){return n=a(n),p(n)||0===n||!a.isFinite(n)?n:f.sign(n)*f.floor(f.abs(n))}),f.sign||(f.sign=function(n){return 0===n||p(n)?n:(n>0)-(0>n)}),new function(){function n(n,t){var e=t[0];switch(t.length){case 1:return n.call(e);case 2:return n.call(e,t[1]);case 3:return n.call(e,t[1],t[2])}return n.apply(e,r.prototype.slice.call(t,1))}function t(t){return function(){return n(t,arguments)}}function i(n,e){return e.reduce(function(e,r){return e[r]=t(n[r]),e},{})}function a(n,t){e.keys(t).forEach(function(e){e in n||(n[e]=t[e])})}a(r,i(r.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,i(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},n.Set||(n.Set=new function(){function n(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return e.assign(n.prototype,{size:0,add:function(n){this.has(n)||(this.size=r.push(this,n))},has:function(n){return-1!=r.findIndex(this,function(t){return e.is(n,t)})},"delete":function(n){var t=r.findIndex(this,function(t){return e.is(n,t)});return-1==t?!1:(r.splice(this,t,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),n}),n.Map||(n.Map=new function(){function n(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var t=0,i=1;return e.assign(n.prototype,{size:0,_getPair:function(n){return r.find(this,function(r){return e.is(n,r[t])})},set:function(n,t){var e=this._getPair(n);e?e[i]=t:this.size=r.push(this,[n,t])},get:function(n){return e(this._getPair(n))[i]},has:function(n){return u(this._getPair(n))},"delete":function(n){var i=r.findIndex(this,function(r){return e.is(n,r[t])});return-1==i?!1:(r.splice(this,i,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),n}),n.WeakSet||(n.WeakSet=new function(){function n(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function t(n){return this===n}function i(n){if(e(n)!==n)throw h("Invalid value used in weak set");return n}return e.assign(n.prototype,{add:function(n){this.has(i(n))||r.push(this,n)},has:function(n){return-1!=r.findIndex(this,t,i(n))},"delete":function(n){var e=r.findIndex(this,t,i(n));return-1==e?!1:(r.splice(this,e,1),!0)},clear:function(){r.splice(this,0,this.length)}}),n}),n.WeakMap||(n.WeakMap=new function(){function n(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function t(n){return this===n[o]}function i(n){if(e(n)!==n)throw h("Invalid value used as weak map key");return n}var o=0,a=1;return e.assign(n.prototype,{_getPair:function(n){return r.find(this,t,i(n))},set:function(n,t){var e=this._getPair(n);e?e[a]=t:r.push(this,[n,t])},get:function(n){return e(this._getPair(n))[a]},has:function(n){return u(this._getPair(n))},"delete":function(n){var e=r.findIndex(this,t,i(n));return-1==e?!1:(r.splice(this,e,1),!0)},clear:function(){r.splice(this,0,this.length)}}),n}),n.setImmediate||e.assign(n,new function(){function t(t){var e=t[0];switch(t.length){case 1:return e();case 2:return e(t[1]);case 3:return e(t[1],t[2])}return e.apply(n,r.prototype.slice.call(t,1))}function e(n){var e,r=n.data;"string"==typeof r&&r.startsWith(u)&&(e=o[r],e&&(delete o[r],t(e)))}var i=0,o={},a=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var t=i++,r=u+t;return o[r]=arguments,a&&(a=!1,n.addEventListener("message",e)),n.postMessage(r,"*"),t},clearImmediate:function(n){delete o[u+n]}}}),n.Promise||(n.Promise=new function(){function t(t){return r(t)?t:new f(function(e,r){n.setImmediate(function(){try{t.then(e,r)}catch(n){r(n)}})})}function r(n){return n instanceof f}function i(n){return e(n)===n&&"function"==typeof n.then}function o(n){return n._fulfilled||n._rejected}function a(n){return n.every(o)}function u(n){return n}function s(n){throw n}function c(n){n()}function f(n){e.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(n)}return e.assign(f,{resolve:function(n){return i(n)?t(n):new f(function(t){t(n)})},reject:function(n){return new f(function(t,e){e(n)})},race:function(n){return new f(function(e,r){n.forEach(function(n){t(n).then(e,r)})})},all:function(n){return new f(function(e,r){var i=[];n=n.map(t),n.forEach(function(t,o){t.then(function(t){i[o]=t,a(n)&&e(i)},r)})})}}),e.assign(f.prototype,{_resolve:function(n){function t(n){r._fulfill(n)}function e(n){r._reject(n)}var r=this;try{n(t,e)}catch(i){o(r)||e(i)}},_fulfill:function(n){o(this)||(this._fulfilled=!0,this._value=n,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(n){o(this)||(this._rejected=!0,this._reason=n,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(n,t){this._onFulfilled.push(n),this._onRejected.push(t)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(e,r){var o=this;return new f(function(a,c){function f(){n.setImmediate(function(){var n;try{n=e(o._value)}catch(r){return void c(r)}i(n)?t(n).then(a,c):a(n)})}function l(){n.setImmediate(function(){var n;try{n=r(o._reason)}catch(e){return void c(e)}i(n)?t(n).then(a,c):a(n)})}e=e||u,r=r||s,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(n){return this.then(void 0,n)}}),f}),n.requestAnimationFrame||e.assign(n,{requestAnimationFrame:[n.msRequestAnimationFrame,n.mozRequestAnimationFrame,n.webkitRequestAnimationFrame,new function(){var t=60,e=1e3/t,r=s.now(),i=r;return function(t){var o=s.now(),a=f.max(0,e-(o-i)),u=o+a;return i=u,n.setTimeout(function(){t(u-r)},a)}}].find(u),cancelAnimationFrame:[n.mozCancelAnimationFrame,n.webkitCancelAnimationFrame,n.cancelRequestAnimationFrame,n.msCancelRequestAnimationFrame,n.mozCancelRequestAnimationFrame,n.webkitCancelRequestAnimationFrame,n.clearTimeout].find(u)}),"dataset"in t.documentElement||e.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function n(n){return n.charAt(1).toUpperCase()}function t(t){return t.substr(5).replace(/-./g,n)}function i(n){return{get:function(){return n.value},set:function(t){n.value=o(t)}}}function a(n,o){return r.forEach(o,function(r){var o=r.name.toLowerCase();o.startsWith("data-")&&e.defineProperty(n,t(o),i(r))}),n}return function(){return a(new v,this.attributes)}}}),"children"in t.createDocumentFragment()||new function(){function n(n){n in r||e.defineProperty(r,n,{get:o[n]})}var r,i=1,o={firstElementChild:function(){for(var n=this.firstChild;n&&i!=n.nodeType;)n=n.nextSibling;return n},lastElementChild:function(){for(var n=this.lastChild;n&&i!=n.nodeType;)n=n.previousSibling;return n},nextElementSibling:function(){var n=this;do n=n.nextSibling;while(n&&i!=n.nodeType);return n},previousElementSibling:function(){var n=this;do n=n.previousSibling;while(n&&i!=n.nodeType);return n},childElementCount:function(){return this.children.length},children:new function(){function n(){}return n.prototype.item=function(n){return this[n]||null},function(){for(var t,e=new n,r=this.childNodes,o=r.length,a=0,u=0;o>a;)t=r[a],i==t.nodeType&&(e[u++]=t),a++;return e.length=u,e}}};r=HTMLElement.prototype,e.keys(o).forEach(n),[t.constructor,t.createDocumentFragment().constructor].forEach(function(t){r=t.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(n)})},"append"in t.createDocumentFragment()||new function(){function n(n,t,e){return-1!=r.indexOf(n.querySelectorAll(e),t)}function i(n){var e,i,o,a=n.length;if(1==a)return e=n[0],"string"==typeof e?t.createTextNode(e):e;for(i=t.createDocumentFragment(),n=r.from(n),o=0;a>o;)e=n[o],"string"==typeof e&&(e=t.createTextNode(e)),i.appendChild(e),o++;return i}function o(n){n in s||(s[n]=c[n])}var a=1,s=HTMLElement.prototype,c={before:function(){var n=this.parentNode;n&&n.insertBefore(i(arguments),this)},after:function(){var n,t,e=this.parentNode;e&&(t=i(arguments),n=this.nextSibling,n?e.insertBefore(t,n):e.appendChild(t))},replace:function(){var n=this.parentNode;n&&n.replaceChild(i(arguments),this)},remove:function(){var n=this.parentNode;n&&n.removeChild(this)},append:function(){this.appendChild(i(arguments))},prepend:function(){this.insertBefore(i(arguments),this.firstChild)},query:function(n){return this.querySelector(n)},queryAll:function(n){return this.querySelectorAll(n)},matches:[s.matchesSelector,s.oMatchesSelector,s.msMatchesSelector,s.mozMatchesSelector,s.webkitMatchesSelector,function(e){var r,i;return this===t?!1:(i=this.parentNode)?(a==i.nodeType&&(i=i.ownerDocument),n(i,this,e)):(i=t.createDocumentFragment(),i.appendChild(this),r=n(i,this,e),void i.removeChild(this))}].find(u)};e.keys(c).forEach(o),s=t.constructor.prototype,["query","queryAll"].forEach(o),s=t.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},n.lib={},lib.classExtends=function(n,t){n.prototype=e.create(t.prototype),n.prototype.constructor=n,n.Super=t},lib.array={count:function(n){return r.reduce(n,function(n){return n+1},0)},contains:function(n,t,e){return-1!=r.indexOf(n,t,e)},unique:function(n){for(var t,e=[],r=n.length,i=0,o=0;r>i;)t=n[i],-1==e.indexOf(t)&&(e[o++]=t),i++;return e},all:function(n,t,r){var i=e(n).length;if(!i)return!1;for(;i--;){if(!(i in n))return!1;if(!t.call(r,n[i]))return!1}return!0},refine:function(n){return r.reduce(n,function(n,t){return n.push(t),n},[])},range:function(n,t){var e=[];1 in arguments||(t=n,n=0);for(;t>n;)e.push(n),n++;return e},shuffle:function(n){for(var t,e,i=r.from(n),o=i.length;o--;)t=f.floor(f.random()*(o+1)),e=i[t],i[t]=i[o],i[o]=e;return i},remove:function(n,t){var e=r.indexOf(n,t);return-1!=e&&r.splice(n,e,1)}},lib.date=new function(){var n=this,t=[31,28,31,30,31,30,31,31,30,31,30,31];n.isLeapYear=function(n){return arguments.length||(n=new s),n instanceof s&&(n=n.getFullYear()),n%4==0&&n%100!=0||n%400==0},n.getMonthLength=function(e,r){return arguments.length||(e=new s),e instanceof s&&(r=e.getFullYear(),e=e.getMonth()),1==e&&n.isLeapYear(r)?29:t[e]}},lib.html={parse:function(n){var e=t.createElement("div"),r=t.createDocumentFragment();for(e.innerHTML=n;e.hasChildNodes();)r.appendChild(e.firstChild);return r},escape:function(n){var e=t.createElement("div");return e.appendChild(t.createTextNode(n)),e.innerHTML},unescape:function(n){var e=t.createElement("div");return e.innerHTML=n,e.textContent}},lib.Template=new function(){function n(n){this.template=n}return n.match=function(n,t){return r.isArray(n)&&(n=n.join("")),e.keys(t).reduceRight(function(n,e){var r=t[e];return n.split("{"+e.toUpperCase()+"}").join(r)},n)},n.prototype.match=function(t){return n.match(this.template,t)},n},lib.I18n=new function(){function n(n){this.messageBundle=this[n]}function t(n,t){this.locale=n,this[n]=t}function e(e,r){function i(n,t){return n in i.messageBundle&&(n=i.messageBundle[n]),t?lib.Template.match(n,t):n}return i.add=t,i.use=n,i.add(e,r),i.use(e),i}return e},lib.css=new function(){var i,o=this;o.prefix=i=new function(){var n={},e=["ms","O","Webkit","Moz"],r=new function(){var n=t.documentElement.style,e=n.constructor.prototype;return"top"in e?e:n};return function(t){var i,o,a;if(t in n)return n[t];if(t in r)return n[t]=t,t;for(o=t.charAt(0).toUpperCase()+t.slice(1),a=e.length;a--;)if(i=e[a]+o,i in r)return n[t]=i,i;return void(n[t]=void 0)}},new function(){var n={animation:["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"],transition:["Delay","Duration","Property","TimingFunction"],transform:["Origin","Style"]};e.keys(n).forEach(function(t){var e=i(t);e&&(o[t]=e,n[t].forEach(function(n){o[t+n]=e+n}))})},o.getAnimationNames=new function(){function n(n){return"none"!=n}var t=/,\s*/;return function(e){var r=e[o.animationName];return r?r.split(t).filter(n):[]}},o.set=new function(){function t(n,t){e.keys(t).forEach(function(e){n[i(e)]=t[e]})}return o.transition||o.animation?function(e,r){var i=n.getComputedStyle(e),a=o.getAnimationNames(i);return t(e.style,r),lib.event.awaitTransAnimEnd(e,a)}:function(n,e){return t(n.style,e),Promise.resolve(n)}},o.get=function(t,e){var o=n.getComputedStyle(t);return r.isArray(e)?e.reduce(function(n,t){return n[t]=o[i(t)],n},{}):o[i(e)]},o.getTransitionTime=o.transition?new function(){function n(n){return n.split(",").map(function(n){return a.parseFloat(n)||0})}function t(n,t){for(var e,r=0,i=f.max(t.length,n.length),o=0;i>o;)e=(n[o]||0)+(t[o]||0),e>r&&(r=e),o++;return f.ceil(1e3*r)}return function(e){return t(n(e[o.transitionDelay]),n(e[o.transitionDuration]))}}:function(){return 0}},lib.event=e.assign({preventDefault:function(n){n.preventDefault()},stopPropagation:function(n){n.stopPropagation()}},new function(){function n(n){n.eventTypes.forEach(function(t){n.element.removeEventListener(t,n.callback)})}function t(n,t,e,r){var i;return 3==arguments.length&&(r=e,e=t,t=void 0),t?(t+=","+t+" *",i=function(e){var i=e.target;i.matches&&i.matches(t)&&(r.handleEvent?r.handleEvent(e):r.call(n,e))}):i=r,"string"==typeof e&&(e=e.split(/[\s,]+/)),e.forEach(function(t){n.addEventListener(t,i)}),{element:n,eventTypes:e,callback:i}}function e(e,r,i,o){function a(t){n(u),o.handleEvent?o.handleEvent(t):o.call(e,t)}var u;3==arguments.length&&(o=i,i=r,r=void 0),u=t(e,r,i,a)}function r(n,t,r){return 2==arguments.length&&(r=t,t=void 0),new Promise(function(i){e(n,t,r,i)})}return{off:n,on:t,one:e,when:r}},new function(){function t(n,t){return n?t.reduce(function(t,e){return-1==n.indexOf(e)&&t.push(e),t},[]):t}function e(n,t){var e=n.indexOf(t);return-1!=e&&n.splice(e,1),n.length}function r(n,t){return t||(t=a.getAnimationNames(n)),t.length?new Promise(function(r){function i(o){o.target!=n||e(t,o.animationName)||(n.removeEventListener(c,i),r(n))}n.addEventListener(c,i)}):Promise.resolve(n)}function i(t,e){var r;return e||(e=n.getComputedStyle(t)),r=a.getTransitionTime(e),r?new Promise(function(e){n.setTimeout(function(){e(t)},r)}):Promise.resolve(t)}function o(e,o){var u=n.getComputedStyle(e),s=a.getAnimationNames(u);return s=t(o,s),Promise.all([r(e,s),i(e,u)]).then(function(){return e})}var a=lib.css,u=a.animation,s=a.transition,c={animation:"animationend",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"}[u],f=Promise.resolve;return{animationEnd:c,animationStart:{animation:"animationstart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"}[u],animationIteration:{animation:"animationiteration",MozAnimation:"mozAnimationIteration",WebkitAnimation:"webkitAnimationIteration"}[u],transitionEnd:{transition:"transitionend",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd"}[s],awaitAnimationEnd:u?r:f,awaitTransitionEnd:s?i:f,awaitTransAnimEnd:u||s?o:f}}),lib.dom=e.assign({ready:function(){return"complete"==t.readyState?Promise.resolve():lib.event.when(t,"DOMContentLoaded")}},new function(){function t(n,t,e){var r=n.className,i=n.classList;return e.forEach(function(n){i[t](n)}),r!=n.className}function e(n,t){return o(t[0],n,r.slice(t,1))}var i=lib.css,o=i.animation||i.transition?function(e,r,o){var a=n.getComputedStyle(e),u=i.getAnimationNames(a);return t(e,r,o)?lib.event.awaitTransAnimEnd(e,u):Promise.resolve(e)}:function(n,e,r){return t(n,e,r),Promise.resolve(n)};return{addClass:function(){return e("add",arguments)},removeClass:function(){return e("remove",arguments)},toggleClass:function(){return e("toggle",arguments)}}}),lib.request=new function(){function r(n,t){return encodeURIComponent(n)+"="+encodeURIComponent(t)}function i(n){return e.keys(n).reduce(function(t,e){return t.push(r(e,n[e])),t},[]).join("&")}function o(n){n.onload=null,n.onerror=null,n.ontimeout=null}function a(t){var r=(t.method||"GET").toUpperCase(),a=t.url||n.location.href,s=t.data,c=t.userName||"",f=t.password||"",h=t.timeout||0,m=!1!==t.async,p=!1!==t.caching,d=!0===t.credentials,g=t.mimeType,v={"X-Requested-With":"XMLHttpRequest"};return e(s)===s&&(s instanceof FormData?v["Content-Type"]="multipart/form-data":s=i(s)),"POST"==r?v["Content-Type"]=v["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8":(p||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(p?"?":"&")+s),s=null),t.headers&&e.assign(v,t.headers),new Promise(function(n,t){function i(){o(this),this.status>=200&&this.status<400?n(this):t(new l(this.statusText))}function u(){o(this),t(new l(this.statusText))}function p(){o(this),t(new l("time is out"))}!new function(){var n=new XMLHttpRequest;n.open(r,a,m,c,f),d&&(n.withCredentials=!0),g&&n.overrideMimeType(g),e.keys(v).forEach(function(t){n.setRequestHeader(t,v[t])}),n.onload=i,n.onerror=u,h&&(n.timeout=h,n.ontimeout=p),n.send(s)}})}var u=new function(){var n={};return function(){var t=f.random().toString().slice(2);return n[t]?u():(n[t]=1,t)}};return e.assign(a,{toQueryParam:r,toQueryString:i,get:function(n){return"string"==typeof n&&(n={url:n}),n.method="GET",a(n)},post:function(n){return n.method="POST",a(n)},json:function(n){return a.get(n).then(function(n){return JSON.parse(n.responseText)})},jsonp:function(n){return a.script(n)},script:function(r){var a,s,c;return"string"==typeof r&&(r={url:r}),a=r.url||n.location.href,s=r.data,c=r.caching!==!1,e(s)===s&&(s=i(s)),c||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(c?"?":"&")+s),new Promise(function(n,r){t.head.appendChild(e.assign(t.createElement("script"),{onload:function(){o(this),this.remove(),n()},onerror:function(){o(this),this.remove(),r(new l("Could not load script"))},async:!0,defer:!0,src:a}))})}}),a},lib.cookie=new function(){function n(n){return l(f.cookie.replace(new c("(?:(?:^|.*;)\\s*"+h(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function e(n,t,e){e=e||{};var r="",i=e.end,u=e.path,c=e.domain,l=e.secure;if(!n||/^(?:expires|max\-age|path|domain|secure)$/i.test(n))return!1;if(i)switch(i.constructor){case a:r=1/0===i?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+i;break;case o:r="; expires="+i;break;case s:r="; expires="+i.toUTCString()}return f.cookie=h(n)+"="+h(t)+r+(c?"; domain="+c:"")+(u?"; path="+u:"")+(l?"; secure":""),!0}function r(n,t){t=t||{};var e=t.path,r=t.domain;return n&&i(n)?(f.cookie=h(n)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(r?"; domain="+r:"")+(e?"; path="+e:""),!0):!1}function i(n){return new c("(?:^|;\\s*)"+h(n).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(f.cookie)}function u(){return f.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/).map(l)}var f=t,l=decodeURIComponent,h=encodeURIComponent;return{get:n,set:e,has:i,remove:r,keys:u}}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file diff --git a/min/jscore-ie9.js b/min/jscore-ie9.js index 001df1c..40774ac 100644 --- a/min/jscore-ie9.js +++ b/min/jscore-ie9.js @@ -1,2 +1,2 @@ //jsCore v0.4.7 IE9+ github.com/Octane/jsCore -!function(t,n,e,i,r,o,a,u,s,c,f,l,h,p,m,d,g){"use strict";function v(){}(function(){var t=e.create({});return t[0]=null,t.hasOwnProperty(0)})()||new function(){var t=e.create;e.create=function(n,i){var r=t(n,i);return e.hasOwnProperty.call(r,0)||(e.defineProperty(r,0,{configurable:!0}),delete r[0]),r}},e.assign||(e.assign=function(t){return i.prototype.slice.call(arguments,1).forEach(function(n){e.keys(n).forEach(function(e){t[e]=n[e]})}),t}),e.is||(e.is=function(t,n){return 0===t&&0===n?1/t===1/n:t!==t?n!==n:t===n}),i.from||(i.from=function(t,n,r){return e(t).length?n?i.map(t,n,r):i.slice(t,0):[]}),i.of||(i.of=function(){return i.from(arguments)}),i.prototype.find||(i.prototype.find=function(t,n){for(var e,i=this.length,r=0;i>r;){if(r in this&&(e=this[r],t.call(n,e,r,this)))return e;r++}return void 0}),i.prototype.findIndex||(i.prototype.findIndex=function(t,n){for(var e,i=this.length,r=0;i>r;){if(r in this&&(e=this[r],t.call(n,e,r,this)))return r;r++}return-1}),i.prototype.fill||(i.prototype.fill=function(t,n,e){var i,r=this.length;n=a(n)||0,e=2 in arguments?a(e)||0:r,i=0>n?f.max(r+n,0):f.min(n,r),e=0>e?f.max(r+e,0):f.min(e,r);for(;e>i;)this[i]=t,i++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,n){return n||(n=0),this.indexOf(t,n)==n}),o.prototype.endsWith||(o.prototype.endsWith=function(t,n){var e;return n=n||this.length,n-=t.length,e=this.lastIndexOf(t),-1!=e&&e==n}),o.prototype.contains||(o.prototype.contains=function(t,n){return-1!=this.indexOf(t,n||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new i(t+1).join(this)}),a.isFinite||(a.isFinite=function(t){return"number"==typeof t&&p(t)}),a.isInteger||(a.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),a.isNaN||(a.isNaN=function(t){return"number"==typeof t&&m(t)}),a.parseInt||(a.parseInt=g),a.parseFloat||(a.parseFloat=d),f.trunc||(f.trunc=function(t){return t=a(t),m(t)||0===t||!a.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||m(t)?t:(t>0)-(0>t)}),new function(){function t(t,n){var e=n[0];switch(n.length){case 1:return t.call(e);case 2:return t.call(e,n[1]);case 3:return t.call(e,n[1],n[2])}return t.apply(e,i.prototype.slice.call(n,1))}function n(n){return function(){return t(n,arguments)}}function r(t,e){return e.reduce(function(e,i){return e[i]=n(t[i]),e},{})}function a(t,n){e.keys(n).forEach(function(e){e in t||(t[e]=n[e])})}a(i,r(i.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,r(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return e.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=i.push(this,t))},has:function(t){return-1!=i.findIndex(this,function(n){return e.is(t,n)})},"delete":function(t){var n=i.findIndex(this,function(n){return e.is(t,n)});return-1==n?!1:(i.splice(this,n,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var n=0,r=1;return e.assign(t.prototype,{size:0,_getPair:function(t){return i.find(this,function(i){return e.is(t,i[n])})},set:function(t,n){var e=this._getPair(t);e?e[r]=n:this.size=i.push(this,[t,n])},get:function(t){return e(this._getPair(t))[r]},has:function(t){return u(this._getPair(t))},"delete":function(t){var r=i.findIndex(this,function(i){return e.is(t,i[n])});return-1==r?!1:(i.splice(this,r,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function n(t){return this===t}function r(t){if(e(t)!==t)throw h("Invalid value used in weak set");return t}return e.assign(t.prototype,{add:function(t){this.has(r(t))||i.push(this,t)},has:function(t){return-1!=i.findIndex(this,n,r(t))},"delete":function(t){var e=i.findIndex(this,n,r(t));return-1==e?!1:(i.splice(this,e,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function n(t){return this===t[o]}function r(t){if(e(t)!==t)throw h("Invalid value used as weak map key");return t}var o=0,a=1;return e.assign(t.prototype,{_getPair:function(t){return i.find(this,n,r(t))},set:function(t,n){var e=this._getPair(t);e?e[a]=n:i.push(this,[t,n])},get:function(t){return e(this._getPair(t))[a]},has:function(t){return u(this._getPair(t))},"delete":function(t){var e=i.findIndex(this,n,r(t));return-1==e?!1:(i.splice(this,e,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.setImmediate||e.assign(t,new function(){function n(n){var e=n[0];switch(n.length){case 1:return e();case 2:return e(n[1]);case 3:return e(n[1],n[2])}return e.apply(t,i.prototype.slice.call(n,1))}function e(t){var e,i=t.data;"string"==typeof i&&i.startsWith(u)&&(e=o[i],e&&(delete o[i],n(e)))}var r=0,o={},a=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var n=r++,i=u+n;return o[i]=arguments,a&&(a=!1,t.addEventListener("message",e)),t.postMessage(i,"*"),n},clearImmediate:function(t){delete o[u+t]}}}),t.Promise||(t.Promise=new function(){function n(n){return i(n)?n:new f(function(e,i){t.setImmediate(function(){try{n.then(e,i)}catch(t){i(t)}})})}function i(t){return t instanceof f}function r(t){return e(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function a(t){return t.every(o)}function u(t){return t}function s(t){throw t}function c(t){t()}function f(t){e.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return e.assign(f,{resolve:function(t){return r(t)?n(t):new f(function(n){n(t)})},reject:function(t){return new f(function(n,e){e(t)})},race:function(t){return new f(function(e,i){t.forEach(function(t){n(t).then(e,i)})})},all:function(t){return new f(function(e,i){var r=[];t=t.map(n),t.forEach(function(n,o){n.then(function(n){r[o]=n,a(t)&&e(r)},i)})})}}),e.assign(f.prototype,{_resolve:function(t){function n(t){i._fulfill(t)}function e(t){i._reject(t)}var i=this;try{t(n,e)}catch(r){o(i)||e(r)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,n){this._onFulfilled.push(t),this._onRejected.push(n)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(e,i){var o=this;return new f(function(a,c){function f(){t.setImmediate(function(){var t;try{t=e(o._value)}catch(i){return void c(i)}r(t)?n(t).then(a,c):a(t)})}function l(){t.setImmediate(function(){var t;try{t=i(o._reason)}catch(e){return void c(e)}r(t)?n(t).then(a,c):a(t)})}e=e||u,i=i||s,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||e.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var n=60,e=1e3/n,i=s.now(),r=i;return function(n){var o=s.now(),a=f.max(0,e-(o-r)),u=o+a;return r=u,t.setTimeout(function(){n(u-i)},a)}}].find(u),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(u)}),"dataset"in n.documentElement||e.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function n(n){return n.substr(5).replace(/-./g,t)}function r(t){return{get:function(){return t.value},set:function(n){t.value=o(n)}}}function a(t,o){return i.forEach(o,function(i){var o=i.name.toLowerCase();o.startsWith("data-")&&e.defineProperty(t,n(o),r(i))}),t}return function(){return a(new v,this.attributes)}}}),"children"in n.createDocumentFragment()||new function(){function t(t){t in i||e.defineProperty(i,t,{get:o[t]})}var i,r=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&r!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&r!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&r!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&r!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var n,e=new t,i=this.childNodes,o=i.length,a=0,u=0;o>a;)n=i[a],r==n.nodeType&&(e[u++]=n),a++;return e.length=u,e}}};i=HTMLElement.prototype,e.keys(o).forEach(t),[n.constructor,n.createDocumentFragment().constructor].forEach(function(n){i=n.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in n.createDocumentFragment()||new function(){function t(t,n,e){return-1!=i.indexOf(t.querySelectorAll(e),n)}function r(t){var e,r,o,a=t.length;if(1==a)return e=t[0],"string"==typeof e?n.createTextNode(e):e;for(r=n.createDocumentFragment(),t=i.from(t),o=0;a>o;)e=t[o],"string"==typeof e&&(e=n.createTextNode(e)),r.appendChild(e),o++;return r}function o(t){t in s||(s[t]=c[t])}var a=1,s=HTMLElement.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(r(arguments),this)},after:function(){var t,n,e=this.parentNode;e&&(n=r(arguments),t=this.nextSibling,t?e.insertBefore(n,t):e.appendChild(n))},replace:function(){var t=this.parentNode;t&&t.replaceChild(r(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(r(arguments))},prepend:function(){this.insertBefore(r(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[s.matchesSelector,s.oMatchesSelector,s.msMatchesSelector,s.mozMatchesSelector,s.webkitMatchesSelector,function(e){var i,r;return this===n?!1:(r=this.parentNode)?(a==r.nodeType&&(r=r.ownerDocument),t(r,this,e)):(r=n.createDocumentFragment(),r.appendChild(this),i=t(r,this,e),void r.removeChild(this))}].find(u)};e.keys(c).forEach(o),s=n.constructor.prototype,["query","queryAll"].forEach(o),s=n.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in n.documentElement||e.defineProperty(HTMLElement.prototype,"classList",{get:new function(){function t(t,n){this._getTokens=t,this._onChange=n}function n(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return e.assign(t.prototype,{_clear:function(){i.splice(this,0,this.length)},_push:function(t){i.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){-1==i.indexOf(this,t)&&i.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){var n=i.indexOf(this,t);-1!=n&&i.splice(this,n,1)},this),t!=this.length&&this._onChange()},toggle:function(t,n){return this._update(),n===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=i.indexOf(this,t)},toString:function(){return i.join(this," ")}}),function(){var e=this;return e._classList||(e._classList=new t(function(){return n(e.className)},function(){e.className=this.toString()})),e._classList._update(),e._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=n(),t&&i.prototype.push.apply(this,r(t))}var n=new function(){function t(){var e=f.random().toString().slice(2);return n[e]?t():(n[e]=1,e)}var n={};return function(){return"-------------------------"+t()}},r=new function(){function t(t){return t.selected}function n(n){var e=n.nodeName.toLowerCase(),r=n.type;return n.name?n.disabled?!1:"fieldset"==e?!1:"select"==e&&n.multiple?i.some(n.options,t):"submit"==r||"reset"==r||"button"==r||"file"==r?!1:"radio"!=r&&"checkbox"!=r||!n.checked?!0:!1:!1}function e(n){return"select"==n.tagName.toLowerCase()&&n.multiple?i.reduce(n.options,function(n,e){return t(e)&&n.push(e.value),n},[]):[n.value]}return function(t){return i.reduce(t.elements,function(t,i){return n(i)&&e(i).forEach(function(n){t.push({name:i.name,value:n})}),t},[])}};return e.assign(t.prototype,{notNative:!0,append:function(t,n,e){i.push(this,{name:t,value:n,fileName:e})},toString:function(){var t=this.boundary,n="";return i.forEach(this,function(i){var r,o=i.name,a=i.value;n+="--"+t+"\r\n",e(a)===a?(r=i.fileName||a.name,n+='Content-Disposition: form-data; name="',n+=o+'"; filename="'+r+'"\r\n',n+="Content-Type: "+a.type+"\r\n\r\n",n+=a.content+"\r\n"):(n+='Content-Disposition: form-data; name="',n+=o+'"\r\n\r\n',n+=a+"\r\n")}),n+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var n=XMLHttpRequest.prototype.send;return function(e){e instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+e.boundary),e=e.toString()),n.call(this,e)}},t}),history.pushState||new function(){},t.lib={},lib.classExtends=function(t,n){t.prototype=e.create(n.prototype),t.prototype.constructor=t,t.Super=n},lib.array={count:function(t){return i.reduce(t,function(t){return t+1},0)},contains:function(t,n,e){return-1!=i.indexOf(t,n,e)},unique:function(t){for(var n,e=[],i=t.length,r=0,o=0;i>r;)n=t[r],-1==e.indexOf(n)&&(e[o++]=n),r++;return e},all:function(t,n,i){var r=e(t).length;if(!r)return!1;for(;r--;){if(!(r in t))return!1;if(!n.call(i,t[r]))return!1}return!0},refine:function(t){return i.reduce(t,function(t,n){return t.push(n),t},[])},range:function(t,n){var e=[];1 in arguments||(n=t,t=0);for(;n>t;)e.push(t),t++;return e},shuffle:function(t){for(var n,e,r=i.from(t),o=r.length;o--;)n=f.floor(f.random()*(o+1)),e=r[n],r[n]=r[o],r[o]=e;return r},remove:function(t,n){var e=i.indexOf(t,n);return-1!=e&&i.splice(t,e,1)}},lib.date=new function(){var t=this,n=[31,28,31,30,31,30,31,31,30,31,30,31];t.isLeapYear=function(t){return arguments.length||(t=new s),t instanceof s&&(t=t.getFullYear()),t%4==0&&t%100!=0||t%400==0},t.getMonthLength=function(e,i){return arguments.length||(e=new s),e instanceof s&&(i=e.getFullYear(),e=e.getMonth()),1==e&&t.isLeapYear(i)?29:n[e]}},lib.html={parse:function(t){var e=n.createElement("div"),i=n.createDocumentFragment();for(e.innerHTML=t;e.hasChildNodes();)i.appendChild(e.firstChild);return i},escape:function(t){var e=n.createElement("div");return e.appendChild(n.createTextNode(t)),e.innerHTML},unescape:function(t){var e=n.createElement("div");return e.innerHTML=t,e.textContent}},lib.Template=new function(){function t(t){this.template=t}return t.match=function(t,n){return i.isArray(t)&&(t=t.join("")),e.keys(n).reduceRight(function(t,e){var i=n[e];return t.split("{"+e.toUpperCase()+"}").join(i)},t)},t.prototype.match=function(n){return t.match(this.template,n)},t},lib.I18n=new function(){function t(t){this.messageBundle=this[t]}function n(t,n){this.locale=t,this[t]=n}function e(e,i){function r(t,n){return t in r.messageBundle&&(t=r.messageBundle[t]),n?lib.Template.match(t,n):t}return r.add=n,r.use=t,r.add(e,i),r.use(e),r}return e},lib.css=new function(){var r,o=this;o.prefix=r=new function(){var t={},e=["ms","O","Webkit","Moz"],i=new function(){var t=n.documentElement.style,e=t.constructor.prototype;return"top"in e?e:t};return function(n){var r,o,a;if(n in t)return t[n];if(n in i)return t[n]=n,n;for(o=n.charAt(0).toUpperCase()+n.slice(1),a=e.length;a--;)if(r=e[a]+o,r in i)return t[n]=r,r;return void(t[n]=void 0)}},new function(){var t={animation:["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"],transition:["Delay","Duration","Property","TimingFunction"],transform:["Origin","Style"]};e.keys(t).forEach(function(n){var e=r(n);e&&(o[n]=e,t[n].forEach(function(t){o[n+t]=e+t}))})},o.getAnimationNames=new function(){function t(t){return"none"!=t}var n=/,\s*/;return function(e){var i=e[o.animationName];return i?i.split(n).filter(t):[]}},o.set=new function(){function n(t,n){e.keys(n).forEach(function(e){t[r(e)]=n[e]})}return o.transition||o.animation?function(e,i){var r=t.getComputedStyle(e),a=o.getAnimationNames(r);return n(e.style,i),lib.event.awaitTransAnimEnd(e,a)}:function(t,e){return n(t.style,e),Promise.resolve(t)}},o.get=function(n,e){var o=t.getComputedStyle(n);return i.isArray(e)?e.reduce(function(t,n){return t[n]=o[r(n)],t},{}):o[r(e)]},o.getTransitionTime=o.transition?new function(){function t(t){return t.split(",").map(function(t){return a.parseFloat(t)||0})}function n(t,n){for(var e,i=0,r=f.max(n.length,t.length),o=0;r>o;)e=(t[o]||0)+(n[o]||0),e>i&&(i=e),o++;return f.ceil(1e3*i)}return function(e){return n(t(e[o.transitionDelay]),t(e[o.transitionDuration]))}}:function(){return 0}},lib.event=e.assign({preventDefault:function(t){t.preventDefault()},stopPropagation:function(t){t.stopPropagation()}},new function(){function t(t){t.eventTypes.forEach(function(n){t.element.removeEventListener(n,t.callback)})}function n(t,n,e,i){var r;return 3==arguments.length&&(i=e,e=n,n=void 0),n?(n+=","+n+" *",r=function(e){var r=e.target;r.matches&&r.matches(n)&&(i.handleEvent?i.handleEvent(e):i.call(t,e))}):r=i,"string"==typeof e&&(e=e.split(/[\s,]+/)),e.forEach(function(n){t.addEventListener(n,r)}),{element:t,eventTypes:e,callback:r}}function e(e,i,r,o){function a(n){t(u),o.handleEvent?o.handleEvent(n):o.call(e,n)}var u;3==arguments.length&&(o=r,r=i,i=void 0),u=n(e,i,r,a)}function i(t,n,i){return 2==arguments.length&&(i=n,n=void 0),new Promise(function(r){e(t,n,i,r)})}return{off:t,on:n,one:e,when:i}},new function(){function n(t,n){return t?n.reduce(function(n,e){return-1==t.indexOf(e)&&n.push(e),n},[]):n}function e(t,n){var e=t.indexOf(n);return-1!=e&&t.splice(e,1),t.length}function i(t,n){return n||(n=a.getAnimationNames(t)),n.length?new Promise(function(i){function r(o){o.target!=t||e(n,o.animationName)||(t.removeEventListener(c,r),i(t))}t.addEventListener(c,r)}):Promise.resolve(t)}function r(n,e){var i;return e||(e=t.getComputedStyle(n)),i=a.getTransitionTime(e),i?new Promise(function(e){t.setTimeout(function(){e(n)},i)}):Promise.resolve(n)}function o(e,o){var u=t.getComputedStyle(e),s=a.getAnimationNames(u);return s=n(o,s),Promise.all([i(e,s),r(e,u)]).then(function(){return e})}var a=lib.css,u=a.animation,s=a.transition,c={animation:"animationend",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"}[u],f=Promise.resolve;return{animationEnd:c,animationStart:{animation:"animationstart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"}[u],animationIteration:{animation:"animationiteration",MozAnimation:"mozAnimationIteration",WebkitAnimation:"webkitAnimationIteration"}[u],transitionEnd:{transition:"transitionend",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd"}[s],awaitAnimationEnd:u?i:f,awaitTransitionEnd:s?r:f,awaitTransAnimEnd:u||s?o:f}}),lib.dom=e.assign({ready:function(){return"complete"==n.readyState?Promise.resolve():lib.event.when(n,"DOMContentLoaded")}},new function(){function n(t,n,e){var i=t.className,r=t.classList;return e.forEach(function(t){r[n](t)}),i!=t.className}function e(t,n){return o(n[0],t,i.slice(n,1))}var r=lib.css,o=r.animation||r.transition?function(e,i,o){var a=t.getComputedStyle(e),u=r.getAnimationNames(a);return n(e,i,o)?lib.event.awaitTransAnimEnd(e,u):Promise.resolve(e)}:function(t,e,i){return n(t,e,i),Promise.resolve(t)};return{addClass:function(){return e("add",arguments)},removeClass:function(){return e("remove",arguments)},toggleClass:function(){return e("toggle",arguments)}}}),lib.request=new function(){function i(t,n){return encodeURIComponent(t)+"="+encodeURIComponent(n)}function r(t){return e.keys(t).reduce(function(n,e){return n.push(i(e,t[e])),n},[]).join("&")}function o(t){t.onload=null,t.onerror=null,t.ontimeout=null}function a(n){var i=(n.method||"GET").toUpperCase(),a=n.url||t.location.href,s=n.data,c=n.userName||"",f=n.password||"",h=n.timeout||0,p=!1!==n.async,m=!1!==n.caching,d=!0===n.credentials,g=n.mimeType,v={"X-Requested-With":"XMLHttpRequest"};return e(s)===s&&(s instanceof FormData?v["Content-Type"]="multipart/form-data":s=r(s)),"POST"==i?v["Content-Type"]=v["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8":(m||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(m?"?":"&")+s),s=null),n.headers&&e.assign(v,n.headers),new Promise(function(t,n){function r(){o(this),this.status>=200&&this.status<400?t(this):n(new l(this.statusText))}function u(){o(this),n(new l(this.statusText))}function m(){o(this),n(new l("time is out"))}!new function(){var t=new XMLHttpRequest;t.open(i,a,p,c,f),d&&(t.withCredentials=!0),g&&t.overrideMimeType(g),e.keys(v).forEach(function(n){t.setRequestHeader(n,v[n])}),t.onload=r,t.onerror=u,h&&(t.timeout=h,t.ontimeout=m),t.send(s)}})}var u=new function(){var t={};return function(){var n=f.random().toString().slice(2);return t[n]?u():(t[n]=1,n)}};return e.assign(a,{toQueryParam:i,toQueryString:r,get:function(t){return"string"==typeof t&&(t={url:t}),t.method="GET",a(t)},post:function(t){return t.method="POST",a(t)},json:function(t){return a.get(t).then(function(t){return JSON.parse(t.responseText)})},jsonp:function(t){return a.script(t)},script:function(i){var a,s,c;return"string"==typeof i&&(i={url:i}),a=i.url||t.location.href,s=i.data,c=i.caching!==!1,e(s)===s&&(s=r(s)),c||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(c?"?":"&")+s),new Promise(function(t,i){n.head.appendChild(e.assign(n.createElement("script"),{onload:function(){o(this),this.remove(),t()},onerror:function(){o(this),this.remove(),i(new l("Could not load script"))},async:!0,defer:!0,src:a}))})}}),a},lib.cookie=new function(){function t(t){return l(f.cookie.replace(new c("(?:(?:^|.*;)\\s*"+h(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function e(t,n,e){e=e||{};var i="",r=e.end,u=e.path,c=e.domain,l=e.secure;if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;if(r)switch(r.constructor){case a:i=1/0===r?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case o:i="; expires="+r;break;case s:i="; expires="+r.toUTCString()}return f.cookie=h(t)+"="+h(n)+i+(c?"; domain="+c:"")+(u?"; path="+u:"")+(l?"; secure":""),!0}function i(t,n){n=n||{};var e=n.path,i=n.domain;return t&&r(t)?(f.cookie=h(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(e?"; path="+e:""),!0):!1}function r(t){return new c("(?:^|;\\s*)"+h(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(f.cookie)}function u(){return f.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/).map(l)}var f=n,l=decodeURIComponent,h=encodeURIComponent;return{get:t,set:e,has:r,remove:i,keys:u}}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file +!function(t,n,e,i,r,o,a,u,s,c,f,l,h,p,m,d,g){"use strict";function v(){}(function(){var t=e.create({});return t[0]=null,t.hasOwnProperty(0)})()||new function(){var t=e.create;e.create=function(n,i){var r=t(n,i);return e.hasOwnProperty.call(r,0)||(e.defineProperty(r,0,{configurable:!0}),delete r[0]),r}},e.assign||(e.assign=function(t){return i.prototype.slice.call(arguments,1).forEach(function(n){e.keys(n).forEach(function(e){t[e]=n[e]})}),t}),e.is||(e.is=function(t,n){return 0===t&&0===n?1/t===1/n:t!==t?n!==n:t===n}),e.setPrototypeOf||(e.setPrototypeOf=function(t,n){return t.__proto__=n,t}),i.from||(i.from=function(t,n,r){return e(t).length?n?i.map(t,n,r):i.slice(t,0):[]}),i.of||(i.of=function(){return i.from(arguments)}),i.prototype.find||(i.prototype.find=function(t,n){for(var e,i=this.length,r=0;i>r;){if(r in this&&(e=this[r],t.call(n,e,r,this)))return e;r++}return void 0}),i.prototype.findIndex||(i.prototype.findIndex=function(t,n){for(var e,i=this.length,r=0;i>r;){if(r in this&&(e=this[r],t.call(n,e,r,this)))return r;r++}return-1}),i.prototype.fill||(i.prototype.fill=function(t,n,e){var i,r=this.length;n=a(n)||0,e=2 in arguments?a(e)||0:r,i=0>n?f.max(r+n,0):f.min(n,r),e=0>e?f.max(r+e,0):f.min(e,r);for(;e>i;)this[i]=t,i++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,n){return n||(n=0),this.indexOf(t,n)==n}),o.prototype.endsWith||(o.prototype.endsWith=function(t,n){var e;return n=n||this.length,n-=t.length,e=this.lastIndexOf(t),-1!=e&&e==n}),o.prototype.contains||(o.prototype.contains=function(t,n){return-1!=this.indexOf(t,n||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new i(t+1).join(this)}),a.isFinite||(a.isFinite=function(t){return"number"==typeof t&&p(t)}),a.isInteger||(a.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),a.isNaN||(a.isNaN=function(t){return"number"==typeof t&&m(t)}),a.parseInt||(a.parseInt=g),a.parseFloat||(a.parseFloat=d),f.trunc||(f.trunc=function(t){return t=a(t),m(t)||0===t||!a.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||m(t)?t:(t>0)-(0>t)}),new function(){function t(t,n){var e=n[0];switch(n.length){case 1:return t.call(e);case 2:return t.call(e,n[1]);case 3:return t.call(e,n[1],n[2])}return t.apply(e,i.prototype.slice.call(n,1))}function n(n){return function(){return t(n,arguments)}}function r(t,e){return e.reduce(function(e,i){return e[i]=n(t[i]),e},{})}function a(t,n){e.keys(n).forEach(function(e){e in t||(t[e]=n[e])})}a(i,r(i.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,r(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return e.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=i.push(this,t))},has:function(t){return-1!=i.findIndex(this,function(n){return e.is(t,n)})},"delete":function(t){var n=i.findIndex(this,function(n){return e.is(t,n)});return-1==n?!1:(i.splice(this,n,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var n=0,r=1;return e.assign(t.prototype,{size:0,_getPair:function(t){return i.find(this,function(i){return e.is(t,i[n])})},set:function(t,n){var e=this._getPair(t);e?e[r]=n:this.size=i.push(this,[t,n])},get:function(t){return e(this._getPair(t))[r]},has:function(t){return u(this._getPair(t))},"delete":function(t){var r=i.findIndex(this,function(i){return e.is(t,i[n])});return-1==r?!1:(i.splice(this,r,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function n(t){return this===t}function r(t){if(e(t)!==t)throw h("Invalid value used in weak set");return t}return e.assign(t.prototype,{add:function(t){this.has(r(t))||i.push(this,t)},has:function(t){return-1!=i.findIndex(this,n,r(t))},"delete":function(t){var e=i.findIndex(this,n,r(t));return-1==e?!1:(i.splice(this,e,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function n(t){return this===t[o]}function r(t){if(e(t)!==t)throw h("Invalid value used as weak map key");return t}var o=0,a=1;return e.assign(t.prototype,{_getPair:function(t){return i.find(this,n,r(t))},set:function(t,n){var e=this._getPair(t);e?e[a]=n:i.push(this,[t,n])},get:function(t){return e(this._getPair(t))[a]},has:function(t){return u(this._getPair(t))},"delete":function(t){var e=i.findIndex(this,n,r(t));return-1==e?!1:(i.splice(this,e,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.setImmediate||e.assign(t,new function(){function n(n){var e=n[0];switch(n.length){case 1:return e();case 2:return e(n[1]);case 3:return e(n[1],n[2])}return e.apply(t,i.prototype.slice.call(n,1))}function e(t){var e,i=t.data;"string"==typeof i&&i.startsWith(u)&&(e=o[i],e&&(delete o[i],n(e)))}var r=0,o={},a=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var n=r++,i=u+n;return o[i]=arguments,a&&(a=!1,t.addEventListener("message",e)),t.postMessage(i,"*"),n},clearImmediate:function(t){delete o[u+t]}}}),t.Promise||(t.Promise=new function(){function n(n){return i(n)?n:new f(function(e,i){t.setImmediate(function(){try{n.then(e,i)}catch(t){i(t)}})})}function i(t){return t instanceof f}function r(t){return e(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function a(t){return t.every(o)}function u(t){return t}function s(t){throw t}function c(t){t()}function f(t){e.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return e.assign(f,{resolve:function(t){return r(t)?n(t):new f(function(n){n(t)})},reject:function(t){return new f(function(n,e){e(t)})},race:function(t){return new f(function(e,i){t.forEach(function(t){n(t).then(e,i)})})},all:function(t){return new f(function(e,i){var r=[];t=t.map(n),t.forEach(function(n,o){n.then(function(n){r[o]=n,a(t)&&e(r)},i)})})}}),e.assign(f.prototype,{_resolve:function(t){function n(t){i._fulfill(t)}function e(t){i._reject(t)}var i=this;try{t(n,e)}catch(r){o(i)||e(r)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,n){this._onFulfilled.push(t),this._onRejected.push(n)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(e,i){var o=this;return new f(function(a,c){function f(){t.setImmediate(function(){var t;try{t=e(o._value)}catch(i){return void c(i)}r(t)?n(t).then(a,c):a(t)})}function l(){t.setImmediate(function(){var t;try{t=i(o._reason)}catch(e){return void c(e)}r(t)?n(t).then(a,c):a(t)})}e=e||u,i=i||s,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||e.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var n=60,e=1e3/n,i=s.now(),r=i;return function(n){var o=s.now(),a=f.max(0,e-(o-r)),u=o+a;return r=u,t.setTimeout(function(){n(u-i)},a)}}].find(u),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(u)}),"dataset"in n.documentElement||e.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function n(n){return n.substr(5).replace(/-./g,t)}function r(t){return{get:function(){return t.value},set:function(n){t.value=o(n)}}}function a(t,o){return i.forEach(o,function(i){var o=i.name.toLowerCase();o.startsWith("data-")&&e.defineProperty(t,n(o),r(i))}),t}return function(){return a(new v,this.attributes)}}}),"children"in n.createDocumentFragment()||new function(){function t(t){t in i||e.defineProperty(i,t,{get:o[t]})}var i,r=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&r!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&r!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&r!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&r!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var n,e=new t,i=this.childNodes,o=i.length,a=0,u=0;o>a;)n=i[a],r==n.nodeType&&(e[u++]=n),a++;return e.length=u,e}}};i=HTMLElement.prototype,e.keys(o).forEach(t),[n.constructor,n.createDocumentFragment().constructor].forEach(function(n){i=n.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in n.createDocumentFragment()||new function(){function t(t,n,e){return-1!=i.indexOf(t.querySelectorAll(e),n)}function r(t){var e,r,o,a=t.length;if(1==a)return e=t[0],"string"==typeof e?n.createTextNode(e):e;for(r=n.createDocumentFragment(),t=i.from(t),o=0;a>o;)e=t[o],"string"==typeof e&&(e=n.createTextNode(e)),r.appendChild(e),o++;return r}function o(t){t in s||(s[t]=c[t])}var a=1,s=HTMLElement.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(r(arguments),this)},after:function(){var t,n,e=this.parentNode;e&&(n=r(arguments),t=this.nextSibling,t?e.insertBefore(n,t):e.appendChild(n))},replace:function(){var t=this.parentNode;t&&t.replaceChild(r(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(r(arguments))},prepend:function(){this.insertBefore(r(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[s.matchesSelector,s.oMatchesSelector,s.msMatchesSelector,s.mozMatchesSelector,s.webkitMatchesSelector,function(e){var i,r;return this===n?!1:(r=this.parentNode)?(a==r.nodeType&&(r=r.ownerDocument),t(r,this,e)):(r=n.createDocumentFragment(),r.appendChild(this),i=t(r,this,e),void r.removeChild(this))}].find(u)};e.keys(c).forEach(o),s=n.constructor.prototype,["query","queryAll"].forEach(o),s=n.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in n.documentElement||e.defineProperty(HTMLElement.prototype,"classList",{get:new function(){function t(t,n){this._getTokens=t,this._onChange=n}function n(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return e.assign(t.prototype,{_clear:function(){i.splice(this,0,this.length)},_push:function(t){i.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){-1==i.indexOf(this,t)&&i.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){var n=i.indexOf(this,t);-1!=n&&i.splice(this,n,1)},this),t!=this.length&&this._onChange()},toggle:function(t,n){return this._update(),n===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=i.indexOf(this,t)},toString:function(){return i.join(this," ")}}),function(){var e=this;return e._classList||(e._classList=new t(function(){return n(e.className)},function(){e.className=this.toString()})),e._classList._update(),e._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=n(),t&&i.prototype.push.apply(this,r(t))}var n=new function(){function t(){var e=f.random().toString().slice(2);return n[e]?t():(n[e]=1,e)}var n={};return function(){return"-------------------------"+t()}},r=new function(){function t(t){return t.selected}function n(n){var e=n.nodeName.toLowerCase(),r=n.type;return n.name?n.disabled?!1:"fieldset"==e?!1:"select"==e&&n.multiple?i.some(n.options,t):"submit"==r||"reset"==r||"button"==r||"file"==r?!1:"radio"!=r&&"checkbox"!=r||!n.checked?!0:!1:!1}function e(n){return"select"==n.tagName.toLowerCase()&&n.multiple?i.reduce(n.options,function(n,e){return t(e)&&n.push(e.value),n},[]):[n.value]}return function(t){return i.reduce(t.elements,function(t,i){return n(i)&&e(i).forEach(function(n){t.push({name:i.name,value:n})}),t},[])}};return e.assign(t.prototype,{notNative:!0,append:function(t,n,e){i.push(this,{name:t,value:n,fileName:e})},toString:function(){var t=this.boundary,n="";return i.forEach(this,function(i){var r,o=i.name,a=i.value;n+="--"+t+"\r\n",e(a)===a?(r=i.fileName||a.name,n+='Content-Disposition: form-data; name="',n+=o+'"; filename="'+r+'"\r\n',n+="Content-Type: "+a.type+"\r\n\r\n",n+=a.content+"\r\n"):(n+='Content-Disposition: form-data; name="',n+=o+'"\r\n\r\n',n+=a+"\r\n")}),n+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var n=XMLHttpRequest.prototype.send;return function(e){e instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+e.boundary),e=e.toString()),n.call(this,e)}},t}),history.pushState||new function(){},t.lib={},lib.classExtends=function(t,n){t.prototype=e.create(n.prototype),t.prototype.constructor=t,t.Super=n},lib.array={count:function(t){return i.reduce(t,function(t){return t+1},0)},contains:function(t,n,e){return-1!=i.indexOf(t,n,e)},unique:function(t){for(var n,e=[],i=t.length,r=0,o=0;i>r;)n=t[r],-1==e.indexOf(n)&&(e[o++]=n),r++;return e},all:function(t,n,i){var r=e(t).length;if(!r)return!1;for(;r--;){if(!(r in t))return!1;if(!n.call(i,t[r]))return!1}return!0},refine:function(t){return i.reduce(t,function(t,n){return t.push(n),t},[])},range:function(t,n){var e=[];1 in arguments||(n=t,t=0);for(;n>t;)e.push(t),t++;return e},shuffle:function(t){for(var n,e,r=i.from(t),o=r.length;o--;)n=f.floor(f.random()*(o+1)),e=r[n],r[n]=r[o],r[o]=e;return r},remove:function(t,n){var e=i.indexOf(t,n);return-1!=e&&i.splice(t,e,1)}},lib.date=new function(){var t=this,n=[31,28,31,30,31,30,31,31,30,31,30,31];t.isLeapYear=function(t){return arguments.length||(t=new s),t instanceof s&&(t=t.getFullYear()),t%4==0&&t%100!=0||t%400==0},t.getMonthLength=function(e,i){return arguments.length||(e=new s),e instanceof s&&(i=e.getFullYear(),e=e.getMonth()),1==e&&t.isLeapYear(i)?29:n[e]}},lib.html={parse:function(t){var e=n.createElement("div"),i=n.createDocumentFragment();for(e.innerHTML=t;e.hasChildNodes();)i.appendChild(e.firstChild);return i},escape:function(t){var e=n.createElement("div");return e.appendChild(n.createTextNode(t)),e.innerHTML},unescape:function(t){var e=n.createElement("div");return e.innerHTML=t,e.textContent}},lib.Template=new function(){function t(t){this.template=t}return t.match=function(t,n){return i.isArray(t)&&(t=t.join("")),e.keys(n).reduceRight(function(t,e){var i=n[e];return t.split("{"+e.toUpperCase()+"}").join(i)},t)},t.prototype.match=function(n){return t.match(this.template,n)},t},lib.I18n=new function(){function t(t){this.messageBundle=this[t]}function n(t,n){this.locale=t,this[t]=n}function e(e,i){function r(t,n){return t in r.messageBundle&&(t=r.messageBundle[t]),n?lib.Template.match(t,n):t}return r.add=n,r.use=t,r.add(e,i),r.use(e),r}return e},lib.css=new function(){var r,o=this;o.prefix=r=new function(){var t={},e=["ms","O","Webkit","Moz"],i=new function(){var t=n.documentElement.style,e=t.constructor.prototype;return"top"in e?e:t};return function(n){var r,o,a;if(n in t)return t[n];if(n in i)return t[n]=n,n;for(o=n.charAt(0).toUpperCase()+n.slice(1),a=e.length;a--;)if(r=e[a]+o,r in i)return t[n]=r,r;return void(t[n]=void 0)}},new function(){var t={animation:["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"],transition:["Delay","Duration","Property","TimingFunction"],transform:["Origin","Style"]};e.keys(t).forEach(function(n){var e=r(n);e&&(o[n]=e,t[n].forEach(function(t){o[n+t]=e+t}))})},o.getAnimationNames=new function(){function t(t){return"none"!=t}var n=/,\s*/;return function(e){var i=e[o.animationName];return i?i.split(n).filter(t):[]}},o.set=new function(){function n(t,n){e.keys(n).forEach(function(e){t[r(e)]=n[e]})}return o.transition||o.animation?function(e,i){var r=t.getComputedStyle(e),a=o.getAnimationNames(r);return n(e.style,i),lib.event.awaitTransAnimEnd(e,a)}:function(t,e){return n(t.style,e),Promise.resolve(t)}},o.get=function(n,e){var o=t.getComputedStyle(n);return i.isArray(e)?e.reduce(function(t,n){return t[n]=o[r(n)],t},{}):o[r(e)]},o.getTransitionTime=o.transition?new function(){function t(t){return t.split(",").map(function(t){return a.parseFloat(t)||0})}function n(t,n){for(var e,i=0,r=f.max(n.length,t.length),o=0;r>o;)e=(t[o]||0)+(n[o]||0),e>i&&(i=e),o++;return f.ceil(1e3*i)}return function(e){return n(t(e[o.transitionDelay]),t(e[o.transitionDuration]))}}:function(){return 0}},lib.event=e.assign({preventDefault:function(t){t.preventDefault()},stopPropagation:function(t){t.stopPropagation()}},new function(){function t(t){t.eventTypes.forEach(function(n){t.element.removeEventListener(n,t.callback)})}function n(t,n,e,i){var r;return 3==arguments.length&&(i=e,e=n,n=void 0),n?(n+=","+n+" *",r=function(e){var r=e.target;r.matches&&r.matches(n)&&(i.handleEvent?i.handleEvent(e):i.call(t,e))}):r=i,"string"==typeof e&&(e=e.split(/[\s,]+/)),e.forEach(function(n){t.addEventListener(n,r)}),{element:t,eventTypes:e,callback:r}}function e(e,i,r,o){function a(n){t(u),o.handleEvent?o.handleEvent(n):o.call(e,n)}var u;3==arguments.length&&(o=r,r=i,i=void 0),u=n(e,i,r,a)}function i(t,n,i){return 2==arguments.length&&(i=n,n=void 0),new Promise(function(r){e(t,n,i,r)})}return{off:t,on:n,one:e,when:i}},new function(){function n(t,n){return t?n.reduce(function(n,e){return-1==t.indexOf(e)&&n.push(e),n},[]):n}function e(t,n){var e=t.indexOf(n);return-1!=e&&t.splice(e,1),t.length}function i(t,n){return n||(n=a.getAnimationNames(t)),n.length?new Promise(function(i){function r(o){o.target!=t||e(n,o.animationName)||(t.removeEventListener(c,r),i(t))}t.addEventListener(c,r)}):Promise.resolve(t)}function r(n,e){var i;return e||(e=t.getComputedStyle(n)),i=a.getTransitionTime(e),i?new Promise(function(e){t.setTimeout(function(){e(n)},i)}):Promise.resolve(n)}function o(e,o){var u=t.getComputedStyle(e),s=a.getAnimationNames(u);return s=n(o,s),Promise.all([i(e,s),r(e,u)]).then(function(){return e})}var a=lib.css,u=a.animation,s=a.transition,c={animation:"animationend",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"}[u],f=Promise.resolve;return{animationEnd:c,animationStart:{animation:"animationstart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"}[u],animationIteration:{animation:"animationiteration",MozAnimation:"mozAnimationIteration",WebkitAnimation:"webkitAnimationIteration"}[u],transitionEnd:{transition:"transitionend",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd"}[s],awaitAnimationEnd:u?i:f,awaitTransitionEnd:s?r:f,awaitTransAnimEnd:u||s?o:f}}),lib.dom=e.assign({ready:function(){return"complete"==n.readyState?Promise.resolve():lib.event.when(n,"DOMContentLoaded")}},new function(){function n(t,n,e){var i=t.className,r=t.classList;return e.forEach(function(t){r[n](t)}),i!=t.className}function e(t,n){return o(n[0],t,i.slice(n,1))}var r=lib.css,o=r.animation||r.transition?function(e,i,o){var a=t.getComputedStyle(e),u=r.getAnimationNames(a);return n(e,i,o)?lib.event.awaitTransAnimEnd(e,u):Promise.resolve(e)}:function(t,e,i){return n(t,e,i),Promise.resolve(t)};return{addClass:function(){return e("add",arguments)},removeClass:function(){return e("remove",arguments)},toggleClass:function(){return e("toggle",arguments)}}}),lib.request=new function(){function i(t,n){return encodeURIComponent(t)+"="+encodeURIComponent(n)}function r(t){return e.keys(t).reduce(function(n,e){return n.push(i(e,t[e])),n},[]).join("&")}function o(t){t.onload=null,t.onerror=null,t.ontimeout=null}function a(n){var i=(n.method||"GET").toUpperCase(),a=n.url||t.location.href,s=n.data,c=n.userName||"",f=n.password||"",h=n.timeout||0,p=!1!==n.async,m=!1!==n.caching,d=!0===n.credentials,g=n.mimeType,v={"X-Requested-With":"XMLHttpRequest"};return e(s)===s&&(s instanceof FormData?v["Content-Type"]="multipart/form-data":s=r(s)),"POST"==i?v["Content-Type"]=v["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8":(m||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(m?"?":"&")+s),s=null),n.headers&&e.assign(v,n.headers),new Promise(function(t,n){function r(){o(this),this.status>=200&&this.status<400?t(this):n(new l(this.statusText))}function u(){o(this),n(new l(this.statusText))}function m(){o(this),n(new l("time is out"))}!new function(){var t=new XMLHttpRequest;t.open(i,a,p,c,f),d&&(t.withCredentials=!0),g&&t.overrideMimeType(g),e.keys(v).forEach(function(n){t.setRequestHeader(n,v[n])}),t.onload=r,t.onerror=u,h&&(t.timeout=h,t.ontimeout=m),t.send(s)}})}var u=new function(){var t={};return function(){var n=f.random().toString().slice(2);return t[n]?u():(t[n]=1,n)}};return e.assign(a,{toQueryParam:i,toQueryString:r,get:function(t){return"string"==typeof t&&(t={url:t}),t.method="GET",a(t)},post:function(t){return t.method="POST",a(t)},json:function(t){return a.get(t).then(function(t){return JSON.parse(t.responseText)})},jsonp:function(t){return a.script(t)},script:function(i){var a,s,c;return"string"==typeof i&&(i={url:i}),a=i.url||t.location.href,s=i.data,c=i.caching!==!1,e(s)===s&&(s=r(s)),c||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(c?"?":"&")+s),new Promise(function(t,i){n.head.appendChild(e.assign(n.createElement("script"),{onload:function(){o(this),this.remove(),t()},onerror:function(){o(this),this.remove(),i(new l("Could not load script"))},async:!0,defer:!0,src:a}))})}}),a},lib.cookie=new function(){function t(t){return l(f.cookie.replace(new c("(?:(?:^|.*;)\\s*"+h(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function e(t,n,e){e=e||{};var i="",r=e.end,u=e.path,c=e.domain,l=e.secure;if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;if(r)switch(r.constructor){case a:i=1/0===r?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case o:i="; expires="+r;break;case s:i="; expires="+r.toUTCString()}return f.cookie=h(t)+"="+h(n)+i+(c?"; domain="+c:"")+(u?"; path="+u:"")+(l?"; secure":""),!0}function i(t,n){n=n||{};var e=n.path,i=n.domain;return t&&r(t)?(f.cookie=h(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(i?"; domain="+i:"")+(e?"; path="+e:""),!0):!1}function r(t){return new c("(?:^|;\\s*)"+h(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(f.cookie)}function u(){return f.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/).map(l)}var f=n,l=decodeURIComponent,h=encodeURIComponent;return{get:t,set:e,has:r,remove:i,keys:u}}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file diff --git a/min/jscore-polyfill-ie10.js b/min/jscore-polyfill-ie10.js index 08854dc..8e27fae 100644 --- a/min/jscore-polyfill-ie10.js +++ b/min/jscore-polyfill-ie10.js @@ -1,2 +1,2 @@ //jsCore polyfill v0.4.7 IE10+ github.com/Octane/jsCore -!function(t,e,n,i,r,o,u,s,a,c,f,h,l,p,d,m,g){"use strict";function y(){}(function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)})()||new function(){var t=n.create;n.create=function(e,i){var r=t(e,i);return n.hasOwnProperty.call(r,0)||(n.defineProperty(r,0,{configurable:!0}),delete r[0]),r}},n.assign||(n.assign=function(t){return i.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),i.from||(i.from=function(t,e,r){return n(t).length?e?i.map(t,e,r):i.slice(t,0):[]}),i.of||(i.of=function(){return i.from(arguments)}),i.prototype.find||(i.prototype.find=function(t,e){for(var n,i=this.length,r=0;i>r;){if(r in this&&(n=this[r],t.call(e,n,r,this)))return n;r++}return void 0}),i.prototype.findIndex||(i.prototype.findIndex=function(t,e){for(var n,i=this.length,r=0;i>r;){if(r in this&&(n=this[r],t.call(e,n,r,this)))return r;r++}return-1}),i.prototype.fill||(i.prototype.fill=function(t,e,n){var i,r=this.length;e=u(e)||0,n=2 in arguments?u(n)||0:r,i=0>e?f.max(r+e,0):f.min(e,r),n=0>n?f.max(r+n,0):f.min(n,r);for(;n>i;)this[i]=t,i++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new i(t+1).join(this)}),u.isFinite||(u.isFinite=function(t){return"number"==typeof t&&p(t)}),u.isInteger||(u.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),u.isNaN||(u.isNaN=function(t){return"number"==typeof t&&d(t)}),u.parseInt||(u.parseInt=g),u.parseFloat||(u.parseFloat=m),f.trunc||(f.trunc=function(t){return t=u(t),d(t)||0===t||!u.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,i.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function r(t,n){return n.reduce(function(n,i){return n[i]=e(t[i]),n},{})}function u(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}u(i,r(i.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),u(o,r(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw h("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=i.push(this,t))},has:function(t){return-1!=i.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=i.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(i.splice(this,e,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw h("Map implementation doesn't accept parameters");this.length=0}var e=0,r=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return i.find(this,function(i){return n.is(t,i[e])})},set:function(t,e){var n=this._getPair(t);n?n[r]=e:this.size=i.push(this,[t,e])},get:function(t){return n(this._getPair(t))[r]},has:function(t){return s(this._getPair(t))},"delete":function(t){var r=i.findIndex(this,function(i){return n.is(t,i[e])});return-1==r?!1:(i.splice(this,r,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw h("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function r(t){if(n(t)!==t)throw l("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(r(t))||i.push(this,t)},has:function(t){return-1!=i.findIndex(this,e,r(t))},"delete":function(t){var n=i.findIndex(this,e,r(t));return-1==n?!1:(i.splice(this,n,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw h("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function r(t){if(n(t)!==t)throw l("Invalid value used as weak map key");return t}var o=0,u=1;return n.assign(t.prototype,{_getPair:function(t){return i.find(this,e,r(t))},set:function(t,e){var n=this._getPair(t);n?n[u]=e:i.push(this,[t,e])},get:function(t){return n(this._getPair(t))[u]},has:function(t){return s(this._getPair(t))},"delete":function(t){var n=i.findIndex(this,e,r(t));return-1==n?!1:(i.splice(this,n,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,i.prototype.slice.call(e,1))}function n(t){var n,i=t.data;"string"==typeof i&&i.startsWith(s)&&(n=o[i],n&&(delete o[i],e(n)))}var r=0,o={},u=!0,s="setImmediatePolyfillMessage";return{setImmediate:function(){var e=r++,i=s+e;return o[i]=arguments,u&&(u=!1,t.addEventListener("message",n)),t.postMessage(i,"*"),e},clearImmediate:function(t){delete o[s+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return i(e)?e:new f(function(n,i){t.setImmediate(function(){try{e.then(n,i)}catch(t){i(t)}})})}function i(t){return t instanceof f}function r(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function u(t){return t.every(o)}function s(t){return t}function a(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return r(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,i){t.forEach(function(t){e(t).then(n,i)})})},all:function(t){return new f(function(n,i){var r=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){r[o]=e,u(t)&&n(r)},i)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){i._fulfill(t)}function n(t){i._reject(t)}var i=this;try{t(e,n)}catch(r){o(i)||n(r)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,i){var o=this;return new f(function(u,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(i){return void c(i)}r(t)?e(t).then(u,c):u(t)})}function h(){t.setImmediate(function(){var t;try{t=i(o._reason)}catch(n){return void c(n)}r(t)?e(t).then(u,c):u(t)})}n=n||s,i=i||a,o._fulfilled?f():o._rejected?h():o._enqueue(f,h)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,i=a.now(),r=i;return function(e){var o=a.now(),u=f.max(0,n-(o-r)),s=o+u;return r=s,t.setTimeout(function(){e(s-i)},u)}}].find(s),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(s)}),"dataset"in e.documentElement||n.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function r(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function u(t,o){return i.forEach(o,function(i){var o=i.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),r(i))}),t}return function(){return u(new y,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in i||n.defineProperty(i,t,{get:o[t]})}var i,r=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&r!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&r!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&r!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&r!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,i=this.childNodes,o=i.length,u=0,s=0;o>u;)e=i[u],r==e.nodeType&&(n[s++]=e),u++;return n.length=s,n}}};i=HTMLElement.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){i=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=i.indexOf(t.querySelectorAll(n),e)}function r(t){var n,r,o,u=t.length;if(1==u)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(r=e.createDocumentFragment(),t=i.from(t),o=0;u>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),r.appendChild(n),o++;return r}function o(t){t in a||(a[t]=c[t])}var u=1,a=HTMLElement.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(r(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=r(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(r(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(r(arguments))},prepend:function(){this.insertBefore(r(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[a.matchesSelector,a.oMatchesSelector,a.msMatchesSelector,a.mozMatchesSelector,a.webkitMatchesSelector,function(n){var i,r;return this===e?!1:(r=this.parentNode)?(u==r.nodeType&&(r=r.ownerDocument),t(r,this,n)):(r=e.createDocumentFragment(),r.appendChild(this),i=t(r,this,n),void r.removeChild(this))}].find(s)};n.keys(c).forEach(o),a=e.constructor.prototype,["query","queryAll"].forEach(o),a=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file +!function(t,e,n,r,i,o,u,s,a,c,f,h,l,p,d,m,g){"use strict";function y(){}(function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)})()||new function(){var t=n.create;n.create=function(e,r){var i=t(e,r);return n.hasOwnProperty.call(i,0)||(n.defineProperty(i,0,{configurable:!0}),delete i[0]),i}},n.assign||(n.assign=function(t){return r.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),n.setPrototypeOf||(n.setPrototypeOf=function(t,e){return t.__proto__=e,t}),r.from||(r.from=function(t,e,i){return n(t).length?e?r.map(t,e,i):r.slice(t,0):[]}),r.of||(r.of=function(){return r.from(arguments)}),r.prototype.find||(r.prototype.find=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return n;i++}return void 0}),r.prototype.findIndex||(r.prototype.findIndex=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return i;i++}return-1}),r.prototype.fill||(r.prototype.fill=function(t,e,n){var r,i=this.length;e=u(e)||0,n=2 in arguments?u(n)||0:i,r=0>e?f.max(i+e,0):f.min(e,i),n=0>n?f.max(i+n,0):f.min(n,i);for(;n>r;)this[r]=t,r++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new r(t+1).join(this)}),u.isFinite||(u.isFinite=function(t){return"number"==typeof t&&p(t)}),u.isInteger||(u.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),u.isNaN||(u.isNaN=function(t){return"number"==typeof t&&d(t)}),u.parseInt||(u.parseInt=g),u.parseFloat||(u.parseFloat=m),f.trunc||(f.trunc=function(t){return t=u(t),d(t)||0===t||!u.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,r.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function i(t,n){return n.reduce(function(n,r){return n[r]=e(t[r]),n},{})}function u(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}u(r,i(r.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),u(o,i(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw h("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=r.push(this,t))},has:function(t){return-1!=r.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=r.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(r.splice(this,e,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw h("Map implementation doesn't accept parameters");this.length=0}var e=0,i=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return r.find(this,function(r){return n.is(t,r[e])})},set:function(t,e){var n=this._getPair(t);n?n[i]=e:this.size=r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[i]},has:function(t){return s(this._getPair(t))},"delete":function(t){var i=r.findIndex(this,function(r){return n.is(t,r[e])});return-1==i?!1:(r.splice(this,i,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw h("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function i(t){if(n(t)!==t)throw l("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(i(t))||r.push(this,t)},has:function(t){return-1!=r.findIndex(this,e,i(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw h("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function i(t){if(n(t)!==t)throw l("Invalid value used as weak map key");return t}var o=0,u=1;return n.assign(t.prototype,{_getPair:function(t){return r.find(this,e,i(t))},set:function(t,e){var n=this._getPair(t);n?n[u]=e:r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[u]},has:function(t){return s(this._getPair(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}function n(t){var n,r=t.data;"string"==typeof r&&r.startsWith(s)&&(n=o[r],n&&(delete o[r],e(n)))}var i=0,o={},u=!0,s="setImmediatePolyfillMessage";return{setImmediate:function(){var e=i++,r=s+e;return o[r]=arguments,u&&(u=!1,t.addEventListener("message",n)),t.postMessage(r,"*"),e},clearImmediate:function(t){delete o[s+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return r(e)?e:new f(function(n,r){t.setImmediate(function(){try{e.then(n,r)}catch(t){r(t)}})})}function r(t){return t instanceof f}function i(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function u(t){return t.every(o)}function s(t){return t}function a(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return i(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,r){t.forEach(function(t){e(t).then(n,r)})})},all:function(t){return new f(function(n,r){var i=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){i[o]=e,u(t)&&n(i)},r)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){r._fulfill(t)}function n(t){r._reject(t)}var r=this;try{t(e,n)}catch(i){o(r)||n(i)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,r){var o=this;return new f(function(u,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(r){return void c(r)}i(t)?e(t).then(u,c):u(t)})}function h(){t.setImmediate(function(){var t;try{t=r(o._reason)}catch(n){return void c(n)}i(t)?e(t).then(u,c):u(t)})}n=n||s,r=r||a,o._fulfilled?f():o._rejected?h():o._enqueue(f,h)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,r=a.now(),i=r;return function(e){var o=a.now(),u=f.max(0,n-(o-i)),s=o+u;return i=s,t.setTimeout(function(){e(s-r)},u)}}].find(s),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(s)}),"dataset"in e.documentElement||n.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function i(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function u(t,o){return r.forEach(o,function(r){var o=r.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),i(r))}),t}return function(){return u(new y,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in r||n.defineProperty(r,t,{get:o[t]})}var r,i=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&i!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&i!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&i!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&i!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,r=this.childNodes,o=r.length,u=0,s=0;o>u;)e=r[u],i==e.nodeType&&(n[s++]=e),u++;return n.length=s,n}}};r=HTMLElement.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){r=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=r.indexOf(t.querySelectorAll(n),e)}function i(t){var n,i,o,u=t.length;if(1==u)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(i=e.createDocumentFragment(),t=r.from(t),o=0;u>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),i.appendChild(n),o++;return i}function o(t){t in a||(a[t]=c[t])}var u=1,a=HTMLElement.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(i(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=i(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(i(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(i(arguments))},prepend:function(){this.insertBefore(i(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[a.matchesSelector,a.oMatchesSelector,a.msMatchesSelector,a.mozMatchesSelector,a.webkitMatchesSelector,function(n){var r,i;return this===e?!1:(i=this.parentNode)?(u==i.nodeType&&(i=i.ownerDocument),t(i,this,n)):(i=e.createDocumentFragment(),i.appendChild(this),r=t(i,this,n),void i.removeChild(this))}].find(s)};n.keys(c).forEach(o),a=e.constructor.prototype,["query","queryAll"].forEach(o),a=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file diff --git a/min/jscore-polyfill-ie9.js b/min/jscore-polyfill-ie9.js index c94be09..33fc378 100644 --- a/min/jscore-polyfill-ie9.js +++ b/min/jscore-polyfill-ie9.js @@ -1,2 +1,2 @@ //jsCore polyfill v0.4.7 IE9+ github.com/Octane/jsCore -!function(t,e,n,i,r,o,s,u,a,c,f,h,l,p,d,m,g){"use strict";function y(){}(function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)})()||new function(){var t=n.create;n.create=function(e,i){var r=t(e,i);return n.hasOwnProperty.call(r,0)||(n.defineProperty(r,0,{configurable:!0}),delete r[0]),r}},n.assign||(n.assign=function(t){return i.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),i.from||(i.from=function(t,e,r){return n(t).length?e?i.map(t,e,r):i.slice(t,0):[]}),i.of||(i.of=function(){return i.from(arguments)}),i.prototype.find||(i.prototype.find=function(t,e){for(var n,i=this.length,r=0;i>r;){if(r in this&&(n=this[r],t.call(e,n,r,this)))return n;r++}return void 0}),i.prototype.findIndex||(i.prototype.findIndex=function(t,e){for(var n,i=this.length,r=0;i>r;){if(r in this&&(n=this[r],t.call(e,n,r,this)))return r;r++}return-1}),i.prototype.fill||(i.prototype.fill=function(t,e,n){var i,r=this.length;e=s(e)||0,n=2 in arguments?s(n)||0:r,i=0>e?f.max(r+e,0):f.min(e,r),n=0>n?f.max(r+n,0):f.min(n,r);for(;n>i;)this[i]=t,i++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new i(t+1).join(this)}),s.isFinite||(s.isFinite=function(t){return"number"==typeof t&&p(t)}),s.isInteger||(s.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),s.isNaN||(s.isNaN=function(t){return"number"==typeof t&&d(t)}),s.parseInt||(s.parseInt=g),s.parseFloat||(s.parseFloat=m),f.trunc||(f.trunc=function(t){return t=s(t),d(t)||0===t||!s.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,i.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function r(t,n){return n.reduce(function(n,i){return n[i]=e(t[i]),n},{})}function s(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}s(i,r(i.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),s(o,r(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw h("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=i.push(this,t))},has:function(t){return-1!=i.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=i.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(i.splice(this,e,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw h("Map implementation doesn't accept parameters");this.length=0}var e=0,r=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return i.find(this,function(i){return n.is(t,i[e])})},set:function(t,e){var n=this._getPair(t);n?n[r]=e:this.size=i.push(this,[t,e])},get:function(t){return n(this._getPair(t))[r]},has:function(t){return u(this._getPair(t))},"delete":function(t){var r=i.findIndex(this,function(i){return n.is(t,i[e])});return-1==r?!1:(i.splice(this,r,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw h("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function r(t){if(n(t)!==t)throw l("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(r(t))||i.push(this,t)},has:function(t){return-1!=i.findIndex(this,e,r(t))},"delete":function(t){var n=i.findIndex(this,e,r(t));return-1==n?!1:(i.splice(this,n,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw h("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function r(t){if(n(t)!==t)throw l("Invalid value used as weak map key");return t}var o=0,s=1;return n.assign(t.prototype,{_getPair:function(t){return i.find(this,e,r(t))},set:function(t,e){var n=this._getPair(t);n?n[s]=e:i.push(this,[t,e])},get:function(t){return n(this._getPair(t))[s]},has:function(t){return u(this._getPair(t))},"delete":function(t){var n=i.findIndex(this,e,r(t));return-1==n?!1:(i.splice(this,n,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,i.prototype.slice.call(e,1))}function n(t){var n,i=t.data;"string"==typeof i&&i.startsWith(u)&&(n=o[i],n&&(delete o[i],e(n)))}var r=0,o={},s=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var e=r++,i=u+e;return o[i]=arguments,s&&(s=!1,t.addEventListener("message",n)),t.postMessage(i,"*"),e},clearImmediate:function(t){delete o[u+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return i(e)?e:new f(function(n,i){t.setImmediate(function(){try{e.then(n,i)}catch(t){i(t)}})})}function i(t){return t instanceof f}function r(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function s(t){return t.every(o)}function u(t){return t}function a(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return r(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,i){t.forEach(function(t){e(t).then(n,i)})})},all:function(t){return new f(function(n,i){var r=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){r[o]=e,s(t)&&n(r)},i)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){i._fulfill(t)}function n(t){i._reject(t)}var i=this;try{t(e,n)}catch(r){o(i)||n(r)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,i){var o=this;return new f(function(s,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(i){return void c(i)}r(t)?e(t).then(s,c):s(t)})}function h(){t.setImmediate(function(){var t;try{t=i(o._reason)}catch(n){return void c(n)}r(t)?e(t).then(s,c):s(t)})}n=n||u,i=i||a,o._fulfilled?f():o._rejected?h():o._enqueue(f,h)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,i=a.now(),r=i;return function(e){var o=a.now(),s=f.max(0,n-(o-r)),u=o+s;return r=u,t.setTimeout(function(){e(u-i)},s)}}].find(u),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(u)}),"dataset"in e.documentElement||n.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function r(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function s(t,o){return i.forEach(o,function(i){var o=i.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),r(i))}),t}return function(){return s(new y,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in i||n.defineProperty(i,t,{get:o[t]})}var i,r=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&r!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&r!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&r!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&r!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,i=this.childNodes,o=i.length,s=0,u=0;o>s;)e=i[s],r==e.nodeType&&(n[u++]=e),s++;return n.length=u,n}}};i=HTMLElement.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){i=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=i.indexOf(t.querySelectorAll(n),e)}function r(t){var n,r,o,s=t.length;if(1==s)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(r=e.createDocumentFragment(),t=i.from(t),o=0;s>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),r.appendChild(n),o++;return r}function o(t){t in a||(a[t]=c[t])}var s=1,a=HTMLElement.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(r(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=r(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(r(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(r(arguments))},prepend:function(){this.insertBefore(r(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[a.matchesSelector,a.oMatchesSelector,a.msMatchesSelector,a.mozMatchesSelector,a.webkitMatchesSelector,function(n){var i,r;return this===e?!1:(r=this.parentNode)?(s==r.nodeType&&(r=r.ownerDocument),t(r,this,n)):(r=e.createDocumentFragment(),r.appendChild(this),i=t(r,this,n),void r.removeChild(this))}].find(u)};n.keys(c).forEach(o),a=e.constructor.prototype,["query","queryAll"].forEach(o),a=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in e.documentElement||n.defineProperty(HTMLElement.prototype,"classList",{get:new function(){function t(t,e){this._getTokens=t,this._onChange=e}function e(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return n.assign(t.prototype,{_clear:function(){i.splice(this,0,this.length)},_push:function(t){i.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){-1==i.indexOf(this,t)&&i.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){var e=i.indexOf(this,t);-1!=e&&i.splice(this,e,1)},this),t!=this.length&&this._onChange()},toggle:function(t,e){return this._update(),e===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=i.indexOf(this,t)},toString:function(){return i.join(this," ")}}),function(){var n=this;return n._classList||(n._classList=new t(function(){return e(n.className)},function(){n.className=this.toString()})),n._classList._update(),n._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=e(),t&&i.prototype.push.apply(this,r(t))}var e=new function(){function t(){var n=f.random().toString().slice(2);return e[n]?t():(e[n]=1,n)}var e={};return function(){return"-------------------------"+t()}},r=new function(){function t(t){return t.selected}function e(e){var n=e.nodeName.toLowerCase(),r=e.type;return e.name?e.disabled?!1:"fieldset"==n?!1:"select"==n&&e.multiple?i.some(e.options,t):"submit"==r||"reset"==r||"button"==r||"file"==r?!1:"radio"!=r&&"checkbox"!=r||!e.checked?!0:!1:!1}function n(e){return"select"==e.tagName.toLowerCase()&&e.multiple?i.reduce(e.options,function(e,n){return t(n)&&e.push(n.value),e},[]):[e.value]}return function(t){return i.reduce(t.elements,function(t,i){return e(i)&&n(i).forEach(function(e){t.push({name:i.name,value:e})}),t},[])}};return n.assign(t.prototype,{notNative:!0,append:function(t,e,n){i.push(this,{name:t,value:e,fileName:n})},toString:function(){var t=this.boundary,e="";return i.forEach(this,function(i){var r,o=i.name,s=i.value;e+="--"+t+"\r\n",n(s)===s?(r=i.fileName||s.name,e+='Content-Disposition: form-data; name="',e+=o+'"; filename="'+r+'"\r\n',e+="Content-Type: "+s.type+"\r\n\r\n",e+=s.content+"\r\n"):(e+='Content-Disposition: form-data; name="',e+=o+'"\r\n\r\n',e+=s+"\r\n")}),e+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var e=XMLHttpRequest.prototype.send;return function(n){n instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n.boundary),n=n.toString()),e.call(this,n)}},t}),history.pushState||new function(){}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file +!function(t,e,n,i,r,o,s,u,a,c,f,h,l,p,d,m,g){"use strict";function y(){}(function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)})()||new function(){var t=n.create;n.create=function(e,i){var r=t(e,i);return n.hasOwnProperty.call(r,0)||(n.defineProperty(r,0,{configurable:!0}),delete r[0]),r}},n.assign||(n.assign=function(t){return i.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),n.setPrototypeOf||(n.setPrototypeOf=function(t,e){return t.__proto__=e,t}),i.from||(i.from=function(t,e,r){return n(t).length?e?i.map(t,e,r):i.slice(t,0):[]}),i.of||(i.of=function(){return i.from(arguments)}),i.prototype.find||(i.prototype.find=function(t,e){for(var n,i=this.length,r=0;i>r;){if(r in this&&(n=this[r],t.call(e,n,r,this)))return n;r++}return void 0}),i.prototype.findIndex||(i.prototype.findIndex=function(t,e){for(var n,i=this.length,r=0;i>r;){if(r in this&&(n=this[r],t.call(e,n,r,this)))return r;r++}return-1}),i.prototype.fill||(i.prototype.fill=function(t,e,n){var i,r=this.length;e=s(e)||0,n=2 in arguments?s(n)||0:r,i=0>e?f.max(r+e,0):f.min(e,r),n=0>n?f.max(r+n,0):f.min(n,r);for(;n>i;)this[i]=t,i++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new i(t+1).join(this)}),s.isFinite||(s.isFinite=function(t){return"number"==typeof t&&p(t)}),s.isInteger||(s.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),s.isNaN||(s.isNaN=function(t){return"number"==typeof t&&d(t)}),s.parseInt||(s.parseInt=g),s.parseFloat||(s.parseFloat=m),f.trunc||(f.trunc=function(t){return t=s(t),d(t)||0===t||!s.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,i.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function r(t,n){return n.reduce(function(n,i){return n[i]=e(t[i]),n},{})}function s(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}s(i,r(i.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),s(o,r(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw h("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=i.push(this,t))},has:function(t){return-1!=i.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=i.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(i.splice(this,e,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw h("Map implementation doesn't accept parameters");this.length=0}var e=0,r=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return i.find(this,function(i){return n.is(t,i[e])})},set:function(t,e){var n=this._getPair(t);n?n[r]=e:this.size=i.push(this,[t,e])},get:function(t){return n(this._getPair(t))[r]},has:function(t){return u(this._getPair(t))},"delete":function(t){var r=i.findIndex(this,function(i){return n.is(t,i[e])});return-1==r?!1:(i.splice(this,r,1),this.size--,!0)},clear:function(){i.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw h("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function r(t){if(n(t)!==t)throw l("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(r(t))||i.push(this,t)},has:function(t){return-1!=i.findIndex(this,e,r(t))},"delete":function(t){var n=i.findIndex(this,e,r(t));return-1==n?!1:(i.splice(this,n,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw h("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function r(t){if(n(t)!==t)throw l("Invalid value used as weak map key");return t}var o=0,s=1;return n.assign(t.prototype,{_getPair:function(t){return i.find(this,e,r(t))},set:function(t,e){var n=this._getPair(t);n?n[s]=e:i.push(this,[t,e])},get:function(t){return n(this._getPair(t))[s]},has:function(t){return u(this._getPair(t))},"delete":function(t){var n=i.findIndex(this,e,r(t));return-1==n?!1:(i.splice(this,n,1),!0)},clear:function(){i.splice(this,0,this.length)}}),t}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,i.prototype.slice.call(e,1))}function n(t){var n,i=t.data;"string"==typeof i&&i.startsWith(u)&&(n=o[i],n&&(delete o[i],e(n)))}var r=0,o={},s=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var e=r++,i=u+e;return o[i]=arguments,s&&(s=!1,t.addEventListener("message",n)),t.postMessage(i,"*"),e},clearImmediate:function(t){delete o[u+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return i(e)?e:new f(function(n,i){t.setImmediate(function(){try{e.then(n,i)}catch(t){i(t)}})})}function i(t){return t instanceof f}function r(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function s(t){return t.every(o)}function u(t){return t}function a(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return r(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,i){t.forEach(function(t){e(t).then(n,i)})})},all:function(t){return new f(function(n,i){var r=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){r[o]=e,s(t)&&n(r)},i)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){i._fulfill(t)}function n(t){i._reject(t)}var i=this;try{t(e,n)}catch(r){o(i)||n(r)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,i){var o=this;return new f(function(s,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(i){return void c(i)}r(t)?e(t).then(s,c):s(t)})}function h(){t.setImmediate(function(){var t;try{t=i(o._reason)}catch(n){return void c(n)}r(t)?e(t).then(s,c):s(t)})}n=n||u,i=i||a,o._fulfilled?f():o._rejected?h():o._enqueue(f,h)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,i=a.now(),r=i;return function(e){var o=a.now(),s=f.max(0,n-(o-r)),u=o+s;return r=u,t.setTimeout(function(){e(u-i)},s)}}].find(u),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(u)}),"dataset"in e.documentElement||n.defineProperty(HTMLElement.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function r(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function s(t,o){return i.forEach(o,function(i){var o=i.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),r(i))}),t}return function(){return s(new y,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in i||n.defineProperty(i,t,{get:o[t]})}var i,r=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&r!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&r!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&r!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&r!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,i=this.childNodes,o=i.length,s=0,u=0;o>s;)e=i[s],r==e.nodeType&&(n[u++]=e),s++;return n.length=u,n}}};i=HTMLElement.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){i=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=i.indexOf(t.querySelectorAll(n),e)}function r(t){var n,r,o,s=t.length;if(1==s)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(r=e.createDocumentFragment(),t=i.from(t),o=0;s>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),r.appendChild(n),o++;return r}function o(t){t in a||(a[t]=c[t])}var s=1,a=HTMLElement.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(r(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=r(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(r(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(r(arguments))},prepend:function(){this.insertBefore(r(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[a.matchesSelector,a.oMatchesSelector,a.msMatchesSelector,a.mozMatchesSelector,a.webkitMatchesSelector,function(n){var i,r;return this===e?!1:(r=this.parentNode)?(s==r.nodeType&&(r=r.ownerDocument),t(r,this,n)):(r=e.createDocumentFragment(),r.appendChild(this),i=t(r,this,n),void r.removeChild(this))}].find(u)};n.keys(c).forEach(o),a=e.constructor.prototype,["query","queryAll"].forEach(o),a=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in e.documentElement||n.defineProperty(HTMLElement.prototype,"classList",{get:new function(){function t(t,e){this._getTokens=t,this._onChange=e}function e(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return n.assign(t.prototype,{_clear:function(){i.splice(this,0,this.length)},_push:function(t){i.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){-1==i.indexOf(this,t)&&i.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,i.forEach(arguments,function(t){var e=i.indexOf(this,t);-1!=e&&i.splice(this,e,1)},this),t!=this.length&&this._onChange()},toggle:function(t,e){return this._update(),e===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=i.indexOf(this,t)},toString:function(){return i.join(this," ")}}),function(){var n=this;return n._classList||(n._classList=new t(function(){return e(n.className)},function(){n.className=this.toString()})),n._classList._update(),n._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=e(),t&&i.prototype.push.apply(this,r(t))}var e=new function(){function t(){var n=f.random().toString().slice(2);return e[n]?t():(e[n]=1,n)}var e={};return function(){return"-------------------------"+t()}},r=new function(){function t(t){return t.selected}function e(e){var n=e.nodeName.toLowerCase(),r=e.type;return e.name?e.disabled?!1:"fieldset"==n?!1:"select"==n&&e.multiple?i.some(e.options,t):"submit"==r||"reset"==r||"button"==r||"file"==r?!1:"radio"!=r&&"checkbox"!=r||!e.checked?!0:!1:!1}function n(e){return"select"==e.tagName.toLowerCase()&&e.multiple?i.reduce(e.options,function(e,n){return t(n)&&e.push(n.value),e},[]):[e.value]}return function(t){return i.reduce(t.elements,function(t,i){return e(i)&&n(i).forEach(function(e){t.push({name:i.name,value:e})}),t},[])}};return n.assign(t.prototype,{notNative:!0,append:function(t,e,n){i.push(this,{name:t,value:e,fileName:n})},toString:function(){var t=this.boundary,e="";return i.forEach(this,function(i){var r,o=i.name,s=i.value;e+="--"+t+"\r\n",n(s)===s?(r=i.fileName||s.name,e+='Content-Disposition: form-data; name="',e+=o+'"; filename="'+r+'"\r\n',e+="Content-Type: "+s.type+"\r\n\r\n",e+=s.content+"\r\n"):(e+='Content-Disposition: form-data; name="',e+=o+'"\r\n\r\n',e+=s+"\r\n")}),e+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var e=XMLHttpRequest.prototype.send;return function(n){n instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n.boundary),n=n.toString()),e.call(this,n)}},t}),history.pushState||new function(){}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file diff --git a/min/jscore-polyfill.js b/min/jscore-polyfill.js index d112b60..11849dd 100644 --- a/min/jscore-polyfill.js +++ b/min/jscore-polyfill.js @@ -1,2 +1,2 @@ //jsCore polyfill v0.4.7 IE8+ github.com/Octane/jsCore -!function(t,e,n,r,i,o,a,s,u,c,f,l,h,p,d,m,y){"use strict";function g(){}var v=v||Element;"textContent"in e.documentElement||n.defineProperty(v.prototype,"textContent",{get:function(){return this.innerText},set:function(t){this.innerText=t}}),"textContent"in e.createTextNode("test")||n.defineProperty(Text.prototype,"textContent",{get:function(){return this.nodeValue},set:function(t){this.nodeValue=t}}),"head"in e||n.defineProperty(e,"head",{get:function(){return this.query("head")}}),{toString:null}.propertyIsEnumerable("toString")||new function(){var t=["constructor","toString","toLocaleString","valueOf","hasOwnProperty","propertyIsEnumerable","isPrototypeOf"];n.keys=function(e){var r,i=t.length,o=[],a=0;for(r in e)n.hasOwnProperty.call(e,r)&&(o[a++]=r);for(;i--;)r=t[i],n.hasOwnProperty.call(e,r)&&(o[a++]=r);return o}},n.create||(n.create=function(t,e){function n(){}if(e)throw new l("Object.create implementation only accepts the 1st parameter");return n.prototype=t,new n});var w=t instanceof n||new function(){function t(){var t;return{get:function(){return t},set:function(e){t=e}}}function e(e){return n.defineProperty(e,"length",t())}return new function(){function t(){return e(n.getElementsByName(i++))}var n=new ActiveXObject("htmlfile"),r=t().constructor.prototype,i=0;return r.urns=void 0,r.tags=void 0,r.item=void 0,r.namedItem=void 0,r=null,t}};r.isArray||(r.isArray=function(t){return"[object Array]"==n.prototype.toString.call(t)}),r.prototype.forEach||(r.prototype.forEach=function(t,e){for(var n=this.length,r=0;n>r;)r in this&&t.call(e,this[r],r,this),r++}),r.prototype.map||(r.prototype.map=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&(n[i]=t.call(e,this[i],i,this)),i++;return n}),r.prototype.indexOf||(r.prototype.indexOf=function(t){for(var e=this.length,n=0;e>n;){if(n in this&&this[n]===t)return n;n++}return-1}),r.prototype.lastIndexOf||(r.prototype.lastIndexOf=function(t){for(var e=this.length;e--;)if(e in this&&this[e]===t)return e;return-1}),r.prototype.filter||(r.prototype.filter=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&t.call(e,this[i],i,this)&&n.push(this[i]),i++;return n}),r.prototype.every||(r.prototype.every=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&!t.call(e,this[r],r,this))return!1;r++}return!0}),r.prototype.some||(r.prototype.some=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&t.call(e,this[r],r,this))return!0;r++}return!1}),r.prototype.reduce||(r.prototype.reduce=function(t,e){var n,r=this.length,i=0;if(arguments.length<2){if(!r)throw new h("Reduce of empty array with no initial value");for(;r>i;){if(i in this){n=this[i],i++;break}i++}}else n=e;for(;r>i;)i in this&&(n=t(n,this[i],i,this)),i++;return n}),r.prototype.reduceRight||(r.prototype.reduceRight=function(t,e){var n,r=this.length;if(arguments.length<2){if(!this.length)throw new h("Reduce of empty array with no initial value");for(;r--;)if(r in this){n=this[r];break}}else n=e;for(;r--;)r in this&&(n=t(n,this[r],r,this));return n}),i.bind||(i.prototype.bind=new function(){function e(e,n){for(var r=[],o=n.length,a=0;o>a;)r.push("arg"+a),a++;return r=r.join(","),new i("Constructor",r,"return new Constructor("+r+")").apply(t,[e].concat(n))}return function(t){function n(){function a(){}var s,u,c;if(n._protoMagic)return n._protoMagic=!1,a.prototype=this,a.prototype.constructor=o,new a;if(u=i.concat(r.from(arguments)),c=u.length,this instanceof n){switch(n._protoMagic=!0,c){case 0:s=new o;break;case 1:s=new o(u[0]);break;case 2:s=new o(u[0],u[1]);break;default:s=e(o,u)}return a.prototype=s,n.prototype=new a,n.prototype.constructor=n,new n}switch(c){case 0:return o.call(t);case 1:return o.call(t,u[0]);case 2:return o.call(t,u[0],u[1])}return o.apply(t,u)}var i=r.slice(arguments,1),o=this;if("function"!=typeof o)throw new h("Function.prototype.bind called on non-function");return n._protoMagic=!1,n}}),o.prototype.trim||(o.prototype.trim=new function(){var t,e,n;return t=" \n \f\r   ᠎ ",t+="        ",t+="     \u2028\u2029",t="["+t+"]",n=new c("^"+t+t+"*"),e=new c(t+t+"*$"),function(){return this.replace(n,"").replace(e,"")}}),u.now||(u.now=function(){return(new u).getTime()}),function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)}()||new function(){var t=n.create;n.create=function(e,r){var i=t(e,r);return n.hasOwnProperty.call(i,0)||(n.defineProperty(i,0,{configurable:!0}),delete i[0]),i}},n.assign||(n.assign=function(t){return r.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),r.from||(r.from=function(t,e,i){return n(t).length?e?r.map(t,e,i):r.slice(t,0):[]}),r.of||(r.of=function(){return r.from(arguments)}),r.prototype.find||(r.prototype.find=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return n;i++}return void 0}),r.prototype.findIndex||(r.prototype.findIndex=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return i;i++}return-1}),r.prototype.fill||(r.prototype.fill=function(t,e,n){var r,i=this.length;e=a(e)||0,n=2 in arguments?a(n)||0:i,r=0>e?f.max(i+e,0):f.min(e,i),n=0>n?f.max(i+n,0):f.min(n,i);for(;n>r;)this[r]=t,r++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new r(t+1).join(this)}),a.isFinite||(a.isFinite=function(t){return"number"==typeof t&&p(t)}),a.isInteger||(a.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),a.isNaN||(a.isNaN=function(t){return"number"==typeof t&&d(t)}),a.parseInt||(a.parseInt=y),a.parseFloat||(a.parseFloat=m),f.trunc||(f.trunc=function(t){return t=a(t),d(t)||0===t||!a.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,r.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function i(t,n){return n.reduce(function(n,r){return n[r]=e(t[r]),n},{})}function a(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}a(r,i(r.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,i(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=r.push(this,t))},has:function(t){return-1!=r.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=r.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(r.splice(this,e,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var e=0,i=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return r.find(this,function(r){return n.is(t,r[e])})},set:function(t,e){var n=this._getPair(t);n?n[i]=e:this.size=r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[i]},has:function(t){return s(this._getPair(t))},"delete":function(t){var i=r.findIndex(this,function(r){return n.is(t,r[e])});return-1==i?!1:(r.splice(this,i,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function i(t){if(n(t)!==t)throw h("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(i(t))||r.push(this,t)},has:function(t){return-1!=r.findIndex(this,e,i(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function i(t){if(n(t)!==t)throw h("Invalid value used as weak map key");return t}var o=0,a=1;return n.assign(t.prototype,{_getPair:function(t){return r.find(this,e,i(t))},set:function(t,e){var n=this._getPair(t);n?n[a]=e:r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[a]},has:function(t){return s(this._getPair(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t instanceof n||n.assign(t,new function(){function n(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}var i=0,o={};return{setImmediate:function(){function t(){this.onreadystatechange=null,e.removeChild(this),o[a]&&(delete o[a],n(r))}var r=arguments,a=i++;return o[a]=!0,new function(){var n=e.createElement("script");n.onreadystatechange=t,e.appendChild(n)},a},clearImmediate:function(t){delete o[t]}}}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}function n(t){var n,r=t.data;"string"==typeof r&&r.startsWith(s)&&(n=o[r],n&&(delete o[r],e(n)))}var i=0,o={},a=!0,s="setImmediatePolyfillMessage";return{setImmediate:function(){var e=i++,r=s+e;return o[r]=arguments,a&&(a=!1,t.addEventListener("message",n)),t.postMessage(r,"*"),e},clearImmediate:function(t){delete o[s+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return r(e)?e:new f(function(n,r){t.setImmediate(function(){try{e.then(n,r)}catch(t){r(t)}})})}function r(t){return t instanceof f}function i(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function a(t){return t.every(o)}function s(t){return t}function u(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return i(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,r){t.forEach(function(t){e(t).then(n,r)})})},all:function(t){return new f(function(n,r){var i=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){i[o]=e,a(t)&&n(i)},r)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){r._fulfill(t)}function n(t){r._reject(t)}var r=this;try{t(e,n)}catch(i){o(r)||n(i)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,r){var o=this;return new f(function(a,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(r){return void c(r)}i(t)?e(t).then(a,c):a(t)})}function l(){t.setImmediate(function(){var t;try{t=r(o._reason)}catch(n){return void c(n)}i(t)?e(t).then(a,c):a(t)})}n=n||s,r=r||u,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,r=u.now(),i=r;return function(e){var o=u.now(),a=f.max(0,n-(o-i)),s=o+a;return i=s,t.setTimeout(function(){e(s-r)},a)}}].find(s),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(s)}),"dataset"in e.documentElement||n.defineProperty(v.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function i(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function a(t,o){return r.forEach(o,function(r){var o=r.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),i(r))}),t}return function(){return a(new g,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in r||n.defineProperty(r,t,{get:o[t]})}var r,i=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&i!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&i!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&i!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&i!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,r=this.childNodes,o=r.length,a=0,s=0;o>a;)e=r[a],i==e.nodeType&&(n[s++]=e),a++;return n.length=s,n}}};r=v.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){r=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=r.indexOf(t.querySelectorAll(n),e)}function i(t){var n,i,o,a=t.length;if(1==a)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(i=e.createDocumentFragment(),t=r.from(t),o=0;a>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),i.appendChild(n),o++;return i}function o(t){t in u||(u[t]=c[t])}var a=1,u=v.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(i(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=i(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(i(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(i(arguments))},prepend:function(){this.insertBefore(i(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[u.matchesSelector,u.oMatchesSelector,u.msMatchesSelector,u.mozMatchesSelector,u.webkitMatchesSelector,function(n){var r,i;return this===e?!1:(i=this.parentNode)?(a==i.nodeType&&(i=i.ownerDocument),t(i,this,n)):(i=e.createDocumentFragment(),i.appendChild(this),r=t(i,this,n),void i.removeChild(this))}].find(s)};n.keys(c).forEach(o),u=e.constructor.prototype,["query","queryAll"].forEach(o),u=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in e.documentElement||n.defineProperty(v.prototype,"classList",{get:new function(){function t(t,e){this._getTokens=t,this._onChange=e}function e(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return n.assign(t.prototype,{_clear:function(){r.splice(this,0,this.length)},_push:function(t){r.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){-1==r.indexOf(this,t)&&r.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){var e=r.indexOf(this,t);-1!=e&&r.splice(this,e,1)},this),t!=this.length&&this._onChange()},toggle:function(t,e){return this._update(),e===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=r.indexOf(this,t)},toString:function(){return r.join(this," ")}}),function(){var n=this;return n._classList||(n._classList=new t(function(){return e(n.className)},function(){n.className=this.toString()})),n._classList._update(),n._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=e(),t&&r.prototype.push.apply(this,i(t))}var e=new function(){function t(){var n=f.random().toString().slice(2);return e[n]?t():(e[n]=1,n)}var e={};return function(){return"-------------------------"+t()}},i=new function(){function t(t){return t.selected}function e(e){var n=e.nodeName.toLowerCase(),i=e.type;return e.name?e.disabled?!1:"fieldset"==n?!1:"select"==n&&e.multiple?r.some(e.options,t):"submit"==i||"reset"==i||"button"==i||"file"==i?!1:"radio"!=i&&"checkbox"!=i||!e.checked?!0:!1:!1}function n(e){return"select"==e.tagName.toLowerCase()&&e.multiple?r.reduce(e.options,function(e,n){return t(n)&&e.push(n.value),e},[]):[e.value]}return function(t){return r.reduce(t.elements,function(t,r){return e(r)&&n(r).forEach(function(e){t.push({name:r.name,value:e})}),t},[])}};return n.assign(t.prototype,{notNative:!0,append:function(t,e,n){r.push(this,{name:t,value:e,fileName:n})},toString:function(){var t=this.boundary,e="";return r.forEach(this,function(r){var i,o=r.name,a=r.value;e+="--"+t+"\r\n",n(a)===a?(i=r.fileName||a.name,e+='Content-Disposition: form-data; name="',e+=o+'"; filename="'+i+'"\r\n',e+="Content-Type: "+a.type+"\r\n\r\n",e+=a.content+"\r\n"):(e+='Content-Disposition: form-data; name="',e+=o+'"\r\n\r\n',e+=a+"\r\n")}),e+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var e=XMLHttpRequest.prototype.send;return function(n){n instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n.boundary),n=n.toString()),e.call(this,n)}},t}),new function(){function t(t){for(var e=[],n=t.length,r=0;n>r;)e[r]=t[r],r++;return e}var i=r.prototype.slice;try{r.slice(e.documentElement.childNodes,0)}catch(o){r.slice=function(e,r,o){var a,s=arguments.length;return a=n(e)instanceof n?e:t(e),1==s||2==s&&0==r?a==e?i.call(a,0):a:2==s?i.call(a,r):i.call(a,r,o)}}},function(){var t={0:!0,length:1};return r.splice(t,0,1),t[0]}()&&new function(){var t=r.splice;r.splice=function(e,n,i){var o,a=t.apply(r,arguments);if(!(e instanceof r))for(o=e.length;i--;)delete e[o+i];return a}},"function"==typeof w&&(g=w),function(){var t=e.createElement("div");return t.appendChild(e.createComment("test")),t.children.length}()&&n.defineProperty(v.prototype,"children",{get:n.getOwnPropertyDescriptor(HTMLDocument.prototype,"children").get}),t.addEventListener||new function(){function t(t){var n=e.documentElement;t.pageX=t.clientX+n.scrollLeft,t.pageY=t.clientY+n.scrollTop,t.timeStamp||(t.timeStamp=u.now())}function r(e,n){return function(r){var i,o=e.slice(0),a=o.length,s=0;for(r instanceof d||t(r),r.currentTarget=n;a>s;)i=o[s],i.handleEvent?i.handleEvent(r):i.call(n,r),s++}}function i(t,e,n){var i,o,a,s,u=this;if(n)throw new l("Capturing phase is not supported");u._events||(u._events={}),o=u._events,s=m[t],s&&(t=s.eventType),a=o[t],a||(a={callbacks:[]},i=r(a.callbacks,u),s&&(i=s.decorateListener(i)),a.listener=i,o[t]=a,this.attachEvent("on"+t,i)),-1==a.callbacks.indexOf(e)&&a.callbacks.push(e)}function o(t,e,n){var r,i,o,a,s,u=this;if(n)throw new l("Capturing phase is not supported");u._events&&(i=u._events,s=m[t],s&&(t=s.eventType),i[t]&&(o=i[t],r=o.callbacks,a=r.indexOf(e),-1!=a&&(r.splice(a,1),r.length||(u.detachEvent("on"+t,o.listener),delete i[t]))))}function a(t){var e,n,r=t.type;return t instanceof d?(t.target=this,e=this._events,e&&e[r]&&e[r].listener(t)):(n=m[r],n&&(r=n.eventType),this.fireEvent("on"+r,t)),!t.defaultPrevented}function s(t,e,r){n.assign(this,{type:t,bubbles:e,cancelable:r})}function c(t,e,r,i,o){this.initEvent(t,e,r),n.assign(this,{view:i,detail:o})}function f(t,e,r,i,o,a,s,u,c,f,l,h,p,d,m){this.initUIEvent(t,e,r,i,o),n.assign(this,{screenX:a,screenY:s,clientX:u,clientY:c,ctrlKey:f,altKey:l,shiftKey:h,metaKey:p,button:d,fromElement:m})}function h(){this.defaultPrevented=!0,this.returnValue=!1}function p(){this.cancelBubble=!0}function d(){}var m={DOMContentLoaded:{eventType:"readystatechange",decorateListener:function(t){return function(n){"complete"==e.readyState&&t(n)}}}};n.assign(d.prototype,{type:"",timeStamp:0,detail:null,target:null,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:s,initCustomEvent:function(t,e,n,r){this.initEvent(t,e,n),this.detail=r}}),n.assign(Event.prototype,{timeStamp:0,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:s}),n.defineProperty(Event.prototype,"target",{get:function(){return this.srcElement}}),n.defineProperty(Event.prototype,"relatedTarget",{get:function(){return this.fromElement===this.srcElement?this.toElement:this.fromElement}}),[v,HTMLDocument,Window,XMLHttpRequest].forEach(function(t){var e=t.prototype;e.dispatchEvent=a,e.addEventListener=i,e.removeEventListener=o}),HTMLDocument.prototype.createEvent=function(t){var e;return t.startsWith("CustomEvent")?e=new d:(e=this.createEventObject(),t.startsWith("UIEvent")?e.initUIEvent=c:t.startsWith("MouseEvent")&&(e.initUIEvent=c,e.initMouseEvent=f)),e.timeStamp=u.now(),e}},"onload"in new XMLHttpRequest||new function(){var r=XMLHttpRequest.prototype,i=r.abort,o=r.send,a=r.open;n.assign(r,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,_unbind:function(){this.onreadystatechange=null},_fireEvent:function(n){var r=e.createEvent("CustomEvent");r.initEvent(n,!1,!1),this.dispatchEvent(r),n="on"+n,this[n]&&t.setImmediate(function(){r.target[n](r)})},_onReadyStateChange:function(){this.readyState==this.DONE&&(this._unbind(),this._fireEvent("load"))},open:function(){try{a.apply(this,arguments)}catch(t){this._unbind(),this._fireEvent("error")}},send:function(t){this.onreadystatechange=this._onReadyStateChange;try{o.call(this,t)}catch(e){this._unbind(),this._fireEvent("error")}},abort:function(){i.call(this),this._fireEvent("abort")}})},"onload"in e.createElement("script")||n.defineProperty(HTMLScriptElement.prototype,"onload",{set:function(t){this.onreadystatechange="function"==typeof t?function(n){"loaded"==this.readyState&&(this.onreadystatechange=null,n=e.createEvent("CustomEvent"),this.text?(n.initEvent("load",!1,!1),t.call(this,n)):this.onerror&&(n.initEvent("error",!1,!1),this.onerror(n)),this.onerror=null)}:null}}),t instanceof n||new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t,e){return t.replace("{ENABLED}",1!=e)}function i(t){return r(l.replace("{VALUE}",f.trunc(100*t)),t)}function a(t,e){return t.replace(p,i(e))}function s(t){return t.toLowerCase().contains("alpha")}var u=CSSStyleDeclaration.prototype,c="progid:DXImageTransform.Microsoft.",l="Alpha(opacity={VALUE}, enabled={ENABLED})",h=/\bopacity\s*=\s*(\d+)/i,p=/alpha\s*\(.*?\)/i;n.defineProperty(u,"cssFloat",{get:function(){return this.styleFloat},set:function(t){this.styleFloat=t}}),n.defineProperty(u,"opacity",{get:function(){var t="",e=this.filter.trim();return e&&e.replace(p,function(e){e.replace(h,function(e,n){t=o(n/100)})}),t},set:function(t){var e=this.filter.trim();!t||t>1?t=1:0>t&&(t=0),e?s(e)?this.filter=a(e,t):this.filter+=" "+c+i(t):this.filter=c+i(t)}}),n.assign(u,{getPropertyValue:function(t){return t=t.toLowerCase(),"float"==t?this.styleFloat:this[e(t)]},removeProperty:function(t){var n;return t=t.toLowerCase(),"float"==t?(t="styleFloat",n=this.styleFloat):(t=e(t),n=this[t]),this[t]="",n},setProperty:function(t,n){t=t.toLowerCase(),"float"==t&&(this.styleFloat=n),this[e(t)]=n}})},t.getComputedStyle||(t.getComputedStyle=new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t){return t=t.toLowerCase(),"float"==t?this.cssFloat:this[e(t)]}function i(t,e){return{get:function(){return t[e]}}}function a(t){return{get:function(){return t.styleFloat}}}function s(t){return{get:function(){var e=t["DXImageTransform.Microsoft.Alpha"]||t.alpha;return e?o(e.opacity/100):"1"}}}function u(t,e){if(e)throw new l("getComputedStyle implementation only accepts the 1st parameter");var o,u=t._compStyle;return u||(u=t._compStyle=new w,o=t.currentStyle,n.keys(o).forEach(function(t){n.defineProperty(u,t,i(o,t))}),n.defineProperty(u,"cssFloat",a(o)),n.defineProperty(u,"opacity",s(t.filters)),u.getPropertyValue=r),u}return u}),history.pushState||new function(){}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file +!function(t,e,n,r,i,o,s,a,u,c,f,l,h,p,d,m,y){"use strict";function g(){}var v=v||Element;"textContent"in e.documentElement||n.defineProperty(v.prototype,"textContent",{get:function(){return this.innerText},set:function(t){this.innerText=t}}),"textContent"in e.createTextNode("test")||n.defineProperty(Text.prototype,"textContent",{get:function(){return this.nodeValue},set:function(t){this.nodeValue=t}}),"head"in e||n.defineProperty(e,"head",{get:function(){return this.query("head")}}),{toString:null}.propertyIsEnumerable("toString")||new function(){var t=["constructor","toString","toLocaleString","valueOf","hasOwnProperty","propertyIsEnumerable","isPrototypeOf"];n.keys=function(e){var r,i=t.length,o=[],s=0;for(r in e)n.hasOwnProperty.call(e,r)&&(o[s++]=r);for(;i--;)r=t[i],n.hasOwnProperty.call(e,r)&&(o[s++]=r);return o}},n.create||(n.create=function(t,e){function n(){}if(e)throw new l("Object.create implementation only accepts the 1st parameter");return n.prototype=t,new n});var w=t instanceof n||new function(){function t(){var t;return{get:function(){return t},set:function(e){t=e}}}function e(e){return n.defineProperty(e,"length",t())}return new function(){function t(){return e(n.getElementsByName(i++))}var n=new ActiveXObject("htmlfile"),r=t().constructor.prototype,i=0;return r.urns=void 0,r.tags=void 0,r.item=void 0,r.namedItem=void 0,r=null,t}};r.isArray||(r.isArray=function(t){return"[object Array]"==n.prototype.toString.call(t)}),r.prototype.forEach||(r.prototype.forEach=function(t,e){for(var n=this.length,r=0;n>r;)r in this&&t.call(e,this[r],r,this),r++}),r.prototype.map||(r.prototype.map=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&(n[i]=t.call(e,this[i],i,this)),i++;return n}),r.prototype.indexOf||(r.prototype.indexOf=function(t){for(var e=this.length,n=0;e>n;){if(n in this&&this[n]===t)return n;n++}return-1}),r.prototype.lastIndexOf||(r.prototype.lastIndexOf=function(t){for(var e=this.length;e--;)if(e in this&&this[e]===t)return e;return-1}),r.prototype.filter||(r.prototype.filter=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&t.call(e,this[i],i,this)&&n.push(this[i]),i++;return n}),r.prototype.every||(r.prototype.every=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&!t.call(e,this[r],r,this))return!1;r++}return!0}),r.prototype.some||(r.prototype.some=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&t.call(e,this[r],r,this))return!0;r++}return!1}),r.prototype.reduce||(r.prototype.reduce=function(t,e){var n,r=this.length,i=0;if(arguments.length<2){if(!r)throw new h("Reduce of empty array with no initial value");for(;r>i;){if(i in this){n=this[i],i++;break}i++}}else n=e;for(;r>i;)i in this&&(n=t(n,this[i],i,this)),i++;return n}),r.prototype.reduceRight||(r.prototype.reduceRight=function(t,e){var n,r=this.length;if(arguments.length<2){if(!this.length)throw new h("Reduce of empty array with no initial value");for(;r--;)if(r in this){n=this[r];break}}else n=e;for(;r--;)r in this&&(n=t(n,this[r],r,this));return n}),i.bind||(i.prototype.bind=new function(){function e(e,n){for(var r=[],o=n.length,s=0;o>s;)r.push("arg"+s),s++;return r=r.join(","),new i("Constructor",r,"return new Constructor("+r+")").apply(t,[e].concat(n))}return function(t){function n(){function s(){}var a,u,c;if(n._protoMagic)return n._protoMagic=!1,s.prototype=this,s.prototype.constructor=o,new s;if(u=i.concat(r.from(arguments)),c=u.length,this instanceof n){switch(n._protoMagic=!0,c){case 0:a=new o;break;case 1:a=new o(u[0]);break;case 2:a=new o(u[0],u[1]);break;default:a=e(o,u)}return s.prototype=a,n.prototype=new s,n.prototype.constructor=n,new n}switch(c){case 0:return o.call(t);case 1:return o.call(t,u[0]);case 2:return o.call(t,u[0],u[1])}return o.apply(t,u)}var i=r.slice(arguments,1),o=this;if("function"!=typeof o)throw new h("Function.prototype.bind called on non-function");return n._protoMagic=!1,n}}),o.prototype.trim||(o.prototype.trim=new function(){var t,e,n;return t=" \n \f\r   ᠎ ",t+="        ",t+="     \u2028\u2029",t="["+t+"]",n=new c("^"+t+t+"*"),e=new c(t+t+"*$"),function(){return this.replace(n,"").replace(e,"")}}),u.now||(u.now=function(){return(new u).getTime()}),function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)}()||new function(){var t=n.create;n.create=function(e,r){var i=t(e,r);return n.hasOwnProperty.call(i,0)||(n.defineProperty(i,0,{configurable:!0}),delete i[0]),i}},n.assign||(n.assign=function(t){return r.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),n.setPrototypeOf||(n.setPrototypeOf=function(t,e){return t.__proto__=e,t}),r.from||(r.from=function(t,e,i){return n(t).length?e?r.map(t,e,i):r.slice(t,0):[]}),r.of||(r.of=function(){return r.from(arguments)}),r.prototype.find||(r.prototype.find=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return n;i++}return void 0}),r.prototype.findIndex||(r.prototype.findIndex=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return i;i++}return-1}),r.prototype.fill||(r.prototype.fill=function(t,e,n){var r,i=this.length;e=s(e)||0,n=2 in arguments?s(n)||0:i,r=0>e?f.max(i+e,0):f.min(e,i),n=0>n?f.max(i+n,0):f.min(n,i);for(;n>r;)this[r]=t,r++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new r(t+1).join(this)}),s.isFinite||(s.isFinite=function(t){return"number"==typeof t&&p(t)}),s.isInteger||(s.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),s.isNaN||(s.isNaN=function(t){return"number"==typeof t&&d(t)}),s.parseInt||(s.parseInt=y),s.parseFloat||(s.parseFloat=m),f.trunc||(f.trunc=function(t){return t=s(t),d(t)||0===t||!s.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,r.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function i(t,n){return n.reduce(function(n,r){return n[r]=e(t[r]),n},{})}function s(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}s(r,i(r.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),s(o,i(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=r.push(this,t))},has:function(t){return-1!=r.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=r.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(r.splice(this,e,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var e=0,i=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return r.find(this,function(r){return n.is(t,r[e])})},set:function(t,e){var n=this._getPair(t);n?n[i]=e:this.size=r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[i]},has:function(t){return a(this._getPair(t))},"delete":function(t){var i=r.findIndex(this,function(r){return n.is(t,r[e])});return-1==i?!1:(r.splice(this,i,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function i(t){if(n(t)!==t)throw h("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(i(t))||r.push(this,t)},has:function(t){return-1!=r.findIndex(this,e,i(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function i(t){if(n(t)!==t)throw h("Invalid value used as weak map key");return t}var o=0,s=1;return n.assign(t.prototype,{_getPair:function(t){return r.find(this,e,i(t))},set:function(t,e){var n=this._getPair(t);n?n[s]=e:r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[s]},has:function(t){return a(this._getPair(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t instanceof n||n.assign(t,new function(){function n(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}var i=0,o={};return{setImmediate:function(){function t(){this.onreadystatechange=null,e.removeChild(this),o[s]&&(delete o[s],n(r))}var r=arguments,s=i++;return o[s]=!0,new function(){var n=e.createElement("script");n.onreadystatechange=t,e.appendChild(n)},s},clearImmediate:function(t){delete o[t]}}}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}function n(t){var n,r=t.data;"string"==typeof r&&r.startsWith(a)&&(n=o[r],n&&(delete o[r],e(n)))}var i=0,o={},s=!0,a="setImmediatePolyfillMessage";return{setImmediate:function(){var e=i++,r=a+e;return o[r]=arguments,s&&(s=!1,t.addEventListener("message",n)),t.postMessage(r,"*"),e},clearImmediate:function(t){delete o[a+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return r(e)?e:new f(function(n,r){t.setImmediate(function(){try{e.then(n,r)}catch(t){r(t)}})})}function r(t){return t instanceof f}function i(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function s(t){return t.every(o)}function a(t){return t}function u(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return i(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,r){t.forEach(function(t){e(t).then(n,r)})})},all:function(t){return new f(function(n,r){var i=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){i[o]=e,s(t)&&n(i)},r)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){r._fulfill(t)}function n(t){r._reject(t)}var r=this;try{t(e,n)}catch(i){o(r)||n(i)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,r){var o=this;return new f(function(s,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(r){return void c(r)}i(t)?e(t).then(s,c):s(t)})}function l(){t.setImmediate(function(){var t;try{t=r(o._reason)}catch(n){return void c(n)}i(t)?e(t).then(s,c):s(t)})}n=n||a,r=r||u,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,r=u.now(),i=r;return function(e){var o=u.now(),s=f.max(0,n-(o-i)),a=o+s;return i=a,t.setTimeout(function(){e(a-r)},s)}}].find(a),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(a)}),"dataset"in e.documentElement||n.defineProperty(v.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function i(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function s(t,o){return r.forEach(o,function(r){var o=r.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),i(r))}),t}return function(){return s(new g,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in r||n.defineProperty(r,t,{get:o[t]})}var r,i=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&i!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&i!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&i!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&i!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,r=this.childNodes,o=r.length,s=0,a=0;o>s;)e=r[s],i==e.nodeType&&(n[a++]=e),s++;return n.length=a,n}}};r=v.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){r=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=r.indexOf(t.querySelectorAll(n),e)}function i(t){var n,i,o,s=t.length;if(1==s)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(i=e.createDocumentFragment(),t=r.from(t),o=0;s>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),i.appendChild(n),o++;return i}function o(t){t in u||(u[t]=c[t])}var s=1,u=v.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(i(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=i(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(i(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(i(arguments))},prepend:function(){this.insertBefore(i(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[u.matchesSelector,u.oMatchesSelector,u.msMatchesSelector,u.mozMatchesSelector,u.webkitMatchesSelector,function(n){var r,i;return this===e?!1:(i=this.parentNode)?(s==i.nodeType&&(i=i.ownerDocument),t(i,this,n)):(i=e.createDocumentFragment(),i.appendChild(this),r=t(i,this,n),void i.removeChild(this))}].find(a)};n.keys(c).forEach(o),u=e.constructor.prototype,["query","queryAll"].forEach(o),u=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in e.documentElement||n.defineProperty(v.prototype,"classList",{get:new function(){function t(t,e){this._getTokens=t,this._onChange=e}function e(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return n.assign(t.prototype,{_clear:function(){r.splice(this,0,this.length)},_push:function(t){r.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){-1==r.indexOf(this,t)&&r.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){var e=r.indexOf(this,t);-1!=e&&r.splice(this,e,1)},this),t!=this.length&&this._onChange()},toggle:function(t,e){return this._update(),e===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=r.indexOf(this,t)},toString:function(){return r.join(this," ")}}),function(){var n=this;return n._classList||(n._classList=new t(function(){return e(n.className)},function(){n.className=this.toString()})),n._classList._update(),n._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=e(),t&&r.prototype.push.apply(this,i(t))}var e=new function(){function t(){var n=f.random().toString().slice(2);return e[n]?t():(e[n]=1,n)}var e={};return function(){return"-------------------------"+t()}},i=new function(){function t(t){return t.selected}function e(e){var n=e.nodeName.toLowerCase(),i=e.type;return e.name?e.disabled?!1:"fieldset"==n?!1:"select"==n&&e.multiple?r.some(e.options,t):"submit"==i||"reset"==i||"button"==i||"file"==i?!1:"radio"!=i&&"checkbox"!=i||!e.checked?!0:!1:!1}function n(e){return"select"==e.tagName.toLowerCase()&&e.multiple?r.reduce(e.options,function(e,n){return t(n)&&e.push(n.value),e},[]):[e.value]}return function(t){return r.reduce(t.elements,function(t,r){return e(r)&&n(r).forEach(function(e){t.push({name:r.name,value:e})}),t},[])}};return n.assign(t.prototype,{notNative:!0,append:function(t,e,n){r.push(this,{name:t,value:e,fileName:n})},toString:function(){var t=this.boundary,e="";return r.forEach(this,function(r){var i,o=r.name,s=r.value;e+="--"+t+"\r\n",n(s)===s?(i=r.fileName||s.name,e+='Content-Disposition: form-data; name="',e+=o+'"; filename="'+i+'"\r\n',e+="Content-Type: "+s.type+"\r\n\r\n",e+=s.content+"\r\n"):(e+='Content-Disposition: form-data; name="',e+=o+'"\r\n\r\n',e+=s+"\r\n")}),e+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var e=XMLHttpRequest.prototype.send;return function(n){n instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n.boundary),n=n.toString()),e.call(this,n)}},t}),new function(){function t(t){for(var e=[],n=t.length,r=0;n>r;)e[r]=t[r],r++;return e}var i=r.prototype.slice;try{r.slice(e.documentElement.childNodes,0)}catch(o){r.slice=function(e,r,o){var s,a=arguments.length;return s=n(e)instanceof n?e:t(e),1==a||2==a&&0==r?s==e?i.call(s,0):s:2==a?i.call(s,r):i.call(s,r,o)}}},function(){var t={0:!0,length:1};return r.splice(t,0,1),t[0]}()&&new function(){var t=r.splice;r.splice=function(e,n,i){var o,s=t.apply(r,arguments);if(!(e instanceof r))for(o=e.length;i--;)delete e[o+i];return s}},"function"==typeof w&&(g=w),function(){var t=e.createElement("div");return t.appendChild(e.createComment("test")),t.children.length}()&&n.defineProperty(v.prototype,"children",{get:n.getOwnPropertyDescriptor(HTMLDocument.prototype,"children").get}),t.addEventListener||new function(){function t(t){var n=e.documentElement;t.pageX=t.clientX+n.scrollLeft,t.pageY=t.clientY+n.scrollTop,t.timeStamp||(t.timeStamp=u.now())}function r(e,n){return function(r){var i,o=e.slice(0),s=o.length,a=0;for(r instanceof d||t(r),r.currentTarget=n;s>a;)i=o[a],i.handleEvent?i.handleEvent(r):i.call(n,r),a++}}function i(t,e,n){var i,o,s,a,u=this;if(n)throw new l("Capturing phase is not supported");u._events||(u._events={}),o=u._events,a=m[t],a&&(t=a.eventType),s=o[t],s||(s={callbacks:[]},i=r(s.callbacks,u),a&&(i=a.decorateListener(i)),s.listener=i,o[t]=s,this.attachEvent("on"+t,i)),-1==s.callbacks.indexOf(e)&&s.callbacks.push(e)}function o(t,e,n){var r,i,o,s,a,u=this;if(n)throw new l("Capturing phase is not supported");u._events&&(i=u._events,a=m[t],a&&(t=a.eventType),i[t]&&(o=i[t],r=o.callbacks,s=r.indexOf(e),-1!=s&&(r.splice(s,1),r.length||(u.detachEvent("on"+t,o.listener),delete i[t]))))}function s(t){var e,n,r=t.type;return t instanceof d?(t.target=this,e=this._events,e&&e[r]&&e[r].listener(t)):(n=m[r],n&&(r=n.eventType),this.fireEvent("on"+r,t)),!t.defaultPrevented}function a(t,e,r){n.assign(this,{type:t,bubbles:e,cancelable:r})}function c(t,e,r,i,o){this.initEvent(t,e,r),n.assign(this,{view:i,detail:o})}function f(t,e,r,i,o,s,a,u,c,f,l,h,p,d,m){this.initUIEvent(t,e,r,i,o),n.assign(this,{screenX:s,screenY:a,clientX:u,clientY:c,ctrlKey:f,altKey:l,shiftKey:h,metaKey:p,button:d,fromElement:m})}function h(){this.defaultPrevented=!0,this.returnValue=!1}function p(){this.cancelBubble=!0}function d(){}var m={DOMContentLoaded:{eventType:"readystatechange",decorateListener:function(t){return function(n){"complete"==e.readyState&&t(n)}}}};n.assign(d.prototype,{type:"",timeStamp:0,detail:null,target:null,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:a,initCustomEvent:function(t,e,n,r){this.initEvent(t,e,n),this.detail=r}}),n.assign(Event.prototype,{timeStamp:0,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:a}),n.defineProperty(Event.prototype,"target",{get:function(){return this.srcElement}}),n.defineProperty(Event.prototype,"relatedTarget",{get:function(){return this.fromElement===this.srcElement?this.toElement:this.fromElement}}),[v,HTMLDocument,Window,XMLHttpRequest].forEach(function(t){var e=t.prototype;e.dispatchEvent=s,e.addEventListener=i,e.removeEventListener=o}),HTMLDocument.prototype.createEvent=function(t){var e;return t.startsWith("CustomEvent")?e=new d:(e=this.createEventObject(),t.startsWith("UIEvent")?e.initUIEvent=c:t.startsWith("MouseEvent")&&(e.initUIEvent=c,e.initMouseEvent=f)),e.timeStamp=u.now(),e}},"onload"in new XMLHttpRequest||new function(){var r=XMLHttpRequest.prototype,i=r.abort,o=r.send,s=r.open;n.assign(r,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,_unbind:function(){this.onreadystatechange=null},_fireEvent:function(n){var r=e.createEvent("CustomEvent");r.initEvent(n,!1,!1),this.dispatchEvent(r),n="on"+n,this[n]&&t.setImmediate(function(){r.target[n](r)})},_onReadyStateChange:function(){this.readyState==this.DONE&&(this._unbind(),this._fireEvent("load"))},open:function(){try{s.apply(this,arguments)}catch(t){this._unbind(),this._fireEvent("error")}},send:function(t){this.onreadystatechange=this._onReadyStateChange;try{o.call(this,t)}catch(e){this._unbind(),this._fireEvent("error")}},abort:function(){i.call(this),this._fireEvent("abort")}})},"onload"in e.createElement("script")||n.defineProperty(HTMLScriptElement.prototype,"onload",{set:function(t){this.onreadystatechange="function"==typeof t?function(n){"loaded"==this.readyState&&(this.onreadystatechange=null,n=e.createEvent("CustomEvent"),this.text?(n.initEvent("load",!1,!1),t.call(this,n)):this.onerror&&(n.initEvent("error",!1,!1),this.onerror(n)),this.onerror=null)}:null}}),t instanceof n||new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t,e){return t.replace("{ENABLED}",1!=e)}function i(t){return r(l.replace("{VALUE}",f.trunc(100*t)),t)}function s(t,e){return t.replace(p,i(e))}function a(t){return t.toLowerCase().contains("alpha")}var u=CSSStyleDeclaration.prototype,c="progid:DXImageTransform.Microsoft.",l="Alpha(opacity={VALUE}, enabled={ENABLED})",h=/\bopacity\s*=\s*(\d+)/i,p=/alpha\s*\(.*?\)/i;n.defineProperty(u,"cssFloat",{get:function(){return this.styleFloat},set:function(t){this.styleFloat=t}}),n.defineProperty(u,"opacity",{get:function(){var t="",e=this.filter.trim();return e&&e.replace(p,function(e){e.replace(h,function(e,n){t=o(n/100)})}),t},set:function(t){var e=this.filter.trim();!t||t>1?t=1:0>t&&(t=0),e?a(e)?this.filter=s(e,t):this.filter+=" "+c+i(t):this.filter=c+i(t)}}),n.assign(u,{getPropertyValue:function(t){return t=t.toLowerCase(),"float"==t?this.styleFloat:this[e(t)]},removeProperty:function(t){var n;return t=t.toLowerCase(),"float"==t?(t="styleFloat",n=this.styleFloat):(t=e(t),n=this[t]),this[t]="",n},setProperty:function(t,n){t=t.toLowerCase(),"float"==t&&(this.styleFloat=n),this[e(t)]=n}})},t.getComputedStyle||(t.getComputedStyle=new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t){return t=t.toLowerCase(),"float"==t?this.cssFloat:this[e(t)]}function i(t,e){return{get:function(){return t[e]}}}function s(t){return{get:function(){return t.styleFloat}}}function a(t){return{get:function(){var e=t["DXImageTransform.Microsoft.Alpha"]||t.alpha;return e?o(e.opacity/100):"1"}}}function u(t,e){if(e)throw new l("getComputedStyle implementation only accepts the 1st parameter");var o,u=t._compStyle;return u||(u=t._compStyle=new w,o=t.currentStyle,n.keys(o).forEach(function(t){n.defineProperty(u,t,i(o,t))}),n.defineProperty(u,"cssFloat",s(o)),n.defineProperty(u,"opacity",a(t.filters)),u.getPropertyValue=r),u}return u}),history.pushState||new function(){}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file diff --git a/min/jscore.js b/min/jscore.js index 090f185..0fc4dbe 100644 --- a/min/jscore.js +++ b/min/jscore.js @@ -1,3 +1,3 @@ //jsCore v0.4.7 IE8+ github.com/Octane/jsCore -!function(t,e,n,r,i,o,a,u,s,c,f,l,h,p,d,m,g){"use strict";function v(){}var y=y||Element;"textContent"in e.documentElement||n.defineProperty(y.prototype,"textContent",{get:function(){return this.innerText},set:function(t){this.innerText=t}}),"textContent"in e.createTextNode("test")||n.defineProperty(Text.prototype,"textContent",{get:function(){return this.nodeValue},set:function(t){this.nodeValue=t}}),"head"in e||n.defineProperty(e,"head",{get:function(){return this.query("head")}}),{toString:null}.propertyIsEnumerable("toString")||new function(){var t=["constructor","toString","toLocaleString","valueOf","hasOwnProperty","propertyIsEnumerable","isPrototypeOf"];n.keys=function(e){var r,i=t.length,o=[],a=0;for(r in e)n.hasOwnProperty.call(e,r)&&(o[a++]=r);for(;i--;)r=t[i],n.hasOwnProperty.call(e,r)&&(o[a++]=r);return o}},n.create||(n.create=function(t,e){function n(){}if(e)throw new l("Object.create implementation only accepts the 1st parameter");return n.prototype=t,new n});var w=t instanceof n||new function(){function t(){var t;return{get:function(){return t},set:function(e){t=e}}}function e(e){return n.defineProperty(e,"length",t())}return new function(){function t(){return e(n.getElementsByName(i++))}var n=new ActiveXObject("htmlfile"),r=t().constructor.prototype,i=0;return r.urns=void 0,r.tags=void 0,r.item=void 0,r.namedItem=void 0,r=null,t}};r.isArray||(r.isArray=function(t){return"[object Array]"==n.prototype.toString.call(t)}),r.prototype.forEach||(r.prototype.forEach=function(t,e){for(var n=this.length,r=0;n>r;)r in this&&t.call(e,this[r],r,this),r++}),r.prototype.map||(r.prototype.map=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&(n[i]=t.call(e,this[i],i,this)),i++;return n}),r.prototype.indexOf||(r.prototype.indexOf=function(t){for(var e=this.length,n=0;e>n;){if(n in this&&this[n]===t)return n;n++}return-1}),r.prototype.lastIndexOf||(r.prototype.lastIndexOf=function(t){for(var e=this.length;e--;)if(e in this&&this[e]===t)return e;return-1}),r.prototype.filter||(r.prototype.filter=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&t.call(e,this[i],i,this)&&n.push(this[i]),i++;return n}),r.prototype.every||(r.prototype.every=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&!t.call(e,this[r],r,this))return!1;r++}return!0}),r.prototype.some||(r.prototype.some=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&t.call(e,this[r],r,this))return!0;r++}return!1}),r.prototype.reduce||(r.prototype.reduce=function(t,e){var n,r=this.length,i=0;if(arguments.length<2){if(!r)throw new h("Reduce of empty array with no initial value");for(;r>i;){if(i in this){n=this[i],i++;break}i++}}else n=e;for(;r>i;)i in this&&(n=t(n,this[i],i,this)),i++;return n}),r.prototype.reduceRight||(r.prototype.reduceRight=function(t,e){var n,r=this.length;if(arguments.length<2){if(!this.length)throw new h("Reduce of empty array with no initial value");for(;r--;)if(r in this){n=this[r];break}}else n=e;for(;r--;)r in this&&(n=t(n,this[r],r,this));return n}),i.bind||(i.prototype.bind=new function(){function e(e,n){for(var r=[],o=n.length,a=0;o>a;)r.push("arg"+a),a++;return r=r.join(","),new i("Constructor",r,"return new Constructor("+r+")").apply(t,[e].concat(n))}return function(t){function n(){function a(){}var u,s,c;if(n._protoMagic)return n._protoMagic=!1,a.prototype=this,a.prototype.constructor=o,new a;if(s=i.concat(r.from(arguments)),c=s.length,this instanceof n){switch(n._protoMagic=!0,c){case 0:u=new o;break;case 1:u=new o(s[0]);break;case 2:u=new o(s[0],s[1]);break;default:u=e(o,s)}return a.prototype=u,n.prototype=new a,n.prototype.constructor=n,new n}switch(c){case 0:return o.call(t);case 1:return o.call(t,s[0]);case 2:return o.call(t,s[0],s[1])}return o.apply(t,s)}var i=r.slice(arguments,1),o=this;if("function"!=typeof o)throw new h("Function.prototype.bind called on non-function");return n._protoMagic=!1,n}}),o.prototype.trim||(o.prototype.trim=new function(){var t,e,n;return t=" \n \f\r   ᠎ ",t+="        ",t+="     \u2028\u2029",t="["+t+"]",n=new c("^"+t+t+"*"),e=new c(t+t+"*$"),function(){return this.replace(n,"").replace(e,"")}}),s.now||(s.now=function(){return(new s).getTime()}),function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)}()||new function(){var t=n.create;n.create=function(e,r){var i=t(e,r);return n.hasOwnProperty.call(i,0)||(n.defineProperty(i,0,{configurable:!0}),delete i[0]),i}},n.assign||(n.assign=function(t){return r.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),r.from||(r.from=function(t,e,i){return n(t).length?e?r.map(t,e,i):r.slice(t,0):[]}),r.of||(r.of=function(){return r.from(arguments)}),r.prototype.find||(r.prototype.find=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return n;i++}return void 0}),r.prototype.findIndex||(r.prototype.findIndex=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return i;i++}return-1}),r.prototype.fill||(r.prototype.fill=function(t,e,n){var r,i=this.length;e=a(e)||0,n=2 in arguments?a(n)||0:i,r=0>e?f.max(i+e,0):f.min(e,i),n=0>n?f.max(i+n,0):f.min(n,i);for(;n>r;)this[r]=t,r++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new r(t+1).join(this)}),a.isFinite||(a.isFinite=function(t){return"number"==typeof t&&p(t)}),a.isInteger||(a.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),a.isNaN||(a.isNaN=function(t){return"number"==typeof t&&d(t)}),a.parseInt||(a.parseInt=g),a.parseFloat||(a.parseFloat=m),f.trunc||(f.trunc=function(t){return t=a(t),d(t)||0===t||!a.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,r.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function i(t,n){return n.reduce(function(n,r){return n[r]=e(t[r]),n},{})}function a(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}a(r,i(r.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,i(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=r.push(this,t))},has:function(t){return-1!=r.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=r.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(r.splice(this,e,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var e=0,i=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return r.find(this,function(r){return n.is(t,r[e])})},set:function(t,e){var n=this._getPair(t);n?n[i]=e:this.size=r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[i]},has:function(t){return u(this._getPair(t))},"delete":function(t){var i=r.findIndex(this,function(r){return n.is(t,r[e])});return-1==i?!1:(r.splice(this,i,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function i(t){if(n(t)!==t)throw h("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(i(t))||r.push(this,t)},has:function(t){return-1!=r.findIndex(this,e,i(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function i(t){if(n(t)!==t)throw h("Invalid value used as weak map key");return t}var o=0,a=1;return n.assign(t.prototype,{_getPair:function(t){return r.find(this,e,i(t))},set:function(t,e){var n=this._getPair(t);n?n[a]=e:r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[a]},has:function(t){return u(this._getPair(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t instanceof n||n.assign(t,new function(){function n(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}var i=0,o={};return{setImmediate:function(){function t(){this.onreadystatechange=null,e.removeChild(this),o[a]&&(delete o[a],n(r))}var r=arguments,a=i++;return o[a]=!0,new function(){var n=e.createElement("script");n.onreadystatechange=t,e.appendChild(n)},a},clearImmediate:function(t){delete o[t]}}}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}function n(t){var n,r=t.data;"string"==typeof r&&r.startsWith(u)&&(n=o[r],n&&(delete o[r],e(n)))}var i=0,o={},a=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var e=i++,r=u+e;return o[r]=arguments,a&&(a=!1,t.addEventListener("message",n)),t.postMessage(r,"*"),e},clearImmediate:function(t){delete o[u+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return r(e)?e:new f(function(n,r){t.setImmediate(function(){try{e.then(n,r)}catch(t){r(t)}})})}function r(t){return t instanceof f}function i(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function a(t){return t.every(o)}function u(t){return t}function s(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return i(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,r){t.forEach(function(t){e(t).then(n,r)})})},all:function(t){return new f(function(n,r){var i=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){i[o]=e,a(t)&&n(i)},r)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){r._fulfill(t)}function n(t){r._reject(t)}var r=this;try{t(e,n)}catch(i){o(r)||n(i)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,r){var o=this;return new f(function(a,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(r){return void c(r)}i(t)?e(t).then(a,c):a(t)})}function l(){t.setImmediate(function(){var t;try{t=r(o._reason)}catch(n){return void c(n)}i(t)?e(t).then(a,c):a(t)})}n=n||u,r=r||s,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,r=s.now(),i=r;return function(e){var o=s.now(),a=f.max(0,n-(o-i)),u=o+a;return i=u,t.setTimeout(function(){e(u-r)},a)}}].find(u),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(u)}),"dataset"in e.documentElement||n.defineProperty(y.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function i(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function a(t,o){return r.forEach(o,function(r){var o=r.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),i(r))}),t}return function(){return a(new v,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in r||n.defineProperty(r,t,{get:o[t]})}var r,i=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&i!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&i!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&i!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&i!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,r=this.childNodes,o=r.length,a=0,u=0;o>a;)e=r[a],i==e.nodeType&&(n[u++]=e),a++;return n.length=u,n}}};r=y.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){r=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=r.indexOf(t.querySelectorAll(n),e)}function i(t){var n,i,o,a=t.length;if(1==a)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(i=e.createDocumentFragment(),t=r.from(t),o=0;a>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),i.appendChild(n),o++;return i}function o(t){t in s||(s[t]=c[t])}var a=1,s=y.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(i(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=i(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(i(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(i(arguments))},prepend:function(){this.insertBefore(i(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[s.matchesSelector,s.oMatchesSelector,s.msMatchesSelector,s.mozMatchesSelector,s.webkitMatchesSelector,function(n){var r,i;return this===e?!1:(i=this.parentNode)?(a==i.nodeType&&(i=i.ownerDocument),t(i,this,n)):(i=e.createDocumentFragment(),i.appendChild(this),r=t(i,this,n),void i.removeChild(this))}].find(u)};n.keys(c).forEach(o),s=e.constructor.prototype,["query","queryAll"].forEach(o),s=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in e.documentElement||n.defineProperty(y.prototype,"classList",{get:new function(){function t(t,e){this._getTokens=t,this._onChange=e}function e(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return n.assign(t.prototype,{_clear:function(){r.splice(this,0,this.length)},_push:function(t){r.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){-1==r.indexOf(this,t)&&r.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){var e=r.indexOf(this,t);-1!=e&&r.splice(this,e,1)},this),t!=this.length&&this._onChange()},toggle:function(t,e){return this._update(),e===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=r.indexOf(this,t)},toString:function(){return r.join(this," ")}}),function(){var n=this;return n._classList||(n._classList=new t(function(){return e(n.className)},function(){n.className=this.toString()})),n._classList._update(),n._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=e(),t&&r.prototype.push.apply(this,i(t))}var e=new function(){function t(){var n=f.random().toString().slice(2);return e[n]?t():(e[n]=1,n)}var e={};return function(){return"-------------------------"+t()}},i=new function(){function t(t){return t.selected}function e(e){var n=e.nodeName.toLowerCase(),i=e.type;return e.name?e.disabled?!1:"fieldset"==n?!1:"select"==n&&e.multiple?r.some(e.options,t):"submit"==i||"reset"==i||"button"==i||"file"==i?!1:"radio"!=i&&"checkbox"!=i||!e.checked?!0:!1:!1}function n(e){return"select"==e.tagName.toLowerCase()&&e.multiple?r.reduce(e.options,function(e,n){return t(n)&&e.push(n.value),e},[]):[e.value]}return function(t){return r.reduce(t.elements,function(t,r){return e(r)&&n(r).forEach(function(e){t.push({name:r.name,value:e})}),t},[])}};return n.assign(t.prototype,{notNative:!0,append:function(t,e,n){r.push(this,{name:t,value:e,fileName:n})},toString:function(){var t=this.boundary,e="";return r.forEach(this,function(r){var i,o=r.name,a=r.value;e+="--"+t+"\r\n",n(a)===a?(i=r.fileName||a.name,e+='Content-Disposition: form-data; name="',e+=o+'"; filename="'+i+'"\r\n',e+="Content-Type: "+a.type+"\r\n\r\n",e+=a.content+"\r\n"):(e+='Content-Disposition: form-data; name="',e+=o+'"\r\n\r\n',e+=a+"\r\n")}),e+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var e=XMLHttpRequest.prototype.send;return function(n){n instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n.boundary),n=n.toString()),e.call(this,n)}},t}),new function(){function t(t){for(var e=[],n=t.length,r=0;n>r;)e[r]=t[r],r++;return e}var i=r.prototype.slice;try{r.slice(e.documentElement.childNodes,0)}catch(o){r.slice=function(e,r,o){var a,u=arguments.length;return a=n(e)instanceof n?e:t(e),1==u||2==u&&0==r?a==e?i.call(a,0):a:2==u?i.call(a,r):i.call(a,r,o)}}},function(){var t={0:!0,length:1};return r.splice(t,0,1),t[0]}()&&new function(){var t=r.splice;r.splice=function(e,n,i){var o,a=t.apply(r,arguments);if(!(e instanceof r))for(o=e.length;i--;)delete e[o+i];return a}},"function"==typeof w&&(v=w),function(){var t=e.createElement("div");return t.appendChild(e.createComment("test")),t.children.length}()&&n.defineProperty(y.prototype,"children",{get:n.getOwnPropertyDescriptor(HTMLDocument.prototype,"children").get}),t.addEventListener||new function(){function t(t){var n=e.documentElement;t.pageX=t.clientX+n.scrollLeft,t.pageY=t.clientY+n.scrollTop,t.timeStamp||(t.timeStamp=s.now())}function r(e,n){return function(r){var i,o=e.slice(0),a=o.length,u=0;for(r instanceof d||t(r),r.currentTarget=n;a>u;)i=o[u],i.handleEvent?i.handleEvent(r):i.call(n,r),u++}}function i(t,e,n){var i,o,a,u,s=this;if(n)throw new l("Capturing phase is not supported");s._events||(s._events={}),o=s._events,u=m[t],u&&(t=u.eventType),a=o[t],a||(a={callbacks:[]},i=r(a.callbacks,s),u&&(i=u.decorateListener(i)),a.listener=i,o[t]=a,this.attachEvent("on"+t,i)),-1==a.callbacks.indexOf(e)&&a.callbacks.push(e)}function o(t,e,n){var r,i,o,a,u,s=this;if(n)throw new l("Capturing phase is not supported");s._events&&(i=s._events,u=m[t],u&&(t=u.eventType),i[t]&&(o=i[t],r=o.callbacks,a=r.indexOf(e),-1!=a&&(r.splice(a,1),r.length||(s.detachEvent("on"+t,o.listener),delete i[t]))))}function a(t){var e,n,r=t.type;return t instanceof d?(t.target=this,e=this._events,e&&e[r]&&e[r].listener(t)):(n=m[r],n&&(r=n.eventType),this.fireEvent("on"+r,t)),!t.defaultPrevented}function u(t,e,r){n.assign(this,{type:t,bubbles:e,cancelable:r})}function c(t,e,r,i,o){this.initEvent(t,e,r),n.assign(this,{view:i,detail:o})}function f(t,e,r,i,o,a,u,s,c,f,l,h,p,d,m){this.initUIEvent(t,e,r,i,o),n.assign(this,{screenX:a,screenY:u,clientX:s,clientY:c,ctrlKey:f,altKey:l,shiftKey:h,metaKey:p,button:d,fromElement:m})}function h(){this.defaultPrevented=!0,this.returnValue=!1}function p(){this.cancelBubble=!0}function d(){}var m={DOMContentLoaded:{eventType:"readystatechange",decorateListener:function(t){return function(n){"complete"==e.readyState&&t(n)}}}};n.assign(d.prototype,{type:"",timeStamp:0,detail:null,target:null,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:u,initCustomEvent:function(t,e,n,r){this.initEvent(t,e,n),this.detail=r}}),n.assign(Event.prototype,{timeStamp:0,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:u}),n.defineProperty(Event.prototype,"target",{get:function(){return this.srcElement}}),n.defineProperty(Event.prototype,"relatedTarget",{get:function(){return this.fromElement===this.srcElement?this.toElement:this.fromElement}}),[y,HTMLDocument,Window,XMLHttpRequest].forEach(function(t){var e=t.prototype;e.dispatchEvent=a,e.addEventListener=i,e.removeEventListener=o}),HTMLDocument.prototype.createEvent=function(t){var e;return t.startsWith("CustomEvent")?e=new d:(e=this.createEventObject(),t.startsWith("UIEvent")?e.initUIEvent=c:t.startsWith("MouseEvent")&&(e.initUIEvent=c,e.initMouseEvent=f)),e.timeStamp=s.now(),e}},"onload"in new XMLHttpRequest||new function(){var r=XMLHttpRequest.prototype,i=r.abort,o=r.send,a=r.open;n.assign(r,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,_unbind:function(){this.onreadystatechange=null},_fireEvent:function(n){var r=e.createEvent("CustomEvent");r.initEvent(n,!1,!1),this.dispatchEvent(r),n="on"+n,this[n]&&t.setImmediate(function(){r.target[n](r)})},_onReadyStateChange:function(){this.readyState==this.DONE&&(this._unbind(),this._fireEvent("load"))},open:function(){try{a.apply(this,arguments)}catch(t){this._unbind(),this._fireEvent("error")}},send:function(t){this.onreadystatechange=this._onReadyStateChange;try{o.call(this,t)}catch(e){this._unbind(),this._fireEvent("error")}},abort:function(){i.call(this),this._fireEvent("abort")}})},"onload"in e.createElement("script")||n.defineProperty(HTMLScriptElement.prototype,"onload",{set:function(t){this.onreadystatechange="function"==typeof t?function(n){"loaded"==this.readyState&&(this.onreadystatechange=null,n=e.createEvent("CustomEvent"),this.text?(n.initEvent("load",!1,!1),t.call(this,n)):this.onerror&&(n.initEvent("error",!1,!1),this.onerror(n)),this.onerror=null)}:null}}),t instanceof n||new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t,e){return t.replace("{ENABLED}",1!=e)}function i(t){return r(l.replace("{VALUE}",f.trunc(100*t)),t)}function a(t,e){return t.replace(p,i(e))}function u(t){return t.toLowerCase().contains("alpha")}var s=CSSStyleDeclaration.prototype,c="progid:DXImageTransform.Microsoft.",l="Alpha(opacity={VALUE}, enabled={ENABLED})",h=/\bopacity\s*=\s*(\d+)/i,p=/alpha\s*\(.*?\)/i;n.defineProperty(s,"cssFloat",{get:function(){return this.styleFloat},set:function(t){this.styleFloat=t}}),n.defineProperty(s,"opacity",{get:function(){var t="",e=this.filter.trim();return e&&e.replace(p,function(e){e.replace(h,function(e,n){t=o(n/100)})}),t},set:function(t){var e=this.filter.trim();!t||t>1?t=1:0>t&&(t=0),e?u(e)?this.filter=a(e,t):this.filter+=" "+c+i(t):this.filter=c+i(t)}}),n.assign(s,{getPropertyValue:function(t){return t=t.toLowerCase(),"float"==t?this.styleFloat:this[e(t)]},removeProperty:function(t){var n;return t=t.toLowerCase(),"float"==t?(t="styleFloat",n=this.styleFloat):(t=e(t),n=this[t]),this[t]="",n},setProperty:function(t,n){t=t.toLowerCase(),"float"==t&&(this.styleFloat=n),this[e(t)]=n}})},t.getComputedStyle||(t.getComputedStyle=new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t){return t=t.toLowerCase(),"float"==t?this.cssFloat:this[e(t)]}function i(t,e){return{get:function(){return t[e]}}}function a(t){return{get:function(){return t.styleFloat}}}function u(t){return{get:function(){var e=t["DXImageTransform.Microsoft.Alpha"]||t.alpha;return e?o(e.opacity/100):"1"}}}function s(t,e){if(e)throw new l("getComputedStyle implementation only accepts the 1st parameter");var o,s=t._compStyle;return s||(s=t._compStyle=new w,o=t.currentStyle,n.keys(o).forEach(function(t){n.defineProperty(s,t,i(o,t))}),n.defineProperty(s,"cssFloat",a(o)),n.defineProperty(s,"opacity",u(t.filters)),s.getPropertyValue=r),s}return s}),history.pushState||new function(){},t.lib={},lib.classExtends=function(t,e){t.prototype=n.create(e.prototype),t.prototype.constructor=t,t.Super=e},lib.array={count:function(t){return r.reduce(t,function(t){return t+1},0)},contains:function(t,e,n){return-1!=r.indexOf(t,e,n)},unique:function(t){for(var e,n=[],r=t.length,i=0,o=0;r>i;)e=t[i],-1==n.indexOf(e)&&(n[o++]=e),i++;return n},all:function(t,e,r){var i=n(t).length;if(!i)return!1;for(;i--;){if(!(i in t))return!1;if(!e.call(r,t[i]))return!1}return!0},refine:function(t){return r.reduce(t,function(t,e){return t.push(e),t},[])},range:function(t,e){var n=[];1 in arguments||(e=t,t=0);for(;e>t;)n.push(t),t++;return n},shuffle:function(t){for(var e,n,i=r.from(t),o=i.length;o--;)e=f.floor(f.random()*(o+1)),n=i[e],i[e]=i[o],i[o]=n;return i},remove:function(t,e){var n=r.indexOf(t,e);return-1!=n&&r.splice(t,n,1)}},lib.date=new function(){var t=this,e=[31,28,31,30,31,30,31,31,30,31,30,31];t.isLeapYear=function(t){return arguments.length||(t=new s),t instanceof s&&(t=t.getFullYear()),t%4==0&&t%100!=0||t%400==0},t.getMonthLength=function(n,r){return arguments.length||(n=new s),n instanceof s&&(r=n.getFullYear(),n=n.getMonth()),1==n&&t.isLeapYear(r)?29:e[n]}},lib.html={parse:function(t){var n=e.createElement("div"),r=e.createDocumentFragment();for(n.innerHTML=t;n.hasChildNodes();)r.appendChild(n.firstChild);return r},escape:function(t){var n=e.createElement("div");return n.appendChild(e.createTextNode(t)),n.innerHTML},unescape:function(t){var n=e.createElement("div");return n.innerHTML=t,n.textContent}},lib.Template=new function(){function t(t){this.template=t}return t.match=function(t,e){return r.isArray(t)&&(t=t.join("")),n.keys(e).reduceRight(function(t,n){var r=e[n];return t.split("{"+n.toUpperCase()+"}").join(r)},t)},t.prototype.match=function(e){return t.match(this.template,e)},t},lib.I18n=new function(){function t(t){this.messageBundle=this[t]}function e(t,e){this.locale=t,this[t]=e}function n(n,r){function i(t,e){return t in i.messageBundle&&(t=i.messageBundle[t]),e?lib.Template.match(t,e):t}return i.add=e,i.use=t,i.add(n,r),i.use(n),i}return n},lib.css=new function(){var i,o=this;o.prefix=i=new function(){var t={},n=["ms","O","Webkit","Moz"],r=new function(){var t=e.documentElement.style,n=t.constructor.prototype;return"top"in n?n:t};return function(e){var i,o,a;if(e in t)return t[e];if(e in r)return t[e]=e,e;for(o=e.charAt(0).toUpperCase()+e.slice(1),a=n.length;a--;)if(i=n[a]+o,i in r)return t[e]=i,i;return void(t[e]=void 0)}},new function(){var t={animation:["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"],transition:["Delay","Duration","Property","TimingFunction"],transform:["Origin","Style"]};n.keys(t).forEach(function(e){var n=i(e);n&&(o[e]=n,t[e].forEach(function(t){o[e+t]=n+t}))})},o.getAnimationNames=new function(){function t(t){return"none"!=t}var e=/,\s*/;return function(n){var r=n[o.animationName];return r?r.split(e).filter(t):[]}},o.set=new function(){function e(t,e){n.keys(e).forEach(function(n){t[i(n)]=e[n]})}return o.transition||o.animation?function(n,r){var i=t.getComputedStyle(n),a=o.getAnimationNames(i);return e(n.style,r),lib.event.awaitTransAnimEnd(n,a)}:function(t,n){return e(t.style,n),Promise.resolve(t)}},o.get=function(e,n){var o=t.getComputedStyle(e);return r.isArray(n)?n.reduce(function(t,e){return t[e]=o[i(e)],t},{}):o[i(n)]},o.getTransitionTime=o.transition?new function(){function t(t){return t.split(",").map(function(t){return a.parseFloat(t)||0})}function e(t,e){for(var n,r=0,i=f.max(e.length,t.length),o=0;i>o;)n=(t[o]||0)+(e[o]||0),n>r&&(r=n),o++;return f.ceil(1e3*r)}return function(n){return e(t(n[o.transitionDelay]),t(n[o.transitionDuration]))}}:function(){return 0}},lib.event=n.assign({preventDefault:function(t){t.preventDefault()},stopPropagation:function(t){t.stopPropagation()}},new function(){function t(t){t.eventTypes.forEach(function(e){t.element.removeEventListener(e,t.callback)})}function e(t,e,n,r){var i;return 3==arguments.length&&(r=n,n=e,e=void 0),e?(e+=","+e+" *",i=function(n){var i=n.target;i.matches&&i.matches(e)&&(r.handleEvent?r.handleEvent(n):r.call(t,n))}):i=r,"string"==typeof n&&(n=n.split(/[\s,]+/)),n.forEach(function(e){t.addEventListener(e,i)}),{element:t,eventTypes:n,callback:i}}function n(n,r,i,o){function a(e){t(u),o.handleEvent?o.handleEvent(e):o.call(n,e)}var u;3==arguments.length&&(o=i,i=r,r=void 0),u=e(n,r,i,a)}function r(t,e,r){return 2==arguments.length&&(r=e,e=void 0),new Promise(function(i){n(t,e,r,i)})}return{off:t,on:e,one:n,when:r}},new function(){function e(t,e){return t?e.reduce(function(e,n){return-1==t.indexOf(n)&&e.push(n),e},[]):e}function n(t,e){var n=t.indexOf(e);return-1!=n&&t.splice(n,1),t.length}function r(t,e){return e||(e=a.getAnimationNames(t)),e.length?new Promise(function(r){function i(o){o.target!=t||n(e,o.animationName)||(t.removeEventListener(c,i),r(t))}t.addEventListener(c,i)}):Promise.resolve(t)}function i(e,n){var r;return n||(n=t.getComputedStyle(e)),r=a.getTransitionTime(n),r?new Promise(function(n){t.setTimeout(function(){n(e)},r)}):Promise.resolve(e)}function o(n,o){var u=t.getComputedStyle(n),s=a.getAnimationNames(u);return s=e(o,s),Promise.all([r(n,s),i(n,u)]).then(function(){return n})}var a=lib.css,u=a.animation,s=a.transition,c={animation:"animationend",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"}[u],f=Promise.resolve;return{animationEnd:c,animationStart:{animation:"animationstart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"}[u],animationIteration:{animation:"animationiteration",MozAnimation:"mozAnimationIteration",WebkitAnimation:"webkitAnimationIteration"}[u],transitionEnd:{transition:"transitionend",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd"}[s],awaitAnimationEnd:u?r:f,awaitTransitionEnd:s?i:f,awaitTransAnimEnd:u||s?o:f}}),lib.dom=n.assign({ready:function(){return"complete"==e.readyState?Promise.resolve():lib.event.when(e,"DOMContentLoaded")}},new function(){function e(t,e,n){var r=t.className,i=t.classList;return n.forEach(function(t){i[e](t)}),r!=t.className}function n(t,e){return o(e[0],t,r.slice(e,1))}var i=lib.css,o=i.animation||i.transition?function(n,r,o){var a=t.getComputedStyle(n),u=i.getAnimationNames(a);return e(n,r,o)?lib.event.awaitTransAnimEnd(n,u):Promise.resolve(n)}:function(t,n,r){return e(t,n,r),Promise.resolve(t)};return{addClass:function(){return n("add",arguments)},removeClass:function(){return n("remove",arguments)},toggleClass:function(){return n("toggle",arguments)}}}),lib.request=new function(){function r(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}function i(t){return n.keys(t).reduce(function(e,n){return e.push(r(n,t[n])),e},[]).join("&")}function o(t){t.onload=null,t.onerror=null,t.ontimeout=null}function a(e){var r=(e.method||"GET").toUpperCase(),a=e.url||t.location.href,s=e.data,c=e.userName||"",f=e.password||"",h=e.timeout||0,p=!1!==e.async,d=!1!==e.caching,m=!0===e.credentials,g=e.mimeType,v={"X-Requested-With":"XMLHttpRequest"}; +!function(t,e,n,r,i,o,a,u,s,c,f,l,h,p,d,m,g){"use strict";function v(){}var y=y||Element;"textContent"in e.documentElement||n.defineProperty(y.prototype,"textContent",{get:function(){return this.innerText},set:function(t){this.innerText=t}}),"textContent"in e.createTextNode("test")||n.defineProperty(Text.prototype,"textContent",{get:function(){return this.nodeValue},set:function(t){this.nodeValue=t}}),"head"in e||n.defineProperty(e,"head",{get:function(){return this.query("head")}}),{toString:null}.propertyIsEnumerable("toString")||new function(){var t=["constructor","toString","toLocaleString","valueOf","hasOwnProperty","propertyIsEnumerable","isPrototypeOf"];n.keys=function(e){var r,i=t.length,o=[],a=0;for(r in e)n.hasOwnProperty.call(e,r)&&(o[a++]=r);for(;i--;)r=t[i],n.hasOwnProperty.call(e,r)&&(o[a++]=r);return o}},n.create||(n.create=function(t,e){function n(){}if(e)throw new l("Object.create implementation only accepts the 1st parameter");return n.prototype=t,new n});var w=t instanceof n||new function(){function t(){var t;return{get:function(){return t},set:function(e){t=e}}}function e(e){return n.defineProperty(e,"length",t())}return new function(){function t(){return e(n.getElementsByName(i++))}var n=new ActiveXObject("htmlfile"),r=t().constructor.prototype,i=0;return r.urns=void 0,r.tags=void 0,r.item=void 0,r.namedItem=void 0,r=null,t}};r.isArray||(r.isArray=function(t){return"[object Array]"==n.prototype.toString.call(t)}),r.prototype.forEach||(r.prototype.forEach=function(t,e){for(var n=this.length,r=0;n>r;)r in this&&t.call(e,this[r],r,this),r++}),r.prototype.map||(r.prototype.map=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&(n[i]=t.call(e,this[i],i,this)),i++;return n}),r.prototype.indexOf||(r.prototype.indexOf=function(t){for(var e=this.length,n=0;e>n;){if(n in this&&this[n]===t)return n;n++}return-1}),r.prototype.lastIndexOf||(r.prototype.lastIndexOf=function(t){for(var e=this.length;e--;)if(e in this&&this[e]===t)return e;return-1}),r.prototype.filter||(r.prototype.filter=function(t,e){for(var n=[],r=this.length,i=0;r>i;)i in this&&t.call(e,this[i],i,this)&&n.push(this[i]),i++;return n}),r.prototype.every||(r.prototype.every=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&!t.call(e,this[r],r,this))return!1;r++}return!0}),r.prototype.some||(r.prototype.some=function(t,e){for(var n=this.length,r=0;n>r;){if(r in this&&t.call(e,this[r],r,this))return!0;r++}return!1}),r.prototype.reduce||(r.prototype.reduce=function(t,e){var n,r=this.length,i=0;if(arguments.length<2){if(!r)throw new h("Reduce of empty array with no initial value");for(;r>i;){if(i in this){n=this[i],i++;break}i++}}else n=e;for(;r>i;)i in this&&(n=t(n,this[i],i,this)),i++;return n}),r.prototype.reduceRight||(r.prototype.reduceRight=function(t,e){var n,r=this.length;if(arguments.length<2){if(!this.length)throw new h("Reduce of empty array with no initial value");for(;r--;)if(r in this){n=this[r];break}}else n=e;for(;r--;)r in this&&(n=t(n,this[r],r,this));return n}),i.bind||(i.prototype.bind=new function(){function e(e,n){for(var r=[],o=n.length,a=0;o>a;)r.push("arg"+a),a++;return r=r.join(","),new i("Constructor",r,"return new Constructor("+r+")").apply(t,[e].concat(n))}return function(t){function n(){function a(){}var u,s,c;if(n._protoMagic)return n._protoMagic=!1,a.prototype=this,a.prototype.constructor=o,new a;if(s=i.concat(r.from(arguments)),c=s.length,this instanceof n){switch(n._protoMagic=!0,c){case 0:u=new o;break;case 1:u=new o(s[0]);break;case 2:u=new o(s[0],s[1]);break;default:u=e(o,s)}return a.prototype=u,n.prototype=new a,n.prototype.constructor=n,new n}switch(c){case 0:return o.call(t);case 1:return o.call(t,s[0]);case 2:return o.call(t,s[0],s[1])}return o.apply(t,s)}var i=r.slice(arguments,1),o=this;if("function"!=typeof o)throw new h("Function.prototype.bind called on non-function");return n._protoMagic=!1,n}}),o.prototype.trim||(o.prototype.trim=new function(){var t,e,n;return t=" \n \f\r   ᠎ ",t+="        ",t+="     \u2028\u2029",t="["+t+"]",n=new c("^"+t+t+"*"),e=new c(t+t+"*$"),function(){return this.replace(n,"").replace(e,"")}}),s.now||(s.now=function(){return(new s).getTime()}),function(){var t=n.create({});return t[0]=null,t.hasOwnProperty(0)}()||new function(){var t=n.create;n.create=function(e,r){var i=t(e,r);return n.hasOwnProperty.call(i,0)||(n.defineProperty(i,0,{configurable:!0}),delete i[0]),i}},n.assign||(n.assign=function(t){return r.prototype.slice.call(arguments,1).forEach(function(e){n.keys(e).forEach(function(n){t[n]=e[n]})}),t}),n.is||(n.is=function(t,e){return 0===t&&0===e?1/t===1/e:t!==t?e!==e:t===e}),n.setPrototypeOf||(n.setPrototypeOf=function(t,e){return t.__proto__=e,t}),r.from||(r.from=function(t,e,i){return n(t).length?e?r.map(t,e,i):r.slice(t,0):[]}),r.of||(r.of=function(){return r.from(arguments)}),r.prototype.find||(r.prototype.find=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return n;i++}return void 0}),r.prototype.findIndex||(r.prototype.findIndex=function(t,e){for(var n,r=this.length,i=0;r>i;){if(i in this&&(n=this[i],t.call(e,n,i,this)))return i;i++}return-1}),r.prototype.fill||(r.prototype.fill=function(t,e,n){var r,i=this.length;e=a(e)||0,n=2 in arguments?a(n)||0:i,r=0>e?f.max(i+e,0):f.min(e,i),n=0>n?f.max(i+n,0):f.min(n,i);for(;n>r;)this[r]=t,r++;return this}),o.prototype.startsWith||(o.prototype.startsWith=function(t,e){return e||(e=0),this.indexOf(t,e)==e}),o.prototype.endsWith||(o.prototype.endsWith=function(t,e){var n;return e=e||this.length,e-=t.length,n=this.lastIndexOf(t),-1!=n&&n==e}),o.prototype.contains||(o.prototype.contains=function(t,e){return-1!=this.indexOf(t,e||0)}),o.prototype.repeat||(o.prototype.repeat=function(t){return new r(t+1).join(this)}),a.isFinite||(a.isFinite=function(t){return"number"==typeof t&&p(t)}),a.isInteger||(a.isInteger=function(t){return"number"==typeof t&&p(t)&&t>-9007199254740992&&9007199254740992>t&&f.floor(t)==t}),a.isNaN||(a.isNaN=function(t){return"number"==typeof t&&d(t)}),a.parseInt||(a.parseInt=g),a.parseFloat||(a.parseFloat=m),f.trunc||(f.trunc=function(t){return t=a(t),d(t)||0===t||!a.isFinite(t)?t:f.sign(t)*f.floor(f.abs(t))}),f.sign||(f.sign=function(t){return 0===t||d(t)?t:(t>0)-(0>t)}),new function(){function t(t,e){var n=e[0];switch(e.length){case 1:return t.call(n);case 2:return t.call(n,e[1]);case 3:return t.call(n,e[1],e[2])}return t.apply(n,r.prototype.slice.call(e,1))}function e(e){return function(){return t(e,arguments)}}function i(t,n){return n.reduce(function(n,r){return n[r]=e(t[r]),n},{})}function a(t,e){n.keys(e).forEach(function(n){n in t||(t[n]=e[n])})}a(r,i(r.prototype,["concat","every","fill","filter","find","findIndex","forEach","indexOf","join","lastIndexOf","map","pop","push","reduce","reduceRight","reverse","shift","slice","some","sort","splice","unshift"])),a(o,i(o.prototype,["charAt","charCodeAt","concat","contains","endsWith","indexOf","lastIndexOf","match","repeat","replace","search","slice","split","startsWith","substr","substring","toLowerCase","toUpperCase","trim"]))},t.Set||(t.Set=new function(){function t(){if(arguments.length)throw l("Set implementation doesn't accept parameters");this.length=0}return n.assign(t.prototype,{size:0,add:function(t){this.has(t)||(this.size=r.push(this,t))},has:function(t){return-1!=r.findIndex(this,function(e){return n.is(t,e)})},"delete":function(t){var e=r.findIndex(this,function(e){return n.is(t,e)});return-1==e?!1:(r.splice(this,e,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.Map||(t.Map=new function(){function t(){if(arguments.length)throw l("Map implementation doesn't accept parameters");this.length=0}var e=0,i=1;return n.assign(t.prototype,{size:0,_getPair:function(t){return r.find(this,function(r){return n.is(t,r[e])})},set:function(t,e){var n=this._getPair(t);n?n[i]=e:this.size=r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[i]},has:function(t){return u(this._getPair(t))},"delete":function(t){var i=r.findIndex(this,function(r){return n.is(t,r[e])});return-1==i?!1:(r.splice(this,i,1),this.size--,!0)},clear:function(){r.splice(this,0,this.length),this.size=0}}),t}),t.WeakSet||(t.WeakSet=new function(){function t(){if(arguments.length)throw l("WeakSet implementation doesn't accept parameters");this.length=0}function e(t){return this===t}function i(t){if(n(t)!==t)throw h("Invalid value used in weak set");return t}return n.assign(t.prototype,{add:function(t){this.has(i(t))||r.push(this,t)},has:function(t){return-1!=r.findIndex(this,e,i(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t.WeakMap||(t.WeakMap=new function(){function t(){if(arguments.length)throw l("WeakMap implementation doesn't accept parameters");this.length=0}function e(t){return this===t[o]}function i(t){if(n(t)!==t)throw h("Invalid value used as weak map key");return t}var o=0,a=1;return n.assign(t.prototype,{_getPair:function(t){return r.find(this,e,i(t))},set:function(t,e){var n=this._getPair(t);n?n[a]=e:r.push(this,[t,e])},get:function(t){return n(this._getPair(t))[a]},has:function(t){return u(this._getPair(t))},"delete":function(t){var n=r.findIndex(this,e,i(t));return-1==n?!1:(r.splice(this,n,1),!0)},clear:function(){r.splice(this,0,this.length)}}),t}),t instanceof n||n.assign(t,new function(){function n(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}var i=0,o={};return{setImmediate:function(){function t(){this.onreadystatechange=null,e.removeChild(this),o[a]&&(delete o[a],n(r))}var r=arguments,a=i++;return o[a]=!0,new function(){var n=e.createElement("script");n.onreadystatechange=t,e.appendChild(n)},a},clearImmediate:function(t){delete o[t]}}}),t.setImmediate||n.assign(t,new function(){function e(e){var n=e[0];switch(e.length){case 1:return n();case 2:return n(e[1]);case 3:return n(e[1],e[2])}return n.apply(t,r.prototype.slice.call(e,1))}function n(t){var n,r=t.data;"string"==typeof r&&r.startsWith(u)&&(n=o[r],n&&(delete o[r],e(n)))}var i=0,o={},a=!0,u="setImmediatePolyfillMessage";return{setImmediate:function(){var e=i++,r=u+e;return o[r]=arguments,a&&(a=!1,t.addEventListener("message",n)),t.postMessage(r,"*"),e},clearImmediate:function(t){delete o[u+t]}}}),t.Promise||(t.Promise=new function(){function e(e){return r(e)?e:new f(function(n,r){t.setImmediate(function(){try{e.then(n,r)}catch(t){r(t)}})})}function r(t){return t instanceof f}function i(t){return n(t)===t&&"function"==typeof t.then}function o(t){return t._fulfilled||t._rejected}function a(t){return t.every(o)}function u(t){return t}function s(t){throw t}function c(t){t()}function f(t){n.assign(this,{_fulfilled:!1,_rejected:!1,_value:void 0,_reason:void 0,_onFulfilled:[],_onRejected:[]}),this._resolve(t)}return n.assign(f,{resolve:function(t){return i(t)?e(t):new f(function(e){e(t)})},reject:function(t){return new f(function(e,n){n(t)})},race:function(t){return new f(function(n,r){t.forEach(function(t){e(t).then(n,r)})})},all:function(t){return new f(function(n,r){var i=[];t=t.map(e),t.forEach(function(e,o){e.then(function(e){i[o]=e,a(t)&&n(i)},r)})})}}),n.assign(f.prototype,{_resolve:function(t){function e(t){r._fulfill(t)}function n(t){r._reject(t)}var r=this;try{t(e,n)}catch(i){o(r)||n(i)}},_fulfill:function(t){o(this)||(this._fulfilled=!0,this._value=t,this._onFulfilled.forEach(c),this._clearQueue())},_reject:function(t){o(this)||(this._rejected=!0,this._reason=t,this._onRejected.forEach(c),this._clearQueue())},_enqueue:function(t,e){this._onFulfilled.push(t),this._onRejected.push(e)},_clearQueue:function(){this._onFulfilled=[],this._onRejected=[]},then:function(n,r){var o=this;return new f(function(a,c){function f(){t.setImmediate(function(){var t;try{t=n(o._value)}catch(r){return void c(r)}i(t)?e(t).then(a,c):a(t)})}function l(){t.setImmediate(function(){var t;try{t=r(o._reason)}catch(n){return void c(n)}i(t)?e(t).then(a,c):a(t)})}n=n||u,r=r||s,o._fulfilled?f():o._rejected?l():o._enqueue(f,l)})},"catch":function(t){return this.then(void 0,t)}}),f}),t.requestAnimationFrame||n.assign(t,{requestAnimationFrame:[t.msRequestAnimationFrame,t.mozRequestAnimationFrame,t.webkitRequestAnimationFrame,new function(){var e=60,n=1e3/e,r=s.now(),i=r;return function(e){var o=s.now(),a=f.max(0,n-(o-i)),u=o+a;return i=u,t.setTimeout(function(){e(u-r)},a)}}].find(u),cancelAnimationFrame:[t.mozCancelAnimationFrame,t.webkitCancelAnimationFrame,t.cancelRequestAnimationFrame,t.msCancelRequestAnimationFrame,t.mozCancelRequestAnimationFrame,t.webkitCancelRequestAnimationFrame,t.clearTimeout].find(u)}),"dataset"in e.documentElement||n.defineProperty(y.prototype,"dataset",{get:new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.substr(5).replace(/-./g,t)}function i(t){return{get:function(){return t.value},set:function(e){t.value=o(e)}}}function a(t,o){return r.forEach(o,function(r){var o=r.name.toLowerCase();o.startsWith("data-")&&n.defineProperty(t,e(o),i(r))}),t}return function(){return a(new v,this.attributes)}}}),"children"in e.createDocumentFragment()||new function(){function t(t){t in r||n.defineProperty(r,t,{get:o[t]})}var r,i=1,o={firstElementChild:function(){for(var t=this.firstChild;t&&i!=t.nodeType;)t=t.nextSibling;return t},lastElementChild:function(){for(var t=this.lastChild;t&&i!=t.nodeType;)t=t.previousSibling;return t},nextElementSibling:function(){var t=this;do t=t.nextSibling;while(t&&i!=t.nodeType);return t},previousElementSibling:function(){var t=this;do t=t.previousSibling;while(t&&i!=t.nodeType);return t},childElementCount:function(){return this.children.length},children:new function(){function t(){}return t.prototype.item=function(t){return this[t]||null},function(){for(var e,n=new t,r=this.childNodes,o=r.length,a=0,u=0;o>a;)e=r[a],i==e.nodeType&&(n[u++]=e),a++;return n.length=u,n}}};r=y.prototype,n.keys(o).forEach(t),[e.constructor,e.createDocumentFragment().constructor].forEach(function(e){r=e.prototype,["firstElementChild","lastElementChild","childElementCount","children"].forEach(t)})},"append"in e.createDocumentFragment()||new function(){function t(t,e,n){return-1!=r.indexOf(t.querySelectorAll(n),e)}function i(t){var n,i,o,a=t.length;if(1==a)return n=t[0],"string"==typeof n?e.createTextNode(n):n;for(i=e.createDocumentFragment(),t=r.from(t),o=0;a>o;)n=t[o],"string"==typeof n&&(n=e.createTextNode(n)),i.appendChild(n),o++;return i}function o(t){t in s||(s[t]=c[t])}var a=1,s=y.prototype,c={before:function(){var t=this.parentNode;t&&t.insertBefore(i(arguments),this)},after:function(){var t,e,n=this.parentNode;n&&(e=i(arguments),t=this.nextSibling,t?n.insertBefore(e,t):n.appendChild(e))},replace:function(){var t=this.parentNode;t&&t.replaceChild(i(arguments),this)},remove:function(){var t=this.parentNode;t&&t.removeChild(this)},append:function(){this.appendChild(i(arguments))},prepend:function(){this.insertBefore(i(arguments),this.firstChild)},query:function(t){return this.querySelector(t)},queryAll:function(t){return this.querySelectorAll(t)},matches:[s.matchesSelector,s.oMatchesSelector,s.msMatchesSelector,s.mozMatchesSelector,s.webkitMatchesSelector,function(n){var r,i;return this===e?!1:(i=this.parentNode)?(a==i.nodeType&&(i=i.ownerDocument),t(i,this,n)):(i=e.createDocumentFragment(),i.appendChild(this),r=t(i,this,n),void i.removeChild(this))}].find(u)};n.keys(c).forEach(o),s=e.constructor.prototype,["query","queryAll"].forEach(o),s=e.createDocumentFragment().constructor.prototype,["append","prepend","query","queryAll","matches"].forEach(o)},"classList"in e.documentElement||n.defineProperty(y.prototype,"classList",{get:new function(){function t(t,e){this._getTokens=t,this._onChange=e}function e(t){return t=t.trim(),t?t.split(/\s\s*/):[]}return n.assign(t.prototype,{_clear:function(){r.splice(this,0,this.length)},_push:function(t){r.prototype.push.apply(this,t)},_update:function(){this._clear(),this._push(this._getTokens())},item:function(t){return this._update(),this[t]||null},add:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){-1==r.indexOf(this,t)&&r.push(this,t)},this),t!=this.length&&this._onChange()},remove:function(){var t;this._update(),t=this.length,r.forEach(arguments,function(t){var e=r.indexOf(this,t);-1!=e&&r.splice(this,e,1)},this),t!=this.length&&this._onChange()},toggle:function(t,e){return this._update(),e===!1||this.contains(t)?(this.remove(t),!1):(this.add(t),!0)},contains:function(t){return this._update(),-1!=r.indexOf(this,t)},toString:function(){return r.join(this," ")}}),function(){var n=this;return n._classList||(n._classList=new t(function(){return e(n.className)},function(){n.className=this.toString()})),n._classList._update(),n._classList}}}),t.FormData||(t.FormData=new function(){function t(t){this.boundary=e(),t&&r.prototype.push.apply(this,i(t))}var e=new function(){function t(){var n=f.random().toString().slice(2);return e[n]?t():(e[n]=1,n)}var e={};return function(){return"-------------------------"+t()}},i=new function(){function t(t){return t.selected}function e(e){var n=e.nodeName.toLowerCase(),i=e.type;return e.name?e.disabled?!1:"fieldset"==n?!1:"select"==n&&e.multiple?r.some(e.options,t):"submit"==i||"reset"==i||"button"==i||"file"==i?!1:"radio"!=i&&"checkbox"!=i||!e.checked?!0:!1:!1}function n(e){return"select"==e.tagName.toLowerCase()&&e.multiple?r.reduce(e.options,function(e,n){return t(n)&&e.push(n.value),e},[]):[e.value]}return function(t){return r.reduce(t.elements,function(t,r){return e(r)&&n(r).forEach(function(e){t.push({name:r.name,value:e})}),t},[])}};return n.assign(t.prototype,{notNative:!0,append:function(t,e,n){r.push(this,{name:t,value:e,fileName:n})},toString:function(){var t=this.boundary,e="";return r.forEach(this,function(r){var i,o=r.name,a=r.value;e+="--"+t+"\r\n",n(a)===a?(i=r.fileName||a.name,e+='Content-Disposition: form-data; name="',e+=o+'"; filename="'+i+'"\r\n',e+="Content-Type: "+a.type+"\r\n\r\n",e+=a.content+"\r\n"):(e+='Content-Disposition: form-data; name="',e+=o+'"\r\n\r\n',e+=a+"\r\n")}),e+="--"+t+"--"}}),XMLHttpRequest.prototype.send=new function(){var e=XMLHttpRequest.prototype.send;return function(n){n instanceof t&&(this.setRequestHeader("Content-Type","multipart/form-data; boundary="+n.boundary),n=n.toString()),e.call(this,n)}},t}),new function(){function t(t){for(var e=[],n=t.length,r=0;n>r;)e[r]=t[r],r++;return e}var i=r.prototype.slice;try{r.slice(e.documentElement.childNodes,0)}catch(o){r.slice=function(e,r,o){var a,u=arguments.length;return a=n(e)instanceof n?e:t(e),1==u||2==u&&0==r?a==e?i.call(a,0):a:2==u?i.call(a,r):i.call(a,r,o)}}},function(){var t={0:!0,length:1};return r.splice(t,0,1),t[0]}()&&new function(){var t=r.splice;r.splice=function(e,n,i){var o,a=t.apply(r,arguments);if(!(e instanceof r))for(o=e.length;i--;)delete e[o+i];return a}},"function"==typeof w&&(v=w),function(){var t=e.createElement("div");return t.appendChild(e.createComment("test")),t.children.length}()&&n.defineProperty(y.prototype,"children",{get:n.getOwnPropertyDescriptor(HTMLDocument.prototype,"children").get}),t.addEventListener||new function(){function t(t){var n=e.documentElement;t.pageX=t.clientX+n.scrollLeft,t.pageY=t.clientY+n.scrollTop,t.timeStamp||(t.timeStamp=s.now())}function r(e,n){return function(r){var i,o=e.slice(0),a=o.length,u=0;for(r instanceof d||t(r),r.currentTarget=n;a>u;)i=o[u],i.handleEvent?i.handleEvent(r):i.call(n,r),u++}}function i(t,e,n){var i,o,a,u,s=this;if(n)throw new l("Capturing phase is not supported");s._events||(s._events={}),o=s._events,u=m[t],u&&(t=u.eventType),a=o[t],a||(a={callbacks:[]},i=r(a.callbacks,s),u&&(i=u.decorateListener(i)),a.listener=i,o[t]=a,this.attachEvent("on"+t,i)),-1==a.callbacks.indexOf(e)&&a.callbacks.push(e)}function o(t,e,n){var r,i,o,a,u,s=this;if(n)throw new l("Capturing phase is not supported");s._events&&(i=s._events,u=m[t],u&&(t=u.eventType),i[t]&&(o=i[t],r=o.callbacks,a=r.indexOf(e),-1!=a&&(r.splice(a,1),r.length||(s.detachEvent("on"+t,o.listener),delete i[t]))))}function a(t){var e,n,r=t.type;return t instanceof d?(t.target=this,e=this._events,e&&e[r]&&e[r].listener(t)):(n=m[r],n&&(r=n.eventType),this.fireEvent("on"+r,t)),!t.defaultPrevented}function u(t,e,r){n.assign(this,{type:t,bubbles:e,cancelable:r})}function c(t,e,r,i,o){this.initEvent(t,e,r),n.assign(this,{view:i,detail:o})}function f(t,e,r,i,o,a,u,s,c,f,l,h,p,d,m){this.initUIEvent(t,e,r,i,o),n.assign(this,{screenX:a,screenY:u,clientX:s,clientY:c,ctrlKey:f,altKey:l,shiftKey:h,metaKey:p,button:d,fromElement:m})}function h(){this.defaultPrevented=!0,this.returnValue=!1}function p(){this.cancelBubble=!0}function d(){}var m={DOMContentLoaded:{eventType:"readystatechange",decorateListener:function(t){return function(n){"complete"==e.readyState&&t(n)}}}};n.assign(d.prototype,{type:"",timeStamp:0,detail:null,target:null,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:u,initCustomEvent:function(t,e,n,r){this.initEvent(t,e,n),this.detail=r}}),n.assign(Event.prototype,{timeStamp:0,currentTarget:null,defaultPrevented:!1,preventDefault:h,stopPropagation:p,initEvent:u}),n.defineProperty(Event.prototype,"target",{get:function(){return this.srcElement}}),n.defineProperty(Event.prototype,"relatedTarget",{get:function(){return this.fromElement===this.srcElement?this.toElement:this.fromElement}}),[y,HTMLDocument,Window,XMLHttpRequest].forEach(function(t){var e=t.prototype;e.dispatchEvent=a,e.addEventListener=i,e.removeEventListener=o}),HTMLDocument.prototype.createEvent=function(t){var e;return t.startsWith("CustomEvent")?e=new d:(e=this.createEventObject(),t.startsWith("UIEvent")?e.initUIEvent=c:t.startsWith("MouseEvent")&&(e.initUIEvent=c,e.initMouseEvent=f)),e.timeStamp=s.now(),e}},"onload"in new XMLHttpRequest||new function(){var r=XMLHttpRequest.prototype,i=r.abort,o=r.send,a=r.open;n.assign(r,{UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4,_unbind:function(){this.onreadystatechange=null},_fireEvent:function(n){var r=e.createEvent("CustomEvent");r.initEvent(n,!1,!1),this.dispatchEvent(r),n="on"+n,this[n]&&t.setImmediate(function(){r.target[n](r)})},_onReadyStateChange:function(){this.readyState==this.DONE&&(this._unbind(),this._fireEvent("load"))},open:function(){try{a.apply(this,arguments)}catch(t){this._unbind(),this._fireEvent("error")}},send:function(t){this.onreadystatechange=this._onReadyStateChange;try{o.call(this,t)}catch(e){this._unbind(),this._fireEvent("error")}},abort:function(){i.call(this),this._fireEvent("abort")}})},"onload"in e.createElement("script")||n.defineProperty(HTMLScriptElement.prototype,"onload",{set:function(t){this.onreadystatechange="function"==typeof t?function(n){"loaded"==this.readyState&&(this.onreadystatechange=null,n=e.createEvent("CustomEvent"),this.text?(n.initEvent("load",!1,!1),t.call(this,n)):this.onerror&&(n.initEvent("error",!1,!1),this.onerror(n)),this.onerror=null)}:null}}),t instanceof n||new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t,e){return t.replace("{ENABLED}",1!=e)}function i(t){return r(l.replace("{VALUE}",f.trunc(100*t)),t)}function a(t,e){return t.replace(p,i(e))}function u(t){return t.toLowerCase().contains("alpha")}var s=CSSStyleDeclaration.prototype,c="progid:DXImageTransform.Microsoft.",l="Alpha(opacity={VALUE}, enabled={ENABLED})",h=/\bopacity\s*=\s*(\d+)/i,p=/alpha\s*\(.*?\)/i;n.defineProperty(s,"cssFloat",{get:function(){return this.styleFloat},set:function(t){this.styleFloat=t}}),n.defineProperty(s,"opacity",{get:function(){var t="",e=this.filter.trim();return e&&e.replace(p,function(e){e.replace(h,function(e,n){t=o(n/100)})}),t},set:function(t){var e=this.filter.trim();!t||t>1?t=1:0>t&&(t=0),e?u(e)?this.filter=a(e,t):this.filter+=" "+c+i(t):this.filter=c+i(t)}}),n.assign(s,{getPropertyValue:function(t){return t=t.toLowerCase(),"float"==t?this.styleFloat:this[e(t)]},removeProperty:function(t){var n;return t=t.toLowerCase(),"float"==t?(t="styleFloat",n=this.styleFloat):(t=e(t),n=this[t]),this[t]="",n},setProperty:function(t,n){t=t.toLowerCase(),"float"==t&&(this.styleFloat=n),this[e(t)]=n}})},t.getComputedStyle||(t.getComputedStyle=new function(){function t(t){return t.charAt(1).toUpperCase()}function e(e){return e.replace(/-./g,t)}function r(t){return t=t.toLowerCase(),"float"==t?this.cssFloat:this[e(t)]}function i(t,e){return{get:function(){return t[e]}}}function a(t){return{get:function(){return t.styleFloat}}}function u(t){return{get:function(){var e=t["DXImageTransform.Microsoft.Alpha"]||t.alpha;return e?o(e.opacity/100):"1"}}}function s(t,e){if(e)throw new l("getComputedStyle implementation only accepts the 1st parameter");var o,s=t._compStyle;return s||(s=t._compStyle=new w,o=t.currentStyle,n.keys(o).forEach(function(t){n.defineProperty(s,t,i(o,t))}),n.defineProperty(s,"cssFloat",a(o)),n.defineProperty(s,"opacity",u(t.filters)),s.getPropertyValue=r),s}return s}),history.pushState||new function(){},t.lib={},lib.classExtends=function(t,e){t.prototype=n.create(e.prototype),t.prototype.constructor=t,t.Super=e},lib.array={count:function(t){return r.reduce(t,function(t){return t+1},0)},contains:function(t,e,n){return-1!=r.indexOf(t,e,n)},unique:function(t){for(var e,n=[],r=t.length,i=0,o=0;r>i;)e=t[i],-1==n.indexOf(e)&&(n[o++]=e),i++;return n},all:function(t,e,r){var i=n(t).length;if(!i)return!1;for(;i--;){if(!(i in t))return!1;if(!e.call(r,t[i]))return!1}return!0},refine:function(t){return r.reduce(t,function(t,e){return t.push(e),t},[])},range:function(t,e){var n=[];1 in arguments||(e=t,t=0);for(;e>t;)n.push(t),t++;return n},shuffle:function(t){for(var e,n,i=r.from(t),o=i.length;o--;)e=f.floor(f.random()*(o+1)),n=i[e],i[e]=i[o],i[o]=n;return i},remove:function(t,e){var n=r.indexOf(t,e);return-1!=n&&r.splice(t,n,1)}},lib.date=new function(){var t=this,e=[31,28,31,30,31,30,31,31,30,31,30,31];t.isLeapYear=function(t){return arguments.length||(t=new s),t instanceof s&&(t=t.getFullYear()),t%4==0&&t%100!=0||t%400==0},t.getMonthLength=function(n,r){return arguments.length||(n=new s),n instanceof s&&(r=n.getFullYear(),n=n.getMonth()),1==n&&t.isLeapYear(r)?29:e[n]}},lib.html={parse:function(t){var n=e.createElement("div"),r=e.createDocumentFragment();for(n.innerHTML=t;n.hasChildNodes();)r.appendChild(n.firstChild);return r},escape:function(t){var n=e.createElement("div");return n.appendChild(e.createTextNode(t)),n.innerHTML},unescape:function(t){var n=e.createElement("div");return n.innerHTML=t,n.textContent}},lib.Template=new function(){function t(t){this.template=t}return t.match=function(t,e){return r.isArray(t)&&(t=t.join("")),n.keys(e).reduceRight(function(t,n){var r=e[n];return t.split("{"+n.toUpperCase()+"}").join(r)},t)},t.prototype.match=function(e){return t.match(this.template,e)},t},lib.I18n=new function(){function t(t){this.messageBundle=this[t]}function e(t,e){this.locale=t,this[t]=e}function n(n,r){function i(t,e){return t in i.messageBundle&&(t=i.messageBundle[t]),e?lib.Template.match(t,e):t}return i.add=e,i.use=t,i.add(n,r),i.use(n),i}return n},lib.css=new function(){var i,o=this;o.prefix=i=new function(){var t={},n=["ms","O","Webkit","Moz"],r=new function(){var t=e.documentElement.style,n=t.constructor.prototype;return"top"in n?n:t};return function(e){var i,o,a;if(e in t)return t[e];if(e in r)return t[e]=e,e;for(o=e.charAt(0).toUpperCase()+e.slice(1),a=n.length;a--;)if(i=n[a]+o,i in r)return t[e]=i,i;return void(t[e]=void 0)}},new function(){var t={animation:["Delay","Direction","Duration","FillMode","IterationCount","Name","PlayState","TimingFunction"],transition:["Delay","Duration","Property","TimingFunction"],transform:["Origin","Style"]};n.keys(t).forEach(function(e){var n=i(e);n&&(o[e]=n,t[e].forEach(function(t){o[e+t]=n+t}))})},o.getAnimationNames=new function(){function t(t){return"none"!=t}var e=/,\s*/;return function(n){var r=n[o.animationName];return r?r.split(e).filter(t):[]}},o.set=new function(){function e(t,e){n.keys(e).forEach(function(n){t[i(n)]=e[n]})}return o.transition||o.animation?function(n,r){var i=t.getComputedStyle(n),a=o.getAnimationNames(i);return e(n.style,r),lib.event.awaitTransAnimEnd(n,a)}:function(t,n){return e(t.style,n),Promise.resolve(t)}},o.get=function(e,n){var o=t.getComputedStyle(e);return r.isArray(n)?n.reduce(function(t,e){return t[e]=o[i(e)],t},{}):o[i(n)]},o.getTransitionTime=o.transition?new function(){function t(t){return t.split(",").map(function(t){return a.parseFloat(t)||0})}function e(t,e){for(var n,r=0,i=f.max(e.length,t.length),o=0;i>o;)n=(t[o]||0)+(e[o]||0),n>r&&(r=n),o++;return f.ceil(1e3*r)}return function(n){return e(t(n[o.transitionDelay]),t(n[o.transitionDuration]))}}:function(){return 0}},lib.event=n.assign({preventDefault:function(t){t.preventDefault()},stopPropagation:function(t){t.stopPropagation()}},new function(){function t(t){t.eventTypes.forEach(function(e){t.element.removeEventListener(e,t.callback)})}function e(t,e,n,r){var i;return 3==arguments.length&&(r=n,n=e,e=void 0),e?(e+=","+e+" *",i=function(n){var i=n.target;i.matches&&i.matches(e)&&(r.handleEvent?r.handleEvent(n):r.call(t,n))}):i=r,"string"==typeof n&&(n=n.split(/[\s,]+/)),n.forEach(function(e){t.addEventListener(e,i)}),{element:t,eventTypes:n,callback:i}}function n(n,r,i,o){function a(e){t(u),o.handleEvent?o.handleEvent(e):o.call(n,e)}var u;3==arguments.length&&(o=i,i=r,r=void 0),u=e(n,r,i,a)}function r(t,e,r){return 2==arguments.length&&(r=e,e=void 0),new Promise(function(i){n(t,e,r,i)})}return{off:t,on:e,one:n,when:r}},new function(){function e(t,e){return t?e.reduce(function(e,n){return-1==t.indexOf(n)&&e.push(n),e},[]):e}function n(t,e){var n=t.indexOf(e);return-1!=n&&t.splice(n,1),t.length}function r(t,e){return e||(e=a.getAnimationNames(t)),e.length?new Promise(function(r){function i(o){o.target!=t||n(e,o.animationName)||(t.removeEventListener(c,i),r(t))}t.addEventListener(c,i)}):Promise.resolve(t)}function i(e,n){var r;return n||(n=t.getComputedStyle(e)),r=a.getTransitionTime(n),r?new Promise(function(n){t.setTimeout(function(){n(e)},r)}):Promise.resolve(e)}function o(n,o){var u=t.getComputedStyle(n),s=a.getAnimationNames(u);return s=e(o,s),Promise.all([r(n,s),i(n,u)]).then(function(){return n})}var a=lib.css,u=a.animation,s=a.transition,c={animation:"animationend",MozAnimation:"mozAnimationEnd",WebkitAnimation:"webkitAnimationEnd"}[u],f=Promise.resolve;return{animationEnd:c,animationStart:{animation:"animationstart",MozAnimation:"mozAnimationStart",WebkitAnimation:"webkitAnimationStart"}[u],animationIteration:{animation:"animationiteration",MozAnimation:"mozAnimationIteration",WebkitAnimation:"webkitAnimationIteration"}[u],transitionEnd:{transition:"transitionend",MozTransition:"mozTransitionEnd",WebkitTransition:"webkitTransitionEnd"}[s],awaitAnimationEnd:u?r:f,awaitTransitionEnd:s?i:f,awaitTransAnimEnd:u||s?o:f}}),lib.dom=n.assign({ready:function(){return"complete"==e.readyState?Promise.resolve():lib.event.when(e,"DOMContentLoaded")}},new function(){function e(t,e,n){var r=t.className,i=t.classList;return n.forEach(function(t){i[e](t)}),r!=t.className}function n(t,e){return o(e[0],t,r.slice(e,1))}var i=lib.css,o=i.animation||i.transition?function(n,r,o){var a=t.getComputedStyle(n),u=i.getAnimationNames(a);return e(n,r,o)?lib.event.awaitTransAnimEnd(n,u):Promise.resolve(n)}:function(t,n,r){return e(t,n,r),Promise.resolve(t)};return{addClass:function(){return n("add",arguments)},removeClass:function(){return n("remove",arguments)},toggleClass:function(){return n("toggle",arguments)}}}),lib.request=new function(){function r(t,e){return encodeURIComponent(t)+"="+encodeURIComponent(e)}function i(t){return n.keys(t).reduce(function(e,n){return e.push(r(n,t[n])),e},[]).join("&")}function o(t){t.onload=null,t.onerror=null,t.ontimeout=null}function a(e){var r=(e.method||"GET").toUpperCase(),a=e.url||t.location.href,s=e.data,c=e.userName||"",f=e.password||"",h=e.timeout||0,p=!1!==e.async,d=!1!==e.caching,m=!0===e.credentials,g=e.mimeType,v={"X-Requested-With":"XMLHttpRequest"}; return n(s)===s&&(s instanceof FormData?v["Content-Type"]="multipart/form-data":s=i(s)),"POST"==r?v["Content-Type"]=v["Content-Type"]||"application/x-www-form-urlencoded; charset=UTF-8":(d||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(d?"?":"&")+s),s=null),e.headers&&n.assign(v,e.headers),new Promise(function(t,e){function i(){o(this),this.status>=200&&this.status<400?t(this):e(new l(this.statusText))}function u(){o(this),e(new l(this.statusText))}function d(){o(this),e(new l("time is out"))}!new function(){var t=new XMLHttpRequest;t.open(r,a,p,c,f),m&&(t.withCredentials=!0),g&&t.overrideMimeType(g),n.keys(v).forEach(function(e){t.setRequestHeader(e,v[e])}),t.onload=i,t.onerror=u,h&&(t.timeout=h,t.ontimeout=d),t.send(s)}})}var u=new function(){var t={};return function(){var e=f.random().toString().slice(2);return t[e]?u():(t[e]=1,e)}};return n.assign(a,{toQueryParam:r,toQueryString:i,get:function(t){return"string"==typeof t&&(t={url:t}),t.method="GET",a(t)},post:function(t){return t.method="POST",a(t)},json:function(t){return a.get(t).then(function(t){return JSON.parse(t.responseText)})},jsonp:function(t){return a.script(t)},script:function(r){var a,s,c;return"string"==typeof r&&(r={url:r}),a=r.url||t.location.href,s=r.data,c=r.caching!==!1,n(s)===s&&(s=i(s)),c||(a+="?no-cache="+u()),"string"==typeof s&&(a+=(c?"?":"&")+s),new Promise(function(t,r){e.head.appendChild(n.assign(e.createElement("script"),{onload:function(){o(this),this.remove(),t()},onerror:function(){o(this),this.remove(),r(new l("Could not load script"))},async:!0,defer:!0,src:a}))})}}),a},lib.cookie=new function(){function t(t){return l(f.cookie.replace(new c("(?:(?:^|.*;)\\s*"+h(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null}function n(t,e,n){n=n||{};var r="",i=n.end,u=n.path,c=n.domain,l=n.secure;if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;if(i)switch(i.constructor){case a:r=1/0===i?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+i;break;case o:r="; expires="+i;break;case s:r="; expires="+i.toUTCString()}return f.cookie=h(t)+"="+h(e)+r+(c?"; domain="+c:"")+(u?"; path="+u:"")+(l?"; secure":""),!0}function r(t,e){e=e||{};var n=e.path,r=e.domain;return t&&i(t)?(f.cookie=h(t)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT"+(r?"; domain="+r:"")+(n?"; path="+n:""),!0):!1}function i(t){return new c("(?:^|;\\s*)"+h(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(f.cookie)}function u(){return f.cookie.replace(/((?:^|\s*;)[^\=]+)(?=;|$)|^\s*|\s*(?:\=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:\=[^;]*)?;\s*/).map(l)}var f=e,l=decodeURIComponent,h=encodeURIComponent;return{get:t,set:n,has:i,remove:r,keys:u}}}(window,document,Object,Array,Function,String,Number,Boolean,Date,RegExp,Math,Error,TypeError,isFinite,isNaN,parseFloat,parseInt); \ No newline at end of file