HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/carrot.komma.pro/wwwroot/js/site/core.js
function _typeof(t){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function createNewEvent(t){var e;return"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event")).initEvent(t,!0,!0),e}function dispatchEventForElement(t,e){document.createEvent?t.dispatchEvent(e):t.fireEvent("on"+e.eventType,e)}!function(t,e){if("function"==typeof define&&define.amd)define(["exports"],e);else if("undefined"!=typeof exports)e(exports);else{var n={};e(n),t.bodyScrollLock=n}}(this,function(t){"use strict";function e(t){if(Array.isArray(t)){for(var e=0,n=Array(t.length);e<t.length;e++)n[e]=t[e];return n}return Array.from(t)}Object.defineProperty(t,"__esModule",{value:!0});var n=!1;if("undefined"!=typeof window){var o={get passive(){n=!0}};window.addEventListener("testPassive",null,o),window.removeEventListener("testPassive",null,o)}var i="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&/iP(ad|hone|od)/.test(window.navigator.platform),r=[],s=!1,a=-1,l=void 0,c=void 0,u=function(t){return r.some(function(e){return!(!e.options.allowTouchMove||!e.options.allowTouchMove(t))})},h=function(t){var e=t||window.event;return!!u(e.target)||1<e.touches.length||(e.preventDefault&&e.preventDefault(),!1)},f=function(){setTimeout(function(){void 0!==c&&(document.body.style.paddingRight=c,c=void 0),void 0!==l&&(document.body.style.overflow=l,l=void 0)})};t.disableBodyScroll=function(t,o){if(i){if(!t)return void console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");if(t&&!r.some(function(e){return e.targetElement===t})){var f={targetElement:t,options:o||{}};r=[].concat(e(r),[f]),t.ontouchstart=function(t){1===t.targetTouches.length&&(a=t.targetTouches[0].clientY)},t.ontouchmove=function(e){var n,o,i,r;1===e.targetTouches.length&&(o=t,r=(n=e).targetTouches[0].clientY-a,!u(n.target)&&(o&&0===o.scrollTop&&0<r?h(n):(i=o)&&i.scrollHeight-i.scrollTop<=i.clientHeight&&r<0?h(n):n.stopPropagation()))},s||(document.addEventListener("touchmove",h,n?{passive:!1}:void 0),s=!0)}}else{d=o,setTimeout(function(){if(void 0===c){var t=!!d&&!0===d.reserveScrollBarGap,e=window.innerWidth-document.documentElement.clientWidth;t&&0<e&&(c=document.body.style.paddingRight,document.body.style.paddingRight=e+"px")}void 0===l&&(l=document.body.style.overflow,document.body.style.overflow="hidden")});var p={targetElement:t,options:o||{}};r=[].concat(e(r),[p])}var d},t.clearAllBodyScrollLocks=function(){i?(r.forEach(function(t){t.targetElement.ontouchstart=null,t.targetElement.ontouchmove=null}),s&&(document.removeEventListener("touchmove",h,n?{passive:!1}:void 0),s=!1),r=[],a=-1):(f(),r=[])},t.enableBodyScroll=function(t){if(i){if(!t)return void console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");t.ontouchstart=null,t.ontouchmove=null,r=r.filter(function(e){return e.targetElement!==t}),s&&0===r.length&&(document.removeEventListener("touchmove",h,n?{passive:!1}:void 0),s=!1)}else 1===r.length&&r[0].targetElement===t?(f(),r=[]):r=r.filter(function(e){return e.targetElement!==t})}}),function(t,e,n,o){"use strict";function i(t,e,n){return setTimeout(c(t,n),e)}function r(t,e,n){return!!Array.isArray(t)&&(s(t,n[e],n),!0)}function s(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==o)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function a(e,n,o){var i="DEPRECATED METHOD: "+n+"\n"+o+" AT \n";return function(){var n=new Error("get-stack-trace"),o=n&&n.stack?n.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",r=t.console&&(t.console.warn||t.console.log);return r&&r.call(t.console,i,o),e.apply(this,arguments)}}function l(t,e,n){var o,i=e.prototype;(o=t.prototype=Object.create(i)).constructor=t,o._super=i,n&&Z(o,n)}function c(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return _typeof(t)==nt?t.apply(e&&e[0]||o,e):t}function h(t,e){return t===o?e:t}function f(t,e,n){s(m(e),function(e){t.addEventListener(e,n,!1)})}function p(t,e,n){s(m(e),function(e){t.removeEventListener(e,n,!1)})}function d(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function v(t,e){return t.indexOf(e)>-1}function m(t){return t.trim().split(/\s+/g)}function y(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var o=0;o<t.length;){if(n&&t[o][n]==e||!n&&t[o]===e)return o;o++}return-1}function g(t){return Array.prototype.slice.call(t,0)}function w(t,e,n){for(var o=[],i=[],r=0;r<t.length;){var s=e?t[r][e]:t[r];y(i,s)<0&&o.push(t[r]),i[r]=s,r++}return n&&(o=e?o.sort(function(t,n){return t[e]>n[e]}):o.sort()),o}function b(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),s=0;s<tt.length;){if((i=(n=tt[s])?n+r:e)in t)return i;s++}return o}function T(e){var n=e.ownerDocument||e;return n.defaultView||n.parentWindow||t}function E(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){u(t.options.enable,[t])&&n.handler(e)},this.init()}function x(t,e,n){var o=n.pointers.length,i=n.changedPointers.length,r=e&vt&&o-i==0,s=e&(yt|gt)&&o-i==0;n.isFirst=!!r,n.isFinal=!!s,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,o=e.pointers,i=o.length;n.firstInput||(n.firstInput=_(e)),i>1&&!n.firstMultiple?n.firstMultiple=_(e):1===i&&(n.firstMultiple=!1);var r=n.firstInput,s=n.firstMultiple,a=s?s.center:r.center,l=e.center=j(o);e.timeStamp=rt(),e.deltaTime=e.timeStamp-r.timeStamp,e.angle=R(a,l),e.distance=C(a,l),function(t,e){var n=e.center,o=t.offsetDelta||{},i=t.prevDelta||{},r=t.prevInput||{};e.eventType!==vt&&r.eventType!==yt||(i=t.prevDelta={x:r.deltaX||0,y:r.deltaY||0},o=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=i.x+(n.x-o.x),e.deltaY=i.y+(n.y-o.y)}(n,e),e.offsetDirection=P(e.deltaX,e.deltaY);var c=A(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=c.x,e.overallVelocityY=c.y,e.overallVelocity=it(c.x)>it(c.y)?c.x:c.y,e.scale=s?function(t,e){return C(e[0],e[1],Pt)/C(t[0],t[1],Pt)}(s.pointers,o):1,e.rotation=s?function(t,e){return R(e[1],e[0],Pt)+R(t[1],t[0],Pt)}(s.pointers,o):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,S(n,e);var u=t.element;d(e.srcEvent.target,u)&&(u=e.srcEvent.target),e.target=u}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function S(t,e){var n,i,r,s,a=t.lastInterval||e,l=e.timeStamp-a.timeStamp;if(e.eventType!=gt&&(l>dt||a.velocity===o)){var c=e.deltaX-a.deltaX,u=e.deltaY-a.deltaY,h=A(l,c,u);i=h.x,r=h.y,n=it(h.x)>it(h.y)?h.x:h.y,s=P(c,u),t.lastInterval=e}else n=a.velocity,i=a.velocityX,r=a.velocityY,s=a.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=s}function _(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:ot(t.pointers[n].clientX),clientY:ot(t.pointers[n].clientY)},n++;return{timeStamp:rt(),pointers:e,center:j(e),deltaX:t.deltaX,deltaY:t.deltaY}}function j(t){var e=t.length;if(1===e)return{x:ot(t[0].clientX),y:ot(t[0].clientY)};for(var n=0,o=0,i=0;e>i;)n+=t[i].clientX,o+=t[i].clientY,i++;return{x:ot(n/e),y:ot(o/e)}}function A(t,e,n){return{x:e/t||0,y:n/t||0}}function P(t,e){return t===e?wt:it(t)>=it(e)?0>t?bt:Tt:0>e?Et:xt}function C(t,e,n){n||(n=At);var o=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(o*o+i*i)}function R(t,e,n){n||(n=At);var o=e[n[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,o)/Math.PI}function O(){this.evEl=Rt,this.evWin=Ot,this.pressed=!1,E.apply(this,arguments)}function I(){this.evEl=qt,this.evWin=Mt,E.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function N(){this.evTarget=kt,this.evWin=Ht,this.started=!1,E.apply(this,arguments)}function q(){this.evTarget=Ft,this.targetIds={},E.apply(this,arguments)}function M(){E.apply(this,arguments);var t=c(this.handler,this);this.touch=new q(this.manager,t),this.mouse=new O(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function L(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var o=this.lastTouches;setTimeout(function(){var t=o.indexOf(n);t>-1&&o.splice(t,1)},Xt)}}function k(t,e){this.manager=t,this.set(e)}function H(t){this.options=Z({},this.defaults,t||{}),this.id=lt++,this.manager=null,this.options.enable=h(this.options.enable,!0),this.state=$t,this.simultaneous={},this.requireFail=[]}function D(t){return t&oe?"cancel":t&ee?"end":t&te?"move":t&Zt?"start":""}function F(t){return t==xt?"down":t==Et?"up":t==bt?"left":t==Tt?"right":""}function X(t,e){var n=e.manager;return n?n.get(t):t}function U(){H.apply(this,arguments)}function z(){U.apply(this,arguments),this.pX=null,this.pY=null}function W(){U.apply(this,arguments)}function Y(){H.apply(this,arguments),this._timer=null,this._input=null}function B(){U.apply(this,arguments)}function V(){U.apply(this,arguments)}function G(){H.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Q(t,e){return(e=e||{}).recognizers=h(e.recognizers,Q.defaults.preset),new J(t,e)}function J(t,e){this.options=Z({},Q.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=function(t){var e=t.options.inputClass;return new(e||(ut?I:ht?q:ct?M:O))(t,x)}(this),this.touchAction=new k(this,this.options.touchAction),K(this,!0),s(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function K(t,e){var n,o=t.element;o.style&&(s(t.options.cssProps,function(i,r){n=b(o.style,r),e?(t.oldCssProps[n]=o.style[n],o.style[n]=i):o.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function $(t,n){var o=e.createEvent("Event");o.initEvent(t,!0,!0),o.gesture=n,n.target.dispatchEvent(o)}var Z,tt=["","webkit","Moz","MS","ms","o"],et=e.createElement("div"),nt="function",ot=Math.round,it=Math.abs,rt=Date.now;Z="function"!=typeof Object.assign?function(t){if(t===o||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(i!==o&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var st=a(function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===o)&&(t[i[r]]=e[i[r]]),r++;return t},"extend","Use `assign`."),at=a(function(t,e){return st(t,e,!0)},"merge","Use `assign`."),lt=1,ct="ontouchstart"in t,ut=b(t,"PointerEvent")!==o,ht=ct&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ft="touch",pt="mouse",dt=25,vt=1,mt=2,yt=4,gt=8,wt=1,bt=2,Tt=4,Et=8,xt=16,St=bt|Tt,_t=Et|xt,jt=St|_t,At=["x","y"],Pt=["clientX","clientY"];E.prototype={handler:function(){},init:function(){this.evEl&&f(this.element,this.evEl,this.domHandler),this.evTarget&&f(this.target,this.evTarget,this.domHandler),this.evWin&&f(T(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&p(this.element,this.evEl,this.domHandler),this.evTarget&&p(this.target,this.evTarget,this.domHandler),this.evWin&&p(T(this.element),this.evWin,this.domHandler)}};var Ct={mousedown:vt,mousemove:mt,mouseup:yt},Rt="mousedown",Ot="mousemove mouseup";l(O,E,{handler:function(t){var e=Ct[t.type];e&vt&&0===t.button&&(this.pressed=!0),e&mt&&1!==t.which&&(e=yt),this.pressed&&(e&yt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:pt,srcEvent:t}))}});var It={pointerdown:vt,pointermove:mt,pointerup:yt,pointercancel:gt,pointerout:gt},Nt={2:ft,3:"pen",4:pt,5:"kinect"},qt="pointerdown",Mt="pointermove pointerup pointercancel";t.MSPointerEvent&&!t.PointerEvent&&(qt="MSPointerDown",Mt="MSPointerMove MSPointerUp MSPointerCancel"),l(I,E,{handler:function(t){var e=this.store,n=!1,o=t.type.toLowerCase().replace("ms",""),i=It[o],r=Nt[t.pointerType]||t.pointerType,s=r==ft,a=y(e,t.pointerId,"pointerId");i&vt&&(0===t.button||s)?0>a&&(e.push(t),a=e.length-1):i&(yt|gt)&&(n=!0),0>a||(e[a]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(a,1))}});var Lt={touchstart:vt,touchmove:mt,touchend:yt,touchcancel:gt},kt="touchstart",Ht="touchstart touchmove touchend touchcancel";l(N,E,{handler:function(t){var e=Lt[t.type];if(e===vt&&(this.started=!0),this.started){var n=function(t,e){var n=g(t.touches),o=g(t.changedTouches);return e&(yt|gt)&&(n=w(n.concat(o),"identifier",!0)),[n,o]}.call(this,t,e);e&(yt|gt)&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ft,srcEvent:t})}}});var Dt={touchstart:vt,touchmove:mt,touchend:yt,touchcancel:gt},Ft="touchstart touchmove touchend touchcancel";l(q,E,{handler:function(t){var e=Dt[t.type],n=function(t,e){var n=g(t.touches),o=this.targetIds;if(e&(vt|mt)&&1===n.length)return o[n[0].identifier]=!0,[n,n];var i,r,s=g(t.changedTouches),a=[],l=this.target;if(r=n.filter(function(t){return d(t.target,l)}),e===vt)for(i=0;i<r.length;)o[r[i].identifier]=!0,i++;for(i=0;i<s.length;)o[s[i].identifier]&&a.push(s[i]),e&(yt|gt)&&delete o[s[i].identifier],i++;return a.length?[w(r.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ft,srcEvent:t})}});var Xt=2500,Ut=25;l(M,E,{handler:function(t,e,n){var o=n.pointerType==ft,i=n.pointerType==pt;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)(function(t,e){t&vt?(this.primaryTouch=e.changedPointers[0].identifier,L.call(this,e)):t&(yt|gt)&&L.call(this,e)}).call(this,e,n);else if(i&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var i=this.lastTouches[o],r=Math.abs(e-i.x),s=Math.abs(n-i.y);if(Ut>=r&&Ut>=s)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var zt=b(et.style,"touchAction"),Wt=zt!==o,Yt="compute",Bt="auto",Vt="manipulation",Gt="none",Qt="pan-x",Jt="pan-y",Kt=function(){if(!Wt)return!1;var e={},n=t.CSS&&t.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(o){e[o]=!n||t.CSS.supports("touch-action",o)}),e}();k.prototype={set:function(t){t==Yt&&(t=this.compute()),Wt&&this.manager.element.style&&Kt[t]&&(this.manager.element.style[zt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return s(this.manager.recognizers,function(e){u(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),function(t){if(v(t,Gt))return Gt;var e=v(t,Qt),n=v(t,Jt);return e&&n?Gt:e||n?e?Qt:Jt:v(t,Vt)?Vt:Bt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var o=this.actions,i=v(o,Gt)&&!Kt[Gt],r=v(o,Jt)&&!Kt[Jt],s=v(o,Qt)&&!Kt[Qt];if(i){var a=1===t.pointers.length,l=t.distance<2,c=t.deltaTime<250;if(a&&l&&c)return}return s&&r?void 0:i||r&&n&St||s&&n&_t?this.preventSrc(e):void 0}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var $t=1,Zt=2,te=4,ee=8,ne=ee,oe=16;H.prototype={defaults:{},set:function(t){return Z(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(r(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=X(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return r(t,"dropRecognizeWith",this)?this:(t=X(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(r(t,"requireFailure",this))return this;var e=this.requireFail;return-1===y(e,t=X(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(r(t,"dropRequireFailure",this))return this;t=X(t,this);var e=y(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(t){function e(e){n.manager.emit(e,t)}var n=this,o=this.state;ee>o&&e(n.options.event+D(o)),e(n.options.event),t.additionalEvent&&e(t.additionalEvent),o>=ee&&e(n.options.event+D(o))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|$t)))return!1;t++}return!0},recognize:function(t){var e=Z({},t);return u(this.options.enable,[this,e])?(this.state&(ne|oe|32)&&(this.state=$t),this.state=this.process(e),void(this.state&(Zt|te|ee|oe)&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},l(U,H,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,o=e&(Zt|te),i=this.attrTest(t);return o&&(n&gt||!i)?e|oe:o||i?n&yt?e|ee:e&Zt?e|te:Zt:32}}),l(z,U,{defaults:{event:"pan",threshold:10,pointers:1,direction:jt},getTouchAction:function(){var t=this.options.direction,e=[];return t&St&&e.push(Jt),t&_t&&e.push(Qt),e},directionTest:function(t){var e=this.options,n=!0,o=t.distance,i=t.direction,r=t.deltaX,s=t.deltaY;return i&e.direction||(e.direction&St?(i=0===r?wt:0>r?bt:Tt,n=r!=this.pX,o=Math.abs(t.deltaX)):(i=0===s?wt:0>s?Et:xt,n=s!=this.pY,o=Math.abs(t.deltaY))),t.direction=i,n&&o>e.threshold&&i&e.direction},attrTest:function(t){return U.prototype.attrTest.call(this,t)&&(this.state&Zt||!(this.state&Zt)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=F(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),l(W,U,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&Zt)},emit:function(t){if(1!==t.scale){var e=t.scale<1?"in":"out";t.additionalEvent=this.options.event+e}this._super.emit.call(this,t)}}),l(Y,H,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!o||!n||t.eventType&(yt|gt)&&!r)this.reset();else if(t.eventType&vt)this.reset(),this._timer=i(function(){this.state=ne,this.tryEmit()},e.time,this);else if(t.eventType&yt)return ne;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ne&&(t&&t.eventType&yt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=rt(),this.manager.emit(this.options.event,this._input)))}}),l(B,U,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Gt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&Zt)}}),l(V,U,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:St|_t,pointers:1},getTouchAction:function(){return z.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(St|_t)?e=t.overallVelocity:n&St?e=t.overallVelocityX:n&_t&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&it(e)>this.options.velocity&&t.eventType&yt},emit:function(t){var e=F(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),l(G,H,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Vt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),t.eventType&vt&&0===this.count)return this.failTimeout();if(o&&r&&n){if(t.eventType!=yt)return this.failTimeout();var s=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||C(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&s?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=i(function(){this.state=ne,this.tryEmit()},e.interval,this),Zt):ne}return 32},failTimeout:function(){return this._timer=i(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==ne&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Q.VERSION="2.0.8",Q.defaults={domEvents:!1,touchAction:Yt,enable:!0,inputTarget:null,inputClass:null,preset:[[B,{enable:!1}],[W,{enable:!1},["rotate"]],[V,{direction:St}],[z,{direction:St},["swipe"]],[G],[G,{event:"doubletap",taps:2},["tap"]],[Y]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};J.prototype={set:function(t){return Z(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,o=this.recognizers,i=e.curRecognizer;(!i||i&&i.state&ne)&&(i=e.curRecognizer=null);for(var r=0;r<o.length;)n=o[r],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&n.state&(Zt|te|ee)&&(i=e.curRecognizer=n),r++}},get:function(t){if(t instanceof H)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(r(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},remove:function(t){if(r(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=y(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==o&&e!==o){var n=this.handlers;return s(m(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==o){var n=this.handlers;return s(m(t),function(t){e?n[t]&&n[t].splice(y(n[t],e),1):delete n[t]}),this}},emit:function(t,e){this.options.domEvents&&$(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var o=0;o<n.length;)n[o](e),o++}},destroy:function(){this.element&&K(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},Z(Q,{INPUT_START:vt,INPUT_MOVE:mt,INPUT_END:yt,INPUT_CANCEL:gt,STATE_POSSIBLE:$t,STATE_BEGAN:Zt,STATE_CHANGED:te,STATE_ENDED:ee,STATE_RECOGNIZED:ne,STATE_CANCELLED:oe,STATE_FAILED:32,DIRECTION_NONE:wt,DIRECTION_LEFT:bt,DIRECTION_RIGHT:Tt,DIRECTION_UP:Et,DIRECTION_DOWN:xt,DIRECTION_HORIZONTAL:St,DIRECTION_VERTICAL:_t,DIRECTION_ALL:jt,Manager:J,Input:E,TouchAction:k,TouchInput:q,MouseInput:O,PointerEventInput:I,TouchMouseInput:M,SingleTouchInput:N,Recognizer:H,AttrRecognizer:U,Tap:G,Pan:z,Swipe:V,Pinch:W,Rotate:B,Press:Y,on:f,off:p,each:s,merge:at,extend:st,assign:Z,inherit:l,bindFn:c,prefixed:b}),(void 0!==t?t:"undefined"!=typeof self?self:{}).Hammer=Q,"function"==typeof define&&define.amd?define(function(){return Q}):"undefined"!=typeof module&&module.exports?module.exports=Q:t.Hammer=Q}(window,document),function(t){if("object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).Pjax=t()}}(function(){return function(){return function t(e,n,o){function i(s,a){if(!n[s]){if(!e[s]){var l="function"==typeof require&&require;if(!a&&l)return l(s,!0);if(r)return r(s,!0);var c=new Error("Cannot find module '"+s+"'");throw c.code="MODULE_NOT_FOUND",c}var u=n[s]={exports:{}};e[s][0].call(u.exports,function(t){return i(e[s][1][t]||t)},u,u.exports,t,e,n,o)}return n[s].exports}for(var r="function"==typeof require&&require,s=0;s<o.length;s++)i(o[s]);return i}}()({1:[function(t,e,n){var o=t("./lib/execute-scripts.js"),i=t("./lib/foreach-els.js"),r=t("./lib/parse-options.js"),s=t("./lib/switches"),a=t("./lib/uniqueid.js"),l=t("./lib/events/on.js"),c=t("./lib/events/trigger.js"),u=t("./lib/util/clone.js"),h=t("./lib/util/contains.js"),f=t("./lib/util/extend.js"),p=t("./lib/util/noop"),d=function(t){this.state={numPendingSwitches:0,href:null,options:null},this.options=r(t),this.log("Pjax options",this.options),this.options.scrollRestoration&&"scrollRestoration"in history&&(history.scrollRestoration="manual"),this.maxUid=this.lastUid=a(),this.parseDOM(document),l(window,"popstate",function(t){if(t.state){var e=u(this.options);e.url=t.state.url,e.title=t.state.title,e.history=!1,e.scrollPos=t.state.scrollPos,t.state.uid<this.lastUid?e.backward=!0:e.forward=!0,this.lastUid=t.state.uid,this.loadUrl(t.state.url,e)}}.bind(this))};if(d.switches=s,d.prototype={log:t("./lib/proto/log.js"),getElements:function(t){return t.querySelectorAll(this.options.elements)},parseDOM:function(e){var n=t("./lib/proto/parse-element");i(this.getElements(e),n,this)},refresh:function(t){this.parseDOM(t||document)},reload:function(){window.location.reload()},attachLink:t("./lib/proto/attach-link.js"),attachForm:t("./lib/proto/attach-form.js"),forEachSelectors:function(e,n,o){return t("./lib/foreach-selectors.js").bind(this)(this.options.selectors,e,n,o)},switchSelectors:function(e,n,o,i){return t("./lib/switches-selectors.js").bind(this)(this.options.switches,this.options.switchesOptions,e,n,o,i)},latestChance:function(t){window.location=t},onSwitch:function(){c(window,"resize scroll"),this.state.numPendingSwitches--,0===this.state.numPendingSwitches&&this.afterAllSwitches()},loadContent:function(t,e){var n=document.implementation.createHTMLDocument("pjax"),o=t.match(/<html[^>]+>/gi);if(o&&o.length&&(o=o[0].match(/\s?[a-z:]+(?:\=(?:\'|\")[^\'\">]+(?:\'|\"))*/gi)).length&&(o.shift(),o.forEach(function(t){var e=t.trim().split("=");1===e.length?n.documentElement.setAttribute(e[0],!0):n.documentElement.setAttribute(e[0],e[1].slice(1,-1))})),n.documentElement.innerHTML=t,this.log("load content",n.documentElement.attributes,n.documentElement.innerHTML.length),document.activeElement&&h(document,this.options.selectors,document.activeElement))try{document.activeElement.blur()}catch(t){}this.switchSelectors(this.options.selectors,n,document,e)},abortRequest:t("./lib/abort-request.js"),doRequest:t("./lib/send-request.js"),handleResponse:t("./lib/proto/handle-response.js"),loadUrl:function(t,e){e="object"===_typeof(e)?f({},this.options,e):u(this.options),this.log("load href",t,e),this.abortRequest(this.request),c(document,"pjax:send",e),this.request=this.doRequest(t,e,this.handleResponse.bind(this))},afterAllSwitches:function(){var t=Array.prototype.slice.call(document.querySelectorAll("[autofocus]")).pop();t&&document.activeElement!==t&&t.focus(),this.options.selectors.forEach(function(t){i(document.querySelectorAll(t),function(t){o(t)})});var e=this.state;if(e.options.history&&(window.history.state||(this.lastUid=this.maxUid=a(),window.history.replaceState({url:window.location.href,title:document.title,uid:this.maxUid,scrollPos:[0,0]},document.title)),this.lastUid=this.maxUid=a(),window.history.pushState({url:e.href,title:e.options.title,uid:this.maxUid,scrollPos:[0,0]},e.options.title,e.href)),this.forEachSelectors(function(t){this.parseDOM(t)},this),c(document,"pjax:complete pjax:success",e.options),"function"==typeof e.options.analytics&&e.options.analytics(),e.options.history){var n=document.createElement("a");if(n.href=this.state.href,n.hash){var r=n.hash.slice(1);r=decodeURIComponent(r);var s=0,l=document.getElementById(r)||document.getElementsByName(r)[0];if(l&&l.offsetParent)do{s+=l.offsetTop,l=l.offsetParent}while(l);window.scrollTo(0,s)}else!1!==e.options.scrollTo&&(e.options.scrollTo.length>1?window.scrollTo(e.options.scrollTo[0],e.options.scrollTo[1]):window.scrollTo(0,e.options.scrollTo))}else e.options.scrollRestoration&&e.options.scrollPos&&window.scrollTo(e.options.scrollPos[0],e.options.scrollPos[1]);this.state={numPendingSwitches:0,href:null,options:null}}},d.isSupported=t("./lib/is-supported.js"),d.isSupported())e.exports=d;else{var v=p;for(var m in d.prototype)d.prototype.hasOwnProperty(m)&&"function"==typeof d.prototype[m]&&(v[m]=p);e.exports=v}},{"./lib/abort-request.js":2,"./lib/events/on.js":4,"./lib/events/trigger.js":5,"./lib/execute-scripts.js":6,"./lib/foreach-els.js":7,"./lib/foreach-selectors.js":8,"./lib/is-supported.js":9,"./lib/parse-options.js":10,"./lib/proto/attach-form.js":11,"./lib/proto/attach-link.js":12,"./lib/proto/handle-response.js":13,"./lib/proto/log.js":14,"./lib/proto/parse-element":15,"./lib/send-request.js":16,"./lib/switches":18,"./lib/switches-selectors.js":17,"./lib/uniqueid.js":19,"./lib/util/clone.js":20,"./lib/util/contains.js":21,"./lib/util/extend.js":22,"./lib/util/noop":23}],2:[function(t,e,n){var o=t("./util/noop");e.exports=function(t){t&&t.readyState<4&&(t.onreadystatechange=o,t.abort())}},{"./util/noop":23}],3:[function(t,e,n){e.exports=function(t){var e=t.text||t.textContent||t.innerHTML||"",n=t.src||"",o=t.parentNode||document.querySelector("head")||document.documentElement,i=document.createElement("script");if(e.match("document.write"))return console&&console.log&&console.log("Script contains document.write. Can’t be executed correctly. Code skipped ",t),!1;if(i.type="text/javascript",""!==n&&(i.src=n,i.async=!1),""!==e)try{i.appendChild(document.createTextNode(e))}catch(t){i.text=e}return o.appendChild(i),(o instanceof HTMLHeadElement||o instanceof HTMLBodyElement)&&o.removeChild(i),!0}},{}],4:[function(t,e,n){var o=t("../foreach-els");e.exports=function(t,e,n,i){(e="string"==typeof e?e.split(" "):e).forEach(function(e){o(t,function(t){t.addEventListener(e,n,i)})})}},{"../foreach-els":7}],5:[function(t,e,n){var o=t("../foreach-els");e.exports=function(t,e,n){(e="string"==typeof e?e.split(" "):e).forEach(function(e){var i;(i=document.createEvent("HTMLEvents")).initEvent(e,!0,!0),i.eventName=e,n&&Object.keys(n).forEach(function(t){i[t]=n[t]}),o(t,function(t){var e=!1;t.parentNode||t===document||t===window||(e=!0,document.body.appendChild(t)),t.dispatchEvent(i),e&&t.parentNode.removeChild(t)})})}},{"../foreach-els":7}],6:[function(t,e,n){var o=t("./foreach-els"),i=t("./eval-script");e.exports=function(t){"script"===t.tagName.toLowerCase()&&i(t),o(t.querySelectorAll("script"),function(t){t.type&&"text/javascript"!==t.type.toLowerCase()||(t.parentNode&&t.parentNode.removeChild(t),i(t))})}},{"./eval-script":3,"./foreach-els":7}],7:[function(t,e,n){e.exports=function(t,e,n){return t instanceof HTMLCollection||t instanceof NodeList||t instanceof Array?Array.prototype.forEach.call(t,e,n):e.call(n,t)}},{}],8:[function(t,e,n){var o=t("./foreach-els");e.exports=function(t,e,n,i){i=i||document,t.forEach(function(t){o(i.querySelectorAll(t),e,n)})}},{"./foreach-els":7}],9:[function(t,e,n){e.exports=function(){return window.history&&window.history.pushState&&window.history.replaceState&&!navigator.userAgent.match(/((iPod|iPhone|iPad).+\bOS\s+[1-4]\D|WebApps\/.+CFNetwork)/)}},{}],10:[function(t,e,n){var o=t("./switches");function i(){window._gaq&&_gaq.push(["_trackPageview"]),window.ga&&ga("send","pageview",{page:location.pathname,title:document.title})}e.exports=function(t){return(t=t||{}).elements=t.elements||"a[href], form[action]",t.selectors=t.selectors||["title",".js-Pjax"],t.switches=t.switches||{},t.switchesOptions=t.switchesOptions||{},t.history=void 0===t.history||t.history,t.analytics="function"==typeof t.analytics||!1===t.analytics?t.analytics:i,t.scrollTo=void 0===t.scrollTo?0:t.scrollTo,t.scrollRestoration=void 0===t.scrollRestoration||t.scrollRestoration,t.cacheBust=void 0===t.cacheBust||t.cacheBust,t.debug=t.debug||!1,t.timeout=t.timeout||0,t.currentUrlFullReload=void 0!==t.currentUrlFullReload&&t.currentUrlFullReload,t.switches.head||(t.switches.head=o.switchElementsAlt),t.switches.body||(t.switches.body=o.switchElementsAlt),t}},{"./switches":18}],11:[function(t,e,n){var o=t("../events/on"),i=t("../util/clone"),r=function(t,e){if(!s(e)){var n=i(this.options);n.requestOptions={requestUrl:t.getAttribute("action")||window.location.href,requestMethod:t.getAttribute("method")||"GET"};var o=document.createElement("a");o.setAttribute("href",n.requestOptions.requestUrl);var r=function(t,e){if(t.protocol!==window.location.protocol||t.host!==window.location.host)return"external";if(t.hash&&t.href.replace(t.hash,"")===window.location.href.replace(location.hash,""))return"anchor";if(t.href===window.location.href.split("#")[0]+"#")return"anchor-empty";if(e.currentUrlFullReload&&t.href===window.location.href.split("#")[0])return"reload"}(o,n);r?t.setAttribute("data-pjax-state",r):(e.preventDefault(),"multipart/form-data"===t.enctype?n.requestOptions.formData=new FormData(t):n.requestOptions.requestParams=function(t){var e=[];for(var n in t.elements)if(!Number.isNaN(Number(n))){var o=t.elements[n],i=o.tagName.toLowerCase();if(o.name&&void 0!==o.attributes&&"button"!==i){var r=o.attributes.type;if(!r||"checkbox"!==r.value&&"radio"!==r.value||o.checked){var s=[];if("select"===i)for(var a,l=0;l<o.options.length;l++)(a=o.options[l]).selected&&!a.disabled&&s.push(a.hasAttribute("value")?a.value:a.text);else s.push(o.value);for(var c=0;c<s.length;c++)e.push({name:encodeURIComponent(o.name),value:encodeURIComponent(s[c])})}}}return e}(t),t.setAttribute("data-pjax-state","submit"),n.triggerElement=t,this.loadUrl(o.href,n))}};var s=function(t){return t.defaultPrevented||!1===t.returnValue};e.exports=function(t){var e=this;t.setAttribute("data-pjax-state",""),o(t,"submit",function(n){r.call(e,t,n)}),o(t,"keyup",function(n){13===n.keyCode&&r.call(e,t,n)}.bind(this))}},{"../events/on":4,"../util/clone":20}],12:[function(t,e,n){var o=t("../events/on"),i=t("../util/clone"),r="data-pjax-state",s=function(t,e){if(!a(e)){var n=i(this.options),o=function(t,e){if(e.which>1||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return"modifier";if(t.protocol!==window.location.protocol||t.host!==window.location.host)return"external";if(t.hash&&t.href.replace(t.hash,"")===window.location.href.replace(location.hash,""))return"anchor";if(t.href===window.location.href.split("#")[0]+"#")return"anchor-empty"}(t,e);if(o)t.setAttribute(r,o);else{if(e.preventDefault(),this.options.currentUrlFullReload&&t.href===window.location.href.split("#")[0])return t.setAttribute(r,"reload"),void this.reload();t.setAttribute(r,"load"),n.triggerElement=t,this.loadUrl(t.href,n)}}};var a=function(t){return t.defaultPrevented||!1===t.returnValue};e.exports=function(t){var e=this;t.setAttribute(r,""),o(t,"click",function(n){s.call(e,t,n)}),o(t,"keyup",function(n){13===n.keyCode&&s.call(e,t,n)}.bind(this))}},{"../events/on":4,"../util/clone":20}],13:[function(t,e,n){var o=t("../util/clone.js"),i=t("../uniqueid.js"),r=t("../events/trigger.js");e.exports=function(t,e,n,s){if((s=o(s||this.options)).request=e,!1!==t){var a=window.history.state||{};window.history.replaceState({url:a.url||window.location.href,title:a.title||document.title,uid:a.uid||i(),scrollPos:[document.documentElement.scrollLeft||document.body.scrollLeft,document.documentElement.scrollTop||document.body.scrollTop]},document.title,window.location);var l=n;e.responseURL?n!==e.responseURL&&(n=e.responseURL):e.getResponseHeader("X-PJAX-URL")?n=e.getResponseHeader("X-PJAX-URL"):e.getResponseHeader("X-XHR-Redirected-To")&&(n=e.getResponseHeader("X-XHR-Redirected-To"));var c=document.createElement("a");c.href=l;var u=c.hash;c.href=n,u&&!c.hash&&(c.hash=u,n=c.href),this.state.href=n,this.state.options=s;try{this.loadContent(t,s)}catch(t){if(r(document,"pjax:error",s),this.options.debug)throw t;return console&&console.error&&console.error("Pjax switch fail: ",t),this.latestChance(n)}}else r(document,"pjax:complete pjax:error",s)}},{"../events/trigger.js":5,"../uniqueid.js":19,"../util/clone.js":20}],14:[function(t,e,n){e.exports=function(){this.options.debug&&console&&("function"==typeof console.log?console.log.apply(console,arguments):console.log&&console.log(arguments))}},{}],15:[function(t,e,n){e.exports=function(t){switch(t.tagName.toLowerCase()){case"a":t.hasAttribute("data-pjax-state")||this.attachLink(t);break;case"form":t.hasAttribute("data-pjax-state")||this.attachForm(t);break;default:throw"Pjax can only be applied on <a> or <form> submit"}}},{}],16:[function(t,e,n){var o=t("./util/update-query-string");e.exports=function(t,e,n){var i,r=(e=e||{}).requestOptions||{},s=(r.requestMethod||"GET").toUpperCase(),a=r.requestParams||null,l=r.formData||null,c=null,u=new XMLHttpRequest,h=e.timeout||0;if(u.onreadystatechange=function(){4===u.readyState&&(200===u.status?n(u.responseText,u,t,e):0!==u.status&&n(null,u,t,e))},u.onerror=function(o){console.log(o),n(null,u,t,e)},u.ontimeout=function(){n(null,u,t,e)},a&&a.length)switch(i=a.map(function(t){return t.name+"="+t.value}).join("&"),s){case"GET":t=t.split("?")[0],t+="?"+i;break;case"POST":c=i}else l&&(c=l);return e.cacheBust&&(t=o(t,"t",Date.now())),u.open(s,t,!0),u.timeout=h,u.setRequestHeader("X-Requested-With","XMLHttpRequest"),u.setRequestHeader("X-PJAX","true"),u.setRequestHeader("X-PJAX-Selectors",JSON.stringify(e.selectors)),c&&"POST"===s&&!l&&u.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),u.send(c),u}},{"./util/update-query-string":24}],17:[function(t,e,n){var o=t("./foreach-els"),i=t("./switches");e.exports=function(t,e,n,r,s,a){var l=[];n.forEach(function(n){var c=r.querySelectorAll(n),u=s.querySelectorAll(n);if(this.log&&this.log("Pjax switch",n,c,u),c.length!==u.length)throw"DOM doesn’t look the same on new loaded page: ’"+n+"’ - new "+c.length+", old "+u.length;o(c,function(o,r){var s=u[r];this.log&&this.log("newEl",o,"oldEl",s);var c=t[n]?t[n].bind(this,s,o,a,e[n]):i.outerHTML.bind(this,s,o,a);l.push(c)},this)},this),this.state.numPendingSwitches=l.length,l.forEach(function(t){t()})}},{"./foreach-els":7,"./switches":18}],18:[function(t,e,n){var o=t("./events/on.js");e.exports={outerHTML:function(t,e){t.outerHTML=e.outerHTML,this.onSwitch()},innerHTML:function(t,e){t.innerHTML=e.innerHTML,""===e.className?t.removeAttribute("class"):t.className=e.className,this.onSwitch()},switchElementsAlt:function(t,e){if(t.innerHTML=e.innerHTML,e.hasAttributes())for(var n=e.attributes,o=0;o<n.length;o++)t.attributes.setNamedItem(n[o].cloneNode());this.onSwitch()},replaceNode:function(t,e){t.parentNode.replaceChild(e,t),this.onSwitch()},sideBySide:function(t,e,n,i){var r=Array.prototype.forEach,s=[],a=[],l=document.createDocumentFragment(),c="animationend webkitAnimationEnd MSAnimationEnd oanimationend",u=0,h=function(t){t.target===t.currentTarget&&--u<=0&&s&&(s.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)}),a.forEach(function(t){t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")}),a=null,s=null,this.onSwitch())}.bind(this);i=i||{},r.call(t.childNodes,function(t){s.push(t),t.classList&&!t.classList.contains("js-Pjax-remove")&&(t.hasAttribute("data-pjax-classes")&&(t.className=t.className.replace(t.getAttribute("data-pjax-classes"),""),t.removeAttribute("data-pjax-classes")),t.classList.add("js-Pjax-remove"),i.callbacks&&i.callbacks.removeElement&&i.callbacks.removeElement(t),i.classNames&&(t.className+=" "+i.classNames.remove+" "+(n.backward?i.classNames.backward:i.classNames.forward)),u++,o(t,c,h,!0))}),r.call(e.childNodes,function(t){if(t.classList){var e="";i.classNames&&(e=" js-Pjax-add "+i.classNames.add+" "+(n.backward?i.classNames.forward:i.classNames.backward)),i.callbacks&&i.callbacks.addElement&&i.callbacks.addElement(t),t.className+=e,t.setAttribute("data-pjax-classes",e),a.push(t),l.appendChild(t),u++,o(t,c,h,!0)}}),t.className=e.className,t.appendChild(l)}}},{"./events/on.js":4}],19:[function(t,e,n){var o;e.exports=(o=0,function(){var t="pjax"+(new Date).getTime()+"_"+o;return o++,t})},{}],20:[function(t,e,n){e.exports=function(t){if(null===t||"object"!==_typeof(t))return t;var e=t.constructor();for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}},{}],21:[function(t,e,n){e.exports=function(t,e,n){for(var o=0;o<e.length;o++)for(var i=t.querySelectorAll(e[o]),r=0;r<i.length;r++)if(i[r].contains(n))return!0;return!1}},{}],22:[function(t,e,n){e.exports=function(t){if(null==t)return null;for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(null!=o)for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(e[i]=o[i])}return e}},{}],23:[function(t,e,n){e.exports=function(){}},{}],24:[function(t,e,n){e.exports=function(t,e,n){var o=new RegExp("([?&])"+e+"=.*?(&|$)","i"),i=-1!==t.indexOf("?")?"&":"?";return t.match(o)?t.replace(o,"$1"+e+"="+n+"$2"):t+i+e+"="+n}},{}]},{},[1])(1)}),Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},function(){"use strict";if("undefined"!=typeof window){var t=window.navigator.userAgent.match(/Edge\/(\d{2})\./),e=!!t&&16<=parseInt(t[1],10);if("objectFit"in document.documentElement.style==0||e){var n=function(t,e,n){var o,i,r,s,a;if((n=n.split(" ")).length<2&&(n[1]=n[0]),"x"===t)o=n[0],i=n[1],r="left",s="right",a=e.clientWidth;else{if("y"!==t)return;o=n[1],i=n[0],r="top",s="bottom",a=e.clientHeight}if(o!==r&&i!==r){if(o!==s&&i!==s)return"center"===o||"50%"===o?(e.style[r]="50%",void(e.style["margin-"+r]=a/-2+"px")):void(0<=o.indexOf("%")?(o=parseInt(o))<50?(e.style[r]=o+"%",e.style["margin-"+r]=a*(o/-100)+"px"):(o=100-o,e.style[s]=o+"%",e.style["margin-"+s]=a*(o/-100)+"px"):e.style[r]=o);e.style[s]="0"}else e.style[r]="0"},o=function(t){var e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"),o=t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position");e=e||"cover",o=o||"50% 50%";var i=t.parentNode;return function(t){var e=window.getComputedStyle(t,null),n=e.getPropertyValue("position"),o=e.getPropertyValue("overflow"),i=e.getPropertyValue("display");n&&"static"!==n||(t.style.position="relative"),"hidden"!==o&&(t.style.overflow="hidden"),i&&"inline"!==i||(t.style.display="block"),0===t.clientHeight&&(t.style.height="100%"),-1===t.className.indexOf("object-fit-polyfill")&&(t.className=t.className+" object-fit-polyfill")}(i),function(t){var e=window.getComputedStyle(t,null),n={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px",top:"auto",right:"auto",bottom:"auto",left:"auto","margin-top":"0px","margin-right":"0px","margin-bottom":"0px","margin-left":"0px"};for(var o in n)e.getPropertyValue(o)!==n[o]&&(t.style[o]=n[o])}(t),t.style.position="absolute",t.style.width="auto",t.style.height="auto","scale-down"===e&&(e=t.clientWidth<i.clientWidth&&t.clientHeight<i.clientHeight?"none":"contain"),"none"===e?(n("x",t,o),void n("y",t,o)):"fill"===e?(t.style.width="100%",t.style.height="100%",n("x",t,o),void n("y",t,o)):(t.style.height="100%",void("cover"===e&&t.clientWidth>i.clientWidth||"contain"===e&&t.clientWidth<i.clientWidth?(t.style.top="0",t.style.marginTop="0",n("x",t,o)):(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",n("y",t,o))))},i=function(t){if(void 0===t||t instanceof Event)t=document.querySelectorAll("[data-object-fit]");else if(t&&t.nodeName)t=[t];else{if("object"!=_typeof(t)||!t.length||!t[0].nodeName)return!1;t=t}for(var n=0;n<t.length;n++)if(t[n].nodeName){var i=t[n].nodeName.toLowerCase();"img"!==i||e?"video"===i?0<t[n].readyState?o(t[n]):t[n].addEventListener("loadedmetadata",function(){o(this)}):o(t[n]):t[n].complete?o(t[n]):t[n].addEventListener("load",function(){o(this)})}return!0};document.addEventListener("DOMContentLoaded",i),window.addEventListener("resize",i),window.objectFitPolyfill=i}else window.objectFitPolyfill=function(){return!1}}}(),function(t,e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?e():"function"==typeof define&&define.amd?define(e):e()}(0,function(){"use strict";function t(t){var e=this.constructor;return this.then(function(n){return e.resolve(t()).then(function(){return n})},function(n){return e.resolve(t()).then(function(){return e.reject(n)})})}var e=setTimeout;function n(){}function o(t){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(t,this)}function i(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,o._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var o;try{o=n(t._value)}catch(t){return void s(e.promise,t)}r(e.promise,o)}else(1===t._state?r:s)(e.promise,t._value)})):t._deferreds.push(e)}function r(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"===_typeof(e)||"function"==typeof e)){var n=e.then;if(e instanceof o)return t._state=3,t._value=e,void a(t);if("function"==typeof n)return void c((i=n,r=e,function(){i.apply(r,arguments)}),t)}t._state=1,t._value=e,a(t)}catch(e){s(t,e)}var i,r}function s(t,e){t._state=2,t._value=e,a(t)}function a(t){2===t._state&&0===t._deferreds.length&&o._immediateFn(function(){t._handled||o._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)i(t,t._deferreds[e]);t._deferreds=null}function l(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function c(t,e){var n=!1;try{t(function(t){n||(n=!0,r(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}o.prototype.catch=function(t){return this.then(null,t)},o.prototype.then=function(t,e){var o=new this.constructor(n);return i(this,new l(t,e,o)),o},o.prototype.finally=t,o.all=function(t){return new o(function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var o=Array.prototype.slice.call(t);if(0===o.length)return e([]);var i=o.length;function r(t,s){try{if(s&&("object"===_typeof(s)||"function"==typeof s)){var a=s.then;if("function"==typeof a)return void a.call(s,function(e){r(t,e)},n)}o[t]=s,0==--i&&e(o)}catch(t){n(t)}}for(var s=0;s<o.length;s++)r(s,o[s])})},o.resolve=function(t){return t&&"object"===_typeof(t)&&t.constructor===o?t:new o(function(e){e(t)})},o.reject=function(t){return new o(function(e,n){n(t)})},o.race=function(t){return new o(function(e,n){for(var o=0,i=t.length;o<i;o++)t[o].then(e,n)})},o._immediateFn="function"==typeof setImmediate&&function(t){setImmediate(t)}||function(t){e(t,0)},o._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)};var u=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}();"Promise"in u?u.Promise.prototype.finally||(u.Promise.prototype.finally=t):u.Promise=o}),function(t,e){"use strict";"object"==("undefined"==typeof module?"undefined":_typeof(module))&&"object"==_typeof(module.exports)?module.exports=e(t):e(t)}("undefined"!=typeof window?window:global,function(t){"use strict";var e=Object.defineProperty,n=Object.defineProperties,o=0,i=[],r=Array.prototype.slice,s="object"==_typeof(t.ES6)?t.ES6:t.ES6={},a=Array.isArray,l=Object.prototype.toString,c=Array.prototype.push,u=function(){},h=function(t){return t},f=function(t){return"function"==typeof t},p=function(){},d=function(t,e){this._array=t,this._flag=e,this._nextIndex=0},v=function(t,e){this._string=t,this._flag=e,this._nextIndex=0},m=function(t){return null!==t&&("object"==_typeof(t)||"function"==typeof t)},y=function(t,e){if("number"==typeof t.length&&t.length>=0&&"number"==typeof e.length&&e.length>=0){var n=Math.floor(t.length),o=Math.floor(e.length),i=0;for(t.length=n+o;i<o;++i)e.hasOwnProperty(i)&&(t[n+i]=e[i])}},g=function(t,e){if("function"!=typeof t||"function"!=typeof e)throw new TypeError("Child and Parent must be function type");t.prototype=Object.create(e.prototype),t.prototype.constructor=t},w=function t(e){if(e=void 0===e?"":String(e),this instanceof t)throw new TypeError("Symbol is not a constructor");return function(t,e){return n(t,{_description:{value:e},_isSymbol:{value:!0},_id:{value:o++}}),t}(Object.create(t.prototype),e)};n(w,{for:{value:function(t){t=String(t);for(var e,n=i.length,o=0;o<n;++o)if((e=i[o]).key===t)return e.symbol;return e={key:t,symbol:w(t)},i.push(e),e.symbol},writable:!0,configurable:!0},keyFor:{value:function(t){if(!s.isSymbol(t))throw new TypeError(String(t)+" is not a symbol");for(var e,n=i.length,o=0;o<n;++o)if((e=i[o]).symbol===t)return e.key},writable:!0,configurable:!0},hasInstance:{value:w("Symbol.hasInstance")},isConcatSpreadable:{value:w("Symbol.isConcatSpreadable")},iterator:{value:w("Symbol.iterator")},toStringTag:{value:w("Symbol.toStringTag")}}),w.prototype.toString=function(){return"@@_____"+this._id+"_____"},w.prototype.valueOf=function(){return this},e(p.prototype,w.iterator.toString(),{value:function(){return this},writable:!0,configurable:!0}),g(d,p),g(v,p),e(d.prototype,w.toStringTag.toString(),{value:"Array Iterator",configurable:!0}),e(v.prototype,w.toStringTag.toString(),{value:"String Iterator",configurable:!0}),d.prototype.next=function(){if(!(this instanceof d))throw new TypeError("Method Array Iterator.prototype.next called on incompatible receiver "+String(this));var t;return-1===this._nextIndex?{done:!0,value:void 0}:"number"==typeof this._array.length&&this._array.length>=0&&this._nextIndex<Math.floor(this._array.length)?(1===this._flag?t=[this._nextIndex,this._array[this._nextIndex]]:2===this._flag?t=this._array[this._nextIndex]:3===this._flag&&(t=this._nextIndex),this._nextIndex++,{done:!1,value:t}):(this._nextIndex=-1,{done:!0,value:void 0})},v.prototype.next=function(){if(!(this instanceof v))throw new TypeError("Method String Iterator.prototype.next called on incompatible receiver "+String(this));var t,e=new String(this._string);return-1===this._nextIndex?{done:!0,value:void 0}:this._nextIndex<e.length?(t=e[this._nextIndex],this._nextIndex++,{done:!1,value:t}):(this._nextIndex=-1,{done:!0,value:void 0})};var b=function(t,e){this._target=t,this._values=[],this._thisArg=e};return b.prototype.spread=function(){var t=this;return r.call(arguments).forEach(function(e){s.forOf(e,function(e){t._values.push(e)})}),t},b.prototype.add=function(){var t=this;return r.call(arguments).forEach(function(e){t._values.push(e)}),t},b.prototype.call=function(t){if("function"!=typeof this._target)throw new TypeError("Target is not a function");return t=arguments.length<=0?this._thisArg:t,this._target.apply(t,this._values)},b.prototype.new=function(){if("function"!=typeof this._target)throw new TypeError("Target is not a constructor");var t,e;return t=Object.create(this._target.prototype),e=this._target.apply(t,this._values),m(e)?e:t},b.prototype.array=function(){if(!a(this._target))throw new TypeError("Target is not a array");return c.apply(this._target,this._values),this._target},n(s,{isSymbol:{value:function(t){return t instanceof w&&function(t){return!0===t._isSymbol&&"number"==typeof t._id&&"string"==typeof t._description}(t)},writable:!0,configurable:!0},instanceOf:{value:function(t,e){if(!m(e))throw new TypeError("Right-hand side of 'instanceof' is not an object");var n=e[w.hasInstance];if(void 0===n)return t instanceof e;if("function"!=typeof n)throw new TypeError(_typeof(n)+" is not a function");return n.call(e,t)},writable:!0,configurable:!0},forOf:{value:function(t,e,n){if(e="function"!=typeof e?u:e,"function"!=typeof t[w.iterator])throw new TypeError("Iterable[Symbol.iterator] is not a function");var o,i=t[w.iterator]();if("function"!=typeof i.next)throw new TypeError(".iterator.next is not a function");for(;;){if(o=i.next(),!m(o))throw new TypeError("Iterator result "+o+" is not an object");if(o.done)break;e.call(n,o.value)}},writable:!0,configurable:!0},spreadOperator:{value:function(t,e){if("function"!=typeof t&&!a(t))throw new TypeError("Spread operator only supports on array and function objects at this moment");return new b(t,e)},writable:!0,configurable:!0}}),e(t,"Symbol",{value:w,writable:!0,configurable:!0}),e(Function.prototype,w.hasInstance.toString(),{value:function(t){return"function"==typeof this&&t instanceof this}}),e(Array.prototype,"concat",{value:function(){if(null==this)throw new TypeError("Array.prototype.concat called on null or undefined");var t=Object(this),e=r.call(arguments),n=[];return e.unshift(t),e.forEach(function(t){m(t)?void 0!==t[w.isConcatSpreadable]?t[w.isConcatSpreadable]?y(n,t):n.push(t):a(t)?y(n,t):n.push(t):n.push(t)}),n},writable:!0,configurable:!0}),e(Object.prototype,"toString",{value:function(){return null==this?l.call(this):"string"==typeof this[w.toStringTag]?"[object "+this[w.toStringTag]+"]":l.call(this)},writable:!0,configurable:!0}),e(Array.prototype,w.iterator.toString(),{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new d(t,2)},writable:!0,configurable:!0}),e(Array,"from",{value:function(t,e,n){var o,i,r,a=0;if(o=f(this)?this:Array,null==t)throw new TypeError("Cannot convert undefined or null to object");if(t=Object(t),void 0===e)e=h;else if(!f(e))throw new TypeError(e+" is not a function");if(void 0===t[w.iterator]){if(!("number"==typeof t.length&&t.length>=0))return(r=new o(0)).length=0,r;for(i=Math.floor(t.length),(r=new o(i)).length=i;a<i;++a)r[a]=e.call(n,t[a])}else(r=new o).length=0,s.forOf(t,function(t){r.length++,r[r.length-1]=e.call(n,t)});return r},writable:!0,configurable:!0}),e(Array.prototype,"entries",{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new d(t,1)},writable:!0,configurable:!0}),e(Array.prototype,"keys",{value:function(){if(null==this)throw new TypeError("Cannot convert undefined or null to object");var t=Object(this);return new d(t,3)},writable:!0,configurable:!0}),e(String.prototype,w.iterator.toString(),{value:function(){if(null==this)throw new TypeError("String.prototype[Symbol.iterator] called on null or undefined");return new v(String(this),0)},writable:!0,configurable:!0}),s});var isset=function(t){return null!=t},EasingFunctions={linear:function(t){return t},easeInQuad:function(t){return t*t},easeOutQuad:function(t){return t*(2-t)},easeInOutQuad:function(t){return t<.5?2*t*t:(4-2*t)*t-1},easeInCubic:function(t){return t*t*t},easeOutCubic:function(t){return--t*t*t+1},easeInOutCubic:function(t){return t<.5?4*t*t*t:(t-1)*(2*t-2)*(2*t-2)+1},easeInQuart:function(t){return t*t*t*t},easeOutQuart:function(t){return 1- --t*t*t*t},easeInOutQuart:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t},easeInQuint:function(t){return t*t*t*t*t},easeOutQuint:function(t){return 1+--t*t*t*t*t},easeInOutQuint:function(t){return t<.5?16*t*t*t*t*t:1+16*--t*t*t*t*t}},getScript=function(t,e){var n=document.createElement("script");n.async=1;var o=document.getElementsByTagName("script"),i=o[o.length-1];n.onload=n.onreadystatechange=function(t,o){(o||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,n=void 0,o||e&&e())},n.src=t,i.parentNode.insertBefore(n,i)},debounce=function(t,e,n){var o;return function(){var i=this,r=arguments,s=n&&!o;clearTimeout(o),o=setTimeout(function(){o=null,n||t.apply(i,r)},e),s&&t.apply(i,r)}},Cookie={set:function(t,e,n){var o,i,r,s,a;n?((r=new Date).setTime(r.getTime()+24*n*60*60*1e3),s="; expires="+r.toGMTString()):s="",1===(a=location.host).split(".").length?document.cookie=t+"="+e+s+"; path=/":((i=a.split(".")).shift(),o="."+i.join("."),document.cookie=t+"="+e+s+"; path=/; domain="+o,null!=Cookie.get(t)&&Cookie.get(t)==e||(o="."+a,document.cookie=t+"="+e+s+"; path=/; domain="+o))},get:function(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null},erase:function(t){Cookie.set(t,"",-1)}},number_format=function(t,e,n,o){t=(t+"").replace(/[^0-9+\-Ee.]/g,"");var i=isFinite(+t)?+t:0,r=isFinite(+e)?Math.abs(e):0,s=void 0===o?",":o,a=void 0===n?".":n,l="";return(l=(r?function(t,e){var n=Math.pow(10,e);return""+Math.round(t*n)/n}(i,r):""+Math.round(i)).split("."))[0].length>3&&(l[0]=l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g,s)),(l[1]||"").length<r&&(l[1]=l[1]||"",l[1]+=new Array(r-l[1].length+1).join("0")),l.join(a)};Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var e=this;if(!document.documentElement.contains(this))return null;do{if(e.matches(t))return e;e=e.parentElement}while(null!==e);return null});var Ajax={get:function(t,e){var n=new XMLHttpRequest,o=document.querySelector('meta[name="csrf-token"]').content;n.open("get",t,!0),n.setRequestHeader("Content-Type","application/json"),n.setRequestHeader("X-CSRF-TOKEN",o),n.setRequestHeader("X-Requested-With","XMLHttpRequest"),n.onreadystatechange=function(){4===n.readyState&&e(n)},n.send()},post:function(t,e,n){var o=new XMLHttpRequest,i=document.querySelector('meta[name="csrf-token"]').content;o.open("post",t,!0),o.setRequestHeader("Content-Type","application/json"),o.setRequestHeader("X-CSRF-TOKEN",i),o.setRequestHeader("X-Requested-With","XMLHttpRequest"),o.onreadystatechange=function(){4===o.readyState&&n(o)},o.send(JSON.stringify(e))}},capitalizeFirstLetter=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};function snakeToCamel(t){return t.replace(/(\-\w)/g,function(t){return t[1].toUpperCase()})}function indexInParent(t){for(var e=t.parentNode.childNodes,n=0,o=0;o<e.length;o++){if(e[o]==t)return n;1==e[o].nodeType&&n++}return-1}function copyToClipboard(t){if(t="string"==typeof t?document.querySelector(t):t,navigator.userAgent.match(/ipad|ipod|iphone/i)){var e=t.contentEditable,n=t.readOnly;t.contentEditable=!0,t.readOnly=!0;var o=document.createRange();o.selectNodeContents(t);var i=window.getSelection();i.removeAllRanges(),i.addRange(o),t.setSelectionRange(0,999999),t.contentEditable=e,t.readOnly=n}else t.select();document.execCommand("copy")}