trading-chart-js
Version:
Hackable charting lib for traders
5 lines • 320 kB
JavaScript
/*! TradingVue.JS - v1.0.6 - Sat Jun 04 2022
https://github.com/bsjung/trading-chart-js
Copyright (c) 2022 bsjung Code's All Right;
Licensed under the MIT license */
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.TradingVueJs=e():t.TradingVueJs=e()}(self,(()=>(()=>{var t={591:(t,e,n)=>{var i=n(8).default;function r(){"use strict";t.exports=r=function(){return e},t.exports.__esModule=!0,t.exports.default=t.exports;var e={},n=Object.prototype,o=n.hasOwnProperty,s="function"==typeof Symbol?Symbol:{},a=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",u=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof f?e:f,o=Object.create(r.prototype),s=new I(i||[]);return o._invoke=function(t,e,n){var i="suspendedStart";return function(r,o){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===r)throw o;return S()}for(n.method=r,n.arg=o;;){var s=n.delegate;if(s){var a=b(s,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var c=p(t,e,n);if("normal"===c.type){if(i=n.done?"completed":"suspendedYield",c.arg===d)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i="completed",n.method="throw",n.arg=c.arg)}}}(t,n,s),o}function p(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d={};function f(){}function g(){}function A(){}var v={};h(v,a,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==n&&o.call(y,a)&&(v=y);var w=A.prototype=f.prototype=Object.create(v);function x(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function k(t,e){function n(r,s,a,c){var u=p(t[r],t,s);if("throw"!==u.type){var h=u.arg,l=h.value;return l&&"object"==i(l)&&o.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,c)}),(function(t){n("throw",t,a,c)})):e.resolve(l).then((function(t){h.value=t,a(h)}),(function(t){return n("throw",t,a,c)}))}c(u.arg)}var r;this._invoke=function(t,i){function o(){return new e((function(e,r){n(t,i,e,r)}))}return r=r?r.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return d;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var i=p(n,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,d;var r=i.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function B(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function E(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,i=function e(){for(;++n<t.length;)if(o.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=void 0,e.done=!0,e};return i.next=i}}return{next:S}}function S(){return{value:void 0,done:!0}}return g.prototype=A,h(w,"constructor",A),h(A,"constructor",g),g.displayName=h(A,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,A):(t.__proto__=A,h(t,u,"GeneratorFunction")),t.prototype=Object.create(w),t},e.awrap=function(t){return{__await:t}},x(k.prototype),h(k.prototype,c,(function(){return this})),e.AsyncIterator=k,e.async=function(t,n,i,r,o){void 0===o&&(o=Promise);var s=new k(l(t,n,i,r),o);return e.isGeneratorFunction(n)?s:s.next().then((function(t){return t.done?t.value:s.next()}))},x(w),h(w,u,"Generator"),h(w,a,(function(){return this})),h(w,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},e.values=E,I.prototype={constructor:I,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(B),!t)for(var e in this)"t"===e.charAt(0)&&o.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function n(n,i){return s.type="throw",s.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var i=this.tryEntries.length-1;i>=0;--i){var r=this.tryEntries[i],s=r.completion;if("root"===r.tryLoc)return n("end");if(r.tryLoc<=this.prev){var a=o.call(r,"catchLoc"),c=o.call(r,"finallyLoc");if(a&&c){if(this.prev<r.catchLoc)return n(r.catchLoc,!0);if(this.prev<r.finallyLoc)return n(r.finallyLoc)}else if(a){if(this.prev<r.catchLoc)return n(r.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return n(r.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&o.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var r=i;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var s=r?r.completion:{};return s.type=t,s.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(s)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),B(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;B(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},e}t.exports=r,t.exports.__esModule=!0,t.exports.default=t.exports},8:t=>{function e(n){return t.exports=e="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.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},757:(t,e,n)=>{var i=n(591)();t.exports=i;try{regeneratorRuntime=i}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=i:Function("r","regeneratorRuntime = r")(i)}},546:t=>{t.exports={numcmp:function(t,e){return t-e},strcmp:function(t,e){return t<e?-1:t>e?1:0}}},678:(t,e,n)=>{var i=n(500),r=n(546),o=n(101);function s(t,e){if(!i.isSortableArrayLike(t))throw new Error("Invalid data");if(!e||t.length>0&&!(e in t[0]))throw new Error("Invalid index");this.data=t,this.index=e,this.setBoundaries(),this.compare="number"==typeof this.minv?r.numcmp:r.strcmp,this.search=o.search,this.valpos={},this.cursor=null,this.nextlow=null,this.nexthigh=null}t.exports=s,s.prototype.setCompare=function(t){if("function"!=typeof t)throw new Error("Invalid argument");return this.compare=t,this},s.prototype.setSearch=function(t){if("function"!=typeof t)throw new Error("Invalid argument");return this.search=t,this},s.prototype.sort=function(){var t=this,e=this.index;return this.data.sort((function(n,i){return t.compare(n[e],i[e])})),this.setBoundaries(),this},s.prototype.setBoundaries=function(){var t=this.data,e=this.index;return this.minv=t.length&&t[0][e],this.maxv=t.length&&t[t.length-1][e],this},s.prototype.fetch=function(t){if(0===this.data.length)return this.cursor=null,this.nextlow=null,this.nexthigh=null,this;if(-1===this.compare(t,this.minv))return this.cursor=null,this.nextlow=null,this.nexthigh=0,this;if(1===this.compare(t,this.maxv))return this.cursor=null,this.nextlow=this.data.length-1,this.nexthigh=null,this;var e=this.valpos[t];if(e)return e.found?(this.cursor=e.index,this.nextlow=null,this.nexthigh=null):(this.cursor=null,this.nextlow=e.prev,this.nexthigh=e.next),this;var n=this.search.call(this,t);return this.cursor=n.index,this.nextlow=n.prev,this.nexthigh=n.next,this},s.prototype.get=function(t){t&&this.fetch(t);var e=this.cursor;return null!==e?this.data[e]:null},s.prototype.getRange=function(t,e){if(1===this.compare(t,e))return[];this.fetch(t);var n=this.cursor||this.nexthigh;this.fetch(e);var i=this.cursor||this.nextlow;return null===n||null===i?[]:this.data.slice(n,i+1)}},101:t=>{function e(t,n,i,r,o){var s=i+n>>>1,a=this.compare(t[s][this.index],r);return a?n>=i?o[r]={found:!1,index:null,prev:a<0?i:i-1,next:a<0?i+1:i}:a>0?e.call(this,t,n,s-1,r,o):e.call(this,t,s+1,i,r,o):o[r]={found:!0,index:s,prev:null,next:null}}t.exports.search=function(t){var n=this.data;return e.call(this,n,0,n.length-1,t,this.valpos)}},500:t=>{t.exports.isSortableArrayLike=function(t){return function(t){return!!(t&&"object"==typeof t&&isFinite(t.length)&&t.length>=0&&t.length===Math.floor(t.length)&&t.length<4294967296)}(t)&&function(t){return!(!t||"object"!=typeof t||"function"!=typeof t.sort)}(t)}},418:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/* Anit-boostrap tactix */\n.trading-vue *, ::after, ::before {\n box-sizing: content-box;\n}\n.trading-vue img {\n vertical-align: initial;\n}\n",""]),t.exports=e},976:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-botbar {\n position: relative !important;\n}\n",""]),t.exports=e},449:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.t-vue-lbtn-grp {\n margin-left: 0.5em;\n}\n",""]),t.exports=e},108:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-item-list {\n position: absolute;\n user-select: none;\n margin-top: -5px;\n}\n.tvjs-item-list-item {\n display: flex;\n align-items: center;\n padding-right: 20px;\n font-size: 1.15em;\n letter-spacing: 0.05em;\n}\n.tvjs-item-list-item:hover {\n background-color: #76878319;\n}\n.tvjs-item-list-item * {\n position: relative !important;\n}\n",""]),t.exports=e},988:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-legend {\n position: relative;\n z-index: 100;\n font-size: 1.25em;\n margin-left: 10px;\n pointer-events: none;\n text-align: left;\n user-select: none;\n font-weight: 300;\n}\n@media (min-resolution: 2x) {\n.trading-vue-legend {\n font-weight: 400;\n}\n}\n.trading-vue-ohlcv {\n pointer-events: none;\n margin-bottom: 0.5em;\n}\n.t-vue-lspan {\n font-variant-numeric: tabular-nums;\n font-size: 0.95em;\n color: #999999; /* TODO: move => params */\n margin-left: 0.1em;\n margin-right: 0.2em;\n}\n.t-vue-title {\n margin-right: 0.25em;\n font-size: 1.45em;\n}\n.t-vue-ind {\n margin-left: 0.2em;\n margin-bottom: 0.5em;\n font-size: 1.0em;\n margin-top: 0.3em;\n}\n.t-vue-ivalue {\n margin-left: 0.5em;\n}\n.t-vue-unknown {\n color: #999999; /* TODO: move => params */\n}\n.tvjs-appear-enter-active,\n.tvjs-appear-leave-active\n{\n transition: all .25s ease;\n}\n.tvjs-appear-enter, .tvjs-appear-leave-to\n{\n opacity: 0;\n}\n",""]),t.exports=e},423:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.t-vue-lbtn {\n z-index: 100;\n pointer-events: all;\n cursor: pointer;\n}\n",""]),t.exports=e},661:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-section {\n height: 0;\n position: absolute;\n}\n",""]),t.exports=e},168:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-spinner {\n display: inline-block;\n position: relative;\n width: 20px;\n height: 16px;\n margin: -4px 0px -1px 0px;\n opacity: 0.7;\n}\n.tvjs-spinner div {\n position: absolute;\n top: 8px;\n width: 4px;\n height: 4px;\n border-radius: 50%;\n animation-timing-function: cubic-bezier(1, 1, 1, 1);\n}\n.tvjs-spinner div:nth-child(1) {\n left: 2px;\n animation: tvjs-spinner1 0.6s infinite;\n opacity: 0.9;\n}\n.tvjs-spinner div:nth-child(2) {\n left: 2px;\n animation: tvjs-spinner2 0.6s infinite;\n}\n.tvjs-spinner div:nth-child(3) {\n left: 9px;\n animation: tvjs-spinner2 0.6s infinite;\n}\n.tvjs-spinner div:nth-child(4) {\n left: 16px;\n animation: tvjs-spinner3 0.6s infinite;\n opacity: 0.9;\n}\n@keyframes tvjs-spinner1 {\n0% {\n transform: scale(0);\n}\n100% {\n transform: scale(1);\n}\n}\n@keyframes tvjs-spinner3 {\n0% {\n transform: scale(1);\n}\n100% {\n transform: scale(0);\n}\n}\n@keyframes tvjs-spinner2 {\n0% {\n transform: translate(0, 0);\n}\n100% {\n transform: translate(7px, 0);\n}\n}\n",""]),t.exports=e},29:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-drift-enter-active {\n transition: all .3s ease;\n}\n.tvjs-drift-leave-active {\n transition: all .8s cubic-bezier(1.0, 0.5, 0.8, 1.0);\n}\n.tvjs-drift-enter, .tvjs-drift-leave-to\n{\n transform: translateX(10px);\n opacity: 0;\n}\n.tvjs-the-tip {\n position: absolute;\n width: 200px;\n text-align: center;\n z-index: 10001;\n color: #ffffff;\n font-size: 1.5em;\n line-height: 1.15em;\n padding: 10px;\n border-radius: 3px;\n right: 70px;\n top: 10px;\n text-shadow: 1px 1px black;\n}\n",""]),t.exports=e},935:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-toolbar {\n position: absolute;\n border-right: 1px solid black;\n z-index: 101;\n padding-top: 3px;\n user-select: none;\n}\n",""]),t.exports=e},379:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-tbitem {\n}\n.trading-vue-tbitem:hover {\n background-color: #76878319;\n}\n.trading-vue-tbitem-exp {\n position: absolute;\n right: -3px;\n padding: 18.5px 5px;\n font-stretch: extra-condensed;\n transform: scaleX(0.6);\n font-size: 0.6em;\n opacity: 0.0;\n user-select: none;\n line-height: 0;\n}\n.trading-vue-tbitem:hover\n.trading-vue-tbitem-exp {\n opacity: 0.5;\n}\n.trading-vue-tbitem-exp:hover {\n background-color: #76878330;\n opacity: 0.9 !important;\n}\n.trading-vue-tbicon {\n position: absolute;\n}\n.trading-vue-tbitem.selected-item > .trading-vue-tbicon,\n.tvjs-item-list-item.selected-item > .trading-vue-tbicon {\n filter: brightness(1.45) sepia(1) hue-rotate(90deg) saturate(4.5) !important;\n}\n.tvjs-pixelated {\n -ms-interpolation-mode: nearest-neighbor;\n image-rendering: -webkit-optimize-contrast;\n image-rendering: -webkit-crisp-edges;\n image-rendering: -moz-crisp-edges;\n image-rendering: -o-crisp-edges;\n image-rendering: pixelated;\n}\n\n",""]),t.exports=e},72:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.trading-vue-ux-wrapper {\n position: absolute;\n display: flex;\n}\n.tvjs-ux-wrapper-pin {\n position: absolute;\n width: 9px;\n height: 9px;\n z-index: 100;\n background-color: #23a776;\n border-radius: 10px;\n margin-left: -6px;\n margin-top: -6px;\n pointer-events: none;\n}\n.tvjs-ux-wrapper-head {\n position: absolute;\n height: 23px;\n width: 100%;\n}\n.tvjs-ux-wrapper-close {\n position: absolute;\n width: 11px;\n height: 11px;\n font-size: 1.5em;\n line-height: 0.5em;\n padding: 1px 1px 1px 1px;\n border-radius: 10px;\n right: 5px;\n top: 5px;\n user-select: none;\n text-align: center;\n z-index: 100;\n}\n.tvjs-ux-wrapper-close-hb {\n}\n.tvjs-ux-wrapper-close:hover {\n background-color: #FF605C !important;\n color: #692324 !important;\n}\n.tvjs-ux-wrapper-full {\n}\n",""]),t.exports=e},983:(t,e,n)=>{(e=n(645)(!1)).push([t.id,"\n.tvjs-widgets {\n position: absolute;\n z-index: 1000;\n pointer-events: none;\n}\n",""]),t.exports=e},645:t=>{"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=(s=i,a=btoa(unescape(encodeURIComponent(JSON.stringify(s)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(c," */")),o=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([r]).join("\n")}var s,a,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(i)for(var o=0;o<this.length;o++){var s=this[o][0];null!=s&&(r[s]=!0)}for(var a=0;a<t.length;a++){var c=[].concat(t[a]);i&&r[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},840:(t,e,n)=>{var i;!function(r,o,s,a){"use strict";var c,u=["","webkit","Moz","MS","ms","o"],h=o.createElement("div"),l=Math.round,p=Math.abs,d=Date.now;function f(t,e,n){return setTimeout(x(t,n),e)}function g(t,e,n){return!!Array.isArray(t)&&(A(t,n[e],n),!0)}function A(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==a)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 v(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error("get-stack-trace"),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=r.console&&(r.console.warn||r.console.log);return o&&o.call(r.console,i,n),t.apply(this,arguments)}}c="function"!=typeof Object.assign?function(t){if(t===a||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!==a&&null!==i)for(var r in i)i.hasOwnProperty(r)&&(e[r]=i[r])}return e}:Object.assign;var m=v((function(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;)(!n||n&&t[i[r]]===a)&&(t[i[r]]=e[i[r]]),r++;return t}),"extend","Use `assign`."),y=v((function(t,e){return m(t,e,!0)}),"merge","Use `assign`.");function w(t,e,n){var i,r=e.prototype;(i=t.prototype=Object.create(r)).constructor=t,i._super=r,n&&c(i,n)}function x(t,e){return function(){return t.apply(e,arguments)}}function k(t,e){return"function"==typeof t?t.apply(e&&e[0]||a,e):t}function b(t,e){return t===a?e:t}function C(t,e,n){A(S(e),(function(e){t.addEventListener(e,n,!1)}))}function B(t,e,n){A(S(e),(function(e){t.removeEventListener(e,n,!1)}))}function I(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function E(t,e){return t.indexOf(e)>-1}function S(t){return t.trim().split(/\s+/g)}function M(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}function D(t){return Array.prototype.slice.call(t,0)}function Q(t,e,n){for(var i=[],r=[],o=0;o<t.length;){var s=e?t[o][e]:t[o];M(r,s)<0&&i.push(t[o]),r[o]=s,o++}return n&&(i=e?i.sort((function(t,n){return t[e]>n[e]})):i.sort()),i}function U(t,e){for(var n,i,r=e[0].toUpperCase()+e.slice(1),o=0;o<u.length;){if((i=(n=u[o])?n+r:e)in t)return i;o++}return a}var T=1;function _(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}var G="ontouchstart"in r,O=U(r,"PointerEvent")!==a,R=G&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),K="touch",j="mouse",Y=24,F=["x","y"],P=["clientX","clientY"];function J(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){k(t.options.enable,[t])&&n.handler(e)},this.init()}function L(t,e,n){var i=n.pointers.length,r=n.changedPointers.length,o=1&e&&i-r==0,s=12&e&&i-r==0;n.isFirst=!!o,n.isFinal=!!s,o&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,i=e.pointers,r=i.length;n.firstInput||(n.firstInput=N(e));r>1&&!n.firstMultiple?n.firstMultiple=N(e):1===r&&(n.firstMultiple=!1);var o=n.firstInput,s=n.firstMultiple,c=s?s.center:o.center,u=e.center=X(i);e.timeStamp=d(),e.deltaTime=e.timeStamp-o.timeStamp,e.angle=q(c,u),e.distance=H(c,u),function(t,e){var n=e.center,i=t.offsetDelta||{},r=t.prevDelta||{},o=t.prevInput||{};1!==e.eventType&&4!==o.eventType||(r=t.prevDelta={x:o.deltaX||0,y:o.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y});e.deltaX=r.x+(n.x-i.x),e.deltaY=r.y+(n.y-i.y)}(n,e),e.offsetDirection=W(e.deltaX,e.deltaY);var h=V(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=h.x,e.overallVelocityY=h.y,e.overallVelocity=p(h.x)>p(h.y)?h.x:h.y,e.scale=s?(l=s.pointers,f=i,H(f[0],f[1],P)/H(l[0],l[1],P)):1,e.rotation=s?function(t,e){return q(e[1],e[0],P)+q(t[1],t[0],P)}(s.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,function(t,e){var n,i,r,o,s=t.lastInterval||e,c=e.timeStamp-s.timeStamp;if(8!=e.eventType&&(c>25||s.velocity===a)){var u=e.deltaX-s.deltaX,h=e.deltaY-s.deltaY,l=V(c,u,h);i=l.x,r=l.y,n=p(l.x)>p(l.y)?l.x:l.y,o=W(u,h),t.lastInterval=e}else n=s.velocity,i=s.velocityX,r=s.velocityY,o=s.direction;e.velocity=n,e.velocityX=i,e.velocityY=r,e.direction=o}(n,e);var l,f;var g=t.element;I(e.srcEvent.target,g)&&(g=e.srcEvent.target);e.target=g}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function N(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:l(t.pointers[n].clientX),clientY:l(t.pointers[n].clientY)},n++;return{timeStamp:d(),pointers:e,center:X(e),deltaX:t.deltaX,deltaY:t.deltaY}}function X(t){var e=t.length;if(1===e)return{x:l(t[0].clientX),y:l(t[0].clientY)};for(var n=0,i=0,r=0;r<e;)n+=t[r].clientX,i+=t[r].clientY,r++;return{x:l(n/e),y:l(i/e)}}function V(t,e,n){return{x:e/t||0,y:n/t||0}}function W(t,e){return t===e?1:p(t)>=p(e)?t<0?2:4:e<0?8:16}function H(t,e,n){n||(n=F);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return Math.sqrt(i*i+r*r)}function q(t,e,n){n||(n=F);var i=e[n[0]]-t[n[0]],r=e[n[1]]-t[n[1]];return 180*Math.atan2(r,i)/Math.PI}J.prototype={handler:function(){},init:function(){this.evEl&&C(this.element,this.evEl,this.domHandler),this.evTarget&&C(this.target,this.evTarget,this.domHandler),this.evWin&&C(_(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&B(this.element,this.evEl,this.domHandler),this.evTarget&&B(this.target,this.evTarget,this.domHandler),this.evWin&&B(_(this.element),this.evWin,this.domHandler)}};var z={mousedown:1,mousemove:2,mouseup:4},Z="mousedown",$="mousemove mouseup";function tt(){this.evEl=Z,this.evWin=$,this.pressed=!1,J.apply(this,arguments)}w(tt,J,{handler:function(t){var e=z[t.type];1&e&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=4),this.pressed&&(4&e&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:j,srcEvent:t}))}});var et={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},nt={2:K,3:"pen",4:j,5:"kinect"},it="pointerdown",rt="pointermove pointerup pointercancel";function ot(){this.evEl=it,this.evWin=rt,J.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}r.MSPointerEvent&&!r.PointerEvent&&(it="MSPointerDown",rt="MSPointerMove MSPointerUp MSPointerCancel"),w(ot,J,{handler:function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace("ms",""),r=et[i],o=nt[t.pointerType]||t.pointerType,s=o==K,a=M(e,t.pointerId,"pointerId");1&r&&(0===t.button||s)?a<0&&(e.push(t),a=e.length-1):12&r&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,r,{pointers:e,changedPointers:[t],pointerType:o,srcEvent:t}),n&&e.splice(a,1))}});var st={touchstart:1,touchmove:2,touchend:4,touchcancel:8},at="touchstart",ct="touchstart touchmove touchend touchcancel";function ut(){this.evTarget=at,this.evWin=ct,this.started=!1,J.apply(this,arguments)}function ht(t,e){var n=D(t.touches),i=D(t.changedTouches);return 12&e&&(n=Q(n.concat(i),"identifier",!0)),[n,i]}w(ut,J,{handler:function(t){var e=st[t.type];if(1===e&&(this.started=!0),this.started){var n=ht.call(this,t,e);12&e&&n[0].length-n[1].length==0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:K,srcEvent:t})}}});var lt={touchstart:1,touchmove:2,touchend:4,touchcancel:8},pt="touchstart touchmove touchend touchcancel";function dt(){this.evTarget=pt,this.targetIds={},J.apply(this,arguments)}function ft(t,e){var n=D(t.touches),i=this.targetIds;if(3&e&&1===n.length)return i[n[0].identifier]=!0,[n,n];var r,o,s=D(t.changedTouches),a=[],c=this.target;if(o=n.filter((function(t){return I(t.target,c)})),1===e)for(r=0;r<o.length;)i[o[r].identifier]=!0,r++;for(r=0;r<s.length;)i[s[r].identifier]&&a.push(s[r]),12&e&&delete i[s[r].identifier],r++;return a.length?[Q(o.concat(a),"identifier",!0),a]:void 0}w(dt,J,{handler:function(t){var e=lt[t.type],n=ft.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:K,srcEvent:t})}});function gt(){J.apply(this,arguments);var t=x(this.handler,this);this.touch=new dt(this.manager,t),this.mouse=new tt(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function At(t,e){1&t?(this.primaryTouch=e.changedPointers[0].identifier,vt.call(this,e)):12&t&&vt.call(this,e)}function vt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY};this.lastTouches.push(n);var i=this.lastTouches;setTimeout((function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)}),2500)}}function mt(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var r=this.lastTouches[i],o=Math.abs(e-r.x),s=Math.abs(n-r.y);if(o<=25&&s<=25)return!0}return!1}w(gt,J,{handler:function(t,e,n){var i=n.pointerType==K,r=n.pointerType==j;if(!(r&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(i)At.call(this,e,n);else if(r&&mt.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var yt=U(h.style,"touchAction"),wt=yt!==a,xt="compute",kt="auto",bt="manipulation",Ct="none",Bt="pan-x",It="pan-y",Et=function(){if(!wt)return!1;var t={},e=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach((function(n){t[n]=!e||r.CSS.supports("touch-action",n)})),t}();function St(t,e){this.manager=t,this.set(e)}St.prototype={set:function(t){t==xt&&(t=this.compute()),wt&&this.manager.element.style&&Et[t]&&(this.manager.element.style[yt]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return A(this.manager.recognizers,(function(e){k(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))})),function(t){if(E(t,Ct))return Ct;var e=E(t,Bt),n=E(t,It);if(e&&n)return Ct;if(e||n)return e?Bt:It;if(E(t,bt))return bt;return kt}(t.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,r=E(i,Ct)&&!Et.none,o=E(i,It)&&!Et["pan-y"],s=E(i,Bt)&&!Et["pan-x"];if(r){var a=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(a&&c&&u)return}if(!s||!o)return r||o&&6&n||s&&n&Y?this.preventSrc(e):void 0}},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var Mt=32;function Dt(t){this.options=c({},this.defaults,t||{}),this.id=T++,this.manager=null,this.options.enable=b(this.options.enable,!0),this.state=1,this.simultaneous={},this.requireFail=[]}function Qt(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function Ut(t){return 16==t?"down":8==t?"up":2==t?"left":4==t?"right":""}function Tt(t,e){var n=e.manager;return n?n.get(t):t}function _t(){Dt.apply(this,arguments)}function Gt(){_t.apply(this,arguments),this.pX=null,this.pY=null}function Ot(){_t.apply(this,arguments)}function Rt(){Dt.apply(this,arguments),this._timer=null,this._input=null}function Kt(){_t.apply(this,arguments)}function jt(){_t.apply(this,arguments)}function Yt(){Dt.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Ft(t,e){return(e=e||{}).recognizers=b(e.recognizers,Ft.defaults.preset),new Pt(t,e)}Dt.prototype={defaults:{},set:function(t){return c(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(g(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=Tt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return g(t,"dropRecognizeWith",this)||(t=Tt(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(g(t,"requireFailure",this))return this;var e=this.requireFail;return-1===M(e,t=Tt(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(g(t,"dropRequireFailure",this))return this;t=Tt(t,this);var e=M(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){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<8&&i(e.options.event+Qt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=8&&i(e.options.event+Qt(n))},tryEmit:function(t){if(this.canEmit())return this.emit(t);this.state=Mt},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},recognize:function(t){var e=c({},t);if(!k(this.options.enable,[this,e]))return this.reset(),void(this.state=Mt);56&this.state&&(this.state=1),this.state=this.process(e),30&this.state&&this.tryEmit(e)},process:function(t){},getTouchAction:function(){},reset:function(){}},w(_t,Dt,{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,i=6&e,r=this.attrTest(t);return i&&(8&n||!r)?16|e:i||r?4&n?8|e:2&e?4|e:2:Mt}}),w(Gt,_t,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var t=this.options.direction,e=[];return 6&t&&e.push(It),t&Y&&e.push(Bt),e},directionTest:function(t){var e=this.options,n=!0,i=t.distance,r=t.direction,o=t.deltaX,s=t.deltaY;return r&e.direction||(6&e.direction?(r=0===o?1:o<0?2:4,n=o!=this.pX,i=Math.abs(t.deltaX)):(r=0===s?1:s<0?8:16,n=s!=this.pY,i=Math.abs(t.deltaY))),t.direction=r,n&&i>e.threshold&&r&e.direction},attrTest:function(t){return _t.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),w(Ot,_t,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},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)}}),w(Rt,Dt,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[kt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime>e.time;if(this._input=t,!i||!n||12&t.eventType&&!r)this.reset();else if(1&t.eventType)this.reset(),this._timer=f((function(){this.state=8,this.tryEmit()}),e.time,this);else if(4&t.eventType)return 8;return Mt},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&4&t.eventType?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),w(Kt,_t,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Ct]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),w(jt,_t,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:30,pointers:1},getTouchAction:function(){return Gt.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return 30&n?e=t.overallVelocity:6&n?e=t.overallVelocityX:n&Y&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&p(e)>this.options.velocity&&4&t.eventType},emit:function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),w(Yt,Dt,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[bt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,i=t.distance<e.threshold,r=t.deltaTime<e.time;if(this.reset(),1&t.eventType&&0===this.count)return this.failTimeout();if(i&&r&&n){if(4!=t.eventType)return this.failTimeout();var o=!this.pTime||t.timeStamp-this.pTime<e.interval,s=!this.pCenter||H(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,s&&o?this.count+=1:this.count=1,this._input=t,0===this.count%e.taps)return this.hasRequireFailures()?(this._timer=f((function(){this.state=8,this.tryEmit()}),e.interval,this),2):8}return Mt},failTimeout:function(){return this._timer=f((function(){this.state=Mt}),this.options.interval,this),Mt},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Ft.VERSION="2.0.7",Ft.defaults={domEvents:!1,touchAction:xt,enable:!0,inputTarget:null,inputClass:null,preset:[[Kt,{enable:!1}],[Ot,{enable:!1},["rotate"]],[jt,{direction:6}],[Gt,{direction:6},["swipe"]],[Yt],[Yt,{event:"doubletap",taps:2},["tap"]],[Rt]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};function Pt(t,e){var n;this.options=c({},Ft.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(O?ot:R?dt:G?gt:tt))(n,L),this.touchAction=new St(this,this.options.touchAction),Jt(this,!0),A(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 Jt(t,e){var n,i=t.element;i.style&&(A(t.options.cssProps,(function(r,o){n=U(i.style,o),e?(t.oldCssProps[n]=i.style[n],i.style[n]=r):i.style[n]=t.oldCssProps[n]||""})),e||(t.oldCssProps={}))}Pt.prototype={set:function(t){return c(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){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,r=e.curRecognizer;(!r||r&&8&r.state)&&(r=e.curRecognizer=null);for(var o=0;o<i.length;)n=i[o],2===e.stopped||r&&n!=r&&!n.canRecognizeWith(r)?n.reset():n.recognize(t),!r&&14&n.state&&(r=e.curRecognizer=n),o++}},get:function(t){if(t instanceof Dt)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(g(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(g(t,"remove",this))return this;if(t=this.get(t)){var e=this.recognizers,n=M(e,t);-1!==n&&(e.splice(n,1),this.touchAction.update())}return this},on:function(t,e){if(t!==a&&e!==a){var n=this.handlers;return A(S(t),(function(t){n[t]=n[t]||[],n[t].push(e)})),this}},off:function(t,e){if(t!==a){var n=this.handlers;return A(S(t),(function(t){e?n[t]&&n[t].splice(M(n[t],e),1):delete n[t]})),this}},emit:function(t,e){this.options.domEvents&&function(t,e){var n=o.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}(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 i=0;i<n.length;)n[i](e),i++}},destroy:function(){this.element&&Jt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},c(Ft,{INPUT_START:1,INPUT_MOVE:2,INPUT_END:4,INPUT_CANCEL:8,STATE_POSSIBLE:1,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:Mt,DIRECTION_NONE:1,DIRECTION_LEFT:2,DIRECTION_RIGHT:4,DIRECTION_UP:8,DIRECTION_DOWN:16,DIRECTION_HORIZONTAL:6,DIRECTION_VERTICAL:Y,DIRECTION_ALL:30,Manager:Pt,Input:J,TouchAction:St,TouchInput:dt,MouseInput:tt,PointerEventInput:ot,TouchMouseInput:gt,SingleTouchInput:ut,Recognizer:Dt,AttrRecognizer:_t,Tap:Yt,Pan:Gt,Swipe:jt,Pinch:Ot,Rotate:Kt,Press:Rt,on:C,off:B,each:A,merge:y,extend:m,assign:c,inherit:w,bindFn:x,prefixed:U}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=Ft,(i=function(){return Ft}.call(e,n,e,t))===a||(t.exports=i)}(window,document)},981:t=>{!function(e,n){"use strict";var i,r,o=function(t){return new o.Instance(t)};o.SUPPORT="wheel",o.ADD_EVENT="addEventListener",o.REMOVE_EVENT="removeEventListener",o.PREFIX="",o.READY=!1,o.Instance=function(t){return o.READY||(o.normalise.browser(),o.READY=!0),this.element=t,this.handlers=[],this},o.Instance.prototype={wheel:function(t,e){return o.event.add(this,o.SUPPORT,t,e),"DOMMouseScroll"===o.SUPPORT&&o.event.add(this,"MozMousePixelScroll",t,e),this},unwheel:function(t,e){return void 0===t&&(t=this.handlers.slice(-1)[0])&&(t=t.original),o.event.remove(this,o.SUPPORT,t,e),"DOMMouseScroll"===o.SUPPORT&&o.event.remove(this,"MozMousePixelScroll",t,e),this}},o.event={add:function(t,n,i,r){var s=i;i=function(t){t||(t=e.event);var n=o.normalise.event(t),i=o.normalise.delta(t);return s(n,i[0],i[1],i[2])},t.element[o.ADD_EVENT](o.PREFIX+n,i,r||!1),t.handlers.push({original:s,normalised:i})},remove:function(t,e,n,i){for(var r,s=n,a={},c=0,u=t.handlers.length;c<u;++c)a[t.handlers[c].original]=t.handlers[c];for(var h in n=(r=a[s]).normalised,t.element[o.REMOVE_EVENT](o.PREFIX+e,n,i||!1),t.handlers)if(t.handlers[h]==r){t.handlers.splice(h,1);break}}},o.normalise={browser:function(){"onwheel"in n||n.documentMode>=9||(o.SUPPORT=void 0!==n.onmousewheel?"mousewheel":"DOMMouseScroll"),e.addEventListener||(o.ADD_EVENT="attachEvent",o.REMOVE_EVENT="detachEvent",o.PREFIX="on")},event:function(t){var e={originalEvent:t,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"===t.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1},stopPropagation:function(){t.stopPropagation?t.stopPropagation():t.cancelBubble=!1}};return t.wheelDelta&&(e.deltaY=-1/40*t.wheelDelta),t.wheelDeltaX&&(e.deltaX=-1/40*t.wheelDeltaX),t.detail&&(e.deltaY=t.detail),e},delta:function(t){var e,n,o,s=0,a=0,c=0;return t.deltaY&&(s=c=-1*t.deltaY),t.deltaX&&(s=-1*(a=t.deltaX)),t.wheelDelta&&(s=t.wheelDelta),t.wheelDeltaY&&(c=t.wheelDeltaY),t.wheelDeltaX&&(a=-1*t.wheelDeltaX),t.detail&&(s=-1*t.detail),0===s?[0,0,0]:(e=Math.abs(s),(!i||e<i)&&(i=e),n=Math.max(Math.abs(c),Math.abs(a)),(!r||n<r)&&(r=n),o=s>0?"floor":"ceil",[s=Math[o](s/i),a=Math[o](a/r),c=Math[o](c/r)])}},"function"==typeof e.define&&e.define.amd?e.define("hamster",[],(function(){return o})):t.exports=o}(window,window.document)},961:(t,e,n)=>{var i,r=function(){var t=String.fromCharCode,e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+-$",i={};function r(t,e){if(!i[t]){i[t]={};for(var n=0;n<t.length;n++)i[t][t.charAt(n)]=n}return i[t][e]}var o={compressToBase64:function(t){if(null==t)return"";var n=o._compress(t,6,(function(t){return e.charAt(t)}));switch(n.length%4){default:case 0:return n;case 1:return n+"===";case 2:return n+"==";case 3:return n+"="}},decompressFromBase64:function(t){return null==t?"":""==t?null:o._decompress(t.length,32,(function(n){return r(e,t.charAt(n))}))},compressToUTF16:function(e){return null==e?"":o._compress(e,15,(function(e){return t(e+32)}))+" "},decompressFromUTF16:function(t){return null==t?"":""==t?null:o._decompress(t.length,16384,(function(e){return t.charCodeAt(e)-32}))},compressToUint8Array:function(t){for(var e=o.compress(t),n=new Uint8Array(2*e.length),i=0,r=e.length;i<r;i++){var s=e.charCodeAt(i);n[2*i]=s>>>8,n[2*i+1]=s%256}return n},decompressFromUint8Array:function(e){if(null==e)return o.decompress(e);for(var n=new Array(e.length/2),i=0,r=n.length;i<r;i++)n[i]=256*e[2*i]+e[2*i+1];var s=[];return n.forEach((function(e){s.push(t(e))})),o.decompress(s.join(""))},compressToEncodedURIComponent:function(t){return null==t?"":o._compress(t,6,(function(t){return n.charAt(t)}))},decompressFromEncodedURIComponent:function(t){return null==t?"":""==t?null:(t=t.replace(/ /g,"+"),o._decompress(t.length,32,(function(e){return r(n,t.charAt(e))})))},compress:function(e){return o._compress(e,16,(function(e){return t(e)}))},_compress:function(t,e,n){if(null==t)return"";var i,r,o,s={},a={},c="",u="",h="",l=2,p=3,d=2,f=[],g=0,A=0;for(o=0;o<t.length;o+=1)if(c=t.charAt(o),Object.prototype.hasOwnProperty.call(s,c)||(s[c]=p++,a[c]=!0),u=h+c,Object.prototype.hasOwnProperty.call(s,u))h=u;else{if(Object.prototype.hasOwnProperty.call(a,h)){if(h.charCodeAt(0)<256){for(i=0;i<d;i++)g<<=1,A==e-1?(A=0,f.push(n(g)),g=0):A++;for(r=h.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1}else{for(r=1,i=0;i<d;i++)g=g<<1|r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r=0;for(r=h.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1}0==--l&&(l=Math.pow(2,d),d++),delete a[h]}else for(r=s[h],i=0;i<d;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1;0==--l&&(l=Math.pow(2,d),d++),s[u]=p++,h=String(c)}if(""!==h){if(Object.prototype.hasOwnProperty.call(a,h)){if(h.charCodeAt(0)<256){for(i=0;i<d;i++)g<<=1,A==e-1?(A=0,f.push(n(g)),g=0):A++;for(r=h.charCodeAt(0),i=0;i<8;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1}else{for(r=1,i=0;i<d;i++)g=g<<1|r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r=0;for(r=h.charCodeAt(0),i=0;i<16;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1}0==--l&&(l=Math.pow(2,d),d++),delete a[h]}else for(r=s[h],i=0;i<d;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1;0==--l&&(l=Math.pow(2,d),d++)}for(r=2,i=0;i<d;i++)g=g<<1|1&r,A==e-1?(A=0,f.push(n(g)),g=0):A++,r>>=1;for(;;){if(g<<=1,A==e-1){f.push(n(g));break}A++}return f.join("")},decompress:function(t){return null==t?"":""==t?null:o._decompress(t.length,32768,(function(e){return t.charCodeAt(e)}))},_decompress:function(e,n,i){var r,o,s,a,c,u,h,l=[],p=4,d=4,f=3,g="",A=[],v={val:i(0),position:n,index:1};for(r=0;r<3;r+=1)l[r]=r;for(s=0,c=Math.pow(2,2),u=1;u!=c;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=i(v.index++)),s|=(a>0?1:0)*u,u<<=1;switch(s){case 0:for(s=0,c=Math.pow(2,8),u=1;u!=c;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=i(v.index++)),s|=(a>0?1:0)*u,u<<=1;h=t(s);break;case 1:for(s=0,c=Math.pow(2,16),u=1;u!=c;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=i(v.index++)),s|=(a>0?1:0)*u,u<<=1;h=t(s);break;case 2:return""}for(l[3]=h,o=h,A.push(h);;){if(v.index>e)return"";for(s=0,c=Math.pow(2,f),u=1;u!=c;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=i(v.index++)),s|=(a>0?1:0)*u,u<<=1;switch(h=s){case 0:for(s=0,c=Math.pow(2,8),u=1;u!=c;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=i(v.index++)),s|=(a>0?1:0)*u,u<<=1;l[d++]=t(s),h=d-1,p--;break;case 1:for(s=0,c=Math.pow(2,16),u=1;u!=c;)a=v.val&v.position,v.position>>=1,0==v.position&&(v.position=n,v.val=i(v.index++)),s|=(a>0?1:0)*u,u<<=1;l[d++]=t(s),h=d-1,p--;break;case 2:return A.join("")}if(0==p&&(p=Math.pow(2,f),f++),l[h])g=l[h];else{if(h!==d)return null;g=o+o.charAt(0)}A.push(g),l[d++]=o+g.charAt(0),o=g,0==--p&&(p=Math.pow(2,f),f++)}}};return o}();void 0===(i=function(){return r}.call(e,n,e,t))||(t.exports=i)},863:(t,e,n)=>{var i=n(418);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("550b47ab",i,!1,{})},124:(t,e,n)=>{var i=n(976);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("1b34bfeb",i,!1,{})},886:(t,e,n)=>{var i=n(449);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("9895d3a6",i,!1,{})},807:(t,e,n)=>{var i=n(108);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("8139036a",i,!1,{})},600:(t,e,n)=>{var i=n(988);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("1db01c0b",i,!1,{})},169:(t,e,n)=>{var i=n(423);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("68f243ea",i,!1,{})},11:(t,e,n)=>{var i=n(661);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("12d2309d",i,!1,{})},372:(t,e,n)=>{var i=n(168);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("5b620605",i,!1,{})},477:(t,e,n)=>{var i=n(29);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("143dffab",i,!1,{})},153:(t,e,n)=>{var i=n(935);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("f32fd36e",i,!1,{})},501:(t,e,n)=>{var i=n(379);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("604bf5ef",i,!1,{})},565:(t,e,n)=>{var i=n(72);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("21fde573",i,!1,{})},5:(t,e,n)=>{var i=n(983);i.__esModule&&(i=i.default),"string"==typeof i&&(i=[[t.id,i,""]]),i.locals&&(t.exports=i.locals);(0,n(346).Z)("fd83689e",i,!1,{})},346:(t,e,n)=>{"use strict";function i(t,e){for(var n=[],i={},r=0;r<e.length;r++){var o=e[r],s=o[0],a={id:t+":"+r,css:o[1],media:o[2],sourceMap:o[3]};i[s]?i[s].parts.push(a):n.push(i[s]={id:s,parts:[a]})}return n}n.d(e,{Z:()=>f});var r="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!r)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var o={},s=r&&(document.head||document.getElementsByTagName("head")[0]),a=null,c=0,u=!1,h=function(){},l=null,p="data-vue-ssr-id",d="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function f(t,e,n,r){u=n,l=r||{};var s=i(t,e);return g(s),function(e){for(var n=[],r=0;r<s.length;r++){var a=s[r];(c=o[a.id]).refs--,n.push(c)}e?g(s=i(t,e)):s=[];for(r=0;r<n.length;r++){var c;if(0===(c=n[r]).refs){for(var u=0;u<c.parts.length;u++)c.parts[u]();delete o[c.id]}}}}function g(t){for(var e=0;e<t.length;e++){var n=t[e],i=o[n.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](n.parts[r]);for(;r<n.parts.length;r++)i.parts.push(v(n.parts[r]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var s=[];for(r=0;r<n.parts.length;r++)s.push(v(n.parts[r]));o[n.id]={id:n.id,refs:1,parts:s}}}}function A(){var t=document.createElement("style");return t.type="text/css",s.appendChild(t),t}function v(t){var e,n,i=document.querySelector("style["+p+'~="'+t.id+'"]');if(i){if(u)return h;i.parentNode.removeChild(i)}if(d){var r=c++;i=a||(a=A()),e=w.bind(null,i,r,!1),n=w.bind(null,i,r,!0)}else i=A(),e=x.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var m,y=(m=[],function(t,e){return m[t]=e,m.filter(Boolean).join("\n")});function w(t,e,n,i){var r=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=y(e,r);else{var o=document.createTextNode(r),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(o,s[e]):t.appendChild(o)}}function x(t,e){var n=e.css,i=e.media,r=e.sourceMap;if(i&&t.setAttribute("media",i),l.ssrId&&t.setAttribute(p,e.id),r&&(n+="\n/*# sourceURL="+r.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}}},e={};function n(i){var r=e[i];if(void 0!==r)return r.exports;var o=e[i]={id:i,exports:{}};return t[i](o,o.exports,n),o.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=