(function(){function n(){var t=this.$loading;t&&(this.$self?this.classList.remove(t):this.parentNode.classList.remove(t));delete this.$loading;delete this.$self;this.removeEventListener("load",n,!1)}var t;if(typeof window.CustomEvent!="function"){function i(n,t){t=t||{};var i=document.createEvent("CustomEvent");return i.initCustomEvent(n,t.bubbles||!1,t.cancelable||!1,t.detail||undefined),i}i.prototype=window.Event.prototype;window.CustomEvent=i}if(Object.isPlainObject||function(){var r=Object.getPrototypeOf,n={},u=n.toString,t=n.hasOwnProperty,i=t.toString,f=i.call(Object);Object.isPlainObject=function(n){var e,o;return!n||u.call(n)!=="[object Object]"?!1:(e=r(n),!e)?!0:(o=t.call(e,"constructor")&&e.constructor,typeof o=="function"&&i.call(o)===f)}}(),Object.extend||function(){function n(t){var r,i;if(t===undefined||t===null)return t;switch(typeof t){case"boolean":case"number":case"string":return t}if(t.constructor===Date)return new Date(t.getTime());if(Array.isArray(t)){for(r=new Array(t.length),i=0;i0?1:-1)*Math.floor(Math.abs(t))},r=Math.pow(2,53)-1,u=function(n){var t=i(n);return Math.min(Math.max(t,0),r)};return function(t){var h=this,c=Object(t),i,o;if(t==null)throw new TypeError("Array.from requires an array-like object - not null or undefined");if(i=arguments.length>1?arguments[1]:void undefined,typeof i!="undefined"){if(!n(i))throw new TypeError("Array.from: when provided, the second argument must be a function");arguments.length>2&&(o=arguments[2])}for(var f=u(c.length),s=n(h)?Object(new h(f)):new Array(f),r=0,e;ri){var f=i+Math.floor(Math.random()*(r-i));f=n.partition(t,i,r,f,u);n.quick(t,i,f,u);n.quick(t,f+1,r,u)}}};Array.quickSort=function(t,i){n.quick(t,0,t.length,i)}}(),Array.bindex||(Array.bindex=function(n,t,i,r){var u,o,h,f,e,s;if(!n||!n.length)return-1;for(u=0,o=n.length-1,h=null,r===undefined&&i===!0&&(r=i,i===undefined);u>1,e=n[f],s=i?e[i]:e,st?o=f-1:(h=f,r?u=f+1:o=f-1);return h!==null?h:u===0?u:(e=n[u],s=i?e[i]:e,s>t&&u--,u)}),window.NodeList&&!NodeList.prototype.forEach&&(NodeList.prototype.forEach=function(n,t){t=t||window;for(var i=0;i=0}),window.HTMLCollection&&!HTMLCollection.prototype.contains&&(HTMLCollection.prototype.contains=function(n){return Array.prototype.indexOf.call(this,n)>=0}),function(n){n.forEach(function(n){n.hasOwnProperty("remove")||Object.defineProperty(n,"remove",{configurable:!0,enumerable:!0,writable:!0,value:function(){this.parentNode!==null&&this.parentNode.removeChild(this)}})})}([Element.prototype,CharacterData.prototype,DocumentType.prototype]),Element.prototype.trigger||(Element.prototype.trigger=function(n,t){var i={bubbles:!0,cancelable:!0};return t&&(i.detail=t),this.dispatchEvent(new window.CustomEvent(n,i))}),Window.prototype.trigger||(Window.prototype.trigger=function(n,t){var i={};return t&&(i.detail=t),this.dispatchEvent(new window.CustomEvent(n,i))}),Element.prototype.linkData||(Element.prototype.linkData=function(){var n=this.closest("a,button"),t=n&&n.getAttribute("href"),i=t&&/^javascript:(\w+)(?:\('([^']+)')?/i.exec(t),r=i&&i[1],u=r==="void"?i[2]:undefined;return{link:n,href:t,fn:r,action:u||n&&n.getAttribute("data-action")}}),Element.prototype.focusAfter||(Element.prototype.focusAfter=function(n,t){(clearTimeout(this.$focus||0),this.focus)&&(this.$focus=setTimeout(function(){try{this.focus()}catch(n){}if(delete this.$focus,t&&t.call)try{t.call(this)}catch(n){}}.bind(this),+n||0))}),Element.prototype.matches||(Element.prototype.matches=Element.prototype.matchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector||Element.prototype.oMatchesSelector||Element.prototype.webkitMatchesSelector||function(n){return window.jQuery?$(this).is(n):!1}),Element.prototype.closest||(Element.prototype.closest=Element.prototype.matches?function(n){var t=this,i=t.ownerDocument||document;if(!i.documentElement.contains(t))return null;do{if(t.matches(n))return t;t=t.parentElement}while(t!==null);return null}:function(n){var t,r=(this.ownerDocument||this.document).querySelectorAll(n),i=this;do for(t=r.length;--t>=0&&r.item(t)!==i;);while(t<0&&(i=i.parentElement));return i}),HTMLImageElement.prototype.ifloading||(HTMLImageElement.prototype.ifloading=function(t,i){this.complete||(this.$loading||(this.addEventListener("load",n,!1),this.addEventListener("error",n,!1)),this.$loading=t||"loading",this.$self=!!i,i?this.classList.add(this.$loading):this.parentNode.classList.add(this.$loading))}),Element.prototype.scrollParent||(Element.prototype.scrollParent=function(){for(var n=this.parentNode,t=this.ownerDocument,i=t.defaultView;n;){if(n.parentNode&&n.parentNode!==t.body&&n.parentNode!==t.documentElement&&n.parentNode!==t&&n.parentNode!==t.defaultView){if(i.getComputedStyle(n).getPropertyValue("overflow")!=="visible")return n}else return null;n=n.parentNode}return null}),Element.prototype.scrollTo||(Element.prototype.scrollTo=function(n,t){this.scrollLeft=n;this.scrollTop=t}),Element.prototype.scrolling||(Element.prototype.scrolling=function(n,t,i,r){var f,u,e;if((n||t)&&(f=this.cancelAnimationFrame?this:this.ownerDocument.defaultView,f)){if(this.$scrolling&&this.$scrolling.frame&&f.cancelAnimationFrame(this.$scrolling.frame),delete this.$scrolling,u={startX:this.pageXOffset||this.scrollLeft||0,startY:this.pageYOffset||this.scrollTop||0,diffX:n,diffY:t,dur:i||Math.min(500,Math.max(250,Math.abs(t/4))),frame:0},r&&typeof r=="function"&&(u.callback=r),u.diffY<0&&u.startY===0&&(u.diffY=0),u.diffX<0&&u.startX===0&&(u.diffX=0),!u.diffY&&!u.diffX){if(u.callback)try{u.callback.call(this)}catch(o){}u=null;return}if(u.dur<0){n=u.diffX+u.startX;t=u.diffY+u.startY;this.scrollTo(n,t);return}this.$scrolling=u;e=function(n){var r,i,u,o,t=this.$scrolling;if(t.begin){if(r=n-t.begin,i=Math.min(1,r/t.dur),i=.5-Math.cos(i*Math.PI)/2,u=i*t.diffX+t.startX,o=i*t.diffY+t.startY,this.scrollTo(u,o),i===1){if(t.callback)try{t.callback.call(this)}catch(s){}delete this.$scrolling;return}}else t.begin=n;this.$scrolling.frame=f.requestAnimationFrame(e)}.bind(this);this.$scrolling.frame=f.requestAnimationFrame(e)}}),Window.prototype.scrolling||(Window.prototype.scrolling=Element.prototype.scrolling),Document.prototype.getFixedElements||(Document.prototype.getFixedElements=function(){for(var n,r,t,u=this.querySelectorAll("aside,div,header,nav,ul"),f=[],i=0;iu&&n.height>t&&(t=n.height);return t}),Element.prototype.scrollIntoViewport||(Element.prototype.scrollIntoViewport=function(n){var t,r,u,o,a,v,s,y,p,h,f,e,c,w,b,i=n&&n.container,l=n&&n.margin||20;if(t=this.getBoundingClientRect(),t.height===0&&t.top===0)if(r=this.previousElementSibling&&this.previousElementSibling.getBoundingClientRect(),r&&r.height?t={top:r.bottom+1,right:r.right,bottom:r.bottom+2,left:r.left,width:r.width,height:1}:u=this.nextElementSibling&&this.nextElementSibling.getBoundingClientRect(),u&&u.height)t={top:u.top-2,right:u.right,bottom:u.top-1,left:u.left,width:u.width,height:1};else if(!t&&(t=this.parentNode.getBoundingClientRect(),!t.height))return;if(i!==!1)if(i)if(i.ownerDocument){if(!i.contains(this)){console.log("Element not found in container",this,i);return}}else{console.log("Invalid container",i);return}else i=this.scrollParent();if(i){if(o=i.clientHeight,!o)return;a=i.clientWidth;v=i.getBoundingClientRect();s=v.top;y=v.left;p=0}else h=this.ownerDocument,o=h.documentElement.clientHeight,a=h.documentElement.clientWidth,s=0,p=n&&n.fixed?h.fixedOffset():0;t.height>o+1&&(n||(n={}),n.top=!0);f=t.top-p-s-l;f>=1&&(!n||!n.top)&&(c=n&&n.height?t.top+n.height:t.bottom,f=c-s-o+l,f<=1&&(f=0));e=t.left-y-l;e>=1&&(!n||!n.left)&&(c=n&&n.width?t.left+n.width:t.right,e=c-y-a+l,e<=1&&(e=0));n&&n.instant?w=-1:(w=n&&n.duration,b=n&&n.callback);(i||this.ownerDocument.defaultView).scrolling(e,f,w,b)}),t=[/^\d{4}\-\d{2}\-\d{2}T\d\d\:\d\d/,/^(\d{4})\-(\d{2})\-(\d{2})(?:\s+|$)/,/(^.+ |^\s*)(\d+):(\d+)(:\d+)? ?(?:(am)|(pm))\s*$/i,/(^.+ |^\s*)(\d+):(\d+)(?:(\d+)(\.\d+)?)?\s*$/],!Date.parse2){Date.parse2=function(n){var i,r,f,u;if(n){if(n.constructor===Date)return n;if(typeof n!="string")i=new Date(n);else{for(u=0;u12?f-12:f;case"hh":return f<10?"0"+f:f;case"m":return+a;case"mm":return a;case"s":return+v;case"ss":return v;case"t":return i>11?"p":"a";case"tt":return i>11?"pm":"am";case"T":return i>11?"P":"A";case"TT":return i>11?"PM":"AM";case"f":return c.slice(0,1);case"ff":return c.slice(0,2);case"fff":return c;case"rr":case"RR":o=n==="RR";switch(h){case 1:case 21:case 31:return o?"ST":"st";case 2:case 22:return o?"ND":"nd";case 3:case 23:return o?"RD":"rd";default:return o?"TH":"th"}break;case"ZZZ":return Date.timeZoneAbbreviation?Date.timeZoneAbbreviation(e):"";default:return n[0]==="\\"?n[1]:n}})};Date.isLeapYear=function(n){return n%4==0&&n%100!=0||n%400==0};Date.getDaysInMonth=function(n,t){return[31,Date.isLeapYear(n)?29:28,31,30,31,30,31,31,30,31,30,31][t]};Date.prototype.isLeapYear=function(){return Date.isLeapYear(this.getFullYear())};Date.prototype.getDaysInMonth=function(){return Date.getDaysInMonth(this.getFullYear(),this.getMonth())};Date.prototype.addYears=function(n){return!n||isNaN(n=+n)?this:(this.setFullYear(this.getFullYear()+n),this)};Date.prototype.addMonths=function(n){var t=this.getDate();return!n||isNaN(n=+n)?this:(this.setMonth(this.getMonth()+n),t=Math.max(0,Math.min(this.getDaysInMonth(),t)),this.setDate(t),this)};Date.prototype.addDays=function(n){return!n||isNaN(n=+n)?this:(this.setDate(this.getDate()+n),this)};Date.prototype.setYears=function(n){var t=this.getDate();if(n&&!isNaN(n=+n))return this.setDate(1),this.setFullYear(n),t=Math.max(0,Math.min(this.getDaysInMonth(),t)),this.setDate(t),this};Date.prototype.setMonths=function(n){var t=this.getDate();if(n&&!isNaN(n=+n))return this.setDate(1),n=Math.max(1,Math.min(12,n)),this.setMonth(n-1),t=Math.max(0,Math.min(this.getDaysInMonth(),t)),this.setDate(t),this};Date.prototype.setDays=function(n){if(n&&!isNaN(n=+n))return n=Math.max(0,Math.min(this.getDaysInMonth(),n)),this.setDate(n),this};Date.prototype.set=function(n,t,i,r,u,f){return this.setYears(n),this.setMonths(t),this.setDays(i),r=Math.max(0,Math.min(23,+r||0)),u=Math.max(0,Math.min(59,+u||0)),f=Math.max(0,Math.min(59,+f||0)),this.setHours(r,u,f,0),this}}window.register&&window.register("j/poly")})(); window.Modernizr=function(n,t,i){function l(n){c.cssText=n}function lt(n,t){return l(a.join(n+";")+(t||""))}function h(n,t){return typeof n===t}function it(n,t){return!!~(""+n).indexOf(t)}function ht(n,t){var u,r;for(u in n)if(r=n[u],!it(r,"-")&&c[r]!==i)return t=="pfx"?r:!0;return!1}function at(n,t,r){var f,u;for(f in n)if(u=t[n[f]],u!==i)return r===!1?n[f]:h(u,"function")?u.bind(r||t):u;return!1}function s(n,t,i){var r=n.charAt(0).toUpperCase()+n.slice(1),u=(n+" "+ft.join(r+" ")+r).split(" ");return h(t,"string")||h(t,"undefined")?ht(u,t):(u=(n+" "+et.join(r+" ")+r).split(" "),at(u,t,i))}function vt(){u.input=function(i){for(var r=0,u=i.length;r',n,"<\/style>"].join(""),f.id=o,(h?f:s).innerHTML+=l,s.appendChild(f),h||(s.style.background="",s.style.overflow="hidden",v=e.style.overflow,e.style.overflow="hidden",e.appendChild(s)),a=i(f,n),h?f.parentNode.removeChild(f):(s.parentNode.removeChild(s),e.style.overflow=v),!!a},st=function(){function r(r,u){u=u||t.createElement(n[r]||"div");r="on"+r;var f=r in u;return f||(u.setAttribute||(u=t.createElement("div")),u.setAttribute&&u.removeAttribute&&(u.setAttribute(r,""),f=h(u[r],"function"),h(u[r],"undefined")||(u[r]=i),u.removeAttribute(r))),u=null,f}var n={select:"input",change:"input",submit:"form",reset:"form",error:"img",load:"img",abort:"img"};return r}(),nt={}.hasOwnProperty,tt,w;tt=h(nt,"undefined")||h(nt.call,"undefined")?function(n,t){return t in n&&h(n.constructor.prototype[t],"undefined")}:function(n,t){return nt.call(n,t)};Function.prototype.bind||(Function.prototype.bind=function(n){var t=this,i,r;if(typeof t!="function")throw new TypeError;return i=g.call(arguments,1),r=function(){var f,e,u;return this instanceof r?(f=function(){},f.prototype=t.prototype,e=new f,u=t.apply(e,i.concat(g.call(arguments))),Object(u)===u)?u:e:t.apply(n,i.concat(g.call(arguments)))},r});r.flexbox=function(){return s("flexWrap")};r.canvas=function(){var n=t.createElement("canvas");return!!(n.getContext&&n.getContext("2d"))};r.touch=function(){var i;return"ontouchstart"in n||n.DocumentTouch&&t instanceof DocumentTouch?i=!0:p(["@media (",a.join("touch-enabled),("),o,")","{#modernizr{top:9px;position:absolute}}"].join(""),function(n){i=n.offsetTop===9}),i};r.geolocation=function(){return"geolocation"in navigator};r.hashchange=function(){return st("hashchange",n)&&(t.documentMode===i||t.documentMode>7)};r.history=function(){return!!(n.history&&history.pushState)};r.websockets=function(){return"WebSocket"in n||"MozWebSocket"in n};r.rgba=function(){return l("background-color:rgba(150,255,150,.5)"),it(c.backgroundColor,"rgba")};r.multiplebgs=function(){return l("background:url(https://),url(https://),red url(https://)"),/(url\s*\(.*?){3}/.test(c.background)};r.backgroundsize=function(){return s("backgroundSize")};r.boxshadow=function(){return s("boxShadow")};r.opacity=function(){return lt("opacity:.55"),/^0.55$/.test(c.opacity)};r.cssanimations=function(){return s("animationName")};r.csscolumns=function(){return s("columnCount")};r.cssgradients=function(){var n="background-image:";return l((n+"-webkit- ".split(" ").join("gradient(linear,left top,right bottom,from(#9f9),to(white));"+n)+a.join("linear-gradient(left top,#9f9, white);"+n)).slice(0,-n.length)),it(c.backgroundImage,"gradient")};r.csstransforms=function(){return!!s("transform")};r.csstransforms3d=function(){var n=!!s("perspective");return n&&"webkitPerspective"in e.style&&p("@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}",function(t){n=t.offsetLeft===9&&t.offsetHeight===3}),n};r.csstransitions=function(){return s("transition")};r.generatedcontent=function(){var n;return p(["#",o,"{font:0/0 a}#",o,':after{content:"',k,'";visibility:hidden;font:3px/1 a}'].join(""),function(t){n=t.offsetHeight>=3}),n};r.localstorage=function(){try{return localStorage.setItem(o,o),localStorage.removeItem(o),!0}catch(n){return!1}};r.svg=function(){return!!t.createElementNS&&!!t.createElementNS(ct.svg,"svg").createSVGRect};for(w in r)tt(r,w)&&(y=w.toLowerCase(),u[y]=r[w](),d.push((u[y]?"":"no-")+y));return u.input||vt(),u.addTest=function(n,t){if(typeof n=="object")for(var r in n)tt(n,r)&&u.addTest(r,n[r]);else{if(n=n.toLowerCase(),u[n]!==i)return u;t=typeof t=="function"?t():t;typeof b!="undefined"&&b&&(e.className+=" "+(t?"":"no-")+n);u[n]=t}return u},l(""),rt=f=null,function(n,t){function p(n,t){var i=n.createElement("p"),r=n.getElementsByTagName("head")[0]||n.documentElement;return i.innerHTML="x