webpackJsonp([0],[function(t,e,i){var n=i(8),r=i(58),o=i(48),s=i(49),a=i(59),l=function(t,e,i){var u,c,h,d,f=t&l.F,p=t&l.G,v=t&l.S,g=t&l.P,m=t&l.B,y=p?n:v?n[e]||(n[e]={}):(n[e]||{}).prototype,_=p?r:r[e]||(r[e]={}),b=_.prototype||(_.prototype={});for(u in p&&(i=e),i)h=((c=!f&&y&&void 0!==y[u])?y:i)[u],d=m&&c?a(h,n):g&&"function"==typeof h?a(Function.call,h):h,y&&s(y,u,h,t&l.U),_[u]!=h&&o(_,u,d),g&&b[u]!=h&&(b[u]=h)};n.core=r,l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},,function(t,e,i){"use strict";var n=i(26),r=i(116),o=i(213),s=i(18),a=i(117).f,l=i(290),u=i(28),c=i(44),h=i(80),d=i(37);i(167);var f=function(t){var e=function(i,n,o){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(i);case 2:return new t(i,n)}return new t(i,n,o)}return r(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var i,r,p,v,g,m,y,_,b,x=t.target,w=t.global,S=t.stat,T=t.proto,E=w?n:S?n[x]:n[x]&&n[x].prototype,C=w?u:u[x]||h(u,x,{})[x],O=C.prototype;for(v in e)r=!(i=l(w?v:x+(S?".":"#")+v,t.forced))&&E&&d(E,v),m=C[v],r&&(y=t.dontCallGetSet?(b=a(E,v))&&b.value:E[v]),g=r&&y?y:e[v],(i||T||typeof m!=typeof g)&&(_=t.bind&&r?c(g,n):t.wrap&&r?f(g):T&&s(g)?o(g):g,(t.sham||g&&g.sham||m&&m.sham)&&h(_,"sham",!0),h(C,v,_),T&&(d(u,p=x+"Prototype")||h(u,p,{}),h(u[p],v,g),t.real&&O&&(i||!O[v])&&h(O,v,g)))}},function(t,e,i){"use strict";(function(t){i.d(e,"w",function(){return D}),i.d(e,"d",function(){return j}),i.d(e,"C",function(){return N}),i.d(e,"D",function(){return $}),i.d(e,"i",function(){return G}),i.d(e,"o",function(){return z}),i.d(e,"r",function(){return B}),i.d(e,"j",function(){return Y}),i.d(e,"m",function(){return W}),i.d(e,"n",function(){return H}),i.d(e,"p",function(){return U}),i.d(e,"q",function(){return q}),i.d(e,"c",function(){return K}),i.d(e,"y",function(){return Z}),i.d(e,"B",function(){return J}),i.d(e,"l",function(){return Q}),i.d(e,"k",function(){return tt}),i.d(e,"s",function(){return it}),i.d(e,"g",function(){return nt}),i.d(e,"A",function(){return rt}),i.d(e,"u",function(){return st}),i.d(e,"v",function(){return at}),i.d(e,"f",function(){return lt}),i.d(e,"x",function(){return ut}),i.d(e,"E",function(){return ct}),i.d(e,"t",function(){return ht}),i.d(e,"z",function(){return dt}),i.d(e,"h",function(){return ft}),i.d(e,"e",function(){return pt}),i.d(e,"b",function(){return vt}),i.d(e,"a",function(){return gt});var n,r=i(90),o=i(65),s=i.n(o),a=i(334),l=(i.n(a),i(769)),u=i.n(l),c=i(130),h=i.n(c),d=i(15),f=i.n(d),p=i(20),v=i.n(p),g=i(41),m=i.n(g),y=i(149),_=(i.n(y),i(4)),b=i.n(_),x=i(67),w=i.n(x),S=i(14),T=i.n(S),E=s.a.mark(dt),C=(void 0!==t?t:"undefined"!=typeof window?window:{}).isFinite||D,O=Object.prototype,M=Object.prototype,P=O.toString,k=M.toString,I=(n={},P).call(n),L=(n=0,P).call(n),A=(n="",P).call(n),R=(n=!0,P).call(n),F=k.call(Object);function D(){}function j(t){return function(){return t}}function N(){return[]}function $(){return Object.create(null)}function G(t){return t}function z(t){return P.call(t)===L}function B(t){return P.call(t)===A}function Y(t){return Array.isArray(t)}function V(t){return X(t)&&t.hasOwnProperty("length")}function W(t){return"number"==typeof t&&C(t)}function H(t){return"function"==typeof t}function U(t){return!isNaN(parseFloat(t))&&C(t)}function X(t){return null!=t&&"object"===Object(r.a)(t)}function q(t){if(!X(t)||P.call(t)!==I)return!1;var e=u()(t);if(null==e)return!0;var i=e.constructor;return"function"==typeof i&&i instanceof i&&k.call(i)===F}function K(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return h()(e).call(e,function(t){return null!=t})}function Z(t){var e={},i=function(t){return U(t)||B(t)||Y(t)||(e=t,P.call(e)===R)||q(t);var e};return f()(t).forEach(function(n){i(t[n])&&(e[n]=t[n])}),e}function J(t,e){var i,n=new RegExp(v()(i=f()(e)).call(i,function(t){return"(\\{"+t+"\\})"}).join("|"),"ig");return t.replace(n,function(t){return e[t.substr(1,t.length-2)]||""})}function Q(t,e){if(t===e)return!0;if(null==t||null==e||!X(t)&&!X(e))return t!=t&&e!=e;var i=f()(t),n=f()(e);if(i.length!==n.length)return!1;var r=[],o=function(i,n){for(var o=0,s=i.length;o<s;o++){var a=i[o];if(!m()(r).call(r,a)){if(!1===e.hasOwnProperty(a))return!1;var l=n[o];if(!Q(t[a],e[l]))return!1;r.push(l)}}return!0};return!1!==o(i,n)&&o(n,i)}function tt(t){return!t||V(t)&&0===t.length||X(t)&&0===f()(t).length}function et(t){return!tt(t)}function it(t){return f()(t)}function nt(t,e){for(var i=f()(t),n=0,r=i.length;n<r;n++){var o=i[n];if(!1===e(t[o],o))return}}function rt(t,e,i){var n=i;return nt(t,function(t,i){n=e(n,t,i)}),n}function ot(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:et;return rt(t,function(t,i,n){return e(i,n)&&(Y(t)?t.push(i):t[n]=i),t},Y(t)?[]:{})}function st(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G;return rt(t,function(t,i,n){return t[n]=e(i,n),t},Y(t)?[]:{})}function at(t){return st(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:G)}function lt(t){if(V(t))return t[0]}function ut(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),r=2;r<i;r++)n[r-2]=arguments[r];var o;Array.isArray(e)?n=e:n=b()(o=[e]).call(o,n);return rt(n,function(e,i){return e[i]=t[i],e},{})}function ct(t){return 0===(t=String(t)).length?"":t[0].toUpperCase()+w()(t).call(t,1)}function ht(t){return 0===(t=String(t)).length?"":t[0].toLowerCase()+w()(t).call(t,1)}function dt(t,e){var i,n,r=arguments;return s.a.wrap(function(o){for(;;)switch(o.prev=o.next){case 0:i=r.length>2&&void 0!==r[2]?r[2]:1,n=t;case 2:if(!(n<e)){o.next=8;break}return o.next=5,n;case 5:n+=i,o.next=2;break;case 8:case"end":return o.stop()}},E)}function ft(t,e,i){var n=function(i){var n;return T()(n=String.prototype.split.call(e,i)).call(n,Boolean).reduce(function(t,e){return null!==t&&void 0!==t?t[e]:t},t)},r=n(/[,[\]]+?/)||n(/[,[\].]+?/);return void 0===r||r===t?i:r}function pt(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q;return ot(t,function(t){return!function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Q;return ot(t,function(t){return i(t,e)}).shift()}(e,t,i)})}function vt(t){return t.replace(/([-_]\w)/g,function(t){return t[1].toUpperCase()})}function gt(t){return function(t){return function(e){return Y(e)&&e.length===t}}}}).call(e,i(53))},function(t,e,i){t.exports=i(791)},function(t,e,i){t.exports=i(815)},function(t,e,i){var n=i(11);t.exports=function(t){if(!n(t))throw TypeError(t+" is not an object!");return t}},function(t,e,i){t.exports=i(591)},function(t,e){var i=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=i)},function(t,e,i){"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},,function(t,e,i){"use strict";var n=i(137),r=Function.prototype,o=r.call,s=n&&r.bind.bind(o,o);t.exports=n?s:function(t){return function(){return o.apply(t,arguments)}}},function(t,e,i){t.exports=i(616)},function(t,e,i){t.exports=i(687)},function(t,e,i){var n=i(132)("wks"),r=i(93),o=i(8).Symbol,s="function"==typeof o;(t.exports=function(t){return n[t]||(n[t]=s&&o[t]||(s?o:r)("Symbol."+t))}).store=n},function(t,e,i){var n=i(61),r=Math.min;t.exports=function(t){return t>0?r(n(t),9007199254740991):0}},function(t,e,i){"use strict";var n="object"==typeof document&&document.all;t.exports=void 0===n&&void 0!==n?function(t){return"function"==typeof t||t===n}:function(t){return"function"==typeof t}},function(t,e,i){"use strict";var n=i(26),r=i(120),o=i(37),s=i(168),a=i(119),l=i(288),u=n.Symbol,c=r("wks"),h=l?u.for||u:u&&u.withoutSetter||s;t.exports=function(t){return o(c,t)||(c[t]=a&&o(u,t)?u[t]:h("Symbol."+t)),c[t]}},function(t,e,i){t.exports=i(774)},,function(t,e,i){t.exports=!i(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),function(t){i.d(e,"Store",function(){return h}),i.d(e,"createLogger",function(){return M}),i.d(e,"createNamespacedHelpers",function(){return T}),i.d(e,"install",function(){return _}),i.d(e,"mapActions",function(){return S}),i.d(e,"mapGetters",function(){return w}),i.d(e,"mapMutations",function(){return x}),i.d(e,"mapState",function(){return b});var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function r(t,e){if(void 0===e&&(e=[]),null===t||"object"!=typeof t)return t;var i,n=(i=function(e){return e.original===t},e.filter(i)[0]);if(n)return n.copy;var o=Array.isArray(t)?[]:{};return e.push({original:t,copy:o}),Object.keys(t).forEach(function(i){o[i]=r(t[i],e)}),o}function o(t,e){Object.keys(t).forEach(function(i){return e(t[i],i)})}function s(t){return null!==t&&"object"==typeof t}var a=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var i=t.state;this.state=("function"==typeof i?i():i)||{}},l={namespaced:{configurable:!0}};l.namespaced.get=function(){return!!this._rawModule.namespaced},a.prototype.addChild=function(t,e){this._children[t]=e},a.prototype.removeChild=function(t){delete this._children[t]},a.prototype.getChild=function(t){return this._children[t]},a.prototype.hasChild=function(t){return t in this._children},a.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},a.prototype.forEachChild=function(t){o(this._children,t)},a.prototype.forEachGetter=function(t){this._rawModule.getters&&o(this._rawModule.getters,t)},a.prototype.forEachAction=function(t){this._rawModule.actions&&o(this._rawModule.actions,t)},a.prototype.forEachMutation=function(t){this._rawModule.mutations&&o(this._rawModule.mutations,t)},Object.defineProperties(a.prototype,l);var u=function(t){this.register([],t,!1)};u.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},u.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,i){return t+((e=e.getChild(i)).namespaced?i+"/":"")},"")},u.prototype.update=function(t){!function t(e,i,n){0;i.update(n);if(n.modules)for(var r in n.modules){if(!i.getChild(r))return void 0;t(e.concat(r),i.getChild(r),n.modules[r])}}([],this.root,t)},u.prototype.register=function(t,e,i){var n=this;void 0===i&&(i=!0);var r=new a(e,i);0===t.length?this.root=r:this.get(t.slice(0,-1)).addChild(t[t.length-1],r);e.modules&&o(e.modules,function(e,r){n.register(t.concat(r),e,i)})},u.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1],n=e.getChild(i);n&&n.runtime&&e.removeChild(i)},u.prototype.isRegistered=function(t){var e=this.get(t.slice(0,-1)),i=t[t.length-1];return e.hasChild(i)};var c;var h=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!=typeof window&&window.Vue&&_(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new u(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,s=this.dispatch,a=this.commit;this.dispatch=function(t,e){return s.call(o,t,e)},this.commit=function(t,e,i){return a.call(o,t,e,i)},this.strict=r;var l=this._modules.root.state;g(this,l,[],this._modules.root),v(this,l),i.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:c.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){n.emit("vuex:mutation",t,e)},{prepend:!0}),t.subscribeAction(function(t,e){n.emit("vuex:action",t,e)},{prepend:!0}))}(this)},d={state:{configurable:!0}};function f(t,e,i){return e.indexOf(t)<0&&(i&&i.prepend?e.unshift(t):e.push(t)),function(){var i=e.indexOf(t);i>-1&&e.splice(i,1)}}function p(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var i=t.state;g(t,i,[],t._modules.root,!0),v(t,i,e)}function v(t,e,i){var n=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var r={};o(t._wrappedGetters,function(e,i){r[i]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,i,{get:function(){return t._vm[i]},enumerable:!0})});var s=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:r}),c.config.silent=s,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),n&&(i&&t._withCommit(function(){n._data.$$state=null}),c.nextTick(function(){return n.$destroy()}))}function g(t,e,i,n,r){var o=!i.length,s=t._modules.getNamespace(i);if(n.namespaced&&(t._modulesNamespaceMap[s],t._modulesNamespaceMap[s]=n),!o&&!r){var a=m(e,i.slice(0,-1)),l=i[i.length-1];t._withCommit(function(){c.set(a,l,n.state)})}var u=n.context=function(t,e,i){var n=""===e,r={dispatch:n?t.dispatch:function(i,n,r){var o=y(i,n,r),s=o.payload,a=o.options,l=o.type;return a&&a.root||(l=e+l),t.dispatch(l,s)},commit:n?t.commit:function(i,n,r){var o=y(i,n,r),s=o.payload,a=o.options,l=o.type;a&&a.root||(l=e+l),t.commit(l,s,a)}};return Object.defineProperties(r,{getters:{get:n?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var i={},n=e.length;Object.keys(t.getters).forEach(function(r){if(r.slice(0,n)===e){var o=r.slice(n);Object.defineProperty(i,o,{get:function(){return t.getters[r]},enumerable:!0})}}),t._makeLocalGettersCache[e]=i}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,i)}}}),r}(t,s,i);n.forEachMutation(function(e,i){!function(t,e,i,n){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){i.call(t,n.state,e)})}(t,s+i,e,u)}),n.forEachAction(function(e,i){var n=e.root?i:s+i,r=e.handler||e;!function(t,e,i,n){(t._actions[e]||(t._actions[e]=[])).push(function(e){var r,o=i.call(t,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}(t,n,r,u)}),n.forEachGetter(function(e,i){!function(t,e,i,n){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return i(n.state,n.getters,t.state,t.getters)}}(t,s+i,e,u)}),n.forEachChild(function(n,o){g(t,e,i.concat(o),n,r)})}function m(t,e){return e.reduce(function(t,e){return t[e]},t)}function y(t,e,i){return s(t)&&t.type&&(i=e,e=t,t=t.type),{type:t,payload:e,options:i}}function _(t){c&&t===c||function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:i});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[i].concat(t.init):i,e.call(this,t)}}function i(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}d.state.get=function(){return this._vm._data.$$state},d.state.set=function(t){0},h.prototype.commit=function(t,e,i){var n=this,r=y(t,e,i),o=r.type,s=r.payload,a=(r.options,{type:o,payload:s}),l=this._mutations[o];l&&(this._withCommit(function(){l.forEach(function(t){t(s)})}),this._subscribers.slice().forEach(function(t){return t(a,n.state)}))},h.prototype.dispatch=function(t,e){var i=this,n=y(t,e),r=n.type,o=n.payload,s={type:r,payload:o},a=this._actions[r];if(a){try{this._actionSubscribers.slice().filter(function(t){return t.before}).forEach(function(t){return t.before(s,i.state)})}catch(t){0}var l=a.length>1?Promise.all(a.map(function(t){return t(o)})):a[0](o);return new Promise(function(t,e){l.then(function(e){try{i._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(s,i.state)})}catch(t){0}t(e)},function(t){try{i._actionSubscribers.filter(function(t){return t.error}).forEach(function(e){return e.error(s,i.state,t)})}catch(t){0}e(t)})})}},h.prototype.subscribe=function(t,e){return f(t,this._subscribers,e)},h.prototype.subscribeAction=function(t,e){return f("function"==typeof t?{before:t}:t,this._actionSubscribers,e)},h.prototype.watch=function(t,e,i){var n=this;return this._watcherVM.$watch(function(){return t(n.state,n.getters)},e,i)},h.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},h.prototype.registerModule=function(t,e,i){void 0===i&&(i={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),g(this,this.state,t,this._modules.get(t),i.preserveState),v(this,this.state)},h.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var i=m(e.state,t.slice(0,-1));c.delete(i,t[t.length-1])}),p(this)},h.prototype.hasModule=function(t){return"string"==typeof t&&(t=[t]),this._modules.isRegistered(t)},h.prototype.hotUpdate=function(t){this._modules.update(t),p(this,!0)},h.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(h.prototype,d);var b=C(function(t,e){var i={};return E(e).forEach(function(e){var n=e.key,r=e.val;i[n]=function(){var e=this.$store.state,i=this.$store.getters;if(t){var n=O(this.$store,"mapState",t);if(!n)return;e=n.context.state,i=n.context.getters}return"function"==typeof r?r.call(this,e,i):e[r]},i[n].vuex=!0}),i}),x=C(function(t,e){var i={};return E(e).forEach(function(e){var n=e.key,r=e.val;i[n]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=this.$store.commit;if(t){var o=O(this.$store,"mapMutations",t);if(!o)return;n=o.context.commit}return"function"==typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}}),i}),w=C(function(t,e){var i={};return E(e).forEach(function(e){var n=e.key,r=e.val;r=t+r,i[n]=function(){if(!t||O(this.$store,"mapGetters",t))return this.$store.getters[r]},i[n].vuex=!0}),i}),S=C(function(t,e){var i={};return E(e).forEach(function(e){var n=e.key,r=e.val;i[n]=function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=this.$store.dispatch;if(t){var o=O(this.$store,"mapActions",t);if(!o)return;n=o.context.dispatch}return"function"==typeof r?r.apply(this,[n].concat(e)):n.apply(this.$store,[r].concat(e))}}),i}),T=function(t){return{mapState:b.bind(null,t),mapGetters:w.bind(null,t),mapMutations:x.bind(null,t),mapActions:S.bind(null,t)}};function E(t){return function(t){return Array.isArray(t)||s(t)}(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function C(t){return function(e,i){return"string"!=typeof e?(i=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,i)}}function O(t,e,i){return t._modulesNamespaceMap[i]}function M(t){void 0===t&&(t={});var e=t.collapsed;void 0===e&&(e=!0);var i=t.filter;void 0===i&&(i=function(t,e,i){return!0});var n=t.transformer;void 0===n&&(n=function(t){return t});var o=t.mutationTransformer;void 0===o&&(o=function(t){return t});var s=t.actionFilter;void 0===s&&(s=function(t,e){return!0});var a=t.actionTransformer;void 0===a&&(a=function(t){return t});var l=t.logMutations;void 0===l&&(l=!0);var u=t.logActions;void 0===u&&(u=!0);var c=t.logger;return void 0===c&&(c=console),function(t){var h=r(t.state);void 0!==c&&(l&&t.subscribe(function(t,s){var a=r(s);if(i(t,h,a)){var l=I(),u=o(t),d="mutation "+t.type+l;P(c,d,e),c.log("%c prev state","color: #9E9E9E; font-weight: bold",n(h)),c.log("%c mutation","color: #03A9F4; font-weight: bold",u),c.log("%c next state","color: #4CAF50; font-weight: bold",n(a)),k(c)}h=a}),u&&t.subscribeAction(function(t,i){if(s(t,i)){var n=I(),r=a(t),o="action "+t.type+n;P(c,o,e),c.log("%c action","color: #03A9F4; font-weight: bold",r),k(c)}}))}}function P(t,e,i){var n=i?t.groupCollapsed:t.group;try{n.call(t,e)}catch(i){t.log(e)}}function k(t){try{t.groupEnd()}catch(e){t.log("—— log end ——")}}function I(){var t=new Date;return" @ "+L(t.getHours(),2)+":"+L(t.getMinutes(),2)+":"+L(t.getSeconds(),2)+"."+L(t.getMilliseconds(),3)}function L(t,e){return i="0",n=e-t.toString().length,new Array(n+1).join(i)+t;var i,n}var A={Store:h,install:_,version:"3.5.1",mapState:b,mapMutations:x,mapGetters:w,mapActions:S,createNamespacedHelpers:T,createLogger:M};e.default=A}.call(e,i(53))},function(t,e,i){"use strict";var n=i(28),r=i(37),o=i(172),s=i(51).f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});r(e,t)||s(e,t,{value:o.f(t)})}},function(t,e,i){t.exports=i(603)},function(t,e,i){"use strict";(function(e){var i=function(t){return t&&t.Math===Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof e&&e)||i("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(e,i(53))},function(t,e,i){"use strict";var n=i(137),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}},function(t,e,i){"use strict";t.exports={}},function(t,e,i){t.exports=i(301)},function(t,e,i){t.exports=i(622)},function(t,e,i){var n=i(6),r=i(238),o=i(70),s=Object.defineProperty;e.f=i(22)?Object.defineProperty:function(t,e,i){if(n(t),e=o(e,!0),n(i),r)try{return s(t,e,i)}catch(t){}if("get"in i||"set"in i)throw TypeError("Accessors not supported!");return"value"in i&&(t[e]=i.value),t}},function(t,e,i){"use strict";var n=i(9);t.exports=!n(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})},function(t,e,i){"use strict";var n=i(18);t.exports=function(t){return"object"==typeof t?null!==t:n(t)}},function(t,e,i){var n=i(71);t.exports=function(t){return Object(n(t))}},,function(t,e,i){"use strict";var n=i(13);t.exports=n({}.isPrototypeOf)},function(t,e,i){"use strict";var n=i(13),r=i(46),o=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},function(t,e,i){"use strict";var n=i(18),r=i(105),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a function")}},,function(t,e,i){"use strict";var n=i(28),r=i(26),o=i(18),s=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?s(n[t])||s(r[t]):n[t]&&n[t][e]||r[t]&&r[t][e]}},function(t,e,i){t.exports=i(778)},function(t,e,i){"use strict";var n=i(33),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not an object")}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,i){"use strict";var n=i(213),r=i(38),o=i(137),s=n(n.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?s(t,e):function(){return t.apply(e,arguments)}}},function(t,e,i){"use strict";var n=i(26),r=i(28);t.exports=function(t,e){var i=r[t+"Prototype"],o=i&&i[e];if(o)return o;var s=n[t],a=s&&s.prototype;return a&&a[e]}},function(t,e,i){"use strict";var n=i(87),r=Object;t.exports=function(t){return r(n(t))}},function(t,e,i){"use strict";var n=i(105),r=TypeError;t.exports=function(t){if("object"==typeof t&&"size"in t&&"has"in t&&"get"in t&&"set"in t&&"delete"in t&&"entries"in t)return t;throw new r(n(t)+" is not a map")}},function(t,e,i){var n=i(31),r=i(92);t.exports=i(22)?function(t,e,i){return n.f(t,e,r(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){var n=i(8),r=i(48),o=i(54),s=i(93)("src"),a=i(392),l=(""+a).split("toString");i(58).inspectSource=function(t){return a.call(t)},(t.exports=function(t,e,i,a){var u="function"==typeof i;u&&(o(i,"name")||r(i,"name",e)),t[e]!==i&&(u&&(o(i,s)||r(i,s,t[e]?""+t[e]:l.join(String(e)))),t===n?t[e]=i:a?t[e]?t[e]=i:r(t,e,i):(delete t[e],r(t,e,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[s]||a.call(this)})},function(t,e,i){var n=i(0),r=i(10),o=i(71),s=/"/g,a=function(t,e,i,n){var r=String(o(t)),a="<"+e;return""!==i&&(a+=" "+i+'="'+String(n).replace(s,"&quot;")+'"'),a+">"+r+"</"+e+">"};t.exports=function(t,e){var i={};i[t]=e(a),n(n.P+n.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",i)}},function(t,e,i){"use strict";var n=i(32),r=i(289),o=i(291),s=i(42),a=i(215),l=TypeError,u=Object.defineProperty,c=Object.getOwnPropertyDescriptor;e.f=n?o?function(t,e,i){if(s(t),e=a(e),s(i),"function"==typeof t&&"prototype"===e&&"value"in i&&"writable"in i&&!i.writable){var n=c(t,e);n&&n.writable&&(t[e]=i.value,i={configurable:"configurable"in i?i.configurable:n.configurable,enumerable:"enumerable"in i?i.enumerable:n.enumerable,writable:!1})}return u(t,e,i)}:u:function(t,e,i){if(s(t),e=a(e),s(i),r)try{return u(t,e,i)}catch(t){}if("get"in i||"set"in i)throw new l("Accessors not supported");return"value"in i&&(t[e]=i.value),t}},,function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e){var i={}.hasOwnProperty;t.exports=function(t,e){return i.call(t,e)}},function(t,e,i){var n=i(133),r=i(71);t.exports=function(t){return n(r(t))}},function(t,e,i){var n=i(134),r=i(92),o=i(55),s=i(70),a=i(54),l=i(238),u=Object.getOwnPropertyDescriptor;e.f=i(22)?u:function(t,e){if(t=o(t),e=s(e,!0),l)try{return u(t,e)}catch(t){}if(a(t,e))return r(!n.f.call(t,e),t[e])}},function(t,e,i){var n=i(54),r=i(34),o=i(186)("IE_PROTO"),s=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),n(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?s:null}},function(t,e){var i=t.exports={version:"2.6.11"};"number"==typeof __e&&(__e=i)},function(t,e,i){var n=i(43);t.exports=function(t,e,i){if(n(t),void 0===e)return t;switch(i){case 1:return function(i){return t.call(e,i)};case 2:return function(i,n){return t.call(e,i,n)};case 3:return function(i,n,r){return t.call(e,i,n,r)}}return function(){return t.apply(e,arguments)}}},function(t,e){var i={}.toString;t.exports=function(t){return i.call(t).slice(8,-1)}},function(t,e){var i=Math.ceil,n=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?n:i)(t)}},function(t,e,i){"use strict";var n=i(10);t.exports=function(t,e){return!!t&&n(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,i){"use strict";var n=i(214),r=i(87);t.exports=function(t){return n(r(t))}},function(t,e,i){"use strict";t.exports=!0},function(t,e,i){var n=i(692)();t.exports=n;try{regeneratorRuntime=n}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},function(t,e,i){"use strict";var n=i(44),r=i(27),o=i(42),s=i(105),a=i(317),l=i(81),u=i(36),c=i(318),h=i(176),d=i(319),f=TypeError,p=function(t,e){this.stopped=t,this.result=e},v=p.prototype;t.exports=function(t,e,i){var g,m,y,_,b,x,w,S=i&&i.that,T=!(!i||!i.AS_ENTRIES),E=!(!i||!i.IS_RECORD),C=!(!i||!i.IS_ITERATOR),O=!(!i||!i.INTERRUPTED),M=n(e,S),P=function(t){return g&&d(g,"normal",t),new p(!0,t)},k=function(t){return T?(o(t),O?M(t[0],t[1],P):M(t[0],t[1])):O?M(t,P):M(t)};if(E)g=t.iterator;else if(C)g=t;else{if(!(m=h(t)))throw new f(s(t)+" is not iterable");if(a(m)){for(y=0,_=l(t);_>y;y++)if((b=k(t[y]))&&u(v,b))return b;return new p(!1)}g=c(t,m)}for(x=E?t.next:g.next;!(w=r(x,g)).done;){try{b=k(w.value)}catch(t){d(g,"throw",t)}if("object"==typeof b&&b&&u(v,b))return b}return new p(!1)}},function(t,e,i){t.exports=i(333)},function(t,e,i){"use strict";var n=i(40),r=i(835),o=n("Map");t.exports={Map:o,set:r("set",2),get:r("get",1),has:r("has",1),remove:r("delete",1),proto:o.prototype}},,function(t,e,i){var n=i(11);t.exports=function(t,e){if(!n(t))return t;var i,r;if(e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;if("function"==typeof(i=t.valueOf)&&!n(r=i.call(t)))return r;if(!e&&"function"==typeof(i=t.toString)&&!n(r=i.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,i){var n=i(0),r=i(58),o=i(10);t.exports=function(t,e){var i=(r.Object||{})[t]||Object[t],s={};s[t]=e(i),n(n.S+n.F*o(function(){i(1)}),"Object",s)}},function(t,e,i){var n=i(59),r=i(133),o=i(34),s=i(17),a=i(202);t.exports=function(t,e){var i=1==t,l=2==t,u=3==t,c=4==t,h=6==t,d=5==t||h,f=e||a;return function(e,a,p){for(var v,g,m=o(e),y=r(m),_=n(a,p,3),b=s(y.length),x=0,w=i?f(e,b):l?f(e,0):void 0;b>x;x++)if((d||x in y)&&(g=_(v=y[x],x,m),t))if(i)w[x]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return x;case 2:w.push(v)}else if(c)return!1;return h?-1:u||c?c:w}}},function(t,e,i){"use strict";var n=i(13),r=n({}.toString),o=n("".slice);t.exports=function(t){return o(r(t),8,-1)}},function(t,e,i){"use strict";var n=i(121),r=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},function(t,e,i){"use strict";var n=i(844);t.exports=function(t,e,i){return i?n(t.entries(),function(t){return e(t[1],t[0])},!0):t.forEach(e)}},,function(t,e,i){"use strict";if(i(22)){var n=i(84),r=i(8),o=i(10),s=i(0),a=i(161),l=i(210),u=i(59),c=i(99),h=i(92),d=i(48),f=i(101),p=i(61),v=i(17),g=i(266),m=i(95),y=i(70),_=i(54),b=i(113),x=i(11),w=i(34),S=i(199),T=i(96),E=i(57),C=i(97).f,O=i(201),M=i(93),P=i(16),k=i(73),I=i(151),L=i(136),A=i(204),R=i(115),F=i(156),D=i(98),j=i(203),N=i(255),$=i(31),G=i(56),z=$.f,B=G.f,Y=r.RangeError,V=r.TypeError,W=r.Uint8Array,H=Array.prototype,U=l.ArrayBuffer,X=l.DataView,q=k(0),K=k(2),Z=k(3),J=k(4),Q=k(5),tt=k(6),et=I(!0),it=I(!1),nt=A.values,rt=A.keys,ot=A.entries,st=H.lastIndexOf,at=H.reduce,lt=H.reduceRight,ut=H.join,ct=H.sort,ht=H.slice,dt=H.toString,ft=H.toLocaleString,pt=P("iterator"),vt=P("toStringTag"),gt=M("typed_constructor"),mt=M("def_constructor"),yt=a.CONSTR,_t=a.TYPED,bt=a.VIEW,xt=k(1,function(t,e){return Ct(L(t,t[mt]),e)}),wt=o(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),St=!!W&&!!W.prototype.set&&o(function(){new W(1).set({})}),Tt=function(t,e){var i=p(t);if(i<0||i%e)throw Y("Wrong offset!");return i},Et=function(t){if(x(t)&&_t in t)return t;throw V(t+" is not a typed array!")},Ct=function(t,e){if(!(x(t)&&gt in t))throw V("It is not a typed array constructor!");return new t(e)},Ot=function(t,e){return Mt(L(t,t[mt]),e)},Mt=function(t,e){for(var i=0,n=e.length,r=Ct(t,n);n>i;)r[i]=e[i++];return r},Pt=function(t,e,i){z(t,e,{get:function(){return this._d[i]}})},kt=function(t){var e,i,n,r,o,s,a=w(t),l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,d=O(a);if(void 0!=d&&!S(d)){for(s=d.call(a),n=[],e=0;!(o=s.next()).done;e++)n.push(o.value);a=n}for(h&&l>2&&(c=u(c,arguments[2],2)),e=0,i=v(a.length),r=Ct(this,i);i>e;e++)r[e]=h?c(a[e],e):a[e];return r},It=function(){for(var t=0,e=arguments.length,i=Ct(this,e);e>t;)i[t]=arguments[t++];return i},Lt=!!W&&o(function(){ft.call(new W(1))}),At=function(){return ft.apply(Lt?ht.call(Et(this)):Et(this),arguments)},Rt={copyWithin:function(t,e){return N.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return j.apply(Et(this),arguments)},filter:function(t){return Ot(this,K(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){q(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return it(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return ut.apply(Et(this),arguments)},lastIndexOf:function(t){return st.apply(Et(this),arguments)},map:function(t){return xt(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(Et(this),arguments)},reduceRight:function(t){return lt.apply(Et(this),arguments)},reverse:function(){for(var t,e=Et(this).length,i=Math.floor(e/2),n=0;n<i;)t=this[n],this[n++]=this[--e],this[e]=t;return this},some:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ct.call(Et(this),t)},subarray:function(t,e){var i=Et(this),n=i.length,r=m(t,n);return new(L(i,i[mt]))(i.buffer,i.byteOffset+r*i.BYTES_PER_ELEMENT,v((void 0===e?n:m(e,n))-r))}},Ft=function(t,e){return Ot(this,ht.call(Et(this),t,e))},Dt=function(t){Et(this);var e=Tt(arguments[1],1),i=this.length,n=w(t),r=v(n.length),o=0;if(r+e>i)throw Y("Wrong length!");for(;o<r;)this[e+o]=n[o++]},jt={entries:function(){return ot.call(Et(this))},keys:function(){return rt.call(Et(this))},values:function(){return nt.call(Et(this))}},Nt=function(t,e){return x(t)&&t[_t]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},$t=function(t,e){return Nt(t,e=y(e,!0))?h(2,t[e]):B(t,e)},Gt=function(t,e,i){return!(Nt(t,e=y(e,!0))&&x(i)&&_(i,"value"))||_(i,"get")||_(i,"set")||i.configurable||_(i,"writable")&&!i.writable||_(i,"enumerable")&&!i.enumerable?z(t,e,i):(t[e]=i.value,t)};yt||(G.f=$t,$.f=Gt),s(s.S+s.F*!yt,"Object",{getOwnPropertyDescriptor:$t,defineProperty:Gt}),o(function(){dt.call({})})&&(dt=ft=function(){return ut.call(this)});var zt=f({},Rt);f(zt,jt),d(zt,pt,jt.values),f(zt,{slice:Ft,set:Dt,constructor:function(){},toString:dt,toLocaleString:At}),Pt(zt,"buffer","b"),Pt(zt,"byteOffset","o"),Pt(zt,"byteLength","l"),Pt(zt,"length","e"),z(zt,vt,{get:function(){return this[_t]}}),t.exports=function(t,e,i,l){var u=t+((l=!!l)?"Clamped":"")+"Array",h="get"+t,f="set"+t,p=r[u],m=p||{},y=p&&E(p),_=!p||!a.ABV,w={},S=p&&p.prototype,O=function(t,i){z(t,i,{get:function(){return function(t,i){var n=t._d;return n.v[h](i*e+n.o,wt)}(this,i)},set:function(t){return function(t,i,n){var r=t._d;l&&(n=(n=Math.round(n))<0?0:n>255?255:255&n),r.v[f](i*e+r.o,n,wt)}(this,i,t)},enumerable:!0})};_?(p=i(function(t,i,n,r){c(t,p,u,"_d");var o,s,a,l,h=0,f=0;if(x(i)){if(!(i instanceof U||"ArrayBuffer"==(l=b(i))||"SharedArrayBuffer"==l))return _t in i?Mt(p,i):kt.call(p,i);o=i,f=Tt(n,e);var m=i.byteLength;if(void 0===r){if(m%e)throw Y("Wrong length!");if((s=m-f)<0)throw Y("Wrong length!")}else if((s=v(r)*e)+f>m)throw Y("Wrong length!");a=s/e}else a=g(i),o=new U(s=a*e);for(d(t,"_d",{b:o,o:f,l:s,e:a,v:new X(o)});h<a;)O(t,h++)}),S=p.prototype=T(zt),d(S,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&F(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=i(function(t,i,n,r){var o;return c(t,p,u),x(i)?i instanceof U||"ArrayBuffer"==(o=b(i))||"SharedArrayBuffer"==o?void 0!==r?new m(i,Tt(n,e),r):void 0!==n?new m(i,Tt(n,e)):new m(i):_t in i?Mt(p,i):kt.call(p,i):new m(g(i))}),q(y!==Function.prototype?C(m).concat(C(y)):C(m),function(t){t in p||d(p,t,m[t])}),p.prototype=S,n||(S.constructor=p));var M=S[pt],P=!!M&&("values"==M.name||void 0==M.name),k=jt.values;d(p,gt,!0),d(S,_t,u),d(S,bt,!0),d(S,mt,p),(l?new p(1)[vt]==u:vt in S)||z(S,vt,{get:function(){return u}}),w[u]=p,s(s.G+s.W+s.F*(p!=m),w),s(s.S,u,{BYTES_PER_ELEMENT:e}),s(s.S+s.F*o(function(){m.of.call(p,1)}),u,{from:kt,of:It}),"BYTES_PER_ELEMENT"in S||d(S,"BYTES_PER_ELEMENT",e),s(s.P,u,Rt),D(u),s(s.P+s.F*St,u,{set:Dt}),s(s.P+s.F*!P,u,jt),n||S.toString==dt||(S.toString=dt),s(s.P+s.F*o(function(){new p(1).slice()}),u,{slice:Ft}),s(s.P+s.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){S.toLocaleString.call([1,2])})),u,{toLocaleString:At}),R[u]=P?M:k,n||P||d(S,pt,k)}}else t.exports=function(){}},function(t,e,i){var n=i(261),r=i(0),o=i(132)("metadata"),s=o.store||(o.store=new(i(264))),a=function(t,e,i){var r=s.get(t);if(!r){if(!i)return;s.set(t,r=new n)}var o=r.get(e);if(!o){if(!i)return;r.set(e,o=new n)}return o};t.exports={store:s,map:a,has:function(t,e,i){var n=a(e,i,!1);return void 0!==n&&n.has(t)},get:function(t,e,i){var n=a(e,i,!1);return void 0===n?void 0:n.get(t)},set:function(t,e,i,n){a(i,n,!0).set(t,e)},keys:function(t,e){var i=a(t,e,!1),n=[];return i&&i.forEach(function(t,e){n.push(e)}),n},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){r(r.S,"Reflect",t)}}},function(t,e,i){"use strict";var n=i(32),r=i(51),o=i(103);t.exports=n?function(t,e,i){return r.f(t,e,o(1,i))}:function(t,e,i){return t[e]=i,t}},function(t,e,i){"use strict";var n=i(294);t.exports=function(t){return n(t.length)}},function(t,e,i){"use strict";var n=i(38),r=TypeError;t.exports.f=function(t){return new function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw new r("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)}(t)}},,function(t,e){t.exports=!1},function(t,e,i){var n=i(93)("meta"),r=i(11),o=i(54),s=i(31).f,a=0,l=Object.isExtensible||function(){return!0},u=!i(10)(function(){return l(Object.preventExtensions({}))}),c=function(t){s(t,n,{value:{i:"O"+ ++a,w:{}}})},h=t.exports={KEY:n,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,n)){if(!l(t))return"F";if(!e)return"E";c(t)}return t[n].i},getWeak:function(t,e){if(!o(t,n)){if(!l(t))return!0;if(!e)return!1;c(t)}return t[n].w},onFreeze:function(t){return u&&h.NEED&&l(t)&&!o(t,n)&&c(t),t}}},function(t,e,i){var n=i(16)("unscopables"),r=Array.prototype;void 0==r[n]&&i(48)(r,n,{}),t.exports=function(t){r[n][t]=!0}},function(t,e,i){"use strict";var n=i(118),r=TypeError;t.exports=function(t){if(n(t))throw new r("Can't call method on "+t);return t}},function(t,e,i){"use strict";var n=i(80);t.exports=function(t,e,i,r){return r&&r.enumerable?t[e]=i:n(t,e,i),t}},function(t,e,i){"use strict";var n=i(218),r=i(51).f,o=i(80),s=i(37),a=i(609),l=i(19)("toStringTag");t.exports=function(t,e,i,u){var c=i?t:t&&t.prototype;c&&(s(c,l)||r(c,l,{configurable:!0,value:e}),u&&!n&&o(c,"toString",a))}},function(t,e,i){"use strict";e.a=a;var n=i(145),r=i.n(n),o=i(310),s=i.n(o);function a(t){"@babel/helpers - typeof";return(a="function"==typeof r.a&&"symbol"==typeof s.a?function(t){return typeof t}:function(t){return t&&"function"==typeof r.a&&t.constructor===r.a&&t!==r.a.prototype?"symbol":typeof t})(t)}},function(t,e,i){var n=i(690),r=i(691);t.exports=function(t,e,i){var o=e&&i||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var s=(t=t||{}).random||(t.rng||n)();if(s[6]=15&s[6]|64,s[8]=63&s[8]|128,e)for(var a=0;a<16;++a)e[o+a]=s[a];return e||r(s)}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var i=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++i+n).toString(36))}},function(t,e,i){var n=i(240),r=i(187);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){var n=i(61),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=n(t))<0?r(t+e,0):o(t,e)}},function(t,e,i){var n=i(6),r=i(241),o=i(187),s=i(186)("IE_PROTO"),a=function(){},l=function(){var t,e=i(184)("iframe"),n=o.length;for(e.style.display="none",i(188).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),l=t.F;n--;)delete l.prototype[o[n]];return l()};t.exports=Object.create||function(t,e){var i;return null!==t?(a.prototype=n(t),i=new a,a.prototype=null,i[s]=t):i=l(),void 0===e?i:r(i,e)}},function(t,e,i){var n=i(240),r=i(187).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){"use strict";var n=i(8),r=i(31),o=i(22),s=i(16)("species");t.exports=function(t){var e=n[t];o&&e&&!e[s]&&r.f(e,s,{configurable:!0,get:function(){return this}})}},function(t,e){t.exports=function(t,e,i,n){if(!(t instanceof e)||void 0!==n&&n in t)throw TypeError(i+": incorrect invocation!");return t}},function(t,e,i){var n=i(59),r=i(253),o=i(199),s=i(6),a=i(17),l=i(201),u={},c={};(e=t.exports=function(t,e,i,h,d){var f,p,v,g,m=d?function(){return t}:l(t),y=n(i,h,e?2:1),_=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(f=a(t.length);f>_;_++)if((g=e?y(s(p=t[_])[0],p[1]):y(t[_]))===u||g===c)return g}else for(v=m.call(t);!(p=v.next()).done;)if((g=r(v,y,p.value,e))===u||g===c)return g}).BREAK=u,e.RETURN=c},function(t,e,i){var n=i(49);t.exports=function(t,e,i){for(var r in e)n(t,r,e[r],i);return t}},function(t,e,i){var n=i(11);t.exports=function(t,e){if(!n(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}},function(t,e,i){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,i){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},function(t,e,i){"use strict";var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,i){"use strict";var n,r=i(42),o=i(292),s=i(221),a=i(142),l=i(295),u=i(217),c=i(169)("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"<\/script>"},f=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&n?f(n):((e=u("iframe")).style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):f(n);for(var i=s.length;i--;)delete p.prototype[s[i]];return p()};a[c]=!0,t.exports=Object.create||function(t,e){var i;return null!==t?(h.prototype=r(t),i=new h,h.prototype=null,i[c]=t):i=p(),void 0===e?i:o.f(i,e)}},function(t,e,i){"use strict";var n=i(13);t.exports=n([].slice)},function(t,e,i){"use strict";var n=i(74);t.exports=Array.isArray||function(t){return"Array"===n(t)}},function(t,e,i){var n;"undefined"!=typeof self&&self,n=function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,function(e){return t[e]}.bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i(i.s=8)}([function(t,e,i){var n=i(4),r=i(5),o=i(6);t.exports=function(t){return n(t)||r(t)||o()}},function(t,e){function i(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=i=function(t){return typeof t}:t.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(e)}t.exports=i},function(t,e,i){},function(t,e){t.exports=function(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}},function(t,e){t.exports=function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}},function(t,e){t.exports=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}},function(t,e){t.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(t,e,i){"use strict";var n=i(2);i.n(n).a},function(t,e,i){"use strict";i.r(e);var n=i(0),r=i.n(n),o=i(1),s=i.n(o),a=i(3),l=i.n(a),u={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()}},methods:{maybeAdjustScroll:function(){var t,e=(null===(t=this.$refs.dropdownMenu)||void 0===t?void 0:t.children[this.typeAheadPointer])||!1;if(e){var i=this.getDropdownViewport(),n=e.getBoundingClientRect(),r=n.top,o=n.bottom,s=n.height;if(r<i.top)return this.$refs.dropdownMenu.scrollTop=e.offsetTop;if(o>i.bottom)return this.$refs.dropdownMenu.scrollTop=e.offsetTop-(i.height-s)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},c={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){for(var t=0;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}}},methods:{typeAheadUp:function(){for(var t=this.typeAheadPointer-1;t>=0;t--)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadDown:function(){for(var t=this.typeAheadPointer+1;t<this.filteredOptions.length;t++)if(this.selectable(this.filteredOptions[t])){this.typeAheadPointer=t;break}},typeAheadSelect:function(){var t=this.filteredOptions[this.typeAheadPointer];t&&this.select(t)}}},h={props:{loading:{type:Boolean,default:!1}},data:function(){return{mutableLoading:!1}},watch:{search:function(){this.$emit("search",this.search,this.toggleLoading)},loading:function(t){this.mutableLoading=t}},methods:{toggleLoading:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.mutableLoading=null==t?!this.mutableLoading:t}}};function d(t,e,i,n,r,o,s,a){var l,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=i,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),s?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},u._ssrRegister=l):r&&(l=a?function(){r.call(this,this.$root.$options.shadowRoot)}:r),l)if(u.functional){u._injectStyles=l;var c=u.render;u.render=function(t,e){return l.call(e),c(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,l):[l]}return{exports:t,options:u}}var f={Deselect:d({},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[e("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[],!1,null,null,null).exports,OpenIndicator:d({},function(){var t=this.$createElement,e=this._self._c||t;return e("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[e("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[],!1,null,null,null).exports},p={inserted:function(t,e,i){var n=i.context;if(n.appendToBody){var r=n.$refs.toggle.getBoundingClientRect(),o=r.height,s=r.top,a=r.left,l=r.width,u=window.scrollX||window.pageXOffset,c=window.scrollY||window.pageYOffset;t.unbindPosition=n.calculatePosition(t,n,{width:l+"px",top:u+s+o+"px",left:c+a+"px"}),document.body.appendChild(t)}},unbind:function(t,e,i){i.context.appendToBody&&(t.unbindPosition&&"function"==typeof t.unbindPosition&&t.unbindPosition(),t.parentNode&&t.parentNode.removeChild(t))}},v=0;function g(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),i.push.apply(i,n)}return i}function m(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?g(Object(i),!0).forEach(function(e){l()(t,e,i[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))})}return t}var y={components:m({},f),mixins:[u,c,h],directives:{appendToBody:p},props:{value:{},components:{type:Object,default:function(){return{}}},options:{type:Array,default:function(){return[]}},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},searchable:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},placeholder:{type:String,default:""},transition:{type:String,default:"vs__fade"},clearSearchOnSelect:{type:Boolean,default:!0},closeOnSelect:{type:Boolean,default:!0},label:{type:String,default:"label"},autocomplete:{type:String,default:"off"},reduce:{type:Function,default:function(t){return t}},selectable:{type:Function,default:function(t){return!0}},getOptionLabel:{type:Function,default:function(t){return"object"===s()(t)?t.hasOwnProperty(this.label)?t[this.label]:console.warn('[vue-select warn]: Label key "option.'.concat(this.label,'" does not')+" exist in options object ".concat(JSON.stringify(t),".\n")+"https://vue-select.org/api/props.html#getoptionlabel"):t}},getOptionKey:{type:Function,default:function(t){if("object"!==s()(t))return t;try{return t.hasOwnProperty("id")?t.id:function(t){var e={};return Object.keys(t).sort().forEach(function(i){e[i]=t[i]}),JSON.stringify(e)}(t)}catch(e){return console.warn("[vue-select warn]: Could not stringify this option to generate unique key. Please provide'getOptionKey' prop to return a unique key for each option.\nhttps://vue-select.org/api/props.html#getoptionkey",t,e)}}},onTab:{type:Function,default:function(){this.selectOnTab&&!this.isComposing&&this.typeAheadSelect()}},taggable:{type:Boolean,default:!1},tabindex:{type:Number,default:null},pushTags:{type:Boolean,default:!1},filterable:{type:Boolean,default:!0},filterBy:{type:Function,default:function(t,e,i){return(e||"").toLowerCase().indexOf(i.toLowerCase())>-1}},filter:{type:Function,default:function(t,e){var i=this;return t.filter(function(t){var n=i.getOptionLabel(t);return"number"==typeof n&&(n=n.toString()),i.filterBy(t,n,e)})}},createOption:{type:Function,default:function(t){return"object"===s()(this.optionList[0])?l()({},this.label,t):t}},resetOnOptionsChange:{default:!1,validator:function(t){return["function","boolean"].includes(s()(t))}},clearSearchOnBlur:{type:Function,default:function(t){var e=t.clearSearchOnSelect,i=t.multiple;return e&&!i}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(t,e){return t}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(t,e,i){var n=i.width,r=i.top,o=i.left;t.style.top=r,t.style.left=o,t.style.width=n}}},data:function(){return{uid:++v,search:"",open:!1,isComposing:!1,pushedTags:[],_value:[]}},watch:{options:function(t,e){var i=this;!this.taggable&&("function"==typeof i.resetOnOptionsChange?i.resetOnOptionsChange(t,e,i.selectedValue):i.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:function(t){this.isTrackingValues&&this.setInternalValueFromOptions(t)},multiple:function(){this.clearSelection()},open:function(t){this.$emit(t?"open":"close")}},created:function(){this.mutableLoading=this.loading,void 0!==this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value),this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(t){var e=this;Array.isArray(t)?this.$data._value=t.map(function(t){return e.findOptionFromReducedValue(t)}):this.$data._value=this.findOptionFromReducedValue(t)},select:function(t){this.isOptionSelected(t)||(this.taggable&&!this.optionExists(t)&&this.$emit("option:created",t),this.multiple&&(t=this.selectedValue.concat(t)),this.updateValue(t)),this.onAfterSelect(t)},deselect:function(t){var e=this;this.updateValue(this.selectedValue.filter(function(i){return!e.optionComparator(i,t)}))},clearSelection:function(){this.updateValue(this.multiple?[]:null)},onAfterSelect:function(t){this.closeOnSelect&&(this.open=!this.open,this.searchEl.blur()),this.clearSearchOnSelect&&(this.search="")},updateValue:function(t){var e=this;void 0===this.value&&(this.$data._value=t),null!==t&&(t=Array.isArray(t)?t.map(function(t){return e.reduce(t)}):this.reduce(t)),this.$emit("input",t)},toggleDropdown:function(t){var e=t.target!==this.$refs.search;e&&t.preventDefault(),[].concat(r()(this.$refs.deselectButtons||[]),r()([this.$refs.clearButton]||!1)).some(function(e){return e.contains(t.target)||e===t.target})?t.preventDefault():this.open&&e?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(t){var e=this;return this.selectedValue.some(function(i){return e.optionComparator(i,t)})},optionComparator:function(t,e){return this.getOptionKey(t)===this.getOptionKey(e)},findOptionFromReducedValue:function(t){var e=this,i=[].concat(r()(this.options),r()(this.pushedTags)).filter(function(i){return JSON.stringify(e.reduce(i))===JSON.stringify(t)});return 1===i.length?i[0]:i.find(function(t){return e.optionComparator(t,e.$data._value)})||t},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var t=null;this.multiple&&(t=r()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(t)}},optionExists:function(t){var e=this;return this.optionList.some(function(i){return e.optionComparator(i,t)})},normalizeOptionForSlot:function(t){return"object"===s()(t)?t:l()({},this.label,t)},pushTag:function(t){this.pushedTags.push(t)},onEscape:function(){this.search.length?this.search="":this.searchEl.blur()},onSearchBlur:function(){if(!this.mousedown||this.searching){var t=this.clearSearchOnSelect,e=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:t,multiple:e})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,0!==this.search.length||0!==this.options.length||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onSearchKeyDown:function(t){var e=this,i=function(t){return t.preventDefault(),!e.isComposing&&e.typeAheadSelect()},n={8:function(t){return e.maybeDeleteValue()},9:function(t){return e.onTab()},27:function(t){return e.onEscape()},38:function(t){return t.preventDefault(),e.typeAheadUp()},40:function(t){return t.preventDefault(),e.typeAheadDown()}};this.selectOnKeyCodes.forEach(function(t){return n[t]=i});var r=this.mapKeydown(n,this);if("function"==typeof r[t.keyCode])return r[t.keyCode](t)}},computed:{isTrackingValues:function(){return void 0===this.value||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var t=this.value;return this.isTrackingValues&&(t=this.$data._value),t?[].concat(t):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var t=this,e={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:m({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return t.isComposing=!0},compositionend:function(){return t.isComposing=!1},keydown:this.onSearchKeyDown,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(e){return t.search=e.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.loading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:e,listFooter:e,header:m({},e,{deselect:this.deselect}),footer:m({},e,{deselect:this.deselect})}},childComponents:function(){return m({},f,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return!this.noDrop&&this.open&&!this.mutableLoading},searchPlaceholder:function(){if(this.isValueEmpty&&this.placeholder)return this.placeholder},filteredOptions:function(){var t=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return t;var e=this.search.length?this.filter(t,this.search,this):t;if(this.taggable&&this.search.length){var i=this.createOption(this.search);this.optionExists(i)||e.unshift(i)}return e},isValueEmpty:function(){return 0===this.selectedValue.length},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}}},_=(i(7),d(y,function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"v-select",class:t.stateClasses,attrs:{dir:t.dir}},[t._t("header",null,null,t.scope.header),t._v(" "),i("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+t.uid+"__combobox",role:"combobox","aria-expanded":t.dropdownOpen.toString(),"aria-owns":"vs"+t.uid+"__listbox","aria-label":"Search for option"},on:{mousedown:function(e){return t.toggleDropdown(e)}}},[i("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[t._l(t.selectedValue,function(e){return t._t("selected-option-container",[i("span",{key:t.getOptionKey(e),staticClass:"vs__selected"},[t._t("selected-option",[t._v("\n            "+t._s(t.getOptionLabel(e))+"\n          ")],null,t.normalizeOptionForSlot(e)),t._v(" "),t.multiple?i("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:t.disabled,type:"button",title:"Deselect "+t.getOptionLabel(e),"aria-label":"Deselect "+t.getOptionLabel(e)},on:{click:function(i){return t.deselect(e)}}},[i(t.childComponents.Deselect,{tag:"component"})],1):t._e()],2)],{option:t.normalizeOptionForSlot(e),deselect:t.deselect,multiple:t.multiple,disabled:t.disabled})}),t._v(" "),t._t("search",[i("input",t._g(t._b({staticClass:"vs__search"},"input",t.scope.search.attributes,!1),t.scope.search.events))],null,t.scope.search)],2),t._v(" "),i("div",{ref:"actions",staticClass:"vs__actions"},[i("button",{directives:[{name:"show",rawName:"v-show",value:t.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:t.disabled,type:"button",title:"Clear Selected","aria-label":"Clear Selected"},on:{click:t.clearSelection}},[i(t.childComponents.Deselect,{tag:"component"})],1),t._v(" "),t._t("open-indicator",[t.noDrop?t._e():i(t.childComponents.OpenIndicator,t._b({tag:"component"},"component",t.scope.openIndicator.attributes,!1))],null,t.scope.openIndicator),t._v(" "),t._t("spinner",[i("div",{directives:[{name:"show",rawName:"v-show",value:t.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[t._v("Loading...")])],null,t.scope.spinner)],2)]),t._v(" "),i("transition",{attrs:{name:t.transition}},[t.dropdownOpen?i("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs"+t.uid+"__listbox",role:"listbox"},on:{mousedown:function(e){return e.preventDefault(),t.onMousedown(e)},mouseup:t.onMouseUp}},[t._t("list-header",null,null,t.scope.listHeader),t._v(" "),t._l(t.filteredOptions,function(e,n){return i("li",{key:t.getOptionKey(e),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--selected":t.isOptionSelected(e),"vs__dropdown-option--highlight":n===t.typeAheadPointer,"vs__dropdown-option--disabled":!t.selectable(e)},attrs:{role:"option",id:"vs"+t.uid+"__option-"+n,"aria-selected":n===t.typeAheadPointer||null},on:{mouseover:function(i){t.selectable(e)&&(t.typeAheadPointer=n)},mousedown:function(i){i.preventDefault(),i.stopPropagation(),t.selectable(e)&&t.select(e)}}},[t._t("option",[t._v("\n          "+t._s(t.getOptionLabel(e))+"\n        ")],null,t.normalizeOptionForSlot(e))],2)}),t._v(" "),0===t.filteredOptions.length?i("li",{staticClass:"vs__no-options"},[t._t("no-options",[t._v("Sorry, no matching options.")],null,t.scope.noOptions)],2):t._e(),t._v(" "),t._t("list-footer",null,null,t.scope.listFooter)],2):i("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+t.uid+"__listbox",role:"listbox"}})]),t._v(" "),t._t("footer",null,null,t.scope.footer)],2)},[],!1,null,null,null).exports),b={ajax:h,pointer:c,pointerScroll:u};i.d(e,"VueSelect",function(){return _}),i.d(e,"mixins",function(){return b}),e.default=_}])},t.exports=n()},function(t,e,i){(function(t){var e;e=function(){"use strict";var e,n;function r(){return e.apply(null,arguments)}function o(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t){return void 0===t}function l(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function u(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function c(t,e){var i,n=[];for(i=0;i<t.length;++i)n.push(e(t[i],i));return n}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function d(t,e){for(var i in e)h(e,i)&&(t[i]=e[i]);return h(e,"toString")&&(t.toString=e.toString),h(e,"valueOf")&&(t.valueOf=e.valueOf),t}function f(t,e,i,n){return Me(t,e,i,n,!0).utc()}function p(t){return null==t._pf&&(t._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],meridiem:null,rfc2822:!1,weekdayMismatch:!1}),t._pf}function v(t){if(null==t._isValid){var e=p(t),i=n.call(e.parsedDateParts,function(t){return null!=t}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&i);if(t._strict&&(r=r&&0===e.charsLeftOver&&0===e.unusedTokens.length&&void 0===e.bigHour),null!=Object.isFrozen&&Object.isFrozen(t))return r;t._isValid=r}return t._isValid}function g(t){var e=f(NaN);return null!=t?d(p(e),t):p(e).userInvalidated=!0,e}n=Array.prototype.some?Array.prototype.some:function(t){for(var e=Object(this),i=e.length>>>0,n=0;n<i;n++)if(n in e&&t.call(this,e[n],n,e))return!0;return!1};var m=r.momentProperties=[];function y(t,e){var i,n,r;if(a(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),a(e._i)||(t._i=e._i),a(e._f)||(t._f=e._f),a(e._l)||(t._l=e._l),a(e._strict)||(t._strict=e._strict),a(e._tzm)||(t._tzm=e._tzm),a(e._isUTC)||(t._isUTC=e._isUTC),a(e._offset)||(t._offset=e._offset),a(e._pf)||(t._pf=p(e)),a(e._locale)||(t._locale=e._locale),0<m.length)for(i=0;i<m.length;i++)a(r=e[n=m[i]])||(t[n]=r);return t}var _=!1;function b(t){y(this,t),this._d=new Date(null!=t._d?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===_&&(_=!0,r.updateOffset(this),_=!1)}function x(t){return t instanceof b||null!=t&&null!=t._isAMomentObject}function w(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function S(t){var e=+t,i=0;return 0!==e&&isFinite(e)&&(i=w(e)),i}function T(t,e,i){var n,r=Math.min(t.length,e.length),o=Math.abs(t.length-e.length),s=0;for(n=0;n<r;n++)(i&&t[n]!==e[n]||!i&&S(t[n])!==S(e[n]))&&s++;return s+o}function E(t){!1===r.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+t)}function C(t,e){var i=!0;return d(function(){if(null!=r.deprecationHandler&&r.deprecationHandler(null,t),i){for(var n,o=[],s=0;s<arguments.length;s++){if(n="","object"==typeof arguments[s]){for(var a in n+="\n["+s+"] ",arguments[0])n+=a+": "+arguments[0][a]+", ";n=n.slice(0,-2)}else n=arguments[s];o.push(n)}E(t+"\nArguments: "+Array.prototype.slice.call(o).join("")+"\n"+(new Error).stack),i=!1}return e.apply(this,arguments)},e)}var O,M={};function P(t,e){null!=r.deprecationHandler&&r.deprecationHandler(t,e),M[t]||(E(e),M[t]=!0)}function k(t){return t instanceof Function||"[object Function]"===Object.prototype.toString.call(t)}function I(t,e){var i,n=d({},t);for(i in e)h(e,i)&&(s(t[i])&&s(e[i])?(n[i]={},d(n[i],t[i]),d(n[i],e[i])):null!=e[i]?n[i]=e[i]:delete n[i]);for(i in t)h(t,i)&&!h(e,i)&&s(t[i])&&(n[i]=d({},n[i]));return n}function L(t){null!=t&&this.set(t)}r.suppressDeprecationWarnings=!1,r.deprecationHandler=null,O=Object.keys?Object.keys:function(t){var e,i=[];for(e in t)h(t,e)&&i.push(e);return i};var A={};function R(t,e){var i=t.toLowerCase();A[i]=A[i+"s"]=A[e]=t}function F(t){return"string"==typeof t?A[t]||A[t.toLowerCase()]:void 0}function D(t){var e,i,n={};for(i in t)h(t,i)&&(e=F(i))&&(n[e]=t[i]);return n}var j={};function N(t,e){j[t]=e}function $(t,e,i){var n=""+Math.abs(t),r=e-n.length;return(0<=t?i?"+":"":"-")+Math.pow(10,Math.max(0,r)).toString().substr(1)+n}var G=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|YYYYYY|YYYYY|YYYY|YY|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,z=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,B={},Y={};function V(t,e,i,n){var r=n;"string"==typeof n&&(r=function(){return this[n]()}),t&&(Y[t]=r),e&&(Y[e[0]]=function(){return $(r.apply(this,arguments),e[1],e[2])}),i&&(Y[i]=function(){return this.localeData().ordinal(r.apply(this,arguments),t)})}function W(t,e){return t.isValid()?(e=H(e,t.localeData()),B[e]=B[e]||function(t){var e,i,n,r=t.match(G);for(e=0,i=r.length;e<i;e++)Y[r[e]]?r[e]=Y[r[e]]:r[e]=(n=r[e]).match(/\[[\s\S]/)?n.replace(/^\[|\]$/g,""):n.replace(/\\/g,"");return function(e){var n,o="";for(n=0;n<i;n++)o+=k(r[n])?r[n].call(e,t):r[n];return o}}(e),B[e](t)):t.localeData().invalidDate()}function H(t,e){var i=5;function n(t){return e.longDateFormat(t)||t}for(z.lastIndex=0;0<=i&&z.test(t);)t=t.replace(z,n),z.lastIndex=0,i-=1;return t}var U=/\d/,X=/\d\d/,q=/\d{3}/,K=/\d{4}/,Z=/[+-]?\d{6}/,J=/\d\d?/,Q=/\d\d\d\d?/,tt=/\d\d\d\d\d\d?/,et=/\d{1,3}/,it=/\d{1,4}/,nt=/[+-]?\d{1,6}/,rt=/\d+/,ot=/[+-]?\d+/,st=/Z|[+-]\d\d:?\d\d/gi,at=/Z|[+-]\d\d(?::?\d\d)?/gi,lt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,ut={};function ct(t,e,i){ut[t]=k(e)?e:function(t,n){return t&&i?i:e}}function ht(t,e){return h(ut,t)?ut[t](e._strict,e._locale):new RegExp(dt(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,e,i,n,r){return e||i||n||r})))}function dt(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var ft={};function pt(t,e){var i,n=e;for("string"==typeof t&&(t=[t]),l(e)&&(n=function(t,i){i[e]=S(t)}),i=0;i<t.length;i++)ft[t[i]]=n}function vt(t,e){pt(t,function(t,i,n,r){n._w=n._w||{},e(t,n._w,n,r)})}var gt=0,mt=1,yt=2,_t=3,bt=4,xt=5,wt=6,St=7,Tt=8;function Et(t){return Ct(t)?366:365}function Ct(t){return t%4==0&&t%100!=0||t%400==0}V("Y",0,0,function(){var t=this.year();return t<=9999?""+t:"+"+t}),V(0,["YY",2],0,function(){return this.year()%100}),V(0,["YYYY",4],0,"year"),V(0,["YYYYY",5],0,"year"),V(0,["YYYYYY",6,!0],0,"year"),R("year","y"),N("year",1),ct("Y",ot),ct("YY",J,X),ct("YYYY",it,K),ct("YYYYY",nt,Z),ct("YYYYYY",nt,Z),pt(["YYYYY","YYYYYY"],gt),pt("YYYY",function(t,e){e[gt]=2===t.length?r.parseTwoDigitYear(t):S(t)}),pt("YY",function(t,e){e[gt]=r.parseTwoDigitYear(t)}),pt("Y",function(t,e){e[gt]=parseInt(t,10)}),r.parseTwoDigitYear=function(t){return S(t)+(68<S(t)?1900:2e3)};var Ot,Mt=Pt("FullYear",!0);function Pt(t,e){return function(i){return null!=i?(It(this,t,i),r.updateOffset(this,e),this):kt(this,t)}}function kt(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function It(t,e,i){t.isValid()&&!isNaN(i)&&("FullYear"===e&&Ct(t.year())&&1===t.month()&&29===t.date()?t._d["set"+(t._isUTC?"UTC":"")+e](i,t.month(),Lt(i,t.month())):t._d["set"+(t._isUTC?"UTC":"")+e](i))}function Lt(t,e){if(isNaN(t)||isNaN(e))return NaN;var i=(e%12+12)%12;return t+=(e-i)/12,1===i?Ct(t)?29:28:31-i%7%2}Ot=Array.prototype.indexOf?Array.prototype.indexOf:function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1},V("M",["MM",2],"Mo",function(){return this.month()+1}),V("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),V("MMMM",0,0,function(t){return this.localeData().months(this,t)}),R("month","M"),N("month",8),ct("M",J),ct("MM",J,X),ct("MMM",function(t,e){return e.monthsShortRegex(t)}),ct("MMMM",function(t,e){return e.monthsRegex(t)}),pt(["M","MM"],function(t,e){e[mt]=S(t)-1}),pt(["MMM","MMMM"],function(t,e,i,n){var r=i._locale.monthsParse(t,n,i._strict);null!=r?e[mt]=r:p(i).invalidMonth=t});var At=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,Rt="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),Ft="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_");function Dt(t,e){var i;if(!t.isValid())return t;if("string"==typeof e)if(/^\d+$/.test(e))e=S(e);else if(!l(e=t.localeData().monthsParse(e)))return t;return i=Math.min(t.date(),Lt(t.year(),e)),t._d["set"+(t._isUTC?"UTC":"")+"Month"](e,i),t}function jt(t){return null!=t?(Dt(this,t),r.updateOffset(this,!0),this):kt(this,"Month")}var Nt=lt,$t=lt;function Gt(){function t(t,e){return e.length-t.length}var e,i,n=[],r=[],o=[];for(e=0;e<12;e++)i=f([2e3,e]),n.push(this.monthsShort(i,"")),r.push(this.months(i,"")),o.push(this.months(i,"")),o.push(this.monthsShort(i,""));for(n.sort(t),r.sort(t),o.sort(t),e=0;e<12;e++)n[e]=dt(n[e]),r[e]=dt(r[e]);for(e=0;e<24;e++)o[e]=dt(o[e]);this._monthsRegex=new RegExp("^("+o.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+n.join("|")+")","i")}function zt(t){var e;if(t<100&&0<=t){var i=Array.prototype.slice.call(arguments);i[0]=t+400,e=new Date(Date.UTC.apply(null,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)}else e=new Date(Date.UTC.apply(null,arguments));return e}function Bt(t,e,i){var n=7+e-i;return-(7+zt(t,0,n).getUTCDay()-e)%7+n-1}function Yt(t,e,i,n,r){var o,s,a=1+7*(e-1)+(7+i-n)%7+Bt(t,n,r);return s=a<=0?Et(o=t-1)+a:a>Et(t)?(o=t+1,a-Et(t)):(o=t,a),{year:o,dayOfYear:s}}function Vt(t,e,i){var n,r,o=Bt(t.year(),e,i),s=Math.floor((t.dayOfYear()-o-1)/7)+1;return s<1?n=s+Wt(r=t.year()-1,e,i):s>Wt(t.year(),e,i)?(n=s-Wt(t.year(),e,i),r=t.year()+1):(r=t.year(),n=s),{week:n,year:r}}function Wt(t,e,i){var n=Bt(t,e,i),r=Bt(t+1,e,i);return(Et(t)-n+r)/7}function Ht(t,e){return t.slice(e,7).concat(t.slice(0,e))}V("w",["ww",2],"wo","week"),V("W",["WW",2],"Wo","isoWeek"),R("week","w"),R("isoWeek","W"),N("week",5),N("isoWeek",5),ct("w",J),ct("ww",J,X),ct("W",J),ct("WW",J,X),vt(["w","ww","W","WW"],function(t,e,i,n){e[n.substr(0,1)]=S(t)}),V("d",0,"do","day"),V("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),V("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),V("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),V("e",0,0,"weekday"),V("E",0,0,"isoWeekday"),R("day","d"),R("weekday","e"),R("isoWeekday","E"),N("day",11),N("weekday",11),N("isoWeekday",11),ct("d",J),ct("e",J),ct("E",J),ct("dd",function(t,e){return e.weekdaysMinRegex(t)}),ct("ddd",function(t,e){return e.weekdaysShortRegex(t)}),ct("dddd",function(t,e){return e.weekdaysRegex(t)}),vt(["dd","ddd","dddd"],function(t,e,i,n){var r=i._locale.weekdaysParse(t,n,i._strict);null!=r?e.d=r:p(i).invalidWeekday=t}),vt(["d","e","E"],function(t,e,i,n){e[n]=S(t)});var Ut="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Xt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),qt="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Kt=lt,Zt=lt,Jt=lt;function Qt(){function t(t,e){return e.length-t.length}var e,i,n,r,o,s=[],a=[],l=[],u=[];for(e=0;e<7;e++)i=f([2e3,1]).day(e),n=this.weekdaysMin(i,""),r=this.weekdaysShort(i,""),o=this.weekdays(i,""),s.push(n),a.push(r),l.push(o),u.push(n),u.push(r),u.push(o);for(s.sort(t),a.sort(t),l.sort(t),u.sort(t),e=0;e<7;e++)a[e]=dt(a[e]),l[e]=dt(l[e]),u[e]=dt(u[e]);this._weekdaysRegex=new RegExp("^("+u.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function te(){return this.hours()%12||12}function ee(t,e){V(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}function ie(t,e){return e._meridiemParse}V("H",["HH",2],0,"hour"),V("h",["hh",2],0,te),V("k",["kk",2],0,function(){return this.hours()||24}),V("hmm",0,0,function(){return""+te.apply(this)+$(this.minutes(),2)}),V("hmmss",0,0,function(){return""+te.apply(this)+$(this.minutes(),2)+$(this.seconds(),2)}),V("Hmm",0,0,function(){return""+this.hours()+$(this.minutes(),2)}),V("Hmmss",0,0,function(){return""+this.hours()+$(this.minutes(),2)+$(this.seconds(),2)}),ee("a",!0),ee("A",!1),R("hour","h"),N("hour",13),ct("a",ie),ct("A",ie),ct("H",J),ct("h",J),ct("k",J),ct("HH",J,X),ct("hh",J,X),ct("kk",J,X),ct("hmm",Q),ct("hmmss",tt),ct("Hmm",Q),ct("Hmmss",tt),pt(["H","HH"],_t),pt(["k","kk"],function(t,e,i){var n=S(t);e[_t]=24===n?0:n}),pt(["a","A"],function(t,e,i){i._isPm=i._locale.isPM(t),i._meridiem=t}),pt(["h","hh"],function(t,e,i){e[_t]=S(t),p(i).bigHour=!0}),pt("hmm",function(t,e,i){var n=t.length-2;e[_t]=S(t.substr(0,n)),e[bt]=S(t.substr(n)),p(i).bigHour=!0}),pt("hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[_t]=S(t.substr(0,n)),e[bt]=S(t.substr(n,2)),e[xt]=S(t.substr(r)),p(i).bigHour=!0}),pt("Hmm",function(t,e,i){var n=t.length-2;e[_t]=S(t.substr(0,n)),e[bt]=S(t.substr(n))}),pt("Hmmss",function(t,e,i){var n=t.length-4,r=t.length-2;e[_t]=S(t.substr(0,n)),e[bt]=S(t.substr(n,2)),e[xt]=S(t.substr(r))});var ne,re=Pt("Hours",!0),oe={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:Rt,monthsShort:Ft,week:{dow:0,doy:6},weekdays:Ut,weekdaysMin:qt,weekdaysShort:Xt,meridiemParse:/[ap]\.?m?\.?/i},se={},ae={};function le(t){return t?t.toLowerCase().replace("_","-"):t}function ue(e){var n=null;if(!se[e]&&void 0!==t&&t&&t.exports)try{n=ne._abbr,i(949)("./"+e),ce(n)}catch(e){}return se[e]}function ce(t,e){var i;return t&&((i=a(e)?de(t):he(t,e))?ne=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),ne._abbr}function he(t,e){if(null===e)return delete se[t],null;var i,n=oe;if(e.abbr=t,null!=se[t])P("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),n=se[t]._config;else if(null!=e.parentLocale)if(null!=se[e.parentLocale])n=se[e.parentLocale]._config;else{if(null==(i=ue(e.parentLocale)))return ae[e.parentLocale]||(ae[e.parentLocale]=[]),ae[e.parentLocale].push({name:t,config:e}),null;n=i._config}return se[t]=new L(I(n,e)),ae[t]&&ae[t].forEach(function(t){he(t.name,t.config)}),ce(t),se[t]}function de(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return ne;if(!o(t)){if(e=ue(t))return e;t=[t]}return function(t){for(var e,i,n,r,o=0;o<t.length;){for(e=(r=le(t[o]).split("-")).length,i=(i=le(t[o+1]))?i.split("-"):null;0<e;){if(n=ue(r.slice(0,e).join("-")))return n;if(i&&i.length>=e&&T(r,i,!0)>=e-1)break;e--}o++}return ne}(t)}function fe(t){var e,i=t._a;return i&&-2===p(t).overflow&&(e=i[mt]<0||11<i[mt]?mt:i[yt]<1||i[yt]>Lt(i[gt],i[mt])?yt:i[_t]<0||24<i[_t]||24===i[_t]&&(0!==i[bt]||0!==i[xt]||0!==i[wt])?_t:i[bt]<0||59<i[bt]?bt:i[xt]<0||59<i[xt]?xt:i[wt]<0||999<i[wt]?wt:-1,p(t)._overflowDayOfYear&&(e<gt||yt<e)&&(e=yt),p(t)._overflowWeeks&&-1===e&&(e=St),p(t)._overflowWeekday&&-1===e&&(e=Tt),p(t).overflow=e),t}function pe(t,e,i){return null!=t?t:null!=e?e:i}function ve(t){var e,i,n,o,s,a=[];if(!t._d){var l,u;for(l=t,u=new Date(r.now()),n=l._useUTC?[u.getUTCFullYear(),u.getUTCMonth(),u.getUTCDate()]:[u.getFullYear(),u.getMonth(),u.getDate()],t._w&&null==t._a[yt]&&null==t._a[mt]&&function(t){var e,i,n,r,o,s,a,l;if(null!=(e=t._w).GG||null!=e.W||null!=e.E)o=1,s=4,i=pe(e.GG,t._a[gt],Vt(Pe(),1,4).year),n=pe(e.W,1),((r=pe(e.E,1))<1||7<r)&&(l=!0);else{o=t._locale._week.dow,s=t._locale._week.doy;var u=Vt(Pe(),o,s);i=pe(e.gg,t._a[gt],u.year),n=pe(e.w,u.week),null!=e.d?((r=e.d)<0||6<r)&&(l=!0):null!=e.e?(r=e.e+o,(e.e<0||6<e.e)&&(l=!0)):r=o}n<1||n>Wt(i,o,s)?p(t)._overflowWeeks=!0:null!=l?p(t)._overflowWeekday=!0:(a=Yt(i,n,r,o,s),t._a[gt]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=pe(t._a[gt],n[gt]),(t._dayOfYear>Et(s)||0===t._dayOfYear)&&(p(t)._overflowDayOfYear=!0),i=zt(s,0,t._dayOfYear),t._a[mt]=i.getUTCMonth(),t._a[yt]=i.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=n[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[_t]&&0===t._a[bt]&&0===t._a[xt]&&0===t._a[wt]&&(t._nextDay=!0,t._a[_t]=0),t._d=(t._useUTC?zt:function(t,e,i,n,r,o,s){var a;return t<100&&0<=t?(a=new Date(t+400,e,i,n,r,o,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,i,n,r,o,s),a}).apply(null,a),o=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[_t]=24),t._w&&void 0!==t._w.d&&t._w.d!==o&&(p(t).weekdayMismatch=!0)}}var ge=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,me=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([\+\-]\d\d(?::?\d\d)?|\s*Z)?)?$/,ye=/Z|[+-]\d\d(?::?\d\d)?/,_e=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/]],be=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xe=/^\/?Date\((\-?\d+)/i;function we(t){var e,i,n,r,o,s,a=t._i,l=ge.exec(a)||me.exec(a);if(l){for(p(t).iso=!0,e=0,i=_e.length;e<i;e++)if(_e[e][1].exec(l[1])){r=_e[e][0],n=!1!==_e[e][2];break}if(null==r)return void(t._isValid=!1);if(l[3]){for(e=0,i=be.length;e<i;e++)if(be[e][1].exec(l[3])){o=(l[2]||" ")+be[e][0];break}if(null==o)return void(t._isValid=!1)}if(!n&&null!=o)return void(t._isValid=!1);if(l[4]){if(!ye.exec(l[4]))return void(t._isValid=!1);s="Z"}t._f=r+(o||"")+(s||""),Ce(t)}else t._isValid=!1}var Se=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/;var Te={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function Ee(t){var e,i,n,r=Se.exec(t._i.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(r){var o=function(t,e,i,n,r,o){var s=[function(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}(t),Ft.indexOf(e),parseInt(i,10),parseInt(n,10),parseInt(r,10)];return o&&s.push(parseInt(o,10)),s}(r[4],r[3],r[2],r[5],r[6],r[7]);if(i=o,n=t,(e=r[1])&&Xt.indexOf(e)!==new Date(i[0],i[1],i[2]).getDay()&&(p(n).weekdayMismatch=!0,!(n._isValid=!1)))return;t._a=o,t._tzm=function(t,e,i){if(t)return Te[t];if(e)return 0;var n=parseInt(i,10),r=n%100;return(n-r)/100*60+r}(r[8],r[9],r[10]),t._d=zt.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),p(t).rfc2822=!0}else t._isValid=!1}function Ce(t){if(t._f!==r.ISO_8601)if(t._f!==r.RFC_2822){t._a=[],p(t).empty=!0;var e,i,n,o,s,a,l,u,c=""+t._i,d=c.length,f=0;for(n=H(t._f,t._locale).match(G)||[],e=0;e<n.length;e++)o=n[e],(i=(c.match(ht(o,t))||[])[0])&&(0<(s=c.substr(0,c.indexOf(i))).length&&p(t).unusedInput.push(s),c=c.slice(c.indexOf(i)+i.length),f+=i.length),Y[o]?(i?p(t).empty=!1:p(t).unusedTokens.push(o),a=o,u=t,null!=(l=i)&&h(ft,a)&&ft[a](l,u._a,u,a)):t._strict&&!i&&p(t).unusedTokens.push(o);p(t).charsLeftOver=d-f,0<c.length&&p(t).unusedInput.push(c),t._a[_t]<=12&&!0===p(t).bigHour&&0<t._a[_t]&&(p(t).bigHour=void 0),p(t).parsedDateParts=t._a.slice(0),p(t).meridiem=t._meridiem,t._a[_t]=function(t,e,i){var n;return null==i?e:null!=t.meridiemHour?t.meridiemHour(e,i):(null!=t.isPM&&((n=t.isPM(i))&&e<12&&(e+=12),n||12!==e||(e=0)),e)}(t._locale,t._a[_t],t._meridiem),ve(t),fe(t)}else Ee(t);else we(t)}function Oe(t){var e,i,n,h,f=t._i,m=t._f;return t._locale=t._locale||de(t._l),null===f||void 0===m&&""===f?g({nullInput:!0}):("string"==typeof f&&(t._i=f=t._locale.preparse(f)),x(f)?new b(fe(f)):(u(f)?t._d=f:o(m)?function(t){var e,i,n,r,o;if(0===t._f.length)return p(t).invalidFormat=!0,t._d=new Date(NaN);for(r=0;r<t._f.length;r++)o=0,e=y({},t),null!=t._useUTC&&(e._useUTC=t._useUTC),e._f=t._f[r],Ce(e),v(e)&&(o+=p(e).charsLeftOver,o+=10*p(e).unusedTokens.length,p(e).score=o,(null==n||o<n)&&(n=o,i=e));d(t,i||e)}(t):m?Ce(t):a(i=(e=t)._i)?e._d=new Date(r.now()):u(i)?e._d=new Date(i.valueOf()):"string"==typeof i?(n=e,null===(h=xe.exec(n._i))?(we(n),!1===n._isValid&&(delete n._isValid,Ee(n),!1===n._isValid&&(delete n._isValid,r.createFromInputFallback(n)))):n._d=new Date(+h[1])):o(i)?(e._a=c(i.slice(0),function(t){return parseInt(t,10)}),ve(e)):s(i)?function(t){if(!t._d){var e=D(t._i);t._a=c([e.year,e.month,e.day||e.date,e.hour,e.minute,e.second,e.millisecond],function(t){return t&&parseInt(t,10)}),ve(t)}}(e):l(i)?e._d=new Date(i):r.createFromInputFallback(e),v(t)||(t._d=null),t))}function Me(t,e,i,n,r){var a,l={};return!0!==i&&!1!==i||(n=i,i=void 0),(s(t)&&function(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(t.hasOwnProperty(e))return!1;return!0}(t)||o(t)&&0===t.length)&&(t=void 0),l._isAMomentObject=!0,l._useUTC=l._isUTC=r,l._l=i,l._i=t,l._f=e,l._strict=n,(a=new b(fe(Oe(l))))._nextDay&&(a.add(1,"d"),a._nextDay=void 0),a}function Pe(t,e,i,n){return Me(t,e,i,n,!1)}r.createFromInputFallback=C("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged and will be removed in an upcoming major release. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))}),r.ISO_8601=function(){},r.RFC_2822=function(){};var ke=C("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:g()}),Ie=C("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=Pe.apply(null,arguments);return this.isValid()&&t.isValid()?this<t?this:t:g()});function Le(t,e){var i,n;if(1===e.length&&o(e[0])&&(e=e[0]),!e.length)return Pe();for(i=e[0],n=1;n<e.length;++n)e[n].isValid()&&!e[n][t](i)||(i=e[n]);return i}var Ae=["year","quarter","month","week","day","hour","minute","second","millisecond"];function Re(t){var e=D(t),i=e.year||0,n=e.quarter||0,r=e.month||0,o=e.week||e.isoWeek||0,s=e.day||0,a=e.hour||0,l=e.minute||0,u=e.second||0,c=e.millisecond||0;this._isValid=function(t){for(var e in t)if(-1===Ot.call(Ae,e)||null!=t[e]&&isNaN(t[e]))return!1;for(var i=!1,n=0;n<Ae.length;++n)if(t[Ae[n]]){if(i)return!1;parseFloat(t[Ae[n]])!==S(t[Ae[n]])&&(i=!0)}return!0}(e),this._milliseconds=+c+1e3*u+6e4*l+1e3*a*60*60,this._days=+s+7*o,this._months=+r+3*n+12*i,this._data={},this._locale=de(),this._bubble()}function Fe(t){return t instanceof Re}function De(t){return t<0?-1*Math.round(-1*t):Math.round(t)}function je(t,e){V(t,0,0,function(){var t=this.utcOffset(),i="+";return t<0&&(t=-t,i="-"),i+$(~~(t/60),2)+e+$(~~t%60,2)})}je("Z",":"),je("ZZ",""),ct("Z",at),ct("ZZ",at),pt(["Z","ZZ"],function(t,e,i){i._useUTC=!0,i._tzm=$e(at,t)});var Ne=/([\+\-]|\d\d)/gi;function $e(t,e){var i=(e||"").match(t);if(null===i)return null;var n=((i[i.length-1]||[])+"").match(Ne)||["-",0,0],r=60*n[1]+S(n[2]);return 0===r?0:"+"===n[0]?r:-r}function Ge(t,e){var i,n;return e._isUTC?(i=e.clone(),n=(x(t)||u(t)?t.valueOf():Pe(t).valueOf())-i.valueOf(),i._d.setTime(i._d.valueOf()+n),r.updateOffset(i,!1),i):Pe(t).local()}function ze(t){return 15*-Math.round(t._d.getTimezoneOffset()/15)}function Be(){return!!this.isValid()&&this._isUTC&&0===this._offset}r.updateOffset=function(){};var Ye=/^(\-|\+)?(?:(\d*)[. ])?(\d+)\:(\d+)(?:\:(\d+)(\.\d*)?)?$/,Ve=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function We(t,e){var i,n,r,o=t,s=null;return Fe(t)?o={ms:t._milliseconds,d:t._days,M:t._months}:l(t)?(o={},e?o[e]=t:o.milliseconds=t):(s=Ye.exec(t))?(i="-"===s[1]?-1:1,o={y:0,d:S(s[yt])*i,h:S(s[_t])*i,m:S(s[bt])*i,s:S(s[xt])*i,ms:S(De(1e3*s[wt]))*i}):(s=Ve.exec(t))?(i="-"===s[1]?-1:1,o={y:He(s[2],i),M:He(s[3],i),w:He(s[4],i),d:He(s[5],i),h:He(s[6],i),m:He(s[7],i),s:He(s[8],i)}):null==o?o={}:"object"==typeof o&&("from"in o||"to"in o)&&(r=function(t,e){var i;return t.isValid()&&e.isValid()?(e=Ge(e,t),t.isBefore(e)?i=Ue(t,e):((i=Ue(e,t)).milliseconds=-i.milliseconds,i.months=-i.months),i):{milliseconds:0,months:0}}(Pe(o.from),Pe(o.to)),(o={}).ms=r.milliseconds,o.M=r.months),n=new Re(o),Fe(t)&&h(t,"_locale")&&(n._locale=t._locale),n}function He(t,e){var i=t&&parseFloat(t.replace(",","."));return(isNaN(i)?0:i)*e}function Ue(t,e){var i={};return i.months=e.month()-t.month()+12*(e.year()-t.year()),t.clone().add(i.months,"M").isAfter(e)&&--i.months,i.milliseconds=+e-+t.clone().add(i.months,"M"),i}function Xe(t,e){return function(i,n){var r;return null===n||isNaN(+n)||(P(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=i,i=n,n=r),qe(this,We(i="string"==typeof i?+i:i,n),t),this}}function qe(t,e,i,n){var o=e._milliseconds,s=De(e._days),a=De(e._months);t.isValid()&&(n=null==n||n,a&&Dt(t,kt(t,"Month")+a*i),s&&It(t,"Date",kt(t,"Date")+s*i),o&&t._d.setTime(t._d.valueOf()+o*i),n&&r.updateOffset(t,s||a))}We.fn=Re.prototype,We.invalid=function(){return We(NaN)};var Ke=Xe(1,"add"),Ze=Xe(-1,"subtract");function Je(t,e){var i=12*(e.year()-t.year())+(e.month()-t.month()),n=t.clone().add(i,"months");return-(i+(e-n<0?(e-n)/(n-t.clone().add(i-1,"months")):(e-n)/(t.clone().add(i+1,"months")-n)))||0}function Qe(t){var e;return void 0===t?this._locale._abbr:(null!=(e=de(t))&&(this._locale=e),this)}r.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",r.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var ti=C("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return void 0===t?this.localeData():this.locale(t)});function ei(){return this._locale}var ii=126227808e5;function ni(t,e){return(t%e+e)%e}function ri(t,e,i){return t<100&&0<=t?new Date(t+400,e,i)-ii:new Date(t,e,i).valueOf()}function oi(t,e,i){return t<100&&0<=t?Date.UTC(t+400,e,i)-ii:Date.UTC(t,e,i)}function si(t,e){V(0,[t,t.length],0,e)}function ai(t,e,i,n,r){var o;return null==t?Vt(this,n,r).year:((o=Wt(t,n,r))<e&&(e=o),function(t,e,i,n,r){var o=Yt(t,e,i,n,r),s=zt(o.year,0,o.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}.call(this,t,e,i,n,r))}V(0,["gg",2],0,function(){return this.weekYear()%100}),V(0,["GG",2],0,function(){return this.isoWeekYear()%100}),si("gggg","weekYear"),si("ggggg","weekYear"),si("GGGG","isoWeekYear"),si("GGGGG","isoWeekYear"),R("weekYear","gg"),R("isoWeekYear","GG"),N("weekYear",1),N("isoWeekYear",1),ct("G",ot),ct("g",ot),ct("GG",J,X),ct("gg",J,X),ct("GGGG",it,K),ct("gggg",it,K),ct("GGGGG",nt,Z),ct("ggggg",nt,Z),vt(["gggg","ggggg","GGGG","GGGGG"],function(t,e,i,n){e[n.substr(0,2)]=S(t)}),vt(["gg","GG"],function(t,e,i,n){e[n]=r.parseTwoDigitYear(t)}),V("Q",0,"Qo","quarter"),R("quarter","Q"),N("quarter",7),ct("Q",U),pt("Q",function(t,e){e[mt]=3*(S(t)-1)}),V("D",["DD",2],"Do","date"),R("date","D"),N("date",9),ct("D",J),ct("DD",J,X),ct("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),pt(["D","DD"],yt),pt("Do",function(t,e){e[yt]=S(t.match(J)[0])});var li=Pt("Date",!0);V("DDD",["DDDD",3],"DDDo","dayOfYear"),R("dayOfYear","DDD"),N("dayOfYear",4),ct("DDD",et),ct("DDDD",q),pt(["DDD","DDDD"],function(t,e,i){i._dayOfYear=S(t)}),V("m",["mm",2],0,"minute"),R("minute","m"),N("minute",14),ct("m",J),ct("mm",J,X),pt(["m","mm"],bt);var ui=Pt("Minutes",!1);V("s",["ss",2],0,"second"),R("second","s"),N("second",15),ct("s",J),ct("ss",J,X),pt(["s","ss"],xt);var ci,hi=Pt("Seconds",!1);for(V("S",0,0,function(){return~~(this.millisecond()/100)}),V(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),V(0,["SSS",3],0,"millisecond"),V(0,["SSSS",4],0,function(){return 10*this.millisecond()}),V(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),V(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),V(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),V(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),V(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),R("millisecond","ms"),N("millisecond",16),ct("S",et,U),ct("SS",et,X),ct("SSS",et,q),ci="SSSS";ci.length<=9;ci+="S")ct(ci,rt);function di(t,e){e[wt]=S(1e3*("0."+t))}for(ci="S";ci.length<=9;ci+="S")pt(ci,di);var fi=Pt("Milliseconds",!1);V("z",0,0,"zoneAbbr"),V("zz",0,0,"zoneName");var pi=b.prototype;function vi(t){return t}pi.add=Ke,pi.calendar=function(t,e){var i=t||Pe(),n=Ge(i,this).startOf("day"),o=r.calendarFormat(this,n)||"sameElse",s=e&&(k(e[o])?e[o].call(this,i):e[o]);return this.format(s||this.localeData().calendar(o,this,Pe(i)))},pi.clone=function(){return new b(this)},pi.diff=function(t,e,i){var n,r,o;if(!this.isValid())return NaN;if(!(n=Ge(t,this)).isValid())return NaN;switch(r=6e4*(n.utcOffset()-this.utcOffset()),e=F(e)){case"year":o=Je(this,n)/12;break;case"month":o=Je(this,n);break;case"quarter":o=Je(this,n)/3;break;case"second":o=(this-n)/1e3;break;case"minute":o=(this-n)/6e4;break;case"hour":o=(this-n)/36e5;break;case"day":o=(this-n-r)/864e5;break;case"week":o=(this-n-r)/6048e5;break;default:o=this-n}return i?o:w(o)},pi.endOf=function(t){var e;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?oi:ri;switch(t){case"year":e=i(this.year()+1,0,1)-1;break;case"quarter":e=i(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=i(this.year(),this.month()+1,1)-1;break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=i(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-ni(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-ni(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-ni(e,1e3)-1}return this._d.setTime(e),r.updateOffset(this,!0),this},pi.format=function(t){t||(t=this.isUtc()?r.defaultFormatUtc:r.defaultFormat);var e=W(this,t);return this.localeData().postformat(e)},pi.from=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?We({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pi.fromNow=function(t){return this.from(Pe(),t)},pi.to=function(t,e){return this.isValid()&&(x(t)&&t.isValid()||Pe(t).isValid())?We({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},pi.toNow=function(t){return this.to(Pe(),t)},pi.get=function(t){return k(this[t=F(t)])?this[t]():this},pi.invalidAt=function(){return p(this).overflow},pi.isAfter=function(t,e){var i=x(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(e).valueOf())},pi.isBefore=function(t,e){var i=x(t)?t:Pe(t);return!(!this.isValid()||!i.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(e).valueOf()<i.valueOf())},pi.isBetween=function(t,e,i,n){var r=x(t)?t:Pe(t),o=x(e)?e:Pe(e);return!!(this.isValid()&&r.isValid()&&o.isValid())&&("("===(n=n||"()")[0]?this.isAfter(r,i):!this.isBefore(r,i))&&(")"===n[1]?this.isBefore(o,i):!this.isAfter(o,i))},pi.isSame=function(t,e){var i,n=x(t)?t:Pe(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=F(e)||"millisecond")?this.valueOf()===n.valueOf():(i=n.valueOf(),this.clone().startOf(e).valueOf()<=i&&i<=this.clone().endOf(e).valueOf()))},pi.isSameOrAfter=function(t,e){return this.isSame(t,e)||this.isAfter(t,e)},pi.isSameOrBefore=function(t,e){return this.isSame(t,e)||this.isBefore(t,e)},pi.isValid=function(){return v(this)},pi.lang=ti,pi.locale=Qe,pi.localeData=ei,pi.max=Ie,pi.min=ke,pi.parsingFlags=function(){return d({},p(this))},pi.set=function(t,e){if("object"==typeof t)for(var i=function(t){var e=[];for(var i in t)e.push({unit:i,priority:j[i]});return e.sort(function(t,e){return t.priority-e.priority}),e}(t=D(t)),n=0;n<i.length;n++)this[i[n].unit](t[i[n].unit]);else if(k(this[t=F(t)]))return this[t](e);return this},pi.startOf=function(t){var e;if(void 0===(t=F(t))||"millisecond"===t||!this.isValid())return this;var i=this._isUTC?oi:ri;switch(t){case"year":e=i(this.year(),0,1);break;case"quarter":e=i(this.year(),this.month()-this.month()%3,1);break;case"month":e=i(this.year(),this.month(),1);break;case"week":e=i(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=i(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=i(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=ni(e+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":e=this._d.valueOf(),e-=ni(e,6e4);break;case"second":e=this._d.valueOf(),e-=ni(e,1e3)}return this._d.setTime(e),r.updateOffset(this,!0),this},pi.subtract=Ze,pi.toArray=function(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]},pi.toObject=function(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}},pi.toDate=function(){return new Date(this.valueOf())},pi.toISOString=function(t){if(!this.isValid())return null;var e=!0!==t,i=e?this.clone().utc():this;return i.year()<0||9999<i.year()?W(i,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",W(i,"Z")):W(i,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},pi.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="";this.isLocal()||(t=0===this.utcOffset()?"moment.utc":"moment.parseZone",e="Z");var i="["+t+'("]',n=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",r=e+'[")]';return this.format(i+n+"-MM-DD[T]HH:mm:ss.SSS"+r)},pi.toJSON=function(){return this.isValid()?this.toISOString():null},pi.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},pi.unix=function(){return Math.floor(this.valueOf()/1e3)},pi.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},pi.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},pi.year=Mt,pi.isLeapYear=function(){return Ct(this.year())},pi.weekYear=function(t){return ai.call(this,t,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},pi.isoWeekYear=function(t){return ai.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)},pi.quarter=pi.quarters=function(t){return null==t?Math.ceil((this.month()+1)/3):this.month(3*(t-1)+this.month()%3)},pi.month=jt,pi.daysInMonth=function(){return Lt(this.year(),this.month())},pi.week=pi.weeks=function(t){var e=this.localeData().week(this);return null==t?e:this.add(7*(t-e),"d")},pi.isoWeek=pi.isoWeeks=function(t){var e=Vt(this,1,4).week;return null==t?e:this.add(7*(t-e),"d")},pi.weeksInYear=function(){var t=this.localeData()._week;return Wt(this.year(),t.dow,t.doy)},pi.isoWeeksInYear=function(){return Wt(this.year(),1,4)},pi.date=li,pi.day=pi.days=function(t){if(!this.isValid())return null!=t?this:NaN;var e,i,n=this._isUTC?this._d.getUTCDay():this._d.getDay();return null!=t?(e=t,i=this.localeData(),t="string"!=typeof e?e:isNaN(e)?"number"==typeof(e=i.weekdaysParse(e))?e:null:parseInt(e,10),this.add(t-n,"d")):n},pi.weekday=function(t){if(!this.isValid())return null!=t?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return null==t?e:this.add(t-e,"d")},pi.isoWeekday=function(t){if(!this.isValid())return null!=t?this:NaN;if(null==t)return this.day()||7;var e,i,n=(e=t,i=this.localeData(),"string"==typeof e?i.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?n:n-7)},pi.dayOfYear=function(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==t?e:this.add(t-e,"d")},pi.hour=pi.hours=re,pi.minute=pi.minutes=ui,pi.second=pi.seconds=hi,pi.millisecond=pi.milliseconds=fi,pi.utcOffset=function(t,e,i){var n,o=this._offset||0;if(!this.isValid())return null!=t?this:NaN;if(null==t)return this._isUTC?o:ze(this);if("string"==typeof t){if(null===(t=$e(at,t)))return this}else Math.abs(t)<16&&!i&&(t*=60);return!this._isUTC&&e&&(n=ze(this)),this._offset=t,this._isUTC=!0,null!=n&&this.add(n,"m"),o!==t&&(!e||this._changeInProgress?qe(this,We(t-o,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,r.updateOffset(this,!0),this._changeInProgress=null)),this},pi.utc=function(t){return this.utcOffset(0,t)},pi.local=function(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(ze(this),"m")),this},pi.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var t=$e(st,this._i);null!=t?this.utcOffset(t):this.utcOffset(0,!0)}return this},pi.hasAlignedHourOffset=function(t){return!!this.isValid()&&(t=t?Pe(t).utcOffset():0,(this.utcOffset()-t)%60==0)},pi.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},pi.isLocal=function(){return!!this.isValid()&&!this._isUTC},pi.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},pi.isUtc=Be,pi.isUTC=Be,pi.zoneAbbr=function(){return this._isUTC?"UTC":""},pi.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},pi.dates=C("dates accessor is deprecated. Use date instead.",li),pi.months=C("months accessor is deprecated. Use month instead",jt),pi.years=C("years accessor is deprecated. Use year instead",Mt),pi.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}),pi.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var t={};if(y(t,this),(t=Oe(t))._a){var e=t._isUTC?f(t._a):Pe(t._a);this._isDSTShifted=this.isValid()&&0<T(t._a,e.toArray())}else this._isDSTShifted=!1;return this._isDSTShifted});var gi=L.prototype;function mi(t,e,i,n){var r=de(),o=f().set(n,e);return r[i](o,t)}function yi(t,e,i){if(l(t)&&(e=t,t=void 0),t=t||"",null!=e)return mi(t,e,i,"month");var n,r=[];for(n=0;n<12;n++)r[n]=mi(t,n,i,"month");return r}function _i(t,e,i,n){"boolean"==typeof t?l(e)&&(i=e,e=void 0):(e=t,t=!1,l(i=e)&&(i=e,e=void 0)),e=e||"";var r,o=de(),s=t?o._week.dow:0;if(null!=i)return mi(e,(i+s)%7,n,"day");var a=[];for(r=0;r<7;r++)a[r]=mi(e,(r+s)%7,n,"day");return a}gi.calendar=function(t,e,i){var n=this._calendar[t]||this._calendar.sameElse;return k(n)?n.call(e,i):n},gi.longDateFormat=function(t){var e=this._longDateFormat[t],i=this._longDateFormat[t.toUpperCase()];return e||!i?e:(this._longDateFormat[t]=i.replace(/MMMM|MM|DD|dddd/g,function(t){return t.slice(1)}),this._longDateFormat[t])},gi.invalidDate=function(){return this._invalidDate},gi.ordinal=function(t){return this._ordinal.replace("%d",t)},gi.preparse=vi,gi.postformat=vi,gi.relativeTime=function(t,e,i,n){var r=this._relativeTime[i];return k(r)?r(t,e,i,n):r.replace(/%d/i,t)},gi.pastFuture=function(t,e){var i=this._relativeTime[0<t?"future":"past"];return k(i)?i(e):i.replace(/%s/i,e)},gi.set=function(t){var e,i;for(i in t)k(e=t[i])?this[i]=e:this["_"+i]=e;this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},gi.months=function(t,e){return t?o(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||At).test(e)?"format":"standalone"][t.month()]:o(this._months)?this._months:this._months.standalone},gi.monthsShort=function(t,e){return t?o(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[At.test(e)?"format":"standalone"][t.month()]:o(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},gi.monthsParse=function(t,e,i){var n,r,o;if(this._monthsParseExact)return function(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],n=0;n<12;++n)o=f([2e3,n]),this._shortMonthsParse[n]=this.monthsShort(o,"").toLocaleLowerCase(),this._longMonthsParse[n]=this.months(o,"").toLocaleLowerCase();return i?"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,s))?r:null:-1!==(r=Ot.call(this._longMonthsParse,s))?r:null:"MMM"===e?-1!==(r=Ot.call(this._shortMonthsParse,s))?r:-1!==(r=Ot.call(this._longMonthsParse,s))?r:null:-1!==(r=Ot.call(this._longMonthsParse,s))?r:-1!==(r=Ot.call(this._shortMonthsParse,s))?r:null}.call(this,t,e,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),n=0;n<12;n++){if(r=f([2e3,n]),i&&!this._longMonthsParse[n]&&(this._longMonthsParse[n]=new RegExp("^"+this.months(r,"").replace(".","")+"$","i"),this._shortMonthsParse[n]=new RegExp("^"+this.monthsShort(r,"").replace(".","")+"$","i")),i||this._monthsParse[n]||(o="^"+this.months(r,"")+"|^"+this.monthsShort(r,""),this._monthsParse[n]=new RegExp(o.replace(".",""),"i")),i&&"MMMM"===e&&this._longMonthsParse[n].test(t))return n;if(i&&"MMM"===e&&this._shortMonthsParse[n].test(t))return n;if(!i&&this._monthsParse[n].test(t))return n}},gi.monthsRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Gt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(h(this,"_monthsRegex")||(this._monthsRegex=$t),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},gi.monthsShortRegex=function(t){return this._monthsParseExact?(h(this,"_monthsRegex")||Gt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(h(this,"_monthsShortRegex")||(this._monthsShortRegex=Nt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},gi.week=function(t){return Vt(t,this._week.dow,this._week.doy).week},gi.firstDayOfYear=function(){return this._week.doy},gi.firstDayOfWeek=function(){return this._week.dow},gi.weekdays=function(t,e){var i=o(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?Ht(i,this._week.dow):t?i[t.day()]:i},gi.weekdaysMin=function(t){return!0===t?Ht(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},gi.weekdaysShort=function(t){return!0===t?Ht(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},gi.weekdaysParse=function(t,e,i){var n,r,o;if(this._weekdaysParseExact)return function(t,e,i){var n,r,o,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],n=0;n<7;++n)o=f([2e3,1]).day(n),this._minWeekdaysParse[n]=this.weekdaysMin(o,"").toLocaleLowerCase(),this._shortWeekdaysParse[n]=this.weekdaysShort(o,"").toLocaleLowerCase(),this._weekdaysParse[n]=this.weekdays(o,"").toLocaleLowerCase();return i?"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:"dddd"===e?-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:"ddd"===e?-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:null:-1!==(r=Ot.call(this._minWeekdaysParse,s))?r:-1!==(r=Ot.call(this._weekdaysParse,s))?r:-1!==(r=Ot.call(this._shortWeekdaysParse,s))?r:null}.call(this,t,e,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),n=0;n<7;n++){if(r=f([2e3,1]).day(n),i&&!this._fullWeekdaysParse[n]&&(this._fullWeekdaysParse[n]=new RegExp("^"+this.weekdays(r,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[n]=new RegExp("^"+this.weekdaysShort(r,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[n]=new RegExp("^"+this.weekdaysMin(r,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[n]||(o="^"+this.weekdays(r,"")+"|^"+this.weekdaysShort(r,"")+"|^"+this.weekdaysMin(r,""),this._weekdaysParse[n]=new RegExp(o.replace(".",""),"i")),i&&"dddd"===e&&this._fullWeekdaysParse[n].test(t))return n;if(i&&"ddd"===e&&this._shortWeekdaysParse[n].test(t))return n;if(i&&"dd"===e&&this._minWeekdaysParse[n].test(t))return n;if(!i&&this._weekdaysParse[n].test(t))return n}},gi.weekdaysRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(h(this,"_weekdaysRegex")||(this._weekdaysRegex=Kt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},gi.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(h(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Zt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},gi.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(h(this,"_weekdaysRegex")||Qt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(h(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Jt),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},gi.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},gi.meridiem=function(t,e,i){return 11<t?i?"pm":"PM":i?"am":"AM"},ce("en",{dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===S(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),r.lang=C("moment.lang is deprecated. Use moment.locale instead.",ce),r.langData=C("moment.langData is deprecated. Use moment.localeData instead.",de);var bi=Math.abs;function xi(t,e,i,n){var r=We(e,i);return t._milliseconds+=n*r._milliseconds,t._days+=n*r._days,t._months+=n*r._months,t._bubble()}function wi(t){return t<0?Math.floor(t):Math.ceil(t)}function Si(t){return 4800*t/146097}function Ti(t){return 146097*t/4800}function Ei(t){return function(){return this.as(t)}}var Ci=Ei("ms"),Oi=Ei("s"),Mi=Ei("m"),Pi=Ei("h"),ki=Ei("d"),Ii=Ei("w"),Li=Ei("M"),Ai=Ei("Q"),Ri=Ei("y");function Fi(t){return function(){return this.isValid()?this._data[t]:NaN}}var Di=Fi("milliseconds"),ji=Fi("seconds"),Ni=Fi("minutes"),$i=Fi("hours"),Gi=Fi("days"),zi=Fi("months"),Bi=Fi("years"),Yi=Math.round,Vi={ss:44,s:45,m:45,h:22,d:26,M:11},Wi=Math.abs;function Hi(t){return(0<t)-(t<0)||+t}function Ui(){if(!this.isValid())return this.localeData().invalidDate();var t,e,i=Wi(this._milliseconds)/1e3,n=Wi(this._days),r=Wi(this._months);e=w((t=w(i/60))/60),i%=60,t%=60;var o=w(r/12),s=r%=12,a=n,l=e,u=t,c=i?i.toFixed(3).replace(/\.?0+$/,""):"",h=this.asSeconds();if(!h)return"P0D";var d=h<0?"-":"",f=Hi(this._months)!==Hi(h)?"-":"",p=Hi(this._days)!==Hi(h)?"-":"",v=Hi(this._milliseconds)!==Hi(h)?"-":"";return d+"P"+(o?f+o+"Y":"")+(s?f+s+"M":"")+(a?p+a+"D":"")+(l||u||c?"T":"")+(l?v+l+"H":"")+(u?v+u+"M":"")+(c?v+c+"S":"")}var Xi=Re.prototype;return Xi.isValid=function(){return this._isValid},Xi.abs=function(){var t=this._data;return this._milliseconds=bi(this._milliseconds),this._days=bi(this._days),this._months=bi(this._months),t.milliseconds=bi(t.milliseconds),t.seconds=bi(t.seconds),t.minutes=bi(t.minutes),t.hours=bi(t.hours),t.months=bi(t.months),t.years=bi(t.years),this},Xi.add=function(t,e){return xi(this,t,e,1)},Xi.subtract=function(t,e){return xi(this,t,e,-1)},Xi.as=function(t){if(!this.isValid())return NaN;var e,i,n=this._milliseconds;if("month"===(t=F(t))||"quarter"===t||"year"===t)switch(e=this._days+n/864e5,i=this._months+Si(e),t){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(e=this._days+Math.round(Ti(this._months)),t){case"week":return e/7+n/6048e5;case"day":return e+n/864e5;case"hour":return 24*e+n/36e5;case"minute":return 1440*e+n/6e4;case"second":return 86400*e+n/1e3;case"millisecond":return Math.floor(864e5*e)+n;default:throw new Error("Unknown unit "+t)}},Xi.asMilliseconds=Ci,Xi.asSeconds=Oi,Xi.asMinutes=Mi,Xi.asHours=Pi,Xi.asDays=ki,Xi.asWeeks=Ii,Xi.asMonths=Li,Xi.asQuarters=Ai,Xi.asYears=Ri,Xi.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*S(this._months/12):NaN},Xi._bubble=function(){var t,e,i,n,r,o=this._milliseconds,s=this._days,a=this._months,l=this._data;return 0<=o&&0<=s&&0<=a||o<=0&&s<=0&&a<=0||(o+=864e5*wi(Ti(a)+s),a=s=0),l.milliseconds=o%1e3,t=w(o/1e3),l.seconds=t%60,e=w(t/60),l.minutes=e%60,i=w(e/60),l.hours=i%24,a+=r=w(Si(s+=w(i/24))),s-=wi(Ti(r)),n=w(a/12),a%=12,l.days=s,l.months=a,l.years=n,this},Xi.clone=function(){return We(this)},Xi.get=function(t){return t=F(t),this.isValid()?this[t+"s"]():NaN},Xi.milliseconds=Di,Xi.seconds=ji,Xi.minutes=Ni,Xi.hours=$i,Xi.days=Gi,Xi.weeks=function(){return w(this.days()/7)},Xi.months=zi,Xi.years=Bi,Xi.humanize=function(t){if(!this.isValid())return this.localeData().invalidDate();var e,i,n,r,o,s,a,l,u,c,h=this.localeData(),d=(e=!t,i=h,n=We(this).abs(),r=Yi(n.as("s")),o=Yi(n.as("m")),s=Yi(n.as("h")),a=Yi(n.as("d")),l=Yi(n.as("M")),u=Yi(n.as("y")),(c=r<=Vi.ss&&["s",r]||r<Vi.s&&["ss",r]||o<=1&&["m"]||o<Vi.m&&["mm",o]||s<=1&&["h"]||s<Vi.h&&["hh",s]||a<=1&&["d"]||a<Vi.d&&["dd",a]||l<=1&&["M"]||l<Vi.M&&["MM",l]||u<=1&&["y"]||["yy",u])[2]=e,c[3]=0<+this,c[4]=i,function(t,e,i,n,r){return r.relativeTime(e||1,!!i,t,n)}.apply(null,c));return t&&(d=h.pastFuture(+this,d)),h.postformat(d)},Xi.toISOString=Ui,Xi.toString=Ui,Xi.toJSON=Ui,Xi.locale=Qe,Xi.localeData=ei,Xi.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ui),Xi.lang=ti,V("X",0,0,"unix"),V("x",0,0,"valueOf"),ct("x",ot),ct("X",/[+-]?\d+(\.\d{1,3})?/),pt("X",function(t,e,i){i._d=new Date(1e3*parseFloat(t,10))}),pt("x",function(t,e,i){i._d=new Date(S(t))}),r.version="2.24.0",e=Pe,r.fn=pi,r.min=function(){return Le("isBefore",[].slice.call(arguments,0))},r.max=function(){return Le("isAfter",[].slice.call(arguments,0))},r.now=function(){return Date.now?Date.now():+new Date},r.utc=f,r.unix=function(t){return Pe(1e3*t)},r.months=function(t,e){return yi(t,e,"months")},r.isDate=u,r.locale=ce,r.invalid=g,r.duration=We,r.isMoment=x,r.weekdays=function(t,e,i){return _i(t,e,i,"weekdays")},r.parseZone=function(){return Pe.apply(null,arguments).parseZone()},r.localeData=de,r.isDuration=Fe,r.monthsShort=function(t,e){return yi(t,e,"monthsShort")},r.weekdaysMin=function(t,e,i){return _i(t,e,i,"weekdaysMin")},r.defineLocale=he,r.updateLocale=function(t,e){if(null!=e){var i,n,r=oe;null!=(n=ue(t))&&(r=n._config),(i=new L(e=I(r,e))).parentLocale=se[t],se[t]=i,ce(t)}else null!=se[t]&&(null!=se[t].parentLocale?se[t]=se[t].parentLocale:null!=se[t]&&delete se[t]);return se[t]},r.locales=function(){return O(se)},r.weekdaysShort=function(t,e,i){return _i(t,e,i,"weekdaysShort")},r.normalizeUnits=F,r.relativeTimeRounding=function(t){return void 0===t?Yi:"function"==typeof t&&(Yi=t,!0)},r.relativeTimeThreshold=function(t,e){return void 0!==Vi[t]&&(void 0===e?Vi[t]:(Vi[t]=e,"s"===t&&(Vi.ss=e-1),!0))},r.calendarFormat=function(t,e){var i=t.diff(e,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},r.prototype=pi,r.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},r},t.exports=e()}).call(e,i(212)(t))},function(t,e,i){var n,r,o;r="undefined"!=typeof window?window:this,o=function(t){function e(t,e,i,n){t.hasOwnProperty(e)||(t[e]=n.apply(null,i))}var i={};return e(i,"parts/Globals.js",[],function(){var e=void 0!==t?t:"undefined"!=typeof window?window:{},i=e.document,n=e.navigator&&e.navigator.userAgent||"",r=i&&i.createElementNS&&!!i.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,o=/(edge|msie|trident)/i.test(n)&&!e.opera,s=-1!==n.indexOf("Firefox"),a=-1!==n.indexOf("Chrome"),l=s&&4>parseInt(n.split("Firefox/")[1],10);return{product:"Highcharts",version:"7.2.1",deg2rad:2*Math.PI/360,doc:i,hasBidiBug:l,hasTouch:!!e.TouchEvent,isMS:o,isWebKit:-1!==n.indexOf("AppleWebKit"),isFirefox:s,isChrome:a,isSafari:!a&&-1!==n.indexOf("Safari"),isTouchDevice:/(Mobile|Android|Windows Phone)/.test(n),SVG_NS:"http://www.w3.org/2000/svg",chartCount:0,seriesTypes:{},symbolSizes:{},svg:r,win:e,marginNames:["plotTop","marginRight","marginBottom","plotLeft"],noop:function(){},charts:[],dateFormats:{}}}),e(i,"parts/Utilities.js",[i["parts/Globals.js"]],function(t){function e(t,e){return parseInt(t,e||10)}function i(t){return"string"==typeof t}function n(t){return"[object Array]"===(t=Object.prototype.toString.call(t))||"[object Array Iterator]"===t}function r(t,e){return!(!t||"object"!=typeof t||e&&n(t))}function o(t){return r(t)&&"number"==typeof t.nodeType}function s(t){var e=t&&t.constructor;return!(!r(t,!0)||o(t)||!e||!e.name||"Object"===e.name)}function a(t){return"number"==typeof t&&!isNaN(t)&&1/0>t&&-1/0<t}function l(t){return void 0!==t&&null!==t}function u(t,e,n){var r;return i(e)?l(n)?t.setAttribute(e,n):t&&t.getAttribute&&((r=t.getAttribute(e))||"class"!==e||(r=t.getAttribute(e+"Name"))):d(e,function(e,i){t.setAttribute(i,e)}),r}function c(t,e){var i;for(i in t||(t={}),e)t[i]=e[i];return t}function h(){for(var t=arguments,e=t.length,i=0;i<e;i++){var n=t[i];if(void 0!==n&&null!==n)return n}}function d(t,e,i){for(var n in t)Object.hasOwnProperty.call(t,n)&&e.call(i||t[n],t[n],n,t)}t.timers=[];var f=t.charts,p=t.doc,v=t.win;return t.error=function(e,i,n,r){var o=a(e),s=o?"Highcharts error #"+e+": www.highcharts.com/errors/"+e+"/":e.toString(),l=function(){if(i)throw Error(s);v.console&&console.log(s)};if(void 0!==r){var u="";o&&(s+="?"),t.objectEach(r,function(t,e){u+="\n"+e+": "+t,o&&(s+=encodeURI(e)+"="+encodeURI(t))}),s+=u}n?t.fireEvent(n,"displayError",{code:e,message:s,params:r},l):l()},t.Fx=function(t,e,i){this.options=e,this.elem=t,this.prop=i},t.Fx.prototype={dSetter:function(){var t=this.paths[0],e=this.paths[1],i=[],n=this.now,r=t.length;if(1===n)i=this.toD;else if(r===e.length&&1>n)for(;r--;){var o=parseFloat(t[r]);i[r]=isNaN(o)||"A"===e[r-4]||"A"===e[r-5]?e[r]:n*parseFloat(""+(e[r]-o))+o}else i=e;this.elem.attr("d",i,null,!0)},update:function(){var t=this.elem,e=this.prop,i=this.now,n=this.options.step;this[e+"Setter"]?this[e+"Setter"]():t.attr?t.element&&t.attr(e,i,null,!0):t.style[e]=i+this.unit,n&&n.call(t,i,this)},run:function(e,i,n){var r=this,o=r.options,s=function(t){return!s.stopped&&r.step(t)},a=v.requestAnimationFrame||function(t){setTimeout(t,13)},l=function(){for(var e=0;e<t.timers.length;e++)t.timers[e]()||t.timers.splice(e--,1);t.timers.length&&a(l)};e!==i||this.elem["forceAnimate:"+this.prop]?(this.startTime=+new Date,this.start=e,this.end=i,this.unit=n,this.now=this.start,this.pos=0,s.elem=this.elem,s.prop=this.prop,s()&&1===t.timers.push(s)&&a(l)):(delete o.curAnim[this.prop],o.complete&&0===Object.keys(o.curAnim).length&&o.complete.call(this.elem))},step:function(t){var e=+new Date,i=this.options,n=this.elem,r=i.complete,o=i.duration,s=i.curAnim;if(n.attr&&!n.element)t=!1;else if(t||e>=o+this.startTime){this.now=this.end,this.pos=1,this.update();var a=s[this.prop]=!0;d(s,function(t){!0!==t&&(a=!1)}),a&&r&&r.call(n),t=!1}else this.pos=i.easing((e-this.startTime)/o),this.now=this.start+(this.end-this.start)*this.pos,this.update(),t=!0;return t},initPath:function(t,e,i){function n(t){for(l=t.length;l--;){var e="M"===t[l]||"L"===t[l],i=/[a-zA-Z]/.test(t[l+3]);e&&i&&t.splice(l+1,0,t[l+1],t[l+2],t[l+1],t[l+2])}}function r(t,e){for(;t.length<m;){t[0]=e[m-t.length];var i=t.slice(0,d);[].splice.apply(t,[0,0].concat(i)),f&&(i=t.slice(t.length-d),[].splice.apply(t,[t.length,0].concat(i)),l--)}t[0]="M"}function o(t,e){for(var i=(m-t.length)/d;0<i&&i--;)(s=t.slice().splice(t.length/p-d,d*p))[0]=e[m-d-i*d],h&&(s[d-6]=s[d-2],s[d-5]=s[d-1]),[].splice.apply(t,[t.length/p,0].concat(s)),f&&i--}e=e||"";var s,l,u=t.startX,c=t.endX,h=-1<e.indexOf("C"),d=h?7:3;e=e.split(" "),i=i.slice();var f=t.isArea,p=f?2:1;if(h&&(n(e),n(i)),u&&c){for(l=0;l<u.length;l++){if(u[l]===c[0]){var v=l;break}if(u[0]===c[c.length-u.length+l]){v=l;var g=!0;break}if(u[u.length-1]===c[c.length-u.length+l]){v=u.length-l;break}}void 0===v&&(e=[])}if(e.length&&a(v)){var m=i.length+v*p*d;g?(r(e,i),o(i,e)):(r(i,e),o(e,i))}return[e,i]},fillSetter:function(){t.Fx.prototype.strokeSetter.apply(this,arguments)},strokeSetter:function(){this.elem.attr(this.prop,t.color(this.start).tweenTo(t.color(this.end),this.pos),null,!0)}},t.merge=function(){var t,e=arguments,i={},n=function(t,e){return"object"!=typeof t&&(t={}),d(e,function(i,a){!r(i,!0)||s(i)||o(i)?t[a]=e[a]:t[a]=n(t[a]||{},i)}),t};!0===e[0]&&(i=e[1],e=Array.prototype.slice.call(e,2));var a=e.length;for(t=0;t<a;t++)i=n(i,e[t]);return i},t.clearTimeout=function(t){l(t)&&clearTimeout(t)},t.css=function(e,i){t.isMS&&!t.svg&&i&&void 0!==i.opacity&&(i.filter="alpha(opacity="+100*i.opacity+")"),c(e.style,i)},t.createElement=function(e,i,n,r,o){e=p.createElement(e);var s=t.css;return i&&c(e,i),o&&s(e,{padding:"0",border:"none",margin:"0"}),n&&s(e,n),r&&r.appendChild(e),e},t.extendClass=function(t,e){var i=function(){};return c(i.prototype=new t,e),i},t.pad=function(t,e,i){return Array((e||2)+1-String(t).replace("-","").length).join(i||"0")+t},t.relativeLength=function(t,e,i){return/%$/.test(t)?e*parseFloat(t)/100+(i||0):parseFloat(t)},t.wrap=function(t,e,i){var n=t[e];t[e]=function(){var t=Array.prototype.slice.call(arguments),e=arguments,r=this;return r.proceed=function(){n.apply(r,arguments.length?arguments:e)},t.unshift(n),t=i.apply(this,t),r.proceed=null,t}},t.datePropsToTimestamps=function(e){d(e,function(i,o){r(i)&&"function"==typeof i.getTime?e[o]=i.getTime():(r(i)||n(i))&&t.datePropsToTimestamps(i)})},t.formatSingle=function(e,i,n){var r=t.defaultOptions.lang;return/f$/.test(e)?(n=(n=e.match(/\.([0-9])/))?n[1]:-1,null!==i&&(i=t.numberFormat(i,n,r.decimalPoint,-1<e.indexOf(",")?r.thousandsSep:""))):i=(n||t.time).dateFormat(e,i),i},t.format=function(e,i,n){for(var r,o,s,a,l,u="{",c=!1,h=[];e&&-1!==(u=e.indexOf(u));){if(r=e.slice(0,u),c){for(a=(o=(r=r.split(":")).shift().split(".")).length,l=i,s=0;s<a;s++)l&&(l=l[o[s]]);r.length&&(l=t.formatSingle(r.join(":"),l,n)),h.push(l)}else h.push(r);e=e.slice(u+1),u=(c=!c)?"}":"{"}return h.push(e),h.join("")},t.getMagnitude=function(t){return Math.pow(10,Math.floor(Math.log(t)/Math.LN10))},t.normalizeTickInterval=function(e,i,n,r,o){var s=e,a=e/(n=h(n,1));for(i||(i=o?[1,1.2,1.5,2,2.5,3,4,5,6,8,10]:[1,2,2.5,5,10],!1===r&&(1===n?i=i.filter(function(t){return 0==t%1}):.1>=n&&(i=[1/n]))),r=0;r<i.length&&(s=i[r],!(o&&s*n>=e||!o&&a<=(i[r]+(i[r+1]||i[r]))/2));r++);return t.correctFloat(s*n,-Math.round(Math.log(.001)/Math.LN10))},t.stableSort=function(t,e){var i,n,r=t.length;for(n=0;n<r;n++)t[n].safeI=n;for(t.sort(function(t,n){return 0===(i=e(t,n))?t.safeI-n.safeI:i}),n=0;n<r;n++)delete t[n].safeI},t.correctFloat=function(t,e){return parseFloat(t.toPrecision(e||14))},t.animObject=function(e){return r(e)?t.merge(e):{duration:e?500:0}},t.timeUnits={millisecond:1,second:1e3,minute:6e4,hour:36e5,day:864e5,week:6048e5,month:24192e5,year:314496e5},t.numberFormat=function(i,n,r,o){i=+i||0,n=+n;var s=t.defaultOptions.lang,l=(i.toString().split(".")[1]||"").split("e")[0].length,u=i.toString().split("e");if(-1===n)n=Math.min(l,20);else if(a(n)){if(n&&u[1]&&0>u[1]){var c=n+ +u[1];0<=c?(u[0]=(+u[0]).toExponential(c).split("e")[0],n=c):(u[0]=u[0].split(".")[0]||0,i=20>n?(u[0]*Math.pow(10,u[1])).toFixed(n):0,u[1]=0)}}else n=2;var d=(Math.abs(u[1]?u[0]:i)+Math.pow(10,-Math.max(n,l)-1)).toFixed(n);return c=3<(l=String(e(d))).length?l.length%3:0,r=h(r,s.decimalPoint),o=h(o,s.thousandsSep),i=(0>i?"-":"")+(c?l.substr(0,c)+o:""),i+=l.substr(c).replace(/(\d{3})(?=\d)/g,"$1"+o),n&&(i+=r+d.slice(-n)),u[1]&&0!=+i&&(i+="e"+u[1]),i},Math.easeInOutSine=function(t){return-.5*(Math.cos(Math.PI*t)-1)},t.getStyle=function(i,n,r){return"width"===n?(n=Math.min(i.offsetWidth,i.scrollWidth),(r=i.getBoundingClientRect&&i.getBoundingClientRect().width)<n&&r>=n-1&&(n=Math.floor(r)),Math.max(0,n-t.getStyle(i,"padding-left")-t.getStyle(i,"padding-right"))):"height"===n?Math.max(0,Math.min(i.offsetHeight,i.scrollHeight)-t.getStyle(i,"padding-top")-t.getStyle(i,"padding-bottom")):(v.getComputedStyle||t.error(27,!0),(i=v.getComputedStyle(i,void 0))&&(i=i.getPropertyValue(n),h(r,"opacity"!==n)&&(i=e(i))),i)},t.inArray=function(t,e,i){return e.indexOf(t,i)},t.find=Array.prototype.find?function(t,e){return t.find(e)}:function(t,e){var i,n=t.length;for(i=0;i<n;i++)if(e(t[i],i))return t[i]},t.keys=Object.keys,t.offset=function(t){var e=p.documentElement;return{top:(t=t.parentElement||t.parentNode?t.getBoundingClientRect():{top:0,left:0}).top+(v.pageYOffset||e.scrollTop)-(e.clientTop||0),left:t.left+(v.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}},t.stop=function(e,i){for(var n=t.timers.length;n--;)t.timers[n].elem!==e||i&&i!==t.timers[n].prop||(t.timers[n].stopped=!0)},d({map:"map",each:"forEach",grep:"filter",reduce:"reduce",some:"some"},function(e,i){t[i]=function(t){return Array.prototype[e].apply(t,[].slice.call(arguments,1))}}),t.addEvent=function(e,i,n,r){void 0===r&&(r={});var o=e.addEventListener||t.addEventListenerPolyfill,s="function"==typeof e&&e.prototype?e.prototype.protoEvents=e.prototype.protoEvents||{}:e.hcEvents=e.hcEvents||{};return t.Point&&e instanceof t.Point&&e.series&&e.series.chart&&(e.series.chart.runTrackerClick=!0),o&&o.call(e,i,n,!1),s[i]||(s[i]=[]),s[i].push({fn:n,order:"number"==typeof r.order?r.order:1/0}),s[i].sort(function(t,e){return t.order-e.order}),function(){t.removeEvent(e,i,n)}},t.removeEvent=function(e,i,n){function r(i,n){var r=e.removeEventListener||t.removeEventListenerPolyfill;r&&r.call(e,i,n,!1)}function o(t){var n;if(e.nodeName){if(i){var o={};o[i]=!0}else o=t;d(o,function(e,i){if(t[i])for(n=t[i].length;n--;)r(i,t[i][n].fn)})}}var s;["protoEvents","hcEvents"].forEach(function(t,a){var l=(a=a?e:e.prototype)&&a[t];l&&(i?(s=l[i]||[],n?(l[i]=s.filter(function(t){return n!==t.fn}),r(i,n)):(o(l),l[i]=[])):(o(l),a[t]={}))})},t.fireEvent=function(t,e,i,n){var r;if(i=i||{},p.createEvent&&(t.dispatchEvent||t.fireEvent)){var o=p.createEvent("Events");o.initEvent(e,!0,!0),c(o,i),t.dispatchEvent?t.dispatchEvent(o):t.fireEvent(e,o)}else i.target||c(i,{preventDefault:function(){i.defaultPrevented=!0},target:t,type:e}),function(e,n){void 0===e&&(e=[]),void 0===n&&(n=[]);var o=0,s=0,a=e.length+n.length;for(r=0;r<a;r++)!1===(e[o]?n[s]?e[o].order<=n[s].order?e[o++]:n[s++]:e[o++]:n[s++]).fn.call(t,i)&&i.preventDefault()}(t.protoEvents&&t.protoEvents[e],t.hcEvents&&t.hcEvents[e]);n&&!i.defaultPrevented&&n.call(t,i)},t.animate=function(e,i,n){var o,s,l,u="";if(!r(n)){var c=arguments;n={duration:c[2],easing:c[3],complete:c[4]}}a(n.duration)||(n.duration=400),n.easing="function"==typeof n.easing?n.easing:Math[n.easing]||Math.easeInOutSine,n.curAnim=t.merge(i),d(i,function(r,a){t.stop(e,a),l=new t.Fx(e,n,a),s=null,"d"===a?(l.paths=l.initPath(e,e.d,i.d),l.toD=i.d,o=0,s=1):e.attr?o=e.attr(a):(o=parseFloat(t.getStyle(e,a))||0,"opacity"!==a&&(u="px")),s||(s=r),s&&s.match&&s.match("px")&&(s=s.replace(/px/g,"")),l.run(o,s,u)})},t.seriesType=function(e,i,n,r,o){var s=t.getOptions(),a=t.seriesTypes;return s.plotOptions[e]=t.merge(s.plotOptions[i],n),a[e]=t.extendClass(a[i]||function(){},r),a[e].prototype.type=e,o&&(a[e].prototype.pointClass=t.extendClass(t.Point,o)),a[e]},t.uniqueKey=function(){var t=Math.random().toString(36).substring(2,9),e=0;return function(){return"highcharts-"+t+"-"+e++}}(),t.isFunction=function(t){return"function"==typeof t},v.jQuery&&(v.jQuery.fn.highcharts=function(){var e=[].slice.call(arguments);if(this[0])return e[0]?(new(t[i(e[0])?e.shift():"Chart"])(this[0],e[0],e[1]),this):f[u(this[0],"data-highcharts-chart")]}),{arrayMax:function(t){for(var e=t.length,i=t[0];e--;)t[e]>i&&(i=t[e]);return i},arrayMin:function(t){for(var e=t.length,i=t[0];e--;)t[e]<i&&(i=t[e]);return i},attr:u,defined:l,destroyObjectProperties:function(t,e){d(t,function(i,n){i&&i!==e&&i.destroy&&i.destroy(),delete t[n]})},discardElement:function(e){var i=t.garbageBin;i||(i=t.createElement("div")),e&&i.appendChild(e),i.innerHTML=""},erase:function(t,e){for(var i=t.length;i--;)if(t[i]===e){t.splice(i,1);break}},extend:c,isArray:n,isClass:s,isDOMElement:o,isNumber:a,isObject:r,isString:i,objectEach:d,pick:h,pInt:e,setAnimation:function(t,e){e.renderer.globalAnimation=h(t,e.options.chart.animation,!0)},splat:function(t){return n(t)?t:[t]},syncTimeout:function(t,e,i){return 0<e?setTimeout(t,e,i):(t.call(0,i),-1)}}}),e(i,"parts/Color.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.isNumber,n=e.pInt,r=t.merge;t.Color=function(e){if(!(this instanceof t.Color))return new t.Color(e);this.init(e)},t.Color.prototype={parsers:[{regex:/rgba\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]?(?:\.[0-9]+)?)\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),parseFloat(t[4],10)]}},{regex:/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/,parse:function(t){return[n(t[1]),n(t[2]),n(t[3]),1]}}],names:{white:"#ffffff",black:"#000000"},init:function(e){var i,n;if((this.input=e=this.names[e&&e.toLowerCase?e.toLowerCase():""]||e)&&e.stops)this.stops=e.stops.map(function(e){return new t.Color(e[1])});else{if(e&&e.charAt&&"#"===e.charAt()){var r=e.length;e=parseInt(e.substr(1),16),7===r?i=[(16711680&e)>>16,(65280&e)>>8,255&e,1]:4===r&&(i=[(3840&e)>>4|(3840&e)>>8,(240&e)>>4|240&e,(15&e)<<4|15&e,1])}if(!i)for(n=this.parsers.length;n--&&!i;){var o=this.parsers[n];(r=o.regex.exec(e))&&(i=o.parse(r))}}this.rgba=i||[]},get:function(t){var e=this.input,n=this.rgba;if(this.stops){var o=r(e);o.stops=[].concat(o.stops),this.stops.forEach(function(e,i){o.stops[i]=[o.stops[i][0],e.get(t)]})}else o=n&&i(n[0])?"rgb"===t||!t&&1===n[3]?"rgb("+n[0]+","+n[1]+","+n[2]+")":"a"===t?n[3]:"rgba("+n.join(",")+")":e;return o},brighten:function(t){var e,r=this.rgba;if(this.stops)this.stops.forEach(function(e){e.brighten(t)});else if(i(t)&&0!==t)for(e=0;3>e;e++)r[e]+=n(255*t),0>r[e]&&(r[e]=0),255<r[e]&&(r[e]=255);return this},setOpacity:function(t){return this.rgba[3]=t,this},tweenTo:function(t,e){var i=this.rgba,n=t.rgba;return n.length&&i&&i.length?e=((t=1!==n[3]||1!==i[3])?"rgba(":"rgb(")+Math.round(n[0]+(i[0]-n[0])*(1-e))+","+Math.round(n[1]+(i[1]-n[1])*(1-e))+","+Math.round(n[2]+(i[2]-n[2])*(1-e))+(t?","+(n[3]+(i[3]-n[3])*(1-e)):"")+")":e=t.input||"none",e}},t.color=function(e){return new t.Color(e)}}),e(i,"parts/SvgRenderer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.attr,n=e.defined,r=e.destroyObjectProperties,o=e.erase,s=e.extend,a=e.isArray,l=e.isNumber,u=e.isObject,c=e.isString,h=e.objectEach,d=e.pick,f=e.pInt,p=e.splat,v=t.addEvent,g=t.animate,m=t.charts,y=t.color,_=t.css,b=t.createElement,x=t.deg2rad,w=t.doc,S=t.hasTouch,T=t.isFirefox,E=t.isMS,C=t.isWebKit,O=t.merge,M=t.noop,P=t.removeEvent,k=t.stop,I=t.svg,L=t.SVG_NS,A=t.symbolSizes,R=t.win,F=t.SVGElement=function(){return this};s(F.prototype,{opacity:1,SVG_NS:L,textProps:"direction fontSize fontWeight fontFamily fontStyle color lineHeight width textAlign textDecoration textOverflow textOutline cursor".split(" "),init:function(e,i){this.element="span"===i?b(i):w.createElementNS(this.SVG_NS,i),this.renderer=e,t.fireEvent(this,"afterInit")},animate:function(e,i,n){var r=t.animObject(d(i,this.renderer.globalAnimation,!0));return d(w.hidden,w.msHidden,w.webkitHidden,!1)&&(r.duration=0),0!==r.duration?(n&&(r.complete=n),g(this,e,r)):(this.attr(e,void 0,n),h(e,function(t,e){r.step&&r.step.call(this,t,{prop:e,pos:1})},this)),this},complexColor:function(e,i,r){var o,s,l,u,c,d,f,p,v,g,m,y,_=this.renderer,b=[];t.fireEvent(this.renderer,"complexColor",{args:arguments},function(){e.radialGradient?s="radialGradient":e.linearGradient&&(s="linearGradient"),s&&(l=e[s],c=_.gradients,f=e.stops,g=r.radialReference,a(l)&&(e[s]=l={x1:l[0],y1:l[1],x2:l[2],y2:l[3],gradientUnits:"userSpaceOnUse"}),"radialGradient"===s&&g&&!n(l.gradientUnits)&&(u=l,l=O(l,_.getRadialAttr(g,u),{gradientUnits:"userSpaceOnUse"})),h(l,function(t,e){"id"!==e&&b.push(e,t)}),h(f,function(t){b.push(t)}),b=b.join(","),c[b]?m=c[b].attr("id"):(l.id=m=t.uniqueKey(),c[b]=d=_.createElement(s).attr(l).add(_.defs),d.radAttr=u,d.stops=[],f.forEach(function(e){0===e[1].indexOf("rgba")?(o=t.color(e[1]),p=o.get("rgb"),v=o.get("a")):(p=e[1],v=1),e=_.createElement("stop").attr({offset:e[0],"stop-color":p,"stop-opacity":v}).add(d),d.stops.push(e)})),y="url("+_.url+"#"+m+")",r.setAttribute(i,y),r.gradient=b,e.toString=function(){return y})})},applyTextOutline:function(e){var n,r=this.element;-1!==e.indexOf("contrast")&&(e=e.replace(/contrast/g,this.renderer.getContrast(r.style.fill)));var o=(e=e.split(" "))[e.length-1];if((n=e[0])&&"none"!==n&&t.svg){this.fakeTS=!0,e=[].slice.call(r.getElementsByTagName("tspan")),this.ySetter=this.xSetter,n=n.replace(/(^[\d\.]+)(.*?)$/g,function(t,e,i){return 2*e+i}),this.removeTextOutline(e);var s=r.firstChild;e.forEach(function(t,e){0===e&&(t.setAttribute("x",r.getAttribute("x")),e=r.getAttribute("y"),t.setAttribute("y",e||0),null===e&&r.setAttribute("y",0)),t=t.cloneNode(1),i(t,{class:"highcharts-text-outline",fill:o,stroke:o,"stroke-width":n,"stroke-linejoin":"round"}),r.insertBefore(t,s)})}},removeTextOutline:function(t){for(var e,i=t.length;i--;)"highcharts-text-outline"===(e=t[i]).getAttribute("class")&&o(t,this.element.removeChild(e))},symbolCustomAttribs:"x y width height r start end innerR anchorX anchorY rounded".split(" "),attr:function(e,i,n,r){var o,s,a,l=this.element,u=this,c=this.symbolCustomAttribs;if("string"==typeof e&&void 0!==i){var d=e;(e={})[d]=i}return"string"==typeof e?u=(this[e+"Getter"]||this._defaultGetter).call(this,e,l):(h(e,function(i,n){s=!1,r||k(this,n),this.symbolName&&-1!==t.inArray(n,c)&&(o||(this.symbolAttr(e),o=!0),s=!0),!this.rotation||"x"!==n&&"y"!==n||(this.doTransform=!0),s||((a=this[n+"Setter"]||this._defaultSetter).call(this,i,n,l),!this.styledMode&&this.shadows&&/^(width|height|visibility|x|y|d|transform|cx|cy|r)$/.test(n)&&this.updateShadows(n,i,a))},this),this.afterSetters()),n&&n.call(this),u},afterSetters:function(){this.doTransform&&(this.updateTransform(),this.doTransform=!1)},updateShadows:function(t,e,i){for(var n=this.shadows,r=n.length;r--;)i.call(n[r],"height"===t?Math.max(e-(n[r].cutHeight||0),0):"d"===t?this.d:e,t,n[r])},addClass:function(t,e){var i=e?"":this.attr("class")||"";return(t=(t||"").split(/ /g).reduce(function(t,e){return-1===i.indexOf(e)&&t.push(e),t},i?[i]:[]).join(" "))!==i&&this.attr("class",t),this},hasClass:function(t){return-1!==(this.attr("class")||"").split(" ").indexOf(t)},removeClass:function(t){return this.attr("class",(this.attr("class")||"").replace(c(t)?new RegExp(" ?"+t+" ?"):t,""))},symbolAttr:function(t){var e=this;"x y r start end width height innerR anchorX anchorY clockwise".split(" ").forEach(function(i){e[i]=d(t[i],e[i])}),e.attr({d:e.renderer.symbols[e.symbolName](e.x,e.y,e.width,e.height,e)})},clip:function(t){return this.attr("clip-path",t?"url("+this.renderer.url+"#"+t.id+")":"none")},crisp:function(t,e){e=e||t.strokeWidth||0;var i=Math.round(e)%2/2;return t.x=Math.floor(t.x||this.x||0)+i,t.y=Math.floor(t.y||this.y||0)+i,t.width=Math.floor((t.width||this.width||0)-2*i),t.height=Math.floor((t.height||this.height||0)-2*i),n(t.strokeWidth)&&(t.strokeWidth=e),t},css:function(t){var e=this.styles,n={},r=this.element,o="",a=!e,l=["textOutline","textOverflow","width"];if(t&&t.color&&(t.fill=t.color),e&&h(t,function(t,i){t!==e[i]&&(n[i]=t,a=!0)}),a){if(e&&(t=s(e,n)),t)if(null===t.width||"auto"===t.width)delete this.textWidth;else if("text"===r.nodeName.toLowerCase()&&t.width)var u=this.textWidth=f(t.width);if(this.styles=t,u&&!I&&this.renderer.forExport&&delete t.width,r.namespaceURI===this.SVG_NS){var c=function(t,e){return"-"+e.toLowerCase()};h(t,function(t,e){-1===l.indexOf(e)&&(o+=e.replace(/([A-Z])/g,c)+":"+t+";")}),o&&i(r,"style",o)}else _(r,t);this.added&&("text"===this.element.nodeName&&this.renderer.buildText(this),t&&t.textOutline&&this.applyTextOutline(t.textOutline))}return this},getStyle:function(t){return R.getComputedStyle(this.element||this,"").getPropertyValue(t)},strokeWidth:function(){if(!this.renderer.styledMode)return this["stroke-width"]||0;var t=this.getStyle("stroke-width");if(t.indexOf("px")===t.length-2)t=f(t);else{var e=w.createElementNS(L,"rect");i(e,{width:t,"stroke-width":0}),this.element.parentNode.appendChild(e),t=e.getBBox().width,e.parentNode.removeChild(e)}return t},on:function(t,e){var i=this,n=i.element;return S&&"click"===t?(n.ontouchstart=function(t){i.touchEventFired=Date.now(),t.preventDefault(),e.call(n,t)},n.onclick=function(t){(-1===R.navigator.userAgent.indexOf("Android")||1100<Date.now()-(i.touchEventFired||0))&&e.call(n,t)}):n["on"+t]=e,this},setRadialReference:function(t){var e=this.renderer.gradients[this.element.gradient];return this.element.radialReference=t,e&&e.radAttr&&e.animate(this.renderer.getRadialAttr(t,e.radAttr)),this},translate:function(t,e){return this.attr({translateX:t,translateY:e})},invert:function(t){return this.inverted=t,this.updateTransform(),this},updateTransform:function(){var t=this.translateX||0,e=this.translateY||0,i=this.scaleX,r=this.scaleY,o=this.inverted,s=this.rotation,a=this.matrix,l=this.element;o&&(t+=this.width,e+=this.height),t=["translate("+t+","+e+")"],n(a)&&t.push("matrix("+a.join(",")+")"),o?t.push("rotate(90) scale(-1,1)"):s&&t.push("rotate("+s+" "+d(this.rotationOriginX,l.getAttribute("x"),0)+" "+d(this.rotationOriginY,l.getAttribute("y")||0)+")"),(n(i)||n(r))&&t.push("scale("+d(i,1)+" "+d(r,1)+")"),t.length&&l.setAttribute("transform",t.join(" "))},toFront:function(){var t=this.element;return t.parentNode.appendChild(t),this},align:function(t,e,i){var n,r,s,a={},l=this.renderer,u=l.alignedObjects;t?(this.alignOptions=t,this.alignByTranslate=e,(!i||c(i))&&(this.alignTo=n=i||"renderer",o(u,this),u.push(this),i=null)):(t=this.alignOptions,e=this.alignByTranslate,n=this.alignTo),i=d(i,l[n],l),n=t.align,l=t.verticalAlign,u=(i.x||0)+(t.x||0);var h=(i.y||0)+(t.y||0);return"right"===n?r=1:"center"===n&&(r=2),r&&(u+=(i.width-(t.width||0))/r),a[e?"translateX":"x"]=Math.round(u),"bottom"===l?s=1:"middle"===l&&(s=2),s&&(h+=(i.height-(t.height||0))/s),a[e?"translateY":"y"]=Math.round(h),this[this.placed?"animate":"attr"](a),this.placed=!0,this.alignAttr=a,this},getBBox:function(t,e){var i,r,o=this.renderer,a=this.element,l=this.styles,u=this.textStr,c=o.cache,h=o.cacheKeys,f=a.namespaceURI===this.SVG_NS;e=d(e,this.rotation,0);var p=o.styledMode?a&&F.prototype.getStyle.call(a,"font-size"):l&&l.fontSize;if(n(u)){var v=u.toString();-1===v.indexOf("<")&&(v=v.replace(/[0-9]/g,"0")),v+=["",e,p,this.textWidth,l&&l.textOverflow].join()}if(v&&!t&&(i=c[v]),!i){if(f||o.forExport){try{(r=this.fakeTS&&function(t){[].forEach.call(a.querySelectorAll(".highcharts-text-outline"),function(e){e.style.display=t})})&&r("none"),i=a.getBBox?s({},a.getBBox()):{width:a.offsetWidth,height:a.offsetHeight},r&&r("")}catch(t){}(!i||0>i.width)&&(i={width:0,height:0})}else i=this.htmlGetBBox();if(o.isSVG&&(t=i.width,o=i.height,f&&(i.height=o={"11px,17":14,"13px,20":16}[l&&l.fontSize+","+Math.round(o)]||o),e&&(l=e*x,i.width=Math.abs(o*Math.sin(l))+Math.abs(t*Math.cos(l)),i.height=Math.abs(o*Math.cos(l))+Math.abs(t*Math.sin(l)))),v&&0<i.height){for(;250<h.length;)delete c[h.shift()];c[v]||h.push(v),c[v]=i}}return i},show:function(t){return this.attr({visibility:t?"inherit":"visible"})},hide:function(t){return t?this.attr({y:-9999}):this.attr({visibility:"hidden"}),this},fadeOut:function(t){var e=this;e.animate({opacity:0},{duration:t||150,complete:function(){e.attr({y:-9999})}})},add:function(t){var e=this.renderer,i=this.element;if(t&&(this.parentGroup=t),this.parentInverted=t&&t.inverted,void 0!==this.textStr&&e.buildText(this),this.added=!0,!t||t.handleZ||this.zIndex)var n=this.zIndexSetter();return n||(t?t.element:e.box).appendChild(i),this.onAdd&&this.onAdd(),this},safeRemoveChild:function(t){var e=t.parentNode;e&&e.removeChild(t)},destroy:function(){var t=this,e=t.element||{},i=t.renderer,n=i.isSVG&&"SPAN"===e.nodeName&&t.parentGroup,r=e.ownerSVGElement,s=t.clipPath;if(e.onclick=e.onmouseout=e.onmouseover=e.onmousemove=e.point=null,k(t),s&&r&&([].forEach.call(r.querySelectorAll("[clip-path],[CLIP-PATH]"),function(t){-1<t.getAttribute("clip-path").indexOf(s.element.id)&&t.removeAttribute("clip-path")}),t.clipPath=s.destroy()),t.stops){for(r=0;r<t.stops.length;r++)t.stops[r]=t.stops[r].destroy();t.stops=null}for(t.safeRemoveChild(e),i.styledMode||t.destroyShadows();n&&n.div&&0===n.div.childNodes.length;)e=n.parentGroup,t.safeRemoveChild(n.div),delete n.div,n=e;t.alignTo&&o(i.alignedObjects,t),h(t,function(e,i){t[i]&&t[i].parentGroup===t&&t[i].destroy&&t[i].destroy(),delete t[i]})},shadow:function(t,e,n){var r,o=[],s=this.element;if(t){if(!this.shadows){var a=d(t.width,3),l=(t.opacity||.15)/a,u=this.parentInverted?"(-1,-1)":"("+d(t.offsetX,1)+", "+d(t.offsetY,1)+")";for(r=1;r<=a;r++){var c=s.cloneNode(0),h=2*a+1-2*r;i(c,{stroke:t.color||"#000000","stroke-opacity":l*r,"stroke-width":h,transform:"translate"+u,fill:"none"}),c.setAttribute("class",(c.getAttribute("class")||"")+" highcharts-shadow"),n&&(i(c,"height",Math.max(i(c,"height")-h,0)),c.cutHeight=h),e?e.element.appendChild(c):s.parentNode&&s.parentNode.insertBefore(c,s),o.push(c)}this.shadows=o}}else this.destroyShadows();return this},destroyShadows:function(){(this.shadows||[]).forEach(function(t){this.safeRemoveChild(t)},this),this.shadows=void 0},xGetter:function(t){return"circle"===this.element.nodeName&&("x"===t?t="cx":"y"===t&&(t="cy")),this._defaultGetter(t)},_defaultGetter:function(t){return t=d(this[t+"Value"],this[t],this.element?this.element.getAttribute(t):null,0),/^[\-0-9\.]+$/.test(t)&&(t=parseFloat(t)),t},dSetter:function(t,e,i){t&&t.join&&(t=t.join(" ")),/(NaN| {2}|^$)/.test(t)&&(t="M 0 0"),this[e]!==t&&(i.setAttribute(e,t),this[e]=t)},dashstyleSetter:function(t){var e,i=this["stroke-width"];if("inherit"===i&&(i=1),t=t&&t.toLowerCase()){for(e=(t=t.replace("shortdashdotdot","3,1,1,1,1,1,").replace("shortdashdot","3,1,1,1").replace("shortdot","1,1,").replace("shortdash","3,1,").replace("longdash","8,3,").replace(/dot/g,"1,3,").replace("dash","4,3,").replace(/,$/,"").split(",")).length;e--;)t[e]=f(t[e])*i;t=t.join(",").replace(/NaN/g,"none"),this.element.setAttribute("stroke-dasharray",t)}},alignSetter:function(t){var e={left:"start",center:"middle",right:"end"};e[t]&&(this.alignValue=t,this.element.setAttribute("text-anchor",e[t]))},opacitySetter:function(t,e,i){this[e]=t,i.setAttribute(e,t)},titleSetter:function(t){var e=this.element.getElementsByTagName("title")[0];e||(e=w.createElementNS(this.SVG_NS,"title"),this.element.appendChild(e)),e.firstChild&&e.removeChild(e.firstChild),e.appendChild(w.createTextNode(String(d(t,"")).replace(/<[^>]*>/g,"").replace(/&lt;/g,"<").replace(/&gt;/g,">")))},textSetter:function(t){t!==this.textStr&&(delete this.bBox,delete this.textPxLength,this.textStr=t,this.added&&this.renderer.buildText(this))},setTextPath:function(e,i){var r=this.element,o={textAnchor:"text-anchor"},s=!1,a=this.textPathWrapper,l=!a,u=(i=O(!0,{enabled:!0,attributes:{dy:-5,startOffset:"50%",textAnchor:"middle"}},i)).attributes;if(e&&i&&i.enabled){this.options&&this.options.padding&&(u.dx=-this.options.padding),a||(this.textPathWrapper=a=this.renderer.createElement("textPath"),s=!0);var c=a.element;if((i=e.element.getAttribute("id"))||e.element.setAttribute("id",i=t.uniqueKey()),l)for(e=r.getElementsByTagName("tspan");e.length;)e[0].setAttribute("y",0),c.appendChild(e[0]);s&&a.add({element:this.text?this.text.element:r}),c.setAttributeNS("http://www.w3.org/1999/xlink","href",this.renderer.url+"#"+i),n(u.dy)&&(c.parentNode.setAttribute("dy",u.dy),delete u.dy),n(u.dx)&&(c.parentNode.setAttribute("dx",u.dx),delete u.dx),h(u,function(t,e){c.setAttribute(o[e]||e,t)}),r.removeAttribute("transform"),this.removeTextOutline.call(a,[].slice.call(r.getElementsByTagName("tspan"))),this.text&&!this.renderer.styledMode&&this.attr({fill:"none","stroke-width":0}),this.applyTextOutline=this.updateTransform=M}else a&&(delete this.updateTransform,delete this.applyTextOutline,this.destroyTextPath(r,e));return this},destroyTextPath:function(t,e){var i;for(e.element.setAttribute("id",""),i=this.textPathWrapper.element.childNodes;i.length;)t.firstChild.appendChild(i[0]);t.firstChild.removeChild(this.textPathWrapper.element),delete e.textPathWrapper},fillSetter:function(t,e,i){"string"==typeof t?i.setAttribute(e,t):t&&this.complexColor(t,e,i)},visibilitySetter:function(t,e,i){"inherit"===t?i.removeAttribute(e):this[e]!==t&&i.setAttribute(e,t),this[e]=t},zIndexSetter:function(t,e){var i=this.renderer,r=this.parentGroup,o=(r||i).element||i.box,s=this.element,a=!1;i=o===i.box;var l,u=this.added;if(n(t)?(s.setAttribute("data-z-index",t),t=+t,this[e]===t&&(u=!1)):n(this[e])&&s.removeAttribute("data-z-index"),this[e]=t,u){for((t=this.zIndex)&&r&&(r.handleZ=!0),l=(e=o.childNodes).length-1;0<=l&&!a;l--){u=(r=e[l]).getAttribute("data-z-index");var c=!n(u);r!==s&&(0>t&&c&&!i&&!l?(o.insertBefore(s,e[l]),a=!0):(f(u)<=t||c&&(!n(t)||0<=t))&&(o.insertBefore(s,e[l+1]||null),a=!0))}a||(o.insertBefore(s,e[i?3:0]||null),a=!0)}return a},_defaultSetter:function(t,e,i){i.setAttribute(e,t)}}),F.prototype.yGetter=F.prototype.xGetter,F.prototype.translateXSetter=F.prototype.translateYSetter=F.prototype.rotationSetter=F.prototype.verticalAlignSetter=F.prototype.rotationOriginXSetter=F.prototype.rotationOriginYSetter=F.prototype.scaleXSetter=F.prototype.scaleYSetter=F.prototype.matrixSetter=function(t,e){this[e]=t,this.doTransform=!0},F.prototype["stroke-widthSetter"]=F.prototype.strokeSetter=function(t,e,i){this[e]=t,this.stroke&&this["stroke-width"]?(F.prototype.fillSetter.call(this,this.stroke,"stroke",i),i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0):"stroke-width"===e&&0===t&&this.hasStroke?(i.removeAttribute("stroke"),this.hasStroke=!1):this.renderer.styledMode&&this["stroke-width"]&&(i.setAttribute("stroke-width",this["stroke-width"]),this.hasStroke=!0)},e=t.SVGRenderer=function(){this.init.apply(this,arguments)},s(e.prototype,{Element:F,SVG_NS:L,init:function(t,e,n,r,o,s,a){var l,u=this.createElement("svg").attr({version:"1.1",class:"highcharts-root"});a||u.css(this.getStyle(r)),r=u.element,t.appendChild(r),i(t,"dir","ltr"),-1===t.innerHTML.indexOf("xmlns")&&i(r,"xmlns",this.SVG_NS),this.isSVG=!0,this.box=r,this.boxWrapper=u,this.alignedObjects=[],this.url=(T||C)&&w.getElementsByTagName("base").length?R.location.href.split("#")[0].replace(/<[^>]*>/g,"").replace(/([\('\)])/g,"\\$1").replace(/ /g,"%20"):"",this.createElement("desc").add().element.appendChild(w.createTextNode("Created with Highcharts 7.2.1")),this.defs=this.createElement("defs").add(),this.allowHTML=s,this.forExport=o,this.styledMode=a,this.gradients={},this.cache={},this.cacheKeys=[],this.imgCount=0,this.setSize(e,n,!1),T&&t.getBoundingClientRect&&((e=function(){_(t,{left:0,top:0}),l=t.getBoundingClientRect(),_(t,{left:Math.ceil(l.left)-l.left+"px",top:Math.ceil(l.top)-l.top+"px"})})(),this.unSubPixelFix=v(R,"resize",e))},definition:function(t){var e=this;return function t(i,n){var r;return p(i).forEach(function(i){var o=e.createElement(i.tagName),s={};h(i,function(t,e){"tagName"!==e&&"children"!==e&&"textContent"!==e&&(s[e]=t)}),o.attr(s),o.add(n||e.defs),i.textContent&&o.element.appendChild(w.createTextNode(i.textContent)),t(i.children||[],o),r=o}),r}(t)},getStyle:function(t){return this.style=s({fontFamily:'"Lucida Grande", "Lucida Sans Unicode", Arial, Helvetica, sans-serif',fontSize:"12px"},t)},setStyle:function(t){this.boxWrapper.css(this.getStyle(t))},isHidden:function(){return!this.boxWrapper.getBBox().width},destroy:function(){var t=this.defs;return this.box=null,this.boxWrapper=this.boxWrapper.destroy(),r(this.gradients||{}),this.gradients=null,t&&(this.defs=t.destroy()),this.unSubPixelFix&&this.unSubPixelFix(),this.alignedObjects=null},createElement:function(t){var e=new this.Element;return e.init(this,t),e},draw:M,getRadialAttr:function(t,e){return{cx:t[0]-t[2]/2+e.cx*t[2],cy:t[1]-t[2]/2+e.cy*t[2],r:e.r*t[2]}},truncate:function(t,e,i,n,r,o,s){var a,l,u=this,c=t.rotation,h=n?1:0,d=(i||n).length,f=d,p=[],v=function(t){e.firstChild&&e.removeChild(e.firstChild),t&&e.appendChild(w.createTextNode(t))},g=function(o,a){if(void 0===p[a=a||o])if(e.getSubStringLength)try{p[a]=r+e.getSubStringLength(0,n?a+1:a)}catch(t){}else u.getSpanWidth&&(v(s(i||n,o)),p[a]=r+u.getSpanWidth(t,e));return p[a]};t.rotation=0;var m=g(e.textContent.length);if(l=r+m>o){for(;h<=d;)f=Math.ceil((h+d)/2),n&&(a=s(n,f)),m=g(f,a&&a.length-1),h===d?h=d+1:m>o?d=f-1:h=f;0===d?v(""):i&&d===i.length-1||v(a||s(i||n,f))}return n&&n.splice(0,f),t.actualWidth=m,t.rotation=c,l},escapes:{"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"},buildText:function(t){var e,n,r=t.element,o=this,s=o.forExport,a=d(t.textStr,"").toString(),l=-1!==a.indexOf("<"),u=r.childNodes,c=i(r,"x"),p=t.styles,v=t.textWidth,g=p&&p.lineHeight,m=p&&p.textOutline,y=p&&"ellipsis"===p.textOverflow,b=p&&"nowrap"===p.whiteSpace,x=p&&p.fontSize,S=u.length;p=v&&!t.added&&this.box;var T=function(t){var e;return o.styledMode||(e=/(px|em)$/.test(t&&t.style.fontSize)?t.style.fontSize:x||o.style.fontSize||12),g?f(g):o.fontMetrics(e,t.getAttribute("style")?t:r).h},E=function(t,e){return h(o.escapes,function(i,n){e&&-1!==e.indexOf(i)||(t=t.toString().replace(new RegExp(i,"g"),n))}),t},C=function(t,e){var i=t.indexOf("<");if(-1!==(i=(t=t.substring(i,t.indexOf(">")-i)).indexOf(e+"="))&&(i=i+e.length+1,'"'===(e=t.charAt(i))||"'"===e))return(t=t.substring(i+1)).substring(0,t.indexOf(e))},O=/<br.*?>/g,M=[a,y,b,g,m,x,v].join();if(M!==t.textCache){for(t.textCache=M;S--;)r.removeChild(u[S]);l||m||y||v||-1!==a.indexOf(" ")&&(!b||O.test(a))?(p&&p.appendChild(r),l?a=(a=o.styledMode?a.replace(/<(b|strong)>/g,'<span class="highcharts-strong">').replace(/<(i|em)>/g,'<span class="highcharts-emphasized">'):a.replace(/<(b|strong)>/g,'<span style="font-weight:bold">').replace(/<(i|em)>/g,'<span style="font-style:italic">')).replace(/<a/g,"<span").replace(/<\/(b|strong|i|em|a)>/g,"</span>").split(O):a=[a],(a=a.filter(function(t){return""!==t})).forEach(function(a,l){var u=0,h=0,d=(a=a.replace(/^\s+|\s+$/g,"").replace(/<span/g,"|||<span").replace(/<\/span>/g,"</span>|||")).split("|||");d.forEach(function(a){if(""!==a||1===d.length){var f,p,g={},m=w.createElementNS(o.SVG_NS,"tspan");if((f=C(a,"class"))&&i(m,"class",f),(f=C(a,"style"))&&(f=f.replace(/(;| |^)color([ :])/,"$1fill$2"),i(m,"style",f)),(p=C(a,"href"))&&!s&&(i(m,"onclick",'location.href="'+p+'"'),i(m,"class","highcharts-anchor"),o.styledMode||_(m,{cursor:"pointer"}))," "!==(a=E(a.replace(/<[a-zA-Z\/](.|\n)*?>/g,"")||" "))){if(m.appendChild(w.createTextNode(a)),u?g.dx=0:l&&null!==c&&(g.x=c),i(m,g),r.appendChild(m),!u&&n&&(!I&&s&&_(m,{display:"block"}),i(m,"dy",T(m))),v){var S=a.replace(/([^\^])-/g,"$1- ").split(" ");g=!b&&(1<d.length||l||1<S.length),p=0;var O=T(m);if(y)e=o.truncate(t,m,a,void 0,0,Math.max(0,v-parseInt(x||12,10)),function(t,e){return t.substring(0,e)+"…"});else if(g)for(;S.length;)S.length&&!b&&0<p&&(m=w.createElementNS(L,"tspan"),i(m,{dy:O,x:c}),f&&i(m,"style",f),m.appendChild(w.createTextNode(S.join(" ").replace(/- /g,"-"))),r.appendChild(m)),o.truncate(t,m,null,S,0===p?h:0,v,function(t,e){return S.slice(0,e).join(" ").replace(/- /g,"-")}),h=t.actualWidth,p++}u++}}}),n=n||r.childNodes.length}),y&&e&&t.attr("title",E(t.textStr,["&lt;","&gt;"])),p&&p.removeChild(r),m&&t.applyTextOutline&&t.applyTextOutline(m)):r.appendChild(w.createTextNode(E(a)))}},getContrast:function(t){return(t=y(t).rgba)[0]*=1,t[1]*=1.2,t[2]*=.5,459<t[0]+t[1]+t[2]?"#000000":"#FFFFFF"},button:function(t,e,i,n,r,o,a,l,u,c){var h=this.label(t,e,i,u,null,null,c,null,"button"),d=0,f=this.styledMode;if(h.attr(O({padding:8,r:2},r)),!f){var p=(r=O({fill:"#f7f7f7",stroke:"#cccccc","stroke-width":1,style:{color:"#333333",cursor:"pointer",fontWeight:"normal"}},r)).style;delete r.style;var g=(o=O(r,{fill:"#e6e6e6"},o)).style;delete o.style;var m=(a=O(r,{fill:"#e6ebf5",style:{color:"#000000",fontWeight:"bold"}},a)).style;delete a.style;var y=(l=O(r,{style:{color:"#cccccc"}},l)).style;delete l.style}return v(h.element,E?"mouseover":"mouseenter",function(){3!==d&&h.setState(1)}),v(h.element,E?"mouseout":"mouseleave",function(){3!==d&&h.setState(d)}),h.setState=function(t){1!==t&&(h.state=d=t),h.removeClass(/highcharts-button-(normal|hover|pressed|disabled)/).addClass("highcharts-button-"+["normal","hover","pressed","disabled"][t||0]),f||h.attr([r,o,a,l][t||0]).css([p,g,m,y][t||0])},f||h.attr(r).css(s({cursor:"default"},p)),h.on("click",function(t){3!==d&&n.call(h,t)})},crispLine:function(t,e){return t[1]===t[4]&&(t[1]=t[4]=Math.round(t[1])-e%2/2),t[2]===t[5]&&(t[2]=t[5]=Math.round(t[2])+e%2/2),t},path:function(t){var e=this.styledMode?{}:{fill:"none"};return a(t)?e.d=t:u(t)&&s(e,t),this.createElement("path").attr(e)},circle:function(t,e,i){return t=u(t)?t:void 0===t?{}:{x:t,y:e,r:i},(e=this.createElement("circle")).xSetter=e.ySetter=function(t,e,i){i.setAttribute("c"+e,t)},e.attr(t)},arc:function(t,e,i,n,r,o){return u(t)?(e=(n=t).y,i=n.r,t=n.x):n={innerR:n,start:r,end:o},(t=this.symbol("arc",t,e,i,i,n)).r=i,t},rect:function(t,e,n,r,o,s){o=u(t)?t.r:o;var a=this.createElement("rect");return t=u(t)?t:void 0===t?{}:{x:t,y:e,width:Math.max(n,0),height:Math.max(r,0)},this.styledMode||(void 0!==s&&(t.strokeWidth=s,t=a.crisp(t)),t.fill="none"),o&&(t.r=o),a.rSetter=function(t,e,n){a.r=t,i(n,{rx:t,ry:t})},a.rGetter=function(){return a.r},a.attr(t)},setSize:function(t,e,i){var n=this.alignedObjects,r=n.length;for(this.width=t,this.height=e,this.boxWrapper.animate({width:t,height:e},{step:function(){this.attr({viewBox:"0 0 "+this.attr("width")+" "+this.attr("height")})},duration:d(i,!0)?void 0:0});r--;)n[r].align()},g:function(t){var e=this.createElement("g");return t?e.attr({class:"highcharts-"+t}):e},image:function(t,e,i,n,r,o){var a={preserveAspectRatio:"none"},l=function(t,e){t.setAttributeNS?t.setAttributeNS("http://www.w3.org/1999/xlink","href",e):t.setAttribute("hc-svg-href",e)},u=function(e){l(c.element,t),o.call(c,e)};1<arguments.length&&s(a,{x:e,y:i,width:n,height:r});var c=this.createElement("image").attr(a);return o?(l(c.element,"data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="),a=new R.Image,v(a,"load",u),a.src=t,a.complete&&u({})):l(c.element,t),c},symbol:function(t,e,i,r,o,a){var l=this,u=/^url\((.*?)\)$/,c=u.test(t),h=!c&&(this.symbols[t]?t:"circle"),f=h&&this.symbols[h],p=n(e)&&f&&f.call(this.symbols,Math.round(e),Math.round(i),r,o,a);if(f){var v=this.path(p);l.styledMode||v.attr("fill","none"),s(v,{symbolName:h,x:e,y:i,width:r,height:o}),a&&s(v,a)}else if(c){var g=t.match(u)[1];(v=this.image(g)).imgwidth=d(A[g]&&A[g].width,a&&a.width),v.imgheight=d(A[g]&&A[g].height,a&&a.height);var y=function(){v.attr({width:v.width,height:v.height})};["width","height"].forEach(function(t){v[t+"Setter"]=function(t,e){var i={},r=this["img"+e],o="width"===e?"translateX":"translateY";this[e]=t,n(r)&&(a&&"within"===a.backgroundSize&&this.width&&this.height&&(r=Math.round(r*Math.min(this.width/this.imgwidth,this.height/this.imgheight))),this.element&&this.element.setAttribute(e,r),this.alignByTranslate||(i[o]=((this[e]||0)-r)/2,this.attr(i)))}}),n(e)&&v.attr({x:e,y:i}),v.isImg=!0,n(v.imgwidth)&&n(v.imgheight)?y():(v.attr({width:0,height:0}),b("img",{onload:function(){var t=m[l.chartIndex];0===this.width&&(_(this,{position:"absolute",top:"-999em"}),w.body.appendChild(this)),A[g]={width:this.width,height:this.height},v.imgwidth=this.width,v.imgheight=this.height,v.element&&y(),this.parentNode&&this.parentNode.removeChild(this),l.imgCount--,!l.imgCount&&t&&t.onload&&t.onload()},src:g}),this.imgCount++)}return v},symbols:{circle:function(t,e,i,n){return this.arc(t+i/2,e+n/2,i/2,n/2,{start:.5*Math.PI,end:2.5*Math.PI,open:!1})},square:function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i,e+n,t,e+n,"Z"]},triangle:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n,t,e+n,"Z"]},"triangle-down":function(t,e,i,n){return["M",t,e,"L",t+i,e,t+i/2,e+n,"Z"]},diamond:function(t,e,i,n){return["M",t+i/2,e,"L",t+i,e+n/2,t+i/2,e+n,t,e+n/2,"Z"]},arc:function(t,e,i,r,o){var s=o.start,a=o.r||i,l=o.r||r||i,u=o.end-.001;i=o.innerR,r=d(o.open,.001>Math.abs(o.end-o.start-2*Math.PI));var c=Math.cos(s),h=Math.sin(s),f=Math.cos(u);return u=Math.sin(u),o=["M",t+a*c,e+l*h,"A",a,l,0,s=.001>o.end-s-Math.PI?0:1,d(o.clockwise,1),t+a*f,e+l*u],n(i)&&o.push(r?"M":"L",t+i*f,e+i*u,"A",i,i,0,s,0,t+i*c,e+i*h),o.push(r?"":"Z"),o},callout:function(t,e,i,n,r){var o=Math.min(r&&r.r||0,i,n),s=o+6,a=r&&r.anchorX;r=r&&r.anchorY;var l=["M",t+o,e,"L",t+i-o,e,"C",t+i,e,t+i,e,t+i,e+o,"L",t+i,e+n-o,"C",t+i,e+n,t+i,e+n,t+i-o,e+n,"L",t+o,e+n,"C",t,e+n,t,e+n,t,e+n-o,"L",t,e+o,"C",t,e,t,e,t+o,e];return a&&a>i?r>e+s&&r<e+n-s?l.splice(13,3,"L",t+i,r-6,t+i+6,r,t+i,r+6,t+i,e+n-o):l.splice(13,3,"L",t+i,n/2,a,r,t+i,n/2,t+i,e+n-o):a&&0>a?r>e+s&&r<e+n-s?l.splice(33,3,"L",t,r+6,t-6,r,t,r-6,t,e+o):l.splice(33,3,"L",t,n/2,a,r,t,n/2,t,e+o):r&&r>n&&a>t+s&&a<t+i-s?l.splice(23,3,"L",a+6,e+n,a,e+n+6,a-6,e+n,t+o,e+n):r&&0>r&&a>t+s&&a<t+i-s&&l.splice(3,3,"L",a-6,e,a,e-6,a+6,e,i-o,e),l}},clipRect:function(e,i,n,r){var o=t.uniqueKey()+"-",s=this.createElement("clipPath").attr({id:o}).add(this.defs);return(e=this.rect(e,i,n,r,0).add(s)).id=o,e.clipPath=s,e.count=0,e},text:function(t,e,i,r){var o={};return!r||!this.allowHTML&&this.forExport?(o.x=Math.round(e||0),i&&(o.y=Math.round(i)),n(t)&&(o.text=t),t=this.createElement("text").attr(o),r||(t.xSetter=function(t,e,i){var n,r=i.getElementsByTagName("tspan"),o=i.getAttribute(e);for(n=0;n<r.length;n++){var s=r[n];s.getAttribute(e)===o&&s.setAttribute(e,t)}i.setAttribute(e,t)}),t):this.html(t,e,i)},fontMetrics:function(t,e){return t=!this.styledMode&&/px/.test(t)||!R.getComputedStyle?t||e&&e.style&&e.style.fontSize||this.style&&this.style.fontSize:e&&F.prototype.getStyle.call(e,"font-size"),{h:e=24>(t=/px/.test(t)?f(t):12)?t+3:Math.round(1.2*t),b:Math.round(.8*e),f:t}},rotCorr:function(t,e,i){var n=t;return e&&i&&(n=Math.max(n*Math.cos(e*x),4)),{x:-t/3*Math.sin(e*x),y:n}},label:function(t,e,i,r,o,a,u,c,h){var d,f,p,v,g,m,y,_,b,x=this,w=x.styledMode,S=x.g("button"!==h&&"label"),T=S.text=x.text("",0,0,u).attr({zIndex:1}),E=0,C=3,M=0,k={},I=/^url\((.*?)\)$/.test(r),L=w||I,A=function(){return w?d.strokeWidth()%2/2:(_?parseInt(_,10):0)%2/2};h&&S.addClass("highcharts-"+h);var R=function(){var t=T.element.style,e={};f=(void 0===p||void 0===v||y)&&n(T.textStr)&&T.getBBox(),S.width=(p||f.width||0)+2*C+M,S.height=(v||f.height||0)+2*C,b=C+Math.min(x.fontMetrics(t&&t.fontSize,T).b,f?f.height:1/0),L&&(d||(S.box=d=x.symbols[r]||I?x.symbol(r):x.rect(),d.addClass(("button"===h?"":"highcharts-label-box")+(h?" highcharts-"+h+"-box":"")),d.add(S),t=A(),e.x=t,e.y=(c?-b:0)+t),e.width=Math.round(S.width),e.height=Math.round(S.height),d.attr(s(e,k)),k={})},D=function(){var t=M+C,e=c?0:b;n(p)&&f&&("center"===y||"right"===y)&&(t+={center:.5,right:1}[y]*(p-f.width)),t===T.x&&e===T.y||(T.attr("x",t),T.hasBoxWidthChanged&&(f=T.getBBox(!0),R()),void 0!==e&&T.attr("y",e)),T.x=t,T.y=e},j=function(t,e){d?d.attr(t,e):k[t]=e};S.onAdd=function(){T.add(S),S.attr({text:t||0===t?t:"",x:e,y:i}),d&&n(o)&&S.attr({anchorX:o,anchorY:a})},S.widthSetter=function(t){p=l(t)?t:null},S.heightSetter=function(t){v=t},S["text-alignSetter"]=function(t){y=t},S.paddingSetter=function(t){n(t)&&t!==C&&(C=S.padding=t,D())},S.paddingLeftSetter=function(t){n(t)&&t!==M&&(M=t,D())},S.alignSetter=function(t){(t={left:0,center:.5,right:1}[t])!==E&&(E=t,f&&S.attr({x:g}))},S.textSetter=function(t){void 0!==t&&T.attr({text:t}),R(),D()},S["stroke-widthSetter"]=function(t,e){t&&(L=!0),_=this["stroke-width"]=t,j(e,t)},w?S.rSetter=function(t,e){j(e,t)}:S.strokeSetter=S.fillSetter=S.rSetter=function(t,e){"r"!==e&&("fill"===e&&t&&(L=!0),S[e]=t),j(e,t)},S.anchorXSetter=function(t,e){o=S.anchorX=t,j(e,Math.round(t)-A()-g)},S.anchorYSetter=function(t,e){a=S.anchorY=t,j(e,t-m)},S.xSetter=function(t){S.x=t,E&&(t-=E*((p||f.width)+2*C),S["forceAnimate:x"]=!0),g=Math.round(t),S.attr("translateX",g)},S.ySetter=function(t){m=S.y=Math.round(t),S.attr("translateY",m)};var N=S.css;return u={css:function(t){if(t){var e={};t=O(t),S.textProps.forEach(function(i){void 0!==t[i]&&(e[i]=t[i],delete t[i])}),T.css(e),"width"in e&&R(),"fontSize"in e&&(R(),D())}return N.call(S,t)},getBBox:function(){return{width:f.width+2*C,height:f.height+2*C,x:f.x-C,y:f.y-C}},destroy:function(){P(S.element,"mouseenter"),P(S.element,"mouseleave"),T&&(T=T.destroy()),d&&(d=d.destroy()),F.prototype.destroy.call(S),S=x=R=D=j=null}},w||(u.shadow=function(t){return t&&(R(),d&&d.shadow(t)),S}),s(S,u)}}),t.Renderer=e}),e(i,"parts/Html.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.attr,n=e.defined,r=e.extend,o=e.pick,s=e.pInt,a=t.createElement,l=t.css,u=t.isFirefox,c=t.isMS,h=t.isWebKit,d=t.SVGElement;e=t.SVGRenderer;var f=t.win;r(d.prototype,{htmlCss:function(t){var e="SPAN"===this.element.tagName&&t&&"width"in t,i=o(e&&t.width,void 0);if(e){delete t.width,this.textWidth=i;var n=!0}return t&&"ellipsis"===t.textOverflow&&(t.whiteSpace="nowrap",t.overflow="hidden"),this.styles=r(this.styles,t),l(this.element,t),n&&this.htmlUpdateTransform(),this},htmlGetBBox:function(){var t=this.element;return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}},htmlUpdateTransform:function(){if(this.added){var t=this.renderer,e=this.element,i=this.translateX||0,r=this.translateY||0,o=this.x||0,a=this.y||0,u=this.textAlign||"left",c={left:0,center:.5,right:1}[u],h=this.styles,d=h&&h.whiteSpace;if(l(e,{marginLeft:i,marginTop:r}),!t.styledMode&&this.shadows&&this.shadows.forEach(function(t){l(t,{marginLeft:i+1,marginTop:r+1})}),this.inverted&&[].forEach.call(e.childNodes,function(i){t.invertChild(i,e)}),"SPAN"===e.tagName){h=this.rotation;var f,p=this.textWidth&&s(this.textWidth),v=[h,u,e.innerHTML,this.textWidth,this.textAlign].join();(f=p!==this.oldTextWidth)&&!(f=p>this.oldTextWidth)&&((f=this.textPxLength)||(l(e,{width:"",whiteSpace:d||"nowrap"}),f=e.offsetWidth),f=f>p),f&&(/[ \-]/.test(e.textContent||e.innerText)||"ellipsis"===e.style.textOverflow)?(l(e,{width:p+"px",display:"block",whiteSpace:d||"normal"}),this.oldTextWidth=p,this.hasBoxWidthChanged=!0):this.hasBoxWidthChanged=!1,v!==this.cTT&&(d=t.fontMetrics(e.style.fontSize,e).b,!n(h)||h===(this.oldRotation||0)&&u===this.oldAlign||this.setSpanRotation(h,c,d),this.getSpanCorrection(!n(h)&&this.textPxLength||e.offsetWidth,d,c,h,u)),l(e,{left:o+(this.xCorr||0)+"px",top:a+(this.yCorr||0)+"px"}),this.cTT=v,this.oldRotation=h,this.oldAlign=u}}else this.alignOnAdd=!0},setSpanRotation:function(t,e,i){var n={},r=this.renderer.getTransformKey();n[r]=n.transform="rotate("+t+"deg)",n[r+(u?"Origin":"-origin")]=n.transformOrigin=100*e+"% "+i+"px",l(this.element,n)},getSpanCorrection:function(t,e,i){this.xCorr=-t*i,this.yCorr=-e}}),r(e.prototype,{getTransformKey:function(){return c&&!/Edge/.test(f.navigator.userAgent)?"-ms-transform":h?"-webkit-transform":u?"MozTransform":f.opera?"-o-transform":""},html:function(t,e,n){var s=this.createElement("span"),l=s.element,u=s.renderer,c=u.isSVG,h=function(t,e){["opacity","visibility"].forEach(function(i){t[i+"Setter"]=function(n,r,o){var s=t.div?t.div.style:e;d.prototype[i+"Setter"].call(this,n,r,o),s&&(s[r]=n)}}),t.addedSetters=!0};return s.textSetter=function(t){t!==l.innerHTML&&(delete this.bBox,delete this.oldTextWidth),this.textStr=t,l.innerHTML=o(t,""),s.doTransform=!0},c&&h(s,s.element.style),s.xSetter=s.ySetter=s.alignSetter=s.rotationSetter=function(t,e){"align"===e&&(e="textAlign"),s[e]=t,s.doTransform=!0},s.afterSetters=function(){this.doTransform&&(this.htmlUpdateTransform(),this.doTransform=!1)},s.attr({text:t,x:Math.round(e),y:Math.round(n)}).css({position:"absolute"}),u.styledMode||s.css({fontFamily:this.style.fontFamily,fontSize:this.style.fontSize}),l.style.whiteSpace="nowrap",s.css=s.htmlCss,c&&(s.add=function(t){var e=u.box.parentNode,n=[];if(this.parentGroup=t){var o=t.div;if(!o){for(;t;)n.push(t),t=t.parentGroup;n.reverse().forEach(function(t){function l(e,i){t[i]=e,"translateX"===i?c.left=e+"px":c.top=e+"px",t.doTransform=!0}var u=i(t.element,"class"),c=(o=t.div=t.div||a("div",u?{className:u}:void 0,{position:"absolute",left:(t.translateX||0)+"px",top:(t.translateY||0)+"px",display:t.display,opacity:t.opacity,pointerEvents:t.styles&&t.styles.pointerEvents},o||e)).style;r(t,{classSetter:function(t){return function(e){this.element.setAttribute("class",e),t.className=e}}(o),on:function(){return n[0].div&&s.on.apply({element:n[0].div},arguments),t},translateXSetter:l,translateYSetter:l}),t.addedSetters||h(t)})}}else o=e;return o.appendChild(l),s.added=!0,s.alignOnAdd&&s.htmlUpdateTransform(),s}),s}})}),e(i,"parts/Time.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.extend,r=e.isObject,o=e.objectEach,s=e.pick,a=e.splat,l=t.merge,u=t.timeUnits,c=t.win;t.Time=function(t){this.update(t,!1)},t.Time.prototype={defaultOptions:{Date:void 0,getTimezoneOffset:void 0,timezone:void 0,timezoneOffset:0,useUTC:!0},update:function(t){var e=s(t&&t.useUTC,!0),i=this;this.options=t=l(!0,this.options||{},t),this.Date=t.Date||c.Date||Date,this.timezoneOffset=(this.useUTC=e)&&t.timezoneOffset,this.getTimezoneOffset=this.timezoneOffsetFunction(),(this.variableTimezone=!(e&&!t.getTimezoneOffset&&!t.timezone))||this.timezoneOffset?(this.get=function(t,e){var n=e.getTime(),r=n-i.getTimezoneOffset(e);return e.setTime(r),t=e["getUTC"+t](),e.setTime(n),t},this.set=function(t,e,n){if("Milliseconds"===t||"Seconds"===t||"Minutes"===t&&0==e.getTimezoneOffset()%60)e["set"+t](n);else{var r=i.getTimezoneOffset(e);r=e.getTime()-r,e.setTime(r),e["setUTC"+t](n),t=i.getTimezoneOffset(e),r=e.getTime()+t,e.setTime(r)}}):e?(this.get=function(t,e){return e["getUTC"+t]()},this.set=function(t,e,i){return e["setUTC"+t](i)}):(this.get=function(t,e){return e["get"+t]()},this.set=function(t,e,i){return e["set"+t](i)})},makeTime:function(e,i,n,r,o,a){if(this.useUTC){var l=this.Date.UTC.apply(0,arguments),u=this.getTimezoneOffset(l);l+=u;var c=this.getTimezoneOffset(l);u!==c?l+=c-u:u-36e5!==this.getTimezoneOffset(l-36e5)||t.isSafari||(l-=36e5)}else l=new this.Date(e,i,s(n,1),s(r,0),s(o,0),s(a,0)).getTime();return l},timezoneOffsetFunction:function(){var e=this,i=this.options,n=c.moment;if(!this.useUTC)return function(t){return 6e4*new Date(t).getTimezoneOffset()};if(i.timezone){if(n)return function(t){return 6e4*-n.tz(t,i.timezone).utcOffset()};t.error(25)}return this.useUTC&&i.getTimezoneOffset?function(t){return 6e4*i.getTimezoneOffset(t)}:function(){return 6e4*(e.timezoneOffset||0)}},dateFormat:function(e,r,a){if(!i(r)||isNaN(r))return t.defaultOptions.lang.invalidDate||"";e=s(e,"%Y-%m-%d %H:%M:%S");var l=this,u=new this.Date(r),c=this.get("Hours",u),h=this.get("Day",u),d=this.get("Date",u),f=this.get("Month",u),p=this.get("FullYear",u),v=t.defaultOptions.lang,g=v.weekdays,m=v.shortWeekdays,y=t.pad;return u=n({a:m?m[h]:g[h].substr(0,3),A:g[h],d:y(d),e:y(d,2," "),w:h,b:v.shortMonths[f],B:v.months[f],m:y(f+1),o:f+1,y:p.toString().substr(2,2),Y:p,H:y(c),k:c,I:y(c%12||12),l:c%12||12,M:y(l.get("Minutes",u)),p:12>c?"AM":"PM",P:12>c?"am":"pm",S:y(u.getSeconds()),L:y(Math.floor(r%1e3),3)},t.dateFormats),o(u,function(t,i){for(;-1!==e.indexOf("%"+i);)e=e.replace("%"+i,"function"==typeof t?t.call(l,r):t)}),a?e.substr(0,1).toUpperCase()+e.substr(1):e},resolveDTLFormat:function(t){return r(t,!0)?t:{main:(t=a(t))[0],from:t[1],to:t[2]}},getTimeTicks:function(t,e,r,o){var a,l=this,c=[],h={},d=new l.Date(e),f=t.unitRange,p=t.count||1;if(o=s(o,1),i(e)){if(l.set("Milliseconds",d,f>=u.second?0:p*Math.floor(l.get("Milliseconds",d)/p)),f>=u.second&&l.set("Seconds",d,f>=u.minute?0:p*Math.floor(l.get("Seconds",d)/p)),f>=u.minute&&l.set("Minutes",d,f>=u.hour?0:p*Math.floor(l.get("Minutes",d)/p)),f>=u.hour&&l.set("Hours",d,f>=u.day?0:p*Math.floor(l.get("Hours",d)/p)),f>=u.day&&l.set("Date",d,f>=u.month?1:Math.max(1,p*Math.floor(l.get("Date",d)/p))),f>=u.month){l.set("Month",d,f>=u.year?0:p*Math.floor(l.get("Month",d)/p));var v=l.get("FullYear",d)}f>=u.year&&l.set("FullYear",d,v-v%p),f===u.week&&(v=l.get("Day",d),l.set("Date",d,l.get("Date",d)-v+o+(v<o?-7:0))),v=l.get("FullYear",d),o=l.get("Month",d);var g=l.get("Date",d),m=l.get("Hours",d);for(e=d.getTime(),l.variableTimezone&&(a=r-e>4*u.month||l.getTimezoneOffset(e)!==l.getTimezoneOffset(r)),e=d.getTime(),d=1;e<r;)c.push(e),e=f===u.year?l.makeTime(v+d*p,0):f===u.month?l.makeTime(v,o+d*p):!a||f!==u.day&&f!==u.week?a&&f===u.hour&&1<p?l.makeTime(v,o,g,m+d*p):e+f*p:l.makeTime(v,o,g+d*p*(f===u.day?1:7)),d++;c.push(e),f<=u.hour&&1e4>c.length&&c.forEach(function(t){0==t%18e5&&"000000000"===l.dateFormat("%H%M%S%L",t)&&(h[t]="day")})}return c.info=n(t,{higherRanks:h,totalRange:f*p}),c}}}),e(i,"parts/Options.js",[i["parts/Globals.js"]],function(t){var e=t.color,i=t.merge;t.defaultOptions={colors:"#7cb5ec #434348 #90ed7d #f7a35c #8085e9 #f15c80 #e4d354 #2b908f #f45b5b #91e8e1".split(" "),symbols:["circle","diamond","square","triangle","triangle-down"],lang:{loading:"Loading...",months:"January February March April May June July August September October November December".split(" "),shortMonths:"Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),weekdays:"Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),decimalPoint:".",numericSymbols:"kMGTPE".split(""),resetZoom:"Reset zoom",resetZoomTitle:"Reset zoom level 1:1",thousandsSep:" "},global:{},time:t.Time.prototype.defaultOptions,chart:{styledMode:!1,borderRadius:0,colorCount:10,defaultSeriesType:"line",ignoreHiddenSeries:!0,spacing:[10,10,15,10],resetZoomButton:{theme:{zIndex:6},position:{align:"right",x:-10,y:10}},width:null,height:null,borderColor:"#335cad",backgroundColor:"#ffffff",plotBorderColor:"#cccccc"},title:{text:"Chart title",align:"center",margin:15,widthAdjust:-44},subtitle:{text:"",align:"center",widthAdjust:-44},caption:{margin:15,text:"",align:"left",verticalAlign:"bottom"},plotOptions:{},labels:{style:{position:"absolute",color:"#333333"}},legend:{enabled:!0,align:"center",alignColumns:!0,layout:"horizontal",labelFormatter:function(){return this.name},borderColor:"#999999",borderRadius:0,navigation:{activeColor:"#003399",inactiveColor:"#cccccc"},itemStyle:{color:"#333333",cursor:"pointer",fontSize:"12px",fontWeight:"bold",textOverflow:"ellipsis"},itemHoverStyle:{color:"#000000"},itemHiddenStyle:{color:"#cccccc"},shadow:!1,itemCheckboxStyle:{position:"absolute",width:"13px",height:"13px"},squareSymbol:!0,symbolPadding:5,verticalAlign:"bottom",x:0,y:0,title:{style:{fontWeight:"bold"}}},loading:{labelStyle:{fontWeight:"bold",position:"relative",top:"45%"},style:{position:"absolute",backgroundColor:"#ffffff",opacity:.5,textAlign:"center"}},tooltip:{enabled:!0,animation:t.svg,borderRadius:3,dateTimeLabelFormats:{millisecond:"%A, %b %e, %H:%M:%S.%L",second:"%A, %b %e, %H:%M:%S",minute:"%A, %b %e, %H:%M",hour:"%A, %b %e, %H:%M",day:"%A, %b %e, %Y",week:"Week from %A, %b %e, %Y",month:"%B %Y",year:"%Y"},footerFormat:"",padding:8,snap:t.isTouchDevice?25:10,headerFormat:'<span style="font-size: 10px">{point.key}</span><br/>',pointFormat:'<span style="color:{point.color}">●</span> {series.name}: <b>{point.y}</b><br/>',backgroundColor:e("#f7f7f7").setOpacity(.85).get(),borderWidth:1,shadow:!0,style:{color:"#333333",cursor:"default",fontSize:"12px",pointerEvents:"none",whiteSpace:"nowrap"}},credits:{enabled:!0,href:"https://www.highcharts.com?credits",position:{align:"right",x:-10,verticalAlign:"bottom",y:-5},style:{cursor:"pointer",color:"#999999",fontSize:"9px"},text:"Highcharts.com"}},t.setOptions=function(e){return t.defaultOptions=i(!0,t.defaultOptions,e),(e.time||e.global)&&t.time.update(i(t.defaultOptions.global,t.defaultOptions.time,e.global,e.time)),t.defaultOptions},t.getOptions=function(){return t.defaultOptions},t.defaultPlotOptions=t.defaultOptions.plotOptions,t.time=new t.Time(i(t.defaultOptions.global,t.defaultOptions.time)),t.dateFormat=function(e,i,n){return t.time.dateFormat(e,i,n)}}),e(i,"parts/Tick.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.destroyObjectProperties,r=e.extend,o=e.isNumber,s=e.pick,a=t.correctFloat,l=t.fireEvent,u=t.merge,c=t.deg2rad;t.Tick=function(t,e,i,n,r){this.axis=t,this.pos=e,this.type=i||"",this.isNewLabel=this.isNew=!0,this.parameters=r||{},this.tickmarkOffset=this.parameters.tickmarkOffset,this.options=this.parameters.options,i||n||this.addLabel()},t.Tick.prototype={addLabel:function(){var t=this,e=t.axis,n=e.options,o=e.chart,l=e.categories,c=e.names,h=t.pos,d=s(t.options&&t.options.labels,n.labels),f=e.tickPositions,p=h===f[0],v=h===f[f.length-1];l=this.parameters.category||(l?s(l[h],c[h],h):h);var g,m,y=t.label;if(f=f.info,e.isDatetimeAxis&&f)var _=o.time.resolveDTLFormat(n.dateTimeLabelFormats[!n.grid&&f.higherRanks[h]||f.unitName]),b=_.main;t.isFirst=p,t.isLast=v,t.formatCtx={axis:e,chart:o,isFirst:p,isLast:v,dateTimeLabelFormat:b,tickPositionInfo:f,value:e.isLog?a(e.lin2log(l)):l,pos:h},n=e.labelFormatter.call(t.formatCtx,this.formatCtx),(m=_&&_.list)&&(t.shortenLabel=function(){for(g=0;g<m.length;g++)if(y.attr({text:e.labelFormatter.call(r(t.formatCtx,{dateTimeLabelFormat:m[g]}))}),y.getBBox().width<e.getSlotWidth(t)-2*s(d.padding,5))return;y.attr({text:""})}),i(y)?y&&y.textStr!==n&&(!y.textWidth||d.style&&d.style.width||y.styles.width||y.css({width:null}),y.attr({text:n}),y.textPxLength=y.getBBox().width):((t.label=y=i(n)&&d.enabled?o.renderer.text(n,0,0,d.useHTML).add(e.labelGroup):null)&&(o.styledMode||y.css(u(d.style)),y.textPxLength=y.getBBox().width),t.rotation=0)},getLabelSize:function(){return this.label?this.label.getBBox()[this.axis.horiz?"height":"width"]:0},handleOverflow:function(t){var e=this.axis,i=e.options.labels,n=t.x,r=e.chart.chartWidth,o=e.chart.spacing,a=s(e.labelLeft,Math.min(e.pos,o[3]));o=s(e.labelRight,Math.max(e.isRadial?0:e.pos+e.len,r-o[1]));var l,u=this.label,h=this.rotation,d={left:0,center:.5,right:1}[e.labelAlign||u.attr("align")],f=u.getBBox().width,p=e.getSlotWidth(this),v=p,g=1,m={};h||"justify"!==s(i.overflow,"justify")?0>h&&n-d*f<a?l=Math.round(n/Math.cos(h*c)-a):0<h&&n+d*f>o&&(l=Math.round((r-n)/Math.cos(h*c))):(r=n+(1-d)*f,n-d*f<a?v=t.x+v*(1-d)-a:r>o&&(v=o-t.x+v*d,g=-1),(v=Math.min(p,v))<p&&"center"===e.labelAlign&&(t.x+=g*(p-v-d*(p-Math.min(f,v)))),(f>v||e.autoRotation&&(u.styles||{}).width)&&(l=v)),l&&(this.shortenLabel?this.shortenLabel():(m.width=Math.floor(l),(i.style||{}).textOverflow||(m.textOverflow="ellipsis"),u.css(m)))},getPosition:function(e,i,n,r){var o=this.axis,s=o.chart,a=r&&s.oldChartHeight||s.chartHeight;return(e={x:e?t.correctFloat(o.translate(i+n,null,null,r)+o.transB):o.left+o.offset+(o.opposite?(r&&s.oldChartWidth||s.chartWidth)-o.right-o.left:0),y:e?a-o.bottom+o.offset-(o.opposite?o.height:0):t.correctFloat(a-o.translate(i+n,null,null,r)-o.transB)}).y=Math.max(Math.min(e.y,1e5),-1e5),l(this,"afterGetPosition",{pos:e}),e},getLabelPosition:function(t,e,n,r,o,s,a,u){var h=this.axis,d=h.transA,f=h.isLinked&&h.linkedParent?h.linkedParent.reversed:h.reversed,p=h.staggerLines,v=h.tickRotCorr||{x:0,y:0},g=o.y,m=r||h.reserveSpaceDefault?0:-h.labelOffset*("center"===h.labelAlign?.5:1),y={};return i(g)||(g=0===h.side?n.rotation?-8:-n.getBBox().height:2===h.side?v.y+8:Math.cos(n.rotation*c)*(v.y-n.getBBox(!1,0).height/2)),t=t+o.x+m+v.x-(s&&r?s*d*(f?-1:1):0),e=e+g-(s&&!r?s*d*(f?1:-1):0),p&&(n=a/(u||1)%p,h.opposite&&(n=p-n-1),e+=h.labelOffset/p*n),y.x=t,y.y=Math.round(e),l(this,"afterGetLabelPosition",{pos:y,tickmarkOffset:s,index:a}),y},getMarkPath:function(t,e,i,n,r,o){return o.crispLine(["M",t,e,"L",t+(r?0:-i),e+(r?i:0)],n)},renderGridLine:function(t,e,i){var n=this.axis,r=n.options,o=this.gridLine,a={},l=this.pos,u=this.type,c=s(this.tickmarkOffset,n.tickmarkOffset),h=n.chart.renderer,d=u?u+"Grid":"grid",f=r[d+"LineWidth"],p=r[d+"LineColor"];r=r[d+"LineDashStyle"],o||(n.chart.styledMode||(a.stroke=p,a["stroke-width"]=f,r&&(a.dashstyle=r)),u||(a.zIndex=1),t&&(e=0),this.gridLine=o=h.path().attr(a).addClass("highcharts-"+(u?u+"-":"")+"grid-line").add(n.gridGroup)),o&&(i=n.getPlotLinePath({value:l+c,lineWidth:o.strokeWidth()*i,force:"pass",old:t}))&&o[t||this.isNew?"attr":"animate"]({d:i,opacity:e})},renderMark:function(t,e,i){var n=this.axis,r=n.options,o=n.chart.renderer,a=this.type,l=a?a+"Tick":"tick",u=n.tickSize(l),c=this.mark,h=!c,d=t.x;t=t.y;var f=s(r[l+"Width"],!a&&n.isXAxis?1:0);r=r[l+"Color"],u&&(n.opposite&&(u[0]=-u[0]),h&&(this.mark=c=o.path().addClass("highcharts-"+(a?a+"-":"")+"tick").add(n.axisGroup),n.chart.styledMode||c.attr({stroke:r,"stroke-width":f})),c[h?"attr":"animate"]({d:this.getMarkPath(d,t,u[0],c.strokeWidth()*i,n.horiz,o),opacity:e}))},renderLabel:function(t,e,i,n){var r=this.axis,a=r.horiz,l=r.options,u=this.label,c=l.labels,h=c.step;r=s(this.tickmarkOffset,r.tickmarkOffset);var d=!0,f=t.x;t=t.y,u&&o(f)&&(u.xy=t=this.getLabelPosition(f,t,u,a,c,r,n,h),this.isFirst&&!this.isLast&&!s(l.showFirstLabel,1)||this.isLast&&!this.isFirst&&!s(l.showLastLabel,1)?d=!1:!a||c.step||c.rotation||e||0===i||this.handleOverflow(t),h&&n%h&&(d=!1),d&&o(t.y)?(t.opacity=i,u[this.isNewLabel?"attr":"animate"](t),this.isNewLabel=!1):(u.attr("y",-9999),this.isNewLabel=!0))},render:function(e,i,n){var r=this.axis,o=r.horiz,a=this.pos,l=s(this.tickmarkOffset,r.tickmarkOffset);l=(a=this.getPosition(o,a,l,i)).x;var u=a.y;r=o&&l===r.pos+r.len||!o&&u===r.pos?-1:1,n=s(n,1),this.isActive=!0,this.renderGridLine(i,n,r),this.renderMark(a,n,r),this.renderLabel(a,i,n,e),this.isNew=!1,t.fireEvent(this,"afterRender")},destroy:function(){n(this,this.axis)}}}),e(i,"parts/Axis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.arrayMax,n=e.arrayMin,r=e.defined,o=e.destroyObjectProperties,s=e.extend,a=e.isArray,l=e.isNumber,u=e.isString,c=e.objectEach,h=e.pick,d=e.splat,f=e.syncTimeout,p=t.addEvent,v=t.animObject,g=t.color,m=t.correctFloat,y=t.defaultOptions,_=t.deg2rad,b=t.fireEvent,x=t.format,w=t.getMagnitude,S=t.merge,T=t.normalizeTickInterval,E=t.removeEvent,C=t.seriesTypes,O=t.Tick;return s((e=function(){this.init.apply(this,arguments)}).prototype,{defaultOptions:{dateTimeLabelFormats:{millisecond:{main:"%H:%M:%S.%L",range:!1},second:{main:"%H:%M:%S",range:!1},minute:{main:"%H:%M",range:!1},hour:{main:"%H:%M",range:!1},day:{main:"%e. %b"},week:{main:"%e. %b"},month:{main:"%b '%y"},year:{main:"%Y"}},endOnTick:!1,labels:{enabled:!0,indentation:10,x:0,style:{color:"#666666",cursor:"default",fontSize:"11px"}},maxPadding:.01,minorTickLength:2,minorTickPosition:"outside",minPadding:.01,showEmpty:!0,startOfWeek:1,startOnTick:!1,tickLength:10,tickPixelInterval:100,tickmarkPlacement:"between",tickPosition:"outside",title:{align:"middle",style:{color:"#666666"}},type:"linear",minorGridLineColor:"#f2f2f2",minorGridLineWidth:1,minorTickColor:"#999999",lineColor:"#ccd6eb",lineWidth:1,gridLineColor:"#e6e6e6",tickColor:"#ccd6eb"},defaultYAxisOptions:{endOnTick:!0,maxPadding:.05,minPadding:.05,tickPixelInterval:72,showLastLabel:!0,labels:{x:-8},startOnTick:!0,title:{rotation:270,text:"Values"},stackLabels:{allowOverlap:!1,enabled:!1,crop:!0,overflow:"justify",formatter:function(){return t.numberFormat(this.total,-1)},style:{color:"#000000",fontSize:"11px",fontWeight:"bold",textOutline:"1px contrast"}},gridLineWidth:1,lineWidth:0},defaultLeftAxisOptions:{labels:{x:-15},title:{rotation:270}},defaultRightAxisOptions:{labels:{x:15},title:{rotation:90}},defaultBottomAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},defaultTopAxisOptions:{labels:{autoRotation:[-45],x:0},margin:15,title:{rotation:0}},init:function(e,i){var n=i.isX,o=this;o.chart=e,o.horiz=e.inverted&&!o.isZAxis?!n:n,o.isXAxis=n,o.coll=o.coll||(n?"xAxis":"yAxis"),b(this,"init",{userOptions:i}),o.opposite=i.opposite,o.side=i.side||(o.horiz?o.opposite?0:2:o.opposite?1:3),o.setOptions(i);var s=this.options,a=s.type;o.labelFormatter=s.labels.formatter||o.defaultLabelFormatter,o.userOptions=i,o.minPixelPadding=0,o.reversed=s.reversed,o.visible=!1!==s.visible,o.zoomEnabled=!1!==s.zoomEnabled,o.hasNames="category"===a||!0===s.categories,o.categories=s.categories||o.hasNames,o.names||(o.names=[],o.names.keys={}),o.plotLinesAndBandsGroups={},o.isLog="logarithmic"===a,o.isDatetimeAxis="datetime"===a,o.positiveValuesOnly=o.isLog&&!o.allowNegativeLog,o.isLinked=r(s.linkedTo),o.ticks={},o.labelEdge=[],o.minorTicks={},o.plotLinesAndBands=[],o.alternateBands={},o.len=0,o.minRange=o.userMinRange=s.minRange||s.maxZoom,o.range=s.range,o.offset=s.offset||0,o.stacks={},o.oldStacks={},o.stacksTouched=0,o.max=null,o.min=null,o.crosshair=h(s.crosshair,d(e.options.tooltip.crosshairs)[n?0:1],!1),i=o.options.events,-1===e.axes.indexOf(o)&&(n?e.axes.splice(e.xAxis.length,0,o):e.axes.push(o),e[o.coll].push(o)),o.series=o.series||[],e.inverted&&!o.isZAxis&&n&&void 0===o.reversed&&(o.reversed=!0),c(i,function(e,i){t.isFunction(e)&&p(o,i,e)}),o.lin2log=s.linearToLogConverter||o.lin2log,o.isLog&&(o.val2lin=o.log2lin,o.lin2val=o.lin2log),b(this,"afterInit")},setOptions:function(t){this.options=S(this.defaultOptions,"yAxis"===this.coll&&this.defaultYAxisOptions,[this.defaultTopAxisOptions,this.defaultRightAxisOptions,this.defaultBottomAxisOptions,this.defaultLeftAxisOptions][this.side],S(y[this.coll],t)),b(this,"afterSetOptions",{userOptions:t})},defaultLabelFormatter:function(){var e=this.axis,i=this.value,n=e.chart.time,r=e.categories,o=this.dateTimeLabelFormat,s=y.lang,a=s.numericSymbols;s=s.numericSymbolMagnitude||1e3;var l=a&&a.length,u=e.options.labels.format;if(e=e.isLog?Math.abs(i):e.tickInterval,u)var c=x(u,this,n);else if(r)c=i;else if(o)c=n.dateFormat(o,i);else if(l&&1e3<=e)for(;l--&&void 0===c;)e>=(n=Math.pow(s,l+1))&&0==10*i%n&&null!==a[l]&&0!==i&&(c=t.numberFormat(i/n,-1)+a[l]);return void 0===c&&(c=1e4<=Math.abs(i)?t.numberFormat(i,-1):t.numberFormat(i,-1,void 0,"")),c},getSeriesExtremes:function(){var t,e=this,i=e.chart;b(this,"getSeriesExtremes",null,function(){e.hasVisibleSeries=!1,e.dataMin=e.dataMax=e.threshold=null,e.softThreshold=!e.isXAxis,e.buildStacks&&e.buildStacks(),e.series.forEach(function(n){if(n.visible||!i.options.chart.ignoreHiddenSeries){var o=n.options,s=o.threshold;if(e.hasVisibleSeries=!0,e.positiveValuesOnly&&0>=s&&(s=null),e.isXAxis){if((o=n.xData).length){var a=(t=n.getXExtremes(o)).min,u=t.max;l(a)||a instanceof Date||(o=o.filter(l),a=(t=n.getXExtremes(o)).min,u=t.max),o.length&&(e.dataMin=Math.min(h(e.dataMin,a),a),e.dataMax=Math.max(h(e.dataMax,u),u))}}else n.getExtremes(),u=n.dataMax,a=n.dataMin,r(a)&&r(u)&&(e.dataMin=Math.min(h(e.dataMin,a),a),e.dataMax=Math.max(h(e.dataMax,u),u)),r(s)&&(e.threshold=s),(!o.softThreshold||e.positiveValuesOnly)&&(e.softThreshold=!1)}})}),b(this,"afterGetSeriesExtremes")},translate:function(t,e,i,n,r,o){var s=this.linkedParent||this,a=1,u=0,c=n?s.oldTransA:s.transA;n=n?s.oldMin:s.min;var h=s.minPixelPadding;return r=(s.isOrdinal||s.isBroken||s.isLog&&r)&&s.lin2val,c||(c=s.transA),i&&(a*=-1,u=s.len),s.reversed&&(u-=(a*=-1)*(s.sector||s.len)),e?(t=(t*a+u-h)/c+n,r&&(t=s.lin2val(t))):(r&&(t=s.val2lin(t)),t=l(n)?a*(t-n)*c+u+a*h+(l(o)?c*o:0):void 0),t},toPixels:function(t,e){return this.translate(t,!1,!this.horiz,null,!0)+(e?0:this.pos)},toValue:function(t,e){return this.translate(t-(e?0:this.pos),!0,!this.horiz,null,!0)},getPlotLinePath:function(t){var e,i,n,r,o,s=this,a=s.chart,u=s.left,c=s.top,d=t.old,f=t.value,p=t.translatedValue,v=t.lineWidth,g=t.force,m=d&&a.oldChartHeight||a.chartHeight,y=d&&a.oldChartWidth||a.chartWidth,_=s.transB,x=function(t,e,i){return("pass"!==g&&t<e||t>i)&&(g?t=Math.min(Math.max(e,t),i):o=!0),t};return t={value:f,lineWidth:v,old:d,force:g,acrossPanes:t.acrossPanes,translatedValue:p},b(this,"getPlotLinePath",t,function(t){p=h(p,s.translate(f,null,null,d)),p=Math.min(Math.max(-1e5,p),1e5),e=n=Math.round(p+_),i=r=Math.round(m-p-_),l(p)?s.horiz?(i=c,r=m-s.bottom,e=n=x(e,u,u+s.width)):(e=u,n=y-s.right,i=r=x(i,c,c+s.height)):(o=!0,g=!1),t.path=o&&!g?null:a.renderer.crispLine(["M",e,i,"L",n,r],v||1)}),t.path},getLinearTickPositions:function(t,e,i){var n=m(Math.floor(e/t)*t);i=m(Math.ceil(i/t)*t);var r,o=[];if(m(n+t)===n&&(r=20),this.single)return[e];for(e=n;e<=i&&(o.push(e),(e=m(e+t,r))!==s);)var s=e;return o},getMinorTickInterval:function(){var t=this.options;return!0===t.minorTicks?h(t.minorTickInterval,"auto"):!1===t.minorTicks?null:t.minorTickInterval},getMinorTickPositions:function(){var t=this,e=t.options,i=t.tickPositions,n=t.minorTickInterval,r=[],o=t.pointRangePadding||0,s=t.min-o,a=(o=t.max+o)-s;if(a&&a/n<t.len/3)if(t.isLog)this.paddedTicks.forEach(function(e,i,o){i&&r.push.apply(r,t.getLogTickPositions(n,o[i-1],o[i],!0))});else if(t.isDatetimeAxis&&"auto"===this.getMinorTickInterval())r=r.concat(t.getTimeTicks(t.normalizeTimeTickInterval(n),s,o,e.startOfWeek));else for(e=s+(i[0]-s)%n;e<=o&&e!==r[0];e+=n)r.push(e);return 0!==r.length&&t.trimTicks(r),r},adjustForMinRange:function(){var t,e,o,s,a=this.options,l=this.min,u=this.max;if(this.isXAxis&&void 0===this.minRange&&!this.isLog&&(r(a.min)||r(a.max)?this.minRange=null:(this.series.forEach(function(i){for(s=i.xData,e=i.xIncrement?1:s.length-1;0<e;e--)o=s[e]-s[e-1],(void 0===t||o<t)&&(t=o)}),this.minRange=Math.min(5*t,this.dataMax-this.dataMin))),u-l<this.minRange){var c=this.dataMax-this.dataMin>=this.minRange,d=this.minRange,f=(d-u+l)/2;f=[l-f,h(a.min,l-f)],c&&(f[2]=this.isLog?this.log2lin(this.dataMin):this.dataMin),u=[(l=i(f))+d,h(a.max,l+d)],c&&(u[2]=this.isLog?this.log2lin(this.dataMax):this.dataMax),(u=n(u))-l<d&&(f[0]=u-d,f[1]=h(a.min,u-d),l=i(f))}this.min=l,this.max=u},getClosest:function(){var t;return this.categories?t=1:this.series.forEach(function(e){var i=e.closestPointRange,n=e.visible||!e.chart.options.chart.ignoreHiddenSeries;!e.noSharedTooltip&&r(i)&&n&&(t=r(t)?Math.min(t,i):i)}),t},nameToX:function(t){var e=a(this.categories),i=e?this.categories:this.names,n=t.options.x;if(t.series.requireSorting=!1,r(n)||(n=!1===this.options.uniqueNames?t.series.autoIncrement():e?i.indexOf(t.name):h(i.keys[t.name],-1)),-1===n){if(!e)var o=i.length}else o=n;return void 0!==o&&(this.names[o]=t.name,this.names.keys[t.name]=o),o},updateNames:function(){var t=this,e=this.names;0<e.length&&(Object.keys(e.keys).forEach(function(t){delete e.keys[t]}),e.length=0,this.minRange=this.userMinRange,(this.series||[]).forEach(function(e){e.xIncrement=null,e.points&&!e.isDirtyData||(t.max=Math.max(t.max,e.xData.length-1),e.processData(),e.generatePoints()),e.data.forEach(function(i,n){if(i&&i.options&&void 0!==i.name){var r=t.nameToX(i);void 0!==r&&r!==i.x&&(i.x=r,e.xData[n]=r)}})}))},setAxisTranslation:function(t){var e=this,i=e.max-e.min,n=e.axisPointRange||0,r=0,o=0,s=e.linkedParent,a=!!e.categories,l=e.transA,c=e.isXAxis;if(c||a||n){var d=e.getClosest();s?(r=s.minPointOffset,o=s.pointRangePadding):e.series.forEach(function(t){var i=a?1:c?h(t.options.pointRange,d,0):e.axisPointRange||0,s=t.options.pointPlacement;n=Math.max(n,i),e.single&&!a||(t=C.xrange&&t instanceof C.xrange?!c:c,r=Math.max(r,t&&u(s)?0:i/2),o=Math.max(o,t&&"on"===s?0:i))}),s=e.ordinalSlope&&d?e.ordinalSlope/d:1,e.minPointOffset=r*=s,e.pointRangePadding=o*=s,e.pointRange=Math.min(n,e.single&&a?1:i),c&&(e.closestPointRange=d)}t&&(e.oldTransA=l),e.translationSlope=e.transA=l=e.staticScale||e.len/(i+o||1),e.transB=e.horiz?e.left:e.bottom,e.minPixelPadding=l*r,b(this,"afterSetAxisTranslation")},minFromRange:function(){return this.max-this.range},setTickInterval:function(e){var i=this,n=i.chart,o=i.options,s=i.isLog,a=i.isDatetimeAxis,u=i.isXAxis,c=i.isLinked,d=o.maxPadding,f=o.minPadding,p=o.tickInterval,v=o.tickPixelInterval,g=i.categories,y=l(i.threshold)?i.threshold:null,_=i.softThreshold;a||g||c||this.getTickAmount();var x=h(i.userMin,o.min),S=h(i.userMax,o.max);if(c){i.linkedParent=n[i.coll][o.linkedTo];var E=i.linkedParent.getExtremes();i.min=h(E.min,E.dataMin),i.max=h(E.max,E.dataMax),o.type!==i.linkedParent.options.type&&t.error(11,1,n)}else{if(!_&&r(y))if(i.dataMin>=y)E=y,f=0;else if(i.dataMax<=y){var C=y;d=0}i.min=h(x,E,i.dataMin),i.max=h(S,C,i.dataMax)}s&&(i.positiveValuesOnly&&!e&&0>=Math.min(i.min,h(i.dataMin,i.min))&&t.error(10,1,n),i.min=m(i.log2lin(i.min),16),i.max=m(i.log2lin(i.max),16)),i.range&&r(i.max)&&(i.userMin=i.min=x=Math.max(i.dataMin,i.minFromRange()),i.userMax=S=i.max,i.range=null),b(i,"foundExtremes"),i.beforePadding&&i.beforePadding(),i.adjustForMinRange(),!(g||i.axisPointRange||i.usePercentage||c)&&r(i.min)&&r(i.max)&&(n=i.max-i.min)&&(!r(x)&&f&&(i.min-=n*f),!r(S)&&d&&(i.max+=n*d)),l(o.softMin)&&!l(i.userMin)&&o.softMin<i.min&&(i.min=x=o.softMin),l(o.softMax)&&!l(i.userMax)&&o.softMax>i.max&&(i.max=S=o.softMax),l(o.floor)&&(i.min=Math.min(Math.max(i.min,o.floor),Number.MAX_VALUE)),l(o.ceiling)&&(i.max=Math.max(Math.min(i.max,o.ceiling),h(i.userMax,-Number.MAX_VALUE))),_&&r(i.dataMin)&&(y=y||0,!r(x)&&i.min<y&&i.dataMin>=y?i.min=i.options.minRange?Math.min(y,i.max-i.minRange):y:!r(S)&&i.max>y&&i.dataMax<=y&&(i.max=i.options.minRange?Math.max(y,i.min+i.minRange):y)),i.tickInterval=i.min===i.max||void 0===i.min||void 0===i.max?1:c&&!p&&v===i.linkedParent.options.tickPixelInterval?p=i.linkedParent.tickInterval:h(p,this.tickAmount?(i.max-i.min)/Math.max(this.tickAmount-1,1):void 0,g?1:(i.max-i.min)*v/Math.max(i.len,v)),u&&!e&&i.series.forEach(function(t){t.processData(i.min!==i.oldMin||i.max!==i.oldMax)}),i.setAxisTranslation(!0),i.beforeSetTickPositions&&i.beforeSetTickPositions(),i.postProcessTickInterval&&(i.tickInterval=i.postProcessTickInterval(i.tickInterval)),i.pointRange&&!p&&(i.tickInterval=Math.max(i.pointRange,i.tickInterval)),e=h(o.minTickInterval,i.isDatetimeAxis&&i.closestPointRange),!p&&i.tickInterval<e&&(i.tickInterval=e),a||s||p||(i.tickInterval=T(i.tickInterval,null,w(i.tickInterval),h(o.allowDecimals,!(.5<i.tickInterval&&5>i.tickInterval&&1e3<i.max&&9999>i.max)),!!this.tickAmount)),this.tickAmount||(i.tickInterval=i.unsquish()),this.setTickPositions()},setTickPositions:function(){var e=this.options,i=e.tickPositions,n=this.getMinorTickInterval(),o=e.tickPositioner,s=e.startOnTick,a=e.endOnTick;this.tickmarkOffset=this.categories&&"between"===e.tickmarkPlacement&&1===this.tickInterval?.5:0,this.minorTickInterval="auto"===n&&this.tickInterval?this.tickInterval/5:n,this.single=this.min===this.max&&r(this.min)&&!this.tickAmount&&(parseInt(this.min,10)===this.min||!1!==e.allowDecimals),this.tickPositions=n=i&&i.slice(),!n&&(!this.ordinalPositions&&(this.max-this.min)/this.tickInterval>Math.max(2*this.len,200)?(n=[this.min,this.max],t.error(19,!1,this.chart)):n=this.isDatetimeAxis?this.getTimeTicks(this.normalizeTimeTickInterval(this.tickInterval,e.units),this.min,this.max,e.startOfWeek,this.ordinalPositions,this.closestPointRange,!0):this.isLog?this.getLogTickPositions(this.tickInterval,this.min,this.max):this.getLinearTickPositions(this.tickInterval,this.min,this.max),n.length>this.len&&((n=[n[0],n.pop()])[0]===n[1]&&(n.length=1)),this.tickPositions=n,o&&(o=o.apply(this,[this.min,this.max])))&&(this.tickPositions=n=o),this.paddedTicks=n.slice(0),this.trimTicks(n,s,a),this.isLinked||(this.single&&2>n.length&&!this.categories&&(this.min-=.5,this.max+=.5),i||o||this.adjustTickAmount()),b(this,"afterSetTickPositions")},trimTicks:function(t,e,i){var n=t[0],o=t[t.length-1],s=this.minPointOffset||0;if(b(this,"trimTicks"),!this.isLinked){if(e&&-1/0!==n)this.min=n;else for(;this.min-s>t[0];)t.shift();if(i)this.max=o;else for(;this.max+s<t[t.length-1];)t.pop();0===t.length&&r(n)&&!this.options.tickPositions&&t.push((o+n)/2)}},alignToOthers:function(){var t,e={},i=this.options;return!1===this.chart.options.chart.alignTicks||!1===i.alignTicks||!1===i.startOnTick||!1===i.endOnTick||this.isLog||this.chart[this.coll].forEach(function(i){var n=i.options;n=[i.horiz?n.left:n.top,n.width,n.height,n.pane].join(),i.series.length&&(e[n]?t=!0:e[n]=1)}),t},getTickAmount:function(){var t=this.options,e=t.tickAmount,i=t.tickPixelInterval;!r(t.tickInterval)&&this.len<i&&!this.isRadial&&!this.isLog&&t.startOnTick&&t.endOnTick&&(e=2),!e&&this.alignToOthers()&&(e=Math.ceil(this.len/i)+1),4>e&&(this.finalTickAmt=e,e=5),this.tickAmount=e},adjustTickAmount:function(){var t,e=this.options,i=this.tickInterval,n=this.tickPositions,o=this.tickAmount,s=this.finalTickAmt,a=n&&n.length,l=h(this.threshold,this.softThreshold?0:null);if(this.hasData()){if(a<o){for(t=this.min;n.length<o;)n.length%2||t===l?n.push(m(n[n.length-1]+i)):n.unshift(m(n[0]-i));this.transA*=(a-1)/(o-1),this.min=e.startOnTick?n[0]:Math.min(this.min,n[0]),this.max=e.endOnTick?n[n.length-1]:Math.max(this.max,n[n.length-1])}else a>o&&(this.tickInterval*=2,this.setTickPositions());if(r(s)){for(i=e=n.length;i--;)(3===s&&1==i%2||2>=s&&0<i&&i<e-1)&&n.splice(i,1);this.finalTickAmt=void 0}}},setScale:function(){var t,e=this.series.some(function(t){return t.isDirtyData||t.isDirty||t.xAxis&&t.xAxis.isDirty});this.oldMin=this.min,this.oldMax=this.max,this.oldAxisLength=this.len,this.setAxisSize(),(t=this.len!==this.oldAxisLength)||e||this.isLinked||this.forceRedraw||this.userMin!==this.oldUserMin||this.userMax!==this.oldUserMax||this.alignToOthers()?(this.resetStacks&&this.resetStacks(),this.forceRedraw=!1,this.getSeriesExtremes(),this.setTickInterval(),this.oldUserMin=this.userMin,this.oldUserMax=this.userMax,this.isDirty||(this.isDirty=t||this.min!==this.oldMin||this.max!==this.oldMax)):this.cleanStacks&&this.cleanStacks(),b(this,"afterSetScale")},setExtremes:function(t,e,i,n,r){var o=this,a=o.chart;i=h(i,!0),o.series.forEach(function(t){delete t.kdTree}),r=s(r,{min:t,max:e}),b(o,"setExtremes",r,function(){o.userMin=t,o.userMax=e,o.eventArgs=r,i&&a.redraw(n)})},zoom:function(t,e){var i=this.dataMin,n=this.dataMax,o=this.options,s=Math.min(i,h(o.min,i)),a=Math.max(n,h(o.max,n));return b(this,"zoom",t={newMin:t,newMax:e},function(t){var e=t.newMin,o=t.newMax;e===this.min&&o===this.max||(this.allowZoomOutside||(r(i)&&(e<s&&(e=s),e>a&&(e=a)),r(n)&&(o<s&&(o=s),o>a&&(o=a))),this.displayBtn=void 0!==e||void 0!==o,this.setExtremes(e,o,!1,void 0,{trigger:"zoom"})),t.zoomed=!0}),t.zoomed},setAxisSize:function(){var e=this.chart,i=this.options,n=i.offsets||[0,0,0,0],r=this.horiz,o=this.width=Math.round(t.relativeLength(h(i.width,e.plotWidth-n[3]+n[1]),e.plotWidth)),s=this.height=Math.round(t.relativeLength(h(i.height,e.plotHeight-n[0]+n[2]),e.plotHeight)),a=this.top=Math.round(t.relativeLength(h(i.top,e.plotTop+n[0]),e.plotHeight,e.plotTop));i=this.left=Math.round(t.relativeLength(h(i.left,e.plotLeft+n[3]),e.plotWidth,e.plotLeft)),this.bottom=e.chartHeight-s-a,this.right=e.chartWidth-o-i,this.len=Math.max(r?o:s,0),this.pos=r?i:a},getExtremes:function(){var t=this.isLog;return{min:t?m(this.lin2log(this.min)):this.min,max:t?m(this.lin2log(this.max)):this.max,dataMin:this.dataMin,dataMax:this.dataMax,userMin:this.userMin,userMax:this.userMax}},getThreshold:function(t){var e=this.isLog,i=e?this.lin2log(this.min):this.min;return e=e?this.lin2log(this.max):this.max,null===t||-1/0===t?t=i:1/0===t?t=e:i>t?t=i:e<t&&(t=e),this.translate(t,0,1,0,1)},autoLabelAlign:function(t){var e=(h(t,0)-90*this.side+720)%360;return b(this,"autoLabelAlign",t={align:"center"},function(t){15<e&&165>e?t.align="right":195<e&&345>e&&(t.align="left")}),t.align},tickSize:function(t){var e=this.options,i=e[t+"Length"],n=h(e[t+"Width"],"tick"===t&&this.isXAxis&&!this.categories?1:0);if(n&&i){"inside"===e[t+"Position"]&&(i=-i);var r=[i,n]}return b(this,"afterTickSize",t={tickSize:r}),t.tickSize},labelMetrics:function(){var t=this.tickPositions&&this.tickPositions[0]||0;return this.chart.renderer.fontMetrics(this.options.labels.style&&this.options.labels.style.fontSize,this.ticks[t]&&this.ticks[t].label)},unsquish:function(){var t,e,i,n=this.options.labels,o=this.horiz,s=this.tickInterval,a=s,l=this.len/(((this.categories?1:0)+this.max-this.min)/s),u=n.rotation,c=this.labelMetrics(),d=Number.MAX_VALUE,f=this.max-this.min,p=function(t){var e=t/(l||1);return(e=1<e?Math.ceil(e):1)*s>f&&1/0!==t&&1/0!==l&&f&&(e=Math.ceil(f/s)),m(e*s)};return o?(i=!n.staggerLines&&!n.step&&(r(u)?[u]:l<h(n.autoRotationLimit,80)&&n.autoRotation))&&i.forEach(function(i){if(i===u||i&&-90<=i&&90>=i){var n=(e=p(Math.abs(c.h/Math.sin(_*i))))+Math.abs(i/360);n<d&&(d=n,t=i,a=e)}}):n.step||(a=p(c.h)),this.autoRotation=i,this.labelRotation=h(t,u),a},getSlotWidth:function(t){var e=this.chart,i=this.horiz,n=this.options.labels,r=Math.max(this.tickPositions.length-(this.categories?0:1),1),o=e.margin[3];return t&&t.slotWidth||i&&2>(n.step||0)&&!n.rotation&&(this.staggerLines||1)*this.len/r||!i&&(n.style&&parseInt(n.style.width,10)||o&&o-e.spacing[3]||.33*e.chartWidth)},renderUnsquish:function(){var t=this.chart,e=t.renderer,i=this.tickPositions,n=this.ticks,r=this.options.labels,o=r&&r.style||{},s=this.horiz,a=this.getSlotWidth(),l=Math.max(1,Math.round(a-2*(r.padding||5))),c={},h=this.labelMetrics(),d=r.style&&r.style.textOverflow,f=0;if(u(r.rotation)||(c.rotation=r.rotation||0),i.forEach(function(t){(t=n[t])&&t.label&&t.label.textPxLength>f&&(f=t.label.textPxLength)}),this.maxLabelLength=f,this.autoRotation)f>l&&f>h.h?c.rotation=this.labelRotation:this.labelRotation=0;else if(a){var p=l;if(!d){var v="clip";for(l=i.length;!s&&l--;){var g=i[l];(g=n[g].label)&&(g.styles&&"ellipsis"===g.styles.textOverflow?g.css({textOverflow:"clip"}):g.textPxLength>a&&g.css({width:a+"px"}),g.getBBox().height>this.len/i.length-(h.h-h.f)&&(g.specificTextOverflow="ellipsis"))}}}c.rotation&&(p=f>.5*t.chartHeight?.33*t.chartHeight:f,d||(v="ellipsis")),(this.labelAlign=r.align||this.autoLabelAlign(this.labelRotation))&&(c.align=this.labelAlign),i.forEach(function(t){var e=(t=n[t])&&t.label,i=o.width,r={};e&&(e.attr(c),t.shortenLabel?t.shortenLabel():p&&!i&&"nowrap"!==o.whiteSpace&&(p<e.textPxLength||"SPAN"===e.element.tagName)?(r.width=p,d||(r.textOverflow=e.specificTextOverflow||v),e.css(r)):e.styles&&e.styles.width&&!r.width&&!i&&e.css({width:null}),delete e.specificTextOverflow,t.rotation=c.rotation)},this),this.tickRotCorr=e.rotCorr(h.b,this.labelRotation||0,0!==this.side)},hasData:function(){return this.series.some(function(t){return t.hasData()})||this.options.showEmpty&&r(this.min)&&r(this.max)},addTitle:function(t){var e,i=this.chart.renderer,n=this.horiz,r=this.opposite,o=this.options.title,s=this.chart.styledMode;this.axisTitle||((e=o.textAlign)||(e=(n?{low:"left",middle:"center",high:"right"}:{low:r?"right":"left",middle:"center",high:r?"left":"right"})[o.align]),this.axisTitle=i.text(o.text,0,0,o.useHTML).attr({zIndex:7,rotation:o.rotation||0,align:e}).addClass("highcharts-axis-title"),s||this.axisTitle.css(S(o.style)),this.axisTitle.add(this.axisGroup),this.axisTitle.isNew=!0),s||o.style.width||this.isRadial||this.axisTitle.css({width:this.len}),this.axisTitle[t?"show":"hide"](t)},generateTick:function(t){var e=this.ticks;e[t]?e[t].addLabel():e[t]=new O(this,t)},getOffset:function(){var t,e=this,i=e.chart,n=i.renderer,o=e.options,s=e.tickPositions,a=e.ticks,l=e.horiz,u=e.side,d=i.inverted&&!e.isZAxis?[1,0,3,2][u]:u,f=0,p=0,v=o.title,g=o.labels,m=0,y=i.axisOffset;i=i.clipOffset;var _=[-1,1,1,-1][u],x=o.className,w=e.axisParent,S=e.hasData();if(e.showAxis=t=S||h(o.showEmpty,!0),e.staggerLines=e.horiz&&g.staggerLines,e.axisGroup||(e.gridGroup=n.g("grid").attr({zIndex:o.gridZIndex||1}).addClass("highcharts-"+this.coll.toLowerCase()+"-grid "+(x||"")).add(w),e.axisGroup=n.g("axis").attr({zIndex:o.zIndex||2}).addClass("highcharts-"+this.coll.toLowerCase()+" "+(x||"")).add(w),e.labelGroup=n.g("axis-labels").attr({zIndex:g.zIndex||7}).addClass("highcharts-"+e.coll.toLowerCase()+"-labels "+(x||"")).add(w)),S||e.isLinked?(s.forEach(function(t,i){e.generateTick(t,i)}),e.renderUnsquish(),e.reserveSpaceDefault=0===u||2===u||{1:"left",3:"right"}[u]===e.labelAlign,h(g.reserveSpace,"center"===e.labelAlign||null,e.reserveSpaceDefault)&&s.forEach(function(t){m=Math.max(a[t].getLabelSize(),m)}),e.staggerLines&&(m*=e.staggerLines),e.labelOffset=m*(e.opposite?-1:1)):c(a,function(t,e){t.destroy(),delete a[e]}),v&&v.text&&!1!==v.enabled&&(e.addTitle(t),t&&!1!==v.reserveSpace)){e.titleOffset=f=e.axisTitle.getBBox()[l?"height":"width"];var T=v.offset;p=r(T)?0:h(v.margin,l?5:10)}e.renderLine(),e.offset=_*h(o.offset,y[u]?y[u]+(o.margin||0):0),e.tickRotCorr=e.tickRotCorr||{x:0,y:0},n=0===u?-e.labelMetrics().h:2===u?e.tickRotCorr.y:0,p=Math.abs(m)+p,m&&(p=p-n+_*(l?h(g.y,e.tickRotCorr.y+8*_):g.x)),e.axisTitleMargin=h(T,p),e.getMaxLabelDimensions&&(e.maxLabelDimensions=e.getMaxLabelDimensions(a,s)),l=this.tickSize("tick"),y[u]=Math.max(y[u],e.axisTitleMargin+f+_*e.offset,p,s&&s.length&&l?l[0]+_*e.offset:0),o=o.offset?0:2*Math.floor(e.axisLine.strokeWidth()/2),i[d]=Math.max(i[d],o),b(this,"afterGetOffset")},getLinePath:function(t){var e=this.chart,i=this.opposite,n=this.offset,r=this.horiz,o=this.left+(i?this.width:0)+n;return n=e.chartHeight-this.bottom-(i?this.height:0)+n,i&&(t*=-1),e.renderer.crispLine(["M",r?this.left:o,r?n:this.top,"L",r?e.chartWidth-this.right:o,r?n:e.chartHeight-this.bottom],t)},renderLine:function(){this.axisLine||(this.axisLine=this.chart.renderer.path().addClass("highcharts-axis-line").add(this.axisGroup),this.chart.styledMode||this.axisLine.attr({stroke:this.options.lineColor,"stroke-width":this.options.lineWidth,zIndex:7}))},getTitlePosition:function(){var t=this.horiz,e=this.left,i=this.top,n=this.len,r=this.options.title,o=t?e:i,s=this.opposite,a=this.offset,l=r.x||0,u=r.y||0,c=this.axisTitle,h=this.chart.renderer.fontMetrics(r.style&&r.style.fontSize,c);return c=Math.max(c.getBBox(null,0).height-h.h-1,0),n={low:o+(t?0:n),middle:o+n/2,high:o+(t?n:0)}[r.align],e=(t?i+this.height:e)+(t?1:-1)*(s?-1:1)*this.axisTitleMargin+[-c,c,h.f,-c][this.side],t={x:t?n+l:e+(s?this.width:0)+a+l,y:t?e+u-(s?this.height:0)+a:n+u},b(this,"afterGetTitlePosition",{titlePosition:t}),t},renderMinorTick:function(t){var e=this.chart.hasRendered&&l(this.oldMin),i=this.minorTicks;i[t]||(i[t]=new O(this,t,"minor")),e&&i[t].isNew&&i[t].render(null,!0),i[t].render(null,!1,1)},renderTick:function(t,e){var i=this.isLinked,n=this.ticks,r=this.chart.hasRendered&&l(this.oldMin);(!i||t>=this.min&&t<=this.max)&&(n[t]||(n[t]=new O(this,t)),r&&n[t].isNew&&n[t].render(e,!0,-1),n[t].render(e))},render:function(){var e,i,n=this,r=n.chart,o=n.options,s=n.isLog,a=n.isLinked,u=n.tickPositions,h=n.axisTitle,d=n.ticks,p=n.minorTicks,g=n.alternateBands,m=o.stackLabels,y=o.alternateGridColor,_=n.tickmarkOffset,x=n.axisLine,w=n.showAxis,S=v(r.renderer.globalAnimation);n.labelEdge.length=0,n.overlap=!1,[d,p,g].forEach(function(t){c(t,function(t){t.isActive=!1})}),(n.hasData()||a)&&(n.minorTickInterval&&!n.categories&&n.getMinorTickPositions().forEach(function(t){n.renderMinorTick(t)}),u.length&&(u.forEach(function(t,e){n.renderTick(t,e)}),_&&(0===n.min||n.single)&&(d[-1]||(d[-1]=new O(n,-1,null,!0)),d[-1].render(-1))),y&&u.forEach(function(o,a){i=void 0!==u[a+1]?u[a+1]+_:n.max-_,0==a%2&&o<n.max&&i<=n.max+(r.polar?-_:_)&&(g[o]||(g[o]=new t.PlotLineOrBand(n)),e=o+_,g[o].options={from:s?n.lin2log(e):e,to:s?n.lin2log(i):i,color:y},g[o].render(),g[o].isActive=!0)}),n._addedPlotLB||((o.plotLines||[]).concat(o.plotBands||[]).forEach(function(t){n.addPlotBandOrLine(t)}),n._addedPlotLB=!0)),[d,p,g].forEach(function(t){var e,i=[],n=S.duration;c(t,function(t,e){t.isActive||(t.render(e,!1,0),t.isActive=!1,i.push(e))}),f(function(){for(e=i.length;e--;)t[i[e]]&&!t[i[e]].isActive&&(t[i[e]].destroy(),delete t[i[e]])},t!==g&&r.hasRendered&&n?n:0)}),x&&(x[x.isPlaced?"animate":"attr"]({d:this.getLinePath(x.strokeWidth())}),x.isPlaced=!0,x[w?"show":"hide"](w)),h&&w&&(o=n.getTitlePosition(),l(o.y)?(h[h.isNew?"attr":"animate"](o),h.isNew=!1):(h.attr("y",-9999),h.isNew=!0)),m&&m.enabled&&n.renderStackTotals(),n.isDirty=!1,b(this,"afterRender")},redraw:function(){this.visible&&(this.render(),this.plotLinesAndBands.forEach(function(t){t.render()})),this.series.forEach(function(t){t.isDirty=!0})},keepProps:"extKey hcEvents names series userMax userMin".split(" "),destroy:function(t){var e,i=this,n=i.stacks,r=i.plotLinesAndBands;if(b(this,"destroy",{keepEvents:t}),t||E(i),c(n,function(t,e){o(t),n[e]=null}),[i.ticks,i.minorTicks,i.alternateBands].forEach(function(t){o(t)}),r)for(t=r.length;t--;)r[t].destroy();for(e in"stackTotalGroup axisLine axisTitle axisGroup gridGroup labelGroup cross scrollbar".split(" ").forEach(function(t){i[t]&&(i[t]=i[t].destroy())}),i.plotLinesAndBandsGroups)i.plotLinesAndBandsGroups[e]=i.plotLinesAndBandsGroups[e].destroy();c(i,function(t,e){-1===i.keepProps.indexOf(e)&&delete i[e]})},drawCrosshair:function(t,e){var i,n,o=this.crosshair,s=h(o.snap,!0),a=this.cross;if(b(this,"drawCrosshair",{e:t,point:e}),t||(t=this.cross&&this.cross.e),this.crosshair&&!1!==(r(e)||!s)){if(s?r(e)&&(n=h("colorAxis"!==this.coll?e.crosshairPos:null,this.isXAxis?e.plotX:this.len-e.plotY)):n=t&&(this.horiz?t.chartX-this.pos:this.len-t.chartY+this.pos),r(n)&&(i=this.getPlotLinePath({value:e&&(this.isXAxis?e.x:h(e.stackY,e.y)),translatedValue:n})||null),!r(i))return void this.hideCrosshair();s=this.categories&&!this.isRadial,a||(this.cross=a=this.chart.renderer.path().addClass("highcharts-crosshair highcharts-crosshair-"+(s?"category ":"thin ")+o.className).attr({zIndex:h(o.zIndex,2)}).add(),this.chart.styledMode||(a.attr({stroke:o.color||(s?g("#ccd6eb").setOpacity(.25).get():"#cccccc"),"stroke-width":h(o.width,1)}).css({"pointer-events":"none"}),o.dashStyle&&a.attr({dashstyle:o.dashStyle}))),a.show().attr({d:i}),s&&!o.width&&a.attr({"stroke-width":this.transA}),this.cross.e=t}else this.hideCrosshair();b(this,"afterDrawCrosshair",{e:t,point:e})},hideCrosshair:function(){this.cross&&this.cross.hide(),b(this,"afterHideCrosshair")}}),t.Axis=e}),e(i,"parts/DateTimeAxis.js",[i["parts/Globals.js"]],function(t){var e=t.Axis,i=t.getMagnitude,n=t.normalizeTickInterval,r=t.timeUnits;e.prototype.getTimeTicks=function(){return this.chart.time.getTimeTicks.apply(this.chart.time,arguments)},e.prototype.normalizeTimeTickInterval=function(t,e){var o=e||[["millisecond",[1,2,5,10,20,25,50,100,200,500]],["second",[1,2,5,10,15,30]],["minute",[1,2,5,10,15,30]],["hour",[1,2,3,4,6,8,12]],["day",[1,2]],["week",[1,2]],["month",[1,2,3,4,6]],["year",null]];e=o[o.length-1];var s,a=r[e[0]],l=e[1];for(s=0;s<o.length&&(e=o[s],a=r[e[0]],l=e[1],!(o[s+1]&&t<=(a*l[l.length-1]+r[o[s+1][0]])/2));s++);return a===r.year&&t<5*a&&(l=[1,2,5]),{unitRange:a,count:t=n(t/a,l,"year"===e[0]?Math.max(i(t/a),1):1),unitName:e[0]}}}),e(i,"parts/LogarithmicAxis.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.pick;e=t.Axis;var n=t.getMagnitude,r=t.normalizeTickInterval;e.prototype.getLogTickPositions=function(t,e,o,s){var a=this.options,l=this.len,u=[];if(s||(this._minorAutoInterval=null),.5<=t)t=Math.round(t),u=this.getLinearTickPositions(t,e,o);else if(.08<=t){var c,h;for(l=Math.floor(e),a=.3<t?[1,2,4]:.15<t?[1,2,4,6,8]:[1,2,3,4,5,6,7,8,9];l<o+1&&!h;l++){var d=a.length;for(c=0;c<d&&!h;c++){var f=this.log2lin(this.lin2log(l)*a[c]);f>e&&(!s||p<=o)&&void 0!==p&&u.push(p),p>o&&(h=!0);var p=f}}}else e=this.lin2log(e),o=this.lin2log(o),t=s?this.getMinorTickInterval():a.tickInterval,t=i("auto"===t?null:t,this._minorAutoInterval,a.tickPixelInterval/(s?5:1)*(o-e)/((s?l/this.tickPositions.length:l)||1)),t=r(t,null,n(t)),u=this.getLinearTickPositions(t,e,o).map(this.log2lin),s||(this._minorAutoInterval=t/5);return s||(this.tickInterval=t),u},e.prototype.log2lin=function(t){return Math.log(t)/Math.LN10},e.prototype.lin2log=function(t){return Math.pow(10,t)}}),e(i,"parts/PlotLineOrBand.js",[i["parts/Globals.js"],i["parts/Axis.js"],i["parts/Utilities.js"]],function(t,e,i){var n=i.arrayMax,r=i.arrayMin,o=i.defined,s=i.destroyObjectProperties,a=i.erase,l=i.extend,u=i.objectEach,c=i.pick,h=t.merge;t.PlotLineOrBand=function(t,e){this.axis=t,e&&(this.options=e,this.id=e.id)},t.PlotLineOrBand.prototype={render:function(){t.fireEvent(this,"render");var e=this,i=e.axis,n=i.horiz,r=e.options,s=r.label,a=e.label,l=r.to,d=r.from,f=r.value,p=o(d)&&o(l),v=o(f),g=e.svgElem,m=!g,y=[],_=r.color,b=c(r.zIndex,0),x=r.events;y={class:"highcharts-plot-"+(p?"band ":"line ")+(r.className||"")};var w={},S=i.chart.renderer,T=p?"bands":"lines";if(i.isLog&&(d=i.log2lin(d),l=i.log2lin(l),f=i.log2lin(f)),i.chart.styledMode||(v?(y.stroke=_||"#999999",y["stroke-width"]=c(r.width,1),r.dashStyle&&(y.dashstyle=r.dashStyle)):p&&(y.fill=_||"#e6ebf5",r.borderWidth&&(y.stroke=r.borderColor,y["stroke-width"]=r.borderWidth))),w.zIndex=b,T+="-"+b,(_=i.plotLinesAndBandsGroups[T])||(i.plotLinesAndBandsGroups[T]=_=S.g("plot-"+T).attr(w).add()),m&&(e.svgElem=g=S.path().attr(y).add(_)),v)y=i.getPlotLinePath({value:f,lineWidth:g.strokeWidth(),acrossPanes:r.acrossPanes});else{if(!p)return;y=i.getPlotBandPath(d,l,r)}return(m||!g.d)&&y&&y.length?(g.attr({d:y}),x&&u(x,function(t,i){g.on(i,function(t){x[i].apply(e,[t])})})):g&&(y?(g.show(!0),g.animate({d:y})):g.d&&(g.hide(),a&&(e.label=a=a.destroy()))),s&&(o(s.text)||o(s.formatter))&&y&&y.length&&0<i.width&&0<i.height&&!y.isFlat?(s=h({align:n&&p&&"center",x:n?!p&&4:10,verticalAlign:!n&&p&&"middle",y:n?p?16:10:p?6:-4,rotation:n&&!p&&90},s),this.renderLabel(s,y,p,b)):a&&a.hide(),e},renderLabel:function(t,e,i,o){var s=this.label,a=this.axis.chart.renderer;s||((s={align:t.textAlign||t.align,rotation:t.rotation,class:"highcharts-plot-"+(i?"band":"line")+"-label "+(t.className||"")}).zIndex=o,o=this.getLabelText(t),this.label=s=a.text(o,0,0,t.useHTML).attr(s).add(),this.axis.chart.styledMode||s.css(t.style)),a=e.xBounds||[e[1],e[4],i?e[6]:e[1]],e=e.yBounds||[e[2],e[5],i?e[7]:e[2]],i=r(a),o=r(e),s.align(t,!1,{x:i,y:o,width:n(a)-i,height:n(e)-o}),s.show(!0)},getLabelText:function(t){return o(t.formatter)?t.formatter.call(this):t.text},destroy:function(){a(this.axis.plotLinesAndBands,this),delete this.axis,s(this)}},l(e.prototype,{getPlotBandPath:function(t,e){var i=this.getPlotLinePath({value:e,force:!0,acrossPanes:this.options.acrossPanes}),n=this.getPlotLinePath({value:t,force:!0,acrossPanes:this.options.acrossPanes}),r=[],o=this.horiz,s=1;if(t=t<this.min&&e<this.min||t>this.max&&e>this.max,n&&i){if(t){var a=n.toString()===i.toString();s=0}for(t=0;t<n.length;t+=6)o&&i[t+1]===n[t+1]?(i[t+1]+=s,i[t+4]+=s):o||i[t+2]!==n[t+2]||(i[t+2]+=s,i[t+5]+=s),r.push("M",n[t+1],n[t+2],"L",n[t+4],n[t+5],i[t+4],i[t+5],i[t+1],i[t+2],"z"),r.isFlat=a}return r},addPlotBand:function(t){return this.addPlotBandOrLine(t,"plotBands")},addPlotLine:function(t){return this.addPlotBandOrLine(t,"plotLines")},addPlotBandOrLine:function(e,i){var n=new t.PlotLineOrBand(this,e).render(),r=this.userOptions;if(n){if(i){var o=r[i]||[];o.push(e),r[i]=o}this.plotLinesAndBands.push(n)}return n},removePlotBandOrLine:function(t){for(var e=this.plotLinesAndBands,i=this.options,n=this.userOptions,r=e.length;r--;)e[r].id===t&&e[r].destroy();[i.plotLines||[],n.plotLines||[],i.plotBands||[],n.plotBands||[]].forEach(function(e){for(r=e.length;r--;)e[r].id===t&&a(e,e[r])})},removePlotBand:function(t){this.removePlotBandOrLine(t)},removePlotLine:function(t){this.removePlotBandOrLine(t)}})}),e(i,"parts/Tooltip.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.discardElement,r=e.extend,o=e.isNumber,s=e.isString,a=e.pick,l=e.splat,u=e.syncTimeout,c=t.doc,h=t.format,d=t.merge,f=t.timeUnits;t.Tooltip=function(){this.init.apply(this,arguments)},t.Tooltip.prototype={init:function(t,e){this.chart=t,this.options=e,this.crosshairs=[],this.now={x:0,y:0},this.isHidden=!0,this.split=e.split&&!t.inverted,this.shared=e.shared||this.split,this.outside=a(e.outside,!(!t.scrollablePixelsX&&!t.scrollablePixelsY))},cleanSplit:function(t){this.chart.series.forEach(function(e){var i=e&&e.tt;i&&(!i.isActive||t?e.tt=i.destroy():i.isActive=!1)})},applyFilter:function(){var t=this.chart;t.renderer.definition({tagName:"filter",id:"drop-shadow-"+t.index,opacity:.5,children:[{tagName:"feGaussianBlur",in:"SourceAlpha",stdDeviation:1},{tagName:"feOffset",dx:1,dy:1},{tagName:"feComponentTransfer",children:[{tagName:"feFuncA",type:"linear",slope:.3}]},{tagName:"feMerge",children:[{tagName:"feMergeNode"},{tagName:"feMergeNode",in:"SourceGraphic"}]}]}),t.renderer.definition({tagName:"style",textContent:".highcharts-tooltip-"+t.index+"{filter:url(#drop-shadow-"+t.index+")}"})},getLabel:function(){var e,n=this,r=this.chart.renderer,o=this.chart.styledMode,s=this.options,a="tooltip"+(i(s.className)?" "+s.className:"");if(!this.label){if(this.outside&&(this.container=e=t.doc.createElement("div"),e.className="highcharts-tooltip-container",t.css(e,{position:"absolute",top:"1px",pointerEvents:s.style&&s.style.pointerEvents,zIndex:3}),t.doc.body.appendChild(e),this.renderer=r=new t.Renderer(e,0,0,{},void 0,void 0,r.styledMode)),this.split?this.label=r.g(a):(this.label=r.label("",0,0,s.shape||"callout",null,null,s.useHTML,null,a).attr({padding:s.padding,r:s.borderRadius}),o||this.label.attr({fill:s.backgroundColor,"stroke-width":s.borderWidth}).css(s.style).shadow(s.shadow)),o&&(this.applyFilter(),this.label.addClass("highcharts-tooltip-"+this.chart.index)),n.outside&&!n.split){var l={x:this.label.xSetter,y:this.label.ySetter};this.label.xSetter=function(t,i){l[i].call(this.label,n.distance),e.style.left=t+"px"},this.label.ySetter=function(t,i){l[i].call(this.label,n.distance),e.style.top=t+"px"}}this.label.attr({zIndex:8}).add()}return this.label},update:function(t){this.destroy(),d(!0,this.chart.options.tooltip.userOptions,t),this.init(this.chart,d(!0,this.options,t))},destroy:function(){this.label&&(this.label=this.label.destroy()),this.split&&this.tt&&(this.cleanSplit(this.chart,!0),this.tt=this.tt.destroy()),this.renderer&&(this.renderer=this.renderer.destroy(),n(this.container)),t.clearTimeout(this.hideTimer),t.clearTimeout(this.tooltipTimeout)},move:function(e,i,n,o){var s=this,a=s.now,l=!1!==s.options.animation&&!s.isHidden&&(1<Math.abs(e-a.x)||1<Math.abs(i-a.y)),u=s.followPointer||1<s.len;r(a,{x:l?(2*a.x+e)/3:e,y:l?(a.y+i)/2:i,anchorX:u?void 0:l?(2*a.anchorX+n)/3:n,anchorY:u?void 0:l?(a.anchorY+o)/2:o}),s.getLabel().attr(a),l&&(t.clearTimeout(this.tooltipTimeout),this.tooltipTimeout=setTimeout(function(){s&&s.move(e,i,n,o)},32))},hide:function(e){var i=this;t.clearTimeout(this.hideTimer),e=a(e,this.options.hideDelay,500),this.isHidden||(this.hideTimer=u(function(){i.getLabel()[e?"fadeOut":"hide"](),i.isHidden=!0},e))},getAnchor:function(t,e){var i,n,r=this.chart,o=r.pointer,s=r.inverted,a=r.plotTop,u=r.plotLeft,c=0,h=0;return t=l(t),this.followPointer&&e?(void 0===e.chartX&&(e=o.normalize(e)),t=[e.chartX-r.plotLeft,e.chartY-a]):t[0].tooltipPos?t=t[0].tooltipPos:(t.forEach(function(t){i=t.series.yAxis,n=t.series.xAxis,c+=t.plotX+(!s&&n?n.left-u:0),h+=(t.plotLow?(t.plotLow+t.plotHigh)/2:t.plotY)+(!s&&i?i.top-a:0)}),c/=t.length,h/=t.length,t=[s?r.plotWidth-h:c,this.shared&&!s&&1<t.length&&e?e.chartY-a:s?r.plotHeight-c:h]),t.map(Math.round)},getPosition:function(t,e,i){var n,r=this.chart,o=this.distance,s={},l=r.inverted&&i.h||0,u=this.outside,h=u?c.documentElement.clientWidth-2*o:r.chartWidth,d=u?Math.max(c.body.scrollHeight,c.documentElement.scrollHeight,c.body.offsetHeight,c.documentElement.offsetHeight,c.documentElement.clientHeight):r.chartHeight,f=r.pointer.getChartPosition(),p=r.containerScaling,v=function(t){return p?t*p.scaleX:t},g=function(t){return p?t*p.scaleY:t},m=function(n){var s="x"===n;return[n,s?h:d,s?t:e].concat(u?[s?v(t):g(e),s?f.left-o+v(i.plotX+r.plotLeft):f.top-o+g(i.plotY+r.plotTop),0,s?h:d]:[s?t:e,s?i.plotX+r.plotLeft:i.plotY+r.plotTop,s?r.plotLeft:r.plotTop,s?r.plotLeft+r.plotWidth:r.plotTop+r.plotHeight])},y=m("y"),_=m("x"),b=!this.followPointer&&a(i.ttBelow,!r.inverted==!!i.negative),x=function(t){var e=y;y=_,_=e,n=t},w=function(){!1!==function(t,e,i,n,r,a,u){var c="y"===t?g(o):v(o),h=(i-n)/2,d=n<r-o,f=r+o+n<e,p=r-c-i+h;if(r=r+c-h,b&&f)s[t]=r;else if(!b&&d)s[t]=p;else if(d)s[t]=Math.min(u-n,0>p-l?p:p-l);else{if(!f)return!1;s[t]=Math.max(a,r+l+i>e?r:r+l)}}.apply(0,y)?!1!==function(t,e,i,n,r){var a;return r<o||r>e-o?a=!1:s[t]=r<i/2?1:r>e-n/2?e-n-2:r-i/2,a}.apply(0,_)||n||(x(!0),w()):n?s.x=s.y=0:(x(!0),w())};return(r.inverted||1<this.len)&&x(),w(),s},defaultFormatter:function(t){var e=this.points||l(this),i=[t.tooltipFooterHeaderFormatter(e[0])];return(i=i.concat(t.bodyFormatter(e))).push(t.tooltipFooterHeaderFormatter(e[0],!0)),i},refresh:function(e,i){var n=this.chart,r=this.options,o=e,s={},u=[],c=r.formatter||this.defaultFormatter;s=this.shared;var h=n.styledMode;if(r.enabled){t.clearTimeout(this.hideTimer),this.followPointer=l(o)[0].series.tooltipOptions.followPointer;var d=this.getAnchor(o,i);i=d[0];var f=d[1];!s||o.series&&o.series.noSharedTooltip?s=o.getLabelConfig():(n.pointer.applyInactiveState(o),o.forEach(function(t){t.setState("hover"),u.push(t.getLabelConfig())}),(s={x:o[0].category,y:o[0].y}).points=u,o=o[0]),this.len=u.length,n=c.call(s,this),c=o.series,this.distance=a(c.tooltipOptions.distance,16),!1===n?this.hide():(this.split?this.renderSplit(n,l(e)):(e=this.getLabel(),r.style.width&&!h||e.css({width:this.chart.spacingBox.width}),e.attr({text:n&&n.join?n.join(""):n}),e.removeClass(/highcharts-color-[\d]+/g).addClass("highcharts-color-"+a(o.colorIndex,c.colorIndex)),h||e.attr({stroke:r.borderColor||o.color||c.color||"#666666"}),this.updatePosition({plotX:i,plotY:f,negative:o.negative,ttBelow:o.ttBelow,h:d[2]||0})),this.isHidden&&this.label&&this.label.attr({opacity:1}).show(),this.isHidden=!1),t.fireEvent(this,"refresh")}},renderSplit:function(e,i){var n,r=this,o=[],l=this.chart,u=l.renderer,c=!0,h=this.options,d=0,f=this.getLabel(),p=l.plotTop;s(e)&&(e=[!1,e]),e.slice(0,i.length+1).forEach(function(t,e){if(!1!==t&&""!==t){var s=(e=i[e-1]||{isHeader:!0,plotX:i[0].plotX,plotY:l.plotHeight}).series||r,v=s.tt,g=e.series||{},m="highcharts-color-"+a(e.colorIndex,g.colorIndex,"none");v||(v={padding:h.padding,r:h.borderRadius},l.styledMode||(v.fill=h.backgroundColor,v["stroke-width"]=h.borderWidth),s.tt=v=u.label(null,null,null,(e.isHeader?h.headerShape:h.shape)||"callout",null,null,h.useHTML).addClass(e.isHeader?"highcharts-tooltip-header ":"highcharts-tooltip-box "+m).attr(v).add(f)),v.isActive=!0,v.attr({text:t}),l.styledMode||v.css(h.style).shadow(h.shadow).attr({stroke:h.borderColor||e.color||g.color||"#333333"}),m=(t=v.getBBox()).width+v.strokeWidth(),e.isHeader?(d=t.height,l.xAxis[0].opposite&&(n=!0,p-=d),t=Math.max(0,Math.min(e.plotX+l.plotLeft-m/2,l.chartWidth+(l.scrollablePixelsX?l.scrollablePixelsX-l.marginRight:0)-m))):t=e.plotX+l.plotLeft-a(h.distance,16)-m,0>t&&(c=!1),e.isHeader?g=n?-d:l.plotHeight+d:g=(g=g.yAxis).pos-p+Math.max(0,Math.min(e.plotY||0,g.len)),o.push({target:g,rank:e.isHeader?1:0,size:s.tt.getBBox().height+1,point:e,x:t,tt:v})}}),this.cleanSplit(),h.positioner&&o.forEach(function(t){var e=h.positioner.call(r,t.tt.getBBox().width,t.size,t.point);t.x=e.x,t.align=0,t.target=e.y,t.rank=a(e.rank,t.rank)}),t.distribute(o,l.plotHeight+d),o.forEach(function(t){var e=t.point,i=e.series,n=i&&i.yAxis;t.tt.attr({visibility:void 0===t.pos?"hidden":"inherit",x:c||e.isHeader||h.positioner?t.x:e.plotX+l.plotLeft+r.distance,y:t.pos+p,anchorX:e.isHeader?e.plotX+l.plotLeft:e.plotX+i.xAxis.pos,anchorY:e.isHeader?l.plotTop+l.plotHeight/2:n.pos+Math.max(0,Math.min(e.plotY,n.len))})});var v=r.container;if(e=r.renderer,r.outside&&v&&e){var g=l.pointer.getChartPosition();v.style.left=g.left+"px",v.style.top=g.top+"px",v=f.getBBox(),e.setSize(v.width+v.x,v.height+v.y,!1)}},updatePosition:function(e){var i=this.chart,n=i.pointer,r=this.getLabel(),o=e.plotX+i.plotLeft,s=e.plotY+i.plotTop;if(n=n.getChartPosition(),e=(this.options.positioner||this.getPosition).call(this,r.width,r.height,e),this.outside){var a=(this.options.borderWidth||0)+2*this.distance;this.renderer.setSize(r.width+a,r.height+a,!1),(i=i.containerScaling)&&(t.css(this.container,{transform:"scale("+i.scaleX+", "+i.scaleY+")"}),o*=i.scaleX,s*=i.scaleY),o+=n.left-e.x,s+=n.top-e.y}this.move(Math.round(e.x),Math.round(e.y||0),o,s)},getDateFormat:function(t,e,i,n){var r=this.chart.time,o=r.dateFormat("%m-%d %H:%M:%S.%L",e),s={millisecond:15,second:12,minute:9,hour:6,day:3},a="millisecond";for(l in f){if(t===f.week&&+r.dateFormat("%w",e)===i&&"00:00:00.000"===o.substr(6)){var l="week";break}if(f[l]>t){l=a;break}if(s[l]&&o.substr(s[l])!=="01-01 00:00:00.000".substr(s[l]))break;"week"!==l&&(a=l)}if(l)var u=r.resolveDTLFormat(n[l]).main;return u},getXDateFormat:function(t,e,i){e=e.dateTimeLabelFormats;var n=i&&i.closestPointRange;return(n?this.getDateFormat(n,t.x,i.options.startOfWeek,e):e.day)||e.year},tooltipFooterHeaderFormatter:function(e,i){var n=i?"footer":"header",r=e.series,s=r.tooltipOptions,a=s.xDateFormat,l=r.xAxis,u=l&&"datetime"===l.options.type&&o(e.key),c=s[n+"Format"];return i={isFooter:i,labelConfig:e},t.fireEvent(this,"headerFormatter",i,function(t){u&&!a&&(a=this.getXDateFormat(e,s,l)),u&&a&&(e.point&&e.point.tooltipDateKeys||["key"]).forEach(function(t){c=c.replace("{point."+t+"}","{point."+t+":"+a+"}")}),r.chart.styledMode&&(c=this.styledModeFormat(c)),t.text=h(c,{point:e,series:r},this.chart.time)}),i.text},bodyFormatter:function(t){return t.map(function(t){var e=t.series.tooltipOptions;return(e[(t.point.formatPrefix||"point")+"Formatter"]||t.point.tooltipFormatter).call(t.point,e[(t.point.formatPrefix||"point")+"Format"]||"")})},styledModeFormat:function(t){return t.replace('style="font-size: 10px"','class="highcharts-header"').replace(/style="color:{(point|series)\.color}"/g,'class="highcharts-color-{$1.colorIndex}"')}}}),e(i,"parts/Pointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.attr,n=e.defined,r=e.extend,o=e.isNumber,s=e.isObject,a=e.objectEach,l=e.pick,u=e.splat,c=t.addEvent,h=t.charts,d=t.color,f=t.css,p=t.find,v=t.fireEvent,g=t.offset,m=t.Tooltip;t.Pointer=function(t,e){this.init(t,e)},t.Pointer.prototype={init:function(t,e){this.options=e,this.chart=t,this.runChartClick=e.chart.events&&!!e.chart.events.click,this.pinchDown=[],this.lastValidTouch={},m&&(t.tooltip=new m(t,e.tooltip),this.followTouchMove=l(e.tooltip.followTouchMove,!0)),this.setDOMEvents()},zoomOption:function(t){var e=this.chart,i=e.options.chart,n=i.zoomType||"";e=e.inverted,/touch/.test(t.type)&&(n=l(i.pinchType,n)),this.zoomX=t=/x/.test(n),this.zoomY=n=/y/.test(n),this.zoomHor=t&&!e||n&&e,this.zoomVert=n&&!e||t&&e,this.hasZoom=t||n},getChartPosition:function(){return this.chartPosition||(this.chartPosition=g(this.chart.container))},normalize:function(t,e){var i=t.touches?t.touches.length?t.touches.item(0):t.changedTouches[0]:t;e||(e=this.getChartPosition());var n=i.pageX-e.left;return e=i.pageY-e.top,(i=this.chart.containerScaling)&&(n/=i.scaleX,e/=i.scaleY),r(t,{chartX:Math.round(n),chartY:Math.round(e)})},getCoordinates:function(t){var e={xAxis:[],yAxis:[]};return this.chart.axes.forEach(function(i){e[i.isXAxis?"xAxis":"yAxis"].push({axis:i,value:i.toValue(t[i.horiz?"chartX":"chartY"])})}),e},findNearestKDPoint:function(t,e,i){var n;return t.forEach(function(t){var r=!(t.noSharedTooltip&&e)&&0>t.options.findNearestPointBy.indexOf("y");if(t=t.searchPoint(i,r),(r=s(t,!0))&&!(r=!s(n,!0))){r=n.distX-t.distX;var o=n.dist-t.dist,a=(t.series.group&&t.series.group.zIndex)-(n.series.group&&n.series.group.zIndex);r=0<(0!==r&&e?r:0!==o?o:0!==a?a:n.series.index>t.series.index?-1:1)}r&&(n=t)}),n},getPointFromEvent:function(t){t=t.target;for(var e;t&&!e;)e=t.point,t=t.parentNode;return e},getChartCoordinatesFromPoint:function(t,e){var i=t.series,n=i.xAxis;i=i.yAxis;var r=l(t.clientX,t.plotX),o=t.shapeArgs;return n&&i?e?{chartX:n.len+n.pos-r,chartY:i.len+i.pos-t.plotY}:{chartX:r+n.pos,chartY:t.plotY+i.pos}:o&&o.x&&o.y?{chartX:o.x,chartY:o.y}:void 0},getHoverData:function(t,e,i,n,r,o){var a,u=[];n=!(!n||!t);var c=e&&!e.stickyTracking?[e]:i.filter(function(t){return t.visible&&!(!r&&t.directTouch)&&l(t.options.enableMouseTracking,!0)&&t.stickyTracking});return e=(a=n||!o?t:this.findNearestKDPoint(c,r,o))&&a.series,a&&(r&&!e.noSharedTooltip?(c=i.filter(function(t){return t.visible&&!(!r&&t.directTouch)&&l(t.options.enableMouseTracking,!0)&&!t.noSharedTooltip})).forEach(function(t){var e=p(t.points,function(t){return t.x===a.x&&!t.isNull});s(e)&&(t.chart.isBoosting&&(e=t.getPoint(e)),u.push(e))}):u.push(a)),{hoverPoint:a,hoverSeries:e,hoverPoints:u}},runPointActions:function(e,i){var n=this.chart,r=n.tooltip&&n.tooltip.options.enabled?n.tooltip:void 0,o=!!r&&r.shared,s=i||n.hoverPoint,a=s&&s.series||n.hoverSeries;s=(a=this.getHoverData(s,a,n.series,(!e||"touchmove"!==e.type)&&(!!i||a&&a.directTouch&&this.isDirectTouch),o,e)).hoverPoint;var u=a.hoverPoints;if(i=(a=a.hoverSeries)&&a.tooltipOptions.followPointer,o=o&&a&&!a.noSharedTooltip,s&&(s!==n.hoverPoint||r&&r.isHidden)){if((n.hoverPoints||[]).forEach(function(t){-1===u.indexOf(t)&&t.setState()}),n.hoverSeries!==a&&a.onMouseOver(),this.applyInactiveState(u),(u||[]).forEach(function(t){t.setState("hover")}),n.hoverPoint&&n.hoverPoint.firePointEvent("mouseOut"),!s.series)return;s.firePointEvent("mouseOver"),n.hoverPoints=u,n.hoverPoint=s,r&&r.refresh(o?u:s,e)}else i&&r&&!r.isHidden&&(s=r.getAnchor([{}],e),r.updatePosition({plotX:s[0],plotY:s[1]}));this.unDocMouseMove||(this.unDocMouseMove=c(n.container.ownerDocument,"mousemove",function(e){var i=h[t.hoverChartIndex];i&&i.pointer.onDocumentMouseMove(e)})),n.axes.forEach(function(i){var n=l(i.crosshair.snap,!0),r=n?t.find(u,function(t){return t.series[i.coll]===i}):void 0;r||!n?i.drawCrosshair(e,r):i.hideCrosshair()})},applyInactiveState:function(t){var e,i=[];(t||[]).forEach(function(t){e=t.series,i.push(e),e.linkedParent&&i.push(e.linkedParent),e.linkedSeries&&(i=i.concat(e.linkedSeries)),e.navigatorSeries&&i.push(e.navigatorSeries)}),this.chart.series.forEach(function(t){-1===i.indexOf(t)?t.setState("inactive",!0):t.options.inactiveOtherPoints&&t.setAllPointsToState("inactive")})},reset:function(t,e){var i=this.chart,n=i.hoverSeries,r=i.hoverPoint,o=i.hoverPoints,s=i.tooltip,a=s&&s.shared?o:r;t&&a&&u(a).forEach(function(e){e.series.isCartesian&&void 0===e.plotX&&(t=!1)}),t?s&&a&&u(a).length&&(s.refresh(a),s.shared&&o?o.forEach(function(t){t.setState(t.state,!0),t.series.isCartesian&&(t.series.xAxis.crosshair&&t.series.xAxis.drawCrosshair(null,t),t.series.yAxis.crosshair&&t.series.yAxis.drawCrosshair(null,t))}):r&&(r.setState(r.state,!0),i.axes.forEach(function(t){t.crosshair&&t.drawCrosshair(null,r)}))):(r&&r.onMouseOut(),o&&o.forEach(function(t){t.setState()}),n&&n.onMouseOut(),s&&s.hide(e),this.unDocMouseMove&&(this.unDocMouseMove=this.unDocMouseMove()),i.axes.forEach(function(t){t.hideCrosshair()}),this.hoverX=i.hoverPoints=i.hoverPoint=null)},scaleGroups:function(t,e){var i,n=this.chart;n.series.forEach(function(r){i=t||r.getPlotBox(),r.xAxis&&r.xAxis.zoomEnabled&&r.group&&(r.group.attr(i),r.markerGroup&&(r.markerGroup.attr(i),r.markerGroup.clip(e?n.clipRect:null)),r.dataLabelsGroup&&r.dataLabelsGroup.attr(i))}),n.clipRect.attr(e||n.clipBox)},dragStart:function(t){var e=this.chart;e.mouseIsDown=t.type,e.cancelClick=!1,e.mouseDownX=this.mouseDownX=t.chartX,e.mouseDownY=this.mouseDownY=t.chartY},drag:function(t){var e=this.chart,i=e.options.chart,n=t.chartX,r=t.chartY,o=this.zoomHor,s=this.zoomVert,a=e.plotLeft,l=e.plotTop,u=e.plotWidth,c=e.plotHeight,h=this.selectionMarker,f=this.mouseDownX,p=this.mouseDownY,v=i.panKey&&t[i.panKey+"Key"];if((!h||!h.touch)&&(n<a?n=a:n>a+u&&(n=a+u),r<l?r=l:r>l+c&&(r=l+c),this.hasDragged=Math.sqrt(Math.pow(f-n,2)+Math.pow(p-r,2)),10<this.hasDragged)){var g=e.isInsidePlot(f-a,p-l);e.hasCartesianSeries&&(this.zoomX||this.zoomY)&&g&&!v&&!h&&(this.selectionMarker=h=e.renderer.rect(a,l,o?1:u,s?1:c,0).attr({class:"highcharts-selection-marker",zIndex:7}).add(),e.styledMode||h.attr({fill:i.selectionMarkerFill||d("#335cad").setOpacity(.25).get()})),h&&o&&(n-=f,h.attr({width:Math.abs(n),x:(0<n?0:n)+f})),h&&s&&(n=r-p,h.attr({height:Math.abs(n),y:(0<n?0:n)+p})),g&&!h&&i.panning&&e.pan(t,i.panning)}},drop:function(t){var e=this,i=this.chart,s=this.hasPinched;if(this.selectionMarker){var a,l={originalEvent:t,xAxis:[],yAxis:[]},u=this.selectionMarker,c=u.attr?u.attr("x"):u.x,h=u.attr?u.attr("y"):u.y,d=u.attr?u.attr("width"):u.width,p=u.attr?u.attr("height"):u.height;(this.hasDragged||s)&&(i.axes.forEach(function(i){if(i.zoomEnabled&&n(i.min)&&(s||e[{xAxis:"zoomX",yAxis:"zoomY"}[i.coll]])){var r=i.horiz,o="touchend"===t.type?i.minPixelPadding:0,u=i.toValue((r?c:h)+o);r=i.toValue((r?c+d:h+p)-o),l[i.coll].push({axis:i,min:Math.min(u,r),max:Math.max(u,r)}),a=!0}}),a&&v(i,"selection",l,function(t){i.zoom(r(t,s?{animation:!1}:null))})),o(i.index)&&(this.selectionMarker=this.selectionMarker.destroy()),s&&this.scaleGroups()}i&&o(i.index)&&(f(i.container,{cursor:i._cursor}),i.cancelClick=10<this.hasDragged,i.mouseIsDown=this.hasDragged=this.hasPinched=!1,this.pinchDown=[])},onContainerMouseDown:function(t){2!==(t=this.normalize(t)).button&&(this.zoomOption(t),t.preventDefault&&t.preventDefault(),this.dragStart(t))},onDocumentMouseUp:function(e){h[t.hoverChartIndex]&&h[t.hoverChartIndex].pointer.drop(e)},onDocumentMouseMove:function(t){var e=this.chart,i=this.chartPosition;t=this.normalize(t,i),!i||this.inClass(t.target,"highcharts-tracker")||e.isInsidePlot(t.chartX-e.plotLeft,t.chartY-e.plotTop)||this.reset()},onContainerMouseLeave:function(e){var i=h[t.hoverChartIndex];i&&(e.relatedTarget||e.toElement)&&(i.pointer.reset(),i.pointer.chartPosition=void 0)},onContainerMouseMove:function(e){var i=this.chart;n(t.hoverChartIndex)&&h[t.hoverChartIndex]&&h[t.hoverChartIndex].mouseIsDown||(t.hoverChartIndex=i.index),(e=this.normalize(e)).preventDefault||(e.returnValue=!1),"mousedown"===i.mouseIsDown&&this.drag(e),!this.inClass(e.target,"highcharts-tracker")&&!i.isInsidePlot(e.chartX-i.plotLeft,e.chartY-i.plotTop)||i.openMenu||this.runPointActions(e)},inClass:function(t,e){for(var n;t;){if(n=i(t,"class")){if(-1!==n.indexOf(e))return!0;if(-1!==n.indexOf("highcharts-container"))return!1}t=t.parentNode}},onTrackerMouseOut:function(t){var e=this.chart.hoverSeries;t=t.relatedTarget||t.toElement,this.isDirectTouch=!1,!e||!t||e.stickyTracking||this.inClass(t,"highcharts-tooltip")||this.inClass(t,"highcharts-series-"+e.index)&&this.inClass(t,"highcharts-tracker")||e.onMouseOut()},onContainerClick:function(t){var e=this.chart,i=e.hoverPoint,n=e.plotLeft,o=e.plotTop;t=this.normalize(t),e.cancelClick||(i&&this.inClass(t.target,"highcharts-tracker")?(v(i.series,"click",r(t,{point:i})),e.hoverPoint&&i.firePointEvent("click",t)):(r(t,this.getCoordinates(t)),e.isInsidePlot(t.chartX-n,t.chartY-o)&&v(e,"click",t)))},setDOMEvents:function(){var e=this,i=e.chart.container,n=i.ownerDocument;i.onmousedown=function(t){e.onContainerMouseDown(t)},i.onmousemove=function(t){e.onContainerMouseMove(t)},i.onclick=function(t){e.onContainerClick(t)},this.unbindContainerMouseLeave=c(i,"mouseleave",e.onContainerMouseLeave),t.unbindDocumentMouseUp||(t.unbindDocumentMouseUp=c(n,"mouseup",e.onDocumentMouseUp)),t.hasTouch&&(c(i,"touchstart",function(t){e.onContainerTouchStart(t)}),c(i,"touchmove",function(t){e.onContainerTouchMove(t)}),t.unbindDocumentTouchEnd||(t.unbindDocumentTouchEnd=c(n,"touchend",e.onDocumentTouchEnd)))},destroy:function(){var e=this;e.unDocMouseMove&&e.unDocMouseMove(),this.unbindContainerMouseLeave(),t.chartCount||(t.unbindDocumentMouseUp&&(t.unbindDocumentMouseUp=t.unbindDocumentMouseUp()),t.unbindDocumentTouchEnd&&(t.unbindDocumentTouchEnd=t.unbindDocumentTouchEnd())),clearInterval(e.tooltipTimeout),a(e,function(t,i){e[i]=null})}}}),e(i,"parts/TouchPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.extend,n=e.pick,r=t.charts,o=t.noop;i(t.Pointer.prototype,{pinchTranslate:function(t,e,i,n,r,o){this.zoomHor&&this.pinchTranslateDirection(!0,t,e,i,n,r,o),this.zoomVert&&this.pinchTranslateDirection(!1,t,e,i,n,r,o)},pinchTranslateDirection:function(t,e,i,n,r,o,s,a){var l,u,c=this.chart,h=t?"x":"y",d=t?"X":"Y",f="chart"+d,p=t?"width":"height",v=c["plot"+(t?"Left":"Top")],g=a||1,m=c.inverted,y=c.bounds[t?"h":"v"],_=1===e.length,b=e[0][f],x=i[0][f],w=!_&&e[1][f],S=!_&&i[1][f];if((i=function(){!_&&20<Math.abs(b-w)&&(g=a||Math.abs(x-S)/Math.abs(b-w)),u=(v-x)/g+b,l=c["plot"+(t?"Width":"Height")]/g})(),(e=u)<y.min){e=y.min;var T=!0}else e+l>y.max&&(e=y.max-l,T=!0);T?(x-=.8*(x-s[h][0]),_||(S-=.8*(S-s[h][1])),i()):s[h]=[x,S],m||(o[h]=u-v,o[p]=l),o=m?1/g:g,r[p]=l,r[h]=e,n[m?t?"scaleY":"scaleX":"scale"+d]=g,n["translate"+d]=o*v+(x-o*b)},pinch:function(t){var e=this,r=e.chart,s=e.pinchDown,a=t.touches,l=a.length,u=e.lastValidTouch,c=e.hasZoom,h=e.selectionMarker,d={},f=1===l&&(e.inClass(t.target,"highcharts-tracker")&&r.runTrackerClick||e.runChartClick),p={};1<l&&(e.initiated=!0),c&&e.initiated&&!f&&t.preventDefault(),[].map.call(a,function(t){return e.normalize(t)}),"touchstart"===t.type?([].forEach.call(a,function(t,e){s[e]={chartX:t.chartX,chartY:t.chartY}}),u.x=[s[0].chartX,s[1]&&s[1].chartX],u.y=[s[0].chartY,s[1]&&s[1].chartY],r.axes.forEach(function(t){if(t.zoomEnabled){var e=r.bounds[t.horiz?"h":"v"],i=t.minPixelPadding,o=t.toPixels(Math.min(n(t.options.min,t.dataMin),t.dataMin)),s=t.toPixels(Math.max(n(t.options.max,t.dataMax),t.dataMax)),a=Math.max(o,s);e.min=Math.min(t.pos,Math.min(o,s)-i),e.max=Math.max(t.pos+t.len,a+i)}}),e.res=!0):e.followTouchMove&&1===l?this.runPointActions(e.normalize(t)):s.length&&(h||(e.selectionMarker=h=i({destroy:o,touch:!0},r.plotBox)),e.pinchTranslate(s,a,d,h,p,u),e.hasPinched=c,e.scaleGroups(d,p),e.res&&(e.res=!1,this.reset(!1,0)))},touch:function(e,i){var r=this.chart;if(r.index!==t.hoverChartIndex&&this.onContainerMouseLeave({relatedTarget:!0}),t.hoverChartIndex=r.index,1===e.touches.length)if(e=this.normalize(e),r.isInsidePlot(e.chartX-r.plotLeft,e.chartY-r.plotTop)&&!r.openMenu){if(i&&this.runPointActions(e),"touchmove"===e.type)var o=!!(i=this.pinchDown)[0]&&4<=Math.sqrt(Math.pow(i[0].chartX-e.chartX,2)+Math.pow(i[0].chartY-e.chartY,2));n(o,!0)&&this.pinch(e)}else i&&this.reset();else 2===e.touches.length&&this.pinch(e)},onContainerTouchStart:function(t){this.zoomOption(t),this.touch(t,!0)},onContainerTouchMove:function(t){this.touch(t)},onDocumentTouchEnd:function(e){r[t.hoverChartIndex]&&r[t.hoverChartIndex].pointer.drop(e)}})}),e(i,"parts/MSPointer.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.extend,n=e.objectEach,r=t.addEvent,o=t.charts,s=t.css,a=t.doc,l=t.noop;e=t.Pointer;var u=t.removeEvent,c=t.win,h=t.wrap;if(!t.hasTouch&&(c.PointerEvent||c.MSPointerEvent)){var d={},f=!!c.PointerEvent,p=function(e,i,r,s){"touch"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_TOUCH||!o[t.hoverChartIndex]||(s(e),(s=o[t.hoverChartIndex].pointer)[i]({type:r,target:e.currentTarget,preventDefault:l,touches:function(){var t=[];return t.item=function(t){return this[t]},n(d,function(e){t.push({pageX:e.pageX,pageY:e.pageY,target:e.target})}),t}()}))};i(e.prototype,{onContainerPointerDown:function(t){p(t,"onContainerTouchStart","touchstart",function(t){d[t.pointerId]={pageX:t.pageX,pageY:t.pageY,target:t.currentTarget}})},onContainerPointerMove:function(t){p(t,"onContainerTouchMove","touchmove",function(t){d[t.pointerId]={pageX:t.pageX,pageY:t.pageY},d[t.pointerId].target||(d[t.pointerId].target=t.currentTarget)})},onDocumentPointerUp:function(t){p(t,"onDocumentTouchEnd","touchend",function(t){delete d[t.pointerId]})},batchMSEvents:function(t){t(this.chart.container,f?"pointerdown":"MSPointerDown",this.onContainerPointerDown),t(this.chart.container,f?"pointermove":"MSPointerMove",this.onContainerPointerMove),t(a,f?"pointerup":"MSPointerUp",this.onDocumentPointerUp)}}),h(e.prototype,"init",function(t,e,i){t.call(this,e,i),this.hasZoom&&s(e.container,{"-ms-touch-action":"none","touch-action":"none"})}),h(e.prototype,"setDOMEvents",function(t){t.apply(this),(this.hasZoom||this.followTouchMove)&&this.batchMSEvents(r)}),h(e.prototype,"destroy",function(t){this.batchMSEvents(u),t.call(this)})}}),e(i,"parts/Legend.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.discardElement,r=e.isNumber,o=e.pick,s=e.setAnimation,a=t.addEvent,l=t.css,u=t.fireEvent;e=t.isFirefox;var c=t.marginNames,h=t.merge,d=t.stableSort,f=t.win,p=t.wrap;t.Legend=function(t,e){this.init(t,e)},t.Legend.prototype={init:function(t,e){this.chart=t,this.setOptions(e),e.enabled&&(this.render(),a(this.chart,"endResize",function(){this.legend.positionCheckboxes()}),this.proximate?this.unchartrender=a(this.chart,"render",function(){this.legend.proximatePositions(),this.legend.positionItems()}):this.unchartrender&&this.unchartrender())},setOptions:function(t){var e=o(t.padding,8);this.options=t,this.chart.styledMode||(this.itemStyle=t.itemStyle,this.itemHiddenStyle=h(this.itemStyle,t.itemHiddenStyle)),this.itemMarginTop=t.itemMarginTop||0,this.itemMarginBottom=t.itemMarginBottom||0,this.padding=e,this.initialItemY=e-5,this.symbolWidth=o(t.symbolWidth,16),this.pages=[],this.proximate="proximate"===t.layout&&!this.chart.inverted},update:function(t,e){var i=this.chart;this.setOptions(h(!0,this.options,t)),this.destroy(),i.isDirtyLegend=i.isDirtyBox=!0,o(e,!0)&&i.redraw(),u(this,"afterUpdate")},colorizeItem:function(t,e){if(t.legendGroup[e?"removeClass":"addClass"]("highcharts-legend-item-hidden"),!this.chart.styledMode){var i=this.options,n=t.legendItem,r=t.legendLine,o=t.legendSymbol,s=this.itemHiddenStyle.color;i=e?i.itemStyle.color:s;var a=e&&t.color||s,l=t.options&&t.options.marker,c={fill:a};n&&n.css({fill:i,color:i}),r&&r.attr({stroke:a}),o&&(l&&o.isMarker&&(c=t.pointAttribs(),e||(c.stroke=c.fill=s)),o.attr(c))}u(this,"afterColorizeItem",{item:t,visible:e})},positionItems:function(){this.allItems.forEach(this.positionItem,this),this.chart.isResizing||this.positionCheckboxes()},positionItem:function(t){var e=this.options,n=e.symbolPadding;e=!e.rtl;var r=t._legendItemPos,o=r[0];r=r[1];var s=t.checkbox;(t=t.legendGroup)&&t.element&&t[i(t.translateY)?"animate":"attr"]({translateX:e?o:this.legendWidth-o-2*n-4,translateY:r}),s&&(s.x=o,s.y=r)},destroyItem:function(t){var e=t.checkbox;["legendItem","legendLine","legendSymbol","legendGroup"].forEach(function(e){t[e]&&(t[e]=t[e].destroy())}),e&&n(t.checkbox)},destroy:function(){function t(t){this[t]&&(this[t]=this[t].destroy())}this.getAllItems().forEach(function(e){["legendItem","legendGroup"].forEach(t,e)}),"clipRect up down pager nav box title group".split(" ").forEach(t,this),this.display=null},positionCheckboxes:function(){var t=this.group&&this.group.alignAttr,e=this.clipHeight||this.legendHeight,i=this.titleHeight;if(t){var n=t.translateY;this.allItems.forEach(function(r){var o=r.checkbox;if(o){var s=n+i+o.y+(this.scrollOffset||0)+3;l(o,{left:t.translateX+r.checkboxOffset+o.x-20+"px",top:s+"px",display:this.proximate||s>n-6&&s<n+e-6?"":"none"})}},this)}},renderTitle:function(){var t=this.options,e=this.padding,i=t.title,n=0;i.text&&(this.title||(this.title=this.chart.renderer.label(i.text,e-3,e-4,null,null,null,t.useHTML,null,"legend-title").attr({zIndex:1}),this.chart.styledMode||this.title.css(i.style),this.title.add(this.group)),i.width||this.title.css({width:this.maxLegendWidth+"px"}),n=(t=this.title.getBBox()).height,this.offsetWidth=t.width,this.contentGroup.attr({translateY:n})),this.titleHeight=n},setText:function(e){var i=this.options;e.legendItem.attr({text:i.labelFormat?t.format(i.labelFormat,e,this.chart.time):i.labelFormatter.call(e)})},renderItem:function(t){var e=this.chart,i=e.renderer,n=this.options,r=this.symbolWidth,s=n.symbolPadding,a=this.itemStyle,l=this.itemHiddenStyle,u="horizontal"===n.layout?o(n.itemDistance,20):0,c=!n.rtl,d=t.legendItem,f=!t.series,p=!f&&t.series.drawLegendSymbol?t.series:t,v=p.options;u=r+s+u+((v=this.createCheckboxForItem&&v&&v.showCheckbox)?20:0);var g=n.useHTML,m=t.options.className;d||(t.legendGroup=i.g("legend-item").addClass("highcharts-"+p.type+"-series highcharts-color-"+t.colorIndex+(m?" "+m:"")+(f?" highcharts-series-"+t.index:"")).attr({zIndex:1}).add(this.scrollGroup),t.legendItem=d=i.text("",c?r+s:-s,this.baseline||0,g),e.styledMode||d.css(h(t.visible?a:l)),d.attr({align:c?"left":"right",zIndex:2}).add(t.legendGroup),this.baseline||(this.fontMetrics=i.fontMetrics(e.styledMode?12:a.fontSize,d),this.baseline=this.fontMetrics.f+3+this.itemMarginTop,d.attr("y",this.baseline)),this.symbolHeight=n.symbolHeight||this.fontMetrics.f,p.drawLegendSymbol(this,t),this.setItemEvents&&this.setItemEvents(t,d,g)),v&&!t.checkbox&&this.createCheckboxForItem(t),this.colorizeItem(t,t.visible),!e.styledMode&&a.width||d.css({width:(n.itemWidth||this.widthOption||e.spacingBox.width)-u}),this.setText(t),e=d.getBBox(),t.itemWidth=t.checkboxOffset=n.itemWidth||t.legendItemWidth||e.width+u,this.maxItemWidth=Math.max(this.maxItemWidth,t.itemWidth),this.totalItemWidth+=t.itemWidth,this.itemHeight=t.itemHeight=Math.round(t.legendItemHeight||e.height||this.symbolHeight)},layoutItem:function(t){var e=this.options,i=this.padding,n="horizontal"===e.layout,r=t.itemHeight,s=this.itemMarginBottom,a=this.itemMarginTop,l=n?o(e.itemDistance,20):0,u=this.maxLegendWidth;e=e.alignColumns&&this.totalItemWidth>u?this.maxItemWidth:t.itemWidth,n&&this.itemX-i+e>u&&(this.itemX=i,this.lastLineHeight&&(this.itemY+=a+this.lastLineHeight+s),this.lastLineHeight=0),this.lastItemY=a+this.itemY+s,this.lastLineHeight=Math.max(r,this.lastLineHeight),t._legendItemPos=[this.itemX,this.itemY],n?this.itemX+=e:(this.itemY+=a+r+s,this.lastLineHeight=r),this.offsetWidth=this.widthOption||Math.max((n?this.itemX-i-(t.checkbox?0:l):e)+i,this.offsetWidth)},getAllItems:function(){var t=[];return this.chart.series.forEach(function(e){var n=e&&e.options;e&&o(n.showInLegend,!i(n.linkedTo)&&void 0,!0)&&(t=t.concat(e.legendItems||("point"===n.legendType?e.data:e)))}),u(this,"afterGetAllItems",{allItems:t}),t},getAlignment:function(){var t=this.options;return this.proximate?t.align.charAt(0)+"tv":t.floating?"":t.align.charAt(0)+t.verticalAlign.charAt(0)+t.layout.charAt(0)},adjustMargins:function(t,e){var n=this.chart,r=this.options,s=this.getAlignment();s&&[/(lth|ct|rth)/,/(rtv|rm|rbv)/,/(rbh|cb|lbh)/,/(lbv|lm|ltv)/].forEach(function(a,l){a.test(s)&&!i(t[l])&&(n[c[l]]=Math.max(n[c[l]],n.legend[(l+1)%2?"legendHeight":"legendWidth"]+[1,-1,-1,1][l]*r[l%2?"x":"y"]+o(r.margin,12)+e[l]+(n.titleOffset[l]||0)))})},proximatePositions:function(){var e=this.chart,i=[],n="left"===this.options.align;this.allItems.forEach(function(o){var s=n;if(o.yAxis&&o.points){o.xAxis.options.reversed&&(s=!s);var a=t.find(s?o.points:o.points.slice(0).reverse(),function(t){return r(t.plotY)});s=this.itemMarginTop+o.legendItem.getBBox().height+this.itemMarginBottom;var l=o.yAxis.top-e.plotTop;o.visible?(a=a?a.plotY:o.yAxis.height,a+=l-.3*s):a=l+o.yAxis.height,i.push({target:a,size:s,item:o})}},this),t.distribute(i,e.plotHeight),i.forEach(function(t){t.item._legendItemPos[1]=e.plotTop-e.spacing[0]+t.pos})},render:function(){var e,i=this.chart,n=i.renderer,r=this.group,o=this.box,s=this.options,a=this.padding;this.itemX=a,this.itemY=this.initialItemY,this.lastItemY=this.offsetWidth=0,this.widthOption=t.relativeLength(s.width,i.spacingBox.width-a);var l=i.spacingBox.width-2*a-s.x;-1<["rm","lm"].indexOf(this.getAlignment().substring(0,2))&&(l/=2),this.maxLegendWidth=this.widthOption||l,r||(this.group=r=n.g("legend").attr({zIndex:7}).add(),this.contentGroup=n.g().attr({zIndex:1}).add(r),this.scrollGroup=n.g().add(this.contentGroup)),this.renderTitle(),l=this.getAllItems(),d(l,function(t,e){return(t.options&&t.options.legendIndex||0)-(e.options&&e.options.legendIndex||0)}),s.reversed&&l.reverse(),this.allItems=l,this.display=e=!!l.length,this.itemHeight=this.totalItemWidth=this.maxItemWidth=this.lastLineHeight=0,l.forEach(this.renderItem,this),l.forEach(this.layoutItem,this),l=(this.widthOption||this.offsetWidth)+a;var c=this.lastItemY+this.lastLineHeight+this.titleHeight;c=this.handleOverflow(c),c+=a,o||(this.box=o=n.rect().addClass("highcharts-legend-box").attr({r:s.borderRadius}).add(r),o.isNew=!0),i.styledMode||o.attr({stroke:s.borderColor,"stroke-width":s.borderWidth||0,fill:s.backgroundColor||"none"}).shadow(s.shadow),0<l&&0<c&&(o[o.isNew?"attr":"animate"](o.crisp.call({},{x:0,y:0,width:l,height:c},o.strokeWidth())),o.isNew=!1),o[e?"show":"hide"](),i.styledMode&&"none"===r.getStyle("display")&&(l=c=0),this.legendWidth=l,this.legendHeight=c,e&&(o=(n=i.spacingBox).y,/(lth|ct|rth)/.test(this.getAlignment())&&0<i.titleOffset[0]?o+=i.titleOffset[0]:/(lbh|cb|rbh)/.test(this.getAlignment())&&0<i.titleOffset[2]&&(o-=i.titleOffset[2]),o!==n.y&&(n=h(n,{y:o})),r.align(h(s,{width:l,height:c,verticalAlign:this.proximate?"top":s.verticalAlign}),!0,n)),this.proximate||this.positionItems(),u(this,"afterRender")},handleOverflow:function(t){var e=this,i=this.chart,n=i.renderer,r=this.options,s=r.y,a=this.padding;s=i.spacingBox.height+("top"===r.verticalAlign?-s:s)-a;var l,u,c=r.maxHeight,h=this.clipRect,d=r.navigation,f=o(d.animation,!0),p=d.arrowSize||12,v=this.nav,g=this.pages,m=this.allItems,y=function(t){"number"==typeof t?h.attr({height:t}):h&&(e.clipRect=h.destroy(),e.contentGroup.clip()),e.contentGroup.div&&(e.contentGroup.div.style.clip=t?"rect("+a+"px,9999px,"+(a+t)+"px,0)":"auto")},_=function(t){return e[t]=n.circle(0,0,1.3*p).translate(p/2,p/2).add(v),i.styledMode||e[t].attr("fill","rgba(0,0,0,0.0001)"),e[t]};return"horizontal"!==r.layout||"middle"===r.verticalAlign||r.floating||(s/=2),c&&(s=Math.min(s,c)),g.length=0,t>s&&!1!==d.enabled?(this.clipHeight=l=Math.max(s-20-this.titleHeight-a,0),this.currentPage=o(this.currentPage,1),this.fullHeight=t,m.forEach(function(t,e){var i=t._legendItemPos[1],n=Math.round(t.legendItem.getBBox().height),r=g.length;(!r||i-g[r-1]>l&&(u||i)!==g[r-1])&&(g.push(u||i),r++),t.pageIx=r-1,u&&(m[e-1].pageIx=r-1),e===m.length-1&&i+n-g[r-1]>l&&i!==u&&(g.push(i),t.pageIx=r),i!==u&&(u=i)}),h||(h=e.clipRect=n.clipRect(0,a,9999,0),e.contentGroup.clip(h)),y(l),v||(this.nav=v=n.g().attr({zIndex:1}).add(this.group),this.up=n.symbol("triangle",0,0,p,p).add(v),_("upTracker").on("click",function(){e.scroll(-1,f)}),this.pager=n.text("",15,10).addClass("highcharts-legend-navigation"),i.styledMode||this.pager.css(d.style),this.pager.add(v),this.down=n.symbol("triangle-down",0,0,p,p).add(v),_("downTracker").on("click",function(){e.scroll(1,f)})),e.scroll(0),t=s):v&&(y(),this.nav=v.destroy(),this.scrollGroup.attr({translateY:1}),this.clipHeight=0),t},scroll:function(t,e){var i=this.pages,n=i.length,r=this.currentPage+t;t=this.clipHeight;var o=this.options.navigation,a=this.pager,l=this.padding;r>n&&(r=n),0<r&&(void 0!==e&&s(e,this.chart),this.nav.attr({translateX:l,translateY:t+this.padding+7+this.titleHeight,visibility:"visible"}),[this.up,this.upTracker].forEach(function(t){t.attr({class:1===r?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})}),a.attr({text:r+"/"+n}),[this.down,this.downTracker].forEach(function(t){t.attr({x:18+this.pager.getBBox().width,class:r===n?"highcharts-legend-nav-inactive":"highcharts-legend-nav-active"})},this),this.chart.styledMode||(this.up.attr({fill:1===r?o.inactiveColor:o.activeColor}),this.upTracker.css({cursor:1===r?"default":"pointer"}),this.down.attr({fill:r===n?o.inactiveColor:o.activeColor}),this.downTracker.css({cursor:r===n?"default":"pointer"})),this.scrollOffset=-i[r-1]+this.initialItemY,this.scrollGroup.animate({translateY:this.scrollOffset}),this.currentPage=r,this.positionCheckboxes())}},t.LegendSymbolMixin={drawRectangle:function(t,e){var i=t.symbolHeight,n=t.options.squareSymbol;e.legendSymbol=this.chart.renderer.rect(n?(t.symbolWidth-i)/2:0,t.baseline-i+1,n?i:t.symbolWidth,i,o(t.options.symbolRadius,i/2)).addClass("highcharts-point").attr({zIndex:3}).add(e.legendGroup)},drawLineMarker:function(t){var e=this.options,i=e.marker,n=t.symbolWidth,r=t.symbolHeight,s=r/2,a=this.chart.renderer,l=this.legendGroup;t=t.baseline-Math.round(.3*t.fontMetrics.b);var u={};this.chart.styledMode||(u={"stroke-width":e.lineWidth||0},e.dashStyle&&(u.dashstyle=e.dashStyle)),this.legendLine=a.path(["M",0,t,"L",n,t]).addClass("highcharts-graph").attr(u).add(l),i&&!1!==i.enabled&&n&&(e=Math.min(o(i.radius,s),s),0===this.symbol.indexOf("url")&&(i=h(i,{width:r,height:r}),e=0),this.legendSymbol=i=a.symbol(this.symbol,n/2-e,t-e,2*e,2*e,i).addClass("highcharts-point").add(l),i.isMarker=!0)}},(/Trident\/7\.0/.test(f.navigator&&f.navigator.userAgent)||e)&&p(t.Legend.prototype,"positionItem",function(t,e){var i=this,n=function(){e._legendItemPos&&t.call(i,e)};n(),i.bubbleLegend||setTimeout(n)})}),e(i,"parts/Chart.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.attr,n=e.defined,r=e.discardElement,o=e.erase,s=e.extend,a=e.isArray,l=e.isNumber,u=e.isObject,c=e.isString,h=e.objectEach,d=e.pick,f=e.pInt,p=e.setAnimation,v=e.splat,g=e.syncTimeout,m=t.addEvent,y=t.animate,_=t.animObject,b=t.doc,x=t.Axis,w=t.createElement,S=t.defaultOptions,T=t.charts,E=t.css,C=t.find,O=t.fireEvent,M=t.Legend,P=t.marginNames,k=t.merge,I=t.Pointer,L=t.removeEvent,A=t.seriesTypes,R=t.win,F=t.Chart=function(){this.getArgs.apply(this,arguments)};t.chart=function(t,e,i){return new F(t,e,i)},s(F.prototype,{callbacks:[],getArgs:function(){var t=[].slice.call(arguments);(c(t[0])||t[0].nodeName)&&(this.renderTo=t.shift()),this.init(t[0],t[1])},init:function(e,i){var n,r=e.series,o=e.plotOptions||{};O(this,"init",{args:arguments},function(){e.series=null,n=k(S,e),h(n.plotOptions,function(t,e){u(t)&&(t.tooltip=o[e]&&k(o[e].tooltip)||void 0)}),n.tooltip.userOptions=e.chart&&e.chart.forExport&&e.tooltip.userOptions||e.tooltip,n.series=e.series=r,this.userOptions=e;var s=n.chart,a=s.events;this.margin=[],this.spacing=[],this.bounds={h:{},v:{}},this.labelCollectors=[],this.callback=i,this.isResizing=0,this.options=n,this.axes=[],this.series=[],this.time=e.time&&Object.keys(e.time).length?new t.Time(e.time):t.time,this.styledMode=s.styledMode,this.hasCartesianSeries=s.showAxes;var l=this;l.index=T.length,T.push(l),t.chartCount++,a&&h(a,function(e,i){t.isFunction(e)&&m(l,i,e)}),l.xAxis=[],l.yAxis=[],l.pointCount=l.colorCounter=l.symbolCounter=0,O(l,"afterInit"),l.firstRender()})},initSeries:function(e){var i=this.options.chart;i=e.type||i.type||i.defaultSeriesType;var n=A[i];return n||t.error(17,!0,this,{missingModuleFor:i}),(i=new n).init(this,e),i},orderSeries:function(t){var e=this.series;for(t=t||0;t<e.length;t++)e[t]&&(e[t].index=t,e[t].name=e[t].getName())},isInsidePlot:function(t,e,i){var n=i?e:t;return t=i?t:e,0<=n&&n<=this.plotWidth&&0<=t&&t<=this.plotHeight},redraw:function(t){O(this,"beforeRedraw");var e=this.axes,i=this.series,n=this.pointer,r=this.legend,o=this.userOptions.legend,a=this.isDirtyLegend,l=this.hasCartesianSeries,u=this.isDirtyBox,c=this.renderer,h=c.isHidden(),d=[];for(this.setResponsive&&this.setResponsive(!1),p(t,this),h&&this.temporaryDisplay(),this.layOutTitles(),t=i.length;t--;){var f=i[t];if(f.options.stacking){var v=!0;if(f.isDirty){var g=!0;break}}}if(g)for(t=i.length;t--;)(f=i[t]).options.stacking&&(f.isDirty=!0);i.forEach(function(t){t.isDirty&&("point"===t.options.legendType?(t.updateTotals&&t.updateTotals(),a=!0):o&&(o.labelFormatter||o.labelFormat)&&(a=!0)),t.isDirtyData&&O(t,"updatedData")}),a&&r&&r.options.enabled&&(r.render(),this.isDirtyLegend=!1),v&&this.getStacks(),l&&e.forEach(function(t){t.updateNames(),t.setScale()}),this.getMargins(),l&&(e.forEach(function(t){t.isDirty&&(u=!0)}),e.forEach(function(t){var e=t.min+","+t.max;t.extKey!==e&&(t.extKey=e,d.push(function(){O(t,"afterSetExtremes",s(t.eventArgs,t.getExtremes())),delete t.eventArgs})),(u||v)&&t.redraw()})),u&&this.drawChartBox(),O(this,"predraw"),i.forEach(function(t){(u||t.isDirty)&&t.visible&&t.redraw(),t.isDirtyData=!1}),n&&n.reset(!0),c.draw(),O(this,"redraw"),O(this,"render"),h&&this.temporaryDisplay(!0),d.forEach(function(t){t.call()})},get:function(t){function e(e){return e.id===t||e.options&&e.options.id===t}var i,n=this.series,r=C(this.axes,e)||C(this.series,e);for(i=0;!r&&i<n.length;i++)r=C(n[i].points||[],e);return r},getAxes:function(){var t=this,e=this.options,i=e.xAxis=v(e.xAxis||{});e=e.yAxis=v(e.yAxis||{}),O(this,"getAxes"),i.forEach(function(t,e){t.index=e,t.isX=!0}),e.forEach(function(t,e){t.index=e}),i.concat(e).forEach(function(e){new x(t,e)}),O(this,"afterGetAxes")},getSelectedPoints:function(){var t=[];return this.series.forEach(function(e){t=t.concat((e[e.hasGroupedData?"points":"data"]||[]).filter(function(t){return d(t.selectedStaging,t.selected)}))}),t},getSelectedSeries:function(){return this.series.filter(function(t){return t.selected})},setTitle:function(t,e,i){this.applyDescription("title",t),this.applyDescription("subtitle",e),this.applyDescription("caption",void 0),this.layOutTitles(i)},applyDescription:function(t,e){var i=this,n="title"===t?{color:"#333333",fontSize:this.options.isStock?"16px":"18px"}:{color:"#666666"};n=this.options[t]=k(!this.styledMode&&{style:n},this.options[t],e);var r=this[t];r&&e&&(this[t]=r=r.destroy()),n&&!r&&((r=this.renderer.text(n.text,0,0,n.useHTML).attr({align:n.align,class:"highcharts-"+t,zIndex:n.zIndex||4}).add()).update=function(e){i[{title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"}[t]](e)},this.styledMode||r.css(n.style),this[t]=r)},layOutTitles:function(t){var e=[0,0,0],i=this.renderer,n=this.spacingBox;["title","subtitle","caption"].forEach(function(t){var r=this[t],o=this.options[t],a=o.verticalAlign||"top";if(t="title"===t?-3:"top"===a?e[0]+2:0,r){if(!this.styledMode)var l=o.style.fontSize;l=i.fontMetrics(l,r).b,r.css({width:(o.width||n.width+(o.widthAdjust||0))+"px"});var u=Math.round(r.getBBox(o.useHTML).height);r.align(s({y:"bottom"===a?l:t+l,height:u},o),!1,"spacingBox"),o.floating||("top"===a?e[0]=Math.ceil(e[0]+u):"bottom"===a&&(e[2]=Math.ceil(e[2]+u)))}},this),e[0]&&"top"===(this.options.title.verticalAlign||"top")&&(e[0]+=this.options.title.margin),e[2]&&"bottom"===this.options.caption.verticalAlign&&(e[2]+=this.options.caption.margin);var r=!this.titleOffset||this.titleOffset.join(",")!==e.join(",");this.titleOffset=e,O(this,"afterLayOutTitles"),!this.isDirtyBox&&r&&(this.isDirtyBox=this.isDirtyLegend=r,this.hasRendered&&d(t,!0)&&this.isDirtyBox&&this.redraw())},getChartSize:function(){var e=this.options.chart,i=e.width;e=e.height;var r=this.renderTo;n(i)||(this.containerWidth=t.getStyle(r,"width")),n(e)||(this.containerHeight=t.getStyle(r,"height")),this.chartWidth=Math.max(0,i||this.containerWidth||600),this.chartHeight=Math.max(0,t.relativeLength(e,this.chartWidth)||(1<this.containerHeight?this.containerHeight:400))},temporaryDisplay:function(e){var i=this.renderTo;if(e)for(;i&&i.style;)i.hcOrigStyle&&(t.css(i,i.hcOrigStyle),delete i.hcOrigStyle),i.hcOrigDetached&&(b.body.removeChild(i),i.hcOrigDetached=!1),i=i.parentNode;else for(;i&&i.style&&(b.body.contains(i)||i.parentNode||(i.hcOrigDetached=!0,b.body.appendChild(i)),("none"===t.getStyle(i,"display",!1)||i.hcOricDetached)&&(i.hcOrigStyle={display:i.style.display,height:i.style.height,overflow:i.style.overflow},e={display:"block",overflow:"hidden"},i!==this.renderTo&&(e.height=0),t.css(i,e),i.offsetWidth||i.style.setProperty("display","block","important")),(i=i.parentNode)!==b.body););},setClassName:function(t){this.container.className="highcharts-container "+(t||"")},getContainer:function(){var e,n,r=this.options,o=r.chart,a=this.renderTo,u=t.uniqueKey();a||(this.renderTo=a=o.renderTo),c(a)&&(this.renderTo=a=b.getElementById(a)),a||t.error(13,!0,this);var h=f(i(a,"data-highcharts-chart"));l(h)&&T[h]&&T[h].hasRendered&&T[h].destroy(),i(a,"data-highcharts-chart",this.index),a.innerHTML="",o.skipClone||a.offsetWidth||this.temporaryDisplay(),this.getChartSize(),h=this.chartWidth;var d=this.chartHeight;if(E(a,{overflow:"hidden"}),this.styledMode||(e=s({position:"relative",overflow:"hidden",width:h+"px",height:d+"px",textAlign:"left",lineHeight:"normal",zIndex:0,"-webkit-tap-highlight-color":"rgba(0,0,0,0)"},o.style)),this.container=a=w("div",{id:u},e,a),this._cursor=a.style.cursor,this.renderer=new(t[o.renderer]||t.Renderer)(a,h,d,null,o.forExport,r.exporting&&r.exporting.allowHTML,this.styledMode),this.setClassName(o.className),this.styledMode)for(n in r.defs)this.renderer.definition(r.defs[n]);else this.renderer.setStyle(o.style);this.renderer.chartIndex=this.index,O(this,"afterGetContainer")},getMargins:function(t){var e=this.spacing,i=this.margin,r=this.titleOffset;this.resetMargins(),r[0]&&!n(i[0])&&(this.plotTop=Math.max(this.plotTop,r[0]+e[0])),r[2]&&!n(i[2])&&(this.marginBottom=Math.max(this.marginBottom,r[2]+e[2])),this.legend&&this.legend.display&&this.legend.adjustMargins(i,e),O(this,"getMargins"),t||this.getAxisMargins()},getAxisMargins:function(){var t=this,e=t.axisOffset=[0,0,0,0],i=t.colorAxis,r=t.margin,o=function(t){t.forEach(function(t){t.visible&&t.getOffset()})};t.hasCartesianSeries?o(t.axes):i&&i.length&&o(i),P.forEach(function(i,o){n(r[o])||(t[i]+=e[o])}),t.setChartSize()},reflow:function(e){var i=this,r=i.options.chart,o=i.renderTo,s=n(r.width)&&n(r.height),a=r.width||t.getStyle(o,"width");r=r.height||t.getStyle(o,"height"),o=e?e.target:R,s||i.isPrinting||!a||!r||o!==R&&o!==b||(a===i.containerWidth&&r===i.containerHeight||(t.clearTimeout(i.reflowTimeout),i.reflowTimeout=g(function(){i.container&&i.setSize(void 0,void 0,!1)},e?100:0)),i.containerWidth=a,i.containerHeight=r)},setReflow:function(t){var e=this;!1===t||this.unbindReflow?!1===t&&this.unbindReflow&&(this.unbindReflow=this.unbindReflow()):(this.unbindReflow=m(R,"resize",function(t){e.options&&e.reflow(t)}),m(this,"destroy",this.unbindReflow))},setSize:function(t,e,i){var n=this,r=n.renderer;if(n.isResizing+=1,p(i,n),n.oldChartHeight=n.chartHeight,n.oldChartWidth=n.chartWidth,void 0!==t&&(n.options.chart.width=t),void 0!==e&&(n.options.chart.height=e),n.getChartSize(),!n.styledMode){var o=r.globalAnimation;(o?y:E)(n.container,{width:n.chartWidth+"px",height:n.chartHeight+"px"},o)}n.setChartSize(!0),r.setSize(n.chartWidth,n.chartHeight,i),n.axes.forEach(function(t){t.isDirty=!0,t.setScale()}),n.isDirtyLegend=!0,n.isDirtyBox=!0,n.layOutTitles(),n.getMargins(),n.redraw(i),n.oldChartHeight=null,O(n,"resize"),g(function(){n&&O(n,"endResize",null,function(){--n.isResizing})},_(o).duration||0)},setChartSize:function(t){var e,i,n,r,o=this.inverted,s=this.renderer,a=this.chartWidth,l=this.chartHeight,u=this.options.chart,c=this.spacing,h=this.clipOffset;this.plotLeft=e=Math.round(this.plotLeft),this.plotTop=i=Math.round(this.plotTop),this.plotWidth=n=Math.max(0,Math.round(a-e-this.marginRight)),this.plotHeight=r=Math.max(0,Math.round(l-i-this.marginBottom)),this.plotSizeX=o?r:n,this.plotSizeY=o?n:r,this.plotBorderWidth=u.plotBorderWidth||0,this.spacingBox=s.spacingBox={x:c[3],y:c[0],width:a-c[3]-c[1],height:l-c[0]-c[2]},this.plotBox=s.plotBox={x:e,y:i,width:n,height:r},a=2*Math.floor(this.plotBorderWidth/2),o=Math.ceil(Math.max(a,h[3])/2),s=Math.ceil(Math.max(a,h[0])/2),this.clipBox={x:o,y:s,width:Math.floor(this.plotSizeX-Math.max(a,h[1])/2-o),height:Math.max(0,Math.floor(this.plotSizeY-Math.max(a,h[2])/2-s))},t||this.axes.forEach(function(t){t.setAxisSize(),t.setAxisTranslation()}),O(this,"afterSetChartSize",{skipAxes:t})},resetMargins:function(){O(this,"resetMargins");var t=this,e=t.options.chart;["margin","spacing"].forEach(function(i){var n=e[i],r=u(n)?n:[n,n,n,n];["Top","Right","Bottom","Left"].forEach(function(n,o){t[i][o]=d(e[i+n],r[o])})}),P.forEach(function(e,i){t[e]=d(t.margin[i],t.spacing[i])}),t.axisOffset=[0,0,0,0],t.clipOffset=[0,0,0,0]},drawChartBox:function(){var t,e=this.options.chart,i=this.renderer,n=this.chartWidth,r=this.chartHeight,o=this.chartBackground,s=this.plotBackground,a=this.plotBorder,l=this.styledMode,u=this.plotBGImage,c=e.backgroundColor,h=e.plotBackgroundColor,d=e.plotBackgroundImage,f=this.plotLeft,p=this.plotTop,v=this.plotWidth,g=this.plotHeight,m=this.plotBox,y=this.clipRect,_=this.clipBox,b="animate";if(o||(this.chartBackground=o=i.rect().addClass("highcharts-background").add(),b="attr"),l)var x=t=o.strokeWidth();else t=(x=e.borderWidth||0)+(e.shadow?8:0),c={fill:c||"none"},(x||o["stroke-width"])&&(c.stroke=e.borderColor,c["stroke-width"]=x),o.attr(c).shadow(e.shadow);o[b]({x:t/2,y:t/2,width:n-t-x%2,height:r-t-x%2,r:e.borderRadius}),b="animate",s||(b="attr",this.plotBackground=s=i.rect().addClass("highcharts-plot-background").add()),s[b](m),l||(s.attr({fill:h||"none"}).shadow(e.plotShadow),d&&(u?u.animate(m):this.plotBGImage=i.image(d,f,p,v,g).add())),y?y.animate({width:_.width,height:_.height}):this.clipRect=i.clipRect(_),b="animate",a||(b="attr",this.plotBorder=a=i.rect().addClass("highcharts-plot-border").attr({zIndex:1}).add()),l||a.attr({stroke:e.plotBorderColor,"stroke-width":e.plotBorderWidth||0,fill:"none"}),a[b](a.crisp({x:f,y:p,width:v,height:g},-a.strokeWidth())),this.isDirtyBox=!1,O(this,"afterDrawChartBox")},propFromSeries:function(){var t,e,i,n=this,r=n.options.chart,o=n.options.series;["inverted","angular","polar"].forEach(function(s){for(t=A[r.type||r.defaultSeriesType],i=r[s]||t&&t.prototype[s],e=o&&o.length;!i&&e--;)(t=A[o[e].type])&&t.prototype[s]&&(i=!0);n[s]=i})},linkSeries:function(){var t=this,e=t.series;e.forEach(function(t){t.linkedSeries.length=0}),e.forEach(function(e){var i=e.options.linkedTo;c(i)&&(i=":previous"===i?t.series[e.index-1]:t.get(i))&&i.linkedParent!==e&&(i.linkedSeries.push(e),e.linkedParent=i,e.visible=d(e.options.visible,i.options.visible,e.visible))}),O(this,"afterLinkSeries")},renderSeries:function(){this.series.forEach(function(t){t.translate(),t.render()})},renderLabels:function(){var t=this,e=t.options.labels;e.items&&e.items.forEach(function(i){var n=s(e.style,i.style),r=f(n.left)+t.plotLeft,o=f(n.top)+t.plotTop+12;delete n.left,delete n.top,t.renderer.text(i.html,r,o).attr({zIndex:2}).css(n).add()})},render:function(){var t=this.axes,e=this.colorAxis,i=this.renderer,n=this.options,r=0,o=function(t){t.forEach(function(t){t.visible&&t.render()})};this.setTitle(),this.legend=new M(this,n.legend),this.getStacks&&this.getStacks(),this.getMargins(!0),this.setChartSize(),n=this.plotWidth,t.some(function(t){if(t.horiz&&t.visible&&t.options.labels.enabled&&t.series.length)return r=21,!0});var s=this.plotHeight=Math.max(this.plotHeight-r,0);t.forEach(function(t){t.setScale()}),this.getAxisMargins();var a=1.1<n/this.plotWidth,l=1.05<s/this.plotHeight;(a||l)&&(t.forEach(function(t){(t.horiz&&a||!t.horiz&&l)&&t.setTickInterval(!0)}),this.getMargins()),this.drawChartBox(),this.hasCartesianSeries?o(t):e&&e.length&&o(e),this.seriesGroup||(this.seriesGroup=i.g("series-group").attr({zIndex:3}).add()),this.renderSeries(),this.renderLabels(),this.addCredits(),this.setResponsive&&this.setResponsive(),this.updateContainerScaling(),this.hasRendered=!0},addCredits:function(t){var e=this;(t=k(!0,this.options.credits,t)).enabled&&!this.credits&&(this.credits=this.renderer.text(t.text+(this.mapCredits||""),0,0).addClass("highcharts-credits").on("click",function(){t.href&&(R.location.href=t.href)}).attr({align:t.position.align,zIndex:8}),e.styledMode||this.credits.css(t.style),this.credits.add().align(t.position),this.credits.update=function(t){e.credits=e.credits.destroy(),e.addCredits(t)})},updateContainerScaling:function(){var t=this.container;if(t.offsetWidth&&t.offsetHeight&&t.getBoundingClientRect){var e=t.getBoundingClientRect(),i=e.width/t.offsetWidth;t=e.height/t.offsetHeight,1!==i||1!==t?this.containerScaling={scaleX:i,scaleY:t}:delete this.containerScaling}},destroy:function(){var e,i=this,n=i.axes,s=i.series,a=i.container,l=a&&a.parentNode;for(O(i,"destroy"),i.renderer.forExport?o(T,i):T[i.index]=void 0,t.chartCount--,i.renderTo.removeAttribute("data-highcharts-chart"),L(i),e=n.length;e--;)n[e]=n[e].destroy();for(this.scroller&&this.scroller.destroy&&this.scroller.destroy(),e=s.length;e--;)s[e]=s[e].destroy();"title subtitle chartBackground plotBackground plotBGImage plotBorder seriesGroup clipRect credits pointer rangeSelector legend resetZoomButton tooltip renderer".split(" ").forEach(function(t){var e=i[t];e&&e.destroy&&(i[t]=e.destroy())}),a&&(a.innerHTML="",L(a),l&&r(a)),h(i,function(t,e){delete i[e]})},firstRender:function(){var t=this,e=t.options;t.isReadyToRender&&!t.isReadyToRender()||(t.getContainer(),t.resetMargins(),t.setChartSize(),t.propFromSeries(),t.getAxes(),(a(e.series)?e.series:[]).forEach(function(e){t.initSeries(e)}),t.linkSeries(),O(t,"beforeRender"),I&&(t.pointer=new I(t,e)),t.render(),!t.renderer.imgCount&&t.onload&&t.onload(),t.temporaryDisplay(!0))},onload:function(){this.callbacks.concat([this.callback]).forEach(function(t){t&&void 0!==this.index&&t.apply(this,[this])},this),O(this,"load"),O(this,"render"),n(this.index)&&this.setReflow(this.options.chart.reflow),this.onload=null}})}),e(i,"parts/ScrollablePlotArea.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.pick,n=t.addEvent;e=t.Chart,n(e,"afterSetChartSize",function(e){var i=this.options.chart.scrollablePlotArea,n=i&&i.minWidth;if(i=i&&i.minHeight,!this.renderer.forExport){if(n){if(this.scrollablePixelsX=n=Math.max(0,n-this.chartWidth)){this.plotWidth+=n,this.inverted?(this.clipBox.height+=n,this.plotBox.height+=n):(this.clipBox.width+=n,this.plotBox.width+=n);var r={1:{name:"right",value:n}}}}else i&&(this.scrollablePixelsY=n=Math.max(0,i-this.chartHeight))&&(this.plotHeight+=n,this.inverted?(this.clipBox.width+=n,this.plotBox.width+=n):(this.clipBox.height+=n,this.plotBox.height+=n),r={2:{name:"bottom",value:n}});r&&!e.skipAxes&&this.axes.forEach(function(e){r[e.side]?e.getPlotLinePath=function(){var i=r[e.side].name,n=this[i];this[i]=n-r[e.side].value;var o=t.Axis.prototype.getPlotLinePath.apply(this,arguments);return this[i]=n,o}:(e.setAxisSize(),e.setAxisTranslation())})}}),n(e,"render",function(){this.scrollablePixelsX||this.scrollablePixelsY?(this.setUpScrolling&&this.setUpScrolling(),this.applyFixed()):this.fixedDiv&&this.applyFixed()}),e.prototype.setUpScrolling=function(){var e={WebkitOverflowScrolling:"touch",overflowX:"hidden",overflowY:"hidden"};this.scrollablePixelsX&&(e.overflowX="auto"),this.scrollablePixelsY&&(e.overflowY="auto"),this.scrollingContainer=t.createElement("div",{className:"highcharts-scrolling"},e,this.renderTo),this.innerContainer=t.createElement("div",{className:"highcharts-inner-container"},null,this.scrollingContainer),this.innerContainer.appendChild(this.container),this.setUpScrolling=null},e.prototype.moveFixedElements=function(){var t,e=this.container,i=this.fixedRenderer,n=".highcharts-contextbutton .highcharts-credits .highcharts-legend .highcharts-legend-checkbox .highcharts-navigator-series .highcharts-navigator-xaxis .highcharts-navigator-yaxis .highcharts-navigator .highcharts-reset-zoom .highcharts-scrollbar .highcharts-subtitle .highcharts-title".split(" ");this.scrollablePixelsX&&!this.inverted?t=".highcharts-yaxis":this.scrollablePixelsX&&this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&!this.inverted?t=".highcharts-xaxis":this.scrollablePixelsY&&this.inverted&&(t=".highcharts-yaxis"),n.push(t,t+"-labels"),n.forEach(function(t){[].forEach.call(e.querySelectorAll(t),function(t){(t.namespaceURI===i.SVG_NS?i.box:i.box.parentNode).appendChild(t),t.style.pointerEvents="auto"})})},e.prototype.applyFixed=function(){var e,r=!this.fixedDiv,o=this.options.chart.scrollablePlotArea;r?(this.fixedDiv=t.createElement("div",{className:"highcharts-fixed"},{position:"absolute",overflow:"hidden",pointerEvents:"none",zIndex:2},null,!0),this.renderTo.insertBefore(this.fixedDiv,this.renderTo.firstChild),this.renderTo.style.overflow="visible",this.fixedRenderer=e=new t.Renderer(this.fixedDiv,this.chartWidth,this.chartHeight),this.scrollableMask=e.path().attr({fill:t.color(this.options.chart.backgroundColor||"#fff").setOpacity(i(o.opacity,.85)).get(),zIndex:-1}).addClass("highcharts-scrollable-mask").add(),this.moveFixedElements(),n(this,"afterShowResetZoom",this.moveFixedElements),n(this,"afterLayOutTitles",this.moveFixedElements)):this.fixedRenderer.setSize(this.chartWidth,this.chartHeight),e=this.chartWidth+(this.scrollablePixelsX||0);var s=this.chartHeight+(this.scrollablePixelsY||0);t.stop(this.container),this.container.style.width=e+"px",this.container.style.height=s+"px",this.renderer.boxWrapper.attr({width:e,height:s,viewBox:[0,0,e,s].join(" ")}),this.chartBackground.attr({width:e,height:s}),this.scrollablePixelsY&&(this.scrollingContainer.style.height=this.chartHeight+"px"),r&&(o.scrollPositionX&&(this.scrollingContainer.scrollLeft=this.scrollablePixelsX*o.scrollPositionX),o.scrollPositionY&&(this.scrollingContainer.scrollTop=this.scrollablePixelsY*o.scrollPositionY)),s=this.axisOffset,r=this.plotTop-s[0]-1,o=this.plotLeft-s[3]-1,e=this.plotTop+this.plotHeight+s[2]+1,s=this.plotLeft+this.plotWidth+s[1]+1;var a=this.plotLeft+this.plotWidth-(this.scrollablePixelsX||0),l=this.plotTop+this.plotHeight-(this.scrollablePixelsY||0);r=this.scrollablePixelsX?["M",0,r,"L",this.plotLeft-1,r,"L",this.plotLeft-1,e,"L",0,e,"Z","M",a,r,"L",this.chartWidth,r,"L",this.chartWidth,e,"L",a,e,"Z"]:this.scrollablePixelsY?["M",o,0,"L",o,this.plotTop-1,"L",s,this.plotTop-1,"L",s,0,"Z","M",o,l,"L",o,this.chartHeight,"L",s,this.chartHeight,"L",s,l,"Z"]:["M",0,0],"adjustHeight"!==this.redrawTrigger&&this.scrollableMask.attr({d:r})}}),e(i,"parts/Point.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i,n=e.defined,r=e.erase,o=e.extend,s=e.isArray,a=e.isNumber,l=e.isObject,u=e.pick,c=t.fireEvent,h=t.format,d=t.uniqueKey,f=t.removeEvent;t.Point=i=function(){},t.Point.prototype={init:function(t,e,i){return this.series=t,this.applyOptions(e,i),this.id=n(this.id)?this.id:d(),this.resolveColor(),t.chart.pointCount++,c(this,"afterInit"),this},resolveColor:function(){var t=this.series,e=t.chart.options.chart.colorCount,i=t.chart.styledMode;i||this.options.color||(this.color=t.color),t.options.colorByPoint?(i||(e=t.options.colors||t.chart.options.colors,this.color=this.color||e[t.colorCounter],e=e.length),i=t.colorCounter,t.colorCounter++,t.colorCounter===e&&(t.colorCounter=0)):i=t.colorIndex,this.colorIndex=u(this.colorIndex,i)},applyOptions:function(t,e){var n=this.series,r=n.options.pointValKey||n.pointValKey;return t=i.prototype.optionsToObject.call(this,t),o(this,t),this.options=this.options?o(this.options,t):t,t.group&&delete this.group,t.dataLabels&&delete this.dataLabels,r&&(this.y=this[r]),this.formatPrefix=(this.isNull=u(this.isValid&&!this.isValid(),null===this.x||!a(this.y)))?"null":"point",this.selected&&(this.state="select"),"name"in this&&void 0===e&&n.xAxis&&n.xAxis.hasNames&&(this.x=n.xAxis.nameToX(this)),void 0===this.x&&n&&(this.x=void 0===e?n.autoIncrement(this):e),this},setNestedProperty:function(t,e,i){return i.split(".").reduce(function(t,i,n,r){return t[i]=r.length-1===n?e:l(t[i],!0)?t[i]:{},t[i]},t),t},optionsToObject:function(e){var i={},n=this.series,r=n.options.keys,o=r||n.pointArrayMap||["y"],l=o.length,u=0,c=0;if(a(e)||null===e)i[o[0]]=e;else if(s(e))for(!r&&e.length>l&&("string"===(n=typeof e[0])?i.name=e[0]:"number"===n&&(i.x=e[0]),u++);c<l;)r&&void 0===e[u]||(0<o[c].indexOf(".")?t.Point.prototype.setNestedProperty(i,e[u],o[c]):i[o[c]]=e[u]),u++,c++;else"object"==typeof e&&(i=e,e.dataLabels&&(n._hasPointLabels=!0),e.marker&&(n._hasPointMarkers=!0));return i},getClassName:function(){return"highcharts-point"+(this.selected?" highcharts-point-select":"")+(this.negative?" highcharts-negative":"")+(this.isNull?" highcharts-null-point":"")+(void 0!==this.colorIndex?" highcharts-color-"+this.colorIndex:"")+(this.options.className?" "+this.options.className:"")+(this.zone&&this.zone.className?" "+this.zone.className.replace("highcharts-negative",""):"")},getZone:function(){var t=this.series,e=t.zones;t=t.zoneAxis||"y";var i,n=0;for(i=e[n];this[t]>=i.value;)i=e[++n];return this.nonZonedColor||(this.nonZonedColor=this.color),this.color=i&&i.color&&!this.options.color?i.color:this.nonZonedColor,i},hasNewShapeType:function(){return this.graphic&&this.graphic.element.nodeName!==this.shapeType},destroy:function(){var t,e=this.series.chart,i=e.hoverPoints;for(t in e.pointCount--,i&&(this.setState(),r(i,this),i.length||(e.hoverPoints=null)),this===e.hoverPoint&&this.onMouseOut(),(this.graphic||this.dataLabel||this.dataLabels)&&(f(this),this.destroyElements()),this.legendItem&&e.legend.destroyItem(this),this)this[t]=null},destroyElements:function(t){var e,i=this,n=[];for((t=t||{graphic:1,dataLabel:1}).graphic&&n.push("graphic","shadowGroup"),t.dataLabel&&n.push("dataLabel","dataLabelUpper","connector"),e=n.length;e--;){var r=n[e];i[r]&&(i[r]=i[r].destroy())}["dataLabel","connector"].forEach(function(e){var n=e+"s";t[e]&&i[n]&&(i[n].forEach(function(t){t.element&&t.destroy()}),delete i[n])})},getLabelConfig:function(){return{x:this.category,y:this.y,color:this.color,colorIndex:this.colorIndex,key:this.name||this.category,series:this.series,point:this,percentage:this.percentage,total:this.total||this.stackTotal}},tooltipFormatter:function(t){var e=this.series,i=e.tooltipOptions,n=u(i.valueDecimals,""),r=i.valuePrefix||"",o=i.valueSuffix||"";return e.chart.styledMode&&(t=e.chart.tooltip.styledModeFormat(t)),(e.pointArrayMap||["y"]).forEach(function(e){e="{point."+e,(r||o)&&(t=t.replace(RegExp(e+"}","g"),r+e+"}"+o)),t=t.replace(RegExp(e+"}","g"),e+":,."+n+"f}")}),h(t,{point:this,series:this.series},e.chart.time)},firePointEvent:function(t,e,i){var n=this,r=this.series.options;(r.point.events[t]||n.options&&n.options.events&&n.options.events[t])&&this.importEvents(),"click"===t&&r.allowPointSelect&&(i=function(t){n.select&&n.select(null,t.ctrlKey||t.metaKey||t.shiftKey)}),c(this,t,e,i)},visible:!0}}),e(i,"parts/Series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.arrayMax,n=e.arrayMin,r=e.defined,o=e.erase,s=e.extend,a=e.isArray,l=e.isNumber,u=e.isString,c=e.objectEach,h=e.pick,d=e.splat,f=e.syncTimeout,p=t.addEvent,v=t.animObject,g=t.correctFloat,m=t.defaultOptions,y=t.defaultPlotOptions,_=t.fireEvent,b=t.merge,x=t.removeEvent,w=t.SVGElement,S=t.win;t.Series=t.seriesType("line",null,{lineWidth:2,allowPointSelect:!1,showCheckbox:!1,animation:{duration:1e3},events:{},marker:{lineWidth:0,lineColor:"#ffffff",enabledThreshold:2,radius:4,states:{normal:{animation:!0},hover:{animation:{duration:50},enabled:!0,radiusPlus:2,lineWidthPlus:1},select:{fillColor:"#cccccc",lineColor:"#000000",lineWidth:2}}},point:{events:{}},dataLabels:{align:"center",formatter:function(){return null===this.y?"":t.numberFormat(this.y,-1)},padding:5,style:{fontSize:"11px",fontWeight:"bold",color:"contrast",textOutline:"1px contrast"},verticalAlign:"bottom",x:0,y:0},cropThreshold:300,opacity:1,pointRange:0,softThreshold:!0,states:{normal:{animation:!0},hover:{animation:{duration:50},lineWidthPlus:1,marker:{},halo:{size:10,opacity:.25}},select:{animation:{duration:0}},inactive:{animation:{duration:50},opacity:.2}},stickyTracking:!0,turboThreshold:1e3,findNearestPointBy:"x"},{axisTypes:["xAxis","yAxis"],coll:"series",colorCounter:0,cropShoulder:1,directTouch:!1,isCartesian:!0,parallelArrays:["x","y"],pointClass:t.Point,requireSorting:!0,sorted:!0,init:function(e,i){_(this,"init",{options:i});var n,r=this,o=e.series;this.eventOptions=this.eventOptions||{},r.chart=e,r.options=i=r.setOptions(i),r.linkedSeries=[],r.bindAxes(),s(r,{name:i.name,state:"",visible:!1!==i.visible,selected:!0===i.selected});var a=i.events;c(a,function(e,i){t.isFunction(e)&&r.eventOptions[i]!==e&&(t.isFunction(r.eventOptions[i])&&x(r,i,r.eventOptions[i]),r.eventOptions[i]=e,p(r,i,e))}),(a&&a.click||i.point&&i.point.events&&i.point.events.click||i.allowPointSelect)&&(e.runTrackerClick=!0),r.getColor(),r.getSymbol(),r.parallelArrays.forEach(function(t){r[t+"Data"]||(r[t+"Data"]=[])}),r.points||r.data||r.setData(i.data,!1),r.isCartesian&&(e.hasCartesianSeries=!0),o.length&&(n=o[o.length-1]),r._i=h(n&&n._i,-1)+1,e.orderSeries(this.insert(o)),_(this,"afterInit")},insert:function(t){var e,i=this.options.index;if(l(i)){for(e=t.length;e--;)if(i>=h(t[e].options.index,t[e]._i)){t.splice(e+1,0,this);break}-1===e&&t.unshift(this),e+=1}else t.push(this);return h(e,t.length-1)},bindAxes:function(){var e,i=this,n=i.options,r=i.chart;_(this,"bindAxes",null,function(){(i.axisTypes||[]).forEach(function(o){r[o].forEach(function(t){e=t.options,(n[o]===e.index||void 0!==n[o]&&n[o]===e.id||void 0===n[o]&&0===e.index)&&(i.insert(t.series),i[o]=t,t.isDirty=!0)}),i[o]||i.optionalAxis===o||t.error(18,!0,r)})})},updateParallelArrays:function(t,e){var i=t.series,n=arguments,r=l(e)?function(n){var r="y"===n&&i.toYData?i.toYData(t):t[n];i[n+"Data"][e]=r}:function(t){Array.prototype[e].apply(i[t+"Data"],Array.prototype.slice.call(n,2))};i.parallelArrays.forEach(r)},hasData:function(){return this.visible&&void 0!==this.dataMax&&void 0!==this.dataMin||this.visible&&this.yData&&0<this.yData.length},autoIncrement:function(){var t,e=this.options,i=this.xIncrement,n=e.pointIntervalUnit,r=this.chart.time;return i=h(i,e.pointStart,0),this.pointInterval=t=h(this.pointInterval,e.pointInterval,1),n&&(e=new r.Date(i),"day"===n?r.set("Date",e,r.get("Date",e)+t):"month"===n?r.set("Month",e,r.get("Month",e)+t):"year"===n&&r.set("FullYear",e,r.get("FullYear",e)+t),t=e.getTime()-i),this.xIncrement=i+t,i},setOptions:function(t){var e=this.chart,i=e.options,n=i.plotOptions,o=e.userOptions||{};t=b(t),e=e.styledMode;var s={plotOptions:n,userOptions:t};_(this,"setOptions",s);var a=s.plotOptions[this.type],l=o.plotOptions||{};return this.userOptions=s.userOptions,o=b(a,n.series,o.plotOptions&&o.plotOptions[this.type],t),this.tooltipOptions=b(m.tooltip,m.plotOptions.series&&m.plotOptions.series.tooltip,m.plotOptions[this.type].tooltip,i.tooltip.userOptions,n.series&&n.series.tooltip,n[this.type].tooltip,t.tooltip),this.stickyTracking=h(t.stickyTracking,l[this.type]&&l[this.type].stickyTracking,l.series&&l.series.stickyTracking,!(!this.tooltipOptions.shared||this.noSharedTooltip)||o.stickyTracking),null===a.marker&&delete o.marker,this.zoneAxis=o.zoneAxis,i=this.zones=(o.zones||[]).slice(),!o.negativeColor&&!o.negativeFillColor||o.zones||(n={value:o[this.zoneAxis+"Threshold"]||o.threshold||0,className:"highcharts-negative"},e||(n.color=o.negativeColor,n.fillColor=o.negativeFillColor),i.push(n)),i.length&&r(i[i.length-1].value)&&i.push(e?{}:{color:this.color,fillColor:this.fillColor}),_(this,"afterSetOptions",{options:o}),o},getName:function(){return h(this.options.name,"Series "+(this.index+1))},getCyclic:function(t,e,i){var n=this.chart,o=this.userOptions,s=t+"Index",a=t+"Counter",l=i?i.length:h(n.options.chart[t+"Count"],n[t+"Count"]);if(!e){var u=h(o[s],o["_"+s]);r(u)||(n.series.length||(n[a]=0),o["_"+s]=u=n[a]%l,n[a]+=1),i&&(e=i[u])}void 0!==u&&(this[s]=u),this[t]=e},getColor:function(){this.chart.styledMode?this.getCyclic("color"):this.options.colorByPoint?this.options.color=null:this.getCyclic("color",this.options.color||y[this.type].color,this.chart.options.colors)},getSymbol:function(){this.getCyclic("symbol",this.options.marker.symbol,this.chart.options.symbols)},findPointIndex:function(t,e){var i=t.id;t=t.x;var n,r=this.points;if(i){var o=(i=this.chart.get(i))&&i.index;void 0!==o&&(n=!0)}return void 0===o&&l(t)&&(o=this.xData.indexOf(t,e)),-1!==o&&void 0!==o&&this.cropped&&(o=o>=this.cropStart?o-this.cropStart:o),!n&&r[o]&&r[o].touched&&(o=void 0),o},drawLegendSymbol:t.LegendSymbolMixin.drawLineMarker,updateData:function(t){var e,i,n,o=this.options,s=this.points,a=[],u=this.requireSorting,c=t.length===s.length,h=!0;if(this.xIncrement=null,t.forEach(function(t,i){var h=r(t)&&this.pointClass.prototype.optionsToObject.call({series:this},t)||{},d=h.x;(h.id||l(d))&&(-1===(d=this.findPointIndex(h,n))||void 0===d?a.push(t):s[d]&&t!==o.data[d]?(s[d].update(t,!1,null,!1),s[d].touched=!0,u&&(n=d+1)):s[d]&&(s[d].touched=!0),(!c||i!==d||this.hasDerivedData)&&(e=!0))},this),e)for(t=s.length;t--;)(i=s[t])&&!i.touched&&i.remove(!1);else c?t.forEach(function(t,e){s[e].update&&t!==s[e].y&&s[e].update(t,!1,null,!1)}):h=!1;return s.forEach(function(t){t&&(t.touched=!1)}),!!h&&(a.forEach(function(t){this.addPoint(t,!1,null,null,!1)},this),!0)},setData:function(e,i,n,r){var o,s=this,c=s.points,d=c&&c.length||0,f=s.options,p=s.chart,v=null,g=s.xAxis;v=f.turboThreshold;var m,y=this.xData,_=this.yData,b=(o=s.pointArrayMap)&&o.length,x=f.keys,w=0,S=1;if(o=(e=e||[]).length,i=h(i,!0),!1!==r&&o&&d&&!s.cropped&&!s.hasGroupedData&&s.visible&&!s.isSeriesBoosting&&(m=this.updateData(e)),!m){if(s.xIncrement=null,s.colorCounter=0,this.parallelArrays.forEach(function(t){s[t+"Data"].length=0}),v&&o>v)if(v=s.getFirstValidPoint(e),l(v))for(n=0;n<o;n++)y[n]=this.autoIncrement(),_[n]=e[n];else if(a(v))if(b)for(n=0;n<o;n++)r=e[n],y[n]=r[0],_[n]=r.slice(1,b+1);else for(x&&(w=x.indexOf("x"),S=x.indexOf("y"),w=0<=w?w:0,S=0<=S?S:1),n=0;n<o;n++)r=e[n],y[n]=r[w],_[n]=r[S];else t.error(12,!1,p);else for(n=0;n<o;n++)void 0!==e[n]&&(r={series:s},s.pointClass.prototype.applyOptions.apply(r,[e[n]]),s.updateParallelArrays(r,n));for(_&&u(_[0])&&t.error(14,!0,p),s.data=[],s.options.data=s.userOptions.data=e,n=d;n--;)c[n]&&c[n].destroy&&c[n].destroy();g&&(g.minRange=g.userMinRange),s.isDirty=p.isDirtyBox=!0,s.isDirtyData=!!c,n=!1}"point"===f.legendType&&(this.processData(),this.generatePoints()),i&&p.redraw(n)},processData:function(e){var i=this.xData,n=this.yData,r=i.length,o=0,s=this.xAxis,a=this.options,l=a.cropThreshold,u=this.getExtremesFromAll||a.getExtremesFromAll,c=this.isCartesian;a=s&&s.val2lin;var h=s&&s.isLog,d=this.requireSorting;if(c&&!this.isDirty&&!s.isDirty&&!this.yAxis.isDirty&&!e)return!1;if(s)var f=(e=s.getExtremes()).min,p=e.max;if(c&&this.sorted&&!u&&(!l||r>l||this.forceCrop))if(i[r-1]<f||i[0]>p)i=[],n=[];else if(this.yData&&(i[0]<f||i[r-1]>p)){i=(o=this.cropData(this.xData,this.yData,f,p)).xData,n=o.yData,o=o.start;var v=!0}for(l=i.length||1;--l;)if(0<(r=h?a(i[l])-a(i[l-1]):i[l]-i[l-1])&&(void 0===g||r<g))var g=r;else 0>r&&d&&(t.error(15,!1,this.chart),d=!1);this.cropped=v,this.cropStart=o,this.processedXData=i,this.processedYData=n,this.closestPointRange=this.basePointRange=g},cropData:function(t,e,i,n,r){var o,s=t.length,a=0,l=s;for(r=h(r,this.cropShoulder),o=0;o<s;o++)if(t[o]>=i){a=Math.max(0,o-r);break}for(i=o;i<s;i++)if(t[i]>n){l=i+r;break}return{xData:t.slice(a,l),yData:e.slice(a,l),start:a,end:l}},generatePoints:function(){var t,e=this.options,i=e.data,n=this.data,r=this.processedXData,o=this.processedYData,a=this.pointClass,l=r.length,u=this.cropStart||0,c=this.hasGroupedData;e=e.keys;var h,f=[];for(n||c||((n=[]).length=i.length,n=this.data=n),e&&c&&(this.options.keys=!1),h=0;h<l;h++){var p=u+h;if(c){var v=(new a).init(this,[r[h]].concat(d(o[h])));v.dataGroup=this.groupMap[h],v.dataGroup.options&&(v.options=v.dataGroup.options,s(v,v.dataGroup.options),delete v.dataLabels)}else(v=n[p])||void 0===i[p]||(n[p]=v=(new a).init(this,i[p],r[h]));v&&(v.index=p,f[h]=v)}if(this.options.keys=e,n&&(l!==(t=n.length)||c))for(h=0;h<t;h++)h!==u||c||(h+=l),n[h]&&(n[h].destroyElements(),n[h].plotX=void 0);this.data=n,this.points=f,_(this,"afterGeneratePoints")},getXExtremes:function(t){return{min:n(t),max:i(t)}},getExtremes:function(t){var e,r=this.xAxis,o=this.yAxis,s=this.processedXData||this.xData,u=[],c=0,h=0,d=0,f=this.requireSorting?this.cropShoulder:0,p=!!o&&o.positiveValuesOnly;for(o=(t=t||this.stackedYData||this.processedYData||[]).length,r&&(h=(d=r.getExtremes()).min,d=d.max),e=0;e<o;e++){var v=s[e],g=t[e],m=(l(g)||a(g))&&(g.length||0<g||!p);if(v=this.getExtremesFromAll||this.options.getExtremesFromAll||this.cropped||!r||(s[e+f]||v)>=h&&(s[e-f]||v)<=d,m&&v)if(m=g.length)for(;m--;)l(g[m])&&(u[c++]=g[m]);else u[c++]=g}this.dataMin=n(u),this.dataMax=i(u),_(this,"afterGetExtremes")},getFirstValidPoint:function(t){for(var e=null,i=t.length,n=0;null===e&&n<i;)e=t[n],n++;return e},translate:function(){this.processedXData||this.processData(),this.generatePoints();var t,e,i=this.options,n=i.stacking,o=this.xAxis,s=o.categories,u=this.yAxis,c=this.points,d=c.length,f=!!this.modifyValue,p=this.pointPlacementToXValue(),v=l(p),m=i.threshold,y=i.startFromThreshold?m:0,b=this.zoneAxis||"y",x=Number.MAX_VALUE;for(t=0;t<d;t++){var w=c[t],S=w.x,T=w.y,E=w.low,C=n&&u.stacks[(this.negStacks&&T<(y?0:m)?"-":"")+this.stackKey];if(u.positiveValuesOnly&&null!==T&&0>=T&&(w.isNull=!0),w.plotX=e=g(Math.min(Math.max(-1e5,o.translate(S,0,0,0,1,p,"flags"===this.type)),1e5)),n&&this.visible&&C&&C[S]){var O=this.getStackIndicator(O,S,this.index);if(!w.isNull)var M=C[S],P=M.points[O.key]}if(a(P)&&(E=P[0],T=P[1],E===y&&O.key===C[S].base&&(E=h(l(m)&&m,u.min)),u.positiveValuesOnly&&0>=E&&(E=null),w.total=w.stackTotal=M.total,w.percentage=M.total&&w.y/M.total*100,w.stackY=T,this.irregularWidths||M.setOffset(this.pointXOffset||0,this.barW||0)),w.yBottom=r(E)?Math.min(Math.max(-1e5,u.translate(E,0,1,0,1)),1e5):null,f&&(T=this.modifyValue(T,w)),w.plotY=T="number"==typeof T&&1/0!==T?Math.min(Math.max(-1e5,u.translate(T,0,1,0,1)),1e5):void 0,w.isInside=void 0!==T&&0<=T&&T<=u.len&&0<=e&&e<=o.len,w.clientX=v?g(o.translate(S,0,0,0,1,p)):e,w.negative=w[b]<(i[b+"Threshold"]||m||0),w.category=s&&void 0!==s[w.x]?s[w.x]:w.x,!w.isNull){void 0!==k&&(x=Math.min(x,Math.abs(e-k)));var k=e}w.zone=this.zones.length&&w.getZone()}this.closestPointRangePx=x,_(this,"afterTranslate")},getValidPoints:function(t,e,i){var n=this.chart;return(t||this.points||[]).filter(function(t){return!(e&&!n.isInsidePlot(t.plotX,t.plotY,n.inverted))&&(i||!t.isNull)})},getClipBox:function(t,e){var i=this.options,n=this.chart,r=n.inverted,o=this.xAxis,s=o&&this.yAxis;return t&&!1===i.clip&&s?t=r?{y:-n.chartWidth+s.len+s.pos,height:n.chartWidth,width:n.chartHeight,x:-n.chartHeight+o.len+o.pos}:{y:-s.pos,height:n.chartHeight,width:n.chartWidth,x:-o.pos}:(t=this.clipBox||n.clipBox,e&&(t.width=n.plotSizeX,t.x=0)),e?{width:t.width,x:t.x}:t},setClip:function(t){var e=this.chart,i=this.options,n=e.renderer,r=e.inverted,o=this.clipBox,s=this.getClipBox(t),a=this.sharedClipKey||["_sharedClip",t&&t.duration,t&&t.easing,s.height,i.xAxis,i.yAxis].join(),l=e[a],u=e[a+"m"];l||(t&&(s.width=0,r&&(s.x=e.plotSizeX+(!1!==i.clip?0:e.plotTop)),e[a+"m"]=u=n.clipRect(r?e.plotSizeX+99:-99,r?-e.plotLeft:-e.plotTop,99,r?e.chartWidth:e.chartHeight)),e[a]=l=n.clipRect(s),l.count={length:0}),t&&!l.count[this.index]&&(l.count[this.index]=!0,l.count.length+=1),(!1!==i.clip||t)&&(this.group.clip(t||o?l:e.clipRect),this.markerGroup.clip(u),this.sharedClipKey=a),t||(l.count[this.index]&&(delete l.count[this.index],--l.count.length),0===l.count.length&&a&&e[a]&&(o||(e[a]=e[a].destroy()),e[a+"m"]&&(e[a+"m"]=e[a+"m"].destroy())))},animate:function(t){var e=this.chart,i=v(this.options.animation);if(t)this.setClip(i);else{var n=this.sharedClipKey;t=e[n];var r=this.getClipBox(i,!0);t&&t.animate(r,i),e[n+"m"]&&e[n+"m"].animate({width:r.width+99,x:r.x-(e.inverted?0:99)},i),this.animate=null}},afterAnimate:function(){this.setClip(),_(this,"afterAnimate"),this.finishedAnimating=!0},drawPoints:function(){var t,e=this.points,i=this.chart,n=this.options.marker,r=this[this.specialGroup]||this.markerGroup,o=this.xAxis,s=h(n.enabled,!(o&&!o.isRadial)||null,this.closestPointRangePx>=n.enabledThreshold*n.radius);if(!1!==n.enabled||this._hasPointMarkers)for(o=0;o<e.length;o++){var a=e[o],l=(t=a.graphic)?"animate":"attr",u=a.marker||{},c=!!a.marker,d=s&&void 0===u.enabled||u.enabled,f=!1!==a.isInside;if(d&&!a.isNull){var p=h(u.symbol,this.symbol);d=this.markerAttribs(a,a.selected&&"select"),t?t[f?"show":"hide"](f).animate(d):f&&(0<d.width||a.hasImage)&&(a.graphic=t=i.renderer.symbol(p,d.x,d.y,d.width,d.height,c?u:n).add(r)),t&&!i.styledMode&&t[l](this.pointAttribs(a,a.selected&&"select")),t&&t.addClass(a.getClassName(),!0)}else t&&(a.graphic=t.destroy())}},markerAttribs:function(t,e){var i=this.options.marker,n=t.marker||{},r=n.symbol||i.symbol,o=h(n.radius,i.radius);return e&&(i=i.states[e],e=n.states&&n.states[e],o=h(e&&e.radius,i&&i.radius,o+(i&&i.radiusPlus||0))),t.hasImage=r&&0===r.indexOf("url"),t.hasImage&&(o=0),t={x:Math.floor(t.plotX)-o,y:t.plotY-o},o&&(t.width=t.height=2*o),t},pointAttribs:function(t,e){var i=this.options.marker,n=t&&t.options,r=n&&n.marker||{},o=this.color,s=n&&n.color,a=t&&t.color;n=h(r.lineWidth,i.lineWidth);var l=t&&t.zone&&t.zone.color;return t=1,o=s||l||a||o,s=r.fillColor||i.fillColor||o,o=r.lineColor||i.lineColor||o,e=e||"normal",i=i.states[e],e=r.states&&r.states[e]||{},n=h(e.lineWidth,i.lineWidth,n+h(e.lineWidthPlus,i.lineWidthPlus,0)),s=e.fillColor||i.fillColor||s,{stroke:o=e.lineColor||i.lineColor||o,"stroke-width":n,fill:s,opacity:t=h(e.opacity,i.opacity,t)}},destroy:function(e){var i,n,r,s=this,a=s.chart,l=/AppleWebKit\/533/.test(S.navigator.userAgent),u=s.data||[];for(_(s,"destroy"),e||x(s),(s.axisTypes||[]).forEach(function(t){(r=s[t])&&r.series&&(o(r.series,s),r.isDirty=r.forceRedraw=!0)}),s.legendItem&&s.chart.legend.destroyItem(s),i=u.length;i--;)(n=u[i])&&n.destroy&&n.destroy();s.points=null,t.clearTimeout(s.animationTimeout),c(s,function(t,e){t instanceof w&&!t.survive&&t[l&&"group"===e?"hide":"destroy"]()}),a.hoverSeries===s&&(a.hoverSeries=null),o(a.series,s),a.orderSeries(),c(s,function(t,i){e&&"hcEvents"===i||delete s[i]})},getGraphPath:function(t,e,i){var n,o,s=this,a=s.options,l=a.step,u=[],c=[];return(n=(t=t||s.points).reversed)&&t.reverse(),(l={right:1,center:2}[l]||l&&3)&&n&&(l=4-l),!a.connectNulls||e||i||(t=this.getValidPoints(t)),t.forEach(function(n,h){var d=n.plotX,f=n.plotY,p=t[h-1];(n.leftCliff||p&&p.rightCliff)&&!i&&(o=!0),n.isNull&&!r(e)&&0<h?o=!a.connectNulls:n.isNull&&!e?o=!0:(0===h||o?h=["M",n.plotX,n.plotY]:s.getPointSpline?h=s.getPointSpline(t,n,h):l?(h=1===l?["L",p.plotX,f]:2===l?["L",(p.plotX+d)/2,p.plotY,"L",(p.plotX+d)/2,f]:["L",d,p.plotY]).push("L",d,f):h=["L",d,f],c.push(n.x),l&&(c.push(n.x),2===l&&c.push(n.x)),u.push.apply(u,h),o=!1)}),u.xMap=c,s.graphPath=u},drawGraph:function(){var t=this,e=this.options,i=(this.gappedPath||this.getGraphPath).call(this),n=this.chart.styledMode,r=[["graph","highcharts-graph"]];n||r[0].push(e.lineColor||this.color||"#cccccc",e.dashStyle),(r=t.getZonesGraphs(r)).forEach(function(r,o){var s=r[0],a=t[s],l=a?"animate":"attr";a?(a.endX=t.preventGraphAnimation?null:i.xMap,a.animate({d:i})):i.length&&(t[s]=a=t.chart.renderer.path(i).addClass(r[1]).attr({zIndex:1}).add(t.group)),a&&!n&&(s={stroke:r[2],"stroke-width":e.lineWidth,fill:t.fillGraph&&t.color||"none"},r[3]?s.dashstyle=r[3]:"square"!==e.linecap&&(s["stroke-linecap"]=s["stroke-linejoin"]="round"),a[l](s).shadow(2>o&&e.shadow)),a&&(a.startX=i.xMap,a.isArea=i.isArea)})},getZonesGraphs:function(t){return this.zones.forEach(function(e,i){i=["zone-graph-"+i,"highcharts-graph highcharts-zone-graph-"+i+" "+(e.className||"")],this.chart.styledMode||i.push(e.color||this.color,e.dashStyle||this.options.dashStyle),t.push(i)},this),t},applyZones:function(){var t,e,i,n,r,o,s=this,a=this.chart,l=a.renderer,u=this.zones,c=this.clips||[],d=this.graph,f=this.area,p=Math.max(a.chartWidth,a.chartHeight),v=this[(this.zoneAxis||"y")+"Axis"],g=a.inverted,m=!1;if(u.length&&(d||f)&&v&&void 0!==v.min){var y=v.reversed,_=v.horiz;d&&!this.showLine&&d.hide(),f&&f.hide();var b=v.getExtremes();u.forEach(function(u,x){t=y?_?a.plotWidth:0:_?0:v.toPixels(b.min)||0,t=Math.min(Math.max(h(e,t),0),p),e=Math.min(Math.max(Math.round(v.toPixels(h(u.value,b.max),!0)||0),0),p),m&&(t=e=v.toPixels(b.max)),n=Math.abs(t-e),r=Math.min(t,e),o=Math.max(t,e),v.isXAxis?(i={x:g?o:r,y:0,width:n,height:p},_||(i.x=a.plotHeight-i.x)):(i={x:0,y:g?o:r,width:p,height:n},_&&(i.y=a.plotWidth-i.y)),g&&l.isVML&&(i=v.isXAxis?{x:0,y:y?r:o,height:i.width,width:a.chartWidth}:{x:i.y-a.plotLeft-a.spacingBox.x,y:0,width:i.height,height:a.chartHeight}),c[x]?c[x].animate(i):c[x]=l.clipRect(i),d&&s["zone-graph-"+x].clip(c[x]),f&&s["zone-area-"+x].clip(c[x]),m=u.value>b.max,s.resetZones&&0===e&&(e=void 0)}),this.clips=c}else s.visible&&(d&&d.show(!0),f&&f.show(!0))},invertGroups:function(t){function e(){["group","markerGroup"].forEach(function(e){i[e]&&(n.renderer.isVML&&i[e].attr({width:i.yAxis.len,height:i.xAxis.len}),i[e].width=i.yAxis.len,i[e].height=i.xAxis.len,i[e].invert(t))})}var i=this,n=i.chart;if(i.xAxis){var r=p(n,"resize",e);p(i,"destroy",r),e(),i.invertGroups=e}},plotGroup:function(t,e,i,n,o){var s=this[t],a=!s;return a&&(this[t]=s=this.chart.renderer.g().attr({zIndex:n||.1}).add(o)),s.addClass("highcharts-"+e+" highcharts-series-"+this.index+" highcharts-"+this.type+"-series "+(r(this.colorIndex)?"highcharts-color-"+this.colorIndex+" ":"")+(this.options.className||"")+(s.hasClass("highcharts-tracker")?" highcharts-tracker":""),!0),s.attr({visibility:i})[a?"attr":"animate"](this.getPlotBox()),s},getPlotBox:function(){var t=this.chart,e=this.xAxis,i=this.yAxis;return t.inverted&&(e=i,i=this.xAxis),{translateX:e?e.left:t.plotLeft,translateY:i?i.top:t.plotTop,scaleX:1,scaleY:1}},render:function(){var t=this,e=t.chart,i=t.options,n=!!t.animate&&e.renderer.isSVG&&v(i.animation).duration,r=t.visible?"inherit":"hidden",o=i.zIndex,s=t.hasRendered,a=e.seriesGroup,l=e.inverted;_(this,"render");var u=t.plotGroup("group","series",r,o,a);t.markerGroup=t.plotGroup("markerGroup","markers",r,o,a),n&&t.animate(!0),u.inverted=!(!t.isCartesian&&!t.invertable)&&l,t.drawGraph&&(t.drawGraph(),t.applyZones()),t.visible&&t.drawPoints(),t.drawDataLabels&&t.drawDataLabels(),t.redrawPoints&&t.redrawPoints(),t.drawTracker&&!1!==t.options.enableMouseTracking&&t.drawTracker(),t.invertGroups(l),!1===i.clip||t.sharedClipKey||s||u.clip(e.clipRect),n&&t.animate(),s||(t.animationTimeout=f(function(){t.afterAnimate()},n||0)),t.isDirty=!1,t.hasRendered=!0,_(t,"afterRender")},redraw:function(){var t=this.chart,e=this.isDirty||this.isDirtyData,i=this.group,n=this.xAxis,r=this.yAxis;i&&(t.inverted&&i.attr({width:t.plotWidth,height:t.plotHeight}),i.animate({translateX:h(n&&n.left,t.plotLeft),translateY:h(r&&r.top,t.plotTop)})),this.translate(),this.render(),e&&delete this.kdTree},kdAxisArray:["clientX","plotY"],searchPoint:function(t,e){var i=this.xAxis,n=this.yAxis,r=this.chart.inverted;return this.searchKDTree({clientX:r?i.len-t.chartY+i.pos:t.chartX-i.pos,plotY:r?n.len-t.chartX+n.pos:t.chartY-n.pos},e,t)},buildKDTree:function(t){this.buildingKdTree=!0;var e=this,i=-1<e.options.findNearestPointBy.indexOf("y")?2:1;delete e.kdTree,f(function(){e.kdTree=function t(i,n,r){var o;if(o=i&&i.length){var s=e.kdAxisArray[n%r];return i.sort(function(t,e){return t[s]-e[s]}),{point:i[o=Math.floor(o/2)],left:t(i.slice(0,o),n+1,r),right:t(i.slice(o+1),n+1,r)}}}(e.getValidPoints(null,!e.directTouch),i,i),e.buildingKdTree=!1},e.options.kdNow||t&&"touchstart"===t.type?0:1)},searchKDTree:function(t,e,i){var n=this,o=this.kdAxisArray[0],s=this.kdAxisArray[1],a=e?"distX":"dist";if(e=-1<n.options.findNearestPointBy.indexOf("y")?2:1,this.kdTree||this.buildingKdTree||this.buildKDTree(i),this.kdTree)return function t(e,i,l,u){var c=i.point,h=n.kdAxisArray[l%u],d=c,f=r(e[o])&&r(c[o])?Math.pow(e[o]-c[o],2):null,p=r(e[s])&&r(c[s])?Math.pow(e[s]-c[s],2):null;return p=(f||0)+(p||0),c.dist=r(p)?Math.sqrt(p):Number.MAX_VALUE,c.distX=r(f)?Math.sqrt(f):Number.MAX_VALUE,p=0>(h=e[h]-c[h])?"left":"right",f=0>h?"right":"left",i[p]&&(d=(p=t(e,i[p],l+1,u))[a]<d[a]?p:c),i[f]&&Math.sqrt(h*h)<d[a]&&(d=(e=t(e,i[f],l+1,u))[a]<d[a]?e:d),d}(t,this.kdTree,e,e)},pointPlacementToXValue:function(){var t=this.xAxis,e=this.options.pointPlacement;return"between"===e&&(e=t.reversed?-.5:.5),l(e)&&(e*=h(this.options.pointRange||t.pointRange)),e}})}),e(i,"parts/Stacking.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.destroyObjectProperties,r=e.objectEach,o=e.pick;e=t.Axis;var s=t.Chart,a=t.correctFloat,l=t.format,u=t.Series;t.StackItem=function(t,e,i,n,r){var o=t.chart.inverted;this.axis=t,this.isNegative=i,this.options=e=e||{},this.x=n,this.total=null,this.points={},this.stack=r,this.rightCliff=this.leftCliff=0,this.alignOptions={align:e.align||(o?i?"left":"right":"center"),verticalAlign:e.verticalAlign||(o?"middle":i?"bottom":"top"),y:e.y,x:e.x},this.textAlign=e.textAlign||(o?i?"right":"left":"center")},t.StackItem.prototype={destroy:function(){n(this,this.axis)},render:function(t){var e=this.axis.chart,i=this.options,n=i.format;n=n?l(n,this,e.time):i.formatter.call(this),this.label?this.label.attr({text:n,visibility:"hidden"}):(this.label=e.renderer.label(n,null,null,i.shape,null,null,i.useHTML,!1,"stack-labels"),n={text:n,align:this.textAlign,rotation:i.rotation,padding:o(i.padding,0),visibility:"hidden"},this.label.attr(n),e.styledMode||this.label.css(i.style),this.label.added||this.label.add(t)),this.label.labelrank=e.plotHeight},setOffset:function(t,e,n,r,s){var a=this.axis,l=a.chart;if(r=a.translate(a.usePercentage?100:r||this.total,0,0,0,1),n=a.translate(n||0),n=i(r)&&Math.abs(r-n),t=o(s,l.xAxis[0].translate(this.x))+t,a=i(r)&&this.getStackBox(l,this,t,r,e,n,a),e=this.label,t=this.isNegative,s="justify"===o(this.options.overflow,"justify"),e&&a){n=e.getBBox();var c=l.inverted?t?n.width:0:n.width/2,h=l.inverted?n.height/2:t?-4:n.height+4;this.alignOptions.x=o(this.options.x,0),e.align(this.alignOptions,null,a),r=e.alignAttr,e.show(),r.y-=h,s&&(r.x-=c,u.prototype.justifyDataLabel.call(this.axis,e,this.alignOptions,r,n,a),r.x+=c),r.x=e.alignAttr.x,e.attr({x:r.x,y:r.y}),o(!s&&this.options.crop,!0)&&((l=l.isInsidePlot(e.x+(l.inverted?0:-n.width/2),e.y)&&l.isInsidePlot(e.x+(l.inverted?t?-n.width:n.width:n.width/2),e.y+n.height))||e.hide())}},getStackBox:function(t,e,i,n,r,o,s){var a=e.axis.reversed,l=t.inverted;return t=s.height+s.pos-(l?t.plotLeft:t.plotTop),e=e.isNegative&&!a||!e.isNegative&&a,{x:l?e?n:n-o:i,y:l?t-i-r:e?t-n-o:t-n,width:l?o:r,height:l?r:o}}},s.prototype.getStacks=function(){var t=this,e=t.inverted;t.yAxis.forEach(function(t){t.stacks&&t.hasVisibleSeries&&(t.oldStacks=t.stacks)}),t.series.forEach(function(i){var n=i.xAxis&&i.xAxis.options||{};!i.options.stacking||!0!==i.visible&&!1!==t.options.chart.ignoreHiddenSeries||(i.stackKey=[i.type,o(i.options.stack,""),e?n.top:n.left,e?n.height:n.width].join())})},e.prototype.buildStacks=function(){var t,e=this.series,i=o(this.options.reversedStacks,!0),n=e.length;if(!this.isXAxis){for(this.usePercentage=!1,t=n;t--;)e[i?t:n-t-1].setStackedPoints();for(t=0;t<n;t++)e[t].modifyStacks()}},e.prototype.renderStackTotals=function(){var t=this.chart,e=t.renderer,i=this.stacks,n=this.stackTotalGroup;n||(this.stackTotalGroup=n=e.g("stack-labels").attr({visibility:"visible",zIndex:6}).add()),n.translate(t.plotLeft,t.plotTop),r(i,function(t){r(t,function(t){t.render(n)})})},e.prototype.resetStacks=function(){var t=this,e=t.stacks;t.isXAxis||r(e,function(e){r(e,function(i,n){i.touched<t.stacksTouched?(i.destroy(),delete e[n]):(i.total=null,i.cumulative=null)})})},e.prototype.cleanStacks=function(){if(!this.isXAxis){if(this.oldStacks)var t=this.stacks=this.oldStacks;r(t,function(t){r(t,function(t){t.cumulative=t.total})})}},u.prototype.setStackedPoints=function(){if(this.options.stacking&&(!0===this.visible||!1===this.chart.options.chart.ignoreHiddenSeries)){var e=this.processedXData,n=this.processedYData,r=[],s=n.length,l=this.options,u=l.threshold,c=o(l.startFromThreshold&&u,0),h=l.stack;l=l.stacking;var d,f,p=this.stackKey,v="-"+p,g=this.negStacks,m=this.yAxis,y=m.stacks,_=m.oldStacks;for(m.stacksTouched+=1,f=0;f<s;f++){var b=e[f],x=n[f],w=this.getStackIndicator(w,b,this.index),S=w.key,T=(d=g&&x<(c?0:u))?v:p;y[T]||(y[T]={}),y[T][b]||(_[T]&&_[T][b]?(y[T][b]=_[T][b],y[T][b].total=null):y[T][b]=new t.StackItem(m,m.options.stackLabels,d,b,h)),T=y[T][b],null!==x?(T.points[S]=T.points[this.index]=[o(T.cumulative,c)],i(T.cumulative)||(T.base=S),T.touched=m.stacksTouched,0<w.index&&!1===this.singleStacks&&(T.points[S][0]=T.points[this.index+","+b+",0"][0])):T.points[S]=T.points[this.index]=null,"percent"===l?(d=d?p:v,g&&y[d]&&y[d][b]?(d=y[d][b],T.total=d.total=Math.max(d.total,T.total)+Math.abs(x)||0):T.total=a(T.total+(Math.abs(x)||0))):T.total=a(T.total+(x||0)),T.cumulative=o(T.cumulative,c)+(x||0),null!==x&&(T.points[S].push(T.cumulative),r[f]=T.cumulative)}"percent"===l&&(m.usePercentage=!0),this.stackedYData=r,m.oldStacks={}}},u.prototype.modifyStacks=function(){var t,e=this,i=e.stackKey,n=e.yAxis.stacks,r=e.processedXData,o=e.options.stacking;e[o+"Stacker"]&&[i,"-"+i].forEach(function(i){for(var s,a,l=r.length;l--;)s=r[l],t=e.getStackIndicator(t,s,e.index,i),(a=(s=n[i]&&n[i][s])&&s.points[t.key])&&e[o+"Stacker"](a,s,l)})},u.prototype.percentStacker=function(t,e,i){e=e.total?100/e.total:0,t[0]=a(t[0]*e),t[1]=a(t[1]*e),this.stackedYData[i]=t[1]},u.prototype.getStackIndicator=function(t,e,n,r){return!i(t)||t.x!==e||r&&t.key!==r?t={x:e,index:0,key:r}:t.index++,t.key=[n,e,t.index].join(),t}}),e(i,"parts/Dynamics.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.erase,r=e.extend,o=e.isArray,s=e.isNumber,a=e.isObject,l=e.isString,u=e.objectEach,c=e.pick,h=e.setAnimation,d=e.splat,f=t.addEvent,p=t.animate,v=t.Axis;e=t.Chart;var g=t.createElement,m=t.css,y=t.fireEvent,_=t.merge,b=t.Point,x=t.Series,w=t.seriesTypes;t.cleanRecursively=function(e,i){var n={};return u(e,function(r,o){a(e[o],!0)&&!e.nodeType&&i[o]?(r=t.cleanRecursively(e[o],i[o]),Object.keys(r).length&&(n[o]=r)):(a(e[o])||e[o]!==i[o])&&(n[o]=e[o])}),n},r(e.prototype,{addSeries:function(t,e,i){var n,r=this;return t&&(e=c(e,!0),y(r,"addSeries",{options:t},function(){n=r.initSeries(t),r.isDirtyLegend=!0,r.linkSeries(),y(r,"afterAddSeries",{series:n}),e&&r.redraw(i)})),n},addAxis:function(t,e,i,n){return this.createAxis(e?"xAxis":"yAxis",{axis:t,redraw:i,animation:n})},addColorAxis:function(t,e,i){return this.createAxis("colorAxis",{axis:t,redraw:e,animation:i})},createAxis:function(e,i){var n=this.options,r="colorAxis"===e,o=i.redraw,s=i.animation;i=_(i.axis,{index:this[e].length,isX:"xAxis"===e});var a=r?new t.ColorAxis(this,i):new v(this,i);return n[e]=d(n[e]||{}),n[e].push(i),r&&(this.isDirtyLegend=!0,this.axes.forEach(function(t){t.series=[]}),this.series.forEach(function(t){t.bindAxes(),t.isDirtyData=!0})),c(o,!0)&&this.redraw(s),a},showLoading:function(t){var e=this,i=e.options,n=e.loadingDiv,o=i.loading,s=function(){n&&m(n,{left:e.plotLeft+"px",top:e.plotTop+"px",width:e.plotWidth+"px",height:e.plotHeight+"px"})};n||(e.loadingDiv=n=g("div",{className:"highcharts-loading highcharts-loading-hidden"},null,e.container),e.loadingSpan=g("span",{className:"highcharts-loading-inner"},null,n),f(e,"redraw",s)),n.className="highcharts-loading",e.loadingSpan.innerHTML=c(t,i.lang.loading,""),e.styledMode||(m(n,r(o.style,{zIndex:10})),m(e.loadingSpan,o.labelStyle),e.loadingShown||(m(n,{opacity:0,display:""}),p(n,{opacity:o.style.opacity||.5},{duration:o.showDuration||0}))),e.loadingShown=!0,s()},hideLoading:function(){var t=this.options,e=this.loadingDiv;e&&(e.className="highcharts-loading highcharts-loading-hidden",this.styledMode||p(e,{opacity:0},{duration:t.loading.hideDuration||100,complete:function(){m(e,{display:"none"})}})),this.loadingShown=!1},propsRequireDirtyBox:"backgroundColor borderColor borderWidth borderRadius plotBackgroundColor plotBackgroundImage plotBorderColor plotBorderWidth plotShadow shadow".split(" "),propsRequireReflow:"margin marginTop marginRight marginBottom marginLeft spacing spacingTop spacingRight spacingBottom spacingLeft".split(" "),propsRequireUpdateSeries:"chart.inverted chart.polar chart.ignoreHiddenSeries chart.type colors plotOptions time tooltip".split(" "),collectionsWithUpdate:"xAxis yAxis zAxis colorAxis series pane".split(" "),update:function(e,n,r,o){var a,h,f,p=this,v={credits:"addCredits",title:"setTitle",subtitle:"setSubtitle",caption:"setCaption"},g=e.isResponsiveOptions,m=[];if(y(p,"update",{options:e}),g||p.setResponsive(!1,!0),e=t.cleanRecursively(e,p.options),_(!0,p.userOptions,e),a=e.chart){if(_(!0,p.options.chart,a),"className"in a&&p.setClassName(a.className),"reflow"in a&&p.setReflow(a.reflow),"inverted"in a||"polar"in a||"type"in a){p.propFromSeries();var b=!0}"alignTicks"in a&&(b=!0),u(a,function(t,e){-1!==p.propsRequireUpdateSeries.indexOf("chart."+e)&&(h=!0),-1!==p.propsRequireDirtyBox.indexOf(e)&&(p.isDirtyBox=!0),g||-1===p.propsRequireReflow.indexOf(e)||(f=!0)}),!p.styledMode&&"style"in a&&p.renderer.setStyle(a.style)}!p.styledMode&&e.colors&&(this.options.colors=e.colors),e.plotOptions&&_(!0,this.options.plotOptions,e.plotOptions),e.time&&this.time===t.time&&(this.time=new t.Time(e.time)),u(e,function(t,e){p[e]&&"function"==typeof p[e].update?p[e].update(t,!1):"function"==typeof p[v[e]]&&p[v[e]](t),"chart"!==e&&-1!==p.propsRequireUpdateSeries.indexOf(e)&&(h=!0)}),this.collectionsWithUpdate.forEach(function(t){if(e[t]){if("series"===t){var n=[];p[t].forEach(function(t,e){t.options.isInternal||n.push(c(t.options.index,e))})}d(e[t]).forEach(function(e,o){(o=i(e.id)&&p.get(e.id)||p[t][n?n[o]:o])&&o.coll===t&&(o.update(e,!1),r&&(o.touched=!0)),!o&&r&&p.collectionsWithInit[t]&&(p.collectionsWithInit[t][0].apply(p,[e].concat(p.collectionsWithInit[t][1]||[]).concat([!1])).touched=!0)}),r&&p[t].forEach(function(t){t.touched||t.options.isInternal?delete t.touched:m.push(t)})}}),m.forEach(function(t){t.remove&&t.remove(!1)}),b&&p.axes.forEach(function(t){t.update({},!1)}),h&&p.series.forEach(function(t){t.update({},!1)}),e.loading&&_(!0,p.options.loading,e.loading),b=a&&a.width,a=a&&a.height,l(a)&&(a=t.relativeLength(a,b||p.chartWidth)),f||s(b)&&b!==p.chartWidth||s(a)&&a!==p.chartHeight?p.setSize(b,a,o):c(n,!0)&&p.redraw(o),y(p,"afterUpdate",{options:e,redraw:n,animation:o})},setSubtitle:function(t,e){this.applyDescription("subtitle",t),this.layOutTitles(e)},setCaption:function(t,e){this.applyDescription("caption",t),this.layOutTitles(e)}}),e.prototype.collectionsWithInit={xAxis:[e.prototype.addAxis,[!0]],yAxis:[e.prototype.addAxis,[!1]],colorAxis:[e.prototype.addColorAxis,[!1]],series:[e.prototype.addSeries]},r(b.prototype,{update:function(t,e,i,n){function r(){s.applyOptions(t),null===s.y&&u&&(s.graphic=u.destroy()),a(t,!0)&&(u&&u.element&&t&&t.marker&&void 0!==t.marker.symbol&&(s.graphic=u.destroy()),t&&t.dataLabels&&s.dataLabel&&(s.dataLabel=s.dataLabel.destroy()),s.connector&&(s.connector=s.connector.destroy())),o=s.index,l.updateParallelArrays(s,o),d.data[o]=a(d.data[o],!0)||a(t,!0)?s.options:c(t,d.data[o]),l.isDirty=l.isDirtyData=!0,!l.fixedBox&&l.hasCartesianSeries&&(h.isDirtyBox=!0),"point"===d.legendType&&(h.isDirtyLegend=!0),e&&h.redraw(i)}var o,s=this,l=s.series,u=s.graphic,h=l.chart,d=l.options;e=c(e,!0),!1===n?r():s.firePointEvent("update",{options:t},r)},remove:function(t,e){this.series.removePoint(this.series.data.indexOf(this),t,e)}}),r(x.prototype,{addPoint:function(t,e,i,n,r){var o=this.options,s=this.data,a=this.chart,l=this.xAxis;l=l&&l.hasNames&&l.names;var u,h=o.data,d=this.xData;e=c(e,!0);var f={series:this};this.pointClass.prototype.applyOptions.apply(f,[t]);var p=f.x,v=d.length;if(this.requireSorting&&p<d[v-1])for(u=!0;v&&d[v-1]>p;)v--;this.updateParallelArrays(f,"splice",v,0,0),this.updateParallelArrays(f,v),l&&f.name&&(l[p]=f.name),h.splice(v,0,t),u&&(this.data.splice(v,0,null),this.processData()),"point"===o.legendType&&this.generatePoints(),i&&(s[0]&&s[0].remove?s[0].remove(!1):(s.shift(),this.updateParallelArrays(f,"shift"),h.shift())),!1!==r&&y(this,"addPoint",{point:f}),this.isDirtyData=this.isDirty=!0,e&&a.redraw(n)},removePoint:function(t,e,i){var n=this,r=n.data,o=r[t],s=n.points,a=n.chart,l=function(){s&&s.length===r.length&&s.splice(t,1),r.splice(t,1),n.options.data.splice(t,1),n.updateParallelArrays(o||{series:n},"splice",t,1),o&&o.destroy(),n.isDirty=!0,n.isDirtyData=!0,e&&a.redraw()};h(i,a),e=c(e,!0),o?o.firePointEvent("remove",null,l):l()},remove:function(t,e,i,n){function r(){o.destroy(n),o.remove=null,s.isDirtyLegend=s.isDirtyBox=!0,s.linkSeries(),c(t,!0)&&s.redraw(e)}var o=this,s=o.chart;!1!==i?y(o,"remove",null,r):r()},update:function(e,i){e=t.cleanRecursively(e,this.userOptions),y(this,"update",{options:e});var n,o=this,s=o.chart,a=o.userOptions,l=o.initialType||o.type,u=e.type||a.type||s.options.chart.type,h=!(this.hasDerivedData||e.dataGrouping||u&&u!==this.type||void 0!==e.pointStart||e.pointInterval||e.pointIntervalUnit||e.keys),d=w[l].prototype,f=["group","markerGroup","dataLabelsGroup","transformGroup"],p=["eventOptions","navigatorSeries","baseSeries"],v=o.finishedAnimating&&{animation:!1},g={};for(n in h&&(p.push("data","isDirtyData","points","processedXData","processedYData","xIncrement","_hasPointMarkers","_hasPointLabels","mapMap","mapData","minY","maxY","minX","maxX"),!1!==e.visible&&p.push("area","graph"),o.parallelArrays.forEach(function(t){p.push(t+"Data")}),e.data&&this.setData(e.data,!1)),e=_(a,v,{index:void 0===a.index?o.index:a.index,pointStart:c(a.pointStart,o.xData[0])},!h&&{data:o.options.data},e),h&&e.data&&(e.data=o.options.data),(p=f.concat(p)).forEach(function(t){p[t]=o[t],delete o[t]}),o.remove(!1,null,!1,!0),d)o[n]=void 0;if(w[u||l]?r(o,w[u||l].prototype):t.error(17,!0,s,{missingModuleFor:u||l}),p.forEach(function(t){o[t]=p[t]}),o.init(s,e),h&&this.points){var m=o.options;!1===m.visible?(g.graphic=1,g.dataLabel=1):o._hasPointLabels||(u=m.marker,d=m.dataLabels,u&&(!1===u.enabled||"symbol"in u)&&(g.graphic=1),d&&!1===d.enabled&&(g.dataLabel=1)),this.points.forEach(function(t){t&&t.series&&(t.resolveColor(),Object.keys(g).length&&t.destroyElements(g),!1===m.showInLegend&&t.legendItem&&s.legend.destroyItem(t))},this)}e.zIndex!==a.zIndex&&f.forEach(function(t){o[t]&&o[t].attr({zIndex:e.zIndex})}),o.initialType=l,s.linkSeries(),y(this,"afterUpdate"),c(i,!0)&&s.redraw(!!h&&void 0)},setName:function(t){this.name=this.options.name=this.userOptions.name=t,this.chart.isDirtyLegend=!0}}),r(v.prototype,{update:function(t,e){var i=this.chart,n=t&&t.events||{};t=_(this.userOptions,t),i.options[this.coll].indexOf&&(i.options[this.coll][i.options[this.coll].indexOf(this.userOptions)]=t),u(i.options[this.coll].events,function(t,e){void 0===n[e]&&(n[e]=void 0)}),this.destroy(!0),this.init(i,r(t,{events:n})),i.isDirtyBox=!0,c(e,!0)&&i.redraw()},remove:function(t){for(var e=this.chart,i=this.coll,r=this.series,s=r.length;s--;)r[s]&&r[s].remove(!1);n(e.axes,this),n(e[i],this),o(e.options[i])?e.options[i].splice(this.options.index,1):delete e.options[i],e[i].forEach(function(t,e){t.options.index=t.userOptions.index=e}),this.destroy(),e.isDirtyBox=!0,c(t,!0)&&e.redraw()},setTitle:function(t,e){this.update({title:t},e)},setCategories:function(t,e){this.update({categories:t},e)}})}),e(i,"parts/AreaSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.objectEach,n=e.pick,r=t.color,o=t.Series;(e=t.seriesType)("area","line",{softThreshold:!1,threshold:0},{singleStacks:!1,getStackPoints:function(t){var e,r=[],o=[],s=this.xAxis,a=this.yAxis,l=a.stacks[this.stackKey],u={},c=this.index,h=a.series,d=h.length,f=n(a.options.reversedStacks,!0)?1:-1;if(t=t||this.points,this.options.stacking){for(e=0;e<t.length;e++)t[e].leftNull=t[e].rightNull=void 0,u[t[e].x]=t[e];i(l,function(t,e){null!==t.total&&o.push(e)}),o.sort(function(t,e){return t-e});var p=h.map(function(t){return t.visible});o.forEach(function(t,i){var n,h,v=0;if(u[t]&&!u[t].isNull)r.push(u[t]),[-1,1].forEach(function(r){var s=1===r?"rightNull":"leftNull",a=0,v=l[o[i+r]];if(v)for(e=c;0<=e&&e<d;)(n=v.points[e])||(e===c?u[t][s]=!0:p[e]&&(h=l[t].points[e])&&(a-=h[1]-h[0])),e+=f;u[t][1===r?"rightCliff":"leftCliff"]=a});else{for(e=c;0<=e&&e<d;){if(n=l[t].points[e]){v=n[1];break}e+=f}v=a.translate(v,0,1,0,1),r.push({isNull:!0,plotX:s.translate(t,0,0,0,1),x:t,plotY:v,yBottom:v})}})}return r},getGraphPath:function(t){var e,i=o.prototype.getGraphPath,r=this.options,s=r.stacking,a=this.yAxis,l=[],u=[],c=this.index,h=a.stacks[this.stackKey],d=r.threshold,f=Math.round(a.getThreshold(r.threshold));r=n(r.connectNulls,"percent"===s);var p=function(e,i,n){var r=t[e];e=s&&h[r.x].points[c];var o=r[n+"Null"]||0;if(n=r[n+"Cliff"]||0,r=!0,n||o){var p=(o?e[0]:e[1])+n,v=e[0]+n;r=!!o}else!s&&t[i]&&t[i].isNull&&(p=v=d);void 0!==p&&(u.push({plotX:g,plotY:null===p?f:a.getThreshold(p),isNull:r,isCliff:!0}),l.push({plotX:g,plotY:null===v?f:a.getThreshold(v),doCurve:!1}))};for(t=t||this.points,s&&(t=this.getStackPoints(t)),e=0;e<t.length;e++){s||(t[e].leftCliff=t[e].rightCliff=t[e].leftNull=t[e].rightNull=void 0);var v=t[e].isNull,g=n(t[e].rectPlotX,t[e].plotX),m=n(t[e].yBottom,f);v&&!r||(r||p(e,e-1,"left"),v&&!s&&r||(u.push(t[e]),l.push({x:e,plotX:g,plotY:m})),r||p(e,e+1,"right"))}return e=i.call(this,u,!0,!0),l.reversed=!0,(v=i.call(this,l,!0,!0)).length&&(v[0]="L"),v=e.concat(v),i=i.call(this,u,!1,r),v.xMap=e.xMap,this.areaPath=v,i},drawGraph:function(){this.areaPath=[],o.prototype.drawGraph.apply(this);var t=this,e=this.areaPath,i=this.options,s=[["area","highcharts-area",this.color,i.fillColor]];this.zones.forEach(function(e,n){s.push(["zone-area-"+n,"highcharts-area highcharts-zone-area-"+n+" "+e.className,e.color||t.color,e.fillColor||i.fillColor])}),s.forEach(function(o){var s=o[0],a=t[s],l=a?"animate":"attr",u={};a?(a.endX=t.preventGraphAnimation?null:e.xMap,a.animate({d:e})):(u.zIndex=0,(a=t[s]=t.chart.renderer.path(e).addClass(o[1]).add(t.group)).isArea=!0),t.chart.styledMode||(u.fill=n(o[3],r(o[2]).setOpacity(n(i.fillOpacity,.75)).get())),a[l](u),a.startX=e.xMap,a.shiftUnit=i.step?2:1})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}),e(i,"parts/SplineSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.pick;(t=t.seriesType)("spline","line",{},{getPointSpline:function(t,e,n){var r=e.plotX,o=e.plotY,s=t[n-1];if(n=t[n+1],s&&!s.isNull&&!1!==s.doCurve&&!e.isCliff&&n&&!n.isNull&&!1!==n.doCurve&&!e.isCliff){t=s.plotY;var a=n.plotX;n=n.plotY;var l=0,u=(1.5*r+s.plotX)/2.5,c=(1.5*o+t)/2.5,h=(1.5*o+n)/2.5;(a=(1.5*r+a)/2.5)!==u&&(l=(h-c)*(a-r)/(a-u)+o-h),h+=l,(c+=l)>t&&c>o?h=2*o-(c=Math.max(t,o)):c<t&&c<o&&(h=2*o-(c=Math.min(t,o))),h>n&&h>o?c=2*o-(h=Math.max(n,o)):h<n&&h<o&&(c=2*o-(h=Math.min(n,o))),e.rightContX=a,e.rightContY=h}return e=["C",i(s.rightContX,s.plotX),i(s.rightContY,s.plotY),i(u,r),i(c,o),r,o],s.rightContX=s.rightContY=null,e}})}),e(i,"parts/AreaSplineSeries.js",[i["parts/Globals.js"]],function(t){var e=t.seriesTypes.area.prototype;(0,t.seriesType)("areaspline","spline",t.defaultPlotOptions.area,{getStackPoints:e.getStackPoints,getGraphPath:e.getGraphPath,drawGraph:e.drawGraph,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle})}),e(i,"parts/ColumnSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.extend,r=e.isNumber,o=e.pick,s=t.animObject,a=t.color,l=t.merge,u=t.Series;e=t.seriesType;var c=t.svg;e("column","line",{borderRadius:0,crisp:!0,groupPadding:.2,marker:null,pointPadding:.1,minPointLength:0,cropThreshold:50,pointRange:null,states:{hover:{halo:!1,brightness:.1},select:{color:"#cccccc",borderColor:"#000000"}},dataLabels:{align:null,verticalAlign:null,y:null},softThreshold:!1,startFromThreshold:!0,stickyTracking:!1,tooltip:{distance:6},threshold:0,borderColor:"#ffffff"},{cropShoulder:0,directTouch:!0,trackerGroups:["group","dataLabelsGroup"],negStacks:!0,init:function(){u.prototype.init.apply(this,arguments);var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)})},getColumnMetrics:function(){var t=this,e=t.options,i=t.xAxis,n=t.yAxis,r=i.options.reversedStacks;r=i.reversed&&!r||!i.reversed&&r;var s,a={},l=0;!1===e.grouping?l=1:t.chart.series.forEach(function(e){var i=e.yAxis,r=e.options;if(e.type===t.type&&(e.visible||!t.chart.options.chart.ignoreHiddenSeries)&&n.len===i.len&&n.pos===i.pos){if(r.stacking){s=e.stackKey,void 0===a[s]&&(a[s]=l++);var o=a[s]}else!1!==r.grouping&&(o=l++);e.columnIndex=o}});var u=Math.min(Math.abs(i.transA)*(i.ordinalSlope||e.pointRange||i.closestPointRange||i.tickInterval||1),i.len),c=u*e.groupPadding,h=(u-2*c)/(l||1);return e=Math.min(e.maxPointWidth||i.len,o(e.pointWidth,h*(1-2*e.pointPadding))),t.columnMetrics={width:e,offset:(h-e)/2+(c+((t.columnIndex||0)+(r?1:0))*h-u/2)*(r?-1:1)},t.columnMetrics},crispCol:function(t,e,i,n){var r=this.chart,o=this.borderWidth,s=-(o%2?.5:0);return o=o%2?.5:1,r.inverted&&r.renderer.isVML&&(o+=1),this.options.crisp&&(i=Math.round(t+i)+s,i-=t=Math.round(t)+s),n=Math.round(e+n)+o,s=.5>=Math.abs(e)&&.5<n,n-=e=Math.round(e)+o,s&&n&&(--e,n+=1),{x:t,y:e,width:i,height:n}},translate:function(){var t=this,e=t.chart,n=t.options,r=t.dense=2>t.closestPointRange*t.xAxis.transA;r=t.borderWidth=o(n.borderWidth,r?0:1);var s=t.yAxis,a=n.threshold,l=t.translatedThreshold=s.getThreshold(a),c=o(n.minPointLength,5),h=t.getColumnMetrics(),d=h.width,f=t.barW=Math.max(d,1+2*r),p=t.pointXOffset=h.offset,v=t.dataMin,g=t.dataMax;e.inverted&&(l-=.5),n.pointPadding&&(f=Math.ceil(f)),u.prototype.translate.apply(t),t.points.forEach(function(n){var r=o(n.yBottom,l),u=999+Math.abs(r),h=d;u=Math.min(Math.max(-u,n.plotY),s.len+u);var m=n.plotX+p,y=f,_=Math.min(u,r),b=Math.max(u,r)-_;if(c&&Math.abs(b)<c){b=c;var x=!s.reversed&&!n.negative||s.reversed&&n.negative;n.y===a&&t.dataMax<=a&&s.min<a&&v!==g&&(x=!x),_=Math.abs(_-l)>c?r-c:l-(x?c:0)}i(n.options.pointWidth)&&(h=y=Math.ceil(n.options.pointWidth),m-=Math.round((h-d)/2)),n.barX=m,n.pointWidth=h,n.tooltipPos=e.inverted?[s.len+s.pos-e.plotLeft-u,t.xAxis.len-m-y/2,b]:[m+y/2,u+s.pos-e.plotTop,b],n.shapeType=t.pointClass.prototype.shapeType||"rect",n.shapeArgs=t.crispCol.apply(t,n.isNull?[m,l,y,0]:[m,_,y,b])})},getSymbol:t.noop,drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,drawGraph:function(){this.group[this.dense?"addClass":"removeClass"]("highcharts-dense-data")},pointAttribs:function(t,e){var i=this.options,n=this.pointAttrToOptions||{},r=n.stroke||"borderColor",s=n["stroke-width"]||"borderWidth",u=t&&t.color||this.color,c=t&&t[r]||i[r]||this.color||u,h=t&&t[s]||i[s]||this[s]||0;n=t&&t.options.dashStyle||i.dashStyle;var d=o(i.opacity,1);if(t&&this.zones.length){var f=t.getZone();u=t.options.color||f&&(f.color||t.nonZonedColor)||this.color,f&&(c=f.borderColor||c,n=f.dashStyle||n,h=f.borderWidth||h)}return e&&(e=(t=l(i.states[e],t.options.states&&t.options.states[e]||{})).brightness,u=t.color||void 0!==e&&a(u).brighten(t.brightness).get()||u,c=t[r]||c,h=t[s]||h,n=t.dashStyle||n,d=o(t.opacity,d)),r={fill:u,stroke:c,"stroke-width":h,opacity:d},n&&(r.dashstyle=n),r},drawPoints:function(){var t,e=this,i=this.chart,n=e.options,o=i.renderer,s=n.animationLimit||250;e.points.forEach(function(a){var u=a.graphic,c=u&&i.pointCount<s?"animate":"attr";r(a.plotY)&&null!==a.y?(t=a.shapeArgs,u&&a.hasNewShapeType()&&(u=u.destroy()),u?u[c](l(t)):a.graphic=u=o[a.shapeType](t).add(a.group||e.group),n.borderRadius&&u[c]({r:n.borderRadius}),i.styledMode||u[c](e.pointAttribs(a,a.selected&&"select")).shadow(!1!==a.allowShadow&&n.shadow,null,n.stacking&&!n.borderRadius),u.addClass(a.getClassName(),!0)):u&&(a.graphic=u.destroy())})},animate:function(t){var e=this,i=this.yAxis,r=e.options,o=this.chart.inverted,a={},l=o?"translateX":"translateY";if(c)if(t)a.scaleY=.001,t=Math.min(i.pos+i.len,Math.max(i.pos,i.toPixels(r.threshold))),o?a.translateX=t-i.len:a.translateY=t,e.clipBox&&e.setClip(),e.group.attr(a);else{var u=e.group.attr(l);e.group.animate({scaleY:1},n(s(e.options.animation),{step:function(t,n){a[l]=u+n.pos*(i.pos-u),e.group.attr(a)}})),e.animate=null}},remove:function(){var t=this,e=t.chart;e.hasRendered&&e.series.forEach(function(e){e.type===t.type&&(e.isDirty=!0)}),u.prototype.remove.apply(t,arguments)}})}),e(i,"parts/BarSeries.js",[i["parts/Globals.js"]],function(t){(t=t.seriesType)("bar","column",null,{inverted:!0})}),e(i,"parts/ScatterSeries.js",[i["parts/Globals.js"]],function(t){var e=t.Series;(0,t.seriesType)("scatter","line",{lineWidth:0,findNearestPointBy:"xy",jitter:{x:0,y:0},marker:{enabled:!0},tooltip:{headerFormat:'<span style="color:{point.color}">●</span> <span style="font-size: 10px"> {series.name}</span><br/>',pointFormat:"x: <b>{point.x}</b><br/>y: <b>{point.y}</b><br/>"}},{sorted:!1,requireSorting:!1,noSharedTooltip:!0,trackerGroups:["group","markerGroup","dataLabelsGroup"],takeOrdinalPosition:!1,drawGraph:function(){this.options.lineWidth&&e.prototype.drawGraph.call(this)},applyJitter:function(){var t=this,e=this.options.jitter,i=this.points.length;e&&this.points.forEach(function(n,r){["x","y"].forEach(function(o,s){var a="plot"+o.toUpperCase();if(e[o]&&!n.isNull){var l=t[o+"Axis"],u=e[o]*l.transA;if(l&&!l.isLog){var c=Math.max(0,n[a]-u);l=Math.min(l.len,n[a]+u),s=1e4*Math.sin(r+s*i),n[a]=c+(l-c)*(s-Math.floor(s)),"x"===o&&(n.clientX=n.plotX)}}})})}}),t.addEvent(e,"afterTranslate",function(){this.applyJitter&&this.applyJitter()})}),e(i,"mixins/centered-series.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.isNumber,n=e.pick,r=t.deg2rad,o=t.relativeLength;t.CenteredSeriesMixin={getCenter:function(){var t=this.options,e=this.chart,i=2*(t.slicedOffset||0),r=e.plotWidth-2*i;e=e.plotHeight-2*i;var s=t.center;s=[n(s[0],"50%"),n(s[1],"50%"),t.size||"100%",t.innerSize||0];var a,l=Math.min(r,e);for(a=0;4>a;++a){var u=s[a];t=2>a||2===a&&/%$/.test(u),s[a]=o(u,[r,e,l,s[2]][a])+(t?i:0)}return s[3]>s[2]&&(s[3]=s[2]),s},getStartAndEndRadians:function(t,e){return t=i(t)?t:0,e=i(e)&&e>t&&360>e-t?e:t+360,{start:r*(t+-90),end:r*(e+-90)}}}}),e(i,"parts/PieSeries.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.isNumber,r=e.pick,o=e.setAnimation,s=t.addEvent,a=(e=t.CenteredSeriesMixin).getStartAndEndRadians,l=t.merge,u=t.noop,c=t.Point,h=t.Series,d=t.seriesType,f=t.fireEvent;d("pie","line",{center:[null,null],clip:!1,colorByPoint:!0,dataLabels:{allowOverlap:!0,connectorPadding:5,distance:30,enabled:!0,formatter:function(){return this.point.isNull?void 0:this.point.name},softConnector:!0,x:0,connectorShape:"fixedOffset",crookDistance:"70%"},fillColor:void 0,ignoreHiddenPoint:!0,inactiveOtherPoints:!0,legendType:"point",marker:null,size:null,showInLegend:!1,slicedOffset:10,stickyTracking:!1,tooltip:{followPointer:!0},borderColor:"#ffffff",borderWidth:1,lineWidth:void 0,states:{hover:{brightness:.1}}},{isCartesian:!1,requireSorting:!1,directTouch:!0,noSharedTooltip:!0,trackerGroups:["group","dataLabelsGroup"],axisTypes:[],pointAttribs:t.seriesTypes.column.prototype.pointAttribs,animate:function(t){var e=this,i=e.points,n=e.startAngleRad;t||(i.forEach(function(t){var i=t.graphic,r=t.shapeArgs;i&&(i.attr({r:t.startR||e.center[3]/2,start:n,end:n}),i.animate({r:r.r,start:r.start,end:r.end},e.options.animation))}),e.animate=null)},hasData:function(){return!!this.processedXData.length},updateTotals:function(){var t,e=0,i=this.points,n=i.length,r=this.options.ignoreHiddenPoint;for(t=0;t<n;t++){var o=i[t];e+=r&&!o.visible?0:o.isNull?0:o.y}for(this.total=e,t=0;t<n;t++)(o=i[t]).percentage=0<e&&(o.visible||!r)?o.y/e*100:0,o.total=e},generatePoints:function(){h.prototype.generatePoints.call(this),this.updateTotals()},getX:function(t,e,i){var n=this.center,r=this.radii?this.radii[i.index]:n[2]/2;return n[0]+(e?-1:1)*Math.cos(Math.asin(Math.max(Math.min((t-n[1])/(r+i.labelDistance),1),-1)))*(r+i.labelDistance)+(0<i.labelDistance?(e?-1:1)*this.options.dataLabels.padding:0)},translate:function(e){this.generatePoints();var i=0,n=this.options,o=n.slicedOffset,s=o+(n.borderWidth||0),l=a(n.startAngle,n.endAngle),u=this.startAngleRad=l.start;l=(this.endAngleRad=l.end)-u;var c=this.points,h=n.dataLabels.distance;n=n.ignoreHiddenPoint;var d,p=c.length;for(e||(this.center=e=this.getCenter()),d=0;d<p;d++){var v=c[d],g=u+i*l;n&&!v.visible||(i+=v.percentage/100);var m=u+i*l;v.shapeType="arc",v.shapeArgs={x:e[0],y:e[1],r:e[2]/2,innerR:e[3]/2,start:Math.round(1e3*g)/1e3,end:Math.round(1e3*m)/1e3},v.labelDistance=r(v.options.dataLabels&&v.options.dataLabels.distance,h),v.labelDistance=t.relativeLength(v.labelDistance,v.shapeArgs.r),this.maxLabelDistance=Math.max(this.maxLabelDistance||0,v.labelDistance),(m=(m+g)/2)>1.5*Math.PI?m-=2*Math.PI:m<-Math.PI/2&&(m+=2*Math.PI),v.slicedTranslation={translateX:Math.round(Math.cos(m)*o),translateY:Math.round(Math.sin(m)*o)};var y=Math.cos(m)*e[2]/2,_=Math.sin(m)*e[2]/2;v.tooltipPos=[e[0]+.7*y,e[1]+.7*_],v.half=m<-Math.PI/2||m>Math.PI/2?1:0,v.angle=m,g=Math.min(s,v.labelDistance/5),v.labelPosition={natural:{x:e[0]+y+Math.cos(m)*v.labelDistance,y:e[1]+_+Math.sin(m)*v.labelDistance},final:{},alignment:0>v.labelDistance?"center":v.half?"right":"left",connectorPosition:{breakAt:{x:e[0]+y+Math.cos(m)*g,y:e[1]+_+Math.sin(m)*g},touchingSliceAt:{x:e[0]+y,y:e[1]+_}}}}f(this,"afterTranslate")},drawEmpty:function(){var t=this.options;if(0===this.total){var e=this.center[0],i=this.center[1];this.graph||(this.graph=this.chart.renderer.circle(e,i,0).addClass("highcharts-graph").add(this.group)),this.graph.animate({"stroke-width":t.borderWidth,cx:e,cy:i,r:this.center[2]/2,fill:t.fillColor||"none",stroke:t.color||"#cccccc"})}else this.graph&&(this.graph=this.graph.destroy())},redrawPoints:function(){var t,e,i,n,r=this,o=r.chart,s=o.renderer,a=r.options.shadow;this.drawEmpty(),!a||r.shadowGroup||o.styledMode||(r.shadowGroup=s.g("shadow").attr({zIndex:-1}).add(r.group)),r.points.forEach(function(u){var c={};if(e=u.graphic,!u.isNull&&e){if(n=u.shapeArgs,t=u.getTranslate(),!o.styledMode){var h=u.shadowGroup;a&&!h&&(h=u.shadowGroup=s.g("shadow").add(r.shadowGroup)),h&&h.attr(t),i=r.pointAttribs(u,u.selected&&"select")}u.delayedRendering?(e.setRadialReference(r.center).attr(n).attr(t),o.styledMode||e.attr(i).attr({"stroke-linejoin":"round"}).shadow(a,h),u.delayedRendering=!1):(e.setRadialReference(r.center),o.styledMode||l(!0,c,i),l(!0,c,n,t),e.animate(c)),e.attr({visibility:u.visible?"inherit":"hidden"}),e.addClass(u.getClassName())}else e&&(u.graphic=e.destroy())})},drawPoints:function(){var t=this.chart.renderer;this.points.forEach(function(e){e.graphic||(e.graphic=t[e.shapeType](e.shapeArgs).add(e.series.group),e.delayedRendering=!0)})},searchPoint:u,sortByAngle:function(t,e){t.sort(function(t,i){return void 0!==t.angle&&(i.angle-t.angle)*e})},drawLegendSymbol:t.LegendSymbolMixin.drawRectangle,getCenter:e.getCenter,getSymbol:u,drawGraph:null},{init:function(){c.prototype.init.apply(this,arguments);var t=this;t.name=r(t.name,"Slice");var e=function(e){t.slice("select"===e.type)};return s(t,"select",e),s(t,"unselect",e),t},isValid:function(){return n(this.y)&&0<=this.y},setVisible:function(t,e){var i=this,n=i.series,o=n.chart,s=n.options.ignoreHiddenPoint;e=r(e,s),t!==i.visible&&(i.visible=i.options.visible=t=void 0===t?!i.visible:t,n.options.data[n.data.indexOf(i)]=i.options,["graphic","dataLabel","connector","shadowGroup"].forEach(function(e){i[e]&&i[e][t?"show":"hide"](!0)}),i.legendItem&&o.legend.colorizeItem(i,t),t||"hover"!==i.state||i.setState(""),s&&(n.isDirty=!0),e&&o.redraw())},slice:function(t,e,n){var s=this.series;o(n,s.chart),r(e,!0),this.sliced=this.options.sliced=i(t)?t:!this.sliced,s.options.data[s.data.indexOf(this)]=this.options,this.graphic.animate(this.getTranslate()),this.shadowGroup&&this.shadowGroup.animate(this.getTranslate())},getTranslate:function(){return this.sliced?this.slicedTranslation:{translateX:0,translateY:0}},haloPath:function(t){var e=this.shapeArgs;return this.sliced||!this.visible?[]:this.series.chart.renderer.symbols.arc(e.x,e.y,e.r+t,e.r+t,{innerR:e.r-1,start:e.start,end:e.end})},connectorShapes:{fixedOffset:function(t,e,i){var n=e.breakAt;return e=e.touchingSliceAt,["M",t.x,t.y].concat(i.softConnector?["C",t.x+("left"===t.alignment?-5:5),t.y,2*n.x-e.x,2*n.y-e.y,n.x,n.y]:["L",n.x,n.y]).concat(["L",e.x,e.y])},straight:function(t,e){return e=e.touchingSliceAt,["M",t.x,t.y,"L",e.x,e.y]},crookedLine:function(e,i,n){i=i.touchingSliceAt;var r=this.series,o=r.center[0],s=r.chart.plotWidth,a=r.chart.plotLeft;r=e.alignment;var l=this.shapeArgs.r;return n=t.relativeLength(n.crookDistance,1),o=["L",n="left"===r?o+l+(s+a-o-l)*(1-n):a+(o-l)*n,e.y],("left"===r?n>e.x||n<i.x:n<e.x||n>i.x)&&(o=[]),["M",e.x,e.y].concat(o).concat(["L",i.x,i.y])}},getConnectorPath:function(){var t=this.labelPosition,e=this.series.options.dataLabels,i=e.connectorShape,n=this.connectorShapes;return n[i]&&(i=n[i]),i.call(this,{x:t.final.x,y:t.final.y,alignment:t.alignment},t.connectorPosition,e)}})}),e(i,"parts/DataLabels.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.arrayMax,n=e.defined,r=e.extend,o=e.isArray,s=e.objectEach,a=e.pick,l=e.splat,u=t.format,c=t.merge;e=t.noop;var h=t.relativeLength,d=t.Series,f=t.seriesTypes,p=t.stableSort;t.distribute=function(e,i,n){function r(t,e){return t.target-e.target}var o,s=!0,l=e,u=[],c=0,h=l.reducedLen||i;for(o=e.length;o--;)c+=e[o].size;if(c>h){for(p(e,function(t,e){return(e.rank||0)-(t.rank||0)}),c=o=0;c<=h;)c+=e[o].size,o++;u=e.splice(o-1,e.length)}for(p(e,r),e=e.map(function(t){return{size:t.size,targets:[t.target],align:a(t.align,.5)}});s;){for(o=e.length;o--;)s=e[o],c=(Math.min.apply(0,s.targets)+Math.max.apply(0,s.targets))/2,s.pos=Math.min(Math.max(0,c-s.size*s.align),i-s.size);for(o=e.length,s=!1;o--;)0<o&&e[o-1].pos+e[o-1].size>e[o].pos&&(e[o-1].size+=e[o].size,e[o-1].targets=e[o-1].targets.concat(e[o].targets),e[o-1].align=.5,e[o-1].pos+e[o-1].size>i&&(e[o-1].pos=i-e[o-1].size),e.splice(o,1),s=!0)}l.push.apply(l,u),o=0,e.some(function(e){var r=0;if(e.targets.some(function(){if(l[o].pos=e.pos+r,Math.abs(l[o].pos-l[o].target)>n)return l.slice(0,o+1).forEach(function(t){delete t.pos}),l.reducedLen=(l.reducedLen||i)-.1*i,l.reducedLen>.1*i&&t.distribute(l,i,n),!0;r+=l[o].size,o++}))return!0}),p(l,r)},d.prototype.drawDataLabels=function(){function e(t,e){var i,n=[];if(o(t)&&!o(e))n=t.map(function(t){return c(t,e)});else if(o(e)&&!o(t))n=e.map(function(e){return c(t,e)});else if(o(t)||o(e))for(i=Math.max(t.length,e.length);i--;)n[i]=c(t[i],e[i]);else n=c(t,e);return n}var i=this,r=i.chart,h=i.options,d=h.dataLabels,f=i.points,p=i.hasRendered||0,v=t.animObject(h.animation).duration,g=Math.min(v,200),m=!r.renderer.forExport&&a(d.defer,0<g),y=r.renderer;if(d=e(e(r.options.plotOptions&&r.options.plotOptions.series&&r.options.plotOptions.series.dataLabels,r.options.plotOptions&&r.options.plotOptions[i.type]&&r.options.plotOptions[i.type].dataLabels),d),t.fireEvent(this,"drawDataLabels"),o(d)||d.enabled||i._hasPointLabels){var _=i.plotGroup("dataLabelsGroup","data-labels",m&&!p?"hidden":"inherit",d.zIndex||6);m&&(_.attr({opacity:+p}),p||setTimeout(function(){var t=i.dataLabelsGroup;t&&(i.visible&&_.show(!0),t[h.animation?"animate":"attr"]({opacity:1},{duration:g}))},v-g)),f.forEach(function(t){l(e(d,t.dlOptions||t.options&&t.options.dataLabels)).forEach(function(e,o){var l=e.enabled&&(!t.isNull||t.dataLabelOnNull)&&function(t,e){var i=e.filter;return!i||(e=i.operator,t=t[i.property],i=i.value,">"===e&&t>i||"<"===e&&t<i||">="===e&&t>=i||"<="===e&&t<=i||"=="===e&&t==i||"==="===e&&t===i)}(t,e),c=t.dataLabels?t.dataLabels[o]:t.dataLabel,d=t.connectors?t.connectors[o]:t.connector,f=a(e.distance,t.labelDistance),p=!c;if(l){var v=t.getLabelConfig(),g=a(e[t.formatPrefix+"Format"],e.format);v=n(g)?u(g,v,r.time):(e[t.formatPrefix+"Formatter"]||e.formatter).call(v,e),g=e.style;var m=e.rotation;r.styledMode||(g.color=a(e.color,g.color,i.color,"#000000"),"contrast"===g.color&&(t.contrastColor=y.getContrast(t.color||i.color),g.color=!n(f)&&e.inside||0>f||h.stacking?t.contrastColor:"#000000"),h.cursor&&(g.cursor=h.cursor));var b={r:e.borderRadius||0,rotation:m,padding:e.padding,zIndex:1};r.styledMode||(b.fill=e.backgroundColor,b.stroke=e.borderColor,b["stroke-width"]=e.borderWidth),s(b,function(t,e){void 0===t&&delete b[e]})}!c||l&&n(v)?l&&n(v)&&(c?b.text=v:(t.dataLabels=t.dataLabels||[],c=t.dataLabels[o]=m?y.text(v,0,-9999).addClass("highcharts-data-label"):y.label(v,0,-9999,e.shape,null,null,e.useHTML,null,"data-label"),o||(t.dataLabel=c),c.addClass(" highcharts-data-label-color-"+t.colorIndex+" "+(e.className||"")+(e.useHTML?" highcharts-tracker":""))),c.options=e,c.attr(b),r.styledMode||c.css(g).shadow(e.shadow),c.added||c.add(_),e.textPath&&!e.useHTML&&c.setTextPath(t.getDataLabelPath&&t.getDataLabelPath(c)||t.graphic,e.textPath),i.alignDataLabel(t,c,e,null,p)):(t.dataLabel=t.dataLabel&&t.dataLabel.destroy(),t.dataLabels&&(1===t.dataLabels.length?delete t.dataLabels:delete t.dataLabels[o]),o||delete t.dataLabel,d&&(t.connector=t.connector.destroy(),t.connectors&&(1===t.connectors.length?delete t.connectors:delete t.connectors[o])))})})}t.fireEvent(this,"afterDrawDataLabels")},d.prototype.alignDataLabel=function(t,e,i,n,o){var s=this.chart,l=this.isCartesian&&s.inverted,u=a(t.dlBox&&t.dlBox.centerX,t.plotX,-9999),c=a(t.plotY,-9999),h=e.getBBox(),d=i.rotation,f=i.align,p=this.visible&&(t.series.forceDL||s.isInsidePlot(u,Math.round(c),l)||n&&s.isInsidePlot(u,l?n.x+1:n.y+n.height-1,l)),v="justify"===a(i.overflow,"justify");if(p){var g=s.renderer.fontMetrics(s.styledMode?void 0:i.style.fontSize,e).b;n=r({x:l?this.yAxis.len-c:u,y:Math.round(l?this.xAxis.len-u:c),width:0,height:0},n),r(i,{width:h.width,height:h.height}),d?(v=!1,u=s.renderer.rotCorr(g,d),u={x:n.x+i.x+n.width/2+u.x,y:n.y+i.y+{top:0,middle:.5,bottom:1}[i.verticalAlign]*n.height},e[o?"attr":"animate"](u).attr({align:f}),c=180<(c=(d+720)%360)&&360>c,"left"===f?u.y-=c?h.height:0:"center"===f?(u.x-=h.width/2,u.y-=h.height/2):"right"===f&&(u.x-=h.width,u.y-=c?0:h.height),e.placed=!0,e.alignAttr=u):(e.align(i,null,n),u=e.alignAttr),v&&0<=n.height?this.justifyDataLabel(e,i,u,h,n,o):a(i.crop,!0)&&(p=s.isInsidePlot(u.x,u.y)&&s.isInsidePlot(u.x+h.width,u.y+h.height)),i.shape&&!d&&e[o?"attr":"animate"]({anchorX:l?s.plotWidth-t.plotY:t.plotX,anchorY:l?s.plotHeight-t.plotX:t.plotY})}p||(e.hide(!0),e.placed=!1)},d.prototype.justifyDataLabel=function(t,e,i,n,r,o){var s=this.chart,a=e.align,l=e.verticalAlign,u=t.box?0:t.padding||0,c=i.x+u;if(0>c){"right"===a?(e.align="left",e.inside=!0):e.x=-c;var h=!0}return(c=i.x+n.width-u)>s.plotWidth&&("left"===a?(e.align="right",e.inside=!0):e.x=s.plotWidth-c,h=!0),0>(c=i.y+u)&&("bottom"===l?(e.verticalAlign="top",e.inside=!0):e.y=-c,h=!0),(c=i.y+n.height-u)>s.plotHeight&&("top"===l?(e.verticalAlign="bottom",e.inside=!0):e.y=s.plotHeight-c,h=!0),h&&(t.placed=!o,t.align(e,null,r)),h},f.pie&&(f.pie.prototype.dataLabelPositioners={radialDistributionY:function(t){return t.top+t.distributeBox.pos},radialDistributionX:function(t,e,i,n){return t.getX(i<e.top+2||i>e.bottom-2?n:i,e.half,e)},justify:function(t,e,i){return i[0]+(t.half?-1:1)*(e+t.labelDistance)},alignToPlotEdges:function(t,e,i,n){return t=t.getBBox().width,e?t+n:i-t-n},alignToConnectors:function(t,e,i,n){var r,o=0;return t.forEach(function(t){(r=t.dataLabel.getBBox().width)>o&&(o=r)}),e?o+n:i-o-n}},f.pie.prototype.drawDataLabels=function(){var e,r,o,s,l,u,h,f,p,v,g,m,y=this,_=y.data,b=y.chart,x=y.options.dataLabels,w=x.connectorPadding,S=b.plotWidth,T=b.plotHeight,E=b.plotLeft,C=Math.round(b.chartWidth/3),O=y.center,M=O[2]/2,P=O[1],k=[[],[]],I=[0,0,0,0],L=y.dataLabelPositioners;y.visible&&(x.enabled||y._hasPointLabels)&&(_.forEach(function(t){t.dataLabel&&t.visible&&t.dataLabel.shortened&&(t.dataLabel.attr({width:"auto"}).css({width:"auto",textOverflow:"clip"}),t.dataLabel.shortened=!1)}),d.prototype.drawDataLabels.apply(y),_.forEach(function(t){t.dataLabel&&(t.visible?(k[t.half].push(t),t.dataLabel._pos=null,!n(x.style.width)&&!n(t.options.dataLabels&&t.options.dataLabels.style&&t.options.dataLabels.style.width)&&t.dataLabel.getBBox().width>C&&(t.dataLabel.css({width:.7*C}),t.dataLabel.shortened=!0)):(t.dataLabel=t.dataLabel.destroy(),t.dataLabels&&1===t.dataLabels.length&&delete t.dataLabels))}),k.forEach(function(i,r){var o,c=i.length,d=[];if(c){if(y.sortByAngle(i,r-.5),0<y.maxLabelDistance){var m=Math.max(0,P-M-y.maxLabelDistance),_=Math.min(P+M+y.maxLabelDistance,b.plotHeight);i.forEach(function(t){0<t.labelDistance&&t.dataLabel&&(t.top=Math.max(0,P-M-t.labelDistance),t.bottom=Math.min(P+M+t.labelDistance,b.plotHeight),o=t.dataLabel.getBBox().height||21,t.distributeBox={target:t.labelPosition.natural.y-t.top+o/2,size:o,rank:t.y},d.push(t.distributeBox))}),m=_+o-m,t.distribute(d,m,m/5)}for(g=0;g<c;g++){if(e=i[g],u=e.labelPosition,s=e.dataLabel,v=!1===e.visible?"hidden":"inherit",p=m=u.natural.y,d&&n(e.distributeBox)&&(void 0===e.distributeBox.pos?v="hidden":(h=e.distributeBox.size,p=L.radialDistributionY(e))),delete e.positionIndex,x.justify)f=L.justify(e,M,O);else switch(x.alignTo){case"connectors":f=L.alignToConnectors(i,r,S,E);break;case"plotEdges":f=L.alignToPlotEdges(s,r,S,E);break;default:f=L.radialDistributionX(y,e,p,m)}s._attr={visibility:v,align:u.alignment},s._pos={x:f+x.x+({left:w,right:-w}[u.alignment]||0),y:p+x.y-10},u.final.x=f,u.final.y=p,a(x.crop,!0)&&(l=s.getBBox().width,m=null,f-l<w&&1===r?(m=Math.round(l-f+w),I[3]=Math.max(m,I[3])):f+l>S-w&&0===r&&(m=Math.round(f+l-S+w),I[1]=Math.max(m,I[1])),0>p-h/2?I[0]=Math.max(Math.round(h/2-p),I[0]):p+h/2>T&&(I[2]=Math.max(Math.round(p+h/2-T),I[2])),s.sideOverflow=m)}}}),0===i(I)||this.verifyDataLabelOverflow(I))&&(this.placeDataLabels(),this.points.forEach(function(t){var e;(m=c(x,t.options.dataLabels),r=a(m.connectorWidth,1))&&(o=t.connector,(s=t.dataLabel)&&s._pos&&t.visible&&0<t.labelDistance?(v=s._attr.visibility,(e=!o)&&(t.connector=o=b.renderer.path().addClass("highcharts-data-label-connector  highcharts-color-"+t.colorIndex+(t.className?" "+t.className:"")).add(y.dataLabelsGroup),b.styledMode||o.attr({"stroke-width":r,stroke:m.connectorColor||t.color||"#666666"})),o[e?"attr":"animate"]({d:t.getConnectorPath()}),o.attr("visibility",v)):o&&(t.connector=o.destroy()))}))},f.pie.prototype.placeDataLabels=function(){this.points.forEach(function(t){var e,i=t.dataLabel;i&&t.visible&&((e=i._pos)?(i.sideOverflow&&(i._attr.width=Math.max(i.getBBox().width-i.sideOverflow,0),i.css({width:i._attr.width+"px",textOverflow:(this.options.dataLabels.style||{}).textOverflow||"ellipsis"}),i.shortened=!0),i.attr(i._attr),i[i.moved?"animate":"attr"](e),i.moved=!0):i&&i.attr({y:-9999})),delete t.distributeBox},this)},f.pie.prototype.alignDataLabel=e,f.pie.prototype.verifyDataLabelOverflow=function(t){var e=this.center,i=this.options,n=i.center,r=i.minSize||80,o=null!==i.size;if(!o){if(null!==n[0])var s=Math.max(e[2]-Math.max(t[1],t[3]),r);else s=Math.max(e[2]-t[1]-t[3],r),e[0]+=(t[3]-t[1])/2;null!==n[1]?s=Math.max(Math.min(s,e[2]-Math.max(t[0],t[2])),r):(s=Math.max(Math.min(s,e[2]-t[0]-t[2]),r),e[1]+=(t[0]-t[2])/2),s<e[2]?(e[2]=s,e[3]=Math.min(h(i.innerSize||0,s),s),this.translate(e),this.drawDataLabels&&this.drawDataLabels()):o=!0}return o}),f.column&&(f.column.prototype.alignDataLabel=function(t,e,i,n,r){var o=this.chart.inverted,s=t.series,l=t.dlBox||t.shapeArgs,u=a(t.below,t.plotY>a(this.translatedThreshold,s.yAxis.len)),h=a(i.inside,!!this.options.stacking);l&&(0>(n=c(l)).y&&(n.height+=n.y,n.y=0),0<(l=n.y+n.height-s.yAxis.len)&&(n.height-=l),o&&(n={x:s.yAxis.len-n.y-n.height,y:s.xAxis.len-n.x-n.width,width:n.height,height:n.width}),h||(o?(n.x+=u?0:n.width,n.width=0):(n.y+=u?n.height:0,n.height=0))),i.align=a(i.align,!o||h?"center":u?"right":"left"),i.verticalAlign=a(i.verticalAlign,o||h?"middle":u?"top":"bottom"),d.prototype.alignDataLabel.call(this,t,e,i,n,r),i.inside&&t.contrastColor&&e.css({color:t.contrastColor})})}),e(i,"modules/overlapping-datalabels.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.isArray,n=e.objectEach,r=e.pick;e=t.Chart;var o=t.addEvent,s=t.fireEvent;o(e,"render",function(){var t=[];(this.labelCollectors||[]).forEach(function(e){t=t.concat(e())}),(this.yAxis||[]).forEach(function(e){e.options.stackLabels&&!e.options.stackLabels.allowOverlap&&n(e.stacks,function(e){n(e,function(e){t.push(e.label)})})}),(this.series||[]).forEach(function(e){var n=e.options.dataLabels;e.visible&&(!1!==n.enabled||e._hasPointLabels)&&e.points.forEach(function(e){e.visible&&(i(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[]).forEach(function(i){var n=i.options;i.labelrank=r(n.labelrank,e.labelrank,e.shapeArgs&&e.shapeArgs.height),n.allowOverlap||t.push(i)})})}),this.hideOverlappingLabels(t)}),e.prototype.hideOverlappingLabels=function(t){var e,i,n,r=this,o=t.length,a=r.renderer,l=function(t){var e=t.box?0:t.padding||0,i=0;if(t&&(!t.alignAttr||t.placed)){var n=t.attr("x"),r=t.attr("y");return n="number"==typeof n&&"number"==typeof r?{x:n,y:r}:t.alignAttr,r=t.parentGroup,t.width||(i=t.getBBox(),t.width=i.width,t.height=i.height,i=a.fontMetrics(null,t.element).h),{x:n.x+(r.translateX||0)+e,y:n.y+(r.translateY||0)+e-i,width:t.width-2*e,height:t.height-2*e}}};for(i=0;i<o;i++)(e=t[i])&&(e.oldOpacity=e.opacity,e.newOpacity=1,e.absoluteBox=l(e));for(t.sort(function(t,e){return(e.labelrank||0)-(t.labelrank||0)}),i=0;i<o;i++){var u=(l=t[i])&&l.absoluteBox;for(e=i+1;e<o;++e){var c=(n=t[e])&&n.absoluteBox;!u||!c||l===n||0===l.newOpacity||0===n.newOpacity||c.x>u.x+u.width||c.x+c.width<u.x||c.y>u.y+u.height||c.y+c.height<u.y||((l.labelrank<n.labelrank?l:n).newOpacity=0)}}t.forEach(function(t){var e;if(t){var i=t.newOpacity;t.oldOpacity!==i&&(t.alignAttr&&t.placed?(i?t.show(!0):e=function(){t.hide(!0),t.placed=!1},t.alignAttr.opacity=i,t[t.isOld?"animate":"attr"](t.alignAttr,null,e),s(r,"afterHideOverlappingLabels")):t.attr({opacity:i})),t.isOld=!0}})}}),e(i,"parts/Interaction.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.defined,n=e.extend,r=e.isArray,o=e.isObject,s=e.objectEach,a=e.pick,l=t.addEvent;e=t.Chart;var u=t.createElement,c=t.css,h=t.defaultOptions,d=t.defaultPlotOptions,f=t.fireEvent,p=t.hasTouch,v=t.Legend,g=t.merge,m=t.Point,y=t.Series,_=t.seriesTypes,b=t.svg,x=t.TrackerMixin={drawTrackerPoint:function(){var t,e=this,i=e.chart,n=i.pointer,o=function(t){var e=n.getPointFromEvent(t);void 0!==e&&(n.isDirectTouch=!0,e.onMouseOver(t))};e.points.forEach(function(e){t=r(e.dataLabels)?e.dataLabels:e.dataLabel?[e.dataLabel]:[],e.graphic&&(e.graphic.element.point=e),t.forEach(function(t){t.div?t.div.point=e:t.element.point=e})}),e._hasTracking||(e.trackerGroups.forEach(function(t){e[t]&&(e[t].addClass("highcharts-tracker").on("mouseover",o).on("mouseout",function(t){n.onTrackerMouseOut(t)}),p&&e[t].on("touchstart",o),!i.styledMode&&e.options.cursor&&e[t].css(c).css({cursor:e.options.cursor}))}),e._hasTracking=!0),f(this,"afterDrawTracker")},drawTrackerGraph:function(){var t,e=this,i=e.options,n=i.trackByArea,r=[].concat(n?e.areaPath:e.graphPath),o=r.length,s=e.chart,a=s.pointer,l=s.renderer,u=s.options.tooltip.snap,c=e.tracker,h=function(){s.hoverSeries!==e&&e.onMouseOver()},d="rgba(192,192,192,"+(b?1e-4:.002)+")";if(o&&!n)for(t=o+1;t--;)"M"===r[t]&&r.splice(t+1,0,r[t+1]-u,r[t+2],"L"),(t&&"M"===r[t]||t===o)&&r.splice(t,0,"L",r[t-2]+u,r[t-1]);c?c.attr({d:r}):e.graph&&(e.tracker=l.path(r).attr({visibility:e.visible?"visible":"hidden",zIndex:2}).addClass(n?"highcharts-tracker-area":"highcharts-tracker-line").add(e.group),s.styledMode||e.tracker.attr({"stroke-linejoin":"round",stroke:d,fill:n?d:"none","stroke-width":e.graph.strokeWidth()+(n?0:2*u)}),[e.tracker,e.markerGroup].forEach(function(t){t.addClass("highcharts-tracker").on("mouseover",h).on("mouseout",function(t){a.onTrackerMouseOut(t)}),i.cursor&&!s.styledMode&&t.css({cursor:i.cursor}),p&&t.on("touchstart",h)})),f(this,"afterDrawTracker")}};_.column&&(_.column.prototype.drawTracker=x.drawTrackerPoint),_.pie&&(_.pie.prototype.drawTracker=x.drawTrackerPoint),_.scatter&&(_.scatter.prototype.drawTracker=x.drawTrackerPoint),n(v.prototype,{setItemEvents:function(t,e,i){var n=this,r=n.chart.renderer.boxWrapper,o=t instanceof m,s="highcharts-legend-"+(o?"point":"series")+"-active",a=n.chart.styledMode;(i?e:t.legendGroup).on("mouseover",function(){t.visible&&n.allItems.forEach(function(e){t!==e&&e.setState("inactive",!o)}),t.setState("hover"),t.visible&&r.addClass(s),a||e.css(n.options.itemHoverStyle)}).on("mouseout",function(){n.chart.styledMode||e.css(g(t.visible?n.itemStyle:n.itemHiddenStyle)),n.allItems.forEach(function(e){t!==e&&e.setState("",!o)}),r.removeClass(s),t.setState()}).on("click",function(e){var i=function(){t.setVisible&&t.setVisible(),n.allItems.forEach(function(e){t!==e&&e.setState(t.visible?"inactive":"",!o)})};r.removeClass(s),e={browserEvent:e},t.firePointEvent?t.firePointEvent("legendItemClick",e,i):f(t,"legendItemClick",e,i)})},createCheckboxForItem:function(t){t.checkbox=u("input",{type:"checkbox",className:"highcharts-legend-checkbox",checked:t.selected,defaultChecked:t.selected},this.options.itemCheckboxStyle,this.chart.container),l(t.checkbox,"click",function(e){f(t.series||t,"checkboxClick",{checked:e.target.checked,item:t},function(){t.select()})})}}),n(e.prototype,{showResetZoom:function(){function t(){e.zoomOut()}var e=this,i=h.lang,n=e.options.chart.resetZoomButton,r=n.theme,o=r.states,s="chart"===n.relativeTo||"spaceBox"===n.relativeTo?null:"plotBox";f(this,"beforeShowResetZoom",null,function(){e.resetZoomButton=e.renderer.button(i.resetZoom,null,null,t,r,o&&o.hover).attr({align:n.position.align,title:i.resetZoomTitle}).addClass("highcharts-reset-zoom").add().align(n.position,!1,s)}),f(this,"afterShowResetZoom")},zoomOut:function(){f(this,"selection",{resetSelection:!0},this.zoom)},zoom:function(t){var e,n=this,r=n.pointer,s=!1,l=n.inverted?r.mouseDownX:r.mouseDownY;!t||t.resetSelection?(n.axes.forEach(function(t){e=t.zoom()}),r.initiated=!1):t.xAxis.concat(t.yAxis).forEach(function(t){var o=t.axis,a=n.inverted?o.left:o.top,u=n.inverted?a+o.width:a+o.height,c=o.isXAxis,h=!1;(!c&&l>=a&&l<=u||c||!i(l))&&(h=!0),r[c?"zoomX":"zoomY"]&&h&&(e=o.zoom(t.min,t.max),o.displayBtn&&(s=!0))});var u=n.resetZoomButton;s&&!u?n.showResetZoom():!s&&o(u)&&(n.resetZoomButton=u.destroy()),e&&n.redraw(a(n.options.chart.animation,t&&t.animation,100>n.pointCount))},pan:function(t,e){var i,n=this,r=n.hoverPoints;f(this,"pan",{originalEvent:t},function(){r&&r.forEach(function(t){t.setState()}),("xy"===e?[1,0]:[1]).forEach(function(e){var r=(e=n[e?"xAxis":"yAxis"][0]).horiz,o=t[r?"chartX":"chartY"],s=n[r=r?"mouseDownX":"mouseDownY"],a=(e.pointRange||0)/2,l=e.reversed&&!n.inverted||!e.reversed&&n.inverted?-1:1,u=e.getExtremes(),c=e.toValue(s-o,!0)+a*l,h=(l=e.toValue(s+e.len-o,!0)-a*l)<c;s=h?l:c,c=h?c:l,l=Math.min(u.dataMin,a?u.min:e.toValue(e.toPixels(u.min)-e.minPixelPadding)),a=Math.max(u.dataMax,a?u.max:e.toValue(e.toPixels(u.max)+e.minPixelPadding)),0<(h=l-s)&&(c+=h,s=l),0<(h=c-a)&&(c=a,s-=h),e.series.length&&s!==u.min&&c!==u.max&&(e.setExtremes(s,c,!1,!1,{trigger:"pan"}),i=!0),n[r]=o}),i&&n.redraw(!1),c(n.container,{cursor:"move"})})}}),n(m.prototype,{select:function(t,e){var i=this,n=i.series,r=n.chart;this.selectedStaging=t=a(t,!i.selected),i.firePointEvent(t?"select":"unselect",{accumulate:e},function(){i.selected=i.options.selected=t,n.options.data[n.data.indexOf(i)]=i.options,i.setState(t&&"select"),e||r.getSelectedPoints().forEach(function(t){var e=t.series;t.selected&&t!==i&&(t.selected=t.options.selected=!1,e.options.data[e.data.indexOf(t)]=t.options,t.setState(r.hoverPoints&&e.options.inactiveOtherPoints?"inactive":""),t.firePointEvent("unselect"))})}),delete this.selectedStaging},onMouseOver:function(t){var e=this.series.chart,i=e.pointer;t=t?i.normalize(t):i.getChartCoordinatesFromPoint(this,e.inverted),i.runPointActions(t,this)},onMouseOut:function(){var t=this.series.chart;this.firePointEvent("mouseOut"),this.series.options.inactiveOtherPoints||(t.hoverPoints||[]).forEach(function(t){t.setState()}),t.hoverPoints=t.hoverPoint=null},importEvents:function(){if(!this.hasImportedEvents){var e=this,i=g(e.series.options.point,e.options).events;e.events=i,s(i,function(i,n){t.isFunction(i)&&l(e,n,i)}),this.hasImportedEvents=!0}},setState:function(t,e){var i,r=this.series,o=this.state,s=r.options.states[t||"normal"]||{},l=d[r.type].marker&&r.options.marker,u=l&&!1===l.enabled,c=l&&l.states&&l.states[t||"normal"]||{},h=!1===c.enabled,p=r.stateMarkerGraphic,v=this.marker||{},g=r.chart,m=r.halo,y=l&&r.markerAttribs;if(!((t=t||"")===this.state&&!e||this.selected&&"select"!==t||!1===s.enabled||t&&(h||u&&!1===c.enabled)||t&&v.states&&v.states[t]&&!1===v.states[t].enabled)){if(this.state=t,y&&(i=r.markerAttribs(this,t)),this.graphic){if(o&&this.graphic.removeClass("highcharts-point-"+o),t&&this.graphic.addClass("highcharts-point-"+t),!g.styledMode){var _=r.pointAttribs(this,t),b=a(g.options.chart.animation,s.animation);r.options.inactiveOtherPoints&&((this.dataLabels||[]).forEach(function(t){t&&t.animate({opacity:_.opacity},b)}),this.connector&&this.connector.animate({opacity:_.opacity},b)),this.graphic.animate(_,b)}i&&this.graphic.animate(i,a(g.options.chart.animation,c.animation,l.animation)),p&&p.hide()}else t&&c&&(o=v.symbol||r.symbol,p&&p.currentSymbol!==o&&(p=p.destroy()),i&&(p?p[e?"animate":"attr"]({x:i.x,y:i.y}):o&&(r.stateMarkerGraphic=p=g.renderer.symbol(o,i.x,i.y,i.width,i.height).add(r.markerGroup),p.currentSymbol=o)),!g.styledMode&&p&&p.attr(r.pointAttribs(this,t))),p&&(p[t&&this.isInside?"show":"hide"](),p.element.point=this);t=s.halo,s=(p=this.graphic||p)&&p.visibility||"inherit",t&&t.size&&p&&"hidden"!==s?(m||(r.halo=m=g.renderer.path().add(p.parentGroup)),m.show()[e?"animate":"attr"]({d:this.haloPath(t.size)}),m.attr({class:"highcharts-halo highcharts-color-"+a(this.colorIndex,r.colorIndex)+(this.className?" "+this.className:""),visibility:s,zIndex:-1}),m.point=this,g.styledMode||m.attr(n({fill:this.color||r.color,"fill-opacity":t.opacity},t.attributes))):m&&m.point&&m.point.haloPath&&m.animate({d:m.point.haloPath(0)},null,m.hide),f(this,"afterSetState")}},haloPath:function(t){return this.series.chart.renderer.symbols.circle(Math.floor(this.plotX)-t,this.plotY-t,2*t,2*t)}}),n(y.prototype,{onMouseOver:function(){var t=this.chart,e=t.hoverSeries;e&&e!==this&&e.onMouseOut(),this.options.events.mouseOver&&f(this,"mouseOver"),this.setState("hover"),t.hoverSeries=this},onMouseOut:function(){var t=this.options,e=this.chart,i=e.tooltip,n=e.hoverPoint;e.hoverSeries=null,n&&n.onMouseOut(),this&&t.events.mouseOut&&f(this,"mouseOut"),!i||this.stickyTracking||i.shared&&!this.noSharedTooltip||i.hide(),e.series.forEach(function(t){t.setState("",!0)})},setState:function(t,e){var i=this,n=i.options,r=i.graph,o=n.inactiveOtherPoints,s=n.states,l=n.lineWidth,u=n.opacity,c=a(s[t||"normal"]&&s[t||"normal"].animation,i.chart.options.chart.animation);if(n=0,t=t||"",i.state!==t&&([i.group,i.markerGroup,i.dataLabelsGroup].forEach(function(e){e&&(i.state&&e.removeClass("highcharts-series-"+i.state),t&&e.addClass("highcharts-series-"+t))}),i.state=t,!i.chart.styledMode)){if(s[t]&&!1===s[t].enabled)return;if(t&&(l=s[t].lineWidth||l+(s[t].lineWidthPlus||0),u=a(s[t].opacity,u)),r&&!r.dashstyle)for(s={"stroke-width":l},r.animate(s,c);i["zone-graph-"+n];)i["zone-graph-"+n].attr(s),n+=1;o||[i.group,i.markerGroup,i.dataLabelsGroup,i.labelBySeries].forEach(function(t){t&&t.animate({opacity:u},c)})}e&&o&&i.points&&i.setAllPointsToState(t)},setAllPointsToState:function(t){this.points.forEach(function(e){e.setState&&e.setState(t)})},setVisible:function(t,e){var i=this,n=i.chart,r=i.legendItem,o=n.options.chart.ignoreHiddenSeries,s=i.visible,a=(i.visible=t=i.options.visible=i.userOptions.visible=void 0===t?!s:t)?"show":"hide";["group","dataLabelsGroup","markerGroup","tracker","tt"].forEach(function(t){i[t]&&i[t][a]()}),n.hoverSeries!==i&&(n.hoverPoint&&n.hoverPoint.series)!==i||i.onMouseOut(),r&&n.legend.colorizeItem(i,t),i.isDirty=!0,i.options.stacking&&n.series.forEach(function(t){t.options.stacking&&t.visible&&(t.isDirty=!0)}),i.linkedSeries.forEach(function(e){e.setVisible(t,!1)}),o&&(n.isDirtyBox=!0),f(i,a),!1!==e&&n.redraw()},show:function(){this.setVisible(!0)},hide:function(){this.setVisible(!1)},select:function(t){this.selected=t=this.options.selected=void 0===t?!this.selected:t,this.checkbox&&(this.checkbox.checked=t),f(this,t?"select":"unselect")},drawTracker:x.drawTrackerGraph})}),e(i,"parts/Responsive.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){var i=e.isArray,n=e.isObject,r=e.objectEach,o=e.pick,s=e.splat;(e=t.Chart).prototype.setResponsive=function(e,i){var n=this.options.responsive,r=[],o=this.currentResponsive;!i&&n&&n.rules&&n.rules.forEach(function(e){void 0===e._id&&(e._id=t.uniqueKey()),this.matchResponsiveRule(e,r)},this),(i=t.merge.apply(0,r.map(function(e){return t.find(n.rules,function(t){return t._id===e}).chartOptions}))).isResponsiveOptions=!0,(r=r.toString()||void 0)!==(o&&o.ruleIds)&&(o&&this.update(o.undoOptions,e,!0),r?((o=this.currentOptions(i)).isResponsiveOptions=!0,this.currentResponsive={ruleIds:r,mergedOptions:i,undoOptions:o},this.update(i,e,!0)):this.currentResponsive=void 0)},e.prototype.matchResponsiveRule=function(t,e){var i=t.condition;(i.callback||function(){return this.chartWidth<=o(i.maxWidth,Number.MAX_VALUE)&&this.chartHeight<=o(i.maxHeight,Number.MAX_VALUE)&&this.chartWidth>=o(i.minWidth,0)&&this.chartHeight>=o(i.minHeight,0)}).call(this)&&e.push(t._id)},e.prototype.currentOptions=function(t){var e=this,o={};return function t(o,a,l,u){var c;r(o,function(r,o){if(!u&&-1<e.collectionsWithUpdate.indexOf(o))for(r=s(r),l[o]=[],c=0;c<r.length;c++)a[o][c]&&(l[o][c]={},t(r[c],a[o][c],l[o][c],u+1));else n(r)?(l[o]=i(r)?[]:{},t(r,a[o]||{},l[o],u+1)):l[o]=void 0===a[o]?null:a[o]})}(t,this.options,o,0),o}}),e(i,"masters/highcharts.src.js",[i["parts/Globals.js"],i["parts/Utilities.js"]],function(t,e){return(0,e.extend)(t,{arrayMax:e.arrayMax,arrayMin:e.arrayMin,attr:e.attr,defined:e.defined,erase:e.erase,extend:e.extend,isArray:e.isArray,isClass:e.isClass,isDOMElement:e.isDOMElement,isNumber:e.isNumber,isObject:e.isObject,isString:e.isString,objectEach:e.objectEach,pick:e.pick,pInt:e.pInt,setAnimation:e.setAnimation,splat:e.splat,syncTimeout:e.syncTimeout}),t}),i["masters/highcharts.src.js"]._modules=i,i["masters/highcharts.src.js"]},"object"==typeof t&&t.exports?(o.default=o,t.exports=r.document?o(r):o):void 0===(n=function(){return o(r)}.call(e,i,e,t))||(t.exports=n)},function(t,e,i){var n=i(31).f,r=i(54),o=i(16)("toStringTag");t.exports=function(t,e,i){t&&!r(t=i?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},function(t,e,i){var n=i(60),r=i(16)("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(t){var e,i,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?i:o?n(e):"Object"==(s=n(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,i){var n=i(0),r=i(71),o=i(10),s=i(190),a="["+s+"]",l=RegExp("^"+a+a+"*"),u=RegExp(a+a+"*$"),c=function(t,e,i){var r={},a=o(function(){return!!s[t]()||"​"!="​"[t]()}),l=r[t]=a?e(h):s[t];i&&(r[i]=l),n(n.P+n.F*a,"String",r)},h=c.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(l,"")),2&e&&(t=t.replace(u,"")),t};t.exports=c},function(t,e){t.exports={}},function(t,e,i){"use strict";var n=i(137),r=Function.prototype,o=r.apply,s=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?s.bind(o):function(){return s.apply(o,arguments)})},function(t,e,i){"use strict";var n=i(32),r=i(27),o=i(166),s=i(103),a=i(63),l=i(215),u=i(37),c=i(289),h=Object.getOwnPropertyDescriptor;e.f=n?h:function(t,e){if(t=a(t),e=l(e),c)try{return h(t,e)}catch(t){}if(u(t,e))return s(!r(o.f,t,e),t[e])}},function(t,e,i){"use strict";t.exports=function(t){return null===t||void 0===t}},function(t,e,i){"use strict";var n=i(139),r=i(9),o=i(26).String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol("symbol detection");return!o(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41})},function(t,e,i){"use strict";var n=i(167);t.exports=function(t,e){return n[t]||(n[t]=e||{})}},function(t,e,i){"use strict";var n=i(218),r=i(18),o=i(74),s=i(19)("toStringTag"),a=Object,l="Arguments"===o(function(){return arguments}());t.exports=n?o:function(t){var e,i,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(i=function(t,e){try{return t[e]}catch(t){}}(e=a(t),s))?i:l?o(e):"Object"===(n=o(e))&&r(e.callee)?"Arguments":n}},function(t,e,i){"use strict";var n,r,o,s=i(610),a=i(26),l=i(33),u=i(80),c=i(37),h=i(167),d=i(169),f=i(142),p=a.TypeError,v=a.WeakMap;if(s||h.state){var g=h.state||(h.state=new v);g.get=g.get,g.has=g.has,g.set=g.set,n=function(t,e){if(g.has(t))throw new p("Object already initialized");return e.facade=t,g.set(t,e),e},r=function(t){return g.get(t)||{}},o=function(t){return g.has(t)}}else{var m=d("state");f[m]=!0,n=function(t,e){if(c(t,m))throw new p("Object already initialized");return e.facade=t,u(t,m,e),e},r=function(t){return c(t,m)?t[m]:{}},o=function(t){return c(t,m)}}t.exports={set:n,get:r,has:o,enforce:function(t){return o(t)?r(t):n(t,{})},getterFor:function(t){return function(e){var i;if(!l(e)||(i=r(e)).type!==t)throw new p("Incompatible receiver, "+t+" required");return i}}}},function(t,e,i){"use strict";var n=i(44),r=i(13),o=i(214),s=i(46),a=i(81),l=i(223),u=r([].push),c=function(t){var e=1===t,i=2===t,r=3===t,c=4===t,h=6===t,d=7===t,f=5===t||h;return function(p,v,g,m){for(var y,_,b=s(p),x=o(b),w=a(x),S=n(v,g),T=0,E=m||l,C=e?E(p,w):i||d?E(p,0):void 0;w>T;T++)if((f||T in x)&&(_=S(y=x[T],T,b),t))if(e)C[T]=_;else if(_)switch(t){case 3:return!0;case 5:return y;case 6:return T;case 2:u(C,y)}else switch(t){case 4:return!1;case 7:u(C,y)}return h?-1:r||c?c:C}};t.exports={forEach:c(0),map:c(1),filter:c(2),some:c(3),every:c(4),find:c(5),findIndex:c(6),filterReject:c(7)}},function(t,e,i){"use strict";i(125);var n=i(654),r=i(26),o=i(89),s=i(126);for(var a in n)o(r[a],a),s[a]=s.Array},function(t,e,i){"use strict";var n=i(63),r=i(225),o=i(126),s=i(122),a=i(51).f,l=i(226),u=i(227),c=i(64),h=i(32),d=s.set,f=s.getterFor("Array Iterator");t.exports=l(Array,"Array",function(t,e){d(this,{type:"Array Iterator",target:n(t),index:0,kind:e})},function(){var t=f(this),e=t.target,i=t.index++;if(!e||i>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(i,!1);case"values":return u(e[i],!1)}return u([i,e[i]],!1)},"values");var p=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!c&&h&&"values"!==p.name)try{a(p,"name",{value:"values"})}catch(t){}},function(t,e,i){"use strict";t.exports={}},function(t,e,i){"use strict";var n=i(37),r=i(18),o=i(46),s=i(169),a=i(307),l=s("IE_PROTO"),u=Object,c=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=o(t);if(n(e,l))return e[l];var i=e.constructor;return r(i)&&e instanceof i?i.prototype:e instanceof u?c:null}},function(t,e,i){"use strict";t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},function(t,e,i){"use strict";var n=i(26);t.exports=n.Promise},function(t,e,i){t.exports=i(770)},function(t,e,i){t.exports=i(315)},function(t,e,i){var n=i(58),r=i(8),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:n.version,mode:i(84)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,e,i){var n=i(60);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,i){"use strict";var n=i(6);t.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e,i){var n=i(6),r=i(43),o=i(16)("species");t.exports=function(t,e){var i,s=n(t).constructor;return void 0===s||void 0==(i=n(s)[o])?e:r(i)}},function(t,e,i){"use strict";var n=i(9);t.exports=!n(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},function(t,e,i){"use strict";var n=i(40),r=i(18),o=i(36),s=i(288),a=Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return r(e)&&o(e.prototype,a(t))}},function(t,e,i){"use strict";var n,r,o=i(26),s=i(104),a=o.process,l=o.Deno,u=a&&a.versions||l&&l.version,c=u&&u.v8;c&&(r=(n=c.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!r&&s&&(!(n=s.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=s.match(/Chrome\/(\d+)/))&&(r=+n[1]),t.exports=r},function(t,e,i){"use strict";var n=i(293),r=i(221);t.exports=Object.keys||function(t){return n(t,r)}},function(t,e,i){"use strict";var n=i(608);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},function(t,e,i){"use strict";t.exports={}},function(t,e,i){"use strict";var n=i(9),r=i(19),o=i(139),s=r("species");t.exports=function(t){return o>=51||!n(function(){var e=[];return(e.constructor={})[s]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},function(t,e,i){"use strict";var n=i(32),r=i(51),o=i(103);t.exports=function(t,e,i){n?r.f(t,e,o(0,i)):t[e]=i}},function(t,e,i){"use strict";t.exports=i(630)},function(t,e){},function(t,e,i){"use strict";var n=i(673).charAt,r=i(75),o=i(122),s=i(226),a=i(227),l=o.set,u=o.getterFor("String Iterator");s(String,"String",function(t){l(this,{type:"String Iterator",string:r(t),index:0})},function(){var t,e=u(this),i=e.string,r=e.index;return r>=i.length?a(void 0,!0):(t=n(i,r),e.index+=t.length,a(t,!1))})},function(t,e,i){"use strict";var n=i(26),r=i(129),o=i(18),s=i(290),a=i(298),l=i(19),u=i(741),c=i(326),h=i(64),d=i(139),f=r&&r.prototype,p=l("species"),v=!1,g=o(n.PromiseRejectionEvent),m=s("Promise",function(){var t=a(r),e=t!==String(r);if(!e&&66===d)return!0;if(h&&(!f.catch||!f.finally))return!0;if(!d||d<51||!/native code/.test(t)){var i=new r(function(t){t(1)}),n=function(t){t(function(){},function(){})};if((i.constructor={})[p]=n,!(v=i.then(function(){})instanceof n))return!0}return!e&&(u||c)&&!g});t.exports={CONSTRUCTOR:m,REJECTION_EVENT:g,SUBCLASSING:v}},function(t,e,i){t.exports=i(787)},function(t,e,i){var n;"undefined"!=typeof self&&self,n=function(t){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=1)}([function(e,i){e.exports=t},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.component(e.tagName||"highcharts",Object(n.a)(e.highcharts||o.a))},i.d(e,"Chart",function(){return s});var n=i(2),r=i(0),o=i.n(r),s=Object(n.a)(o.a)},function(t,e,i){"use strict";function n(t){return function(t){if(Array.isArray(t)){for(var e=0,i=new Array(t.length);e<t.length;e++)i[e]=t[e];return i}}(t)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var r=i(3);e.a=function(t){return{template:'<div ref="chart"></div>',render:function(t){return t("div",{ref:"chart"})},props:{constructorType:{type:String,default:"chart"},options:{type:Object,required:!0},callback:Function,updateArgs:{type:Array,default:function(){return[!0,!0]}},highcharts:{type:Object},deepCopyOnUpdate:{type:Boolean,default:!0}},watch:{options:{handler:function(t){var e;(e=this.chart).update.apply(e,[Object(r.a)(t,this.deepCopyOnUpdate)].concat(n(this.updateArgs)))},deep:!0}},mounted:function(){var e=this.highcharts||t;this.options&&e[this.constructorType]?this.chart=e[this.constructorType](this.$refs.chart,Object(r.a)(this.options,!0),this.callback?this.callback:null):this.options?console.warn("'".concat(this.constructorType,"' constructor-type is incorrect. Sometimes this error is caused by the fact, that the corresponding module wasn't imported.")):console.warn('The "options" parameter was not passed.')},beforeDestroy:function(){this.chart&&this.chart.destroy()}}}},function(t,e,i){"use strict";i.d(e,"a",function(){return o});var n=i(0),r=i.n(n),o=function(t,e){return function t(e,i,n){function o(o,s){!r.a.isObject(o,!n)||r.a.isClass(o)||r.a.isDOMElement(o)?e[s]=i[s]:e[s]=t(e[s]||r.a.isArray(o)?[]:{},o,n)}return r.a.isArray(i)?i.forEach(o):r.a.objectEach(i,o),e}({},t,e)}}])},t.exports=n(i(111))},function(t,e,i){var n=i(55),r=i(17),o=i(95);t.exports=function(t){return function(e,i,s){var a,l=n(e),u=r(l.length),c=o(s,u);if(t&&i!=i){for(;u>c;)if((a=l[c++])!=a)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===i)return t||c||0;return!t&&-1}}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,i){var n=i(60);t.exports=Array.isArray||function(t){return"Array"==n(t)}},function(t,e,i){var n=i(61),r=i(71);t.exports=function(t){return function(e,i){var o,s,a=String(r(e)),l=n(i),u=a.length;return l<0||l>=u?t?"":void 0:(o=a.charCodeAt(l))<55296||o>56319||l+1===u||(s=a.charCodeAt(l+1))<56320||s>57343?t?a.charAt(l):o:t?a.slice(l,l+2):s-56320+(o-55296<<10)+65536}}},function(t,e,i){var n=i(11),r=i(60),o=i(16)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,i){var n=i(16)("iterator"),r=!1;try{var o=[7][n]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var i=!1;try{var o=[7],s=o[n]();s.next=function(){return{done:i=!0}},o[n]=function(){return s},t(o)}catch(t){}return i}},function(t,e,i){"use strict";var n=i(113),r=RegExp.prototype.exec;t.exports=function(t,e){var i=t.exec;if("function"==typeof i){var o=i.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==n(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},function(t,e,i){"use strict";i(257);var n=i(49),r=i(48),o=i(10),s=i(71),a=i(16),l=i(205),u=a("species"),c=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var i="ab".split(t);return 2===i.length&&"a"===i[0]&&"b"===i[1]}();t.exports=function(t,e,i){var d=a(t),f=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!o(function(){var e=!1,i=/a/;return i.exec=function(){return e=!0,null},"split"===t&&(i.constructor={},i.constructor[u]=function(){return i}),i[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!c||"split"===t&&!h){var v=/./[d],g=i(s,d,""[t],function(t,e,i,n,r){return e.exec===l?f&&!r?{done:!0,value:v.call(e,i,n)}:{done:!0,value:t.call(i,e,n)}:{done:!1}}),m=g[0],y=g[1];n(String.prototype,t,m),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},function(t,e,i){var n=i(8).navigator;t.exports=n&&n.userAgent||""},function(t,e,i){"use strict";var n=i(8),r=i(0),o=i(49),s=i(101),a=i(85),l=i(100),u=i(99),c=i(11),h=i(10),d=i(156),f=i(112),p=i(191);t.exports=function(t,e,i,v,g,m){var y=n[t],_=y,b=g?"set":"add",x=_&&_.prototype,w={},S=function(t){var e=x[t];o(x,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,i){return e.call(this,0===t?0:t,i),this})};if("function"==typeof _&&(m||x.forEach&&!h(function(){(new _).entries().next()}))){var T=new _,E=T[b](m?{}:-0,1)!=T,C=h(function(){T.has(1)}),O=d(function(t){new _(t)}),M=!m&&h(function(){for(var t=new _,e=5;e--;)t[b](e,e);return!t.has(-0)});O||((_=e(function(e,i){u(e,_,t);var n=p(new y,e,_);return void 0!=i&&l(i,g,n[b],n),n})).prototype=x,x.constructor=_),(C||M)&&(S("delete"),S("has"),g&&S("get")),(M||E)&&S(b),m&&x.clear&&delete x.clear}else _=v.getConstructor(e,t,g,b),s(_.prototype,i),a.NEED=!0;return f(_,t),w[t]=_,r(r.G+r.W+r.F*(_!=y),w),m||v.setStrong(_,t,g),_}},function(t,e,i){for(var n,r=i(8),o=i(48),s=i(93),a=s("typed_array"),l=s("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(n=r[d[h++]])?(o(n.prototype,a,!0),o(n.prototype,l,!0)):c=!1;t.exports={ABV:u,CONSTR:c,TYPED:a,VIEW:l}},function(t,e,i){"use strict";t.exports=i(84)||!i(10)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete i(8)[t]})},function(t,e,i){"use strict";var n=i(0);t.exports=function(t){n(n.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},function(t,e,i){"use strict";var n=i(0),r=i(43),o=i(59),s=i(100);t.exports=function(t){n(n.S,t,{from:function(t){var e,i,n,a,l=arguments[1];return r(this),(e=void 0!==l)&&r(l),void 0==t?new this:(i=[],e?(n=0,a=o(l,arguments[2],2),s(t,!1,function(t){i.push(a(t,n++))})):s(t,!1,i.push,i),new this(i))}})}},function(t,e){var i,n,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(i===setTimeout)return setTimeout(t,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(t,0);try{return i(t,0)}catch(e){try{return i.call(null,t,0)}catch(e){return i.call(this,t,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(t){i=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(t){n=s}}();var l,u=[],c=!1,h=-1;function d(){c&&l&&(c=!1,l.length?u=l.concat(u):h=-1,u.length&&f())}function f(){if(!c){var t=a(d);c=!0;for(var e=u.length;e;){for(l=u,u=[];++h<e;)l&&l[h].run();h=-1,e=u.length}l=null,c=!1,function(t){if(n===clearTimeout)return clearTimeout(t);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(t);try{n(t)}catch(e){try{return n.call(null,t)}catch(e){return n.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function v(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)e[i-1]=arguments[i];u.push(new p(t,e)),1!==u.length||c||a(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(t,e,i){"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!n.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},function(t,e,i){"use strict";var n=i(64),r=i(26),o=i(607),s=t.exports=r["__core-js_shared__"]||o("__core-js_shared__",{});(s.versions||(s.versions=[])).push({version:"3.37.1",mode:n?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.37.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,i){"use strict";var n=i(13),r=0,o=Math.random(),s=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+s(++r+o,36)}},function(t,e,i){"use strict";var n=i(120),r=i(168),o=n("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},function(t,e,i){"use strict";var n=i(293),r=i(221).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,r)}},function(t,e,i){"use strict";e.f=Object.getOwnPropertySymbols},function(t,e,i){"use strict";var n=i(19);e.f=n},function(t,e,i){"use strict";var n=i(13),r=i(9),o=i(18),s=i(121),a=i(40),l=i(298),u=function(){},c=a("Reflect","construct"),h=/^\s*(?:class|function)\b/,d=n(h.exec),f=!h.test(u),p=function(t){if(!o(t))return!1;try{return c(u,[],t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(s(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return f||!!d(h,l(t))}catch(t){return!0}};v.sham=!0,t.exports=!c||r(function(){var t;return p(p.call)||!p(Object)||!p(function(){t=!0})||t})?v:p},function(t,e,i){"use strict";t.exports=i(625)},function(t,e,i){"use strict";var n=i(651),r=i(33),o=i(87),s=i(652);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,i={};try{(t=n(Object.prototype,"__proto__","set"))(i,[]),e=i instanceof Array}catch(t){}return function(i,n){return o(i),s(n),r(i)?(e?t(i,n):i.__proto__=n,i):i}}():void 0)},function(t,e,i){"use strict";var n=i(121),r=i(216),o=i(118),s=i(126),a=i(19)("iterator");t.exports=function(t){if(!o(t))return r(t,a)||r(t,"@@iterator")||s[n(t)]}},function(t,e,i){"use strict";var n=i(26),r=i(74);t.exports="process"===r(n.process)},function(t,e,i){"use strict";var n=i(129),r=i(327),o=i(148).CONSTRUCTOR;t.exports=o||!r(function(t){n.all(t).then(void 0,function(){})})},function(t,e,i){"use strict";t.exports=i(803)},,,,,function(t,e,i){var n=i(11),r=i(8).document,o=n(r)&&n(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e,i){var n=i(8),r=i(58),o=i(84),s=i(239),a=i(31).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:n.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:s.f(t)})}},function(t,e,i){var n=i(132)("keys"),r=i(93);t.exports=function(t){return n[t]||(n[t]=r(t))}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,i){var n=i(8).document;t.exports=n&&n.documentElement},function(t,e,i){var n=i(11),r=i(6),o=function(t,e){if(r(t),!n(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,n){try{(n=i(59)(Function.call,i(56).f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,i){return o(t,i),e?t.__proto__=i:n(t,i),t}}({},!1):void 0),check:o}},function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(t,e,i){var n=i(11),r=i(189).set;t.exports=function(t,e,i){var o,s=e.constructor;return s!==i&&"function"==typeof s&&(o=s.prototype)!==i.prototype&&n(o)&&r&&r(t,o),t}},function(t,e,i){"use strict";var n=i(61),r=i(71);t.exports=function(t){var e=String(r(this)),i="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(i+=e);return i}},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e){var i=Math.expm1;t.exports=!i||i(10)>22025.465794806718||i(10)<22025.465794806718||-2e-17!=i(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:i},function(t,e,i){"use strict";var n=i(84),r=i(0),o=i(49),s=i(48),a=i(115),l=i(196),u=i(112),c=i(57),h=i(16)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,i,p,v,g,m){l(i,e,p);var y,_,b,x=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new i(this,t)}}return function(){return new i(this,t)}},w=e+" Iterator",S="values"==v,T=!1,E=t.prototype,C=E[h]||E["@@iterator"]||v&&E[v],O=C||x(v),M=v?S?x("entries"):O:void 0,P="Array"==e&&E.entries||C;if(P&&(b=c(P.call(new t)))!==Object.prototype&&b.next&&(u(b,w,!0),n||"function"==typeof b[h]||s(b,h,f)),S&&C&&"values"!==C.name&&(T=!0,O=function(){return C.call(this)}),n&&!m||!d&&!T&&E[h]||s(E,h,O),a[e]=O,a[w]=f,v)if(y={values:S?O:x("values"),keys:g?O:x("keys"),entries:M},m)for(_ in y)_ in E||o(E,_,y[_]);else r(r.P+r.F*(d||T),e,y);return y}},function(t,e,i){"use strict";var n=i(96),r=i(92),o=i(112),s={};i(48)(s,i(16)("iterator"),function(){return this}),t.exports=function(t,e,i){t.prototype=n(s,{next:r(1,i)}),o(t,e+" Iterator")}},function(t,e,i){var n=i(155),r=i(71);t.exports=function(t,e,i){if(n(e))throw TypeError("String#"+i+" doesn't accept regex!");return String(r(t))}},function(t,e,i){var n=i(16)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,i){var n=i(115),r=i(16)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(n.Array===t||o[r]===t)}},function(t,e,i){"use strict";var n=i(31),r=i(92);t.exports=function(t,e,i){e in t?n.f(t,e,r(0,i)):t[e]=i}},function(t,e,i){var n=i(113),r=i(16)("iterator"),o=i(115);t.exports=i(58).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[n(t)]}},function(t,e,i){var n=i(481);t.exports=function(t,e){return new(n(t))(e)}},function(t,e,i){"use strict";var n=i(34),r=i(95),o=i(17);t.exports=function(t){for(var e=n(this),i=o(e.length),s=arguments.length,a=r(s>1?arguments[1]:void 0,i),l=s>2?arguments[2]:void 0,u=void 0===l?i:r(l,i);u>a;)e[a++]=t;return e}},function(t,e,i){"use strict";var n=i(86),r=i(256),o=i(115),s=i(55);t.exports=i(195)(Array,"Array",function(t,e){this._t=s(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,i=this._i++;return!t||i>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?i:"values"==e?t[i]:[i,t[i]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},function(t,e,i){"use strict";var n,r,o=i(135),s=RegExp.prototype.exec,a=String.prototype.replace,l=s,u=(n=/a/,r=/b*/g,s.call(n,"a"),s.call(r,"a"),0!==n.lastIndex||0!==r.lastIndex),c=void 0!==/()??/.exec("")[1];(u||c)&&(l=function(t){var e,i,n,r,l=this;return c&&(i=new RegExp("^"+l.source+"$(?!\\s)",o.call(l))),u&&(e=l.lastIndex),n=s.call(l,t),u&&n&&(l.lastIndex=l.global?n.index+n[0].length:e),c&&n&&n.length>1&&a.call(n[0],i,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(n[r]=void 0)}),n}),t.exports=l},function(t,e,i){"use strict";var n=i(154)(!0);t.exports=function(t,e,i){return e+(i?n(t,e).length:1)}},function(t,e,i){var n,r,o,s=i(59),a=i(246),l=i(188),u=i(184),c=i(8),h=c.process,d=c.setImmediate,f=c.clearImmediate,p=c.MessageChannel,v=c.Dispatch,g=0,m={},y=function(){var t=+this;if(m.hasOwnProperty(t)){var e=m[t];delete m[t],e()}},_=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],i=1;arguments.length>i;)e.push(arguments[i++]);return m[++g]=function(){a("function"==typeof t?t:Function(t),e)},n(g),g},f=function(t){delete m[t]},"process"==i(60)(h)?n=function(t){h.nextTick(s(y,t,1))}:v&&v.now?n=function(t){v.now(s(y,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=_,n=s(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(n=function(t){c.postMessage(t+"","*")},c.addEventListener("message",_,!1)):n="onreadystatechange"in u("script")?function(t){l.appendChild(u("script")).onreadystatechange=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(s(y,t,1),0)}),t.exports={set:d,clear:f}},function(t,e,i){var n=i(8),r=i(207).set,o=n.MutationObserver||n.WebKitMutationObserver,s=n.process,a=n.Promise,l="process"==i(60)(s);t.exports=function(){var t,e,i,u=function(){var n,r;for(l&&(n=s.domain)&&n.exit();t;){r=t.fn,t=t.next;try{r()}catch(n){throw t?i():e=void 0,n}}e=void 0,n&&n.enter()};if(l)i=function(){s.nextTick(u)};else if(!o||n.navigator&&n.navigator.standalone)if(a&&a.resolve){var c=a.resolve(void 0);i=function(){c.then(u)}}else i=function(){r.call(n,u)};else{var h=!0,d=document.createTextNode("");new o(u).observe(d,{characterData:!0}),i=function(){d.data=h=!h}}return function(n){var r={fn:n,next:void 0};e&&(e.next=r),t||(t=r,i()),e=r}}},function(t,e,i){"use strict";var n=i(43);t.exports.f=function(t){return new function(t){var e,i;this.promise=new t(function(t,n){if(void 0!==e||void 0!==i)throw TypeError("Bad Promise constructor");e=t,i=n}),this.resolve=n(e),this.reject=n(i)}(t)}},function(t,e,i){"use strict";var n=i(8),r=i(22),o=i(84),s=i(161),a=i(48),l=i(101),u=i(10),c=i(99),h=i(61),d=i(17),f=i(266),p=i(97).f,v=i(31).f,g=i(203),m=i(112),y="prototype",_="Wrong index!",b=n.ArrayBuffer,x=n.DataView,w=n.Math,S=n.RangeError,T=n.Infinity,E=b,C=w.abs,O=w.pow,M=w.floor,P=w.log,k=w.LN2,I=r?"_b":"buffer",L=r?"_l":"byteLength",A=r?"_o":"byteOffset";function R(t,e,i){var n,r,o,s=new Array(i),a=8*i-e-1,l=(1<<a)-1,u=l>>1,c=23===e?O(2,-24)-O(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=C(t))!=t||t===T?(r=t!=t?1:0,n=l):(n=M(P(t)/k),t*(o=O(2,-n))<1&&(n--,o*=2),(t+=n+u>=1?c/o:c*O(2,1-u))*o>=2&&(n++,o/=2),n+u>=l?(r=0,n=l):n+u>=1?(r=(t*o-1)*O(2,e),n+=u):(r=t*O(2,u-1)*O(2,e),n=0));e>=8;s[h++]=255&r,r/=256,e-=8);for(n=n<<e|r,a+=e;a>0;s[h++]=255&n,n/=256,a-=8);return s[--h]|=128*d,s}function F(t,e,i){var n,r=8*i-e-1,o=(1<<r)-1,s=o>>1,a=r-7,l=i-1,u=t[l--],c=127&u;for(u>>=7;a>0;c=256*c+t[l],l--,a-=8);for(n=c&(1<<-a)-1,c>>=-a,a+=e;a>0;n=256*n+t[l],l--,a-=8);if(0===c)c=1-s;else{if(c===o)return n?NaN:u?-T:T;n+=O(2,e),c-=s}return(u?-1:1)*n*O(2,c-e)}function D(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function j(t){return[255&t]}function N(t){return[255&t,t>>8&255]}function $(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function G(t){return R(t,52,8)}function z(t){return R(t,23,4)}function B(t,e,i){v(t[y],e,{get:function(){return this[i]}})}function Y(t,e,i,n){var r=f(+i);if(r+e>t[L])throw S(_);var o=t[I]._b,s=r+t[A],a=o.slice(s,s+e);return n?a:a.reverse()}function V(t,e,i,n,r,o){var s=f(+i);if(s+e>t[L])throw S(_);for(var a=t[I]._b,l=s+t[A],u=n(+r),c=0;c<e;c++)a[l+c]=u[o?c:e-c-1]}if(s.ABV){if(!u(function(){b(1)})||!u(function(){new b(-1)})||u(function(){return new b,new b(1.5),new b(NaN),"ArrayBuffer"!=b.name})){for(var W,H=(b=function(t){return c(this,b),new E(f(t))})[y]=E[y],U=p(E),X=0;U.length>X;)(W=U[X++])in b||a(b,W,E[W]);o||(H.constructor=b)}var q=new x(new b(2)),K=x[y].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||l(x[y],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else b=function(t){c(this,b,"ArrayBuffer");var e=f(t);this._b=g.call(new Array(e),0),this[L]=e},x=function(t,e,i){c(this,x,"DataView"),c(t,b,"DataView");var n=t[L],r=h(e);if(r<0||r>n)throw S("Wrong offset!");if(r+(i=void 0===i?n-r:d(i))>n)throw S("Wrong length!");this[I]=t,this[A]=r,this[L]=i},r&&(B(b,"byteLength","_l"),B(x,"buffer","_b"),B(x,"byteLength","_l"),B(x,"byteOffset","_o")),l(x[y],{getInt8:function(t){return Y(this,1,t)[0]<<24>>24},getUint8:function(t){return Y(this,1,t)[0]},getInt16:function(t){var e=Y(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Y(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return D(Y(this,4,t,arguments[1]))},getUint32:function(t){return D(Y(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(Y(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(Y(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){V(this,1,t,j,e)},setUint8:function(t,e){V(this,1,t,j,e)},setInt16:function(t,e){V(this,2,t,N,e,arguments[2])},setUint16:function(t,e){V(this,2,t,N,e,arguments[2])},setInt32:function(t,e){V(this,4,t,$,e,arguments[2])},setUint32:function(t,e){V(this,4,t,$,e,arguments[2])},setFloat32:function(t,e){V(this,4,t,z,e,arguments[2])},setFloat64:function(t,e){V(this,8,t,G,e,arguments[2])}});m(b,"ArrayBuffer"),m(x,"DataView"),a(x[y],s.VIEW,!0),e.ArrayBuffer=b,e.DataView=x},function(t,e,i){var n,r,o;!function(i,s){"use strict";r=[],void 0===(o="function"==typeof(n=s)?n.apply(e,r):n)||(t.exports=o)}(0,function(){"use strict";var t={bind:!!function(){}.bind,classList:"classList"in document.documentElement,rAF:!!(window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame)};function e(t){this.callback=t,this.ticking=!1}function i(t,e){var n;e=function t(e){if(arguments.length<=0)throw new Error("Missing arguments in extend function");var i,n,r,o=e||{};for(n=1;n<arguments.length;n++){var s=arguments[n]||{};for(i in s)"object"!=typeof o[i]||(r=o[i])&&"undefined"!=typeof window&&(r===window||r.nodeType)?o[i]=o[i]||s[i]:o[i]=t(o[i],s[i])}return o}(e,i.options),this.lastKnownScrollY=0,this.elem=t,this.tolerance=(n=e.tolerance)===Object(n)?n:{down:n,up:n},this.classes=e.classes,this.offset=e.offset,this.scroller=e.scroller,this.initialised=!1,this.onPin=e.onPin,this.onUnpin=e.onUnpin,this.onTop=e.onTop,this.onNotTop=e.onNotTop,this.onBottom=e.onBottom,this.onNotBottom=e.onNotBottom}return window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame,e.prototype={constructor:e,update:function(){this.callback&&this.callback(),this.ticking=!1},requestTick:function(){this.ticking||(requestAnimationFrame(this.rafCallback||(this.rafCallback=this.update.bind(this))),this.ticking=!0)},handleEvent:function(){this.requestTick()}},i.prototype={constructor:i,init:function(){if(i.cutsTheMustard)return this.debouncer=new e(this.update.bind(this)),this.elem.classList.add(this.classes.initial),setTimeout(this.attachEvent.bind(this),100),this},destroy:function(){var t=this.classes;for(var e in this.initialised=!1,t)t.hasOwnProperty(e)&&this.elem.classList.remove(t[e]);this.scroller.removeEventListener("scroll",this.debouncer,!1)},attachEvent:function(){this.initialised||(this.lastKnownScrollY=this.getScrollY(),this.initialised=!0,this.scroller.addEventListener("scroll",this.debouncer,!1),this.debouncer.handleEvent())},unpin:function(){var t=this.elem.classList,e=this.classes;!t.contains(e.pinned)&&t.contains(e.unpinned)||(t.add(e.unpinned),t.remove(e.pinned),this.onUnpin&&this.onUnpin.call(this))},pin:function(){var t=this.elem.classList,e=this.classes;t.contains(e.unpinned)&&(t.remove(e.unpinned),t.add(e.pinned),this.onPin&&this.onPin.call(this))},top:function(){var t=this.elem.classList,e=this.classes;t.contains(e.top)||(t.add(e.top),t.remove(e.notTop),this.onTop&&this.onTop.call(this))},notTop:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notTop)||(t.add(e.notTop),t.remove(e.top),this.onNotTop&&this.onNotTop.call(this))},bottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.bottom)||(t.add(e.bottom),t.remove(e.notBottom),this.onBottom&&this.onBottom.call(this))},notBottom:function(){var t=this.elem.classList,e=this.classes;t.contains(e.notBottom)||(t.add(e.notBottom),t.remove(e.bottom),this.onNotBottom&&this.onNotBottom.call(this))},getScrollY:function(){return void 0!==this.scroller.pageYOffset?this.scroller.pageYOffset:void 0!==this.scroller.scrollTop?this.scroller.scrollTop:(document.documentElement||document.body.parentNode||document.body).scrollTop},getViewportHeight:function(){return window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight},getElementPhysicalHeight:function(t){return Math.max(t.offsetHeight,t.clientHeight)},getScrollerPhysicalHeight:function(){return this.scroller===window||this.scroller===document.body?this.getViewportHeight():this.getElementPhysicalHeight(this.scroller)},getDocumentHeight:function(){var t=document.body,e=document.documentElement;return Math.max(t.scrollHeight,e.scrollHeight,t.offsetHeight,e.offsetHeight,t.clientHeight,e.clientHeight)},getElementHeight:function(t){return Math.max(t.scrollHeight,t.offsetHeight,t.clientHeight)},getScrollerHeight:function(){return this.scroller===window||this.scroller===document.body?this.getDocumentHeight():this.getElementHeight(this.scroller)},isOutOfBounds:function(t){var e=t<0,i=t+this.getScrollerPhysicalHeight()>this.getScrollerHeight();return e||i},toleranceExceeded:function(t,e){return Math.abs(t-this.lastKnownScrollY)>=this.tolerance[e]},shouldUnpin:function(t,e){var i=t>this.lastKnownScrollY,n=t>=this.offset;return i&&n&&e},shouldPin:function(t,e){var i=t<this.lastKnownScrollY,n=t<=this.offset;return i&&e||n},update:function(){var t=this.getScrollY(),e=t>this.lastKnownScrollY?"down":"up",i=this.toleranceExceeded(t,e);this.isOutOfBounds(t)||(t<=this.offset?this.top():this.notTop(),t+this.getViewportHeight()>=this.getScrollerHeight()?this.bottom():this.notBottom(),this.shouldUnpin(t,i)?this.unpin():this.shouldPin(t,i)&&this.pin(),this.lastKnownScrollY=t)}},i.options={tolerance:{up:0,down:0},offset:0,scroller:window,classes:{pinned:"headroom--pinned",unpinned:"headroom--unpinned",top:"headroom--top",notTop:"headroom--not-top",bottom:"headroom--bottom",notBottom:"headroom--not-bottom",initial:"headroom"}},i.cutsTheMustard=void 0!==t&&t.rAF&&t.bind&&t.classList,i})},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,i){"use strict";var n=i(74),r=i(13);t.exports=function(t){if("Function"===n(t))return r(t)}},function(t,e,i){"use strict";var n=i(13),r=i(9),o=i(74),s=Object,a=n("".split);t.exports=r(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"===o(t)?a(t,""):s(t)}:s},function(t,e,i){"use strict";var n=i(287),r=i(138);t.exports=function(t){var e=n(t,"string");return r(e)?e:e+""}},function(t,e,i){"use strict";var n=i(38),r=i(118);t.exports=function(t,e){var i=t[e];return r(i)?void 0:n(i)}},function(t,e,i){"use strict";var n=i(26),r=i(33),o=n.document,s=r(o)&&r(o.createElement);t.exports=function(t){return s?o.createElement(t):{}}},function(t,e,i){"use strict";var n={};n[i(19)("toStringTag")]="z",t.exports="[object z]"===String(n)},function(t,e,i){"use strict";var n=i(63),r=i(220),o=i(81),s=function(t){return function(e,i,s){var a=n(e),l=o(a);if(0===l)return!t&&-1;var u,c=r(s,l);if(t&&i!=i){for(;l>c;)if((u=a[c++])!=u)return!0}else for(;l>c;c++)if((t||c in a)&&a[c]===i)return t||c||0;return!t&&-1}};t.exports={includes:s(!0),indexOf:s(!1)}},function(t,e,i){"use strict";var n=i(141),r=Math.max,o=Math.min;t.exports=function(t,e){var i=n(t);return i<0?r(i+e,0):o(i,e)}},function(t,e,i){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},function(t,e,i){"use strict";var n=i(51);t.exports=function(t,e,i){return n.f(t,e,i)}},function(t,e,i){"use strict";var n=i(611);t.exports=function(t,e){return new(n(t))(0===e?0:e)}},function(t,e,i){"use strict";var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},function(t,e,i){"use strict";t.exports=function(){}},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(64),s=i(649),a=i(18),l=i(650),u=i(127),c=i(175),h=i(89),d=i(80),f=i(88),p=i(19),v=i(126),g=i(306),m=s.PROPER,y=s.CONFIGURABLE,_=g.IteratorPrototype,b=g.BUGGY_SAFARI_ITERATORS,x=p("iterator"),w=function(){return this};t.exports=function(t,e,i,s,p,g,S){l(i,e,s);var T,E,C,O=function(t){if(t===p&&L)return L;if(!b&&t&&t in k)return k[t];switch(t){case"keys":case"values":case"entries":return function(){return new i(this,t)}}return function(){return new i(this)}},M=e+" Iterator",P=!1,k=t.prototype,I=k[x]||k["@@iterator"]||p&&k[p],L=!b&&I||O(p),A="Array"===e&&k.entries||I;if(A&&(T=u(A.call(new t)))!==Object.prototype&&T.next&&(o||u(T)===_||(c?c(T,_):a(T[x])||f(T,x,w)),h(T,M,!0,!0),o&&(v[M]=w)),m&&"values"===p&&I&&"values"!==I.name&&(!o&&y?d(k,"name","values"):(P=!0,L=function(){return r(I,this)})),p)if(E={values:O("values"),keys:g?L:O("keys"),entries:O("entries")},S)for(C in E)!b&&!P&&C in k||f(k,C,E[C]);else n({target:e,proto:!0,forced:b||P},E);return o&&!S||k[x]===L||f(k,x,L,{name:p}),v[e]=L,E}},function(t,e,i){"use strict";t.exports=function(t,e){return{value:t,done:e}}},function(t,e,i){"use strict";t.exports=i(694)},function(t,e,i){"use strict";var n=i(9);t.exports=function(t,e){var i=[][t];return!!i&&n(function(){i.call(null,e||function(){return 1},1)})}},function(t,e,i){"use strict";t.exports=i(712)},function(t,e,i){"use strict";t.exports=i(718)},function(t,e,i){"use strict";var n=i(36),r=TypeError;t.exports=function(t,e){if(n(e,t))return t;throw new r("Incorrect invocation")}},function(t,e,i){"use strict";t.exports=r,t.exports.default=r;var n=i(814);function r(t,e){if(!(this instanceof r))return new r(t,e);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),e&&this._initFormat(e),this.clear()}function o(t,e,i){if(!i)return e.indexOf(t);for(var n=0;n<e.length;n++)if(i(t,e[n]))return n;return-1}function s(t,e){a(t,0,t.children.length,e,t)}function a(t,e,i,n,r){r||(r=v(null)),r.minX=1/0,r.minY=1/0,r.maxX=-1/0,r.maxY=-1/0;for(var o,s=e;s<i;s++)o=t.children[s],l(r,t.leaf?n(o):o);return r}function l(t,e){return t.minX=Math.min(t.minX,e.minX),t.minY=Math.min(t.minY,e.minY),t.maxX=Math.max(t.maxX,e.maxX),t.maxY=Math.max(t.maxY,e.maxY),t}function u(t,e){return t.minX-e.minX}function c(t,e){return t.minY-e.minY}function h(t){return(t.maxX-t.minX)*(t.maxY-t.minY)}function d(t){return t.maxX-t.minX+(t.maxY-t.minY)}function f(t,e){return t.minX<=e.minX&&t.minY<=e.minY&&e.maxX<=t.maxX&&e.maxY<=t.maxY}function p(t,e){return e.minX<=t.maxX&&e.minY<=t.maxY&&e.maxX>=t.minX&&e.maxY>=t.minY}function v(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function g(t,e,i,r,o){for(var s,a=[e,i];a.length;)(i=a.pop())-(e=a.pop())<=r||(s=e+Math.ceil((i-e)/r/2)*r,n(t,s,e,i,o),a.push(e,s,s,i))}r.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],n=this.toBBox;if(!p(t,e))return i;for(var r,o,s,a,l=[];e;){for(r=0,o=e.children.length;r<o;r++)s=e.children[r],p(t,a=e.leaf?n(s):s)&&(e.leaf?i.push(s):f(t,a)?this._all(s,i):l.push(s));e=l.pop()}return i},collides:function(t){var e=this.data,i=this.toBBox;if(!p(t,e))return!1;for(var n,r,o,s,a=[];e;){for(n=0,r=e.children.length;n<r;n++)if(o=e.children[n],p(t,s=e.leaf?i(o):o)){if(e.leaf||f(t,s))return!0;a.push(o)}e=a.pop()}return!1},load:function(t){if(!t||!t.length)return this;if(t.length<this._minEntries){for(var e=0,i=t.length;e<i;e++)this.insert(t[e]);return this}var n=this._build(t.slice(),0,t.length-1,0);if(this.data.children.length)if(this.data.height===n.height)this._splitRoot(this.data,n);else{if(this.data.height<n.height){var r=this.data;this.data=n,n=r}this._insert(n,this.data.height-n.height-1,!0)}else this.data=n;return this},insert:function(t){return t&&this._insert(t,this.data.height-1),this},clear:function(){return this.data=v([]),this},remove:function(t,e){if(!t)return this;for(var i,n,r,s,a=this.data,l=this.toBBox(t),u=[],c=[];a||u.length;){if(a||(a=u.pop(),n=u[u.length-1],i=c.pop(),s=!0),a.leaf&&-1!==(r=o(t,a.children,e)))return a.children.splice(r,1),u.push(a),this._condense(u),this;s||a.leaf||!f(a,l)?n?(i++,a=n.children[i],s=!1):a=null:(u.push(a),c.push(i),i=0,n=a,a=a.children[0])}return this},toBBox:function(t){return t},compareMinX:u,compareMinY:c,toJSON:function(){return this.data},fromJSON:function(t){return this.data=t,this},_all:function(t,e){for(var i=[];t;)t.leaf?e.push.apply(e,t.children):i.push.apply(i,t.children),t=i.pop();return e},_build:function(t,e,i,n){var r,o=i-e+1,a=this._maxEntries;if(o<=a)return s(r=v(t.slice(e,i+1)),this.toBBox),r;n||(n=Math.ceil(Math.log(o)/Math.log(a)),a=Math.ceil(o/Math.pow(a,n-1))),(r=v([])).leaf=!1,r.height=n;var l,u,c,h,d=Math.ceil(o/a),f=d*Math.ceil(Math.sqrt(a));for(g(t,e,i,f,this.compareMinX),l=e;l<=i;l+=f)for(g(t,l,c=Math.min(l+f-1,i),d,this.compareMinY),u=l;u<=c;u+=d)h=Math.min(u+d-1,c),r.children.push(this._build(t,u,h,n-1));return s(r,this.toBBox),r},_chooseSubtree:function(t,e,i,n){for(var r,o,s,a,l,u,c,d,f,p;n.push(e),!e.leaf&&n.length-1!==i;){for(c=d=1/0,r=0,o=e.children.length;r<o;r++)l=h(s=e.children[r]),f=t,p=s,(u=(Math.max(p.maxX,f.maxX)-Math.min(p.minX,f.minX))*(Math.max(p.maxY,f.maxY)-Math.min(p.minY,f.minY))-l)<d?(d=u,c=l<c?l:c,a=s):u===d&&l<c&&(c=l,a=s);e=a||e.children[0]}return e},_insert:function(t,e,i){var n=this.toBBox,r=i?t:n(t),o=[],s=this._chooseSubtree(r,this.data,e,o);for(s.children.push(t),l(s,r);e>=0&&o[e].children.length>this._maxEntries;)this._split(o,e),e--;this._adjustParentBBoxes(r,o,e)},_split:function(t,e){var i=t[e],n=i.children.length,r=this._minEntries;this._chooseSplitAxis(i,r,n);var o=this._chooseSplitIndex(i,r,n),a=v(i.children.splice(o,i.children.length-o));a.height=i.height,a.leaf=i.leaf,s(i,this.toBBox),s(a,this.toBBox),e?t[e-1].children.push(a):this._splitRoot(i,a)},_splitRoot:function(t,e){this.data=v([t,e]),this.data.height=t.height+1,this.data.leaf=!1,s(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){var n,r,o,s,l,u,c,d,f,p,v,g,m,y;for(u=c=1/0,n=e;n<=i-e;n++)r=a(t,0,n,this.toBBox),o=a(t,n,i,this.toBBox),f=r,p=o,void 0,void 0,void 0,void 0,v=Math.max(f.minX,p.minX),g=Math.max(f.minY,p.minY),m=Math.min(f.maxX,p.maxX),y=Math.min(f.maxY,p.maxY),s=Math.max(0,m-v)*Math.max(0,y-g),l=h(r)+h(o),s<u?(u=s,d=n,c=l<c?l:c):s===u&&l<c&&(c=l,d=n);return d},_chooseSplitAxis:function(t,e,i){var n=t.leaf?this.compareMinX:u,r=t.leaf?this.compareMinY:c;this._allDistMargin(t,e,i,n)<this._allDistMargin(t,e,i,r)&&t.children.sort(n)},_allDistMargin:function(t,e,i,n){t.children.sort(n);var r,o,s=this.toBBox,u=a(t,0,e,s),c=a(t,i-e,i,s),h=d(u)+d(c);for(r=e;r<i-e;r++)o=t.children[r],l(u,t.leaf?s(o):o),h+=d(u);for(r=i-e-1;r>=e;r--)o=t.children[r],l(c,t.leaf?s(o):o),h+=d(c);return h},_adjustParentBBoxes:function(t,e,i){for(var n=i;n>=0;n--)l(e[n],t)},_condense:function(t){for(var e,i=t.length-1;i>=0;i--)0===t[i].children.length?i>0?(e=t[i-1].children).splice(e.indexOf(t[i]),1):this.clear():s(t[i],this.toBBox)},_initFormat:function(t){var e=["return a"," - b",";"];this.compareMinX=new Function("a","b",e.join(t[0])),this.compareMinY=new Function("a","b",e.join(t[1])),this.toBBox=new Function("a","return {minX: a"+t[0]+", minY: a"+t[1]+", maxX: a"+t[2]+", maxY: a"+t[3]+"};")}}},function(t,e,i){"use strict";t.exports=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=void 0,r=void 0,o=void 0,s=[];return function(){var a=function(t){return"function"==typeof t?t():t}(e),l=(new Date).getTime(),u=!n||l-n>a;n=l;for(var c=arguments.length,h=Array(c),d=0;d<c;d++)h[d]=arguments[d];if(u&&i.leading)return i.accumulate?Promise.resolve(t.call(this,[h])).then(function(t){return t[0]}):Promise.resolve(t.call.apply(t,[this].concat(h)));if(r?clearTimeout(o):r=function(){var t={};return t.promise=new Promise(function(e,i){t.resolve=e,t.reject=i}),t}(),s.push(h),o=setTimeout(function(){var e=r;clearTimeout(o),Promise.resolve(i.accumulate?t.call(this,s):t.apply(this,s[s.length-1])).then(e.resolve,e.reject),s=[],r=null}.bind(this),a),i.accumulate){var f=s.length-1;return r.promise.then(function(t){return t[f]})}return r.promise}}},function(t,e,i){var n,r,o,s;s=function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i={rowHeight:250,rowHeightOrphan:function(t){return Math.round(t.heightAvg)},itemSelector:"*",objSelector:"img",dataWidth:"data-fld-width",dataHeight:"data-fld-height"};var n=function(t,e){if(!(t instanceof Element))throw new Error("`el` is not an element");return this.el=t,this.items=[],this._props={gutter:null,pendingResize:!1},this._bind={},this._settings=function(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];var r=Object(t);return Object.keys(i).forEach(function(t){void 0!==i[t]&&null!==i[t]&&Object.keys(i[t]).forEach(function(e){r[e]=i[t][e]})}),r}({},i,e),this._init(),this};n.prototype={_init:function(){this._setup(),this._attachEventListeners(),this.update()},_setup:function(){var t,e,i=null,n=null,r=null,o=0;for(t=(i=function(t,e){var i,n=[],r=null,o=null;for(r=e.split(","),t.id||(o="_temp_"+Math.random().toString(36).substr(2,10),t.setAttribute("id",o));r.length;)n.push("#"+t.id+" > "+r.pop());return i=document.querySelectorAll(n.join(", ")),o&&t.removeAttribute("id"),i}(this.el,this._settings.itemSelector)).length,e=getComputedStyle(i[0],null),this._props.gutter+=parseInt(e.marginLeft,10)||0,this._props.gutter+=parseInt(e.marginRight,10)||0,this._props.gutter+=parseInt(e.paddingLeft,10)||0,this._props.gutter+=parseInt(e.paddingRight,10)||0;o<t;o++)n=parseInt(i[o].getAttribute(this._settings.dataWidth),10),r=parseInt(i[o].getAttribute(this._settings.dataHeight),10),isNaN(n)||isNaN(r)||this.items.push({width:n,normWidth:n*(this._settings.rowHeight/r),height:r,el:i[o].querySelector(this._settings.objSelector)})},update:function(){for(var t=this.el.clientWidth,e=this.items.length,i=[],n=0,r=0,o=0,s=0,a=0,l=0,u=0,c=0,h=!1,d=0,f=0;d<e;d++)if(h=d===e-1,(r+=this.items[d].normWidth)+(s+=this._props.gutter)>=t||h){for((o=t-s)/r>1&&h?u=(a=this._settings.rowHeightOrphan.call(this,{heightAvg:l/i.length,heights:i}))/this._settings.rowHeight:(u=Math.min(o/r,1),a=Math.floor(u*this._settings.rowHeight)),i.push(a),l+=a,f=n;f<=d;f++)c=Math.floor(u*this.items[f].normWidth)-1,this.items[f].el.style.width=c+"px",this.items[f].el.style.height=a+"px";r=0,s=0,n=d+1}return this._props.pendingResize=!1,this},_attachEventListeners:function(){this._bind.resize=this._handleResize.bind(this),window.addEventListener("resize",this._bind.resize)},_handleResize:function(){this._props.pendingResize||(this._props.pendingResize=!0,window.requestAnimationFrame(this.update.bind(this)))},destroy:function(){window.removeEventListener("resize",this._bind.resize),this.el=this.items=this._bind=this._settings=this._handlers=null}},e.default=n,t.exports=e.default},r=[t,e],void 0===(o="function"==typeof(n=s)?n.apply(e,r):n)||(t.exports=o)},,function(t,e,i){"use strict";(function(t){if(i(390),i(587),i(588),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var e="defineProperty";function n(t,i,n){t[i]||Object[e](t,i,{writable:!0,configurable:!0,value:n})}n(String.prototype,"padLeft","".padStart),n(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&n(Array,t,Function.call.bind([][t]))})}).call(e,i(53))},function(t,e,i){t.exports=!i(22)&&!i(10)(function(){return 7!=Object.defineProperty(i(184)("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){e.f=i(16)},function(t,e,i){var n=i(54),r=i(55),o=i(151)(!1),s=i(186)("IE_PROTO");t.exports=function(t,e){var i,a=r(t),l=0,u=[];for(i in a)i!=s&&n(a,i)&&u.push(i);for(;e.length>l;)n(a,i=e[l++])&&(~o(u,i)||u.push(i));return u}},function(t,e,i){var n=i(31),r=i(6),o=i(94);t.exports=i(22)?Object.defineProperties:function(t,e){r(t);for(var i,s=o(e),a=s.length,l=0;a>l;)n.f(t,i=s[l++],e[i]);return t}},function(t,e,i){var n=i(55),r=i(97).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return s.slice()}}(t):r(n(t))}},function(t,e,i){"use strict";var n=i(22),r=i(94),o=i(152),s=i(134),a=i(34),l=i(133),u=Object.assign;t.exports=!u||i(10)(function(){var t={},e={},i=Symbol(),n="abcdefghijklmnopqrst";return t[i]=7,n.split("").forEach(function(t){e[t]=t}),7!=u({},t)[i]||Object.keys(u({},e)).join("")!=n})?function(t,e){for(var i=a(t),u=arguments.length,c=1,h=o.f,d=s.f;u>c;)for(var f,p=l(arguments[c++]),v=h?r(p).concat(h(p)):r(p),g=v.length,m=0;g>m;)f=v[m++],n&&!d.call(p,f)||(i[f]=p[f]);return i}:u},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,i){"use strict";var n=i(43),r=i(11),o=i(246),s=[].slice,a={};t.exports=Function.bind||function(t){var e=n(this),i=s.call(arguments,1),l=function(){var n=i.concat(s.call(arguments));return this instanceof l?function(t,e,i){if(!(e in a)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";a[e]=Function("F,a","return new F("+n.join(",")+")")}return a[e](t,i)}(e,n.length,n):o(e,n,t)};return r(e.prototype)&&(l.prototype=e.prototype),l}},function(t,e){t.exports=function(t,e,i){var n=void 0===i;switch(e.length){case 0:return n?t():t.call(i);case 1:return n?t(e[0]):t.call(i,e[0]);case 2:return n?t(e[0],e[1]):t.call(i,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(i,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(i,e[0],e[1],e[2],e[3])}return t.apply(i,e)}},function(t,e,i){var n=i(8).parseInt,r=i(114).trim,o=i(190),s=/^[-+]?0[xX]/;t.exports=8!==n(o+"08")||22!==n(o+"0x16")?function(t,e){var i=r(String(t),3);return n(i,e>>>0||(s.test(i)?16:10))}:n},function(t,e,i){var n=i(8).parseFloat,r=i(114).trim;t.exports=1/n(i(190)+"-0")!=-1/0?function(t){var e=r(String(t),3),i=n(e);return 0===i&&"-"==e.charAt(0)?-0:i}:n},function(t,e,i){var n=i(60);t.exports=function(t,e){if("number"!=typeof t&&"Number"!=n(t))throw TypeError(e);return+t}},function(t,e,i){var n=i(11),r=Math.floor;t.exports=function(t){return!n(t)&&isFinite(t)&&r(t)===t}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,i){var n=i(193),r=Math.pow,o=r(2,-52),s=r(2,-23),a=r(2,127)*(2-s),l=r(2,-126);t.exports=Math.fround||function(t){var e,i,r=Math.abs(t),u=n(t);return r<l?u*(r/l/s+1/o-1/o)*l*s:(i=(e=(1+s/o)*r)-(e-r))>a||i!=i?u*(1/0):u*i}},function(t,e,i){var n=i(6);t.exports=function(t,e,i,r){try{return r?e(n(i)[0],i[1]):e(i)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},function(t,e,i){var n=i(43),r=i(34),o=i(133),s=i(17);t.exports=function(t,e,i,a,l){n(e);var u=r(t),c=o(u),h=s(u.length),d=l?h-1:0,f=l?-1:1;if(i<2)for(;;){if(d in c){a=c[d],d+=f;break}if(d+=f,l?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:h>d;d+=f)d in c&&(a=e(a,c[d],d,u));return a}},function(t,e,i){"use strict";var n=i(34),r=i(95),o=i(17);t.exports=[].copyWithin||function(t,e){var i=n(this),s=o(i.length),a=r(t,s),l=r(e,s),u=arguments.length>2?arguments[2]:void 0,c=Math.min((void 0===u?s:r(u,s))-l,s-a),h=1;for(l<a&&a<l+c&&(h=-1,l+=c-1,a+=c-1);c-- >0;)l in i?i[a]=i[l]:delete i[a],a+=h,l+=h;return i}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,i){"use strict";var n=i(205);i(0)({target:"RegExp",proto:!0,forced:n!==/./.exec},{exec:n})},function(t,e,i){i(22)&&"g"!=/./g.flags&&i(31).f(RegExp.prototype,"flags",{configurable:!0,get:i(135)})},function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},function(t,e,i){var n=i(6),r=i(11),o=i(209);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},function(t,e,i){"use strict";var n=i(262),r=i(102);t.exports=i(160)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return n.def(r(this,"Map"),0===t?0:t,e)}},n,!0)},function(t,e,i){"use strict";var n=i(31).f,r=i(96),o=i(101),s=i(59),a=i(99),l=i(100),u=i(195),c=i(256),h=i(98),d=i(22),f=i(85).fastKey,p=i(102),v=d?"_s":"size",g=function(t,e){var i,n=f(e);if("F"!==n)return t._i[n];for(i=t._f;i;i=i.n)if(i.k==e)return i};t.exports={getConstructor:function(t,e,i,u){var c=t(function(t,n){a(t,c,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[v]=0,void 0!=n&&l(n,i,t[u],t)});return o(c.prototype,{clear:function(){for(var t=p(this,e),i=t._i,n=t._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete i[n.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var i=p(this,e),n=g(i,t);if(n){var r=n.n,o=n.p;delete i._i[n.i],n.r=!0,o&&(o.n=r),r&&(r.p=o),i._f==n&&(i._f=r),i._l==n&&(i._l=o),i[v]--}return!!n},forEach:function(t){p(this,e);for(var i,n=s(t,arguments.length>1?arguments[1]:void 0,3);i=i?i.n:this._f;)for(n(i.v,i.k,this);i&&i.r;)i=i.p},has:function(t){return!!g(p(this,e),t)}}),d&&n(c.prototype,"size",{get:function(){return p(this,e)[v]}}),c},def:function(t,e,i){var n,r,o=g(t,e);return o?o.v=i:(t._l=o={i:r=f(e,!0),k:e,v:i,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[v]++,"F"!==r&&(t._i[r]=o)),t},getEntry:g,setStrong:function(t,e,i){u(t,e,function(t,i){this._t=p(t,e),this._k=i,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?c(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,c(1))},i?"entries":"values",!i,!0),h(e)}}},function(t,e,i){"use strict";var n=i(262),r=i(102);t.exports=i(160)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,"Set"),t=0===t?0:t,t)}},n)},function(t,e,i){"use strict";var n,r=i(8),o=i(73)(0),s=i(49),a=i(85),l=i(243),u=i(265),c=i(11),h=i(102),d=i(102),f=!r.ActiveXObject&&"ActiveXObject"in r,p=a.getWeak,v=Object.isExtensible,g=u.ufstore,m=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(c(t)){var e=p(t);return!0===e?g(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return u.def(h(this,"WeakMap"),t,e)}},_=t.exports=i(160)("WeakMap",m,y,u,!0,!0);d&&f&&(l((n=u.getConstructor(m,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=_.prototype,i=e[t];s(e,t,function(e,r){if(c(e)&&!v(e)){this._f||(this._f=new n);var o=this._f[t](e,r);return"set"==t?this:o}return i.call(this,e,r)})}))},function(t,e,i){"use strict";var n=i(101),r=i(85).getWeak,o=i(6),s=i(11),a=i(99),l=i(100),u=i(73),c=i(54),h=i(102),d=u(5),f=u(6),p=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},m=function(t,e){return d(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=m(this,t);if(e)return e[1]},has:function(t){return!!m(this,t)},set:function(t,e){var i=m(this,t);i?i[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,i,o){var u=t(function(t,n){a(t,u,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=n&&l(n,i,t[o],t)});return n(u.prototype,{delete:function(t){if(!s(t))return!1;var i=r(t);return!0===i?v(h(this,e)).delete(t):i&&c(i,this._i)&&delete i[this._i]},has:function(t){if(!s(t))return!1;var i=r(t);return!0===i?v(h(this,e)).has(t):i&&c(i,this._i)}}),u},def:function(t,e,i){var n=r(o(e),!0);return!0===n?v(t).set(e,i):n[t._i]=i,t},ufstore:v}},function(t,e,i){var n=i(61),r=i(17);t.exports=function(t){if(void 0===t)return 0;var e=n(t),i=r(e);if(e!==i)throw RangeError("Wrong length!");return i}},function(t,e,i){var n=i(97),r=i(152),o=i(6),s=i(8).Reflect;t.exports=s&&s.ownKeys||function(t){var e=n.f(o(t)),i=r.f;return i?e.concat(i(t)):e}},function(t,e,i){"use strict";var n=i(153),r=i(11),o=i(17),s=i(59),a=i(16)("isConcatSpreadable");t.exports=function t(e,i,l,u,c,h,d,f){for(var p,v,g=c,m=0,y=!!d&&s(d,f,3);m<u;){if(m in l){if(p=y?y(l[m],m,i):l[m],v=!1,r(p)&&(v=void 0!==(v=p[a])?!!v:n(p)),v&&h>0)g=t(e,i,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=p}g++}m++}return g}},function(t,e,i){var n=i(17),r=i(192),o=i(71);t.exports=function(t,e,i,s){var a=String(o(t)),l=a.length,u=void 0===i?" ":String(i),c=n(e);if(c<=l||""==u)return a;var h=c-l,d=r.call(u,Math.ceil(h/u.length));return d.length>h&&(d=d.slice(0,h)),s?d+a:a+d}},function(t,e,i){var n=i(22),r=i(94),o=i(55),s=i(134).f;t.exports=function(t){return function(e){for(var i,a=o(e),l=r(a),u=l.length,c=0,h=[];u>c;)i=l[c++],n&&!s.call(a,i)||h.push(t?[i,a[i]]:a[i]);return h}}},function(t,e,i){var n=i(113),r=i(272);t.exports=function(t){return function(){if(n(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,i){var n=i(100);t.exports=function(t,e){var i=[];return n(t,!1,i.push,i,e),i}},function(t,e){t.exports=Math.scale||function(t,e,i,n,r){return 0===arguments.length||t!=t||e!=e||i!=i||n!=n||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-n)/(i-e)+n}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"ErrorBag",function(){return z}),i.d(e,"Rules",function(){return Mn}),i.d(e,"ValidationObserver",function(){return zn}),i.d(e,"ValidationProvider",function(){return Rn}),i.d(e,"Validator",function(){return _t}),i.d(e,"directive",function(){return yt}),i.d(e,"install",function(){return Vn}),i.d(e,"mapFields",function(){return In}),i.d(e,"mixin",function(){return gt}),i.d(e,"version",function(){return Yn}),i.d(e,"withValidation",function(){return Bn});var n=function(t){return L(["text","password","search","email","tel","url","textarea","number"],t.type)},r=function(t){return L(["radio","checkbox"],t.type)},o=function(t,e){return t.getAttribute("data-vv-"+e)},s=function(t){return"isNaN"in Number?Number.isNaN(t):"number"==typeof t&&t!=t},a=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return t.every(function(t){return null===t||void 0===t})},l=function(t,e){if(t instanceof RegExp&&e instanceof RegExp)return l(t.source,e.source)&&l(t.flags,e.flags);if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(var i=0;i<t.length;i++)if(!l(t[i],e[i]))return!1;return!0}return g(t)&&g(e)?Object.keys(t).every(function(i){return l(t[i],e[i])})&&Object.keys(e).every(function(i){return l(t[i],e[i])}):!(!s(t)||!s(e))||t===e},u=function(t){return a(t)?null:"FORM"===t.tagName?t:a(t.form)?a(t.parentNode)?null:u(t.parentNode):t.form},c=function(t,e,i){if(void 0===i&&(i=void 0),!t||!e)return i;var n=e;return t.split(".").every(function(t){return t in n?(n=n[t],!0):(n=i,!1)}),n},h=function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i={cancelled:!1}),0===e?t:function(){for(var r=[],o=arguments.length;o--;)r[o]=arguments[o];clearTimeout(n),(n=setTimeout(function(){n=null,i.cancelled||t.apply(void 0,r)},e))||t.apply(void 0,r)};var n},d=function(t,e){return e?t?("string"==typeof e&&(e=f(e)),w({},e,f(t))):f(e):f(t)},f=function(t){return t?g(t)?Object.keys(t).reduce(function(e,i){var n=[];return n=!0===t[i]?[]:Array.isArray(t[i])?t[i]:g(t[i])?t[i]:[t[i]],!1!==t[i]&&(e[i]=n),e},{}):"string"!=typeof t?(p("rules must be either a string or an object."),{}):t.split("|").reduce(function(t,e){var i=function(t){var e=[],i=t.split(":")[0];return L(t,":")&&(e=t.split(":").slice(1).join(":").split(",")),{name:i,params:e}}(e);return i.name?(t[i.name]=i.params,t):t},{}):{}},p=function(t){console.warn("[vee-validate] "+t)},v=function(t){return new Error("[vee-validate] "+t)},g=function(t){return null!==t&&t&&"object"==typeof t&&!Array.isArray(t)},m=function(t){return"function"==typeof t},y=function(t,e){return t.classList?t.classList.contains(e):!!t.className.match(new RegExp("(\\s|^)"+e+"(\\s|$)"))},_=function(t,e,i){if(t&&e){if(!Array.isArray(e))return i?function(t,e){t.classList?t.classList.add(e):y(t,e)||(t.className+=" "+e)}(t,e):void function(t,e){if(t.classList)t.classList.remove(e);else if(y(t,e)){var i=new RegExp("(\\s|^)"+e+"(\\s|$)");t.className=t.className.replace(i," ")}}(t,e);e.forEach(function(e){return _(t,e,i)})}},b=function(t){if(m(Array.from))return Array.from(t);for(var e=[],i=t.length,n=0;n<i;n++)e.push(t[n]);return e},x=function(t){if(Array.isArray(t))return[].concat(t);var e=b(t);return A(e)?[t]:e},w=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];if(m(Object.assign))return Object.assign.apply(Object,[t].concat(e));if(null==t)throw new TypeError("Cannot convert undefined or null to object");var n=Object(t);return e.forEach(function(t){null!=t&&Object.keys(t).forEach(function(e){n[e]=t[e]})}),n},S=0,T="{id}",E=function(t,e){for(var i=Array.isArray(t)?t:b(t),n=0;n<i.length;n++)if(e(i[n]))return n;return-1},C=function(t,e){var i=Array.isArray(t)?t:b(t),n=E(i,e);return-1===n?void 0:i[n]},O=function(t){if(!t)return!1;var e=t.componentOptions.tag;return/^(keep-alive|transition|transition-group)$/.test(e)},M=function(t){if("number"==typeof t)return t;if("string"==typeof t)return parseInt(t);var e={};for(var i in t)e[i]=parseInt(t[i]);return e},P=function(t,e){return g(t)&&g(e)?(Object.keys(e).forEach(function(i){var n,r;if(g(e[i]))return t[i]||w(t,((n={})[i]={},n)),void P(t[i],e[i]);w(t,((r={})[i]=e[i],r))}),t):t},k=function(t,e){if(t.required&&(e=d("required",e)),n(t))return"email"===t.type&&(e=d("email"+(t.multiple?":multiple":""),e)),t.pattern&&(e=d({regex:t.pattern},e)),t.maxLength>=0&&t.maxLength<524288&&(e=d("max:"+t.maxLength,e)),t.minLength>0&&(e=d("min:"+t.minLength,e)),"number"===t.type&&(e=d("decimal",e),""!==t.min&&(e=d("min_value:"+t.min,e)),""!==t.max&&(e=d("max_value:"+t.max,e))),e;if(function(t){return L(["date","week","month","datetime-local","time"],t.type)}(t)){var i=t.step&&Number(t.step)<60?"HH:mm:ss":"HH:mm";if("date"===t.type)return d("date_format:yyyy-MM-dd",e);if("datetime-local"===t.type)return d("date_format:yyyy-MM-ddT"+i,e);if("month"===t.type)return d("date_format:yyyy-MM",e);if("week"===t.type)return d("date_format:yyyy-[W]WW",e);if("time"===t.type)return d("date_format:"+i,e)}return e},I=function(t){return m(Object.values)?Object.values(t):Object.keys(t).map(function(e){return t[e]})},L=function(t,e){return-1!==t.indexOf(e)},A=function(t){return Array.isArray(t)&&0===t.length},R=function(t,e,i){Object.defineProperty(t,e,{configurable:!1,writable:!0,value:i})},F="en",D=function(t){void 0===t&&(t={}),this.container={},this.merge(t)},j={locale:{configurable:!0}};j.locale.get=function(){return F},j.locale.set=function(t){F=t||"en"},D.prototype.hasLocale=function(t){return!!this.container[t]},D.prototype.setDateFormat=function(t,e){this.container[t]||(this.container[t]={}),this.container[t].dateFormat=e},D.prototype.getDateFormat=function(t){return this.container[t]&&this.container[t].dateFormat?this.container[t].dateFormat:null},D.prototype.getMessage=function(t,e,i){var n=null;return n=this.hasMessage(t,e)?this.container[t].messages[e]:this._getDefaultMessage(t),m(n)?n.apply(void 0,i):n},D.prototype.getFieldMessage=function(t,e,i,n){if(!this.hasLocale(t))return this.getMessage(t,i,n);var r=this.container[t].custom&&this.container[t].custom[e];if(!r||!r[i])return this.getMessage(t,i,n);var o=r[i];return m(o)?o.apply(void 0,n):o},D.prototype._getDefaultMessage=function(t){return this.hasMessage(t,"_default")?this.container[t].messages._default:this.container.en.messages._default},D.prototype.getAttribute=function(t,e,i){return void 0===i&&(i=""),this.hasAttribute(t,e)?this.container[t].attributes[e]:i},D.prototype.hasMessage=function(t,e){return!!(this.hasLocale(t)&&this.container[t].messages&&this.container[t].messages[e])},D.prototype.hasAttribute=function(t,e){return!!(this.hasLocale(t)&&this.container[t].attributes&&this.container[t].attributes[e])},D.prototype.merge=function(t){P(this.container,t)},D.prototype.setMessage=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].messages||(this.container[t].messages={}),this.container[t].messages[e]=i},D.prototype.setAttribute=function(t,e,i){this.hasLocale(t)||(this.container[t]={messages:{},attributes:{}}),this.container[t].attributes[e]=i},Object.defineProperties(D.prototype,j);var N={default:new D({en:{messages:{},attributes:{},custom:{}}})},$="default",G=function(){};G._checkDriverName=function(t){if(!t)throw v("you must provide a name to the dictionary driver")},G.setDriver=function(t,e){void 0===e&&(e=null),this._checkDriverName(t),e&&(N[t]=e),$=t},G.getDriver=function(){return N[$]};var z=function t(e,i){void 0===e&&(e=null),void 0===i&&(i=null),this.vmId=i||null,this.items=e&&e instanceof t?e.items:[]};z.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},z.prototype.add=function(t){var e;(e=this.items).push.apply(e,this._normalizeError(t))},z.prototype._normalizeError=function(t){var e=this;return Array.isArray(t)?t.map(function(t){return t.scope=a(t.scope)?null:t.scope,t.vmId=a(t.vmId)?e.vmId||null:t.vmId,t}):(t.scope=a(t.scope)?null:t.scope,t.vmId=a(t.vmId)?this.vmId||null:t.vmId,[t])},z.prototype.regenerate=function(){this.items.forEach(function(t){t.msg=m(t.regenerate)?t.regenerate():t.msg})},z.prototype.update=function(t,e){var i=C(this.items,function(e){return e.id===t});if(i){var n=this.items.indexOf(i);this.items.splice(n,1),i.scope=e.scope,this.items.push(i)}},z.prototype.all=function(t){var e=this;return this.items.filter(function(i){var n=!0,r=!0;return a(t)||(n=i.scope===t),a(e.vmId)||(r=i.vmId===e.vmId),r&&n}).map(function(t){return t.msg})},z.prototype.any=function(t){var e=this;return!!this.items.filter(function(i){var n=!0,r=!0;return a(t)||(n=i.scope===t),a(e.vmId)||(r=i.vmId===e.vmId),r&&n}).length},z.prototype.clear=function(t){var e=this,i=a(this.vmId)?function(){return!0}:function(t){return t.vmId===e.vmId},n=function(e){return e.scope===t};0===arguments.length?n=function(){return!0}:a(t)&&(t=null);for(var r=0;r<this.items.length;++r)i(this.items[r])&&n(this.items[r])&&(this.items.splice(r,1),--r)},z.prototype.collect=function(t,e,i){var n=this;void 0===i&&(i=!0);var r=!a(t)&&!t.includes("*"),o=function(t){var e=t.reduce(function(t,e){return a(n.vmId)||e.vmId===n.vmId?(t[e.field]||(t[e.field]=[]),t[e.field].push(i?e.msg:e),t):t},{});return r?I(e)[0]||[]:e};if(a(t))return o(this.items);var s=a(e)?String(t):e+"."+t,l=this._makeCandidateFilters(s),u=l.isPrimary,c=l.isAlt,h=this.items.reduce(function(t,e){return u(e)&&t.primary.push(e),c(e)&&t.alt.push(e),t},{primary:[],alt:[]});return o(h=h.primary.length?h.primary:h.alt)},z.prototype.count=function(){var t=this;return this.vmId?this.items.filter(function(e){return e.vmId===t.vmId}).length:this.items.length},z.prototype.firstById=function(t){var e=C(this.items,function(e){return e.id===t});return e?e.msg:void 0},z.prototype.first=function(t,e){void 0===e&&(e=null);var i=a(e)?t:e+"."+t,n=this._match(i);return n&&n.msg},z.prototype.firstRule=function(t,e){var i=this.collect(t,e,!1);return i.length&&i[0].rule||void 0},z.prototype.has=function(t,e){return void 0===e&&(e=null),!!this.first(t,e)},z.prototype.firstByRule=function(t,e,i){void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule===e})[0];return n&&n.msg||void 0},z.prototype.firstNot=function(t,e,i){void 0===e&&(e="required"),void 0===i&&(i=null);var n=this.collect(t,i,!1).filter(function(t){return t.rule!==e})[0];return n&&n.msg||void 0},z.prototype.removeById=function(t){var e=function(e){return e.id===t};Array.isArray(t)&&(e=function(e){return-1!==t.indexOf(e.id)});for(var i=0;i<this.items.length;++i)e(this.items[i])&&(this.items.splice(i,1),--i)},z.prototype.remove=function(t,e,i){if(!a(t))for(var n,r=a(e)?String(t):e+"."+t,o=this._makeCandidateFilters(r),s=o.isPrimary,l=o.isAlt,u=function(t){return s(t)||l(t)},c=0;c<this.items.length;++c)n=this.items[c],(a(i)?u(n):u(n)&&n.vmId===i)&&(this.items.splice(c,1),--c)},z.prototype._makeCandidateFilters=function(t){var e=this,i=function(){return!0},n=function(){return!0},r=function(){return!0},o=function(){return!0},s=function(t){var e=null;if(L(t,":")&&(e=t.split(":").pop(),t=t.replace(":"+e,"")),"#"===t[0])return{id:t.slice(1),rule:e,name:null,scope:null};var i=null,n=t;if(L(t,".")){var r=t.split(".");i=r[0],n=r.slice(1).join(".")}return{id:null,scope:i,name:n,rule:e}}(t),l=s.id,u=s.rule,c=s.scope,h=s.name;if(u&&(i=function(t){return t.rule===u}),l)return{isPrimary:function(t){return i(t)&&function(t){return l===t.id}},isAlt:function(){return!1}};n=a(c)?function(t){return a(t.scope)}:function(t){return t.scope===c},a(h)||"*"===h||(r=function(t){return t.field===h}),a(this.vmId)||(o=function(t){return t.vmId===e.vmId});return{isPrimary:function(t){return o(t)&&r(t)&&i(t)&&n(t)},isAlt:function(t){return o(t)&&i(t)&&t.field===c+"."+h}}},z.prototype._match=function(t){if(!a(t)){var e=this._makeCandidateFilters(t),i=e.isPrimary,n=e.isAlt;return this.items.reduce(function(t,e,r,o){var s=r===o.length-1;return t.primary?s?t.primary:t:(i(e)&&(t.primary=e),n(e)&&(t.alt=e),s?t.primary||t.alt:t)},{})}};var B=w({},{locale:"en",delay:0,errorBagName:"errors",dictionary:null,fieldsBagName:"fields",classes:!1,classNames:null,events:"input",inject:!0,fastExit:!0,aria:!0,validity:!1,mode:"aggressive",useConstraintAttrs:!0,i18n:null,i18nRootKey:"validation"}),Y=function(t){var e=c("$options.$_veeValidate",t,{});return w({},B,e)},V=function(){return B},W=function(t){B=w({},B,t)};function H(t){return t.data?t.data.model?t.data.model:!!t.data.directives&&C(t.data.directives,function(t){return"model"===t.name}):null}function U(t){return H(t)?[t]:function(t){return Array.isArray(t)?t:Array.isArray(t.children)?t.children:t.componentOptions&&Array.isArray(t.componentOptions.children)?t.componentOptions.children:[]}(t).reduce(function(t,e){var i=U(e);return i.length&&t.push.apply(t,i),t},[])}function X(t){return t.componentOptions?t.componentOptions.Ctor.options.model:null}function q(t,e,i){if(m(t[e])){var n=t[e];t[e]=[n]}a(t[e])&&(t[e]=[]),t[e].push(i)}function K(t,e,i){t.componentOptions?function(t,e,i){t.componentOptions.listeners||(t.componentOptions.listeners={}),q(t.componentOptions.listeners,e,i)}(t,e,i):function(t,e,i){a(t.data.on)&&(t.data.on={}),q(t.data.on,e,i)}(t,e,i)}function Z(t,e){return t.componentOptions?(X(t)||{event:"input"}).event:e&&e.modifiers&&e.modifiers.lazy||"select"===t.tag?"change":t.data.attrs&&n({type:t.data.attrs.type||"text"})?"input":"change"}function J(t,e){return Array.isArray(e)&&e[0]?e[0]:e||t()}var Q=function(){};Q.generate=function(t,e,i){var n=Q.resolveModel(e,i),r=Y(i.context);return{name:Q.resolveName(t,i),el:t,listen:!e.modifiers.disable,bails:!!e.modifiers.bails||!0!==e.modifiers.continues&&void 0,scope:Q.resolveScope(t,e,i),vm:i.context,expression:e.value,component:i.componentInstance,classes:r.classes,classNames:r.classNames,getter:Q.resolveGetter(t,i,n),events:Q.resolveEvents(t,i)||r.events,model:n,delay:Q.resolveDelay(t,i,r),rules:Q.resolveRules(t,e,i),immediate:!!e.modifiers.initial||!!e.modifiers.immediate,persist:!!e.modifiers.persist,validity:r.validity&&!i.componentInstance,aria:r.aria&&!i.componentInstance,initialValue:Q.resolveInitialValue(i)}},Q.getCtorConfig=function(t){return t.componentInstance?c("componentInstance.$options.$_veeValidate",t):null},Q.resolveRules=function(t,e,i){var n="";if(e.value||e&&e.expression||(n=o(t,"rules")),e.value&&L(["string","object"],typeof e.value.rules)?n=e.value.rules:e.value&&(n=e.value),i.componentInstance)return n;var r=f(n);return V().useConstraintAttrs?w({},k(t,{}),r):r},Q.resolveInitialValue=function(t){var e=t.data.model||C(t.data.directives,function(t){return"model"===t.name});return e&&e.value},Q.resolveDelay=function(t,e,i){var n=o(t,"delay"),r=i&&"delay"in i?i.delay:0;return!n&&e.componentInstance&&e.componentInstance.$attrs&&(n=e.componentInstance.$attrs["data-vv-delay"]),g(r)?(a(n)||(r.input=n),M(r)):M(n||r)},Q.resolveEvents=function(t,e){var i=o(t,"validate-on");if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-validate-on"]),!i&&e.componentInstance){var n=Q.getCtorConfig(e);i=n&&n.events}if(!i&&V().events&&(i=V().events),i&&e.componentInstance&&L(i,"input")){var r=(e.componentInstance.$options.model||{event:"input"}).event;if(!r)return i;i=i.replace("input",r)}return i},Q.resolveScope=function(t,e,i){void 0===i&&(i={});var n=null;return i.componentInstance&&a(n)&&(n=i.componentInstance.$attrs&&i.componentInstance.$attrs["data-vv-scope"]),a(n)?function(t){var e=o(t,"scope");if(a(e)){var i=u(t);i&&(e=o(i,"scope"))}return a(e)?null:e}(t):n},Q.resolveModel=function(t,e){if(t.arg)return{expression:t.arg};var i=H(e);if(!i)return null;var n,r,o,s,a=!/[^\w.$]/.test(i.expression)&&(n=i.expression,r=e.context,o=r,s=null,n.split(".").reduce(function(t,e){return null==o||"object"!=typeof o?t&&!1:e in o?(o=o[e],s=null===s?e:s+"."+e,t&&!0):t&&!1},!0)),l=!(!i.modifiers||!i.modifiers.lazy);return a?{expression:i.expression,lazy:l}:{expression:null,lazy:l}},Q.resolveName=function(t,e){var i=o(t,"name");if(!i&&!e.componentInstance)return t.name;if(!i&&e.componentInstance&&e.componentInstance.$attrs&&(i=e.componentInstance.$attrs["data-vv-name"]||e.componentInstance.$attrs.name),!i&&e.componentInstance){var n=Q.getCtorConfig(e);return n&&m(n.name)?n.name.bind(e.componentInstance)():e.componentInstance.name}return i},Q.resolveGetter=function(t,e,i){if(i&&i.expression)return function(){return c(i.expression,e.context)};if(e.componentInstance){var n=o(t,"value-path")||e.componentInstance.$attrs&&e.componentInstance.$attrs["data-vv-value-path"];if(n)return function(){return c(n,e.componentInstance)};var r=Q.getCtorConfig(e);if(r&&m(r.value)){var s=r.value.bind(e.componentInstance);return function(){return s()}}var a=(e.componentInstance.$options.model||{prop:"value"}).prop;return function(){return e.componentInstance[a]}}switch(t.type){case"checkbox":return function(){var e=document.querySelectorAll('input[name="'+t.name+'"]');if((e=b(e).filter(function(t){return t.checked})).length)return e.map(function(t){return t.value})};case"radio":return function(){var e=document.querySelectorAll('input[name="'+t.name+'"]'),i=C(e,function(t){return t.checked});return i&&i.value};case"file":return function(e){return b(t.files)};case"select-multiple":return function(){return b(t.options).filter(function(t){return t.selected}).map(function(t){return t.value})};default:return function(){return t&&t.value}}};var tt={},et=function(){},it={rules:{configurable:!0}};et.add=function(t,e){var i=e.validate,n=e.options,r=e.paramNames;tt[t]={validate:i,options:n,paramNames:r}},it.rules.get=function(){return tt},et.has=function(t){return!!tt[t]},et.isImmediate=function(t){return!(!tt[t]||!tt[t].options.immediate)},et.isRequireRule=function(t){return!(!tt[t]||!tt[t].options.computesRequired)},et.isTargetRule=function(t){return!(!tt[t]||!tt[t].options.hasTarget)},et.remove=function(t){delete tt[t]},et.getParamNames=function(t){return tt[t]&&tt[t].paramNames},et.getOptions=function(t){return tt[t]&&tt[t].options},et.getValidatorMethod=function(t){return tt[t]?tt[t].validate:null},Object.defineProperties(et,it);var nt=function(t){return"undefined"!=typeof Event&&m(Event)&&t instanceof Event||t&&t.srcElement},rt=function(t){return t?"string"==typeof t?t.split("|"):t:[]},ot=!0,st=function(t,e,i){t.addEventListener(e,i,!!ot&&{passive:!0})},at={targetOf:null,immediate:!1,persist:!1,scope:null,listen:!0,name:null,rules:{},vm:null,classes:!1,validity:!0,aria:!0,events:"input|blur",delay:0,classNames:{touched:"touched",untouched:"untouched",valid:"valid",invalid:"invalid",pristine:"pristine",dirty:"dirty"}},lt=function(t){void 0===t&&(t={}),this.id=(S>=9999&&(S=0,T=T.replace("{id}","_{id}")),S++,T.replace("{id}",String(S))),this.el=t.el,this.updated=!1,this.vmId=t.vmId,R(this,"dependencies",[]),R(this,"watchers",[]),R(this,"events",[]),this.delay=0,this.rules={},this.forceRequired=!1,this._cacheId(t),this.classNames=w({},at.classNames),t=w({},at,t),this._delay=a(t.delay)?0:t.delay,this.validity=t.validity,this.aria=t.aria,this.flags=t.flags||{untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1},R(this,"vm",t.vm),R(this,"componentInstance",t.component),this.ctorConfig=this.componentInstance?c("$options.$_veeValidate",this.componentInstance):void 0,this.update(t),this.initialValue=this.value,this.updated=!1},ut={validator:{configurable:!0},isRequired:{configurable:!0},isDisabled:{configurable:!0},alias:{configurable:!0},value:{configurable:!0},bails:{configurable:!0},rejectsFalse:{configurable:!0}};ut.validator.get=function(){return this.vm&&this.vm.$validator?this.vm.$validator:{validate:function(){return Promise.resolve(!0)}}},ut.isRequired.get=function(){return!!this.rules.required||this.forceRequired},ut.isDisabled.get=function(){return!(!this.el||!this.el.disabled)},ut.alias.get=function(){if(this._alias)return this._alias;var t=null;return this.ctorConfig&&this.ctorConfig.alias&&(t=m(this.ctorConfig.alias)?this.ctorConfig.alias.call(this.componentInstance):this.ctorConfig.alias),!t&&this.el&&(t=o(this.el,"as")),!t&&this.componentInstance?this.componentInstance.$attrs&&this.componentInstance.$attrs["data-vv-as"]:t},ut.value.get=function(){if(m(this.getter))return this.getter()},ut.bails.get=function(){return this._bails},ut.rejectsFalse.get=function(){return this.componentInstance&&this.ctorConfig?!!this.ctorConfig.rejectsFalse:!!this.el&&"checkbox"===this.el.type},lt.prototype.matches=function(t){var e=this;return!t||(t.id?this.id===t.id:!!(a(t.vmId)?function(){return!0}:function(t){return t===e.vmId})(t.vmId)&&(void 0===t.name&&void 0===t.scope||(void 0===t.scope?this.name===t.name:void 0===t.name?this.scope===t.scope:t.name===this.name&&t.scope===this.scope)))},lt.prototype._cacheId=function(t){this.el&&!t.targetOf&&(this.el._veeValidateId=this.id)},lt.prototype.waitFor=function(t){this._waitingFor=t},lt.prototype.isWaitingFor=function(t){return this._waitingFor===t},lt.prototype.update=function(t){var e,i,n,r=this;if(this.targetOf=t.targetOf||null,this.immediate=t.immediate||this.immediate||!1,this.persist=t.persist||this.persist||!1,!a(t.scope)&&t.scope!==this.scope&&m(this.validator.update)&&this.validator.update(this.id,{scope:t.scope}),this.scope=a(t.scope)?a(this.scope)?null:this.scope:t.scope,this.name=(a(t.name)?t.name:String(t.name))||this.name||null,this.rules=void 0!==t.rules?f(t.rules):this.rules,this._bails=void 0!==t.bails?t.bails:this._bails,this.model=t.model||this.model,this.listen=void 0!==t.listen?t.listen:this.listen,this.classes=!(!t.classes&&!this.classes)&&!this.componentInstance,this.classNames=g(t.classNames)?P(this.classNames,t.classNames):this.classNames,this.getter=m(t.getter)?t.getter:this.getter,this._alias=t.alias||this._alias,this.events=t.events?rt(t.events):this.events,this.delay=(e=this.events,i=t.delay||this.delay,n=this._delay,"number"==typeof i?e.reduce(function(t,e){return t[e]=i,t},{}):e.reduce(function(t,e){return"object"==typeof i&&e in i?(t[e]=i[e],t):"number"==typeof n?(t[e]=n,t):(t[e]=n&&n[e]||0,t)},{})),this.updateDependencies(),this.addActionListeners(),void 0!==t.rules&&(this.flags.required=this.isRequired),0===Object.keys(t.rules||{}).length&&this.updated){var o=this.flags.validated;this.validator.validate("#"+this.id).then(function(){r.flags.validated=o})}this.flags.validated&&void 0!==t.rules&&this.updated&&this.validator.validate("#"+this.id),this.updated=!0,this.addValueListeners(),this.el&&(this.updateClasses(),this.updateAriaAttrs())},lt.prototype.reset=function(){var t=this;this._cancellationToken&&(this._cancellationToken.cancelled=!0,delete this._cancellationToken);var e={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1};Object.keys(this.flags).filter(function(t){return"required"!==t}).forEach(function(i){t.flags[i]=e[i]}),this.initialValue=this.value,this.flags.changed=!1,this.addValueListeners(),this.addActionListeners(),this.updateClasses(!0),this.updateAriaAttrs(),this.updateCustomValidity()},lt.prototype.setFlags=function(t){var e=this,i={pristine:"dirty",dirty:"pristine",valid:"invalid",invalid:"valid",touched:"untouched",untouched:"touched"};Object.keys(t).forEach(function(n){e.flags[n]=t[n],i[n]&&void 0===t[i[n]]&&(e.flags[i[n]]=!t[n])}),void 0===t.untouched&&void 0===t.touched&&void 0===t.dirty&&void 0===t.pristine||this.addActionListeners(),this.updateClasses(),this.updateAriaAttrs(),this.updateCustomValidity()},lt.prototype.updateDependencies=function(){var t=this;this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[];var e=Object.keys(this.rules).reduce(function(e,i){return et.isTargetRule(i)&&e.push({selector:t.rules[i][0],name:i}),e},[]);e.length&&this.vm&&this.vm.$el&&e.forEach(function(e){var i=e.selector,n=e.name,r=t.vm.$refs[i],o=Array.isArray(r)?r[0]:r;if(o){var s={vm:t.vm,classes:t.classes,classNames:t.classNames,delay:t.delay,scope:t.scope,events:t.events.join("|"),immediate:t.immediate,targetOf:t.id};m(o.$watch)?(s.component=o,s.el=o.$el,s.getter=Q.resolveGetter(o.$el,o.$vnode)):(s.el=o,s.getter=Q.resolveGetter(o,{})),t.dependencies.push({name:n,field:new lt(s)})}})},lt.prototype.unwatch=function(t){if(void 0===t&&(t=null),!t)return this.watchers.forEach(function(t){return t.unwatch()}),void(this.watchers=[]);this.watchers.filter(function(e){return t.test(e.tag)}).forEach(function(t){return t.unwatch()}),this.watchers=this.watchers.filter(function(e){return!t.test(e.tag)})},lt.prototype.updateClasses=function(t){var e=this;if(void 0===t&&(t=!1),this.classes&&!this.isDisabled){var i=function(i){_(i,e.classNames.dirty,e.flags.dirty),_(i,e.classNames.pristine,e.flags.pristine),_(i,e.classNames.touched,e.flags.touched),_(i,e.classNames.untouched,e.flags.untouched),t&&(_(i,e.classNames.valid,!1),_(i,e.classNames.invalid,!1)),!a(e.flags.valid)&&e.flags.validated&&_(i,e.classNames.valid,e.flags.valid),!a(e.flags.invalid)&&e.flags.validated&&_(i,e.classNames.invalid,e.flags.invalid)};if(r(this.el)){var n=document.querySelectorAll('input[name="'+this.el.name+'"]');b(n).forEach(i)}else i(this.el)}},lt.prototype.addActionListeners=function(){var t=this;if(this.unwatch(/class/),this.el){var e=function(){t.flags.touched=!0,t.flags.untouched=!1,t.classes&&(_(t.el,t.classNames.touched,!0),_(t.el,t.classNames.untouched,!1)),t.unwatch(/^class_blur$/)},i=n(this.el)?"input":"change",o=function(){t.flags.dirty=!0,t.flags.pristine=!1,t.classes&&(_(t.el,t.classNames.pristine,!1),_(t.el,t.classNames.dirty,!0)),t.unwatch(/^class_input$/)};if(this.componentInstance&&m(this.componentInstance.$once))return this.componentInstance.$once("input",o),this.componentInstance.$once("blur",e),this.watchers.push({tag:"class_input",unwatch:function(){t.componentInstance.$off("input",o)}}),void this.watchers.push({tag:"class_blur",unwatch:function(){t.componentInstance.$off("blur",e)}});if(this.el){st(this.el,i,o);var s=r(this.el)?"change":"blur";st(this.el,s,e),this.watchers.push({tag:"class_input",unwatch:function(){t.el.removeEventListener(i,o)}}),this.watchers.push({tag:"class_blur",unwatch:function(){t.el.removeEventListener(s,e)}})}}},lt.prototype.checkValueChanged=function(){return(null!==this.initialValue||""!==this.value||!n(this.el))&&this.value!==this.initialValue},lt.prototype._determineInputEvent=function(){return this.componentInstance?this.componentInstance.$options.model&&this.componentInstance.$options.model.event||"input":this.model&&this.model.lazy?"change":n(this.el)?"input":"change"},lt.prototype._determineEventList=function(t){var e=this;return!this.events.length||this.componentInstance||n(this.el)?[].concat(this.events).map(function(t){return"input"===t&&e.model&&e.model.lazy?"change":t}):this.events.map(function(e){return"input"===e?t:e})},lt.prototype.addValueListeners=function(){var t=this;if(this.unwatch(/^input_.+/),this.listen&&this.el){var e={cancelled:!1},i=this.targetOf?function(){var e=t.validator._resolveField("#"+t.targetOf);e&&e.flags.validated&&t.validator.validate("#"+t.targetOf)}:function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];(0===i.length||nt(i[0]))&&(i[0]=t.value),t.flags.pending=!0,t._cancellationToken=e,t.validator.validate("#"+t.id,i[0])},n=this._determineInputEvent(),r=this._determineEventList(n);if(L(r,n)){var o=null,s=null,a=!1;if(this.model&&this.model.expression&&(o=this.vm,s=this.model.expression,a=!0),!s&&this.componentInstance&&this.componentInstance.$options.model&&(o=this.componentInstance,s=this.componentInstance.$options.model.prop||"value"),o&&s){var l=h(i,this.delay[n],e),u=o.$watch(s,l);this.watchers.push({tag:"input_model",unwatch:function(){t.vm.$nextTick(function(){u()})}}),a&&(r=r.filter(function(t){return t!==n}))}}r.forEach(function(n){var r=h(i,t.delay[n],e);t._addComponentEventListener(n,r),t._addHTMLEventListener(n,r)})}},lt.prototype._addComponentEventListener=function(t,e){var i=this;this.componentInstance&&(this.componentInstance.$on(t,e),this.watchers.push({tag:"input_vue",unwatch:function(){i.componentInstance.$off(t,e)}}))},lt.prototype._addHTMLEventListener=function(t,e){var i=this;if(this.el&&!this.componentInstance){var n=function(n){st(n,t,e),i.watchers.push({tag:"input_native",unwatch:function(){n.removeEventListener(t,e)}})};if(n(this.el),r(this.el)){var o=document.querySelectorAll('input[name="'+this.el.name+'"]');b(o).forEach(function(t){t._veeValidateId&&t!==i.el||n(t)})}}},lt.prototype.updateAriaAttrs=function(){var t=this;if(this.aria&&this.el&&m(this.el.setAttribute)){var e=function(e){e.setAttribute("aria-required",t.isRequired?"true":"false"),e.setAttribute("aria-invalid",t.flags.invalid?"true":"false")};if(r(this.el)){var i=document.querySelectorAll('input[name="'+this.el.name+'"]');b(i).forEach(e)}else e(this.el)}},lt.prototype.updateCustomValidity=function(){this.validity&&this.el&&m(this.el.setCustomValidity)&&this.validator.errors&&this.el.setCustomValidity(this.flags.valid?"":this.validator.errors.firstById(this.id)||"")},lt.prototype.destroy=function(){this._cancellationToken&&(this._cancellationToken.cancelled=!0),this.unwatch(),this.dependencies.forEach(function(t){return t.field.destroy()}),this.dependencies=[]},Object.defineProperties(lt.prototype,ut);var ct=function(t){void 0===t&&(t=[]),this.items=t||[],this.itemsById=this.items.reduce(function(t,e){return t[e.id]=e,t},{})},ht={length:{configurable:!0}};ct.prototype["function"==typeof Symbol?Symbol.iterator:"@@iterator"]=function(){var t=this,e=0;return{next:function(){return{value:t.items[e++],done:e>t.items.length}}}},ht.length.get=function(){return this.items.length},ct.prototype.find=function(t){return C(this.items,function(e){return e.matches(t)})},ct.prototype.findById=function(t){return this.itemsById[t]||null},ct.prototype.filter=function(t){return Array.isArray(t)?this.items.filter(function(e){return t.some(function(t){return e.matches(t)})}):this.items.filter(function(e){return e.matches(t)})},ct.prototype.map=function(t){return this.items.map(t)},ct.prototype.remove=function(t){var e=null;if(!(e=t instanceof lt?t:this.find(t)))return null;var i=this.items.indexOf(e);return this.items.splice(i,1),delete this.itemsById[e.id],e},ct.prototype.push=function(t){if(!(t instanceof lt))throw v("FieldBag only accepts instances of Field that has an id defined.");if(!t.id)throw v("Field id must be defined.");if(this.findById(t.id))throw v("Field with id "+t.id+" is already added.");this.items.push(t),this.itemsById[t.id]=t},Object.defineProperties(ct.prototype,ht);var dt=function(t,e){this.id=e._uid,this._base=t,this._paused=!1,this.errors=new z(t.errors,this.id)},ft={flags:{configurable:!0},rules:{configurable:!0},fields:{configurable:!0},dictionary:{configurable:!0},locale:{configurable:!0}};ft.flags.get=function(){var t=this;return this._base.fields.items.filter(function(e){return e.vmId===t.id}).reduce(function(t,e){return e.scope&&(t["$"+e.scope]||(t["$"+e.scope]={}),t["$"+e.scope][e.name]=e.flags),t[e.name]=e.flags,t},{})},ft.rules.get=function(){return this._base.rules},ft.fields.get=function(){return new ct(this._base.fields.filter({vmId:this.id}))},ft.dictionary.get=function(){return this._base.dictionary},ft.locale.get=function(){return this._base.locale},ft.locale.set=function(t){this._base.locale=t},dt.prototype.localize=function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];return(t=this._base).localize.apply(t,e)},dt.prototype.update=function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];return(t=this._base).update.apply(t,e)},dt.prototype.attach=function(t){var e=w({},t,{vmId:this.id});return this._base.attach(e)},dt.prototype.pause=function(){this._paused=!0},dt.prototype.resume=function(){this._paused=!1},dt.prototype.remove=function(t){return this._base.remove(t)},dt.prototype.detach=function(t,e){return this._base.detach(t,e,this.id)},dt.prototype.extend=function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];return(t=this._base).extend.apply(t,e)},dt.prototype.validate=function(t,e,i){return void 0===i&&(i={}),this._paused?Promise.resolve(!0):this._base.validate(t,e,w({},{vmId:this.id},i||{}))},dt.prototype.verify=function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];return(t=this._base).verify.apply(t,e)},dt.prototype.validateAll=function(t,e){return void 0===e&&(e={}),this._paused?Promise.resolve(!0):this._base.validateAll(t,w({},{vmId:this.id},e||{}))},dt.prototype.validateScopes=function(t){return void 0===t&&(t={}),this._paused?Promise.resolve(!0):this._base.validateScopes(w({},{vmId:this.id},t||{}))},dt.prototype.destroy=function(){delete this.id,delete this._base},dt.prototype.reset=function(t){return this._base.reset(Object.assign({},t||{},{vmId:this.id}))},dt.prototype.flag=function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];return(t=this._base).flag.apply(t,e.concat([this.id]))},dt.prototype._resolveField=function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];return(t=this._base)._resolveField.apply(t,e)},Object.defineProperties(dt.prototype,ft);var pt=null,vt=function(){return pt},gt={provide:function(){return this.$validator&&!O(this.$vnode)?{$validator:this.$validator}:{}},beforeCreate:function(){if(!O(this.$vnode)&&!1!==this.$options.$__veeInject){this.$parent||W(this.$options.$_veeValidate||{});var t=Y(this);(!this.$parent||this.$options.$_veeValidate&&/new/.test(this.$options.$_veeValidate.validator))&&(this.$validator=new dt(vt(),this));var e,i=(e=this.$options.inject,!(!g(e)||!e.$validator));if(this.$validator||!t.inject||i||(this.$validator=new dt(vt(),this)),i||this.$validator){if(!i&&this.$validator)this.$options._base.util.defineReactive(this.$validator,"errors",this.$validator.errors);this.$options.computed||(this.$options.computed={}),this.$options.computed[t.errorBagName||"errors"]=function(){return this.$validator.errors},this.$options.computed[t.fieldsBagName||"fields"]=function(){return this.$validator.fields.items.reduce(function(t,e){return e.scope?(t["$"+e.scope]||(t["$"+e.scope]={}),t["$"+e.scope][e.name]=e.flags,t):(t[e.name]=e.flags,t)},{})}}}},beforeDestroy:function(){this.$validator&&this._uid===this.$validator.id&&this.$validator.errors.clear()}};function mt(t,e){return e&&e.$validator?e.$validator.fields.findById(t._veeValidateId):null}var yt={bind:function(t,e,i){var n=i.context.$validator;if(n){var r=Q.generate(t,e,i);n.attach(r)}},inserted:function(t,e,i){var n=mt(t,i.context),r=Q.resolveScope(t,e,i);n&&r!==n.scope&&(n.update({scope:r}),n.updated=!1)},update:function(t,e,i){var n=mt(t,i.context);if(!(!n||n.updated&&l(e.value,e.oldValue))){var r=Q.resolveScope(t,e,i),o=Q.resolveRules(t,e,i);n.update({scope:r,rules:o})}},unbind:function(t,e,i){var n=i.context,r=mt(t,n);r&&n.$validator.detach(r)}},_t=function(t,e,i){void 0===e&&(e={fastExit:!0}),void 0===i&&(i=null),this.errors=new z,this.fields=new ct,this._createFields(t),this.paused=!1,this.fastExit=!!a(e&&e.fastExit)||e.fastExit,this.$vee=i||{_vm:{$nextTick:function(t){return m(t)?t():Promise.resolve()},$emit:function(){},$off:function(){}}}},bt={rules:{configurable:!0},dictionary:{configurable:!0},flags:{configurable:!0},locale:{configurable:!0}},xt={rules:{configurable:!0},dictionary:{configurable:!0},locale:{configurable:!0}};xt.rules.get=function(){return et.rules},bt.rules.get=function(){return et.rules},bt.dictionary.get=function(){return G.getDriver()},xt.dictionary.get=function(){return G.getDriver()},bt.flags.get=function(){return this.fields.items.reduce(function(t,e){var i;return e.scope?(t["$"+e.scope]=((i={})[e.name]=e.flags,i),t):(t[e.name]=e.flags,t)},{})},bt.locale.get=function(){return _t.locale},bt.locale.set=function(t){_t.locale=t},xt.locale.get=function(){return G.getDriver().locale},xt.locale.set=function(t){var e=t!==G.getDriver().locale;G.getDriver().locale=t,e&&_t.$vee&&_t.$vee._vm&&_t.$vee._vm.$emit("localeChanged")},_t.create=function(t,e){return new _t(t,e)},_t.extend=function(t,e,i){void 0===i&&(i={}),_t._guardExtend(t,e);var n=e.options||{};_t._merge(t,{validator:e,paramNames:i&&i.paramNames||e.paramNames,options:w({hasTarget:!1,immediate:!0},n,i||{})})},_t.remove=function(t){et.remove(t)},_t.prototype.localize=function(t,e){_t.localize(t,e)},_t.localize=function(t,e){var i;if(g(t))G.getDriver().merge(t);else{if(e){var n=t||e.name;e=w({},e),G.getDriver().merge(((i={})[n]=e,i))}t&&(_t.locale=t)}},_t.prototype.attach=function(t){var e=this,i={name:t.name,scope:t.scope,persist:!0},n=t.persist?this.fields.find(i):null;n&&(t.flags=n.flags,n.destroy(),this.fields.remove(n));var r=t.initialValue,o=new lt(t);return this.fields.push(o),o.immediate?this.$vee._vm.$nextTick(function(){return e.validate("#"+o.id,r||o.value,{vmId:t.vmId})}):this._validate(o,r||o.value,{initial:!0}).then(function(t){o.flags.valid=t.valid,o.flags.invalid=!t.valid}),o},_t.prototype.flag=function(t,e,i){void 0===i&&(i=null);var n=this._resolveField(t,void 0,i);n&&e&&n.setFlags(e)},_t.prototype.detach=function(t,e,i){var n=m(t.destroy)?t:this._resolveField(t,e,i);n&&(n.persist||(n.destroy(),this.errors.remove(n.name,n.scope,n.vmId),this.fields.remove(n)))},_t.prototype.extend=function(t,e,i){void 0===i&&(i={}),_t.extend(t,e,i)},_t.prototype.reset=function(t){var e=this;return this.$vee._vm.$nextTick().then(function(){return e.$vee._vm.$nextTick()}).then(function(){e.fields.filter(t).forEach(function(i){i.waitFor(null),i.reset(),e.errors.remove(i.name,i.scope,t&&t.vmId)})})},_t.prototype.update=function(t,e){var i=e.scope;this._resolveField("#"+t)&&this.errors.update(t,{scope:i})},_t.prototype.remove=function(t){_t.remove(t)},_t.prototype.validate=function(t,e,i){var n=this;void 0===i&&(i={});var r=i.silent,o=i.vmId;if(this.paused)return Promise.resolve(!0);if(a(t))return this.validateScopes({silent:r,vmId:o});if("*"===t)return this.validateAll(void 0,{silent:r,vmId:o});if(/^(.+)\.\*$/.test(t)){var s=t.match(/^(.+)\.\*$/)[1];return this.validateAll(s)}var l=this._resolveField(t);if(!l)return this._handleFieldNotFound(t);r||(l.flags.pending=!0),void 0===e&&(e=l.value);var u=this._validate(l,e);return l.waitFor(u),u.then(function(t){return!r&&l.isWaitingFor(u)&&(l.waitFor(null),n._handleValidationResults([t],o)),t.valid})},_t.prototype.pause=function(){return this.paused=!0,this},_t.prototype.resume=function(){return this.paused=!1,this},_t.prototype.validateAll=function(t,e){var i=this;void 0===e&&(e={});var n=e.silent,r=e.vmId;if(this.paused)return Promise.resolve(!0);var o=null,s=!1;return"string"==typeof t?o={scope:t,vmId:r}:g(t)?(o=Object.keys(t).map(function(t){return{name:t,vmId:r,scope:null}}),s=!0):o=Array.isArray(t)?t.map(function(t){return"object"==typeof t?Object.assign({vmId:r},t):{name:t,vmId:r}}):{scope:null,vmId:r},Promise.all(this.fields.filter(o).map(function(e){return i._validate(e,s?t[e.name]:e.value)})).then(function(t){return n||i._handleValidationResults(t,r),t.every(function(t){return t.valid})})},_t.prototype.validateScopes=function(t){var e=this;void 0===t&&(t={});var i=t.silent,n=t.vmId;return this.paused?Promise.resolve(!0):Promise.all(this.fields.filter({vmId:n}).map(function(t){return e._validate(t,t.value)})).then(function(t){return i||e._handleValidationResults(t,n),t.every(function(t){return t.valid})})},_t.prototype.verify=function(t,e,i){void 0===i&&(i={});var n={name:i&&i.name||"{field}",rules:f(e),bails:c("bails",i,!0),forceRequired:!1,get isRequired(){return!!this.rules.required||this.forceRequired}},r=Object.keys(n.rules).filter(et.isTargetRule);return r.length&&i&&g(i.values)&&(n.dependencies=r.map(function(t){var e=n.rules[t][0];return{name:t,field:{value:i.values[e]}}})),this._validate(n,t).then(function(t){var e=[],i={};return t.errors.forEach(function(t){e.push(t.msg),i[t.rule]=t.msg}),{valid:t.valid,errors:e,failedRules:i}})},_t.prototype.destroy=function(){this.$vee._vm.$off("localeChanged")},_t.prototype._createFields=function(t){var e=this;t&&Object.keys(t).forEach(function(i){var n=w({},{name:i,rules:t[i]});e.attach(n)})},_t.prototype._getDateFormat=function(t){var e=null;return t.date_format&&Array.isArray(t.date_format)&&(e=t.date_format[0]),e||G.getDriver().getDateFormat(this.locale)},_t.prototype._formatErrorMessage=function(t,e,i,n){void 0===i&&(i={}),void 0===n&&(n=null);var r=this._getFieldDisplayName(t),o=this._getLocalizedParams(e,n);return G.getDriver().getFieldMessage(this.locale,t.name,e.name,[r,o,i])},_t.prototype._convertParamObjectToArray=function(t,e){if(Array.isArray(t))return t;var i=et.getParamNames(e);return i&&g(t)?i.reduce(function(e,i){return i in t&&e.push(t[i]),e},[]):t},_t.prototype._getLocalizedParams=function(t,e){void 0===e&&(e=null);var i=this._convertParamObjectToArray(t.params,t.name);return t.options.hasTarget&&i&&i[0]?[e||G.getDriver().getAttribute(this.locale,i[0],i[0])].concat(i.slice(1)):i},_t.prototype._getFieldDisplayName=function(t){return t.alias||G.getDriver().getAttribute(this.locale,t.name,t.name)},_t.prototype._convertParamArrayToObj=function(t,e){var i=et.getParamNames(e);if(!i)return t;if(g(t)){if(i.some(function(e){return-1!==Object.keys(t).indexOf(e)}))return t;t=[t]}return t.reduce(function(t,e,n){return t[i[n]]=e,t},{})},_t.prototype._test=function(t,e,i){var n=this,r=et.getValidatorMethod(i.name),o=Array.isArray(i.params)?b(i.params):i.params;o||(o=[]);var s=null;if(!r||"function"!=typeof r)return Promise.reject(v("No such validator '"+i.name+"' exists."));if(i.options.hasTarget&&t.dependencies){var a=C(t.dependencies,function(t){return t.name===i.name});a&&(s=a.field.alias,o=[a.field.value].concat(o.slice(1)))}else"required"===i.name&&t.rejectsFalse&&(o=o.length?o:[!0]);if(i.options.isDate){var l=this._getDateFormat(t.rules);"date_format"!==i.name&&o.push(l)}var u=r(e,this._convertParamArrayToObj(o,i.name));return m(u.then)?u.then(function(e){var r=!0,o={};return Array.isArray(e)?r=e.every(function(t){return g(t)?t.valid:t}):(r=g(e)?e.valid:e,o=e.data),{valid:r,data:u.data,errors:r?[]:[n._createFieldError(t,i,o,s)]}}):(g(u)||(u={valid:u,data:{}}),{valid:u.valid,data:u.data,errors:u.valid?[]:[this._createFieldError(t,i,u.data,s)]})},_t._merge=function(t,e){var i=e.validator,n=e.options,r=e.paramNames,o=m(i)?i:i.validate;i.getMessage&&G.getDriver().setMessage(_t.locale,t,i.getMessage),et.add(t,{validate:o,options:n,paramNames:r})},_t._guardExtend=function(t,e){if(!m(e)&&!m(e.validate))throw v("Extension Error: The validator '"+t+"' must be a function or have a 'validate' method.")},_t.prototype._createFieldError=function(t,e,i,n){var r=this;return{id:t.id,vmId:t.vmId,field:t.name,msg:this._formatErrorMessage(t,e,i,n),rule:e.name,scope:t.scope,regenerate:function(){return r._formatErrorMessage(t,e,i,n)}}},_t.prototype._resolveField=function(t,e,i){if("#"===t[0])return this.fields.findById(t.slice(1));if(!a(e))return this.fields.find({name:t,scope:e,vmId:i});if(L(t,".")){var n=t.split("."),r=n[0],o=n.slice(1),s=this.fields.find({name:o.join("."),scope:r,vmId:i});if(s)return s}return this.fields.find({name:t,scope:null,vmId:i})},_t.prototype._handleFieldNotFound=function(t,e){var i=a(e)?t:(a(e)?"":e+".")+t;return Promise.reject(v('Validating a non-existent field: "'+i+'". Use "attach()" first.'))},_t.prototype._handleValidationResults=function(t,e){var i=this,n=t.map(function(t){return{id:t.id}});this.errors.removeById(n.map(function(t){return t.id})),t.forEach(function(t){i.errors.remove(t.field,t.scope,e)});var r=t.reduce(function(t,e){return t.push.apply(t,e.errors),t},[]);this.errors.add(r),this.fields.filter(n).forEach(function(e){var i=C(t,function(t){return t.id===e.id});e.setFlags({pending:!1,valid:i.valid,validated:!0})})},_t.prototype._shouldSkip=function(t,e){return!1!==t.bails&&(!(!t.isDisabled||!V().useConstraintAttrs)||!t.isRequired&&(a(e)||""===e||A(e)))},_t.prototype._shouldBail=function(t){return void 0!==t.bails?t.bails:this.fastExit},_t.prototype._validate=function(t,e,i){var n=this;void 0===i&&(i={});var r=i.initial,o=Object.keys(t.rules).filter(et.isRequireRule);if(t.forceRequired=!1,o.forEach(function(i){var r=et.getOptions(i),o=n._test(t,e,{name:i,params:t.rules[i],options:r});if(m(o.then))throw v("Require rules cannot be async");if(!g(o))throw v("Require rules has to return an object (see docs)");!0===o.data.required&&(t.forceRequired=!0)}),this._shouldSkip(t,e))return Promise.resolve({valid:!0,id:t.id,field:t.name,scope:t.scope,errors:[]});var s=[],a=[],l=!1;return m(t.checkValueChanged)&&(t.flags.changed=t.checkValueChanged()),Object.keys(t.rules).filter(function(t){return!r||!et.has(t)||et.isImmediate(t)}).some(function(i){var r=et.getOptions(i),o=n._test(t,e,{name:i,params:t.rules[i],options:r});return m(o.then)?s.push(o):!o.valid&&n._shouldBail(t)?(a.push.apply(a,o.errors),l=!0):s.push(new Promise(function(t){return t(o)})),l}),l?Promise.resolve({valid:!1,errors:a,id:t.id,field:t.name,scope:t.scope}):Promise.all(s).then(function(e){return e.reduce(function(t,e){var i;return e.valid||(i=t.errors).push.apply(i,e.errors),t.valid=t.valid&&e.valid,t},{valid:!0,errors:a,id:t.id,field:t.name,scope:t.scope})})},Object.defineProperties(_t.prototype,bt),Object.defineProperties(_t,xt);var wt=function(t){return g(t)?Object.keys(t).reduce(function(e,i){return e[i]=wt(t[i]),e},{}):m(t)?t("{0}",["{1}","{2}","{3}"]):t},St=function(t,e){this.i18n=t,this.rootKey=e},Tt={locale:{configurable:!0}};Tt.locale.get=function(){return this.i18n.locale},Tt.locale.set=function(t){p("Cannot set locale from the validator when using vue-i18n, use i18n.locale setter instead")},St.prototype.getDateFormat=function(t){return this.i18n.getDateTimeFormat(t||this.locale)},St.prototype.setDateFormat=function(t,e){this.i18n.setDateTimeFormat(t||this.locale,e)},St.prototype.getMessage=function(t,e,i){var n=this.rootKey+".messages."+e,r=i;return Array.isArray(i)&&(r=[].concat.apply([],i)),this.i18n.te(n)?this.i18n.t(n,r):this.i18n.te(n,this.i18n.fallbackLocale)?this.i18n.t(n,this.i18n.fallbackLocale,r):this.i18n.t(this.rootKey+".messages._default",r)},St.prototype.getAttribute=function(t,e,i){void 0===i&&(i="");var n=this.rootKey+".attributes."+e;return this.i18n.te(n)?this.i18n.t(n):i},St.prototype.getFieldMessage=function(t,e,i,n){var r=this.rootKey+".custom."+e+"."+i;return this.i18n.te(r)?this.i18n.t(r,n):this.getMessage(t,i,n)},St.prototype.merge=function(t){var e=this;Object.keys(t).forEach(function(i){var n,r=P({},c(i+"."+e.rootKey,e.i18n.messages,{})),o=P(r,function(t){var e={};return t.messages&&(e.messages=wt(t.messages)),t.custom&&(e.custom=wt(t.custom)),t.attributes&&(e.attributes=t.attributes),a(t.dateFormat)||(e.dateFormat=t.dateFormat),e}(t[i]));e.i18n.mergeLocaleMessage(i,((n={})[e.rootKey]=o,n)),o.dateFormat&&e.i18n.setDateTimeFormat(i,o.dateFormat)})},St.prototype.setMessage=function(t,e,i){var n,r;this.merge(((r={})[t]={messages:(n={},n[e]=i,n)},r))},St.prototype.setAttribute=function(t,e,i){var n,r;this.merge(((r={})[t]={attributes:(n={},n[e]=i,n)},r))},Object.defineProperties(St.prototype,Tt);var Et,Ct,Ot,Mt={aggressive:function(){return{on:["input"]}},eager:function(t){return t.errors.length?{on:["input"]}:{on:["change","blur"]}},passive:function(){return{on:[]}},lazy:function(){return{on:["change"]}}},Pt=function(t,e){var i;this.configure(t),Ot=this,e&&(Et=e),this._validator=(i=new _t(null,{fastExit:t&&t.fastExit},this),pt=i,i),this._initVM(this.config),this._initI18n(this.config)},kt={i18nDriver:{configurable:!0},config:{configurable:!0}},It={i18nDriver:{configurable:!0},config:{configurable:!0}};Pt.setI18nDriver=function(t,e){G.setDriver(t,e)},Pt.configure=function(t){W(t)},Pt.setMode=function(t,e){if(W({mode:t}),e){if(!m(e))throw new Error("A mode implementation must be a function");Mt[t]=e}},Pt.use=function(t,e){return void 0===e&&(e={}),m(t)?Ot?void t({Validator:_t,ErrorBag:z,Rules:_t.rules},e):(Ct||(Ct=[]),void Ct.push({plugin:t,options:e})):p("The plugin must be a callable function")},Pt.install=function(t,e){Et&&t===Et||(Et=t,Ot=new Pt(e),_t.$vee=Ot,function(){try{var t=Object.defineProperty({},"passive",{get:function(){ot=!0}});window.addEventListener("testPassive",null,t),window.removeEventListener("testPassive",null,t)}catch(t){ot=!1}}(),Et.mixin(gt),Et.directive("validate",yt),Ct&&(Ct.forEach(function(t){var e=t.plugin,i=t.options;Pt.use(e,i)}),Ct=null))},kt.i18nDriver.get=function(){return G.getDriver()},It.i18nDriver.get=function(){return G.getDriver()},kt.config.get=function(){return V()},It.config.get=function(){return V()},Pt.prototype._initVM=function(t){var e=this;this._vm=new Et({data:function(){return{errors:e._validator.errors,fields:e._validator.fields}}})},Pt.prototype._initI18n=function(t){var e=this,i=t.dictionary,n=t.i18n,r=t.i18nRootKey,o=t.locale,s=function(){i&&e.i18nDriver.merge(i),e._validator.errors.regenerate()};n?(Pt.setI18nDriver("i18n",new St(n,r)),n._vm.$watch("locale",s)):"undefined"!=typeof window&&this._vm.$on("localeChanged",s),i&&this.i18nDriver.merge(i),o&&!n&&this._validator.localize(o)},Pt.prototype.configure=function(t){W(t)},Object.defineProperties(Pt.prototype,kt),Object.defineProperties(Pt,It),Pt.mixin=gt,Pt.directive=yt,Pt.Validator=_t,Pt.ErrorBag=z;var Lt,At={name:"en",messages:{_default:function(t){return"The "+t+" value is not valid"},after:function(t,e){var i=e[0];return"The "+t+" must be after "+(e[1]?"or equal to ":"")+i},alpha:function(t){return"The "+t+" field may only contain alphabetic characters"},alpha_dash:function(t){return"The "+t+" field may contain alpha-numeric characters as well as dashes and underscores"},alpha_num:function(t){return"The "+t+" field may only contain alpha-numeric characters"},alpha_spaces:function(t){return"The "+t+" field may only contain alphabetic characters as well as spaces"},before:function(t,e){var i=e[0];return"The "+t+" must be before "+(e[1]?"or equal to ":"")+i},between:function(t,e){return"The "+t+" field must be between "+e[0]+" and "+e[1]},confirmed:function(t){return"The "+t+" confirmation does not match"},credit_card:function(t){return"The "+t+" field is invalid"},date_between:function(t,e){return"The "+t+" must be between "+e[0]+" and "+e[1]},date_format:function(t,e){return"The "+t+" must be in the format "+e[0]},decimal:function(t,e){void 0===e&&(e=[]);var i=e[0];return void 0===i&&(i="*"),"The "+t+" field must be numeric and may contain"+(i&&"*"!==i?" "+i:"")+" decimal points"},digits:function(t,e){return"The "+t+" field must be numeric and contains exactly "+e[0]+" digits"},dimensions:function(t,e){return"The "+t+" field must be "+e[0]+" pixels by "+e[1]+" pixels"},email:function(t){return"The "+t+" field must be a valid email"},excluded:function(t){return"The "+t+" field must be a valid value"},ext:function(t){return"The "+t+" field must be a valid file"},image:function(t){return"The "+t+" field must be an image"},included:function(t){return"The "+t+" field must be a valid value"},integer:function(t){return"The "+t+" field must be an integer"},ip:function(t){return"The "+t+" field must be a valid ip address"},ip_or_fqdn:function(t){return"The "+t+" field must be a valid ip address or FQDN"},length:function(t,e){var i=e[0],n=e[1];return n?"The "+t+" length must be between "+i+" and "+n:"The "+t+" length must be "+i},max:function(t,e){return"The "+t+" field may not be greater than "+e[0]+" characters"},max_value:function(t,e){return"The "+t+" field must be "+e[0]+" or less"},mimes:function(t){return"The "+t+" field must have a valid file type"},min:function(t,e){return"The "+t+" field must be at least "+e[0]+" characters"},min_value:function(t,e){return"The "+t+" field must be "+e[0]+" or more"},numeric:function(t){return"The "+t+" field may only contain numeric characters"},regex:function(t){return"The "+t+" field format is invalid"},required:function(t){return"The "+t+" field is required"},required_if:function(t,e){return"The "+t+" field is required when the "+e[0]+" field has this value"},size:function(t,e){return"The "+t+" size must be less than "+function(t){var e=0==(t=1024*Number(t))?0:Math.floor(Math.log(t)/Math.log(1024));return 1*(t/Math.pow(1024,e)).toFixed(2)+" "+["Byte","KB","MB","GB","TB","PB","EB","ZB","YB"][e]}(e[0])},url:function(t){return"The "+t+" field is not a valid URL"}},attributes:{}};function Rt(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}"undefined"!=typeof VeeValidate&&VeeValidate.Validator.localize(((Lt={})[At.name]=At,Lt));var Ft=6e4;function Dt(t){var e=new Date(t.getTime()),i=e.getTimezoneOffset();e.setSeconds(0,0);var n=e.getTime()%Ft;return i*Ft+n}var jt=36e5,Nt=6e4,$t=2,Gt={dateTimeDelimeter:/[T ]/,plainTime:/:/,timeZoneDelimeter:/[Z ]/i,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-])(\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function zt(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===t)return new Date(NaN);var i=e||{},n=null==i.additionalDigits?$t:Rt(i.additionalDigits);if(2!==n&&1!==n&&0!==n)throw new RangeError("additionalDigits must be 0, 1 or 2");if(t instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))return new Date(t.getTime());if("number"==typeof t||"[object Number]"===Object.prototype.toString.call(t))return new Date(t);if("string"!=typeof t&&"[object String]"!==Object.prototype.toString.call(t))return new Date(NaN);var r=function(t){var e,i={},n=t.split(Gt.dateTimeDelimeter);Gt.plainTime.test(n[0])?(i.date=null,e=n[0]):(i.date=n[0],e=n[1],Gt.timeZoneDelimeter.test(i.date)&&(i.date=t.split(Gt.timeZoneDelimeter)[0],e=t.substr(i.date.length,t.length)));if(e){var r=Gt.timezone.exec(e);r?(i.time=e.replace(r[1],""),i.timezone=r[1]):i.time=e}return i}(t),o=function(t,e){var i,n=Gt.YYY[e],r=Gt.YYYYY[e];if(i=Gt.YYYY.exec(t)||r.exec(t)){var o=i[1];return{year:parseInt(o,10),restDateString:t.slice(o.length)}}if(i=Gt.YY.exec(t)||n.exec(t)){var s=i[1];return{year:100*parseInt(s,10),restDateString:t.slice(s.length)}}return{year:null}}(r.date,n),s=o.year,a=function(t,e){if(null===e)return null;var i,n,r,o;if(0===t.length)return(n=new Date(0)).setUTCFullYear(e),n;if(i=Gt.MM.exec(t))return n=new Date(0),r=parseInt(i[1],10)-1,Ht(e,r)?(n.setUTCFullYear(e,r),n):new Date(NaN);if(i=Gt.DDD.exec(t)){n=new Date(0);var s=parseInt(i[1],10);return function(t,e){if(e<1)return!1;var i=Wt(t);if(i&&e>366)return!1;if(!i&&e>365)return!1;return!0}(e,s)?(n.setUTCFullYear(e,0,s),n):new Date(NaN)}if(i=Gt.MMDD.exec(t)){n=new Date(0),r=parseInt(i[1],10)-1;var a=parseInt(i[2],10);return Ht(e,r,a)?(n.setUTCFullYear(e,r,a),n):new Date(NaN)}if(i=Gt.Www.exec(t))return o=parseInt(i[1],10)-1,Ut(e,o)?Bt(e,o):new Date(NaN);if(i=Gt.WwwD.exec(t)){o=parseInt(i[1],10)-1;var l=parseInt(i[2],10)-1;return Ut(e,o,l)?Bt(e,o,l):new Date(NaN)}return null}(o.restDateString,s);if(isNaN(a))return new Date(NaN);if(a){var l,u=a.getTime(),c=0;if(r.time&&(c=function(t){var e,i,n;if(e=Gt.HH.exec(t))return Xt(i=parseFloat(e[1].replace(",",".")))?i%24*jt:NaN;if(e=Gt.HHMM.exec(t))return i=parseInt(e[1],10),n=parseFloat(e[2].replace(",",".")),Xt(i,n)?i%24*jt+n*Nt:NaN;if(e=Gt.HHMMSS.exec(t)){i=parseInt(e[1],10),n=parseInt(e[2],10);var r=parseFloat(e[3].replace(",","."));return Xt(i,n,r)?i%24*jt+n*Nt+1e3*r:NaN}return null}(r.time),isNaN(c)))return new Date(NaN);if(r.timezone){if(l=function(t){var e,i,n;if(e=Gt.timezoneZ.exec(t))return 0;if(e=Gt.timezoneHH.exec(t))return n=parseInt(e[2],10),qt()?(i=n*jt,"+"===e[1]?-i:i):NaN;if(e=Gt.timezoneHHMM.exec(t)){n=parseInt(e[2],10);var r=parseInt(e[3],10);return qt(n,r)?(i=n*jt+r*Nt,"+"===e[1]?-i:i):NaN}return 0}(r.timezone),isNaN(l))return new Date(NaN)}else l=Dt(new Date(u+c)),l=Dt(new Date(u+c+l));return new Date(u+c+l)}return new Date(NaN)}function Bt(t,e,i){e=e||0,i=i||0;var n=new Date(0);n.setUTCFullYear(t,0,4);var r=7*e+i+1-(n.getUTCDay()||7);return n.setUTCDate(n.getUTCDate()+r),n}var Yt=[31,28,31,30,31,30,31,31,30,31,30,31],Vt=[31,29,31,30,31,30,31,31,30,31,30,31];function Wt(t){return t%400==0||t%4==0&&t%100!=0}function Ht(t,e,i){if(e<0||e>11)return!1;if(null!=i){if(i<1)return!1;var n=Wt(t);if(n&&i>Vt[e])return!1;if(!n&&i>Yt[e])return!1}return!0}function Ut(t,e,i){return!(e<0||e>52)&&(null==i||!(i<0||i>6))}function Xt(t,e,i){return(null==t||!(t<0||t>=25))&&((null==e||!(e<0||e>=60))&&(null==i||!(i<0||i>=60)))}function qt(t,e){return null==e||!(e<0||e>59)}function Kt(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e);return!isNaN(i)}var Zt={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Jt(t){return function(e){var i=e||{},n=i.width?String(i.width):t.defaultWidth;return t.formats[n]||t.formats[t.defaultWidth]}}var Qt={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function te(t){return function(e,i){var n=i||{},r=n.width?String(n.width):t.defaultWidth;return("formatting"===(n.context?String(n.context):"standalone")&&t.formattingValues?t.formattingValues[r]||t.formattingValues[t.defaultFormattingWidth]:t.values[r]||t.values[t.defaultWidth])[t.argumentCallback?t.argumentCallback(e):e]}}function ee(t){return function(e,i){var n=String(e),r=i||{},o=r.width,s=o&&t.matchPatterns[o]||t.matchPatterns[t.defaultMatchWidth],a=n.match(s);if(!a)return null;var l,u=a[0],c=o&&t.parsePatterns[o]||t.parsePatterns[t.defaultParseWidth];return l="[object Array]"===Object.prototype.toString.call(c)?c.findIndex(function(t){return t.test(n)}):function(t,e){for(var i in t)if(t.hasOwnProperty(i)&&e(t[i]))return i}(c,function(t){return t.test(n)}),l=t.valueCallback?t.valueCallback(l):l,{value:l=r.valueCallback?r.valueCallback(l):l,rest:n.slice(u.length)}}}var ie,ne={formatDistance:function(t,e,i){var n;return i=i||{},n="string"==typeof Zt[t]?Zt[t]:1===e?Zt[t].one:Zt[t].other.replace("{{count}}",e),i.addSuffix?i.comparison>0?"in "+n:n+" ago":n},formatLong:{date:Jt({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Jt({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Jt({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:function(t,e,i,n){return Qt[t]},localize:{ordinalNumber:function(t,e){var i=Number(t),n=i%100;if(n>20||n<10)switch(n%10){case 1:return i+"st";case 2:return i+"nd";case 3:return i+"rd"}return i+"th"},era:te({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:te({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:te({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:te({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:te({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaulFormattingWidth:"wide"})},match:{ordinalNumber:(ie={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t,e){var i=String(t),n=e||{},r=i.match(ie.matchPattern);if(!r)return null;var o=r[0],s=i.match(ie.parsePattern);if(!s)return null;var a=ie.valueCallback?ie.valueCallback(s[0]):s[0];return{value:a=n.valueCallback?n.valueCallback(a):a,rest:i.slice(o.length)}}),era:ee({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ee({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ee({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ee({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ee({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}},re=864e5;function oe(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e),n=i.getUTCDay(),r=(n<1?7:0)+n-1;return i.setUTCDate(i.getUTCDate()-r),i.setUTCHours(0,0,0,0),i}function se(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e),n=i.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=oe(r,e),s=new Date(0);s.setUTCFullYear(n,0,4),s.setUTCHours(0,0,0,0);var a=oe(s,e);return i.getTime()>=o.getTime()?n+1:i.getTime()>=a.getTime()?n:n-1}var ae=6048e5;function le(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e),n=oe(i,e).getTime()-function(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=se(t,e),n=new Date(0);return n.setUTCFullYear(i,0,4),n.setUTCHours(0,0,0,0),oe(n,e)}(i,e).getTime();return Math.round(n/ae)+1}function ue(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=e||{},n=i.locale,r=n&&n.options&&n.options.weekStartsOn,o=null==r?0:Rt(r),s=null==i.weekStartsOn?o:Rt(i.weekStartsOn);if(!(s>=0&&s<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var a=zt(t,i),l=a.getUTCDay(),u=(l<s?7:0)+l-s;return a.setUTCDate(a.getUTCDate()-u),a.setUTCHours(0,0,0,0),a}function ce(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e),n=i.getUTCFullYear(),r=e||{},o=r.locale,s=o&&o.options&&o.options.firstWeekContainsDate,a=null==s?1:Rt(s),l=null==r.firstWeekContainsDate?a:Rt(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=new Date(0);u.setUTCFullYear(n+1,0,l),u.setUTCHours(0,0,0,0);var c=ue(u,e),h=new Date(0);h.setUTCFullYear(n,0,l),h.setUTCHours(0,0,0,0);var d=ue(h,e);return i.getTime()>=c.getTime()?n+1:i.getTime()>=d.getTime()?n:n-1}var he=6048e5;function de(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e),n=ue(i,e).getTime()-function(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=e||{},n=i.locale,r=n&&n.options&&n.options.firstWeekContainsDate,o=null==r?1:Rt(r),s=null==i.firstWeekContainsDate?o:Rt(i.firstWeekContainsDate),a=ce(t,e),l=new Date(0);return l.setUTCFullYear(a,0,s),l.setUTCHours(0,0,0,0),ue(l,e)}(i,e).getTime();return Math.round(n/he)+1}var fe="midnight",pe="noon",ve="morning",ge="afternoon",me="evening",ye="night",_e={G:function(t,e,i){var n=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(n,{width:"abbreviated"});case"GGGGG":return i.era(n,{width:"narrow"});case"GGGG":default:return i.era(n,{width:"wide"})}},y:function(t,e,i,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return"yy"===e?be(o%100,2):"yo"===e?i.ordinalNumber(o,{unit:"year"}):be(o,e.length)},Y:function(t,e,i,n){var r=ce(t,n),o=r>0?r:1-r;return"YY"===e?be(o%100,2):"Yo"===e?i.ordinalNumber(o,{unit:"year"}):be(o,e.length)},R:function(t,e,i,n){return be(se(t,n),e.length)},u:function(t,e,i,n){return be(t.getUTCFullYear(),e.length)},Q:function(t,e,i,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return be(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i,n){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return be(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i,n){var r=t.getUTCMonth();switch(e){case"M":return String(r+1);case"MM":return be(r+1,2);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i,n){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return be(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,n){var r=de(t,n);return"wo"===e?i.ordinalNumber(r,{unit:"week"}):be(r,e.length)},I:function(t,e,i,n){var r=le(t,n);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):be(r,e.length)},d:function(t,e,i,n){var r=t.getUTCDate();return"do"===e?i.ordinalNumber(r,{unit:"date"}):be(r,e.length)},D:function(t,e,i,n){var r=function(t,e){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");var i=zt(t,e),n=i.getTime();i.setUTCMonth(0,1),i.setUTCHours(0,0,0,0);var r=n-i.getTime();return Math.floor(r/re)+1}(t,n);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):be(r,e.length)},E:function(t,e,i,n){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});case"EEEE":default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,n){var r=t.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(e){case"e":return String(o);case"ee":return be(o,2);case"eo":return i.ordinalNumber(o,{unit:"day"});case"eee":return i.day(r,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(r,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(r,{width:"short",context:"formatting"});case"eeee":default:return i.day(r,{width:"wide",context:"formatting"})}},c:function(t,e,i,n){var r=t.getUTCDay(),o=(r-n.weekStartsOn+8)%7||7;switch(e){case"c":return String(o);case"cc":return be(o,e.length);case"co":return i.ordinalNumber(o,{unit:"day"});case"ccc":return i.day(r,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(r,{width:"narrow",context:"standalone"});case"cccccc":return i.day(r,{width:"short",context:"standalone"});case"cccc":default:return i.day(r,{width:"wide",context:"standalone"})}},i:function(t,e,i,n){var r=t.getUTCDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return be(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});case"iiii":default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){var n=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaaaa":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,e,i){var n,r=t.getUTCHours();switch(n=12===r?pe:0===r?fe:r/12>=1?"pm":"am",e){case"b":case"bb":case"bbb":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbbbb":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,e,i){var n,r=t.getUTCHours();switch(n=r>=17?me:r>=12?ge:r>=4?ve:ye,e){case"B":case"BB":case"BBB":return i.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,e,i,n){var r=t.getUTCHours()%12;return 0===r&&(r=12),"ho"===e?i.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},H:function(t,e,i,n){var r=t.getUTCHours();return"Ho"===e?i.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},K:function(t,e,i,n){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},k:function(t,e,i,n){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):be(r,e.length)},m:function(t,e,i,n){var r=t.getUTCMinutes();return"mo"===e?i.ordinalNumber(r,{unit:"minute"}):be(r,e.length)},s:function(t,e,i,n){var r=t.getUTCSeconds();return"so"===e?i.ordinalNumber(r,{unit:"second"}):be(r,e.length)},S:function(t,e,i,n){var r=e.length,o=t.getUTCMilliseconds();return be(Math.floor(o*Math.pow(10,r-3)),r)},X:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();if(0===r)return"Z";switch(e){case"X":return we(r);case"XXXX":case"XX":return xe(r);case"XXXXX":case"XXX":default:return xe(r,":")}},x:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();switch(e){case"x":return we(r);case"xxxx":case"xx":return xe(r);case"xxxxx":case"xxx":default:return xe(r,":")}},O:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+Se(r,":");case"OOOO":default:return"GMT"+xe(r,":")}},z:function(t,e,i,n){var r=(n._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+Se(r,":");case"zzzz":default:return"GMT"+xe(r,":")}},t:function(t,e,i,n){var r=n._originalDate||t;return be(Math.floor(r.getTime()/1e3),e.length)},T:function(t,e,i,n){return be((n._originalDate||t).getTime(),e.length)}};function be(t,e){for(var i=t<0?"-":"",n=Math.abs(t).toString();n.length<e;)n="0"+n;return i+n}function xe(t,e){var i=e||"",n=t>0?"-":"+",r=Math.abs(t);return n+be(Math.floor(r/60),2)+i+be(r%60,2)}function we(t,e){return t%60==0?(t>0?"-":"+")+be(Math.abs(t)/60,2):xe(t,e)}function Se(t,e){var i=t>0?"-":"+",n=Math.abs(t),r=Math.floor(n/60),o=n%60;if(0===o)return i+String(r);var s=e||"";return i+String(r)+s+be(o,2)}function Te(t,e,i){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}}function Ee(t,e,i){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}}var Ce={p:Ee,P:function(t,e,i){var n,r=t.match(/(P+)(p+)?/),o=r[1],s=r[2];if(!s)return Te(t,e);switch(o){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",Te(o,e)).replace("{{time}}",Ee(s,e))}};function Oe(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");return function(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=zt(t,i).getTime(),r=Rt(e);return new Date(n+r)}(t,-Rt(e),i)}var Me=["D","DD","YY","YYYY"];function Pe(t){return-1!==Me.indexOf(t)}function ke(t){throw new RangeError("`options.awareOfUnicodeTokens` must be set to `true` to use `"+t+"` token; see: https://git.io/fxCyr")}var Ie=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Le=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ae=/^'(.*?)'?$/,Re=/''/g;function Fe(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=String(e),r=i||{},o=r.locale||ne,s=o.options&&o.options.firstWeekContainsDate,a=null==s?1:Rt(s),l=null==r.firstWeekContainsDate?a:Rt(r.firstWeekContainsDate);if(!(l>=1&&l<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var u=o.options&&o.options.weekStartsOn,c=null==u?0:Rt(u),h=null==r.weekStartsOn?c:Rt(r.weekStartsOn);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!o.localize)throw new RangeError("locale must contain localize property");if(!o.formatLong)throw new RangeError("locale must contain formatLong property");var d=zt(t,r);if(!Kt(d,r))return"Invalid Date";var f=Oe(d,Dt(d),r),p={firstWeekContainsDate:l,weekStartsOn:h,locale:o,_originalDate:d};return n.match(Le).map(function(t){var e=t[0];return"p"===e||"P"===e?(0,Ce[e])(t,o.formatLong,p):t}).join("").match(Ie).map(function(t){if("''"===t)return"'";var e=t[0];if("'"===e)return t.match(Ae)[1].replace(Re,"'");var i=_e[e];return i?(!r.awareOfUnicodeTokens&&Pe(t)&&ke(t),i(f,t,o.localize,p)):t}).join("")}function De(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=zt(t,i),r=zt(e,i);return n.getTime()>r.getTime()}function je(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=zt(t,i),r=zt(e,i);return n.getTime()<r.getTime()}function Ne(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=zt(t,i),r=zt(e,i);return n.getTime()===r.getTime()}function $e(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=i||{},r=n.locale,o=r&&r.options&&r.options.weekStartsOn,s=null==o?0:Rt(o),a=null==n.weekStartsOn?s:Rt(n.weekStartsOn);if(!(a>=0&&a<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var l=zt(t,i),u=Rt(e),c=l.getUTCDay(),h=((u%7+7)%7<a?7:0)+u-c;return l.setUTCDate(l.getUTCDate()+h),l}var Ge=36e5,ze=6e4,Be=1e3,Ye={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Ve=/^([+-])(\d{2})(\d{2})?|Z/,We=/^([+-])(\d{2})(\d{2})|Z/,He=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Ue=/^([+-])(\d{2}):(\d{2})|Z/,Xe=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function qe(t,e,i){var n=e.match(t);if(!n)return null;var r=parseInt(n[0],10);return{value:i?i(r):r,rest:e.slice(n[0].length)}}function Ke(t,e){var i=e.match(t);if(!i)return null;if("Z"===i[0])return{value:0,rest:e.slice(1)};var n="+"===i[1]?1:-1,r=i[2]?parseInt(i[2],10):0,o=i[3]?parseInt(i[3],10):0,s=i[5]?parseInt(i[5],10):0;return{value:n*(r*Ge+o*ze+s*Be),rest:e.slice(i[0].length)}}function Ze(t,e){return qe(Ye.anyDigitsSigned,t,e)}function Je(t,e,i){switch(t){case 1:return qe(Ye.singleDigit,e,i);case 2:return qe(Ye.twoDigits,e,i);case 3:return qe(Ye.threeDigits,e,i);case 4:return qe(Ye.fourDigits,e,i);default:return qe(new RegExp("^\\d{1,"+t+"}"),e,i)}}function Qe(t,e,i){switch(t){case 1:return qe(Ye.singleDigitSigned,e,i);case 2:return qe(Ye.twoDigitsSigned,e,i);case 3:return qe(Ye.threeDigitsSigned,e,i);case 4:return qe(Ye.fourDigitsSigned,e,i);default:return qe(new RegExp("^-?\\d{1,"+t+"}"),e,i)}}function ti(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ei(t,e){var i,n=e>0,r=n?e:1-e;if(r<=50)i=t||100;else{var o=r+50;i=t+100*Math.floor(o/100)-(t>=o%100?100:0)}return n?i:1-i}var ii=[31,28,31,30,31,30,31,31,30,31,30,31],ni=[31,29,31,30,31,30,31,31,30,31,30,31];function ri(t){return t%400==0||t%4==0&&t%100!=0}var oi={G:{priority:140,parse:function(t,e,i,n){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}},set:function(t,e,i){return t.setUTCFullYear(1===e?10:-9,0,1),t.setUTCHours(0,0,0,0),t}},y:{priority:130,parse:function(t,e,i,n){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Je(4,t,r);case"yo":return i.ordinalNumber(t,{unit:"year",valueCallback:r});default:return Je(e.length,t,r)}},validate:function(t,e,i){return e.isTwoDigitYear||e.year>0},set:function(t,e,i){var n=ce(t,i);if(e.isTwoDigitYear){var r=ei(e.year,n);return t.setUTCFullYear(r,0,1),t.setUTCHours(0,0,0,0),t}var o=n>0?e.year:1-e.year;return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}},Y:{priority:130,parse:function(t,e,i,n){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Je(4,t,r);case"Yo":return i.ordinalNumber(t,{unit:"year",valueCallback:r});default:return Je(e.length,t,r)}},validate:function(t,e,i){return e.isTwoDigitYear||e.year>0},set:function(t,e,i){var n=t.getUTCFullYear();if(e.isTwoDigitYear){var r=ei(e.year,n);return t.setUTCFullYear(r,0,i.firstWeekContainsDate),t.setUTCHours(0,0,0,0),ue(t,i)}var o=n>0?e.year:1-e.year;return t.setUTCFullYear(o,0,i.firstWeekContainsDate),t.setUTCHours(0,0,0,0),ue(t,i)}},R:{priority:130,parse:function(t,e,i,n){return Qe("R"===e?4:e.length,t)},set:function(t,e,i){var n=new Date(0);return n.setUTCFullYear(e,0,4),n.setUTCHours(0,0,0,0),oe(n)}},u:{priority:130,parse:function(t,e,i,n){return Qe("u"===e?4:e.length,t)},set:function(t,e,i){return t.setUTCFullYear(e,0,1),t.setUTCHours(0,0,0,0),t}},Q:{priority:120,parse:function(t,e,i,n){switch(e){case"Q":case"QQ":return Je(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=1&&e<=4},set:function(t,e,i){return t.setUTCMonth(3*(e-1),1),t.setUTCHours(0,0,0,0),t}},q:{priority:120,parse:function(t,e,i,n){switch(e){case"q":case"qq":return Je(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=1&&e<=4},set:function(t,e,i){return t.setUTCMonth(3*(e-1),1),t.setUTCHours(0,0,0,0),t}},M:{priority:110,parse:function(t,e,i,n){var r=function(t){return t-1};switch(e){case"M":return qe(Ye.month,t,r);case"MM":return Je(2,t,r);case"Mo":return i.ordinalNumber(t,{unit:"month",valueCallback:r});case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i){return t.setUTCMonth(e,1),t.setUTCHours(0,0,0,0),t}},L:{priority:110,parse:function(t,e,i,n){var r=function(t){return t-1};switch(e){case"L":return qe(Ye.month,t,r);case"LL":return Je(2,t,r);case"Lo":return i.ordinalNumber(t,{unit:"month",valueCallback:r});case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i){return t.setUTCMonth(e,1),t.setUTCHours(0,0,0,0),t}},w:{priority:100,parse:function(t,e,i,n){switch(e){case"w":return qe(Ye.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=53},set:function(t,e,i){return ue(function(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=zt(t,i),r=Rt(e),o=de(n,i)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,e,i),i)}},I:{priority:100,parse:function(t,e,i,n){switch(e){case"I":return qe(Ye.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=53},set:function(t,e,i){return oe(function(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=zt(t,i),r=Rt(e),o=le(n,i)-r;return n.setUTCDate(n.getUTCDate()-7*o),n}(t,e,i),i)}},d:{priority:90,parse:function(t,e,i,n){switch(e){case"d":return qe(Ye.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Je(e.length,t)}},validate:function(t,e,i){var n=ri(t.getUTCFullYear()),r=t.getUTCMonth();return n?e>=1&&e<=ni[r]:e>=1&&e<=ii[r]},set:function(t,e,i){return t.setUTCDate(e),t.setUTCHours(0,0,0,0),t}},D:{priority:90,parse:function(t,e,i,n){switch(e){case"D":case"DD":return qe(Ye.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Je(e.length,t)}},validate:function(t,e,i){return ri(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365},set:function(t,e,i){return t.setUTCMonth(0,e),t.setUTCHours(0,0,0,0),t}},E:{priority:90,parse:function(t,e,i,n){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i){return(t=$e(t,e,i)).setUTCHours(0,0,0,0),t}},e:{priority:90,parse:function(t,e,i,n){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return Je(e.length,t,r);case"eo":return i.ordinalNumber(t,{unit:"day",valueCallback:r});case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i){return(t=$e(t,e,i)).setUTCHours(0,0,0,0),t}},c:{priority:90,parse:function(t,e,i,n){var r=function(t){var e=7*Math.floor((t-1)/7);return(t+n.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return Je(e.length,t,r);case"co":return i.ordinalNumber(t,{unit:"day",valueCallback:r});case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}},validate:function(t,e,i){return e>=0&&e<=6},set:function(t,e,i){return(t=$e(t,e,i)).setUTCHours(0,0,0,0),t}},i:{priority:90,parse:function(t,e,i,n){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Je(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return i.day(t,{width:"abbreviated",context:"formatting",valueCallback:r})||i.day(t,{width:"short",context:"formatting",valueCallback:r})||i.day(t,{width:"narrow",context:"formatting",valueCallback:r});case"iiiii":return i.day(t,{width:"narrow",context:"formatting",valueCallback:r});case"iiiiii":return i.day(t,{width:"short",context:"formatting",valueCallback:r})||i.day(t,{width:"narrow",context:"formatting",valueCallback:r});case"iiii":default:return i.day(t,{width:"wide",context:"formatting",valueCallback:r})||i.day(t,{width:"abbreviated",context:"formatting",valueCallback:r})||i.day(t,{width:"short",context:"formatting",valueCallback:r})||i.day(t,{width:"narrow",context:"formatting",valueCallback:r})}},validate:function(t,e,i){return e>=1&&e<=7},set:function(t,e,i){return(t=function(t,e,i){if(arguments.length<2)throw new TypeError("2 arguments required, but only "+arguments.length+" present");var n=Rt(e);n%7==0&&(n-=7);var r=zt(t,i),o=r.getUTCDay(),s=((n%7+7)%7<1?7:0)+n-o;return r.setUTCDate(r.getUTCDate()+s),r}(t,e,i)).setUTCHours(0,0,0,0),t}},a:{priority:80,parse:function(t,e,i,n){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,i){return t.setUTCHours(ti(e),0,0,0),t}},b:{priority:80,parse:function(t,e,i,n){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,i){return t.setUTCHours(ti(e),0,0,0),t}},B:{priority:80,parse:function(t,e,i,n){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}},set:function(t,e,i){return t.setUTCHours(ti(e),0,0,0),t}},h:{priority:70,parse:function(t,e,i,n){switch(e){case"h":return qe(Ye.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=12},set:function(t,e,i){var n=t.getUTCHours()>=12;return n&&e<12?t.setUTCHours(e+12,0,0,0):n||12!==e?t.setUTCHours(e,0,0,0):t.setUTCHours(0,0,0,0),t}},H:{priority:70,parse:function(t,e,i,n){switch(e){case"H":return qe(Ye.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=23},set:function(t,e,i){return t.setUTCHours(e,0,0,0),t}},K:{priority:70,parse:function(t,e,i,n){switch(e){case"K":return qe(Ye.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=11},set:function(t,e,i){return t.getUTCHours()>=12&&e<12?t.setUTCHours(e+12,0,0,0):t.setUTCHours(e,0,0,0),t}},k:{priority:70,parse:function(t,e,i,n){switch(e){case"k":return qe(Ye.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=1&&e<=24},set:function(t,e,i){var n=e<=24?e%24:e;return t.setUTCHours(n,0,0,0),t}},m:{priority:60,parse:function(t,e,i,n){switch(e){case"m":return qe(Ye.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=59},set:function(t,e,i){return t.setUTCMinutes(e,0,0),t}},s:{priority:50,parse:function(t,e,i,n){switch(e){case"s":return qe(Ye.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Je(e.length,t)}},validate:function(t,e,i){return e>=0&&e<=59},set:function(t,e,i){return t.setUTCSeconds(e,0),t}},S:{priority:40,parse:function(t,e,i,n){return Je(e.length,t,function(t){return Math.floor(t*Math.pow(10,3-e.length))})},set:function(t,e,i){return t.setUTCMilliseconds(e),t}},X:{priority:20,parse:function(t,e,i,n){switch(e){case"X":return Ke(Ve,t);case"XX":return Ke(We,t);case"XXXX":return Ke(He,t);case"XXXXX":return Ke(Xe,t);case"XXX":default:return Ke(Ue,t)}},set:function(t,e,i){return new Date(t.getTime()-e)}},x:{priority:20,parse:function(t,e,i,n){switch(e){case"x":return Ke(Ve,t);case"xx":return Ke(We,t);case"xxxx":return Ke(He,t);case"xxxxx":return Ke(Xe,t);case"xxx":default:return Ke(Ue,t)}},set:function(t,e,i){return new Date(t.getTime()-e)}},t:{priority:10,parse:function(t,e,i,n){return Ze(t)},set:function(t,e,i){return new Date(1e3*e)}},T:{priority:10,parse:function(t,e,i,n){return Ze(t)},set:function(t,e,i){return new Date(e)}}},si=20,ai=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,li=/^'(.*?)'?$/,ui=/''/g,ci=/\S/;function hi(t){var e=new Date(0);return e.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),e.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),e}function di(t,e){if("string"!=typeof t)return Kt(t)?t:null;var i=function(t,e,i,n){if(arguments.length<3)throw new TypeError("3 arguments required, but only "+arguments.length+" present");var r=String(t),o=String(e),s=n||{},a=s.locale||ne;if(!a.match)throw new RangeError("locale must contain match property");var l=a.options&&a.options.firstWeekContainsDate,u=null==l?1:Rt(l),c=null==s.firstWeekContainsDate?u:Rt(s.firstWeekContainsDate);if(!(c>=1&&c<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var h=a.options&&a.options.weekStartsOn,d=null==h?0:Rt(h),f=null==s.weekStartsOn?d:Rt(s.weekStartsOn);if(!(f>=0&&f<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===o)return""===r?zt(i,s):new Date(NaN);var p,v={firstWeekContainsDate:c,weekStartsOn:f,locale:a},g=[{priority:si,set:hi,index:0}],m=o.match(ai);for(p=0;p<m.length;p++){var y=m[p];!s.awareOfUnicodeTokens&&Pe(y)&&ke(y);var _=y[0],b=oi[_];if(b){var x=b.parse(r,y,a.match,v);if(!x)return new Date(NaN);g.push({priority:b.priority,set:b.set,validate:b.validate,value:x.value,index:g.length}),r=x.rest}else{if("''"===y?y="'":"'"===_&&(y=y.match(li)[1].replace(ui,"'")),0!==r.indexOf(y))return new Date(NaN);r=r.slice(y.length)}}if(r.length>0&&ci.test(r))return new Date(NaN);var w=g.map(function(t){return t.priority}).sort(function(t,e){return e-t}).filter(function(t,e,i){return i.indexOf(t)===e}).map(function(t){return g.filter(function(e){return e.priority===t}).reverse()}).map(function(t){return t[0]}),S=zt(i,s);if(isNaN(S))return new Date(NaN);var T=Oe(S,Dt(S));for(p=0;p<w.length;p++){var E=w[p];if(E.validate&&!E.validate(T,E.value,v))return new Date(NaN);T=E.set(T,E.value,v)}return T}(t,e,new Date);return Kt(i)&&Fe(i,e)===t?i:null}var fi={validate:function(t,e){void 0===e&&(e={});var i=e.targetValue,n=e.inclusion;void 0===n&&(n=!1);var r=e.format;return void 0===r&&(r=n,n=!1),t=di(t,r),i=di(i,r),!(!t||!i)&&(De(t,i)||n&&Ne(t,i))},options:{hasTarget:!0,isDate:!0},paramNames:["targetValue","inclusion","format"]},pi={en:/^[A-Z]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[A-ZÆØÅ]*$/i,de:/^[A-ZÄÖÜß]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ]*$/i,fa:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[A-Z\xC0-\xFF]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ]*$/i,nl:/^[A-ZÉËÏÓÖÜ]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ru:/^[А-ЯЁ]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[A-ZČĆŽŠĐ]*$/i,sv:/^[A-ZÅÄÖ]*$/i,tr:/^[A-ZÇĞİıÖŞÜ]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[A-ZÇƏĞİıÖŞÜ]*$/i},vi={en:/^[A-Z\s]*$/i,cs:/^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ\s]*$/i,da:/^[A-ZÆØÅ\s]*$/i,de:/^[A-ZÄÖÜß\s]*$/i,es:/^[A-ZÁÉÍÑÓÚÜ\s]*$/i,fa:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی\s]*$/,fr:/^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ\s]*$/i,it:/^[A-Z\xC0-\xFF\s]*$/i,lt:/^[A-ZĄČĘĖĮŠŲŪŽ\s]*$/i,nl:/^[A-ZÉËÏÓÖÜ\s]*$/i,hu:/^[A-ZÁÉÍÓÖŐÚÜŰ\s]*$/i,pl:/^[A-ZĄĆĘŚŁŃÓŻŹ\s]*$/i,pt:/^[A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ\s]*$/i,ru:/^[А-ЯЁ\s]*$/i,sk:/^[A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ\s]*$/i,sr:/^[A-ZČĆŽŠĐ\s]*$/i,sv:/^[A-ZÅÄÖ\s]*$/i,tr:/^[A-ZÇĞİıÖŞÜ\s]*$/i,uk:/^[А-ЩЬЮЯЄІЇҐ\s]*$/i,ar:/^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ\s]*$/,az:/^[A-ZÇƏĞİıÖŞÜ\s]*$/i},gi={en:/^[0-9A-Z]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]*$/i,da:/^[0-9A-ZÆØÅ]$/i,de:/^[0-9A-ZÄÖÜß]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ]*$/i,fa:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی]*$/,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]*$/i,it:/^[0-9A-Z\xC0-\xFF]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ]*$/i,ru:/^[0-9А-ЯЁ]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ]*$/i,sr:/^[0-9A-ZČĆŽŠĐ]*$/i,sv:/^[0-9A-ZÅÄÖ]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ]*$/i},mi={en:/^[0-9A-Z_-]*$/i,cs:/^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ_-]*$/i,da:/^[0-9A-ZÆØÅ_-]*$/i,de:/^[0-9A-ZÄÖÜß_-]*$/i,es:/^[0-9A-ZÁÉÍÑÓÚÜ_-]*$/i,fa:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰپژگچکی_-]*$/,fr:/^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ_-]*$/i,it:/^[0-9A-Z\xC0-\xFF_-]*$/i,lt:/^[0-9A-ZĄČĘĖĮŠŲŪŽ_-]*$/i,nl:/^[0-9A-ZÉËÏÓÖÜ_-]*$/i,hu:/^[0-9A-ZÁÉÍÓÖŐÚÜŰ_-]*$/i,pl:/^[0-9A-ZĄĆĘŚŁŃÓŻŹ_-]*$/i,pt:/^[0-9A-ZÃÁÀÂÇÉÊÍÕÓÔÚÜ_-]*$/i,ru:/^[0-9А-ЯЁ_-]*$/i,sk:/^[0-9A-ZÁÄČĎÉÍĹĽŇÓŔŠŤÚÝŽ_-]*$/i,sr:/^[0-9A-ZČĆŽŠĐ_-]*$/i,sv:/^[0-9A-ZÅÄÖ_-]*$/i,tr:/^[0-9A-ZÇĞİıÖŞÜ_-]*$/i,uk:/^[0-9А-ЩЬЮЯЄІЇҐ_-]*$/i,ar:/^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ_-]*$/,az:/^[0-9A-ZÇƏĞİıÖŞÜ_-]*$/i},yi=function(t,e){void 0===e&&(e={});var i=e.locale;return Array.isArray(t)?t.every(function(t){return yi(t,[i])}):i?(pi[i]||pi.en).test(t):Object.keys(pi).some(function(e){return pi[e].test(t)})},_i={validate:yi,paramNames:["locale"]},bi=function(t,e){void 0===e&&(e={});var i=e.locale;return Array.isArray(t)?t.every(function(t){return bi(t,[i])}):i?(mi[i]||mi.en).test(t):Object.keys(mi).some(function(e){return mi[e].test(t)})},xi={validate:bi,paramNames:["locale"]},wi=function(t,e){void 0===e&&(e={});var i=e.locale;return Array.isArray(t)?t.every(function(t){return wi(t,[i])}):i?(gi[i]||gi.en).test(t):Object.keys(gi).some(function(e){return gi[e].test(t)})},Si={validate:wi,paramNames:["locale"]},Ti=function(t,e){void 0===e&&(e={});var i=e.locale;return Array.isArray(t)?t.every(function(t){return Ti(t,[i])}):i?(vi[i]||vi.en).test(t):Object.keys(vi).some(function(e){return vi[e].test(t)})},Ei={validate:Ti,paramNames:["locale"]},Ci={validate:function(t,e){void 0===e&&(e={});var i=e.targetValue,n=e.inclusion;void 0===n&&(n=!1);var r=e.format;return void 0===r&&(r=n,n=!1),t=di(t,r),i=di(i,r),!(!t||!i)&&(je(t,i)||n&&Ne(t,i))},options:{hasTarget:!0,isDate:!0},paramNames:["targetValue","inclusion","format"]},Oi=function(t,e){void 0===e&&(e={});var i=e.min,n=e.max;return Array.isArray(t)?t.every(function(t){return Oi(t,{min:i,max:n})}):Number(i)<=t&&Number(n)>=t},Mi={validate:Oi,paramNames:["min","max"]},Pi={validate:function(t,e){var i=e.targetValue;return String(t)===String(i)},options:{hasTarget:!0},paramNames:["targetValue"]};function ki(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Ii(t,e){return t(e={exports:{}},e.exports),e.exports}var Li=Ii(function(t,e){function i(t){return(i="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)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){if(!("string"==typeof t||t instanceof String)){var e;throw e=null===t?"null":"object"===(e=i(t))&&t.constructor&&t.constructor.hasOwnProperty("name")?t.constructor.name:"a ".concat(e),new TypeError("Expected string but received ".concat(e,"."))}},t.exports=e.default,t.exports.default=e.default});ki(Li);var Ai=ki(Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){(0,n.default)(t);var e=t.replace(/[- ]+/g,"");if(!r.test(e))return!1;for(var i,o,s,a=0,l=e.length-1;l>=0;l--)i=e.substring(l,l+1),o=parseInt(i,10),a+=s&&(o*=2)>=10?o%10+1:o,s=!s;return!(a%10!=0||!e)};var i,n=(i=Li)&&i.__esModule?i:{default:i};var r=/^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14})$/;t.exports=e.default,t.exports.default=e.default})),Ri={validate:function(t){return Ai(String(t))}},Fi={validate:function(t,e){void 0===e&&(e={});var i=e.min,n=e.max,r=e.inclusivity;void 0===r&&(r="()");var o=e.format;void 0===o&&(o=r,r="()");var s=di(String(i),o),a=di(String(n),o),l=di(String(t),o);return!!(s&&a&&l)&&("()"===r?De(l,s)&&je(l,a):"(]"===r?De(l,s)&&(Ne(l,a)||je(l,a)):"[)"===r?je(l,a)&&(Ne(l,s)||De(l,s)):Ne(l,a)||Ne(l,s)||je(l,a)&&De(l,s))},options:{isDate:!0},paramNames:["min","max","inclusivity","format"]},Di={validate:function(t,e){return!!di(t,e.format)},options:{isDate:!0},paramNames:["format"]},ji=function(t,e){void 0===e&&(e={});var i=e.decimals;void 0===i&&(i="*");var n=e.separator;if(void 0===n&&(n="."),a(t)||""===t)return!1;if(Array.isArray(t))return t.every(function(t){return ji(t,{decimals:i,separator:n})});if(0===Number(i))return/^-?\d*$/.test(t);if(!new RegExp("^[-+]?\\d*(\\"+n+"\\d"+("*"===i?"+":"{1,"+i+"}")+")?([eE]{1}[-]?\\d+)?$").test(t))return!1;var r=parseFloat(t);return r==r},Ni={validate:ji,paramNames:["decimals","separator"]},$i=function(t,e){var i=e[0];if(Array.isArray(t))return t.every(function(t){return $i(t,[i])});var n=String(t);return/^[0-9]*$/.test(n)&&n.length===Number(i)},Gi={validate:$i},zi=/\.(jpg|svg|jpeg|png|bmp|gif)$/i,Bi={validate:function(t,e){var i=e[0],n=e[1],r=x(t).filter(function(t){return zi.test(t.name)});return 0!==r.length&&Promise.all(r.map(function(t){return function(t,e,i){var n=window.URL||window.webkitURL;return new Promise(function(r){var o=new Image;o.onerror=function(){return r({valid:!1})},o.onload=function(){return r({valid:o.width===Number(e)&&o.height===Number(i)})},o.src=n.createObjectURL(t)})}(t,i,n)}))}},Yi=Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1?arguments[1]:void 0;for(var i in e)void 0===t[i]&&(t[i]=e[i]);return t},t.exports=e.default,t.exports.default=e.default});ki(Yi);var Vi=Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){var i,o;(0,n.default)(t),"object"===r(e)?(i=e.min||0,o=e.max):(i=arguments[1],o=arguments[2]);var s=encodeURI(t).split(/%..|./).length-1;return s>=i&&(void 0===o||s<=o)};var i,n=(i=Li)&&i.__esModule?i:{default:i};function r(t){return(r="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)}t.exports=e.default,t.exports.default=e.default});ki(Vi);var Wi=Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){(0,i.default)(t),(e=(0,n.default)(e,o)).allow_trailing_dot&&"."===t[t.length-1]&&(t=t.substring(0,t.length-1));for(var r=t.split("."),s=0;s<r.length;s++)if(r[s].length>63)return!1;if(e.require_tld){var a=r.pop();if(!r.length||!/^([a-z\u00a1-\uffff]{2,}|xn[a-z0-9-]{2,})$/i.test(a))return!1;if(/[\s\u2002-\u200B\u202F\u205F\u3000\uFEFF\uDB40\uDC20]/.test(a))return!1}for(var l,u=0;u<r.length;u++){if(l=r[u],e.allow_underscores&&(l=l.replace(/_/g,"")),!/^[a-z\u00a1-\uffff0-9-]+$/i.test(l))return!1;if(/[\uff01-\uff5e]/.test(l))return!1;if("-"===l[0]||"-"===l[l.length-1])return!1}return!0};var i=r(Li),n=r(Yi);function r(t){return t&&t.__esModule?t:{default:t}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1};t.exports=e.default,t.exports.default=e.default}),Hi=ki(Wi),Ui=Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";(0,n.default)(e);i=String(i);if(!i)return t(e,4)||t(e,6);if("4"===i){if(!r.test(e))return!1;var s=e.split(".").sort(function(t,e){return t-e});return s[3]<=255}if("6"===i){var a=e.split(":"),l=!1,u=t(a[a.length-1],4),c=u?7:8;if(a.length>c)return!1;if("::"===e)return!0;"::"===e.substr(0,2)?(a.shift(),a.shift(),l=!0):"::"===e.substr(e.length-2)&&(a.pop(),a.pop(),l=!0);for(var h=0;h<a.length;++h)if(""===a[h]&&h>0&&h<a.length-1){if(l)return!1;l=!0}else if(u&&h===a.length-1);else if(!o.test(a[h]))return!1;return l?a.length>=1:a.length===c}return!1};var i,n=(i=Li)&&i.__esModule?i:{default:i};var r=/^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})$/,o=/^[0-9A-F]{1,4}$/i;t.exports=e.default,t.exports.default=e.default}),Xi=ki(Ui),qi=ki(Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,i.default)(t),(e=(0,n.default)(e,l)).require_display_name||e.allow_display_name){var a=t.match(u);if(a)t=a[1];else if(e.require_display_name)return!1}var v=t.split("@"),g=v.pop(),m=v.join("@"),y=g.toLowerCase();if(e.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var _=(m=m.toLowerCase()).split("+")[0];if(!(0,r.default)(_.replace(".",""),{min:6,max:30}))return!1;for(var b=_.split("."),x=0;x<b.length;x++)if(!h.test(b[x]))return!1}if(!(0,r.default)(m,{max:64})||!(0,r.default)(g,{max:254}))return!1;if(!(0,o.default)(g,{require_tld:e.require_tld})){if(!e.allow_ip_domain)return!1;if(!(0,s.default)(g)){if(!g.startsWith("[")||!g.endsWith("]"))return!1;var w=g.substr(1,g.length-2);if(0===w.length||!(0,s.default)(w))return!1}}if('"'===m[0])return m=m.slice(1,m.length-1),e.allow_utf8_local_part?p.test(m):d.test(m);for(var S=e.allow_utf8_local_part?f:c,T=m.split("."),E=0;E<T.length;E++)if(!S.test(T[E]))return!1;return!0};var i=a(Li),n=a(Yi),r=a(Vi),o=a(Wi),s=a(Ui);function a(t){return t&&t.__esModule?t:{default:t}}var l={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0},u=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\,\.\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF\s]*<(.+)>$/i,c=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,h=/^[a-z\d]+$/,d=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;t.exports=e.default,t.exports.default=e.default}));var Ki={validate:function(t,e){void 0===e&&(e={});var i=e.multiple;void 0===i&&(i=!1);var n=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&-1===e.indexOf(n)&&(i[n]=t[n]);return i}(e,["multiple"]);i&&!Array.isArray(t)&&(t=String(t).split(",").map(function(t){return t.trim()}));var r=w({},n);return Array.isArray(t)?t.every(function(t){return qi(String(t),r)}):qi(String(t),r)}},Zi=function(t,e){return Array.isArray(t)?t.every(function(t){return Zi(t,e)}):b(e).some(function(e){return e==t})},Ji={validate:Zi},Qi={validate:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];return!Zi.apply(void 0,t)}},tn={validate:function(t,e){var i=new RegExp(".("+e.join("|")+")$","i");return x(t).every(function(t){return i.test(t.name)})}},en={validate:function(t){return(Array.isArray(t)?t:[t]).every(function(t){return/\.(jpg|svg|jpeg|png|bmp|gif)$/i.test(t.name)})}},nn={validate:function(t){return Array.isArray(t)?t.every(function(t){return/^-?[0-9]+$/.test(String(t))}):/^-?[0-9]+$/.test(String(t))}},rn={validate:function(t,e){void 0===e&&(e={});var i=e.version;return void 0===i&&(i=4),a(t)&&(t=""),Array.isArray(t)?t.every(function(t){return Xi(t,i)}):Xi(t,i)},paramNames:["version"]},on={validate:function(t){return a(t)&&(t=""),Array.isArray(t)?t.every(function(t){return Xi(t,"")||Hi(t)}):Xi(t,"")||Hi(t)}},sn={validate:function(t,e){return void 0===e&&(e=[]),t===e[0]}},an={validate:function(t,e){return void 0===e&&(e=[]),t!==e[0]}},ln={validate:function(t,e){var i=e[0],n=e[1];return void 0===n&&(n=void 0),!a(t)&&(i=Number(i),"number"==typeof t&&(t=String(t)),t.length||(t=b(t)),function(t,e,i){return void 0===i?t.length===e:(i=Number(i),t.length>=e&&t.length<=i)}(t,i,n))}},un=function(t,e){var i=e[0];return a(t)?i>=0:Array.isArray(t)?t.every(function(t){return un(t,[i])}):String(t).length<=i},cn={validate:un},hn=function(t,e){var i=e[0];return!a(t)&&""!==t&&(Array.isArray(t)?t.length>0&&t.every(function(t){return hn(t,[i])}):Number(t)<=i)},dn={validate:hn},fn={validate:function(t,e){var i=new RegExp(e.join("|").replace("*",".+")+"$","i");return x(t).every(function(t){return i.test(t.type)})}},pn=function(t,e){var i=e[0];return!a(t)&&(Array.isArray(t)?t.every(function(t){return pn(t,[i])}):String(t).length>=i)},vn={validate:pn},gn=function(t,e){var i=e[0];return!a(t)&&""!==t&&(Array.isArray(t)?t.length>0&&t.every(function(t){return gn(t,[i])}):Number(t)>=i)},mn={validate:gn},yn=/^[٠١٢٣٤٥٦٧٨٩]+$/,_n=/^[0-9]+$/,bn={validate:function(t){var e=function(t){var e=String(t);return _n.test(e)||yn.test(e)};return Array.isArray(t)?t.every(e):e(t)}},xn=function(t,e){var i=e.expression;return"string"==typeof i&&(i=new RegExp(i)),Array.isArray(t)?t.every(function(t){return xn(t,{expression:i})}):i.test(String(t))},wn={validate:xn,paramNames:["expression"]},Sn={validate:function(t,e){void 0===e&&(e=[]);var i=e[0];return void 0===i&&(i=!1),!(a(t)||A(t)||!1===t&&i||!String(t).trim().length)}},Tn={validate:function(t,e){void 0===e&&(e=[]);var i=e[0],n=e.slice(1).includes(String(i).trim());if(!n)return{valid:!0,data:{required:n}};var r=A(t)||[!1,null,void 0].includes(t);return{valid:!(r=r||!String(t).trim().length),data:{required:n}}},options:{hasTarget:!0,computesRequired:!0}},En={validate:function(t,e){var i=e[0];if(isNaN(i))return!1;var n=1024*Number(i);return x(t).every(function(t){return t.size<=n})}},Cn=ki(Ii(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if((0,i.default)(t),!t||t.length>=2083||/[\s<>]/.test(t))return!1;if(0===t.indexOf("mailto:"))return!1;var s,c,h,d,f,p,v,g;if(e=(0,o.default)(e,a),v=t.split("#"),t=v.shift(),v=t.split("?"),t=v.shift(),(v=t.split("://")).length>1){if(s=v.shift().toLowerCase(),e.require_valid_protocol&&-1===e.protocols.indexOf(s))return!1}else{if(e.require_protocol)return!1;if("//"===t.substr(0,2)){if(!e.allow_protocol_relative_urls)return!1;v[0]=t.substr(2)}}if(""===(t=v.join("://")))return!1;if(v=t.split("/"),""===(t=v.shift())&&!e.require_host)return!0;if((v=t.split("@")).length>1){if(e.disallow_auth)return!1;if((c=v.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1}d=v.join("@"),p=null,g=null;var m=d.match(l);m?(h="",g=m[1],p=m[2]||null):(v=d.split(":"),h=v.shift(),v.length&&(p=v.join(":")));if(null!==p&&(f=parseInt(p,10),!/^[0-9]+$/.test(p)||f<=0||f>65535))return!1;if(!((0,r.default)(h)||(0,n.default)(h,e)||g&&(0,r.default)(g,6)))return!1;if(h=h||g,e.host_whitelist&&!u(h,e.host_whitelist))return!1;if(e.host_blacklist&&u(h,e.host_blacklist))return!1;return!0};var i=s(Li),n=s(Wi),r=s(Ui),o=s(Yi);function s(t){return t&&t.__esModule?t:{default:t}}var a={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function u(t,e){for(var i=0;i<e.length;i++){var n=e[i];if(t===n||(r=n,"[object RegExp]"===Object.prototype.toString.call(r)&&n.test(t)))return!0}var r;return!1}t.exports=e.default,t.exports.default=e.default})),On={validate:function(t,e){void 0===e&&(e={}),a(t)&&(t="");var i=w({},e);return Array.isArray(t)?t.every(function(t){return Cn(t,i)}):Cn(t,i)}},Mn=Object.freeze({after:fi,alpha_dash:xi,alpha_num:Si,alpha_spaces:Ei,alpha:_i,before:Ci,between:Mi,confirmed:Pi,credit_card:Ri,date_between:Fi,date_format:Di,decimal:Ni,digits:Gi,dimensions:Bi,email:Ki,ext:tn,image:en,included:Ji,integer:nn,length:ln,ip:rn,ip_or_fqdn:on,is_not:an,is:sn,max:cn,max_value:dn,mimes:fn,min:vn,min_value:mn,excluded:Qi,numeric:bn,regex:wn,required:Sn,required_if:Tn,size:En,url:On}),Pn=function(t,e){var i={pristine:function(t,e){return t&&e},dirty:function(t,e){return t||e},touched:function(t,e){return t||e},untouched:function(t,e){return t&&e},valid:function(t,e){return t&&e},invalid:function(t,e){return t||e},pending:function(t,e){return t||e},required:function(t,e){return t||e},validated:function(t,e){return t&&e}};return Object.keys(i).reduce(function(n,r){return n[r]=i[r](t[r],e[r]),n},{})},kn=function(t,e){return void 0===e&&(e=!0),Object.keys(t).reduce(function(i,n){if(!i)return i=w({},t[n]);var r=0===n.indexOf("$");return e&&r?Pn(kn(t[n]),i):!e&&r?i:i=Pn(i,t[n])},null)},In=function(t){if(!t)return function(){return kn(this.$validator.flags)};var e=function(t){return Array.isArray(t)?t.reduce(function(t,e){return L(e,".")?t[e.split(".")[1]]=e:t[e]=e,t},{}):t}(t);return Object.keys(e).reduce(function(t,i){var n=e[i];return t[i]=function(){if(this.$validator.flags[n])return this.$validator.flags[n];if("*"===e[i])return kn(this.$validator.flags,!1);if(n.indexOf(".")<=0)return{};var t=n.split("."),r=t[0],o=t.slice(1);return r=this.$validator.flags["$"+r],"*"===(o=o.join("."))&&r?kn(r):r&&r[o]?r[o]:{}},t},{})},Ln=null,An=0,Rn={$__veeInject:!1,inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver||(this.$vnode.context.$_veeObserver={refs:{},subscribe:function(t){this.refs[t.vid]=t},unsubscribe:function(t){delete this.refs[t.vid]}}),this.$vnode.context.$_veeObserver}}},props:{vid:{type:[String,Number],default:function(){return"_vee_"+ ++An}},name:{type:String,default:null},mode:{type:[String,Function],default:function(){return V().mode}},events:{type:Array,validate:function(){return!0},default:function(){var t=V().events;return"string"==typeof t?t.split("|"):t}},rules:{type:[Object,String],default:null},immediate:{type:Boolean,default:!1},persist:{type:Boolean,default:!1},bails:{type:Boolean,default:function(){return V().fastExit}},debounce:{type:Number,default:function(){return V().delay||0}},tag:{type:String,default:"span"},slim:{type:Boolean,default:!1}},watch:{rules:{deep:!0,handler:function(t,e){this._needsValidation=!l(t,e)}}},data:function(){return{messages:[],value:void 0,initialized:!1,initialValue:void 0,flags:{untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1},failedRules:{},forceRequired:!1,isDeactivated:!1,id:null}},computed:{isValid:function(){return this.flags.valid},fieldDeps:function(){var t=this,e=f(this.rules);return Object.keys(e).filter(et.isTargetRule).map(function(i){var n=e[i][0];return function t(e,i,n){void 0===n&&(n=!0);var r=e.$_veeObserver.refs;e._veeWatchers||(e._veeWatchers={});if(!r[i]&&n)return e.$once("hook:mounted",function(){t(e,i,!1)});!m(e._veeWatchers[i])&&r[i]&&(e._veeWatchers[i]=r[i].$watch("value",function(){e.flags.validated&&(e._needsValidation=!0,e.validate())}))}(t,n),n})},normalizedEvents:function(){var t=this,e=Dn(this).on;return rt(e||this.events||[]).map(function(e){return"input"===e?t._inputEventName:e})},isRequired:function(){var t=f(this.rules),e=this.forceRequired,i=t.required||e;return this.flags.required=i,i},classes:function(){var t=this,e=V().classNames;return Object.keys(this.flags).reduce(function(i,n){var r=e&&e[n]||n;return a(t.flags[n])?i:(r&&(i[r]=t.flags[n]),i)},{})}},render:function(t){var e=this;this.registerField();var i=Fn(this),n=this.$scopedSlots.default;if(!m(n))return t(this.tag,this.$slots.default);var r=n(i);return U(r).forEach(function(t){(function(t){var e=H(t);this._inputEventName=this._inputEventName||Z(t,e),jn.call(this,e);var i=Nn(this),n=i.onInput,r=i.onBlur,o=i.onValidate;K(t,this._inputEventName,n),K(t,"blur",r),this.normalizedEvents.forEach(function(e){K(t,e,o)}),this.initialized=!0}).call(e,t)}),this.slim?J(t,r):t(this.tag,r)},beforeDestroy:function(){this.$_veeObserver.unsubscribe(this)},activated:function(){this.$_veeObserver.subscribe(this),this.isDeactivated=!1},deactivated:function(){this.$_veeObserver.unsubscribe(this),this.isDeactivated=!0},methods:{setFlags:function(t){var e=this;Object.keys(t).forEach(function(i){e.flags[i]=t[i]})},syncValue:function(t){var e=function(t){if(nt(t))return"file"===t.target.type?b(t.target.files):t.target.value;return t}(t);this.value=e,this.flags.changed=this.initialValue!==e},reset:function(){this.messages=[],this._pendingValidation=null,this.initialValue=this.value;var t={untouched:!0,touched:!1,dirty:!1,pristine:!0,valid:null,invalid:null,validated:!1,pending:!1,required:!1,changed:!1};this.setFlags(t)},validate:function(){for(var t=this,e=[],i=arguments.length;i--;)e[i]=arguments[i];return e.length>0&&this.syncValue(e[0]),this.validateSilent().then(function(e){return t.applyResult(e),e})},validateSilent:function(){var t,e,i=this;return this.setFlags({pending:!0}),Ln.verify(this.value,this.rules,{name:this.name,values:(t=this,e=t.$_veeObserver.refs,t.fieldDeps.reduce(function(t,i){return e[i]?(t[i]=e[i].value,t):t},{})),bails:this.bails}).then(function(t){return i.setFlags({pending:!1}),i.isRequired||i.setFlags({valid:t.valid,invalid:!t.valid}),t})},applyResult:function(t){var e=t.errors,i=t.failedRules;this.messages=e,this.failedRules=w({},i),this.setFlags({valid:!e.length,changed:this.value!==this.initialValue,invalid:!!e.length,validated:!0})},registerField:function(){Ln||(Ln=vt()||new _t(null,{fastExit:V().fastExit})),function(t){a(t.id)&&t.id===t.vid&&(t.id=An,An++);var e=t.id,i=t.vid;if(t.isDeactivated||e===i&&t.$_veeObserver.refs[e])return;e!==i&&t.$_veeObserver.refs[e]===t&&t.$_veeObserver.unsubscribe({vid:e});t.$_veeObserver.subscribe(t),t.id=i}(this)}}};function Fn(t){return{errors:t.messages,flags:t.flags,classes:t.classes,valid:t.isValid,failedRules:t.failedRules,reset:function(){return t.reset()},validate:function(){for(var e=[],i=arguments.length;i--;)e[i]=arguments[i];return t.validate.apply(t,e)},aria:{"aria-invalid":t.flags.invalid?"true":"false","aria-required":t.isRequired?"true":"false"}}}function Dn(t){return(m(t.mode)?t.mode:Mt[t.mode])({errors:t.messages,value:t.value,flags:t.flags})}function jn(t){this.initialized||(this.initialValue=t.value);var e=function(t,e){return!(t._ignoreImmediate||!t.immediate)||t.value!==e.value||!!t._needsValidation||!t.initialized&&void 0===e.value}(this,t);this._needsValidation=!1,this.value=t.value,this._ignoreImmediate=!0,e&&this.validateSilent().then(this.immediate||this.flags.validated?this.applyResult:function(t){return t})}function Nn(t){var e=t.$veeHandler,i=Dn(t);return e&&t.$veeDebounce===t.debounce||(e=h(function(){t.$nextTick(function(){var e=t.validateSilent();t._pendingValidation=e,e.then(function(i){e===t._pendingValidation&&(t.applyResult(i),t._pendingValidation=null)})})},i.debounce||t.debounce),t.$veeHandler=e,t.$veeDebounce=t.debounce),{onInput:function(e){t.syncValue(e),t.setFlags({dirty:!0,pristine:!1})},onBlur:function(){t.setFlags({touched:!0,untouched:!1})},onValidate:e}}var $n={pristine:"every",dirty:"some",touched:"some",untouched:"every",valid:"every",invalid:"some",pending:"some",validated:"every"};var Gn=0,zn={name:"ValidationObserver",provide:function(){return{$_veeObserver:this}},inject:{$_veeObserver:{from:"$_veeObserver",default:function(){return this.$vnode.context.$_veeObserver?this.$vnode.context.$_veeObserver:null}}},props:{tag:{type:String,default:"span"},slim:{type:Boolean,default:!1}},data:function(){return{vid:"obs_"+Gn++,refs:{},observers:[],persistedStore:{}}},computed:{ctx:function(){var t=this,e={errors:{},validate:function(e){var i=t.validate(e);return{then:function(t){return i.then(function(e){return e&&m(t)?Promise.resolve(t()):Promise.resolve(e)})}}},reset:function(){return t.reset()}};return I(this.refs).concat(Object.keys(this.persistedStore).map(function(e){return{vid:e,flags:t.persistedStore[e].flags,messages:t.persistedStore[e].errors}}),this.observers).reduce(function(t,e){return Object.keys($n).forEach(function(i){var n,r,o=e.flags||e.ctx;i in t?t[i]=(n=t[i],r=o[i],[n,r][$n[i]](function(t){return t})):t[i]=o[i]}),t.errors[e.vid]=e.messages||I(e.ctx.errors).reduce(function(t,e){return t.concat(e)},[]),t},e)}},created:function(){this.$_veeObserver&&this.$_veeObserver.subscribe(this,"observer")},activated:function(){this.$_veeObserver&&this.$_veeObserver.subscribe(this,"observer")},deactivated:function(){this.$_veeObserver&&this.$_veeObserver.unsubscribe(this,"observer")},beforeDestroy:function(){this.$_veeObserver&&this.$_veeObserver.unsubscribe(this,"observer")},render:function(t){var e=this.$slots.default||this.$scopedSlots.default||[];return m(e)&&(e=e(this.ctx)),this.slim?J(t,e):t(this.tag,{on:this.$listeners,attrs:this.$attrs},e)},methods:{subscribe:function(t,e){var i;void 0===e&&(e="provider"),"observer"!==e?(this.refs=Object.assign({},this.refs,((i={})[t.vid]=t,i)),t.persist&&this.persistedStore[t.vid]&&this.restoreProviderState(t)):this.observers.push(t)},unsubscribe:function(t,e){var i=t.vid;void 0===e&&(e="provider"),"provider"===e&&this.removeProvider(i);var n=E(this.observers,function(t){return t.vid===i});-1!==n&&this.observers.splice(n,1)},validate:function(t){void 0===t&&(t={silent:!1});var e=t.silent;return Promise.all(I(this.refs).map(function(t){return t[e?"validateSilent":"validate"]().then(function(t){return t.valid})}).concat(this.observers.map(function(t){return t.validate({silent:e})}))).then(function(t){return t.every(function(t){return t})})},reset:function(){var t=this;return Object.keys(this.persistedStore).forEach(function(e){t.$delete(t.persistedStore,e)}),I(this.refs).concat(this.observers).forEach(function(t){return t.reset()})},restoreProviderState:function(t){var e=this.persistedStore[t.vid];t.setFlags(e.flags),t.applyResult(e),this.$delete(this.persistedStore,t.vid)},removeProvider:function(t){var e,i=this.refs[t];i&&i.persist&&(this.persistedStore=w({},this.persistedStore,((e={})[t]={flags:i.flags,errors:i.messages,failedRules:i.failedRules},e))),this.$delete(this.refs,t)}}};function Bn(t,e){void 0===e&&(e=null);var i=m(t)?t.options:t;i.$__veeInject=!1;var n={name:(i.name||"AnonymousHoc")+"WithValidation",props:w({},Rn.props),data:Rn.data,computed:w({},Rn.computed),methods:w({},Rn.methods),$__veeInject:!1,beforeDestroy:Rn.beforeDestroy,inject:Rn.inject};e||(e=function(t){return t});var r=i.model&&i.model.event||"input";return n.render=function(t){var n;this.registerField();var o=Fn(this),s=w({},this.$listeners),a=H(this.$vnode);this._inputEventName=this._inputEventName||Z(this.$vnode,a),jn.call(this,a);var l=Nn(this),u=l.onInput,c=l.onBlur,h=l.onValidate;q(s,r,u),q(s,"blur",c),this.normalizedEvents.forEach(function(t,e){q(s,t,h)});var d,f,p=(X(this.$vnode)||{prop:"value"}).prop,v=w({},this.$attrs,((n={})[p]=a.value,n),e(o));return t(i,{attrs:this.$attrs,props:v,on:s},(d=this.$slots,f=this.$vnode.context,Object.keys(d).reduce(function(t,e){return d[e].forEach(function(t){t.context||(d[e].context=f,t.data||(t.data={}),t.data.slot=e)}),t.concat(d[e])},[])))},n}var Yn="2.2.15";Object.keys(Mn).forEach(function(t){_t.extend(t,Mn[t].validate,w({},Mn[t].options,{paramNames:Mn[t].paramNames}))}),_t.localize({en:At});var Vn=Pt.install;Pt.version=Yn,Pt.mapFields=In,Pt.ValidationProvider=Rn,Pt.ValidationObserver=zn,Pt.withValidation=Bn,e.default=Pt},function(t,e,i){var n;n=function(t){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=4)}([function(e,i){e.exports=t},function(t,e){t.exports=function(t,e,i,n,r,o){var s,a=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(s=t,a=t.default);var u,c="function"==typeof a?a.options:a;if(e&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId=r),o?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),n&&n.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},c._ssrRegister=u):n&&(u=n),u){var h=c.functional,d=h?c.render:c.beforeCreate;h?(c._injectStyles=u,c.render=function(t,e){return u.call(e),d(t,e)}):c.beforeCreate=d?[].concat(d,u):[u]}return{esModule:s,exports:a,options:c}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(5),r=i.n(n),o=i(8),s=i(1)(r.a,o.a,!1,null,null,null);e.default=s.exports},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=i(6),r=i.n(n),o=i(7),s=i(1)(r.a,o.a,!1,null,null,null);e.default=s.exports},function(t,e,i){"use strict";function n(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.swiperSlide=e.swiper=e.Swiper=void 0;var r=n(i(0)),o=n(i(2)),s=n(i(3)),a=window.Swiper||r.default,l=s.default,u=o.default,c=function(t,e){e&&(s.default.props.globalOptions.default=function(){return e}),t.component(s.default.name,s.default),t.component(o.default.name,o.default)},h={Swiper:a,swiper:l,swiperSlide:u,install:c};e.default=h,e.Swiper=a,e.swiper=l,e.swiperSlide=u,e.install=c},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"swiper-slide",data:function(){return{slideClass:"swiper-slide"}},ready:function(){this.update()},mounted:function(){this.update(),this.$parent&&this.$parent.options&&this.$parent.options.slideClass&&(this.slideClass=this.$parent.options.slideClass)},updated:function(){this.update()},attached:function(){this.update()},methods:{update:function(){this.$parent&&this.$parent.swiper&&this.$parent.update()}}}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return t&&t.__esModule?t:{default:t}}(i(0)),r=window.Swiper||n.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var i=Object(t),n=1;n<arguments.length;n++){var r=arguments[n];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(i[o]=r[o])}return i},writable:!0,configurable:!0});var o=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"];e.default={name:"swiper",props:{options:{type:Object,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{swiper:null,classes:{wrapperClass:"swiper-wrapper"}}},ready:function(){this.swiper||this.mountInstance()},mounted:function(){if(!this.swiper){var t=!1;for(var e in this.classes)this.classes.hasOwnProperty(e)&&this.options[e]&&(t=!0,this.classes[e]=this.options[e]);t?this.$nextTick(this.mountInstance):this.mountInstance()}},activated:function(){this.update()},updated:function(){this.update()},beforeDestroy:function(){this.$nextTick(function(){this.swiper&&(this.swiper.destroy&&this.swiper.destroy(),delete this.swiper)})},methods:{update:function(){this.swiper&&(this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update())},mountInstance:function(){var t=Object.assign({},this.globalOptions,this.options);this.swiper=new r(this.$el,t),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var t=this,e=this;o.forEach(function(i){t.swiper.on(i,function(){e.$emit.apply(e,[i].concat(Array.prototype.slice.call(arguments))),e.$emit.apply(e,[i.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))})})}}}},function(t,e,i){"use strict";var n={render:function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"swiper-container"},[t._t("parallax-bg"),t._v(" "),i("div",{class:t.classes.wrapperClass},[t._t("default")],2),t._v(" "),t._t("pagination"),t._v(" "),t._t("button-prev"),t._v(" "),t._t("button-next"),t._v(" "),t._t("scrollbar")],2)},staticRenderFns:[]};e.a=n},function(t,e,i){"use strict";var n={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.slideClass},[t._t("default")],2)},staticRenderFns:[]};e.a=n}])},t.exports=n(i(594))},function(t,e,i){var n;n=function(){return function(t){function e(n){if(i[n])return i[n].exports;var r=i[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var i={};return e.m=t,e.c=i,e.i=function(t){return t},e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/dist/",e(e.s=0)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=e.cssContent=".vue-line-clamp {display:block;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis}",r=function(t,e,i){if(i){var n=parseFloat(window.getComputedStyle(t).lineHeight)*e;t.style.maxHeight=n?n+"px":"",t.style.overflowX="hidden"}else t.style.webkitLineClamp=e};e.default={install:function(t){if(!1!==(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).includeCss){var e=window.document.styleSheets[0];if(e)e.insertRule(n);else{var i=window.document.createElement("style");i.appendChild(window.document.createTextNode(n)),window.document.head.appendChild(i)}}var o=!("webkitLineClamp"in document.body.style);t.directive("line-clamp",{bind:function(t){t.classList.add("vue-line-clamp")},inserted:function(t,e){r(t,e.value,o)},updated:function(t,e){r(t,e.value,o)}})}}}])},t.exports=n()},function(t,e,i){var n;n=function(){"use strict";var t=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},e=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),i="@@vue-sticky-directive",n=["resize","scroll","touchstart","touchmove","touchend","pageshow","load"],r=function(t,e,i){for(var n in e)t.style[n]=e[n];for(var r in i)i[r]&&!t.classList.contains(r)?t.classList.add(r):!i[r]&&t.classList.contains(r)&&t.classList.remove(r)},o=function(){function i(e,n){t(this,i),this.el=e,this.vm=n,this.unsubscribers=[],this.isPending=!1,this.state={isTopSticky:null,height:null,width:null,xOffset:null};var r=this.getAttribute("sticky-offset")||{},o=this.getAttribute("sticky-side")||"top";this.options={topOffset:Number(r.top)||0,bottomOffset:Number(r.bottom)||0,shouldTopSticky:"top"===o||"both"===o,shouldBottomSticky:"bottom"===o||"both"===o}}return e(i,[{key:"doBind",value:function(){var t=this,e=this.el;this.vm.$nextTick(function(){t.placeholderEl=document.createElement("div"),t.containerEl=t.getContainerEl(),e.parentNode.insertBefore(t.placeholderEl,e),n.forEach(function(e){var i=t.update.bind(t);t.unsubscribers.push(function(){return window.removeEventListener(e,i)}),window.addEventListener(e,i,{passive:!0})})})}},{key:"doUnbind",value:function(){this.unsubscribers.forEach(function(t){return t()})}},{key:"update",value:function(){var t=this;this.isPending||(requestAnimationFrame(function(){t.isPending=!1,t.recomputeState(),t.updateElements()}),this.isPending=!0)}},{key:"isTopSticky",value:function(){if(!this.options.shouldTopSticky)return!1;var t=this.state.placeholderElRect.top,e=this.state.containerElRect.bottom,i=this.options.topOffset,n=this.options.bottomOffset;return t<=i&&e>=n}},{key:"isBottomSticky",value:function(){if(!this.options.shouldBottomSticky)return!1;var t=window.innerHeight-this.state.placeholderElRect.top-this.state.height,e=window.innerHeight-this.state.containerElRect.top,i=this.options.topOffset;return t<=this.options.bottomOffset&&e>=i}},{key:"recomputeState",value:function(){this.state=Object.assign({},this.state,{height:this.getHeight(),width:this.getWidth(),xOffset:this.getXOffset(),placeholderElRect:this.getPlaceholderElRect(),containerElRect:this.getContainerElRect()}),this.state.isTopSticky=this.isTopSticky(),this.state.isBottomSticky=this.isBottomSticky()}},{key:"updateElements",value:function(){var t={paddingTop:0},e={position:"static",top:"auto",bottom:"auto",left:"auto",width:"auto",zIndex:"10"},i={"vue-sticky-el":!0,"top-sticky":!1,"bottom-sticky":!1};if(this.state.isTopSticky){e.position="fixed",e.top=this.options.topOffset+"px",e.left=this.state.xOffset+"px",e.width=this.state.width+"px";var n=this.state.containerElRect.bottom-this.state.height-this.options.bottomOffset-this.options.topOffset;n<0&&(e.top=n+this.options.topOffset+"px"),t.paddingTop=this.state.height+"px",i["top-sticky"]=!0}else if(this.state.isBottomSticky){e.position="fixed",e.bottom=this.options.bottomOffset+"px",e.left=this.state.xOffset+"px",e.width=this.state.width+"px";var o=this.state.containerElRect=window.innerHeight-this.state.containerElRect.top-this.state.height-this.options.bottomOffset-this.options.topOffset;o<0&&(e.bottom=o+this.options.bottomOffset+"px"),t.paddingTop=this.state.height+"px",i["bottom-sticky"]=!0}else t.paddingTop=0;r(this.el,e,i),r(this.placeholderEl,t,{"vue-sticky-placeholder":!0})}},{key:"getContainerEl",value:function(){for(var t=this.el.parentNode;t&&"HTML"!==t.tagName&&"BODY"!==t.tagName&&1===t.nodeType;){if(t.hasAttribute("sticky-container"))return t;t=t.parentNode}return this.el.parentNode}},{key:"getXOffset",value:function(){return this.placeholderEl.getBoundingClientRect().left}},{key:"getWidth",value:function(){return this.placeholderEl.getBoundingClientRect().width}},{key:"getHeight",value:function(){return this.el.getBoundingClientRect().height}},{key:"getPlaceholderElRect",value:function(){return this.placeholderEl.getBoundingClientRect()}},{key:"getContainerElRect",value:function(){return this.containerEl.getBoundingClientRect()}},{key:"getAttribute",value:function(t){var e=this.el.getAttribute(t);return e?this.vm[e]||e:void 0}}]),i}(),s={inserted:function(t,e,n){t[i]=new o(t,n.context),t[i].doBind()},unbind:function(t,e,n){t[i].doUnbind()}},a=function(t){t.directive("Sticky",s)};return window.Vue&&Vue.use(a),s.install=a,s},t.exports=n()},function(t,e,i){(function(i){var n,r,o;r=void 0!==i?i:"undefined"!=typeof window?window:this,o=function(t){"use strict";var e="querySelector"in document&&"addEventListener"in t&&"requestAnimationFrame"in t&&"closest"in t.Element.prototype,i={ignore:"[data-scroll-ignore]",header:null,speed:500,offset:0,easing:"easeInOutCubic",customEasing:null,before:function(){},after:function(){}},n=function(){for(var t={},e=0,i=arguments.length;e<i;e++){!function(e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])}(arguments[e])}return t},r=function(e){return parseInt(t.getComputedStyle(e).height,10)},o=function(t){"#"===t.charAt(0)&&(t=t.substr(1));for(var e,i=String(t),n=i.length,r=-1,o="",s=i.charCodeAt(0);++r<n;){if(0===(e=i.charCodeAt(r)))throw new InvalidCharacterError("Invalid character: the input contains U+0000.");o+=e>=1&&e<=31||127==e||0===r&&e>=48&&e<=57||1===r&&e>=48&&e<=57&&45===s?"\\"+e.toString(16)+" ":e>=128||45===e||95===e||e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122?i.charAt(r):"\\"+i.charAt(r)}return"#"+o},s=function(t){return t?r(t)+t.offsetTop:0};return function(r,a){var l,u,c,h,d,f,p,v={cancelScroll:function(){cancelAnimationFrame(p)}};v.animateScroll=function(e,r,o){var a=n(l||i,o||{}),u="[object Number]"===Object.prototype.toString.call(e),c=u||!e.tagName?null:e;if(u||c){var f=t.pageYOffset;a.header&&!h&&(h=document.querySelector(a.header)),d||(d=s(h));var p,g,m,y=u?e:function(t,e,i){var n=0;if(t.offsetParent)do{n+=t.offsetTop,t=t.offsetParent}while(t);return Math.max(n-e-i,0)}(c,d,parseInt("function"==typeof a.offset?a.offset():a.offset,10)),_=y-f,b=Math.max(document.body.scrollHeight,document.documentElement.scrollHeight,document.body.offsetHeight,document.documentElement.offsetHeight,document.body.clientHeight,document.documentElement.clientHeight),x=0,w=function(i,n){var o=t.pageYOffset;if(i==n||o==n||(f<n&&t.innerHeight+o)>=b)return v.cancelScroll(),function(e,i,n){n||(e.focus(),document.activeElement.id!==e.id&&(e.setAttribute("tabindex","-1"),e.focus(),e.style.outline="none"),t.scrollTo(0,i))}(e,n,u),a.after(e,r),p=null,!0},S=function(e){p||(p=e),g=(x+=e-p)/parseInt(a.speed,10),m=f+_*function(t,e){var i;return"easeInQuad"===t.easing&&(i=e*e),"easeOutQuad"===t.easing&&(i=e*(2-e)),"easeInOutQuad"===t.easing&&(i=e<.5?2*e*e:(4-2*e)*e-1),"easeInCubic"===t.easing&&(i=e*e*e),"easeOutCubic"===t.easing&&(i=--e*e*e+1),"easeInOutCubic"===t.easing&&(i=e<.5?4*e*e*e:(e-1)*(2*e-2)*(2*e-2)+1),"easeInQuart"===t.easing&&(i=e*e*e*e),"easeOutQuart"===t.easing&&(i=1- --e*e*e*e),"easeInOutQuart"===t.easing&&(i=e<.5?8*e*e*e*e:1-8*--e*e*e*e),"easeInQuint"===t.easing&&(i=e*e*e*e*e),"easeOutQuint"===t.easing&&(i=1+--e*e*e*e*e),"easeInOutQuint"===t.easing&&(i=e<.5?16*e*e*e*e*e:1+16*--e*e*e*e*e),t.customEasing&&(i=t.customEasing(e)),i||e}(a,g=g>1?1:g),t.scrollTo(0,Math.floor(m)),w(m,y)||(t.requestAnimationFrame(S),p=e)};0===t.pageYOffset&&t.scrollTo(0,0),a.before(e,r),v.cancelScroll(),t.requestAnimationFrame(S)}};var g=function(t){u&&(u.id=u.getAttribute("data-scroll-id"),v.animateScroll(u,c),u=null,c=null)},m=function(e){if(!("matchMedia"in t&&t.matchMedia("(prefers-reduced-motion)").matches)&&0===e.button&&!e.metaKey&&!e.ctrlKey&&(c=e.target.closest(r))&&"a"===c.tagName.toLowerCase()&&!e.target.closest(l.ignore)&&c.hostname===t.location.hostname&&c.pathname===t.location.pathname&&/#/.test(c.href)){var i;try{i=o(decodeURIComponent(c.hash))}catch(t){i=o(c.hash)}if("#"===i){e.preventDefault();var n=(u=document.body).id?u.id:"smooth-scroll-top";return u.setAttribute("data-scroll-id",n),u.id="",void(t.location.hash.substring(1)===n?g():t.location.hash=n)}(u=document.querySelector(i))&&(u.setAttribute("data-scroll-id",u.id),u.id="",c.hash===t.location.hash&&(e.preventDefault(),g()))}},y=function(t){f||(f=setTimeout(function(){f=null,d=s(h)},66))};return v.destroy=function(){l&&(document.removeEventListener("click",m,!1),t.removeEventListener("resize",y,!1),v.cancelScroll(),l=null,u=null,c=null,h=null,d=null,f=null,p=null)},v.init=function(r){e&&(v.destroy(),l=n(i,r||{}),h=l.header?document.querySelector(l.header):null,d=s(h),document.addEventListener("click",m,!1),t.addEventListener("hashchange",g,!1),h&&t.addEventListener("resize",y,!1))},v.init(a),v}},void 0===(n=function(){return o(r)}.apply(e,[]))||(t.exports=n)}).call(e,i(53))},,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===r}(t)}(t)},r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function o(t,e){return!1!==e.clone&&e.isMergeableObject(t)?u(Array.isArray(t)?[]:{},t,e):t}function s(t,e,i){return t.concat(e).map(function(t){return o(t,i)})}function a(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return t.propertyIsEnumerable(e)}):[]}(t))}function l(t,e){try{return e in t}catch(t){return!1}}function u(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||s,i.isMergeableObject=i.isMergeableObject||n,i.cloneUnlessOtherwiseSpecified=o;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var n={};return i.isMergeableObject(t)&&a(t).forEach(function(e){n[e]=o(t[e],i)}),a(e).forEach(function(r){(function(t,e){return l(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,r)||(n[r]=l(t,r)&&i.isMergeableObject(e[r])?function(t,e){if(!e.customMerge)return u;var i=e.customMerge(t);return"function"==typeof i?i:u}(r,i)(t[r],e[r],i):o(e[r],i))}),n}(t,e,i):o(e,i)}u.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(t,i){return u(t,i,e)},{})};var c=u;function h(t,e,i){return void 0===(t=(e.split?e.split("."):e).reduce(function(t,e){return t&&t[e]},t))?i:t}e.default=function(t,e,i){function n(t,e,i){try{return(i=e.getItem(t))&&void 0!==i?JSON.parse(i):void 0}catch(t){}}if(e=(t=t||{}).storage||window&&window.localStorage,i=t.key||"vuex",!function(t){try{return t.setItem("@@",1),t.removeItem("@@"),!0}catch(t){}return!1}(e))throw new Error("Invalid storage instance given");var r,o=function(){return h(t,"getState",n)(i,e)};return t.fetchBeforeUse&&(r=o()),function(n){t.fetchBeforeUse||(r=o()),"object"==typeof r&&null!==r&&(n.replaceState(c(n.state,r,{arrayMerge:t.arrayMerger||function(t,e){return e},clone:!1})),(t.rehydrated||function(){})(n)),(t.subscriber||function(t){return function(e){return t.subscribe(e)}})(n)(function(n,r){(t.filter||function(){return!0})(n)&&(t.setState||function(t,e,i){return i.setItem(t,JSON.stringify(e))})(i,(t.reducer||function(t,e){return 0===e.length?t:e.reduce(function(e,i){return function(t,e,i,n){return(e=e.split?e.split("."):e).slice(0,-1).reduce(function(t,e){return t[e]=t[e]||{}},t)[e.pop()]=i,t}(e,i,h(t,i))},{})})(r,t.paths||[]),e)})}}},,function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),i.d(e,"Url",function(){return I}),i.d(e,"Http",function(){return Y}),i.d(e,"Resource",function(){return V});var n=2;function r(t){this.state=n,this.value=void 0,this.deferred=[];var e=this;try{t(function(t){e.resolve(t)},function(t){e.reject(t)})}catch(t){e.reject(t)}}r.reject=function(t){return new r(function(e,i){i(t)})},r.resolve=function(t){return new r(function(e,i){e(t)})},r.all=function(t){return new r(function(e,i){var n=0,o=[];function s(i){return function(r){o[i]=r,(n+=1)===t.length&&e(o)}}0===t.length&&e(o);for(var a=0;a<t.length;a+=1)r.resolve(t[a]).then(s(a),i)})},r.race=function(t){return new r(function(e,i){for(var n=0;n<t.length;n+=1)r.resolve(t[n]).then(e,i)})};var o=r.prototype;function s(t,e){t instanceof Promise?this.promise=t:this.promise=new Promise(t.bind(e)),this.context=e}o.resolve=function(t){var e=this;if(e.state===n){if(t===e)throw new TypeError("Promise settled with itself.");var i=!1;try{var r=t&&t.then;if(null!==t&&"object"==typeof t&&"function"==typeof r)return void r.call(t,function(t){i||e.resolve(t),i=!0},function(t){i||e.reject(t),i=!0})}catch(t){return void(i||e.reject(t))}e.state=0,e.value=t,e.notify()}},o.reject=function(t){if(this.state===n){if(t===this)throw new TypeError("Promise settled with itself.");this.state=1,this.value=t,this.notify()}},o.notify=function(){var t,e=this;l(function(){if(e.state!==n)for(;e.deferred.length;){var t=e.deferred.shift(),i=t[0],r=t[1],o=t[2],s=t[3];try{0===e.state?o("function"==typeof i?i.call(void 0,e.value):e.value):1===e.state&&("function"==typeof r?o(r.call(void 0,e.value)):s(e.value))}catch(t){s(t)}}},t)},o.then=function(t,e){var i=this;return new r(function(n,r){i.deferred.push([t,e,n,r]),i.notify()})},o.catch=function(t){return this.then(void 0,t)},"undefined"==typeof Promise&&(window.Promise=r),s.all=function(t,e){return new s(Promise.all(t),e)},s.resolve=function(t,e){return new s(Promise.resolve(t),e)},s.reject=function(t,e){return new s(Promise.reject(t),e)},s.race=function(t,e){return new s(Promise.race(t),e)};var a=s.prototype;a.bind=function(t){return this.context=t,this},a.then=function(t,e){return t&&t.bind&&this.context&&(t=t.bind(this.context)),e&&e.bind&&this.context&&(e=e.bind(this.context)),new s(this.promise.then(t,e),this.context)},a.catch=function(t){return t&&t.bind&&this.context&&(t=t.bind(this.context)),new s(this.promise.catch(t),this.context)},a.finally=function(t){return this.then(function(e){return t.call(this),e},function(e){return t.call(this),Promise.reject(e)})};var l,u={}.hasOwnProperty,c=[].slice,h=!1,d="undefined"!=typeof window;function f(t){return t?t.replace(/^\s*|\s*$/g,""):""}function p(t){return t?t.toLowerCase():""}var v=Array.isArray;function g(t){return"string"==typeof t}function m(t){return"function"==typeof t}function y(t){return null!==t&&"object"==typeof t}function _(t){return y(t)&&Object.getPrototypeOf(t)==Object.prototype}function b(t,e,i){var n=s.resolve(t);return arguments.length<2?n:n.then(e,i)}function x(t,e,i){return m(i=i||{})&&(i=i.call(e)),T(t.bind({$vm:e,$options:i}),t,{$options:i})}function w(t,e){var i,n;if(v(t))for(i=0;i<t.length;i++)e.call(t[i],t[i],i);else if(y(t))for(n in t)u.call(t,n)&&e.call(t[n],t[n],n);return t}var S=Object.assign||function(t){return c.call(arguments,1).forEach(function(e){E(t,e)}),t};function T(t){return c.call(arguments,1).forEach(function(e){E(t,e,!0)}),t}function E(t,e,i){for(var n in e)i&&(_(e[n])||v(e[n]))?(_(e[n])&&!_(t[n])&&(t[n]={}),v(e[n])&&!v(t[n])&&(t[n]=[]),E(t[n],e[n],i)):void 0!==e[n]&&(t[n]=e[n])}function C(t,e,i){var n=function(t){var e=["+","#",".","/",";","?","&"],i=[];return{vars:i,expand:function(n){return t.replace(/\{([^{}]+)\}|([^{}]+)/g,function(t,r,o){if(r){var s=null,a=[];if(-1!==e.indexOf(r.charAt(0))&&(s=r.charAt(0),r=r.substr(1)),r.split(/,/g).forEach(function(t){var e=/([^:*]*)(?::(\d+)|(\*))?/.exec(t);a.push.apply(a,function(t,e,i,n){var r=t[i],o=[];if(O(r)&&""!==r)if("string"==typeof r||"number"==typeof r||"boolean"==typeof r)r=r.toString(),n&&"*"!==n&&(r=r.substring(0,parseInt(n,10))),o.push(P(e,r,M(e)?i:null));else if("*"===n)Array.isArray(r)?r.filter(O).forEach(function(t){o.push(P(e,t,M(e)?i:null))}):Object.keys(r).forEach(function(t){O(r[t])&&o.push(P(e,r[t],t))});else{var s=[];Array.isArray(r)?r.filter(O).forEach(function(t){s.push(P(e,t))}):Object.keys(r).forEach(function(t){O(r[t])&&(s.push(encodeURIComponent(t)),s.push(P(e,r[t].toString())))}),M(e)?o.push(encodeURIComponent(i)+"="+s.join(",")):0!==s.length&&o.push(s.join(","))}else";"===e?o.push(encodeURIComponent(i)):""!==r||"&"!==e&&"?"!==e?""===r&&o.push(""):o.push(encodeURIComponent(i)+"=");return o}(n,s,e[1],e[2]||e[3])),i.push(e[1])}),s&&"+"!==s){var l=",";return"?"===s?l="&":"#"!==s&&(l=s),(0!==a.length?s:"")+a.join(l)}return a.join(",")}return k(o)})}}}(t),r=n.expand(e);return i&&i.push.apply(i,n.vars),r}function O(t){return void 0!==t&&null!==t}function M(t){return";"===t||"&"===t||"?"===t}function P(t,e,i){return e="+"===t||"#"===t?k(e):encodeURIComponent(e),i?encodeURIComponent(i)+"="+e:e}function k(t){return t.split(/(%[0-9A-Fa-f]{2})/g).map(function(t){return/%[0-9A-Fa-f]/.test(t)||(t=encodeURI(t)),t}).join("")}function I(t,e){var i,n=this||{},r=t;return g(t)&&(r={url:t,params:e}),r=T({},I.options,n.$options,r),I.transforms.forEach(function(t){g(t)&&(t=I.transform[t]),m(t)&&(i=function(t,e,i){return function(n){return t.call(i,n,e)}}(t,i,n.$vm))}),i(r)}function L(t){return new s(function(e){var i=new XDomainRequest,n=function(n){var r=n.type,o=0;"load"===r?o=200:"error"===r&&(o=500),e(t.respondWith(i.responseText,{status:o}))};t.abort=function(){return i.abort()},i.open(t.method,t.getUrl()),t.timeout&&(i.timeout=t.timeout),i.onload=n,i.onabort=n,i.onerror=n,i.ontimeout=n,i.onprogress=function(){},i.send(t.getBody())})}I.options={url:"",root:null,params:{}},I.transform={template:function(t){var e=[],i=C(t.url,t.params,e);return e.forEach(function(e){delete t.params[e]}),i},query:function(t,e){var i=Object.keys(I.options.params),n={},r=e(t);return w(t.params,function(t,e){-1===i.indexOf(e)&&(n[e]=t)}),(n=I.params(n))&&(r+=(-1==r.indexOf("?")?"?":"&")+n),r},root:function(t,e){var i,n,r=e(t);return g(t.root)&&!/^(https?:)?\//.test(r)&&(i=t.root,n="/",r=(i&&void 0===n?i.replace(/\s+$/,""):i&&n?i.replace(new RegExp("["+n+"]+$"),""):i)+"/"+r),r}},I.transforms=["template","query","root"],I.params=function(t){var e=[],i=encodeURIComponent;return e.add=function(t,e){m(e)&&(e=e()),null===e&&(e=""),this.push(i(t)+"="+i(e))},function t(e,i,n){var r,o=v(i),s=_(i);w(i,function(i,a){r=y(i)||v(i),n&&(a=n+"["+(s||r?a:"")+"]"),!n&&o?e.add(i.name,i.value):r?t(e,i,a):e.add(a,i)})}(e,t),e.join("&").replace(/%20/g,"+")},I.parse=function(t){var e=document.createElement("a");return document.documentMode&&(e.href=t,t=e.href),e.href=t,{href:e.href,protocol:e.protocol?e.protocol.replace(/:$/,""):"",port:e.port,host:e.host,hostname:e.hostname,pathname:"/"===e.pathname.charAt(0)?e.pathname:"/"+e.pathname,search:e.search?e.search.replace(/^\?/,""):"",hash:e.hash?e.hash.replace(/^#/,""):""}};var A=d&&"withCredentials"in new XMLHttpRequest;function R(t){return new s(function(e){var i,n,r=t.jsonp||"callback",o=t.jsonpCallback||"_jsonp"+Math.random().toString(36).substr(2),s=null;i=function(i){var r=i.type,a=0;"load"===r&&null!==s?a=200:"error"===r&&(a=500),a&&window[o]&&(delete window[o],document.body.removeChild(n)),e(t.respondWith(s,{status:a}))},window[o]=function(t){s=JSON.stringify(t)},t.abort=function(){i({type:"abort"})},t.params[r]=o,t.timeout&&setTimeout(t.abort,t.timeout),(n=document.createElement("script")).src=t.getUrl(),n.type="text/javascript",n.async=!0,n.onload=i,n.onerror=i,document.body.appendChild(n)})}function F(t){return new s(function(e){var i=new XMLHttpRequest,n=function(n){var r=t.respondWith("response"in i?i.response:i.responseText,{status:1223===i.status?204:i.status,statusText:1223===i.status?"No Content":f(i.statusText)});w(f(i.getAllResponseHeaders()).split("\n"),function(t){r.headers.append(t.slice(0,t.indexOf(":")),t.slice(t.indexOf(":")+1))}),e(r)};t.abort=function(){return i.abort()},i.open(t.method,t.getUrl(),!0),t.timeout&&(i.timeout=t.timeout),t.responseType&&"responseType"in i&&(i.responseType=t.responseType),(t.withCredentials||t.credentials)&&(i.withCredentials=!0),t.crossOrigin||t.headers.set("X-Requested-With","XMLHttpRequest"),m(t.progress)&&"GET"===t.method&&i.addEventListener("progress",t.progress),m(t.downloadProgress)&&i.addEventListener("progress",t.downloadProgress),m(t.progress)&&/^(POST|PUT)$/i.test(t.method)&&i.upload.addEventListener("progress",t.progress),m(t.uploadProgress)&&i.upload&&i.upload.addEventListener("progress",t.uploadProgress),t.headers.forEach(function(t,e){i.setRequestHeader(e,t)}),i.onload=n,i.onabort=n,i.onerror=n,i.ontimeout=n,i.send(t.getBody())})}function D(t){var e=i(600);return new s(function(i){var n,r=t.getUrl(),o=t.getBody(),s=t.method,a={};t.headers.forEach(function(t,e){a[e]=t}),e(r,{body:o,method:s,headers:a}).then(n=function(e){var n=t.respondWith(e.body,{status:e.statusCode,statusText:f(e.statusMessage)});w(e.headers,function(t,e){n.headers.set(e,t)}),i(n)},function(t){return n(t.response)})})}function j(t){return(t.client||(d?F:D))(t)}var N=function(t){var e=this;this.map={},w(t,function(t,i){return e.append(i,t)})};function $(t,e){return Object.keys(t).reduce(function(t,i){return p(e)===p(i)?i:t},null)}N.prototype.has=function(t){return null!==$(this.map,t)},N.prototype.get=function(t){var e=this.map[$(this.map,t)];return e?e.join():null},N.prototype.getAll=function(t){return this.map[$(this.map,t)]||[]},N.prototype.set=function(t,e){this.map[function(t){if(/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return f(t)}($(this.map,t)||t)]=[f(e)]},N.prototype.append=function(t,e){var i=this.map[$(this.map,t)];i?i.push(f(e)):this.set(t,e)},N.prototype.delete=function(t){delete this.map[$(this.map,t)]},N.prototype.deleteAll=function(){this.map={}},N.prototype.forEach=function(t,e){var i=this;w(this.map,function(n,r){w(n,function(n){return t.call(e,n,r,i)})})};var G=function(t,e){var i=e.url,n=e.headers,r=e.status,o=e.statusText;this.url=i,this.ok=r>=200&&r<300,this.status=r||0,this.statusText=o||"",this.headers=new N(n),this.body=t,g(t)?this.bodyText=t:"undefined"!=typeof Blob&&t instanceof Blob&&(this.bodyBlob=t,function(t){return 0===t.type.indexOf("text")||-1!==t.type.indexOf("json")}(t)&&(this.bodyText=function(t){return new s(function(e){var i=new FileReader;i.readAsText(t),i.onload=function(){e(i.result)}})}(t)))};G.prototype.blob=function(){return b(this.bodyBlob)},G.prototype.text=function(){return b(this.bodyText)},G.prototype.json=function(){return b(this.text(),function(t){return JSON.parse(t)})},Object.defineProperty(G.prototype,"data",{get:function(){return this.body},set:function(t){this.body=t}});var z=function(t){var e;this.body=null,this.params={},S(this,t,{method:(e=t.method||"GET",e?e.toUpperCase():"")}),this.headers instanceof N||(this.headers=new N(this.headers))};z.prototype.getUrl=function(){return I(this)},z.prototype.getBody=function(){return this.body},z.prototype.respondWith=function(t,e){return new G(t,S(e||{},{url:this.getUrl()}))};var B={"Content-Type":"application/json;charset=utf-8"};function Y(t){var e=this||{},i=function(t){var e=[j],i=[];function n(n){for(;e.length;){var r=e.pop();if(m(r)){var o=void 0,a=void 0;if(y(o=r.call(t,n,function(t){return a=t})||a))return new s(function(e,n){i.forEach(function(e){o=b(o,function(i){return e.call(t,i)||i},n)}),b(o,e,n)},t);m(o)&&i.unshift(o)}else l="Invalid interceptor of type "+typeof r+", must be a function","undefined"!=typeof console&&h&&console.warn("[VueResource warn]: "+l)}var l}return y(t)||(t=null),n.use=function(t){e.push(t)},n}(e.$vm);return function(t){c.call(arguments,1).forEach(function(e){for(var i in e)void 0===t[i]&&(t[i]=e[i])})}(t||{},e.$options,Y.options),Y.interceptors.forEach(function(t){g(t)&&(t=Y.interceptor[t]),m(t)&&i.use(t)}),i(new z(t)).then(function(t){return t.ok?t:s.reject(t)},function(t){var e;return t instanceof Error&&(e=t,"undefined"!=typeof console&&console.error(e)),s.reject(t)})}function V(t,e,i,n){var r=this||{},o={};return w(i=S({},V.actions,i),function(i,s){i=T({url:t,params:S({},e)},n,i),o[s]=function(){return(r.$http||Y)(function(t,e){var i,n=S({},t),r={};switch(e.length){case 2:r=e[0],i=e[1];break;case 1:/^(POST|PUT|PATCH)$/i.test(n.method)?i=e[0]:r=e[0];break;case 0:break;default:throw"Expected up to 2 arguments [params, body], got "+e.length+" arguments"}return n.body=i,n.params=S({},n.params,r),n}(i,arguments))}}),o}function W(t){var e,i,n;W.installed||(i=(e=t).config,n=e.nextTick,l=n,h=i.debug||!i.silent,t.url=I,t.http=Y,t.resource=V,t.Promise=s,Object.defineProperties(t.prototype,{$url:{get:function(){return x(t.url,this,this.$options.url)}},$http:{get:function(){return x(t.http,this,this.$options.http)}},$resource:{get:function(){return t.resource.bind(this)}},$promise:{get:function(){var e=this;return function(i){return new t.Promise(i,e)}}}}))}Y.options={},Y.headers={put:B,post:B,patch:B,delete:B,common:{Accept:"application/json, text/plain, */*"},custom:{}},Y.interceptor={before:function(t){m(t.before)&&t.before.call(this,t)},method:function(t){t.emulateHTTP&&/^(PUT|PATCH|DELETE)$/i.test(t.method)&&(t.headers.set("X-HTTP-Method-Override",t.method),t.method="POST")},jsonp:function(t){"JSONP"==t.method&&(t.client=R)},json:function(t){var e=t.headers.get("Content-Type")||"";return y(t.body)&&0===e.indexOf("application/json")&&(t.body=JSON.stringify(t.body)),function(t){return t.bodyText?b(t.text(),function(e){var i,n;if(0===(t.headers.get("Content-Type")||"").indexOf("application/json")||(n=(i=e).match(/^\s*(\[|\{)/))&&{"[":/]\s*$/,"{":/}\s*$/}[n[1]].test(i))try{t.body=JSON.parse(e)}catch(e){t.body=null}else t.body=e;return t}):t}},form:function(t){var e;e=t.body,"undefined"!=typeof FormData&&e instanceof FormData?t.headers.delete("Content-Type"):y(t.body)&&t.emulateJSON&&(t.body=I.params(t.body),t.headers.set("Content-Type","application/x-www-form-urlencoded"))},header:function(t){w(S({},Y.headers.common,t.crossOrigin?{}:Y.headers.custom,Y.headers[p(t.method)]),function(e,i){t.headers.has(i)||t.headers.set(i,e)})},cors:function(t){if(d){var e=I.parse(location.href),i=I.parse(t.getUrl());i.protocol===e.protocol&&i.host===e.host||(t.crossOrigin=!0,t.emulateHTTP=!1,A||(t.client=L))}}},Y.interceptors=["before","method","jsonp","json","form","header","cors"],["get","delete","head","jsonp"].forEach(function(t){Y[t]=function(e,i){return this(S(i||{},{url:e,method:t}))}}),["post","put","patch"].forEach(function(t){Y[t]=function(e,i,n){return this(S(n||{},{url:e,method:t,body:i}))}}),V.actions={get:{method:"GET"},save:{method:"POST"},query:{method:"GET"},update:{method:"PUT"},remove:{method:"DELETE"},delete:{method:"DELETE"}},"undefined"!=typeof window&&window.Vue&&window.Vue.use(W),e.default=W},,function(t,e,i){"use strict";function n(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function r(t){return null!==t&&"object"==typeof t}Object.defineProperty(e,"__esModule",{value:!0});var o=Object.prototype.toString,s="[object Object]";function a(t){return o.call(t)===s}function l(t){return null===t||void 0===t}function u(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i=null,n=null;return 1===t.length?r(t[0])||Array.isArray(t[0])?n=t[0]:"string"==typeof t[0]&&(i=t[0]):2===t.length&&("string"==typeof t[0]&&(i=t[0]),(r(t[1])||Array.isArray(t[1]))&&(n=t[1])),{locale:i,params:n}}function c(t,e){if(!t&&"string"!=typeof t)return null;var i=t.split("|");return i[e=function(t,e){return t=Math.abs(t),2===e?function(t){return t?t>1?1:0:1}(t):t?Math.min(t,2):0}(e,i.length)]?i[e].trim():t}function h(t){return JSON.parse(JSON.stringify(t))}var d=Object.prototype.hasOwnProperty;function f(t,e){return d.call(t,e)}function p(t){for(var e=arguments,i=Object(t),n=1;n<arguments.length;n++){var o=e[n];if(void 0!==o&&null!==o){var s=void 0;for(s in o)f(o,s)&&(r(o[s])?i[s]=p(i[s],o[s]):i[s]=o[s])}}return i}var v="undefined"!=typeof Intl&&void 0!==Intl.DateTimeFormat,g="undefined"!=typeof Intl&&void 0!==Intl.NumberFormat;var m,y={beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18n?{}:null),t.i18n)if(t.i18n instanceof H){if(t.__i18n)try{var e={};t.__i18n.forEach(function(t){e=p(e,JSON.parse(t))}),Object.keys(e).forEach(function(i){t.i18n.mergeLocaleMessage(i,e[i])})}catch(t){0}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0}else if(a(t.i18n)){if(this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof H&&(t.i18n.root=this.$root.$i18n,t.i18n.formatter=this.$root.$i18n.formatter,t.i18n.fallbackLocale=this.$root.$i18n.fallbackLocale,t.i18n.silentTranslationWarn=this.$root.$i18n.silentTranslationWarn),t.__i18n)try{var i={};t.__i18n.forEach(function(t){i=p(i,JSON.parse(t))}),t.i18n.messages=i}catch(t){0}this._i18n=new H(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),this._i18n.subscribeDataChanging(this),this._subscribing=!0,(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale())}else 0;else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof H?(this._i18n=this.$root.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof H&&(this._i18n=t.parent.$i18n,this._i18n.subscribeDataChanging(this),this._subscribing=!0)},beforeDestroy:function(){this._i18n&&(this._subscribing&&(this._i18n.unsubscribeDataChanging(this),delete this._subscribing),this._i18nWatcher&&(this._i18nWatcher(),delete this._i18nWatcher),this._localeWatcher&&(this._localeWatcher(),delete this._localeWatcher),this._i18n=null)}},_={name:"i18n",functional:!0,props:{tag:{type:String,default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var i=e.props,r=e.data,o=e.children,s=e.parent.$i18n;if(o=(o||[]).filter(function(t){return t.tag||(t.text=t.text.trim())}),!s)return o;var a=i.path,l=i.locale,u={},c=i.places||{},h=Array.isArray(c)?c.length>0:Object.keys(c).length>0,d=o.every(function(t){if(t.data&&t.data.attrs){var e=t.data.attrs.place;return void 0!==e&&""!==e}});return h&&o.length>0&&!d&&n("If places prop is set, all child elements must have place prop set."),Array.isArray(c)?c.forEach(function(t,e){u[e]=t}):Object.keys(c).forEach(function(t){u[t]=c[t]}),o.forEach(function(t,e){var i=d?""+t.data.attrs.place:""+e;u[i]=t}),t(i.tag,r,s.i(a,l,u))}};function b(t,e,i){S(t,i)&&T(t,e,i)}function x(t,e,i,n){S(t,i)&&(function(t,e){var i=e.context;return t._locale===i.$i18n.locale}(t,i)&&function t(e,i){if(e===i)return!0;var n=r(e),o=r(i);if(!n||!o)return!n&&!o&&String(e)===String(i);try{var s=Array.isArray(e),a=Array.isArray(i);if(s&&a)return e.length===i.length&&e.every(function(e,n){return t(e,i[n])});if(s||a)return!1;var l=Object.keys(e),u=Object.keys(i);return l.length===u.length&&l.every(function(n){return t(e[n],i[n])})}catch(t){return!1}}(e.value,e.oldValue)||T(t,e,i))}function w(t,e,i,n){S(t,i)&&(t.textContent="",t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale)}function S(t,e){var i=e.context;return i?!!i.$i18n||(n("not exist VueI18n instance in Vue instance"),!1):(n("not exist Vue instance in VNode context"),!1)}function T(t,e,i){var r,o,s=function(t){var e,i,n,r;"string"==typeof t?e=t:a(t)&&(e=t.path,i=t.locale,n=t.args,r=t.choice);return{path:e,locale:i,args:n,choice:r}}(e.value),l=s.path,u=s.locale,c=s.args,h=s.choice;if(l||u||c)if(l){var d=i.context;t._vt=t.textContent=h?(r=d.$i18n).tc.apply(r,[l,h].concat(E(u,c))):(o=d.$i18n).t.apply(o,[l].concat(E(u,c))),t._locale=d.$i18n.locale}else n("required `path` in v-t directive");else n("not support value type")}function E(t,e){var i=[];return t&&i.push(t),e&&(Array.isArray(e)||a(e))&&i.push(e),i}function C(t){(m=t).version&&Number(m.version.split(".")[0]);C.installed=!0,Object.defineProperty(m.prototype,"$i18n",{get:function(){return this._i18n}}),function(t){Object.defineProperty(t.prototype,"$t",{get:function(){var t=this;return function(e){for(var i=[],n=arguments.length-1;n-- >0;)i[n]=arguments[n+1];var r=t.$i18n;return r._t.apply(r,[e,r.locale,r._getMessages(),t].concat(i))}}}),Object.defineProperty(t.prototype,"$tc",{get:function(){var t=this;return function(e,i){for(var n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];var o=t.$i18n;return o._tc.apply(o,[e,o.locale,o._getMessages(),t,i].concat(n))}}}),Object.defineProperty(t.prototype,"$te",{get:function(){var t=this;return function(e,i){var n=t.$i18n;return n._te(e,n.locale,n._getMessages(),i)}}}),Object.defineProperty(t.prototype,"$d",{get:function(){var t=this;return function(e){for(var i,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(i=t.$i18n).d.apply(i,[e].concat(n))}}}),Object.defineProperty(t.prototype,"$n",{get:function(){var t=this;return function(e){for(var i,n=[],r=arguments.length-1;r-- >0;)n[r]=arguments[r+1];return(i=t.$i18n).n.apply(i,[e].concat(n))}}})}(m),m.mixin(y),m.directive("t",{bind:b,update:x,unbind:w}),m.component(_.name,_);var e=m.config.optionMergeStrategies;e.i18n=e.methods}var O=function(){this._caches=Object.create(null)};O.prototype.interpolate=function(t,e){if(!e)return[t];var i=this._caches[t];return i||(i=function(t){var e=[],i=0,n="";for(;i<t.length;){var r=t[i++];if("{"===r){n&&e.push({type:"text",value:n}),n="";var o="";for(r=t[i++];"}"!==r;)o+=r,r=t[i++];var s=M.test(o)?"list":P.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===r?"{"!==t[i]&&(n+=r):n+=r}return n&&e.push({type:"text",value:n}),e}(t),this._caches[t]=i),function(t,e){var i=[],n=0,o=Array.isArray(e)?"list":r(e)?"named":"unknown";if("unknown"===o)return i;for(;n<t.length;){var s=t[n];switch(s.type){case"text":i.push(s.value);break;case"list":i.push(e[parseInt(s.value,10)]);break;case"named":"named"===o&&i.push(e[s.value]);break;case"unknown":0}n++}return i}(i,e)};var M=/^(\d)+/,P=/^(\w)+/;var k=0,I=1,L=2,A=3,R=0,F=4,D=5,j=6,N=7,$=8,G=[];G[R]={ws:[R],ident:[3,k],"[":[F],eof:[N]},G[1]={ws:[1],".":[2],"[":[F],eof:[N]},G[2]={ws:[2],ident:[3,k],0:[3,k],number:[3,k]},G[3]={ident:[3,k],0:[3,k],number:[3,k],ws:[1,I],".":[2,I],"[":[F,I],eof:[N,I]},G[F]={"'":[D,k],'"':[j,k],"[":[F,L],"]":[1,A],eof:$,else:[F,k]},G[D]={"'":[F,k],eof:$,else:[D,k]},G[j]={'"':[F,k],eof:$,else:[j,k]};var z=/^\s?(true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function B(t){if(void 0===t||null===t)return"eof";var e=t.charCodeAt(0);switch(e){case 91:case 93:case 46:case 34:case 39:case 48:return t;case 95:case 36:case 45:return"ident";case 32:case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return e>=97&&e<=122||e>=65&&e<=90?"ident":e>=49&&e<=57?"number":"else"}function Y(t){var e,i,n,r=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(n=r,z.test(n)?(i=(e=r).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==i&&39!==i?e:e.slice(1,-1):"*"+r)}var V=function(){this._cache=Object.create(null)};V.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=function(t){var e,i,n,r,o,s,a,l=[],u=-1,c=R,h=0,d=[];function f(){var e=t[u+1];if(c===D&&"'"===e||c===j&&'"'===e)return u++,n="\\"+e,d[k](),!0}for(d[I]=function(){void 0!==i&&(l.push(i),i=void 0)},d[k]=function(){void 0===i?i=n:i+=n},d[L]=function(){d[k](),h++},d[A]=function(){if(h>0)h--,c=F,d[k]();else{if(h=0,!1===(i=Y(i)))return!1;d[I]()}};null!==c;)if("\\"!==(e=t[++u])||!f()){if(r=B(e),(o=(a=G[c])[r]||a.else||$)===$)return;if(c=o[0],(s=d[o[1]])&&(n=void 0===(n=o[2])?e:n,!1===s()))return;if(c===N)return l}}(t))&&(this._cache[t]=e),e||[]},V.prototype.getPathValue=function(t,e){if(!r(t))return null;var i,n=this.parsePath(e);if(i=n,Array.isArray(i)&&0===i.length)return null;for(var o=n.length,s=t,a=0;a<o;){var l=s[n[a]];if(void 0===l){s=null;break}s=l,a++}return s};var W=["style","currency","currencyDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","localeMatcher","formatMatcher"],H=function(t){var e=this;void 0===t&&(t={}),!m&&"undefined"!=typeof window&&window.Vue&&C(window.Vue);var i=t.locale||"en-US",n=t.fallbackLocale||"en-US",r=t.messages||{},o=t.dateTimeFormats||{},s=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||new O,this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&!!t.silentTranslationWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new V,this._dataListeners=[],this._exist=function(t,i){return!(!t||!i)&&!l(e._path.getPathValue(t,i))},this._initVM({locale:i,fallbackLocale:n,messages:r,dateTimeFormats:o,numberFormats:s})},U={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0}};H.prototype._initVM=function(t){var e=m.config.silent;m.config.silent=!0,this._vm=new m({data:t}),m.config.silent=e},H.prototype.subscribeDataChanging=function(t){this._dataListeners.push(t)},H.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.length){var i=t.indexOf(e);if(i>-1)t.splice(i,1)}}(this._dataListeners,t)},H.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e=t._dataListeners.length;e--;)m.nextTick(function(){t._dataListeners[e]&&t._dataListeners[e].$forceUpdate()})},{deep:!0})},H.prototype.watchLocale=function(){if(!this._sync||!this._root)return null;var t=this._vm;return this._root.vm.$watch("locale",function(e){t.$set(t,"locale",e),t.$forceUpdate()},{immediate:!0})},U.vm.get=function(){return this._vm},U.messages.get=function(){return h(this._getMessages())},U.dateTimeFormats.get=function(){return h(this._getDateTimeFormats())},U.numberFormats.get=function(){return h(this._getNumberFormats())},U.locale.get=function(){return this._vm.locale},U.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},U.fallbackLocale.get=function(){return this._vm.fallbackLocale},U.fallbackLocale.set=function(t){this._vm.$set(this._vm,"fallbackLocale",t)},U.missing.get=function(){return this._missing},U.missing.set=function(t){this._missing=t},U.formatter.get=function(){return this._formatter},U.formatter.set=function(t){this._formatter=t},U.silentTranslationWarn.get=function(){return this._silentTranslationWarn},U.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},H.prototype._getMessages=function(){return this._vm.messages},H.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},H.prototype._getNumberFormats=function(){return this._vm.numberFormats},H.prototype._warnDefault=function(t,e,i,n,r){if(!l(i))return i;if(this._missing){var o=this._missing.apply(null,[t,e,n,r]);if("string"==typeof o)return o}else 0;return e},H.prototype._isFallbackRoot=function(t){return!t&&!l(this._root)&&this._fallbackRoot},H.prototype._interpolate=function(t,e,i,n,r,o){if(!e)return null;var s,u=this._path.getPathValue(e,i);if(Array.isArray(u)||a(u))return u;if(l(u)){if(!a(e))return null;if("string"!=typeof(s=e[i]))return null}else{if("string"!=typeof u)return null;s=u}return s.indexOf("@:")>=0&&(s=this._link(t,e,s,n,r,o)),this._render(s,r,o)},H.prototype._link=function(t,e,i,n,r,o){var s=i,a=s.match(/(@:[\w\-_|.]+)/g);for(var l in a)if(a.hasOwnProperty(l)){var u=a[l],c=u.substr(2),h=this._interpolate(t,e,c,n,"raw"===r?"string":r,"raw"===r?void 0:o);if(this._isFallbackRoot(h)){if(!this._root)throw Error("unexpected error");var d=this._root;h=d._translate(d._getMessages(),d.locale,d.fallbackLocale,c,n,r,o)}s=(h=this._warnDefault(t,c,h,n,Array.isArray(o)?o:[o]))?s.replace(u,h):s}return s},H.prototype._render=function(t,e,i){var n=this._formatter.interpolate(t,i);return"string"===e?n.join(""):n},H.prototype._translate=function(t,e,i,n,r,o,s){var a=this._interpolate(e,t[e],n,r,o,s);return l(a)&&l(a=this._interpolate(i,t[i],n,r,o,s))?null:a},H.prototype._t=function(t,e,i,n){for(var r,o=[],s=arguments.length-4;s-- >0;)o[s]=arguments[s+4];if(!t)return"";var a=u.apply(void 0,o),l=a.locale||e,c=this._translate(i,l,this.fallbackLocale,t,n,"string",a.params);if(this._isFallbackRoot(c)){if(!this._root)throw Error("unexpected error");return(r=this._root).t.apply(r,[t].concat(o))}return this._warnDefault(l,t,c,n,o)},H.prototype.t=function(t){for(var e,i=[],n=arguments.length-1;n-- >0;)i[n]=arguments[n+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(i))},H.prototype._i=function(t,e,i,n,r){var o=this._translate(i,e,this.fallbackLocale,t,n,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.i(t,e,r)}return this._warnDefault(e,t,o,n,[r])},H.prototype.i=function(t,e,i){return t?("string"!=typeof e&&(e=this.locale),this._i(t,e,this._getMessages(),null,i)):""},H.prototype._tc=function(t,e,i,n,r){for(var o,s=[],a=arguments.length-5;a-- >0;)s[a]=arguments[a+5];return t?(void 0===r&&(r=1),c((o=this)._t.apply(o,[t,e,i,n].concat(s)),r)):""},H.prototype.tc=function(t,e){for(var i,n=[],r=arguments.length-2;r-- >0;)n[r]=arguments[r+2];return(i=this)._tc.apply(i,[t,this.locale,this._getMessages(),null,e].concat(n))},H.prototype._te=function(t,e,i){for(var n=[],r=arguments.length-3;r-- >0;)n[r]=arguments[r+3];var o=u.apply(void 0,n).locale||e;return this._exist(i[o],t)},H.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},H.prototype.getLocaleMessage=function(t){return h(this._vm.messages[t]||{})},H.prototype.setLocaleMessage=function(t,e){this._vm.$set(this._vm.messages,t,e)},H.prototype.mergeLocaleMessage=function(t,e){this._vm.$set(this._vm.messages,t,m.util.extend(this._vm.messages[t]||{},e))},H.prototype.getDateTimeFormat=function(t){return h(this._vm.dateTimeFormats[t]||{})},H.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e)},H.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,m.util.extend(this._vm.dateTimeFormats[t]||{},e))},H.prototype._localizeDateTime=function(t,e,i,n,r){var o=e,s=n[o];if((l(s)||l(s[r]))&&(s=n[o=i]),l(s)||l(s[r]))return null;var a=s[r],u=o+"__"+r,c=this._dateTimeFormatters[u];return c||(c=this._dateTimeFormatters[u]=new Intl.DateTimeFormat(o,a)),c.format(t)},H.prototype._d=function(t,e,i){if(!i)return new Intl.DateTimeFormat(e).format(t);var n=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),i);if(this._isFallbackRoot(n)){if(!this._root)throw Error("unexpected error");return this._root.d(t,i,e)}return n||""},H.prototype.d=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var n=this.locale,o=null;return 1===e.length?"string"==typeof e[0]?o=e[0]:r(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(o=e[0].key)):2===e.length&&("string"==typeof e[0]&&(o=e[0]),"string"==typeof e[1]&&(n=e[1])),this._d(t,n,o)},H.prototype.getNumberFormat=function(t){return h(this._vm.numberFormats[t]||{})},H.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e)},H.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,m.util.extend(this._vm.numberFormats[t]||{},e))},H.prototype._localizeNumber=function(t,e,i,n,r,o){var s=e,a=n[s];if((l(a)||l(a[r]))&&(a=n[s=i]),l(a)||l(a[r]))return null;var u,c=a[r];if(o)u=new Intl.NumberFormat(s,Object.assign({},c,o));else{var h=s+"__"+r;(u=this._numberFormatters[h])||(u=this._numberFormatters[h]=new Intl.NumberFormat(s,c))}return u.format(t)},H.prototype._n=function(t,e,i,n){if(!i)return(n?new Intl.NumberFormat(e,n):new Intl.NumberFormat(e)).format(t);var r=this._localizeNumber(t,e,this.fallbackLocale,this._getNumberFormats(),i,n);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.n(t,Object.assign({},{key:i,locale:e},n))}return r||""},H.prototype.n=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var n=this.locale,o=null,s=null;return 1===e.length?"string"==typeof e[0]?o=e[0]:r(e[0])&&(e[0].locale&&(n=e[0].locale),e[0].key&&(o=e[0].key),s=Object.keys(e[0]).reduce(function(t,i){var n;return W.includes(i)?Object.assign({},t,((n={})[i]=e[0][i],n)):t},null)):2===e.length&&("string"==typeof e[0]&&(o=e[0]),"string"==typeof e[1]&&(n=e[1])),this._n(t,n,o,s)},Object.defineProperties(H.prototype,U),H.availabilities={dateTimeFormat:v,numberFormat:g},H.install=C,H.version="7.8.1",e.default=H},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n={};i.d(n,"createPointGeom",function(){return $s}),i.d(n,"createLineGeom",function(){return Gs}),i.d(n,"createPolygonGeom",function(){return zs}),i.d(n,"createMultiPointGeom",function(){return Bs}),i.d(n,"createMultiLineGeom",function(){return Ys}),i.d(n,"createMultiPolygonGeom",function(){return Vs}),i.d(n,"createGeomCollection",function(){return Ws}),i.d(n,"createCircularPolygon",function(){return Hs}),i.d(n,"isMultiGeom",function(){return Us}),i.d(n,"toSimpleGeom",function(){return Xs}),i.d(n,"findPointOnSurface",function(){return qs}),i.d(n,"getGeometryId",function(){return Ks}),i.d(n,"setGeometryId",function(){return Zs}),i.d(n,"initializeGeometry",function(){return Js});var r={};i.d(r,"default",function(){return s_}),i.d(r,"Source",function(){return r_}),i.d(r,"install",function(){return o_});var o={};i.d(o,"default",function(){return d_}),i.d(o,"Source",function(){return c_}),i.d(o,"install",function(){return h_});var s={};i.d(s,"default",function(){return v_}),i.d(s,"Geom",function(){return f_}),i.d(s,"install",function(){return p_});var a={};i.d(a,"default",function(){return __}),i.d(a,"Style",function(){return m_}),i.d(a,"install",function(){return y_});var l={};i.d(l,"default",function(){return O_}),i.d(l,"Source",function(){return E_}),i.d(l,"install",function(){return C_});var u={};i.d(u,"default",function(){return xb}),i.d(u,"Interaction",function(){return _b}),i.d(u,"install",function(){return bb});var c={};i.d(c,"default",function(){return Cb}),i.d(c,"Feature",function(){return Tb}),i.d(c,"install",function(){return Eb});var h={};i.d(h,"default",function(){return kb}),i.d(h,"Style",function(){return Mb}),i.d(h,"install",function(){return Pb});var d={};i.d(d,"default",function(){return Ab}),i.d(d,"Geoloc",function(){return Ib}),i.d(d,"install",function(){return Lb});var f={};i.d(f,"default",function(){return jb}),i.d(f,"Graticule",function(){return Fb}),i.d(f,"install",function(){return Db});var p={};i.d(p,"default",function(){return Gb}),i.d(p,"Layer",function(){return Nb}),i.d(p,"install",function(){return $b});var v={};i.d(v,"default",function(){return Ub}),i.d(v,"Layer",function(){return Wb}),i.d(v,"install",function(){return Hb});var g={};i.d(g,"default",function(){return Zb}),i.d(g,"Style",function(){return qb}),i.d(g,"install",function(){return Kb});var m={};i.d(m,"default",function(){return tx}),i.d(m,"Layer",function(){return Jb}),i.d(m,"install",function(){return Qb});var y={};i.d(y,"default",function(){return rx}),i.d(y,"Source",function(){return ix}),i.d(y,"install",function(){return nx});var _={};i.d(_,"default",function(){return ax}),i.d(_,"Source",function(){return ox}),i.d(_,"install",function(){return sx});var b={};i.d(b,"default",function(){return cx}),i.d(b,"Geom",function(){return lx}),i.d(b,"install",function(){return ux});var x={};i.d(x,"default",function(){return yx}),i.d(x,"Map",function(){return fx}),i.d(x,"View",function(){return gx}),i.d(x,"install",function(){return mx});var w={};i.d(w,"default",function(){return wx}),i.d(w,"Source",function(){return bx}),i.d(w,"install",function(){return xx});var S={};i.d(S,"default",function(){return Cx}),i.d(S,"Interaction",function(){return Tx}),i.d(S,"install",function(){return Ex});var T={};i.d(T,"default",function(){return Px}),i.d(T,"Geom",function(){return Ox}),i.d(T,"install",function(){return Mx});var E={};i.d(E,"default",function(){return Lx}),i.d(E,"Geom",function(){return kx}),i.d(E,"install",function(){return Ix});var C={};i.d(C,"default",function(){return Fx}),i.d(C,"Geom",function(){return Ax}),i.d(C,"install",function(){return Rx});var O={};i.d(O,"default",function(){return Nx}),i.d(O,"Source",function(){return Dx}),i.d(O,"install",function(){return jx});var M={};i.d(M,"default",function(){return Bx}),i.d(M,"Overlay",function(){return Gx}),i.d(M,"install",function(){return zx});var P={};i.d(P,"default",function(){return Wx}),i.d(P,"Geom",function(){return Yx}),i.d(P,"install",function(){return Vx});var k={};i.d(k,"default",function(){return Xx}),i.d(k,"Geom",function(){return Hx}),i.d(k,"install",function(){return Ux});var I={};i.d(I,"default",function(){return Jx}),i.d(I,"Style",function(){return Kx}),i.d(I,"install",function(){return Zx});var L={};i.d(L,"default",function(){return nw}),i.d(L,"Interaction",function(){return ew}),i.d(L,"install",function(){return iw});var A={};i.d(A,"default",function(){return aw}),i.d(A,"Interaction",function(){return ow}),i.d(A,"install",function(){return sw});var R={};i.d(R,"default",function(){return hw}),i.d(R,"Source",function(){return uw}),i.d(R,"install",function(){return cw});var F={};i.d(F,"default",function(){return pw}),i.d(F,"Source",function(){return dw}),i.d(F,"install",function(){return fw});var D={};i.d(D,"default",function(){return yw}),i.d(D,"Style",function(){return gw}),i.d(D,"install",function(){return mw});var j={};i.d(j,"default",function(){return ww}),i.d(j,"Style",function(){return bw}),i.d(j,"install",function(){return xw});var N={};i.d(N,"default",function(){return Ew}),i.d(N,"Style",function(){return Sw}),i.d(N,"install",function(){return Tw});var $={};i.d($,"default",function(){return Pw}),i.d($,"Style",function(){return Ow}),i.d($,"install",function(){return Mw});var G={};i.d(G,"default",function(){return Aw}),i.d(G,"Layer",function(){return Iw}),i.d(G,"install",function(){return Lw});var z={};i.d(z,"default",function(){return jw}),i.d(z,"Layer",function(){return Fw}),i.d(z,"install",function(){return Dw});var B={};i.d(B,"default",function(){return Vw}),i.d(B,"Source",function(){return Bw}),i.d(B,"install",function(){return Yw});var Y={};i.d(Y,"default",function(){return Kw}),i.d(Y,"Layer",function(){return Xw}),i.d(Y,"install",function(){return qw});var V={};i.d(V,"default",function(){return Qw}),i.d(V,"Source",function(){return Zw}),i.d(V,"install",function(){return Jw});var W={};i.d(W,"default",function(){return nS}),i.d(W,"Source",function(){return eS}),i.d(W,"install",function(){return iS});var H={};i.d(H,"default",function(){return uS}),i.d(H,"Source",function(){return aS}),i.d(H,"install",function(){return lS});var U={};function X(){return function(){throw new Error("Unimplemented abstract method.")}()}i.d(U,"default",function(){return dS}),i.d(U,"Source",function(){return cS}),i.d(U,"install",function(){return hS});var q=0;function K(t){return t.ol_uid||(t.ol_uid=String(++q))}var Z="5.3.3",J=function(t){function e(e){var i="Assertion failed. See https://openlayers.org/en/"+("latest"===Z?Z:"v"+Z.split("-")[0])+"/doc/errors/#"+e+" for details.";t.call(this,i),this.code=e,this.name="AssertionError",this.message=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Error);function Q(t,e){if(!t)throw new J(e)}var tt={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},et={UNKNOWN:0,INTERSECTING:1,ABOVE:2,RIGHT:4,BELOW:8,LEFT:16};function it(t){for(var e=ct(),i=0,n=t.length;i<n;++i)mt(e,t[i]);return e}function nt(t,e,i){return i?(i[0]=t[0]-e,i[1]=t[1]-e,i[2]=t[2]+e,i[3]=t[3]+e,i):[t[0]-e,t[1]-e,t[2]+e,t[3]+e]}function rt(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t.slice()}function ot(t,e,i){var n,r;return(n=e<t[0]?t[0]-e:t[2]<e?e-t[2]:0)*n+(r=i<t[1]?t[1]-i:t[3]<i?i-t[3]:0)*r}function st(t,e){return lt(t,e[0],e[1])}function at(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]}function lt(t,e,i){return t[0]<=e&&e<=t[2]&&t[1]<=i&&i<=t[3]}function ut(t,e){var i=t[0],n=t[1],r=t[2],o=t[3],s=e[0],a=e[1],l=et.UNKNOWN;return s<i?l|=et.LEFT:s>r&&(l|=et.RIGHT),a<n?l|=et.BELOW:a>o&&(l|=et.ABOVE),l===et.UNKNOWN&&(l=et.INTERSECTING),l}function ct(){return[1/0,1/0,-1/0,-1/0]}function ht(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}function dt(t){return ht(1/0,1/0,-1/0,-1/0,t)}function ft(t,e){var i=t[0],n=t[1];return ht(i,n,i,n,e)}function pt(t,e,i,n,r){return _t(dt(r),t,e,i,n)}function vt(t,e){return t[0]==e[0]&&t[2]==e[2]&&t[1]==e[1]&&t[3]==e[3]}function gt(t,e){return e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3]),t}function mt(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])}function yt(t,e){for(var i=0,n=e.length;i<n;++i)mt(t,e[i]);return t}function _t(t,e,i,n,r){for(;i<n;i+=r)bt(t,e[i],e[i+1]);return t}function bt(t,e,i){t[0]=Math.min(t[0],e),t[1]=Math.min(t[1],i),t[2]=Math.max(t[2],e),t[3]=Math.max(t[3],i)}function xt(t,e,i){var n;return(n=e.call(i,St(t)))?n:(n=e.call(i,Tt(t)))?n:(n=e.call(i,kt(t)))?n:(n=e.call(i,Pt(t)))||!1}function wt(t){var e=0;return At(t)||(e=It(t)*Ot(t)),e}function St(t){return[t[0],t[1]]}function Tt(t){return[t[2],t[1]]}function Et(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]}function Ct(t,e,i,n,r){var o=e*n[0]/2,s=e*n[1]/2,a=Math.cos(i),l=Math.sin(i),u=o*a,c=o*l,h=s*a,d=s*l,f=t[0],p=t[1],v=f-u+d,g=f-u-d,m=f+u-d,y=f+u+d,_=p-c-h,b=p-c+h,x=p+c+h,w=p+c-h;return ht(Math.min(v,g,m,y),Math.min(_,b,x,w),Math.max(v,g,m,y),Math.max(_,b,x,w),r)}function Ot(t){return t[3]-t[1]}function Mt(t,e,i){var n=i||[1/0,1/0,-1/0,-1/0];return Lt(t,e)?(t[0]>e[0]?n[0]=t[0]:n[0]=e[0],t[1]>e[1]?n[1]=t[1]:n[1]=e[1],t[2]<e[2]?n[2]=t[2]:n[2]=e[2],t[3]<e[3]?n[3]=t[3]:n[3]=e[3]):dt(n),n}function Pt(t){return[t[0],t[3]]}function kt(t){return[t[2],t[3]]}function It(t){return t[2]-t[0]}function Lt(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]}function At(t){return t[2]<t[0]||t[3]<t[1]}function Rt(t,e){var i=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=n,t[3]+=n}function Ft(t,e,i){var n=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]];return e(n,n,2),function(t,e,i){return ht(Math.min.apply(null,t),Math.min.apply(null,e),Math.max.apply(null,t),Math.max.apply(null,e),i)}([n[0],n[2],n[4],n[6]],[n[1],n[3],n[5],n[7]],i)}function Dt(t,e,i){return Math.min(Math.max(t,e),i)}var jt="cosh"in Math?Math.cosh:function(t){var e=Math.exp(t);return(e+1/e)/2};function Nt(t,e,i,n,r,o){var s=r-i,a=o-n;if(0!==s||0!==a){var l=((t-i)*s+(e-n)*a)/(s*s+a*a);l>1?(i=r,n=o):l>0&&(i+=s*l,n+=a*l)}return $t(t,e,i,n)}function $t(t,e,i,n){var r=i-t,o=n-e;return r*r+o*o}function Gt(t){return 180*t/Math.PI}function zt(t){return t*Math.PI/180}function Bt(t,e){var i=t%e;return i*e<0?i+e:i}function Yt(t,e,i){return t+i*(e-t)}var Vt="function"==typeof Object.assign?Object.assign:function(t,e){var i=arguments;if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),r=1,o=arguments.length;r<o;++r){var s=i[r];if(void 0!==s&&null!==s)for(var a in s)s.hasOwnProperty(a)&&(n[a]=s[a])}return n};function Wt(t){for(var e in t)delete t[e]}function Ht(t){var e=[];for(var i in t)e.push(t[i]);return e}function Ut(t){var e;for(e in t)return!1;return!e}function Xt(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]+2*e,i[1]=t[1]+2*e,i}function qt(t,e,i){return void 0===i&&(i=[0,0]),i[0]=t[0]*e+.5|0,i[1]=t[1]*e+.5|0,i}function Kt(t,e){return Array.isArray(t)?t:(void 0===e?e=[t,t]:e[0]=e[1]=t,e)}var Zt=.5,Jt={IDLE:0,LOADING:1,LOADED:2,ERROR:3,EMPTY:4,ABORT:5};function Qt(t){return Math.pow(t,3)}function te(t){return 1-Qt(1-t)}function ee(t){return 3*t*t-2*t*t*t}function ie(t){return t}var ne=function(){this.disposed_=!1};ne.prototype.dispose=function(){this.disposed_||(this.disposed_=!0,this.disposeInternal())},ne.prototype.disposeInternal=function(){};var re=ne;function oe(t,e,i,n){for(var r,o=0,s=t.length;o<s;++o)if((r=t[o]).listener===e&&r.bindTo===i)return n&&(r.deleteIndex=o),r}function se(t,e){var i=ae(t);return i?i[e]:void 0}function ae(t,e){var i=t.ol_lm;return!i&&e&&(i=t.ol_lm={}),i}function le(t,e){var i=se(t,e);if(i){for(var n=0,r=i.length;n<r;++n)t.removeEventListener(e,i[n].boundListener),Wt(i[n]);i.length=0;var o=ae(t);o&&(delete o[e],0===Object.keys(o).length&&function(t){delete t.ol_lm}(t))}}function ue(t,e,i,n,r){var o=ae(t,!0),s=o[e];s||(s=o[e]=[]);var a=oe(s,i,n,!1);return a?r||(a.callOnce=!1):(a={bindTo:n,callOnce:!!r,listener:i,target:t,type:e},t.addEventListener(e,function(t){var e=function(e){var i=t.listener,n=t.bindTo||t.target;return t.callOnce&&de(t),i.call(n,e)};return t.boundListener=e,e}(a)),s.push(a)),a}function ce(t,e,i,n){return ue(t,e,i,n,!0)}function he(t,e,i,n){var r=se(t,e);if(r){var o=oe(r,i,n,!0);o&&de(o)}}function de(t){if(t&&t.target){t.target.removeEventListener(t.type,t.boundListener);var e=se(t.target,t.type);if(e){var i="deleteIndex"in t?t.deleteIndex:e.indexOf(t);-1!==i&&e.splice(i,1),0===e.length&&le(t.target,t.type)}Wt(t)}}function fe(t){var e=ae(t);if(e)for(var i in e)le(t,i)}function pe(){return!0}function ve(){return!1}function ge(){}var me=function(t){this.propagationStopped,this.type=t,this.target=null};function ye(t){t.stopPropagation()}me.prototype.preventDefault=function(){this.propagationStopped=!0},me.prototype.stopPropagation=function(){this.propagationStopped=!0};var _e=me,be=function(t){function e(){t.call(this),this.pendingRemovals_={},this.dispatching_={},this.listeners_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addEventListener=function(t,e){var i=this.listeners_[t];i||(i=this.listeners_[t]=[]),-1===i.indexOf(e)&&i.push(e)},e.prototype.dispatchEvent=function(t){var e="string"==typeof t?new _e(t):t,i=e.type;e.target=this;var n,r=this.listeners_[i];if(r){i in this.dispatching_||(this.dispatching_[i]=0,this.pendingRemovals_[i]=0),++this.dispatching_[i];for(var o=0,s=r.length;o<s;++o)if(!1===r[o].call(this,e)||e.propagationStopped){n=!1;break}if(--this.dispatching_[i],0===this.dispatching_[i]){var a=this.pendingRemovals_[i];for(delete this.pendingRemovals_[i];a--;)this.removeEventListener(i,ge);delete this.dispatching_[i]}return n}},e.prototype.disposeInternal=function(){fe(this)},e.prototype.getListeners=function(t){return this.listeners_[t]},e.prototype.hasListener=function(t){return t?t in this.listeners_:Object.keys(this.listeners_).length>0},e.prototype.removeEventListener=function(t,e){var i=this.listeners_[t];if(i){var n=i.indexOf(e);t in this.pendingRemovals_?(i[n]=ge,++this.pendingRemovals_[t]):(i.splice(n,1),0===i.length&&delete this.listeners_[t])}},e}(re),xe={CHANGE:"change",CLEAR:"clear",CONTEXTMENU:"contextmenu",CLICK:"click",DBLCLICK:"dblclick",DRAGENTER:"dragenter",DRAGOVER:"dragover",DROP:"drop",ERROR:"error",KEYDOWN:"keydown",KEYPRESS:"keypress",LOAD:"load",MOUSEDOWN:"mousedown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEUP:"mouseup",MOUSEWHEEL:"mousewheel",MSPOINTERDOWN:"MSPointerDown",RESIZE:"resize",TOUCHSTART:"touchstart",TOUCHMOVE:"touchmove",TOUCHEND:"touchend",WHEEL:"wheel"},we=function(t){function e(e,i,n){t.call(this);var r=n||{};this.tileCoord=e,this.state=i,this.interimTile=null,this.key="",this.transition_=void 0===r.transition?250:r.transition,this.transitionStarts_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(xe.CHANGE)},e.prototype.getKey=function(){return this.key+"/"+this.tileCoord},e.prototype.getInterimTile=function(){if(!this.interimTile)return this;var t=this.interimTile;do{if(t.getState()==Jt.LOADED)return t;t=t.interimTile}while(t);return this},e.prototype.refreshInterimChain=function(){if(this.interimTile){var t=this.interimTile,e=this;do{if(t.getState()==Jt.LOADED){t.interimTile=null;break}t.getState()==Jt.LOADING?e=t:t.getState()==Jt.IDLE?e.interimTile=t.interimTile:e=t,t=e.interimTile}while(t)}},e.prototype.getTileCoord=function(){return this.tileCoord},e.prototype.getState=function(){return this.state},e.prototype.setState=function(t){this.state=t,this.changed()},e.prototype.load=function(){},e.prototype.getAlpha=function(t,e){if(!this.transition_)return 1;var i=this.transitionStarts_[t];if(i){if(-1===i)return 1}else i=e,this.transitionStarts_[t]=i;var n=e-i+1e3/60;return n>=this.transition_?1:Qt(n/this.transition_)},e.prototype.inTransition=function(t){return!!this.transition_&&-1!==this.transitionStarts_[t]},e.prototype.endTransition=function(t){this.transition_&&(this.transitionStarts_[t]=-1)},e}(be);function Se(t,e){var i=document.createElement("canvas");return t&&(i.width=t),e&&(i.height=e),i.getContext("2d")}function Te(t,e){var i=e.parentNode;i&&i.replaceChild(t,e)}function Ee(t){return t&&t.parentNode?t.parentNode.removeChild(t):null}function Ce(t){for(;t.lastChild;)t.removeChild(t.lastChild)}function Oe(){var t=Se(1,1);return t.fillStyle="rgba(0,0,0,0)",t.fillRect(0,0,1,1),t.canvas}var Me=function(t){function e(e,i,n,r,o,s){t.call(this,e,i,s),this.crossOrigin_=r,this.src_=n,this.image_=new Image,null!==r&&(this.image_.crossOrigin=r),this.imageListenerKeys_=null,this.tileLoadFunction_=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==Jt.LOADING&&(this.unlistenImage_(),this.image_=Oe()),this.interimTile&&this.interimTile.dispose(),this.state=Jt.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_},e.prototype.getKey=function(){return this.src_},e.prototype.handleImageError_=function(){this.state=Jt.ERROR,this.unlistenImage_(),this.image_=Oe(),this.changed()},e.prototype.handleImageLoad_=function(){var t=this.image_;t.naturalWidth&&t.naturalHeight?this.state=Jt.LOADED:this.state=Jt.EMPTY,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state==Jt.ERROR&&(this.state=Jt.IDLE,this.image_=new Image,null!==this.crossOrigin_&&(this.image_.crossOrigin=this.crossOrigin_)),this.state==Jt.IDLE&&(this.state=Jt.LOADING,this.changed(),this.imageListenerKeys_=[ce(this.image_,xe.ERROR,this.handleImageError_,this),ce(this.image_,xe.LOAD,this.handleImageLoad_,this)],this.tileLoadFunction_(this,this.src_))},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(de),this.imageListenerKeys_=null},e}(we),Pe=function(t){function e(e){t.call(this),this.highWaterMark=void 0!==e?e:2048,this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){return this.getCount()>this.highWaterMark},e.prototype.clear=function(){this.count_=0,this.entries_={},this.oldest_=null,this.newest_=null,this.dispatchEvent(xe.CLEAR)},e.prototype.containsKey=function(t){return this.entries_.hasOwnProperty(t)},e.prototype.forEach=function(t,e){for(var i=this.oldest_;i;)t.call(e,i.value_,i.key_,this),i=i.newer},e.prototype.get=function(t){var e=this.entries_[t];return Q(void 0!==e,15),e===this.newest_?e.value_:(e===this.oldest_?(this.oldest_=this.oldest_.newer,this.oldest_.older=null):(e.newer.older=e.older,e.older.newer=e.newer),e.newer=null,e.older=this.newest_,this.newest_.newer=e,this.newest_=e,e.value_)},e.prototype.remove=function(t){var e=this.entries_[t];return Q(void 0!==e,15),e===this.newest_?(this.newest_=e.older,this.newest_&&(this.newest_.newer=null)):e===this.oldest_?(this.oldest_=e.newer,this.oldest_&&(this.oldest_.older=null)):(e.newer.older=e.older,e.older.newer=e.newer),delete this.entries_[t],--this.count_,e.value_},e.prototype.getCount=function(){return this.count_},e.prototype.getKeys=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.key_;return e},e.prototype.getValues=function(){var t,e=new Array(this.count_),i=0;for(t=this.newest_;t;t=t.older)e[i++]=t.value_;return e},e.prototype.peekLast=function(){return this.oldest_.value_},e.prototype.peekLastKey=function(){return this.oldest_.key_},e.prototype.peekFirstKey=function(){return this.newest_.key_},e.prototype.pop=function(){var t=this.oldest_;return delete this.entries_[t.key_],t.newer&&(t.newer.older=null),this.oldest_=t.newer,this.oldest_||(this.newest_=null),--this.count_,t.value_},e.prototype.replace=function(t,e){this.get(t),this.entries_[t].value_=e},e.prototype.set=function(t,e){Q(!(t in this.entries_),16);var i={key_:t,newer:null,older:this.newest_,value_:e};this.newest_?this.newest_.newer=i:this.oldest_=i,this.newest_=i,this.entries_[t]=i,++this.count_},e.prototype.setSize=function(t){this.highWaterMark=t},e.prototype.prune=function(){for(;this.canExpireCache();)this.pop()},e}(be);function ke(t,e,i,n){return void 0!==n?(n[0]=t,n[1]=e,n[2]=i,n):[t,e,i]}function Ie(t,e,i){return t+"/"+e+"/"+i}function Le(t){return Ie(t[0],t[1],t[2])}function Ae(t){return(t[1]<<t[0])+t[2]}var Re=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.expireCache=function(t){for(;this.canExpireCache();){var e=this.peekLast(),i=e.tileCoord[0].toString();if(i in t&&t[i].contains(e.tileCoord))break;this.pop().dispose()}},e.prototype.pruneExceptNewestZ=function(){if(0!==this.getCount()){var t=function(t){return t.split("/").map(Number)}(this.peekFirstKey())[0];this.forEach(function(e){e.tileCoord[0]!==t&&(this.remove(Le(e.tileCoord)),e.dispose())},this)}},e}(Pe),Fe={POINT:"Point",LINE_STRING:"LineString",LINEAR_RING:"LinearRing",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},De=6371008.8;function je(t,e,i){var n=i||De,r=zt(t[1]),o=zt(e[1]),s=(o-r)/2,a=zt(e[0]-t[0])/2,l=Math.sin(s)*Math.sin(s)+Math.sin(a)*Math.sin(a)*Math.cos(r)*Math.cos(o);return 2*n*Math.atan2(Math.sqrt(l),Math.sqrt(1-l))}function Ne(t,e){for(var i=0,n=0,r=t.length;n<r-1;++n)i+=je(t[n],t[n+1],e);return i}function $e(t,e,i,n){var r=n||De,o=zt(t[1]),s=zt(t[0]),a=e/r,l=Math.asin(Math.sin(o)*Math.cos(a)+Math.cos(o)*Math.sin(a)*Math.cos(i));return[Gt(s+Math.atan2(Math.sin(i)*Math.sin(a)*Math.cos(o),Math.cos(a)-Math.sin(o)*Math.sin(l))),Gt(l)]}var Ge={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},ze={};ze[Ge.DEGREES]=2*Math.PI*6370997/360,ze[Ge.FEET]=.3048,ze[Ge.METERS]=1,ze[Ge.USFEET]=1200/3937;var Be=Ge,Ye=function(t){this.code_=t.code,this.units_=t.units,this.extent_=void 0!==t.extent?t.extent:null,this.worldExtent_=void 0!==t.worldExtent?t.worldExtent:null,this.axisOrientation_=void 0!==t.axisOrientation?t.axisOrientation:"enu",this.global_=void 0!==t.global&&t.global,this.canWrapX_=!(!this.global_||!this.extent_),this.getPointResolutionFunc_=t.getPointResolution,this.defaultTileGrid_=null,this.metersPerUnit_=t.metersPerUnit};Ye.prototype.canWrapX=function(){return this.canWrapX_},Ye.prototype.getCode=function(){return this.code_},Ye.prototype.getExtent=function(){return this.extent_},Ye.prototype.getUnits=function(){return this.units_},Ye.prototype.getMetersPerUnit=function(){return this.metersPerUnit_||ze[this.units_]},Ye.prototype.getWorldExtent=function(){return this.worldExtent_},Ye.prototype.getAxisOrientation=function(){return this.axisOrientation_},Ye.prototype.isGlobal=function(){return this.global_},Ye.prototype.setGlobal=function(t){this.global_=t,this.canWrapX_=!(!t||!this.extent_)},Ye.prototype.getDefaultTileGrid=function(){return this.defaultTileGrid_},Ye.prototype.setDefaultTileGrid=function(t){this.defaultTileGrid_=t},Ye.prototype.setExtent=function(t){this.extent_=t,this.canWrapX_=!(!this.global_||!t)},Ye.prototype.setWorldExtent=function(t){this.worldExtent_=t},Ye.prototype.setGetPointResolution=function(t){this.getPointResolutionFunc_=t},Ye.prototype.getPointResolutionFunc=function(){return this.getPointResolutionFunc_};var Ve=Ye,We=6378137,He=Math.PI*We,Ue=[-He,-He,He,He],Xe=[-180,-85,180,85],qe=function(t){function e(e){t.call(this,{code:e,units:Be.METERS,extent:Ue,global:!0,worldExtent:Xe,getPointResolution:function(t,e){return t/jt(e[1]/We)}})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ve),Ke=[new qe("EPSG:3857"),new qe("EPSG:102100"),new qe("EPSG:102113"),new qe("EPSG:900913"),new qe("urn:ogc:def:crs:EPSG:6.18:3:3857"),new qe("urn:ogc:def:crs:EPSG::3857"),new qe("http://www.opengis.net/gml/srs/epsg.xml#3857")];function Ze(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var s=He,a=0;a<n;a+=r){o[a]=s*t[a]/180;var l=We*Math.log(Math.tan(Math.PI*(t[a+1]+90)/360));l>s?l=s:l<-s&&(l=-s),o[a+1]=l}return o}function Je(t,e,i){var n=t.length,r=i>1?i:2,o=e;void 0===o&&(o=r>2?t.slice():new Array(n));for(var s=0;s<n;s+=r)o[s]=180*t[s]/He,o[s+1]=360*Math.atan(Math.exp(t[s+1]/We))/Math.PI-90;return o}var Qe=[-180,-90,180,90],ti=6378137*Math.PI/180,ei=function(t){function e(e,i){t.call(this,{code:e,units:Be.DEGREES,extent:Qe,axisOrientation:i,global:!0,metersPerUnit:ti,worldExtent:Qe})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ve),ii=[new ei("CRS:84"),new ei("EPSG:4326","neu"),new ei("urn:ogc:def:crs:EPSG::4326","neu"),new ei("urn:ogc:def:crs:EPSG:6.6:4326","neu"),new ei("urn:ogc:def:crs:OGC:1.3:CRS84"),new ei("urn:ogc:def:crs:OGC:2:84"),new ei("http://www.opengis.net/gml/srs/epsg.xml#4326","neu"),new ei("urn:x-ogc:def:crs:EPSG:4326","neu")],ni={};var ri,oi,si,ai={};function li(t,e,i){var n=t.getCode(),r=e.getCode();n in ai||(ai[n]={}),ai[n][r]=i}function ui(t,e,i){var n;if(void 0!==e){for(var r=0,o=t.length;r<o;++r)e[r]=t[r];n=e}else n=t.slice();return n}function ci(t,e,i){if(void 0!==e&&t!==e){for(var n=0,r=t.length;n<r;++n)e[n]=t[n];t=e}return t}function hi(t){!function(t,e){ni[t]=e}(t.getCode(),t),li(t,t,ui)}function di(t){return"string"==typeof t?ni[t]||null:t||null}function fi(t,e,i,n){var r,o=(t=di(t)).getPointResolutionFunc();if(o)r=o(e,i);else if(t.getUnits()==Be.DEGREES&&!n||n==Be.DEGREES)r=e;else{var s=mi(t,di("EPSG:4326")),a=[i[0]-e/2,i[1],i[0]+e/2,i[1],i[0],i[1]-e/2,i[0],i[1]+e/2];r=(je((a=s(a,a,2)).slice(0,2),a.slice(2,4))+je(a.slice(4,6),a.slice(6,8)))/2;var l=n?ze[n]:t.getMetersPerUnit();void 0!==l&&(r/=l)}return r}function pi(t){!function(t){t.forEach(hi)}(t),t.forEach(function(e){t.forEach(function(t){e!==t&&li(e,t,ui)})})}function vi(t,e){return t?"string"==typeof t?di(t):t:di(e)}function gi(t,e){if(t===e)return!0;var i=t.getUnits()===e.getUnits();return t.getCode()===e.getCode()?i:mi(t,e)===ui&&i}function mi(t,e){var i=function(t,e){var i;return t in ai&&e in ai[t]&&(i=ai[t][e]),i}(t.getCode(),e.getCode());return i||(i=ci),i}function yi(t,e){return mi(di(t),di(e))}function _i(t,e,i){return yi(e,i)(t,void 0,t.length)}function bi(t,e,i){return Ft(t,yi(e,i))}function xi(t,e,i,n){var r=_i(i,e,t),o=fi(e,n,i),s=e.getMetersPerUnit();void 0!==s&&(o*=s);var a=t.getMetersPerUnit();void 0!==a&&(o/=a);var l=t.getExtent();if(!l||st(l,r)){var u=fi(t,o,r)/o;isFinite(u)&&u>0&&(o/=u)}return o}function wi(t,e,i,n){var r=i-t,o=n-e,s=Math.sqrt(r*r+o*o);return[Math.round(i+r/s),Math.round(n+o/s)]}function Si(t,e,i,n,r,o,s,a,l,u,c){var h=Se(Math.round(i*t),Math.round(i*e));if(0===l.length)return h.canvas;h.scale(i,i);var d=[1/0,1/0,-1/0,-1/0];l.forEach(function(t,e,i){gt(d,t.extent)});var f=It(d),p=Ot(d),v=Se(Math.round(i*f/n),Math.round(i*p/n)),g=i/n;l.forEach(function(t,e,i){var n=t.extent[0]-d[0],r=-(t.extent[3]-d[3]),o=It(t.extent),s=Ot(t.extent);v.drawImage(t.image,u,u,t.image.width-2*u,t.image.height-2*u,n*g,r*g,o*g,s*g)});var m=Pt(s);return a.getTriangles().forEach(function(t,e,r){var s=t.source,a=t.target,l=s[0][0],u=s[0][1],c=s[1][0],f=s[1][1],p=s[2][0],g=s[2][1],y=(a[0][0]-m[0])/o,_=-(a[0][1]-m[1])/o,b=(a[1][0]-m[0])/o,x=-(a[1][1]-m[1])/o,w=(a[2][0]-m[0])/o,S=-(a[2][1]-m[1])/o,T=l,E=u;l=0,u=0;var C=function(t){for(var e=t.length,i=0;i<e;i++){for(var n=i,r=Math.abs(t[i][i]),o=i+1;o<e;o++){var s=Math.abs(t[o][i]);s>r&&(r=s,n=o)}if(0===r)return null;var a=t[n];t[n]=t[i],t[i]=a;for(var l=i+1;l<e;l++)for(var u=-t[l][i]/t[i][i],c=i;c<e+1;c++)i==c?t[l][c]=0:t[l][c]+=u*t[i][c]}for(var h=new Array(e),d=e-1;d>=0;d--){h[d]=t[d][e]/t[d][d];for(var f=d-1;f>=0;f--)t[f][e]-=t[f][d]*h[d]}return h}([[c-=T,f-=E,0,0,b-y],[p-=T,g-=E,0,0,w-y],[0,0,c,f,x-_],[0,0,p,g,S-_]]);if(C){h.save(),h.beginPath();var O=(y+b+w)/3,M=(_+x+S)/3,P=wi(O,M,y,_),k=wi(O,M,b,x),I=wi(O,M,w,S);h.moveTo(k[0],k[1]),h.lineTo(P[0],P[1]),h.lineTo(I[0],I[1]),h.clip(),h.transform(C[0],C[2],C[1],C[3],y,_),h.translate(d[0]-T,d[3]-E),h.scale(n/i,-n/i),h.drawImage(v.canvas,0,0),h.restore()}}),c&&(h.save(),h.strokeStyle="black",h.lineWidth=1,a.getTriangles().forEach(function(t,e,i){var n=t.target,r=(n[0][0]-m[0])/o,s=-(n[0][1]-m[1])/o,a=(n[1][0]-m[0])/o,l=-(n[1][1]-m[1])/o,u=(n[2][0]-m[0])/o,c=-(n[2][1]-m[1])/o;h.beginPath(),h.moveTo(a,l),h.lineTo(r,s),h.lineTo(u,c),h.closePath(),h.stroke()}),h.restore()),h.canvas}pi(Ke),pi(ii),ri=Ke,oi=Ze,si=Je,ii.forEach(function(t){ri.forEach(function(e){li(t,e,oi),li(e,t,si)})});var Ti=function(t,e,i,n,r){this.sourceProj_=t,this.targetProj_=e;var o={},s=yi(this.targetProj_,this.sourceProj_);this.transformInv_=function(t){var e=t[0]+"/"+t[1];return o[e]||(o[e]=s(t)),o[e]},this.maxSourceExtent_=n,this.errorThresholdSquared_=r*r,this.triangles_=[],this.wrapsXInSource_=!1,this.canWrapXInSource_=this.sourceProj_.canWrapX()&&!!n&&!!this.sourceProj_.getExtent()&&It(n)==It(this.sourceProj_.getExtent()),this.sourceWorldWidth_=this.sourceProj_.getExtent()?It(this.sourceProj_.getExtent()):null,this.targetWorldWidth_=this.targetProj_.getExtent()?It(this.targetProj_.getExtent()):null;var a=Pt(i),l=kt(i),u=Tt(i),c=St(i),h=this.transformInv_(a),d=this.transformInv_(l),f=this.transformInv_(u),p=this.transformInv_(c);if(this.addQuad_(a,l,u,c,h,d,f,p,10),this.wrapsXInSource_){var v=1/0;this.triangles_.forEach(function(t,e,i){v=Math.min(v,t.source[0][0],t.source[1][0],t.source[2][0])}),this.triangles_.forEach(function(t){if(Math.max(t.source[0][0],t.source[1][0],t.source[2][0])-v>this.sourceWorldWidth_/2){var e=[[t.source[0][0],t.source[0][1]],[t.source[1][0],t.source[1][1]],[t.source[2][0],t.source[2][1]]];e[0][0]-v>this.sourceWorldWidth_/2&&(e[0][0]-=this.sourceWorldWidth_),e[1][0]-v>this.sourceWorldWidth_/2&&(e[1][0]-=this.sourceWorldWidth_),e[2][0]-v>this.sourceWorldWidth_/2&&(e[2][0]-=this.sourceWorldWidth_);var i=Math.min(e[0][0],e[1][0],e[2][0]);Math.max(e[0][0],e[1][0],e[2][0])-i<this.sourceWorldWidth_/2&&(t.source=e)}}.bind(this))}o={}};Ti.prototype.addTriangle_=function(t,e,i,n,r,o){this.triangles_.push({source:[n,r,o],target:[t,e,i]})},Ti.prototype.addQuad_=function(t,e,i,n,r,o,s,a,l){var u=it([r,o,s,a]),c=this.sourceWorldWidth_?It(u)/this.sourceWorldWidth_:null,h=this.sourceWorldWidth_,d=this.sourceProj_.canWrapX()&&c>.5&&c<1,f=!1;if(l>0){if(this.targetProj_.isGlobal()&&this.targetWorldWidth_)f=It(it([t,e,i,n]))/this.targetWorldWidth_>.25||f;!d&&this.sourceProj_.isGlobal()&&c&&(f=c>.25||f)}if(f||!this.maxSourceExtent_||Lt(u,this.maxSourceExtent_)){if(!(f||isFinite(r[0])&&isFinite(r[1])&&isFinite(o[0])&&isFinite(o[1])&&isFinite(s[0])&&isFinite(s[1])&&isFinite(a[0])&&isFinite(a[1]))){if(!(l>0))return;f=!0}if(l>0){if(!f){var p,v=[(t[0]+i[0])/2,(t[1]+i[1])/2],g=this.transformInv_(v);if(d)p=(Bt(r[0],h)+Bt(s[0],h))/2-Bt(g[0],h);else p=(r[0]+s[0])/2-g[0];var m=(r[1]+s[1])/2-g[1];f=p*p+m*m>this.errorThresholdSquared_}if(f){if(Math.abs(t[0]-i[0])<=Math.abs(t[1]-i[1])){var y=[(e[0]+i[0])/2,(e[1]+i[1])/2],_=this.transformInv_(y),b=[(n[0]+t[0])/2,(n[1]+t[1])/2],x=this.transformInv_(b);this.addQuad_(t,e,y,b,r,o,_,x,l-1),this.addQuad_(b,y,i,n,x,_,s,a,l-1)}else{var w=[(t[0]+e[0])/2,(t[1]+e[1])/2],S=this.transformInv_(w),T=[(i[0]+n[0])/2,(i[1]+n[1])/2],E=this.transformInv_(T);this.addQuad_(t,w,T,n,r,S,E,a,l-1),this.addQuad_(w,e,i,T,S,o,s,E,l-1)}return}}if(d){if(!this.canWrapXInSource_)return;this.wrapsXInSource_=!0}this.addTriangle_(t,i,n,r,s,a),this.addTriangle_(t,e,i,r,o,s)}},Ti.prototype.calculateSourceExtent=function(){var t=[1/0,1/0,-1/0,-1/0];return this.triangles_.forEach(function(e,i,n){var r=e.source;mt(t,r[0]),mt(t,r[1]),mt(t,r[2])}),t},Ti.prototype.getTriangles=function(){return this.triangles_};var Ei=Ti,Ci=function(t){function e(e,i,n,r,o,s,a,l,u,c,h){t.call(this,o,Jt.IDLE),this.renderEdges_=void 0!==h&&h,this.pixelRatio_=a,this.gutter_=l,this.canvas_=null,this.sourceTileGrid_=i,this.targetTileGrid_=r,this.wrappedTileCoord_=s||o,this.sourceTiles_=[],this.sourcesListenerKeys_=null,this.sourceZ_=0;var d=r.getTileCoordExtent(this.wrappedTileCoord_),f=this.targetTileGrid_.getExtent(),p=this.sourceTileGrid_.getExtent(),v=f?Mt(d,f):d;if(0!==wt(v)){var g=e.getExtent();g&&(p=p?Mt(p,g):g);var m=r.getResolution(this.wrappedTileCoord_[0]),y=xi(e,n,Et(v),m);if(!isFinite(y)||y<=0)this.state=Jt.EMPTY;else{var _=void 0!==c?c:Zt;if(this.triangulation_=new Ei(e,n,v,p,y*_),0!==this.triangulation_.getTriangles().length){this.sourceZ_=i.getZForResolution(y);var b=this.triangulation_.calculateSourceExtent();if(p&&(e.canWrapX()?(b[1]=Dt(b[1],p[1],p[3]),b[3]=Dt(b[3],p[1],p[3])):b=Mt(b,p)),wt(b)){for(var x=i.getTileRangeForExtentAndZ(b,this.sourceZ_),w=x.minX;w<=x.maxX;w++)for(var S=x.minY;S<=x.maxY;S++){var T=u(this.sourceZ_,w,S,a);T&&this.sourceTiles_.push(T)}0===this.sourceTiles_.length&&(this.state=Jt.EMPTY)}else this.state=Jt.EMPTY}else this.state=Jt.EMPTY}}else this.state=Jt.EMPTY}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==Jt.LOADING&&this.unlistenSources_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.reproject_=function(){var t=[];if(this.sourceTiles_.forEach(function(e,i,n){e&&e.getState()==Jt.LOADED&&t.push({extent:this.sourceTileGrid_.getTileCoordExtent(e.tileCoord),image:e.getImage()})}.bind(this)),this.sourceTiles_.length=0,0===t.length)this.state=Jt.ERROR;else{var e=this.wrappedTileCoord_[0],i=this.targetTileGrid_.getTileSize(e),n="number"==typeof i?i:i[0],r="number"==typeof i?i:i[1],o=this.targetTileGrid_.getResolution(e),s=this.sourceTileGrid_.getResolution(this.sourceZ_),a=this.targetTileGrid_.getTileCoordExtent(this.wrappedTileCoord_);this.canvas_=Si(n,r,this.pixelRatio_,s,this.sourceTileGrid_.getExtent(),o,a,this.triangulation_,t,this.gutter_,this.renderEdges_),this.state=Jt.LOADED}this.changed()},e.prototype.load=function(){if(this.state==Jt.IDLE){this.state=Jt.LOADING,this.changed();var t=0;this.sourcesListenerKeys_=[],this.sourceTiles_.forEach(function(e,i,n){var r=e.getState();if(r==Jt.IDLE||r==Jt.LOADING){t++;var o=ue(e,xe.CHANGE,function(i){var n=e.getState();n!=Jt.LOADED&&n!=Jt.ERROR&&n!=Jt.EMPTY||(de(o),0===--t&&(this.unlistenSources_(),this.reproject_()))},this);this.sourcesListenerKeys_.push(o)}}.bind(this)),this.sourceTiles_.forEach(function(t,e,i){t.getState()==Jt.IDLE&&t.load()}),0===t&&setTimeout(this.reproject_.bind(this),0)}},e.prototype.unlistenSources_=function(){this.sourcesListenerKeys_.forEach(de),this.sourcesListenerKeys_=null},e}(we);function Oi(t,e){var i=/\{z\}/g,n=/\{x\}/g,r=/\{y\}/g,o=/\{-y\}/g;return function(s,a,l){return s?t.replace(i,s[0].toString()).replace(n,s[1].toString()).replace(r,function(){return(-s[2]-1).toString()}).replace(o,function(){var t=s[0],i=e.getFullTileRange(t);return Q(i,55),(i.getHeight()+s[2]).toString()}):void 0}}function Mi(t,e){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=Oi(t[r],e);return Pi(n)}function Pi(t){return 1===t.length?t[0]:function(e,i,n){if(e){var r=Bt(Ae(e),t.length);return t[r](e,i,n)}}}function ki(t,e,i){}function Ii(t){var e=[],i=/\{([a-z])-([a-z])\}/.exec(t);if(i){var n,r=i[1].charCodeAt(0),o=i[2].charCodeAt(0);for(n=r;n<=o;++n)e.push(t.replace(i[0],String.fromCharCode(n)));return e}if(i=i=/\{(\d+)-(\d+)\}/.exec(t)){for(var s=parseInt(i[2],10),a=parseInt(i[1],10);a<=s;a++)e.push(t.replace(i[0],a.toString()));return e}return e.push(t),e}var Li="propertychange";var Ai=function(t){function e(){t.call(this),this.revision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){++this.revision_,this.dispatchEvent(xe.CHANGE)},e.prototype.getRevision=function(){return this.revision_},e.prototype.on=function(t,e){if(Array.isArray(t)){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=ue(this,t[r],e);return n}return ue(this,t,e)},e.prototype.once=function(t,e){if(Array.isArray(t)){for(var i=t.length,n=new Array(i),r=0;r<i;++r)n[r]=ce(this,t[r],e);return n}return ce(this,t,e)},e.prototype.un=function(t,e){if(Array.isArray(t))for(var i=0,n=t.length;i<n;++i)he(this,t[i],e);else he(this,t,e)},e}(be),Ri=function(t){function e(e,i,n){t.call(this,e),this.key=i,this.oldValue=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),Fi={};function Di(t){return Fi.hasOwnProperty(t)?Fi[t]:Fi[t]="change:"+t}var ji=function(t){function e(e){t.call(this),K(this),this.values_={},void 0!==e&&this.setProperties(e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.get=function(t){var e;return this.values_.hasOwnProperty(t)&&(e=this.values_[t]),e},e.prototype.getKeys=function(){return Object.keys(this.values_)},e.prototype.getProperties=function(){return Vt({},this.values_)},e.prototype.notify=function(t,e){var i;i=Di(t),this.dispatchEvent(new Ri(i,t,e)),i=Li,this.dispatchEvent(new Ri(i,t,e))},e.prototype.set=function(t,e,i){if(i)this.values_[t]=e;else{var n=this.values_[t];this.values_[t]=e,n!==e&&this.notify(t,n)}},e.prototype.setProperties=function(t,e){for(var i in t)this.set(i,t[i],e)},e.prototype.unset=function(t,e){if(t in this.values_){var i=this.values_[t];delete this.values_[t],e||this.notify(t,i)}},e}(Ai),Ni={UNDEFINED:"undefined",LOADING:"loading",READY:"ready",ERROR:"error"};function $i(t){return t?Array.isArray(t)?function(e){return t}:"function"==typeof t?t:function(e){return[t]}:null}var Gi=function(t){function e(e){t.call(this),this.projection_=di(e.projection),this.attributions_=$i(e.attributions),this.attributionsCollapsible_=void 0===e.attributionsCollapsible||e.attributionsCollapsible,this.loading=!1,this.state_=void 0!==e.state?e.state:Ni.READY,this.wrapX_=void 0!==e.wrapX&&e.wrapX}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getAttributions=function(){return this.attributions_},e.prototype.getAttributionsCollapsible=function(){return this.attributionsCollapsible_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolutions=function(){return X()},e.prototype.getState=function(){return this.state_},e.prototype.getWrapX=function(){return this.wrapX_},e.prototype.refresh=function(){this.changed()},e.prototype.setAttributions=function(t){this.attributions_=$i(t),this.changed()},e.prototype.setState=function(t){this.state_=t,this.changed()},e}(ji),zi=42,Bi=256,Yi=function(t,e,i,n){this.minX=t,this.maxX=e,this.minY=i,this.maxY=n};function Vi(t,e,i,n,r){return void 0!==r?(r.minX=t,r.maxX=e,r.minY=i,r.maxY=n,r):new Yi(t,e,i,n)}Yi.prototype.contains=function(t){return this.containsXY(t[1],t[2])},Yi.prototype.containsTileRange=function(t){return this.minX<=t.minX&&t.maxX<=this.maxX&&this.minY<=t.minY&&t.maxY<=this.maxY},Yi.prototype.containsXY=function(t,e){return this.minX<=t&&t<=this.maxX&&this.minY<=e&&e<=this.maxY},Yi.prototype.equals=function(t){return this.minX==t.minX&&this.minY==t.minY&&this.maxX==t.maxX&&this.maxY==t.maxY},Yi.prototype.extend=function(t){t.minX<this.minX&&(this.minX=t.minX),t.maxX>this.maxX&&(this.maxX=t.maxX),t.minY<this.minY&&(this.minY=t.minY),t.maxY>this.maxY&&(this.maxY=t.maxY)},Yi.prototype.getHeight=function(){return this.maxY-this.minY+1},Yi.prototype.getSize=function(){return[this.getWidth(),this.getHeight()]},Yi.prototype.getWidth=function(){return this.maxX-this.minX+1},Yi.prototype.intersects=function(t){return this.minX<=t.maxX&&this.maxX>=t.minX&&this.minY<=t.maxY&&this.maxY>=t.minY};var Wi=Yi;function Hi(t,e){return t>e?1:t<e?-1:0}function Ui(t,e){return t.indexOf(e)>=0}function Xi(t,e,i){var n,r=t.length;if(t[0]<=e)return 0;if(e<=t[r-1])return r-1;if(i>0){for(n=1;n<r;++n)if(t[n]<e)return n-1}else if(i<0){for(n=1;n<r;++n)if(t[n]<=e)return n}else for(n=1;n<r;++n){if(t[n]==e)return n;if(t[n]<e)return t[n-1]-e<e-t[n]?n-1:n}return r-1}function qi(t,e,i){for(;e<i;){var n=t[e];t[e]=t[i],t[i]=n,++e,--i}}function Ki(t,e){for(var i=Array.isArray(e)?e:[e],n=i.length,r=0;r<n;r++)t[t.length]=i[r]}function Zi(t,e){var i=t.length;if(i!==e.length)return!1;for(var n=0;n<i;n++)if(t[n]!==e[n])return!1;return!0}function Ji(t,e){var i,n=t.length,r=Array(t.length);for(i=0;i<n;i++)r[i]={index:i,value:t[i]};for(r.sort(function(t,i){return e(t.value,i.value)||t.index-i.index}),i=0;i<t.length;i++)t[i]=r[i].value}var Qi=[0,0,0],tn=function(t){var e,i,n,r;if(this.minZoom=void 0!==t.minZoom?t.minZoom:0,this.resolutions_=t.resolutions,Q((e=this.resolutions_,i=!0,n=function(t,e){return e-t}||Hi,e.every(function(t,r){if(0===r)return!0;var o=n(e[r-1],t);return!(o>0||i&&0===o)})),17),!t.origins)for(var o=0,s=this.resolutions_.length-1;o<s;++o)if(r){if(this.resolutions_[o]/this.resolutions_[o+1]!==r){r=void 0;break}}else r=this.resolutions_[o]/this.resolutions_[o+1];this.zoomFactor_=r,this.maxZoom=this.resolutions_.length-1,this.origin_=void 0!==t.origin?t.origin:null,this.origins_=null,void 0!==t.origins&&(this.origins_=t.origins,Q(this.origins_.length==this.resolutions_.length,20));var a=t.extent;void 0===a||this.origin_||this.origins_||(this.origin_=Pt(a)),Q(!this.origin_&&this.origins_||this.origin_&&!this.origins_,18),this.tileSizes_=null,void 0!==t.tileSizes&&(this.tileSizes_=t.tileSizes,Q(this.tileSizes_.length==this.resolutions_.length,19)),this.tileSize_=void 0!==t.tileSize?t.tileSize:this.tileSizes_?null:Bi,Q(!this.tileSize_&&this.tileSizes_||this.tileSize_&&!this.tileSizes_,22),this.extent_=void 0!==a?a:null,this.fullTileRanges_=null,this.tmpSize_=[0,0],void 0!==t.sizes?this.fullTileRanges_=t.sizes.map(function(t,e){return new Wi(Math.min(0,t[0]),Math.max(t[0]-1,-1),Math.min(0,t[1]),Math.max(t[1]-1,-1))},this):a&&this.calculateTileRanges_(a)};tn.prototype.forEachTileCoord=function(t,e,i){for(var n=this.getTileRangeForExtentAndZ(t,e),r=n.minX,o=n.maxX;r<=o;++r)for(var s=n.minY,a=n.maxY;s<=a;++s)i([e,r,s])},tn.prototype.forEachTileCoordParentTileRange=function(t,e,i,n,r){var o,s,a,l=null,u=t[0]-1;for(2===this.zoomFactor_?(s=t[1],a=t[2]):l=this.getTileCoordExtent(t,r);u>=this.minZoom;){if(o=2===this.zoomFactor_?Vi(s=Math.floor(s/2),s,a=Math.floor(a/2),a,n):this.getTileRangeForExtentAndZ(l,u,n),e.call(i,u,o))return!0;--u}return!1},tn.prototype.getExtent=function(){return this.extent_},tn.prototype.getMaxZoom=function(){return this.maxZoom},tn.prototype.getMinZoom=function(){return this.minZoom},tn.prototype.getOrigin=function(t){return this.origin_?this.origin_:this.origins_[t]},tn.prototype.getResolution=function(t){return this.resolutions_[t]},tn.prototype.getResolutions=function(){return this.resolutions_},tn.prototype.getTileCoordChildTileRange=function(t,e,i){if(t[0]<this.maxZoom){if(2===this.zoomFactor_){var n=2*t[1],r=2*t[2];return Vi(n,n+1,r,r+1,e)}var o=this.getTileCoordExtent(t,i);return this.getTileRangeForExtentAndZ(o,t[0]+1,e)}return null},tn.prototype.getTileRangeExtent=function(t,e,i){var n=this.getOrigin(t),r=this.getResolution(t),o=Kt(this.getTileSize(t),this.tmpSize_),s=n[0]+e.minX*o[0]*r,a=n[0]+(e.maxX+1)*o[0]*r;return ht(s,n[1]+e.minY*o[1]*r,a,n[1]+(e.maxY+1)*o[1]*r,i)},tn.prototype.getTileRangeForExtentAndZ=function(t,e,i){var n=Qi;this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,n);var r=n[1],o=n[2];return this.getTileCoordForXYAndZ_(t[2],t[3],e,!0,n),Vi(r,n[1],o,n[2],i)},tn.prototype.getTileCoordCenter=function(t){var e=this.getOrigin(t[0]),i=this.getResolution(t[0]),n=Kt(this.getTileSize(t[0]),this.tmpSize_);return[e[0]+(t[1]+.5)*n[0]*i,e[1]+(t[2]+.5)*n[1]*i]},tn.prototype.getTileCoordExtent=function(t,e){var i=this.getOrigin(t[0]),n=this.getResolution(t[0]),r=Kt(this.getTileSize(t[0]),this.tmpSize_),o=i[0]+t[1]*r[0]*n,s=i[1]+t[2]*r[1]*n;return ht(o,s,o+r[0]*n,s+r[1]*n,e)},tn.prototype.getTileCoordForCoordAndResolution=function(t,e,i){return this.getTileCoordForXYAndResolution_(t[0],t[1],e,!1,i)},tn.prototype.getTileCoordForXYAndResolution_=function(t,e,i,n,r){var o=this.getZForResolution(i),s=i/this.getResolution(o),a=this.getOrigin(o),l=Kt(this.getTileSize(o),this.tmpSize_),u=n?.5:0,c=n?0:.5,h=Math.floor((t-a[0])/i+u),d=Math.floor((e-a[1])/i+c),f=s*h/l[0],p=s*d/l[1];return n?(f=Math.ceil(f)-1,p=Math.ceil(p)-1):(f=Math.floor(f),p=Math.floor(p)),ke(o,f,p,r)},tn.prototype.getTileCoordForXYAndZ_=function(t,e,i,n,r){var o=this.getOrigin(i),s=this.getResolution(i),a=Kt(this.getTileSize(i),this.tmpSize_),l=n?.5:0,u=n?0:.5,c=Math.floor((t-o[0])/s+l),h=Math.floor((e-o[1])/s+u),d=c/a[0],f=h/a[1];return n?(d=Math.ceil(d)-1,f=Math.ceil(f)-1):(d=Math.floor(d),f=Math.floor(f)),ke(i,d,f,r)},tn.prototype.getTileCoordForCoordAndZ=function(t,e,i){return this.getTileCoordForXYAndZ_(t[0],t[1],e,!1,i)},tn.prototype.getTileCoordResolution=function(t){return this.resolutions_[t[0]]},tn.prototype.getTileSize=function(t){return this.tileSize_?this.tileSize_:this.tileSizes_[t]},tn.prototype.getFullTileRange=function(t){return this.fullTileRanges_?this.fullTileRanges_[t]:null},tn.prototype.getZForResolution=function(t,e){return Dt(Xi(this.resolutions_,t,e||0),this.minZoom,this.maxZoom)},tn.prototype.calculateTileRanges_=function(t){for(var e=this.resolutions_.length,i=new Array(e),n=this.minZoom;n<e;++n)i[n]=this.getTileRangeForExtentAndZ(t,n);this.fullTileRanges_=i};var en=tn;function nn(t){var e=t.getDefaultTileGrid();return e||(e=an(t),t.setDefaultTileGrid(e)),e}function rn(t,e,i,n){var r=void 0!==n?n:tt.TOP_LEFT,o=sn(t,e,i);return new en({extent:t,origin:function(t,e){var i;return e===tt.BOTTOM_LEFT?i=St(t):e===tt.BOTTOM_RIGHT?i=Tt(t):e===tt.TOP_LEFT?i=Pt(t):e===tt.TOP_RIGHT?i=kt(t):Q(!1,13),i}(t,r),resolutions:o,tileSize:i})}function on(t){var e=t||{},i=e.extent||di("EPSG:3857").getExtent(),n={extent:i,minZoom:e.minZoom,tileSize:e.tileSize,resolutions:sn(i,e.maxZoom,e.tileSize)};return new en(n)}function sn(t,e,i){for(var n=void 0!==e?e:zi,r=Ot(t),o=It(t),s=Kt(void 0!==i?i:Bi),a=Math.max(o/s[0],r/s[1]),l=n+1,u=new Array(l),c=0;c<l;++c)u[c]=a/Math.pow(2,c);return u}function an(t,e,i,n){return rn(ln(t),e,i,n)}function ln(t){var e=(t=di(t)).getExtent();if(!e){var i=180*ze[Be.DEGREES]/t.getMetersPerUnit();e=ht(-i,-i,i,i)}return e}var un=function(t){function e(e){t.call(this,{attributions:e.attributions,attributionsCollapsible:e.attributionsCollapsible,projection:e.projection,state:e.state,wrapX:e.wrapX}),this.opaque_=void 0!==e.opaque&&e.opaque,this.tilePixelRatio_=void 0!==e.tilePixelRatio?e.tilePixelRatio:1,this.tileGrid=void 0!==e.tileGrid?e.tileGrid:null,this.tileCache=new Re(e.cacheSize),this.tmpSize=[0,0],this.key_=e.key||"",this.tileOptions={transition:e.transition}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){return this.tileCache.canExpireCache()},e.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);i&&i.expireCache(e)},e.prototype.forEachLoadedTile=function(t,e,i,n){var r=this.getTileCacheForProjection(t);if(!r)return!1;for(var o,s,a,l=!0,u=i.minX;u<=i.maxX;++u)for(var c=i.minY;c<=i.maxY;++c)s=Ie(e,u,c),a=!1,r.containsKey(s)&&(a=(o=r.get(s)).getState()===Jt.LOADED)&&(a=!1!==n(o)),a||(l=!1);return l},e.prototype.getGutterForProjection=function(t){return 0},e.prototype.getKey=function(){return this.key_},e.prototype.setKey=function(t){this.key_!==t&&(this.key_=t,this.changed())},e.prototype.getOpaque=function(t){return this.opaque_},e.prototype.getResolutions=function(){return this.tileGrid.getResolutions()},e.prototype.getTile=function(t,e,i,n,r){return X()},e.prototype.getTileGrid=function(){return this.tileGrid},e.prototype.getTileGridForProjection=function(t){return this.tileGrid?this.tileGrid:nn(t)},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();return e&&!gi(e,t)?null:this.tileCache},e.prototype.getTilePixelRatio=function(t){return this.tilePixelRatio_},e.prototype.getTilePixelSize=function(t,e,i){var n=this.getTileGridForProjection(i),r=this.getTilePixelRatio(e),o=Kt(n.getTileSize(t),this.tmpSize);return 1==r?o:qt(o,r,this.tmpSize)},e.prototype.getTileCoordForTileUrlFunction=function(t,e){var i=void 0!==e?e:this.getProjection(),n=this.getTileGridForProjection(i);return this.getWrapX()&&i.isGlobal()&&(t=function(t,e,i){var n=e[0],r=t.getTileCoordCenter(e),o=ln(i);if(st(o,r))return e;var s=It(o),a=Math.ceil((o[0]-r[0])/s);return r[0]+=s*a,t.getTileCoordForCoordAndZ(r,n)}(n,t,i)),function(t,e){var i=t[0],n=t[1],r=t[2];if(e.getMinZoom()>i||i>e.getMaxZoom())return!1;var o,s=e.getExtent();return!(o=s?e.getTileRangeForExtentAndZ(s,i):e.getFullTileRange(i))||o.containsXY(n,r)}(t,n)?t:null},e.prototype.refresh=function(){this.tileCache.clear(),this.changed()},e.prototype.useTile=function(t,e,i,n){},e}(Gi),cn=function(t){function e(e,i){t.call(this,e),this.tile=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),hn=un,dn="tileloadstart",fn="tileloadend",pn="tileloaderror",vn=function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tilePixelRatio:e.tilePixelRatio,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.generateTileUrlFunction_=!e.tileUrlFunction,this.tileLoadFunction=e.tileLoadFunction,this.tileUrlFunction=e.tileUrlFunction?e.tileUrlFunction.bind(this):ki,this.urls=null,e.urls?this.setUrls(e.urls):e.url&&this.setUrl(e.url),e.tileUrlFunction&&this.setTileUrlFunction(e.tileUrlFunction,this.key_),this.tileLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getTileLoadFunction=function(){return this.tileLoadFunction},e.prototype.getTileUrlFunction=function(){return this.tileUrlFunction},e.prototype.getUrls=function(){return this.urls},e.prototype.handleTileChange=function(t){var e,i=t.target,n=K(i),r=i.getState();r==Jt.LOADING?(this.tileLoadingKeys_[n]=!0,e=dn):n in this.tileLoadingKeys_&&(delete this.tileLoadingKeys_[n],e=r==Jt.ERROR?pn:r==Jt.LOADED||r==Jt.ABORT?fn:void 0),void 0!=e&&this.dispatchEvent(new cn(e,i))},e.prototype.setTileLoadFunction=function(t){this.tileCache.clear(),this.tileLoadFunction=t,this.changed()},e.prototype.setTileUrlFunction=function(t,e){this.tileUrlFunction=t,this.tileCache.pruneExceptNewestZ(),void 0!==e?this.setKey(e):this.changed()},e.prototype.setUrl=function(t){var e=this.urls=Ii(t);this.setUrls(e)},e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.generateTileUrlFunction_?this.setTileUrlFunction(Mi(t,this.tileGrid),e):this.setKey(e)},e.prototype.useTile=function(t,e,i){var n=Ie(t,e,i);this.tileCache.containsKey(n)&&this.tileCache.get(n)},e}(hn);function gn(t,e){t.getImage().src=e}var mn=function(t){function e(e){t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,opaque:e.opaque,projection:e.projection,state:e.state,tileGrid:e.tileGrid,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:gn,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:e.wrapX,transition:e.transition,key:e.key,attributionsCollapsible:e.attributionsCollapsible}),this.crossOrigin=void 0!==e.crossOrigin?e.crossOrigin:null,this.tileClass=void 0!==e.tileClass?e.tileClass:Me,this.tileCacheForProjection={},this.tileGridForProjection={},this.reprojectionErrorThreshold_=e.reprojectionErrorThreshold,this.renderReprojectionEdges_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.canExpireCache=function(){if(this.tileCache.canExpireCache())return!0;for(var t in this.tileCacheForProjection)if(this.tileCacheForProjection[t].canExpireCache())return!0;return!1},e.prototype.expireCache=function(t,e){var i=this.getTileCacheForProjection(t);for(var n in this.tileCache.expireCache(this.tileCache==i?e:{}),this.tileCacheForProjection){var r=this.tileCacheForProjection[n];r.expireCache(r==i?e:{})}},e.prototype.getGutterForProjection=function(t){return this.getProjection()&&t&&!gi(this.getProjection(),t)?0:this.getGutter()},e.prototype.getGutter=function(){return 0},e.prototype.getOpaque=function(e){return!(this.getProjection()&&e&&!gi(this.getProjection(),e))&&t.prototype.getOpaque.call(this,e)},e.prototype.getTileGridForProjection=function(t){var e=this.getProjection();if(!this.tileGrid||e&&!gi(e,t)){var i=K(t);return i in this.tileGridForProjection||(this.tileGridForProjection[i]=nn(t)),this.tileGridForProjection[i]}return this.tileGrid},e.prototype.getTileCacheForProjection=function(t){var e=this.getProjection();if(!e||gi(e,t))return this.tileCache;var i=K(t);return i in this.tileCacheForProjection||(this.tileCacheForProjection[i]=new Re(this.tileCache.highWaterMark)),this.tileCacheForProjection[i]},e.prototype.createTile_=function(t,e,i,n,r,o){var s=[t,e,i],a=this.getTileCoordForTileUrlFunction(s,r),l=a?this.tileUrlFunction(a,n,r):void 0,u=new this.tileClass(s,void 0!==l?Jt.IDLE:Jt.EMPTY,void 0!==l?l:"",this.crossOrigin,this.tileLoadFunction,this.tileOptions);return u.key=o,ue(u,xe.CHANGE,this.handleTileChange,this),u},e.prototype.getTile=function(t,e,i,n,r){var o=this.getProjection();if(o&&r&&!gi(o,r)){var s,a=this.getTileCacheForProjection(r),l=[t,e,i],u=Le(l);a.containsKey(u)&&(s=a.get(u));var c=this.getKey();if(s&&s.key==c)return s;var h=this.getTileGridForProjection(o),d=this.getTileGridForProjection(r),f=this.getTileCoordForTileUrlFunction(l,r),p=new Ci(o,h,r,d,l,f,this.getTilePixelRatio(n),this.getGutter(),function(t,e,i,n){return this.getTileInternal(t,e,i,n,o)}.bind(this),this.reprojectionErrorThreshold_,this.renderReprojectionEdges_);return p.key=c,s?(p.interimTile=s,p.refreshInterimChain(),a.replace(u,p)):a.set(u,p),p}return this.getTileInternal(t,e,i,n,o||r)},e.prototype.getTileInternal=function(t,e,i,n,r){var o=null,s=Ie(t,e,i),a=this.getKey();if(this.tileCache.containsKey(s)){if((o=this.tileCache.get(s)).key!=a){var l=o;o=this.createTile_(t,e,i,n,r,a),l.getState()==Jt.IDLE?o.interimTile=l.interimTile:o.interimTile=l,o.refreshInterimChain(),this.tileCache.replace(s,o)}}else o=this.createTile_(t,e,i,n,r,a),this.tileCache.set(s,o);return o},e.prototype.setRenderReprojectionEdges=function(t){if(this.renderReprojectionEdges_!=t){for(var e in this.renderReprojectionEdges_=t,this.tileCacheForProjection)this.tileCacheForProjection[e].clear();this.changed()}},e.prototype.setTileGridForProjection=function(t,e){var i=di(t);if(i){var n=K(i);n in this.tileGridForProjection||(this.tileGridForProjection[n]=e)}},e}(vn);function yn(t,e){var i=[];Object.keys(e).forEach(function(t){null!==e[t]&&void 0!==e[t]&&i.push(t+"="+encodeURIComponent(e[t]))});var n=i.join("&");return(t=-1===(t=t.replace(/[?&]$/,"")).indexOf("?")?t+"?":t+"&")+n}function _n(t,e,i){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(i)),!(n.getResolutions().length<=t[0])){var r=n.getTileCoordExtent(t,this.tmpExtent_),o=Kt(n.getTileSize(t[0]),this.tmpSize);1!=e&&(o=qt(o,e,this.tmpSize));var s={F:"image",FORMAT:"PNG32",TRANSPARENT:!0};return Vt(s,this.params_),this.getRequestUrl_(t,o,r,e,i,s)}}var bn=function(t){function e(e){var i=e||{};t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,tileUrlFunction:_n,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition}),this.params_=i.params||{},this.tmpExtent_=[1/0,1/0,-1/0,-1/0],this.setKey(this.getKeyForParams_())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,i,n,r,o){var s=this.urls;if(s){var a,l=r.getCode().split(":").pop();if(o.SIZE=e[0]+","+e[1],o.BBOX=i.join(","),o.BBOXSR=l,o.IMAGESR=l,o.DPI=Math.round(o.DPI?o.DPI*n:90*n),1==s.length)a=s[0];else a=s[Bt(Ae(t),s.length)];return yn(a.replace(/MapServer\/?$/,"MapServer/export").replace(/ImageServer\/?$/,"ImageServer/exportImage"),o)}},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.updateParams=function(t){Vt(this.params_,t),this.setKey(this.getKeyForParams_())},e}(mn),xn=i(25),wn=i.n(xn),Sn=i(14),Tn=i.n(Sn),En=i(29),Cn=i.n(En),On=i(30),Mn=i.n(On),Pn=i(174),kn=i.n(Pn),In=i(90),Ln=i(674),An=i.n(Ln);function Rn(t){var e=function(t,e){if("object"!=Object(In.a)(t)||!t)return t;var i=t[An.a];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=Object(In.a)(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==Object(In.a)(e)?e:e+""}function Fn(t,e,i){return(e=Rn(e))in t?kn()(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Dn=i(680),jn=i.n(Dn),Nn=i(15),$n=i.n(Nn),Gn="EPSG:4326",zn="EPSG:3857",Bn=28,Yn=256,Vn={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",MULTI_POINT:"MultiPoint",MULTI_LINE_STRING:"MultiLineString",MULTI_POLYGON:"MultiPolygon",GEOMETRY_COLLECTION:"GeometryCollection",CIRCLE:"Circle"},Wn={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},Hn={DEGREES:"degrees",FEET:"ft",METERS:"m",PIXELS:"pixels",TILE_PIXELS:"tile-pixels",USFEET:"us-ft"},Un={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},Xn=["FORMAT","F","LAYERS","LAYERDEFS","DYNAMICLAYERS","DPI","TRANSPARENT","TIME","LAYERTIMEOPTIONS","GDBVERSION","MAPSCALE","ROTATION","DATUMTRANSFORMATIONS","MAPRANGEVALUES","LAYERRANGEVALUES","LAYERPARAMETERVALUES","HISTORICMOMENT"];function qn(t,e){var i;if(e===Wn.BOTTOM_LEFT)i=St(t);else if(e===Wn.BOTTOM_RIGHT)i=Tt(t);else if(e===Wn.TOP_LEFT)i=Pt(t);else{if(e!==Wn.TOP_RIGHT)throw new Error("Invalid corner");i=kt(t)}return i}function Kn(t){var e=(t=di(t)).getExtent();if(!e){var i=180*ze[Hn.DEGREES]/t.getMetersPerUnit();e=function(t,e,i,n,r){return r?(r[0]=t,r[1]=e,r[2]=i,r[3]=n,r):[t,e,i,n]}(-i,-i,i,i)}return e}var Zn=function(t){function e(e){if(t.call(this),this.id_=void 0,this.geometryName_="geometry",this.style_=null,this.styleFunction_=void 0,this.geometryChangeKey_=null,ue(this,Di(this.geometryName_),this.handleGeometryChanged_,this),e)if("function"==typeof e.getSimplifiedGeometry){var i=e;this.setGeometry(i)}else{var n=e;this.setProperties(n)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e(this.getProperties());t.setGeometryName(this.getGeometryName());var i=this.getGeometry();i&&t.setGeometry(i.clone());var n=this.getStyle();return n&&t.setStyle(n),t},e.prototype.getGeometry=function(){return this.get(this.geometryName_)},e.prototype.getId=function(){return this.id_},e.prototype.getGeometryName=function(){return this.geometryName_},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.handleGeometryChange_=function(){this.changed()},e.prototype.handleGeometryChanged_=function(){this.geometryChangeKey_&&(de(this.geometryChangeKey_),this.geometryChangeKey_=null);var t=this.getGeometry();t&&(this.geometryChangeKey_=ue(t,xe.CHANGE,this.handleGeometryChange_,this)),this.changed()},e.prototype.setGeometry=function(t){this.set(this.geometryName_,t)},e.prototype.setStyle=function(t){this.style_=t,this.styleFunction_=t?function(t){if("function"==typeof t)return t;var e;if(Array.isArray(t))e=t;else{Q("function"==typeof t.getZIndex,41);var i=t;e=[i]}return function(){return e}}(t):void 0,this.changed()},e.prototype.setId=function(t){this.id_=t,this.changed()},e.prototype.setGeometryName=function(t){he(this,Di(this.geometryName_),this.handleGeometryChanged_,this),this.geometryName_=t,ue(this,Di(this.geometryName_),this.handleGeometryChanged_,this),this.handleGeometryChanged_()},e}(ji),Jn=i(91),Qn=i.n(Jn),tr=i(7),er=i.n(tr),ir=i(3);function nr(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function rr(t){if(Object(ir.q)(t)||t instanceof er.a)return t.id;if(t instanceof Zn)return t.getId();if(Object(ir.r)(t)||Object(ir.o)(t))return t;throw new Error("Illegal feature format")}function or(t,e){if(Object(ir.q)(t)||t instanceof er.a)return t.id=e,t;if(t instanceof Zn)return t.setId(e),t;throw new Error("Illegal feature format")}function sr(t,e){return null==rr(t)&&or(t,e||Qn()()),t}function ar(t,e){return t.setProperties(function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?nr(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):nr(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({},e.getProperties())),t.setGeometry(e.getGeometry().clone()),t.setStyle(null!=e.getStyle()?e.getStyle().clone():void 0),t}var lr=i(336),ur=i.n(lr);function cr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function hr(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),kn()(t,Rn(n.key),n)}}function dr(t,e,i){return e&&hr(t.prototype,e),i&&hr(t,i),kn()(t,"prototype",{writable:!1}),t}var fr=i(796),pr=i.n(fr),vr=i(179),gr=i.n(vr),mr=i(809),yr=i.n(mr),_r=i(231),br=i.n(_r),xr=i(311),wr=i.n(xr);function Sr(t){var e;return(Sr=br.a?gr()(e=wr.a).call(e):function(t){return t.__proto__||wr()(t)})(t)}function Tr(){var t;"undefined"!=typeof Reflect&&pr.a?Tr=gr()(t=pr.a).call(t):Tr=function(t,e,i){var n=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=Sr(t)););return t}(t,e);if(n){var r=yr()(n,e);return r.get?r.get.call(arguments.length<3?t:i):r.value}};return Tr.apply(this,arguments)}var Er=i(228),Cr=i.n(Er);function Or(t,e){var i;return(Or=br.a?gr()(i=br.a).call(i):function(t,e){return t.__proto__=e,t})(t,e)}function Mr(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Cr()(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),kn()(t,"prototype",{writable:!1}),e&&Or(t,e)}function Pr(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function kr(t,e){if(e&&("object"===Object(In.a)(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Pr(t)}var Ir=function(){this.dataProjection=null,this.defaultFeatureProjection=null};Ir.prototype.getReadOptions=function(t,e){var i;return e&&(i={dataProjection:e.dataProjection?e.dataProjection:this.readProjection(t),featureProjection:e.featureProjection}),this.adaptOptions(i)},Ir.prototype.adaptOptions=function(t){return Vt({dataProjection:this.dataProjection,featureProjection:this.defaultFeatureProjection},t)},Ir.prototype.getLastExtent=function(){return null},Ir.prototype.getType=function(){return X()},Ir.prototype.readFeature=function(t,e){return X()},Ir.prototype.readFeatures=function(t,e){return X()},Ir.prototype.readGeometry=function(t,e){return X()},Ir.prototype.readProjection=function(t){return X()},Ir.prototype.writeFeature=function(t,e){return X()},Ir.prototype.writeFeatures=function(t,e){return X()},Ir.prototype.writeGeometry=function(t,e){return X()};var Lr=Ir;function Ar(t,e,i){var n,r=i?di(i.featureProjection):null,o=i?di(i.dataProjection):null;if(n=r&&o&&!gi(r,o)?Array.isArray(t)?bi(t,o,r):(e?t.clone():t).transform(e?r:o,e?o:r):t,e&&i&&void 0!==i.decimals&&!Array.isArray(n)){var s=Math.pow(10,i.decimals);n===t&&(n=t.clone()),n.applyTransform(function(t){for(var e=0,i=t.length;e<i;++e)t[e]=Math.round(t[e]*s)/s;return t})}return n}var Rr={ARRAY_BUFFER:"arraybuffer",JSON:"json",TEXT:"text",XML:"xml"};function Fr(t){if("string"==typeof t){var e=JSON.parse(t);return e||null}return null!==t?t:null}var Dr=function(t){function e(){t.call(this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return Rr.JSON},e.prototype.readFeature=function(t,e){return this.readFeatureFromObject(Fr(t),this.getReadOptions(t,e))},e.prototype.readFeatures=function(t,e){return this.readFeaturesFromObject(Fr(t),this.getReadOptions(t,e))},e.prototype.readFeatureFromObject=function(t,e){return X()},e.prototype.readFeaturesFromObject=function(t,e){return X()},e.prototype.readGeometry=function(t,e){return this.readGeometryFromObject(Fr(t),this.getReadOptions(t,e))},e.prototype.readGeometryFromObject=function(t,e){return X()},e.prototype.readProjection=function(t){return this.readProjectionFromObject(Fr(t))},e.prototype.readProjectionFromObject=function(t){return X()},e.prototype.writeFeature=function(t,e){return JSON.stringify(this.writeFeatureObject(t,e))},e.prototype.writeFeatureObject=function(t,e){return X()},e.prototype.writeFeatures=function(t,e){return JSON.stringify(this.writeFeaturesObject(t,e))},e.prototype.writeFeaturesObject=function(t,e){return X()},e.prototype.writeGeometry=function(t,e){return JSON.stringify(this.writeGeometryObject(t,e))},e.prototype.writeGeometryObject=function(t,e){return X()},e}(Lr);function jr(t,e,i,n,r,o){for(var s=o||[],a=0,l=e;l<i;l+=n){var u=t[l],c=t[l+1];s[a++]=r[0]*u+r[2]*c+r[4],s[a++]=r[1]*u+r[3]*c+r[5]}return o&&s.length!=a&&(s.length=a),s}function Nr(t,e,i,n,r,o,s){for(var a=s||[],l=0,u=e;u<i;u+=n){a[l++]=t[u]+r,a[l++]=t[u+1]+o;for(var c=u+2;c<u+n;++c)a[l++]=t[c]}return s&&a.length!=l&&(a.length=l),a}var $r=new Array(6);function Gr(t){return Br(t,1,0,0,1,0,0)}function zr(t,e){var i=t[0],n=t[1],r=t[2],o=t[3],s=t[4],a=t[5],l=e[0],u=e[1],c=e[2],h=e[3],d=e[4],f=e[5];return t[0]=i*l+r*u,t[1]=n*l+o*u,t[2]=i*c+r*h,t[3]=n*c+o*h,t[4]=i*d+r*f+s,t[5]=n*d+o*f+a,t}function Br(t,e,i,n,r,o,s){return t[0]=e,t[1]=i,t[2]=n,t[3]=r,t[4]=o,t[5]=s,t}function Yr(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Vr(t,e){var i=e[0],n=e[1];return e[0]=t[0]*i+t[2]*n+t[4],e[1]=t[1]*i+t[3]*n+t[5],e}function Wr(t,e){var i=Math.cos(e),n=Math.sin(e);return zr(t,Br($r,i,n,-n,i,0,0))}function Hr(t,e,i){return zr(t,Br($r,e,0,0,i,0,0))}function Ur(t,e,i){return zr(t,Br($r,1,0,0,1,e,i))}function Xr(t,e,i,n,r,o,s,a){var l=Math.sin(o),u=Math.cos(o);return t[0]=n*u,t[1]=r*l,t[2]=-n*l,t[3]=r*u,t[4]=s*n*u-a*n*l+e,t[5]=s*r*l+a*r*u+i,t}function qr(t){var e,i=(e=t)[0]*e[3]-e[1]*e[2];Q(0!==i,32);var n=t[0],r=t[1],o=t[2],s=t[3],a=t[4],l=t[5];return t[0]=s/i,t[1]=-r/i,t[2]=-o/i,t[3]=n/i,t[4]=(o*l-s*a)/i,t[5]=-(n*l-r*a)/i,t}var Kr=[1,0,0,1,0,0],Zr=function(t){function e(){t.call(this),this.extent_=[1/0,1/0,-1/0,-1/0],this.extentRevision_=-1,this.simplifiedGeometryCache={},this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return X()},e.prototype.closestPointXY=function(t,e,i,n){return X()},e.prototype.containsXY=function(t,e){return!1},e.prototype.getClosestPoint=function(t,e){var i=e||[NaN,NaN];return this.closestPointXY(t[0],t[1],i,1/0),i},e.prototype.intersectsCoordinate=function(t){return this.containsXY(t[0],t[1])},e.prototype.computeExtent=function(t){return X()},e.prototype.getExtent=function(t){return this.extentRevision_!=this.getRevision()&&(this.extent_=this.computeExtent(this.extent_),this.extentRevision_=this.getRevision()),function(t,e){return e?(e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e):t}(this.extent_,t)},e.prototype.rotate=function(t,e){X()},e.prototype.scale=function(t,e,i){X()},e.prototype.simplify=function(t){return this.getSimplifiedGeometry(t*t)},e.prototype.getSimplifiedGeometry=function(t){return X()},e.prototype.getType=function(){return X()},e.prototype.applyTransform=function(t){X()},e.prototype.intersectsExtent=function(t){return X()},e.prototype.translate=function(t,e){X()},e.prototype.transform=function(t,e){var i=di(t),n=i.getUnits()==Be.TILE_PIXELS?function(t,n,r){var o=i.getExtent(),s=i.getWorldExtent(),a=Ot(s)/Ot(o);return Xr(Kr,s[0],s[3],a,-a,0,0,0),jr(t,0,t.length,r,Kr,n),yi(i,e)(t,n,r)}:yi(i,e);return this.applyTransform(n),this},e}(ji);function Jr(t){for(var e=[],i=0,n=t.length;i<n;++i)e.push(t[i].clone());return e}var Qr=function(t){function e(e){t.call(this),this.geometries_=e||null,this.listenGeometriesChange_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.unlistenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)he(this.geometries_[t],xe.CHANGE,this.changed,this)},e.prototype.listenGeometriesChange_=function(){if(this.geometries_)for(var t=0,e=this.geometries_.length;t<e;++t)ue(this.geometries_[t],xe.CHANGE,this.changed,this)},e.prototype.clone=function(){var t=new e(null);return t.setGeometries(this.geometries_),t},e.prototype.closestPointXY=function(t,e,i,n){if(n<ot(this.getExtent(),t,e))return n;for(var r=this.geometries_,o=0,s=r.length;o<s;++o)n=r[o].closestPointXY(t,e,i,n);return n},e.prototype.containsXY=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)if(i[n].containsXY(t,e))return!0;return!1},e.prototype.computeExtent=function(t){dt(t);for(var e=this.geometries_,i=0,n=e.length;i<n;++i)gt(t,e[i].getExtent());return t},e.prototype.getGeometries=function(){return Jr(this.geometries_)},e.prototype.getGeometriesArray=function(){return this.geometries_},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Wt(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<this.simplifiedGeometryMaxMinSquaredTolerance)return this;var i=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(i))return this.simplifiedGeometryCache[i];for(var n=[],r=this.geometries_,o=!1,s=0,a=r.length;s<a;++s){var l=r[s],u=l.getSimplifiedGeometry(t);n.push(u),u!==l&&(o=!0)}if(o){var c=new e(null);return c.setGeometriesArray(n),this.simplifiedGeometryCache[i]=c,c}return this.simplifiedGeometryMaxMinSquaredTolerance=t,this},e.prototype.getType=function(){return Fe.GEOMETRY_COLLECTION},e.prototype.intersectsExtent=function(t){for(var e=this.geometries_,i=0,n=e.length;i<n;++i)if(e[i].intersectsExtent(t))return!0;return!1},e.prototype.isEmpty=function(){return 0===this.geometries_.length},e.prototype.rotate=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)i[n].rotate(t,e);this.changed()},e.prototype.scale=function(t,e,i){var n=i;n||(n=Et(this.getExtent()));for(var r=this.geometries_,o=0,s=r.length;o<s;++o)r[o].scale(t,e,n);this.changed()},e.prototype.setGeometries=function(t){this.setGeometriesArray(Jr(t))},e.prototype.setGeometriesArray=function(t){this.unlistenGeometriesChange_(),this.geometries_=t,this.listenGeometriesChange_(),this.changed()},e.prototype.applyTransform=function(t){for(var e=this.geometries_,i=0,n=e.length;i<n;++i)e[i].applyTransform(t);this.changed()},e.prototype.translate=function(t,e){for(var i=this.geometries_,n=0,r=i.length;n<r;++n)i[n].translate(t,e);this.changed()},e.prototype.disposeInternal=function(){this.unlistenGeometriesChange_(),t.prototype.disposeInternal.call(this)},e}(Zr),to={XY:"XY",XYZ:"XYZ",XYM:"XYM",XYZM:"XYZM"};function eo(t){var e;return t==to.XY?e=2:t==to.XYZ||t==to.XYM?e=3:t==to.XYZM&&(e=4),e}var io=function(t){function e(){t.call(this),this.layout=to.XY,this.stride=2,this.flatCoordinates=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.computeExtent=function(t){return pt(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinates=function(){return X()},e.prototype.getFirstCoordinate=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.getFlatCoordinates=function(){return this.flatCoordinates},e.prototype.getLastCoordinate=function(){return this.flatCoordinates.slice(this.flatCoordinates.length-this.stride)},e.prototype.getLayout=function(){return this.layout},e.prototype.getSimplifiedGeometry=function(t){if(this.simplifiedGeometryRevision!=this.getRevision()&&(Wt(this.simplifiedGeometryCache),this.simplifiedGeometryMaxMinSquaredTolerance=0,this.simplifiedGeometryRevision=this.getRevision()),t<0||0!==this.simplifiedGeometryMaxMinSquaredTolerance&&t<=this.simplifiedGeometryMaxMinSquaredTolerance)return this;var e=t.toString();if(this.simplifiedGeometryCache.hasOwnProperty(e))return this.simplifiedGeometryCache[e];var i=this.getSimplifiedGeometryInternal(t);return i.getFlatCoordinates().length<this.flatCoordinates.length?(this.simplifiedGeometryCache[e]=i,i):(this.simplifiedGeometryMaxMinSquaredTolerance=t,this)},e.prototype.getSimplifiedGeometryInternal=function(t){return this},e.prototype.getStride=function(){return this.stride},e.prototype.setFlatCoordinates=function(t,e){this.stride=eo(t),this.layout=t,this.flatCoordinates=e},e.prototype.setCoordinates=function(t,e){X()},e.prototype.setLayout=function(t,e,i){var n;if(t)n=eo(t);else{for(var r=0;r<i;++r){if(0===e.length)return this.layout=to.XY,void(this.stride=2);e=e[0]}t=function(t){var e;2==t?e=to.XY:3==t?e=to.XYZ:4==t&&(e=to.XYZM);return e}(n=e.length)}this.layout=t,this.stride=n},e.prototype.applyTransform=function(t){this.flatCoordinates&&(t(this.flatCoordinates,this.flatCoordinates,this.stride),this.changed())},e.prototype.rotate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();!function(t,e,i,n,r,o,s){for(var a=s||[],l=Math.cos(r),u=Math.sin(r),c=o[0],h=o[1],d=0,f=e;f<i;f+=n){var p=t[f]-c,v=t[f+1]-h;a[d++]=c+p*l-v*u,a[d++]=h+p*u+v*l;for(var g=f+2;g<f+n;++g)a[d++]=t[g]}s&&a.length!=d&&(a.length=d)}(i,0,i.length,n,t,e,i),this.changed()}},e.prototype.scale=function(t,e,i){var n=e;void 0===n&&(n=t);var r=i;r||(r=Et(this.getExtent()));var o=this.getFlatCoordinates();if(o){var s=this.getStride();!function(t,e,i,n,r,o,s,a){for(var l=a||[],u=s[0],c=s[1],h=0,d=e;d<i;d+=n){var f=t[d]-u,p=t[d+1]-c;l[h++]=u+r*f,l[h++]=c+o*p;for(var v=d+2;v<d+n;++v)l[h++]=t[v]}a&&l.length!=h&&(l.length=h)}(o,0,o.length,s,t,n,r,o),this.changed()}},e.prototype.translate=function(t,e){var i=this.getFlatCoordinates();if(i){var n=this.getStride();Nr(i,0,i.length,n,t,e,i),this.changed()}},e}(Zr);function no(t,e,i,n,r,o,s){var a,l=t[e],u=t[e+1],c=t[i]-l,h=t[i+1]-u;if(0===c&&0===h)a=e;else{var d=((r-l)*c+(o-u)*h)/(c*c+h*h);if(d>1)a=i;else{if(d>0){for(var f=0;f<n;++f)s[f]=Yt(t[e+f],t[i+f],d);return void(s.length=n)}a=e}}for(var p=0;p<n;++p)s[p]=t[a+p];s.length=n}function ro(t,e,i,n,r){var o=t[e],s=t[e+1];for(e+=n;e<i;e+=n){var a=t[e],l=t[e+1],u=$t(o,s,a,l);u>r&&(r=u),o=a,s=l}return r}function oo(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){var a=i[o];r=ro(t,e,a,n,r),e=a}return r}function so(t,e,i,n,r,o,s,a,l,u,c){if(e==i)return u;var h,d;if(0===r){if((d=$t(s,a,t[e],t[e+1]))<u){for(h=0;h<n;++h)l[h]=t[e+h];return l.length=n,d}return u}for(var f=c||[NaN,NaN],p=e+n;p<i;)if(no(t,p-n,p,n,s,a,f),(d=$t(s,a,f[0],f[1]))<u){for(u=d,h=0;h<n;++h)l[h]=f[h];l.length=n,p+=n}else p+=n*Math.max((Math.sqrt(d)-Math.sqrt(u))/r|0,1);if(o&&(no(t,i-n,e,n,s,a,f),(d=$t(s,a,f[0],f[1]))<u)){for(u=d,h=0;h<n;++h)l[h]=f[h];l.length=n}return u}function ao(t,e,i,n,r,o,s,a,l,u,c){for(var h=c||[NaN,NaN],d=0,f=i.length;d<f;++d){var p=i[d];u=so(t,e,p,n,r,o,s,a,l,u,h),e=p}return u}function lo(t,e,i,n){for(var r=0,o=i.length;r<o;++r)t[e++]=i[r];return e}function uo(t,e,i,n){for(var r=0,o=i.length;r<o;++r)for(var s=i[r],a=0;a<n;++a)t[e++]=s[a];return e}function co(t,e,i,n,r){for(var o=r||[],s=0,a=0,l=i.length;a<l;++a){var u=uo(t,e,i[a],n);o[s++]=u,e=u}return o.length=s,o}function ho(t,e,i,n,r){for(var o=void 0!==r?r:[],s=0,a=e;a<i;a+=n)o[s++]=t.slice(a,a+n);return o.length=s,o}function fo(t,e,i,n,r){for(var o=void 0!==r?r:[],s=0,a=0,l=i.length;a<l;++a){var u=i[a];o[s++]=ho(t,e,u,n,o[s]),e=u}return o.length=s,o}function po(t,e,i,n,r){for(var o=void 0!==r?r:[],s=0,a=0,l=i.length;a<l;++a){var u=i[a];o[s++]=fo(t,e,u,n,o[s]),e=u[u.length-1]}return o.length=s,o}function vo(t,e,i,n,r,o){var s=NaN,a=NaN,l=(i-e)/n;if(1===l)s=t[e],a=t[e+1];else if(2==l)s=(1-r)*t[e]+r*t[e+n],a=(1-r)*t[e+1]+r*t[e+n+1];else if(0!==l){for(var u=t[e],c=t[e+1],h=0,d=[0],f=e+n;f<i;f+=n){var p=t[f],v=t[f+1];h+=Math.sqrt((p-u)*(p-u)+(v-c)*(v-c)),d.push(h),u=p,c=v}var g=r*h,m=function(t,e,i){for(var n,r,o=i||Hi,s=0,a=t.length,l=!1;s<a;)(r=+o(t[n=s+(a-s>>1)],e))<0?s=n+1:(a=n,l=!r);return l?s:~s}(d,g);if(m<0){var y=(g-d[-m-2])/(d[-m-1]-d[-m-2]),_=e+(-m-2)*n;s=Yt(t[_],t[_+n],y),a=Yt(t[_+1],t[_+n+1],y)}else s=t[e+m*n],a=t[e+m*n+1]}return o?(o[0]=s,o[1]=a,o):[s,a]}function go(t,e,i,n,r,o){if(i==e)return null;var s;if(r<t[e+n-1])return o?((s=t.slice(e,e+n))[n-1]=r,s):null;if(t[i-1]<r)return o?((s=t.slice(i-n,i))[n-1]=r,s):null;if(r==t[e+n-1])return t.slice(e,e+n);for(var a=e/n,l=i/n;a<l;){var u=a+l>>1;r<t[(u+1)*n-1]?l=u:a=u+1}var c=t[a*n-1];if(r==c)return t.slice((a-1)*n,(a-1)*n+n);var h=(r-c)/(t[(a+1)*n-1]-c);s=[];for(var d=0;d<n-1;++d)s.push(Yt(t[(a-1)*n+d],t[a*n+d],h));return s.push(r),s}function mo(t,e,i,n,r){return!xt(r,function(r){return!yo(t,e,i,n,r[0],r[1])})}function yo(t,e,i,n,r,o){for(var s=0,a=t[i-n],l=t[i-n+1];e<i;e+=n){var u=t[e],c=t[e+1];l<=o?c>o&&(u-a)*(o-l)-(r-a)*(c-l)>0&&s++:c<=o&&(u-a)*(o-l)-(r-a)*(c-l)<0&&s--,a=u,l=c}return 0!==s}function _o(t,e,i,n,r,o){if(0===i.length)return!1;if(!yo(t,e,i[0],n,r,o))return!1;for(var s=1,a=i.length;s<a;++s)if(yo(t,i[s-1],i[s],n,r,o))return!1;return!0}function bo(t,e,i,n,r,o){for(var s,a=[t[e],t[e+1]],l=[];e+n<i;e+=n){if(l[0]=t[e+n],l[1]=t[e+n+1],s=r.call(o,a,l))return s;a[0]=l[0],a[1]=l[1]}return!1}function xo(t,e,i,n,r){var o=_t([1/0,1/0,-1/0,-1/0],t,e,i,n);return!!Lt(r,o)&&(!!at(r,o)||(o[0]>=r[0]&&o[2]<=r[2]||(o[1]>=r[1]&&o[3]<=r[3]||bo(t,e,i,n,function(t,e){return function(t,e,i){var n=!1,r=ut(t,e),o=ut(t,i);if(r===et.INTERSECTING||o===et.INTERSECTING)n=!0;else{var s,a,l=t[0],u=t[1],c=t[2],h=t[3],d=e[0],f=e[1],p=i[0],v=i[1],g=(v-f)/(p-d);o&et.ABOVE&&!(r&et.ABOVE)&&(n=(s=p-(v-h)/g)>=l&&s<=c),n||!(o&et.RIGHT)||r&et.RIGHT||(n=(a=v-(p-c)*g)>=u&&a<=h),n||!(o&et.BELOW)||r&et.BELOW||(n=(s=p-(v-u)/g)>=l&&s<=c),n||!(o&et.LEFT)||r&et.LEFT||(n=(a=v-(p-l)*g)>=u&&a<=h)}return n}(r,t,e)}))))}function wo(t,e,i,n,r){if(!function(t,e,i,n,r){return!!(xo(t,e,i,n,r)||yo(t,e,i,n,r[0],r[1])||yo(t,e,i,n,r[0],r[3])||yo(t,e,i,n,r[2],r[1])||yo(t,e,i,n,r[2],r[3]))}(t,e,i[0],n,r))return!1;if(1===i.length)return!0;for(var o=1,s=i.length;o<s;++o)if(mo(t,i[o-1],i[o],n,r)&&!xo(t,i[o-1],i[o],n,r))return!1;return!0}function So(t,e,i,n){for(var r=t[e],o=t[e+1],s=0,a=e+n;a<i;a+=n){var l=t[a],u=t[a+1];s+=Math.sqrt((l-r)*(l-r)+(u-o)*(u-o)),r=l,o=u}return s}function To(t,e,i,n,r,o,s){var a=(i-e)/n;if(a<3){for(;e<i;e+=n)o[s++]=t[e],o[s++]=t[e+1];return s}var l=new Array(a);l[0]=1,l[a-1]=1;for(var u=[e,i-n],c=0;u.length>0;){for(var h=u.pop(),d=u.pop(),f=0,p=t[d],v=t[d+1],g=t[h],m=t[h+1],y=d+n;y<h;y+=n){var _=Nt(t[y],t[y+1],p,v,g,m);_>f&&(c=y,f=_)}f>r&&(l[(c-e)/n]=1,d+n<c&&u.push(d,c),c+n<h&&u.push(c,h))}for(var b=0;b<a;++b)l[b]&&(o[s++]=t[e+b*n],o[s++]=t[e+b*n+1]);return s}function Eo(t,e,i,n,r,o,s,a){for(var l=0,u=i.length;l<u;++l){var c=i[l];s=To(t,e,c,n,r,o,s),a.push(s),e=c}return s}function Co(t,e){return e*Math.round(t/e)}function Oo(t,e,i,n,r,o,s){if(e==i)return s;var a,l,u=Co(t[e],r),c=Co(t[e+1],r);e+=n,o[s++]=u,o[s++]=c;do{if(a=Co(t[e],r),l=Co(t[e+1],r),(e+=n)==i)return o[s++]=a,o[s++]=l,s}while(a==u&&l==c);for(;e<i;){var h=Co(t[e],r),d=Co(t[e+1],r);if(e+=n,h!=a||d!=l){var f=a-u,p=l-c,v=h-u,g=d-c;f*g==p*v&&(f<0&&v<f||f==v||f>0&&v>f)&&(p<0&&g<p||p==g||p>0&&g>p)?(a=h,l=d):(o[s++]=a,o[s++]=l,u=a,c=l,a=h,l=d)}}return o[s++]=a,o[s++]=l,s}function Mo(t,e,i,n,r,o,s,a){for(var l=0,u=i.length;l<u;++l){var c=i[l];s=Oo(t,e,c,n,r,o,s),a.push(s),e=c}return s}var Po=function(t){function e(e,i){t.call(this),this.flatMidpoint_=null,this.flatMidpointRevision_=-1,this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?this.setCoordinates(e,i):this.setFlatCoordinates(i,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendCoordinate=function(t){this.flatCoordinates?Ki(this.flatCoordinates,t):this.flatCoordinates=t.slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){return n<ot(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ro(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),so(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!1,t,e,i,n))},e.prototype.forEachSegment=function(t){return bo(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.getCoordinateAtM=function(t,e){if(this.layout!=to.XYM&&this.layout!=to.XYZM)return null;var i=void 0!==e&&e;return go(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i)},e.prototype.getCoordinates=function(){return ho(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinateAt=function(t,e){return vo(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,e)},e.prototype.getLength=function(){return So(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getFlatMidpoint=function(){return this.flatMidpointRevision_!=this.getRevision()&&(this.flatMidpoint_=this.getCoordinateAt(.5,this.flatMidpoint_),this.flatMidpointRevision_=this.getRevision()),this.flatMidpoint_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[];return i.length=To(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,to.XY)},e.prototype.getType=function(){return Fe.LINE_STRING},e.prototype.intersectsExtent=function(t){return xo(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=uo(this.flatCoordinates,0,t,this.stride),this.changed()},e}(io),ko=function(t){function e(e,i,n){if(t.call(this),this.ends_=[],this.maxDelta_=-1,this.maxDeltaRevision_=-1,Array.isArray(e[0]))this.setCoordinates(e,i);else if(void 0!==i&&n)this.setFlatCoordinates(i,e),this.ends_=n;else{for(var r=this.getLayout(),o=e,s=[],a=[],l=0,u=o.length;l<u;++l){var c=o[l];0===l&&(r=c.getLayout()),Ki(s,c.getFlatCoordinates()),a.push(s.length)}this.setFlatCoordinates(r,s),this.ends_=a}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendLineString=function(t){this.flatCoordinates?Ki(this.flatCoordinates,t.getFlatCoordinates().slice()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,i,n){return n<ot(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(oo(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),ao(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!1,t,e,i,n))},e.prototype.getCoordinateAtM=function(t,e,i){if(this.layout!=to.XYM&&this.layout!=to.XYZM||0===this.flatCoordinates.length)return null;var n=void 0!==e&&e,r=void 0!==i&&i;return function(t,e,i,n,r,o,s){if(s)return go(t,e,i[i.length-1],n,r,o);var a;if(r<t[n-1])return o?((a=t.slice(0,n))[n-1]=r,a):null;if(t[t.length-1]<r)return o?((a=t.slice(t.length-n))[n-1]=r,a):null;for(var l=0,u=i.length;l<u;++l){var c=i[l];if(e!=c){if(r<t[e+n-1])return null;if(r<=t[c-1])return go(t,e,c,n,r,!1);e=c}}return null}(this.flatCoordinates,0,this.ends_,this.stride,t,n,r)},e.prototype.getCoordinates=function(){return fo(this.flatCoordinates,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getLineString=function(t){return t<0||this.ends_.length<=t?null:new Po(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLineStrings=function(){for(var t=this.flatCoordinates,e=this.ends_,i=this.layout,n=[],r=0,o=0,s=e.length;o<s;++o){var a=e[o],l=new Po(t.slice(r,a),i);n.push(l),r=a}return n},e.prototype.getFlatMidpoints=function(){for(var t=[],e=this.flatCoordinates,i=0,n=this.ends_,r=this.stride,o=0,s=n.length;o<s;++o){var a=n[o];Ki(t,vo(e,i,a,r,.5)),i=a}return t},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],n=[];return i.length=Eo(this.flatCoordinates,0,this.ends_,this.stride,t,i,0,n),new e(i,to.XY,n)},e.prototype.getType=function(){return Fe.MULTI_LINE_STRING},e.prototype.intersectsExtent=function(t){return function(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){if(xo(t,e,i[o],n,r))return!0;e=i[o]}return!1}(this.flatCoordinates,0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=co(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},e}(io),Io=function(t){function e(e,i){t.call(this),this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){var r=this.flatCoordinates,o=$t(t,e,r[0],r[1]);if(o<n){for(var s=this.stride,a=0;a<s;++a)i[a]=r[a];return i.length=s,o}return n},e.prototype.getCoordinates=function(){return this.flatCoordinates?this.flatCoordinates.slice():[]},e.prototype.computeExtent=function(t){return ft(this.flatCoordinates,t)},e.prototype.getType=function(){return Fe.POINT},e.prototype.intersectsExtent=function(t){return lt(t,this.flatCoordinates[0],this.flatCoordinates[1])},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,0),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=lo(this.flatCoordinates,0,t,this.stride),this.changed()},e}(io),Lo=function(t){function e(e,i){t.call(this),i&&!Array.isArray(e[0])?this.setFlatCoordinates(i,e):this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendPoint=function(t){this.flatCoordinates?Ki(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){if(n<ot(this.getExtent(),t,e))return n;for(var r=this.flatCoordinates,o=this.stride,s=0,a=r.length;s<a;s+=o){var l=$t(t,e,r[s],r[s+1]);if(l<n){n=l;for(var u=0;u<o;++u)i[u]=r[s+u];i.length=o}}return n},e.prototype.getCoordinates=function(){return ho(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getPoint=function(t){var e=this.flatCoordinates?this.flatCoordinates.length/this.stride:0;return t<0||e<=t?null:new Io(this.flatCoordinates.slice(t*this.stride,(t+1)*this.stride),this.layout)},e.prototype.getPoints=function(){for(var t=this.flatCoordinates,e=this.layout,i=this.stride,n=[],r=0,o=t.length;r<o;r+=i){var s=new Io(t.slice(r,r+i),e);n.push(s)}return n},e.prototype.getType=function(){return Fe.MULTI_POINT},e.prototype.intersectsExtent=function(t){for(var e=this.flatCoordinates,i=this.stride,n=0,r=e.length;n<r;n+=i){if(lt(t,e[n],e[n+1]))return!0}return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=uo(this.flatCoordinates,0,t,this.stride),this.changed()},e}(io);function Ao(t,e,i,n){for(var r=0,o=t[i-n],s=t[i-n+1];e<i;e+=n){var a=t[e],l=t[e+1];r+=s*a-o*l,o=a,s=l}return r/2}function Ro(t,e,i,n){for(var r=0,o=0,s=i.length;o<s;++o){var a=i[o];r+=Ao(t,e,a,n),e=a}return r}var Fo=function(t){function e(e,i){t.call(this),this.maxDelta_=-1,this.maxDeltaRevision_=-1,void 0===i||Array.isArray(e[0])?this.setCoordinates(e,i):this.setFlatCoordinates(i,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout)},e.prototype.closestPointXY=function(t,e,i,n){return n<ot(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(ro(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),so(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.getArea=function(){return Ao(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getCoordinates=function(){return ho(this.flatCoordinates,0,this.flatCoordinates.length,this.stride)},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[];return i.length=To(this.flatCoordinates,0,this.flatCoordinates.length,this.stride,t,i,0),new e(i,to.XY)},e.prototype.getType=function(){return Fe.LINEAR_RING},e.prototype.intersectsExtent=function(t){return!1},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,1),this.flatCoordinates||(this.flatCoordinates=[]),this.flatCoordinates.length=uo(this.flatCoordinates,0,t,this.stride),this.changed()},e}(io);function Do(t,e,i,n,r,o,s){for(var a,l,u,c,h,d,f,p=r[o+1],v=[],g=0,m=i.length;g<m;++g){var y=i[g];for(c=t[y-n],d=t[y-n+1],a=e;a<y;a+=n)h=t[a],f=t[a+1],(p<=d&&f<=p||d<=p&&p<=f)&&(u=(p-d)/(f-d)*(h-c)+c,v.push(u)),c=h,d=f}var _=NaN,b=-1/0;for(v.sort(Hi),c=v[0],a=1,l=v.length;a<l;++a){h=v[a];var x=Math.abs(h-c);x>b&&_o(t,e,i,n,u=(c+h)/2,p)&&(_=u,b=x),c=h}return isNaN(_)&&(_=r[o]),s?(s.push(_,p,b),s):[_,p,b]}function jo(t,e,i,n,r){for(var o=[],s=0,a=i.length;s<a;++s){var l=i[s];o=Do(t,e,l,n,r,2*s,o),e=l[l.length-1]}return o}function No(t,e,i,n){for(;e<i-n;){for(var r=0;r<n;++r){var o=t[e+r];t[e+r]=t[i-n+r],t[i-n+r]=o}e+=n,i-=n}}function $o(t,e,i,n){for(var r=0,o=t[i-n],s=t[i-n+1];e<i;e+=n){var a=t[e],l=t[e+1];r+=(a-o)*(l+s),o=a,s=l}return r>0}function Go(t,e,i,n,r){for(var o=void 0!==r&&r,s=0,a=i.length;s<a;++s){var l=i[s],u=$o(t,e,l,n);if(0===s){if(o&&u||!o&&!u)return!1}else if(o&&!u||!o&&u)return!1;e=l}return!0}function zo(t,e,i,n,r){for(var o=void 0!==r&&r,s=0,a=i.length;s<a;++s){var l=i[s],u=$o(t,e,l,n);(0===s?o&&u||!o&&!u:o&&!u||!o&&u)&&No(t,e,l,n),e=l}return e}function Bo(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o)e=zo(t,e,i[o],n,r);return e}var Yo=function(t){function e(e,i,n){t.call(this),this.ends_=[],this.flatInteriorPointRevision_=-1,this.flatInteriorPoint_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,void 0!==i&&n?(this.setFlatCoordinates(i,e),this.ends_=n):this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendLinearRing=function(t){this.flatCoordinates?Ki(this.flatCoordinates,t.getFlatCoordinates()):this.flatCoordinates=t.getFlatCoordinates().slice(),this.ends_.push(this.flatCoordinates.length),this.changed()},e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),this.layout,this.ends_.slice())},e.prototype.closestPointXY=function(t,e,i,n){return n<ot(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(oo(this.flatCoordinates,0,this.ends_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),ao(this.flatCoordinates,0,this.ends_,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.containsXY=function(t,e){return _o(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,e)},e.prototype.getArea=function(){return Ro(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?zo(e=this.getOrientedFlatCoordinates().slice(),0,this.ends_,this.stride,t):e=this.flatCoordinates,fo(e,0,this.ends_,this.stride)},e.prototype.getEnds=function(){return this.ends_},e.prototype.getFlatInteriorPoint=function(){if(this.flatInteriorPointRevision_!=this.getRevision()){var t=Et(this.getExtent());this.flatInteriorPoint_=Do(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t,0),this.flatInteriorPointRevision_=this.getRevision()}return this.flatInteriorPoint_},e.prototype.getInteriorPoint=function(){return new Io(this.getFlatInteriorPoint(),to.XYM)},e.prototype.getLinearRingCount=function(){return this.ends_.length},e.prototype.getLinearRing=function(t){return t<0||this.ends_.length<=t?null:new Fo(this.flatCoordinates.slice(0===t?0:this.ends_[t-1],this.ends_[t]),this.layout)},e.prototype.getLinearRings=function(){for(var t=this.layout,e=this.flatCoordinates,i=this.ends_,n=[],r=0,o=0,s=i.length;o<s;++o){var a=i[o],l=new Fo(e.slice(r,a),t);n.push(l),r=a}return n},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;Go(t,0,this.ends_,this.stride)?this.orientedFlatCoordinates_=t:(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=zo(this.orientedFlatCoordinates_,0,this.ends_,this.stride)),this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],n=[];return i.length=Mo(this.flatCoordinates,0,this.ends_,this.stride,Math.sqrt(t),i,0,n),new e(i,to.XY,n)},e.prototype.getType=function(){return Fe.POLYGON},e.prototype.intersectsExtent=function(t){return wo(this.getOrientedFlatCoordinates(),0,this.ends_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,2),this.flatCoordinates||(this.flatCoordinates=[]);var i=co(this.flatCoordinates,0,t,this.stride,this.ends_);this.flatCoordinates.length=0===i.length?0:i[i.length-1],this.changed()},e}(io),Vo=Yo;function Wo(t,e,i,n){for(var r=i||32,o=[],s=0;s<r;++s)Ki(o,$e(t,e,2*Math.PI*s/r,n));return o.push(o[0],o[1]),new Yo(o,to.XY,[o.length])}function Ho(t){var e=t[0],i=t[1],n=t[2],r=t[3],o=[e,i,e,r,n,r,n,i,e,i];return new Yo(o,to.XY,[o.length])}function Uo(t,e,i){for(var n=e||32,r=t.getStride(),o=t.getLayout(),s=t.getCenter(),a=r*(n+1),l=new Array(a),u=0;u<a;u+=r){l[u]=0,l[u+1]=0;for(var c=2;c<r;c++)l[u+c]=s[c]}var h=[l.length],d=new Yo(l,o,h);return Xo(d,s,t.getRadius(),i),d}function Xo(t,e,i,n){for(var r=t.getFlatCoordinates(),o=t.getStride(),s=r.length/o-1,a=n||0,l=0;l<=s;++l){var u=l*o,c=a+2*Bt(l,s)*Math.PI/s;r[u]=e[0]+i*Math.cos(c),r[u+1]=e[1]+i*Math.sin(c)}t.changed()}function qo(t,e,i,n){for(var r=[],o=[1/0,1/0,-1/0,-1/0],s=0,a=i.length;s<a;++s){var l=i[s];o=pt(t,e,l[0],n),r.push((o[0]+o[2])/2,(o[1]+o[3])/2),e=l[l.length-1]}return r}var Ko=function(t){function e(e,i,n){if(t.call(this),this.endss_=[],this.flatInteriorPointsRevision_=-1,this.flatInteriorPoints_=null,this.maxDelta_=-1,this.maxDeltaRevision_=-1,this.orientedRevision_=-1,this.orientedFlatCoordinates_=null,!n&&!Array.isArray(e[0])){for(var r=this.getLayout(),o=e,s=[],a=[],l=0,u=o.length;l<u;++l){var c=o[l];0===l&&(r=c.getLayout());for(var h=s.length,d=c.getEnds(),f=0,p=d.length;f<p;++f)d[f]+=h;Ki(s,c.getFlatCoordinates()),a.push(d)}i=r,e=s,n=a}void 0!==i&&n?(this.setFlatCoordinates(i,e),this.endss_=n):this.setCoordinates(e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.appendPolygon=function(t){var e;if(this.flatCoordinates){var i=this.flatCoordinates.length;Ki(this.flatCoordinates,t.getFlatCoordinates());for(var n=0,r=(e=t.getEnds().slice()).length;n<r;++n)e[n]+=i}else this.flatCoordinates=t.getFlatCoordinates().slice(),e=t.getEnds().slice(),this.endss_.push();this.endss_.push(e),this.changed()},e.prototype.clone=function(){for(var t=this.endss_.length,i=new Array(t),n=0;n<t;++n)i[n]=this.endss_[n].slice();return new e(this.flatCoordinates.slice(),this.layout,i)},e.prototype.closestPointXY=function(t,e,i,n){return n<ot(this.getExtent(),t,e)?n:(this.maxDeltaRevision_!=this.getRevision()&&(this.maxDelta_=Math.sqrt(function(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){var a=i[o];r=oo(t,e,a,n,r),e=a[a.length-1]}return r}(this.flatCoordinates,0,this.endss_,this.stride,0)),this.maxDeltaRevision_=this.getRevision()),function(t,e,i,n,r,o,s,a,l,u,c){for(var h=c||[NaN,NaN],d=0,f=i.length;d<f;++d){var p=i[d];u=ao(t,e,p,n,r,o,s,a,l,u,h),e=p[p.length-1]}return u}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,this.maxDelta_,!0,t,e,i,n))},e.prototype.containsXY=function(t,e){return function(t,e,i,n,r,o){if(0===i.length)return!1;for(var s=0,a=i.length;s<a;++s){var l=i[s];if(_o(t,e,l,n,r,o))return!0;e=l[l.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t,e)},e.prototype.getArea=function(){return function(t,e,i,n){for(var r=0,o=0,s=i.length;o<s;++o){var a=i[o];r+=Ro(t,e,a,n),e=a[a.length-1]}return r}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride)},e.prototype.getCoordinates=function(t){var e;return void 0!==t?Bo(e=this.getOrientedFlatCoordinates().slice(),0,this.endss_,this.stride,t):e=this.flatCoordinates,po(e,0,this.endss_,this.stride)},e.prototype.getEndss=function(){return this.endss_},e.prototype.getFlatInteriorPoints=function(){if(this.flatInteriorPointsRevision_!=this.getRevision()){var t=qo(this.flatCoordinates,0,this.endss_,this.stride);this.flatInteriorPoints_=jo(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t),this.flatInteriorPointsRevision_=this.getRevision()}return this.flatInteriorPoints_},e.prototype.getInteriorPoints=function(){return new Lo(this.getFlatInteriorPoints().slice(),to.XYM)},e.prototype.getOrientedFlatCoordinates=function(){if(this.orientedRevision_!=this.getRevision()){var t=this.flatCoordinates;!function(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o)if(!Go(t,e,i[o],n,r))return!1;return!0}(t,0,this.endss_,this.stride)?(this.orientedFlatCoordinates_=t.slice(),this.orientedFlatCoordinates_.length=Bo(this.orientedFlatCoordinates_,0,this.endss_,this.stride)):this.orientedFlatCoordinates_=t,this.orientedRevision_=this.getRevision()}return this.orientedFlatCoordinates_},e.prototype.getSimplifiedGeometryInternal=function(t){var i=[],n=[];return i.length=function(t,e,i,n,r,o,s,a){for(var l=0,u=i.length;l<u;++l){var c=i[l],h=[];s=Mo(t,e,c,n,r,o,s,h),a.push(h),e=c[c.length-1]}return s}(this.flatCoordinates,0,this.endss_,this.stride,Math.sqrt(t),i,0,n),new e(i,to.XY,n)},e.prototype.getPolygon=function(t){if(t<0||this.endss_.length<=t)return null;var e;if(0===t)e=0;else{var i=this.endss_[t-1];e=i[i.length-1]}var n=this.endss_[t].slice(),r=n[n.length-1];if(0!==e)for(var o=0,s=n.length;o<s;++o)n[o]-=e;return new Vo(this.flatCoordinates.slice(e,r),this.layout,n)},e.prototype.getPolygons=function(){for(var t=this.layout,e=this.flatCoordinates,i=this.endss_,n=[],r=0,o=0,s=i.length;o<s;++o){var a=i[o].slice(),l=a[a.length-1];if(0!==r)for(var u=0,c=a.length;u<c;++u)a[u]-=r;var h=new Vo(e.slice(r,l),t,a);n.push(h),r=l}return n},e.prototype.getType=function(){return Fe.MULTI_POLYGON},e.prototype.intersectsExtent=function(t){return function(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){var a=i[o];if(wo(t,e,a,n,r))return!0;e=a[a.length-1]}return!1}(this.getOrientedFlatCoordinates(),0,this.endss_,this.stride,t)},e.prototype.setCoordinates=function(t,e){this.setLayout(e,t,3),this.flatCoordinates||(this.flatCoordinates=[]);var i=function(t,e,i,n,r){for(var o=r||[],s=0,a=0,l=i.length;a<l;++a){var u=co(t,e,i[a],n,o[s]);o[s++]=u,e=u[u.length-1]}return o.length=s,o}(this.flatCoordinates,0,t,this.stride,this.endss_);if(0===i.length)this.flatCoordinates.length=0;else{var n=i[i.length-1];this.flatCoordinates.length=0===n.length?0:n[n.length-1]}this.changed()},e}(io);function Zo(t,e){if(!t)return null;var i;switch(t.type){case Fe.POINT:i=function(t){return new Io(t.coordinates)}(t);break;case Fe.LINE_STRING:i=function(t){return new Po(t.coordinates)}(t);break;case Fe.POLYGON:i=function(t){return new Vo(t.coordinates)}(t);break;case Fe.MULTI_POINT:i=function(t){return new Lo(t.coordinates)}(t);break;case Fe.MULTI_LINE_STRING:i=function(t){return new ko(t.coordinates)}(t);break;case Fe.MULTI_POLYGON:i=function(t){return new Ko(t.coordinates)}(t);break;case Fe.GEOMETRY_COLLECTION:i=function(t,e){var i=t.geometries.map(function(t){return Zo(t,e)});return new Qr(i)}(t);break;default:throw new Error("Unsupported GeoJSON type: "+t.type)}return Ar(i,!1,e)}function Jo(t,e){var i,n=(t=Ar(t,!0,e)).getType();switch(n){case Fe.POINT:i=function(t,e){return{type:"Point",coordinates:t.getCoordinates()}}(t);break;case Fe.LINE_STRING:i=function(t,e){return{type:"LineString",coordinates:t.getCoordinates()}}(t);break;case Fe.POLYGON:i=function(t,e){var i;e&&(i=e.rightHanded);return{type:"Polygon",coordinates:t.getCoordinates(i)}}(t,e);break;case Fe.MULTI_POINT:i=function(t,e){return{type:"MultiPoint",coordinates:t.getCoordinates()}}(t);break;case Fe.MULTI_LINE_STRING:i=function(t,e){return{type:"MultiLineString",coordinates:t.getCoordinates()}}(t);break;case Fe.MULTI_POLYGON:i=function(t,e){var i;e&&(i=e.rightHanded);return{type:"MultiPolygon",coordinates:t.getCoordinates(i)}}(t,e);break;case Fe.GEOMETRY_COLLECTION:i=function(t,e){return{type:"GeometryCollection",geometries:t.getGeometriesArray().map(function(t){var i=Vt({},e);return delete i.featureProjection,Jo(t,i)})}}(t,e);break;case Fe.CIRCLE:i={type:"GeometryCollection",geometries:[]};break;default:throw new Error("Unsupported geometry type: "+n)}return i}var Qo=function(t){function e(e){var i=e||{};t.call(this),this.dataProjection=di(i.dataProjection?i.dataProjection:"EPSG:4326"),i.featureProjection&&(this.defaultFeatureProjection=di(i.featureProjection)),this.geometryName_=i.geometryName,this.extractGeometryName_=i.extractGeometryName}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.readFeatureFromObject=function(t,e){var i=null,n=Zo((i="Feature"===t.type?t:{type:"Feature",geometry:t,properties:null}).geometry,e),r=new Zn;return this.geometryName_?r.setGeometryName(this.geometryName_):this.extractGeometryName_&&"geometry_name"in i!==void 0&&r.setGeometryName(i.geometry_name),r.setGeometry(n),"id"in i&&r.setId(i.id),i.properties&&r.setProperties(i.properties),r},e.prototype.readFeaturesFromObject=function(t,e){var i=null;if("FeatureCollection"===t.type){i=[];for(var n=t.features,r=0,o=n.length;r<o;++r)i.push(this.readFeatureFromObject(n[r],e))}else i=[this.readFeatureFromObject(t,e)];return i},e.prototype.readGeometryFromObject=function(t,e){return Zo(t,e)},e.prototype.readProjectionFromObject=function(t){var e,i=t.crs;return i?"name"==i.type?e=di(i.properties.name):Q(!1,36):e=this.dataProjection,e},e.prototype.writeFeatureObject=function(t,e){e=this.adaptOptions(e);var i={type:"Feature",geometry:null,properties:null},n=t.getId();void 0!==n&&(i.id=n);var r=t.getGeometry();r&&(i.geometry=Jo(r,e));var o=t.getProperties();return delete o[t.getGeometryName()],Ut(o)||(i.properties=o),i},e.prototype.writeFeaturesObject=function(t,e){e=this.adaptOptions(e);for(var i=[],n=0,r=t.length;n<r;++n)i.push(this.writeFeatureObject(t[n],e));return{type:"FeatureCollection",features:i}},e.prototype.writeGeometryObject=function(t,e){return Jo(t,this.adaptOptions(e))},e}(Dr),ts=i(812),es=i.n(ts),is=[1,0,0,1,0,0],ns=function(t,e,i,n,r){this.extent_,this.id_=r,this.type_=t,this.flatCoordinates_=e,this.flatInteriorPoints_=null,this.flatMidpoints_=null,this.ends_=i,this.properties_=n};ns.prototype.get=function(t){return this.properties_[t]},ns.prototype.getExtent=function(){return this.extent_||(this.extent_=this.type_===Fe.POINT?ft(this.flatCoordinates_):pt(this.flatCoordinates_,0,this.flatCoordinates_.length,2)),this.extent_},ns.prototype.getFlatInteriorPoint=function(){if(!this.flatInteriorPoints_){var t=Et(this.getExtent());this.flatInteriorPoints_=Do(this.flatCoordinates_,0,this.ends_,2,t,0)}return this.flatInteriorPoints_},ns.prototype.getFlatInteriorPoints=function(){if(!this.flatInteriorPoints_){var t=qo(this.flatCoordinates_,0,this.ends_,2);this.flatInteriorPoints_=jo(this.flatCoordinates_,0,this.ends_,2,t)}return this.flatInteriorPoints_},ns.prototype.getFlatMidpoint=function(){return this.flatMidpoints_||(this.flatMidpoints_=vo(this.flatCoordinates_,0,this.flatCoordinates_.length,2,.5)),this.flatMidpoints_},ns.prototype.getFlatMidpoints=function(){if(!this.flatMidpoints_){this.flatMidpoints_=[];for(var t=this.flatCoordinates_,e=0,i=this.ends_,n=0,r=i.length;n<r;++n){var o=i[n],s=vo(t,e,o,2,.5);Ki(this.flatMidpoints_,s),e=o}}return this.flatMidpoints_},ns.prototype.getId=function(){return this.id_},ns.prototype.getOrientedFlatCoordinates=function(){return this.flatCoordinates_},ns.prototype.getGeometry=function(){return this},ns.prototype.getSimplifiedGeometry=function(t){return this},ns.prototype.getProperties=function(){return this.properties_},ns.prototype.getStride=function(){return 2},ns.prototype.getStyleFunction=function(){},ns.prototype.getType=function(){return this.type_},ns.prototype.transform=function(t,e){var i=(t=di(t)).getExtent(),n=t.getWorldExtent(),r=Ot(n)/Ot(i);Xr(is,n[0],n[3],r,-r,0,0,0),jr(this.flatCoordinates_,0,this.flatCoordinates_.length,2,is,this.flatCoordinates_)},ns.prototype.getEnds=ns.prototype.getEndss=function(){return this.ends_},ns.prototype.getFlatCoordinates=ns.prototype.getOrientedFlatCoordinates;var rs=ns;function os(t,e,i){if(3===t){var n={keys:[],values:[],features:[]},r=i.readVarint()+i.pos;i.readFields(ss,n,r),n.length=n.features.length,n.length&&(e[n.name]=n)}}function ss(t,e,i){if(15===t)e.version=i.readVarint();else if(1===t)e.name=i.readString();else if(5===t)e.extent=i.readVarint();else if(2===t)e.features.push(i.pos);else if(3===t)e.keys.push(i.readString());else if(4===t){for(var n=null,r=i.readVarint()+i.pos;i.pos<r;)n=1===(t=i.readVarint()>>3)?i.readString():2===t?i.readFloat():3===t?i.readDouble():4===t?i.readVarint64():5===t?i.readVarint():6===t?i.readSVarint():7===t?i.readBoolean():null;e.values.push(n)}}function as(t,e,i){if(1==t)e.id=i.readVarint();else if(2==t)for(var n=i.readVarint()+i.pos;i.pos<n;){var r=e.layer.keys[i.readVarint()],o=e.layer.values[i.readVarint()];e.properties[r]=o}else 3==t?e.type=i.readVarint():4==t&&(e.geometry=i.pos)}function ls(t,e,i){t.pos=e.features[i];var n=t.readVarint()+t.pos,r={layer:e,type:0,properties:{}};return t.readFields(as,r,n),r}var us=function(t){function e(e){t.call(this);var i=e||{};this.dataProjection=new Ve({code:"",units:Be.TILE_PIXELS}),this.featureClass_=i.featureClass?i.featureClass:rs,this.geometryName_=i.geometryName,this.layerName_=i.layerName?i.layerName:"layer",this.layers_=i.layers?i.layers:null,this.extent_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.readRawGeometry_=function(t,e,i,n){t.pos=e.geometry;for(var r=t.readVarint()+t.pos,o=1,s=0,a=0,l=0,u=0,c=0;t.pos<r;){if(!s){var h=t.readVarint();o=7&h,s=h>>3}s--,1===o||2===o?(a+=t.readSVarint(),l+=t.readSVarint(),1===o&&u>c&&(n.push(u),c=u),i.push(a,l),u+=2):7===o?u>c&&(i.push(i[c],i[c+1]),u+=2):Q(!1,59)}u>c&&(n.push(u),c=u)},e.prototype.createFeature_=function(t,e,i){var n,r=e.type;if(0===r)return null;var o=e.id,s=e.properties;s[this.layerName_]=e.layer.name;var a=[],l=[];this.readRawGeometry_(t,e,a,l);var u=function(t,e){var i;1===t?i=1===e?Fe.POINT:Fe.MULTI_POINT:2===t?i=1===e?Fe.LINE_STRING:Fe.MULTI_LINE_STRING:3===t&&(i=Fe.POLYGON);return i}(r,l.length);if(this.featureClass_===rs)n=new this.featureClass_(u,a,l,s,o);else{var c;if(u==Fe.POLYGON){for(var h=[],d=0,f=0,p=0,v=l.length;p<v;++p){var g=l[p];$o(a,d,g,2)||(h.push(l.slice(f,p)),f=p),d=g}c=h.length>1?new Ko(a,to.XY,h):new Vo(a,to.XY,l)}else c=u===Fe.POINT?new Io(a,to.XY):u===Fe.LINE_STRING?new Po(a,to.XY):u===Fe.POLYGON?new Vo(a,to.XY,l):u===Fe.MULTI_POINT?new Lo(a,to.XY):u===Fe.MULTI_LINE_STRING?new ko(a,to.XY,l):null;n=new(0,this.featureClass_),this.geometryName_&&n.setGeometryName(this.geometryName_);var m=Ar(c,!1,this.adaptOptions(i));n.setGeometry(m),n.setId(o),n.setProperties(s)}return n},e.prototype.getLastExtent=function(){return this.extent_},e.prototype.getType=function(){return Rr.ARRAY_BUFFER},e.prototype.readFeatures=function(t,e){var i=this.layers_,n=new es.a(t),r=n.readFields(os,{}),o=[];for(var s in r)if(!i||-1!=i.indexOf(s)){for(var a=r[s],l=0,u=a.length;l<u;++l){var c=ls(n,a,l);o.push(this.createFeature_(n,c))}this.extent_=a?[0,0,a.extent,a.extent]:null}return o},e.prototype.readProjection=function(t){return this.dataProjection},e.prototype.setLayers=function(t){this.layers_=t},e}(Lr);var cs=i(41),hs=i.n(cs),ds={meters:6371008.8,metres:6371008.8,millimeters:6371008800,millimetres:6371008800,centimeters:637100880,centimetres:637100880,kilometers:6371.0088,kilometres:6371.0088,miles:3958.761333810546,nauticalmiles:6371008.8/1852,inches:6371008.8*39.37,yards:6371008.8/1.0936,feet:20902260.511392,radians:1,degrees:6371008.8/111325};function fs(t,e,i){if(!_s(i=i||{}))throw new Error("options is invalid");var n=i.bbox,r=i.id;if(void 0===t)throw new Error("geometry is required");if(e&&e.constructor!==Object)throw new Error("properties must be an Object");n&&bs(n),r&&xs(r);var o={type:"Feature"};return r&&(o.id=r),n&&(o.bbox=n),o.properties=e||{},o.geometry=t,o}function ps(t,e,i){if(!t)throw new Error("coordinates is required");if(!Array.isArray(t))throw new Error("coordinates must be an Array");if(t.length<2)throw new Error("coordinates must be at least 2 numbers long");if(!ys(t[0])||!ys(t[1]))throw new Error("coordinates must contain numbers");return fs({type:"Point",coordinates:t},e,i)}function vs(t,e){if(!_s(e=e||{}))throw new Error("options is invalid");var i=e.bbox,n=e.id;if(!t)throw new Error("No features passed");if(!Array.isArray(t))throw new Error("features must be an Array");i&&bs(i),n&&xs(n);var r={type:"FeatureCollection"};return n&&(r.id=n),i&&(r.bbox=i),r.features=t,r}function gs(t,e){if(void 0===t||null===t)throw new Error("radians is required");if(e&&"string"!=typeof e)throw new Error("units must be a string");var i=ds[e||"kilometers"];if(!i)throw new Error(e+" units is invalid");return t*i}function ms(t){if(null===t||void 0===t)throw new Error("degrees is required");return t%360*Math.PI/180}function ys(t){return!isNaN(t)&&null!==t&&!Array.isArray(t)}function _s(t){return!!t&&t.constructor===Object}function bs(t){if(!t)throw new Error("bbox is required");if(!Array.isArray(t))throw new Error("bbox must be an Array");if(4!==t.length&&6!==t.length)throw new Error("bbox must be an Array of 4 or 6 numbers");t.forEach(function(t){if(!ys(t))throw new Error("bbox must only contain numbers")})}function xs(t){if(!t)throw new Error("id is required");if(-1===["string","number"].indexOf(typeof t))throw new Error("id must be a number or a string")}function ws(t,e,i){if(null!==t)for(var n,r,o,s,a,l,u,c,h=0,d=0,f=t.type,p="FeatureCollection"===f,v="Feature"===f,g=p?t.features.length:1,m=0;m<g;m++){a=(c=!!(u=p?t.features[m].geometry:v?t.geometry:t)&&"GeometryCollection"===u.type)?u.geometries.length:1;for(var y=0;y<a;y++){var _=0,b=0;if(null!==(s=c?u.geometries[y]:u)){l=s.coordinates;var x=s.type;switch(h=!i||"Polygon"!==x&&"MultiPolygon"!==x?0:1,x){case null:break;case"Point":if(!1===e(l,d,m,_,b))return!1;d++,_++;break;case"LineString":case"MultiPoint":for(n=0;n<l.length;n++){if(!1===e(l[n],d,m,_,b))return!1;d++,"MultiPoint"===x&&_++}"LineString"===x&&_++;break;case"Polygon":case"MultiLineString":for(n=0;n<l.length;n++){for(r=0;r<l[n].length-h;r++){if(!1===e(l[n][r],d,m,_,b))return!1;d++}"MultiLineString"===x&&_++,"Polygon"===x&&b++}"Polygon"===x&&_++;break;case"MultiPolygon":for(n=0;n<l.length;n++){for("MultiPolygon"===x&&(b=0),r=0;r<l[n].length;r++){for(o=0;o<l[n][r].length-h;o++){if(!1===e(l[n][r][o],d,m,_,b))return!1;d++}b++}_++}break;case"GeometryCollection":for(n=0;n<s.geometries.length;n++)if(!1===ws(s.geometries[n],e,i))return!1;break;default:throw new Error("Unknown Geometry Type")}}}}}function Ss(t,e){if("Feature"===t.type)e(t,0);else if("FeatureCollection"===t.type)for(var i=0;i<t.features.length&&!1!==e(t.features[i],i);i++);}var Ts=function(t){var e=[];return"FeatureCollection"===t.type?Ss(t,function(t){ws(t,function(i){e.push(ps(i,t.properties))})}):ws(t,function(i){e.push(ps(i,t.properties))}),vs(e)};var Es=function(t){var e=[1/0,1/0,-1/0,-1/0];return ws(t,function(t){e[0]>t[0]&&(e[0]=t[0]),e[1]>t[1]&&(e[1]=t[1]),e[2]<t[0]&&(e[2]=t[0]),e[3]<t[1]&&(e[3]=t[1])}),e};var Cs=function(t,e){if(!_s(e=e||{}))throw new Error("options is invalid");var i=e.properties;if(!t)throw new Error("geojson is required");var n=Es(t);return ps([(n[0]+n[2])/2,(n[1]+n[3])/2],i)};function Os(t){var e={type:"Feature"};return Object.keys(t).forEach(function(i){switch(i){case"type":case"properties":case"geometry":return;default:e[i]=t[i]}}),e.properties=function t(e){var i={};if(!e)return i;Object.keys(e).forEach(function(n){var r=e[n];"object"==typeof r?null===r?i[n]=null:r.length?i[n]=r.map(function(t){return t}):i[n]=t(r):i[n]=r});return i}(t.properties),e.geometry=Ms(t.geometry),e}function Ms(t){var e={type:t.type};return t.bbox&&(e.bbox=t.bbox),"GeometryCollection"===t.type?(e.geometries=t.geometries.map(function(t){return Ms(t)}),e):(e.coordinates=function t(e){if("object"!=typeof e[0])return e.slice();return e.map(function(e){return t(e)})}(t.coordinates),e)}var Ps=function(t){if(!t)throw new Error("geojson is required");switch(t.type){case"Feature":return Os(t);case"FeatureCollection":return function(t){var e={type:"FeatureCollection"};return Object.keys(t).forEach(function(i){switch(i){case"type":case"features":return;default:e[i]=t[i]}}),e.features=t.features.map(function(t){return Os(t)}),e}(t);case"Point":case"LineString":case"Polygon":case"MultiPoint":case"MultiLineString":case"MultiPolygon":case"GeometryCollection":return Ms(t);default:throw new Error("unknown GeoJSON type")}};function ks(t){if(!t)throw new Error("coord is required");if("Feature"===t.type&&null!==t.geometry&&"Point"===t.geometry.type)return t.geometry.coordinates;if("Point"===t.type)return t.coordinates;if(Array.isArray(t)&&t.length>=2&&void 0===t[0].length&&void 0===t[1].length)return t;throw new Error("coord must be GeoJSON Point or an Array of numbers")}var Is=function(t,e,i){if(!_s(i=i||{}))throw new Error("options is invalid");var n=i.units,r=ks(t),o=ks(e),s=ms(o[1]-r[1]),a=ms(o[0]-r[0]),l=ms(r[1]),u=ms(o[1]),c=Math.pow(Math.sin(s/2),2)+Math.pow(Math.sin(a/2),2)*Math.cos(l)*Math.cos(u);return gs(2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c)),n)};var Ls=function(t,e){if(!t)throw new Error("targetPoint is required");if(!e)throw new Error("points is required");var i,n=1/0;return Ss(e,function(e,r){var o=Is(t,e);o<n&&((i=Ps(e)).properties.featureIndex=r,i.properties.distanceToPoint=o,n=o)}),i};function As(t,e,i){var n=!1;e[0][0]===e[e.length-1][0]&&e[0][1]===e[e.length-1][1]&&(e=e.slice(0,e.length-1));for(var r=0,o=e.length-1;r<e.length;o=r++){var s=e[r][0],a=e[r][1],l=e[o][0],u=e[o][1];if(t[1]*(s-l)+a*(l-t[0])+u*(t[0]-s)==0&&(s-t[0])*(l-t[0])<=0&&(a-t[1])*(u-t[1])<=0)return!i;a>t[1]!=u>t[1]&&t[0]<(l-s)*(t[1]-a)/(u-a)+s&&(n=!n)}return n}var Rs=function(t,e,i){if("object"!=typeof(i=i||{}))throw new Error("options is invalid");var n=i.ignoreBoundary;if(!t)throw new Error("point is required");if(!e)throw new Error("polygon is required");var r=ks(t),o=function(t){if(!t)throw new Error("coords is required");if("Feature"===t.type&&null!==t.geometry)return t.geometry.coordinates;if(t.coordinates)return t.coordinates;if(Array.isArray(t))return t;throw new Error("coords must be GeoJSON Feature, Geometry Object or an Array")}(e),s=e.geometry?e.geometry.type:e.type,a=e.bbox;if(a&&!1===function(t,e){return e[0]<=t[0]&&e[1]<=t[1]&&e[2]>=t[0]&&e[3]>=t[1]}(r,a))return!1;"Polygon"===s&&(o=[o]);for(var l=0,u=!1;l<o.length&&!u;l++)if(As(r,o[l][0],n)){for(var c=!1,h=1;h<o[l].length&&!c;)As(r,o[l][h],!n)&&(c=!0),h++;c||(u=!0)}return u};function Fs(t,e,i,n,r,o){return Math.sqrt((r-i)*(r-i)+(o-n)*(o-n))===Math.sqrt((t-i)*(t-i)+(e-n)*(e-n))+Math.sqrt((r-t)*(r-t)+(o-e)*(o-e))}var Ds=function(t){for(var e=function(t){return"FeatureCollection"!==t.type?"Feature"!==t.type?vs([fs(t)]):vs([t]):t}(t),i=Cs(e),n=!1,r=0;!n&&r<e.features.length;){var o,s=e.features[r].geometry,a=!1;if("Point"===s.type)i.geometry.coordinates[0]===s.coordinates[0]&&i.geometry.coordinates[1]===s.coordinates[1]&&(n=!0);else if("MultiPoint"===s.type){var l=!1;for(o=0;!l&&o<s.coordinates.length;)i.geometry.coordinates[0]===s.coordinates[o][0]&&i.geometry.coordinates[1]===s.coordinates[o][1]&&(n=!0,l=!0),o++}else if("LineString"===s.type)for(o=0;!a&&o<s.coordinates.length-1;)Fs(i.geometry.coordinates[0],i.geometry.coordinates[1],s.coordinates[o][0],s.coordinates[o][1],s.coordinates[o+1][0],s.coordinates[o+1][1])&&(a=!0,n=!0),o++;else if("MultiLineString"===s.type)for(var u=0;u<s.coordinates.length;){a=!1,o=0;for(var c=s.coordinates[u];!a&&o<c.length-1;)Fs(i.geometry.coordinates[0],i.geometry.coordinates[1],c[o][0],c[o][1],c[o+1][0],c[o+1][1])&&(a=!0,n=!0),o++;u++}else"Polygon"!==s.type&&"MultiPolygon"!==s.type||Rs(i,s)&&(n=!0);r++}if(n)return i;var h=vs([]);for(r=0;r<e.features.length;r++)h.features=h.features.concat(Ts(e.features[r]).features);return ps(Ls(i,h).geometry.coordinates)},js=function(t){function e(e,i,n){if(t.call(this),void 0!==n&&void 0===i)this.setFlatCoordinates(n,e);else{var r=i||0;this.setCenterAndRadius(e,r,n)}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e(this.flatCoordinates.slice(),void 0,this.layout)},e.prototype.closestPointXY=function(t,e,i,n){var r=this.flatCoordinates,o=t-r[0],s=e-r[1],a=o*o+s*s;if(a<n){if(0===a)for(var l=0;l<this.stride;++l)i[l]=r[l];else{var u=this.getRadius()/Math.sqrt(a);i[0]=r[0]+u*o,i[1]=r[1]+u*s;for(var c=2;c<this.stride;++c)i[c]=r[c]}return i.length=this.stride,a}return n},e.prototype.containsXY=function(t,e){var i=this.flatCoordinates,n=t-i[0],r=e-i[1];return n*n+r*r<=this.getRadiusSquared_()},e.prototype.getCenter=function(){return this.flatCoordinates.slice(0,this.stride)},e.prototype.computeExtent=function(t){var e=this.flatCoordinates,i=e[this.stride]-e[0];return ht(e[0]-i,e[1]-i,e[0]+i,e[1]+i,t)},e.prototype.getRadius=function(){return Math.sqrt(this.getRadiusSquared_())},e.prototype.getRadiusSquared_=function(){var t=this.flatCoordinates[this.stride]-this.flatCoordinates[0],e=this.flatCoordinates[this.stride+1]-this.flatCoordinates[1];return t*t+e*e},e.prototype.getType=function(){return Fe.CIRCLE},e.prototype.intersectsExtent=function(t){if(Lt(t,this.getExtent())){var e=this.getCenter();return t[0]<=e[0]&&t[2]>=e[0]||(t[1]<=e[1]&&t[3]>=e[1]||xt(t,this.intersectsCoordinate,this))}return!1},e.prototype.setCenter=function(t){var e=this.stride,i=this.flatCoordinates[e]-this.flatCoordinates[0],n=t.slice();n[e]=n[0]+i;for(var r=1;r<e;++r)n[e+r]=t[r];this.setFlatCoordinates(this.layout,n),this.changed()},e.prototype.setCenterAndRadius=function(t,e,i){this.setLayout(i,t,0),this.flatCoordinates||(this.flatCoordinates=[]);var n=this.flatCoordinates,r=lo(n,0,t,this.stride);n[r++]=n[0]+e;for(var o=1,s=this.stride;o<s;++o)n[r++]=n[o];n.length=r,this.changed()},e.prototype.getCoordinates=function(){return null},e.prototype.setCoordinates=function(t,e){},e.prototype.setRadius=function(t){this.flatCoordinates[this.stride]=this.flatCoordinates[0]+t,this.changed()},e}(io);js.prototype.transform;var Ns=js;function $s(t,e){var i=Array.isArray(t)?t:[t,e];return new Io(i)}function Gs(t){return new Po(t)}function zs(t){return new Vo(t)}function Bs(t){return new Lo(t)}function Ys(t){return new ko(t)}function Vs(t){return new Ko(t)}function Ws(t){return new Qr(t)}function Hs(t,e){return Wo(t,e)}function Us(t){var e=[Vn.MULTI_POINT,Vn.MULTI_LINE_STRING,Vn.MULTI_POLYGON,Vn.GEOMETRY_COLLECTION];return hs()(e).call(e,t.type||t.getType())}function Xs(t){t instanceof Ns&&(t=$s(t.getCenter()));var e=t.type||t.getType(),i=[Vn.GEOMETRY_COLLECTION];return!1===hs()(i).call(i,e)?t:(t.geometries||t.getGeometries())[0]}function qs(t){var e=Xs(t),i=Ds({type:e.type||e.getType(),coordinates:e.coordinates||e.getCoordinates()});if(i&&i.geometry)return i.geometry.coordinates}function Ks(t){if(t instanceof er.a)return t.id;if(t instanceof Zr)return t.get("id");throw new Error("Illegal geometry argument")}function Zs(t,e){if(t instanceof er.a)return t.id=e,t;if(t instanceof Zr)return t.set("id",e),t;throw new Error("Illegal geometry argument")}function Js(t,e){return null==Ks(t)&&Zs(t,e||Qn()()),t}var Qs,ta=i(20),ea=i.n(ta);function ia(t){return function(t,e){var i=_i(t,void 0!==e?e:"EPSG:3857","EPSG:4326"),n=i[0];return(n<-180||n>180)&&(i[0]=Bt(n+180,360)-180),i}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn)}function na(t){return function(t,e){return _i(t,"EPSG:4326",void 0!==e?e:"EPSG:3857")}(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn)}function ra(t,e,i){return _i(t,e,i)}function oa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return ia(t,e)})}function sa(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return na(t,e)})}function aa(t,e,i){return ea()(t).call(t,function(t){return _i(t,e,i)})}function la(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return oa(t,e)})}function ua(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return sa(t,e)})}function ca(t,e,i){return ea()(t).call(t,function(t){return aa(t,e,i)})}function ha(t,e,i){return ea()(t).call(t,function(t){return ra(t,e,i)})}function da(t,e,i){return ea()(t).call(t,function(t){return aa(t,e,i)})}function fa(t,e,i){return ea()(t).call(t,function(t){return ca(t,e,i)})}var pa=(Fn(Qs={},Vn.POINT,{toLonLat:ia,fromLonLat:na,transform:ra}),Fn(Qs,Vn.LINE_STRING,{toLonLat:oa,fromLonLat:sa,transform:aa}),Fn(Qs,Vn.POLYGON,{toLonLat:la,fromLonLat:ua,transform:ca}),Fn(Qs,Vn.MULTI_POINT,{toLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return ia(t,e)})},fromLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return na(t,e)})},transform:ha}),Fn(Qs,Vn.MULTI_LINE_STRING,{toLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return oa(t,e)})},fromLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return sa(t,e)})},transform:da}),Fn(Qs,Vn.MULTI_POLYGON,{toLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return la(t,e)})},fromLonLat:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn;return ea()(t).call(t,function(t){return ua(t,e)})},transform:fa}),Qs);var va={ADD:"add",REMOVE:"remove"},ga="length",ma=function(t){function e(e,i){t.call(this,e),this.element=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),ya=function(t){function e(e,i){t.call(this);var n=i||{};if(this.unique_=!!n.unique,this.array_=e||[],this.unique_)for(var r=0,o=this.array_.length;r<o;++r)this.assertUnique_(this.array_[r],r);this.updateLength_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clear=function(){for(;this.getLength()>0;)this.pop()},e.prototype.extend=function(t){for(var e=0,i=t.length;e<i;++e)this.push(t[e]);return this},e.prototype.forEach=function(t){for(var e=this.array_,i=0,n=e.length;i<n;++i)t(e[i],i,e)},e.prototype.getArray=function(){return this.array_},e.prototype.item=function(t){return this.array_[t]},e.prototype.getLength=function(){return this.get(ga)},e.prototype.insertAt=function(t,e){this.unique_&&this.assertUnique_(e),this.array_.splice(t,0,e),this.updateLength_(),this.dispatchEvent(new ma(va.ADD,e))},e.prototype.pop=function(){return this.removeAt(this.getLength()-1)},e.prototype.push=function(t){this.unique_&&this.assertUnique_(t);var e=this.getLength();return this.insertAt(e,t),this.getLength()},e.prototype.remove=function(t){for(var e=this.array_,i=0,n=e.length;i<n;++i)if(e[i]===t)return this.removeAt(i)},e.prototype.removeAt=function(t){var e=this.array_[t];return this.array_.splice(t,1),this.updateLength_(),this.dispatchEvent(new ma(va.REMOVE,e)),e},e.prototype.setAt=function(t,e){var i=this.getLength();if(t<i){this.unique_&&this.assertUnique_(e,t);var n=this.array_[t];this.array_[t]=e,this.dispatchEvent(new ma(va.REMOVE,n)),this.dispatchEvent(new ma(va.ADD,e))}else{for(var r=i;r<t;++r)this.insertAt(r,void 0);this.insertAt(t,e)}},e.prototype.updateLength_=function(){this.set(ga,this.array_.length)},e.prototype.assertUnique_=function(t,e){for(var i=0,n=this.array_.length;i<n;++i)if(this.array_[i]===t&&i!==e)throw new J(58)},e}(ji),_a=9729,ba=10242,xa=10243,wa=3553,Sa=["experimental-webgl","webgl","webkit-3d","moz-webgl"];function Ta(t,e){for(var i=Sa.length,n=0;n<i;++n)try{var r=t.getContext(Sa[n],e);if(r)return r}catch(t){}return null}var Ea,Ca;if("undefined"!=typeof window&&"WebGLRenderingContext"in window)try{var Oa=Ta(document.createElement("canvas"),{failIfMajorPerformanceCaveat:!0});Oa&&(!0,Ea=Oa.getParameter(Oa.MAX_TEXTURE_SIZE),Ca=Oa.getSupportedExtensions())}catch(t){}var Ma="undefined"!=typeof navigator?navigator.userAgent.toLowerCase():"",Pa=-1!==Ma.indexOf("firefox"),ka=-1!==Ma.indexOf("safari")&&-1==Ma.indexOf("chrom"),Ia=-1!==Ma.indexOf("webkit")&&-1==Ma.indexOf("edge"),La=-1!==Ma.indexOf("macintosh"),Aa=window.devicePixelRatio||1,Ra=function(){var t=!1;try{t=!!document.createElement("canvas").getContext("2d").setLineDash}catch(t){}return t}(),Fa="geolocation"in navigator,Da="ontouchstart"in window,ja="PointerEvent"in window,Na=!!navigator.msPointerEnabled,$a={ACCURACY:"accuracy",ACCURACY_GEOMETRY:"accuracyGeometry",ALTITUDE:"altitude",ALTITUDE_ACCURACY:"altitudeAccuracy",HEADING:"heading",POSITION:"position",PROJECTION:"projection",SPEED:"speed",TRACKING:"tracking",TRACKING_OPTIONS:"trackingOptions"},Ga=function(t){function e(e){t.call(this,xe.ERROR),this.code=e.code,this.message=e.message}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),za=function(t){function e(e){t.call(this);var i=e||{};this.position_=null,this.transform_=ci,this.watchId_=void 0,ue(this,Di($a.PROJECTION),this.handleProjectionChanged_,this),ue(this,Di($a.TRACKING),this.handleTrackingChanged_,this),void 0!==i.projection&&this.setProjection(i.projection),void 0!==i.trackingOptions&&this.setTrackingOptions(i.trackingOptions),this.setTracking(void 0!==i.tracking&&i.tracking)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setTracking(!1),t.prototype.disposeInternal.call(this)},e.prototype.handleProjectionChanged_=function(){var t=this.getProjection();t&&(this.transform_=mi(di("EPSG:4326"),t),this.position_&&this.set($a.POSITION,this.transform_(this.position_)))},e.prototype.handleTrackingChanged_=function(){if(Fa){var t=this.getTracking();t&&void 0===this.watchId_?this.watchId_=navigator.geolocation.watchPosition(this.positionChange_.bind(this),this.positionError_.bind(this),this.getTrackingOptions()):t||void 0===this.watchId_||(navigator.geolocation.clearWatch(this.watchId_),this.watchId_=void 0)}},e.prototype.positionChange_=function(t){var e=t.coords;this.set($a.ACCURACY,e.accuracy),this.set($a.ALTITUDE,null===e.altitude?void 0:e.altitude),this.set($a.ALTITUDE_ACCURACY,null===e.altitudeAccuracy?void 0:e.altitudeAccuracy),this.set($a.HEADING,null===e.heading?void 0:zt(e.heading)),this.position_?(this.position_[0]=e.longitude,this.position_[1]=e.latitude):this.position_=[e.longitude,e.latitude];var i=this.transform_(this.position_);this.set($a.POSITION,i),this.set($a.SPEED,null===e.speed?void 0:e.speed);var n=Wo(this.position_,e.accuracy);n.applyTransform(this.transform_),this.set($a.ACCURACY_GEOMETRY,n),this.changed()},e.prototype.positionError_=function(t){this.setTracking(!1),this.dispatchEvent(new Ga(t))},e.prototype.getAccuracy=function(){return this.get($a.ACCURACY)},e.prototype.getAccuracyGeometry=function(){return this.get($a.ACCURACY_GEOMETRY)||null},e.prototype.getAltitude=function(){return this.get($a.ALTITUDE)},e.prototype.getAltitudeAccuracy=function(){return this.get($a.ALTITUDE_ACCURACY)},e.prototype.getHeading=function(){return this.get($a.HEADING)},e.prototype.getPosition=function(){return this.get($a.POSITION)},e.prototype.getProjection=function(){return this.get($a.PROJECTION)},e.prototype.getSpeed=function(){return this.get($a.SPEED)},e.prototype.getTracking=function(){return this.get($a.TRACKING)},e.prototype.getTrackingOptions=function(){return this.get($a.TRACKING_OPTIONS)},e.prototype.setProjection=function(t){this.set($a.PROJECTION,di(t))},e.prototype.setTracking=function(t){this.set($a.TRACKING,t)},e.prototype.setTrackingOptions=function(t){this.set($a.TRACKING_OPTIONS,t)},e}(ji);function Ba(t,e,i){var n=void 0!==i?t.toFixed(i):""+t,r=n.indexOf(".");return(r=-1===r?n.length:r)>e?n:new Array(1+e-r).join("0")+n}function Ya(t,e){for(var i=(""+t).split("."),n=(""+e).split("."),r=0;r<Math.max(i.length,n.length);r++){var o=parseInt(i[r]||"0",10),s=parseInt(n[r]||"0",10);if(o>s)return 1;if(s>o)return-1}return 0}function Va(t,e){return t[0]+=e[0],t[1]+=e[1],t}function Wa(t,e){var i,n,r=t[0],o=t[1],s=e[0],a=e[1],l=s[0],u=s[1],c=a[0],h=a[1],d=c-l,f=h-u,p=0===d&&0===f?0:(d*(r-l)+f*(o-u))/(d*d+f*f||0);return p<=0?(i=l,n=u):p>=1?(i=c,n=h):(i=l+p*d,n=u+p*f),[i,n]}function Ha(t,e,i){var n=Bt(e+180,360)-180,r=Math.abs(3600*n),o=i||0,s=Math.pow(10,o),a=Math.floor(r/3600),l=Math.floor((r-3600*a)/60),u=r-3600*a-60*l;return(u=Math.ceil(u*s)/s)>=60&&(u=0,l+=1),l>=60&&(l=0,a+=1),a+"° "+Ba(l,2)+"′ "+Ba(u,2,o)+"″"+(0==n?"":" "+t.charAt(n<0?1:0))}function Ua(t,e){for(var i=!0,n=t.length-1;n>=0;--n)if(t[n]!=e[n]){i=!1;break}return i}function Xa(t,e){var i=Math.cos(e),n=Math.sin(e),r=t[0]*i-t[1]*n,o=t[1]*i+t[0]*n;return t[0]=r,t[1]=o,t}function qa(t,e){return t[0]*=e,t[1]*=e,t}function Ka(t,e){var i=t[0]-e[0],n=t[1]-e[1];return i*i+n*n}function Za(t,e){return Math.sqrt(Ka(t,e))}function Ja(t,e){return Ka(t,Wa(t,e))}function Qa(t,e,i){for(var n,r,o,s,a,l,u=[],c=t(0),h=t(1),d=e(c),f=e(h),p=[h,c],v=[f,d],g=[1,0],m={},y=1e5;--y>0&&g.length>0;)o=g.pop(),c=p.pop(),d=v.pop(),(l=o.toString())in m||(u.push(d[0],d[1]),m[l]=!0),s=g.pop(),h=p.pop(),f=v.pop(),Nt((r=e(n=t(a=(o+s)/2)))[0],r[1],d[0],d[1],f[0],f[1])<i?(u.push(f[0],f[1]),m[l=s.toString()]=!0):(g.push(s,a,a,o),v.push(f,r,r,d),p.push(h,n,n,c));return u}var tl={POSTCOMPOSE:"postcompose",PRECOMPOSE:"precompose",RENDER:"render",RENDERCOMPLETE:"rendercomplete"},el=/^#([a-f0-9]{3}|[a-f0-9]{4}(?:[a-f0-9]{2}){0,2})$/i,il=/^([a-z]*)$/i;function nl(t){return"string"==typeof t?t:ul(t)}var rl,ol,sl=(rl={},ol=0,function(t){var e;if(rl.hasOwnProperty(t))e=rl[t];else{if(ol>=1024){var i=0;for(var n in rl)0==(3&i++)&&(delete rl[n],--ol)}e=function(t){var e,i,n,r,o;if(il.exec(t)&&(t=function(t){var e=document.createElement("div");if(e.style.color=t,""!==e.style.color){document.body.appendChild(e);var i=getComputedStyle(e).color;return document.body.removeChild(e),i}return""}(t)),el.exec(t)){var s,a=t.length-1;s=a<=4?1:2;var l=4===a||8===a;e=parseInt(t.substr(1+0*s,s),16),i=parseInt(t.substr(1+1*s,s),16),n=parseInt(t.substr(1+2*s,s),16),r=l?parseInt(t.substr(1+3*s,s),16):255,1==s&&(e=(e<<4)+e,i=(i<<4)+i,n=(n<<4)+n,l&&(r=(r<<4)+r)),o=[e,i,n,r/255]}else 0==t.indexOf("rgba(")?ll(o=t.slice(5,-1).split(",").map(Number)):0==t.indexOf("rgb(")?((o=t.slice(4,-1).split(",").map(Number)).push(1),ll(o)):Q(!1,14);return o}(t),rl[t]=e,++ol}return e});function al(t){return Array.isArray(t)?t:sl(t)}function ll(t){return t[0]=Dt(t[0]+.5|0,0,255),t[1]=Dt(t[1]+.5|0,0,255),t[2]=Dt(t[2]+.5|0,0,255),t[3]=Dt(t[3],0,1),t}function ul(t){var e=t[0];e!=(0|e)&&(e=e+.5|0);var i=t[1];i!=(0|i)&&(i=i+.5|0);var n=t[2];return n!=(0|n)&&(n=n+.5|0),"rgba("+e+","+i+","+n+","+(void 0===t[3]?1:t[3])+")"}var cl=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.checksum_=void 0};cl.prototype.clone=function(){var t=this.getColor();return new cl({color:Array.isArray(t)?t.slice():t||void 0})},cl.prototype.getColor=function(){return this.color_},cl.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},cl.prototype.getChecksum=function(){if(void 0===this.checksum_){var t=this.color_;t?Array.isArray(t)||"string"==typeof t?this.checksum_="f"+nl(t):this.checksum_=K(this.color_):this.checksum_="f-"}return this.checksum_};var hl=cl,dl=function(t){var e=t||{};this.color_=void 0!==e.color?e.color:null,this.lineCap_=e.lineCap,this.lineDash_=void 0!==e.lineDash?e.lineDash:null,this.lineDashOffset_=e.lineDashOffset,this.lineJoin_=e.lineJoin,this.miterLimit_=e.miterLimit,this.width_=e.width,this.checksum_=void 0};dl.prototype.clone=function(){var t=this.getColor();return new dl({color:Array.isArray(t)?t.slice():t||void 0,lineCap:this.getLineCap(),lineDash:this.getLineDash()?this.getLineDash().slice():void 0,lineDashOffset:this.getLineDashOffset(),lineJoin:this.getLineJoin(),miterLimit:this.getMiterLimit(),width:this.getWidth()})},dl.prototype.getColor=function(){return this.color_},dl.prototype.getLineCap=function(){return this.lineCap_},dl.prototype.getLineDash=function(){return this.lineDash_},dl.prototype.getLineDashOffset=function(){return this.lineDashOffset_},dl.prototype.getLineJoin=function(){return this.lineJoin_},dl.prototype.getMiterLimit=function(){return this.miterLimit_},dl.prototype.getWidth=function(){return this.width_},dl.prototype.setColor=function(t){this.color_=t,this.checksum_=void 0},dl.prototype.setLineCap=function(t){this.lineCap_=t,this.checksum_=void 0},dl.prototype.setLineDash=function(t){this.lineDash_=t,this.checksum_=void 0},dl.prototype.setLineDashOffset=function(t){this.lineDashOffset_=t,this.checksum_=void 0},dl.prototype.setLineJoin=function(t){this.lineJoin_=t,this.checksum_=void 0},dl.prototype.setMiterLimit=function(t){this.miterLimit_=t,this.checksum_=void 0},dl.prototype.setWidth=function(t){this.width_=t,this.checksum_=void 0},dl.prototype.getChecksum=function(){return void 0===this.checksum_&&(this.checksum_="s",this.color_?"string"==typeof this.color_?this.checksum_+=this.color_:this.checksum_+=K(this.color_):this.checksum_+="-",this.checksum_+=","+(void 0!==this.lineCap_?this.lineCap_.toString():"-")+","+(this.lineDash_?this.lineDash_.toString():"-")+","+(void 0!==this.lineDashOffset_?this.lineDashOffset_:"-")+","+(void 0!==this.lineJoin_?this.lineJoin_:"-")+","+(void 0!==this.miterLimit_?this.miterLimit_.toString():"-")+","+(void 0!==this.width_?this.width_.toString():"-")),this.checksum_};var fl=dl,pl="point",vl="line",gl=function(t){var e=t||{};this.font_=e.font,this.rotation_=e.rotation,this.rotateWithView_=e.rotateWithView,this.scale_=e.scale,this.text_=e.text,this.textAlign_=e.textAlign,this.textBaseline_=e.textBaseline,this.fill_=void 0!==e.fill?e.fill:new hl({color:"#333"}),this.maxAngle_=void 0!==e.maxAngle?e.maxAngle:Math.PI/4,this.placement_=void 0!==e.placement?e.placement:pl,this.overflow_=!!e.overflow,this.stroke_=void 0!==e.stroke?e.stroke:null,this.offsetX_=void 0!==e.offsetX?e.offsetX:0,this.offsetY_=void 0!==e.offsetY?e.offsetY:0,this.backgroundFill_=e.backgroundFill?e.backgroundFill:null,this.backgroundStroke_=e.backgroundStroke?e.backgroundStroke:null,this.padding_=void 0===e.padding?null:e.padding};gl.prototype.clone=function(){return new gl({font:this.getFont(),placement:this.getPlacement(),maxAngle:this.getMaxAngle(),overflow:this.getOverflow(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),scale:this.getScale(),text:this.getText(),textAlign:this.getTextAlign(),textBaseline:this.getTextBaseline(),fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,offsetX:this.getOffsetX(),offsetY:this.getOffsetY(),backgroundFill:this.getBackgroundFill()?this.getBackgroundFill().clone():void 0,backgroundStroke:this.getBackgroundStroke()?this.getBackgroundStroke().clone():void 0})},gl.prototype.getOverflow=function(){return this.overflow_},gl.prototype.getFont=function(){return this.font_},gl.prototype.getMaxAngle=function(){return this.maxAngle_},gl.prototype.getPlacement=function(){return this.placement_},gl.prototype.getOffsetX=function(){return this.offsetX_},gl.prototype.getOffsetY=function(){return this.offsetY_},gl.prototype.getFill=function(){return this.fill_},gl.prototype.getRotateWithView=function(){return this.rotateWithView_},gl.prototype.getRotation=function(){return this.rotation_},gl.prototype.getScale=function(){return this.scale_},gl.prototype.getStroke=function(){return this.stroke_},gl.prototype.getText=function(){return this.text_},gl.prototype.getTextAlign=function(){return this.textAlign_},gl.prototype.getTextBaseline=function(){return this.textBaseline_},gl.prototype.getBackgroundFill=function(){return this.backgroundFill_},gl.prototype.getBackgroundStroke=function(){return this.backgroundStroke_},gl.prototype.getPadding=function(){return this.padding_},gl.prototype.setOverflow=function(t){this.overflow_=t},gl.prototype.setFont=function(t){this.font_=t},gl.prototype.setMaxAngle=function(t){this.maxAngle_=t},gl.prototype.setOffsetX=function(t){this.offsetX_=t},gl.prototype.setOffsetY=function(t){this.offsetY_=t},gl.prototype.setPlacement=function(t){this.placement_=t},gl.prototype.setFill=function(t){this.fill_=t},gl.prototype.setRotation=function(t){this.rotation_=t},gl.prototype.setScale=function(t){this.scale_=t},gl.prototype.setStroke=function(t){this.stroke_=t},gl.prototype.setText=function(t){this.text_=t},gl.prototype.setTextAlign=function(t){this.textAlign_=t},gl.prototype.setTextBaseline=function(t){this.textBaseline_=t},gl.prototype.setBackgroundFill=function(t){this.backgroundFill_=t},gl.prototype.setBackgroundStroke=function(t){this.backgroundStroke_=t},gl.prototype.setPadding=function(t){this.padding_=t};var ml=gl,yl=new fl({color:"rgba(0,0,0,0.2)"}),_l=[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001],bl=function(t){var e=t||{};this.map_=null,this.postcomposeListenerKey_=null,this.projection_=null,this.maxLat_=1/0,this.maxLon_=1/0,this.minLat_=-1/0,this.minLon_=-1/0,this.maxLatP_=1/0,this.maxLonP_=1/0,this.minLatP_=-1/0,this.minLonP_=-1/0,this.targetSize_=void 0!==e.targetSize?e.targetSize:100,this.maxLines_=void 0!==e.maxLines?e.maxLines:100,this.meridians_=[],this.parallels_=[],this.strokeStyle_=void 0!==e.strokeStyle?e.strokeStyle:yl,this.fromLonLatTransform_=void 0,this.toLonLatTransform_=void 0,this.projectionCenterLonLat_=null,this.meridiansLabels_=null,this.parallelsLabels_=null,1==e.showLabels&&(this.lonLabelFormatter_=void 0==e.lonLabelFormatter?Ha.bind(this,"EW"):e.lonLabelFormatter,this.latLabelFormatter_=void 0==e.latLabelFormatter?Ha.bind(this,"NS"):e.latLabelFormatter,this.lonLabelPosition_=void 0==e.lonLabelPosition?0:e.lonLabelPosition,this.latLabelPosition_=void 0==e.latLabelPosition?1:e.latLabelPosition,this.lonLabelStyle_=void 0!==e.lonLabelStyle?e.lonLabelStyle:new ml({font:"12px Calibri,sans-serif",textBaseline:"bottom",fill:new hl({color:"rgba(0,0,0,1)"}),stroke:new fl({color:"rgba(255,255,255,1)",width:3})}),this.latLabelStyle_=void 0!==e.latLabelStyle?e.latLabelStyle:new ml({font:"12px Calibri,sans-serif",textAlign:"end",fill:new hl({color:"rgba(0,0,0,1)"}),stroke:new fl({color:"rgba(255,255,255,1)",width:3})}),this.meridiansLabels_=[],this.parallelsLabels_=[]),this.intervals_=void 0!==e.intervals?e.intervals:_l,this.setMap(void 0!==e.map?e.map:null)};bl.prototype.addMeridian_=function(t,e,i,n,r,o){var s=this.getMeridian_(t,e,i,n,o);if(Lt(s.getExtent(),r)){if(this.meridiansLabels_){var a=this.getMeridianPoint_(s,r,o);this.meridiansLabels_[o]={geom:a,text:this.lonLabelFormatter_(t)}}this.meridians_[o++]=s}return o},bl.prototype.getMeridianPoint_=function(t,e,i){var n,r=t.getFlatCoordinates(),o=Math.max(e[1],r[1]),s=Math.min(e[3],r[r.length-1]),a=Dt(e[1]+Math.abs(e[1]-e[3])*this.lonLabelPosition_,o,s),l=[r[0],a];return i in this.meridiansLabels_?(n=this.meridiansLabels_[i].geom).setCoordinates(l):n=new Io(l),n},bl.prototype.addParallel_=function(t,e,i,n,r,o){var s=this.getParallel_(t,e,i,n,o);if(Lt(s.getExtent(),r)){if(this.parallelsLabels_){var a=this.getParallelPoint_(s,r,o);this.parallelsLabels_[o]={geom:a,text:this.latLabelFormatter_(t)}}this.parallels_[o++]=s}return o},bl.prototype.getParallelPoint_=function(t,e,i){var n,r=t.getFlatCoordinates(),o=Math.max(e[0],r[0]),s=Math.min(e[2],r[r.length-2]),a=[Dt(e[0]+Math.abs(e[0]-e[2])*this.latLabelPosition_,o,s),r[1]];return i in this.parallelsLabels_?(n=this.parallelsLabels_[i].geom).setCoordinates(a):n=new Io(a),n},bl.prototype.createGraticule_=function(t,e,i,n){var r=this.getInterval_(i);if(-1==r)return this.meridians_.length=this.parallels_.length=0,this.meridiansLabels_&&(this.meridiansLabels_.length=0),void(this.parallelsLabels_&&(this.parallelsLabels_.length=0));var o,s,a,l,u=this.toLonLatTransform_(e),c=u[0],h=u[1],d=this.maxLines_,f=[Math.max(t[0],this.minLonP_),Math.max(t[1],this.minLatP_),Math.min(t[2],this.maxLonP_),Math.min(t[3],this.maxLatP_)],p=(f=bi(f,this.projection_,"EPSG:4326"))[3],v=f[2],g=f[1],m=f[0];for(l=Dt(c=Math.floor(c/r)*r,this.minLon_,this.maxLon_),s=this.addMeridian_(l,g,p,n,t,0),o=0;l!=this.minLon_&&o++<d;)l=Math.max(l-r,this.minLon_),s=this.addMeridian_(l,g,p,n,t,s);for(l=Dt(c,this.minLon_,this.maxLon_),o=0;l!=this.maxLon_&&o++<d;)l=Math.min(l+r,this.maxLon_),s=this.addMeridian_(l,g,p,n,t,s);for(this.meridians_.length=s,this.meridiansLabels_&&(this.meridiansLabels_.length=s),a=Dt(h=Math.floor(h/r)*r,this.minLat_,this.maxLat_),s=this.addParallel_(a,m,v,n,t,0),o=0;a!=this.minLat_&&o++<d;)a=Math.max(a-r,this.minLat_),s=this.addParallel_(a,m,v,n,t,s);for(a=Dt(h,this.minLat_,this.maxLat_),o=0;a!=this.maxLat_&&o++<d;)a=Math.min(a+r,this.maxLat_),s=this.addParallel_(a,m,v,n,t,s);this.parallels_.length=s,this.parallelsLabels_&&(this.parallelsLabels_.length=s)},bl.prototype.getInterval_=function(t){for(var e=this.projectionCenterLonLat_[0],i=this.projectionCenterLonLat_[1],n=-1,r=Math.pow(this.targetSize_*t,2),o=[],s=[],a=0,l=this.intervals_.length;a<l;++a){var u=this.intervals_[a]/2;if(o[0]=e-u,o[1]=i-u,s[0]=e+u,s[1]=i+u,this.fromLonLatTransform_(o,o),this.fromLonLatTransform_(s,s),Math.pow(s[0]-o[0],2)+Math.pow(s[1]-o[1],2)<=r)break;n=this.intervals_[a]}return n},bl.prototype.getMap=function(){return this.map_},bl.prototype.getMeridian_=function(t,e,i,n,r){var o=function(t,e,i,n,r){return Qa(function(n){return[t,e+(i-e)*n]},yi(di("EPSG:4326"),n),r)}(t,e,i,this.projection_,n),s=this.meridians_[r];return s?(s.setFlatCoordinates(to.XY,o),s.changed()):s=this.meridians_[r]=new Po(o,to.XY),s},bl.prototype.getMeridians=function(){return this.meridians_},bl.prototype.getParallel_=function(t,e,i,n,r){var o=function(t,e,i,n,r){return Qa(function(n){return[e+(i-e)*n,t]},yi(di("EPSG:4326"),n),r)}(t,e,i,this.projection_,n),s=this.parallels_[r];return s?(s.setFlatCoordinates(to.XY,o),s.changed()):s=new Po(o,to.XY),s},bl.prototype.getParallels=function(){return this.parallels_},bl.prototype.handlePostCompose_=function(t){var e,i,n,r,o=t.vectorContext,s=t.frameState,a=s.extent,l=s.viewState,u=l.center,c=l.projection,h=l.resolution,d=s.pixelRatio,f=h*h/(4*d*d);for((!this.projection_||!gi(this.projection_,c))&&this.updateProjectionInfo_(c),this.createGraticule_(a,u,h,f),o.setFillStrokeStyle(null,this.strokeStyle_),e=0,i=this.meridians_.length;e<i;++e)n=this.meridians_[e],o.drawGeometry(n);for(e=0,i=this.parallels_.length;e<i;++e)n=this.parallels_[e],o.drawGeometry(n);if(this.meridiansLabels_)for(e=0,i=this.meridiansLabels_.length;e<i;++e)r=this.meridiansLabels_[e],this.lonLabelStyle_.setText(r.text),o.setTextStyle(this.lonLabelStyle_),o.drawGeometry(r.geom);if(this.parallelsLabels_)for(e=0,i=this.parallelsLabels_.length;e<i;++e)r=this.parallelsLabels_[e],this.latLabelStyle_.setText(r.text),o.setTextStyle(this.latLabelStyle_),o.drawGeometry(r.geom)},bl.prototype.updateProjectionInfo_=function(t){var e=di("EPSG:4326"),i=t.getWorldExtent(),n=bi(i,e,t);this.maxLat_=i[3],this.maxLon_=i[2],this.minLat_=i[1],this.minLon_=i[0],this.maxLatP_=n[3],this.maxLonP_=n[2],this.minLatP_=n[1],this.minLonP_=n[0],this.fromLonLatTransform_=yi(e,t),this.toLonLatTransform_=yi(t,e),this.projectionCenterLonLat_=this.toLonLatTransform_(Et(t.getExtent())),this.projection_=t},bl.prototype.setMap=function(t){this.map_&&(de(this.postcomposeListenerKey_),this.postcomposeListenerKey_=null,this.map_.render()),t&&(this.postcomposeListenerKey_=ue(t,tl.POSTCOMPOSE,this.handlePostCompose_,this),t.render()),this.map_=t};var xl=bl,wl=function(t){function e(e,i,n,r){t.call(this),this.extent=e,this.pixelRatio_=n,this.resolution=i,this.state=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.changed=function(){this.dispatchEvent(xe.CHANGE)},e.prototype.getExtent=function(){return this.extent},e.prototype.getImage=function(){return X()},e.prototype.getPixelRatio=function(){return this.pixelRatio_},e.prototype.getResolution=function(){return this.resolution},e.prototype.getState=function(){return this.state},e.prototype.load=function(){X()},e}(be),Sl={IDLE:0,LOADING:1,LOADED:2,ERROR:3},Tl=function(t){function e(e,i,n,r,o,s){t.call(this,e,i,n,Sl.IDLE),this.src_=r,this.image_=new Image,null!==o&&(this.image_.crossOrigin=o),this.imageListenerKeys_=null,this.state=Sl.IDLE,this.imageLoadFunction_=s}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImage=function(){return this.image_},e.prototype.handleImageError_=function(){this.state=Sl.ERROR,this.unlistenImage_(),this.changed()},e.prototype.handleImageLoad_=function(){void 0===this.resolution&&(this.resolution=Ot(this.extent)/this.image_.height),this.state=Sl.LOADED,this.unlistenImage_(),this.changed()},e.prototype.load=function(){this.state!=Sl.IDLE&&this.state!=Sl.ERROR||(this.state=Sl.LOADING,this.changed(),this.imageListenerKeys_=[ce(this.image_,xe.ERROR,this.handleImageError_,this),ce(this.image_,xe.LOAD,this.handleImageLoad_,this)],this.imageLoadFunction_(this,this.src_))},e.prototype.setImage=function(t){this.image_=t},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(de),this.imageListenerKeys_=null},e}(wl),El=function(t){function e(e,i,n,r,o){var s=void 0!==o?Sl.IDLE:Sl.LOADED;t.call(this,e,i,n,s),this.loader_=void 0!==o?o:null,this.canvas_=r,this.error_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getError=function(){return this.error_},e.prototype.handleLoad_=function(t){t?(this.error_=t,this.state=Sl.ERROR):this.state=Sl.LOADED,this.changed()},e.prototype.load=function(){this.state==Sl.IDLE&&(this.state=Sl.LOADING,this.changed(),this.loader_(this.handleLoad_.bind(this)))},e.prototype.getImage=function(){return this.canvas_},e}(wl),Cl=function(t,e,i){this.decay_=t,this.minVelocity_=e,this.delay_=i,this.points_=[],this.angle_=0,this.initialVelocity_=0};Cl.prototype.begin=function(){this.points_.length=0,this.angle_=0,this.initialVelocity_=0},Cl.prototype.update=function(t,e){this.points_.push(t,e,Date.now())},Cl.prototype.end=function(){if(this.points_.length<6)return!1;var t=Date.now()-this.delay_,e=this.points_.length-3;if(this.points_[e+2]<t)return!1;for(var i=e-3;i>0&&this.points_[i+2]>t;)i-=3;var n=this.points_[e+2]-this.points_[i+2];if(n<1e3/60)return!1;var r=this.points_[e]-this.points_[i],o=this.points_[e+1]-this.points_[i+1];return this.angle_=Math.atan2(o,r),this.initialVelocity_=Math.sqrt(r*r+o*o)/n,this.initialVelocity_>this.minVelocity_},Cl.prototype.getDistance=function(){return(this.minVelocity_-this.initialVelocity_)/this.decay_},Cl.prototype.getAngle=function(){return this.angle_};var Ol=Cl,Ml=function(t){function e(e,i,n){t.call(this,e),this.map=i,this.frameState=void 0!==n?n:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),Pl=function(t){function e(e,i,n,r,o){t.call(this,e,i,o),this.originalEvent=n,this.pixel=i.getEventPixel(n),this.coordinate=i.getCoordinateFromPixel(this.pixel),this.dragging=void 0!==r&&r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.preventDefault=function(){t.prototype.preventDefault.call(this),this.originalEvent.preventDefault()},e.prototype.stopPropagation=function(){t.prototype.stopPropagation.call(this),this.originalEvent.stopPropagation()},e}(Ml),kl={SINGLECLICK:"singleclick",CLICK:xe.CLICK,DBLCLICK:xe.DBLCLICK,POINTERDRAG:"pointerdrag",POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},Il=function(t){function e(e,i,n,r,o){t.call(this,e,i,n.originalEvent,r,o),this.pointerEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Pl),Ll={POINTERMOVE:"pointermove",POINTERDOWN:"pointerdown",POINTERUP:"pointerup",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",POINTERCANCEL:"pointercancel"},Al=function(t,e){this.dispatcher=t,this.mapping_=e};Al.prototype.getEvents=function(){return Object.keys(this.mapping_)},Al.prototype.getHandlerForEvent=function(t){return this.mapping_[t]};var Rl=Al,Fl=1,Dl="mouse";function jl(t){if(!this.isEventSimulatedFromTouch_(t)){Fl.toString()in this.pointerMap&&this.cancel(t);var e=Bl(t,this.dispatcher);this.pointerMap[Fl.toString()]=t,this.dispatcher.down(e,t)}}function Nl(t){if(!this.isEventSimulatedFromTouch_(t)){var e=Bl(t,this.dispatcher);this.dispatcher.move(e,t)}}function $l(t){if(!this.isEventSimulatedFromTouch_(t)){var e=this.pointerMap[Fl.toString()];if(e&&e.button===t.button){var i=Bl(t,this.dispatcher);this.dispatcher.up(i,t),this.cleanupMouse()}}}function Gl(t){if(!this.isEventSimulatedFromTouch_(t)){var e=Bl(t,this.dispatcher);this.dispatcher.enterOver(e,t)}}function zl(t){if(!this.isEventSimulatedFromTouch_(t)){var e=Bl(t,this.dispatcher);this.dispatcher.leaveOut(e,t)}}function Bl(t,e){var i=e.cloneEvent(t,t),n=i.preventDefault;return i.preventDefault=function(){t.preventDefault(),n()},i.pointerId=Fl,i.isPrimary=!0,i.pointerType=Dl,i}var Yl=function(t){function e(e){var i={mousedown:jl,mousemove:Nl,mouseup:$l,mouseover:Gl,mouseout:zl};t.call(this,e,i),this.pointerMap=e.pointerMap,this.lastTouches=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isEventSimulatedFromTouch_=function(t){for(var e=this.lastTouches,i=t.clientX,n=t.clientY,r=0,o=e.length,s=void 0;r<o&&(s=e[r]);r++){var a=Math.abs(i-s[0]),l=Math.abs(n-s[1]);if(a<=25&&l<=25)return!0}return!1},e.prototype.cancel=function(t){var e=Bl(t,this.dispatcher);this.dispatcher.cancel(e,t),this.cleanupMouse()},e.prototype.cleanupMouse=function(){delete this.pointerMap[Fl.toString()]},e}(Rl),Vl=["","unavailable","touch","pen","mouse"];function Wl(t){this.pointerMap[t.pointerId.toString()]=t;var e=this.prepareEvent_(t);this.dispatcher.down(e,t)}function Hl(t){var e=this.prepareEvent_(t);this.dispatcher.move(e,t)}function Ul(t){var e=this.prepareEvent_(t);this.dispatcher.up(e,t),this.cleanup(t.pointerId)}function Xl(t){var e=this.prepareEvent_(t);this.dispatcher.leaveOut(e,t)}function ql(t){var e=this.prepareEvent_(t);this.dispatcher.enterOver(e,t)}function Kl(t){var e=this.prepareEvent_(t);this.dispatcher.cancel(e,t),this.cleanup(t.pointerId)}function Zl(t){var e=this.dispatcher.makeEvent("lostpointercapture",t,t);this.dispatcher.dispatchEvent(e)}function Jl(t){var e=this.dispatcher.makeEvent("gotpointercapture",t,t);this.dispatcher.dispatchEvent(e)}var Ql=function(t){function e(e){var i={MSPointerDown:Wl,MSPointerMove:Hl,MSPointerUp:Ul,MSPointerOut:Xl,MSPointerOver:ql,MSPointerCancel:Kl,MSGotPointerCapture:Jl,MSLostPointerCapture:Zl};t.call(this,e,i),this.pointerMap=e.pointerMap}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.prepareEvent_=function(t){var e=t;return"number"==typeof t.pointerType&&((e=this.dispatcher.cloneEvent(t,t)).pointerType=Vl[t.pointerType]),e},e.prototype.cleanup=function(t){delete this.pointerMap[t.toString()]},e}(Rl);function tu(t){this.dispatcher.fireNativeEvent(t)}function eu(t){this.dispatcher.fireNativeEvent(t)}function iu(t){this.dispatcher.fireNativeEvent(t)}function nu(t){this.dispatcher.fireNativeEvent(t)}function ru(t){this.dispatcher.fireNativeEvent(t)}function ou(t){this.dispatcher.fireNativeEvent(t)}function su(t){this.dispatcher.fireNativeEvent(t)}function au(t){this.dispatcher.fireNativeEvent(t)}var lu=function(t){function e(e){var i={pointerdown:tu,pointermove:eu,pointerup:iu,pointerout:nu,pointerover:ru,pointercancel:ou,gotpointercapture:au,lostpointercapture:su};t.call(this,e,i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Rl),uu=!1,cu=function(t){function e(e,i,n){t.call(this,e),this.originalEvent=i;var r=n||{};this.buttons=function(t){var e;if(t.buttons||uu)e=t.buttons;else switch(t.which){case 1:e=1;break;case 2:e=4;break;case 3:e=2;break;default:e=0}return e}(r),this.pressure=function(t,e){var i=0;i=t.pressure?t.pressure:e?.5:0;return i}(r,this.buttons),this.bubbles="bubbles"in r&&r.bubbles,this.cancelable="cancelable"in r&&r.cancelable,this.view="view"in r?r.view:null,this.detail="detail"in r?r.detail:null,this.screenX="screenX"in r?r.screenX:0,this.screenY="screenY"in r?r.screenY:0,this.clientX="clientX"in r?r.clientX:0,this.clientY="clientY"in r?r.clientY:0,this.ctrlKey="ctrlKey"in r&&r.ctrlKey,this.altKey="altKey"in r&&r.altKey,this.shiftKey="shiftKey"in r&&r.shiftKey,this.metaKey="metaKey"in r&&r.metaKey,this.button="button"in r?r.button:0,this.relatedTarget="relatedTarget"in r?r.relatedTarget:null,this.pointerId="pointerId"in r?r.pointerId:0,this.width="width"in r?r.width:0,this.height="height"in r?r.height:0,this.tiltX="tiltX"in r?r.tiltX:0,this.tiltY="tiltY"in r?r.tiltY:0,this.pointerType="pointerType"in r?r.pointerType:"",this.hwTimestamp="hwTimestamp"in r?r.hwTimestamp:0,this.isPrimary="isPrimary"in r&&r.isPrimary,i.preventDefault&&(this.preventDefault=function(){i.preventDefault()})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e);!function(){try{var t=new MouseEvent("click",{buttons:1});uu=1===t.buttons}catch(t){}}();var hu=cu;function du(t){this.vacuumTouches_(t),this.setPrimaryTouch_(t.changedTouches[0]),this.dedupSynthMouse_(t),this.clickCount_++,this.processTouches_(t,this.overDown_)}function fu(t){this.processTouches_(t,this.moveOverOut_)}function pu(t){this.dedupSynthMouse_(t),this.processTouches_(t,this.upOut_)}function vu(t){this.processTouches_(t,this.cancelOut_)}var gu=function(t){function e(e,i){var n={touchstart:du,touchmove:fu,touchend:pu,touchcancel:vu};t.call(this,e,n),this.pointerMap=e.pointerMap,this.mouseSource=i,this.firstTouchId_=void 0,this.clickCount_=0,this.resetId_,this.dedupTimeout_=2500}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isPrimaryTouch_=function(t){return this.firstTouchId_===t.identifier},e.prototype.setPrimaryTouch_=function(t){var e=Object.keys(this.pointerMap).length;(0===e||1===e&&Fl.toString()in this.pointerMap)&&(this.firstTouchId_=t.identifier,this.cancelResetClickCount_())},e.prototype.removePrimaryPointer_=function(t){t.isPrimary&&(this.firstTouchId_=void 0,this.resetClickCount_())},e.prototype.resetClickCount_=function(){this.resetId_=setTimeout(this.resetClickCountHandler_.bind(this),200)},e.prototype.resetClickCountHandler_=function(){this.clickCount_=0,this.resetId_=void 0},e.prototype.cancelResetClickCount_=function(){void 0!==this.resetId_&&clearTimeout(this.resetId_)},e.prototype.touchToPointer_=function(t,e){var i=this.dispatcher.cloneEvent(t,e);return i.pointerId=e.identifier+2,i.bubbles=!0,i.cancelable=!0,i.detail=this.clickCount_,i.button=0,i.buttons=1,i.width=e.radiusX||0,i.height=e.radiusY||0,i.pressure=e.force||.5,i.isPrimary=this.isPrimaryTouch_(e),i.pointerType="touch",i.clientX=e.clientX,i.clientY=e.clientY,i.screenX=e.screenX,i.screenY=e.screenY,i},e.prototype.processTouches_=function(t,e){var i=Array.prototype.slice.call(t.changedTouches),n=i.length;function r(){t.preventDefault()}for(var o=0;o<n;++o){var s=this.touchToPointer_(t,i[o]);s.preventDefault=r,e.call(this,t,s)}},e.prototype.findTouch_=function(t,e){for(var i=t.length,n=0;n<i;n++){if(t[n].identifier===e)return!0}return!1},e.prototype.vacuumTouches_=function(t){var e=t.touches,i=Object.keys(this.pointerMap),n=i.length;if(n>=e.length){for(var r=[],o=0;o<n;++o){var s=Number(i[o]),a=this.pointerMap[s];s==Fl||this.findTouch_(e,s-2)||r.push(a.out)}for(var l=0;l<r.length;++l)this.cancelOut_(t,r[l])}},e.prototype.overDown_=function(t,e){this.pointerMap[e.pointerId]={target:e.target,out:e,outTarget:e.target},this.dispatcher.over(e,t),this.dispatcher.enter(e,t),this.dispatcher.down(e,t)},e.prototype.moveOverOut_=function(t,e){var i=e,n=this.pointerMap[i.pointerId];if(n){var r=n.out,o=n.outTarget;this.dispatcher.move(i,t),r&&o!==i.target&&(r.relatedTarget=i.target,i.relatedTarget=o,r.target=o,i.target?(this.dispatcher.leaveOut(r,t),this.dispatcher.enterOver(i,t)):(i.target=o,i.relatedTarget=null,this.cancelOut_(t,i))),n.out=i,n.outTarget=i.target}},e.prototype.upOut_=function(t,e){this.dispatcher.up(e,t),this.dispatcher.out(e,t),this.dispatcher.leave(e,t),this.cleanUpPointer_(e)},e.prototype.cancelOut_=function(t,e){this.dispatcher.cancel(e,t),this.dispatcher.out(e,t),this.dispatcher.leave(e,t),this.cleanUpPointer_(e)},e.prototype.cleanUpPointer_=function(t){delete this.pointerMap[t.pointerId],this.removePrimaryPointer_(t)},e.prototype.dedupSynthMouse_=function(t){var e=this.mouseSource.lastTouches,i=t.changedTouches[0];if(this.isPrimaryTouch_(i)){var n=[i.clientX,i.clientY];e.push(n),setTimeout(function(){var t,i,r;i=n,r=(t=e).indexOf(i),r>-1&&t.splice(r,1)},this.dedupTimeout_)}},e}(Rl),mu=[["bubbles",!1],["cancelable",!1],["view",null],["detail",null],["screenX",0],["screenY",0],["clientX",0],["clientY",0],["ctrlKey",!1],["altKey",!1],["shiftKey",!1],["metaKey",!1],["button",0],["relatedTarget",null],["buttons",0],["pointerId",0],["width",0],["height",0],["pressure",0],["tiltX",0],["tiltY",0],["pointerType",""],["hwTimestamp",0],["isPrimary",!1],["type",""],["target",null],["currentTarget",null],["which",0]],yu=function(t){function e(e){t.call(this),this.element_=e,this.pointerMap={},this.eventMap_={},this.eventSourceList_=[],this.registerSources()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.registerSources=function(){if(ja)this.registerSource("native",new lu(this));else if(Na)this.registerSource("ms",new Ql(this));else{var t=new Yl(this);this.registerSource("mouse",t),Da&&this.registerSource("touch",new gu(this,t))}this.register_()},e.prototype.registerSource=function(t,e){var i=e,n=i.getEvents();n&&(n.forEach(function(t){var e=i.getHandlerForEvent(t);e&&(this.eventMap_[t]=e.bind(i))}.bind(this)),this.eventSourceList_.push(i))},e.prototype.register_=function(){for(var t=this.eventSourceList_.length,e=0;e<t;e++){var i=this.eventSourceList_[e];this.addEvents_(i.getEvents())}},e.prototype.unregister_=function(){for(var t=this.eventSourceList_.length,e=0;e<t;e++){var i=this.eventSourceList_[e];this.removeEvents_(i.getEvents())}},e.prototype.eventHandler_=function(t){var e=t.type,i=this.eventMap_[e];i&&i(t)},e.prototype.addEvents_=function(t){t.forEach(function(t){ue(this.element_,t,this.eventHandler_,this)}.bind(this))},e.prototype.removeEvents_=function(t){t.forEach(function(t){he(this.element_,t,this.eventHandler_,this)}.bind(this))},e.prototype.cloneEvent=function(t,e){for(var i={},n=0,r=mu.length;n<r;n++){var o=mu[n][0];i[o]=t[o]||e[o]||mu[n][1]}return i},e.prototype.down=function(t,e){this.fireEvent(Ll.POINTERDOWN,t,e)},e.prototype.move=function(t,e){this.fireEvent(Ll.POINTERMOVE,t,e)},e.prototype.up=function(t,e){this.fireEvent(Ll.POINTERUP,t,e)},e.prototype.enter=function(t,e){t.bubbles=!1,this.fireEvent(Ll.POINTERENTER,t,e)},e.prototype.leave=function(t,e){t.bubbles=!1,this.fireEvent(Ll.POINTERLEAVE,t,e)},e.prototype.over=function(t,e){t.bubbles=!0,this.fireEvent(Ll.POINTEROVER,t,e)},e.prototype.out=function(t,e){t.bubbles=!0,this.fireEvent(Ll.POINTEROUT,t,e)},e.prototype.cancel=function(t,e){this.fireEvent(Ll.POINTERCANCEL,t,e)},e.prototype.leaveOut=function(t,e){this.out(t,e),this.contains_(t.target,t.relatedTarget)||this.leave(t,e)},e.prototype.enterOver=function(t,e){this.over(t,e),this.contains_(t.target,t.relatedTarget)||this.enter(t,e)},e.prototype.contains_=function(t,e){return!(!t||!e)&&t.contains(e)},e.prototype.makeEvent=function(t,e,i){return new hu(t,i,e)},e.prototype.fireEvent=function(t,e,i){var n=this.makeEvent(t,e,i);this.dispatchEvent(n)},e.prototype.fireNativeEvent=function(t){var e=this.makeEvent(t.type,t,t);this.dispatchEvent(e)},e.prototype.wrapMouseEvent=function(t,e){return this.makeEvent(t,Bl(e,this),e)},e.prototype.disposeInternal=function(){this.unregister_(),t.prototype.disposeInternal.call(this)},e}(be),_u=function(t){function e(e,i){t.call(this),this.map_=e,this.clickTimeoutId_,this.dragging_=!1,this.dragListenerKeys_=[],this.moveTolerance_=i?i*Aa:Aa,this.down_=null;var n=this.map_.getViewport();this.activePointers_=0,this.trackedTouches_={},this.pointerEventHandler_=new yu(n),this.documentPointerEventHandler_=null,this.pointerdownListenerKey_=ue(this.pointerEventHandler_,Ll.POINTERDOWN,this.handlePointerDown_,this),this.relayedListenerKey_=ue(this.pointerEventHandler_,Ll.POINTERMOVE,this.relayEvent_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.emulateClick_=function(t){var e=new Il(kl.CLICK,this.map_,t);this.dispatchEvent(e),void 0!==this.clickTimeoutId_?(clearTimeout(this.clickTimeoutId_),this.clickTimeoutId_=void 0,e=new Il(kl.DBLCLICK,this.map_,t),this.dispatchEvent(e)):this.clickTimeoutId_=setTimeout(function(){this.clickTimeoutId_=void 0;var e=new Il(kl.SINGLECLICK,this.map_,t);this.dispatchEvent(e)}.bind(this),250)},e.prototype.updateActivePointers_=function(t){var e=t;e.type==kl.POINTERUP||e.type==kl.POINTERCANCEL?delete this.trackedTouches_[e.pointerId]:e.type==kl.POINTERDOWN&&(this.trackedTouches_[e.pointerId]=!0),this.activePointers_=Object.keys(this.trackedTouches_).length},e.prototype.handlePointerUp_=function(t){this.updateActivePointers_(t);var e=new Il(kl.POINTERUP,this.map_,t);this.dispatchEvent(e),e.propagationStopped||this.dragging_||!this.isMouseActionButton_(t)||this.emulateClick_(this.down_),0===this.activePointers_&&(this.dragListenerKeys_.forEach(de),this.dragListenerKeys_.length=0,this.dragging_=!1,this.down_=null,this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null)},e.prototype.isMouseActionButton_=function(t){return 0===t.button},e.prototype.handlePointerDown_=function(t){this.updateActivePointers_(t);var e=new Il(kl.POINTERDOWN,this.map_,t);this.dispatchEvent(e),this.down_=t,0===this.dragListenerKeys_.length&&(this.documentPointerEventHandler_=new yu(document),this.dragListenerKeys_.push(ue(this.documentPointerEventHandler_,kl.POINTERMOVE,this.handlePointerMove_,this),ue(this.documentPointerEventHandler_,kl.POINTERUP,this.handlePointerUp_,this),ue(this.pointerEventHandler_,kl.POINTERCANCEL,this.handlePointerUp_,this)))},e.prototype.handlePointerMove_=function(t){if(this.isMoving_(t)){this.dragging_=!0;var e=new Il(kl.POINTERDRAG,this.map_,t,this.dragging_);this.dispatchEvent(e)}t.preventDefault()},e.prototype.relayEvent_=function(t){var e=!(!this.down_||!this.isMoving_(t));this.dispatchEvent(new Il(t.type,this.map_,t,e))},e.prototype.isMoving_=function(t){return this.dragging_||Math.abs(t.clientX-this.down_.clientX)>this.moveTolerance_||Math.abs(t.clientY-this.down_.clientY)>this.moveTolerance_},e.prototype.disposeInternal=function(){this.relayedListenerKey_&&(de(this.relayedListenerKey_),this.relayedListenerKey_=null),this.pointerdownListenerKey_&&(de(this.pointerdownListenerKey_),this.pointerdownListenerKey_=null),this.dragListenerKeys_.forEach(de),this.dragListenerKeys_.length=0,this.documentPointerEventHandler_&&(this.documentPointerEventHandler_.dispose(),this.documentPointerEventHandler_=null),this.pointerEventHandler_&&(this.pointerEventHandler_.dispose(),this.pointerEventHandler_=null),t.prototype.disposeInternal.call(this)},e}(be),bu="postrender",xu="movestart",wu="moveend",Su={LAYERGROUP:"layergroup",SIZE:"size",TARGET:"target",VIEW:"view"},Tu=function(t,e){this.priorityFunction_=t,this.keyFunction_=e,this.elements_=[],this.priorities_=[],this.queuedElements_={}};Tu.prototype.clear=function(){this.elements_.length=0,this.priorities_.length=0,Wt(this.queuedElements_)},Tu.prototype.dequeue=function(){var t=this.elements_,e=this.priorities_,i=t[0];1==t.length?(t.length=0,e.length=0):(t[0]=t.pop(),e[0]=e.pop(),this.siftUp_(0));var n=this.keyFunction_(i);return delete this.queuedElements_[n],i},Tu.prototype.enqueue=function(t){Q(!(this.keyFunction_(t)in this.queuedElements_),31);var e=this.priorityFunction_(t);return e!=1/0&&(this.elements_.push(t),this.priorities_.push(e),this.queuedElements_[this.keyFunction_(t)]=!0,this.siftDown_(0,this.elements_.length-1),!0)},Tu.prototype.getCount=function(){return this.elements_.length},Tu.prototype.getLeftChildIndex_=function(t){return 2*t+1},Tu.prototype.getRightChildIndex_=function(t){return 2*t+2},Tu.prototype.getParentIndex_=function(t){return t-1>>1},Tu.prototype.heapify_=function(){var t;for(t=(this.elements_.length>>1)-1;t>=0;t--)this.siftUp_(t)},Tu.prototype.isEmpty=function(){return 0===this.elements_.length},Tu.prototype.isKeyQueued=function(t){return t in this.queuedElements_},Tu.prototype.isQueued=function(t){return this.isKeyQueued(this.keyFunction_(t))},Tu.prototype.siftUp_=function(t){for(var e=this.elements_,i=this.priorities_,n=e.length,r=e[t],o=i[t],s=t;t<n>>1;){var a=this.getLeftChildIndex_(t),l=this.getRightChildIndex_(t),u=l<n&&i[l]<i[a]?l:a;e[t]=e[u],i[t]=i[u],t=u}e[t]=r,i[t]=o,this.siftDown_(s,t)},Tu.prototype.siftDown_=function(t,e){for(var i=this.elements_,n=this.priorities_,r=i[e],o=n[e];e>t;){var s=this.getParentIndex_(e);if(!(n[s]>o))break;i[e]=i[s],n[e]=n[s],e=s}i[e]=r,n[e]=o},Tu.prototype.reprioritize=function(){var t,e,i,n=this.priorityFunction_,r=this.elements_,o=this.priorities_,s=0,a=r.length;for(e=0;e<a;++e)(i=n(t=r[e]))==1/0?delete this.queuedElements_[this.keyFunction_(t)]:(o[s]=i,r[s++]=t);r.length=s,o.length=s,this.heapify_()};var Eu=Tu,Cu=function(t){function e(e,i){t.call(this,function(t){return e.apply(null,t)},function(t){return t[0].getKey()}),this.tileChangeCallback_=i,this.tilesLoading_=0,this.tilesLoadingKeys_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.enqueue=function(e){var i=t.prototype.enqueue.call(this,e);i&&ue(e[0],xe.CHANGE,this.handleTileChange,this);return i},e.prototype.getTilesLoading=function(){return this.tilesLoading_},e.prototype.handleTileChange=function(t){var e=t.target,i=e.getState();if(i===Jt.LOADED||i===Jt.ERROR||i===Jt.EMPTY||i===Jt.ABORT){he(e,xe.CHANGE,this.handleTileChange,this);var n=e.getKey();n in this.tilesLoadingKeys_&&(delete this.tilesLoadingKeys_[n],--this.tilesLoading_),this.tileChangeCallback_()}},e.prototype.loadMoreTiles=function(t,e){for(var i,n,r,o=0,s=!1;this.tilesLoading_<t&&o<e&&this.getCount()>0;)r=(n=this.dequeue()[0]).getKey(),(i=n.getState())===Jt.ABORT?s=!0:i!==Jt.IDLE||r in this.tilesLoadingKeys_||(this.tilesLoadingKeys_[r]=!0,++this.tilesLoading_,++o,n.load());0===o&&s&&this.tileChangeCallback_()},e}(Eu);function Ou(t){return t}function Mu(t,e){return void 0!==t?0:void 0}function Pu(t,e){return void 0!==t?t+e:void 0}var ku=0,Iu=1,Lu="center",Au="resolution",Ru="rotation",Fu=0;function Du(t,e){setTimeout(function(){t(e)},0)}function ju(t){return!(t.sourceCenter&&t.targetCenter&&!Ua(t.sourceCenter,t.targetCenter))&&(t.sourceResolution===t.targetResolution&&t.sourceRotation===t.targetRotation)}var Nu=function(t){function e(e){t.call(this);var i=Vt({},e);this.hints_=[0,0],this.animations_=[],this.updateAnimationKey_,this.updateAnimations_=this.updateAnimations_.bind(this),this.projection_=vi(i.projection,"EPSG:3857"),this.applyOptions_(i)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.applyOptions_=function(t){var e={};e[Lu]=void 0!==t.center?t.center:null;var i=function(t){var e,i,n,r=void 0!==t.minZoom?t.minZoom:Fu,o=void 0!==t.maxZoom?t.maxZoom:28,s=void 0!==t.zoomFactor?t.zoomFactor:2;if(void 0!==t.resolutions){var a=t.resolutions;i=a[r],n=void 0!==a[o]?a[o]:a[a.length-1],e=function(t){return function(e,i,n){if(void 0!==e){var r=Xi(t,e,n);r=Dt(r+i,0,t.length-1);var o=Math.floor(r);if(r!=o&&o<t.length-1){var s=t[o]/t[o+1];return t[o]/Math.pow(s,r-o)}return t[o]}}}(a)}else{var l=vi(t.projection,"EPSG:3857"),u=l.getExtent(),c=u?Math.max(It(u),Ot(u)):360*ze[Be.DEGREES]/l.getMetersPerUnit(),h=c/Bi/Math.pow(2,Fu),d=h/Math.pow(2,28-Fu);void 0!==(i=t.maxResolution)?r=0:i=h/Math.pow(s,r),void 0===(n=t.minResolution)&&(n=void 0!==t.maxZoom?void 0!==t.maxResolution?i/Math.pow(s,o):h/Math.pow(s,o):d),o=r+Math.floor(Math.log(i/n)/Math.log(s)),n=i/Math.pow(s,o-r),e=function(t,e,i){return function(n,r,o){if(void 0!==n){var s=-o/2+.5,a=Math.floor(Math.log(e/n)/Math.log(t)+s),l=Math.max(a+r,0);return void 0!==i&&(l=Math.min(l,i)),e/Math.pow(t,l)}}}(s,i,o-r)}return{constraint:e,maxResolution:i,minResolution:n,minZoom:r,zoomFactor:s}}(t);this.maxResolution_=i.maxResolution,this.minResolution_=i.minResolution,this.zoomFactor_=i.zoomFactor,this.resolutions_=t.resolutions,this.minZoom_=i.minZoom;var n=function(t){return void 0!==t.extent?(e=t.extent,function(t){return t?[Dt(t[0],e[0],e[2]),Dt(t[1],e[1],e[3])]:void 0}):Ou;var e}(t),r=i.constraint,o=function(t){if(void 0===t.enableRotation||t.enableRotation){var e=t.constrainRotation;return void 0===e||!0===e?(o=r||zt(5),function(t,e){return void 0!==t?Math.abs(t+e)<=o?0:t+e:void 0}):!1===e?Pu:"number"==typeof e?(i=e,n=2*Math.PI/i,function(t,e){return void 0!==t?t=Math.floor((t+e)/n+.5)*n:void 0}):Pu}return Mu;var i,n;var r,o}(t);this.constraints_={center:n,resolution:r,rotation:o},void 0!==t.resolution?e[Au]=t.resolution:void 0!==t.zoom&&(e[Au]=this.constrainResolution(this.maxResolution_,t.zoom-this.minZoom_),this.resolutions_&&(e[Au]=Dt(Number(this.getResolution()||e[Au]),this.minResolution_,this.maxResolution_))),e[Ru]=void 0!==t.rotation?t.rotation:0,this.setProperties(e),this.options_=t},e.prototype.getUpdatedOptions_=function(t){var e=Vt({},this.options_);return void 0!==e.resolution?e.resolution=this.getResolution():e.zoom=this.getZoom(),e.center=this.getCenter(),e.rotation=this.getRotation(),Vt({},e,t)},e.prototype.animate=function(t){var e,i=arguments,n=arguments.length;if(n>1&&"function"==typeof arguments[n-1]&&(e=arguments[n-1],--n),!this.isDef()){var r=arguments[n-1];return r.center&&this.setCenter(r.center),void 0!==r.zoom&&this.setZoom(r.zoom),void 0!==r.rotation&&this.setRotation(r.rotation),void(e&&Du(e,!0))}for(var o=Date.now(),s=this.getCenter().slice(),a=this.getResolution(),l=this.getRotation(),u=[],c=0;c<n;++c){var h=i[c],d={start:o,complete:!1,anchor:h.anchor,duration:void 0!==h.duration?h.duration:1e3,easing:h.easing||ee};if(h.center&&(d.sourceCenter=s,d.targetCenter=h.center,s=d.targetCenter),void 0!==h.zoom?(d.sourceResolution=a,d.targetResolution=this.constrainResolution(this.maxResolution_,h.zoom-this.minZoom_,0),a=d.targetResolution):h.resolution&&(d.sourceResolution=a,d.targetResolution=h.resolution,a=d.targetResolution),void 0!==h.rotation){d.sourceRotation=l;var f=Bt(h.rotation-l+Math.PI,2*Math.PI)-Math.PI;d.targetRotation=l+f,l=d.targetRotation}d.callback=e,ju(d)?d.complete=!0:o+=d.duration,u.push(d)}this.animations_.push(u),this.setHint(ku,1),this.updateAnimations_()},e.prototype.getAnimating=function(){return this.hints_[ku]>0},e.prototype.getInteracting=function(){return this.hints_[Iu]>0},e.prototype.cancelAnimations=function(){this.setHint(ku,-this.hints_[ku]);for(var t=0,e=this.animations_.length;t<e;++t){var i=this.animations_[t];i[0].callback&&Du(i[0].callback,!1)}this.animations_.length=0},e.prototype.updateAnimations_=function(){if(void 0!==this.updateAnimationKey_&&(cancelAnimationFrame(this.updateAnimationKey_),this.updateAnimationKey_=void 0),this.getAnimating()){for(var t=Date.now(),e=!1,i=this.animations_.length-1;i>=0;--i){for(var n=this.animations_[i],r=!0,o=0,s=n.length;o<s;++o){var a=n[o];if(!a.complete){var l=t-a.start,u=a.duration>0?l/a.duration:1;u>=1?(a.complete=!0,u=1):r=!1;var c=a.easing(u);if(a.sourceCenter){var h=a.sourceCenter[0],d=a.sourceCenter[1],f=h+c*(a.targetCenter[0]-h),p=d+c*(a.targetCenter[1]-d);this.set(Lu,[f,p])}if(a.sourceResolution&&a.targetResolution){var v=1===c?a.targetResolution:a.sourceResolution+c*(a.targetResolution-a.sourceResolution);a.anchor&&this.set(Lu,this.calculateCenterZoom(v,a.anchor)),this.set(Au,v)}if(void 0!==a.sourceRotation&&void 0!==a.targetRotation){var g=1===c?Bt(a.targetRotation+Math.PI,2*Math.PI)-Math.PI:a.sourceRotation+c*(a.targetRotation-a.sourceRotation);a.anchor&&this.set(Lu,this.calculateCenterRotate(g,a.anchor)),this.set(Ru,g)}if(e=!0,!a.complete)break}}if(r){this.animations_[i]=null,this.setHint(ku,-1);var m=n[0].callback;m&&Du(m,!0)}}this.animations_=this.animations_.filter(Boolean),e&&void 0===this.updateAnimationKey_&&(this.updateAnimationKey_=requestAnimationFrame(this.updateAnimations_))}},e.prototype.calculateCenterRotate=function(t,e){var i,n=this.getCenter();return void 0!==n&&(Xa(i=[n[0]-e[0],n[1]-e[1]],t-this.getRotation()),Va(i,e)),i},e.prototype.calculateCenterZoom=function(t,e){var i,n=this.getCenter(),r=this.getResolution();void 0!==n&&void 0!==r&&(i=[e[0]-t*(e[0]-n[0])/r,e[1]-t*(e[1]-n[1])/r]);return i},e.prototype.getSizeFromViewport_=function(){var t=[100,100],e='.ol-viewport[data-view="'+K(this)+'"]',i=document.querySelector(e);if(i){var n=getComputedStyle(i);t[0]=parseInt(n.width,10),t[1]=parseInt(n.height,10)}return t},e.prototype.constrainCenter=function(t){return this.constraints_.center(t)},e.prototype.constrainResolution=function(t,e,i){var n=e||0,r=i||0;return this.constraints_.resolution(t,n,r)},e.prototype.constrainRotation=function(t,e){var i=e||0;return this.constraints_.rotation(t,i)},e.prototype.getCenter=function(){return this.get(Lu)},e.prototype.getConstraints=function(){return this.constraints_},e.prototype.getHints=function(t){return void 0!==t?(t[0]=this.hints_[0],t[1]=this.hints_[1],t):this.hints_.slice()},e.prototype.calculateExtent=function(t){var e=t||this.getSizeFromViewport_(),i=this.getCenter();Q(i,1);var n=this.getResolution();Q(void 0!==n,2);var r=this.getRotation();return Q(void 0!==r,3),Ct(i,n,r,e)},e.prototype.getMaxResolution=function(){return this.maxResolution_},e.prototype.getMinResolution=function(){return this.minResolution_},e.prototype.getMaxZoom=function(){return this.getZoomForResolution(this.minResolution_)},e.prototype.setMaxZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({maxZoom:t}))},e.prototype.getMinZoom=function(){return this.getZoomForResolution(this.maxResolution_)},e.prototype.setMinZoom=function(t){this.applyOptions_(this.getUpdatedOptions_({minZoom:t}))},e.prototype.getProjection=function(){return this.projection_},e.prototype.getResolution=function(){return this.get(Au)},e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.getResolutionForExtent=function(t,e){var i=e||this.getSizeFromViewport_(),n=It(t)/i[0],r=Ot(t)/i[1];return Math.max(n,r)},e.prototype.getResolutionForValueFunction=function(t){var e=t||2,i=this.maxResolution_,n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return i/Math.pow(e,t*r)}},e.prototype.getRotation=function(){return this.get(Ru)},e.prototype.getValueForResolutionFunction=function(t){var e=t||2,i=this.maxResolution_,n=this.minResolution_,r=Math.log(i/n)/Math.log(e);return function(t){return Math.log(i/t)/Math.log(e)/r}},e.prototype.getState=function(t){var e=this.getCenter(),i=this.getProjection(),n=this.getResolution(),r=n/t,o=this.getRotation();return{center:[Math.round(e[0]/r)*r,Math.round(e[1]/r)*r],projection:void 0!==i?i:null,resolution:n,rotation:o,zoom:this.getZoom()}},e.prototype.getZoom=function(){var t,e=this.getResolution();return void 0!==e&&(t=this.getZoomForResolution(e)),t},e.prototype.getZoomForResolution=function(t){var e,i,n=this.minZoom_||0;if(this.resolutions_){var r=Xi(this.resolutions_,t,1);n=r,e=this.resolutions_[r],i=r==this.resolutions_.length-1?2:e/this.resolutions_[r+1]}else e=this.maxResolution_,i=this.zoomFactor_;return n+Math.log(e/t)/Math.log(i)},e.prototype.getResolutionForZoom=function(t){return this.constrainResolution(this.maxResolution_,t-this.minZoom_,0)},e.prototype.fit=function(t,e){var i,n=e||{},r=n.size;r||(r=this.getSizeFromViewport_()),Q(Array.isArray(t)||"function"==typeof t.getSimplifiedGeometry,24),Array.isArray(t)?(Q(!At(t),25),i=Ho(t)):t.getType()===Fe.CIRCLE?(i=Ho(t=t.getExtent())).rotate(this.getRotation(),Et(t)):i=t;var o,s=void 0!==n.padding?n.padding:[0,0,0,0],a=void 0===n.constrainResolution||n.constrainResolution,l=void 0!==n.nearest&&n.nearest;o=void 0!==n.minResolution?n.minResolution:void 0!==n.maxZoom?this.constrainResolution(this.maxResolution_,n.maxZoom-this.minZoom_,0):0;for(var u=i.getFlatCoordinates(),c=this.getRotation(),h=Math.cos(-c),d=Math.sin(-c),f=1/0,p=1/0,v=-1/0,g=-1/0,m=i.getStride(),y=0,_=u.length;y<_;y+=m){var b=u[y]*h-u[y+1]*d,x=u[y]*d+u[y+1]*h;f=Math.min(f,b),p=Math.min(p,x),v=Math.max(v,b),g=Math.max(g,x)}var w=this.getResolutionForExtent([f,p,v,g],[r[0]-s[1]-s[3],r[1]-s[0]-s[2]]);if(w=isNaN(w)?o:Math.max(w,o),a){var S=this.constrainResolution(w,0,0);!l&&S<w&&(S=this.constrainResolution(S,-1,0)),w=S}d=-d;var T=(f+v)/2,E=(p+g)/2,C=[(T+=(s[1]-s[3])/2*w)*h-(E+=(s[0]-s[2])/2*w)*d,E*h+T*d],O=n.callback?n.callback:ge;void 0!==n.duration?this.animate({resolution:w,center:C,duration:n.duration,easing:n.easing},O):(this.setResolution(w),this.setCenter(C),Du(O,!0))},e.prototype.centerOn=function(t,e,i){var n=this.getRotation(),r=Math.cos(-n),o=Math.sin(-n),s=t[0]*r-t[1]*o,a=t[1]*r+t[0]*o,l=this.getResolution(),u=(s+=(e[0]/2-i[0])*l)*r-(a+=(i[1]-e[1]/2)*l)*(o=-o),c=a*r+s*o;this.setCenter([u,c])},e.prototype.isDef=function(){return!!this.getCenter()&&void 0!==this.getResolution()},e.prototype.rotate=function(t,e){if(void 0!==e){var i=this.calculateCenterRotate(t,e);this.setCenter(i)}this.setRotation(t)},e.prototype.setCenter=function(t){this.set(Lu,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setHint=function(t,e){return this.hints_[t]+=e,this.changed(),this.hints_[t]},e.prototype.setResolution=function(t){this.set(Au,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setRotation=function(t){this.set(Ru,t),this.getAnimating()&&this.cancelAnimations()},e.prototype.setZoom=function(t){this.setResolution(this.getResolutionForZoom(t))},e}(ji),$u={OPACITY:"opacity",VISIBLE:"visible",EXTENT:"extent",Z_INDEX:"zIndex",MAX_RESOLUTION:"maxResolution",MIN_RESOLUTION:"minResolution",SOURCE:"source"},Gu=function(t){function e(e){t.call(this);var i=Vt({},e);i[$u.OPACITY]=void 0!==e.opacity?e.opacity:1,i[$u.VISIBLE]=void 0===e.visible||e.visible,i[$u.Z_INDEX]=e.zIndex,i[$u.MAX_RESOLUTION]=void 0!==e.maxResolution?e.maxResolution:1/0,i[$u.MIN_RESOLUTION]=void 0!==e.minResolution?e.minResolution:0,this.setProperties(i),this.state_=null,this.type}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return this.type},e.prototype.getLayerState=function(){var t=this.state_||{layer:this,managed:!0};return t.opacity=Dt(this.getOpacity(),0,1),t.sourceState=this.getSourceState(),t.visible=this.getVisible(),t.extent=this.getExtent(),t.zIndex=this.getZIndex()||0,t.maxResolution=this.getMaxResolution(),t.minResolution=Math.max(this.getMinResolution(),0),this.state_=t,t},e.prototype.getLayersArray=function(t){return X()},e.prototype.getLayerStatesArray=function(t){return X()},e.prototype.getExtent=function(){return this.get($u.EXTENT)},e.prototype.getMaxResolution=function(){return this.get($u.MAX_RESOLUTION)},e.prototype.getMinResolution=function(){return this.get($u.MIN_RESOLUTION)},e.prototype.getOpacity=function(){return this.get($u.OPACITY)},e.prototype.getSourceState=function(){return X()},e.prototype.getVisible=function(){return this.get($u.VISIBLE)},e.prototype.getZIndex=function(){return this.get($u.Z_INDEX)},e.prototype.setExtent=function(t){this.set($u.EXTENT,t)},e.prototype.setMaxResolution=function(t){this.set($u.MAX_RESOLUTION,t)},e.prototype.setMinResolution=function(t){this.set($u.MIN_RESOLUTION,t)},e.prototype.setOpacity=function(t){this.set($u.OPACITY,t)},e.prototype.setVisible=function(t){this.set($u.VISIBLE,t)},e.prototype.setZIndex=function(t){this.set($u.Z_INDEX,t)},e}(ji),zu={LAYERS:"layers"},Bu=function(t){function e(e){var i=e||{},n=Vt({},i);delete n.layers;var r=i.layers;t.call(this,n),this.layersListenerKeys_=[],this.listenerKeys_={},ue(this,Di(zu.LAYERS),this.handleLayersChanged_,this),r?Array.isArray(r)?r=new ya(r.slice(),{unique:!0}):Q("function"==typeof r.getArray,43):r=new ya(void 0,{unique:!0}),this.setLayers(r)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleLayerChange_=function(){this.changed()},e.prototype.handleLayersChanged_=function(){this.layersListenerKeys_.forEach(de),this.layersListenerKeys_.length=0;var t=this.getLayers();for(var e in this.layersListenerKeys_.push(ue(t,va.ADD,this.handleLayersAdd_,this),ue(t,va.REMOVE,this.handleLayersRemove_,this)),this.listenerKeys_)this.listenerKeys_[e].forEach(de);Wt(this.listenerKeys_);for(var i=t.getArray(),n=0,r=i.length;n<r;n++){var o=i[n];this.listenerKeys_[K(o)]=[ue(o,Li,this.handleLayerChange_,this),ue(o,xe.CHANGE,this.handleLayerChange_,this)]}this.changed()},e.prototype.handleLayersAdd_=function(t){var e=t.element;this.listenerKeys_[K(e)]=[ue(e,Li,this.handleLayerChange_,this),ue(e,xe.CHANGE,this.handleLayerChange_,this)],this.changed()},e.prototype.handleLayersRemove_=function(t){var e=K(t.element);this.listenerKeys_[e].forEach(de),delete this.listenerKeys_[e],this.changed()},e.prototype.getLayers=function(){return this.get(zu.LAYERS)},e.prototype.setLayers=function(t){this.set(zu.LAYERS,t)},e.prototype.getLayersArray=function(t){var e=void 0!==t?t:[];return this.getLayers().forEach(function(t){t.getLayersArray(e)}),e},e.prototype.getLayerStatesArray=function(t){var e=void 0!==t?t:[],i=e.length;this.getLayers().forEach(function(t){t.getLayerStatesArray(e)});for(var n=this.getLayerState(),r=i,o=e.length;r<o;r++){var s=e[r];s.opacity*=n.opacity,s.visible=s.visible&&n.visible,s.maxResolution=Math.min(s.maxResolution,n.maxResolution),s.minResolution=Math.max(s.minResolution,n.minResolution),void 0!==n.extent&&(void 0!==s.extent?s.extent=Mt(s.extent,n.extent):s.extent=n.extent)}return e},e.prototype.getSourceState=function(){return Ni.READY},e}(Gu);var Yu=function(t){function e(e){t.call(this);var i=function(t){var e=null;void 0!==t.keyboardEventTarget&&(e="string"==typeof t.keyboardEventTarget?document.getElementById(t.keyboardEventTarget):t.keyboardEventTarget);var i,n,r,o={},s=t.layers&&"function"==typeof t.layers.getLayers?t.layers:new Bu({layers:t.layers});o[Su.LAYERGROUP]=s,o[Su.TARGET]=t.target,o[Su.VIEW]=void 0!==t.view?t.view:new Nu,void 0!==t.controls&&(Array.isArray(t.controls)?i=new ya(t.controls.slice()):(Q("function"==typeof t.controls.getArray,47),i=t.controls));void 0!==t.interactions&&(Array.isArray(t.interactions)?n=new ya(t.interactions.slice()):(Q("function"==typeof t.interactions.getArray,48),n=t.interactions));void 0!==t.overlays?Array.isArray(t.overlays)?r=new ya(t.overlays.slice()):(Q("function"==typeof t.overlays.getArray,49),r=t.overlays):r=new ya;return{controls:i,interactions:n,keyboardEventTarget:e,overlays:r,values:o}}(e);this.maxTilesLoading_=void 0!==e.maxTilesLoading?e.maxTilesLoading:16,this.loadTilesWhileAnimating_=void 0!==e.loadTilesWhileAnimating&&e.loadTilesWhileAnimating,this.loadTilesWhileInteracting_=void 0!==e.loadTilesWhileInteracting&&e.loadTilesWhileInteracting,this.pixelRatio_=void 0!==e.pixelRatio?e.pixelRatio:Aa,this.animationDelayKey_,this.animationDelay_=function(){this.animationDelayKey_=void 0,this.renderFrame_.call(this,Date.now())}.bind(this),this.coordinateToPixelTransform_=[1,0,0,1,0,0],this.pixelToCoordinateTransform_=[1,0,0,1,0,0],this.frameIndex_=0,this.frameState_=null,this.previousExtent_=null,this.viewPropertyListenerKey_=null,this.viewChangeListenerKey_=null,this.layerGroupPropertyListenerKeys_=null,this.viewport_=document.createElement("div"),this.viewport_.className="ol-viewport"+(Da?" ol-touch":""),this.viewport_.style.position="relative",this.viewport_.style.overflow="hidden",this.viewport_.style.width="100%",this.viewport_.style.height="100%",this.viewport_.style.msTouchAction="none",this.viewport_.style.touchAction="none",this.overlayContainer_=document.createElement("div"),this.overlayContainer_.className="ol-overlaycontainer",this.viewport_.appendChild(this.overlayContainer_),this.overlayContainerStopEvent_=document.createElement("div"),this.overlayContainerStopEvent_.className="ol-overlaycontainer-stopevent";for(var n=[xe.CLICK,xe.DBLCLICK,xe.MOUSEDOWN,xe.TOUCHSTART,xe.MSPOINTERDOWN,kl.POINTERDOWN,xe.MOUSEWHEEL,xe.WHEEL],r=0,o=n.length;r<o;++r)ue(this.overlayContainerStopEvent_,n[r],ye);for(var s in this.viewport_.appendChild(this.overlayContainerStopEvent_),this.mapBrowserEventHandler_=new _u(this,e.moveTolerance),kl)ue(this.mapBrowserEventHandler_,kl[s],this.handleMapBrowserEvent,this);this.keyboardEventTarget_=i.keyboardEventTarget,this.keyHandlerKeys_=null,ue(this.viewport_,xe.CONTEXTMENU,this.handleBrowserEvent,this),ue(this.viewport_,xe.WHEEL,this.handleBrowserEvent,this),ue(this.viewport_,xe.MOUSEWHEEL,this.handleBrowserEvent,this),this.controls=i.controls||new ya,this.interactions=i.interactions||new ya,this.overlays_=i.overlays,this.overlayIdIndex_={},this.renderer_=this.createRenderer(),this.handleResize_,this.focus_=null,this.postRenderFunctions_=[],this.tileQueue_=new Cu(this.getTilePriority.bind(this),this.handleTileChange_.bind(this)),this.skippedFeatureUids_={},ue(this,Di(Su.LAYERGROUP),this.handleLayerGroupChanged_,this),ue(this,Di(Su.VIEW),this.handleViewChanged_,this),ue(this,Di(Su.SIZE),this.handleSizeChanged_,this),ue(this,Di(Su.TARGET),this.handleTargetChanged_,this),this.setProperties(i.values),this.controls.forEach(function(t){t.setMap(this)}.bind(this)),ue(this.controls,va.ADD,function(t){t.element.setMap(this)},this),ue(this.controls,va.REMOVE,function(t){t.element.setMap(null)},this),this.interactions.forEach(function(t){t.setMap(this)}.bind(this)),ue(this.interactions,va.ADD,function(t){t.element.setMap(this)},this),ue(this.interactions,va.REMOVE,function(t){t.element.setMap(null)},this),this.overlays_.forEach(this.addOverlayInternal_.bind(this)),ue(this.overlays_,va.ADD,function(t){this.addOverlayInternal_(t.element)},this),ue(this.overlays_,va.REMOVE,function(t){var e=t.element.getId();void 0!==e&&delete this.overlayIdIndex_[e.toString()],t.element.setMap(null)},this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){throw new Error("Use a map type that has a createRenderer method")},e.prototype.addControl=function(t){this.getControls().push(t)},e.prototype.addInteraction=function(t){this.getInteractions().push(t)},e.prototype.addLayer=function(t){this.getLayerGroup().getLayers().push(t)},e.prototype.addOverlay=function(t){this.getOverlays().push(t)},e.prototype.addOverlayInternal_=function(t){var e=t.getId();void 0!==e&&(this.overlayIdIndex_[e.toString()]=t),t.setMap(this)},e.prototype.disposeInternal=function(){this.mapBrowserEventHandler_.dispose(),he(this.viewport_,xe.CONTEXTMENU,this.handleBrowserEvent,this),he(this.viewport_,xe.WHEEL,this.handleBrowserEvent,this),he(this.viewport_,xe.MOUSEWHEEL,this.handleBrowserEvent,this),void 0!==this.handleResize_&&(removeEventListener(xe.RESIZE,this.handleResize_,!1),this.handleResize_=void 0),this.animationDelayKey_&&(cancelAnimationFrame(this.animationDelayKey_),this.animationDelayKey_=void 0),this.setTarget(null),t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtPixel=function(t,e,i){if(this.frameState_){var n=this.getCoordinateFromPixel(t),r=void 0!==(i=void 0!==i?i:{}).hitTolerance?i.hitTolerance*this.frameState_.pixelRatio:0,o=void 0!==i.layerFilter?i.layerFilter:pe;return this.renderer_.forEachFeatureAtCoordinate(n,this.frameState_,r,e,null,o,null)}},e.prototype.getFeaturesAtPixel=function(t,e){var i=null;return this.forEachFeatureAtPixel(t,function(t){i||(i=[]),i.push(t)},e),i},e.prototype.forEachLayerAtPixel=function(t,e,i){if(this.frameState_){var n=i||{},r=void 0!==n.hitTolerance?i.hitTolerance*this.frameState_.pixelRatio:0,o=n.layerFilter||pe;return this.renderer_.forEachLayerAtPixel(t,this.frameState_,r,e,null,o,null)}},e.prototype.hasFeatureAtPixel=function(t,e){if(!this.frameState_)return!1;var i=this.getCoordinateFromPixel(t),n=void 0!==(e=void 0!==e?e:{}).layerFilter?e.layerFilter:pe,r=void 0!==e.hitTolerance?e.hitTolerance*this.frameState_.pixelRatio:0;return this.renderer_.hasFeatureAtCoordinate(i,this.frameState_,r,n,null)},e.prototype.getEventCoordinate=function(t){return this.getCoordinateFromPixel(this.getEventPixel(t))},e.prototype.getEventPixel=function(t){var e=this.viewport_.getBoundingClientRect(),i="changedTouches"in t?t.changedTouches[0]:t;return[i.clientX-e.left,i.clientY-e.top]},e.prototype.getTarget=function(){return this.get(Su.TARGET)},e.prototype.getTargetElement=function(){var t=this.getTarget();return void 0!==t?"string"==typeof t?document.getElementById(t):t:null},e.prototype.getCoordinateFromPixel=function(t){var e=this.frameState_;return e?Vr(e.pixelToCoordinateTransform,t.slice()):null},e.prototype.getControls=function(){return this.controls},e.prototype.getOverlays=function(){return this.overlays_},e.prototype.getOverlayById=function(t){var e=this.overlayIdIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getInteractions=function(){return this.interactions},e.prototype.getLayerGroup=function(){return this.get(Su.LAYERGROUP)},e.prototype.getLayers=function(){return this.getLayerGroup().getLayers()},e.prototype.getPixelFromCoordinate=function(t){var e=this.frameState_;return e?Vr(e.coordinateToPixelTransform,t.slice(0,2)):null},e.prototype.getRenderer=function(){return this.renderer_},e.prototype.getSize=function(){return this.get(Su.SIZE)},e.prototype.getView=function(){return this.get(Su.VIEW)},e.prototype.getViewport=function(){return this.viewport_},e.prototype.getOverlayContainer=function(){return this.overlayContainer_},e.prototype.getOverlayContainerStopEvent=function(){return this.overlayContainerStopEvent_},e.prototype.getTilePriority=function(t,e,i,n){var r=this.frameState_;if(!(r&&e in r.wantedTiles))return 1/0;if(!r.wantedTiles[e][t.getKey()])return 1/0;var o=i[0]-r.focus[0],s=i[1]-r.focus[1];return 65536*Math.log(n)+Math.sqrt(o*o+s*s)/n},e.prototype.handleBrowserEvent=function(t,e){var i=e||t.type,n=new Pl(i,this,t);this.handleMapBrowserEvent(n)},e.prototype.handleMapBrowserEvent=function(t){if(this.frameState_){this.focus_=t.coordinate,t.frameState=this.frameState_;var e=this.getInteractions().getArray();if(!1!==this.dispatchEvent(t))for(var i=e.length-1;i>=0;i--){var n=e[i];if(n.getActive())if(!n.handleEvent(t))break}}},e.prototype.handlePostRender=function(){var t=this.frameState_,e=this.tileQueue_;if(!e.isEmpty()){var i=this.maxTilesLoading_,n=i;if(t){var r=t.viewHints;r[ku]&&(i=this.loadTilesWhileAnimating_?8:0,n=2),r[Iu]&&(i=this.loadTilesWhileInteracting_?8:0,n=2)}e.getTilesLoading()<i&&(e.reprioritize(),e.loadMoreTiles(i,n))}!t||!this.hasListener(tl.RENDERCOMPLETE)||t.animate||this.tileQueue_.getTilesLoading()||function t(e){for(var i=0,n=e.length;i<n;++i){var r=e[i];if("function"==typeof r.getLayers)return t(r.getLayers().getArray());var o=r.getSource();if(o&&o.loading)return!0}return!1}(this.getLayers().getArray())||this.renderer_.dispatchRenderEvent(tl.RENDERCOMPLETE,t);for(var o=this.postRenderFunctions_,s=0,a=o.length;s<a;++s)o[s](this,t);o.length=0},e.prototype.handleSizeChanged_=function(){this.render()},e.prototype.handleTargetChanged_=function(){var t;if(this.getTarget()&&(t=this.getTargetElement()),this.keyHandlerKeys_){for(var e=0,i=this.keyHandlerKeys_.length;e<i;++e)de(this.keyHandlerKeys_[e]);this.keyHandlerKeys_=null}if(t){t.appendChild(this.viewport_);var n=this.keyboardEventTarget_?this.keyboardEventTarget_:t;this.keyHandlerKeys_=[ue(n,xe.KEYDOWN,this.handleBrowserEvent,this),ue(n,xe.KEYPRESS,this.handleBrowserEvent,this)],this.handleResize_||(this.handleResize_=this.updateSize.bind(this),window.addEventListener(xe.RESIZE,this.handleResize_,!1))}else this.renderer_.removeLayerRenderers(),Ee(this.viewport_),void 0!==this.handleResize_&&(removeEventListener(xe.RESIZE,this.handleResize_,!1),this.handleResize_=void 0);this.updateSize()},e.prototype.handleTileChange_=function(){this.render()},e.prototype.handleViewPropertyChanged_=function(){this.render()},e.prototype.handleViewChanged_=function(){this.viewPropertyListenerKey_&&(de(this.viewPropertyListenerKey_),this.viewPropertyListenerKey_=null),this.viewChangeListenerKey_&&(de(this.viewChangeListenerKey_),this.viewChangeListenerKey_=null);var t=this.getView();t&&(this.viewport_.setAttribute("data-view",K(t)),this.viewPropertyListenerKey_=ue(t,Li,this.handleViewPropertyChanged_,this),this.viewChangeListenerKey_=ue(t,xe.CHANGE,this.handleViewPropertyChanged_,this)),this.render()},e.prototype.handleLayerGroupChanged_=function(){this.layerGroupPropertyListenerKeys_&&(this.layerGroupPropertyListenerKeys_.forEach(de),this.layerGroupPropertyListenerKeys_=null);var t=this.getLayerGroup();t&&(this.layerGroupPropertyListenerKeys_=[ue(t,Li,this.render,this),ue(t,xe.CHANGE,this.render,this)]),this.render()},e.prototype.isRendered=function(){return!!this.frameState_},e.prototype.renderSync=function(){this.animationDelayKey_&&cancelAnimationFrame(this.animationDelayKey_),this.animationDelay_()},e.prototype.render=function(){void 0===this.animationDelayKey_&&(this.animationDelayKey_=requestAnimationFrame(this.animationDelay_))},e.prototype.removeControl=function(t){return this.getControls().remove(t)},e.prototype.removeInteraction=function(t){return this.getInteractions().remove(t)},e.prototype.removeLayer=function(t){return this.getLayerGroup().getLayers().remove(t)},e.prototype.removeOverlay=function(t){return this.getOverlays().remove(t)},e.prototype.renderFrame_=function(t){var e,i=this.getSize(),n=this.getView(),r=[1/0,1/0,-1/0,-1/0],o=this.frameState_,s=null;if(void 0!==i&&function(t){return t[0]>0&&t[1]>0}(i)&&n&&n.isDef()){for(var a=n.getHints(this.frameState_?this.frameState_.viewHints:void 0),l=this.getLayerGroup().getLayerStatesArray(),u={},c=0,h=l.length;c<h;++c)u[K(l[c].layer)]=l[c];e=n.getState(this.pixelRatio_),s={animate:!1,coordinateToPixelTransform:this.coordinateToPixelTransform_,extent:r,focus:this.focus_?this.focus_:e.center,index:this.frameIndex_++,layerStates:u,layerStatesArray:l,pixelRatio:this.pixelRatio_,pixelToCoordinateTransform:this.pixelToCoordinateTransform_,postRenderFunctions:[],size:i,skippedFeatureUids:this.skippedFeatureUids_,tileQueue:this.tileQueue_,time:t,usedTiles:{},viewState:e,viewHints:a,wantedTiles:{}}}if(s&&(s.extent=Ct(e.center,e.resolution,e.rotation,s.size,r)),this.frameState_=s,this.renderer_.renderFrame(s),s){if(s.animate&&this.render(),Array.prototype.push.apply(this.postRenderFunctions_,s.postRenderFunctions),o)(!this.previousExtent_||!At(this.previousExtent_)&&!vt(s.extent,this.previousExtent_))&&(this.dispatchEvent(new Ml(xu,this,o)),this.previousExtent_=dt(this.previousExtent_));this.previousExtent_&&!s.viewHints[ku]&&!s.viewHints[Iu]&&!vt(s.extent,this.previousExtent_)&&(this.dispatchEvent(new Ml(wu,this,s)),rt(s.extent,this.previousExtent_))}this.dispatchEvent(new Ml(bu,this,s)),setTimeout(this.handlePostRender.bind(this),0)},e.prototype.setLayerGroup=function(t){this.set(Su.LAYERGROUP,t)},e.prototype.setSize=function(t){this.set(Su.SIZE,t)},e.prototype.setTarget=function(t){this.set(Su.TARGET,t)},e.prototype.setView=function(t){this.set(Su.VIEW,t)},e.prototype.skipFeature=function(t){this.skippedFeatureUids_[K(t)]=!0,this.render()},e.prototype.updateSize=function(){var t=this.getTargetElement();if(t){var e=getComputedStyle(t);this.setSize([t.offsetWidth-parseFloat(e.borderLeftWidth)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderRightWidth),t.offsetHeight-parseFloat(e.borderTopWidth)-parseFloat(e.paddingTop)-parseFloat(e.paddingBottom)-parseFloat(e.borderBottomWidth)])}else this.setSize(void 0)},e.prototype.unskipFeature=function(t){delete this.skippedFeatureUids_[K(t)],this.render()},e}(ji);var Vu=function(t){function e(e){t.call(this),this.element=e.element?e.element:null,this.target_=null,this.map_=null,this.listenerKeys=[],this.render=e.render?e.render:ge,e.target&&this.setTarget(e.target)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){Ee(this.element),t.prototype.disposeInternal.call(this)},e.prototype.getMap=function(){return this.map_},e.prototype.setMap=function(t){this.map_&&Ee(this.element);for(var e=0,i=this.listenerKeys.length;e<i;++e)de(this.listenerKeys[e]);(this.listenerKeys.length=0,this.map_=t,this.map_)&&((this.target_?this.target_:t.getOverlayContainerStopEvent()).appendChild(this.element),this.render!==ge&&this.listenerKeys.push(ue(t,bu,this.render,this)),t.render())},e.prototype.setTarget=function(t){this.target_="string"==typeof t?document.getElementById(t):t},e}(ji),Wu="ol-hidden",Hu="ol-selectable",Uu="ol-unselectable",Xu="ol-control",qu="ol-collapsed",Ku=function(){var t,e={};return function(i){if(t||(t=document.createElement("div").style),!(i in e)){t.font=i;var n=t.fontFamily;if(t.font="",!n)return null;e[i]=n.split(/,\s?/)}return e[i]}}();function Zu(t,e){return t.visible&&e>=t.minResolution&&e<t.maxResolution}var Ju=function(t){function e(e){var i=Vt({},e);delete i.source,t.call(this,i),this.mapPrecomposeKey_=null,this.mapRenderKey_=null,this.sourceChangeKey_=null,e.map&&this.setMap(e.map),ue(this,Di($u.SOURCE),this.handleSourcePropertyChange_,this);var n=e.source?e.source:null;this.setSource(n)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getLayersArray=function(t){var e=t||[];return e.push(this),e},e.prototype.getLayerStatesArray=function(t){var e=t||[];return e.push(this.getLayerState()),e},e.prototype.getSource=function(){return this.get($u.SOURCE)||null},e.prototype.getSourceState=function(){var t=this.getSource();return t?t.getState():Ni.UNDEFINED},e.prototype.handleSourceChange_=function(){this.changed()},e.prototype.handleSourcePropertyChange_=function(){this.sourceChangeKey_&&(de(this.sourceChangeKey_),this.sourceChangeKey_=null);var t=this.getSource();t&&(this.sourceChangeKey_=ue(t,xe.CHANGE,this.handleSourceChange_,this)),this.changed()},e.prototype.setMap=function(t){this.mapPrecomposeKey_&&(de(this.mapPrecomposeKey_),this.mapPrecomposeKey_=null),t||this.changed(),this.mapRenderKey_&&(de(this.mapRenderKey_),this.mapRenderKey_=null),t&&(this.mapPrecomposeKey_=ue(t,tl.PRECOMPOSE,function(t){var e=t,i=this.getLayerState();i.managed=!1,void 0===this.getZIndex()&&(i.zIndex=1/0),e.frameState.layerStatesArray.push(i),e.frameState.layerStates[K(this)]=i},this),this.mapRenderKey_=ue(this,xe.CHANGE,t.render,t),this.changed())},e.prototype.setSource=function(t){this.set($u.SOURCE,t)},e}(Gu);function Qu(t){this.updateElement_(t.frameState)}var tc=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),render:i.render||Qu,target:i.target}),this.ulElement_=document.createElement("ul"),this.collapsed_=void 0===i.collapsed||i.collapsed,this.overrideCollapsible_=void 0!==i.collapsible,this.collapsible_=void 0===i.collapsible||i.collapsible,this.collapsible_||(this.collapsed_=!1);var n=void 0!==i.className?i.className:"ol-attribution",r=void 0!==i.tipLabel?i.tipLabel:"Attributions",o=void 0!==i.collapseLabel?i.collapseLabel:"»";"string"==typeof o?(this.collapseLabel_=document.createElement("span"),this.collapseLabel_.textContent=o):this.collapseLabel_=o;var s=void 0!==i.label?i.label:"i";"string"==typeof s?(this.label_=document.createElement("span"),this.label_.textContent=s):this.label_=s;var a=this.collapsible_&&!this.collapsed_?this.collapseLabel_:this.label_,l=document.createElement("button");l.setAttribute("type","button"),l.title=r,l.appendChild(a),ue(l,xe.CLICK,this.handleClick_,this);var u=n+" "+Uu+" "+Xu+(this.collapsed_&&this.collapsible_?" "+qu:"")+(this.collapsible_?"":" ol-uncollapsible"),c=this.element;c.className=u,c.appendChild(this.ulElement_),c.appendChild(l),this.renderedAttributions_=[],this.renderedVisible_=!0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.collectSourceAttributions_=function(t){for(var e={},i=[],n=t.layerStatesArray,r=t.viewState.resolution,o=0,s=n.length;o<s;++o){var a=n[o];if(Zu(a,r)){var l=a.layer.getSource();if(l){var u=l.getAttributions();if(u){var c=u(t);if(c)if(this.overrideCollapsible_||!1!==l.getAttributionsCollapsible()||this.setCollapsible(!1),Array.isArray(c))for(var h=0,d=c.length;h<d;++h)c[h]in e||(i.push(c[h]),e[c[h]]=!0);else c in e||(i.push(c),e[c]=!0)}}}}return i},e.prototype.updateElement_=function(t){if(t){var e=this.collectSourceAttributions_(t),i=e.length>0;if(this.renderedVisible_!=i&&(this.element.style.display=i?"":"none",this.renderedVisible_=i),!Zi(e,this.renderedAttributions_)){Ce(this.ulElement_);for(var n=0,r=e.length;n<r;++n){var o=document.createElement("li");o.innerHTML=e[n],this.ulElement_.appendChild(o)}this.renderedAttributions_=e}}else this.renderedVisible_&&(this.element.style.display="none",this.renderedVisible_=!1)},e.prototype.handleClick_=function(t){t.preventDefault(),this.handleToggle_()},e.prototype.handleToggle_=function(){this.element.classList.toggle(qu),this.collapsed_?Te(this.collapseLabel_,this.label_):Te(this.label_,this.collapseLabel_),this.collapsed_=!this.collapsed_},e.prototype.getCollapsible=function(){return this.collapsible_},e.prototype.setCollapsible=function(t){this.collapsible_!==t&&(this.collapsible_=t,this.element.classList.toggle("ol-uncollapsible"),!t&&this.collapsed_&&this.handleToggle_())},e.prototype.setCollapsed=function(t){this.collapsible_&&this.collapsed_!==t&&this.handleToggle_()},e.prototype.getCollapsed=function(){return this.collapsed_},e}(Vu);function ec(t){var e=t.frameState;if(e){var i=e.viewState.rotation;if(i!=this.rotation_){var n="rotate("+i+"rad)";if(this.autoHide_){var r=this.element.classList.contains(Wu);r||0!==i?r&&0!==i&&this.element.classList.remove(Wu):this.element.classList.add(Wu)}this.label_.style.msTransform=n,this.label_.style.webkitTransform=n,this.label_.style.transform=n}this.rotation_=i}}var ic=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),render:i.render||ec,target:i.target});var n=void 0!==i.className?i.className:"ol-rotate",r=void 0!==i.label?i.label:"⇧";this.label_=null,"string"==typeof r?(this.label_=document.createElement("span"),this.label_.className="ol-compass",this.label_.textContent=r):(this.label_=r,this.label_.classList.add("ol-compass"));var o=i.tipLabel?i.tipLabel:"Reset rotation",s=document.createElement("button");s.className=n+"-reset",s.setAttribute("type","button"),s.title=o,s.appendChild(this.label_),ue(s,xe.CLICK,this.handleClick_,this);var a=n+" "+Uu+" "+Xu,l=this.element;l.className=a,l.appendChild(s),this.callResetNorth_=i.resetNorth?i.resetNorth:void 0,this.duration_=void 0!==i.duration?i.duration:250,this.autoHide_=void 0===i.autoHide||i.autoHide,this.rotation_=void 0,this.autoHide_&&this.element.classList.add(Wu)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t){t.preventDefault(),void 0!==this.callResetNorth_?this.callResetNorth_():this.resetNorth_()},e.prototype.resetNorth_=function(){var t=this.getMap().getView();t&&void 0!==t.getRotation()&&(this.duration_>0?t.animate({rotation:0,duration:this.duration_,easing:te}):t.setRotation(0))},e}(Vu),nc=function(t){function e(e){var i=e||{};t.call(this,{element:document.createElement("div"),target:i.target});var n=void 0!==i.className?i.className:"ol-zoom",r=void 0!==i.delta?i.delta:1,o=void 0!==i.zoomInLabel?i.zoomInLabel:"+",s=void 0!==i.zoomOutLabel?i.zoomOutLabel:"−",a=void 0!==i.zoomInTipLabel?i.zoomInTipLabel:"Zoom in",l=void 0!==i.zoomOutTipLabel?i.zoomOutTipLabel:"Zoom out",u=document.createElement("button");u.className=n+"-in",u.setAttribute("type","button"),u.title=a,u.appendChild("string"==typeof o?document.createTextNode(o):o),ue(u,xe.CLICK,this.handleClick_.bind(this,r));var c=document.createElement("button");c.className=n+"-out",c.setAttribute("type","button"),c.title=l,c.appendChild("string"==typeof s?document.createTextNode(s):s),ue(c,xe.CLICK,this.handleClick_.bind(this,-r));var h=n+" "+Uu+" "+Xu,d=this.element;d.className=h,d.appendChild(u),d.appendChild(c),this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleClick_=function(t,e){e.preventDefault(),this.zoomByDelta_(t)},e.prototype.zoomByDelta_=function(t){var e=this.getMap().getView();if(e){var i=e.getResolution();if(i){var n=e.constrainResolution(i,t);this.duration_>0?(e.getAnimating()&&e.cancelAnimations(),e.animate({resolution:n,duration:this.duration_,easing:te})):e.setResolution(n)}}},e}(Vu);function rc(t){var e=t||{},i=new ya;return(void 0===e.zoom||e.zoom)&&i.push(new nc(e.zoomOptions)),(void 0===e.rotate||e.rotate)&&i.push(new ic(e.rotateOptions)),(void 0===e.attribution||e.attribution)&&i.push(new tc(e.attributionOptions)),i}var oc={ACTIVE:"active"};function sc(t,e,i,n){ac(t,e=t.constrainRotation(e,0),i,n)}function ac(t,e,i,n){if(void 0!==e){var r=t.getRotation(),o=t.getCenter();void 0!==r&&o&&n>0?t.animate({rotation:e,anchor:i,duration:n,easing:te}):t.rotate(e,i)}}function lc(t,e,i,n,r){cc(t,e=t.constrainResolution(e,0,r),i,n)}function uc(t,e,i,n){var r=t.getResolution(),o=t.constrainResolution(r,e,0);if(void 0!==o){var s=t.getResolutions();o=Dt(o,t.getMinResolution()||s[s.length-1],t.getMaxResolution()||s[0])}if(i&&void 0!==o&&o!==r){var a=t.getCenter(),l=t.calculateCenterZoom(o,i);l=t.constrainCenter(l),i=[(o*a[0]-r*l[0])/(o-r),(o*a[1]-r*l[1])/(o-r)]}cc(t,o,i,n)}function cc(t,e,i,n){if(e){var r=t.getResolution(),o=t.getCenter();if(void 0!==r&&o&&e!==r&&n)t.animate({resolution:e,anchor:i,duration:n,easing:te});else{if(i){var s=t.calculateCenterZoom(e,i);t.setCenter(s)}t.setResolution(e)}}}var hc=function(t){function e(e){t.call(this),e.handleEvent&&(this.handleEvent=e.handleEvent),this.map_=null,this.setActive(!0)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getActive=function(){return this.get(oc.ACTIVE)},e.prototype.getMap=function(){return this.map_},e.prototype.handleEvent=function(t){return!0},e.prototype.setActive=function(t){this.set(oc.ACTIVE,t)},e.prototype.setMap=function(t){this.map_=t},e}(ji);function dc(t){var e=!1;if(t.type==kl.DBLCLICK){var i=t.originalEvent,n=t.map,r=t.coordinate,o=i.shiftKey?-this.delta_:this.delta_;uc(n.getView(),o,r,this.duration_),t.preventDefault(),e=!0}return!e}var fc=function(t){function e(e){t.call(this,{handleEvent:dc});var i=e||{};this.delta_=i.delta?i.delta:1,this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(hc),pc=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},vc=function(t){var e=t.originalEvent;return e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},gc=function(t){return t.target.getTargetElement()===document.activeElement},mc=pe,yc=function(t){var e=t.originalEvent;return 0==e.button&&!(Ia&&La&&e.ctrlKey)},_c=ve,bc=function(t){return"pointermove"==t.type},xc=function(t){return t.type==kl.SINGLECLICK},wc=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&!e.shiftKey},Sc=function(t){var e=t.originalEvent;return!e.altKey&&!(e.metaKey||e.ctrlKey)&&e.shiftKey},Tc=function(t){var e=t.originalEvent.target.tagName;return"INPUT"!==e&&"SELECT"!==e&&"TEXTAREA"!==e},Ec=function(t){var e=t.pointerEvent;return Q(void 0!==e,56),"mouse"==e.pointerType},Cc=function(t){var e=t.pointerEvent;return Q(void 0!==e,56),e.isPrimary&&0===e.button};function Oc(t){for(var e=t.length,i=0,n=0,r=0;r<e;r++)i+=t[r].clientX,n+=t[r].clientY;return[i/e,n/e]}var Mc=function(t){function e(e){var i=e||{};t.call(this,i),i.handleDownEvent&&(this.handleDownEvent=i.handleDownEvent),i.handleDragEvent&&(this.handleDragEvent=i.handleDragEvent),i.handleMoveEvent&&(this.handleMoveEvent=i.handleMoveEvent),i.handleUpEvent&&(this.handleUpEvent=i.handleUpEvent),i.stopDown&&(this.stopDown=i.stopDown),this.handlingDownUpSequence=!1,this.trackedPointers_={},this.targetPointers=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDownEvent=function(t){return!1},e.prototype.handleDragEvent=function(t){},e.prototype.handleEvent=function(t){if(!t.pointerEvent)return!0;var e=!1;if(this.updateTrackedPointers_(t),this.handlingDownUpSequence){if(t.type==kl.POINTERDRAG)this.handleDragEvent(t);else if(t.type==kl.POINTERUP){var i=this.handleUpEvent(t);this.handlingDownUpSequence=i&&this.targetPointers.length>0}}else if(t.type==kl.POINTERDOWN){var n=this.handleDownEvent(t);n&&t.preventDefault(),this.handlingDownUpSequence=n,e=this.stopDown(n)}else t.type==kl.POINTERMOVE&&this.handleMoveEvent(t);return!e},e.prototype.handleMoveEvent=function(t){},e.prototype.handleUpEvent=function(t){return!1},e.prototype.stopDown=function(t){return t},e.prototype.updateTrackedPointers_=function(t){if(function(t){var e=t.type;return e===kl.POINTERDOWN||e===kl.POINTERDRAG||e===kl.POINTERUP}(t)){var e=t.pointerEvent,i=e.pointerId.toString();t.type==kl.POINTERUP?delete this.trackedPointers_[i]:t.type==kl.POINTERDOWN?this.trackedPointers_[i]=e:i in this.trackedPointers_&&(this.trackedPointers_[i]=e),this.targetPointers=Ht(this.trackedPointers_)}},e}(hc),Pc=function(t){function e(e){t.call(this,{stopDown:ve});var i=e||{};this.kinetic_=i.kinetic,this.lastCentroid=null,this.lastPointersCount_,this.panning_=!1,this.condition_=i.condition?i.condition:wc,this.noKinetic_=!1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){this.panning_||(this.panning_=!0,this.getMap().getView().setHint(Iu,1));var e=this.targetPointers,i=Oc(e);if(e.length==this.lastPointersCount_){if(this.kinetic_&&this.kinetic_.update(i[0],i[1]),this.lastCentroid){var n=this.lastCentroid[0]-i[0],r=i[1]-this.lastCentroid[1],o=t.map.getView(),s=[n,r];qa(s,o.getResolution()),Xa(s,o.getRotation()),Va(s,o.getCenter()),s=o.constrainCenter(s),o.setCenter(s)}}else this.kinetic_&&this.kinetic_.begin();this.lastCentroid=i,this.lastPointersCount_=e.length},e.prototype.handleUpEvent=function(t){var e=t.map,i=e.getView();if(0===this.targetPointers.length){if(!this.noKinetic_&&this.kinetic_&&this.kinetic_.end()){var n=this.kinetic_.getDistance(),r=this.kinetic_.getAngle(),o=i.getCenter(),s=e.getPixelFromCoordinate(o),a=e.getCoordinateFromPixel([s[0]-n*Math.cos(r),s[1]-n*Math.sin(r)]);i.animate({center:i.constrainCenter(a),duration:500,easing:te})}return this.panning_&&(this.panning_=!1,i.setHint(Iu,-1)),!1}return this.kinetic_&&this.kinetic_.begin(),this.lastCentroid=null,!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>0&&this.condition_(t)){var e=t.map.getView();return this.lastCentroid=null,e.getAnimating()&&e.setCenter(t.frameState.viewState.center),this.kinetic_&&this.kinetic_.begin(),this.noKinetic_=this.targetPointers.length>1,!0}return!1},e}(Mc),kc=function(t){function e(e){var i=e||{};t.call(this,{stopDown:ve}),this.condition_=i.condition?i.condition:vc,this.lastAngle_=void 0,this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){if(Ec(t)){var e=t.map,i=e.getView();if(i.getConstraints().rotation!==Mu){var n=e.getSize(),r=t.pixel,o=Math.atan2(n[1]/2-r[1],r[0]-n[0]/2);if(void 0!==this.lastAngle_){var s=o-this.lastAngle_;ac(i,i.getRotation()-s)}this.lastAngle_=o}}},e.prototype.handleUpEvent=function(t){if(!Ec(t))return!0;var e=t.map.getView();return e.setHint(Iu,-1),sc(e,e.getRotation(),void 0,this.duration_),!1},e.prototype.handleDownEvent=function(t){return!!Ec(t)&&(!(!yc(t)||!this.condition_(t))&&(t.map.getView().setHint(Iu,1),this.lastAngle_=void 0,!0))},e}(Mc),Ic=function(t){function e(e){t.call(this),this.geometry_=null,this.element_=document.createElement("div"),this.element_.style.position="absolute",this.element_.className="ol-box "+e,this.map_=null,this.startPixel_=null,this.endPixel_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.setMap(null)},e.prototype.render_=function(){var t=this.startPixel_,e=this.endPixel_,i=this.element_.style;i.left=Math.min(t[0],e[0])+"px",i.top=Math.min(t[1],e[1])+"px",i.width=Math.abs(e[0]-t[0])+"px",i.height=Math.abs(e[1]-t[1])+"px"},e.prototype.setMap=function(t){if(this.map_){this.map_.getOverlayContainer().removeChild(this.element_);var e=this.element_.style;e.left=e.top=e.width=e.height="inherit"}this.map_=t,this.map_&&this.map_.getOverlayContainer().appendChild(this.element_)},e.prototype.setPixels=function(t,e){this.startPixel_=t,this.endPixel_=e,this.createOrUpdateGeometry(),this.render_()},e.prototype.createOrUpdateGeometry=function(){var t=this.startPixel_,e=this.endPixel_,i=[t,[t[0],e[1]],e,[e[0],t[1]]].map(this.map_.getCoordinateFromPixel,this.map_);i[4]=i[0].slice(),this.geometry_?this.geometry_.setCoordinates([i]):this.geometry_=new Vo([i])},e.prototype.getGeometry=function(){return this.geometry_},e}(re),Lc="boxstart",Ac="boxdrag",Rc="boxend",Fc=function(t){function e(e,i,n){t.call(this,e),this.coordinate=i,this.mapBrowserEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e);function Dc(){var t,e,i=this.getMap(),n=i.getView(),r=i.getSize(),o=this.getGeometry().getExtent();if(this.out_){var s=n.calculateExtent(r),a=(t=[i.getPixelFromCoordinate(St(o)),i.getPixelFromCoordinate(kt(o))],yt(dt(e),t));Rt(s,1/n.getResolutionForExtent(a,r)),o=s}var l=n.constrainResolution(n.getResolutionForExtent(o,r)),u=Et(o);u=n.constrainCenter(u),n.animate({resolution:l,center:u,duration:this.duration_,easing:te})}var jc=function(t){function e(e){var i=e||{},n=i.condition?i.condition:Sc;t.call(this,{condition:n,className:i.className||"ol-dragzoom",onBoxEnd:Dc}),this.duration_=void 0!==i.duration?i.duration:200,this.out_=void 0!==i.out&&i.out}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(function(t){function e(e){t.call(this);var i=e||{};this.box_=new Ic(i.className||"ol-dragbox"),this.minArea_=void 0!==i.minArea?i.minArea:64,this.onBoxEnd_=i.onBoxEnd?i.onBoxEnd:ge,this.startPixel_=null,this.condition_=i.condition?i.condition:mc,this.boxEndCondition_=i.boxEndCondition?i.boxEndCondition:this.defaultBoxEndCondition}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.defaultBoxEndCondition=function(t,e,i){var n=i[0]-e[0],r=i[1]-e[1];return n*n+r*r>=this.minArea_},e.prototype.getGeometry=function(){return this.box_.getGeometry()},e.prototype.handleDragEvent=function(t){Ec(t)&&(this.box_.setPixels(this.startPixel_,t.pixel),this.dispatchEvent(new Fc(Ac,t.coordinate,t)))},e.prototype.handleUpEvent=function(t){return!Ec(t)||(this.box_.setMap(null),this.boxEndCondition_(t,this.startPixel_,t.pixel)&&(this.onBoxEnd_(t),this.dispatchEvent(new Fc(Rc,t.coordinate,t))),!1)},e.prototype.handleDownEvent=function(t){return!!Ec(t)&&(!(!yc(t)||!this.condition_(t))&&(this.startPixel_=t.pixel,this.box_.setMap(t.map),this.box_.setPixels(this.startPixel_,this.startPixel_),this.dispatchEvent(new Fc(Lc,t.coordinate,t)),!0))},e}(Mc)),Nc={LEFT:37,UP:38,RIGHT:39,DOWN:40};function $c(t){var e=!1;if(t.type==xe.KEYDOWN){var i=t.originalEvent.keyCode;if(this.condition_(t)&&(i==Nc.DOWN||i==Nc.LEFT||i==Nc.RIGHT||i==Nc.UP)){var n=t.map.getView(),r=n.getResolution()*this.pixelDelta_,o=0,s=0;i==Nc.DOWN?s=-r:i==Nc.LEFT?o=-r:i==Nc.RIGHT?o=r:s=r;var a=[o,s];Xa(a,n.getRotation()),function(t,e,i){var n=t.getCenter();if(n){var r=t.constrainCenter([n[0]+e[0],n[1]+e[1]]);i?t.animate({duration:i,easing:ie,center:r}):t.setCenter(r)}}(n,a,this.duration_),t.preventDefault(),e=!0}}return!e}var Gc=function(t){function e(e){t.call(this,{handleEvent:$c});var i=e||{};this.defaultCondition_=function(t){return wc(t)&&Tc(t)},this.condition_=void 0!==i.condition?i.condition:this.defaultCondition_,this.duration_=void 0!==i.duration?i.duration:100,this.pixelDelta_=void 0!==i.pixelDelta?i.pixelDelta:128}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(hc);function zc(t){var e=!1;if(t.type==xe.KEYDOWN||t.type==xe.KEYPRESS){var i=t.originalEvent.charCode;if(this.condition_(t)&&(i=="+".charCodeAt(0)||i=="-".charCodeAt(0))){var n=t.map,r=i=="+".charCodeAt(0)?this.delta_:-this.delta_;uc(n.getView(),r,void 0,this.duration_),t.preventDefault(),e=!0}}return!e}var Bc=function(t){function e(e){t.call(this,{handleEvent:zc});var i=e||{};this.condition_=i.condition?i.condition:Tc,this.delta_=i.delta?i.delta:1,this.duration_=void 0!==i.duration?i.duration:100}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(hc),Yc="trackpad",Vc="wheel",Wc=function(t){function e(e){var i=e||{};t.call(this,i),this.delta_=0,this.duration_=void 0!==i.duration?i.duration:250,this.timeout_=void 0!==i.timeout?i.timeout:80,this.useAnchor_=void 0===i.useAnchor||i.useAnchor,this.constrainResolution_=i.constrainResolution||!1,this.condition_=i.condition?i.condition:mc,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_,this.mode_=void 0,this.trackpadEventGap_=400,this.trackpadTimeoutId_,this.trackpadDeltaPerZoom_=300,this.trackpadZoomBuffer_=1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.decrementInteractingHint_=function(){this.trackpadTimeoutId_=void 0,this.getMap().getView().setHint(Iu,-1)},e.prototype.handleEvent=function(t){if(!this.condition_(t))return!0;var e=t.type;if(e!==xe.WHEEL&&e!==xe.MOUSEWHEEL)return!0;t.preventDefault();var i,n=t.map,r=t.originalEvent;if(this.useAnchor_&&(this.lastAnchor_=t.coordinate),t.type==xe.WHEEL?(i=r.deltaY,Pa&&r.deltaMode===WheelEvent.DOM_DELTA_PIXEL&&(i/=Aa),r.deltaMode===WheelEvent.DOM_DELTA_LINE&&(i*=40)):t.type==xe.MOUSEWHEEL&&(i=-r.wheelDeltaY,ka&&(i/=3)),0===i)return!1;var o=Date.now();if(void 0===this.startTime_&&(this.startTime_=o),(!this.mode_||o-this.startTime_>this.trackpadEventGap_)&&(this.mode_=Math.abs(i)<4?Yc:Vc),this.mode_===Yc){var s=n.getView();this.trackpadTimeoutId_?clearTimeout(this.trackpadTimeoutId_):s.setHint(Iu,1),this.trackpadTimeoutId_=setTimeout(this.decrementInteractingHint_.bind(this),this.trackpadEventGap_);var a=s.getResolution()*Math.pow(2,i/this.trackpadDeltaPerZoom_),l=s.getMinResolution(),u=s.getMaxResolution(),c=0;if(a<l?(a=Math.max(a,l/this.trackpadZoomBuffer_),c=1):a>u&&(a=Math.min(a,u*this.trackpadZoomBuffer_),c=-1),this.lastAnchor_){var h=s.calculateCenterZoom(a,this.lastAnchor_);s.setCenter(s.constrainCenter(h))}return s.setResolution(a),0===c&&this.constrainResolution_&&s.animate({resolution:s.constrainResolution(a,i>0?-1:1),easing:te,anchor:this.lastAnchor_,duration:this.duration_}),c>0?s.animate({resolution:l,easing:te,anchor:this.lastAnchor_,duration:500}):c<0&&s.animate({resolution:u,easing:te,anchor:this.lastAnchor_,duration:500}),this.startTime_=o,!1}this.delta_+=i;var d=Math.max(this.timeout_-(o-this.startTime_),0);return clearTimeout(this.timeoutId_),this.timeoutId_=setTimeout(this.handleWheelZoom_.bind(this,n),d),!1},e.prototype.handleWheelZoom_=function(t){var e=t.getView();e.getAnimating()&&e.cancelAnimations();uc(e,-Dt(this.delta_,-1,1),this.lastAnchor_,this.duration_),this.mode_=void 0,this.delta_=0,this.lastAnchor_=null,this.startTime_=void 0,this.timeoutId_=void 0},e.prototype.setMouseAnchor=function(t){this.useAnchor_=t,t||(this.lastAnchor_=null)},e}(hc),Hc=function(t){function e(e){var i=e||{},n=i;n.stopDown||(n.stopDown=ve),t.call(this,n),this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.threshold_=void 0!==i.threshold?i.threshold:.3,this.duration_=void 0!==i.duration?i.duration:250}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=0,i=this.targetPointers[0],n=this.targetPointers[1],r=Math.atan2(n.clientY-i.clientY,n.clientX-i.clientX);if(void 0!==this.lastAngle_){var o=r-this.lastAngle_;this.rotationDelta_+=o,!this.rotating_&&Math.abs(this.rotationDelta_)>this.threshold_&&(this.rotating_=!0),e=o}this.lastAngle_=r;var s=t.map,a=s.getView();if(a.getConstraints().rotation!==Mu){var l=s.getViewport().getBoundingClientRect(),u=Oc(this.targetPointers);if(u[0]-=l.left,u[1]-=l.top,this.anchor_=s.getCoordinateFromPixel(u),this.rotating_){var c=a.getRotation();s.render(),ac(a,c+e,this.anchor_)}}},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView();if(e.setHint(Iu,-1),this.rotating_)sc(e,e.getRotation(),this.anchor_,this.duration_);return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastAngle_=void 0,this.rotating_=!1,this.rotationDelta_=0,this.handlingDownUpSequence||e.getView().setHint(Iu,1),!0}return!1},e}(Mc),Uc=function(t){function e(e){var i=e||{},n=i;n.stopDown||(n.stopDown=ve),t.call(this,n),this.constrainResolution_=i.constrainResolution||!1,this.anchor_=null,this.duration_=void 0!==i.duration?i.duration:400,this.lastDistance_=void 0,this.lastScaleDelta_=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.handleDragEvent=function(t){var e=1,i=this.targetPointers[0],n=this.targetPointers[1],r=i.clientX-n.clientX,o=i.clientY-n.clientY,s=Math.sqrt(r*r+o*o);void 0!==this.lastDistance_&&(e=this.lastDistance_/s),this.lastDistance_=s;var a=t.map,l=a.getView(),u=l.getResolution(),c=l.getMaxResolution(),h=l.getMinResolution(),d=u*e;d>c?(e=c/u,d=c):d<h&&(e=h/u,d=h),1!=e&&(this.lastScaleDelta_=e);var f=a.getViewport().getBoundingClientRect(),p=Oc(this.targetPointers);p[0]-=f.left,p[1]-=f.top,this.anchor_=a.getCoordinateFromPixel(p),a.render(),cc(l,d,this.anchor_)},e.prototype.handleUpEvent=function(t){if(this.targetPointers.length<2){var e=t.map.getView();e.setHint(Iu,-1);var i=e.getResolution();if(this.constrainResolution_||i<e.getMinResolution()||i>e.getMaxResolution()){var n=this.lastScaleDelta_-1;lc(e,i,this.anchor_,this.duration_,n)}return!1}return!0},e.prototype.handleDownEvent=function(t){if(this.targetPointers.length>=2){var e=t.map;return this.anchor_=null,this.lastDistance_=void 0,this.lastScaleDelta_=1,this.handlingDownUpSequence||e.getView().setHint(Iu,1),!0}return!1},e}(Mc);var Xc={IMAGE:"IMAGE",TILE:"TILE",VECTOR_TILE:"VECTOR_TILE",VECTOR:"VECTOR"},qc={IMAGE:"image",VECTOR:"vector"};function Kc(t){return Array.isArray(t)?ul(t):t}var Zc=[0,0,0,1],Jc=[],Qc=[0,0,0,1],th=[0,0,0,0],eh=new Pe,ih={},nh=null,rh={},oh=function(){var t,e,i=60,n=ih,r="32px ",o=["monospace","serif"],s=o.length,a="wmytzilWMYTZIL@#/&?$%10";function l(t){for(var i=sh(),n=100;n<=700;n+=300){for(var l=n+" ",u=!0,c=0;c<s;++c){var h=o[c];if(i.font=l+r+h,e=i.measureText(a).width,t!=h){i.font=l+r+t+","+h;var d=i.measureText(a).width;u=u&&d!=e}}if(u)return!0}return!1}function u(){var e=!0;for(var r in n)n[r]<i&&(l(r)?(n[r]=i,Wt(rh),nh=null,eh.clear()):(++n[r],e=!1));e&&(clearInterval(t),t=void 0)}return function(e){var r=Ku(e);if(r)for(var o=0,s=r.length;o<s;++o){var a=r[o];a in n||(n[a]=i,l(a)||(n[a]=0,void 0===t&&(t=setInterval(u,32))))}}}();function sh(){return nh||(nh=Se(1,1)),nh}var ah,lh,uh=(lh=rh,function(t){var e=lh[t];return void 0==e&&(ah||((ah=document.createElement("span")).textContent="M",ah.style.margin=ah.style.padding="0 !important",ah.style.position="absolute !important",ah.style.left="-99999px !important"),ah.style.font=t,document.body.appendChild(ah),e=lh[t]=ah.offsetHeight,document.body.removeChild(ah)),e});function ch(t,e){var i=sh();return t!=i.font&&(i.font=t),i.measureText(e).width}function hh(t,e,i,n){0!==e&&(t.translate(i,n),t.rotate(e),t.translate(-i,-n))}var dh=[1,0,0,1,0,0];function fh(t,e,i,n,r,o,s,a,l,u,c){var h;1!=i&&(h=t.globalAlpha,t.globalAlpha=h*i),e&&t.setTransform.apply(t,e),t.drawImage(n,r,o,s,a,l,u,s*c,a*c),h&&(t.globalAlpha=h),e&&t.setTransform.apply(t,dh)}var ph=function(t){this.opacity_=t.opacity,this.rotateWithView_=t.rotateWithView,this.rotation_=t.rotation,this.scale_=t.scale};ph.prototype.clone=function(){return new ph({opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},ph.prototype.getOpacity=function(){return this.opacity_},ph.prototype.getRotateWithView=function(){return this.rotateWithView_},ph.prototype.getRotation=function(){return this.rotation_},ph.prototype.getScale=function(){return this.scale_},ph.prototype.getSnapToPixel=function(){return!1},ph.prototype.getAnchor=function(){return X()},ph.prototype.getImage=function(t){return X()},ph.prototype.getHitDetectionImage=function(t){return X()},ph.prototype.getImageState=function(){return X()},ph.prototype.getImageSize=function(){return X()},ph.prototype.getHitDetectionImageSize=function(){return X()},ph.prototype.getOrigin=function(){return X()},ph.prototype.getSize=function(){return X()},ph.prototype.setOpacity=function(t){this.opacity_=t},ph.prototype.setRotateWithView=function(t){this.rotateWithView_=t},ph.prototype.setRotation=function(t){this.rotation_=t},ph.prototype.setScale=function(t){this.scale_=t},ph.prototype.setSnapToPixel=function(t){},ph.prototype.listenImageChange=function(t,e){return X()},ph.prototype.load=function(){X()},ph.prototype.unlistenImageChange=function(t,e){X()};var vh=ph,gh=function(t){function e(e){var i=void 0!==e.rotateWithView&&e.rotateWithView;t.call(this,{opacity:1,rotateWithView:i,rotation:void 0!==e.rotation?e.rotation:0,scale:1}),this.checksums_=null,this.canvas_=null,this.hitDetectionCanvas_=null,this.fill_=void 0!==e.fill?e.fill:null,this.origin_=[0,0],this.points_=e.points,this.radius_=void 0!==e.radius?e.radius:e.radius1,this.radius2_=e.radius2,this.angle_=void 0!==e.angle?e.angle:0,this.stroke_=void 0!==e.stroke?e.stroke:null,this.anchor_=null,this.size_=null,this.imageSize_=null,this.hitDetectionImageSize_=null,this.atlasManager_=e.atlasManager,this.render_(this.atlasManager_)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,points:this.getPoints(),radius:this.getRadius(),radius2:this.getRadius2(),angle:this.getAngle(),stroke:this.getStroke()?this.getStroke().clone():void 0,rotation:this.getRotation(),rotateWithView:this.getRotateWithView(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.getAnchor=function(){return this.anchor_},e.prototype.getAngle=function(){return this.angle_},e.prototype.getFill=function(){return this.fill_},e.prototype.getHitDetectionImage=function(t){return this.hitDetectionCanvas_},e.prototype.getImage=function(t){return this.canvas_},e.prototype.getImageSize=function(){return this.imageSize_},e.prototype.getHitDetectionImageSize=function(){return this.hitDetectionImageSize_},e.prototype.getImageState=function(){return Sl.LOADED},e.prototype.getOrigin=function(){return this.origin_},e.prototype.getPoints=function(){return this.points_},e.prototype.getRadius=function(){return this.radius_},e.prototype.getRadius2=function(){return this.radius2_},e.prototype.getSize=function(){return this.size_},e.prototype.getStroke=function(){return this.stroke_},e.prototype.listenImageChange=function(t,e){},e.prototype.load=function(){},e.prototype.unlistenImageChange=function(t,e){},e.prototype.render_=function(t){var e,i,n="",r="",o=0,s=null,a=0,l=0;this.stroke_&&(null===(i=this.stroke_.getColor())&&(i=Qc),i=Kc(i),void 0===(l=this.stroke_.getWidth())&&(l=1),s=this.stroke_.getLineDash(),a=this.stroke_.getLineDashOffset(),Ra||(s=null,a=0),void 0===(r=this.stroke_.getLineJoin())&&(r="round"),void 0===(n=this.stroke_.getLineCap())&&(n="round"),void 0===(o=this.stroke_.getMiterLimit())&&(o=10));var u=2*(this.radius_+l)+1,c={strokeStyle:i,strokeWidth:l,size:u,lineCap:n,lineDash:s,lineDashOffset:a,lineJoin:r,miterLimit:o};if(void 0===t){var h=Se(u,u);this.canvas_=h.canvas,e=u=this.canvas_.width,this.draw_(c,h,0,0),this.createHitDetectionCanvas_(c)}else{u=Math.round(u);var d,f=!this.fill_;f&&(d=this.drawHitDetectionCanvas_.bind(this,c));var p=this.getChecksum(),v=t.add(p,u,u,this.draw_.bind(this,c),d);this.canvas_=v.image,this.origin_=[v.offsetX,v.offsetY],e=v.image.width,f?(this.hitDetectionCanvas_=v.hitImage,this.hitDetectionImageSize_=[v.hitImage.width,v.hitImage.height]):(this.hitDetectionCanvas_=this.canvas_,this.hitDetectionImageSize_=[e,e])}this.anchor_=[u/2,u/2],this.size_=[u,u],this.imageSize_=[e,e]},e.prototype.draw_=function(t,e,i,n){var r,o,s;e.setTransform(1,0,0,1,0,0),e.translate(i,n),e.beginPath();var a=this.points_;if(a===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var l=void 0!==this.radius2_?this.radius2_:this.radius_;for(l!==this.radius_&&(a*=2),r=0;r<=a;r++)o=2*r*Math.PI/a-Math.PI/2+this.angle_,s=r%2==0?this.radius_:l,e.lineTo(t.size/2+s*Math.cos(o),t.size/2+s*Math.sin(o))}if(this.fill_){var u=this.fill_.getColor();null===u&&(u=Zc),e.fillStyle=Kc(u),e.fill()}this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineCap=t.lineCap,e.lineJoin=t.lineJoin,e.miterLimit=t.miterLimit,e.stroke()),e.closePath()},e.prototype.createHitDetectionCanvas_=function(t){if(this.hitDetectionImageSize_=[t.size,t.size],this.fill_)this.hitDetectionCanvas_=this.canvas_;else{var e=Se(t.size,t.size);this.hitDetectionCanvas_=e.canvas,this.drawHitDetectionCanvas_(t,e,0,0)}},e.prototype.drawHitDetectionCanvas_=function(t,e,i,n){e.setTransform(1,0,0,1,0,0),e.translate(i,n),e.beginPath();var r=this.points_;if(r===1/0)e.arc(t.size/2,t.size/2,this.radius_,0,2*Math.PI,!0);else{var o,s,a,l=void 0!==this.radius2_?this.radius2_:this.radius_;for(l!==this.radius_&&(r*=2),o=0;o<=r;o++)a=2*o*Math.PI/r-Math.PI/2+this.angle_,s=o%2==0?this.radius_:l,e.lineTo(t.size/2+s*Math.cos(a),t.size/2+s*Math.sin(a))}e.fillStyle=nl(Zc),e.fill(),this.stroke_&&(e.strokeStyle=t.strokeStyle,e.lineWidth=t.strokeWidth,t.lineDash&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.stroke()),e.closePath()},e.prototype.getChecksum=function(){var t=this.stroke_?this.stroke_.getChecksum():"-",e=this.fill_?this.fill_.getChecksum():"-";if(!this.checksums_||t!=this.checksums_[1]||e!=this.checksums_[2]||this.radius_!=this.checksums_[3]||this.radius2_!=this.checksums_[4]||this.angle_!=this.checksums_[5]||this.points_!=this.checksums_[6]){var i="r"+t+e+(void 0!==this.radius_?this.radius_.toString():"-")+(void 0!==this.radius2_?this.radius2_.toString():"-")+(void 0!==this.angle_?this.angle_.toString():"-")+(void 0!==this.points_?this.points_.toString():"-");this.checksums_=[i,t,e,this.radius_,this.radius2_,this.angle_,this.points_]}return this.checksums_[0]},e}(vh),mh=function(t){function e(e){var i=e||{};t.call(this,{points:1/0,fill:i.fill,radius:i.radius,stroke:i.stroke,atlasManager:i.atlasManager})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){var t=new e({fill:this.getFill()?this.getFill().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,radius:this.getRadius(),atlasManager:this.atlasManager_});return t.setOpacity(this.getOpacity()),t.setScale(this.getScale()),t},e.prototype.setRadius=function(t){this.radius_=t,this.render_(this.atlasManager_)},e}(gh),yh=function(t){var e=t||{};this.geometry_=null,this.geometryFunction_=wh,void 0!==e.geometry&&this.setGeometry(e.geometry),this.fill_=void 0!==e.fill?e.fill:null,this.image_=void 0!==e.image?e.image:null,this.renderer_=void 0!==e.renderer?e.renderer:null,this.stroke_=void 0!==e.stroke?e.stroke:null,this.text_=void 0!==e.text?e.text:null,this.zIndex_=e.zIndex};yh.prototype.clone=function(){var t=this.getGeometry();return t&&"object"==typeof t&&(t=t.clone()),new yh({geometry:t,fill:this.getFill()?this.getFill().clone():void 0,image:this.getImage()?this.getImage().clone():void 0,stroke:this.getStroke()?this.getStroke().clone():void 0,text:this.getText()?this.getText().clone():void 0,zIndex:this.getZIndex()})},yh.prototype.getRenderer=function(){return this.renderer_},yh.prototype.setRenderer=function(t){this.renderer_=t},yh.prototype.getGeometry=function(){return this.geometry_},yh.prototype.getGeometryFunction=function(){return this.geometryFunction_},yh.prototype.getFill=function(){return this.fill_},yh.prototype.setFill=function(t){this.fill_=t},yh.prototype.getImage=function(){return this.image_},yh.prototype.setImage=function(t){this.image_=t},yh.prototype.getStroke=function(){return this.stroke_},yh.prototype.setStroke=function(t){this.stroke_=t},yh.prototype.getText=function(){return this.text_},yh.prototype.setText=function(t){this.text_=t},yh.prototype.getZIndex=function(){return this.zIndex_},yh.prototype.setGeometry=function(t){"function"==typeof t?this.geometryFunction_=t:"string"==typeof t?this.geometryFunction_=function(e){return e.get(t)}:t?void 0!==t&&(this.geometryFunction_=function(){return t}):this.geometryFunction_=wh,this.geometry_=t},yh.prototype.setZIndex=function(t){this.zIndex_=t};var _h=null;function bh(t,e){if(!_h){var i=new hl({color:"rgba(255,255,255,0.4)"}),n=new fl({color:"#3399CC",width:1.25});_h=[new yh({image:new mh({fill:i,stroke:n,radius:5}),fill:i,stroke:n})]}return _h}function xh(){var t={},e=[255,255,255,1],i=[0,153,255,1];return t[Fe.POLYGON]=[new yh({fill:new hl({color:[255,255,255,.5]})})],t[Fe.MULTI_POLYGON]=t[Fe.POLYGON],t[Fe.LINE_STRING]=[new yh({stroke:new fl({color:e,width:5})}),new yh({stroke:new fl({color:i,width:3})})],t[Fe.MULTI_LINE_STRING]=t[Fe.LINE_STRING],t[Fe.CIRCLE]=t[Fe.POLYGON].concat(t[Fe.LINE_STRING]),t[Fe.POINT]=[new yh({image:new mh({radius:6,fill:new hl({color:i}),stroke:new fl({color:e,width:1.5})}),zIndex:1/0})],t[Fe.MULTI_POINT]=t[Fe.POINT],t[Fe.GEOMETRY_COLLECTION]=t[Fe.POLYGON].concat(t[Fe.LINE_STRING],t[Fe.POINT]),t}function wh(t){return t.getGeometry()}var Sh=yh,Th="renderOrder",Eh=function(t){function e(e){var i=e||{},n=Vt({},i);delete n.style,delete n.renderBuffer,delete n.updateWhileAnimating,delete n.updateWhileInteracting,t.call(this,n),this.declutter_=void 0!==i.declutter&&i.declutter,this.renderBuffer_=void 0!==i.renderBuffer?i.renderBuffer:100,this.style_=null,this.styleFunction_=void 0,this.setStyle(i.style),this.updateWhileAnimating_=void 0!==i.updateWhileAnimating&&i.updateWhileAnimating,this.updateWhileInteracting_=void 0!==i.updateWhileInteracting&&i.updateWhileInteracting,this.renderMode_=i.renderMode||qc.VECTOR,this.type=Xc.VECTOR}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeclutter=function(){return this.declutter_},e.prototype.setDeclutter=function(t){this.declutter_=t},e.prototype.getRenderBuffer=function(){return this.renderBuffer_},e.prototype.getRenderOrder=function(){return this.get(Th)},e.prototype.getStyle=function(){return this.style_},e.prototype.getStyleFunction=function(){return this.styleFunction_},e.prototype.getUpdateWhileAnimating=function(){return this.updateWhileAnimating_},e.prototype.getUpdateWhileInteracting=function(){return this.updateWhileInteracting_},e.prototype.setRenderOrder=function(t){this.set(Th,t)},e.prototype.setStyle=function(t){this.style_=void 0!==t?t:bh,this.styleFunction_=null===t?void 0:function(t){var e;if("function"==typeof t)e=t;else{var i;Array.isArray(t)?i=t:(Q("function"==typeof t.getZIndex,41),i=[t]),e=function(){return i}}return e}(this.style_),this.changed()},e.prototype.getRenderMode=function(){return this.renderMode_},e}(Ju);Eh.prototype.getSource;var Ch=Eh;function Oh(t,e,i,n){return function(r,o,s){var a=new XMLHttpRequest;a.open("GET","function"==typeof t?t(r,o,s):t,!0),e.getType()==Rr.ARRAY_BUFFER&&(a.responseType="arraybuffer"),a.onload=function(t){if(!a.status||a.status>=200&&a.status<300){var r,o=e.getType();o==Rr.JSON||o==Rr.TEXT?r=a.responseText:o==Rr.XML?(r=a.responseXML)||(r=(new DOMParser).parseFromString(a.responseText,"application/xml")):o==Rr.ARRAY_BUFFER&&(r=a.response),r?i.call(this,e.readFeatures(r,{featureProjection:s}),e.readProjection(r),e.getLastExtent()):n.call(this)}else n.call(this)}.bind(this),a.onerror=function(){n.call(this)}.bind(this),a.send()}}function Mh(t,e){return[[-1/0,-1/0,1/0,1/0]]}var Ph={ADDFEATURE:"addfeature",CHANGEFEATURE:"changefeature",CLEAR:"clear",REMOVEFEATURE:"removefeature"},kh=i(233),Ih=i.n(kh),Lh=function(t){this.rbush_=Ih()(t,void 0),this.items_={}};Lh.prototype.insert=function(t,e){var i={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};this.rbush_.insert(i),this.items_[K(e)]=i},Lh.prototype.load=function(t,e){for(var i=new Array(e.length),n=0,r=e.length;n<r;n++){var o=t[n],s=e[n],a={minX:o[0],minY:o[1],maxX:o[2],maxY:o[3],value:s};i[n]=a,this.items_[K(s)]=a}this.rbush_.load(i)},Lh.prototype.remove=function(t){var e=K(t),i=this.items_[e];return delete this.items_[e],null!==this.rbush_.remove(i)},Lh.prototype.update=function(t,e){var i=this.items_[K(e)];vt([i.minX,i.minY,i.maxX,i.maxY],t)||(this.remove(e),this.insert(t,e))},Lh.prototype.getAll=function(){return this.rbush_.all().map(function(t){return t.value})},Lh.prototype.getInExtent=function(t){var e={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3]};return this.rbush_.search(e).map(function(t){return t.value})},Lh.prototype.forEach=function(t,e){return this.forEach_(this.getAll(),t,e)},Lh.prototype.forEachInExtent=function(t,e,i){return this.forEach_(this.getInExtent(t),e,i)},Lh.prototype.forEach_=function(t,e,i){for(var n,r=0,o=t.length;r<o;r++)if(n=e.call(i,t[r]))return n;return n},Lh.prototype.isEmpty=function(){return Ut(this.items_)},Lh.prototype.clear=function(){this.rbush_.clear(),this.items_={}},Lh.prototype.getExtent=function(t){var e=this.rbush_.toJSON();return ht(e.minX,e.minY,e.maxX,e.maxY,t)},Lh.prototype.concat=function(t){for(var e in this.rbush_.load(t.rbush_.all()),t.items_)this.items_[e]=t.items_[e]};var Ah=Lh,Rh=function(t){function e(e,i){t.call(this,e),this.feature=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),Fh=function(t){function e(e){var i,n,r=e||{};t.call(this,{attributions:r.attributions,projection:void 0,state:Ni.READY,wrapX:void 0===r.wrapX||r.wrapX}),this.loader_=ge,this.format_=r.format,this.overlaps_=void 0==r.overlaps||r.overlaps,this.url_=r.url,void 0!==r.loader?this.loader_=r.loader:void 0!==this.url_&&(Q(this.format_,7),this.loader_=(i=this.url_,n=this.format_,Oh(i,n,function(t,e){"function"==typeof this.addFeatures&&this.addFeatures(t)},ge))),this.strategy_=void 0!==r.strategy?r.strategy:Mh;var o,s,a=void 0===r.useSpatialIndex||r.useSpatialIndex;this.featuresRtree_=a?new Ah:null,this.loadedExtentsRtree_=new Ah,this.nullGeometryFeatures_={},this.idIndex_={},this.undefIdIndex_={},this.featureChangeKeys_={},this.featuresCollection_=null,Array.isArray(r.features)?s=r.features:r.features&&(s=(o=r.features).getArray()),a||void 0!==o||(o=new ya(s)),void 0!==s&&this.addFeaturesInternal(s),void 0!==o&&this.bindFeaturesCollection_(o)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature=function(t){this.addFeatureInternal(t),this.changed()},e.prototype.addFeatureInternal=function(t){var e=K(t);if(this.addToIndex_(e,t)){this.setupChangeEvents_(e,t);var i=t.getGeometry();if(i){var n=i.getExtent();this.featuresRtree_&&this.featuresRtree_.insert(n,t)}else this.nullGeometryFeatures_[e]=t;this.dispatchEvent(new Rh(Ph.ADDFEATURE,t))}},e.prototype.setupChangeEvents_=function(t,e){this.featureChangeKeys_[t]=[ue(e,xe.CHANGE,this.handleFeatureChange_,this),ue(e,Li,this.handleFeatureChange_,this)]},e.prototype.addToIndex_=function(t,e){var i=!0,n=e.getId();return void 0!==n?n.toString()in this.idIndex_?i=!1:this.idIndex_[n.toString()]=e:(Q(!(t in this.undefIdIndex_),30),this.undefIdIndex_[t]=e),i},e.prototype.addFeatures=function(t){this.addFeaturesInternal(t),this.changed()},e.prototype.addFeaturesInternal=function(t){for(var e=[],i=[],n=[],r=0,o=t.length;r<o;r++){var s=t[r],a=K(s);this.addToIndex_(a,s)&&i.push(s)}for(var l=0,u=i.length;l<u;l++){var c=i[l],h=K(c);this.setupChangeEvents_(h,c);var d=c.getGeometry();if(d){var f=d.getExtent();e.push(f),n.push(c)}else this.nullGeometryFeatures_[h]=c}this.featuresRtree_&&this.featuresRtree_.load(e,n);for(var p=0,v=i.length;p<v;p++)this.dispatchEvent(new Rh(Ph.ADDFEATURE,i[p]))},e.prototype.bindFeaturesCollection_=function(t){var e=!1;ue(this,Ph.ADDFEATURE,function(i){e||(e=!0,t.push(i.feature),e=!1)}),ue(this,Ph.REMOVEFEATURE,function(i){e||(e=!0,t.remove(i.feature),e=!1)}),ue(t,va.ADD,function(t){e||(e=!0,this.addFeature(t.element),e=!1)},this),ue(t,va.REMOVE,function(t){e||(e=!0,this.removeFeature(t.element),e=!1)},this),this.featuresCollection_=t},e.prototype.clear=function(t){if(t){for(var e in this.featureChangeKeys_){this.featureChangeKeys_[e].forEach(de)}this.featuresCollection_||(this.featureChangeKeys_={},this.idIndex_={},this.undefIdIndex_={})}else if(this.featuresRtree_)for(var i in this.featuresRtree_.forEach(this.removeFeatureInternal,this),this.nullGeometryFeatures_)this.removeFeatureInternal(this.nullGeometryFeatures_[i]);this.featuresCollection_&&this.featuresCollection_.clear(),this.featuresRtree_&&this.featuresRtree_.clear(),this.loadedExtentsRtree_.clear(),this.nullGeometryFeatures_={};var n=new Rh(Ph.CLEAR);this.dispatchEvent(n),this.changed()},e.prototype.forEachFeature=function(t){if(this.featuresRtree_)return this.featuresRtree_.forEach(t);this.featuresCollection_&&this.featuresCollection_.forEach(t)},e.prototype.forEachFeatureAtCoordinateDirect=function(t,e){var i=[t[0],t[1],t[0],t[1]];return this.forEachFeatureInExtent(i,function(i){return i.getGeometry().intersectsCoordinate(t)?e(i):void 0})},e.prototype.forEachFeatureInExtent=function(t,e){if(this.featuresRtree_)return this.featuresRtree_.forEachInExtent(t,e);this.featuresCollection_&&this.featuresCollection_.forEach(e)},e.prototype.forEachFeatureIntersectingExtent=function(t,e){return this.forEachFeatureInExtent(t,function(i){if(i.getGeometry().intersectsExtent(t)){var n=e(i);if(n)return n}})},e.prototype.getFeaturesCollection=function(){return this.featuresCollection_},e.prototype.getFeatures=function(){var t;return this.featuresCollection_?t=this.featuresCollection_.getArray():this.featuresRtree_&&(t=this.featuresRtree_.getAll(),Ut(this.nullGeometryFeatures_)||Ki(t,Ht(this.nullGeometryFeatures_))),t},e.prototype.getFeaturesAtCoordinate=function(t){var e=[];return this.forEachFeatureAtCoordinateDirect(t,function(t){e.push(t)}),e},e.prototype.getFeaturesInExtent=function(t){return this.featuresRtree_.getInExtent(t)},e.prototype.getClosestFeatureToCoordinate=function(t,e){var i=t[0],n=t[1],r=null,o=[NaN,NaN],s=1/0,a=[-1/0,-1/0,1/0,1/0],l=e||pe;return this.featuresRtree_.forEachInExtent(a,function(t){if(l(t)){var e=t.getGeometry(),u=s;if((s=e.closestPointXY(i,n,o,s))<u){r=t;var c=Math.sqrt(s);a[0]=i-c,a[1]=n-c,a[2]=i+c,a[3]=n+c}}}),r},e.prototype.getExtent=function(t){return this.featuresRtree_.getExtent(t)},e.prototype.getFeatureById=function(t){var e=this.idIndex_[t.toString()];return void 0!==e?e:null},e.prototype.getFormat=function(){return this.format_},e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.getUrl=function(){return this.url_},e.prototype.handleFeatureChange_=function(t){var e=t.target,i=K(e),n=e.getGeometry();if(n){var r=n.getExtent();i in this.nullGeometryFeatures_?(delete this.nullGeometryFeatures_[i],this.featuresRtree_&&this.featuresRtree_.insert(r,e)):this.featuresRtree_&&this.featuresRtree_.update(r,e)}else i in this.nullGeometryFeatures_||(this.featuresRtree_&&this.featuresRtree_.remove(e),this.nullGeometryFeatures_[i]=e);var o=e.getId();if(void 0!==o){var s=o.toString();i in this.undefIdIndex_?(delete this.undefIdIndex_[i],this.idIndex_[s]=e):this.idIndex_[s]!==e&&(this.removeFromIdIndex_(e),this.idIndex_[s]=e)}else i in this.undefIdIndex_||(this.removeFromIdIndex_(e),this.undefIdIndex_[i]=e);this.changed(),this.dispatchEvent(new Rh(Ph.CHANGEFEATURE,e))},e.prototype.hasFeature=function(t){var e=t.getId();return void 0!==e?e in this.idIndex_:K(t)in this.undefIdIndex_},e.prototype.isEmpty=function(){return this.featuresRtree_.isEmpty()&&Ut(this.nullGeometryFeatures_)},e.prototype.loadFeatures=function(t,e,i){var n=this,r=this.loadedExtentsRtree_,o=this.strategy_(t,e);this.loading=!1;for(var s=function(t,s){var a=o[t];r.forEachInExtent(a,function(t){return at(t.extent,a)})||(n.loader_.call(n,a,e,i),r.insert(a,{extent:a.slice()}),n.loading=n.loader_!==ge)},a=0,l=o.length;a<l;++a)s(a)},e.prototype.removeLoadedExtent=function(t){var e,i=this.loadedExtentsRtree_;i.forEachInExtent(t,function(i){if(vt(i.extent,t))return e=i,!0}),e&&i.remove(e)},e.prototype.removeFeature=function(t){var e=K(t);e in this.nullGeometryFeatures_?delete this.nullGeometryFeatures_[e]:this.featuresRtree_&&this.featuresRtree_.remove(t),this.removeFeatureInternal(t),this.changed()},e.prototype.removeFeatureInternal=function(t){var e=K(t);this.featureChangeKeys_[e].forEach(de),delete this.featureChangeKeys_[e];var i=t.getId();void 0!==i?delete this.idIndex_[i.toString()]:delete this.undefIdIndex_[e],this.dispatchEvent(new Rh(Ph.REMOVEFEATURE,t))},e.prototype.removeFromIdIndex_=function(t){var e=!1;for(var i in this.idIndex_)if(this.idIndex_[i]===t){delete this.idIndex_[i],e=!0;break}return e},e.prototype.setLoader=function(t){this.loader_=t},e}(Gi),Dh={POINT:"Point",LINE_STRING:"LineString",POLYGON:"Polygon",CIRCLE:"Circle"},jh="drawstart",Nh="drawend",$h=function(t){function e(e,i){t.call(this,e),this.feature=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e);var Gh=function(t){function e(e){var i=e;i.stopDown||(i.stopDown=ve),t.call(this,i),this.shouldHandle_=!1,this.downPx_=null,this.downTimeout_,this.lastDragTime_,this.freehand_=!1,this.source_=e.source?e.source:null,this.features_=e.features?e.features:null,this.snapTolerance_=e.snapTolerance?e.snapTolerance:12,this.type_=e.type,this.mode_=function(t){var e;t===Fe.POINT||t===Fe.MULTI_POINT?e=Dh.POINT:t===Fe.LINE_STRING||t===Fe.MULTI_LINE_STRING?e=Dh.LINE_STRING:t===Fe.POLYGON||t===Fe.MULTI_POLYGON?e=Dh.POLYGON:t===Fe.CIRCLE&&(e=Dh.CIRCLE);return e}(this.type_),this.stopClick_=!!e.stopClick,this.minPoints_=e.minPoints?e.minPoints:this.mode_===Dh.POLYGON?3:2,this.maxPoints_=e.maxPoints?e.maxPoints:1/0,this.finishCondition_=e.finishCondition?e.finishCondition:pe;var n,r=e.geometryFunction;if(!r)if(this.type_===Fe.CIRCLE)r=function(t,e){var i=e||new Ns([NaN,NaN]),n=Ka(t[0],t[1]);return i.setCenterAndRadius(t[0],Math.sqrt(n)),i};else{var o,s=this.mode_;s===Dh.POINT?o=Io:s===Dh.LINE_STRING?o=Po:s===Dh.POLYGON&&(o=Vo),r=function(t,e){var i=e;return i?s===Dh.POLYGON?t[0].length?i.setCoordinates([t[0].concat([t[0][0]])]):i.setCoordinates([]):i.setCoordinates(t):i=new o(t),i}}this.geometryFunction_=r,this.dragVertexDelay_=void 0!==e.dragVertexDelay?e.dragVertexDelay:500,this.finishCoordinate_=null,this.sketchFeature_=null,this.sketchPoint_=null,this.sketchCoords_=null,this.sketchLine_=null,this.sketchLineCoords_=null,this.squaredClickTolerance_=e.clickTolerance?e.clickTolerance*e.clickTolerance:36,this.overlay_=new Ch({source:new Fh({useSpatialIndex:!1,wrapX:!!e.wrapX&&e.wrapX}),style:e.style?e.style:(n=xh(),function(t,e){return n[t.getGeometry().getType()]}),updateWhileInteracting:!0}),this.geometryName_=e.geometryName,this.condition_=e.condition?e.condition:wc,this.freehandCondition_,e.freehand?this.freehandCondition_=mc:this.freehandCondition_=e.freehandCondition?e.freehandCondition:Sc,ue(this,Di(oc.ACTIVE),this.updateState_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setMap=function(e){t.prototype.setMap.call(this,e),this.updateState_()},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleEvent=function(e){e.originalEvent.type===xe.CONTEXTMENU&&e.preventDefault(),this.freehand_=this.mode_!==Dh.POINT&&this.freehandCondition_(e);var i=e.type===kl.POINTERMOVE,n=!0;!this.freehand_&&this.lastDragTime_&&e.type===kl.POINTERDRAG&&(Date.now()-this.lastDragTime_>=this.dragVertexDelay_?(this.downPx_=e.pixel,this.shouldHandle_=!this.freehand_,i=!0):this.lastDragTime_=void 0,this.shouldHandle_&&void 0!==this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0));return this.freehand_&&e.type===kl.POINTERDRAG&&null!==this.sketchFeature_?(this.addToDrawing_(e),n=!1):this.freehand_&&e.type===kl.POINTERDOWN?n=!1:i?(n=e.type===kl.POINTERMOVE)&&this.freehand_?n=this.handlePointerMove_(e):(e.pointerEvent.pointerType==Dl||e.type===kl.POINTERDRAG&&void 0===this.downTimeout_)&&this.handlePointerMove_(e):e.type===kl.DBLCLICK&&(n=!1),t.prototype.handleEvent.call(this,e)&&n},e.prototype.handleDownEvent=function(t){return this.shouldHandle_=!this.freehand_,this.freehand_?(this.downPx_=t.pixel,this.finishCoordinate_||this.startDrawing_(t),!0):!!this.condition_(t)&&(this.lastDragTime_=Date.now(),this.downTimeout_=setTimeout(function(){this.handlePointerMove_(new Il(kl.POINTERMOVE,t.map,t.pointerEvent,!1,t.frameState))}.bind(this),this.dragVertexDelay_),this.downPx_=t.pixel,!0)},e.prototype.handleUpEvent=function(t){var e=!0;this.downTimeout_&&(clearTimeout(this.downTimeout_),this.downTimeout_=void 0),this.handlePointerMove_(t);var i=this.mode_===Dh.CIRCLE;return this.shouldHandle_?(this.finishCoordinate_?this.freehand_||i?this.finishDrawing():this.atFinish_(t)?this.finishCondition_(t)&&this.finishDrawing():this.addToDrawing_(t):(this.startDrawing_(t),this.mode_===Dh.POINT&&this.finishDrawing()),e=!1):this.freehand_&&(this.finishCoordinate_=null,this.abortDrawing_()),!e&&this.stopClick_&&t.stopPropagation(),e},e.prototype.handlePointerMove_=function(t){if(this.downPx_&&(!this.freehand_&&this.shouldHandle_||this.freehand_&&!this.shouldHandle_)){var e=this.downPx_,i=t.pixel,n=e[0]-i[0],r=e[1]-i[1],o=n*n+r*r;if(this.shouldHandle_=this.freehand_?o>this.squaredClickTolerance_:o<=this.squaredClickTolerance_,!this.shouldHandle_)return!0}return this.finishCoordinate_?this.modifyDrawing_(t):this.createOrUpdateSketchPoint_(t),!0},e.prototype.atFinish_=function(t){var e=!1;if(this.sketchFeature_){var i=!1,n=[this.finishCoordinate_];if(this.mode_===Dh.LINE_STRING)i=this.sketchCoords_.length>this.minPoints_;else if(this.mode_===Dh.POLYGON){var r=this.sketchCoords_;i=r[0].length>this.minPoints_,n=[r[0][0],r[0][r[0].length-2]]}if(i)for(var o=t.map,s=0,a=n.length;s<a;s++){var l=n[s],u=o.getPixelFromCoordinate(l),c=t.pixel,h=c[0]-u[0],d=c[1]-u[1],f=this.freehand_?1:this.snapTolerance_;if(e=Math.sqrt(h*h+d*d)<=f){this.finishCoordinate_=l;break}}}return e},e.prototype.createOrUpdateSketchPoint_=function(t){var e=t.coordinate.slice();this.sketchPoint_?this.sketchPoint_.getGeometry().setCoordinates(e):(this.sketchPoint_=new Zn(new Io(e)),this.updateSketchFeatures_())},e.prototype.startDrawing_=function(t){var e=t.coordinate;this.finishCoordinate_=e,this.mode_===Dh.POINT?this.sketchCoords_=e.slice():this.mode_===Dh.POLYGON?(this.sketchCoords_=[[e.slice(),e.slice()]],this.sketchLineCoords_=this.sketchCoords_[0]):this.sketchCoords_=[e.slice(),e.slice()],this.sketchLineCoords_&&(this.sketchLine_=new Zn(new Po(this.sketchLineCoords_)));var i=this.geometryFunction_(this.sketchCoords_);this.sketchFeature_=new Zn,this.geometryName_&&this.sketchFeature_.setGeometryName(this.geometryName_),this.sketchFeature_.setGeometry(i),this.updateSketchFeatures_(),this.dispatchEvent(new $h(jh,this.sketchFeature_))},e.prototype.modifyDrawing_=function(t){var e,i,n,r=t.coordinate,o=this.sketchFeature_.getGeometry();(this.mode_===Dh.POINT?i=this.sketchCoords_:this.mode_===Dh.POLYGON?(i=(e=this.sketchCoords_[0])[e.length-1],this.atFinish_(t)&&(r=this.finishCoordinate_.slice())):i=(e=this.sketchCoords_)[e.length-1],i[0]=r[0],i[1]=r[1],this.geometryFunction_(this.sketchCoords_,o),this.sketchPoint_)&&this.sketchPoint_.getGeometry().setCoordinates(r);if(o.getType()==Fe.POLYGON&&this.mode_!==Dh.POLYGON){this.sketchLine_||(this.sketchLine_=new Zn);var s=o.getLinearRing(0);(n=this.sketchLine_.getGeometry())?(n.setFlatCoordinates(s.getLayout(),s.getFlatCoordinates()),n.changed()):(n=new Po(s.getFlatCoordinates(),s.getLayout()),this.sketchLine_.setGeometry(n))}else this.sketchLineCoords_&&(n=this.sketchLine_.getGeometry()).setCoordinates(this.sketchLineCoords_);this.updateSketchFeatures_()},e.prototype.addToDrawing_=function(t){var e,i,n=t.coordinate,r=this.sketchFeature_.getGeometry();this.mode_===Dh.LINE_STRING?(this.finishCoordinate_=n.slice(),(i=this.sketchCoords_).length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(n.slice()),this.geometryFunction_(i,r)):this.mode_===Dh.POLYGON&&((i=this.sketchCoords_[0]).length>=this.maxPoints_&&(this.freehand_?i.pop():e=!0),i.push(n.slice()),e&&(this.finishCoordinate_=i[0]),this.geometryFunction_(this.sketchCoords_,r)),this.updateSketchFeatures_(),e&&this.finishDrawing()},e.prototype.removeLastPoint=function(){if(this.sketchFeature_){var t,e=this.sketchFeature_.getGeometry();this.mode_===Dh.LINE_STRING?((t=this.sketchCoords_).splice(-2,1),this.geometryFunction_(t,e),t.length>=2&&(this.finishCoordinate_=t[t.length-2].slice())):this.mode_===Dh.POLYGON&&((t=this.sketchCoords_[0]).splice(-2,1),this.sketchLine_.getGeometry().setCoordinates(t),this.geometryFunction_(this.sketchCoords_,e)),0===t.length&&(this.finishCoordinate_=null),this.updateSketchFeatures_()}},e.prototype.finishDrawing=function(){var t=this.abortDrawing_();if(t){var e=this.sketchCoords_,i=t.getGeometry();this.mode_===Dh.LINE_STRING?(e.pop(),this.geometryFunction_(e,i)):this.mode_===Dh.POLYGON&&(e[0].pop(),this.geometryFunction_(e,i),e=i.getCoordinates()),this.type_===Fe.MULTI_POINT?t.setGeometry(new Lo([e])):this.type_===Fe.MULTI_LINE_STRING?t.setGeometry(new ko([e])):this.type_===Fe.MULTI_POLYGON&&t.setGeometry(new Ko([e])),this.dispatchEvent(new $h(Nh,t)),this.features_&&this.features_.push(t),this.source_&&this.source_.addFeature(t)}},e.prototype.abortDrawing_=function(){this.finishCoordinate_=null;var t=this.sketchFeature_;return t&&(this.sketchFeature_=null,this.sketchPoint_=null,this.sketchLine_=null,this.overlay_.getSource().clear(!0)),t},e.prototype.extend=function(t){var e=t.getGeometry();this.sketchFeature_=t,this.sketchCoords_=e.getCoordinates();var i=this.sketchCoords_[this.sketchCoords_.length-1];this.finishCoordinate_=i.slice(),this.sketchCoords_.push(i.slice()),this.updateSketchFeatures_(),this.dispatchEvent(new $h(jh,this.sketchFeature_))},e.prototype.updateSketchFeatures_=function(){var t=[];this.sketchFeature_&&t.push(this.sketchFeature_),this.sketchLine_&&t.push(this.sketchLine_),this.sketchPoint_&&t.push(this.sketchPoint_);var e=this.overlay_.getSource();e.clear(!0),e.addFeatures(t)},e.prototype.updateState_=function(){var t=this.getMap(),e=this.getActive();t&&e||this.abortDrawing_(),this.overlay_.setMap(e?t:null)},e}(Mc);var zh=1,Bh="modifystart",Yh="modifyend",Vh=function(t){function e(e,i,n){t.call(this,e),this.features=i,this.mapBrowserEvent=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e);function Wh(t,e){return t.index-e.index}function Hh(t,e){var i=e.geometry;if(i.getType()===Fe.CIRCLE){var n=i;if(e.index===zh){var r=Ka(n.getCenter(),t),o=Math.sqrt(r)-n.getRadius();return o*o}}return Ja(t,e.segment)}function Uh(t,e){var i=e.geometry;return i.getType()===Fe.CIRCLE&&e.index===zh?i.getClosestPoint(t):Wa(t,e.segment)}var Xh=function(t){function e(e){var i,n;if(t.call(this,e),this.condition_=e.condition?e.condition:Cc,this.defaultDeleteCondition_=function(t){return pc(t)&&xc(t)},this.deleteCondition_=e.deleteCondition?e.deleteCondition:this.defaultDeleteCondition_,this.insertVertexCondition_=e.insertVertexCondition?e.insertVertexCondition:mc,this.vertexFeature_=null,this.vertexSegments_=null,this.lastPixel_=[0,0],this.ignoreNextSingleClick_=!1,this.modified_=!1,this.rBush_=new Ah,this.pixelTolerance_=void 0!==e.pixelTolerance?e.pixelTolerance:10,this.snappedToVertex_=!1,this.changingFeature_=!1,this.dragSegments_=[],this.overlay_=new Ch({source:new Fh({useSpatialIndex:!1,wrapX:!!e.wrapX}),style:e.style?e.style:(i=xh(),function(t,e){return i[Fe.POINT]}),updateWhileAnimating:!0,updateWhileInteracting:!0}),this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,Circle:this.writeCircleGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_},this.source_=null,e.source?(this.source_=e.source,n=new ya(this.source_.getFeatures()),ue(this.source_,Ph.ADDFEATURE,this.handleSourceAdd_,this),ue(this.source_,Ph.REMOVEFEATURE,this.handleSourceRemove_,this)):n=e.features,!n)throw new Error("The modify interaction requires features or a source");this.features_=n,this.features_.forEach(this.addFeature_.bind(this)),ue(this.features_,va.ADD,this.handleFeatureAdd_,this),ue(this.features_,va.REMOVE,this.handleFeatureRemove_,this),this.lastPointerEvent_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature_=function(t){var e=t.getGeometry();e&&e.getType()in this.SEGMENT_WRITERS_&&this.SEGMENT_WRITERS_[e.getType()].call(this,t,e);var i=this.getMap();i&&i.isRendered()&&this.getActive()&&this.handlePointerAtPixel_(this.lastPixel_,i),ue(t,xe.CHANGE,this.handleFeatureChange_,this)},e.prototype.willModifyFeatures_=function(t){this.modified_||(this.modified_=!0,this.dispatchEvent(new Vh(Bh,this.features_,t)))},e.prototype.removeFeature_=function(t){this.removeFeatureSegmentData_(t),this.vertexFeature_&&0===this.features_.getLength()&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),he(t,xe.CHANGE,this.handleFeatureChange_,this)},e.prototype.removeFeatureSegmentData_=function(t){var e=this.rBush_,i=[];e.forEach(function(e){t===e.feature&&i.push(e)});for(var n=i.length-1;n>=0;--n)e.remove(i[n])},e.prototype.setActive=function(e){this.vertexFeature_&&!e&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),t.prototype.setActive.call(this,e)},e.prototype.setMap=function(e){this.overlay_.setMap(e),t.prototype.setMap.call(this,e)},e.prototype.getOverlay=function(){return this.overlay_},e.prototype.handleSourceAdd_=function(t){t.feature&&this.features_.push(t.feature)},e.prototype.handleSourceRemove_=function(t){t.feature&&this.features_.remove(t.feature)},e.prototype.handleFeatureAdd_=function(t){this.addFeature_(t.element)},e.prototype.handleFeatureChange_=function(t){if(!this.changingFeature_){var e=t.target;this.removeFeature_(e),this.addFeature_(e)}},e.prototype.handleFeatureRemove_=function(t){var e=t.element;this.removeFeature_(e)},e.prototype.writePointGeometry_=function(t,e){var i=e.getCoordinates(),n={feature:t,geometry:e,segment:[i,i]};this.rBush_.insert(e.getExtent(),n)},e.prototype.writeMultiPointGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n){var o=i[n],s={feature:t,geometry:e,depth:[n],index:n,segment:[o,o]};this.rBush_.insert(e.getExtent(),s)}},e.prototype.writeLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length-1;n<r;++n){var o=i.slice(n,n+2),s={feature:t,geometry:e,index:n,segment:o};this.rBush_.insert(it(o),s)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n)for(var o=i[n],s=0,a=o.length-1;s<a;++s){var l=o.slice(s,s+2),u={feature:t,geometry:e,depth:[n],index:s,segment:l};this.rBush_.insert(it(l),u)}},e.prototype.writePolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n)for(var o=i[n],s=0,a=o.length-1;s<a;++s){var l=o.slice(s,s+2),u={feature:t,geometry:e,depth:[n],index:s,segment:l};this.rBush_.insert(it(l),u)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n)for(var o=i[n],s=0,a=o.length;s<a;++s)for(var l=o[s],u=0,c=l.length-1;u<c;++u){var h=l.slice(u,u+2),d={feature:t,geometry:e,depth:[s,n],index:u,segment:h};this.rBush_.insert(it(h),d)}},e.prototype.writeCircleGeometry_=function(t,e){var i=e.getCenter(),n={feature:t,geometry:e,index:0,segment:[i,i]},r={feature:t,geometry:e,index:zh,segment:[i,i]},o=[n,r];n.featureSegments=r.featureSegments=o,this.rBush_.insert(ft(i),n),this.rBush_.insert(e.getExtent(),r)},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var i=e.getGeometriesArray(),n=0;n<i.length;++n)this.SEGMENT_WRITERS_[i[n].getType()].call(this,t,i[n])},e.prototype.createOrUpdateVertexFeature_=function(t){var e=this.vertexFeature_;e?e.getGeometry().setCoordinates(t):(e=new Zn(new Io(t)),this.vertexFeature_=e,this.overlay_.getSource().addFeature(e));return e},e.prototype.handleEvent=function(e){return!e.pointerEvent||(this.lastPointerEvent_=e,e.map.getView().getInteracting()||e.type!=kl.POINTERMOVE||this.handlingDownUpSequence||this.handlePointerMove_(e),this.vertexFeature_&&this.deleteCondition_(e)&&(i=!(e.type!=kl.SINGLECLICK||!this.ignoreNextSingleClick_)||this.removePoint()),e.type==kl.SINGLECLICK&&(this.ignoreNextSingleClick_=!1),t.prototype.handleEvent.call(this,e)&&!i);var i},e.prototype.handleDragEvent=function(t){this.ignoreNextSingleClick_=!1,this.willModifyFeatures_(t);for(var e=t.coordinate,i=0,n=this.dragSegments_.length;i<n;++i){for(var r=this.dragSegments_[i],o=r[0],s=o.depth,a=o.geometry,l=void 0,u=o.segment,c=r[1];e.length<a.getStride();)e.push(u[c][e.length]);switch(a.getType()){case Fe.POINT:l=e,u[0]=u[1]=e;break;case Fe.MULTI_POINT:(l=a.getCoordinates())[o.index]=e,u[0]=u[1]=e;break;case Fe.LINE_STRING:(l=a.getCoordinates())[o.index+c]=e,u[c]=e;break;case Fe.MULTI_LINE_STRING:case Fe.POLYGON:(l=a.getCoordinates())[s[0]][o.index+c]=e,u[c]=e;break;case Fe.MULTI_POLYGON:(l=a.getCoordinates())[s[1]][s[0]][o.index+c]=e,u[c]=e;break;case Fe.CIRCLE:u[0]=u[1]=e,0===o.index?(this.changingFeature_=!0,a.setCenter(e),this.changingFeature_=!1):(this.changingFeature_=!0,a.setRadius(Za(a.getCenter(),e)),this.changingFeature_=!1)}l&&this.setGeometryCoordinates_(a,l)}this.createOrUpdateVertexFeature_(e)},e.prototype.handleDownEvent=function(t){if(!this.condition_(t))return!1;this.handlePointerAtPixel_(t.pixel,t.map);var e=t.map.getCoordinateFromPixel(t.pixel);this.dragSegments_.length=0,this.modified_=!1;var i=this.vertexFeature_;if(i){var n=[],r=i.getGeometry().getCoordinates(),o=it([r]),s=this.rBush_.getInExtent(o),a={};s.sort(Wh);for(var l=0,u=s.length;l<u;++l){var c=s[l],h=c.segment,d=K(c.feature),f=c.depth;if(f&&(d+="-"+f.join("-")),a[d]||(a[d]=new Array(2)),c.geometry.getType()===Fe.CIRCLE&&c.index===zh)Ua(Uh(e,c),r)&&!a[d][0]&&(this.dragSegments_.push([c,0]),a[d][0]=c);else if(Ua(h[0],r)&&!a[d][0])this.dragSegments_.push([c,0]),a[d][0]=c;else if(Ua(h[1],r)&&!a[d][1]){if((c.geometry.getType()===Fe.LINE_STRING||c.geometry.getType()===Fe.MULTI_LINE_STRING)&&a[d][0]&&0===a[d][0].index)continue;this.dragSegments_.push([c,1]),a[d][1]=c}else this.insertVertexCondition_(t)&&K(h)in this.vertexSegments_&&!a[d][0]&&!a[d][1]&&n.push([c,r])}n.length&&this.willModifyFeatures_(t);for(var p=n.length-1;p>=0;--p)this.insertVertex_.apply(this,n[p])}return!!this.vertexFeature_},e.prototype.handleUpEvent=function(t){for(var e=this.dragSegments_.length-1;e>=0;--e){var i=this.dragSegments_[e][0],n=i.geometry;if(n.getType()===Fe.CIRCLE){var r=n.getCenter(),o=i.featureSegments[0],s=i.featureSegments[1];o.segment[0]=o.segment[1]=r,s.segment[0]=s.segment[1]=r,this.rBush_.update(ft(r),o),this.rBush_.update(n.getExtent(),s)}else this.rBush_.update(it(i.segment),i)}return this.modified_&&(this.dispatchEvent(new Vh(Yh,this.features_,t)),this.modified_=!1),!1},e.prototype.handlePointerMove_=function(t){this.lastPixel_=t.pixel,this.handlePointerAtPixel_(t.pixel,t.map)},e.prototype.handlePointerAtPixel_=function(t,e){var i=e.getCoordinateFromPixel(t),n=nt(ft(i),e.getView().getResolution()*this.pixelTolerance_),r=this.rBush_.getInExtent(n);if(r.length>0){r.sort(function(t,e){return Hh(i,t)-Hh(i,e)});var o=r[0],s=o.segment,a=Uh(i,o),l=e.getPixelFromCoordinate(a),u=Za(t,l);if(u<=this.pixelTolerance_){var c={};if(o.geometry.getType()===Fe.CIRCLE&&o.index===zh)this.snappedToVertex_=!0,this.createOrUpdateVertexFeature_(a);else{var h=e.getPixelFromCoordinate(s[0]),d=e.getPixelFromCoordinate(s[1]),f=Ka(l,h),p=Ka(l,d);u=Math.sqrt(Math.min(f,p)),this.snappedToVertex_=u<=this.pixelTolerance_,this.snappedToVertex_&&(a=f>p?s[1]:s[0]),this.createOrUpdateVertexFeature_(a);for(var v=1,g=r.length;v<g;++v){var m=r[v].segment;if(!(Ua(s[0],m[0])&&Ua(s[1],m[1])||Ua(s[0],m[1])&&Ua(s[1],m[0])))break;c[K(m)]=!0}}return c[K(s)]=!0,void(this.vertexSegments_=c)}}this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null)},e.prototype.insertVertex_=function(t,e){for(var i,n=t.segment,r=t.feature,o=t.geometry,s=t.depth,a=t.index;e.length<o.getStride();)e.push(0);switch(o.getType()){case Fe.MULTI_LINE_STRING:case Fe.POLYGON:(i=o.getCoordinates())[s[0]].splice(a+1,0,e);break;case Fe.MULTI_POLYGON:(i=o.getCoordinates())[s[1]][s[0]].splice(a+1,0,e);break;case Fe.LINE_STRING:(i=o.getCoordinates()).splice(a+1,0,e);break;default:return}this.setGeometryCoordinates_(o,i);var l=this.rBush_;l.remove(t),this.updateSegmentIndices_(o,a,s,1);var u={segment:[n[0],e],feature:r,geometry:o,depth:s,index:a};l.insert(it(u.segment),u),this.dragSegments_.push([u,1]);var c={segment:[e,n[1]],feature:r,geometry:o,depth:s,index:a+1};l.insert(it(c.segment),c),this.dragSegments_.push([c,0]),this.ignoreNextSingleClick_=!0},e.prototype.removePoint=function(){if(this.lastPointerEvent_&&this.lastPointerEvent_.type!=kl.POINTERDRAG){var t=this.lastPointerEvent_;return this.willModifyFeatures_(t),this.removeVertex_(),this.dispatchEvent(new Vh(Yh,this.features_,t)),this.modified_=!1,!0}return!1},e.prototype.removeVertex_=function(){var t,e,i,n,r,o,s,a,l,u,c,h=this.dragSegments_,d={},f=!1;for(r=h.length-1;r>=0;--r)c=K((u=(i=h[r])[0]).feature),u.depth&&(c+="-"+u.depth.join("-")),c in d||(d[c]={}),0===i[1]?(d[c].right=u,d[c].index=u.index):1==i[1]&&(d[c].left=u,d[c].index=u.index+1);for(c in d){switch(l=d[c].right,s=d[c].left,a=(o=d[c].index)-1,u=void 0!==s?s:l,a<0&&(a=0),t=e=(n=u.geometry).getCoordinates(),f=!1,n.getType()){case Fe.MULTI_LINE_STRING:e[u.depth[0]].length>2&&(e[u.depth[0]].splice(o,1),f=!0);break;case Fe.LINE_STRING:e.length>2&&(e.splice(o,1),f=!0);break;case Fe.MULTI_POLYGON:t=t[u.depth[1]];case Fe.POLYGON:(t=t[u.depth[0]]).length>4&&(o==t.length-1&&(o=0),t.splice(o,1),f=!0,0===o&&(t.pop(),t.push(t[0]),a=t.length-1))}if(f){this.setGeometryCoordinates_(n,e);var p=[];if(void 0!==s&&(this.rBush_.remove(s),p.push(s.segment[0])),void 0!==l&&(this.rBush_.remove(l),p.push(l.segment[1])),void 0!==s&&void 0!==l){var v={depth:u.depth,feature:u.feature,geometry:u.geometry,index:a,segment:p};this.rBush_.insert(it(v.segment),v)}this.updateSegmentIndices_(n,o,u.depth,-1),this.vertexFeature_&&(this.overlay_.getSource().removeFeature(this.vertexFeature_),this.vertexFeature_=null),h.length=0}}return f},e.prototype.setGeometryCoordinates_=function(t,e){this.changingFeature_=!0,t.setCoordinates(e),this.changingFeature_=!1},e.prototype.updateSegmentIndices_=function(t,e,i,n){this.rBush_.forEachInExtent(t.getExtent(),function(r){r.geometry===t&&(void 0===i||void 0===r.depth||Zi(r.depth,i))&&r.index>e&&(r.index+=n)})},e}(Mc),qh={SELECT:"select"},Kh=function(t){function e(e,i,n,r){t.call(this,e),this.selected=i,this.deselected=n,this.mapBrowserEvent=r}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e);function Zh(t){if(!this.condition_(t))return!0;var e=this.addCondition_(t),i=this.removeCondition_(t),n=this.toggleCondition_(t),r=!e&&!i&&!n,o=t.map,s=this.getFeatures(),a=[],l=[];if(r){Wt(this.featureLayerAssociation_),o.forEachFeatureAtPixel(t.pixel,function(t,e){if(this.filter_(t,e))return l.push(t),this.addFeatureLayerAssociation_(t,e),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var u=s.getLength()-1;u>=0;--u){var c=s.item(u),h=l.indexOf(c);h>-1?l.splice(h,1):(s.remove(c),a.push(c))}0!==l.length&&s.extend(l)}else{o.forEachFeatureAtPixel(t.pixel,function(t,r){if(this.filter_(t,r))return!e&&!n||Ui(s.getArray(),t)?(i||n)&&Ui(s.getArray(),t)&&(a.push(t),this.removeFeatureLayerAssociation_(t)):(l.push(t),this.addFeatureLayerAssociation_(t,r)),!this.multi_}.bind(this),{layerFilter:this.layerFilter_,hitTolerance:this.hitTolerance_});for(var d=a.length-1;d>=0;--d)s.remove(a[d]);s.extend(l)}return(l.length>0||a.length>0)&&this.dispatchEvent(new Kh(qh.SELECT,l,a,t)),bc(t)}var Jh=function(t){function e(e){t.call(this,{handleEvent:Zh});var i=e||{};this.condition_=i.condition?i.condition:xc,this.addCondition_=i.addCondition?i.addCondition:_c,this.removeCondition_=i.removeCondition?i.removeCondition:_c,this.toggleCondition_=i.toggleCondition?i.toggleCondition:Sc,this.multi_=!!i.multi&&i.multi,this.filter_=i.filter?i.filter:pe,this.hitTolerance_=i.hitTolerance?i.hitTolerance:0;var n,r,o=new Ch({source:new Fh({useSpatialIndex:!1,features:i.features,wrapX:i.wrapX}),style:i.style?i.style:(n=xh(),Ki(n[Fe.POLYGON],n[Fe.LINE_STRING]),Ki(n[Fe.GEOMETRY_COLLECTION],n[Fe.LINE_STRING]),function(t,e){return t.getGeometry()?n[t.getGeometry().getType()]:null}),updateWhileAnimating:!0,updateWhileInteracting:!0});if(this.featureOverlay_=o,i.layers)if("function"==typeof i.layers)r=i.layers;else{var s=i.layers;r=function(t){return Ui(s,t)}}else r=pe;this.layerFilter_=r,this.featureLayerAssociation_={};var a=this.getFeatures();ue(a,va.ADD,this.addFeature_,this),ue(a,va.REMOVE,this.removeFeature_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeatureLayerAssociation_=function(t,e){this.featureLayerAssociation_[K(t)]=e},e.prototype.getFeatures=function(){return this.featureOverlay_.getSource().getFeaturesCollection()},e.prototype.getHitTolerance=function(){return this.hitTolerance_},e.prototype.getLayer=function(t){return this.featureLayerAssociation_[K(t)]},e.prototype.getOverlay=function(){return this.featureOverlay_},e.prototype.setHitTolerance=function(t){this.hitTolerance_=t},e.prototype.setMap=function(e){var i=this.getMap(),n=this.getFeatures();i&&n.forEach(i.unskipFeature.bind(i)),t.prototype.setMap.call(this,e),this.featureOverlay_.setMap(e),e&&n.forEach(e.skipFeature.bind(e))},e.prototype.addFeature_=function(t){var e=this.getMap();e&&e.skipFeature(t.element)},e.prototype.removeFeature_=function(t){var e=this.getMap();e&&e.unskipFeature(t.element)},e.prototype.removeFeatureLayerAssociation_=function(t){delete this.featureLayerAssociation_[K(t)]},e}(hc);function Qh(t){return t.feature?t.feature:t.element?t.element:void 0}var td=function(t){function e(e){var i=e||{},n=i;n.handleDownEvent||(n.handleDownEvent=pe),n.stopDown||(n.stopDown=ve),t.call(this,n),this.source_=i.source?i.source:null,this.vertex_=void 0===i.vertex||i.vertex,this.edge_=void 0===i.edge||i.edge,this.features_=i.features?i.features:null,this.featuresListenerKeys_=[],this.featureChangeListenerKeys_={},this.indexedFeaturesExtents_={},this.pendingFeatures_={},this.pixelCoordinate_=null,this.pixelTolerance_=void 0!==i.pixelTolerance?i.pixelTolerance:10,this.sortByDistance_=function(t,e){var i=Ja(this.pixelCoordinate_,t.segment),n=Ja(this.pixelCoordinate_,e.segment);return i-n}.bind(this),this.rBush_=new Ah,this.SEGMENT_WRITERS_={Point:this.writePointGeometry_,LineString:this.writeLineStringGeometry_,LinearRing:this.writeLineStringGeometry_,Polygon:this.writePolygonGeometry_,MultiPoint:this.writeMultiPointGeometry_,MultiLineString:this.writeMultiLineStringGeometry_,MultiPolygon:this.writeMultiPolygonGeometry_,GeometryCollection:this.writeGeometryCollectionGeometry_,Circle:this.writeCircleGeometry_}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addFeature=function(t,e){var i=void 0===e||e,n=K(t),r=t.getGeometry();if(r){var o=this.SEGMENT_WRITERS_[r.getType()];o&&(this.indexedFeaturesExtents_[n]=r.getExtent([1/0,1/0,-1/0,-1/0]),o.call(this,t,r))}i&&(this.featureChangeListenerKeys_[n]=ue(t,xe.CHANGE,this.handleFeatureChange_,this))},e.prototype.forEachFeatureAdd_=function(t){this.addFeature(t)},e.prototype.forEachFeatureRemove_=function(t){this.removeFeature(t)},e.prototype.getFeatures_=function(){var t;return this.features_?t=this.features_:this.source_&&(t=this.source_.getFeatures()),t},e.prototype.handleEvent=function(e){var i=this.snapTo(e.pixel,e.coordinate,e.map);return i.snapped&&(e.coordinate=i.vertex.slice(0,2),e.pixel=i.vertexPixel),t.prototype.handleEvent.call(this,e)},e.prototype.handleFeatureAdd_=function(t){var e=Qh(t);this.addFeature(e)},e.prototype.handleFeatureRemove_=function(t){var e=Qh(t);this.removeFeature(e)},e.prototype.handleFeatureChange_=function(t){var e=t.target;if(this.handlingDownUpSequence){var i=K(e);i in this.pendingFeatures_||(this.pendingFeatures_[i]=e)}else this.updateFeature_(e)},e.prototype.handleUpEvent=function(t){var e=Ht(this.pendingFeatures_);return e.length&&(e.forEach(this.updateFeature_.bind(this)),this.pendingFeatures_={}),!1},e.prototype.removeFeature=function(t,e){var i=void 0===e||e,n=K(t),r=this.indexedFeaturesExtents_[n];if(r){var o=this.rBush_,s=[];o.forEachInExtent(r,function(e){t===e.feature&&s.push(e)});for(var a=s.length-1;a>=0;--a)o.remove(s[a])}i&&(de(this.featureChangeListenerKeys_[n]),delete this.featureChangeListenerKeys_[n])},e.prototype.setMap=function(e){var i=this.getMap(),n=this.featuresListenerKeys_,r=this.getFeatures_();i&&(n.forEach(de),n.length=0,r.forEach(this.forEachFeatureRemove_.bind(this))),t.prototype.setMap.call(this,e),e&&(this.features_?n.push(ue(this.features_,va.ADD,this.handleFeatureAdd_,this),ue(this.features_,va.REMOVE,this.handleFeatureRemove_,this)):this.source_&&n.push(ue(this.source_,Ph.ADDFEATURE,this.handleFeatureAdd_,this),ue(this.source_,Ph.REMOVEFEATURE,this.handleFeatureRemove_,this)),r.forEach(this.forEachFeatureAdd_.bind(this)))},e.prototype.snapTo=function(t,e,i){var n=it([i.getCoordinateFromPixel([t[0]-this.pixelTolerance_,t[1]+this.pixelTolerance_]),i.getCoordinateFromPixel([t[0]+this.pixelTolerance_,t[1]-this.pixelTolerance_])]),r=this.rBush_.getInExtent(n);this.vertex_&&!this.edge_&&(r=r.filter(function(t){return t.feature.getGeometry().getType()!==Fe.CIRCLE}));var o,s,a,l,u=!1,c=null,h=null;if(r.length>0){this.pixelCoordinate_=e,r.sort(this.sortByDistance_);var d=r[0].segment,f=r[0].feature.getGeometry().getType()===Fe.CIRCLE;this.vertex_&&!this.edge_?(o=i.getPixelFromCoordinate(d[0]),s=i.getPixelFromCoordinate(d[1]),a=Ka(t,o),l=Ka(t,s),Math.sqrt(Math.min(a,l))<=this.pixelTolerance_&&(u=!0,c=a>l?d[1]:d[0],h=i.getPixelFromCoordinate(c))):this.edge_&&(c=f?function(t,e){var i=e.getRadius(),n=e.getCenter(),r=n[0],o=n[1],s=t[0]-r,a=t[1]-o;0===s&&0===a&&(s=1);var l=Math.sqrt(s*s+a*a);return[r+i*s/l,o+i*a/l]}(e,r[0].feature.getGeometry()):Wa(e,d),Za(t,h=i.getPixelFromCoordinate(c))<=this.pixelTolerance_&&(u=!0,this.vertex_&&!f&&(o=i.getPixelFromCoordinate(d[0]),s=i.getPixelFromCoordinate(d[1]),a=Ka(h,o),l=Ka(h,s),Math.sqrt(Math.min(a,l))<=this.pixelTolerance_&&(c=a>l?d[1]:d[0],h=i.getPixelFromCoordinate(c))))),u&&(h=[Math.round(h[0]),Math.round(h[1])])}return{snapped:u,vertex:c,vertexPixel:h}},e.prototype.updateFeature_=function(t){this.removeFeature(t,!1),this.addFeature(t,!1)},e.prototype.writeCircleGeometry_=function(t,e){for(var i=Uo(e).getCoordinates()[0],n=0,r=i.length-1;n<r;++n){var o=i.slice(n,n+2),s={feature:t,segment:o};this.rBush_.insert(it(o),s)}},e.prototype.writeGeometryCollectionGeometry_=function(t,e){for(var i=e.getGeometriesArray(),n=0;n<i.length;++n){var r=this.SEGMENT_WRITERS_[i[n].getType()];r&&r.call(this,t,i[n])}},e.prototype.writeLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length-1;n<r;++n){var o=i.slice(n,n+2),s={feature:t,segment:o};this.rBush_.insert(it(o),s)}},e.prototype.writeMultiLineStringGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n)for(var o=i[n],s=0,a=o.length-1;s<a;++s){var l=o.slice(s,s+2),u={feature:t,segment:l};this.rBush_.insert(it(l),u)}},e.prototype.writeMultiPointGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n){var o=i[n],s={feature:t,segment:[o,o]};this.rBush_.insert(e.getExtent(),s)}},e.prototype.writeMultiPolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n)for(var o=i[n],s=0,a=o.length;s<a;++s)for(var l=o[s],u=0,c=l.length-1;u<c;++u){var h=l.slice(u,u+2),d={feature:t,segment:h};this.rBush_.insert(it(h),d)}},e.prototype.writePointGeometry_=function(t,e){var i=e.getCoordinates(),n={feature:t,segment:[i,i]};this.rBush_.insert(e.getExtent(),n)},e.prototype.writePolygonGeometry_=function(t,e){for(var i=e.getCoordinates(),n=0,r=i.length;n<r;++n)for(var o=i[n],s=0,a=o.length-1;s<a;++s){var l=o.slice(s,s+2),u={feature:t,segment:l};this.rBush_.insert(it(l),u)}},e}(Mc);function ed(t){var e=t||{},i=new ya,n=new Ol(-.005,.05,100);return(void 0===e.altShiftDragRotate||e.altShiftDragRotate)&&i.push(new kc),(void 0===e.doubleClickZoom||e.doubleClickZoom)&&i.push(new fc({delta:e.zoomDelta,duration:e.zoomDuration})),(void 0===e.dragPan||e.dragPan)&&i.push(new Pc({condition:e.onFocusOnly?gc:void 0,kinetic:n})),(void 0===e.pinchRotate||e.pinchRotate)&&i.push(new Hc),(void 0===e.pinchZoom||e.pinchZoom)&&i.push(new Uc({constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.keyboard||e.keyboard)&&(i.push(new Gc),i.push(new Bc({delta:e.zoomDelta,duration:e.zoomDuration}))),(void 0===e.mouseWheelZoom||e.mouseWheelZoom)&&i.push(new Wc({condition:e.onFocusOnly?gc:void 0,constrainResolution:e.constrainResolution,duration:e.zoomDuration})),(void 0===e.shiftDragZoom||e.shiftDragZoom)&&i.push(new jc({duration:e.zoomDuration})),i}var id=function(t){function e(e,i,n,r,o){t.call(this,e),this.vectorContext=i,this.frameState=n,this.context=r,this.glContext=o}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e),nd=function(){};nd.prototype.drawCustom=function(t,e,i){},nd.prototype.drawGeometry=function(t){},nd.prototype.setStyle=function(t){},nd.prototype.drawCircle=function(t,e){},nd.prototype.drawFeature=function(t,e){},nd.prototype.drawGeometryCollection=function(t,e){},nd.prototype.drawLineString=function(t,e){},nd.prototype.drawMultiLineString=function(t,e){},nd.prototype.drawMultiPoint=function(t,e){},nd.prototype.drawMultiPolygon=function(t,e){},nd.prototype.drawPoint=function(t,e){},nd.prototype.drawPolygon=function(t,e){},nd.prototype.drawText=function(t,e){},nd.prototype.setFillStrokeStyle=function(t,e){},nd.prototype.setImageStyle=function(t,e){},nd.prototype.setTextStyle=function(t,e){};var rd=nd,od=function(t){function e(e,i,n,r,o){t.call(this),this.context_=e,this.pixelRatio_=i,this.extent_=n,this.transform_=r,this.viewRotation_=o,this.contextFillState_=null,this.contextStrokeState_=null,this.contextTextState_=null,this.fillState_=null,this.strokeState_=null,this.image_=null,this.imageAnchorX_=0,this.imageAnchorY_=0,this.imageHeight_=0,this.imageOpacity_=0,this.imageOriginX_=0,this.imageOriginY_=0,this.imageRotateWithView_=!1,this.imageRotation_=0,this.imageScale_=0,this.imageWidth_=0,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=!1,this.textRotation_=0,this.textScale_=0,this.textFillState_=null,this.textStrokeState_=null,this.textState_=null,this.pixelCoordinates_=[],this.tmpLocalTransform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawImages_=function(t,e,i,n){if(this.image_){var r=jr(t,e,i,2,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.tmpLocalTransform_,a=o.globalAlpha;1!=this.imageOpacity_&&(o.globalAlpha=a*this.imageOpacity_);var l=this.imageRotation_;this.imageRotateWithView_&&(l+=this.viewRotation_);for(var u=0,c=r.length;u<c;u+=2){var h=r[u]-this.imageAnchorX_,d=r[u+1]-this.imageAnchorY_;if(0!==l||1!=this.imageScale_){var f=h+this.imageAnchorX_,p=d+this.imageAnchorY_;Xr(s,f,p,this.imageScale_,this.imageScale_,l,-f,-p),o.setTransform.apply(o,s)}o.drawImage(this.image_,this.imageOriginX_,this.imageOriginY_,this.imageWidth_,this.imageHeight_,h,d,this.imageWidth_,this.imageHeight_)}0===l&&1==this.imageScale_||o.setTransform(1,0,0,1,0,0),1!=this.imageOpacity_&&(o.globalAlpha=a)}},e.prototype.drawText_=function(t,e,i,n){if(this.textState_&&""!==this.text_){this.textFillState_&&this.setContextFillState_(this.textFillState_),this.textStrokeState_&&this.setContextStrokeState_(this.textStrokeState_),this.setContextTextState_(this.textState_);var r=jr(t,e,i,n,this.transform_,this.pixelCoordinates_),o=this.context_,s=this.textRotation_;for(this.textRotateWithView_&&(s+=this.viewRotation_);e<i;e+=n){var a=r[e]+this.textOffsetX_,l=r[e+1]+this.textOffsetY_;if(0!==s||1!=this.textScale_){var u=Xr(this.tmpLocalTransform_,a,l,this.textScale_,this.textScale_,s,-a,-l);o.setTransform.apply(o,u)}this.textStrokeState_&&o.strokeText(this.text_,a,l),this.textFillState_&&o.fillText(this.text_,a,l)}0===s&&1==this.textScale_||o.setTransform(1,0,0,1,0,0)}},e.prototype.moveToLineTo_=function(t,e,i,n,r){var o=this.context_,s=jr(t,e,i,n,this.transform_,this.pixelCoordinates_);o.moveTo(s[0],s[1]);var a=s.length;r&&(a-=2);for(var l=2;l<a;l+=2)o.lineTo(s[l],s[l+1]);return r&&o.closePath(),i},e.prototype.drawRings_=function(t,e,i,n){for(var r=0,o=i.length;r<o;++r)e=this.moveToLineTo_(t,e,i[r],n,!0);return e},e.prototype.drawCircle=function(t){if(Lt(this.extent_,t.getExtent())){if(this.fillState_||this.strokeState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=function(t,e,i){var n=t.getFlatCoordinates();if(n){var r=t.getStride();return jr(n,0,n.length,r,e,i)}return null}(t,this.transform_,this.pixelCoordinates_),i=e[2]-e[0],n=e[3]-e[1],r=Math.sqrt(i*i+n*n),o=this.context_;o.beginPath(),o.arc(e[0],e[1],r,0,2*Math.PI),this.fillState_&&o.fill(),this.strokeState_&&o.stroke()}""!==this.text_&&this.drawText_(t.getCenter(),0,2,2)}},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.drawGeometry=function(t){switch(t.getType()){case Fe.POINT:this.drawPoint(t);break;case Fe.LINE_STRING:this.drawLineString(t);break;case Fe.POLYGON:this.drawPolygon(t);break;case Fe.MULTI_POINT:this.drawMultiPoint(t);break;case Fe.MULTI_LINE_STRING:this.drawMultiLineString(t);break;case Fe.MULTI_POLYGON:this.drawMultiPolygon(t);break;case Fe.GEOMETRY_COLLECTION:this.drawGeometryCollection(t);break;case Fe.CIRCLE:this.drawCircle(t)}},e.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&Lt(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},e.prototype.drawGeometryCollection=function(t){for(var e=t.getGeometriesArray(),i=0,n=e.length;i<n;++i)this.drawGeometry(e[i])},e.prototype.drawPoint=function(t){var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawMultiPoint=function(t){var e=t.getFlatCoordinates(),i=t.getStride();this.image_&&this.drawImages_(e,0,e.length,i),""!==this.text_&&this.drawText_(e,0,e.length,i)},e.prototype.drawLineString=function(t){if(Lt(this.extent_,t.getExtent())){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getFlatCoordinates();e.beginPath(),this.moveToLineTo_(i,0,i.length,t.getStride(),!1),e.stroke()}if(""!==this.text_){var n=t.getFlatMidpoint();this.drawText_(n,0,2,2)}}},e.prototype.drawMultiLineString=function(t){var e=t.getExtent();if(Lt(this.extent_,e)){if(this.strokeState_){this.setContextStrokeState_(this.strokeState_);var i=this.context_,n=t.getFlatCoordinates(),r=0,o=t.getEnds(),s=t.getStride();i.beginPath();for(var a=0,l=o.length;a<l;++a)r=this.moveToLineTo_(n,r,o[a],s,!1);i.stroke()}if(""!==this.text_){var u=t.getFlatMidpoints();this.drawText_(u,0,u.length,2)}}},e.prototype.drawPolygon=function(t){if(Lt(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_;e.beginPath(),this.drawRings_(t.getOrientedFlatCoordinates(),0,t.getEnds(),t.getStride()),this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var i=t.getFlatInteriorPoint();this.drawText_(i,0,2,2)}}},e.prototype.drawMultiPolygon=function(t){if(Lt(this.extent_,t.getExtent())){if(this.strokeState_||this.fillState_){this.fillState_&&this.setContextFillState_(this.fillState_),this.strokeState_&&this.setContextStrokeState_(this.strokeState_);var e=this.context_,i=t.getOrientedFlatCoordinates(),n=0,r=t.getEndss(),o=t.getStride();e.beginPath();for(var s=0,a=r.length;s<a;++s){var l=r[s];n=this.drawRings_(i,n,l,o)}this.fillState_&&e.fill(),this.strokeState_&&e.stroke()}if(""!==this.text_){var u=t.getFlatInteriorPoints();this.drawText_(u,0,u.length,2)}}},e.prototype.setContextFillState_=function(t){var e=this.context_,i=this.contextFillState_;i?i.fillStyle!=t.fillStyle&&(i.fillStyle=e.fillStyle=t.fillStyle):(e.fillStyle=t.fillStyle,this.contextFillState_={fillStyle:t.fillStyle})},e.prototype.setContextStrokeState_=function(t){var e=this.context_,i=this.contextStrokeState_;i?(i.lineCap!=t.lineCap&&(i.lineCap=e.lineCap=t.lineCap),Ra&&(Zi(i.lineDash,t.lineDash)||e.setLineDash(i.lineDash=t.lineDash),i.lineDashOffset!=t.lineDashOffset&&(i.lineDashOffset=e.lineDashOffset=t.lineDashOffset)),i.lineJoin!=t.lineJoin&&(i.lineJoin=e.lineJoin=t.lineJoin),i.lineWidth!=t.lineWidth&&(i.lineWidth=e.lineWidth=t.lineWidth),i.miterLimit!=t.miterLimit&&(i.miterLimit=e.miterLimit=t.miterLimit),i.strokeStyle!=t.strokeStyle&&(i.strokeStyle=e.strokeStyle=t.strokeStyle)):(e.lineCap=t.lineCap,Ra&&(e.setLineDash(t.lineDash),e.lineDashOffset=t.lineDashOffset),e.lineJoin=t.lineJoin,e.lineWidth=t.lineWidth,e.miterLimit=t.miterLimit,e.strokeStyle=t.strokeStyle,this.contextStrokeState_={lineCap:t.lineCap,lineDash:t.lineDash,lineDashOffset:t.lineDashOffset,lineJoin:t.lineJoin,lineWidth:t.lineWidth,miterLimit:t.miterLimit,strokeStyle:t.strokeStyle})},e.prototype.setContextTextState_=function(t){var e=this.context_,i=this.contextTextState_,n=t.textAlign?t.textAlign:"center";i?(i.font!=t.font&&(i.font=e.font=t.font),i.textAlign!=n&&(i.textAlign=e.textAlign=n),i.textBaseline!=t.textBaseline&&(i.textBaseline=e.textBaseline=t.textBaseline)):(e.font=t.font,e.textAlign=n,e.textBaseline=t.textBaseline,this.contextTextState_={font:t.font,textAlign:n,textBaseline:t.textBaseline})},e.prototype.setFillStrokeStyle=function(t,e){if(t){var i=t.getColor();this.fillState_={fillStyle:Kc(i||Zc)}}else this.fillState_=null;if(e){var n=e.getColor(),r=e.getLineCap(),o=e.getLineDash(),s=e.getLineDashOffset(),a=e.getLineJoin(),l=e.getWidth(),u=e.getMiterLimit();this.strokeState_={lineCap:void 0!==r?r:"round",lineDash:o||Jc,lineDashOffset:s||0,lineJoin:void 0!==a?a:"round",lineWidth:this.pixelRatio_*(void 0!==l?l:1),miterLimit:void 0!==u?u:10,strokeStyle:Kc(n||Qc)}}else this.strokeState_=null},e.prototype.setImageStyle=function(t){if(t){var e=t.getAnchor(),i=t.getImage(1),n=t.getOrigin(),r=t.getSize();this.imageAnchorX_=e[0],this.imageAnchorY_=e[1],this.imageHeight_=r[1],this.image_=i,this.imageOpacity_=t.getOpacity(),this.imageOriginX_=n[0],this.imageOriginY_=n[1],this.imageRotateWithView_=t.getRotateWithView(),this.imageRotation_=t.getRotation(),this.imageScale_=t.getScale()*this.pixelRatio_,this.imageWidth_=r[0]}else this.image_=null},e.prototype.setTextStyle=function(t){if(t){var e=t.getFill();if(e){var i=e.getColor();this.textFillState_={fillStyle:Kc(i||Zc)}}else this.textFillState_=null;var n=t.getStroke();if(n){var r=n.getColor(),o=n.getLineCap(),s=n.getLineDash(),a=n.getLineDashOffset(),l=n.getLineJoin(),u=n.getWidth(),c=n.getMiterLimit();this.textStrokeState_={lineCap:void 0!==o?o:"round",lineDash:s||Jc,lineDashOffset:a||0,lineJoin:void 0!==l?l:"round",lineWidth:void 0!==u?u:1,miterLimit:void 0!==c?c:10,strokeStyle:Kc(r||Qc)}}else this.textStrokeState_=null;var h=t.getFont(),d=t.getOffsetX(),f=t.getOffsetY(),p=t.getRotateWithView(),v=t.getRotation(),g=t.getScale(),m=t.getText(),y=t.getTextAlign(),_=t.getTextBaseline();this.textState_={font:void 0!==h?h:"10px sans-serif",textAlign:void 0!==y?y:"center",textBaseline:void 0!==_?_:"middle"},this.text_=void 0!==m?m:"",this.textOffsetX_=void 0!==d?this.pixelRatio_*d:0,this.textOffsetY_=void 0!==f?this.pixelRatio_*f:0,this.textRotateWithView_=void 0!==p&&p,this.textRotation_=void 0!==v?v:0,this.textScale_=this.pixelRatio_*(void 0!==g?g:1)}else this.text_=""},e}(rd),sd=function(){this.cache_={},this.cacheSize_=0,this.maxCacheSize_=32};function ad(t,e,i){return e+":"+t+":"+(i?nl(i):"null")}sd.prototype.clear=function(){this.cache_={},this.cacheSize_=0},sd.prototype.expire=function(){if(this.cacheSize_>this.maxCacheSize_){var t=0;for(var e in this.cache_){var i=this.cache_[e];0!=(3&t++)||i.hasListener()||(delete this.cache_[e],--this.cacheSize_)}}},sd.prototype.get=function(t,e,i){var n=ad(t,e,i);return n in this.cache_?this.cache_[n]:null},sd.prototype.set=function(t,e,i,n){var r=ad(t,e,i);this.cache_[r]=n,++this.cacheSize_},sd.prototype.setSize=function(t){this.maxCacheSize_=t,this.expire()};var ld=new sd;function ud(t,e){ld.expire()}function cd(t,e){return t.zIndex-e.zIndex}var hd=function(t){function e(e){t.call(this),this.map_=e,this.layerRenderers_={},this.layerRendererListeners_={},this.layerRendererConstructors_=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){X()},e.prototype.registerLayerRenderers=function(t){this.layerRendererConstructors_.push.apply(this.layerRendererConstructors_,t)},e.prototype.calculateMatrices2D=function(t){var e=t.viewState,i=t.coordinateToPixelTransform,n=t.pixelToCoordinateTransform;Xr(i,t.size[0]/2,t.size[1]/2,1/e.resolution,-1/e.resolution,-e.rotation,-e.center[0],-e.center[1]),qr(Yr(n,i))},e.prototype.removeLayerRenderers=function(){for(var t in this.layerRenderers_)this.removeLayerRendererByKey_(t).dispose()},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,s){var a,l=e.viewState,u=l.resolution;function c(t,i){var o=e.layerStates[K(i)].managed;if(!(K(t)in e.skippedFeatureUids)||o)return n.call(r,t,o?i:null)}var h=l.projection,d=t;if(h.canWrapX()){var f=h.getExtent(),p=It(f),v=t[0];if(v<f[0]||v>f[2])d=[v+p*Math.ceil((f[0]-v)/p),t[1]]}var g,m=e.layerStatesArray;for(g=m.length-1;g>=0;--g){var y=m[g],_=y.layer;if(Zu(y,u)&&o.call(s,_)){var b=this.getLayerRenderer(_),x=_.getSource();if(x&&(a=b.forEachFeatureAtCoordinate(x.getWrapX()?d:t,e,i,c)),a)return a}}},e.prototype.forEachLayerAtPixel=function(t,e,i,n,r,o,s){return X()},e.prototype.hasFeatureAtCoordinate=function(t,e,i,n,r){return void 0!==this.forEachFeatureAtCoordinate(t,e,i,pe,this,n,r)},e.prototype.getLayerRenderer=function(t){var e=K(t);if(e in this.layerRenderers_)return this.layerRenderers_[e];for(var i,n=0,r=this.layerRendererConstructors_.length;n<r;++n){var o=this.layerRendererConstructors_[n];if(o.handles(t)){i=o.create(this,t);break}}if(!i)throw new Error("Unable to create renderer for layer: "+t.getType());return this.layerRenderers_[e]=i,this.layerRendererListeners_[e]=ue(i,xe.CHANGE,this.handleLayerRendererChange_,this),i},e.prototype.getLayerRendererByKey=function(t){return this.layerRenderers_[t]},e.prototype.getLayerRenderers=function(){return this.layerRenderers_},e.prototype.getMap=function(){return this.map_},e.prototype.handleLayerRendererChange_=function(){this.map_.render()},e.prototype.removeLayerRendererByKey_=function(t){var e=this.layerRenderers_[t];return delete this.layerRenderers_[t],de(this.layerRendererListeners_[t]),delete this.layerRendererListeners_[t],e},e.prototype.removeUnusedLayerRenderers_=function(t,e){for(var i in this.layerRenderers_)e&&i in e.layerStates||this.removeLayerRendererByKey_(i).dispose()},e.prototype.renderFrame=function(t){X()},e.prototype.scheduleExpireIconCache=function(t){t.postRenderFunctions.push(ud)},e.prototype.scheduleRemoveUnusedLayerRenderers=function(t){for(var e in this.layerRenderers_)if(!(e in t.layerStates))return void t.postRenderFunctions.push(this.removeUnusedLayerRenderers_.bind(this))},e}(re),dd=[],fd=function(t){function e(e){t.call(this,e);var i=e.getViewport();this.context_=Se(),this.canvas_=this.context_.canvas,this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=Uu,i.insertBefore(this.canvas_,i.childNodes[0]||null),this.renderedVisible_=!0,this.transform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.dispatchRenderEvent=function(t,e){var i=this.getMap(),n=this.context_;if(i.hasListener(t)){var r=e.extent,o=e.pixelRatio,s=e.viewState.rotation,a=this.getTransform(e),l=new od(n,o,r,a,s),u=new id(t,l,e,n,null);i.dispatchEvent(u)}},e.prototype.getTransform=function(t){var e=t.viewState,i=this.canvas_.width/2,n=this.canvas_.height/2,r=t.pixelRatio/e.resolution,o=-r,s=-e.rotation,a=-e.center[0],l=-e.center[1];return Xr(this.transform_,i,n,r,o,s,a,l)},e.prototype.renderFrame=function(t){if(t){var e=this.context_,i=t.pixelRatio,n=Math.round(t.size[0]*i),r=Math.round(t.size[1]*i);this.canvas_.width!=n||this.canvas_.height!=r?(this.canvas_.width=n,this.canvas_.height=r):e.clearRect(0,0,n,r);var o=t.viewState.rotation;this.calculateMatrices2D(t),this.dispatchRenderEvent(tl.PRECOMPOSE,t);var s=t.layerStatesArray;Ji(s,cd),o&&(e.save(),hh(e,o,n/2,r/2));var a,l,u=t.viewState.resolution;for(a=0,l=s.length;a<l;++a){var c=s[a],h=c.layer,d=this.getLayerRenderer(h);Zu(c,u)&&c.sourceState==Ni.READY&&(d.prepareFrame(t,c)&&d.composeFrame(t,c,e))}o&&e.restore(),this.dispatchRenderEvent(tl.POSTCOMPOSE,t),this.renderedVisible_||(this.canvas_.style.display="",this.renderedVisible_=!0),this.scheduleRemoveUnusedLayerRenderers(t),this.scheduleExpireIconCache(t)}else this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1)},e.prototype.forEachLayerAtPixel=function(t,e,i,n,r,o,s){var a,l,u=e.viewState.resolution,c=e.layerStatesArray,h=c.length,d=Vr(e.pixelToCoordinateTransform,t.slice());for(l=h-1;l>=0;--l){var f=c[l],p=f.layer;if(Zu(f,u)&&o.call(s,p))if(a=this.getLayerRenderer(p).forEachLayerAtCoordinate(d,e,i,n,r))return a}},e.prototype.registerLayerRenderers=function(e){t.prototype.registerLayerRenderers.call(this,e);for(var i=0,n=e.length;i<n;++i){var r=e[i];Ui(dd,r)||dd.push(r)}},e}(hd),pd=function(t){function e(e){t.call(this),this.layer_=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createLoadedTileFinder=function(t,e,i){return function(n,r){return t.forEachLoadedTile(e,n,r,function(t){i[n]||(i[n]={}),i[n][t.tileCoord.toString()]=t})}},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n){},e.prototype.getLayer=function(){return this.layer_},e.prototype.handleImageChange_=function(t){t.target.getState()===Sl.LOADED&&this.renderIfReadyAndVisible()},e.prototype.hasFeatureAtCoordinate=function(t,e){return!1},e.prototype.loadImage=function(t){var e=t.getState();return e!=Sl.LOADED&&e!=Sl.ERROR&&ue(t,xe.CHANGE,this.handleImageChange_,this),e==Sl.IDLE&&(t.load(),e=t.getState()),e==Sl.LOADED},e.prototype.renderIfReadyAndVisible=function(){var t=this.getLayer();t.getVisible()&&t.getSourceState()==Ni.READY&&this.changed()},e.prototype.scheduleExpireCache=function(t,e){if(e.canExpireCache()){var i=function(t,e,i){var n=K(t);n in i.usedTiles&&t.expireCache(i.viewState.projection,i.usedTiles[n])}.bind(null,e);t.postRenderFunctions.push(i)}},e.prototype.updateUsedTiles=function(t,e,i,n){var r=K(e),o=i.toString();r in t?o in t[r]?t[r][o].extend(n):t[r][o]=n:(t[r]={},t[r][o]=n)},e.prototype.manageTilePyramid=function(t,e,i,n,r,o,s,a,l,u){var c=K(e);c in t.wantedTiles||(t.wantedTiles[c]={});var h,d,f,p,v,g,m=t.wantedTiles[c],y=t.tileQueue;for(g=i.getMinZoom();g<=s;++g)for(d=i.getTileRangeForExtentAndZ(o,g,d),f=i.getResolution(g),p=d.minX;p<=d.maxX;++p)for(v=d.minY;v<=d.maxY;++v)s-g<=a?((h=e.getTile(g,p,v,n,r)).getState()==Jt.IDLE&&(m[h.getKey()]=!0,y.isKeyQueued(h.getKey())||y.enqueue([h,c,i.getTileCoordCenter(h.tileCoord),f])),void 0!==l&&l.call(u,h)):e.useTile(g,p,v,r)},e}(Ai),vd=function(t){function e(e){t.call(this,e),this.renderedResolution,this.transform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clip=function(t,e,i){var n=e.pixelRatio,r=e.size[0]*n,o=e.size[1]*n,s=e.viewState.rotation,a=Pt(i),l=kt(i),u=Tt(i),c=St(i);Vr(e.coordinateToPixelTransform,a),Vr(e.coordinateToPixelTransform,l),Vr(e.coordinateToPixelTransform,u),Vr(e.coordinateToPixelTransform,c),t.save(),hh(t,-s,r/2,o/2),t.beginPath(),t.moveTo(a[0]*n,a[1]*n),t.lineTo(l[0]*n,l[1]*n),t.lineTo(u[0]*n,u[1]*n),t.lineTo(c[0]*n,c[1]*n),t.clip(),hh(t,s,r/2,o/2)},e.prototype.dispatchComposeEvent_=function(t,e,i,n){var r=this.getLayer();if(r.hasListener(t)){var o=i.size[0]*i.pixelRatio,s=i.size[1]*i.pixelRatio,a=i.viewState.rotation;hh(e,-a,o/2,s/2);var l=void 0!==n?n:this.getTransform(i,0),u=new od(e,i.pixelRatio,i.extent,l,i.viewState.rotation),c=new id(t,u,i,e,null);r.dispatchEvent(c),hh(e,a,o/2,s/2)}},e.prototype.forEachLayerAtCoordinate=function(t,e,i,n,r){return this.forEachFeatureAtCoordinate(t,e,i,pe)?n.call(r,this.getLayer(),null):void 0},e.prototype.postCompose=function(t,e,i,n){this.dispatchComposeEvent_(tl.POSTCOMPOSE,t,e,n)},e.prototype.preCompose=function(t,e,i){this.dispatchComposeEvent_(tl.PRECOMPOSE,t,e,i)},e.prototype.dispatchRenderEvent=function(t,e,i){this.dispatchComposeEvent_(tl.RENDER,t,e,i)},e.prototype.getTransform=function(t,e){var i=t.viewState,n=t.pixelRatio,r=n*t.size[0]/2,o=n*t.size[1]/2,s=n/i.resolution,a=-s,l=-i.rotation,u=-i.center[0]+e,c=-i.center[1];return Xr(this.transform_,r,o,s,a,l,u,c)},e.prototype.composeFrame=function(t,e,i){X()},e.prototype.prepareFrame=function(t,e){return X()},e}(pd),gd=function(t){function e(e){t.call(this,e),this.coordinateToCanvasPixelTransform=[1,0,0,1,0,0],this.hitCanvasContext_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.composeFrame=function(t,e,i){this.preCompose(i,t);var n=this.getImage();if(n){var r=e.extent,o=void 0!==r&&!at(r,t.extent)&&Lt(r,t.extent);o&&this.clip(i,t,r);var s=this.getImageTransform(),a=i.globalAlpha;i.globalAlpha=e.opacity;var l=s[4],u=s[5],c=n.width*s[0],h=n.height*s[3];c>=.5&&h>=.5&&i.drawImage(n,0,0,+n.width,+n.height,Math.round(l),Math.round(u),Math.round(c),Math.round(h)),i.globalAlpha=a,o&&i.restore()}this.postCompose(i,t,e)},e.prototype.getImage=function(){return X()},e.prototype.getImageTransform=function(){return X()},e.prototype.forEachLayerAtCoordinate=function(t,e,i,n,r){if(this.getImage()){var o=Vr(this.coordinateToCanvasPixelTransform,t.slice());qa(o,e.viewState.resolution/this.renderedResolution),this.hitCanvasContext_||(this.hitCanvasContext_=Se(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.getImage(),o[0],o[1],1,1,0,0,1,1);var s=this.hitCanvasContext_.getImageData(0,0,1,1).data;return s[3]>0?n.call(r,this.getLayer(),s):void 0}},e}(vd),md=function(t){function e(i){if(t.call(this,i),this.image_=null,this.imageTransform_=[1,0,0,1,0,0],this.skippedFeatures_=[],this.vectorRenderer_=null,i.getType()===Xc.VECTOR)for(var n=0,r=dd.length;n<r;++n){var o=dd[n];if(o!==e&&o.handles(i)){this.vectorRenderer_=new o(i);break}}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.vectorRenderer_&&this.vectorRenderer_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.image_?this.image_.getImage():null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.prepareFrame=function(t,e){var i,n=t.pixelRatio,r=t.size,o=t.viewState,s=o.center,a=o.resolution,l=this.getLayer().getSource(),u=t.viewHints,c=this.vectorRenderer_,h=t.extent;if(c||void 0===e.extent||(h=Mt(h,e.extent)),!u[ku]&&!u[Iu]&&!At(h)){var d=o.projection,f=this.skippedFeatures_;if(c){var p=c.context,v=Vt({},t,{size:[It(h)/a,Ot(h)/a],viewState:Vt({},t.viewState,{rotation:0})}),g=Object.keys(v.skippedFeatureUids).sort();i=new El(h,a,n,p.canvas,function(t){!c.prepareFrame(v,e)||!c.replayGroupChanged&&Zi(f,g)||(p.canvas.width=v.size[0]*n,p.canvas.height=v.size[1]*n,c.compose(p,v,e),f=g,t())})}else i=l.getImage(h,a,n,d);i&&this.loadImage(i)&&(this.image_=i,this.skippedFeatures_=f)}if(this.image_){var m=(i=this.image_).getExtent(),y=i.getResolution(),_=i.getPixelRatio(),b=n*y/(a*_),x=Xr(this.imageTransform_,n*r[0]/2,n*r[1]/2,b,b,0,_*(m[0]-s[0])/y,_*(s[1]-m[3])/y);Xr(this.coordinateToCanvasPixelTransform,n*r[0]/2-x[4],n*r[1]/2-x[5],n/a,-n/a,0,-s[0],-s[1]),this.renderedResolution=y*n/_}return!!this.image_},e.prototype.forEachFeatureAtCoordinate=function(e,i,n,r){return this.vectorRenderer_?this.vectorRenderer_.forEachFeatureAtCoordinate(e,i,n,r):t.prototype.forEachFeatureAtCoordinate.call(this,e,i,n,r)},e}(gd);md.handles=function(t){return t.getType()===Xc.IMAGE||t.getType()===Xc.VECTOR&&t.getRenderMode()===qc.IMAGE},md.create=function(t,e){return new md(e)};var yd=md,_d=function(t){function e(e,i){t.call(this,e),this.context=i?null:Se(),this.oversampling_,this.renderedExtent_=null,this.renderedRevision,this.renderedTiles=[],this.newTiles_=!1,this.tmpExtent=[1/0,1/0,-1/0,-1/0],this.tmpTileRange_=new Wi(0,0,0,0),this.imageTransform_=[1,0,0,1,0,0],this.zDirection=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isDrawableTile_=function(t){var e=this.getLayer(),i=t.getState(),n=e.getUseInterimTilesOnError();return i==Jt.LOADED||i==Jt.EMPTY||i==Jt.ERROR&&!n},e.prototype.getTile=function(t,e,i,n,r){var o=this.getLayer(),s=o.getSource().getTile(t,e,i,n,r);return s.getState()==Jt.ERROR&&(o.getUseInterimTilesOnError()?o.getPreload()>0&&(this.newTiles_=!0):s.setState(Jt.LOADED)),this.isDrawableTile_(s)||(s=s.getInterimTile()),s},e.prototype.prepareFrame=function(t,e){var i=t.pixelRatio,n=t.size,r=t.viewState,o=r.projection,s=r.resolution,a=r.center,l=this.getLayer(),u=l.getSource(),c=u.getRevision(),h=u.getTileGridForProjection(o),d=h.getZForResolution(s,this.zDirection),f=h.getResolution(d),p=Math.round(s/f)||1,v=t.extent;if(void 0!==e.extent&&(v=Mt(v,e.extent)),At(v))return!1;var g=h.getTileRangeForExtentAndZ(v,d),m=h.getTileRangeExtent(d,g),y=u.getTilePixelRatio(i),_={};_[d]={};var b,x,w,S=this.createLoadedTileFinder(u,o,_),T=t.viewHints,E=T[ku]||T[Iu],C=this.tmpExtent,O=this.tmpTileRange_;for(this.newTiles_=!1,x=g.minX;x<=g.maxX;++x)for(w=g.minY;w<=g.maxY;++w)if(!(Date.now()-t.time>16&&E)){if(b=this.getTile(d,x,w,i,o),this.isDrawableTile_(b)){var M=K(this);if(b.getState()==Jt.LOADED){_[d][b.tileCoord.toString()]=b;var P=b.inTransition(M);this.newTiles_||!P&&-1!==this.renderedTiles.indexOf(b)||(this.newTiles_=!0)}if(1===b.getAlpha(M,t.time))continue}var k=h.getTileCoordChildTileRange(b.tileCoord,O,C),I=!1;k&&(I=S(d+1,k)),I||h.forEachTileCoordParentTileRange(b.tileCoord,S,null,O,C)}var L=f*i/y*p;if(!(this.renderedResolution&&Date.now()-t.time>16&&E)&&(this.newTiles_||!this.renderedExtent_||!at(this.renderedExtent_,v)||this.renderedRevision!=c||p!=this.oversampling_||!E&&L!=this.renderedResolution)){var A=this.context;if(A){var R=u.getTilePixelSize(d,i,o),F=Math.round(g.getWidth()*R[0]/p),D=Math.round(g.getHeight()*R[1]/p),j=A.canvas;j.width!=F||j.height!=D?(this.oversampling_=p,j.width=F,j.height=D):((this.renderedExtent_&&!vt(m,this.renderedExtent_)||this.renderedRevision!=c)&&A.clearRect(0,0,F,D),p=this.oversampling_)}this.renderedTiles.length=0;var N,$,G,z,B,Y,V,W,H,U,X=Object.keys(_).map(Number);for(X.sort(function(t,e){return t===d?1:e===d?-1:t>e?1:t<e?-1:0}),z=0,B=X.length;z<B;++z)for(var q in G=X[z],$=u.getTilePixelSize(G,i,o),N=h.getResolution(G)/f,V=y*u.getGutterForProjection(o),W=_[G])b=W[q],x=((Y=h.getTileCoordExtent(b.getTileCoord(),C))[0]-m[0])/f*y/p,w=(m[3]-Y[3])/f*y/p,H=$[0]*N/p,U=$[1]*N/p,this.drawTileImage(b,t,e,x,w,H,U,V,d===G),this.renderedTiles.push(b);this.renderedRevision=c,this.renderedResolution=f*i/y*p,this.renderedExtent_=m}var Z=this.renderedResolution/s,J=Xr(this.imageTransform_,i*n[0]/2,i*n[1]/2,Z,Z,0,(this.renderedExtent_[0]-a[0])/this.renderedResolution*i,(a[1]-this.renderedExtent_[3])/this.renderedResolution*i);return Xr(this.coordinateToCanvasPixelTransform,i*n[0]/2-J[4],i*n[1]/2-J[5],i/s,-i/s,0,-a[0],-a[1]),this.updateUsedTiles(t.usedTiles,u,d,g),this.manageTilePyramid(t,u,h,i,o,v,d,l.getPreload()),this.scheduleExpireCache(t,u),this.renderedTiles.length>0},e.prototype.drawTileImage=function(t,e,i,n,r,o,s,a,l){var u=this.getTileImage(t);if(u){var c=K(this),h=l?t.getAlpha(c,e.time):1,d=this.getLayer().getSource();1!==h||d.getOpaque(e.viewState.projection)||this.context.clearRect(n,r,o,s);var f=h!==this.context.globalAlpha;f&&(this.context.save(),this.context.globalAlpha=h),this.context.drawImage(u,a,a,u.width-2*a,u.height-2*a,n,r,o,s),f&&this.context.restore(),1!==h?e.animate=!0:l&&t.endTransition(c)}},e.prototype.getImage=function(){var t=this.context;return t?t.canvas:null},e.prototype.getImageTransform=function(){return this.imageTransform_},e.prototype.getTileImage=function(t){return t.getImage()},e}(gd);_d.handles=function(t){return t.getType()===Xc.TILE},_d.create=function(t,e){return new _d(e)},_d.prototype.getLayer;var bd=_d,xd=function(){};xd.prototype.getReplay=function(t,e){return X()},xd.prototype.isEmpty=function(){return X()},xd.prototype.addDeclutter=function(t){return X()};var wd=xd,Sd={CIRCLE:"Circle",DEFAULT:"Default",IMAGE:"Image",LINE_STRING:"LineString",POLYGON:"Polygon",TEXT:"Text"};function Td(t,e,i,n,r,o,s,a){for(var l,u,c,h=[],d=t[e]>t[i-n],f=r.length,p=t[e],v=t[e+1],g=t[e+=n],m=t[e+1],y=0,_=Math.sqrt(Math.pow(g-p,2)+Math.pow(m-v,2)),b="",x=0,w=0;w<f;++w){u=d?f-w-1:w;var S=r.charAt(u),T=o(b=d?S+b:b+S)-x;x+=T;for(var E=s+T/2;e<i-n&&y+_<E;)p=g,v=m,g=t[e+=n],m=t[e+1],y+=_,_=Math.sqrt(Math.pow(g-p,2)+Math.pow(m-v,2));var C=E-y,O=Math.atan2(m-v,g-p);if(d&&(O+=O>0?-Math.PI:Math.PI),void 0!==c){var M=O-c;if(M+=M>Math.PI?-2*Math.PI:M<-Math.PI?2*Math.PI:0,Math.abs(M)>a)return null}var P=C/_,k=Yt(p,g,P),I=Yt(v,m,P);c==O?(d&&(l[0]=k,l[1]=I,l[2]=T/2),l[4]=b):(x=T,l=[k,I,T/2,O,b=S],d?h.unshift(l):h.push(l),c=O),s+=T}return h}var Ed={BEGIN_GEOMETRY:0,BEGIN_PATH:1,CIRCLE:2,CLOSE_PATH:3,CUSTOM:4,DRAW_CHARS:5,DRAW_IMAGE:6,END_GEOMETRY:7,FILL:8,MOVE_TO_LINE_TO:9,SET_FILL_STYLE:10,SET_STROKE_STYLE:11,STROKE:12},Cd=[Ed.FILL],Od=[Ed.STROKE],Md=[Ed.BEGIN_PATH],Pd=[Ed.CLOSE_PATH],kd=Ed,Id=[Sd.POLYGON,Sd.CIRCLE,Sd.LINE_STRING,Sd.IMAGE,Sd.TEXT,Sd.DEFAULT],Ld={left:0,end:0,center:.5,right:1,start:1,top:0,middle:.5,hanging:.2,alphabetic:.8,ideographic:.8,bottom:1},Ad=[1/0,1/0,-1/0,-1/0],Rd=[1,0,0,1,0,0],Fd=function(t){function e(e,i,n,r,o,s){t.call(this),this.declutterTree=s,this.tolerance=e,this.maxExtent=i,this.overlaps=o,this.pixelRatio=r,this.maxLineWidth=0,this.resolution=n,this.alignFill_,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_=null,this.bufferedMaxExtent_=null,this.instructions=[],this.coordinates=[],this.coordinateCache_={},this.renderedTransform_=[1,0,0,1,0,0],this.hitDetectionInstructions=[],this.pixelCoordinates_=null,this.state={},this.viewRotation_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.replayTextBackground_=function(t,e,i,n,r,o,s){t.beginPath(),t.moveTo.apply(t,e),t.lineTo.apply(t,i),t.lineTo.apply(t,n),t.lineTo.apply(t,r),t.lineTo.apply(t,e),o&&(this.alignFill_=o[2],this.fill_(t)),s&&(this.setStrokeStyle_(t,s),t.stroke())},e.prototype.replayImage_=function(t,e,i,n,r,o,s,a,l,u,c,h,d,f,p,v,g,m){var y=g||m;e-=r*=d,i-=o*=d;var _,b,x,w,S=p+u>n.width?n.width-u:p,T=a+c>n.height?n.height-c:a,E=v[3]+S*d+v[1],C=v[0]+T*d+v[2],O=e-v[3],M=i-v[0];(y||0!==h)&&(_=[O,M],b=[O+E,M],x=[O+E,M+C],w=[O,M+C]);var P=null;if(0!==h){var k=e+r,I=i+o;P=Xr(Rd,k,I,1,1,h,-k,-I),dt(Ad),mt(Ad,Vr(Rd,_)),mt(Ad,Vr(Rd,b)),mt(Ad,Vr(Rd,x)),mt(Ad,Vr(Rd,w))}else ht(O,M,O+E,M+C,Ad);var L=t.canvas,A=m?m[2]*d/2:0,R=Ad[0]-A<=L.width&&Ad[2]+A>=0&&Ad[1]-A<=L.height&&Ad[3]+A>=0;if(f&&(e=Math.round(e),i=Math.round(i)),s){if(!R&&1==s[4])return;gt(s,Ad);var F=R?[t,P?P.slice(0):null,l,n,u,c,S,T,e,i,d]:null;F&&y&&F.push(g,m,_,b,x,w),s.push(F)}else R&&(y&&this.replayTextBackground_(t,_,b,x,w,g,m),fh(t,P,l,n,u,c,S,T,e,i,d))},e.prototype.applyPixelRatio=function(t){var e=this.pixelRatio;return 1==e?t:t.map(function(t){return t*e})},e.prototype.appendFlatCoordinates=function(t,e,i,n,r,o){var s=this.coordinates.length,a=this.getBufferedMaxExtent();o&&(e+=n);var l,u,c,h=[t[e],t[e+1]],d=[NaN,NaN],f=!0;for(l=e+n;l<i;l+=n)d[0]=t[l],d[1]=t[l+1],(c=ut(a,d))!==u?(f&&(this.coordinates[s++]=h[0],this.coordinates[s++]=h[1]),this.coordinates[s++]=d[0],this.coordinates[s++]=d[1],f=!1):c===et.INTERSECTING?(this.coordinates[s++]=d[0],this.coordinates[s++]=d[1],f=!1):f=!0,h[0]=d[0],h[1]=d[1],u=c;return(r&&f||l===e+n)&&(this.coordinates[s++]=h[0],this.coordinates[s++]=h[1]),s},e.prototype.drawCustomCoordinates_=function(t,e,i,n,r){for(var o=0,s=i.length;o<s;++o){var a=i[o],l=this.appendFlatCoordinates(t,e,a,n,!1,!1);r.push(l),e=a}return e},e.prototype.drawCustom=function(t,e,i){this.beginGeometry(t,e);var n,r,o,s,a,l=t.getType(),u=t.getStride(),c=this.coordinates.length;if(l==Fe.MULTI_POLYGON){n=(t=t).getOrientedFlatCoordinates(),s=[];var h=t.getEndss();a=0;for(var d=0,f=h.length;d<f;++d){var p=[];a=this.drawCustomCoordinates_(n,a,h[d],u,p),s.push(p)}this.instructions.push([kd.CUSTOM,c,s,t,i,po])}else l==Fe.POLYGON||l==Fe.MULTI_LINE_STRING?(o=[],n=l==Fe.POLYGON?t.getOrientedFlatCoordinates():t.getFlatCoordinates(),a=this.drawCustomCoordinates_(n,0,t.getEnds(),u,o),this.instructions.push([kd.CUSTOM,c,o,t,i,fo])):l==Fe.LINE_STRING||l==Fe.MULTI_POINT?(n=t.getFlatCoordinates(),r=this.appendFlatCoordinates(n,0,n.length,u,!1,!1),this.instructions.push([kd.CUSTOM,c,r,t,i,ho])):l==Fe.POINT&&(n=t.getFlatCoordinates(),this.coordinates.push(n[0],n[1]),r=this.coordinates.length,this.instructions.push([kd.CUSTOM,c,r,t,i]));this.endGeometry(t,e)},e.prototype.beginGeometry=function(t,e){this.beginGeometryInstruction1_=[kd.BEGIN_GEOMETRY,e,0],this.instructions.push(this.beginGeometryInstruction1_),this.beginGeometryInstruction2_=[kd.BEGIN_GEOMETRY,e,0],this.hitDetectionInstructions.push(this.beginGeometryInstruction2_)},e.prototype.finish=function(){},e.prototype.fill_=function(t){if(this.alignFill_){var e=Vr(this.renderedTransform_,[0,0]),i=512*this.pixelRatio;t.translate(e[0]%i,e[1]%i),t.rotate(this.viewRotation_)}t.fill(),this.alignFill_&&t.setTransform.apply(t,dh)},e.prototype.setStrokeStyle_=function(t,e){t.strokeStyle=e[1],t.lineWidth=e[2],t.lineCap=e[3],t.lineJoin=e[4],t.miterLimit=e[5],Ra&&(t.lineDashOffset=e[7],t.setLineDash(e[6]))},e.prototype.renderDeclutter_=function(t,e){if(t&&t.length>5){var i=t[4];if(1==i||i==t.length-5){var n={minX:t[0],minY:t[1],maxX:t[2],maxY:t[3],value:e};if(!this.declutterTree.collides(n)){this.declutterTree.insert(n);for(var r=5,o=t.length;r<o;++r){var s=t[r];s&&(s.length>11&&this.replayTextBackground_(s[0],s[13],s[14],s[15],s[16],s[11],s[12]),fh.apply(void 0,s))}}t.length=5,dt(t)}}},e.prototype.replay_=function(t,e,i,n,r,o,s){var a;this.pixelCoordinates_&&Zi(e,this.renderedTransform_)?a=this.pixelCoordinates_:(this.pixelCoordinates_||(this.pixelCoordinates_=[]),a=jr(this.coordinates,0,this.coordinates.length,2,e,this.pixelCoordinates_),Yr(this.renderedTransform_,e));for(var l,u,c,h,d,f,p,v,g,m,y,_,b=!Ut(i),x=0,w=n.length,S=0,T=0,E=0,C=null,O=null,M=this.coordinateCache_,P=this.viewRotation_,k={context:t,pixelRatio:this.pixelRatio,resolution:this.resolution,rotation:P},I=this.instructions!=n||this.overlaps?0:200;x<w;){var L=n[x];switch(L[0]){case kd.BEGIN_GEOMETRY:m=L[1],b&&i[K(m)]||!m.getGeometry()?x=L[2]:void 0===s||Lt(s,m.getGeometry().getExtent())?++x:x=L[2]+1;break;case kd.BEGIN_PATH:T>I&&(this.fill_(t),T=0),E>I&&(t.stroke(),E=0),T||E||(t.beginPath(),h=d=NaN),++x;break;case kd.CIRCLE:var A=a[S=L[1]],R=a[S+1],F=a[S+2]-A,D=a[S+3]-R,j=Math.sqrt(F*F+D*D);t.moveTo(A+j,R),t.arc(A,R,j,0,2*Math.PI,!0),++x;break;case kd.CLOSE_PATH:t.closePath(),++x;break;case kd.CUSTOM:S=L[1],l=L[2];var N=L[3],$=L[4],G=6==L.length?L[5]:void 0;k.geometry=N,k.feature=m,x in M||(M[x]=[]);var z=M[x];G?G(a,S,l,2,z):(z[0]=a[S],z[1]=a[S+1],z.length=2),$(z,k),++x;break;case kd.DRAW_IMAGE:S=L[1],l=L[2],g=L[3],u=L[4],c=L[5],v=o?null:L[6];var B=L[7],Y=L[8],V=L[9],W=L[10],H=L[11],U=L[12],X=L[13],q=L[14],Z=void 0,J=void 0,Q=void 0;for(L.length>16?(Z=L[15],J=L[16],Q=L[17]):(Z=th,J=Q=!1),H&&(U+=P);S<l;S+=2)this.replayImage_(t,a[S],a[S+1],g,u,c,v,B,Y,V,W,U,X,r,q,Z,J?C:null,Q?O:null);this.renderDeclutter_(v,m),++x;break;case kd.DRAW_CHARS:var tt=L[1],et=L[2],it=L[3];v=o?null:L[4];var nt=L[5],rt=L[6],ot=L[7],st=L[8],at=L[9],lt=L[10],ut=L[11],ct=L[12],ht=L[13],dt=L[14],ft=So(a,tt,et,2),pt=st(ct);if(nt||pt<=ft){var vt=this.textStates[ht].textAlign,gt=Td(a,tt,et,2,ct,st,(ft-pt)*Ld[vt],ot);if(gt){var mt=void 0,yt=void 0,_t=void 0,bt=void 0,xt=void 0;if(lt)for(mt=0,yt=gt.length;mt<yt;++mt)_t=(xt=gt[mt])[4],bt=this.getImage(_t,ht,"",lt),u=xt[2]+ut,c=it*bt.height+2*(.5-it)*ut-at,this.replayImage_(t,xt[0],xt[1],bt,u,c,v,bt.height,1,0,0,xt[3],dt,!1,bt.width,th,null,null);if(rt)for(mt=0,yt=gt.length;mt<yt;++mt)_t=(xt=gt[mt])[4],bt=this.getImage(_t,ht,rt,""),u=xt[2],c=it*bt.height-at,this.replayImage_(t,xt[0],xt[1],bt,u,c,v,bt.height,1,0,0,xt[3],dt,!1,bt.width,th,null,null)}}this.renderDeclutter_(v,m),++x;break;case kd.END_GEOMETRY:if(void 0!==o){var wt=o(m=L[1]);if(wt)return wt}++x;break;case kd.FILL:I?T++:this.fill_(t),++x;break;case kd.MOVE_TO_LINE_TO:for(S=L[1],l=L[2],y=a[S],p=(_=a[S+1])+.5|0,(f=y+.5|0)===h&&p===d||(t.moveTo(y,_),h=f,d=p),S+=2;S<l;S+=2)f=(y=a[S])+.5|0,p=(_=a[S+1])+.5|0,S!=l-2&&f===h&&p===d||(t.lineTo(y,_),h=f,d=p);++x;break;case kd.SET_FILL_STYLE:C=L,this.alignFill_=L[2],T&&(this.fill_(t),T=0,E&&(t.stroke(),E=0)),t.fillStyle=L[1],++x;break;case kd.SET_STROKE_STYLE:O=L,E&&(t.stroke(),E=0),this.setStrokeStyle_(t,L),++x;break;case kd.STROKE:I?E++:t.stroke(),++x;break;default:++x}}T&&this.fill_(t),E&&t.stroke()},e.prototype.replay=function(t,e,i,n,r){this.viewRotation_=i,this.replay_(t,e,n,this.instructions,r,void 0,void 0)},e.prototype.replayHitDetection=function(t,e,i,n,r,o){return this.viewRotation_=i,this.replay_(t,e,n,this.hitDetectionInstructions,!0,r,o)},e.prototype.reverseHitDetectionInstructions=function(){var t,e=this.hitDetectionInstructions;e.reverse();var i,n,r=e.length,o=-1;for(t=0;t<r;++t)(n=(i=e[t])[0])==kd.END_GEOMETRY?o=t:n==kd.BEGIN_GEOMETRY&&(i[2]=t,qi(this.hitDetectionInstructions,o,t),o=-1)},e.prototype.setFillStrokeStyle=function(t,e){var i=this.state;if(t){var n=t.getColor();i.fillStyle=Kc(n||Zc)}else i.fillStyle=void 0;if(e){var r=e.getColor();i.strokeStyle=Kc(r||Qc);var o=e.getLineCap();i.lineCap=void 0!==o?o:"round";var s=e.getLineDash();i.lineDash=s?s.slice():Jc;var a=e.getLineDashOffset();i.lineDashOffset=a||0;var l=e.getLineJoin();i.lineJoin=void 0!==l?l:"round";var u=e.getWidth();i.lineWidth=void 0!==u?u:1;var c=e.getMiterLimit();i.miterLimit=void 0!==c?c:10,i.lineWidth>this.maxLineWidth&&(this.maxLineWidth=i.lineWidth,this.bufferedMaxExtent_=null)}else i.strokeStyle=void 0,i.lineCap=void 0,i.lineDash=null,i.lineDashOffset=void 0,i.lineJoin=void 0,i.lineWidth=void 0,i.miterLimit=void 0},e.prototype.createFill=function(t,e){var i=t.fillStyle,n=[kd.SET_FILL_STYLE,i];return"string"!=typeof i&&n.push(!0),n},e.prototype.applyStroke=function(t){this.instructions.push(this.createStroke(t))},e.prototype.createStroke=function(t){return[kd.SET_STROKE_STYLE,t.strokeStyle,t.lineWidth*this.pixelRatio,t.lineCap,t.lineJoin,t.miterLimit,this.applyPixelRatio(t.lineDash),t.lineDashOffset*this.pixelRatio]},e.prototype.updateFillStyle=function(t,e,i){var n=t.fillStyle;"string"==typeof n&&t.currentFillStyle==n||(void 0!==n&&this.instructions.push(e.call(this,t,i)),t.currentFillStyle=n)},e.prototype.updateStrokeStyle=function(t,e){var i=t.strokeStyle,n=t.lineCap,r=t.lineDash,o=t.lineDashOffset,s=t.lineJoin,a=t.lineWidth,l=t.miterLimit;(t.currentStrokeStyle!=i||t.currentLineCap!=n||r!=t.currentLineDash&&!Zi(t.currentLineDash,r)||t.currentLineDashOffset!=o||t.currentLineJoin!=s||t.currentLineWidth!=a||t.currentMiterLimit!=l)&&(void 0!==i&&e.call(this,t),t.currentStrokeStyle=i,t.currentLineCap=n,t.currentLineDash=r,t.currentLineDashOffset=o,t.currentLineJoin=s,t.currentLineWidth=a,t.currentMiterLimit=l)},e.prototype.endGeometry=function(t,e){this.beginGeometryInstruction1_[2]=this.instructions.length,this.beginGeometryInstruction1_=null,this.beginGeometryInstruction2_[2]=this.hitDetectionInstructions.length,this.beginGeometryInstruction2_=null;var i=[kd.END_GEOMETRY,e];this.instructions.push(i),this.hitDetectionInstructions.push(i)},e.prototype.getBufferedMaxExtent=function(){if(!this.bufferedMaxExtent_&&(this.bufferedMaxExtent_=rt(this.maxExtent),this.maxLineWidth>0)){var t=this.resolution*(this.maxLineWidth+1)/2;nt(this.bufferedMaxExtent_,t,this.bufferedMaxExtent_)}return this.bufferedMaxExtent_},e}(rd),Dd=function(t){function e(e,i,n,r,o,s){t.call(this,e,i,n,r,o,s),this.declutterGroup_=null,this.hitDetectionImage_=null,this.image_=null,this.anchorX_=void 0,this.anchorY_=void 0,this.height_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.scale_=void 0,this.width_=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,i,n){return this.appendFlatCoordinates(t,e,i,n,!1,!1)},e.prototype.drawPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([kd.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([kd.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.drawMultiPoint=function(t,e){if(this.image_){this.beginGeometry(t,e);var i=t.getFlatCoordinates(),n=t.getStride(),r=this.coordinates.length,o=this.drawCoordinates_(i,0,i.length,n);this.instructions.push([kd.DRAW_IMAGE,r,o,this.image_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_*this.pixelRatio,this.width_]),this.hitDetectionInstructions.push([kd.DRAW_IMAGE,r,o,this.hitDetectionImage_,this.anchorX_,this.anchorY_,this.declutterGroup_,this.height_,this.opacity_,this.originX_,this.originY_,this.rotateWithView_,this.rotation_,this.scale_,this.width_]),this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.anchorX_=void 0,this.anchorY_=void 0,this.hitDetectionImage_=null,this.image_=null,this.height_=void 0,this.scale_=void 0,this.opacity_=void 0,this.originX_=void 0,this.originY_=void 0,this.rotateWithView_=void 0,this.rotation_=void 0,this.width_=void 0},e.prototype.setImageStyle=function(t,e){var i=t.getAnchor(),n=t.getSize(),r=t.getHitDetectionImage(1),o=t.getImage(1),s=t.getOrigin();this.anchorX_=i[0],this.anchorY_=i[1],this.declutterGroup_=e,this.hitDetectionImage_=r,this.image_=o,this.height_=n[1],this.opacity_=t.getOpacity(),this.originX_=s[0],this.originY_=s[1],this.rotateWithView_=t.getRotateWithView(),this.rotation_=t.getRotation(),this.scale_=t.getScale(),this.width_=n[0]},e}(Fd),jd=function(t){function e(e,i,n,r,o,s){t.call(this,e,i,n,r,o,s)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinates_=function(t,e,i,n){var r=this.coordinates.length,o=this.appendFlatCoordinates(t,e,i,n,!1,!1),s=[kd.MOVE_TO_LINE_TO,r,o];return this.instructions.push(s),this.hitDetectionInstructions.push(s),i},e.prototype.drawLineString=function(t,e){var i=this.state,n=i.strokeStyle,r=i.lineWidth;if(void 0!==n&&void 0!==r){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([kd.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Md);var o=t.getFlatCoordinates(),s=t.getStride();this.drawFlatCoordinates_(o,0,o.length,s),this.hitDetectionInstructions.push(Od),this.endGeometry(t,e)}},e.prototype.drawMultiLineString=function(t,e){var i=this.state,n=i.strokeStyle,r=i.lineWidth;if(void 0!==n&&void 0!==r){this.updateStrokeStyle(i,this.applyStroke),this.beginGeometry(t,e),this.hitDetectionInstructions.push([kd.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset],Md);for(var o=t.getEnds(),s=t.getFlatCoordinates(),a=t.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinates_(s,l,o[u],a);this.hitDetectionInstructions.push(Od),this.endGeometry(t,e)}},e.prototype.finish=function(){var t=this.state;void 0!=t.lastStroke&&t.lastStroke!=this.coordinates.length&&this.instructions.push(Od),this.reverseHitDetectionInstructions(),this.state=null},e.prototype.applyStroke=function(e){void 0!=e.lastStroke&&e.lastStroke!=this.coordinates.length&&(this.instructions.push(Od),e.lastStroke=this.coordinates.length),e.lastStroke=0,t.prototype.applyStroke.call(this,e),this.instructions.push(Md)},e}(Fd),Nd=function(t){function e(e,i,n,r,o,s){t.call(this,e,i,n,r,o,s)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawFlatCoordinatess_=function(t,e,i,n){var r=this.state,o=void 0!==r.fillStyle,s=void 0!=r.strokeStyle,a=i.length;this.instructions.push(Md),this.hitDetectionInstructions.push(Md);for(var l=0;l<a;++l){var u=i[l],c=this.coordinates.length,h=this.appendFlatCoordinates(t,e,u,n,!0,!s),d=[kd.MOVE_TO_LINE_TO,c,h];this.instructions.push(d),this.hitDetectionInstructions.push(d),s&&(this.instructions.push(Pd),this.hitDetectionInstructions.push(Pd)),e=u}return o&&(this.instructions.push(Cd),this.hitDetectionInstructions.push(Cd)),s&&(this.instructions.push(Od),this.hitDetectionInstructions.push(Od)),e},e.prototype.drawCircle=function(t,e){var i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0!==n||void 0!==r){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([kd.SET_FILL_STYLE,nl(Zc)]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([kd.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var o=t.getFlatCoordinates(),s=t.getStride(),a=this.coordinates.length;this.appendFlatCoordinates(o,0,o.length,s,!1,!1);var l=[kd.CIRCLE,a];this.instructions.push(Md,l),this.hitDetectionInstructions.push(Md,l),this.hitDetectionInstructions.push(Cd),void 0!==i.fillStyle&&this.instructions.push(Cd),void 0!==i.strokeStyle&&(this.instructions.push(Od),this.hitDetectionInstructions.push(Od)),this.endGeometry(t,e)}},e.prototype.drawPolygon=function(t,e){var i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0!==n||void 0!==r){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([kd.SET_FILL_STYLE,nl(Zc)]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([kd.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);var o=t.getEnds(),s=t.getOrientedFlatCoordinates(),a=t.getStride();this.drawFlatCoordinatess_(s,0,o,a),this.endGeometry(t,e)}},e.prototype.drawMultiPolygon=function(t,e){var i=this.state,n=i.fillStyle,r=i.strokeStyle;if(void 0!==n||void 0!==r){this.setFillStrokeStyles_(t),this.beginGeometry(t,e),void 0!==i.fillStyle&&this.hitDetectionInstructions.push([kd.SET_FILL_STYLE,nl(Zc)]),void 0!==i.strokeStyle&&this.hitDetectionInstructions.push([kd.SET_STROKE_STYLE,i.strokeStyle,i.lineWidth,i.lineCap,i.lineJoin,i.miterLimit,i.lineDash,i.lineDashOffset]);for(var o=t.getEndss(),s=t.getOrientedFlatCoordinates(),a=t.getStride(),l=0,u=0,c=o.length;u<c;++u)l=this.drawFlatCoordinatess_(s,l,o[u],a);this.endGeometry(t,e)}},e.prototype.finish=function(){this.reverseHitDetectionInstructions(),this.state=null;var t=this.tolerance;if(0!==t)for(var e=this.coordinates,i=0,n=e.length;i<n;++i)e[i]=Co(e[i],t)},e.prototype.setFillStrokeStyles_=function(t){var e=this.state;void 0!==e.fillStyle&&this.updateFillStyle(e,this.createFill,t),void 0!==e.strokeStyle&&this.updateStrokeStyle(e,this.applyStroke)},e}(Fd);function $d(t,e,i,n,r){var o,s,a,l,u,c,h,d,f,p=i,v=i,g=0,m=0,y=i;for(o=i;o<n;o+=r){var _=e[o],b=e[o+1];void 0!==l&&(d=_-l,f=b-u,a=Math.sqrt(d*d+f*f),void 0!==c&&(m+=s,Math.acos((c*d+h*f)/(s*a))>t&&(m>g&&(g=m,p=y,v=o),m=0,y=o-r)),s=a,c=d,h=f),l=_,u=b}return(m+=a)>g?[y,o]:[p,v]}var Gd={Circle:Nd,Default:Fd,Image:Dd,LineString:jd,Polygon:Nd,Text:function(t){function e(e,i,n,r,o,s){t.call(this,e,i,n,r,o,s),this.declutterGroup_,this.labels_=null,this.text_="",this.textOffsetX_=0,this.textOffsetY_=0,this.textRotateWithView_=void 0,this.textRotation_=0,this.textFillState_=null,this.fillStates={},this.textStrokeState_=null,this.strokeStates={},this.textState_={},this.textStates={},this.textKey_="",this.fillKey_="",this.strokeKey_="",this.widths_={},eh.prune()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){var i=this.textFillState_,n=this.textStrokeState_,r=this.textState_;if(""!==this.text_&&r&&(i||n)){var o,s,a=this.coordinates.length,l=t.getType(),u=null,c=2,h=2;if(r.placement===vl){if(!Lt(this.getBufferedMaxExtent(),t.getExtent()))return;var d;if(u=t.getFlatCoordinates(),h=t.getStride(),l==Fe.LINE_STRING)d=[u.length];else if(l==Fe.MULTI_LINE_STRING)d=t.getEnds();else if(l==Fe.POLYGON)d=t.getEnds().slice(0,1);else if(l==Fe.MULTI_POLYGON){var f=t.getEndss();for(d=[],o=0,s=f.length;o<s;++o)d.push(f[o][0])}this.beginGeometry(t,e);for(var p,v=r.textAlign,g=0,m=0,y=d.length;m<y;++m){if(void 0==v){var _=$d(r.maxAngle,u,g,d[m],h);g=_[0],p=_[1]}else p=d[m];for(o=g;o<p;o+=h)this.coordinates.push(u[o],u[o+1]);c=this.coordinates.length,g=d[m],this.drawChars_(a,c,this.declutterGroup_),a=c}this.endGeometry(t,e)}else{var b=this.getImage(this.text_,this.textKey_,this.fillKey_,this.strokeKey_),x=b.width/this.pixelRatio;switch(l){case Fe.POINT:case Fe.MULTI_POINT:c=(u=t.getFlatCoordinates()).length;break;case Fe.LINE_STRING:u=t.getFlatMidpoint();break;case Fe.CIRCLE:u=t.getCenter();break;case Fe.MULTI_LINE_STRING:c=(u=t.getFlatMidpoints()).length;break;case Fe.POLYGON:if(u=t.getFlatInteriorPoint(),!r.overflow&&u[2]/this.resolution<x)return;h=3;break;case Fe.MULTI_POLYGON:var w=t.getFlatInteriorPoints();for(u=[],o=0,s=w.length;o<s;o+=3)(r.overflow||w[o+2]/this.resolution>=x)&&u.push(w[o],w[o+1]);if(0==(c=u.length))return}c=this.appendFlatCoordinates(u,0,c,h,!1,!1),(r.backgroundFill||r.backgroundStroke)&&(this.setFillStrokeStyle(r.backgroundFill,r.backgroundStroke),r.backgroundFill&&(this.updateFillStyle(this.state,this.createFill,t),this.hitDetectionInstructions.push(this.createFill(this.state,t))),r.backgroundStroke&&(this.updateStrokeStyle(this.state,this.applyStroke),this.hitDetectionInstructions.push(this.createStroke(this.state)))),this.beginGeometry(t,e),this.drawTextImage_(b,a,c),this.endGeometry(t,e)}}},e.prototype.getImage=function(t,e,i,n){var r,o=n+e+t+i+this.pixelRatio;if(!eh.containsKey(o)){var s=n?this.strokeStates[n]||this.textStrokeState_:null,a=i?this.fillStates[i]||this.textFillState_:null,l=this.textStates[e]||this.textState_,u=this.pixelRatio,c=l.scale*u,h=Ld[l.textAlign||"center"],d=n&&s.lineWidth?s.lineWidth:0,f=t.split("\n"),p=f.length,v=[],g=function(t,e,i){for(var n=e.length,r=0,o=0;o<n;++o){var s=ch(t,e[o]);r=Math.max(r,s),i.push(s)}return r}(l.font,f,v),m=uh(l.font),y=m*p,_=g+d,b=Se(Math.ceil(_*c),Math.ceil((y+d)*c));r=b.canvas,eh.set(o,r),1!=c&&b.scale(c,c),b.font=l.font,n&&(b.strokeStyle=s.strokeStyle,b.lineWidth=d,b.lineCap=s.lineCap,b.lineJoin=s.lineJoin,b.miterLimit=s.miterLimit,Ra&&s.lineDash.length&&(b.setLineDash(s.lineDash),b.lineDashOffset=s.lineDashOffset)),i&&(b.fillStyle=a.fillStyle),b.textBaseline="middle",b.textAlign="center";var x,w=.5-h,S=h*r.width/c+w*d;if(n)for(x=0;x<p;++x)b.strokeText(f[x],S+w*v[x],.5*(d+m)+x*m);if(i)for(x=0;x<p;++x)b.fillText(f[x],S+w*v[x],.5*(d+m)+x*m)}return eh.get(o)},e.prototype.drawTextImage_=function(t,e,i){var n=this.textState_,r=this.textStrokeState_,o=this.pixelRatio,s=Ld[n.textAlign||"center"],a=Ld[n.textBaseline],l=r&&r.lineWidth?r.lineWidth:0,u=s*t.width/o+2*(.5-s)*l,c=a*t.height/o+2*(.5-a)*l;this.instructions.push([kd.DRAW_IMAGE,e,i,t,(u-this.textOffsetX_)*o,(c-this.textOffsetY_)*o,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1,t.width,n.padding==th?th:n.padding.map(function(t){return t*o}),!!n.backgroundFill,!!n.backgroundStroke]),this.hitDetectionInstructions.push([kd.DRAW_IMAGE,e,i,t,(u-this.textOffsetX_)*o,(c-this.textOffsetY_)*o,this.declutterGroup_,t.height,1,0,0,this.textRotateWithView_,this.textRotation_,1/o,t.width,n.padding,!!n.backgroundFill,!!n.backgroundStroke])},e.prototype.drawChars_=function(t,e,i){var n=this.textStrokeState_,r=this.textState_,o=this.textFillState_,s=this.strokeKey_;n&&(s in this.strokeStates||(this.strokeStates[s]={strokeStyle:n.strokeStyle,lineCap:n.lineCap,lineDashOffset:n.lineDashOffset,lineWidth:n.lineWidth,lineJoin:n.lineJoin,miterLimit:n.miterLimit,lineDash:n.lineDash}));var a=this.textKey_;this.textKey_ in this.textStates||(this.textStates[this.textKey_]={font:r.font,textAlign:r.textAlign||"center",scale:r.scale});var l=this.fillKey_;o&&(l in this.fillStates||(this.fillStates[l]={fillStyle:o.fillStyle}));var u=this.pixelRatio,c=Ld[r.textBaseline],h=this.textOffsetY_*u,d=this.text_,f=r.font,p=r.scale,v=n?n.lineWidth*p/2:0,g=this.widths_[f];g||(this.widths_[f]=g={}),this.instructions.push([kd.DRAW_CHARS,t,e,c,i,r.overflow,l,r.maxAngle,function(t){var e=g[t];return e||(e=g[t]=ch(f,t)),e*p*u},h,s,v*u,d,a,1]),this.hitDetectionInstructions.push([kd.DRAW_CHARS,t,e,c,i,r.overflow,l,r.maxAngle,function(t){var e=g[t];return e||(e=g[t]=ch(f,t)),e*p},h,s,v,d,a,1/u])},e.prototype.setTextStyle=function(t,e){var i,n,r;if(t){this.declutterGroup_=e;var o=t.getFill();o?((n=this.textFillState_)||(n=this.textFillState_={}),n.fillStyle=Kc(o.getColor()||Zc)):n=this.textFillState_=null;var s=t.getStroke();if(s){(r=this.textStrokeState_)||(r=this.textStrokeState_={});var a=s.getLineDash(),l=s.getLineDashOffset(),u=s.getWidth(),c=s.getMiterLimit();r.lineCap=s.getLineCap()||"round",r.lineDash=a?a.slice():Jc,r.lineDashOffset=void 0===l?0:l,r.lineJoin=s.getLineJoin()||"round",r.lineWidth=void 0===u?1:u,r.miterLimit=void 0===c?10:c,r.strokeStyle=Kc(s.getColor()||Qc)}else r=this.textStrokeState_=null;i=this.textState_;var h=t.getFont()||"10px sans-serif";oh(h);var d=t.getScale();i.overflow=t.getOverflow(),i.font=h,i.maxAngle=t.getMaxAngle(),i.placement=t.getPlacement(),i.textAlign=t.getTextAlign(),i.textBaseline=t.getTextBaseline()||"middle",i.backgroundFill=t.getBackgroundFill(),i.backgroundStroke=t.getBackgroundStroke(),i.padding=t.getPadding()||th,i.scale=void 0===d?1:d;var f=t.getOffsetX(),p=t.getOffsetY(),v=t.getRotateWithView(),g=t.getRotation();this.text_=t.getText()||"",this.textOffsetX_=void 0===f?0:f,this.textOffsetY_=void 0===p?0:p,this.textRotateWithView_=void 0!==v&&v,this.textRotation_=void 0===g?0:g,this.strokeKey_=r?("string"==typeof r.strokeStyle?r.strokeStyle:K(r.strokeStyle))+r.lineCap+r.lineDashOffset+"|"+r.lineWidth+r.lineJoin+r.miterLimit+"["+r.lineDash.join()+"]":"",this.textKey_=i.font+i.scale+(i.textAlign||"?"),this.fillKey_=n?"string"==typeof n.fillStyle?n.fillStyle:"|"+K(n.fillStyle):""}else this.text_=""},e}(Fd)},zd=function(t){function e(e,i,n,r,o,s,a){t.call(this),this.declutterTree_=s,this.declutterGroup_=null,this.tolerance_=e,this.maxExtent_=i,this.overlaps_=o,this.pixelRatio_=r,this.resolution_=n,this.renderBuffer_=a,this.replaysByZIndex_={},this.hitDetectionContext_=Se(1,1),this.hitDetectionTransform_=[1,0,0,1,0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addDeclutter=function(t){var e=null;return this.declutterTree_&&(t?(e=this.declutterGroup_)[4]++:(e=this.declutterGroup_=[1/0,1/0,-1/0,-1/0]).push(1)),e},e.prototype.clip=function(t,e){var i=this.getClipCoords(e);t.beginPath(),t.moveTo(i[0],i[1]),t.lineTo(i[2],i[3]),t.lineTo(i[4],i[5]),t.lineTo(i[6],i[7]),t.clip()},e.prototype.hasReplays=function(t){for(var e in this.replaysByZIndex_)for(var i=this.replaysByZIndex_[e],n=0,r=t.length;n<r;++n)if(t[n]in i)return!0;return!1},e.prototype.finish=function(){for(var t in this.replaysByZIndex_){var e=this.replaysByZIndex_[t];for(var i in e)e[i].finish()}},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,s){var a,l=2*(n=Math.round(n))+1,u=Xr(this.hitDetectionTransform_,n+.5,n+.5,1/e,-1/e,-i,-t[0],-t[1]),c=this.hitDetectionContext_;c.canvas.width!==l||c.canvas.height!==l?(c.canvas.width=l,c.canvas.height=l):c.clearRect(0,0,l,l),void 0!==this.renderBuffer_&&(mt(a=[1/0,1/0,-1/0,-1/0],t),nt(a,e*(this.renderBuffer_+n),a));var h,d,f=function(t){if(void 0!==Bd[t])return Bd[t];for(var e=2*t+1,i=new Array(e),n=0;n<e;n++)i[n]=new Array(e);var r=t,o=0,s=0;for(;r>=o;)Yd(i,t+r,t+o),Yd(i,t+o,t+r),Yd(i,t-o,t+r),Yd(i,t-r,t+o),Yd(i,t-r,t-o),Yd(i,t-o,t-r),Yd(i,t+o,t-r),Yd(i,t+r,t-o),2*((s+=1+2*++o)-r)+1>0&&(s+=1-2*(r-=1));return Bd[t]=i,i}(n);function p(t){for(var e=c.getImageData(0,0,l,l).data,i=0;i<l;i++)for(var n=0;n<l;n++)if(f[i][n]&&e[4*(n*l+i)+3]>0){var r=void 0;return(!h||d!=Sd.IMAGE&&d!=Sd.TEXT||-1!==h.indexOf(t))&&(r=o(t)),r||void c.clearRect(0,0,l,l)}}this.declutterTree_&&(h=this.declutterTree_.all().map(function(t){return t.value}));var v,g,m,y,_,b=Object.keys(this.replaysByZIndex_).map(Number);for(b.sort(Hi),v=b.length-1;v>=0;--v){var x=b[v].toString();for(m=this.replaysByZIndex_[x],g=Id.length-1;g>=0;--g)if(void 0!==(y=m[d=Id[g]]))if(!s||d!=Sd.IMAGE&&d!=Sd.TEXT){if(_=y.replayHitDetection(c,u,i,r,p,a))return _}else{var w=s[x];w?w.push(y,u.slice(0)):s[x]=[y,u.slice(0)]}}},e.prototype.getClipCoords=function(t){var e=this.maxExtent_,i=e[0],n=e[1],r=e[2],o=e[3],s=[i,n,i,o,r,o,r,n];return jr(s,0,8,2,t,s),s},e.prototype.getReplay=function(t,e){var i=void 0!==t?t.toString():"0",n=this.replaysByZIndex_[i];void 0===n&&(n={},this.replaysByZIndex_[i]=n);var r=n[e];void 0===r&&(r=new(0,Gd[e])(this.tolerance_,this.maxExtent_,this.resolution_,this.pixelRatio_,this.overlaps_,this.declutterTree_),n[e]=r);return r},e.prototype.getReplays=function(){return this.replaysByZIndex_},e.prototype.isEmpty=function(){return Ut(this.replaysByZIndex_)},e.prototype.replay=function(t,e,i,n,r,o,s){var a=Object.keys(this.replaysByZIndex_).map(Number);a.sort(Hi),t.save(),this.clip(t,e);var l,u,c,h,d,f,p=o||Id;for(l=0,u=a.length;l<u;++l){var v=a[l].toString();for(d=this.replaysByZIndex_[v],c=0,h=p.length;c<h;++c){var g=p[c];if(f=d[g],void 0!==f)if(!s||g!=Sd.IMAGE&&g!=Sd.TEXT)f.replay(t,e,i,n,r);else{var m=s[v];m?m.push(f,e.slice(0)):s[v]=[f,e.slice(0)]}}}t.restore()},e}(wd),Bd={0:[[!0]]};function Yd(t,e,i){var n,r=Math.floor(t.length/2);if(e>=r)for(n=r;n<e;n++)t[n][i]=!0;else if(e<r)for(n=e+1;n<r;n++)t[n][i]=!0}var Vd=zd,Wd=.5,Hd={Point:function(t,e,i,n){var r=i.getImage();if(r){if(r.getImageState()!=Sl.LOADED)return;var o=t.getReplay(i.getZIndex(),Sd.IMAGE);o.setImageStyle(r,t.addDeclutter(!1)),o.drawPoint(e,n)}var s=i.getText();if(s){var a=t.getReplay(i.getZIndex(),Sd.TEXT);a.setTextStyle(s,t.addDeclutter(!!r)),a.drawText(e,n)}},LineString:function(t,e,i,n){var r=i.getStroke();if(r){var o=t.getReplay(i.getZIndex(),Sd.LINE_STRING);o.setFillStrokeStyle(null,r),o.drawLineString(e,n)}var s=i.getText();if(s){var a=t.getReplay(i.getZIndex(),Sd.TEXT);a.setTextStyle(s,t.addDeclutter(!1)),a.drawText(e,n)}},Polygon:function(t,e,i,n){var r=i.getFill(),o=i.getStroke();if(r||o){var s=t.getReplay(i.getZIndex(),Sd.POLYGON);s.setFillStrokeStyle(r,o),s.drawPolygon(e,n)}var a=i.getText();if(a){var l=t.getReplay(i.getZIndex(),Sd.TEXT);l.setTextStyle(a,t.addDeclutter(!1)),l.drawText(e,n)}},MultiPoint:function(t,e,i,n){var r=i.getImage();if(r){if(r.getImageState()!=Sl.LOADED)return;var o=t.getReplay(i.getZIndex(),Sd.IMAGE);o.setImageStyle(r,t.addDeclutter(!1)),o.drawMultiPoint(e,n)}var s=i.getText();if(s){var a=t.getReplay(i.getZIndex(),Sd.TEXT);a.setTextStyle(s,t.addDeclutter(!!r)),a.drawText(e,n)}},MultiLineString:function(t,e,i,n){var r=i.getStroke();if(r){var o=t.getReplay(i.getZIndex(),Sd.LINE_STRING);o.setFillStrokeStyle(null,r),o.drawMultiLineString(e,n)}var s=i.getText();if(s){var a=t.getReplay(i.getZIndex(),Sd.TEXT);a.setTextStyle(s,t.addDeclutter(!1)),a.drawText(e,n)}},MultiPolygon:function(t,e,i,n){var r=i.getFill(),o=i.getStroke();if(o||r){var s=t.getReplay(i.getZIndex(),Sd.POLYGON);s.setFillStrokeStyle(r,o),s.drawMultiPolygon(e,n)}var a=i.getText();if(a){var l=t.getReplay(i.getZIndex(),Sd.TEXT);l.setTextStyle(a,t.addDeclutter(!1)),l.drawText(e,n)}},GeometryCollection:function(t,e,i,n){var r,o,s=e.getGeometriesArray();for(r=0,o=s.length;r<o;++r){var a=Hd[s[r].getType()];a(t,s[r],i,n)}},Circle:function(t,e,i,n){var r=i.getFill(),o=i.getStroke();if(r||o){var s=t.getReplay(i.getZIndex(),Sd.CIRCLE);s.setFillStrokeStyle(r,o),s.drawCircle(e,n)}var a=i.getText();if(a){var l=t.getReplay(i.getZIndex(),Sd.TEXT);l.setTextStyle(a,t.addDeclutter(!1)),l.drawText(e,n)}}};function Ud(t,e){return parseInt(K(t),10)-parseInt(K(e),10)}function Xd(t,e){var i=qd(t,e);return i*i}function qd(t,e){return Wd*t/e}function Kd(t,e,i,n,r,o){var s=!1,a=i.getImage();if(a){var l=a.getImageState();l==Sl.LOADED||l==Sl.ERROR?a.unlistenImageChange(r,o):(l==Sl.IDLE&&a.load(),l=a.getImageState(),a.listenImageChange(r,o),s=!0)}return function(t,e,i,n){var r=i.getGeometryFunction()(e);if(!r)return;var o=r.getSimplifiedGeometry(n);if(i.getRenderer())!function t(e,i,n,r){if(i.getType()==Fe.GEOMETRY_COLLECTION){for(var o=i.getGeometries(),s=0,a=o.length;s<a;++s)t(e,o[s],n,r);return}var l=e.getReplay(n.getZIndex(),Sd.DEFAULT);l.drawCustom(i,r,n.getRenderer())}(t,o,i,e);else{var s=Hd[o.getType()];s(t,o,i,e)}}(t,e,i,n),s}var Zd=function(t){function e(e){t.call(this,e),this.declutterTree_=e.getDeclutter()?Ih()(9,void 0):null,this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=[1/0,1/0,-1/0,-1/0],this.renderedRenderOrder_=null,this.replayGroup_=null,this.replayGroupChanged=!0,this.context=Se(),ue(eh,xe.CLEAR,this.handleFontsChanged_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){he(eh,xe.CLEAR,this.handleFontsChanged_,this),t.prototype.disposeInternal.call(this)},e.prototype.compose=function(t,e,i){var n=e.extent,r=e.pixelRatio,o=i.managed?e.skippedFeatureUids:{},s=e.viewState,a=s.projection,l=s.rotation,u=a.getExtent(),c=this.getLayer().getSource(),h=this.getTransform(e,0),d=i.extent,f=void 0!==d;f&&this.clip(t,e,d);var p=this.replayGroup_;if(p&&!p.isEmpty()){this.declutterTree_&&this.declutterTree_.clear();var v,g=this.getLayer(),m=0,y=0,_=1!==i.opacity,b=g.hasListener(tl.RENDER);if(_||b){var x=t.canvas.width,w=t.canvas.height;if(l){var S=Math.round(Math.sqrt(x*x+w*w));m=(S-x)/2,y=(S-w)/2,x=w=S}this.context.canvas.width=x,this.context.canvas.height=w,v=this.context}else v=t;var T=v.globalAlpha;_||(v.globalAlpha=i.opacity),v!=t&&v.translate(m,y);var E=e.viewHints,C=!(E[ku]||E[Iu]),O=e.size[0]*r,M=e.size[1]*r;if(hh(v,-l,O/2,M/2),p.replay(v,h,l,o,C),c.getWrapX()&&a.canWrapX()&&!at(u,n)){for(var P,k=n[0],I=It(u),L=0;k<u[0];)P=I*--L,h=this.getTransform(e,P),p.replay(v,h,l,o,C),k+=I;for(L=0,k=n[2];k>u[2];)P=I*++L,h=this.getTransform(e,P),p.replay(v,h,l,o,C),k-=I}if(hh(v,l,O/2,M/2),b&&this.dispatchRenderEvent(v,e,h),v!=t){if(_){var A=t.globalAlpha;t.globalAlpha=i.opacity,t.drawImage(v.canvas,-m,-y),t.globalAlpha=A}else t.drawImage(v.canvas,-m,-y);v.translate(-m,-y)}_||(v.globalAlpha=T)}f&&t.restore()},e.prototype.composeFrame=function(t,e,i){var n=this.getTransform(t,0);this.preCompose(i,t,n),this.compose(i,t,e),this.postCompose(i,t,e,n)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){if(this.replayGroup_){var o=e.viewState.resolution,s=e.viewState.rotation,a=this.getLayer(),l={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,s,i,{},function(t){var e=K(t);if(!(e in l))return l[e]=!0,n.call(r,t,a)},null)}},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&this.replayGroup_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e){var i=this.getLayer(),n=i.getSource(),r=t.viewHints[ku],o=t.viewHints[Iu],s=i.getUpdateWhileAnimating(),a=i.getUpdateWhileInteracting();if(!this.dirty_&&!s&&r||!a&&o)return!0;var l=t.extent,u=t.viewState,c=u.projection,h=u.resolution,d=t.pixelRatio,f=i.getRevision(),p=i.getRenderBuffer(),v=i.getRenderOrder();void 0===v&&(v=Ud);var g=nt(l,p*h),m=u.projection.getExtent();if(n.getWrapX()&&u.projection.canWrapX()&&!at(m,t.extent)){var y=It(m),_=Math.max(It(g)/2,y);g[0]=m[0]-_,g[2]=m[2]+_}if(!this.dirty_&&this.renderedResolution_==h&&this.renderedRevision_==f&&this.renderedRenderOrder_==v&&at(this.renderedExtent_,g))return this.replayGroupChanged=!1,!0;this.replayGroup_=null,this.dirty_=!1;var b=new Vd(qd(h,d),g,h,d,n.getOverlaps(),this.declutterTree_,i.getRenderBuffer());n.loadFeatures(g,h,c);var x=function(t){var e,n=t.getStyleFunction()||i.getStyleFunction();if(n&&(e=n(t,h)),e){var r=this.renderFeature(t,h,d,e,b);this.dirty_=this.dirty_||r}}.bind(this);if(v){var w=[];n.forEachFeatureInExtent(g,function(t){w.push(t)}),w.sort(v);for(var S=0,T=w.length;S<T;++S)x(w[S])}else n.forEachFeatureInExtent(g,x);return b.finish(),this.renderedResolution_=h,this.renderedRevision_=f,this.renderedRenderOrder_=v,this.renderedExtent_=g,this.replayGroup_=b,this.replayGroupChanged=!0,!0},e.prototype.renderFeature=function(t,e,i,n,r){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var s=0,a=n.length;s<a;++s)o=Kd(r,t,n[s],Xd(e,i),this.handleStyleImageChange_,this)||o;else o=Kd(r,t,n,Xd(e,i),this.handleStyleImageChange_,this);return o},e}(vd);Zd.handles=function(t){return t.getType()===Xc.VECTOR},Zd.create=function(t,e){return new Zd(e)};var Jd=Zd,Qd={IMAGE:"image",HYBRID:"hybrid",VECTOR:"vector"},tf={image:[Sd.POLYGON,Sd.CIRCLE,Sd.LINE_STRING,Sd.IMAGE,Sd.TEXT],hybrid:[Sd.POLYGON,Sd.LINE_STRING]},ef={image:[Sd.DEFAULT],hybrid:[Sd.IMAGE,Sd.TEXT,Sd.DEFAULT],vector:Id},nf=function(t){function e(e){t.call(this,e,!0),this.declutterTree_=e.getDeclutter()?Ih()(9,void 0):null,this.dirty_=!1,this.renderedLayerRevision_,this.tmpTransform_=[1,0,0,1,0,0];var i=e.getRenderMode();this.zDirection=i===Qd.VECTOR?1:0,i!==Qd.VECTOR&&(this.context=Se()),ue(eh,xe.CLEAR,this.handleFontsChanged_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){he(eh,xe.CLEAR,this.handleFontsChanged_,this),t.prototype.disposeInternal.call(this)},e.prototype.getTile=function(e,i,n,r,o){var s=t.prototype.getTile.call(this,e,i,n,r,o);return s.getState()===Jt.LOADED&&(this.createReplayGroup_(s,r,o),this.context&&this.renderTileImage_(s,r,o)),s},e.prototype.getTileImage=function(t){var e=this.getLayer();return t.getImage(e)},e.prototype.prepareFrame=function(e,i){var n=this.getLayer().getRevision();return this.renderedLayerRevision_!=n&&(this.renderedTiles.length=0),this.renderedLayerRevision_=n,t.prototype.prepareFrame.call(this,e,i)},e.prototype.createReplayGroup_=function(t,e,i){var n=this,r=this.getLayer(),o=r.getRevision(),s=r.getRenderOrder()||null,a=t.getReplayState(r);if(a.dirty||a.renderedRevision!=o||a.renderedRenderOrder!=s){for(var l=r.getSource(),u=l.getTileGrid(),c=l.getTileGridForProjection(i).getResolution(t.tileCoord[0]),h=t.extent,d=function(o,d){var f=t.getTile(t.tileKeys[o]);if(f.getState()==Jt.LOADED){var p=f.tileCoord,v=u.getTileCoordExtent(p),g=Mt(h,v),m=vt(v,g)?null:nt(g,r.getRenderBuffer()*c,n.tmpExtent),y=f.getProjection(),_=!1;gi(i,y)||(_=!0,f.setProjection(i)),a.dirty=!1;var b=new Vd(0,g,c,e,l.getOverlaps(),n.declutterTree_,r.getRenderBuffer()),x=Xd(c,e),w=function(t){var e,i=t.getStyleFunction()||r.getStyleFunction();if(i&&(e=i(t,c)),e){var n=this.renderFeature(t,x,e,b);this.dirty_=this.dirty_||n,a.dirty=a.dirty||n}},S=f.getFeatures();s&&s!==a.renderedRenderOrder&&S.sort(s);for(var T=0,E=S.length;T<E;++T){var C=S[T];_&&(y.getUnits()==Be.TILE_PIXELS&&(y.setWorldExtent(v),y.setExtent(f.getExtent())),C.getGeometry().transform(y,i)),m&&!Lt(m,C.getGeometry().getExtent())||w.call(n,C)}b.finish(),f.setReplayGroup(r,t.tileCoord.toString(),b)}},f=0,p=t.tileKeys.length;f<p;++f)d(f);a.renderedRevision=o,a.renderedRenderOrder=s}},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){var o=e.viewState.resolution,s=e.viewState.rotation;i=void 0==i?0:i;var a,l,u,c,h=this.getLayer(),d={},f=this.renderedTiles;for(u=0,c=f.length;u<c;++u){var p=f[u];if(st(a=nt(p.extent,i*o,a),t))for(var v=0,g=p.tileKeys.length;v<g;++v){var m=p.getTile(p.tileKeys[v]);if(m.getState()==Jt.LOADED){var y=m.getReplayGroup(h,p.tileCoord.toString());l=l||y.forEachFeatureAtCoordinate(t,o,s,i,{},function(t){var e=K(t);if(!(e in d))return d[e]=!0,n.call(r,t,h)},null)}}}return l},e.prototype.getReplayTransform_=function(t,e){var i=this.getLayer().getSource().getTileGrid(),n=t.tileCoord,r=i.getResolution(n[0]),o=e.viewState,s=e.pixelRatio,a=o.resolution/s,l=i.getTileCoordExtent(n,this.tmpExtent),u=o.center,c=Pt(l),h=e.size,d=Math.round(s*h[0]/2),f=Math.round(s*h[1]/2);return Xr(this.tmpTransform_,d,f,r/a,r/a,o.rotation,(c[0]-u[0])/r,(u[1]-c[1])/r)},e.prototype.handleFontsChanged_=function(t){var e=this.getLayer();e.getVisible()&&void 0!==this.renderedLayerRevision_&&e.changed()},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.postCompose=function(e,i,n){var r=this.getLayer(),o=r.getRenderMode();if(o!=Qd.IMAGE){var s,a,l=r.getDeclutter()?{}:null,u=r.getSource(),c=ef[o],h=i.pixelRatio,d=i.viewState.rotation,f=i.size;d&&hh(e,-d,s=Math.round(h*f[0]/2),a=Math.round(h*f[1]/2)),l&&this.declutterTree_.clear();for(var p=i.viewHints,v=!(p[ku]||p[Iu]),g=this.renderedTiles,m=u.getTileGridForProjection(i.viewState.projection),y=[],_=[],b=g.length-1;b>=0;--b){var x=g[b];if(x.getState()!=Jt.ABORT)for(var w=x.tileCoord,S=m.getTileCoordExtent(w,this.tmpExtent)[0]-x.extent[0],T=void 0,E=0,C=x.tileKeys.length;E<C;++E){var O=x.getTile(x.tileKeys[E]);if(O.getState()==Jt.LOADED){var M=O.getReplayGroup(r,w.toString());if(M&&M.hasReplays(c)){T||(T=this.getTransform(i,S));var P=O.tileCoord[0],k=M.getClipCoords(T);e.save(),e.globalAlpha=n.opacity;for(var I=0,L=y.length;I<L;++I){var A=y[I];P<_[I]&&(e.beginPath(),e.moveTo(k[0],k[1]),e.lineTo(k[2],k[3]),e.lineTo(k[4],k[5]),e.lineTo(k[6],k[7]),e.moveTo(A[6],A[7]),e.lineTo(A[4],A[5]),e.lineTo(A[2],A[3]),e.lineTo(A[0],A[1]),e.clip())}M.replay(e,T,d,{},v,c,l),e.restore(),y.push(k),_.push(P)}}}}l&&function(t,e,i,n){for(var r=Object.keys(t).map(Number).sort(Hi),o={},s=0,a=r.length;s<a;++s)for(var l=t[r[s].toString()],u=0,c=l.length;u<c;){var h=l[u++],d=l[u++];h.replay(e,d,i,o,n)}}(l,e,d,v),d&&hh(e,d,s,a)}t.prototype.postCompose.call(this,e,i,n)},e.prototype.renderFeature=function(t,e,i,n){if(!i)return!1;var r=!1;if(Array.isArray(i))for(var o=0,s=i.length;o<s;++o)r=Kd(n,t,i[o],e,this.handleStyleImageChange_,this)||r;else r=Kd(n,t,i,e,this.handleStyleImageChange_,this);return r},e.prototype.renderTileImage_=function(t,e,i){var n=this.getLayer(),r=t.getReplayState(n),o=n.getRevision(),s=tf[n.getRenderMode()];if(s&&r.renderedTileRevision!==o){r.renderedTileRevision=o;var a=t.wrappedTileCoord,l=a[0],u=n.getSource(),c=u.getTileGridForProjection(i),h=c.getResolution(l),d=t.getContext(n),f=u.getTilePixelSize(l,e,i);d.canvas.width=f[0],d.canvas.height=f[1];for(var p=c.getTileCoordExtent(a,this.tmpExtent),v=0,g=t.tileKeys.length;v<g;++v){var m=t.getTile(t.tileKeys[v]);if(m.getState()==Jt.LOADED){var y=e/h,_=Gr(this.tmpTransform_);Hr(_,y,-y),Ur(_,-p[0],-p[3]),m.getReplayGroup(n,t.tileCoord.toString()).replay(d,_,0,{},!0,s)}}}},e}(bd);nf.handles=function(t){return t.getType()===Xc.VECTOR_TILE},nf.create=function(t,e){return new nf(e)};var rf=nf,of=function(t){function e(e){(e=Vt({},e)).controls||(e.controls=rc()),e.interactions||(e.interactions=ed()),t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){var t=new fd(this);return t.registerLayerRenderers([yd,bd,Jd,rf]),t},e}(Yu),sf={BOTTOM_LEFT:"bottom-left",BOTTOM_CENTER:"bottom-center",BOTTOM_RIGHT:"bottom-right",CENTER_LEFT:"center-left",CENTER_CENTER:"center-center",CENTER_RIGHT:"center-right",TOP_LEFT:"top-left",TOP_CENTER:"top-center",TOP_RIGHT:"top-right"},af={ELEMENT:"element",MAP:"map",OFFSET:"offset",POSITION:"position",POSITIONING:"positioning"},lf=function(t){function e(e){t.call(this),this.options=e,this.id=e.id,this.insertFirst=void 0===e.insertFirst||e.insertFirst,this.stopEvent=void 0===e.stopEvent||e.stopEvent,this.element=document.createElement("div"),this.element.className=void 0!==e.className?e.className:"ol-overlay-container "+Hu,this.element.style.position="absolute",this.autoPan=void 0!==e.autoPan&&e.autoPan,this.autoPanAnimation=e.autoPanAnimation||{},this.autoPanMargin=void 0!==e.autoPanMargin?e.autoPanMargin:20,this.rendered={bottom_:"",left_:"",right_:"",top_:"",visible:!0},this.mapPostrenderListenerKey=null,ue(this,Di(af.ELEMENT),this.handleElementChanged,this),ue(this,Di(af.MAP),this.handleMapChanged,this),ue(this,Di(af.OFFSET),this.handleOffsetChanged,this),ue(this,Di(af.POSITION),this.handlePositionChanged,this),ue(this,Di(af.POSITIONING),this.handlePositioningChanged,this),void 0!==e.element&&this.setElement(e.element),this.setOffset(void 0!==e.offset?e.offset:[0,0]),this.setPositioning(void 0!==e.positioning?e.positioning:sf.TOP_LEFT),void 0!==e.position&&this.setPosition(e.position)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getElement=function(){return this.get(af.ELEMENT)},e.prototype.getId=function(){return this.id},e.prototype.getMap=function(){return this.get(af.MAP)},e.prototype.getOffset=function(){return this.get(af.OFFSET)},e.prototype.getPosition=function(){return this.get(af.POSITION)},e.prototype.getPositioning=function(){return this.get(af.POSITIONING)},e.prototype.handleElementChanged=function(){Ce(this.element);var t=this.getElement();t&&this.element.appendChild(t)},e.prototype.handleMapChanged=function(){this.mapPostrenderListenerKey&&(Ee(this.element),de(this.mapPostrenderListenerKey),this.mapPostrenderListenerKey=null);var t=this.getMap();if(t){this.mapPostrenderListenerKey=ue(t,bu,this.render,this),this.updatePixelPosition();var e=this.stopEvent?t.getOverlayContainerStopEvent():t.getOverlayContainer();this.insertFirst?e.insertBefore(this.element,e.childNodes[0]||null):e.appendChild(this.element)}},e.prototype.render=function(){this.updatePixelPosition()},e.prototype.handleOffsetChanged=function(){this.updatePixelPosition()},e.prototype.handlePositionChanged=function(){this.updatePixelPosition(),this.get(af.POSITION)&&this.autoPan&&this.panIntoView()},e.prototype.handlePositioningChanged=function(){this.updatePixelPosition()},e.prototype.setElement=function(t){this.set(af.ELEMENT,t)},e.prototype.setMap=function(t){this.set(af.MAP,t)},e.prototype.setOffset=function(t){this.set(af.OFFSET,t)},e.prototype.setPosition=function(t){this.set(af.POSITION,t)},e.prototype.panIntoView=function(){var t=this.getMap();if(t&&t.getTargetElement()){var e=this.getRect(t.getTargetElement(),t.getSize()),i=this.getElement(),n=this.getRect(i,[function(t){var e=t.offsetWidth,i=getComputedStyle(t);return e+=parseInt(i.marginLeft,10)+parseInt(i.marginRight,10)}(i),function(t){var e=t.offsetHeight,i=getComputedStyle(t);return e+=parseInt(i.marginTop,10)+parseInt(i.marginBottom,10)}(i)]),r=this.autoPanMargin;if(!at(e,n)){var o=n[0]-e[0],s=e[2]-n[2],a=n[1]-e[1],l=e[3]-n[3],u=[0,0];if(o<0?u[0]=o-r:s<0&&(u[0]=Math.abs(s)+r),a<0?u[1]=a-r:l<0&&(u[1]=Math.abs(l)+r),0!==u[0]||0!==u[1]){var c=t.getView().getCenter(),h=t.getPixelFromCoordinate(c),d=[h[0]+u[0],h[1]+u[1]];t.getView().animate({center:t.getCoordinateFromPixel(d),duration:this.autoPanAnimation.duration,easing:this.autoPanAnimation.easing})}}}},e.prototype.getRect=function(t,e){var i=t.getBoundingClientRect(),n=i.left+window.pageXOffset,r=i.top+window.pageYOffset;return[n,r,n+e[0],r+e[1]]},e.prototype.setPositioning=function(t){this.set(af.POSITIONING,t)},e.prototype.setVisible=function(t){this.rendered.visible!==t&&(this.element.style.display=t?"":"none",this.rendered.visible=t)},e.prototype.updatePixelPosition=function(){var t=this.getMap(),e=this.getPosition();if(t&&t.isRendered()&&e){var i=t.getPixelFromCoordinate(e),n=t.getSize();this.updateRenderedPosition(i,n)}else this.setVisible(!1)},e.prototype.updateRenderedPosition=function(t,e){var i=this.element.style,n=this.getOffset(),r=this.getPositioning();this.setVisible(!0);var o=n[0],s=n[1];if(r==sf.BOTTOM_RIGHT||r==sf.CENTER_RIGHT||r==sf.TOP_RIGHT){""!==this.rendered.left_&&(this.rendered.left_=i.left="");var a=Math.round(e[0]-t[0]-o)+"px";this.rendered.right_!=a&&(this.rendered.right_=i.right=a)}else{""!==this.rendered.right_&&(this.rendered.right_=i.right=""),r!=sf.BOTTOM_CENTER&&r!=sf.CENTER_CENTER&&r!=sf.TOP_CENTER||(o-=this.element.offsetWidth/2);var l=Math.round(t[0]+o)+"px";this.rendered.left_!=l&&(this.rendered.left_=i.left=l)}if(r==sf.BOTTOM_LEFT||r==sf.BOTTOM_CENTER||r==sf.BOTTOM_RIGHT){""!==this.rendered.top_&&(this.rendered.top_=i.top="");var u=Math.round(e[1]-t[1]-s)+"px";this.rendered.bottom_!=u&&(this.rendered.bottom_=i.bottom=u)}else{""!==this.rendered.bottom_&&(this.rendered.bottom_=i.bottom=""),r!=sf.CENTER_LEFT&&r!=sf.CENTER_CENTER&&r!=sf.CENTER_RIGHT||(s-=this.element.offsetHeight/2);var c=Math.round(t[1]+s)+"px";this.rendered.top_!=c&&(this.rendered.top_=i.top=c)}},e.prototype.getOptions=function(){return this.options},e}(ji),uf=function(t){function e(i,n,r,o,s,a,l,u,c,h,d,f,p,v,g){if(t.call(this,i,n,{transition:0}),this.context_={},this.loader_,this.replayState_={},this.sourceTiles_=h,this.tileKeys=[],this.extent=null,this.sourceRevision_=r,this.wrappedTileCoord=a,this.loadListenerKeys_=[],this.sourceTileListenerKeys_=[],a){var m=this.extent=c.getTileCoordExtent(a),y=c.getResolution(g),_=u.getZForResolution(y),b=g!=i[0],x=0;if(u.forEachTileCoord(m,_,function(t){var e=Mt(m,u.getTileCoordExtent(t)),i=u.getExtent();if(i&&(e=Mt(e,i,e)),It(e)/y>=.5&&Ot(e)/y>=.5){++x;var n=t.toString(),r=h[n];if(!r&&!b){var a=l(t,d,f);r=h[n]=new p(t,void 0==a?Jt.EMPTY:Jt.IDLE,void 0==a?"":a,o,s),this.sourceTileListenerKeys_.push(ue(r,xe.CHANGE,v))}!r||b&&r.getState()!=Jt.LOADED||(r.consumers++,this.tileKeys.push(n))}}.bind(this)),b&&x==this.tileKeys.length&&this.finishLoading_(),g<=i[0]&&this.state!=Jt.LOADED)for(;g>c.getMinZoom();){var w=new e(i,n,r,o,s,a,l,u,c,h,d,f,p,ge,--g);if(w.state==Jt.LOADED){this.interimTile=w;break}}}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state=Jt.ABORT,this.changed(),this.interimTile&&this.interimTile.dispose();for(var e=0,i=this.tileKeys.length;e<i;++e){var n=this.tileKeys[e],r=this.getTile(n);r.consumers--,0==r.consumers&&(delete this.sourceTiles_[n],r.dispose())}this.tileKeys.length=0,this.sourceTiles_=null,this.loadListenerKeys_.forEach(de),this.loadListenerKeys_.length=0,this.sourceTileListenerKeys_.forEach(de),this.sourceTileListenerKeys_.length=0,t.prototype.disposeInternal.call(this)},e.prototype.getContext=function(t){var e=K(t);return e in this.context_||(this.context_[e]=Se()),this.context_[e]},e.prototype.getImage=function(t){return-1==this.getReplayState(t).renderedTileRevision?null:this.getContext(t).canvas},e.prototype.getReplayState=function(t){var e=K(t);return e in this.replayState_||(this.replayState_[e]={dirty:!1,renderedRenderOrder:null,renderedRevision:-1,renderedTileRevision:-1}),this.replayState_[e]},e.prototype.getKey=function(){return this.tileKeys.join("/")+"-"+this.sourceRevision_},e.prototype.getTile=function(t){return this.sourceTiles_[t]},e.prototype.load=function(){var t=0,e={};this.state==Jt.IDLE&&this.setState(Jt.LOADING),this.state==Jt.LOADING&&this.tileKeys.forEach(function(i){var n=this.getTile(i);if(n.state==Jt.IDLE&&(n.setLoader(this.loader_),n.load()),n.state==Jt.LOADING){var r=ue(n,xe.CHANGE,function(i){var r=n.getState();if(r==Jt.LOADED||r==Jt.ERROR){var o=K(n);r==Jt.ERROR?e[o]=!0:(--t,delete e[o]),t-Object.keys(e).length==0&&this.finishLoading_()}}.bind(this));this.loadListenerKeys_.push(r),++t}}.bind(this)),t-Object.keys(e).length==0&&setTimeout(this.finishLoading_.bind(this),0)},e.prototype.finishLoading_=function(){for(var t=this.tileKeys.length,e=0,i=t-1;i>=0;--i){var n=this.getTile(this.tileKeys[i]).getState();n!=Jt.LOADED&&--t,n==Jt.EMPTY&&++e}t==this.tileKeys.length?(this.loadListenerKeys_.forEach(de),this.loadListenerKeys_.length=0,this.setState(Jt.LOADED)):this.setState(e==this.tileKeys.length?Jt.EMPTY:Jt.ERROR)},e}(we);function cf(t,e){var i=Oh(e,t.getFormat(),t.onLoad.bind(t),t.onError.bind(t));t.setLoader(i)}var hf=[0,0,4096,4096],df=function(t){function e(e,i,n,r,o,s){t.call(this,e,i,s),this.consumers=0,this.extent_=null,this.format_=r,this.features_=null,this.loader_,this.projection_=null,this.replayGroups_={},this.tileLoadFunction_=o,this.url_=n}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.features_=null,this.replayGroups_={},this.state=Jt.ABORT,this.changed(),t.prototype.disposeInternal.call(this)},e.prototype.getExtent=function(){return this.extent_||hf},e.prototype.getFormat=function(){return this.format_},e.prototype.getFeatures=function(){return this.features_},e.prototype.getKey=function(){return this.url_},e.prototype.getProjection=function(){return this.projection_},e.prototype.getReplayGroup=function(t,e){return this.replayGroups_[K(t)+","+e]},e.prototype.load=function(){this.state==Jt.IDLE&&(this.setState(Jt.LOADING),this.tileLoadFunction_(this,this.url_),this.loader_(null,NaN,null))},e.prototype.onLoad=function(t,e,i){this.setProjection(e),this.setFeatures(t),this.setExtent(i)},e.prototype.onError=function(){this.setState(Jt.ERROR)},e.prototype.setExtent=function(t){this.extent_=t},e.prototype.setFeatures=function(t){this.features_=t,this.setState(Jt.LOADED)},e.prototype.setProjection=function(t){this.projection_=t},e.prototype.setReplayGroup=function(t,e,i){this.replayGroups_[K(t)+","+e]=i},e.prototype.setLoader=function(t){this.loader_=t},e}(we);var ff=function(t){this.source_=t};ff.prototype.isAnimated=function(){return!1},ff.prototype.getType=function(){return X()},ff.prototype.getSource=function(){return this.source_};var pf=ff,vf=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return 35632},e}(pf),gf=function(t){function e(e){t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getType=function(){return 35633},e}(pf),mf=new vf("precision mediump float;\nvarying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_fillColor;\nuniform vec4 u_strokeColor;\nuniform vec2 u_size;\n\nvoid main(void) {\n  vec2 windowCenter = vec2((v_center.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_center.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  vec2 windowOffset = vec2((v_offset.x + 1.0) / 2.0 * u_size.x * v_pixelRatio,\n      (v_offset.y + 1.0) / 2.0 * u_size.y * v_pixelRatio);\n  float radius = length(windowCenter - windowOffset);\n  float dist = length(windowCenter - gl_FragCoord.xy);\n  if (dist > radius + v_halfWidth) {\n    if (u_strokeColor.a == 0.0) {\n      gl_FragColor = u_fillColor;\n    } else {\n      gl_FragColor = u_strokeColor;\n    }\n    gl_FragColor.a = gl_FragColor.a - (dist - (radius + v_halfWidth));\n  } else if (u_fillColor.a == 0.0) {\n    // Hooray, no fill, just stroke. We can use real antialiasing.\n    gl_FragColor = u_strokeColor;\n    if (dist < radius - v_halfWidth) {\n      gl_FragColor.a = gl_FragColor.a - (radius - v_halfWidth - dist);\n    }\n  } else {\n    gl_FragColor = u_fillColor;\n    float strokeDist = radius - v_halfWidth;\n    float antialias = 2.0 * v_pixelRatio;\n    if (dist > strokeDist) {\n      gl_FragColor = u_strokeColor;\n    } else if (dist >= strokeDist - antialias) {\n      float step = smoothstep(strokeDist - antialias, strokeDist, dist);\n      gl_FragColor = mix(u_fillColor, u_strokeColor, step);\n    }\n  }\n  gl_FragColor.a = gl_FragColor.a * u_opacity;\n  if (gl_FragColor.a <= 0.0) {\n    discard;\n  }\n}\n"),yf=new gf("varying vec2 v_center;\nvarying vec2 v_offset;\nvarying float v_halfWidth;\nvarying float v_pixelRatio;\n\n\nattribute vec2 a_position;\nattribute float a_instruction;\nattribute float a_radius;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n  mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  v_center = vec4(u_projectionMatrix * vec4(a_position, 0.0, 1.0)).xy;\n  v_pixelRatio = u_pixelRatio;\n  float lineWidth = u_lineWidth * u_pixelRatio;\n  v_halfWidth = lineWidth / 2.0;\n  if (lineWidth == 0.0) {\n    lineWidth = 2.0 * u_pixelRatio;\n  }\n  vec2 offset;\n  // Radius with anitaliasing (roughly).\n  float radius = a_radius + 3.0 * u_pixelRatio;\n  // Until we get gl_VertexID in WebGL, we store an instruction.\n  if (a_instruction == 0.0) {\n    // Offsetting the edges of the triangle by lineWidth / 2 is necessary, however\n    // we should also leave some space for the antialiasing, thus we offset by lineWidth.\n    offset = vec2(-1.0, 1.0);\n  } else if (a_instruction == 1.0) {\n    offset = vec2(-1.0, -1.0);\n  } else if (a_instruction == 2.0) {\n    offset = vec2(1.0, -1.0);\n  } else {\n    offset = vec2(1.0, 1.0);\n  }\n\n  gl_Position = u_projectionMatrix * vec4(a_position + offset * radius, 0.0, 1.0) +\n      offsetMatrix * vec4(offset * lineWidth, 0.0, 0.0);\n  v_offset = vec4(u_projectionMatrix * vec4(a_position.x + a_radius, a_position.y,\n      0.0, 1.0)).xy;\n\n  if (distance(v_center, v_offset) > 20000.0) {\n    gl_Position = vec4(v_center, 0.0, 1.0);\n  }\n}\n\n\n"),_f=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,"u_projectionMatrix"),this.u_offsetScaleMatrix=t.getUniformLocation(e,"u_offsetScaleMatrix"),this.u_offsetRotateMatrix=t.getUniformLocation(e,"u_offsetRotateMatrix"),this.u_lineWidth=t.getUniformLocation(e,"u_lineWidth"),this.u_pixelRatio=t.getUniformLocation(e,"u_pixelRatio"),this.u_opacity=t.getUniformLocation(e,"u_opacity"),this.u_fillColor=t.getUniformLocation(e,"u_fillColor"),this.u_strokeColor=t.getUniformLocation(e,"u_strokeColor"),this.u_size=t.getUniformLocation(e,"u_size"),this.a_position=t.getAttribLocation(e,"a_position"),this.a_instruction=t.getAttribLocation(e,"a_instruction"),this.a_radius=t.getAttribLocation(e,"a_radius")};function bf(t,e){return t[0]=e[0],t[1]=e[1],t[4]=e[2],t[5]=e[3],t[12]=e[4],t[13]=e[5],t}var xf=function(t){function e(e,i){t.call(this),this.tolerance=e,this.maxExtent=i,this.origin=Et(i),this.projectionMatrix_=[1,0,0,1,0,0],this.offsetRotateMatrix_=[1,0,0,1,0,0],this.offsetScaleMatrix_=[1,0,0,1,0,0],this.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.indices=[],this.indicesBuffer=null,this.startIndices=[],this.startIndicesFeature=[],this.vertices=[],this.verticesBuffer=null,this.lineStringReplay=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeleteResourcesFunction=function(t){return X()},e.prototype.finish=function(t){X()},e.prototype.setUpProgram=function(t,e,i,n){return X()},e.prototype.shutDownProgram=function(t,e){X()},e.prototype.drawReplay=function(t,e,i,n){X()},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,n,r){return X()},e.prototype.drawHitDetectionReplay=function(t,e,i,n,r,o){return r?this.drawHitDetectionReplayOneByOne(t,e,i,n,o):this.drawHitDetectionReplayAll(t,e,i,n)},e.prototype.drawHitDetectionReplayAll=function(t,e,i,n){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawReplay(t,e,i,!0);var r=n(null);return r||void 0},e.prototype.replay=function(t,e,i,n,r,o,s,a,l,u,c){var h,d,f,p,v,g,m,y,_=t.getGL();this.lineStringReplay&&(h=_.isEnabled(_.STENCIL_TEST),d=_.getParameter(_.STENCIL_FUNC),f=_.getParameter(_.STENCIL_VALUE_MASK),p=_.getParameter(_.STENCIL_REF),v=_.getParameter(_.STENCIL_WRITEMASK),g=_.getParameter(_.STENCIL_FAIL),m=_.getParameter(_.STENCIL_PASS_DEPTH_PASS),y=_.getParameter(_.STENCIL_PASS_DEPTH_FAIL),_.enable(_.STENCIL_TEST),_.clear(_.STENCIL_BUFFER_BIT),_.stencilMask(255),_.stencilFunc(_.ALWAYS,1,255),_.stencilOp(_.KEEP,_.KEEP,_.REPLACE),this.lineStringReplay.replay(t,e,i,n,r,o,s,a,l,u,c),_.stencilMask(0),_.stencilFunc(_.NOTEQUAL,1,255)),t.bindBuffer(34962,this.verticesBuffer),t.bindBuffer(34963,this.indicesBuffer);var b=this.setUpProgram(_,t,r,o),x=Gr(this.projectionMatrix_);Hr(x,2/(i*r[0]),2/(i*r[1])),Wr(x,-n),Ur(x,-(e[0]-this.origin[0]),-(e[1]-this.origin[1]));var w=Gr(this.offsetScaleMatrix_);Hr(w,2/r[0],2/r[1]);var S,T=Gr(this.offsetRotateMatrix_);return 0!==n&&Wr(T,-n),_.uniformMatrix4fv(b.u_projectionMatrix,!1,bf(this.tmpMat4_,x)),_.uniformMatrix4fv(b.u_offsetScaleMatrix,!1,bf(this.tmpMat4_,w)),_.uniformMatrix4fv(b.u_offsetRotateMatrix,!1,bf(this.tmpMat4_,T)),_.uniform1f(b.u_opacity,s),void 0===l?this.drawReplay(_,t,a,!1):S=this.drawHitDetectionReplay(_,t,a,l,u,c),this.shutDownProgram(_,b),this.lineStringReplay&&(h||_.disable(_.STENCIL_TEST),_.clear(_.STENCIL_BUFFER_BIT),_.stencilFunc(d,p,f),_.stencilMask(v),_.stencilOp(g,y,m)),S},e.prototype.drawElements=function(t,e,i,n){var r=e.hasOESElementIndexUint?5125:5123,o=n-i,s=i*(e.hasOESElementIndexUint?4:2);t.drawElements(4,o,r,s)},e}(rd),wf=[0,0,0,1],Sf=[],Tf=[0,0,0,1],Ef=Number.EPSILON||2.220446049250313e-16,Cf=function(t,e,i,n,r,o){var s=(i-t)*(o-e)-(r-t)*(n-e);return s<=Ef&&s>=-Ef?void 0:s>0},Of=35044,Mf=function(t,e){this.arr_=void 0!==t?t:[],this.usage_=void 0!==e?e:Of};Mf.prototype.getArray=function(){return this.arr_},Mf.prototype.getUsage=function(){return this.usage_};var Pf=Mf,kf=function(t){function e(e,i){t.call(this,e,i),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.radius_=0,this.state_={fillColor:null,strokeColor:null,lineDash:null,lineDashOffset:void 0,lineWidth:void 0,changed:!1}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,i,n){var r,o,s=this.vertices.length,a=this.indices.length,l=s/4;for(r=e,o=i;r<o;r+=n)this.vertices[s++]=t[r],this.vertices[s++]=t[r+1],this.vertices[s++]=0,this.vertices[s++]=this.radius_,this.vertices[s++]=t[r],this.vertices[s++]=t[r+1],this.vertices[s++]=1,this.vertices[s++]=this.radius_,this.vertices[s++]=t[r],this.vertices[s++]=t[r+1],this.vertices[s++]=2,this.vertices[s++]=this.radius_,this.vertices[s++]=t[r],this.vertices[s++]=t[r+1],this.vertices[s++]=3,this.vertices[s++]=this.radius_,this.indices[a++]=l,this.indices[a++]=l+1,this.indices[a++]=l+2,this.indices[a++]=l+2,this.indices[a++]=l+3,this.indices[a++]=l,l+=4},e.prototype.drawCircle=function(t,e){var i=t.getRadius(),n=t.getStride();if(i){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.radius_=i;var r=t.getFlatCoordinates();r=Nr(r,0,2,n,-this.origin[0],-this.origin[1]),this.drawCoordinates_(r,0,2,n)}else if(this.state_.changed&&(this.styles_.pop(),this.styles_.length)){var o=this.styles_[this.styles_.length-1];this.state_.fillColor=o[0],this.state_.strokeColor=o[1],this.state_.lineWidth=o[2],this.state_.changed=!1}},e.prototype.finish=function(t){this.verticesBuffer=new Pf(this.vertices),this.indicesBuffer=new Pf(this.indices),this.startIndices.push(this.indices.length),0===this.styleIndices_.length&&this.styles_.length>0&&(this.styles_=[]),this.vertices=null,this.indices=null},e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer;return function(){t.deleteBuffer(e),t.deleteBuffer(i)}},e.prototype.setUpProgram=function(t,e,i,n){var r,o=e.getProgram(mf,yf);return this.defaultLocations_?r=this.defaultLocations_:(r=new _f(t,o),this.defaultLocations_=r),e.useProgram(o),t.enableVertexAttribArray(r.a_position),t.vertexAttribPointer(r.a_position,2,5126,!1,16,0),t.enableVertexAttribArray(r.a_instruction),t.vertexAttribPointer(r.a_instruction,1,5126,!1,16,8),t.enableVertexAttribArray(r.a_radius),t.vertexAttribPointer(r.a_radius,1,5126,!1,16,12),t.uniform2fv(r.u_size,i),t.uniform1f(r.u_pixelRatio,n),r},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_instruction),t.disableVertexAttribArray(e.a_radius)},e.prototype.drawReplay=function(t,e,i,n){var r,o,s,a;if(Ut(i))for(s=this.startIndices[this.startIndices.length-1],r=this.styleIndices_.length-1;r>=0;--r)o=this.styleIndices_[r],a=this.styles_[r],this.setFillStyle_(t,a[0]),this.setStrokeStyle_(t,a[1],a[2]),this.drawElements(t,e,o,s),s=o;else this.drawReplaySkipping_(t,e,i)},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,n,r){var o,s,a,l,u,c,h;for(h=this.startIndices.length-2,a=this.startIndices[h+1],o=this.styleIndices_.length-1;o>=0;--o)for(l=this.styles_[o],this.setFillStyle_(t,l[0]),this.setStrokeStyle_(t,l[1],l[2]),u=this.styleIndices_[o];h>=0&&this.startIndices[h]>=u;){if(s=this.startIndices[h],void 0===i[K(c=this.startIndicesFeature[h])]&&c.getGeometry()&&(void 0===r||Lt(r,c.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,s,a);var d=n(c);if(d)return d}h--,a=s}},e.prototype.drawReplaySkipping_=function(t,e,i){var n,r,o,s,a,l,u;for(l=this.startIndices.length-2,o=r=this.startIndices[l+1],n=this.styleIndices_.length-1;n>=0;--n){for(s=this.styles_[n],this.setFillStyle_(t,s[0]),this.setStrokeStyle_(t,s[1],s[2]),a=this.styleIndices_[n];l>=0&&this.startIndices[l]>=a;)u=this.startIndices[l],i[K(this.startIndicesFeature[l])]&&(r!==o&&this.drawElements(t,e,r,o),o=u),l--,r=u;r!==o&&this.drawElements(t,e,r,o),r=o=a}},e.prototype.setFillStyle_=function(t,e){t.uniform4fv(this.defaultLocations_.u_fillColor,e)},e.prototype.setStrokeStyle_=function(t,e,i){t.uniform4fv(this.defaultLocations_.u_strokeColor,e),t.uniform1f(this.defaultLocations_.u_lineWidth,i)},e.prototype.setFillStrokeStyle=function(t,e){var i,n;if(e){var r=e.getLineDash();this.state_.lineDash=r||Sf;var o=e.getLineDashOffset();this.state_.lineDashOffset=o||0,i=(i=e.getColor())instanceof CanvasGradient||i instanceof CanvasPattern?Tf:al(i).map(function(t,e){return 3!=e?t/255:t})||Tf,n=void 0!==(n=e.getWidth())?n:1}else i=[0,0,0,0],n=0;var s=t?t.getColor():[0,0,0,0];s=s instanceof CanvasGradient||s instanceof CanvasPattern?wf:al(s).map(function(t,e){return 3!=e?t/255:t})||wf,this.state_.strokeColor&&Zi(this.state_.strokeColor,i)&&this.state_.fillColor&&Zi(this.state_.fillColor,s)&&this.state_.lineWidth===n||(this.state_.changed=!0,this.state_.fillColor=s,this.state_.strokeColor=i,this.state_.lineWidth=n,this.styles_.push([s,i,n]))},e}(xf),If=new vf("precision mediump float;\nvarying vec2 v_texCoord;\nvarying float v_opacity;\n\nuniform float u_opacity;\nuniform sampler2D u_image;\n\nvoid main(void) {\n  vec4 texColor = texture2D(u_image, v_texCoord);\n  gl_FragColor.rgb = texColor.rgb;\n  float alpha = texColor.a * v_opacity * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n"),Lf=new gf("varying vec2 v_texCoord;\nvarying float v_opacity;\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nattribute vec2 a_offsets;\nattribute float a_opacity;\nattribute float a_rotateWithView;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n  mat4 offsetMatrix = u_offsetScaleMatrix;\n  if (a_rotateWithView == 1.0) {\n    offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  }\n  vec4 offsets = offsetMatrix * vec4(a_offsets, 0.0, 0.0);\n  gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0) + offsets;\n  v_texCoord = a_texCoord;\n  v_opacity = a_opacity;\n}\n\n\n"),Af=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,"u_projectionMatrix"),this.u_offsetScaleMatrix=t.getUniformLocation(e,"u_offsetScaleMatrix"),this.u_offsetRotateMatrix=t.getUniformLocation(e,"u_offsetRotateMatrix"),this.u_opacity=t.getUniformLocation(e,"u_opacity"),this.u_image=t.getUniformLocation(e,"u_image"),this.a_position=t.getAttribLocation(e,"a_position"),this.a_texCoord=t.getAttribLocation(e,"a_texCoord"),this.a_offsets=t.getAttribLocation(e,"a_offsets"),this.a_opacity=t.getAttribLocation(e,"a_opacity"),this.a_rotateWithView=t.getAttribLocation(e,"a_rotateWithView")},Rf={LOST:"webglcontextlost",RESTORED:"webglcontextrestored"};function Ff(t,e,i){var n=t.createTexture();return t.bindTexture(t.TEXTURE_2D,n),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),void 0!==e&&t.texParameteri(wa,ba,e),void 0!==i&&t.texParameteri(wa,xa,i),n}function Df(t,e,i,n,r){var o=Ff(t,n,r);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,e,i,0,t.RGBA,t.UNSIGNED_BYTE,null),o}function jf(t,e,i,n){var r=Ff(t,i,n);return t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,e),r}var Nf=function(t){function e(e,i){t.call(this),this.canvas_=e,this.gl_=i,this.bufferCache_={},this.shaderCache_={},this.programCache_={},this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null,this.hasOESElementIndexUint=Ui(Ca,"OES_element_index_uint"),this.hasOESElementIndexUint&&i.getExtension("OES_element_index_uint"),ue(this.canvas_,Rf.LOST,this.handleWebGLContextLost,this),ue(this.canvas_,Rf.RESTORED,this.handleWebGLContextRestored,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bindBuffer=function(t,e){var i=this.getGL(),n=e.getArray(),r=K(e);if(r in this.bufferCache_){var o=this.bufferCache_[r];i.bindBuffer(t,o.buffer)}else{var s,a=i.createBuffer();i.bindBuffer(t,a),34962==t?s=new Float32Array(n):34963==t&&(s=this.hasOESElementIndexUint?new Uint32Array(n):new Uint16Array(n)),i.bufferData(t,s,e.getUsage()),this.bufferCache_[r]={buf:e,buffer:a}}},e.prototype.deleteBuffer=function(t){var e=this.getGL(),i=K(t),n=this.bufferCache_[i];e.isContextLost()||e.deleteBuffer(n.buffer),delete this.bufferCache_[i]},e.prototype.disposeInternal=function(){fe(this.canvas_);var t=this.getGL();if(!t.isContextLost()){for(var e in this.bufferCache_)t.deleteBuffer(this.bufferCache_[e].buffer);for(var i in this.programCache_)t.deleteProgram(this.programCache_[i]);for(var n in this.shaderCache_)t.deleteShader(this.shaderCache_[n]);t.deleteFramebuffer(this.hitDetectionFramebuffer_),t.deleteRenderbuffer(this.hitDetectionRenderbuffer_),t.deleteTexture(this.hitDetectionTexture_)}},e.prototype.getCanvas=function(){return this.canvas_},e.prototype.getGL=function(){return this.gl_},e.prototype.getHitDetectionFramebuffer=function(){return this.hitDetectionFramebuffer_||this.initHitDetectionFramebuffer_(),this.hitDetectionFramebuffer_},e.prototype.getShader=function(t){var e=K(t);if(e in this.shaderCache_)return this.shaderCache_[e];var i=this.getGL(),n=i.createShader(t.getType());return i.shaderSource(n,t.getSource()),i.compileShader(n),this.shaderCache_[e]=n,n},e.prototype.getProgram=function(t,e){var i=K(t)+"/"+K(e);if(i in this.programCache_)return this.programCache_[i];var n=this.getGL(),r=n.createProgram();return n.attachShader(r,this.getShader(t)),n.attachShader(r,this.getShader(e)),n.linkProgram(r),this.programCache_[i]=r,r},e.prototype.handleWebGLContextLost=function(){Wt(this.bufferCache_),Wt(this.shaderCache_),Wt(this.programCache_),this.currentProgram_=null,this.hitDetectionFramebuffer_=null,this.hitDetectionTexture_=null,this.hitDetectionRenderbuffer_=null},e.prototype.handleWebGLContextRestored=function(){},e.prototype.initHitDetectionFramebuffer_=function(){var t=this.gl_,e=t.createFramebuffer();t.bindFramebuffer(t.FRAMEBUFFER,e);var i=Df(t,1,1),n=t.createRenderbuffer();t.bindRenderbuffer(t.RENDERBUFFER,n),t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,1,1),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,i,0),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,n),t.bindTexture(t.TEXTURE_2D,null),t.bindRenderbuffer(t.RENDERBUFFER,null),t.bindFramebuffer(t.FRAMEBUFFER,null),this.hitDetectionFramebuffer_=e,this.hitDetectionTexture_=i,this.hitDetectionRenderbuffer_=n},e.prototype.useProgram=function(t){return t!=this.currentProgram_&&(this.getGL().useProgram(t),this.currentProgram_=t,!0)},e}(re),$f=function(t){function e(e,i){t.call(this,e,i),this.anchorX=void 0,this.anchorY=void 0,this.groupIndices=[],this.hitDetectionGroupIndices=[],this.height=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.defaultLocations=null,this.opacity=void 0,this.originX=void 0,this.originY=void 0,this.rotateWithView=void 0,this.rotation=void 0,this.scale=void 0,this.width=void 0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer,n=this.getTextures(!0),r=t.getGL();return function(){var o,s;if(!r.isContextLost())for(o=0,s=n.length;o<s;++o)r.deleteTexture(n[o]);t.deleteBuffer(e),t.deleteBuffer(i)}},e.prototype.drawCoordinates=function(t,e,i,n){var r,o,s,a,l,u,c=this.anchorX,h=this.anchorY,d=this.height,f=this.imageHeight,p=this.imageWidth,v=this.opacity,g=this.originX,m=this.originY,y=this.rotateWithView?1:0,_=-this.rotation,b=this.scale,x=this.width,w=Math.cos(_),S=Math.sin(_),T=this.indices.length,E=this.vertices.length;for(r=e;r<i;r+=n)l=t[r]-this.origin[0],u=t[r+1]-this.origin[1],o=E/8,s=-b*c,a=-b*(d-h),this.vertices[E++]=l,this.vertices[E++]=u,this.vertices[E++]=s*w-a*S,this.vertices[E++]=s*S+a*w,this.vertices[E++]=g/p,this.vertices[E++]=(m+d)/f,this.vertices[E++]=v,this.vertices[E++]=y,s=b*(x-c),a=-b*(d-h),this.vertices[E++]=l,this.vertices[E++]=u,this.vertices[E++]=s*w-a*S,this.vertices[E++]=s*S+a*w,this.vertices[E++]=(g+x)/p,this.vertices[E++]=(m+d)/f,this.vertices[E++]=v,this.vertices[E++]=y,s=b*(x-c),a=b*h,this.vertices[E++]=l,this.vertices[E++]=u,this.vertices[E++]=s*w-a*S,this.vertices[E++]=s*S+a*w,this.vertices[E++]=(g+x)/p,this.vertices[E++]=m/f,this.vertices[E++]=v,this.vertices[E++]=y,s=-b*c,a=b*h,this.vertices[E++]=l,this.vertices[E++]=u,this.vertices[E++]=s*w-a*S,this.vertices[E++]=s*S+a*w,this.vertices[E++]=g/p,this.vertices[E++]=m/f,this.vertices[E++]=v,this.vertices[E++]=y,this.indices[T++]=o,this.indices[T++]=o+1,this.indices[T++]=o+2,this.indices[T++]=o,this.indices[T++]=o+2,this.indices[T++]=o+3;return E},e.prototype.createTextures=function(t,e,i,n){var r,o,s,a,l=e.length;for(a=0;a<l;++a)(s=K(o=e[a]))in i?r=i[s]:(r=jf(n,o,33071,33071),i[s]=r),t[a]=r},e.prototype.setUpProgram=function(t,e,i,n){var r,o=e.getProgram(If,Lf);return this.defaultLocations?r=this.defaultLocations:(r=new Af(t,o),this.defaultLocations=r),e.useProgram(o),t.enableVertexAttribArray(r.a_position),t.vertexAttribPointer(r.a_position,2,5126,!1,32,0),t.enableVertexAttribArray(r.a_offsets),t.vertexAttribPointer(r.a_offsets,2,5126,!1,32,8),t.enableVertexAttribArray(r.a_texCoord),t.vertexAttribPointer(r.a_texCoord,2,5126,!1,32,16),t.enableVertexAttribArray(r.a_opacity),t.vertexAttribPointer(r.a_opacity,1,5126,!1,32,24),t.enableVertexAttribArray(r.a_rotateWithView),t.vertexAttribPointer(r.a_rotateWithView,1,5126,!1,32,28),r},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_offsets),t.disableVertexAttribArray(e.a_texCoord),t.disableVertexAttribArray(e.a_opacity),t.disableVertexAttribArray(e.a_rotateWithView)},e.prototype.drawReplay=function(t,e,i,n){var r,o,s,a=n?this.getHitDetectionTextures():this.getTextures(),l=n?this.hitDetectionGroupIndices:this.groupIndices;if(Ut(i))for(r=0,o=a.length,s=0;r<o;++r){t.bindTexture(wa,a[r]);var u=l[r];this.drawElements(t,e,s,u),s=u}else this.drawReplaySkipping(t,e,i,a,l)},e.prototype.drawReplaySkipping=function(t,e,i,n,r){var o,s,a=0;for(o=0,s=n.length;o<s;++o){t.bindTexture(wa,n[o]);for(var l=o>0?r[o-1]:0,u=r[o],c=l,h=l;a<this.startIndices.length&&this.startIndices[a]<=u;){void 0!==i[K(this.startIndicesFeature[a])]?(c!==h&&this.drawElements(t,e,c,h),h=c=a===this.startIndices.length-1?u:this.startIndices[a+1]):h=a===this.startIndices.length-1?u:this.startIndices[a+1],a++}c!==h&&this.drawElements(t,e,c,h)}},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,n,r){var o,s,a,l,u,c=this.startIndices.length-1,h=this.getHitDetectionTextures();for(o=h.length-1;o>=0;--o)for(t.bindTexture(wa,h[o]),s=o>0?this.hitDetectionGroupIndices[o-1]:0,l=this.hitDetectionGroupIndices[o];c>=0&&this.startIndices[c]>=s;){if(a=this.startIndices[c],void 0===i[K(u=this.startIndicesFeature[c])]&&u.getGeometry()&&(void 0===r||Lt(r,u.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,a,l);var d=n(u);if(d)return d}l=a,c--}},e.prototype.finish=function(t){this.anchorX=void 0,this.anchorY=void 0,this.height=void 0,this.imageHeight=void 0,this.imageWidth=void 0,this.indices=null,this.opacity=void 0,this.originX=void 0,this.originY=void 0,this.rotateWithView=void 0,this.rotation=void 0,this.scale=void 0,this.vertices=null,this.width=void 0},e.prototype.getTextures=function(t){return X()},e.prototype.getHitDetectionTextures=function(){return X()},e}(xf),Gf=function(t){function e(e,i){t.call(this,e,i),this.images_=[],this.hitDetectionImages_=[],this.textures_=[],this.hitDetectionTextures_=[]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawMultiPoint=function(t,e){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var i=t.getFlatCoordinates(),n=t.getStride();this.drawCoordinates(i,0,i.length,n)},e.prototype.drawPoint=function(t,e){this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var i=t.getFlatCoordinates(),n=t.getStride();this.drawCoordinates(i,0,i.length,n)},e.prototype.finish=function(e){var i=e.getGL();this.groupIndices.push(this.indices.length),this.hitDetectionGroupIndices.push(this.indices.length),this.verticesBuffer=new Pf(this.vertices);var n=this.indices;this.indicesBuffer=new Pf(n);var r={};this.createTextures(this.textures_,this.images_,r,i),this.createTextures(this.hitDetectionTextures_,this.hitDetectionImages_,r,i),this.images_=null,this.hitDetectionImages_=null,t.prototype.finish.call(this,e)},e.prototype.setImageStyle=function(t){var e=t.getAnchor(),i=t.getImage(1),n=t.getImageSize(),r=t.getHitDetectionImage(1),o=t.getOpacity(),s=t.getOrigin(),a=t.getRotateWithView(),l=t.getRotation(),u=t.getSize(),c=t.getScale();0===this.images_.length?this.images_.push(i):K(this.images_[this.images_.length-1])!=K(i)&&(this.groupIndices.push(this.indices.length),this.images_.push(i)),0===this.hitDetectionImages_.length?this.hitDetectionImages_.push(r):K(this.hitDetectionImages_[this.hitDetectionImages_.length-1])!=K(r)&&(this.hitDetectionGroupIndices.push(this.indices.length),this.hitDetectionImages_.push(r)),this.anchorX=e[0],this.anchorY=e[1],this.height=u[1],this.imageHeight=n[1],this.imageWidth=n[0],this.opacity=o,this.originX=s[0],this.originY=s[1],this.rotation=l,this.rotateWithView=a,this.scale=c,this.width=u[0]},e.prototype.getTextures=function(t){return t?this.textures_.concat(this.hitDetectionTextures_):this.textures_},e.prototype.getHitDetectionTextures=function(){return this.hitDetectionTextures_},e}($f);function zf(t,e,i,n){var r=i-n;return t[e]===t[r]&&t[e+1]===t[r+1]&&(i-e)/n>3&&!!Ao(t,e,i,n)}var Bf=new vf("precision mediump float;\nvarying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\n\nuniform float u_opacity;\nuniform vec4 u_color;\nuniform vec2 u_size;\nuniform float u_pixelRatio;\n\nvoid main(void) {\n  if (v_round > 0.0) {\n    vec2 windowCoords = vec2((v_roundVertex.x + 1.0) / 2.0 * u_size.x * u_pixelRatio,\n        (v_roundVertex.y + 1.0) / 2.0 * u_size.y * u_pixelRatio);\n    if (length(windowCoords - gl_FragCoord.xy) > v_halfWidth * u_pixelRatio) {\n      discard;\n    }\n  }\n  gl_FragColor = u_color;\n  float alpha = u_color.a * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n"),Yf=new gf("varying float v_round;\nvarying vec2 v_roundVertex;\nvarying float v_halfWidth;\n\n\nattribute vec2 a_lastPos;\nattribute vec2 a_position;\nattribute vec2 a_nextPos;\nattribute float a_direction;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\nuniform float u_lineWidth;\nuniform float u_miterLimit;\n\nbool nearlyEquals(in float value, in float ref) {\n  float epsilon = 0.000000000001;\n  return value >= ref - epsilon && value <= ref + epsilon;\n}\n\nvoid alongNormal(out vec2 offset, in vec2 nextP, in float turnDir, in float direction) {\n  vec2 dirVect = nextP - a_position;\n  vec2 normal = normalize(vec2(-turnDir * dirVect.y, turnDir * dirVect.x));\n  offset = u_lineWidth / 2.0 * normal * direction;\n}\n\nvoid miterUp(out vec2 offset, out float round, in bool isRound, in float direction) {\n  float halfWidth = u_lineWidth / 2.0;\n  vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 dirVect = a_nextPos - a_position;\n  vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n  float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n  offset = normal * direction * miterLength;\n  round = 0.0;\n  if (isRound) {\n    round = 1.0;\n  } else if (miterLength > u_miterLimit + u_lineWidth) {\n    offset = halfWidth * tmpNormal * direction;\n  }\n}\n\nbool miterDown(out vec2 offset, in vec4 projPos, in mat4 offsetMatrix, in float direction) {\n  bool degenerate = false;\n  vec2 tangent = normalize(normalize(a_nextPos - a_position) + normalize(a_position - a_lastPos));\n  vec2 normal = vec2(-tangent.y, tangent.x);\n  vec2 dirVect = a_lastPos - a_position;\n  vec2 tmpNormal = normalize(vec2(-dirVect.y, dirVect.x));\n  vec2 longOffset, shortOffset, longVertex;\n  vec4 shortProjVertex;\n  float halfWidth = u_lineWidth / 2.0;\n  if (length(a_nextPos - a_position) > length(a_lastPos - a_position)) {\n    longOffset = tmpNormal * direction * halfWidth;\n    shortOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex = a_nextPos;\n    shortProjVertex = u_projectionMatrix * vec4(a_lastPos, 0.0, 1.0);\n  } else {\n    shortOffset = tmpNormal * direction * halfWidth;\n    longOffset = normalize(vec2(dirVect.y, -dirVect.x)) * direction * halfWidth;\n    longVertex = a_lastPos;\n    shortProjVertex = u_projectionMatrix * vec4(a_nextPos, 0.0, 1.0);\n  }\n  //Intersection algorithm based on theory by Paul Bourke (http://paulbourke.net/geometry/pointlineplane/).\n  vec4 p1 = u_projectionMatrix * vec4(longVertex, 0.0, 1.0) + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p2 = projPos + offsetMatrix * vec4(longOffset, 0.0, 0.0);\n  vec4 p3 = shortProjVertex + offsetMatrix * vec4(-shortOffset, 0.0, 0.0);\n  vec4 p4 = shortProjVertex + offsetMatrix * vec4(shortOffset, 0.0, 0.0);\n  float denom = (p4.y - p3.y) * (p2.x - p1.x) - (p4.x - p3.x) * (p2.y - p1.y);\n  float firstU = ((p4.x - p3.x) * (p1.y - p3.y) - (p4.y - p3.y) * (p1.x - p3.x)) / denom;\n  float secondU = ((p2.x - p1.x) * (p1.y - p3.y) - (p2.y - p1.y) * (p1.x - p3.x)) / denom;\n  float epsilon = 0.000000000001;\n  if (firstU > epsilon && firstU < 1.0 - epsilon && secondU > epsilon && secondU < 1.0 - epsilon) {\n    shortProjVertex.x = p1.x + firstU * (p2.x - p1.x);\n    shortProjVertex.y = p1.y + firstU * (p2.y - p1.y);\n    offset = shortProjVertex.xy;\n    degenerate = true;\n  } else {\n    float miterLength = abs(halfWidth / dot(normal, tmpNormal));\n    offset = normal * direction * miterLength;\n  }\n  return degenerate;\n}\n\nvoid squareCap(out vec2 offset, out float round, in bool isRound, in vec2 nextP,\n    in float turnDir, in float direction) {\n  round = 0.0;\n  vec2 dirVect = a_position - nextP;\n  vec2 firstNormal = normalize(dirVect);\n  vec2 secondNormal = vec2(turnDir * firstNormal.y * direction, -turnDir * firstNormal.x * direction);\n  vec2 hypotenuse = normalize(firstNormal - secondNormal);\n  vec2 normal = vec2(turnDir * hypotenuse.y * direction, -turnDir * hypotenuse.x * direction);\n  float length = sqrt(v_halfWidth * v_halfWidth * 2.0);\n  offset = normal * length;\n  if (isRound) {\n    round = 1.0;\n  }\n}\n\nvoid main(void) {\n  bool degenerate = false;\n  float direction = float(sign(a_direction));\n  mat4 offsetMatrix = u_offsetScaleMatrix * u_offsetRotateMatrix;\n  vec2 offset;\n  vec4 projPos = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n  bool round = nearlyEquals(mod(a_direction, 2.0), 0.0);\n\n  v_round = 0.0;\n  v_halfWidth = u_lineWidth / 2.0;\n  v_roundVertex = projPos.xy;\n\n  if (nearlyEquals(mod(a_direction, 3.0), 0.0) || nearlyEquals(mod(a_direction, 17.0), 0.0)) {\n    alongNormal(offset, a_nextPos, 1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 5.0), 0.0) || nearlyEquals(mod(a_direction, 13.0), 0.0)) {\n    alongNormal(offset, a_lastPos, -1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 23.0), 0.0)) {\n    miterUp(offset, v_round, round, direction);\n  } else if (nearlyEquals(mod(a_direction, 19.0), 0.0)) {\n    degenerate = miterDown(offset, projPos, offsetMatrix, direction);\n  } else if (nearlyEquals(mod(a_direction, 7.0), 0.0)) {\n    squareCap(offset, v_round, round, a_nextPos, 1.0, direction);\n  } else if (nearlyEquals(mod(a_direction, 11.0), 0.0)) {\n    squareCap(offset, v_round, round, a_lastPos, -1.0, direction);\n  }\n  if (!degenerate) {\n    vec4 offsets = offsetMatrix * vec4(offset, 0.0, 0.0);\n    gl_Position = projPos + offsets;\n  } else {\n    gl_Position = vec4(offset, 0.0, 1.0);\n  }\n}\n\n\n"),Vf=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,"u_projectionMatrix"),this.u_offsetScaleMatrix=t.getUniformLocation(e,"u_offsetScaleMatrix"),this.u_offsetRotateMatrix=t.getUniformLocation(e,"u_offsetRotateMatrix"),this.u_lineWidth=t.getUniformLocation(e,"u_lineWidth"),this.u_miterLimit=t.getUniformLocation(e,"u_miterLimit"),this.u_opacity=t.getUniformLocation(e,"u_opacity"),this.u_color=t.getUniformLocation(e,"u_color"),this.u_size=t.getUniformLocation(e,"u_size"),this.u_pixelRatio=t.getUniformLocation(e,"u_pixelRatio"),this.a_lastPos=t.getAttribLocation(e,"a_lastPos"),this.a_position=t.getAttribLocation(e,"a_position"),this.a_nextPos=t.getAttribLocation(e,"a_nextPos"),this.a_direction=t.getAttribLocation(e,"a_direction")},Wf=3,Hf=5,Uf=7,Xf=11,qf=13,Kf=17,Zf=19,Jf=23,Qf=function(t){function e(e,i){t.call(this,e,i),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:void 0,miterLimit:void 0,changed:!1}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,i,n){var r,o,s,a,l,u,c,h,d=this.vertices.length,f=this.indices.length,p="bevel"===this.state_.lineJoin?0:"miter"===this.state_.lineJoin?1:2,v="butt"===this.state_.lineCap?0:"square"===this.state_.lineCap?1:2,g=zf(t,e,i,n),m=f,y=1;for(r=e,o=i;r<o;r+=n){if(l=d/7,u=c,c=h||[t[r],t[r+1]],r===e){if(h=[t[r+n],t[r+n+1]],i-e==2*n&&Zi(c,h))break;if(!g){v&&(d=this.addVertices_([0,0],c,h,y*Uf*v,d),d=this.addVertices_([0,0],c,h,-y*Uf*v,d),this.indices[f++]=l+2,this.indices[f++]=l,this.indices[f++]=l+1,this.indices[f++]=l+1,this.indices[f++]=l+3,this.indices[f++]=l+2),d=this.addVertices_([0,0],c,h,y*Wf*(v||1),d),m=(d=this.addVertices_([0,0],c,h,-y*Wf*(v||1),d))/7-1;continue}u=[t[i-2*n],t[i-2*n+1]],s=h}else{if(r===i-n){if(g){h=s;break}u=u||[0,0],d=this.addVertices_(u,c,[0,0],y*Hf*(v||1),d),d=this.addVertices_(u,c,[0,0],-y*Hf*(v||1),d),this.indices[f++]=l,this.indices[f++]=m-1,this.indices[f++]=m,this.indices[f++]=m,this.indices[f++]=l+1,this.indices[f++]=l,v&&(d=this.addVertices_(u,c,[0,0],y*Xf*v,d),d=this.addVertices_(u,c,[0,0],-y*Xf*v,d),this.indices[f++]=l+2,this.indices[f++]=l,this.indices[f++]=l+1,this.indices[f++]=l+1,this.indices[f++]=l+3,this.indices[f++]=l+2);break}h=[t[r+n],t[r+n+1]]}a=Cf(u[0],u[1],c[0],c[1],h[0],h[1])?-1:1,d=this.addVertices_(u,c,h,a*qf*(p||1),d),d=this.addVertices_(u,c,h,a*Kf*(p||1),d),d=this.addVertices_(u,c,h,-a*Zf*(p||1),d),r>e&&(this.indices[f++]=l,this.indices[f++]=m-1,this.indices[f++]=m,this.indices[f++]=l+2,this.indices[f++]=l,this.indices[f++]=y*a>0?m:m-1),this.indices[f++]=l,this.indices[f++]=l+2,this.indices[f++]=l+1,m=l+2,y=a,p&&(d=this.addVertices_(u,c,h,a*Jf*p,d),this.indices[f++]=l+1,this.indices[f++]=l+3,this.indices[f++]=l)}g&&(l=l||d/7,a=$o([u[0],u[1],c[0],c[1],h[0],h[1]],0,6,2)?1:-1,d=this.addVertices_(u,c,h,a*qf*(p||1),d),d=this.addVertices_(u,c,h,-a*Zf*(p||1),d),this.indices[f++]=l,this.indices[f++]=m-1,this.indices[f++]=m,this.indices[f++]=l+1,this.indices[f++]=l,this.indices[f++]=y*a>0?m:m-1)},e.prototype.addVertices_=function(t,e,i,n,r){return this.vertices[r++]=t[0],this.vertices[r++]=t[1],this.vertices[r++]=e[0],this.vertices[r++]=e[1],this.vertices[r++]=i[0],this.vertices[r++]=i[1],this.vertices[r++]=n,r},e.prototype.isValid_=function(t,e,i,n){var r=i-e;return!(r<2*n)&&(r!==2*n||!Zi([t[e],t[e+1]],[t[e+n],t[e+n+1]]))},e.prototype.drawLineString=function(t,e){var i=t.getFlatCoordinates(),n=t.getStride();this.isValid_(i,0,i.length,n)&&(i=Nr(i,0,i.length,n,-this.origin[0],-this.origin[1]),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.drawCoordinates_(i,0,i.length,n))},e.prototype.drawMultiLineString=function(t,e){var i=this.indices.length,n=t.getEnds();n.unshift(0);var r,o,s=t.getFlatCoordinates(),a=t.getStride();if(n.length>1)for(r=1,o=n.length;r<o;++r)if(this.isValid_(s,n[r-1],n[r],a)){var l=Nr(s,n[r-1],n[r],a,-this.origin[0],-this.origin[1]);this.drawCoordinates_(l,0,l.length,a)}this.indices.length>i&&(this.startIndices.push(i),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(i),this.state_.changed=!1))},e.prototype.drawPolygonCoordinates=function(t,e,i){var n,r;if(zf(t,0,t.length,i)||(t.push(t[0]),t.push(t[1])),this.drawCoordinates_(t,0,t.length,i),e.length)for(n=0,r=e.length;n<r;++n)zf(e[n],0,e[n].length,i)||(e[n].push(e[n][0]),e[n].push(e[n][1])),this.drawCoordinates_(e[n],0,e[n].length,i)},e.prototype.setPolygonStyle=function(t,e){var i=void 0===e?this.indices.length:e;this.startIndices.push(i),this.startIndicesFeature.push(t),this.state_.changed&&(this.styleIndices_.push(i),this.state_.changed=!1)},e.prototype.getCurrentIndex=function(){return this.indices.length},e.prototype.finish=function(t){this.verticesBuffer=new Pf(this.vertices),this.indicesBuffer=new Pf(this.indices),this.startIndices.push(this.indices.length),0===this.styleIndices_.length&&this.styles_.length>0&&(this.styles_=[]),this.vertices=null,this.indices=null},e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer;return function(){t.deleteBuffer(e),t.deleteBuffer(i)}},e.prototype.setUpProgram=function(t,e,i,n){var r,o=e.getProgram(Bf,Yf);return this.defaultLocations_?r=this.defaultLocations_:(r=new Vf(t,o),this.defaultLocations_=r),e.useProgram(o),t.enableVertexAttribArray(r.a_lastPos),t.vertexAttribPointer(r.a_lastPos,2,5126,!1,28,0),t.enableVertexAttribArray(r.a_position),t.vertexAttribPointer(r.a_position,2,5126,!1,28,8),t.enableVertexAttribArray(r.a_nextPos),t.vertexAttribPointer(r.a_nextPos,2,5126,!1,28,16),t.enableVertexAttribArray(r.a_direction),t.vertexAttribPointer(r.a_direction,1,5126,!1,28,24),t.uniform2fv(r.u_size,i),t.uniform1f(r.u_pixelRatio,n),r},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_lastPos),t.disableVertexAttribArray(e.a_position),t.disableVertexAttribArray(e.a_nextPos),t.disableVertexAttribArray(e.a_direction)},e.prototype.drawReplay=function(t,e,i,n){var r,o,s,a,l=t.getParameter(t.DEPTH_FUNC),u=t.getParameter(t.DEPTH_WRITEMASK);if(n||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Ut(i))for(s=this.startIndices[this.startIndices.length-1],r=this.styleIndices_.length-1;r>=0;--r)o=this.styleIndices_[r],a=this.styles_[r],this.setStrokeStyle_(t,a[0],a[1],a[2]),this.drawElements(t,e,o,s),t.clear(t.DEPTH_BUFFER_BIT),s=o;else this.drawReplaySkipping_(t,e,i);n||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(u),t.depthFunc(l))},e.prototype.drawReplaySkipping_=function(t,e,i){var n,r,o,s,a,l,u;for(l=this.startIndices.length-2,o=r=this.startIndices[l+1],n=this.styleIndices_.length-1;n>=0;--n){for(s=this.styles_[n],this.setStrokeStyle_(t,s[0],s[1],s[2]),a=this.styleIndices_[n];l>=0&&this.startIndices[l]>=a;)u=this.startIndices[l],i[K(this.startIndicesFeature[l])]&&(r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),o=u),l--,r=u;r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),r=o=a}},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,n,r){var o,s,a,l,u,c,h;for(h=this.startIndices.length-2,a=this.startIndices[h+1],o=this.styleIndices_.length-1;o>=0;--o)for(l=this.styles_[o],this.setStrokeStyle_(t,l[0],l[1],l[2]),u=this.styleIndices_[o];h>=0&&this.startIndices[h]>=u;){if(s=this.startIndices[h],void 0===i[K(c=this.startIndicesFeature[h])]&&c.getGeometry()&&(void 0===r||Lt(r,c.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,s,a);var d=n(c);if(d)return d}h--,a=s}},e.prototype.setStrokeStyle_=function(t,e,i,n){t.uniform4fv(this.defaultLocations_.u_color,e),t.uniform1f(this.defaultLocations_.u_lineWidth,i),t.uniform1f(this.defaultLocations_.u_miterLimit,n)},e.prototype.setFillStrokeStyle=function(t,e){var i=e.getLineCap();this.state_.lineCap=void 0!==i?i:"round";var n=e.getLineDash();this.state_.lineDash=n||Sf;var r=e.getLineDashOffset();this.state_.lineDashOffset=r||0;var o=e.getLineJoin();this.state_.lineJoin=void 0!==o?o:"round";var s=e.getColor();s=s instanceof CanvasGradient||s instanceof CanvasPattern?Tf:al(s).map(function(t,e){return 3!=e?t/255:t})||Tf;var a=e.getWidth();a=void 0!==a?a:1;var l=e.getMiterLimit();l=void 0!==l?l:10,this.state_.strokeColor&&Zi(this.state_.strokeColor,s)&&this.state_.lineWidth===a&&this.state_.miterLimit===l||(this.state_.changed=!0,this.state_.strokeColor=s,this.state_.lineWidth=a,this.state_.miterLimit=l,this.styles_.push([s,a,l]))},e}(xf),tp=new vf("precision mediump float;\n\n\n\nuniform vec4 u_color;\nuniform float u_opacity;\n\nvoid main(void) {\n  gl_FragColor = u_color;\n  float alpha = u_color.a * u_opacity;\n  if (alpha == 0.0) {\n    discard;\n  }\n  gl_FragColor.a = alpha;\n}\n"),ep=new gf("\n\nattribute vec2 a_position;\n\nuniform mat4 u_projectionMatrix;\nuniform mat4 u_offsetScaleMatrix;\nuniform mat4 u_offsetRotateMatrix;\n\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, 0.0, 1.0);\n}\n\n\n"),ip=function(t,e){this.u_projectionMatrix=t.getUniformLocation(e,"u_projectionMatrix"),this.u_offsetScaleMatrix=t.getUniformLocation(e,"u_offsetScaleMatrix"),this.u_offsetRotateMatrix=t.getUniformLocation(e,"u_offsetRotateMatrix"),this.u_color=t.getUniformLocation(e,"u_color"),this.u_opacity=t.getUniformLocation(e,"u_opacity"),this.a_position=t.getAttribLocation(e,"a_position")},np=function(t){this.first_,this.last_,this.head_,this.circular_=void 0===t||t,this.length_=0};np.prototype.insertItem=function(t){var e={prev:void 0,next:void 0,data:t},i=this.head_;if(i){var n=i.next;e.prev=i,e.next=n,i.next=e,n&&(n.prev=e),i===this.last_&&(this.last_=e)}else this.first_=e,this.last_=e,this.circular_&&(e.next=e,e.prev=e);this.head_=e,this.length_++},np.prototype.removeItem=function(){var t=this.head_;if(t){var e=t.next,i=t.prev;e&&(e.prev=i),i&&(i.next=e),this.head_=e||i,this.first_===this.last_?(this.head_=void 0,this.first_=void 0,this.last_=void 0):this.first_===t?this.first_=this.head_:this.last_===t&&(this.last_=i?this.head_.prev:this.head_),this.length_--}},np.prototype.firstItem=function(){if(this.head_=this.first_,this.head_)return this.head_.data},np.prototype.lastItem=function(){if(this.head_=this.last_,this.head_)return this.head_.data},np.prototype.nextItem=function(){if(this.head_&&this.head_.next)return this.head_=this.head_.next,this.head_.data},np.prototype.getNextItem=function(){if(this.head_&&this.head_.next)return this.head_.next.data},np.prototype.prevItem=function(){if(this.head_&&this.head_.prev)return this.head_=this.head_.prev,this.head_.data},np.prototype.getPrevItem=function(){if(this.head_&&this.head_.prev)return this.head_.prev.data},np.prototype.getCurrItem=function(){if(this.head_)return this.head_.data},np.prototype.setFirstItem=function(){this.circular_&&this.head_&&(this.first_=this.head_,this.last_=this.head_.prev)},np.prototype.concat=function(t){if(t.head_){if(this.head_){var e=this.head_.next;this.head_.next=t.first_,t.first_.prev=this.head_,e.prev=t.last_,t.last_.next=e,this.length_+=t.length_}else this.head_=t.head_,this.first_=t.first_,this.last_=t.last_,this.length_=t.length_;t.head_=void 0,t.first_=void 0,t.last_=void 0,t.length_=0}},np.prototype.getLength=function(){return this.length_};var rp=np,op=function(t){function e(e,i){t.call(this,e,i),this.lineStringReplay=new Qf(e,i),this.defaultLocations_=null,this.styles_=[],this.styleIndices_=[],this.state_={fillColor:null,changed:!1}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawCoordinates_=function(t,e,i){var n=new rp,r=new Ah;this.processFlatCoordinates_(t,i,n,r,!0);var o=this.getMaxCoords_(n);if(e.length){var s,a,l=[];for(s=0,a=e.length;s<a;++s){var u={list:new rp,maxCoords:void 0,rtree:new Ah};l.push(u),this.processFlatCoordinates_(e[s],i,u.list,u.rtree,!1),this.classifyPoints_(u.list,u.rtree,!0),u.maxCoords=this.getMaxCoords_(u.list)}for(l.sort(function(t,e){return e.maxCoords[0]===t.maxCoords[0]?t.maxCoords[1]-e.maxCoords[1]:e.maxCoords[0]-t.maxCoords[0]}),s=0;s<l.length;++s){var c=l[s].list,h=c.firstItem(),d=h,f=void 0;do{if(this.getIntersections_(d,r).length){f=!0;break}d=c.nextItem()}while(h!==d);f||this.bridgeHole_(c,l[s].maxCoords[0],n,o[0],r)&&(r.concat(l[s].rtree),this.classifyPoints_(n,r,!1))}}else this.classifyPoints_(n,r,!1);this.triangulate_(n,r)},e.prototype.processFlatCoordinates_=function(t,e,i,n,r){var o,s,a,l,u,c=$o(t,0,t.length,e),h=this.vertices.length/2,d=[],f=[];if(r===c){for(l=a=this.createPoint_(t[0],t[1],h++),o=e,s=t.length;o<s;o+=e)u=this.createPoint_(t[o],t[o+1],h++),f.push(this.insertItem_(l,u,i)),d.push([Math.min(l.x,u.x),Math.min(l.y,u.y),Math.max(l.x,u.x),Math.max(l.y,u.y)]),l=u;f.push(this.insertItem_(u,a,i)),d.push([Math.min(l.x,u.x),Math.min(l.y,u.y),Math.max(l.x,u.x),Math.max(l.y,u.y)])}else{var p=t.length-e;for(l=a=this.createPoint_(t[p],t[p+1],h++),o=p-e,s=0;o>=s;o-=e)u=this.createPoint_(t[o],t[o+1],h++),f.push(this.insertItem_(l,u,i)),d.push([Math.min(l.x,u.x),Math.min(l.y,u.y),Math.max(l.x,u.x),Math.max(l.y,u.y)]),l=u;f.push(this.insertItem_(u,a,i)),d.push([Math.min(l.x,u.x),Math.min(l.y,u.y),Math.max(l.x,u.x),Math.max(l.y,u.y)])}n.load(d,f)},e.prototype.getMaxCoords_=function(t){var e=t.firstItem(),i=e,n=[i.p0.x,i.p0.y];do{(i=t.nextItem()).p0.x>n[0]&&(n=[i.p0.x,i.p0.y])}while(i!==e);return n},e.prototype.classifyPoints_=function(t,e,i){var n=t.firstItem(),r=n,o=t.nextItem(),s=!1;do{var a=i?Cf(o.p1.x,o.p1.y,r.p1.x,r.p1.y,r.p0.x,r.p0.y):Cf(r.p0.x,r.p0.y,r.p1.x,r.p1.y,o.p1.x,o.p1.y);void 0===a?(this.removeItem_(r,o,t,e),s=!0,o===n&&(n=t.getNextItem()),o=r,t.prevItem()):r.p1.reflex!==a&&(r.p1.reflex=a,s=!0),r=o,o=t.nextItem()}while(r!==n);return s},e.prototype.bridgeHole_=function(t,e,i,n,r){for(var o=t.firstItem();o.p1.x!==e;)o=t.nextItem();var s,a,l,u,c=o.p1,h={x:n,y:c.y,i:-1},d=1/0,f=this.getIntersections_({p0:c,p1:h},r,!0);for(s=0,a=f.length;s<a;++s){var p=f[s],v=this.calculateIntersection_(c,h,p.p0,p.p1,!0),g=Math.abs(c.x-v[0]);g<d&&void 0!==Cf(c.x,c.y,p.p0.x,p.p0.y,p.p1.x,p.p1.y)&&(d=g,u={x:v[0],y:v[1],i:-1},o=p)}if(d===1/0)return!1;if(l=o.p1,d>0){var m=this.getPointsInTriangle_(c,u,o.p1,r);if(m.length){var y=1/0;for(s=0,a=m.length;s<a;++s){var _=m[s],b=Math.atan2(c.y-_.y,h.x-_.x);(b<y||b===y&&_.x<l.x)&&(y=b,l=_)}}}for(o=i.firstItem();o.p1.x!==l.x||o.p1.y!==l.y;)o=i.nextItem();var x={x:c.x,y:c.y,i:c.i,reflex:void 0},w={x:o.p1.x,y:o.p1.y,i:o.p1.i,reflex:void 0};return t.getNextItem().p0=x,this.insertItem_(c,o.p1,t,r),this.insertItem_(w,x,t,r),o.p1=w,t.setFirstItem(),i.concat(t),!0},e.prototype.triangulate_=function(t,e){for(var i=!1,n=this.isSimple_(t,e);t.getLength()>3;)if(n){if(!this.clipEars_(t,e,n,i)&&!this.classifyPoints_(t,e,i)&&!this.resolveSelfIntersections_(t,e,!0))break}else if(!this.clipEars_(t,e,n,i)&&!this.classifyPoints_(t,e,i)&&!this.resolveSelfIntersections_(t,e)){if(!(n=this.isSimple_(t,e))){this.splitPolygon_(t,e);break}i=!this.isClockwise_(t),this.classifyPoints_(t,e,i)}if(3===t.getLength()){var r=this.indices.length;this.indices[r++]=t.getPrevItem().p0.i,this.indices[r++]=t.getCurrItem().p0.i,this.indices[r++]=t.getNextItem().p0.i}},e.prototype.clipEars_=function(t,e,i,n){var r,o,s,a=this.indices.length,l=t.firstItem(),u=t.getPrevItem(),c=l,h=t.nextItem(),d=t.getNextItem(),f=!1;do{if(r=c.p0,o=c.p1,s=h.p1,!1===o.reflex){var p=void 0;p=i?0===this.getPointsInTriangle_(r,o,s,e,!0).length:n?this.diagonalIsInside_(d.p1,s,o,r,u.p0):this.diagonalIsInside_(u.p0,r,o,s,d.p1),(i||0===this.getIntersections_({p0:r,p1:s},e).length)&&p&&(i||!1===r.reflex||!1===s.reflex||$o([u.p0.x,u.p0.y,r.x,r.y,o.x,o.y,s.x,s.y,d.p1.x,d.p1.y],0,10,2)===!n)&&(this.indices[a++]=r.i,this.indices[a++]=o.i,this.indices[a++]=s.i,this.removeItem_(c,h,t,e),h===l&&(l=d),f=!0)}u=t.getPrevItem(),c=t.getCurrItem(),h=t.nextItem(),d=t.getNextItem()}while(c!==l&&t.getLength()>3);return f},e.prototype.resolveSelfIntersections_=function(t,e,i){var n=t.firstItem();t.nextItem();var r=n,o=t.nextItem(),s=!1;do{var a=this.calculateIntersection_(r.p0,r.p1,o.p0,o.p1,i);if(a){var l=!1,u=this.vertices.length,c=this.indices.length,h=u/2,d=t.prevItem();t.removeItem(),e.remove(d),l=d===n;var f=void 0;if(i?(a[0]===r.p0.x&&a[1]===r.p0.y?(t.prevItem(),f=r.p0,o.p0=f,e.remove(r),l=l||r===n):(f=o.p1,r.p1=f,e.remove(o),l=l||o===n),t.removeItem()):(f=this.createPoint_(a[0],a[1],h),r.p1=f,o.p0=f,e.update([Math.min(r.p0.x,r.p1.x),Math.min(r.p0.y,r.p1.y),Math.max(r.p0.x,r.p1.x),Math.max(r.p0.y,r.p1.y)],r),e.update([Math.min(o.p0.x,o.p1.x),Math.min(o.p0.y,o.p1.y),Math.max(o.p0.x,o.p1.x),Math.max(o.p0.y,o.p1.y)],o)),this.indices[c++]=d.p0.i,this.indices[c++]=d.p1.i,this.indices[c++]=f.i,s=!0,l)break}r=t.getPrevItem(),o=t.nextItem()}while(r!==n);return s},e.prototype.isSimple_=function(t,e){var i=t.firstItem(),n=i;do{if(this.getIntersections_(n,e).length)return!1;n=t.nextItem()}while(n!==i);return!0},e.prototype.isClockwise_=function(t){var e=2*t.getLength(),i=new Array(e),n=t.firstItem(),r=n,o=0;do{i[o++]=r.p0.x,i[o++]=r.p0.y,r=t.nextItem()}while(r!==n);return $o(i,0,e,2)},e.prototype.splitPolygon_=function(t,e){var i=t.firstItem(),n=i;do{var r=this.getIntersections_(n,e);if(r.length){var o=r[0],s=this.vertices.length/2,a=this.calculateIntersection_(n.p0,n.p1,o.p0,o.p1),l=this.createPoint_(a[0],a[1],s),u=new rp,c=new Ah;this.insertItem_(l,n.p1,u,c),n.p1=l,e.update([Math.min(n.p0.x,l.x),Math.min(n.p0.y,l.y),Math.max(n.p0.x,l.x),Math.max(n.p0.y,l.y)],n);for(var h=t.nextItem();h!==o;)this.insertItem_(h.p0,h.p1,u,c),e.remove(h),t.removeItem(),h=t.getCurrItem();this.insertItem_(o.p0,l,u,c),o.p0=l,e.update([Math.min(o.p1.x,l.x),Math.min(o.p1.y,l.y),Math.max(o.p1.x,l.x),Math.max(o.p1.y,l.y)],o),this.classifyPoints_(t,e,!1),this.triangulate_(t,e),this.classifyPoints_(u,c,!1),this.triangulate_(u,c);break}n=t.nextItem()}while(n!==i)},e.prototype.createPoint_=function(t,e,i){var n=this.vertices.length;return this.vertices[n++]=t,this.vertices[n++]=e,{x:t,y:e,i:i,reflex:void 0}},e.prototype.insertItem_=function(t,e,i,n){var r={p0:t,p1:e};return i.insertItem(r),n&&n.insert([Math.min(t.x,e.x),Math.min(t.y,e.y),Math.max(t.x,e.x),Math.max(t.y,e.y)],r),r},e.prototype.removeItem_=function(t,e,i,n){i.getCurrItem()===e&&(i.removeItem(),t.p1=e.p1,n.remove(e),n.update([Math.min(t.p0.x,t.p1.x),Math.min(t.p0.y,t.p1.y),Math.max(t.p0.x,t.p1.x),Math.max(t.p0.y,t.p1.y)],t))},e.prototype.getPointsInTriangle_=function(t,e,i,n,r){for(var o=[],s=n.getInExtent([Math.min(t.x,e.x,i.x),Math.min(t.y,e.y,i.y),Math.max(t.x,e.x,i.x),Math.max(t.y,e.y,i.y)]),a=0,l=s.length;a<l;++a)for(var u in s[a]){var c=s[a][u];"object"!=typeof c||r&&!c.reflex||c.x===t.x&&c.y===t.y||c.x===e.x&&c.y===e.y||c.x===i.x&&c.y===i.y||-1!==o.indexOf(c)||!yo([t.x,t.y,e.x,e.y,i.x,i.y],0,6,2,c.x,c.y)||o.push(c)}return o},e.prototype.getIntersections_=function(t,e,i){for(var n=t.p0,r=t.p1,o=e.getInExtent([Math.min(n.x,r.x),Math.min(n.y,r.y),Math.max(n.x,r.x),Math.max(n.y,r.y)]),s=[],a=0,l=o.length;a<l;++a){var u=o[a];t!==u&&(i||u.p0!==r||u.p1!==n)&&this.calculateIntersection_(n,r,u.p0,u.p1,i)&&s.push(u)}return s},e.prototype.calculateIntersection_=function(t,e,i,n,r){var o=(n.y-i.y)*(e.x-t.x)-(n.x-i.x)*(e.y-t.y);if(0!==o){var s=((n.x-i.x)*(t.y-i.y)-(n.y-i.y)*(t.x-i.x))/o,a=((e.x-t.x)*(t.y-i.y)-(e.y-t.y)*(t.x-i.x))/o;if(!r&&s>Ef&&s<1-Ef&&a>Ef&&a<1-Ef||r&&s>=0&&s<=1&&a>=0&&a<=1)return[t.x+s*(e.x-t.x),t.y+s*(e.y-t.y)]}},e.prototype.diagonalIsInside_=function(t,e,i,n,r){if(void 0===e.reflex||void 0===n.reflex)return!1;var o=(i.x-n.x)*(e.y-n.y)>(i.y-n.y)*(e.x-n.x),s=(r.x-n.x)*(e.y-n.y)<(r.y-n.y)*(e.x-n.x),a=(t.x-e.x)*(n.y-e.y)>(t.y-e.y)*(n.x-e.x),l=(i.x-e.x)*(n.y-e.y)<(i.y-e.y)*(n.x-e.x),u=n.reflex?s||o:s&&o,c=e.reflex?l||a:l&&a;return u&&c},e.prototype.drawMultiPolygon=function(t,e){var i,n,r,o,s=t.getEndss(),a=t.getStride(),l=this.indices.length,u=this.lineStringReplay.getCurrentIndex(),c=t.getFlatCoordinates(),h=0;for(i=0,n=s.length;i<n;++i){var d=s[i];if(d.length>0){var f=Nr(c,h,d[0],a,-this.origin[0],-this.origin[1]);if(f.length){var p=[],v=void 0;for(r=1,o=d.length;r<o;++r)d[r]!==d[r-1]&&(v=Nr(c,d[r-1],d[r],a,-this.origin[0],-this.origin[1]),p.push(v));this.lineStringReplay.drawPolygonCoordinates(f,p,a),this.drawCoordinates_(f,p,a)}}h=d[d.length-1]}this.indices.length>l&&(this.startIndices.push(l),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(l),this.state_.changed=!1)),this.lineStringReplay.getCurrentIndex()>u&&this.lineStringReplay.setPolygonStyle(e,u)},e.prototype.drawPolygon=function(t,e){var i=t.getEnds(),n=t.getStride();if(i.length>0){var r=t.getFlatCoordinates().map(Number),o=Nr(r,0,i[0],n,-this.origin[0],-this.origin[1]);if(o.length){var s,a,l,u=[];for(s=1,a=i.length;s<a;++s)i[s]!==i[s-1]&&(l=Nr(r,i[s-1],i[s],n,-this.origin[0],-this.origin[1]),u.push(l));this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e),this.state_.changed&&(this.styleIndices_.push(this.indices.length),this.state_.changed=!1),this.lineStringReplay.setPolygonStyle(e),this.lineStringReplay.drawPolygonCoordinates(o,u,n),this.drawCoordinates_(o,u,n)}}},e.prototype.finish=function(t){this.verticesBuffer=new Pf(this.vertices),this.indicesBuffer=new Pf(this.indices),this.startIndices.push(this.indices.length),this.lineStringReplay.finish(t),0===this.styleIndices_.length&&this.styles_.length>0&&(this.styles_=[]),this.vertices=null,this.indices=null},e.prototype.getDeleteResourcesFunction=function(t){var e=this.verticesBuffer,i=this.indicesBuffer,n=this.lineStringReplay.getDeleteResourcesFunction(t);return function(){t.deleteBuffer(e),t.deleteBuffer(i),n()}},e.prototype.setUpProgram=function(t,e,i,n){var r,o=e.getProgram(tp,ep);return this.defaultLocations_?r=this.defaultLocations_:(r=new ip(t,o),this.defaultLocations_=r),e.useProgram(o),t.enableVertexAttribArray(r.a_position),t.vertexAttribPointer(r.a_position,2,5126,!1,8,0),r},e.prototype.shutDownProgram=function(t,e){t.disableVertexAttribArray(e.a_position)},e.prototype.drawReplay=function(t,e,i,n){var r,o,s,a,l=t.getParameter(t.DEPTH_FUNC),u=t.getParameter(t.DEPTH_WRITEMASK);if(n||(t.enable(t.DEPTH_TEST),t.depthMask(!0),t.depthFunc(t.NOTEQUAL)),Ut(i))for(s=this.startIndices[this.startIndices.length-1],r=this.styleIndices_.length-1;r>=0;--r)o=this.styleIndices_[r],a=this.styles_[r],this.setFillStyle_(t,a),this.drawElements(t,e,o,s),s=o;else this.drawReplaySkipping_(t,e,i);n||(t.disable(t.DEPTH_TEST),t.clear(t.DEPTH_BUFFER_BIT),t.depthMask(u),t.depthFunc(l))},e.prototype.drawHitDetectionReplayOneByOne=function(t,e,i,n,r){var o,s,a,l,u,c,h;for(h=this.startIndices.length-2,a=this.startIndices[h+1],o=this.styleIndices_.length-1;o>=0;--o)for(l=this.styles_[o],this.setFillStyle_(t,l),u=this.styleIndices_[o];h>=0&&this.startIndices[h]>=u;){if(s=this.startIndices[h],void 0===i[K(c=this.startIndicesFeature[h])]&&c.getGeometry()&&(void 0===r||Lt(r,c.getGeometry().getExtent()))){t.clear(t.COLOR_BUFFER_BIT|t.DEPTH_BUFFER_BIT),this.drawElements(t,e,s,a);var d=n(c);if(d)return d}h--,a=s}},e.prototype.drawReplaySkipping_=function(t,e,i){var n,r,o,s,a,l,u;for(l=this.startIndices.length-2,o=r=this.startIndices[l+1],n=this.styleIndices_.length-1;n>=0;--n){for(s=this.styles_[n],this.setFillStyle_(t,s),a=this.styleIndices_[n];l>=0&&this.startIndices[l]>=a;)u=this.startIndices[l],i[K(this.startIndicesFeature[l])]&&(r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),o=u),l--,r=u;r!==o&&(this.drawElements(t,e,r,o),t.clear(t.DEPTH_BUFFER_BIT)),r=o=a}},e.prototype.setFillStyle_=function(t,e){t.uniform4fv(this.defaultLocations_.u_color,e)},e.prototype.setFillStrokeStyle=function(t,e){var i=t?t.getColor():[0,0,0,0];if(i=i instanceof CanvasGradient||i instanceof CanvasPattern?wf:al(i).map(function(t,e){return 3!=e?t/255:t})||wf,this.state_.fillColor&&Zi(i,this.state_.fillColor)||(this.state_.fillColor=i,this.state_.changed=!0,this.styles_.push(i)),e)this.lineStringReplay.setFillStrokeStyle(null,e);else{var n=new fl({color:[0,0,0,0],width:0});this.lineStringReplay.setFillStrokeStyle(null,n)}},e}(xf),sp=function(t,e){this.space_=e,this.emptyBlocks_=[{x:0,y:0,width:t,height:t}],this.entries_={},this.context_=Se(t,t),this.canvas_=this.context_.canvas};sp.prototype.get=function(t){return this.entries_[t]||null},sp.prototype.add=function(t,e,i,n,r){for(var o=0,s=this.emptyBlocks_.length;o<s;++o){var a=this.emptyBlocks_[o];if(a.width>=e+this.space_&&a.height>=i+this.space_){var l={offsetX:a.x+this.space_,offsetY:a.y+this.space_,image:this.canvas_};return this.entries_[t]=l,n.call(r,this.context_,a.x+this.space_,a.y+this.space_),this.split_(o,a,e+this.space_,i+this.space_),l}}return null},sp.prototype.split_=function(t,e,i,n){var r,o;e.width-i>e.height-n?(r={x:e.x+i,y:e.y,width:e.width-i,height:e.height},o={x:e.x,y:e.y+n,width:i,height:e.height-n},this.updateBlocks_(t,r,o)):(r={x:e.x+i,y:e.y,width:e.width-i,height:n},o={x:e.x,y:e.y+n,width:e.width,height:e.height-n},this.updateBlocks_(t,r,o))},sp.prototype.updateBlocks_=function(t,e,i){var n=[t,1];e.width>0&&e.height>0&&n.push(e),i.width>0&&i.height>0&&n.push(i),this.emptyBlocks_.splice.apply(this.emptyBlocks_,n)};var ap=sp,lp=function(t){var e=t||{};this.currentSize_=void 0!==e.initialSize?e.initialSize:256,this.maxSize_=void 0!==e.maxSize?e.maxSize:void 0!==Ea?Ea:2048,this.space_=void 0!==e.space?e.space:1,this.atlases_=[new ap(this.currentSize_,this.space_)],this.currentHitSize_=this.currentSize_,this.hitAtlases_=[new ap(this.currentHitSize_,this.space_)]};lp.prototype.getInfo=function(t){var e=this.getInfo_(this.atlases_,t);if(!e)return null;var i=this.getInfo_(this.hitAtlases_,t);return this.mergeInfos_(e,i)},lp.prototype.getInfo_=function(t,e){for(var i=0,n=t.length;i<n;++i){var r=t[i].get(e);if(r)return r}return null},lp.prototype.mergeInfos_=function(t,e){return{offsetX:t.offsetX,offsetY:t.offsetY,image:t.image,hitImage:e.image}},lp.prototype.add=function(t,e,i,n,r,o){if(e+this.space_>this.maxSize_||i+this.space_>this.maxSize_)return null;var s=this.add_(!1,t,e,i,n,o);if(!s)return null;var a=void 0!==r?r:ge,l=this.add_(!0,t,e,i,a,o);return this.mergeInfos_(s,l)},lp.prototype.add_=function(t,e,i,n,r,o){var s,a,l,u,c=t?this.hitAtlases_:this.atlases_;for(l=0,u=c.length;l<u;++l){if(a=(s=c[l]).add(e,i,n,r,o))return a;if(!a&&l===u-1){var h=void 0;t?(h=Math.min(2*this.currentHitSize_,this.maxSize_),this.currentHitSize_=h):(h=Math.min(2*this.currentSize_,this.maxSize_),this.currentSize_=h),s=new ap(h,this.space_),c.push(s),++u}}return null};var up=lp,cp=[1,1],hp={Circle:kf,Image:Gf,LineString:Qf,Polygon:op,Text:function(t){function e(e,i){t.call(this,e,i),this.images_=[],this.textures_=[],this.measureCanvas_=Se(0,0).canvas,this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:0,miterLimit:void 0,fillColor:null,font:void 0,scale:void 0},this.text_="",this.textAlign_=void 0,this.textBaseline_=void 0,this.offsetX_=void 0,this.offsetY_=void 0,this.atlases_={},this.currAtlas_=void 0,this.scale=1,this.opacity=1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText=function(t,e){if(this.text_){var i=null,n=2,r=2;switch(t.getType()){case Fe.POINT:case Fe.MULTI_POINT:n=(i=t.getFlatCoordinates()).length,r=t.getStride();break;case Fe.CIRCLE:i=t.getCenter();break;case Fe.LINE_STRING:i=t.getFlatMidpoint();break;case Fe.MULTI_LINE_STRING:n=(i=t.getFlatMidpoints()).length;break;case Fe.POLYGON:i=t.getFlatInteriorPoint();break;case Fe.MULTI_POLYGON:n=(i=t.getFlatInteriorPoints()).length}this.startIndices.push(this.indices.length),this.startIndicesFeature.push(e);var o,s,a,l,u,c,h,d,f=this.currAtlas_,p=this.text_.split("\n"),v=this.getTextSize_(p),g=Math.round(v[0]*this.textAlign_-this.offsetX_),m=Math.round(v[1]*this.textBaseline_-this.offsetY_),y=this.state_.lineWidth/2*this.state_.scale;for(o=0,s=p.length;o<s;++o)for(u=0,c=f.height*o,a=0,l=(h=p[o].split("")).length;a<l;++a){if(d=f.atlas.getInfo(h[a])){var _=d.image;if(this.anchorX=g-u,this.anchorY=m-c,this.originX=0===a?d.offsetX-y:d.offsetX,this.originY=d.offsetY,this.height=f.height,this.width=0===a||a===h.length-1?f.width[h[a]]+y:f.width[h[a]],this.imageHeight=_.height,this.imageWidth=_.width,0===this.images_.length)this.images_.push(_);else K(this.images_[this.images_.length-1])!=K(_)&&(this.groupIndices.push(this.indices.length),this.images_.push(_));this.drawText_(i,0,n,r)}u+=this.width}}},e.prototype.getTextSize_=function(t){var e=this,i=this.currAtlas_,n=t.length*i.height;return[t.map(function(t){for(var n=0,r=0,o=t.length;r<o;++r){var s=t[r];i.width[s]||e.addCharToAtlas_(s),n+=i.width[s]?i.width[s]:0}return n}).reduce(function(t,e){return Math.max(t,e)}),n]},e.prototype.drawText_=function(t,e,i,n){for(var r=e,o=i;r<o;r+=n)this.drawCoordinates(t,e,i,n)},e.prototype.addCharToAtlas_=function(t){if(1===t.length){var e=this.currAtlas_,i=this.state_,n=this.measureCanvas_.getContext("2d");n.font=i.font;var r=Math.ceil(n.measureText(t).width*i.scale);e.atlas.add(t,r,e.height,function(e,n,r){e.font=i.font,e.fillStyle=i.fillColor,e.strokeStyle=i.strokeColor,e.lineWidth=i.lineWidth,e.lineCap=i.lineCap,e.lineJoin=i.lineJoin,e.miterLimit=i.miterLimit,e.textAlign="left",e.textBaseline="top",Ra&&i.lineDash&&(e.setLineDash(i.lineDash),e.lineDashOffset=i.lineDashOffset),1!==i.scale&&e.setTransform(i.scale,0,0,i.scale,0,0),i.strokeColor&&e.strokeText(t,n,r),i.fillColor&&e.fillText(t,n,r)})&&(e.width[t]=r)}},e.prototype.finish=function(e){var i=e.getGL();this.groupIndices.push(this.indices.length),this.hitDetectionGroupIndices=this.groupIndices,this.verticesBuffer=new Pf(this.vertices),this.indicesBuffer=new Pf(this.indices);this.createTextures(this.textures_,this.images_,{},i),this.state_={strokeColor:null,lineCap:void 0,lineDash:null,lineDashOffset:void 0,lineJoin:void 0,lineWidth:0,miterLimit:void 0,fillColor:null,font:void 0,scale:void 0},this.text_="",this.textAlign_=void 0,this.textBaseline_=void 0,this.offsetX_=void 0,this.offsetY_=void 0,this.images_=null,this.atlases_={},this.currAtlas_=void 0,t.prototype.finish.call(this,e)},e.prototype.setTextStyle=function(t){var e=this.state_,i=t.getFill(),n=t.getStroke();if(t&&t.getText()&&(i||n)){if(i){var r=i.getColor();e.fillColor=Kc(r||wf)}else e.fillColor=null;if(n){var o=n.getColor();e.strokeColor=Kc(o||Tf),e.lineWidth=n.getWidth()||1,e.lineCap=n.getLineCap()||"round",e.lineDashOffset=n.getLineDashOffset()||0,e.lineJoin=n.getLineJoin()||"round",e.miterLimit=n.getMiterLimit()||10;var s=n.getLineDash();e.lineDash=s?s.slice():Sf}else e.strokeColor=null,e.lineWidth=0;e.font=t.getFont()||"10px sans-serif",e.scale=t.getScale()||1,this.text_=t.getText();var a=Ld[t.getTextAlign()],l=Ld[t.getTextBaseline()];this.textAlign_=void 0===a?.5:a,this.textBaseline_=void 0===l?.5:l,this.offsetX_=t.getOffsetX()||0,this.offsetY_=t.getOffsetY()||0,this.rotateWithView=!!t.getRotateWithView(),this.rotation=t.getRotation()||0,this.currAtlas_=this.getAtlas_(e)}else this.text_=""},e.prototype.getAtlas_=function(t){var e=[];for(var i in t)(t[i]||0===t[i])&&(Array.isArray(t[i])?e=e.concat(t[i]):e.push(t[i]));var n=this.calculateHash_(e);if(!this.atlases_[n]){var r=this.measureCanvas_.getContext("2d");r.font=t.font;var o=Math.ceil((1.5*r.measureText("M").width+t.lineWidth/2)*t.scale);this.atlases_[n]={atlas:new up({space:t.lineWidth+1}),width:{},height:o}}return this.atlases_[n]},e.prototype.calculateHash_=function(t){for(var e="",i=0,n=t.length;i<n;++i)e+=t[i];return e},e.prototype.getTextures=function(t){return this.textures_},e.prototype.getHitDetectionTextures=function(){return this.textures_},e}($f)},dp=function(t){function e(e,i,n){t.call(this),this.maxExtent_=i,this.tolerance_=e,this.renderBuffer_=n,this.replaysByZIndex_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.addDeclutter=function(t){return[]},e.prototype.getDeleteResourcesFunction=function(t){var e,i=[];for(e in this.replaysByZIndex_){var n=this.replaysByZIndex_[e];for(var r in n)i.push(n[r].getDeleteResourcesFunction(t))}return function(){for(var t,e=arguments,n=i.length,r=0;r<n;r++)t=i[r].apply(this,e);return t}},e.prototype.finish=function(t){var e;for(e in this.replaysByZIndex_){var i=this.replaysByZIndex_[e];for(var n in i)i[n].finish(t)}},e.prototype.getReplay=function(t,e){var i=void 0!==t?t.toString():"0",n=this.replaysByZIndex_[i];void 0===n&&(n={},this.replaysByZIndex_[i]=n);var r=n[e];void 0===r&&(r=new(0,hp[e])(this.tolerance_,this.maxExtent_),n[e]=r);return r},e.prototype.isEmpty=function(){return Ut(this.replaysByZIndex_)},e.prototype.replay=function(t,e,i,n,r,o,s,a){var l,u,c,h,d,f,p=Object.keys(this.replaysByZIndex_).map(Number);for(p.sort(Hi),l=0,u=p.length;l<u;++l)for(d=this.replaysByZIndex_[p[l].toString()],c=0,h=Id.length;c<h;++c)f=d[Id[c]],void 0!==f&&f.replay(t,e,i,n,r,o,s,a,void 0,!1)},e.prototype.replayHitDetection_=function(t,e,i,n,r,o,s,a,l,u,c){var h,d,f,p,v,g,m=Object.keys(this.replaysByZIndex_).map(Number);for(m.sort(function(t,e){return e-t}),h=0,d=m.length;h<d;++h)for(p=this.replaysByZIndex_[m[h].toString()],f=Id.length-1;f>=0;--f)if(void 0!==(v=p[Id[f]])&&(g=v.replay(t,e,i,n,r,o,s,a,l,u,c)))return g},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,s,a,l,u){var c,h=e.getGL();return h.bindFramebuffer(h.FRAMEBUFFER,e.getHitDetectionFramebuffer()),void 0!==this.renderBuffer_&&(c=nt(ft(t),n*this.renderBuffer_)),this.replayHitDetection_(e,t,n,r,cp,s,a,l,function(t){var e=new Uint8Array(4);if(h.readPixels(0,0,1,1,h.RGBA,h.UNSIGNED_BYTE,e),e[3]>0){var i=u(t);if(i)return i}},!0,c)},e.prototype.hasFeatureAtCoordinate=function(t,e,i,n,r,o,s,a,l){var u=e.getGL();return u.bindFramebuffer(u.FRAMEBUFFER,e.getHitDetectionFramebuffer()),void 0!==this.replayHitDetection_(e,t,n,r,cp,s,a,l,function(t){var e=new Uint8Array(4);return u.readPixels(0,0,1,1,u.RGBA,u.UNSIGNED_BYTE,e),e[3]>0},!1)},e}(wd),fp=function(t){function e(e,i,n,r,o,s,a){t.call(this),this.context_=e,this.center_=i,this.extent_=s,this.pixelRatio_=a,this.size_=o,this.rotation_=r,this.resolution_=n,this.imageStyle_=null,this.fillStyle_=null,this.strokeStyle_=null,this.textStyle_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.drawText_=function(t,e){var i=this.context_,n=t.getReplay(0,Sd.TEXT);n.setTextStyle(this.textStyle_),n.drawText(e,null),n.finish(i);n.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),n.getDeleteResourcesFunction(i)()},e.prototype.setStyle=function(t){this.setFillStrokeStyle(t.getFill(),t.getStroke()),this.setImageStyle(t.getImage()),this.setTextStyle(t.getText())},e.prototype.drawGeometry=function(t){switch(t.getType()){case Fe.POINT:this.drawPoint(t,null);break;case Fe.LINE_STRING:this.drawLineString(t,null);break;case Fe.POLYGON:this.drawPolygon(t,null);break;case Fe.MULTI_POINT:this.drawMultiPoint(t,null);break;case Fe.MULTI_LINE_STRING:this.drawMultiLineString(t,null);break;case Fe.MULTI_POLYGON:this.drawMultiPolygon(t,null);break;case Fe.GEOMETRY_COLLECTION:this.drawGeometryCollection(t,null);break;case Fe.CIRCLE:this.drawCircle(t,null)}},e.prototype.drawFeature=function(t,e){var i=e.getGeometryFunction()(t);i&&Lt(this.extent_,i.getExtent())&&(this.setStyle(e),this.drawGeometry(i))},e.prototype.drawGeometryCollection=function(t,e){var i,n,r=t.getGeometriesArray();for(i=0,n=r.length;i<n;++i)this.drawGeometry(r[i])},e.prototype.drawPoint=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.IMAGE);r.setImageStyle(this.imageStyle_),r.drawPoint(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.drawMultiPoint=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.IMAGE);r.setImageStyle(this.imageStyle_),r.drawMultiPoint(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.drawLineString=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.LINE_STRING);r.setFillStrokeStyle(null,this.strokeStyle_),r.drawLineString(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.drawMultiLineString=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.LINE_STRING);r.setFillStrokeStyle(null,this.strokeStyle_),r.drawMultiLineString(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.drawPolygon=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.POLYGON);r.setFillStrokeStyle(this.fillStyle_,this.strokeStyle_),r.drawPolygon(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.drawMultiPolygon=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.POLYGON);r.setFillStrokeStyle(this.fillStyle_,this.strokeStyle_),r.drawMultiPolygon(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.drawCircle=function(t,e){var i=this.context_,n=new dp(1,this.extent_),r=n.getReplay(0,Sd.CIRCLE);r.setFillStrokeStyle(this.fillStyle_,this.strokeStyle_),r.drawCircle(t,e),r.finish(i);r.replay(this.context_,this.center_,this.resolution_,this.rotation_,this.size_,this.pixelRatio_,1,{},void 0,!1),r.getDeleteResourcesFunction(i)(),this.textStyle_&&this.drawText_(n,t)},e.prototype.setImageStyle=function(t){this.imageStyle_=t},e.prototype.setFillStrokeStyle=function(t,e){this.fillStyle_=t,this.strokeStyle_=e},e.prototype.setTextStyle=function(t){this.textStyle_=t},e}(rd),pp=new vf("precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform float u_opacity;\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  vec4 texColor = texture2D(u_texture, v_texCoord);\n  gl_FragColor.rgb = texColor.rgb;\n  gl_FragColor.a = texColor.a * u_opacity;\n}\n"),vp=new gf("varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\n\nuniform mat4 u_texCoordMatrix;\nuniform mat4 u_projectionMatrix;\n\nvoid main(void) {\n  gl_Position = u_projectionMatrix * vec4(a_position, 0., 1.);\n  v_texCoord = (u_texCoordMatrix * vec4(a_texCoord, 0., 1.)).st;\n}\n\n\n"),gp=function(t,e){this.u_texCoordMatrix=t.getUniformLocation(e,"u_texCoordMatrix"),this.u_projectionMatrix=t.getUniformLocation(e,"u_projectionMatrix"),this.u_opacity=t.getUniformLocation(e,"u_opacity"),this.u_texture=t.getUniformLocation(e,"u_texture"),this.a_position=t.getAttribLocation(e,"a_position"),this.a_texCoord=t.getAttribLocation(e,"a_texCoord")},mp=function(t){function e(e,i){t.call(this,i),this.mapRenderer=e,this.arrayBuffer_=new Pf([-1,-1,0,0,1,-1,1,0,-1,1,0,1,1,1,1,1]),this.texture=null,this.framebuffer=null,this.framebufferDimension=void 0,this.texCoordMatrix=[1,0,0,1,0,0],this.projectionMatrix=[1,0,0,1,0,0],this.tmpMat4_=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],this.defaultLocations_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bindFramebuffer=function(t,e){var i=this.mapRenderer.getGL();if(void 0===this.framebufferDimension||this.framebufferDimension!=e){var n=function(t,e,i){t.isContextLost()||(t.deleteFramebuffer(e),t.deleteTexture(i))}.bind(null,i,this.framebuffer,this.texture);t.postRenderFunctions.push(n);var r=Df(i,e,e),o=i.createFramebuffer();i.bindFramebuffer(36160,o),i.framebufferTexture2D(36160,36064,wa,r,0),this.texture=r,this.framebuffer=o,this.framebufferDimension=e}else i.bindFramebuffer(36160,this.framebuffer)},e.prototype.composeFrame=function(t,e,i){this.dispatchComposeEvent_(tl.PRECOMPOSE,i,t),i.bindBuffer(34962,this.arrayBuffer_);var n,r=i.getGL(),o=i.getProgram(pp,vp);this.defaultLocations_?n=this.defaultLocations_:(n=new gp(r,o),this.defaultLocations_=n),i.useProgram(o)&&(r.enableVertexAttribArray(n.a_position),r.vertexAttribPointer(n.a_position,2,5126,!1,16,0),r.enableVertexAttribArray(n.a_texCoord),r.vertexAttribPointer(n.a_texCoord,2,5126,!1,16,8),r.uniform1i(n.u_texture,0)),r.uniformMatrix4fv(n.u_texCoordMatrix,!1,bf(this.tmpMat4_,this.getTexCoordMatrix())),r.uniformMatrix4fv(n.u_projectionMatrix,!1,bf(this.tmpMat4_,this.getProjectionMatrix())),r.uniform1f(n.u_opacity,e.opacity),r.bindTexture(wa,this.getTexture()),r.drawArrays(5,0,4),this.dispatchComposeEvent_(tl.POSTCOMPOSE,i,t)},e.prototype.dispatchComposeEvent_=function(t,e,i){var n=this.getLayer();if(n.hasListener(t)){var r=i.viewState,o=r.resolution,s=i.pixelRatio,a=i.extent,l=r.center,u=r.rotation,c=i.size,h=new fp(e,l,o,u,c,a,s),d=new id(t,h,i,null,e);n.dispatchEvent(d)}},e.prototype.getTexCoordMatrix=function(){return this.texCoordMatrix},e.prototype.getTexture=function(){return this.texture},e.prototype.getProjectionMatrix=function(){return this.projectionMatrix},e.prototype.handleWebGLContextLost=function(){this.texture=null,this.framebuffer=null,this.framebufferDimension=void 0},e.prototype.prepareFrame=function(t,e,i){return X()},e.prototype.forEachLayerAtPixel=function(t,e,i,n){return X()},e}(pd),yp=function(t){function e(e,i){t.call(this,e,i),this.image_=null,this.hitCanvasContext_=null,this.hitTransformationMatrix_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createTexture_=function(t){var e=t.getImage();return jf(this.mapRenderer.getGL(),e,33071,33071)},e.prototype.prepareFrame=function(t,e,i){var n=this.mapRenderer.getGL(),r=t.pixelRatio,o=t.viewState,s=o.center,a=o.resolution,l=o.rotation,u=this.image_,c=this.texture,h=this.getLayer().getSource(),d=t.viewHints,f=t.extent;if(void 0!==e.extent&&(f=Mt(f,e.extent)),!d[ku]&&!d[Iu]&&!At(f)){var p=o.projection,v=h.getImage(f,a,r,p);if(v)if(this.loadImage(v)&&(u=v,c=this.createTexture_(v),this.texture)){var g=function(t,e){t.isContextLost()||t.deleteTexture(e)}.bind(null,n,this.texture);t.postRenderFunctions.push(g)}}if(u){var m=this.mapRenderer.getContext().getCanvas();this.updateProjectionMatrix_(m.width,m.height,r,s,a,l,u.getExtent()),this.hitTransformationMatrix_=null;var y=this.texCoordMatrix;Gr(y),Hr(y,1,-1),Ur(y,0,-1),this.image_=u,this.texture=c}return!!u},e.prototype.updateProjectionMatrix_=function(t,e,i,n,r,o,s){var a=t*r,l=e*r,u=this.projectionMatrix;Gr(u),Hr(u,2*i/a,2*i/l),Wr(u,-o),Ur(u,s[0]-n[0],s[1]-n[1]),Hr(u,(s[2]-s[0])/2,(s[3]-s[1])/2),Ur(u,1,1)},e.prototype.forEachLayerAtPixel=function(t,e,i,n){if(this.image_&&this.image_.getImage()){var r=[this.image_.getImage().width,this.image_.getImage().height];this.hitTransformationMatrix_||(this.hitTransformationMatrix_=this.getHitTransformationMatrix_(e.size,r));var o=Vr(this.hitTransformationMatrix_,t.slice());if(!(o[0]<0||o[0]>r[0]||o[1]<0||o[1]>r[1])){this.hitCanvasContext_||(this.hitCanvasContext_=Se(1,1)),this.hitCanvasContext_.clearRect(0,0,1,1),this.hitCanvasContext_.drawImage(this.image_.getImage(),o[0],o[1],1,1,0,0,1,1);var s=this.hitCanvasContext_.getImageData(0,0,1,1).data;return s[3]>0?i.call(n,this.getLayer(),s):void 0}}},e.prototype.getHitTransformationMatrix_=function(t,e){var i=[1,0,0,1,0,0];Ur(i,-1,-1),Hr(i,2/t[0],2/t[1]),Ur(i,0,t[1]),Hr(i,1,-1);var n=qr(this.projectionMatrix.slice()),r=[1,0,0,1,0,0];return Ur(r,0,e[1]),Hr(r,1,-1),Hr(r,e[0]/2,e[1]/2),Ur(r,1,1),zr(r,n),zr(r,i),r},e}(mp);yp.handles=function(t){return t.getType()===Xc.IMAGE},yp.create=function(t,e){return new yp(t,e)};var _p=yp,bp=function(t){function e(e){t.call(this,e);var i=e.getViewport();this.canvas_=document.createElement("canvas"),this.canvas_.style.width="100%",this.canvas_.style.height="100%",this.canvas_.style.display="block",this.canvas_.className=Uu,i.insertBefore(this.canvas_,i.childNodes[0]||null),this.clipTileCanvasWidth_=0,this.clipTileCanvasHeight_=0,this.clipTileContext_=Se(),this.renderedVisible_=!0,this.gl_=Ta(this.canvas_,{antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!1,stencil:!0}),this.context_=new Nf(this.canvas_,this.gl_),ue(this.canvas_,Rf.LOST,this.handleWebGLContextLost,this),ue(this.canvas_,Rf.RESTORED,this.handleWebGLContextRestored,this),this.textureCache_=new Pe,this.focus_=null,this.tileTextureQueue_=new Eu(function(t){var e=t[1],i=t[2],n=e[0]-this.focus_[0],r=e[1]-this.focus_[1];return 65536*Math.log(i)+Math.sqrt(n*n+r*r)/i}.bind(this),function(t){return t[0].getKey()}),this.loadNextTileTexture_=function(t,e){if(!this.tileTextureQueue_.isEmpty()){this.tileTextureQueue_.reprioritize();var i=this.tileTextureQueue_.dequeue(),n=i[0],r=i[3],o=i[4];this.bindTileTexture(n,r,o,_a,_a)}return!1}.bind(this),this.textureCacheFrameMarkerCount_=0,this.initializeGL_()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.bindTileTexture=function(t,e,i,n,r){var o=this.getGL(),s=t.getKey();if(this.textureCache_.containsKey(s)){var a=this.textureCache_.get(s);o.bindTexture(wa,a.texture),a.magFilter!=n&&(o.texParameteri(wa,10240,n),a.magFilter=n),a.minFilter!=r&&(o.texParameteri(wa,10241,r),a.minFilter=r)}else{var l=o.createTexture(),u=t;if(o.bindTexture(wa,l),i>0){var c=this.clipTileContext_.canvas,h=this.clipTileContext_;this.clipTileCanvasWidth_!==e[0]||this.clipTileCanvasHeight_!==e[1]?(c.width=e[0],c.height=e[1],this.clipTileCanvasWidth_=e[0],this.clipTileCanvasHeight_=e[1]):h.clearRect(0,0,e[0],e[1]),h.drawImage(u.getImage(),i,i,e[0],e[1],0,0,e[0],e[1]),o.texImage2D(wa,0,6408,6408,5121,c)}else o.texImage2D(wa,0,6408,6408,5121,u.getImage());o.texParameteri(wa,10240,n),o.texParameteri(wa,10241,r),o.texParameteri(wa,ba,33071),o.texParameteri(wa,xa,33071),this.textureCache_.set(s,{texture:l,magFilter:n,minFilter:r})}},e.prototype.dispatchRenderEvent=function(t,e){var i=this.getMap();if(i.hasListener(t)){var n=this.context_,r=e.extent,o=e.size,s=e.viewState,a=e.pixelRatio,l=s.resolution,u=s.center,c=s.rotation,h=new fp(n,u,l,c,o,r,a),d=new id(t,h,e,null,n);i.dispatchEvent(d)}},e.prototype.disposeInternal=function(){var e=this.getGL();e.isContextLost()||this.textureCache_.forEach(function(t){t&&e.deleteTexture(t.texture)}),this.context_.dispose(),t.prototype.disposeInternal.call(this)},e.prototype.expireCache_=function(t,e){for(var i,n=this.getGL();this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>1024;){if(i=this.textureCache_.peekLast())n.deleteTexture(i.texture);else{if(+this.textureCache_.peekLastKey()==e.index)break;--this.textureCacheFrameMarkerCount_}this.textureCache_.pop()}},e.prototype.getContext=function(){return this.context_},e.prototype.getGL=function(){return this.gl_},e.prototype.getTileTextureQueue=function(){return this.tileTextureQueue_},e.prototype.handleWebGLContextLost=function(t){t.preventDefault(),this.textureCache_.clear(),this.textureCacheFrameMarkerCount_=0;var e=this.getLayerRenderers();for(var i in e){e[i].handleWebGLContextLost()}},e.prototype.handleWebGLContextRestored=function(){this.initializeGL_(),this.getMap().render()},e.prototype.initializeGL_=function(){var t=this.gl_;t.activeTexture(33984),t.blendFuncSeparate(770,771,1,771),t.disable(2884),t.disable(2929),t.disable(3089),t.disable(2960)},e.prototype.isTileTextureLoaded=function(t){return this.textureCache_.containsKey(t.getKey())},e.prototype.renderFrame=function(t){var e=this.getContext(),i=this.getGL();if(i.isContextLost())return!1;if(!t)return this.renderedVisible_&&(this.canvas_.style.display="none",this.renderedVisible_=!1),!1;this.focus_=t.focus,this.textureCache_.set((-t.index).toString(),null),++this.textureCacheFrameMarkerCount_,this.dispatchRenderEvent(tl.PRECOMPOSE,t);var n=[],r=t.layerStatesArray;Ji(r,cd);var o,s,a=t.viewState.resolution;for(o=0,s=r.length;o<s;++o){var l=r[o];if(Zu(l,a)&&l.sourceState==Ni.READY)this.getLayerRenderer(l.layer).prepareFrame(t,l,e)&&n.push(l)}var u=t.size[0]*t.pixelRatio,c=t.size[1]*t.pixelRatio;for(this.canvas_.width==u&&this.canvas_.height==c||(this.canvas_.width=u,this.canvas_.height=c),i.bindFramebuffer(36160,null),i.clearColor(0,0,0,0),i.clear(16384),i.enable(3042),i.viewport(0,0,this.canvas_.width,this.canvas_.height),o=0,s=n.length;o<s;++o){var h=n[o];this.getLayerRenderer(h.layer).composeFrame(t,h,e)}this.renderedVisible_||(this.canvas_.style.display="",this.renderedVisible_=!0),this.calculateMatrices2D(t),this.textureCache_.getCount()-this.textureCacheFrameMarkerCount_>1024&&t.postRenderFunctions.push(this.expireCache_.bind(this)),this.tileTextureQueue_.isEmpty()||(t.postRenderFunctions.push(this.loadNextTileTexture_),t.animate=!0),this.dispatchRenderEvent(tl.POSTCOMPOSE,t),this.scheduleRemoveUnusedLayerRenderers(t),this.scheduleExpireIconCache(t)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r,o,s){var a;if(this.getGL().isContextLost())return!1;var l,u=e.viewState,c=e.layerStatesArray;for(l=c.length-1;l>=0;--l){var h=c[l],d=h.layer;if(Zu(h,u.resolution)&&o.call(s,d))if(a=this.getLayerRenderer(d).forEachFeatureAtCoordinate(t,e,i,n))return a}},e.prototype.hasFeatureAtCoordinate=function(t,e,i,n,r){var o=!1;if(this.getGL().isContextLost())return!1;var s,a=e.viewState,l=e.layerStatesArray;for(s=l.length-1;s>=0;--s){var u=l[s],c=u.layer;if(Zu(u,a.resolution)&&n.call(r,c))if(o=this.getLayerRenderer(c).hasFeatureAtCoordinate(t,e))return!0}return o},e.prototype.forEachLayerAtPixel=function(t,e,i,n,r,o,s){if(this.getGL().isContextLost())return!1;var a,l,u=e.viewState,c=e.layerStatesArray;for(l=c.length-1;l>=0;--l){var h=c[l],d=h.layer;if(Zu(h,u.resolution)&&o.call(r,d))if(a=this.getLayerRenderer(d).forEachLayerAtPixel(t,e,n,r))return a}},e}(hd),xp=new vf("precision mediump float;\nvarying vec2 v_texCoord;\n\n\nuniform sampler2D u_texture;\n\nvoid main(void) {\n  gl_FragColor = texture2D(u_texture, v_texCoord);\n}\n"),wp=new gf("varying vec2 v_texCoord;\n\n\nattribute vec2 a_position;\nattribute vec2 a_texCoord;\nuniform vec4 u_tileOffset;\n\nvoid main(void) {\n  gl_Position = vec4(a_position * u_tileOffset.xy + u_tileOffset.zw, 0., 1.);\n  v_texCoord = a_texCoord;\n}\n\n\n"),Sp=function(t,e){this.u_tileOffset=t.getUniformLocation(e,"u_tileOffset"),this.u_texture=t.getUniformLocation(e,"u_texture"),this.a_position=t.getAttribLocation(e,"a_position"),this.a_texCoord=t.getAttribLocation(e,"a_texCoord")},Tp=function(t){function e(e,i){t.call(this,e,i),this.fragmentShader_=xp,this.vertexShader_=wp,this.locations_=null,this.renderArrayBuffer_=new Pf([0,0,0,1,1,0,1,1,0,1,0,0,1,1,1,0]),this.renderedTileRange_=null,this.renderedFramebufferExtent_=null,this.renderedRevision_=-1,this.tmpSize_=[0,0]}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.mapRenderer.getContext().deleteBuffer(this.renderArrayBuffer_),t.prototype.disposeInternal.call(this)},e.prototype.createLoadedTileFinder=function(t,e,i){var n=this.mapRenderer;return function(r,o){return t.forEachLoadedTile(e,r,o,function(t){var e=n.isTileTextureLoaded(t);return e&&(i[r]||(i[r]={}),i[r][t.tileCoord.toString()]=t),e})}},e.prototype.handleWebGLContextLost=function(){t.prototype.handleWebGLContextLost.call(this),this.locations_=null},e.prototype.prepareFrame=function(t,e,i){var n=this.mapRenderer,r=i.getGL(),o=t.viewState,s=o.projection,a=this.getLayer(),l=a.getSource();if(!(l instanceof hn))return!0;var u,c=l.getTileGridForProjection(s),h=c.getZForResolution(o.resolution),d=c.getResolution(h),f=l.getTilePixelSize(h,t.pixelRatio,s),p=f[0]/Kt(c.getTileSize(h),this.tmpSize_)[0],v=d/p,g=l.getTilePixelRatio(p)*l.getGutterForProjection(s),m=o.center,y=t.extent,_=c.getTileRangeForExtentAndZ(y,h);if(this.renderedTileRange_&&this.renderedTileRange_.equals(_)&&this.renderedRevision_==l.getRevision())u=this.renderedFramebufferExtent_;else{var b=_.getSize(),x=function(t){return Q(0<t,29),Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))}(Math.max(b[0]*f[0],b[1]*f[1])),w=v*x,S=c.getOrigin(h),T=S[0]+_.minX*f[0]*v,E=S[1]+_.minY*f[1]*v;u=[T,E,T+w,E+w],this.bindFramebuffer(t,x),r.viewport(0,0,x,x),r.clearColor(0,0,0,0),r.clear(16384),r.disable(3042);var C=i.getProgram(this.fragmentShader_,this.vertexShader_);i.useProgram(C),this.locations_||(this.locations_=new Sp(r,C)),i.bindBuffer(34962,this.renderArrayBuffer_),r.enableVertexAttribArray(this.locations_.a_position),r.vertexAttribPointer(this.locations_.a_position,2,5126,!1,16,0),r.enableVertexAttribArray(this.locations_.a_texCoord),r.vertexAttribPointer(this.locations_.a_texCoord,2,5126,!1,16,8),r.uniform1i(this.locations_.u_texture,0);var O={};O[h]={};var M,P,k,I,L,A,R=this.createLoadedTileFinder(l,s,O),F=a.getUseInterimTilesOnError(),D=!0,j=[1/0,1/0,-1/0,-1/0],N=new Wi(0,0,0,0);for(I=_.minX;I<=_.maxX;++I)for(L=_.minY;L<=_.maxY;++L)if(P=l.getTile(h,I,L,p,s),void 0===e.extent||Lt(A=c.getTileCoordExtent(P.tileCoord,j),e.extent)){if((k=P.getState())==Jt.LOADED||k==Jt.EMPTY||k==Jt.ERROR&&!F||(P=P.getInterimTile()),(k=P.getState())==Jt.LOADED){if(n.isTileTextureLoaded(P)){O[h][P.tileCoord.toString()]=P;continue}}else if(k==Jt.EMPTY||k==Jt.ERROR&&!F)continue;D=!1,c.forEachTileCoordParentTileRange(P.tileCoord,R,null,N,j)||(M=c.getTileCoordChildTileRange(P.tileCoord,N,j))&&R(h+1,M)}var $=Object.keys(O).map(Number);$.sort(Hi);for(var G=new Float32Array(4),z=0,B=$.length;z<B;++z){var Y=O[$[z]];for(var V in Y)(P=Y[V])instanceof Me&&(A=c.getTileCoordExtent(P.tileCoord,j),G[0]=2*(A[2]-A[0])/w,G[1]=2*(A[3]-A[1])/w,G[2]=2*(A[0]-u[0])/w-1,G[3]=2*(A[1]-u[1])/w-1,r.uniform4fv(this.locations_.u_tileOffset,G),n.bindTileTexture(P,f,g*p,_a,_a),r.drawArrays(5,0,4))}D?(this.renderedTileRange_=_,this.renderedFramebufferExtent_=u,this.renderedRevision_=l.getRevision()):(this.renderedTileRange_=null,this.renderedFramebufferExtent_=null,this.renderedRevision_=-1,t.animate=!0)}this.updateUsedTiles(t.usedTiles,l,h,_);var W=n.getTileTextureQueue();this.manageTilePyramid(t,l,c,p,s,y,h,a.getPreload(),function(t){t.getState()!=Jt.LOADED||n.isTileTextureLoaded(t)||W.isKeyQueued(t.getKey())||W.enqueue([t,c.getTileCoordCenter(t.tileCoord),c.getResolution(t.tileCoord[0]),f,g*p])},this),this.scheduleExpireCache(t,l);var H=this.texCoordMatrix;return Gr(H),Ur(H,(Math.round(m[0]/d)*d-u[0])/(u[2]-u[0]),(Math.round(m[1]/d)*d-u[1])/(u[3]-u[1])),0!==o.rotation&&Wr(H,o.rotation),Hr(H,t.size[0]*o.resolution/(u[2]-u[0]),t.size[1]*o.resolution/(u[3]-u[1])),Ur(H,-.5,-.5),!0},e.prototype.forEachLayerAtPixel=function(t,e,i,n){if(this.framebuffer){var r=[t[0]/e.size[0],(e.size[1]-t[1])/e.size[1]],o=Vr(this.texCoordMatrix,r.slice()),s=[o[0]*this.framebufferDimension,o[1]*this.framebufferDimension],a=this.mapRenderer.getContext().getGL();a.bindFramebuffer(a.FRAMEBUFFER,this.framebuffer);var l=new Uint8Array(4);return a.readPixels(s[0],s[1],1,1,a.RGBA,a.UNSIGNED_BYTE,l),l[3]>0?i.call(n,this.getLayer(),l):void 0}},e}(mp);Tp.handles=function(t){return t.getType()===Xc.TILE},Tp.create=function(t,e){return new Tp(t,e)};var Ep=Tp,Cp=function(t){function e(e,i){t.call(this,e,i),this.dirty_=!1,this.renderedRevision_=-1,this.renderedResolution_=NaN,this.renderedExtent_=[1/0,1/0,-1/0,-1/0],this.renderedRenderOrder_=null,this.replayGroup_=null,this.layerState_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.composeFrame=function(t,e,i){this.layerState_=e;var n=t.viewState,r=this.replayGroup_,o=t.size,s=t.pixelRatio,a=this.mapRenderer.getGL();r&&!r.isEmpty()&&(a.enable(a.SCISSOR_TEST),a.scissor(0,0,o[0]*s,o[1]*s),r.replay(i,n.center,n.resolution,n.rotation,o,s,e.opacity,e.managed?t.skippedFeatureUids:{}),a.disable(a.SCISSOR_TEST))},e.prototype.disposeInternal=function(){var e=this.replayGroup_;if(e){var i=this.mapRenderer.getContext();e.getDeleteResourcesFunction(i)(),this.replayGroup_=null}t.prototype.disposeInternal.call(this)},e.prototype.forEachFeatureAtCoordinate=function(t,e,i,n,r){if(this.replayGroup_&&this.layerState_){var o=this.mapRenderer.getContext(),s=e.viewState,a=this.getLayer(),l=this.layerState_,u={};return this.replayGroup_.forEachFeatureAtCoordinate(t,o,s.center,s.resolution,s.rotation,e.size,e.pixelRatio,l.opacity,{},function(t){var e=K(t);if(!(e in u))return u[e]=!0,n.call(r,t,a)})}},e.prototype.hasFeatureAtCoordinate=function(t,e){if(this.replayGroup_&&this.layerState_){var i=this.mapRenderer.getContext(),n=e.viewState,r=this.layerState_;return this.replayGroup_.hasFeatureAtCoordinate(t,i,n.center,n.resolution,n.rotation,e.size,e.pixelRatio,r.opacity,e.skippedFeatureUids)}return!1},e.prototype.forEachLayerAtPixel=function(t,e,i,n){var r=Vr(e.pixelToCoordinateTransform,t.slice());return this.hasFeatureAtCoordinate(r,e)?i.call(n,this.getLayer(),null):void 0},e.prototype.handleStyleImageChange_=function(t){this.renderIfReadyAndVisible()},e.prototype.prepareFrame=function(t,e,i){var n=this.getLayer(),r=n.getSource(),o=t.viewHints[ku],s=t.viewHints[Iu],a=n.getUpdateWhileAnimating(),l=n.getUpdateWhileInteracting();if(!this.dirty_&&!a&&o||!l&&s)return!0;var u=t.extent,c=t.viewState,h=c.projection,d=c.resolution,f=t.pixelRatio,p=n.getRevision(),v=n.getRenderBuffer(),g=n.getRenderOrder();void 0===g&&(g=Ud);var m=nt(u,v*d);if(!this.dirty_&&this.renderedResolution_==d&&this.renderedRevision_==p&&this.renderedRenderOrder_==g&&at(this.renderedExtent_,m))return!0;this.replayGroup_&&t.postRenderFunctions.push(this.replayGroup_.getDeleteResourcesFunction(i)),this.dirty_=!1;var y=new dp(qd(d,f),m,n.getRenderBuffer());r.loadFeatures(m,d,h);var _=function(t){var e,i=t.getStyleFunction()||n.getStyleFunction();if(i&&(e=i(t,d)),e){var r=this.renderFeature(t,d,f,e,y);this.dirty_=this.dirty_||r}}.bind(this);if(g){var b=[];r.forEachFeatureInExtent(m,function(t){b.push(t)}),b.sort(g),b.forEach(_.bind(this))}else r.forEachFeatureInExtent(m,_);return y.finish(i),this.renderedResolution_=d,this.renderedRevision_=p,this.renderedRenderOrder_=g,this.renderedExtent_=m,this.replayGroup_=y,!0},e.prototype.renderFeature=function(t,e,i,n,r){if(!n)return!1;var o=!1;if(Array.isArray(n))for(var s=n.length-1;s>=0;--s)o=Kd(r,t,n[s],Xd(e,i),this.handleStyleImageChange_,this)||o;else o=Kd(r,t,n,Xd(e,i),this.handleStyleImageChange_,this)||o;return o},e}(mp);Cp.handles=function(t){return t.getType()===Xc.VECTOR},Cp.create=function(t,e){return new Cp(t,e)};var Op=Cp,Mp=function(t){function e(e){(e=Vt({},e)).controls||(e.controls=rc()),e.interactions||(e.interactions=ed()),t.call(this,e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createRenderer=function(){var t=new bp(this);return t.registerLayerRenderers([_p,Ep,Op]),t},e}(Yu);function Pp(t){return K(t)}function kp(t,e){return Object(ir.A)(t,function(t,i,n){return n=n.toUpperCase(),hs()(e).call(e,n)?t:(t[n]=i,t)},{})}function Ip(t){var e=function(){if("undefined"==typeof Reflect||!ur.a)return!1;if(ur.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ur()(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,n=Sr(t);if(e){var r=Sr(this).constructor;i=ur()(n,arguments,r)}else i=n.apply(this,arguments);return kr(this,i)}}function Lp(t){return new Ap(t)}var Ap=function(t){Mr(i,Qo);var e=Ip(i);function i(){return cr(this,i),e.apply(this,arguments)}return dr(i,[{key:"writeGeometryObject",value:function(t,e){if(s=t,Object(ir.n)(s.getCenter)&&Object(ir.n)(s.getRadius)){var n=t.getCenter(),r=[n[0]+t.getRadius(),n[1]],o=function t(e,i){var n=i||{},r=n.radius||De,o=n.projection||"EPSG:3857",s=e.getType();s!==Fe.GEOMETRY_COLLECTION&&(e=e.clone().transform(o,"EPSG:4326"));var a,l,u,c,h,d,f=0;switch(s){case Fe.POINT:case Fe.MULTI_POINT:break;case Fe.LINE_STRING:case Fe.LINEAR_RING:f=Ne(a=e.getCoordinates(),r);break;case Fe.MULTI_LINE_STRING:case Fe.POLYGON:for(u=0,c=(a=e.getCoordinates()).length;u<c;++u)f+=Ne(a[u],r);break;case Fe.MULTI_POLYGON:for(u=0,c=(a=e.getCoordinates()).length;u<c;++u)for(h=0,d=(l=a[u]).length;h<d;++h)f+=Ne(l[h],r);break;case Fe.GEOMETRY_COLLECTION:var p=e.getGeometries();for(u=0,c=p.length;u<c;++u)f+=t(p[u],i);break;default:throw new Error("Unsupported geometry type: "+s)}return f}(new Po([n,r]),e.featureProjection||this.defaultFeatureProjection);t=Hs(ra(t.getCenter(),e.featureProjection||this.defaultFeatureProjection,Gn),o),e.featureProjection=Gn}var s;return Tr(Sr(i.prototype),"writeGeometryObject",this).call(this,t,e)}},{key:"writeFeatureObject",value:function(t,e){var i={type:"Feature"},n=t.getId();void 0!==n&&(i.id=n);var r=t.getGeometry();i.geometry=r?this.writeGeometryObject(r,e):null;var o=t.getProperties();return delete o[t.getGeometryName()],Object(ir.k)(o)?i.properties=null:i.properties=o,i}}]),i}(),Rp=Lp();function Fp(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gn,r=Rp.writeFeatureObject(t,{featureProjection:i,dataProjection:n});Array.isArray(Object(ir.h)(r,"properties.features"))&&(r.properties.features=ea()(e=r.properties.features).call(e,function(t){return t instanceof Zn?Fp(t,i,n):t}));return r}function Dp(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gn;return Rp.writeGeometryObject(t,{featureProjection:e,dataProjection:i})}function jp(t){var e,i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gn;return e=t,i=r,r=Rp.readProjection(e)||i,Rp.readGeometry(t,{featureProjection:n,dataProjection:r})}function Np(t){if(t instanceof er.a)return t.id;if(t instanceof hc)return t.get("id");throw new Error("Illegal interaction argument")}function $p(t,e){if(t instanceof er.a)return t.id=e,t;if(t instanceof hc)return t.set("id",e),t;throw new Error("Illegal interaction argument")}function Gp(t){if(t instanceof er.a)return t.priority;if(t instanceof hc)return t.get("priority");throw new Error("Illegal interaction argument")}function zp(t,e){if(t instanceof er.a)return t.id=e,t;if(t instanceof hc)return t.set("priority",e),t;throw new Error("Illegal interaction argument")}function Bp(t,e,i){return null==Np(t)&&$p(t,e||Qn()()),null==Gp(t)&&zp(t,i||0),t}function Yp(t){if(t instanceof er.a)return t.id;if(t instanceof Gu)return t.get("id");throw new Error("Illegal layer argument")}function Vp(t,e){if(t instanceof er.a)return t.id=e,t;if(t instanceof Gu)return t.set("id",e),t;throw new Error("Illegal layer argument")}function Wp(t,e){return null==Yp(t)&&Vp(t,e||Qn()()),t}function Hp(t,e){if(t instanceof er.a)return t.id=e,t;if(t instanceof Yu)return t.set("id",e),t;throw new Error("Illegal map argument")}function Up(t,e){if(t instanceof er.a)return t.dataProjection=e,t;if(t instanceof Yu)return t.set("dataProjection",e),t;throw new Error("Illegal map argument")}function Xp(t){if(t instanceof er.a)return t.id;if(t instanceof lf)return t.get("id");throw new Error("Illegal overlay argument")}function qp(t,e){if(t instanceof er.a&&t)return t.id=e,t;if(t instanceof lf)return t.set("id",e),t;throw new Error("Illegal overlay argument")}function Kp(t,e){return null==Xp(t)&&qp(t,e||Qn()()),t}function Zp(t){if(t instanceof er.a)return t.id;if(t instanceof Gi)return t.get("id");throw new Error("Illegal source argument")}function Jp(t,e){if(t instanceof er.a)return t.id=e,t;if(t instanceof Gi)return t.set("id",e),t;throw new Error("Illegal source argument")}function Qp(t,e){return null==Zp(t)&&Jp(t,e||Qn()()),t}var tv=i(4),ev=i.n(tv),iv=i(5),nv=i.n(iv),rv={FRACTION:"fraction",PIXELS:"pixels"},ov=function(t){function e(e,i,n,r,o,s){t.call(this),this.hitDetectionImage_=null,this.image_=e||new Image,null!==r&&(this.image_.crossOrigin=r),this.canvas_=s?document.createElement("canvas"):null,this.color_=s,this.imageListenerKeys_=null,this.imageState_=o,this.size_=n,this.src_=i,this.tainted_}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.isTainted_=function(){if(void 0===this.tainted_&&this.imageState_===Sl.LOADED){this.tainted_=!1;var t=Se(1,1);try{t.drawImage(this.image_,0,0),t.getImageData(0,0,1,1)}catch(t){this.tainted_=!0}}return!0===this.tainted_},e.prototype.dispatchChangeEvent_=function(){this.dispatchEvent(xe.CHANGE)},e.prototype.handleImageError_=function(){this.imageState_=Sl.ERROR,this.unlistenImage_(),this.dispatchChangeEvent_()},e.prototype.handleImageLoad_=function(){this.imageState_=Sl.LOADED,this.size_&&(this.image_.width=this.size_[0],this.image_.height=this.size_[1]),this.size_=[this.image_.width,this.image_.height],this.unlistenImage_(),this.replaceColor_(),this.dispatchChangeEvent_()},e.prototype.getImage=function(t){return this.canvas_?this.canvas_:this.image_},e.prototype.getImageState=function(){return this.imageState_},e.prototype.getHitDetectionImage=function(t){if(!this.hitDetectionImage_)if(this.isTainted_()){var e=this.size_[0],i=this.size_[1],n=Se(e,i);n.fillRect(0,0,e,i),this.hitDetectionImage_=n.canvas}else this.hitDetectionImage_=this.image_;return this.hitDetectionImage_},e.prototype.getSize=function(){return this.size_},e.prototype.getSrc=function(){return this.src_},e.prototype.load=function(){if(this.imageState_==Sl.IDLE){this.imageState_=Sl.LOADING,this.imageListenerKeys_=[ce(this.image_,xe.ERROR,this.handleImageError_,this),ce(this.image_,xe.LOAD,this.handleImageLoad_,this)];try{this.image_.src=this.src_}catch(t){this.handleImageError_()}}},e.prototype.replaceColor_=function(){if(this.color_&&!this.isTainted_()){this.canvas_.width=this.image_.width,this.canvas_.height=this.image_.height;var t=this.canvas_.getContext("2d");t.drawImage(this.image_,0,0);for(var e=t.getImageData(0,0,this.image_.width,this.image_.height),i=e.data,n=this.color_[0]/255,r=this.color_[1]/255,o=this.color_[2]/255,s=0,a=i.length;s<a;s+=4)i[s]*=n,i[s+1]*=r,i[s+2]*=o;t.putImageData(e,0,0)}},e.prototype.unlistenImage_=function(){this.imageListenerKeys_.forEach(de),this.imageListenerKeys_=null},e}(be);var sv={BOTTOM_LEFT:"bottom-left",BOTTOM_RIGHT:"bottom-right",TOP_LEFT:"top-left",TOP_RIGHT:"top-right"},av=function(t){function e(e){var i=e||{},n=void 0!==i.opacity?i.opacity:1,r=void 0!==i.rotation?i.rotation:0,o=void 0!==i.scale?i.scale:1,s=void 0!==i.rotateWithView&&i.rotateWithView;t.call(this,{opacity:n,rotation:r,scale:o,rotateWithView:s}),this.anchor_=void 0!==i.anchor?i.anchor:[.5,.5],this.normalizedAnchor_=null,this.anchorOrigin_=void 0!==i.anchorOrigin?i.anchorOrigin:sv.TOP_LEFT,this.anchorXUnits_=void 0!==i.anchorXUnits?i.anchorXUnits:rv.FRACTION,this.anchorYUnits_=void 0!==i.anchorYUnits?i.anchorYUnits:rv.FRACTION,this.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null;var a=void 0!==i.img?i.img:null,l=void 0!==i.imgSize?i.imgSize:null,u=i.src;Q(!(void 0!==u&&a),4),Q(!a||a&&l,5),void 0!==u&&0!==u.length||!a||(u=a.src||K(a)),Q(void 0!==u&&u.length>0,6);var c=void 0!==i.src?Sl.IDLE:Sl.LOADED;this.color_=void 0!==i.color?al(i.color):null,this.iconImage_=function(t,e,i,n,r,o){var s=ld.get(e,n,o);return s||(s=new ov(t,e,i,n,r,o),ld.set(e,n,o,s)),s}(a,u,l,this.crossOrigin_,c,this.color_),this.offset_=void 0!==i.offset?i.offset:[0,0],this.offsetOrigin_=void 0!==i.offsetOrigin?i.offsetOrigin:sv.TOP_LEFT,this.origin_=null,this.size_=void 0!==i.size?i.size:null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.clone=function(){return new e({anchor:this.anchor_.slice(),anchorOrigin:this.anchorOrigin_,anchorXUnits:this.anchorXUnits_,anchorYUnits:this.anchorYUnits_,crossOrigin:this.crossOrigin_,color:this.color_&&this.color_.slice?this.color_.slice():this.color_||void 0,src:this.getSrc(),offset:this.offset_.slice(),offsetOrigin:this.offsetOrigin_,size:null!==this.size_?this.size_.slice():void 0,opacity:this.getOpacity(),scale:this.getScale(),rotation:this.getRotation(),rotateWithView:this.getRotateWithView()})},e.prototype.getAnchor=function(){if(this.normalizedAnchor_)return this.normalizedAnchor_;var t=this.anchor_,e=this.getSize();if(this.anchorXUnits_==rv.FRACTION||this.anchorYUnits_==rv.FRACTION){if(!e)return null;t=this.anchor_.slice(),this.anchorXUnits_==rv.FRACTION&&(t[0]*=e[0]),this.anchorYUnits_==rv.FRACTION&&(t[1]*=e[1])}if(this.anchorOrigin_!=sv.TOP_LEFT){if(!e)return null;t===this.anchor_&&(t=this.anchor_.slice()),this.anchorOrigin_!=sv.TOP_RIGHT&&this.anchorOrigin_!=sv.BOTTOM_RIGHT||(t[0]=-t[0]+e[0]),this.anchorOrigin_!=sv.BOTTOM_LEFT&&this.anchorOrigin_!=sv.BOTTOM_RIGHT||(t[1]=-t[1]+e[1])}return this.normalizedAnchor_=t,this.normalizedAnchor_},e.prototype.setAnchor=function(t){this.anchor_=t,this.normalizedAnchor_=null},e.prototype.getColor=function(){return this.color_},e.prototype.getImage=function(t){return this.iconImage_.getImage(t)},e.prototype.getImageSize=function(){return this.iconImage_.getSize()},e.prototype.getHitDetectionImageSize=function(){return this.getImageSize()},e.prototype.getImageState=function(){return this.iconImage_.getImageState()},e.prototype.getHitDetectionImage=function(t){return this.iconImage_.getHitDetectionImage(t)},e.prototype.getOrigin=function(){if(this.origin_)return this.origin_;var t=this.offset_;if(this.offsetOrigin_!=sv.TOP_LEFT){var e=this.getSize(),i=this.iconImage_.getSize();if(!e||!i)return null;t=t.slice(),this.offsetOrigin_!=sv.TOP_RIGHT&&this.offsetOrigin_!=sv.BOTTOM_RIGHT||(t[0]=i[0]-e[0]-t[0]),this.offsetOrigin_!=sv.BOTTOM_LEFT&&this.offsetOrigin_!=sv.BOTTOM_RIGHT||(t[1]=i[1]-e[1]-t[1])}return this.origin_=t,this.origin_},e.prototype.getSrc=function(){return this.iconImage_.getSrc()},e.prototype.getSize=function(){return this.size_?this.size_:this.iconImage_.getSize()},e.prototype.listenImageChange=function(t,e){return ue(this.iconImage_,xe.CHANGE,t,e)},e.prototype.load=function(){this.iconImage_.load()},e.prototype.unlistenImageChange=function(t,e){he(this.iconImage_,xe.CHANGE,t,e)},e}(vh),lv=i(819),uv=i.n(lv);function cv(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function hv(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?cv(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):cv(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}function dv(t){if(t instanceof er.a||t instanceof Sh||t instanceof vh||t instanceof ml||t instanceof fl||t instanceof hl||t instanceof Function)return t.id;throw new Error("Illegal style argument")}function fv(t,e){if(t instanceof er.a||t instanceof Sh||t instanceof vh||t instanceof ml||t instanceof fl||t instanceof hl||t instanceof Function)return t.id=e,t;throw new Error("Illegal style argument")}function pv(t,e){return null==dv(t)&&fv(t,e||Qn()()),t}function vv(){var t,e,i,n={},r=[255,255,255,1],o=[0,153,255,1];return n[Vn.LINE_STRING]=[{strokeColor:r,strokeWidth:5},{strokeColor:o,strokeWidth:3}],n[Vn.MULTI_LINE_STRING]=n[Vn.LINE_STRING],n[Vn.POLYGON]=ev()(t=[{fillColor:[255,255,255,.5]}]).call(t,n[Vn.LINE_STRING]),n[Vn.MULTI_POLYGON]=n[Vn.POLYGON],n[Vn.CIRCLE]=ev()(e=n[Vn.POLYGON]).call(e,n[Vn.LINE_STRING]),n[Vn.POINT]=[{imageRadius:6,fillColor:o,strokeColor:r,strokeWidth:1.5,zIndex:1/0}],n[Vn.MULTI_POINT]=n[Vn.POINT],n[Vn.GEOMETRY_COLLECTION]=ev()(i=n[Vn.POLYGON]).call(i,n[Vn.LINE_STRING],n[Vn.POINT]),n}var gv=function(t){return null==t||"number"!=typeof t&&(("string"==typeof t||Array.isArray(t))&&!t.length||!$n()(t).length)};function mv(t){if(!gv(t)){var e={text:function(t){var e;if(null==t.text)return;if(t.text instanceof ml)return t.text;var i={text:t.text},n="10px";t.textFontSize&&(n=Object(ir.o)(t.textFontSize)?t.textFontSize+"px":t.textFontSize);var r=t.textFont||"sans-serif",o=Tn()(e=[t.textFontWeight,n,r]).call(e,function(t){return!!t}).join(" ");if(nv()(i,Object(ir.x)(t,["textAlign","textBaseline"]),{font:o,fill:bv(t,"text")||bv(t),stroke:xv(t,"text")||xv(t),scale:t.textScale,rotation:t.textRotation,offsetX:t.textOffsetX,offsetY:t.textOffsetY,rotateWithView:t.textRotateWithView,padding:t.textPadding,maxAngle:t.textMaxAngle,overflow:t.textOverflow,placement:t.textPlacement,backgroundFill:bv(t,"textBackground"),backgroundStroke:xv(t,"textBackground")}),!gv(i))return new ml(i)}(t),fill:bv(t),stroke:xv(t),image:function(t){if(gv(t.imageSrc)&&gv(t.image)&&gv(t.imagePoints)&&!Object(ir.p)(t.imageRadius))return;if(t.image instanceof vh)return t.image;var e,i;gv(t.imageSrc)&&gv(t.image)?null!=t.imagePoints?(i=gh,e=hv(hv({},t),{},{points:t.imagePoints,radius:t.imageRadius,radius1:t.imageRadius1,radius2:t.imageRadius2,angle:t.imageAngle,rotation:t.imageRotation})):(i=mh,e=hv(hv({},t),{},{radius:t.imageRadius})):(i=av,e=hv(hv({},t),{},{anchor:t.imageAnchor,anchorOrigin:t.imageAnchorOrigin,color:t.imageColor,offset:t.imageOffset,offsetOrigin:t.imageOffsetOrigin,opacity:t.imageOpacity,scale:t.imageScale,rotation:t.imageRotation,size:t.imageSize,img:t.image,imgSize:t.imageImgSize,src:t.imageSrc,crossOrigin:t.imageCrossOrigin}));if(e=hv(hv({},e),{},{fill:bv(t,"image")||bv(t),stroke:xv(t,"image")||xv(t),snapToPixel:!0}),!gv(e))return new i(e)}(t),geometry:function(t){if(Object(ir.n)(t.geom))return function(e){return t.geom(e,n)};return t.geom}(t),zIndex:t.zIndex,renderer:t.renderer};return gv(e)?void 0:new Sh(e)}}var yv=function(t){return function(e){return t+(t?Object(ir.E)(e):e)}};function _v(t){var e=t;return"string"==typeof t&&(e=uv()(t).rgba),e}function bv(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=yv(i),r=ea()(e=["fillColor"]).call(e,n),o=n("fill");if(t[o]instanceof hl)return t[o];var s=Object(ir.A)(t,function(t,e,i){return!1===hs()(r).call(r,i)?t:("color"===(i=Object(ir.t)(i.replace(new RegExp(n("fill")),"")))&&(e=_v(e)),t[i]=e,t)},{});return gv(s)?void 0:new hl(s)}function xv(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=yv(i),r=ea()(e=["strokeColor","strokeWidth","strokeMiterLimit","strokeCap","strokeJoin","strokeDash","strokeDashOffset"]).call(e,n),o=n("stroke");if(t[o]instanceof fl)return t[o];var s=Object(ir.A)(t,function(t,e,i){if(!1===hs()(r).call(r,i))return t;switch(i){case n("strokeColor"):case n("strokeWidth"):case n("strokeMiterLimit"):i=Object(ir.t)(i.replace(new RegExp(n("stroke")),""));break;case n("strokeCap"):case n("strokeJoin"):case n("strokeDash"):case n("strokeDashOffset"):i="line"+i.replace(new RegExp(n("stroke")),"")}return"color"===i&&(e=_v(e)),t[i]=e,t},{});return gv(s)?void 0:new fl(s)}function wv(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Bn,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Yn;i=Kt(i);for(var n=Ot(t),r=It(t),o=Math.max(r/i[0],n/i[1]),s=e+1,a=new Array(s),l=0;l<s;++l)a[l]=o/Math.pow(2,l);return a}function Sv(t,e){return t.reduce(function(t,i){return t[i]=e(i),t},{})}function Tv(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function Ev(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Tv(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Tv(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}var Cv=function(t){return null==t?t:"object"===Object(In.a)(t)?jn()(t):t},Ov={props:{extParams:Object,format:{type:String,default:"PNG32"},layers:String,layerDefs:[Object,String],dynamicLayers:[Object,String],dpi:Number,transparent:{type:Boolean,default:!0},time:String,layerTimeOptions:[Object,String],gdbVersion:String,mapScale:String,rotation:Number,datumTransformations:[Array,String],mapRangeValues:[Array,String],layerRangeValues:[Array,String],layerParameterValues:[Array,String],historicMoment:Number},computed:{cleanExtParams:function(){return this.extParams?kp(this.extParams,Xn):void 0},allParams:function(){return Ev(Ev({},this.cleanExtParams),{},{LAYERS:this.layers,FORMAT:this.format,LAYERDEFS:Cv(this.layerDefs),DYNAMICLAYERS:Cv(this.dynamicLayers),DPI:this.dpi,TRANSPARENT:this.transparent,TIME:Cv(this.time),LAYERTIMEOPTIONS:Cv(this.layerTimeOptions),GDBVERSION:this.gdbVersion,MAPSCALE:this.mapScale,ROTATION:this.rotation,DATUMTRANSFORMATIONS:Cv(this.datumTransformations),MAPRANGEVALUES:Cv(this.mapRangeValues),LAYERRANGEVALUES:Cv(this.layerRangeValues),LAYERPARAMETERVALUES:Cv(this.layerParameterValues),HISTORICMOMENT:Cv(this.historicMoment)})}},watch:Ev(Ev(Ev({},Sv(["layers","format","dpi","transparent","gdbVersion","mapScale","rotation","historicMoment"],function(t){return function(e){if(this.$source){t=t.toUpperCase();var i=this.$source.getParams()||{};Object(ir.l)(e,i[e])||this.$source.updateParams(Fn({},t,e))}}})),Sv(["layerDefs","dynamicLayers","time","layerTimeOptions","datumTransformations","mapRangeValues","layerRangeValues","layerParameterValues"],function(t){return function(e){if(this.$source){t=t.toUpperCase(),e=Cv(e);var i=this.$source.getParams()||{};Object(ir.l)(e,i[e])||this.$source.updateParams(Fn({},t,e))}}})),{},{extParams:function(t){if(this.$source){var e=Object(ir.x)(this.$source.getParams()||{},$n()(t));Object(ir.l)(t,e)||this.$source.updateParams(t?kp(t):void 0)}}})},Mv=i(130),Pv=i.n(Mv),kv=i(67),Iv=i.n(kv),Lv=function(t,e){return(Lv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])})(t,e)};function Av(t,e){function i(){this.constructor=t}Lv(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}function Rv(t){return"function"==typeof t}var Fv=!1,Dv={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&(new Error).stack;Fv=t},get useDeprecatedSynchronousErrorHandling(){return Fv}};function jv(t){setTimeout(function(){throw t},0)}var Nv={closed:!0,next:function(t){},error:function(t){if(Dv.useDeprecatedSynchronousErrorHandling)throw t;jv(t)},complete:function(){}},$v=function(){return Array.isArray||function(t){return t&&"number"==typeof t.length}}();function Gv(t){return null!==t&&"object"==typeof t}var zv=function(){function t(t){return Error.call(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t}(),Bv=function(){function t(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}var e;return t.prototype.unsubscribe=function(){var e;if(!this.closed){var i=this._parentOrParents,n=this._ctorUnsubscribe,r=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,i instanceof t)i.remove(this);else if(null!==i)for(var s=0;s<i.length;++s){i[s].remove(this)}if(Rv(r)){n&&(this._unsubscribe=void 0);try{r.call(this)}catch(t){e=t instanceof zv?Yv(t.errors):[t]}}if($v(o)){s=-1;for(var a=o.length;++s<a;){var l=o[s];if(Gv(l))try{l.unsubscribe()}catch(t){e=e||[],t instanceof zv?e=e.concat(Yv(t.errors)):e.push(t)}}}if(e)throw new zv(e)}},t.prototype.add=function(e){var i=e;if(!e)return t.EMPTY;switch(typeof e){case"function":i=new t(e);case"object":if(i===this||i.closed||"function"!=typeof i.unsubscribe)return i;if(this.closed)return i.unsubscribe(),i;if(!(i instanceof t)){var n=i;(i=new t)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var r=i._parentOrParents;if(null===r)i._parentOrParents=this;else if(r instanceof t){if(r===this)return i;i._parentOrParents=[r,this]}else{if(-1!==r.indexOf(this))return i;r.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[i]:o.push(i),i},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var i=e.indexOf(t);-1!==i&&e.splice(i,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function Yv(t){return t.reduce(function(t,e){return t.concat(e instanceof zv?e.errors:e)},[])}var Vv=function(){return"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()}(),Wv=function(t){function e(i,n,r){var o=t.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=Nv;break;case 1:if(!i){o.destination=Nv;break}if("object"==typeof i){i instanceof e?(o.syncErrorThrowable=i.syncErrorThrowable,o.destination=i,i.add(o)):(o.syncErrorThrowable=!0,o.destination=new Hv(o,i));break}default:o.syncErrorThrowable=!0,o.destination=new Hv(o,i,n,r)}return o}return Av(e,t),e.prototype[Vv]=function(){return this},e.create=function(t,i,n){var r=new e(t,i,n);return r.syncErrorThrowable=!1,r},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(Bv),Hv=function(t){function e(e,i,n,r){var o,s=t.call(this)||this;s._parentSubscriber=e;var a=s;return Rv(i)?o=i:i&&(o=i.next,n=i.error,r=i.complete,i!==Nv&&(Rv((a=Object.create(i)).unsubscribe)&&s.add(a.unsubscribe.bind(a)),a.unsubscribe=s.unsubscribe.bind(s))),s._context=a,s._next=o,s._error=n,s._complete=r,s}return Av(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;Dv.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,i=Dv.useDeprecatedSynchronousErrorHandling;if(this._error)i&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)i?(e.syncErrorValue=t,e.syncErrorThrown=!0):jv(t),this.unsubscribe();else{if(this.unsubscribe(),i)throw t;jv(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var i=function(){return t._complete.call(t._context)};Dv.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,i),this.unsubscribe()):(this.__tryOrUnsub(i),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),Dv.useDeprecatedSynchronousErrorHandling)throw t;jv(t)}},e.prototype.__tryOrSetError=function(t,e,i){if(!Dv.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,i)}catch(e){return Dv.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(jv(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(Wv);var Uv=function(){return"function"==typeof Symbol&&Symbol.observable||"@@observable"}();function Xv(t){return t}function qv(t){return 0===t.length?Xv:1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}}var Kv=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var i=new t;return i.source=this,i.operator=e,i},t.prototype.subscribe=function(t,e,i){var n=this.operator,r=function(t,e,i){if(t){if(t instanceof Wv)return t;if(t[Vv])return t[Vv]()}return t||e||i?new Wv(t,e,i):new Wv(Nv)}(t,e,i);if(n?r.add(n.call(r,this.source)):r.add(this.source||Dv.useDeprecatedSynchronousErrorHandling&&!r.syncErrorThrowable?this._subscribe(r):this._trySubscribe(r)),Dv.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable&&(r.syncErrorThrowable=!1,r.syncErrorThrown))throw r.syncErrorValue;return r},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){Dv.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),!function(t){for(;t;){var e=t,i=e.closed,n=e.destination,r=e.isStopped;if(i||r)return!1;t=n&&n instanceof Wv?n:null}return!0}(t)?console.warn(e):t.error(e)}},t.prototype.forEach=function(t,e){var i=this;return new(e=Zv(e))(function(e,n){var r;r=i.subscribe(function(e){try{t(e)}catch(t){n(t),r&&r.unsubscribe()}},n,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[Uv]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return 0===t.length?this:qv(t)(this)},t.prototype.toPromise=function(t){var e=this;return new(t=Zv(t))(function(t,i){var n;e.subscribe(function(t){return n=t},function(t){return i(t)},function(){return t(n)})})},t.create=function(e){return new t(e)},t}();function Zv(t){if(t||(t=Dv.Promise||Promise),!t)throw new Error("no Promise impl found");return t}function Jv(t){return t&&"function"==typeof t.schedule}function Qv(t,e){return function(i){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new tg(t,e))}}var tg=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new eg(t,this.project,this.thisArg))},t}(),eg=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.project=i,r.count=0,r.thisArg=n||r,r}return Av(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(Wv),ig=function(t){return function(e){for(var i=0,n=t.length;i<n&&!e.closed;i++)e.next(t[i]);e.complete()}};var ng=function(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),rg=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function og(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var sg=function(t){if(t&&"function"==typeof t[Uv])return n=t,function(t){var e=n[Uv]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(rg(t))return ig(t);if(og(t))return i=t,function(t){return i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,jv),t};if(t&&"function"==typeof t[ng])return e=t,function(t){for(var i=e[ng]();;){var n=void 0;try{n=i.next()}catch(e){return t.error(e),t}if(n.done){t.complete();break}if(t.next(n.value),t.closed)break}return"function"==typeof i.return&&t.add(function(){i.return&&i.return()}),t};var e,i,n,r=Gv(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+r+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function ag(t,e){return new Kv(function(i){var n=new Bv,r=0;return n.add(e.schedule(function(){r!==t.length?(i.next(t[r++]),i.closed||n.add(this.schedule())):i.complete()})),n})}function lg(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[Uv]}(t))return function(t,e){return new Kv(function(i){var n=new Bv;return n.add(e.schedule(function(){var r=t[Uv]();n.add(r.subscribe({next:function(t){n.add(e.schedule(function(){return i.next(t)}))},error:function(t){n.add(e.schedule(function(){return i.error(t)}))},complete:function(){n.add(e.schedule(function(){return i.complete()}))}}))})),n})}(t,e);if(og(t))return function(t,e){return new Kv(function(i){var n=new Bv;return n.add(e.schedule(function(){return t.then(function(t){n.add(e.schedule(function(){i.next(t),n.add(e.schedule(function(){return i.complete()}))}))},function(t){n.add(e.schedule(function(){return i.error(t)}))})})),n})}(t,e);if(rg(t))return ag(t,e);if(function(t){return t&&"function"==typeof t[ng]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new Kv(function(i){var n,r=new Bv;return r.add(function(){n&&"function"==typeof n.return&&n.return()}),r.add(e.schedule(function(){n=t[ng](),r.add(e.schedule(function(){if(!i.closed){var t,e;try{var r=n.next();t=r.value,e=r.done}catch(t){return void i.error(t)}e?i.complete():(i.next(t),this.schedule())}}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}var ug=function(t){function e(e){var i=t.call(this)||this;return i.parent=e,i}return Av(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(Wv),cg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Av(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(Wv);function hg(t,e){if(!e.closed){if(t instanceof Kv)return t.subscribe(e);var i;try{i=sg(t)(e)}catch(t){e.error(t)}return i}}function dg(t,e,i){return void 0===i&&(i=Number.POSITIVE_INFINITY),"function"==typeof e?function(n){return n.pipe(dg(function(i,n){return(r=t(i,n),o?lg(r,o):r instanceof Kv?r:new Kv(sg(r))).pipe(Qv(function(t,r){return e(i,t,n,r)}));var r,o},i))}:("number"==typeof e&&(i=e),function(e){return e.lift(new fg(t,i))})}var fg=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new pg(t,this.project,this.concurrent))},t}(),pg=function(t){function e(e,i,n){void 0===n&&(n=Number.POSITIVE_INFINITY);var r=t.call(this,e)||this;return r.project=i,r.concurrent=n,r.hasCompleted=!1,r.buffer=[],r.active=0,r.index=0,r}return Av(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,i=this.index++;try{e=this.project(t,i)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e)},e.prototype._innerSub=function(t){var e=new ug(this),i=this.destination;i.add(e);var n=hg(t,e);n!==e&&i.add(n)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyComplete=function(){var t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(cg);function vg(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),dg(Xv,t)}function gg(t,e){return e?ag(t,e):new Kv(ig(t))}function mg(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Jv(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof r&&(i=t.pop()),null===n&&1===t.length&&t[0]instanceof Kv?t[0]:vg(i)(gg(t,n))}var yg=function(t){function e(e,i){var n=t.call(this,e,i)||this;return n.scheduler=e,n.work=i,n.pending=!1,n}return Av(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var i=this.id,n=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(n,i,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(n,this.id,e),this},e.prototype.requestAsyncId=function(t,e,i){return void 0===i&&(i=0),setInterval(t.flush.bind(t,this),i)},e.prototype.recycleAsyncId=function(t,e,i){if(void 0===i&&(i=0),null!==i&&this.delay===i&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var i=!1,n=void 0;try{this.work(t)}catch(t){i=!0,n=!!t&&t||new Error(t)}if(i)return this.unsubscribe(),n},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,i=e.actions,n=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&i.splice(n,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,i){return t.call(this)||this}return Av(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(Bv)),_g=function(){function t(e,i){void 0===i&&(i=t.now),this.SchedulerAction=e,this.now=i}return t.prototype.schedule=function(t,e,i){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(i,e)},t.now=function(){return Date.now()},t}(),bg=new(function(t){function e(i,n){void 0===n&&(n=_g.now);var r=t.call(this,i,function(){return e.delegate&&e.delegate!==r?e.delegate.now():n()})||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return Av(e,t),e.prototype.schedule=function(i,n,r){return void 0===n&&(n=0),e.delegate&&e.delegate!==this?e.delegate.schedule(i,n,r):t.prototype.schedule.call(this,i,n,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var i;this.active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}},e}(_g))(yg);function xg(t,e){return void 0===e&&(e=bg),function(i){return i.lift(new wg(t,e))}}var wg=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Sg(t,this.dueTime,this.scheduler))},t}(),Sg=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.dueTime=i,r.scheduler=n,r.debouncedSubscription=null,r.lastValue=null,r.hasValue=!1,r}return Av(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Tg,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(Wv);function Tg(t){t.debouncedNext()}var Eg=i(822),Cg=i.n(Eg),Og=i(860),Mg=i.n(Og);var Pg=i(342),kg=i.n(Pg),Ig=i(230),Lg=i.n(Ig);function Ag(){try{var t=!Boolean.prototype.valueOf.call(kg()(Boolean,[],function(){}))}catch(t){}return(Ag=function(){return!!t})()}function Rg(t){var e="function"==typeof Cg.a?new Cg.a:void 0;return(Rg=function(t){if(null===t||!function(t){try{var e;return-1!==Mg()(e=Function.toString.call(t)).call(e,"[native code]")}catch(e){return"function"==typeof t}}(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return function(t,e,i){if(Ag())return kg.a.apply(null,arguments);var n=[null];Lg()(n).apply(n,e);var r=new(gr()(t).apply(t,n));return i&&Or(r,i.prototype),r}(t,arguments,Sr(this).constructor)}return i.prototype=Cr()(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),Or(i,t)})(t)}function Fg(t){var e=function(){if("undefined"==typeof Reflect||!ur.a)return!1;if(ur.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(ur()(Boolean,[],function(){})),!0}catch(t){return!1}}();return function(){var i,n=Sr(t);if(e){var r=Sr(this).constructor;i=ur()(n,arguments,r)}else i=n.apply(this,arguments);return kr(this,i)}}var Dg=function(t){Mr(i,Rg(Error));var e=Fg(i);function i(t){var n;return cr(this,i),(n=e.call(this,t)).name=n.constructor.name,"function"==typeof Error.captureStackTrace?Error.captureStackTrace(Pr(n),n.constructor):n.stack=new Error(t).stack,n}return i}();function jg(t,e){if(!t)throw new Dg(e||"Assertion failed")}function Ng(t,e,i){jg(t instanceof e,i||"value is an instance of ".concat(e.name))}function $g(t){jg(t.$map,'component has "$map" property')}function Gg(t){jg(t.$view,'component has "$view" property')}function zg(t){jg(t.$geolocation,'component has "$geolocation" property')}function Bg(t){jg(t.$layer,'component has "$layer" property')}function Yg(t){jg(t.$source,'component has "$source" property')}function Vg(t){jg(t.$geometry,'component has "$geometry" property')}function Wg(t){jg(t.$interaction,'component has "$interaction" property')}function Hg(t){jg(t.$overlay,'component has "$overlay" property')}function Ug(t){jg(t.$graticule,'component has "$graticule" property')}var Xg={computed:{viewProjection:function(){return this.rev&&this.$view?this.$view.getProjection().getCode():this.projection||zn},resolvedDataProjection:function(){return Object(ir.c)(this.dataProjection,this.projection,this.$map&&function(t){if(t instanceof er.a)return t.dataProjection;if(t instanceof Yu)return t.get("dataProjection");throw new Error("Illegal map argument")}(this.$map),this.$options.dataProjection,this.viewProjection)}},methods:{pointToViewProj:function(t){return ra(t,this.resolvedDataProjection,this.viewProjection)},pointToDataProj:function(t){return ra(t,this.viewProjection,this.resolvedDataProjection)},lineToViewProj:function(t){return aa(t,this.resolvedDataProjection,this.viewProjection)},lineToDataProj:function(t){return aa(t,this.viewProjection,this.resolvedDataProjection)},polygonToViewProj:function(t){return ca(t,this.resolvedDataProjection,this.viewProjection)},polygonToDataProj:function(t){return ca(t,this.viewProjection,this.resolvedDataProjection)},multiPointToViewProj:function(t){return ha(t,this.resolvedDataProjection,this.viewProjection)},multiPointToDataProj:function(t){return ha(t,this.viewProjection,this.resolvedDataProjection)},multiLineToViewProj:function(t){return da(t,this.resolvedDataProjection,this.viewProjection)},multiLineToDataProj:function(t){return da(t,this.viewProjection,this.resolvedDataProjection)},multiPolygonToViewProj:function(t){return fa(t,this.resolvedDataProjection,this.viewProjection)},multiPolygonToDataProj:function(t){return fa(t,this.viewProjection,this.resolvedDataProjection)},extentToViewProj:function(t){return bi(t,this.resolvedDataProjection,this.viewProjection)},extentToDataProj:function(t){return bi(t,this.viewProjection,this.resolvedDataProjection)},writeGeometryInDataProj:function(t){return Dp(t,this.viewProjection,this.resolvedDataProjection)},writeGeometryInViewProj:function(t){return Dp(t)},readGeometryInDataProj:function(t){return jp(t,this.viewProjection,this.resolvedDataProjection)},writeFeatureInDataProj:function(t){return Fp(t,this.viewProjection,this.resolvedDataProjection)},writeFeatureInViewProj:function(t){return Fp(t)},readFeatureInDataProj:function(t){return function t(e){var i,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:zn,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Gn,o=Rp.readFeature(e,{featureProjection:n,dataProjection:r});Array.isArray(o.get("features"))&&o.set("features",ea()(i=o.get("features")).call(i,function(e){return Object(ir.q)(e)?t(e,n,r):e}));return o}(t,this.viewProjection,this.resolvedDataProjection)}}},qg=i(869),Kg=i.n(qg);var Zg={methods:{subscribeAll:function(){},unsubscribeAll:function(){this._rxSubs.forEach(function(t){return t.unsubscribe()}),this._rxSubs=[]},subscribeTo:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ir.w,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ir.w,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ir.w;i=function(t){i(t)};var r=t.subscribe(e,i,n);return this._rxSubs.push(r),r},unsubscribe:function(t){var e,i=this._rxSubs.indexOf(t);-1!==i&&(t.unsubscribe(),Kg()(e=this._rxSubs).call(e,i,1))}},beforeCreate:function(){this._rxSubs=[]},destroyed:function(){this.unsubscribeAll()}},Jg=function(){function t(){cr(this,t),Fn(this,"_pools",Object.create(null))}return dr(t,[{key:"_preparePool",value:function(t){this._pools[t]||(this._pools[t]=Object.create(null))}},{key:"set",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"default";null!=e&&(this._preparePool(i),this._pools[i][t]={value:e,refs:1})}},{key:"get",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";this._preparePool(e);var i=this._pools[e][t];if(i&&null!=i.value)return i.refs++,this._pools[e][t]=i,i.value}},{key:"unset",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";this._preparePool(e);var i=this._pools[e][t];i&&null!=i.value&&(i.refs--,0===i.refs&&delete this._pools[e][t])}},{key:"has",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return this._preparePool(e),!!this._pools[e][t]}},{key:"ids",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"default";return this._preparePool(t),$n()(this._pools[t])}},{key:"refs",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";return this._preparePool(e),this.has(t,e)?this._pools[e][t].refs:void 0}}]),t}();var Qg={INSTANCES_POOL:"instances",props:{ident:[String,Number]},data:function(){return{idents:Object(ir.D)()}},computed:{selfIdent:function(){return this.makeSelfIdent()}},watch:{ident:function(t,e){e&&this.$identityMap.has(e)&&this.$identityMap.unset(e),t&&!this.$identityMap.has(t)&&this.$identityMap.set(t)}},beforeCreate:function(){!function(){var t=new Jg;"$identityMap"in er.a||Object.defineProperties(er.a,{$identityMap:{enumerable:!0,get:function(){return t}}});"$identityMap"in er.a.prototype||Object.defineProperties(er.a.prototype,{$identityMap:{enumerable:!0,get:function(){return t}}})}()},destroyed:function(){this.unsetInstances()},methods:{makeSelfIdent:function(){var t;if(this.ident){for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return this.makeIdent.apply(this,ev()(t=[this.ident]).call(t,i))}},makeIdent:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return Tn()(e).call(e,ir.i).join(".")},instanceFactoryCall:function(t,e){if(t&&this.$identityMap.has(t,"instances"))return this.idents[t]=!0,this.$identityMap.get(t,"instances");var i=e();return t&&(this.idents[t]=!0,this.$identityMap.set(t,i,"instances")),i},getInstance:function(t){if(t&&this.hasInstance(t))return this.idents[t]=!0,this.$identityMap.get(t,"instances")},hasInstance:function(t){return!!t&&this.$identityMap.has(t,"instances")},unsetInstance:function(t){t&&(delete this.idents[t],this.$identityMap.unset(t,"instances"))},unsetInstances:function(){Object(ir.s)(this.idents).forEach(this.unsetInstance.bind(this))}}},tm=i(344),em=i.n(tm);function im(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var nm=i(145),rm=i.n(nm),om=i(345),sm=i.n(om),am=i(346),lm=i.n(am);var um=i(332),cm=i.n(um);function hm(t,e){var i;if(t){if("string"==typeof t)return im(t,e);var n=cm()(i=Object.prototype.toString.call(t)).call(i,8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?lm()(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?im(t,e):void 0}}function dm(t){return function(t){if(em()(t))return im(t)}(t)||function(t){if(void 0!==rm.a&&null!=sm()(t)||null!=t["@@iterator"])return lm()(t)}(t)||hm(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function fm(t,e){return function(i){return i.lift(new pm(t,e))}}var pm=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new vm(t,this.compare,this.keySelector))},t}(),vm=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.keySelector=n,r.hasKey=!1,"function"==typeof i&&(r.compare=i),r}return Av(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var i=this.keySelector;e=i?i(t):t}catch(t){return this.destination.error(t)}var n=!1;if(this.hasKey)try{n=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;n||(this.key=e,this.destination.next(t))},e}(Wv);function gm(t,e,i){return i?gm(t,e).pipe(Qv(function(t){return $v(t)?i.apply(void 0,t):i(t)})):new Kv(function(i){var n,r=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return i.next(1===t.length?t[0]:t)};try{n=t(r)}catch(t){return void i.error(t)}if(Rv(e))return function(){return e(r,n)}})}var mm=function t(e,i,n){return Array.isArray(i)?mg.apply(void 0,dm(ea()(i).call(i,function(i){var n,r;return"object"===Object(In.a)(i)?(n=i.event,r=i.selector):n=i,t(e,n,r)}))):gm(function(t){return e.on(i,t)},function(t){return e.un(i,t)},n)};var ym=function t(e,i,n,r,o){if(Array.isArray(i))return mg.apply(void 0,dm(ea()(i).call(i,function(i){return t(e,i)})));o=o||function(t,e){return t.get(e)};var s="change:".concat(i),a=mm(e,s,function(){return o(e,i)}),l=[];return null!=r&&l.push(xg(r)),n&&(Object(ir.n)(n)||(n=ir.l),l.push(fm(n))),l.push(Qv(function(t){return{prop:i,value:t}})),a.pipe.apply(a,l)};var _m={mixins:[Qg,Zg,Xg],computed:{featureIds:function(){var t;return this.rev?ea()(t=this.getFeatures()).call(t,rr):[]},featuresViewProj:function(){var t;return this.rev?ea()(t=this.getFeatures()).call(t,this.writeFeatureInViewProj.bind(this)):[]},featuresDataProj:function(){var t;return this.rev?ea()(t=this.getFeatures()).call(t,this.writeFeatureInDataProj.bind(this)):[]},featuresCollectionIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"features_collection")}},methods:{addFeatures:function(t){Object(ir.g)(t,this.addFeature.bind(this))},addFeature:function(t){t instanceof er.a?t=t.$feature:Object(ir.q)(t)&&(t=this.readFeatureInDataProj(t)),Ng(t,Zn),sr(t);var e=this.getFeatureById(rr(t));null==e?this.$featuresCollection.push(t):ar(e,t)},removeFeatures:function(t){Object(ir.g)(t,this.removeFeature.bind(this))},removeFeature:function(t){(t=this.getFeatureById(rr(t)))&&(sr(t),this.$featuresCollection.remove(t))},clearFeatures:function(){this.$featuresCollection.clear()},getFeatureById:function(t){var e;return Pv()(e=this.$featuresCollection.getArray()).call(e,function(e){return rr(e)===t})},getFeatures:function(){var t;return Iv()(t=this.$featuresCollection.getArray()).call(t)},getFeaturesCollection:function(){return this._featuresCollection},getServices:function(){var t=this;return{get featuresContainer(){return t}}}},created:function(){this._featuresCollection=this.instanceFactoryCall(this.featuresCollectionIdent,function(){return new ya}),this._featureSubs={},function(){Object.defineProperties(this,{$featuresCollection:{enumerable:!0,get:this.getFeaturesCollection}})}.call(this),function(){var t=this,e=mm(this.$featuresCollection,"add");this.subscribeTo(e,function(e){var i=e.element,n=Pp(i),r=mm(i,"propertychange"),o=mm(i,"change"),s=mg(r,o).pipe(xg(1e3/60));t._featureSubs[n]=t.subscribeTo(s,function(){++t.rev}),++t.rev,t.$nextTick(function(){t.$emit("add:feature",i)})});var i=mm(this.$featuresCollection,"remove");this.subscribeTo(i,function(e){var i=e.element,n=Pp(i);t._featureSubs[n]&&(t.unsubscribe(t._featureSubs[n]),delete t._featureSubs[n]),++t.rev,t.$nextTick(function(){t.$emit("remove:feature",i)})})}.call(this)}},bm=i(314),xm=i.n(bm);function wm(t,e,i,n,r,o,s){try{var a=t[o](s),l=a.value}catch(t){return void i(t)}a.done?e(l):xm.a.resolve(l).then(n,r)}function Sm(t){return function(){var e=this,i=arguments;return new xm.a(function(n,r){var o=t.apply(e,i);function s(t){wm(o,n,r,s,a,"next",t)}function a(t){wm(o,n,r,s,a,"throw",t)}s(void 0)})}}var Tm=i(65),Em=i.n(Tm),Cm={leading:!0,trailing:!1};function Om(t,e,i){return void 0===e&&(e=bg),void 0===i&&(i=Cm),function(n){return n.lift(new Mm(t,e,i.leading,i.trailing))}}var Mm=function(){function t(t,e,i,n){this.duration=t,this.scheduler=e,this.leading=i,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new Pm(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),Pm=function(t){function e(e,i,n,r,o){var s=t.call(this,e)||this;return s.duration=i,s.scheduler=n,s.leading=r,s.trailing=o,s._hasTrailingValue=!1,s._trailingValue=null,s}return Av(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(km,this.duration,{subscriber:this})),this.leading?this.destination.next(t):this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0))},e.prototype._complete=function(){this._hasTrailingValue?(this.destination.next(this._trailingValue),this.destination.complete()):this.destination.complete()},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(Wv);function km(t){t.subscriber.clearThrottle()}var Im=i(885),Lm=i.n(Im);var Am=function(){for(var t,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return"object"!==Object(In.a)(i[i.length-1])&&(t=i.pop()),Iv()(i).call(i,1).reduce(function(e,i,n){return Lm()(e,i,t)},i[0])},Rm=i(131),Fm=i.n(Rm),Dm=i(234),jm=i.n(Dm);function Nm(t,e){var i;return void 0===t&&(t=0),void 0===e&&(e=bg),($v(i=t)||!(i-parseFloat(i)+1>=0)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=bg),new Kv(function(i){return i.add(e.schedule($m,t,{subscriber:i,counter:0,period:t})),i})}function $m(t){var e=t.subscriber,i=t.counter,n=t.period;e.next(i),this.schedule({subscriber:e,counter:i+1,period:n},n)}var Gm=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}();var zm=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new Bm(t,this.predicate,this.thisArg))},t}(),Bm=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.predicate=i,r.thisArg=n,r.count=0,r}return Av(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(Wv),Ym=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}(),Vm=new Kv(function(t){return t.complete()});function Wm(t){return t?function(t){return new Kv(function(e){return t.schedule(function(){return e.complete()})})}(t):Vm}var Hm=function(){function t(t){if(this.total=t,this.total<0)throw new Ym}return t.prototype.call=function(t,e){return e.subscribe(new Um(t,this.total))},t}(),Um=function(t){function e(e,i){var n=t.call(this,e)||this;return n.total=i,n.count=0,n}return Av(e,t),e.prototype._next=function(t){var e=this.total,i=++this.count;i<=e&&(this.destination.next(t),i===e&&(this.destination.complete(),this.unsubscribe()))},e}(Wv);var Xm=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new qm(t,this.defaultValue))},t}(),qm=function(t){function e(e,i){var n=t.call(this,e)||this;return n.defaultValue=i,n.isEmpty=!0,n}return Av(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(Wv);var Km=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Zm(t,this.errorFactory))},t}(),Zm=function(t){function e(e,i){var n=t.call(this,e)||this;return n.errorFactory=i,n.hasValue=!1,n}return Av(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(Wv);function Jm(){return new Gm}function Qm(t,e){var i=arguments.length>=2;return function(n){return n.pipe(t?function(t,e){return function(i){return i.lift(new zm(t,e))}}(function(e,i){return t(e,i,n)}):Xv,(o=1,function(t){return 0===o?Wm():t.lift(new Hm(o))}),i?function(t){return void 0===t&&(t=null),function(e){return e.lift(new Xm(t))}}(e):(void 0===(r=function(){return new Gm})&&(r=Jm),function(t){return t.lift(new Km(r))}));var r,o}}function ty(t){return function(e){return e.lift(new ey(t))}}var ey=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new iy(t,this.predicate))},t}(),iy=function(t){function e(e,i){var n=t.call(this,e)||this;return n.predicate=i,n.skipping=!0,n.index=0,n}return Av(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(Wv),ny={inject:{$services:"services"},provide:function(){return Fn({},"services",this.getServices())},methods:{getServices:function(){return Am({},this.$services||{})}},beforeCreate:function(){for(var t=this.$parent;t&&(null==t._provided||null==t._provided.services);)t=t.$parent;null!=t&&null!=t._provided.services||delete this.$options.inject.$services}};var ry={VM_PROP:"vm",mixins:[Qg,Zg,ny],props:{id:{type:[String,Number],default:function(){return Qn()()}}},data:function(){return{rev:0}},computed:{cmpName:function(){return this.$options.name},vmId:function(){var t;return Tn()(t=[this.cmpName,this.id]).call(t,ir.i).join("-")},vmName:function(){var t;return Tn()(t=[this.cmpName,this.id]).call(t,ir.i).join(" ")},olObjIdent:function(){return this.selfIdent}},methods:{beforeInit:function(){},init:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.instanceFactoryCall(t.olObjIdent,t.createOlObject.bind(t));case 2:t._olObject=e.sent,t._olObject.vm||(t._olObject.vm=[]),hs()(i=t._olObject.vm).call(i,t)||t._olObject.vm.push(t),++t.rev;case 6:case"end":return e.stop()}},e)}))()},createOlObject:function(){throw new Error("Not implemented method")},deinit:function(){var t,e=this;(this.unsetInstances(),this._olObject)&&(this._olObject.vm=Tn()(t=this._olObject.vm).call(t,function(t){return t!==e}),this._olObject=void 0)},getServices:function(){return ny.methods.getServices.call(this)},mount:function(){this.subscribeAll()},unmount:function(){this.unsubscribeAll()},refresh:function(){var t=this;return null==this.$olObject?Fm.a.resolve():new Fm.a(function(e){t.$olObject&&Object(ir.n)(t.$olObject.changed)?(t.$olObject.once("change",function(){return e()}),t.$olObject.changed()):e()})},remount:function(){var t=this;return Sm(Em.a.mark(function e(){return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t.$olObject){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.unmount();case 4:return e.next=6,t.mount();case 6:case"end":return e.stop()}},e)}))()},recreate:function(){var t=this;return Sm(Em.a.mark(function e(){return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=t.$olObject){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,t.unmount();case 4:return e.next=6,t.deinit();case 6:return e.next=8,t.init();case 8:return e.next=10,t.mount();case 10:case"end":return e.stop()}},e)}))()},subscribeAll:function(){}},created:function(){var t=this;this._olObject=void 0,Object.defineProperties(this,{$olObject:{enumerable:!0,get:function(){return t._olObject}}}),function(){var t=this,e=function(e){return function(){return t.$emit(e,t),Object({NODE_ENV:"production"}).VUELAYERS_DEBUG&&function(){for(var t,e,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];(t=console).log.apply(t,ev()(e=["[VueLayers]"]).call(e,n))}(e,t.vmName),t}};this._createPromise=Fm.a.resolve(this.beforeInit()).then(function(){return t.init()}).then(e("created"));var i=Nm(1e3/60).pipe(ty(function(){return!0!==t._mounted}),Qm());this._mountPromise=i.toPromise(Fm.a).then(function(){return t.mount()}).then(e("mounted"));var n=Nm(1e3/60).pipe(ty(function(){return!1!==t._mounted}),Qm());this._unmountPromise=n.toPromise(Fm.a).then(function(){return t.unmount()}).then(e("unmounted"));var r=Nm(1e3/60).pipe(ty(function(){return!0!==t._destroyed}),Qm());this._destroyPromise=r.toPromise(Fm.a).then(function(){return t.deinit()}).then(e("destroyed")),Object.defineProperties(this,{$createPromise:{enumerable:!0,get:function(){return t._createPromise}},$mountPromise:{enumerable:!0,get:function(){return t._mountPromise}},$unmountPromise:{enumerable:!0,get:function(){return t._unmountPromise}},$destroyPromise:{enumerable:!0,get:function(){return t._destroyPromise}}})}.call(this),function(){this.scheduleRefresh=jm()(function(){return this.refresh()},100),this.scheduleRemount=jm()(function(){return this.remount()},100),this.scheduleRecreate=jm()(function(){return this.recreate()},100)}.call(this)},mounted:function(){var t=this;return Sm(Em.a.mark(function e(){return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$createPromise;case 2:t._mounted=!0;case 3:case"end":return e.stop()}},e)}))()},beforeDestroy:function(){var t=this;return Sm(Em.a.mark(function e(){return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$mountPromise;case 2:t._mounted=!1;case 3:case"end":return e.stop()}},e)}))()},destroyed:function(){var t=this;return Sm(Em.a.mark(function e(){return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.$unmountPromise;case 2:t._destroyed=!0;case 3:case"end":return e.stop()}},e)}))()}},oy={mixins:[{render:function(t){var e,i=this.$options.stubVNode||{};if(i.empty){var n=t();return"string"==typeof i.empty?n.text=i.empty:"function"==typeof i.empty&&(n.text=i.empty.call(this)),n}e=!1===i.slots?void 0:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return $n()(t).reduce(function(i,n){return e.length&&!hs()(e).call(e,n)||(i=ev()(i).call(i,t[n])),i},[])}(this.$slots,i.slots);var r={attrs:"function"==typeof i.attrs?i.attrs.call(this):i.attrs,style:{display:"none !important"}};return t(i.tag||"i",r,e)}},ry],methods:{init:function(){return ry.methods.init.call(this)},deinit:function(){return ry.methods.deinit.call(this)},createOlObject:function(){throw new Error("Not implemented method")},mount:function(){return ry.methods.mount.call(this)},unmount:function(){return ry.methods.unmount.call(this)},getServices:function(){return ry.methods.getServices.call(this)},refresh:function(){return ry.methods.refresh.call(this)},remount:function(){return ry.methods.remount.call(this)},recreate:function(){return ry.methods.recreate.call(this)},subscribeAll:function(){ry.methods.subscribeAll.call(this)}},stubVNode:{attrs:function(){return{id:this.vmId,class:this.cmpName}}}},sy={methods:{beforeInit:function(){var t=this;return Nm(100).pipe(ty(function(){return!t.$map}),Qm(),Qv(function(){return t})).toPromise(Fm.a)}}};function ay(t,e){return!!Object(ir.l)(t.extent,e.extent)&&Object(ir.l)(t.coordinates,e.coordinates)}var ly={mixins:[oy,sy,Xg],props:{coordinates:{type:Array,required:!0,validator:function(t){return t.length}}},computed:{type:function(){throw new Error("Not implemented computed property")},extent:function(){if(this.extentViewProj&&this.resolvedDataProjection)return this.extentToDataProj(this.extentViewProj)},extentViewProj:function(){if(this.rev&&this.$geometry)return this.$geometry.getExtent()},point:function(){if(this.pointViewProj&&this.resolvedDataProjection)return this.pointToDataProj(this.pointViewProj)},pointViewProj:function(){if(this.rev&&this.$geometry)return qs(this.$geometry)},coordinatesViewProj:function(){if(this.rev&&this.$geometry)return this.$geometry.getCoordinates()}},methods:{createOlObject:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createGeometry();case 2:return Js(i=e.sent,t.id),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))()},createGeometry:function(){throw new Error("Not implemented method")},getCoordinates:function(){return Vg(this),this.toDataProj(this.$geometry.getCoordinates())},setCoordinates:function(t){Vg(this),this.$geometry.setCoordinates(this.toViewProj(t))},init:function(){return this.setupTransformFunctions(),oy.methods.init.call(this)},setupTransformFunctions:function(){var t=this,e=pa[this.type].transform;this.toDataProj=function(i){return e(i,t.viewProjection,t.resolvedDataProjection)},this.toViewProj=function(i){return e(i,t.resolvedDataProjection,t.viewProjection)}},deinit:function(){return oy.methods.deinit.call(this)},refresh:function(){return oy.methods.refresh.call(this)},getServices:function(){var t=this;return Am(oy.methods.getServices.call(this),{get geometry(){return t.$geometry}})},mount:function(){this.$geometryContainer&&this.$geometryContainer.setGeometry(this),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$geometryContainer&&this.$geometryContainer.setGeometry(void 0)},subscribeAll:function(){(function(){var t=this;Vg(this);var e=mm(this.$geometry,"change",function(){return{coordinates:t.getCoordinates(),extent:t.extent}}).pipe(Om(1e3/60),fm(ay),Qv(function(t){var e=t.coordinates;return{prop:"coordinates",value:e}}));this.subscribeTo(e,function(e){var i=e.prop,n=e.value;++t.rev,t.$nextTick(function(){t.$emit("update:".concat(i),n)})})}).call(this)}},watch:{id:function(t){this.$geometry&&t!==Ks(this.$geometry)&&Zs(this.$geometry,t)},coordinates:function(t){this.$geometry&&this.$view&&(ay({coordinates:t,extent:it(t)},{coordinates:this.getCoordinates(),extent:this.extent})||this.setCoordinates(t))},resolvedDataProjection:function(){this.$geometry&&(this.setupTransformFunctions(),this.setCoordinates(this.coordinates))}},stubVNode:{empty:function(){return this.vmId}},created:function(){(function(){var t=this;Object.defineProperties(this,{$geometry:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$geometryContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.geometryContainer}}})}).call(this)}},uy={mixins:[Xg],methods:{getGeometryTarget:function(){throw new Error("Not implemented method")},getGeometry:function(){return this._geometry},getServices:function(){var t=this;return{get geometryContainer(){return t}}},setGeometry:function(t){t instanceof er.a?t=t.$geometry:Object(ir.q)(t)&&(t=this.readGeometryInDataProj(t)),t!==this._geometry&&(this._geometry=t);var e=this.getGeometryTarget();e&&t!==e.getGeometry()&&e.setGeometry(t)}}};var cy={mixins:[oy,sy],props:{attributions:{type:[String,Array],validator:function(t){return Object(ir.r)(t)||Object(ir.j)(t)&&t.every(ir.r)}},attributionsCollapsible:{type:Boolean,default:!0},projection:String,wrapX:{type:Boolean,default:!0}},computed:{state:function(){if(this.rev&&this.$source)return this.$source.getState()}},methods:{createOlObject:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createSource();case 2:return Qp(i=e.sent,t.id),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))()},createSource:function(){throw new Error("Not implemented method")},init:function(){return oy.methods.init.call(this)},deinit:function(){return oy.methods.deinit.call(this)},getServices:function(){var t=this;return Am(oy.methods.getServices.call(this),{get source(){return t.$source}})},mount:function(){return this.$sourceContainer&&this.$sourceContainer.setSource(this),oy.methods.mount.call(this)},unmount:function(){return this.$sourceContainer&&this.$sourceContainer.setSource(void 0),oy.methods.unmount.call(this)},refresh:function(){var t=this;return this.$source?new Fm.a(function(e){t.$source?(t.$source.once("change",function(){return e}),t.$source.refresh()):e()}):Fm.a.resolve()},remount:function(){return oy.methods.remount.call(this)},recreate:function(){return oy.methods.recreate.call(this)},subscribeAll:function(){oy.methods.subscribeAll.call(this)}},watch:{id:function(t){this.$source&&t!==Zp(this.$source)&&Jp(this.$source,t)},attributions:function(t){this.$source&&!Object(ir.l)(t,this.$source.getAttributions())&&this.$source.setAttributions(t)},attributionsCollapsible:function(t){this.$source&&t!==this.$source.getAttributionsCollapsible()&&this.scheduleRecreate()},projection:function(t){!this.$source||this.$source.getProjection()&&t===this.$source.getProjection().getCode()||this.scheduleRecreate()},wrapX:function(t){this.$source&&t!==this.$source.getWrapX()&&this.scheduleRecreate()}},stubVNode:{empty:function(){return this.vmId}},created:function(){(function(){var t=this;Object.defineProperties(this,{$source:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$sourceContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.sourceContainer}}})}).call(this)}};function hy(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var dy={mixins:[cy],props:{crossOrigin:String,projection:{type:String,default:zn}},methods:{init:function(){return cy.methods.init.call(this)},deinit:function(){return cy.methods.deinit.call(this)},mount:function(){cy.methods.mount.call(this)},unmount:function(){cy.methods.unmount.call(this)},subscribeAll:function(){cy.methods.subscribeAll.call(this),function(){var t=this;Yg(this);var e=mm(this.$source,["imageloadend","imageloaderror","imageloadstart"]);this.subscribeTo(e,function(e){t.$emit(e.type,e)})}.call(this)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?hy(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):hy(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({},Sv(["crossOrigin"],function(){return function(){this.scheduleRecreate()}}))};var fy={mixins:[oy,sy],methods:{createOlObject:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createStyle();case 2:return pv(i=e.sent),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))()},createStyle:function(){throw new Error("Not implemented method")},init:function(){return oy.methods.init.call(this)},deinit:function(){return oy.methods.deinit.call(this)},getServices:function(){var t=this;return Am(oy.methods.getServices.call(this),{get style(){return t.$style}})},refresh:function(){var t=this;return null==this.$olObject?Fm.a.resolve():this.remount().then(function(){if(t.$map)return t.$map.render(),mm(t.$map,"postcompose").pipe(Qm()).toPromise()})}},stubVNode:{empty:function(){return this.vmId}},created:function(){(function(){var t=this;Object.defineProperties(this,{$style:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$stylesContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.stylesContainer}}})}).call(this)},watch:{id:function(t){this.$style&&t!==dv(this.$style)&&fv(this.$style,t)}}},py={mixins:[fy],methods:{init:function(){return fy.methods.init.call(this)},deinit:function(){return fy.methods.deinit.call(this)},mount:function(){this.$stylesContainer&&this.$stylesContainer.setImage(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setImage(void 0)},getServices:function(){return fy.methods.getServices.call(this)},refresh:function(){return this.recreate()}},stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}}};var vy={mixins:[oy,sy],props:{active:{type:Boolean,default:!0},priority:{type:Number,default:0}},methods:{createOlObject:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createInteraction();case 2:return Bp(i=e.sent,t.id,t.priority),i.setActive(t.active),e.abrupt("return",i);case 6:case"end":return e.stop()}},e)}))()},createInteraction:function(){throw new Error("Not implemented method")},getServices:function(){var t=this;return Am(oy.methods.getServices.call(this),{get interaction(){return t.$interaction}})},init:function(){return oy.methods.init.call(this)},deinit:function(){return oy.methods.deinit.call(this)},mount:function(){this.$interactionsContainer&&this.$interactionsContainer.addInteraction(this),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$interactionsContainer&&this.$interactionsContainer.removeInteraction(this)},refresh:function(){return oy.methods.refresh.call(this)},recreate:function(){return oy.methods.recreate.call(this)},remount:function(){return oy.methods.remount.call(this)},subscribeAll:function(){}},watch:{id:function(t){this.$interaction&&!Object(ir.l)(t,Np(this.$interaction))&&$p(this.$interaction,t)},active:function(t){this.$interaction&&t!==this.$interaction.getActive()&&this.$interaction.setActive(t)},priority:function(t){this.$interaction&&this.$interactionsContainer&&t!==Gp(this.$interaction)&&(zp(this.$interaction,t),this.$interactionsContainer.sortInteractions())}},stubVNode:{empty:function(){return this.vmId}},created:function(){(function(){var t=this;Object.defineProperties(this,{$interaction:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$interactionsContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.interactionsContainer}}})}).call(this)}},gy=i(886),my=i.n(gy);var yy={mixins:[Qg,Zg],computed:{interactionIds:function(){var t;return this.rev?ea()(t=this.getInteractions()).call(t,Np):[]},interactionsCollectionIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"interactions_collection")}},methods:{addInteraction:function(t){Ng(t=t instanceof er.a?t.$interaction:t,hc),null==this.getInteractionById(Np(t))&&(Bp(t),this.$interactionsCollection.push(t),this.sortInteractions())},removeInteraction:function(t){(t=this.getInteractionById(Np(t)))&&(this.$interactionsCollection.remove(t),this.sortInteractions())},getInteractions:function(){var t;return Iv()(t=this.$interactionsCollection.getArray()).call(t)},getInteractionsCollection:function(){return this._interactionsCollection},getInteractionById:function(t){var e;return Pv()(e=this.$interactionsCollection.getArray()).call(e,function(e){return Np(e)===t})},sortInteractions:function(t){var e;t||(t=this.getDefaultInteractionsSorter()),my()(e=this.$interactionsCollection.getArray()).call(e,t)},getDefaultInteractionsSorter:function(){return function(t,e){var i=Gp(t)||0,n=Gp(e)||0;return i===n?0:i-n}},clearInteractions:function(){this.$interactionsCollection.clear()},getServices:function(){var t=this;return{get interactionsContainer(){return t}}}},created:function(){this._interactionsCollection=this.instanceFactoryCall(this.interactionsCollectionIdent,function(){return new ya}),function(){Object.defineProperties(this,{$interactionsCollection:{enumerable:!0,get:this.getInteractionsCollection}})}.call(this),function(){var t=this,e=mm(this.$interactionsCollection,"add"),i=mm(this.$interactionsCollection,"remove");this.subscribeTo(mg(e,i),function(e){var i=e.type,n=e.element;++t.rev,t.$nextTick(function(){t.$emit(i+":interaction",n)})})}.call(this)}},_y={methods:{getSourceTarget:function(){throw new Error("Not implemented method")},getSource:function(){return this._source},getServices:function(){var t=this;return{get sourceContainer(){return t}}},setSource:function(t){(t=t instanceof er.a?t.$source:t)!==this._source&&(this._source=t);var e=this.getSourceTarget();e&&t!==e.getSource()&&e.setSource(t)}}};function by(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var xy={mixins:[oy,sy,_y],props:{extent:{type:Array,validator:function(t){return 4===t.length}},minResolution:Number,maxResolution:Number,opacity:{type:Number,default:1},overlay:{type:Boolean,default:!1},visible:{type:Boolean,default:!0},zIndex:Number},methods:{createOlObject:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.createLayer();case 2:return Wp(i=e.sent,t.id),e.abrupt("return",i);case 5:case"end":return e.stop()}},e)}))()},createLayer:function(){throw new Error("Not implemented method")},init:function(){return oy.methods.init.call(this)},deinit:function(){return oy.methods.deinit.call(this)},isAtPixel:function(t){var e=this;return $g(this),this.$map.forEachLayerAtPixel(t,function(t){return t===e.$layer})},getServices:function(){var t=this;return Am(oy.methods.getServices.call(this),_y.methods.getServices.call(this),{get layer(){return t.$layer}})},getSourceTarget:function(){return this.$layer},mount:function(){return this.overlay&&this.$map?this.setMap(this.$map):this.$layersContainer&&this.$layersContainer.addLayer(this),oy.methods.mount.call(this)},unmount:function(){return this.overlay?this.setMap(void 0):this.$layersContainer&&this.$layersContainer.removeLayer(this),oy.methods.unmount.call(this)},refresh:function(){return oy.methods.refresh.call(this)},remount:function(){return oy.methods.remount.call(this)},recreate:function(){return oy.methods.remount.call(this)},subscribeAll:function(){oy.methods.subscribeAll.call(this),function(){var t=this;Bg(this);var e=mm(this.$layer,["postcompose","precompose","render"]);this.subscribeTo(e,function(e){t.$emit(e.type,e)})}.call(this)},setMap:function(t){Bg(this),t=t instanceof er.a?t.$map:t,this.$layer.setMap(t)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?by(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):by(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({id:function(t){this.$layer&&t!==Yp(this.$layer)&&Vp(this.$layer,t)},maxResolution:function(t){this.$layer&&t!==this.$layer.getMaxResolution()&&this.$layer.setMaxResolution(t)},minResolution:function(t){this.$layer&&t!==this.$layer.getMinResolution()&&this.$layer.setMinResolution(t)},opacity:function(t){this.$layer&&t!==this.$layer.getOpacity()&&this.$layer.setOpacity(t)},visible:function(t){this.$layer&&t!==this.$layer.getVisible()&&this.$layer.setVisible(t)},zIndex:function(t){this.$layer&&t!==this.$layer.getZIndex()&&this.$layer.setZIndex(t)},extent:function(t){this.$layer&&!Object(ir.l)(t,this.$layer.getExtent())&&this.$layer.setExtent(t)}},Sv(["overlay"],function(){return function(){this.scheduleRecreate()}})),stubVNode:{attrs:function(){return{id:this.vmId,class:this.cmpName}}},created:function(){(function(){var t=this;Object.defineProperties(this,{$layer:{enumerable:!0,get:function(){return t.$olObject}},$source:{enumerable:!0,get:this.getSource},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$layersContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.layersContainer}}})}).call(this)}};var wy={mixins:[Qg,Zg],computed:{layerIds:function(){var t;return this.rev?ea()(t=this.getLayers()).call(t,Yp):[]},layersCollectionIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"layers_collection")}},methods:{addLayer:function(t){Ng(t=t instanceof er.a?t.$layer:t,Gu),null==this.getLayerById(Yp(t))&&(Wp(t),this.$layersCollection.push(t))},removeLayer:function(t){(t=this.getLayerById(Yp(t)))&&this.$layersCollection.remove(t)},getLayers:function(){var t;return Iv()(t=this.$layersCollection.getArray()).call(t)},getLayersCollection:function(){return this._layersCollection},getLayerById:function(t){var e;return Pv()(e=this.$layersCollection.getArray()).call(e,function(e){return Yp(e)===t})},clearLayers:function(){this.$layersCollection.clear()},getServices:function(){var t=this;return{get layersContainer(){return t}}}},created:function(){this._layersCollection=this.instanceFactoryCall(this.layersCollectionIdent,function(){return new ya}),function(){Object.defineProperties(this,{$layersCollection:{enumerable:!0,get:this.getLayersCollection}})}.call(this),function(){var t=this,e=mm(this.$layersCollection,"add"),i=mm(this.$layersCollection,"remove");this.subscribeTo(mg(e,i),function(e){var i=e.type,n=e.element;++t.rev,t.$nextTick(function(){t.$emit(i+":layer",n)})})}.call(this)}};var Sy={mixins:[Qg,Zg],computed:{overlayIds:function(){var t;return this.rev?ea()(t=this.getOverlays()).call(t,Xp):[]},overlaysCollectionIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"overlays_collection")}},methods:{addOverlay:function(t){Ng(t=t instanceof er.a?t.$overlay:t,lf),null==this.getOverlayById(Xp(t))&&(Kp(t),this.$overlaysCollection.push(t))},removeOverlay:function(t){(t=this.getOverlayById(Xp(t)))&&this.$overlaysCollection.remove(t)},getOverlays:function(){var t;return Iv()(t=this.$overlaysCollection.getArray()).call(t)},getOverlaysCollection:function(){return this._overlaysCollection},getOverlayById:function(t){var e;return Pv()(e=this.$overlaysCollection.getArray()).call(e,function(e){return Xp(e)===t})},clearOverlays:function(){this.$overlaysCollection.clear()},getServices:function(){var t=this;return{get overlaysContainer(){return t}}}},created:function(){this._overlaysCollection=this.instanceFactoryCall(this.overlaysCollectionIdent,function(){return new ya}),function(){Object.defineProperties(this,{$overlaysCollection:{enumerable:!0,get:this.getOverlaysCollection}})}.call(this),function(){var t=this,e=mm(this.$overlaysCollection,"add"),i=mm(this.$overlaysCollection,"remove");this.subscribeTo(mg(e,i),function(e){var i=e.type,n=e.element;++t.rev,t.$nextTick(function(){t.$emit(i+":overlay",n)})})}.call(this)}},Ty={created:function(){this._styles=void 0},methods:{getDefaultStyles:function(){},getServices:function(){var t=this;return{get stylesContainer(){return t}}},getStyles:function(){return this._styles},addStyle:function(t){var e=this.getStyles(),i=t instanceof er.a?t.$style:t;Object(ir.n)(i)?e=t:(Array.isArray(e)||(e=[]),t=t instanceof er.a?t:{$style:t,condition:!0},hs()(e).call(e,t)||e.push(t)),this.setStyle(e)},setStyle:function(t){if(t!==this._styles){this._styles=t;var e=this.getStyleTarget();e&&(null===this._styles||this._styles?e.setStyle(this.createStyleFunc()):e.setStyle(void 0))}},removeStyle:function(t){var e=this.getStyles();e===t?e=void 0:Array.isArray(e)&&((e=Tn()(e).call(e,function(e){return t instanceof er.a?e!==t:e.$style!==t})).length||(e=void 0)),this.setStyle(e)},getStyleTarget:function(){throw new Error("Not implemented method")},createStyleFunc:function(){var t=this,e=this.getDefaultStyles();return function(i,n){if(i.getGeometry()){var r=t.getStyles();if(r&&(Object(ir.n)(r)||Object(ir.n)(r.$style)))r=(Object(ir.n)(r)?r:r.$style)(i,n);else Array.isArray(r)&&(r=Object(ir.A)(r,function(t,e){var r=e.$style,o=e.condition;return(null==o||!0===o||Object(ir.n)(o)&&o(i,n))&&t.push(r),t},[]));return null===r||Array.isArray(r)&&r.length||r instanceof Sh?r:(r=e)?Object(ir.n)(r)?r(i,n):r:void 0}}}}};function Ey(t,e){var i=e-t.toString().length+1;return(new Array(parseInt(i>0&&i,10)).join("0")+t).toString().slice(-e)}var Cy=function(){return function(t,e){if(Array.isArray(t))return t;if(Symbol.iterator in Object(t))return function(t,e){var i=[],n=!0,r=!1,o=void 0;try{for(var s,a=t[Symbol.iterator]();!(n=(s=a.next()).done)&&(i.push(s.value),!e||i.length!==e);n=!0);}catch(t){r=!0,o=t}finally{try{!n&&a.return&&a.return()}finally{if(r)throw o}}return i}(t,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();function Oy(t,e,i,n,r){var o,s=t.getZForResolution(n),a=n/t.getResolution(s),l=t.getOrigin(s),u=t.getTileSize(s);o=u,"[object Array]"!==Object.prototype.toString.call(o)&&(u=[u,u]);var c=r?.5:0,h=r?0:.5,d=Math.floor((e-l[0])/n+c),f=Math.floor((i-l[1])/n+h),p=a*d/u[0],v=a*f/u[1];return r?(p=Math.ceil(p)-1,v=Math.ceil(v)-1):(p=Math.floor(p),v=Math.floor(v)),[p,v]}var My=/{z}/g,Py=/{0z}/g,ky=/{x\d?}/g,Iy=/{y\d?}/g,Ly=/{-y\d?}/g,Ay=[-20037508.342789244,-20037508.342789244,20037508.342789244,20037508.342789244];function Ry(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ay;return Dy(function(t){var e=[],i=/{(\d)-(\d)}/.exec(t)||/{([a-z])-([a-z])}/.exec(t);if(i)for(var n=i[1].charCodeAt(0),r=i[2].charCodeAt(0),o=n;o<=r;++o)e.push(t.replace(i[0],String.fromCharCode(o)));else e.push(t);return e}(t),e,i)}function Fy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ay;return function(n){if(null!=n)return t.replace(My,jy(n[0])).replace(Py,jy(n[0],!0)).replace(ky,Ny(n[1])).replace(Iy,function(t){return Ny(-n[2]-1)(t)}).replace(Ly,function(t){var r,o=n[0],s=function(t,e,i){var n=t.getResolution(i),r=Oy(t,e[0],e[1],n,!1),o=Cy(r,2),s=o[0],a=o[1],l=Oy(t,e[2],e[3],n,!0),u=Cy(l,2);return{minX:s,minY:a,maxX:u[0],maxY:u[1]}}(e,i,o);return Ny((r=s).maxY-r.minY+1+n[2])(t)})}}function Dy(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:on(),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ay;return function(t){if(1===t.length)return t[0];return function(e,i,n){if(null!=e){var r=(e[1]<<e[0])+e[2],o=(s=r,a=t.length,(l=s%a)*a<0?l+a:l);return t[o](e,i,n)}var s,a,l}}(t.map(function(t){return Fy(t,e,i)}))}function jy(t,e){return function(){return e?Ey(t,2):t.toString()}}function Ny(t){return function(e){var i=e.match(/\d/);return i?Ey(t,9).slice(3*(i[0]-1),3*i[0]):t.toString()}}"undefined"!=typeof window&&window.ol&&(window.ol.tileCacheUrlFn={createTileUrlFunction:Ry,createTileUrlFunctionFromTemplate:Fy,createTileUrlFunctionFromTemplates:Dy});var $y={props:{url:{type:String}},computed:{urlTmpl:function(){return Object(ir.B)(this.url,Object(ir.x)(this,this.urlTokens))},urlTokens:function(){return[]}}};function Gy(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var zy={mixins:[cy,$y],props:{cacheSize:{type:Number,default:2048},crossOrigin:String,maxZoom:{type:Number,default:Bn},minZoom:{type:Number,default:0},opaque:Boolean,projection:{type:String,default:zn},reprojectionErrorThreshold:{type:Number,default:.5},tilePixelRatio:{type:Number,default:1},tileSize:{type:Array,default:function(){return[Yn,Yn]},validator:function(t){return 2===t.length}},tileLoadFunction:Function,tileKey:String,url:{type:[String,Function],required:!0},transition:Number},computed:{urlTmpl:function(){if(Object(ir.r)(this.url))return Object(ir.B)(this.url,Object(ir.x)(this,this.urlTokens))},urlFunc:function(){if(this.url){var t;if(null!=this.urlTmpl){var e=Kn(this.projection);t=Ry(this.urlTmpl,this._tileGrid,e)}else t=this.url;return t}},tileGridIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"tile_grid")}},methods:{createTileGrid:function(){return on({extent:Kn(this.projection),maxZoom:this.maxZoom,minZoom:this.minZoom,tileSize:this.tileSize})},init:function(){return this._tileGrid=this.instanceFactoryCall(this.tileGridIdent,this.createTileGrid.bind(this)),cy.methods.init.call(this)},deinit:function(){return this._tileGrid=void 0,cy.methods.deinit.call(this)},mount:function(){cy.methods.mount.call(this)},unmount:function(){cy.methods.unmount.call(this)},subscribeAll:function(){cy.methods.subscribeAll.call(this),function(){var t=this;Yg(this);var e=mm(this.$source,["tileloadstart","tileloadend","tileloaderror"]);this.subscribeTo(e,function(e){t.$emit(e.type,e)})}.call(this)},onUrlFuncChange:function(t){this.$source.setTileUrlFunction(t),this.scheduleRefresh()}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Gy(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Gy(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({opaque:function(t){this.$source&&t!==this.$source.getOpaque()&&this.scheduleRecreate()},tilePixelRatio:function(t){this.$source&&t!==this.$source.getOpaque()&&this.scheduleRecreate()},tileKey:function(t){this.$source&&t!==this.$source.getKey()&&this.$source.setKey(t)},tileLoadFunction:function(t,e){this.$source&&!Object(ir.l)(t,e)&&this.$source.setTileLoadFunction(t)},urlFunc:function(t){this.$source&&this.onUrlFuncChange(t)}},Sv(["cacheSize","crossOrigin","reprojectionErrorThreshold","transition","maxZoom","minZoom","tileSize"],function(){return function(){this.scheduleRecreate()}}))},By={mixins:[xy,Ty],props:{updateWhileAnimating:Boolean,updateWhileInteracting:Boolean,renderBuffer:{type:Number,default:100},renderOrder:Function,renderMode:{type:String,default:"vector",validator:function(t){var e;return hs()(e=["vector","image"]).call(e,t)}},declutter:Boolean},methods:{init:function(){return xy.methods.init.call(this)},deinit:function(){return xy.methods.deinit.call(this)},getServices:function(){return Am(xy.methods.getServices.call(this),Ty.methods.getServices.call(this))},getStyleTarget:function(){return this.$layer},mount:function(){return xy.methods.mount.call(this)},unmount:function(){return xy.methods.unmount.call(this)},refresh:function(){return xy.methods.refresh.call(this)},remount:function(){return xy.methods.remount.call(this)},recreate:function(){return xy.methods.remount.call(this)},subscribeAll:function(){xy.methods.subscribeAll.call(this)}},watch:{updateWhileAnimating:function(t){this.$layer&&t!==this.$layer.getUpdateWhileAnimating()&&this.scheduleRecreate()},updateWhileInteracting:function(t){this.$layer&&t!==this.$layer.getUpdateWhileInteracting()&&this.scheduleRecreate()},renderBuffer:function(t){this.$layer&&t!==this.$layer.getRenderBuffer()&&this.scheduleRecreate()},renderOrder:function(t){this.$layer&&!Object(ir.l)(t,this.$layer.getRenderOrder())&&this.$layer.setRenderOrder(t)},declutter:function(t){this.$layer&&t!==this.$layer.getDeclutter()&&this.$layer.setDeclutter(t)}}};function Yy(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var Vy={mixins:[cy,_m,Xg],props:{useSpatialIndex:{type:Boolean,default:!0}},methods:{clear:function(){_m.methods.clearFeatures.call(this)},getServices:function(){return Am(cy.methods.getServices.call(this),_m.methods.getServices.call(this))},init:function(){return cy.methods.init.call(this)},deinit:function(){return cy.methods.deinit.call(this)},mount:function(){return cy.methods.mount.call(this)},unmount:function(){return cy.methods.unmount.call(this)},subscribeAll:function(){cy.methods.subscribeAll.call(this)},writeFeatureInDataProj:function(t){return Xg.methods.writeFeatureInDataProj.call(this,t)},writeGeometryInViewProj:function(t){return Xg.methods.writeFeatureInViewProj.call(this,t)},addFeature:function(t){return _m.methods.addFeature.call(this,t)},removeFeatures:function(t){return _m.methods.removeFeatures.call(this,t)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Yy(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Yy(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({featuresDataProj:{deep:!0,handler:jm()(function(t){this.$emit("update:features",Iv()(t).call(t))},1e3/60)}},Sv(["useSpatialIndex"],function(){return function(){return this.scheduleRecreate()}})),stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}}},Wy={methods:{setFill:function(t){(t=t instanceof er.a?t.$style:t)!==this._fill&&(this._fill=t),this.$style&&t!==this.$style.getFill()&&(this.$style.setFill(t),this.scheduleRefresh())},setStroke:function(t){(t=t instanceof er.a?t.$style:t)!==this._stroke&&(this._stroke=t),this.$style&&t!==this.$style.getStroke()&&(this.$style.setStroke(t),this.scheduleRefresh())}},stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}}};function Hy(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function Uy(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Hy(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Hy(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}var Xy=function(t){return Object(ir.A)(t,function(t,e,i){var n=["LAYERS","VERSION","STYLES","FORMAT","TRANSPARENT","BGCOLOR","TIME"];return i=i.toUpperCase(),hs()(n).call(n,i)?t:(t[i]=e,t)},{})},qy={props:{extParams:Object,layers:{type:String,required:!0},styles:String,version:{type:String,default:"1.3.0"},transparent:{type:Boolean,default:!0},format:{type:String,default:"image/png"},bgColor:String,time:String},computed:{cleanExtParams:function(){return this.extParams?Xy(this.extParams):void 0},allParams:function(){return Uy(Uy({},this.cleanExtParams),{},{LAYERS:this.layers,STYLES:this.styles,VERSION:this.version,FORMAT:this.format,TRANSPARENT:this.transparent,BGCOLOR:this.bgColor,TIME:this.time})}},methods:{getFeatureInfoUrl:function(t,e,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return Gg(this),Yg(this),e||(e=this.$view.getResolution()),i||(i=this.projection),n=Uy(Uy({},this.allParams),n),this.$source.getGetFeatureInfoUrl(t,e,i,n)}},watch:Uy(Uy({},Sv(["layers","version","styles","transparent","format","bgColor","time"],function(t){return function(e){t=t.toUpperCase(),this.$source&&this.$source.updateParams(Fn({},t,e))}})),{},{extParams:function(t){this.$source&&this.$source.updateParams(t?Xy(t):void 0)}})},Ky=function(t){function e(e){var i=e||{},n=void 0!==i.projection?i.projection:"EPSG:3857",r=void 0!==i.tileGrid?i.tileGrid:on({extent:ln(n),maxZoom:i.maxZoom,minZoom:i.minZoom,tileSize:i.tileSize});t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,opaque:i.opaque,projection:n,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileGrid:r,tileLoadFunction:i.tileLoadFunction,tilePixelRatio:i.tilePixelRatio,tileUrlFunction:i.tileUrlFunction,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition,attributionsCollapsible:i.attributionsCollapsible})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(mn),Zy={mixins:[zy],methods:{createSource:function(){return new Ky({attributions:this.attributions,attributionsCollapsible:this.attributionsCollapsible,cacheSize:this.cacheSize,crossOrigin:this.crossOrigin,maxZoom:this.maxZoom,minZoom:this.minZoom,opaque:this.opaque,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,tileGrid:this._tileGrid,tilePixelRatio:this.tilePixelRatio,tileUrlFunction:this.urlFunc,tileLoadFunction:this.tileLoadFunction,wrapX:this.wrapX,transition:this.transition})}}},Jy={name:"vl-source-arcgis-rest",mixins:[zy,Ov],props:{url:{type:String,required:!0,validator:function(t){return!!t.length}}},methods:{createSource:function(){return new bn({attributions:this.attributions,cacheSize:this.cacheSize,crossOrigin:this.crossOrigin,params:this.allParams,tileGrid:this._tileGrid,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,tileLoadFunction:this.tileLoadFunction,url:this.urlTmpl,wrapX:this.wrapX,transition:this.transition})},onUrlFuncChange:function(){}},watch:{urlTmpl:function(t){this.$source&&this.$source.setUrl(t)}}};var Qy,t_,e_,i_,n_,r_=(Qy={},e_=void 0,i_=void 0,(n_=("function"==typeof(t_=Jy)?t_.options:t_)||{}).__file="source.vue",n_.render||(n_.render=Qy.render,n_.staticRenderFns=Qy.staticRenderFns,n_._compiled=!0,i_&&(n_.functional=!0)),n_._scopeId=e_,n_);function o_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o_.installed||(o_.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(r_,e),t.component(r_.name,r_))}var s_=o_;function a_(t,e,i,n){var r=document.createElement("script"),o="olc_"+K(e);function s(){delete window[o],r.parentNode.removeChild(r)}r.async=!0,r.src=t+(-1==t.indexOf("?")?"?":"&")+(n||"callback")+"="+o;var a=setTimeout(function(){s(),i&&i()},1e4);window[o]=function(t){clearTimeout(a),s(),e(t)},document.getElementsByTagName("head")[0].appendChild(r)}var l_=function(t){function e(e){var i=void 0!==e.hidpi&&e.hidpi;t.call(this,{cacheSize:e.cacheSize,crossOrigin:"anonymous",opaque:!0,projection:di("EPSG:3857"),reprojectionErrorThreshold:e.reprojectionErrorThreshold,state:Ni.LOADING,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:i?2:1,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition}),this.hidpi_=i,this.culture_=void 0!==e.culture?e.culture:"en-us",this.maxZoom_=void 0!==e.maxZoom?e.maxZoom:-1,this.apiKey_=e.key,this.imagerySet_=e.imagerySet,a_("https://dev.virtualearth.net/REST/v1/Imagery/Metadata/"+this.imagerySet_+"?uriScheme=https&include=ImageryProviders&key="+this.apiKey_+"&c="+this.culture_,this.handleImageryMetadataResponse.bind(this),void 0,"jsonp")}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getApiKey=function(){return this.apiKey_},e.prototype.getImagerySet=function(){return this.imagerySet_},e.prototype.handleImageryMetadataResponse=function(t){if(200==t.statusCode&&"OK"==t.statusDescription&&"ValidCredentials"==t.authenticationResultCode&&1==t.resourceSets.length&&1==t.resourceSets[0].resources.length){var e=t.resourceSets[0].resources[0],i=-1==this.maxZoom_?e.zoomMax:this.maxZoom_,n=ln(this.getProjection()),r=this.hidpi_?2:1,o=e.imageWidth==e.imageHeight?e.imageWidth/r:[e.imageWidth/r,e.imageHeight/r],s=on({extent:n,minZoom:e.zoomMin,maxZoom:i,tileSize:o});this.tileGrid=s;var a=this.culture_,l=this.hidpi_;if(this.tileUrlFunction=Pi(e.imageUrlSubdomains.map(function(t){var i=[0,0,0],n=e.imageUrl.replace("{subdomain}",t).replace("{culture}",a);return function(t,e,r){if(t){ke(t[0],t[1],-t[2]-1,i);var o=n;return l&&(o+="&dpi=d1&device=mobile"),o.replace("{quadkey}",function(t){var e,i,n=t[0],r=new Array(n),o=1<<n-1;for(e=0;e<n;++e)i=48,t[1]&o&&(i+=1),t[2]&o&&(i+=2),r[e]=String.fromCharCode(i),o>>=1;return r.join("")}(i))}}})),e.imageryProviders){var u=mi(di("EPSG:4326"),this.getProjection());this.setAttributions(function(t){var i=[],n=t.viewState,r=this.getTileGrid().getTileCoordForCoordAndResolution(n.center,n.resolution)[0];return e.imageryProviders.map(function(e){for(var n=!1,o=e.coverageAreas,s=0,a=o.length;s<a;++s){var l=o[s];if(r>=l.zoomMin&&r<=l.zoomMax){var c=l.bbox;if(Lt(Ft([c[1],c[0],c[3],c[2]],u),t.extent)){n=!0;break}}}n&&i.push(e.attribution)}),i.push('<a class="ol-attribution-bing-tos" href="https://www.microsoft.com/maps/product/terms.html">Terms of Use</a>'),i}.bind(this))}this.setState(Ni.READY)}else this.setState(Ni.ERROR)},e}(mn);function u_(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var c_=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-bingmaps",mixins:[zy],props:{hidpi:{type:Boolean,default:!1},culture:{type:String,default:"en-us"},apiKey:{type:String,required:!0},imagerySet:{type:String,required:!0},maxZoom:{type:Number,default:21},url:String},methods:{createSource:function(){return new l_({cacheSize:this.cacheSize,hidpi:this.hidpi,culture:this.culture,key:this.apiKey,imagerySet:this.imagerySet,maxZoom:this.maxZoom,reprojectionErrorThreshold:this.reprojectionErrorThreshold,wrapX:this.wrapX,transition:this.transition,tileLoadFunction:this.tileLoadFunction})},onUrlFuncChange:function(){}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?u_(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):u_(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({},Sv(["apiKey","imagerySet"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function h_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};h_.installed||(h_.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(c_,e),t.component(c_.name,c_))}var d_=h_;var f_=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-circle",mixins:[ly],props:{coordinates:{type:Array,required:!0,validator:function(t){return 2===t.length}},radius:{type:Number,default:0}},computed:{type:Object(ir.d)(Vn.POINT),coordinatesViewProj:function(){if(this.rev&&this.$geometry)return this.$geometry.getCenter()}},methods:{createGeometry:function(){return new Ns(this.toViewProj(this.coordinates),this.radius)},getCoordinates:function(){return Vg(this),this.toDataProj(this.$geometry.getCenter())},setCoordinates:function(t){Vg(this),this.$geometry.setCenter(this.toViewProj(t))}},watch:{radius:function(t){this.$geometry&&t!==this.$geometry.getRadius()&&this.$geometry.setRadius(t)}}},void 0,void 0);function p_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};p_.installed||(p_.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(f_,e),t.component(f_.name,f_))}var v_=p_,g_={radius:{type:Number,default:5}};var m_=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-circle",mixins:[py,Wy],props:g_,methods:{createStyle:function(){return new mh({radius:this.radius,fill:this._fill,stroke:this._stroke})},getServices:function(){var t=this;return Am(py.methods.getServices.call(this),{get stylesContainer(){return t}})},setFill:function(t){(t=t instanceof er.a?t.$style:t)!==this._fill&&(this._fill=t,this.scheduleRefresh())},setStroke:function(t){(t=t instanceof er.a?t.$style:t)!==this._stroke&&(this._stroke=t,this.scheduleRefresh())}},watch:{radius:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRadius())&&this.scheduleRefresh()}}},void 0,void 0);function y_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};y_.installed||(y_.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(m_,e),t.component(m_.name,m_))}var __=y_,b_=i(895),x_=i.n(b_),w_=function(t){function e(e){t.call(this,{attributions:e.attributions,wrapX:e.wrapX}),this.resolution=void 0,this.distance=void 0!==e.distance?e.distance:20,this.features=[],this.geometryFunction=e.geometryFunction||function(t){var e=t.getGeometry();return Q(e.getType()==Fe.POINT,10),e},this.source=e.source,ue(this.source,xe.CHANGE,this.refresh,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getDistance=function(){return this.distance},e.prototype.getSource=function(){return this.source},e.prototype.loadFeatures=function(t,e,i){this.source.loadFeatures(t,e,i),e!==this.resolution&&(this.clear(),this.resolution=e,this.cluster(),this.addFeatures(this.features))},e.prototype.setDistance=function(t){this.distance=t,this.refresh()},e.prototype.refresh=function(){this.clear(),this.cluster(),this.addFeatures(this.features),t.prototype.refresh.call(this)},e.prototype.cluster=function(){if(void 0!==this.resolution){this.features.length=0;for(var t=[1/0,1/0,-1/0,-1/0],e=this.distance*this.resolution,i=this.source.getFeatures(),n={},r=0,o=i.length;r<o;r++){var s=i[r];if(!(K(s)in n)){var a=this.geometryFunction(s);if(a){ft(a.getCoordinates(),t),nt(t,e,t);var l=this.source.getFeaturesInExtent(t);l=l.filter(function(t){var e=K(t);return!(e in n)&&(n[e]=!0,!0)}),this.features.push(this.createCluster(l))}}}}},e.prototype.createCluster=function(t){for(var e=[0,0],i=t.length-1;i>=0;--i){var n=this.geometryFunction(t[i]);n?Va(e,n.getCoordinates()):t.splice(i,1)}qa(e,1/t.length);var r=new Zn(new Io(e));return r.set("features",t),r},e}(Fh),S_=function(){function t(){cr(this,t)}return dr(t,[{key:"getSource",value:function(){return this.source}},{key:"setSource",value:function(t){return this.source=t,this}},{key:"setAttributions",value:function(t){return this.attributions=t,this}},{key:"setDistance",value:function(t){return this.distance=t,this}},{key:"setGeometryFunction",value:function(t){return this.geometryFunction=t,this}},{key:"setLogo",value:function(t){return this.logo=t,this}},{key:"setProjection",value:function(t){return this.projection=t,this}},{key:"setWrapX",value:function(t){return this.wrapX=t,this}},{key:"set",value:function(t,e){x_()(this)||(this.values={}),x_()(this)[t]=e}},{key:"build",value:function(){jg(this.source,"source is provided");var t=new w_({attributions:this.attributions,distance:this.distance,geometryFunction:this.geometryFunction,logo:this.logo,projection:this.projection,source:this.source,wrapX:this.wrapX});return t.setProperties(x_()(this)),t}},{key:"promise",value:function(){var t=this;return Nm(100).pipe(ty(function(){return!t.source}),Qm(),Qv(this.build.bind(this))).toPromise(Fm.a)}}]),t}();function T_(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var E_=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-cluster",mixins:[Vy,_y],props:{distance:{type:Number,default:20},geomFuncFactory:{type:Function,default:function(){return function(t){var e=t.getGeometry();if(e){var i=qs(e);return i?$s(i):void 0}}}}},computed:{geomFunc:function(){return this.geomFuncFactory()}},methods:{createSource:function(){return this._sourceBuilder.setAttributions(this.attributions).setDistance(this.distance).setGeometryFunction(this.geomFunc).setLogo(this.logo).setProjection(this.projection).setWrapX(this.wrapX),this._sourceBuilder.promise()},getServices:function(){return Am(Vy.methods.getServices.call(this),_y.methods.getServices.call(this))},getSourceTarget:function(){return this._sourceBuilder},subscribeAll:function(){Vy.methods.subscribeAll.call(this),function(){var t=this;Yg(this);var e=mm(this.$source,"addfeature");this.subscribeTo(e,function(e){var i=e.feature;t.addFeature(i)});var i=mm(this.$source,"removefeature");this.subscribeTo(i,function(e){var i=e.feature;t.removeFeature(i)})}.call(this)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?T_(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):T_(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({distance:function(t){this.$source&&t!==this.$source.getDistance()&&this.$source.setDistance(t)}},Sv(["geomFunc"],function(){return function(){this.scheduleRecreate()}})),created:function(){this._sourceBuilder=new S_,Object.defineProperties(this,{$innerSource:{enumerable:!0,get:this.getSource}})}},void 0,void 0);function C_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};C_.installed||(C_.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(E_,e),t.component(E_.name,E_))}var O_=C_,M_=i(149),P_=i.n(M_),k_=function(t){function e(e,i,n,r,o,s){var a=e.getExtent(),l=i.getExtent(),u=l?Mt(n,l):n,c=xi(e,i,Et(u),r),h=new Ei(e,i,u,a,c*Zt),d=s(h.calculateSourceExtent(),c,o),f=Sl.LOADED;d&&(f=Sl.IDLE);var p=d?d.getPixelRatio():1;t.call(this,n,r,p,f),this.targetProj_=i,this.maxSourceExtent_=a,this.triangulation_=h,this.targetResolution_=r,this.targetExtent_=n,this.sourceImage_=d,this.sourcePixelRatio_=p,this.canvas_=null,this.sourceListenerKey_=null}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.disposeInternal=function(){this.state==Sl.LOADING&&this.unlistenSource_(),t.prototype.disposeInternal.call(this)},e.prototype.getImage=function(){return this.canvas_},e.prototype.getProjection=function(){return this.targetProj_},e.prototype.reproject_=function(){var t=this.sourceImage_.getState();if(t==Sl.LOADED){var e=It(this.targetExtent_)/this.targetResolution_,i=Ot(this.targetExtent_)/this.targetResolution_;this.canvas_=Si(e,i,this.sourcePixelRatio_,this.sourceImage_.getResolution(),this.maxSourceExtent_,this.targetResolution_,this.targetExtent_,this.triangulation_,[{extent:this.sourceImage_.getExtent(),image:this.sourceImage_.getImage()}],0)}this.state=t,this.changed()},e.prototype.load=function(){if(this.state==Sl.IDLE){this.state=Sl.LOADING,this.changed();var t=this.sourceImage_.getState();t==Sl.LOADED||t==Sl.ERROR?this.reproject_():(this.sourceListenerKey_=ue(this.sourceImage_,xe.CHANGE,function(t){var e=this.sourceImage_.getState();e!=Sl.LOADED&&e!=Sl.ERROR||(this.unlistenSource_(),this.reproject_())},this),this.sourceImage_.load())}},e.prototype.unlistenSource_=function(){de(this.sourceListenerKey_),this.sourceListenerKey_=null},e}(wl),I_="imageloadstart",L_="imageloadend",A_="imageloaderror",R_=function(t){function e(e,i){t.call(this,e),this.image=i}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(_e);function F_(t,e){t.getImage().src=e}var D_=function(t){function e(e){t.call(this,{attributions:e.attributions,projection:e.projection,state:e.state}),this.resolutions_=void 0!==e.resolutions?e.resolutions:null,this.reprojectedImage_=null,this.reprojectedRevision_=0}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getResolutions=function(){return this.resolutions_},e.prototype.findNearestResolution=function(t){if(this.resolutions_){var e=Xi(this.resolutions_,t,0);t=this.resolutions_[e]}return t},e.prototype.getImage=function(t,e,i,n){var r=this.getProjection();if(r&&n&&!gi(r,n)){if(this.reprojectedImage_){if(this.reprojectedRevision_==this.getRevision()&&gi(this.reprojectedImage_.getProjection(),n)&&this.reprojectedImage_.getResolution()==e&&vt(this.reprojectedImage_.getExtent(),t))return this.reprojectedImage_;this.reprojectedImage_.dispose(),this.reprojectedImage_=null}return this.reprojectedImage_=new k_(r,n,t,e,i,function(t,e,i){return this.getImageInternal(t,e,i,r)}.bind(this)),this.reprojectedRevision_=this.getRevision(),this.reprojectedImage_}return r&&(n=r),this.getImageInternal(t,e,i,n)},e.prototype.getImageInternal=function(t,e,i,n){return X()},e.prototype.handleImageChange=function(t){var e=t.target;switch(e.getState()){case Sl.LOADING:this.loading=!0,this.dispatchEvent(new R_(I_,e));break;case Sl.LOADED:this.loading=!1,this.dispatchEvent(new R_(L_,e));break;case Sl.ERROR:this.loading=!1,this.dispatchEvent(new R_(A_,e))}},e}(Gi);var j_=function(t){function e(e){var i=void 0!==e.crossOrigin?e.crossOrigin:null,n=void 0!==e.imageLoadFunction?e.imageLoadFunction:F_;t.call(this,{attributions:e.attributions,projection:di(e.projection)}),this.url_=e.url,this.imageExtent_=e.imageExtent,this.image_=new Tl(this.imageExtent_,void 0,1,this.url_,i,n),this.imageSize_=e.imageSize?e.imageSize:null,ue(this.image_,xe.CHANGE,this.handleImageChange,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getImageExtent=function(){return this.imageExtent_},e.prototype.getImageInternal=function(t,e,i,n){return Lt(t,this.image_.getExtent())?this.image_:null},e.prototype.getUrl=function(){return this.url_},e.prototype.handleImageChange=function(e){if(this.image_.getState()==Sl.LOADED){var i,n,r=this.image_.getExtent(),o=this.image_.getImage();this.imageSize_?(i=this.imageSize_[0],n=this.imageSize_[1]):(i=o.width,n=o.height);var s=Ot(r)/n,a=Math.ceil(It(r)/s);if(a!=i){var l=Se(a,n),u=l.canvas;l.drawImage(o,0,0,i,n,0,0,u.width,u.height),this.image_.setImage(u)}}t.prototype.handleImageChange.call(this,e)},e}(D_),N_="1.3.0",$_={CARMENTA_SERVER:"carmentaserver",GEOSERVER:"geoserver",MAPSERVER:"mapserver",QGIS:"qgis"},G_=[101,101],z_=function(t){function e(e){var i=e||{};t.call(this,{attributions:i.attributions,projection:i.projection,resolutions:i.resolutions}),this.crossOrigin_=void 0!==i.crossOrigin?i.crossOrigin:null,this.url_=i.url,this.imageLoadFunction_=void 0!==i.imageLoadFunction?i.imageLoadFunction:F_,this.params_=i.params||{},this.v13_=!0,this.updateV13_(),this.serverType_=i.serverType,this.hidpi_=void 0===i.hidpi||i.hidpi,this.image_=null,this.imageSize_=[0,0],this.renderedRevision_=0,this.ratio_=void 0!==i.ratio?i.ratio:1.5}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getGetFeatureInfoUrl=function(t,e,i,n){if(void 0!==this.url_){var r=di(i),o=this.getProjection();o&&o!==r&&(e=xi(o,r,t,e),t=_i(t,r,o));var s=Ct(t,e,0,G_),a={SERVICE:"WMS",VERSION:N_,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Vt(a,this.params_,n);var l=Math.floor((t[0]-s[0])/e),u=Math.floor((s[3]-t[1])/e);return a[this.v13_?"I":"X"]=l,a[this.v13_?"J":"Y"]=u,this.getRequestUrl_(s,G_,1,o||r,a)}},e.prototype.getParams=function(){return this.params_},e.prototype.getImageInternal=function(t,e,i,n){if(void 0===this.url_)return null;e=this.findNearestResolution(e),1==i||this.hidpi_&&void 0!==this.serverType_||(i=1);var r=e/i,o=Et(t),s=Ct(o,r,0,[Math.ceil(It(t)/r),Math.ceil(Ot(t)/r)]),a=Ct(o,r,0,[Math.ceil(this.ratio_*It(t)/r),Math.ceil(this.ratio_*Ot(t)/r)]),l=this.image_;if(l&&this.renderedRevision_==this.getRevision()&&l.getResolution()==e&&l.getPixelRatio()==i&&at(l.getExtent(),s))return l;var u={SERVICE:"WMS",VERSION:N_,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};Vt(u,this.params_),this.imageSize_[0]=Math.round(It(a)/r),this.imageSize_[1]=Math.round(Ot(a)/r);var c=this.getRequestUrl_(a,this.imageSize_,i,n,u);return this.image_=new Tl(a,e,i,c,this.crossOrigin_,this.imageLoadFunction_),this.renderedRevision_=this.getRevision(),ue(this.image_,xe.CHANGE,this.handleImageChange,this),this.image_},e.prototype.getImageLoadFunction=function(){return this.imageLoadFunction_},e.prototype.getRequestUrl_=function(t,e,i,n,r){if(Q(void 0!==this.url_,9),r[this.v13_?"CRS":"SRS"]=n.getCode(),"STYLES"in this.params_||(r.STYLES=""),1!=i)switch(this.serverType_){case $_.GEOSERVER:var o=90*i+.5|0;"FORMAT_OPTIONS"in r?r.FORMAT_OPTIONS+=";dpi:"+o:r.FORMAT_OPTIONS="dpi:"+o;break;case $_.MAPSERVER:r.MAP_RESOLUTION=90*i;break;case $_.CARMENTA_SERVER:case $_.QGIS:r.DPI=90*i;break;default:Q(!1,8)}r.WIDTH=e[0],r.HEIGHT=e[1];var s,a=n.getAxisOrientation();return s=this.v13_&&"ne"==a.substr(0,2)?[t[1],t[0],t[3],t[2]]:t,r.BBOX=s.join(","),yn(this.url_,r)},e.prototype.getUrl=function(){return this.url_},e.prototype.setImageLoadFunction=function(t){this.image_=null,this.imageLoadFunction_=t,this.changed()},e.prototype.setUrl=function(t){t!=this.url_&&(this.url_=t,this.image_=null,this.changed())},e.prototype.updateParams=function(t){Vt(this.params_,t),this.updateV13_(),this.image_=null,this.changed()},e.prototype.updateV13_=function(){var t=this.params_.VERSION||N_;this.v13_=Ya(t,"1.3")>=0},e}(D_),B_='&#169; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors.',Y_=function(t){function e(e){var i,n=e||{};i=void 0!==n.attributions?n.attributions:[B_];var r=void 0!==n.crossOrigin?n.crossOrigin:"anonymous",o=void 0!==n.url?n.url:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png";t.call(this,{attributions:i,cacheSize:n.cacheSize,crossOrigin:r,opaque:void 0===n.opaque||n.opaque,maxZoom:void 0!==n.maxZoom?n.maxZoom:19,reprojectionErrorThreshold:n.reprojectionErrorThreshold,tileLoadFunction:n.tileLoadFunction,url:o,wrapX:n.wrapX,attributionsCollapsible:!1})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ky),V_=(i(899),function(t){function e(e){var i=e||{};t.call(this,i),this.type=Xc.IMAGE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ju));V_.prototype.getSource;var W_=V_,H_="preload",U_="useInterimTilesOnError",X_=function(t){function e(e){var i=e||{},n=Vt({},i);delete n.preload,delete n.useInterimTilesOnError,t.call(this,n),this.setPreload(void 0!==i.preload?i.preload:0),this.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),this.type=Xc.TILE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(H_)},e.prototype.setPreload=function(t){this.set(H_,t)},e.prototype.getUseInterimTilesOnError=function(){return this.get(U_)},e.prototype.setUseInterimTilesOnError=function(t){this.set(U_,t)},e}(Ju);X_.prototype.getSource;var q_=X_;var K_=['Map tiles by <a href="https://stamen.com/">Stamen Design</a>, under <a href="https://creativecommons.org/licenses/by/3.0/">CC BY 3.0</a>.',B_],Z_={terrain:{extension:"jpg",opaque:!0},"terrain-background":{extension:"jpg",opaque:!0},"terrain-labels":{extension:"png",opaque:!1},"terrain-lines":{extension:"png",opaque:!1},"toner-background":{extension:"png",opaque:!0},toner:{extension:"png",opaque:!0},"toner-hybrid":{extension:"png",opaque:!1},"toner-labels":{extension:"png",opaque:!1},"toner-lines":{extension:"png",opaque:!1},"toner-lite":{extension:"png",opaque:!0},watercolor:{extension:"jpg",opaque:!0}},J_={terrain:{minZoom:4,maxZoom:18},toner:{minZoom:0,maxZoom:20},watercolor:{minZoom:1,maxZoom:16}},Q_=function(t){function e(e){var i=e.layer.indexOf("-"),n=-1==i?e.layer:e.layer.slice(0,i),r=J_[n],o=Z_[e.layer],s=void 0!==e.url?e.url:"https://stamen-tiles-{a-d}.a.ssl.fastly.net/"+e.layer+"/{z}/{x}/{y}."+o.extension;t.call(this,{attributions:K_,cacheSize:e.cacheSize,crossOrigin:"anonymous",maxZoom:void 0!=e.maxZoom?e.maxZoom:r.maxZoom,minZoom:void 0!=e.minZoom?e.minZoom:r.minZoom,opaque:o.opaque,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileLoadFunction:e.tileLoadFunction,url:s,wrapX:e.wrapX})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Ky);function tb(t,e,i){var n=this.getTileGrid();if(n||(n=this.getTileGridForProjection(i)),!(n.getResolutions().length<=t[0])){1==e||this.hidpi_&&void 0!==this.serverType_||(e=1);var r=n.getResolution(t[0]),o=n.getTileCoordExtent(t,this.tmpExtent_),s=Kt(n.getTileSize(t[0]),this.tmpSize),a=this.gutter_;0!==a&&(s=Xt(s,a,this.tmpSize),o=nt(o,r*a,o)),1!=e&&(s=qt(s,e,this.tmpSize));var l={SERVICE:"WMS",VERSION:N_,REQUEST:"GetMap",FORMAT:"image/png",TRANSPARENT:!0};return Vt(l,this.params_),this.getRequestUrl_(t,s,o,e,i,l)}}var eb=function(t){function e(e){var i=e||{},n=i.params||{},r=!("TRANSPARENT"in n)||n.TRANSPARENT;t.call(this,{attributions:i.attributions,cacheSize:i.cacheSize,crossOrigin:i.crossOrigin,opaque:!r,projection:i.projection,reprojectionErrorThreshold:i.reprojectionErrorThreshold,tileClass:i.tileClass,tileGrid:i.tileGrid,tileLoadFunction:i.tileLoadFunction,tileUrlFunction:tb,url:i.url,urls:i.urls,wrapX:void 0===i.wrapX||i.wrapX,transition:i.transition}),this.gutter_=void 0!==i.gutter?i.gutter:0,this.params_=n,this.v13_=!0,this.serverType_=i.serverType,this.hidpi_=void 0===i.hidpi||i.hidpi,this.tmpExtent_=[1/0,1/0,-1/0,-1/0],this.updateV13_(),this.setKey(this.getKeyForParams_())}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getGetFeatureInfoUrl=function(t,e,i,n){var r=di(i),o=this.getProjection(),s=this.getTileGrid();s||(s=this.getTileGridForProjection(r));var a=s.getTileCoordForCoordAndResolution(t,e);if(!(s.getResolutions().length<=a[0])){var l=s.getResolution(a[0]),u=s.getTileCoordExtent(a,this.tmpExtent_),c=Kt(s.getTileSize(a[0]),this.tmpSize),h=this.gutter_;0!==h&&(c=Xt(c,h,this.tmpSize),u=nt(u,l*h,u)),o&&o!==r&&(l=xi(o,r,t,l),u=bi(u,r,o),t=_i(t,r,o));var d={SERVICE:"WMS",VERSION:N_,REQUEST:"GetFeatureInfo",FORMAT:"image/png",TRANSPARENT:!0,QUERY_LAYERS:this.params_.LAYERS};Vt(d,this.params_,n);var f=Math.floor((t[0]-u[0])/l),p=Math.floor((u[3]-t[1])/l);return d[this.v13_?"I":"X"]=f,d[this.v13_?"J":"Y"]=p,this.getRequestUrl_(a,c,u,1,o||r,d)}},e.prototype.getGutter=function(){return this.gutter_},e.prototype.getParams=function(){return this.params_},e.prototype.getRequestUrl_=function(t,e,i,n,r,o){var s=this.urls;if(s){if(o.WIDTH=e[0],o.HEIGHT=e[1],o[this.v13_?"CRS":"SRS"]=r.getCode(),"STYLES"in this.params_||(o.STYLES=""),1!=n)switch(this.serverType_){case $_.GEOSERVER:var a=90*n+.5|0;"FORMAT_OPTIONS"in o?o.FORMAT_OPTIONS+=";dpi:"+a:o.FORMAT_OPTIONS="dpi:"+a;break;case $_.MAPSERVER:o.MAP_RESOLUTION=90*n;break;case $_.CARMENTA_SERVER:case $_.QGIS:o.DPI=90*n;break;default:Q(!1,52)}var l,u,c=r.getAxisOrientation(),h=i;if(this.v13_&&"ne"==c.substr(0,2))l=i[0],h[0]=i[1],h[1]=l,l=i[2],h[2]=i[3],h[3]=l;if(o.BBOX=h.join(","),1==s.length)u=s[0];else u=s[Bt(Ae(t),s.length)];return yn(u,o)}},e.prototype.getTilePixelRatio=function(t){return this.hidpi_&&void 0!==this.serverType_?t:1},e.prototype.getKeyForParams_=function(){var t=0,e=[];for(var i in this.params_)e[t++]=i+"-"+this.params_[i];return e.join("/")},e.prototype.updateParams=function(t){Vt(this.params_,t),this.updateV13_(),this.setKey(this.getKeyForParams_())},e.prototype.updateV13_=function(){var t=this.params_.VERSION||N_;this.v13_=Ya(t,"1.3")>=0},e}(mn),ib=function(t){function e(e){var i=e.projection||"EPSG:3857",n=e.extent||ln(i),r=e.tileGrid||on({extent:n,maxZoom:e.maxZoom||22,minZoom:e.minZoom,tileSize:e.tileSize||512});t.call(this,{attributions:e.attributions,cacheSize:void 0!==e.cacheSize?e.cacheSize:128,opaque:!1,projection:i,state:e.state,tileGrid:r,tileLoadFunction:e.tileLoadFunction?e.tileLoadFunction:cf,tileUrlFunction:e.tileUrlFunction,url:e.url,urls:e.urls,wrapX:void 0===e.wrapX||e.wrapX,transition:e.transition}),this.format_=e.format?e.format:null,this.sourceTiles_={},this.overlaps_=void 0==e.overlaps||e.overlaps,this.tileClass=e.tileClass?e.tileClass:df,this.tileGrids_={}}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getOverlaps=function(){return this.overlaps_},e.prototype.clear=function(){this.tileCache.clear(),this.sourceTiles_={}},e.prototype.getTile=function(t,e,i,n,r){var o=Ie(t,e,i);if(this.tileCache.containsKey(o))return this.tileCache.get(o);var s=[t,e,i],a=this.getTileCoordForTileUrlFunction(s,r),l=new uf(s,null!==a?Jt.IDLE:Jt.EMPTY,this.getRevision(),this.format_,this.tileLoadFunction,a,this.tileUrlFunction,this.tileGrid,this.getTileGridForProjection(r),this.sourceTiles_,n,r,this.tileClass,this.handleTileChange.bind(this),s[0]);return this.tileCache.set(o,l),l},e.prototype.getTileGridForProjection=function(t){var e=t.getCode(),i=this.tileGrids_[e];if(!i){var n=this.tileGrid;i=this.tileGrids_[e]=an(t,void 0,n?n.getTileSize(n.getMinZoom()):void 0)}return i},e.prototype.getTilePixelRatio=function(t){return t},e.prototype.getTilePixelSize=function(t,e,i){var n=Kt(this.getTileGridForProjection(i).getTileSize(t),this.tmpSize);return[Math.round(n[0]*e),Math.round(n[1]*e)]},e}(vn),nb={KVP:"KVP",REST:"REST"},rb=function(t){function e(e){t.call(this,{extent:e.extent,origin:e.origin,origins:e.origins,resolutions:e.resolutions,tileSize:e.tileSize,tileSizes:e.tileSizes,sizes:e.sizes}),this.matrixIds_=e.matrixIds}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getMatrixId=function(t){return this.matrixIds_[t]},e.prototype.getMatrixIds=function(){return this.matrixIds_},e}(en),ob=rb;var sb=function(t){function e(e){var i=void 0!==e.requestEncoding?e.requestEncoding:nb.KVP,n=e.tileGrid,r=e.urls;void 0===r&&void 0!==e.url&&(r=Ii(e.url)),t.call(this,{attributions:e.attributions,cacheSize:e.cacheSize,crossOrigin:e.crossOrigin,projection:e.projection,reprojectionErrorThreshold:e.reprojectionErrorThreshold,tileClass:e.tileClass,tileGrid:n,tileLoadFunction:e.tileLoadFunction,tilePixelRatio:e.tilePixelRatio,tileUrlFunction:ki,urls:r,wrapX:void 0!==e.wrapX&&e.wrapX,transition:e.transition}),this.version_=void 0!==e.version?e.version:"1.0.0",this.format_=void 0!==e.format?e.format:"image/jpeg",this.dimensions_=void 0!==e.dimensions?e.dimensions:{},this.layer_=e.layer,this.matrixSet_=e.matrixSet,this.style_=e.style,this.requestEncoding_=i,this.setKey(this.getKeyForDimensions_()),r&&r.length>0&&(this.tileUrlFunction=Pi(r.map(ab.bind(this))))}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setUrls=function(t){this.urls=t;var e=t.join("\n");this.setTileUrlFunction(Pi(t.map(ab.bind(this))),e)},e.prototype.getDimensions=function(){return this.dimensions_},e.prototype.getFormat=function(){return this.format_},e.prototype.getLayer=function(){return this.layer_},e.prototype.getMatrixSet=function(){return this.matrixSet_},e.prototype.getRequestEncoding=function(){return this.requestEncoding_},e.prototype.getStyle=function(){return this.style_},e.prototype.getVersion=function(){return this.version_},e.prototype.getKeyForDimensions_=function(){var t=0,e=[];for(var i in this.dimensions_)e[t++]=i+"-"+this.dimensions_[i];return e.join("/")},e.prototype.updateDimensions=function(t){Vt(this.dimensions_,t),this.setKey(this.getKeyForDimensions_())},e}(mn);function ab(t){var e=this.requestEncoding_,i={layer:this.layer_,style:this.style_,tilematrixset:this.matrixSet_};e==nb.KVP&&Vt(i,{Service:"WMTS",Request:"GetTile",Version:this.version_,Format:this.format_}),t=e==nb.KVP?yn(t,i):t.replace(/\{(\w+?)\}/g,function(t,e){return e.toLowerCase()in i?i[e.toLowerCase()]:t});var n=this.tileGrid,r=this.dimensions_;return function(i,o,s){if(i){var a={TileMatrix:n.getMatrixId(i[0]),TileCol:i[1],TileRow:-i[2]-1};Vt(a,r);var l=t;return l=e==nb.KVP?yn(l,a):l.replace(/\{(\w+?)\}/g,function(t,e){return a[e]})}}}var lb;function ub(t){var e=t.error;t.subscriber.error(e)}lb||(lb={});var cb=function(){function t(t,e,i){this.kind=t,this.value=e,this.error=i,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,i){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return i&&i()}},t.prototype.accept=function(t,e,i){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,i)},t.prototype.toObservable=function(){var t,e;switch(this.kind){case"N":return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var i=t[t.length-1];return Jv(i)?(t.pop(),ag(t,i)):gg(t)}(this.value);case"E":return t=this.error,new Kv(e?function(i){return e.schedule(ub,0,{error:t,subscriber:i})}:function(e){return e.error(t)});case"C":return Wm()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();function hb(t,e){void 0===e&&(e=bg);var i,n=(i=t)instanceof Date&&!isNaN(+i)?+t-e.now():Math.abs(t);return function(t){return t.lift(new db(n,e))}}var db=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new fb(t,this.delay,this.scheduler))},t}(),fb=function(t){function e(e,i,n){var r=t.call(this,e)||this;return r.delay=i,r.scheduler=n,r.queue=[],r.active=!1,r.errored=!1,r}return Av(e,t),e.dispatch=function(t){for(var e=t.source,i=e.queue,n=t.scheduler,r=t.destination;i.length>0&&i[0].time-n.now()<=0;)i.shift().notification.observe(r);if(i.length>0){var o=Math.max(0,i[0].time-n.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,i=new pb(e.now()+this.delay,t);this.queue.push(i),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(cb.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(cb.createComplete()),this.unsubscribe()},e}(Wv),pb=function(){return function(t,e){this.time=t,this.notification=e}}();var vb=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new gb(t,this.value))},t}(),gb=function(t){function e(e,i){var n=t.call(this,e)||this;return n.value=i,n}return Av(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(Wv);function mb(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var yb=function(t){return Object(ir.E)(Object(ir.b)(t))};var _b=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="interaction.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-interaction-draw",mixins:[vy,Ty],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{source:{type:String,required:!0},clickTolerance:{type:Number,default:6},snapTolerance:{type:Number,default:12},type:{type:String,required:!0,validator:function(t){var e;return hs()(e=P_()(Vn)).call(e,yb(t))}},stopClick:{type:Boolean,default:!1},maxPoints:Number,minPoints:Number,finishCondition:Function,geometryFunction:Function,geometryName:{type:String,default:"geometry"},condition:{type:Function,default:wc},freehand:{type:Boolean,default:!1},freehandCondition:{type:Function,default:Sc},wrapX:{type:Boolean,default:!1}},methods:{createInteraction:function(){var t=this;return Sm(Em.a.mark(function e(){var i,n;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getInstance(t.source);case 2:return jg(!!(i=t._source=e.sent),'Source "'.concat(t.source,'" not found in identity map.')),i instanceof Fh||(Object(ir.n)(i.getFeaturesCollection)?n=i.getFeaturesCollection():Object(ir.n)(i.getFeatures)&&(n=i.getFeatures()),Ng(n,ya,'Source "'.concat(t.source,"\" doesn't provide features collection.")),i=null),e.abrupt("return",new Gh({source:i,features:n,clickTolerance:t.clickTolerance,snapTolerance:t.snapTolerance,type:yb(t.type),stopClick:t.stopClick,maxPoints:t.maxPoints,minPoints:t.minPoints,finishCondition:t.finishCondition,style:t.createStyleFunc(),geometryFunction:t.geometryFunction,geometryName:t.geometryName,condition:t.condition,freehand:t.freehand,freehandCondition:t.freehandCondition,wrapX:t.wrapX}));case 6:case"end":return e.stop()}},e)}))()},getDefaultStyles:function(){var t=Object(ir.v)(vv(),function(t){return ea()(t).call(t,mv)});return function(e){if(e.getGeometry())return t[e.getGeometry().getType()]}},getServices:function(){return Am(vy.methods.getServices.call(this),Ty.methods.getServices.call(this))},getStyleTarget:function(){return this.$interaction},mount:function(){vy.methods.mount.call(this)},unmount:function(){vy.methods.unmount.call(this)},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRecreate())},subscribeAll:function(){vy.methods.subscribeAll.call(this),function(){var t=this;Wg(this);var e=mg(mm(this.$interaction,"drawstart").pipe(Qv(function(t){return sr(t.feature),t})),mm(this.$interaction,"drawend").pipe(dg(function(e){var i;return(t._source.vm&&t._source.vm[0]?gm(function(e){return t._source.vm[0].$on("update:features",e)},function(e){return t._source.vm[0].$off("update:features",e)}):mm(t._source,"change").pipe(hb(1e3/60*2))).pipe((i=e,function(t){return t.lift(new vb(i))}),Qm())})));this.subscribeTo(e,function(e){++t.rev,t.$nextTick(function(){t.$emit(e.type,e)})})}.call(this)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?mb(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):mb(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({},Sv(["source","clickTolerance","snapTolerance","type","stopClick","maxPoints","minPoints","finishCondition","geometryFunction","geometryName","condition","freehand","freehandCondition","wrapX"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function bb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};bb.installed||(bb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(_b,e),t.component(_b.name,_b))}var xb=bb;function wb(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function Sb(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?wb(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):wb(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}var Tb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="feature.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:this.cmpName,staticStyle:{display:"none !important"},attrs:{id:this.vmId}},[this._t("default",null,{id:this.id,properties:this.properties,geometry:this.geometry,point:this.point})],2)},staticRenderFns:[]},0,{name:"vl-feature",mixins:[ry,sy,uy,Ty,Xg],props:{properties:{type:Object,default:function(){return Object.create(null)}}},computed:{geometry:function(){if(this.rev&&this.resolvedDataProjection&&this.$geometry)return this.writeGeometryInDataProj(this.$geometry)},point:function(){if(this.pointViewProj&&this.resolvedDataProjection)return this.pointToDataProj(this.pointViewProj)},geometryViewProj:function(){if(this.rev&&this.resolvedDataProjection&&this.$geometry)return this.writeGeometryInViewProj(this.$geometry)},pointViewProj:function(){if(this.rev&&this.$geometry)return qs(this.$geometry)}},methods:{createOlObject:function(){var t=new Zn(this.properties);return sr(t,this.id),t.setGeometry(this.$geometry),t},getGeometryTarget:function(){return this.$feature},getServices:function(){var t=this;return Am(ry.methods.getServices.call(this),uy.methods.getServices.call(this),Ty.methods.getServices.call(this),{get feature(){return t.$feature}})},getStyleTarget:function(){return this.$feature},isAtPixel:function(t){var e=this;return $g(this),this.$map.forEachFeatureAtPixel(t,function(t){return t===e.$feature},{layerFilter:function(t){return t===e.$layer}})},mount:function(){this.$featuresContainer&&this.$featuresContainer.addFeature(this),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$featuresContainer&&this.$featuresContainer.removeFeature(this)},subscribeAll:function(){(function(){var t=this;e=this,jg(e.$feature,'component has "$feature" property');var e;var i=mm(this.$feature,"propertychange",function(e){var i,n=e.key;return{prop:n,value:(i=n,t.$feature.get(i))}}),n=mm(this.$feature,"change").pipe(Qv(function(){return Kv.create(function(e){t.$feature.getId()!==t.id&&e.next({prop:"id",value:t.$feature.getId()})})}),vg()),r=mg(i,n).pipe(fm(ir.l));this.subscribeTo(r,function(e){var i=e.prop,n=e.value;++t.rev,t.$nextTick(function(){"id"===i?t.$emit("update:".concat(i),n):i!==t.$feature.getGeometryName()&&t.$emit("update:properties",Sb(Sb({},t.properties),{},Fn({},i,n)))})})}).call(this)}},watch:{id:function(t){this.$feature&&t!==rr(this.$feature)&&or(this.$feature,t)},properties:function(t){t=Object(ir.y)(t),this.$feature&&!Object(ir.l)(t,Object(ir.y)(this.$feature.getProperties()))&&this.$feature.setProperties(t)}},created:function(){(function(){var t=this;Object.defineProperties(this,{$feature:{enumerable:!0,get:function(){return t.$olObject}},$geometry:{enumerable:!0,get:this.getGeometry},$layer:{enumerable:!0,get:function(){return t.$services&&t.$services.layer}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$featuresContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.featuresContainer}}})}).call(this)}},void 0,!1);function Eb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Eb.installed||(Eb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Tb,e),t.component(Tb.name,Tb))}var Cb=Eb,Ob={color:[String,Array]};var Mb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-fill",mixins:[fy],props:Ob,methods:{createStyle:function(){return new hl({color:this.color})},mount:function(){this.$stylesContainer&&this.$stylesContainer.setFill(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setFill(void 0)}},watch:{color:function(t){this.$style&&!Object(ir.l)(t,this.$style.getColor())&&(this.$style.setColor(t),this.scheduleRefresh())}}},void 0,void 0);function Pb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Pb.installed||(Pb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Mb,e),t.component(Mb.name,Mb))}var kb=Pb;var Ib=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geoloc.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("i",{class:t.cmpName,staticStyle:{display:"none !important"},attrs:{id:t.vmId}},[t._t("default",null,{accuracy:t.accuracy,altitude:t.altitude,altitudeAccuracy:t.altitudeAccuracy,heading:t.heading,position:t.position,speed:t.speed})],2)},staticRenderFns:[]},0,{name:"vl-geoloc",mixins:[ry,sy,Xg],props:{tracking:{type:Boolean,default:!0},trackingOptions:Object,projection:String},computed:{accuracy:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getAccuracy()},altitude:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getAltitude()},altitudeAccuracy:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getAltitudeAccuracy()},heading:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getHeading()},speed:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getSpeed()},position:function(){if(this.rev&&this.$geolocation)return this.$geolocation.getPosition()},positionViewProj:function(){if(this.position&&this.viewProjection)return this.pointToViewProj(this.position)}},methods:{createOlObject:function(){var t=new za({tracking:this.tracking,trackingOptions:this.trackingOptions,projection:this.resolvedDataProjection});return t.set("id",this.id),t},mount:function(){this.subscribeAll()},unmount:function(){zg(this),this.unsubscribeAll(),this.$geolocation.setTracking(!1)},subscribeAll:function(){(function(){var t=this;zg(this);var e=mg(ym(this.$geolocation,["accuracy","altitude","altitudeaccuracy","heading","speed"],!0,1e3/60),ym(this.$geolocation,"position",!0,1e3/60));this.subscribeTo(e,function(e){var i=e.prop,n=e.value;++t.rev,t.$nextTick(function(){t.$emit("update:".concat(i),n)})})}).call(this)}},watch:{id:function(t){this.$geolocation&&t!==this.geolocation.get("id")&&this.$geolocation.set("id",t)},tracking:function(t){(this.$geolocation||t!==this.$geolocation.getTracking())&&this.$geolocation.setTracking(t)},tracingOptions:function(t,e){!Object(ir.l)(t,e)&&this.$geolocation&&this.$geolocation.setTrackingOptions(t)},resolvedDataProjection:function(t){this.$geolocation&&this.$geolocation.setProjection(t)}},stubVNode:{empty:function(){return this.vmId}},created:function(){(function(){var t=this;Object.defineProperties(this,{$geolocation:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}}})}).call(this)}},void 0,!1);function Lb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lb.installed||(Lb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Ib,e),t.component(Ib.name,Ib))}var Ab=Lb;function Rb(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var Fb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="graticule.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:this.cmpName,staticStyle:{display:"none !important"},attrs:{id:this.vmId}},[this._t("lon"),this._v(" "),this._t("lat"),this._v(" "),this._t("stroke")],2)},staticRenderFns:[]},0,{name:"vl-graticule",mixins:[ry,sy,Xg],props:{maxLines:{type:Number,default:100},targetSize:{type:Number,default:100},showLabels:{type:Boolean,default:!1},lonLabelFormatter:Function,latLabelFormatter:Function,lonLabelPosition:{type:Number,default:0},latLabelPosition:{type:Number,default:1},intervals:{type:Array,default:function(){return[90,45,30,20,10,5,2,1,.5,.2,.1,.05,.01,.005,.002,.001]}}},computed:{meridians:function(){var t=this;return this.$graticule&&this.rev?Object(ir.u)(this.getMeridians(),function(e){return t.lineToDataProj(e.getCoordinates())}):[]},parallels:function(){var t=this;return this.$graticule&&this.rev?Object(ir.u)(this.getParallels(),function(e){return t.lineToDataProj(e.getCoordinates())}):[]}},methods:{createOlObject:function(){var t=new xl({maxLines:this.maxLines,targetSize:this.targetSize,showLabels:this.showLabels,strokeStyle:this._strokeStyle,lonLabelFormatter:this.lonLabelFormatter,latLabelFormatter:this.latLabelFormatter,lonLabelPosition:this.lonLabelPosition,latLabelPosition:this.latLabelPosition,lonLabelStyle:this._lonLabelStyle,latLabelStyle:this._latLabelStyle,intervals:this.intervals});return t.id=this.id,t},init:function(){return ry.methods.init.call(this)},deinit:function(){return ry.methods.deinit.call(this)},mount:function(){this.$map&&this.$graticule.setMap(this.$map),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$graticule.setMap(void 0)},getMeridians:function(){return Ug(this),this.$graticule.getMeridians()},getParallels:function(){return Ug(this),this.$graticule.getParallels()},setStroke:function(t){(t=t instanceof er.a?t.$style:t)!==this._strokeStyle&&(this._strokeStyle=t,this.scheduleRefresh())},setText:function(t){var e;(t=t instanceof er.a?t.$style:t)&&(e=Object(ir.f)(t[this.$options.VM_PROP]));var i=function(t){return t.componentInstance&&t.componentInstance===e};null==t&&null==this.$slots.lon||Array.isArray(this.$slots.lon)&&this.$slots.lon.some(i)?t!==this._lonLabelStyle&&(this._lonLabelStyle=t,this.scheduleRefresh()):(null==t&&null==this.$slots.lat||Array.isArray(this.$slots.lat)&&this.$slots.lat.some(i))&&t!==this._latLabelStyle&&(this._latLabelStyle=t,this.scheduleRefresh())},getServices:function(){var t=this;return Am(ry.methods.getServices.call(this),{get stylesContainer(){return t}})},refresh:function(){return this.recreate()},subscribeAll:function(){(function(){var t=this;$g(this);var e=mm(this.$map,"postcompose").pipe(Om(1e3/60));this.subscribeTo(e,function(){++t.rev})}).call(this)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Rb(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Rb(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({id:function(t){this.$graticule&&t!==this.$graticule.id&&(this.$graticule.id=t)}},Sv(["maxLines","targetSize","showLabels","lonLabelFormatter","latLabelFormatter","lonLabelPosition","latLabelPosition","intervals"],function(){return function(){this.scheduleRefresh()}})),stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},created:function(){(function(){var t=this;Object.defineProperties(this,{$graticule:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}}})}).call(this)}},void 0,!1);function Db(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Db.installed||(Db.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Fb,e),t.component(Fb.name,Fb))}var jb=Db;var Nb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="layer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-layer-group",mixins:[xy,wy],methods:{createLayer:function(){return new Bu({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,layers:this._layersCollection})},getServices:function(){return Am(xy.methods.getServices.call(this),wy.methods.getServices.call(this))}}},void 0,void 0);function $b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};$b.installed||($b.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Nb,e),t.component(Nb.name,Nb))}var Gb=$b,zb={BLUR:"blur",GRADIENT:"gradient",RADIUS:"radius"},Bb=["#00f","#0ff","#0f0","#ff0","#f00"];var Yb=function(t){function e(e){var i=e||{},n=Vt({},i);delete n.gradient,delete n.radius,delete n.blur,delete n.shadow,delete n.weight,t.call(this,n),this.gradient_=null,this.shadow_=void 0!==i.shadow?i.shadow:250,this.circleImage_=void 0,this.styleCache_=null,ue(this,Di(zb.GRADIENT),this.handleGradientChanged_,this),this.setGradient(i.gradient?i.gradient:Bb),this.setBlur(void 0!==i.blur?i.blur:15),this.setRadius(void 0!==i.radius?i.radius:8),ue(this,Di(zb.BLUR),this.handleStyleChanged_,this),ue(this,Di(zb.RADIUS),this.handleStyleChanged_,this),this.handleStyleChanged_();var r,o=i.weight?i.weight:"weight";r="string"==typeof o?function(t){return t.get(o)}:o,this.setStyle(function(t,e){var i=r(t),n=void 0!==i?Dt(i,0,1):1,o=255*n|0,s=this.styleCache_[o];return s||(s=[new Sh({image:new av({opacity:n,src:this.circleImage_})})],this.styleCache_[o]=s),s}.bind(this)),this.setRenderOrder(null),ue(this,tl.RENDER,this.handleRender_,this)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.createCircle_=function(){var t=this.getRadius(),e=this.getBlur(),i=t+e+1,n=2*i,r=Se(n,n);r.shadowOffsetX=r.shadowOffsetY=this.shadow_,r.shadowBlur=e,r.shadowColor="#000",r.beginPath();var o=i-this.shadow_;return r.arc(o,o,t,0,2*Math.PI,!0),r.fill(),r.canvas.toDataURL()},e.prototype.getBlur=function(){return this.get(zb.BLUR)},e.prototype.getGradient=function(){return this.get(zb.GRADIENT)},e.prototype.getRadius=function(){return this.get(zb.RADIUS)},e.prototype.handleGradientChanged_=function(){this.gradient_=function(t){for(var e=Se(1,256),i=e.createLinearGradient(0,0,1,256),n=1/(t.length-1),r=0,o=t.length;r<o;++r)i.addColorStop(r*n,t[r]);return e.fillStyle=i,e.fillRect(0,0,1,256),e.getImageData(0,0,1,256).data}(this.getGradient())},e.prototype.handleStyleChanged_=function(){this.circleImage_=this.createCircle_(),this.styleCache_=new Array(256),this.changed()},e.prototype.handleRender_=function(t){for(var e=t.context,i=e.canvas,n=e.getImageData(0,0,i.width,i.height),r=n.data,o=0,s=r.length;o<s;o+=4){var a=4*r[o+3];a&&(r[o]=this.gradient_[a],r[o+1]=this.gradient_[a+1],r[o+2]=this.gradient_[a+2])}e.putImageData(n,0,0)},e.prototype.setBlur=function(t){this.set(zb.BLUR,t)},e.prototype.setGradient=function(t){this.set(zb.GRADIENT,t)},e.prototype.setRadius=function(t){this.set(zb.RADIUS,t)},e}(Ch);function Vb(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var Wb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="layer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-layer-heatmap",mixins:[By],props:{gradient:{type:Array,default:function(){return["#0000ff","#00ffff","#00ff00","#ffff00","#f00"]}},radius:{type:Number,default:8},blur:{type:Number,default:15},shadow:{type:Number,default:250},weight:{type:String,default:"weight"}},methods:{createLayer:function(){return new Yb({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,renderMode:this.renderMode,gradient:this.gradient,radius:this.radius,blur:this.blur,shadow:this.shadow,weight:this.weight})}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Vb(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Vb(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({blur:function(t){this.$layer&&this.$layer.getBlur()!==t&&this.$layer.setBlur(t)},gradient:function(t){this.$layer&&!Object(ir.l)(this.$layer.getGradient(),t)&&this.$layer.setGradient(t)},radius:function(t){this.$layer&&this.$layer.getRadius()!==t&&this.$layer.setRadius(t)}},Sv(["shadow","weight"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function Hb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Hb.installed||(Hb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Wb,e),t.component(Wb.name,Wb))}var Ub=Hb;function Xb(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var qb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-icon",mixins:[py],props:{src:String,size:{type:Array,validator:Object(ir.a)(2)},img:Image,imgSize:{type:Array,validator:Object(ir.a)(2)},anchor:{type:Array,default:function(){return[.5,.5]},validator:Object(ir.a)(2)},anchorOrigin:{type:String,default:"top-left"},anchorXUnits:{type:String,default:"fraction"},anchorYUnits:{type:String,default:"fraction"},color:[Array,String],crossOrigin:String,offset:{type:Array,default:function(){return[0,0]},validator:Object(ir.a)(2)},offsetOrigin:{type:String,default:"top-left"},opacity:{type:Number,default:1},scale:{type:Number,default:1},rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0}},methods:{createStyle:function(){return jg(this.src&&!this.img||!this.src&&this.img,"vl-style-icon one of 'image' or 'src' prop must be provided."),jg(!this.img||this.img&&!Object(ir.k)(this.imgSize),"vl-style-icon 'imgSize' must be set when image is provided."),new av({anchor:this.anchor,anchorOrigin:this.anchorOrigin,anchorXUnits:this.anchorXUnits,anchorYUnits:this.anchorYUnits,color:this.color,crossOrigin:this.crossOrigin,offset:this.offset,offsetOrigin:this.offsetOrigin,opacity:this.opacity,scale:this.scale,rotateWithView:this.rotateWithView,rotation:this.rotation,size:this.size,src:this.src,img:this.img,imgSize:this.imgSize})}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Xb(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Xb(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({src:function(t){this.$style&&!Object(ir.l)(t,this.$style.getSrc())&&this.scheduleRefresh()},size:function(t){this.$style&&!Object(ir.l)(t,this.$style.getSize())&&this.scheduleRefresh()},anchor:function(t){this.$style&&!Object(ir.l)(t,this.$style.getAnchor())&&this.scheduleRefresh()},color:function(t){this.$style&&!Object(ir.l)(t,this.$style.getColor())&&this.scheduleRefresh()},opacity:function(t){this.$style&&!Object(ir.l)(t,this.$style.getOpacity())&&this.scheduleRefresh()},scale:function(t){this.$style&&!Object(ir.l)(t,this.$style.getScale())&&this.scheduleRefresh()},rotateWithView:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRotateWithView())&&this.scheduleRefresh()},rotation:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRotation())&&this.scheduleRefresh()}},Sv(["anchorOrigin","anchorXUnits","anchorYUnits","crossOrigin","offset","offsetOrigin","img","imgSize"],function(){return function(){this.scheduleRefresh()}}))},void 0,void 0);function Kb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Kb.installed||(Kb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(qb,e),t.component(qb.name,qb))}var Zb=Kb;var Jb=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="layer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-layer-image",mixins:[xy],props:{},methods:{createLayer:function(){return new W_({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,source:this._source})}}},void 0,void 0);function Qb(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Qb.installed||(Qb.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Jb,e),t.component(Jb.name,Jb))}var tx=Qb,ex={extent:{type:Array,required:!0,validator:function(t){return 4===t.length}},loadFunc:Function,size:{type:Array,validator:function(t){return 2===t.length}},url:{type:String,required:!0,validator:function(t){return!!t.length}}};var ix=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-image-static",mixins:[dy,$y],props:ex,methods:{createSource:function(){return new j_({attributions:this.attributions,crossOrigin:this.crossOrigin,imageExtent:this.extent,imageLoadFunction:this.loadFunc,logo:this.logo,projection:this.projection,imageSize:this.size,url:this.urlTmpl})}},watch:Sv($n()(ex),function(){return function(){this.scheduleRecreate()}})},void 0,void 0);function nx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};nx.installed||(nx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(ix,e),t.component(ix.name,ix))}var rx=nx;var ox=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-image-wms",mixins:[dy,$y,qy],props:{hidpi:{type:Boolean,default:!0},serverType:{type:String,validator:function(t){var e;return!t||hs()(e=P_()($_)).call(e,t)}},imageLoadFunction:Function,ratio:{type:Number,default:1.5},resolutions:Array,url:{type:String,required:!0,validator:function(t){return!!t.length}}},methods:{createOlObject:function(){return new z_({attributions:this.attributions,crossOrigin:this.crossOrigin,hidpi:this.hidpi,serverType:this.serverType,imageLoadFunction:this.imageLoadFunction,params:this.allParams,projection:this.projection,ratio:this.ratio,resolutions:this.resolutions,url:this.urlTmpl})}}},void 0,void 0);function sx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sx.installed||(sx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(ox,e),t.component(ox.name,ox))}var ax=sx;var lx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-line-string",mixins:[ly],props:{},computed:{type:Object(ir.d)(Vn.LINE_STRING)},methods:{createGeometry:function(){return new Po(this.toViewProj(this.coordinates))}}},void 0,void 0);function ux(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};ux.installed||(ux.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(lx,e),t.component(lx.name,lx))}var cx=ux;function hx(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function dx(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?hx(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):hx(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}var fx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="map.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{class:this.cmpName,attrs:{id:this.vmId,tabindex:this.tabindex}},[this._t("default")],2)},staticRenderFns:[]},0,{name:"vl-map",mixins:[ry,wy,yy,Sy,_m,Xg],props:{defaultControls:{type:[Object,Boolean,ya],default:!0},defaultInteractions:{type:[Object,Boolean,ya],default:!0},keyboardEventTarget:[String,Element,Document],loadTilesWhileAnimating:{type:Boolean,default:!1},loadTilesWhileInteracting:{type:Boolean,default:!1},moveTolerance:{type:Number,default:1},pixelRatio:{type:Number,default:function(){return window.devicePixelRatio||1}},maxTilesLoading:{type:Number,default:16},tabindex:[String,Number],dataProjection:String,wrapX:{type:Boolean,default:!0},renderer:{type:String,default:"canvas",validator:function(t){var e;return hs()(e=["canvas","webgl"]).call(e,t)}}},computed:{controlsCollectionIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"controls_collection")}},methods:{createOlObject:function(){var t;switch(this.renderer){case"webgl":t=Mp;break;case"canvas":default:t=of}var e=new t({loadTilesWhileAnimating:this.loadTilesWhileAnimating,loadTilesWhileInteracting:this.loadTilesWhileInteracting,pixelRatio:this.pixelRatio,moveTolerance:this.moveTolerance,keyboardEventTarget:this.keyboardEventTarget,maxTilesLoading:this.maxTilesLoading,controls:this._controlsCollection,interactions:this.$interactionsCollection,layers:this.$layersCollection,overlays:this.$overlaysCollection,view:this.$view});return Hp(e,this.id),Up(e,this.dataProjection),this._featuresOverlay.setMap(e),e},getCoordinateFromPixel:function(t){$g(this);var e=this.$map.getCoordinateFromPixel(t);return this.pointToDataProj(e)},getPixelFromCoordinate:function(t){return $g(this),this.$map.getPixelFromCoordinate(this.pointToViewProj(t))},focus:function(){this.$el.focus()},forEachFeatureAtPixel:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $g(this),this.$map.forEachFeatureAtPixel(t,e,i)},forEachLayerAtPixel:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return $g(this),this.$map.forEachLayerAtPixel(t,e,i)},getFeaturesAtPixel:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return $g(this),this.$map.getFeaturesAtPixel(t,e)},refresh:function(){var t=this;return this.updateSize(),this.render().then(function(){return ry.methods.refresh.call(t)})},render:function(){var t=this;return new Fm.a(function(e){$g(t),t.$map.once("postrender",function(){return e()}),t.$map.render()})},updateSize:function(){$g(this),this.$map.updateSize()},setView:function(t){(t=t instanceof er.a?t.$view:t)||(t=new Nu),t!==this._view&&(this._view=t),this.$map&&t!==this.$map.getView()&&this.$map.setView(t)},getView:function(){return this._view},mount:function(){$g(this),this.$map.setTarget(this.$el),this.$nextTick(this.updateSize.bind(this)),this.subscribeAll()},unmount:function(){$g(this),this.unsubscribeAll(),this.$map.setTarget(null)},subscribeAll:function(){(function(){var t=this;$g(this),Gg(this);var e=mg(mm(this.$map,["click","dblclick","singleclick"]),mm(this.$map,["pointerdrag","pointermove"]).pipe(fm(function(t,e){return Object(ir.l)({t:t.type,c:t.coordinate},{t:e.type,c:e.coordinate})}))).pipe(Qv(function(e){return dx(dx({},e),{},{coordinate:t.pointToDataProj(e.coordinate)})})),i=mm(this.$map,["movestart","moveend","postrender","rendercomplete","precompose","postcompose","rendercomplete"]),n=mg(e,i);this.subscribeTo(n,function(e){t.$emit(e.type,e)})}).call(this)},getServices:function(){var t=this;return Am(ry.methods.getServices.call(this),wy.methods.getServices.call(this),yy.methods.getServices.call(this),Sy.methods.getServices.call(this),_m.methods.getServices.call(this),{get map(){return t.$map},get view(){return t.$view},get viewContainer(){return t}})}},watch:dx(dx({},Sv(["keyboardEventTarget","loadTilesWhileAnimating","loadTilesWhileInteracting","moveTolerance","pixelRatio","renderer","maxTilesLoading"],function(){return function(){this.scheduleRecreate()}})),{},{id:function(t){this.$map&&t!==function(t){if(t instanceof er.a)return t.id;if(t instanceof Yu)return t.get("id");throw new Error("Illegal map argument")}(this.$map)&&Hp(this.$map,t)},defaultControls:{deep:!0,handler:function(t){var e,i,n=this;Iv()(e=this._controlsCollection.getArray()).call(e).forEach(function(t){t.get("vl_default")&&n._controlsCollection.remove(t)}),!1!==t&&(t="object"===Object(In.a)(t)?t:void 0,this._controlsCollection.extend(ea()(i=rc(t).getArray()).call(i,function(t){return t.set("vl_default",!0),t})))}},defaultInteractions:{deep:!0,handler:function(t){var e,i,n,r=this;Iv()(e=this._interactionsCollection.getArray()).call(e).forEach(function(t){t.get("vl_default")&&r._interactionsCollection.remove(t)}),!1!==t&&(t="object"===Object(In.a)(t)?t:void 0,this._interactionsCollection.extend(ea()(i=ed(t).getArray()).call(i,function(t){return t.set("vl_default",!0),t})),console.log(Iv()(n=this._interactionsCollection.getArray()).call(n)))}},wrapX:function(t){null!=this._featuresOverlay&&this._featuresOverlay.setSource(new Fh({features:this.$featuresCollection,wrapX:t}))},dataProjection:function(t){this.$map&&(Up(this.$map,t),this.scheduleRefresh())}}),created:function(){this._view=new Nu({center:[0,0],zoom:0}),this._controlsCollection=this.instanceFactoryCall(this.controlsCollectionIdent,function(){return new ya}),this.defaultControls instanceof ya?this._controlsCollection=this.defaultControls:!1!==this.defaultControls&&(this._controlsCollection=rc(Object(ir.q)(this.defaultControls)?this.defaultControls:void 0)),this._controlsCollection.forEach(function(t){t.set("vl_default",!0)}),this.defaultInteractions instanceof ya?this._interactionsCollection=this.defaultInteractions:!1!==this.defaultInteractions&&(this._interactionsCollection=ed(Object(ir.q)(this.defaultInteractions)?this.defaultInteractions:void 0)),this._interactionsCollection.forEach(function(t){(t=Bp(t)).set("vl_default",!0)}),this._featuresOverlay=new Ch({source:new Fh({features:this.$featuresCollection,wrapX:this.wrapX})}),function(){var t=this;Object.defineProperties(this,{$map:{enumerable:!0,get:function(){return t.$olObject}},$view:{enumerable:!0,get:this.getView}})}.call(this)}},void 0,!1);function px(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function vx(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?px(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):px(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}var gx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="view.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:this.cmpName,staticStyle:{display:"none !important"},attrs:{id:this.vmId}},[this._t("default",null,{center:this.currentCenter,zoom:this.currentZoom,resolution:this.currentResolution,rotation:this.currentRotation})],2)},staticRenderFns:[]},0,{name:"vl-view",mixins:[ry,Xg],props:{center:{type:Array,default:function(){return[0,0]},validator:Object(ir.a)(2)},constrainRotation:{type:[Boolean,Number],default:!0},enableRotation:{type:Boolean,default:!0},extent:{type:Array,validator:Object(ir.a)(4)},maxResolution:Number,minResolution:Number,maxZoom:{type:Number,default:Bn},minZoom:{type:Number,default:0},projection:{type:String,default:zn},resolution:Number,resolutions:Array,rotation:{type:Number,default:0},zoom:{type:Number,default:0},zoomFactor:{type:Number,default:2}},computed:{currentZoom:function(){return this.rev&&this.$view?this.$view.getZoom():this.zoom},currentRotation:function(){return this.rev&&this.$view?this.$view.getRotation():this.rotation},currentResolution:function(){return this.rev&&this.$view?this.$view.getResolution():this.resolution},currentCenter:function(){if(this.rev&&this.$view)return this.pointToDataProj(this.$view.getCenter())},currentCenterViewProj:function(){if(this.rev&&this.$view)return this.$view.getCenter()},resolvedDataProjection:function(){return Object(ir.c)(this.$viewContainer&&this.$viewContainer.resolvedDataProjection,this.$options.dataProjection,this.viewProjection)}},methods:{animate:function(){for(var t=this,e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];Gg(this);var r=ir.w;return Object(ir.n)(i[i.length-1])&&(r=i[i.length-1],i=Iv()(i).call(i,0,i.length-1)),i.forEach(function(e){Array.isArray(e.center)&&(e.center=t.pointToViewProj(e.center))}),new Fm.a(function(e){var n,o;return(n=t.$view).animate.apply(n,ev()(o=dm(i)).call(o,[function(t){r(t),e(t)}]))})},createOlObject:function(){var t=new Nu({center:this.pointToViewProj(this.center),constrainRotation:this.constrainRotation,enableRotation:this.enableRotation,extent:this.extent?this.extentToViewProj(this.extent):void 0,maxResolution:this.maxResolution,minResolution:this.minResolution,maxZoom:this.maxZoom,minZoom:this.minZoom,projection:this.projection,resolution:this.resolution,resolutions:this.resolutions,rotation:this.rotation,zoom:this.zoom,zoomFactor:this.zoomFactor});return t.set("id",this.id),t},fit:function(t){var e=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Gg(this),Object(ir.q)(t)?t=this.readGeometryInDataProj(t):t instanceof er.a&&(t=t.$geometry);var n=i.callback||ir.w;return new Fm.a(function(r){e.$view.fit(t,vx(vx({},i),{},{callback:function(t){n(t),r(t)}}))})},mount:function(){this.$viewContainer&&this.$viewContainer.setView(this),this.subscribeAll()},unmount:function(){this.unsubscribeAll(),this.$viewContainer&&this.$viewContainer.setView(void 0)},subscribeAll:function(){(function(){var t=this;Gg(this);var e=1e3/60,i=ym(this.$view,"resolution",!0,e),n=i.pipe(Qv(function(){return{prop:"zoom",value:t.$view.getZoom()}}),(o="value",fm(function(t,e){return s?s(t[o],e[o]):t[o]===e[o]}))),r=mg(ym(this.$view,"center",!0,e,function(){return t.pointToDataProj(t.$view.getCenter())}),ym(this.$view,"rotation",!0,e),i,n);var o,s;this.subscribeTo(r,function(e){var i=e.prop,n=e.value;++t.rev,t.$nextTick(function(){t.$emit("update:".concat(i),n)})})}).call(this)}},watch:vx({id:function(t){this.$view&&t!==this.$view.get("id")&&this.$view.set("id",t)},center:function(t){this.$view&&!this.$view.getAnimating()&&(t=this.pointToViewProj(t),Object(ir.l)(t,this.currentCenterViewProj)||this.$view.setCenter(t))},resolution:function(t){this.$view&&!this.$view.getAnimating()&&t!==this.currentResolution&&this.$view.setResolution(t)},zoom:function(t){this.$view&&!this.$view.getAnimating()&&t!==this.currentZoom&&this.$view.setZoom(t)},rotation:function(t){this.$view&&!this.$view.getAnimating()&&t!==this.currentRotation&&this.$view.setRotation(t)},minZoom:function(t){this.$view&&t!==this.$view.getMinZoom()&&this.$view.setMinZoom(t)},maxZoom:function(t){this.$view&&t!==this.$view.getMaxZoom()&&this.$view.setMaxZoom(t)}},Sv(["resolvedDataProjection","constrainRotation","enableRotation","extent","maxResolution","minResolution","projection","resolutions","zoomFactor"],function(){return function(){this.scheduleRecreate()}})),stubVNode:{empty:function(){return this.vmId}},created:function(){(function(){var t=this;Object.defineProperties(this,{$view:{enumerable:!0,get:function(){return t.$olObject}},$viewContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.viewContainer}}})}).call(this)}},void 0,!1);function mx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};mx.installed||(mx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(fx,e),nv()(gx,e),t.component(fx.name,fx),t.component(gx.name,gx))}var yx=mx,_x='&copy; <a href="https://www.mapbox.com/" target="_blank">MapBox</a>, '+(new Date).getFullYear();var bx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-mapbox",mixins:[Zy],props:{accessToken:{type:String,required:!0},attributions:{type:[String,Array],default:_x},mapId:{type:String,required:!0},projection:{type:String,default:zn},tileFormat:{type:String,default:"png"},url:{type:String,default:"https://{a-c}.tiles.mapbox.com/v4/{mapId}/{z}/{x}/{y}{tileNameSuffix}.{tileFormat}?access_token={accessToken}",required:!1}},computed:{tileNameSuffix:function(){return(t=function(t){return(t=Object(ir.c)(t,1))>1?2:1}(t=this.tilePixelRatio))>1?["@",t,"x"].join(""):"";var t},urlTokens:function(){return["mapId","accessToken","tileNameSuffix","tileFormat"]}}},void 0,void 0);function xx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xx.installed||(xx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(bx,e),t.component(bx.name,bx))}var wx=xx;function Sx(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var Tx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="interaction.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-interaction-modify",mixins:[vy,Ty],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{source:{type:String,required:!0},condition:{type:Function,default:Cc},deleteCondition:{type:Function,default:pc},insertVertexCondition:{type:Function,default:mc},pixelTolerance:{type:Number,default:10},wrapX:{type:Boolean,default:!1}},methods:{createInteraction:function(){var t=this;return Sm(Em.a.mark(function e(){var i,n;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getInstance(t.source);case 2:return jg(!!(i=e.sent),'Source "'.concat(t.source,'" not found in identity map.')),i instanceof Fh?(n=i.getFeaturesCollection())&&(Ng(n,ya,'Source "'.concat(t.source,"\" doesn't provide features collection.")),i=null):(Object(ir.n)(i.getFeaturesCollection)?n=i.getFeaturesCollection():Object(ir.n)(i.getFeatures)&&(n=i.getFeatures()),Ng(n,ya,'Source "'.concat(t.source,"\" doesn't provide features collection.")),i=null),e.abrupt("return",new Xh({source:i,features:n,deleteCondition:t.deleteCondition,insertVertexCondition:t.insertVertexCondition,pixelTolerance:t.pixelTolerance,style:t.createStyleFunc(),wrapX:t.wrapX}));case 6:case"end":return e.stop()}},e)}))()},getDefaultStyles:function(){var t=Object(ir.v)(vv(),function(t){return ea()(t).call(t,mv)});return function(e){if(e.getGeometry())return t[e.getGeometry().getType()]}},getServices:function(){return Am(vy.methods.getServices.call(this),Ty.methods.getServices.call(this))},getStyleTarget:function(){return this.$interaction},mount:function(){vy.methods.mount.call(this)},unmount:function(){vy.methods.unmount.call(this)},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRecreate())},subscribeAll:function(){vy.methods.subscribeAll.call(this),function(){var t=this;Wg(this);var e=mm(this.$interaction,["modifystart","modifyend"]);this.subscribeTo(e,function(e){++t.rev,t.$nextTick(function(){t.$emit(e.type,e)})})}.call(this)}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Sx(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Sx(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({},Sv(["source","condition","deleteCondition","insertVertexCondition","pixelTolerance","wrapX"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function Ex(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ex.installed||(Ex.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Tx,e),t.component(Tx.name,Tx))}var Cx=Ex;var Ox=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-multi-line-string",mixins:[ly],props:{},computed:{type:Object(ir.d)(Vn.MULTI_LINE_STRING)},methods:{createGeometry:function(){return new ko(this.toViewProj(this.coordinates))}}},void 0,void 0);function Mx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mx.installed||(Mx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Ox,e),t.component(Ox.name,Ox))}var Px=Mx;var kx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-multi-point",mixins:[ly],props:{},computed:{type:Object(ir.d)(Vn.MULTI_POINT)},methods:{createGeometry:function(){return new Lo(this.toViewProj(this.coordinates))}}},void 0,void 0);function Ix(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ix.installed||(Ix.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(kx,e),t.component(kx.name,kx))}var Lx=Ix;var Ax=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-multi-polygon",mixins:[ly],props:{},computed:{type:Object(ir.d)(Vn.MULTI_POLYGON)},methods:{createGeometry:function(){return new Ko(this.toViewProj(this.coordinates))}}},void 0,void 0);function Rx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Rx.installed||(Rx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Ax,e),t.component(Ax.name,Ax))}var Fx=Rx;var Dx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-osm",mixins:[Zy],props:{attributions:{type:[String,Array],default:'&copy; <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.'},maxZoom:{type:Number,default:19},url:{type:String,default:"https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png",required:!1}},methods:{createSource:function(){return new Y_({url:this.urlTmpl,attributions:this.attributions,crossOrigin:this.crossOrigin,maxZoom:this.maxZoom,cacheSize:this.cacheSize,opaque:this.opaque,reprojectionErrorThreshold:this.reprojectionErrorThreshold,wrapX:this.wrapX,transition:this.transition})}}},void 0,void 0);function jx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};jx.installed||(jx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Dx,e),t.component(Dx.name,Dx))}var Nx=jx,$x={offset:{type:Array,default:function(){return[0,0]},validator:function(t){return 2===t.length}},position:{type:Array,validator:function(t){return 2===t.length},required:!0},positioning:{type:String,default:Un.TOP_LEFT,validator:function(t){var e;return hs()(e=P_()(Un)).call(e,t)}},stopEvent:{type:Boolean,default:!0},insertFirst:{type:Boolean,default:!0},autoPan:{type:Boolean,default:!1},autoPanMargin:{type:Number,default:20},autoPanAnimation:Object,className:String};var Gx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="overlay.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("div",{class:this.classes,attrs:{id:this.vmId}},[this._t("default",null,{id:this.id,position:this.position,offset:this.offset,positioning:this.positioning})],2)},staticRenderFns:[]},0,{name:"vl-overlay",mixins:[ry,sy,Xg],props:$x,computed:{positionViewProj:function(){if(this.rev&&this.$overlay)return this.$overlay.getPosition()},positionDataProj:function(){if(this.rev&&this.$overlay)return this.pointToDataProj(this.$overlay.getPosition())},classes:function(){var t;return Tn()(t=[this.cmpName,this.visible?"visible":void 0]).call(t,ir.i)}},methods:{createOlObject:function(){var t=new lf({id:this.id,offset:this.offset,position:this.pointToViewProj(this.position),positioning:this.positioning,stopEvent:this.stopEvent,insertFirst:this.insertFirst,autoPan:this.autoPan,autoPanMargin:this.autoPanMargin,autoPanAnimation:this.autoPanAnimation,className:this.className});return Kp(t,this.id),t},mount:function(){var t=this;Hg(this),this.$overlay.setElement(this.$el),this.$overlaysContainer&&this.$overlaysContainer.addOverlay(this.$overlay),this.$nextTick(function(){var e;t.$overlay.setPosition(Iv()(e=t.positionViewProj).call(e)),t.visible=!0}),this.subscribeAll()},unmount:function(){Hg(this),this.unsubscribeAll(),this.$overlay.setElement(void 0),this.$overlaysContainer&&this.$overlaysContainer.removeOverlay(this.$overlay),this.visible=!1},subscribeAll:function(){(function(){var t=this;Hg(this);var e=mg(ym(this.$overlay,"position",!0,void 0,function(){return t.pointToDataProj(t.$overlay.getPosition())}),ym(this.$overlay,["offset","positioning"],!0));this.subscribeTo(e,function(e){var i=e.prop,n=e.value;++t.rev,t.$nextTick(function(){t.$emit("update:".concat(i),n)})})}).call(this)}},watch:{id:function(t){this.$overlay&&t!==Xp(this.$overlay)&&qp(this.$overlay,t)},offset:function(t){this.$overlay&&!Object(ir.l)(t,this.$overlay.getOffset())&&this.$overlay.setOffset(t)},position:function(t){t=this.pointToViewProj(t),this.$overlay&&!Object(ir.l)(t,this.$overlay.getPosition())&&this.$overlay.setPosition(t)},positioning:function(t){this.$overlay&&t!==this.$overlay.getPositioning()&&this.$overlay.setPositioning(t)},resolvedDataProjection:function(){this.$overlay&&this.$overlay.setPosition(this.pointToViewProj(this.position))}},created:function(){var t=this;Object.defineProperties(this,{$overlay:{enumerable:!0,get:function(){return t.$olObject}},$map:{enumerable:!0,get:function(){return t.$services&&ea()(t.$services)}},$view:{enumerable:!0,get:function(){return t.$services&&t.$services.view}},$overlaysContainer:{enumerable:!0,get:function(){return t.$services&&t.$services.overlaysContainer}}})},data:function(){return{visible:!1}}},void 0,!1);function zx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};zx.installed||(zx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Gx,e),t.component(Gx.name,Gx))}var Bx=zx;var Yx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-point",mixins:[ly],props:{coordinates:{type:Array,required:!0,validator:function(t){return t.length>=2}}},computed:{type:Object(ir.d)(Vn.POINT)},methods:{createGeometry:function(){return new Io(this.toViewProj(this.coordinates))}}},void 0,void 0);function Vx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Vx.installed||(Vx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Yx,e),t.component(Yx.name,Yx))}var Wx=Vx;var Hx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="geom.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-geom-polygon",mixins:[ly],props:{},computed:{type:Object(ir.d)(Vn.POLYGON)},methods:{createGeometry:function(){return new Vo(this.toViewProj(this.coordinates))}}},void 0,void 0);function Ux(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Ux.installed||(Ux.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Hx,e),t.component(Hx.name,Hx))}var Xx=Ux,qx={points:{type:Number,required:!0},radius:Number,radius1:Number,radius2:Number,angle:{type:Number,default:0},rotation:{type:Number,default:0},rotateWithView:{type:Boolean,default:!1}};var Kx=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-reg-shape",mixins:[py,Wy],props:qx,methods:{createStyle:function(){return new gh({points:this.points,radius:this.radius,radius1:this.radius1,radius2:this.radius2,angle:this.angle,rotation:this.rotation,rotateWithView:this.rotateWithView,fill:this._fill,stroke:this._stroke})},getServices:function(){var t=this;return Am(py.methods.getServices.call(this),{get stylesContainer(){return t}})},setFill:function(t){(t=t instanceof er.a?t.$style:t)!==this._fill&&(this._fill=t,this.scheduleRefresh())},setStroke:function(t){(t=t instanceof er.a?t.$style:t)!==this._stroke&&(this._stroke=t,this.scheduleRefresh())}},watch:{points:function(t){this.$style&&!Object(ir.l)(t,this.$style.getPoints())&&this.scheduleRefresh()},radius:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRadius())&&this.scheduleRefresh()},radius1:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRadius())&&this.scheduleRefresh()},radius2:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRadius2())&&this.scheduleRefresh()},angle:function(t){this.$style&&!Object(ir.l)(t,this.$style.getAngle())&&this.scheduleRefresh()},rotation:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRotation())&&this.scheduleRefresh()},rotateWithView:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRotateWithView())&&this.scheduleRefresh()}}},void 0,void 0);function Zx(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Zx.installed||(Zx.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Kx,e),t.component(Kx.name,Kx))}var Jx=Zx;function Qx(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function tw(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Qx(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):Qx(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}var ew=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="interaction.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:this.cmpName,staticStyle:{display:"none !important"},attrs:{id:this.vmId}},[this._t("default",null,{features:this.featuresDataProj})],2)},staticRenderFns:[]},0,{name:"vl-interaction-select",mixins:[vy,_m,Ty,Xg],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{filter:{type:Function,default:Object(ir.d)(!0)},layers:{type:[Array,Function],default:void 0},hitTolerance:{type:Number,default:0},multi:{type:Boolean,default:!1},features:{type:Array,default:ir.C},wrapX:{type:Boolean,default:!0},addCondition:{type:Function,default:_c},condition:{type:Function,default:xc},removeCondition:{type:Function,default:_c},toggleCondition:{type:Function,default:Sc}},computed:{initializedFeature:function(){var t;return ea()(t=this.features).call(t,function(t){return sr(tw({},t))})},layerFilter:function(){var t=this;return Array.isArray(this.layers)?function(e){var i;return hs()(i=t.layers).call(i,Yp(e))}:this.layers}},methods:{createInteraction:function(){return new Jh({features:this.$featuresCollection,multi:this.multi,wrapX:this.wrapX,filter:Tn()(this),layers:this.layerFilter,hitTolerance:this.hitTolerance,style:this.createStyleFunc(),addCondition:this.addCondition,condition:this.condition,removeCondition:this.removeCondition,toggleCondition:this.toggleCondition})},getDefaultStyles:function(){var t=Object(ir.v)(vv(),function(t){return ea()(t).call(t,mv)});return function(e){if(e.getGeometry())return t[e.getGeometry().getType()]}},getServices:function(){return Am(vy.methods.getServices.call(this),Ty.methods.getServices.call(this))},getStyleTarget:function(){return this.$interaction},mount:function(){vy.methods.mount.call(this),this.features.forEach(this.select)},unmount:function(){this.unselectAll(),vy.methods.unmount.call(this)},select:function(t){(t=this.resolveFeature(t))&&this.addFeature(t)},unselect:function(t){(t=this.resolveFeature(t))&&this.removeFeature(t)},unselectAll:function(){this.clearFeatures()},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRecreate())},subscribeAll:function(){vy.methods.subscribeAll.call(this),function(){var t=this;Wg(this);var e=mm(this.$featuresCollection,"add").pipe(Qv(function(t){var e=t.element;return{type:"select",feature:e}})),i=mm(this.$featuresCollection,"remove").pipe(Qv(function(t){var e=t.element;return{type:"unselect",feature:e}})),n=mg(e,i);this.subscribeTo(n,function(e){++t.rev,t.$nextTick(function(){t.$emit(e.type,e.feature)})})}.call(this)},resolveFeature:function(t){var e=this;if($g(this),t instanceof er.a&&(t=t.$feature),t instanceof Zn)return t;var i=rr(t);if(!i)throw new Error("Undefined feature id");return t=void 0,Object(ir.g)(this.$map.getLayers().getArray(),function(n){if(!e.layerFilter||e.layerFilter(n)){var r=n.getSource();return r&&Object(ir.n)(r.getFeatureById)&&(t=r.getFeatureById(i)),!t}}),t}},watch:tw({initializedFeature:{deep:!0,handler:function(t){this.$interaction&&!Object(ir.l)(t,this.featuresDataProj)&&(t.forEach(this.select.bind(this)),Object(ir.e)(this.getFeatures(),t,function(t,e){return rr(t)===rr(e)}).forEach(this.unselect.bind(this)))}},featuresDataProj:{deep:!0,handler:jm()(function(t){this.$emit("update:features",Iv()(t).call(t))},1e3/60)}},Sv(["filter","hitTolerance","multi","wrapX","addCondition","condition","removeCondition","toggleCondition"],function(){return function(){this.scheduleRecreate()}}))},void 0,!1);function iw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};iw.installed||(iw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(ew,e),t.component(ew.name,ew))}var nw=iw;function rw(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var ow=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="interaction.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-interaction-snap",mixins:[vy],props:{source:{type:String,required:!0},edge:{type:Boolean,default:!0},vertex:{type:Boolean,default:!0},pixelTolerance:{type:Number,default:10}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?rw(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):rw(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({},Sv(["source"],function(){return function(){this.scheduleRecreate()}})),methods:{createInteraction:function(){var t=this;return Sm(Em.a.mark(function e(){var i;return Em.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t.getInstance(t.source);case 2:return Ng(i=e.sent,Gi,'Source "'.concat(t.source,"\" doesn't exists in the identity map.")),e.abrupt("return",new td({source:i}));case 5:case"end":return e.stop()}},e)}))()},mount:function(){vy.methods.mount.call(this)},unmount:function(){vy.methods.unmount.call(this)},subscribeAll:function(){}}},void 0,void 0);function sw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};sw.installed||(sw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(ow,e),t.component(ow.name,ow))}var aw=sw,lw='<a href="http://maps.sputnik.ru/" target="_blank">Спутник</a> &copy; <a href="http://rt.ru/" target="_blank">Ростелеком</a>, '+(new Date).getFullYear();var uw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-sputnik",mixins:[Zy],props:{url:{type:String,default:"http://tiles.maps.sputnik.ru/{z}/{x}/{y}.png?apikey={apikey}"},apiKey:{type:String},attributions:{type:String,default:lw}},computed:{urlTokens:function(){return["apiKey"]}}},void 0,void 0);function cw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};cw.installed||(cw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(uw,e),t.component(uw.name,uw))}var hw=cw;var dw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-stamen",mixins:[Zy],props:{layer:{type:String,required:!0},url:String},methods:{createSource:function(){return new Q_({cacheSize:this.cacheSize,layer:this.layer,minZoom:this.minZoom,maxZoom:this.maxZoom,opaque:this.opaque,reprojectionErrorThreshold:this.reprojectionErrorThreshold,tileLoadFunction:this.tileLoadFunction,url:this.urlTmpl||void 0,wrapX:this.wrapX})},onUrlFuncChange:function(){}},watch:{urlTmpl:function(t){this.$source&&this.$source.setUrl(t)}}},void 0,void 0);function fw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};fw.installed||(fw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(dw,e),t.component(dw.name,dw))}var pw=fw,vw={color:[Array,String],lineCap:{type:String,default:"round"},lineJoin:{type:String,default:"round"},lineDash:Array,lineDashOffset:{type:Number,default:0},miterLimit:{type:Number,default:10},width:{type:Number,default:1.25}};var gw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-stroke",mixins:[fy],props:vw,watch:{color:function(t){this.$style&&!Object(ir.l)(t,this.$style.getColor())&&(this.$style.setColor(t),this.scheduleRefresh())},lineCap:function(t){this.$style&&!Object(ir.l)(t,this.$style.getLineCap())&&(this.$style.setLineCap(t),this.scheduleRefresh())},lineDash:function(t){this.$style&&!Object(ir.l)(t,this.$style.getLineDash())&&(this.$style.setLineDash(t),this.scheduleRefresh())},lineJoin:function(t){this.$style&&!Object(ir.l)(t,this.$style.getLineJoin())&&(this.$style.setLineJoin(t),this.scheduleRefresh())},width:function(t){this.$style&&!Object(ir.l)(t,this.$style.getWidth())&&(this.$style.setWidth(t),this.scheduleRefresh())}},methods:{createStyle:function(){return new fl({color:this.color,lineCap:this.lineCap,lineJoin:this.lineJoin,lineDash:this.lineDash,lineDashOffset:this.lineDashOffset,miterLimit:this.miterLimit,width:this.width})},mount:function(){this.$stylesContainer&&this.$stylesContainer.setStroke(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setStroke(void 0)}}},void 0,void 0);function mw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};mw.installed||(mw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(gw,e),t.component(gw.name,gw))}var yw=mw,_w={zIndex:{type:Number,default:0},condition:{type:[Function,Boolean],default:!0}};var bw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-box",mixins:[fy,Wy],props:_w,methods:{createStyle:function(){return new Sh({zIndex:this.zIndex,image:this._image,stroke:this._stroke,fill:this._fill,text:this._text,geometry:this._geometry})},getServices:function(){var t=this;return Am(fy.methods.getServices.call(this),{get stylesContainer(){return t}})},mount:function(){this.$stylesContainer&&this.$stylesContainer.addStyle(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.removeStyle(this)},setImage:function(t){(t=t instanceof er.a?t.$style:t)!==this._image&&(this._image=t),this.$style&&t!==this.$style.getImage()&&(this.$style.setImage(t),this.scheduleRefresh())},setGeometry:function(t){(t=t instanceof er.a?t.$geometry:t)!==this._geometry&&(this._geometry=t),this.$style&&t!==this.$style.getGeometry()&&(this.$style.setGeometry(t),this.scheduleRefresh())},setText:function(t){(t=t instanceof er.a?t.$style:t)!==this._text&&(this._text=t),this.$style&&t!==this.$style.getText()&&(this.$style.setText(t),this.scheduleRefresh())}},watch:{zIndex:function(t){this.$style&&!Object(ir.l)(t,this.$style.getZIndex())&&(this.$style.setZIndex(t),this.scheduleRefresh())}}},void 0,void 0);function xw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};xw.installed||(xw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(bw,e),t.component(bw.name,bw))}var ww=xw;var Sw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-style-func",mixins:[fy,Ty],stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}},props:{factory:{type:Function,required:!0}},computed:{styleFunc:function(){var t=this.factory();return Object(ir.n)(t)||(t=ir.w),t}},methods:{createStyle:function(){$g(this);var t=this.styleFunc,e=this.createStyleFunc();return function(i,n){var r=t(i,n);return null===r||Array.isArray(r)&&r.length||r instanceof Sh?r:e(i,n)}},mount:function(){this.$stylesContainer&&this.$stylesContainer.addStyle(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.removeStyle(this)},getServices:function(){var t=this;return Am(fy.methods.getServices.call(this),{get stylesContainer(){return t}})},setStyle:function(t){t!==this._styles&&(this._styles=t,this.scheduleRefresh())},refresh:function(){return this.recreate()}},watch:{factory:function(){this.scheduleRefresh()}}},void 0,void 0);function Tw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Tw.installed||(Tw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Sw,e),t.component(Sw.name,Sw))}var Ew=Tw,Cw={font:{type:String,default:"10px sans-serif"},maxAngle:Number,placement:String,offsetX:{type:Number,default:0},offsetY:{type:Number,default:0},overflow:Boolean,rotateWithView:{type:Boolean,default:!1},rotation:{type:Number,default:0},scale:{type:Number,default:1},text:String,textAlign:String,textBaseline:String,padding:{type:Array,default:function(){return[0,0,0,0]},validate:function(t){return t.length&&4===t.length}}};var Ow=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="style.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({render:function(){var t=this.$createElement;return(this._self._c||t)("i",{class:this.cmpName,staticStyle:{display:"none !important"},attrs:{id:this.vmId}},[this._t("default"),this._v(" "),this._t("background")],2)},staticRenderFns:[]},0,{name:"vl-style-text",mixins:[fy,Wy],props:Cw,methods:{createStyle:function(){return new ml({font:this.font,maxAngle:this.maxAngle,placement:this.placement,offsetX:this.offsetX,offsetY:this.offsetY,overflow:this.overflow,rotateWithView:this.rotateWithView,rotation:this.rotation,scale:this.scale,text:this.text,textAlign:this.textAlign,textBaseline:this.textBaseline,fill:this._fill,stroke:this._stroke,padding:this.padding})},mount:function(){this.$stylesContainer&&this.$stylesContainer.setText(this)},unmount:function(){this.$stylesContainer&&this.$stylesContainer.setText(void 0)},getServices:function(){var t=this;return Am(fy.methods.getServices.call(this),{get stylesContainer(){return t}})},setFill:function(t){var e;t instanceof er.a||Wy.methods.setFill.call(this,t),Pv()(e=this.$slots.background||[]).call(e,function(e){return e.componentInstance&&e.componentInstance===t})?(t=t.$style,this.$style&&t!==this.$style.getBackgroundFill()&&(this.$style.setBackgroundFill(t),this.scheduleRefresh())):Wy.methods.setFill.call(this,t)},setStroke:function(t){var e;t instanceof er.a||Wy.methods.setStroke.call(this,t),Pv()(e=this.$slots.background||[]).call(e,function(e){return e.componentInstance&&e.componentInstance===t})?(t=t.$style,this.$style&&t!==this.$style.getBackgroundStroke()&&(this.$style.setBackgroundStroke(t),this.scheduleRefresh())):Wy.methods.setStroke.call(this,t)}},watch:{font:function(t){this.$style&&!Object(ir.l)(t,this.$style.getFont())&&(this.$style.setFont(t),this.scheduleRefresh())},maxAngle:function(t){this.$style&&!Object(ir.l)(t,this.$style.getMaxAngle())&&(this.$style.setMaxAngle(t),this.scheduleRefresh())},placement:function(t){this.$style&&!Object(ir.l)(t,this.$style.getPlacement())&&(this.$style.setFont(t),this.scheduleRefresh())},offsetX:function(t){this.$style&&!Object(ir.l)(t,this.$style.getOffsetX())&&(this.$style.setOffsetX(t),this.scheduleRefresh())},offsetY:function(t){this.$style&&!Object(ir.l)(t,this.$style.getOffsetY())&&(this.$style.setOffsetY(t),this.scheduleRefresh())},overflow:function(t){this.$style&&!Object(ir.l)(t,this.$style.getOverflow())&&(this.$style.setOverflow(t),this.scheduleRefresh())},rotation:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRotation())&&(this.$style.setRotation(t),this.scheduleRefresh())},rotateWithView:function(t){this.$style&&!Object(ir.l)(t,this.$style.getRotateWithView())&&(this.$style.setRotation(t),this.scheduleRefresh())},scale:function(t){this.$style&&!Object(ir.l)(t,this.$style.getScale())&&(this.$style.setScale(t),this.scheduleRefresh())},text:function(t){this.$style&&!Object(ir.l)(t,this.$style.getText())&&(this.$style.setText(t),this.scheduleRefresh())},textAlign:function(t){this.$style&&!Object(ir.l)(t,this.$style.getTextAlign())&&(this.$style.setTextAlign(t),this.scheduleRefresh())},textBaseline:function(t){this.$style&&!Object(ir.l)(t,this.$style.getTextBaseline())&&(this.$style.setTextBaseline(t),this.scheduleRefresh())},padding:function(t){this.$style&&!Object(ir.l)(t,this.$style.getPadding())&&(this.$style.setPadding(t),this.scheduleRefresh())}},stubVNode:{empty:!1,attrs:function(){return{id:this.vmId,class:this.cmpName}}}},void 0,!1);function Mw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Mw.installed||(Mw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Ow,e),t.component(Ow.name,Ow))}var Pw=Mw,kw={preload:{type:Number,default:0}};var Iw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="layer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-layer-tile",mixins:[xy],props:kw,methods:{createLayer:function(){return new q_({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,preload:this.preload,extent:this.extent,zIndex:this.zIndex,source:this._source})}}},void 0,void 0);function Lw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Lw.installed||(Lw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Iw,e),t.component(Iw.name,Iw))}var Aw=Lw,Rw=["vector","image"];var Fw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="layer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-layer-vector",mixins:[By],props:{renderMode:{type:String,default:"vector",validator:function(t){return hs()(Rw).call(Rw,t)}}},methods:{createLayer:function(){return new Ch({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,extent:this.extent,zIndex:this.zIndex,updateWhileAnimating:this.updateWhileAnimating,updateWhileInteracting:this.updateWhileInteracting,source:this._source,renderMode:this.renderMode,renderBuffer:this.renderBuffer,renderOrder:this.renderOrder,declutter:this.declutter})}}},void 0,void 0);function Dw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Dw.installed||(Dw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Fw,e),t.component(Fw.name,Fw))}var jw=Dw;function Nw(t,e){return function(t){if(em()(t))return t}(t)||function(t,e){var i=null==t?null:void 0!==rm.a&&sm()(t)||t["@@iterator"];if(null!=i){var n,r,o,s,a=[],l=!0,u=!1;try{if(o=(i=i.call(t)).next,0===e){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=o.call(i)).done)&&(Lg()(a).call(a,n.value),a.length!==e);l=!0);}catch(t){u=!0,r=t}finally{try{if(!l&&null!=i.return&&(s=i.return(),Object(s)!==s))return}finally{if(u)throw r}}return a}}(t,e)||hm(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function $w(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}function Gw(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?$w(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):$w(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}function zw(t,e,i){if(t=Iv()(t).call(t),Object(ir.m)(t[0])&&Object(ir.m)(t[1])){var n=Nw(_i([t[0],t[1]],e,i),2);t[0]=n[0],t[1]=n[1]}if(Object(ir.m)(t[2])&&Object(ir.m)(t[3])){var r=Nw(_i([t[2],t[3]],e,i),2);t[2]=r[0],t[3]=r[1]}return t}var Bw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-vector",mixins:[Vy],props:{features:{type:Array,default:ir.C},loaderFactory:{type:Function},formatFactory:{type:Function,default:function(){return Lp()}},url:[String,Function],strategyFactory:{type:Function,default:function(){return Mh}},overlaps:{type:Boolean,default:!0}},computed:{initializedFeatures:function(){var t;return ea()(t=this.features).call(t,function(t){return sr(Gw({},t))})},urlFunc:function(){var t=this;if(this.url){var e=this.url;return Object(ir.n)(e)||(e=Object(ir.d)(this.url)),function(i,n,r){return i=zw(i,r,t.resolvedDataProjection),r=t.resolvedDataProjection,e(i,n,r)}}},loaderFunc:function(){var t=this;if(this.loaderFactory){var e=this.loaderFactory();return function(){var i=Sm(Em.a.mark(function i(n,r,o){var s;return Em.a.wrap(function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,e(zw(n,o,t.resolvedDataProjection),r,t.resolvedDataProjection);case 2:s=i.sent,Object(ir.r)(s)&&""!==s&&(s=t.readSourceData(s)),Object(ir.j)(s)&&t.addFeatures(s);case 5:case"end":return i.stop()}},i)}));return function(t,e,n){return i.apply(this,arguments)}}()}},loadingStrategy:function(){return this.strategyFactory()},dataFormatIdent:function(){if(this.olObjIdent)return this.makeIdent(this.olObjIdent,"data_format")},dataFormat:function(){return this.instanceFactoryCall(this.dataFormatIdent,this.formatFactory.bind(this))}},methods:{createSource:function(){return new Fh({attributions:this.attributions,features:this.$featuresCollection,projection:this.resolvedDataProjection,loader:this.loaderFunc,useSpatialIndex:this.useSpatialIndex,wrapX:this.wrapX,logo:this.logo,strategy:this.loadingStrategy,format:this.dataFormat,url:this.urlFunc,overlaps:this.overlaps})},mount:function(){Vy.methods.mount.call(this),this.addFeatures(this.features)},unmount:function(){this.clear(),Vy.methods.unmount.call(this)},readSourceData:function(t){return this.dataFormat.readFeatures(t,{featureProjection:this.viewProjection,dataProjection:this.resolvedDataProjection})},addFeatures:function(t){var e=this,i=[];Object(ir.g)(t||[],function(t){t instanceof er.a?t=t.$feature:Object(ir.q)(t)&&(t=e.readFeatureInDataProj(t)),Ng(t,Zn),sr(t);var n=e.getFeatureById(rr(t));n?ar(n,t):i.push(t)}),this.$source&&t.length?this.$source.addFeatures(i):Object(ir.g)(i,function(t){return Vy.methods.addFeature.call(e,t)})},removeFeatures:function(t){var e=this;if(!this.$source)return Vy.methods.removeFeatures.call(this,t);var i=!1;Object(ir.g)(t,function(t){if(t=e.getFeatureById(rr(t))){var n=K(t);n in e.$source.nullGeometryFeatures_?delete e.$source.nullGeometryFeatures_[n]:e.$source.featuresRtree_&&e.$source.featuresRtree_.remove(t),e.$source.removeFeatureInternal(t),i=!0}}),i&&this.$source.changed()}},watch:Gw({initializedFeatures:{deep:!0,handler:function(t){this.$source&&!Object(ir.l)(t,this.featuresDataProj)&&(this.addFeatures(t),this.removeFeatures(Object(ir.e)(this.getFeatures(),t,function(t,e){return rr(t)===rr(e)})))}}},Sv(["loadingStrategy","dataFormat","urlFunc","loaderFactory","formatFactory","strategyFactory","overlaps"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function Yw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Yw.installed||(Yw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Bw,e),t.component(Bw.name,Bw))}var Vw=Yw,Ww=function(t){function e(e){var i=e||{},n=i.renderMode||Qd.HYBRID;Q(void 0==n||n==Qd.IMAGE||n==Qd.HYBRID||n==Qd.VECTOR,28),i.declutter&&n==Qd.IMAGE&&(n=Qd.HYBRID),i.renderMode=n;var r=Vt({},i);delete r.preload,delete r.useInterimTilesOnError,t.call(this,r),this.setPreload(i.preload?i.preload:0),this.setUseInterimTilesOnError(void 0===i.useInterimTilesOnError||i.useInterimTilesOnError),this.type=Xc.VECTOR_TILE}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getPreload=function(){return this.get(H_)},e.prototype.getUseInterimTilesOnError=function(){return this.get(U_)},e.prototype.setPreload=function(t){this.set(H_,t)},e.prototype.setUseInterimTilesOnError=function(t){this.set(U_,t)},e}(Ch);Ww.prototype.getSource;var Hw=Ww,Uw=["vector","image","hybrid"];var Xw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="layer.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-layer-vector-tile",mixins:[By],props:{renderMode:{type:String,default:"hybrid",validator:function(t){return hs()(Uw).call(Uw,t)}},preload:{type:Number,default:0}},methods:{createLayer:function(){return new Hw({id:this.id,minResolution:this.minResolution,maxResolution:this.maxResolution,opacity:this.opacity,visible:this.visible,preload:this.preload,extent:this.extent,zIndex:this.zIndex,updateWhileAnimating:this.updateWhileAnimating,updateWhileInteracting:this.updateWhileInteracting,source:this._source,renderMode:this.renderMode,renderBuffer:this.renderBuffer,renderOrder:this.renderOrder,declutter:this.declutter})}}},void 0,void 0);function qw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};qw.installed||(qw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Xw,e),t.component(Xw.name,Xw))}var Kw=qw;var Zw=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-vector-tile",mixins:[zy],props:{cacheSize:{type:Number,default:128},formatFactory:{type:Function,default:function(){return new us(t);var t}},overlaps:{type:Boolean,default:!0}},computed:{dataFormat:function(){return this.formatFactory()}},methods:{createSource:function(){return new ib({attributions:this.attributions,cacheSize:this.cacheSize,format:this.dataFormat,logo:this.logo,overlaps:this.overlaps,projection:this.projection,tileGrid:this._tileGrid,tileLoadFunction:this.tileLoadFunction,tileUrlFunction:this.urlFunc,wrapX:this.wrapX,transition:this.transition})},subscribeAll:function(){zy.methods.subscribeAll.call(this),function(){Yg(this),this.subscribeTo(mm(this.$source,"tileloadend"),function(t){t.tile&&Object(ir.g)(t.tile.getFeatures(),function(t){t instanceof Zn&&sr(t)})})}.call(this)}}},void 0,void 0);function Jw(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Jw.installed||(Jw.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(Zw,e),t.component(Zw.name,Zw))}var Qw=Jw;function tS(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var eS=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-wms",mixins:[zy,qy],props:{gutter:Number,hidpi:{type:Boolean,default:!0},serverType:{type:String,validator:function(t){var e;return!t||hs()(e=P_()($_)).call(e,t)}},url:{type:String,required:!0,validator:function(t){return!!t.length}}},methods:{createSource:function(){return new eb({attributions:this.attributions,cacheSize:this.cacheSize,params:this.allParams,crossOrigin:this.crossOrigin,gutter:this.gutter,hidpi:this.hidpi,logo:this.logo,tileGrid:this._tileGrid,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,serverType:this.serverType,wrapX:this.wrapX,url:this.urlTmpl,transition:this.transition,tileLoadFunction:this.tileLoadFunction})},onUrlFuncChange:function(){}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?tS(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):tS(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({urlTmpl:function(t){this.$source&&this.$source.setUrl(t)}},Sv(["gutter","hidpi","serverType"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function iS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};iS.installed||(iS.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(eS,e),t.component(eS.name,eS))}var nS=iS,rS=i(334),oS=i.n(rS);function sS(t,e){var i=$n()(t);if(wn.a){var n=wn()(t);e&&(n=Tn()(n).call(n,function(e){return Cn()(t,e).enumerable})),i.push.apply(i,n)}return i}var aS=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-wmts",mixins:[zy],props:{dimensions:Object,format:{type:String,default:"image/jpeg"},layerName:{type:String,required:!0},matrixSet:{type:String,required:!0},matrixIds:{type:Array},requestEncoding:{type:String,default:"KVP"},styleName:{type:String,required:!0},version:{type:String,default:"1.0.0"},url:{type:String,required:!0},origin:{type:Array},resolutions:{type:Array}},methods:{createSource:function(){return new sb({attributions:this.attributions,cacheSize:this.cacheSize,crossOrigin:this.crossOrigin,dimensions:this.dimensions,format:this.format,layer:this.layerName,logo:this.logo,matrixSet:this.matrixSet,origin:this.origin,projection:this.projection,reprojectionErrorThreshold:this.reprojectionErrorThreshold,requestEncoding:this.requestEncoding,resolutions:this.resolutions,tileGrid:this._tileGrid,tilePixelRatio:this.tilePixelRatio,style:this.styleName,version:this.version,url:this.urlTmpl,wrapX:this.wrapX,transition:this.transition,tileLoadFunction:this.tileLoadFunction})},createTileGrid:function(){var t=Kn(this.projection),e=this.resolutions?this.resolutions:wv(t,this.maxZoom,this.tileSize),i=this.origin?this.origin:qn(t,Wn.TOP_LEFT),n=this.matrixIds||oS()(Object(ir.z)(this.minZoom,e.length));return new ob({extent:t,origin:i,resolutions:e,tileSize:this.tileSize,minZoom:this.minZoom,matrixIds:n})},onUrlFuncChange:function(){}},watch:function(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?sS(Object(i),!0).forEach(function(e){Fn(t,e,i[e])}):Mn.a?Object.defineProperties(t,Mn()(i)):sS(Object(i)).forEach(function(e){Object.defineProperty(t,e,Cn()(i,e))})}return t}({urlTmpl:function(t){this.$source&&this.$source.setUrl(t)}},Sv(["dimensions","format","layerName","matrixSet","requestEncoding","styleName","version","resolutions","origin"],function(){return function(){this.scheduleRecreate()}}))},void 0,void 0);function lS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};lS.installed||(lS.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(aS,e),t.component(aS.name,aS))}var uS=lS;var cS=function(t,e,i,n,r,o,s,a){var l=("function"==typeof i?i.options:i)||{};return l.__file="source.vue",l.render||(l.render=t.render,l.staticRenderFns=t.staticRenderFns,l._compiled=!0,r&&(l.functional=!0)),l._scopeId=n,l}({},0,{name:"vl-source-xyz",mixins:[Zy]},void 0,void 0);function hS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};hS.installed||(hS.installed=!0,e=Object(ir.x)(e,"dataProjection"),nv()(cS,e),t.component(cS.name,cS))}var dS=hS;i.d(e,"VERSION",function(){return fS}),i.d(e,"install",function(){return pS}),i.d(e,"ArcgisRestSource",function(){return r}),i.d(e,"BingmapsSource",function(){return o}),i.d(e,"CircleGeom",function(){return s}),i.d(e,"CircleStyle",function(){return a}),i.d(e,"ClusterSource",function(){return l}),i.d(e,"DrawInteraction",function(){return u}),i.d(e,"Feature",function(){return c}),i.d(e,"FillStyle",function(){return h}),i.d(e,"Geoloc",function(){return d}),i.d(e,"Graticule",function(){return f}),i.d(e,"GroupLayer",function(){return p}),i.d(e,"HeatmapLayer",function(){return v}),i.d(e,"IconStyle",function(){return g}),i.d(e,"ImageLayer",function(){return m}),i.d(e,"ImageStaticSource",function(){return y}),i.d(e,"ImageWmsSource",function(){return _}),i.d(e,"LineStringGeom",function(){return b}),i.d(e,"Map",function(){return x}),i.d(e,"MapboxSource",function(){return w}),i.d(e,"ModifyInteraction",function(){return S}),i.d(e,"MultiLineStringGeom",function(){return T}),i.d(e,"MultiPointGeom",function(){return E}),i.d(e,"MultiPolygonGeom",function(){return C}),i.d(e,"OsmSource",function(){return O}),i.d(e,"Overlay",function(){return M}),i.d(e,"PointGeom",function(){return P}),i.d(e,"PolygonGeom",function(){return k}),i.d(e,"RegShapeStyle",function(){return I}),i.d(e,"SelectInteraction",function(){return L}),i.d(e,"SnapInteraction",function(){return A}),i.d(e,"SputnikSource",function(){return R}),i.d(e,"StamenSource",function(){return F}),i.d(e,"StrokeStyle",function(){return D}),i.d(e,"StyleBox",function(){return j}),i.d(e,"StyleFunc",function(){return N}),i.d(e,"TextStyle",function(){return $}),i.d(e,"TileLayer",function(){return G}),i.d(e,"VectorLayer",function(){return z}),i.d(e,"VectorSource",function(){return B}),i.d(e,"VectorTileLayer",function(){return Y}),i.d(e,"VectorTileSource",function(){return V}),i.d(e,"WmsSource",function(){return W}),i.d(e,"WmtsSource",function(){return H}),i.d(e,"XyzSource",function(){return U});var fS="0.11.37";function pS(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};pS.installed||(pS.installed=!0,t.use(r,e),t.use(o,e),t.use(s,e),t.use(a,e),t.use(l,e),t.use(u,e),t.use(c,e),t.use(h,e),t.use(d,e),t.use(f,e),t.use(p,e),t.use(v,e),t.use(g,e),t.use(m,e),t.use(y,e),t.use(_,e),t.use(b,e),t.use(x,e),t.use(w,e),t.use(S,e),t.use(T,e),t.use(E,e),t.use(C,e),t.use(O,e),t.use(M,e),t.use(P,e),t.use(k,e),t.use(I,e),t.use(L,e),t.use(A,e),t.use(R,e),t.use(F,e),t.use(D,e),t.use(j,e),t.use(N,e),t.use($,e),t.use(G,e),t.use(z,e),t.use(B,e),t.use(Y,e),t.use(V,e),t.use(W,e),t.use(H,e),t.use(U,e))}e.default=pS},function(t,e,i){"use strict";i(605),i(612),i(613),i(300),i(615)},function(t,e,i){"use strict";var n=i(27),r=i(33),o=i(138),s=i(216),a=i(606),l=i(19),u=TypeError,c=l("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var i,l=s(t,c);if(l){if(void 0===e&&(e="default"),i=n(l,t,e),!r(i)||o(i))return i;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},function(t,e,i){"use strict";var n=i(119);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,i){"use strict";var n=i(32),r=i(9),o=i(217);t.exports=!n&&!r(function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},function(t,e,i){"use strict";var n=i(9),r=i(18),o=/#|\.prototype\./,s=function(t,e){var i=l[a(t)];return i===c||i!==u&&(r(e)?n(e):!!e)},a=s.normalize=function(t){return String(t).replace(o,".").toLowerCase()},l=s.data={},u=s.NATIVE="N",c=s.POLYFILL="P";t.exports=s},function(t,e,i){"use strict";var n=i(32),r=i(9);t.exports=n&&r(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},function(t,e,i){"use strict";var n=i(32),r=i(291),o=i(51),s=i(42),a=i(63),l=i(140);e.f=n&&!r?Object.defineProperties:function(t,e){s(t);for(var i,n=a(e),r=l(e),u=r.length,c=0;u>c;)o.f(t,i=r[c++],n[i]);return t}},function(t,e,i){"use strict";var n=i(13),r=i(37),o=i(63),s=i(219).indexOf,a=i(142),l=n([].push);t.exports=function(t,e){var i,n=o(t),u=0,c=[];for(i in n)!r(a,i)&&r(n,i)&&l(c,i);for(;e.length>u;)r(n,i=e[u++])&&(~s(c,i)||l(c,i));return c}},function(t,e,i){"use strict";var n=i(141),r=Math.min;t.exports=function(t){var e=n(t);return e>0?r(e,9007199254740991):0}},function(t,e,i){"use strict";var n=i(40);t.exports=n("document","documentElement")},function(t,e,i){"use strict";var n=i(74),r=i(63),o=i(170).f,s=i(107),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"Window"===n(t)?function(t){try{return o(t)}catch(t){return s(a)}}(t):o(r(t))}},function(t,e,i){"use strict";var n=i(27),r=i(40),o=i(19),s=i(88);t.exports=function(){var t=r("Symbol"),e=t&&t.prototype,i=e&&e.valueOf,a=o("toPrimitive");e&&!e[a]&&s(e,a,function(t){return n(i,this)},{arity:1})}},function(t,e,i){"use strict";var n=i(13),r=i(18),o=i(167),s=n(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return s(t)}),t.exports=o.inspectSource},function(t,e,i){"use strict";var n=i(119);t.exports=n&&!!Symbol.for&&!!Symbol.keyFor},function(t,e,i){"use strict";var n=i(2),r=i(40),o=i(116),s=i(27),a=i(13),l=i(9),u=i(18),c=i(138),h=i(107),d=i(614),f=i(119),p=String,v=r("JSON","stringify"),g=a(/./.exec),m=a("".charAt),y=a("".charCodeAt),_=a("".replace),b=a(1..toString),x=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,S=/^[\uDC00-\uDFFF]$/,T=!f||l(function(){var t=r("Symbol")("stringify detection");return"[null]"!==v([t])||"{}"!==v({a:t})||"{}"!==v(Object(t))}),E=l(function(){return'"\\udf06\\ud834"'!==v("\udf06\ud834")||'"\\udead"'!==v("\udead")}),C=function(t,e){var i=h(arguments),n=d(e);if(u(n)||void 0!==t&&!c(t))return i[1]=function(t,e){if(u(n)&&(e=s(n,this,p(t),e)),!c(e))return e},o(v,null,i)},O=function(t,e,i){var n=m(i,e-1),r=m(i,e+1);return g(w,t)&&!g(S,r)||g(S,t)&&!g(w,n)?"\\u"+b(y(t,0),16):t};v&&n({target:"JSON",stat:!0,arity:3,forced:T||E},{stringify:function(t,e,i){var n=h(arguments),r=o(T?C:v,null,n);return E&&"string"==typeof r?_(r,x,O):r}})},function(t,e,i){"use strict";var n=i(620);t.exports=n},function(t,e,i){"use strict";var n=i(40),r=i(13),o=i(170),s=i(171),a=i(42),l=r([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=o.f(a(t)),i=s.f;return i?l(e,i(t)):e}},function(t,e,i){"use strict";var n=i(2),r=i(9),o=i(108),s=i(33),a=i(46),l=i(81),u=i(224),c=i(144),h=i(223),d=i(143),f=i(19),p=i(139),v=f("isConcatSpreadable"),g=function(t){if(!s(t))return!1;var e=t[v];return void 0!==e?!!e:o(t)};n({target:"Array",proto:!0,arity:1,forced:!(p>=51||!r(function(){var t=[];return t[v]=!1,t.concat()[0]!==t}))||!d("concat")},{concat:function(t){var e,i,n,r,o,s=a(this),d=h(s,0),f=0;for(e=-1,n=arguments.length;e<n;e++)if(o=-1===e?s:arguments[e],g(o))for(r=l(o),u(f+r),i=0;i<r;i++,f++)i in o&&c(d,f,o[i]);else u(f+1),c(d,f++,o);return d.length=f,d}})},function(t,e,i){"use strict";i(24)("iterator")},function(t,e,i){"use strict";var n=i(24),r=i(297);n("toPrimitive"),r()},function(t,e,i){"use strict";var n,r,o,s=i(9),a=i(18),l=i(33),u=i(106),c=i(127),h=i(88),d=i(19),f=i(64),p=d("iterator"),v=!1;[].keys&&("next"in(o=[].keys())?(r=c(c(o)))!==Object.prototype&&(n=r):v=!0),!l(n)||s(function(){var t={};return n[p].call(t)!==t})?n={}:f&&(n=u(n)),a(n[p])||h(n,p,function(){return this}),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:v}},function(t,e,i){"use strict";var n=i(9);t.exports=!n(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},function(t,e,i){"use strict";var n=i(40),r=i(13),o=n("Symbol"),s=o.keyFor,a=r(o.prototype.valueOf);t.exports=o.isRegisteredSymbol||function(t){try{return void 0!==s(a(t))}catch(t){return!1}}},function(t,e,i){"use strict";for(var n=i(120),r=i(40),o=i(13),s=i(138),a=i(19),l=r("Symbol"),u=l.isWellKnownSymbol,c=r("Object","getOwnPropertyNames"),h=o(l.prototype.valueOf),d=n("wks"),f=0,p=c(l),v=p.length;f<v;f++)try{var g=p[f];s(l[g])&&a(g)}catch(t){}t.exports=function(t){if(u&&u(t))return!0;try{for(var e=h(t),i=0,n=c(d),r=n.length;i<r;i++)if(d[n[i]]==e)return!0}catch(t){}return!1}},function(t,e,i){"use strict";t.exports=i(669)},function(t,e,i){"use strict";t.exports=i(699)},function(t,e,i){"use strict";var n=i(701);t.exports=n},function(t,e,i){"use strict";var n=i(32),r=i(108),o=TypeError,s=Object.getOwnPropertyDescriptor,a=n&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!s(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,i){"use strict";t.exports=i(723)},function(t,e,i){"use strict";var n=i(725);i(124),t.exports=n},function(t,e,i){"use strict";i(726)},function(t,e,i){"use strict";var n=i(19),r=i(126),o=n("iterator"),s=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||s[o]===t)}},function(t,e,i){"use strict";var n=i(27),r=i(38),o=i(42),s=i(105),a=i(176),l=TypeError;t.exports=function(t,e){var i=arguments.length<2?a(t):e;if(r(i))return o(n(i,t));throw new l(s(t)+" is not iterable")}},function(t,e,i){"use strict";var n=i(27),r=i(42),o=i(216);t.exports=function(t,e,i){var s,a;r(t);try{if(!(s=o(t,"return"))){if("throw"===e)throw i;return i}s=n(s,t)}catch(t){a=!0,s=t}if("throw"===e)throw i;if(a)throw s;return r(s),i}},function(t,e,i){"use strict";var n=i(40),r=i(222),o=i(19),s=i(32),a=o("species");t.exports=function(t){var e=n(t);s&&e&&!e[a]&&r(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,i){"use strict";var n=i(42),r=i(322),o=i(118),s=i(19)("species");t.exports=function(t,e){var i,a=n(t).constructor;return void 0===a||o(i=n(a)[s])?e:r(i)}},function(t,e,i){"use strict";var n=i(173),r=i(105),o=TypeError;t.exports=function(t){if(n(t))return t;throw new o(r(t)+" is not a constructor")}},function(t,e,i){"use strict";var n,r,o,s,a=i(26),l=i(116),u=i(44),c=i(18),h=i(37),d=i(9),f=i(295),p=i(107),v=i(217),g=i(735),m=i(324),y=i(177),_=a.setImmediate,b=a.clearImmediate,x=a.process,w=a.Dispatch,S=a.Function,T=a.MessageChannel,E=a.String,C=0,O={};d(function(){n=a.location});var M=function(t){if(h(O,t)){var e=O[t];delete O[t],e()}},P=function(t){return function(){M(t)}},k=function(t){M(t.data)},I=function(t){a.postMessage(E(t),n.protocol+"//"+n.host)};_&&b||(_=function(t){g(arguments.length,1);var e=c(t)?t:S(t),i=p(arguments,1);return O[++C]=function(){l(e,void 0,i)},r(C),C},b=function(t){delete O[t]},y?r=function(t){x.nextTick(P(t))}:w&&w.now?r=function(t){w.now(P(t))}:T&&!m?(s=(o=new T).port2,o.port1.onmessage=k,r=u(s.postMessage,s)):a.addEventListener&&c(a.postMessage)&&!a.importScripts&&n&&"file:"!==n.protocol&&!d(I)?(r=I,a.addEventListener("message",k,!1)):r="onreadystatechange"in v("script")?function(t){f.appendChild(v("script")).onreadystatechange=function(){f.removeChild(this),M(t)}}:function(t){setTimeout(P(t),0)}),t.exports={set:_,clear:b}},function(t,e,i){"use strict";var n=i(104);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(n)},function(t,e,i){"use strict";var n=function(){this.head=null,this.tail=null};n.prototype={add:function(t){var e={item:t,next:null},i=this.tail;i?i.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return null===(this.head=t.next)&&(this.tail=null),t.item}},t.exports=n},function(t,e,i){"use strict";t.exports="object"==typeof Deno&&Deno&&"object"==typeof Deno.version},function(t,e,i){"use strict";var n=i(19)("iterator"),r=!1;try{var o=0,s={next:function(){return{done:!!o++}},return:function(){r=!0}};s[n]=function(){return this},Array.from(s,function(){throw 2})}catch(t){}t.exports=function(t,e){try{if(!e&&!r)return!1}catch(t){return!1}var i=!1;try{var o={};o[n]=function(){return{next:function(){return{done:i=!0}}}},t(o)}catch(t){}return i}},function(t,e,i){"use strict";var n=i(42),r=i(33),o=i(82);t.exports=function(t,e){if(n(t),r(e)&&e.constructor===t)return e;var i=o.f(t);return(0,i.resolve)(e),i.promise}},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(38),s=i(82),a=i(128),l=i(66);n({target:"Promise",stat:!0,forced:i(178)},{allSettled:function(t){var e=this,i=s.f(e),n=i.resolve,u=i.reject,c=a(function(){var i=o(e.resolve),s=[],a=0,u=1;l(t,function(t){var o=a++,l=!1;u++,r(i,e,t).then(function(t){l||(l=!0,s[o]={status:"fulfilled",value:t},--u||n(s))},function(t){l||(l=!0,s[o]={status:"rejected",reason:t},--u||n(s))})}),--u||n(s)});return c.error&&u(c.value),i.promise}})},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(38),s=i(40),a=i(82),l=i(128),u=i(66);n({target:"Promise",stat:!0,forced:i(178)},{any:function(t){var e=this,i=s("AggregateError"),n=a.f(e),c=n.resolve,h=n.reject,d=l(function(){var n=o(e.resolve),s=[],a=0,l=1,d=!1;u(t,function(t){var o=a++,u=!1;l++,r(n,e,t).then(function(t){u||d||(d=!0,c(t))},function(t){u||d||(u=!0,s[o]=t,--l||h(new i(s,"No one promise resolved")))})}),--l||h(new i(s,"No one promise resolved"))});return d.error&&h(d.value),n.promise}})},function(t,e,i){"use strict";var n=i(2),r=i(82);n({target:"Promise",stat:!0},{withResolvers:function(){var t=r.f(this);return{promise:t.promise,resolve:t.resolve,reject:t.reject}}})},function(t,e,i){"use strict";t.exports=i(760)},function(t,e,i){"use strict";var n=i(762);t.exports=n},function(t,e,i){t.exports=i(335)},function(t,e,i){"use strict";var n=i(765);t.exports=n},function(t,e,i){t.exports=i(337)},function(t,e,i){"use strict";var n=i(794);t.exports=n},function(t,e,i){"use strict";var n=i(13),r=i(38),o=i(33),s=i(37),a=i(107),l=i(137),u=Function,c=n([].concat),h=n([].join),d={};t.exports=l?u.bind:function(t){var e=r(this),i=e.prototype,n=a(arguments,1),l=function(){var i=c(n,a(arguments));return this instanceof l?function(t,e,i){if(!s(d,e)){for(var n=[],r=0;r<e;r++)n[r]="a["+r+"]";d[e]=u("C,a","return new C("+h(n,",")+")")}return d[e](t,i)}(e,i.length,i):e.apply(t,i)};return o(i)&&(l.prototype=i),l}},function(t,e,i){"use strict";var n=i(2),r=i(13),o=i(142),s=i(33),a=i(37),l=i(51).f,u=i(170),c=i(296),h=i(830),d=i(168),f=i(832),p=!1,v=d("meta"),g=0,m=function(t){l(t,v,{value:{objectID:"O"+g++,weakData:{}}})},y=t.exports={enable:function(){y.enable=function(){},p=!0;var t=u.f,e=r([].splice),i={};i[v]=1,t(i).length&&(u.f=function(i){for(var n=t(i),r=0,o=n.length;r<o;r++)if(n[r]===v){e(n,r,1);break}return n},n({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:c.f}))},fastKey:function(t,e){if(!s(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!a(t,v)){if(!h(t))return"F";if(!e)return"E";m(t)}return t[v].objectID},getWeakData:function(t,e){if(!a(t,v)){if(!h(t))return!0;if(!e)return!1;m(t)}return t[v].weakData},onFreeze:function(t){return f&&p&&h(t)&&!a(t,v)&&m(t),t}};o[v]=!0},function(t,e,i){"use strict";var n=i(2),r=i(13),o=i(38),s=i(87),a=i(66),l=i(68),u=i(64),c=i(9),h=l.Map,d=l.has,f=l.get,p=l.set,v=r([].push),g=u||c(function(){return 1!==h.groupBy("ab",function(t){return t}).get("a").length});n({target:"Map",stat:!0,forced:u||g},{groupBy:function(t,e){s(t),o(e);var i=new h,n=0;return a(t,function(t){var r=e(t,n++);d(i,r)?v(f(i,r),t):p(i,r,[t])}),i}})},function(t,e,i){"use strict";var n=i(27),r=i(38),o=i(18),s=i(42),a=TypeError;t.exports=function(t,e){var i,l=s(this),u=r(l.get),c=r(l.has),h=r(l.set),d=arguments.length>2?arguments[2]:void 0;if(!o(e)&&!o(d))throw new a("At least one callback required");return n(c,l,t)?(i=n(u,l,t),o(e)&&(i=e(i),n(h,l,t,i))):o(d)&&(i=d(),n(h,l,t,i)),i}},function(t,e,i){"use strict";t.exports=i(867)},function(t,e,i){"use strict";var n=i(105),r=TypeError;t.exports=function(t,e){if(!delete t[e])throw new r("Cannot delete property "+n(e)+" of "+n(t))}},function(t,e,i){"use strict";t.exports=i(874)},function(t,e,i){"use strict";t.exports=i(879)},function(t,e,i){"use strict";t.exports=i(883)},,,,,,,,,,,,function(t,e){},,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";var n=i(1172),r=i(1173),o=i(1174);function s(t,e){return e.encode?e.strict?n(t):encodeURIComponent(t):t}function a(t){var e=t.indexOf("?");return-1===e?"":t.slice(e+1)}function l(t,e){var i=function(t){var e;switch(t.arrayFormat){case"index":return function(t,i,n){e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===n[t]&&(n[t]={}),n[t][e[1]]=i):n[t]=i};case"bracket":return function(t,i,n){e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==n[t]?n[t]=[].concat(n[t],i):n[t]=[i]:n[t]=i};default:return function(t,e,i){void 0!==i[t]?i[t]=[].concat(i[t],e):i[t]=e}}}(e=r({arrayFormat:"none"},e)),n=Object.create(null);return"string"!=typeof t?n:(t=t.trim().replace(/^[?#&]/,""))?(t.split("&").forEach(function(t){var e=t.replace(/\+/g," ").split("="),r=e.shift(),s=e.length>0?e.join("="):void 0;s=void 0===s?null:o(s),i(o(r),s,n)}),Object.keys(n).sort().reduce(function(t,e){var i=n[e];return Boolean(i)&&"object"==typeof i&&!Array.isArray(i)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort(function(t,e){return Number(t)-Number(e)}).map(function(t){return e[t]}):e}(i):t[e]=i,t},Object.create(null))):n}e.extract=a,e.parse=l,e.stringify=function(t,e){!1===(e=r({encode:!0,strict:!0,arrayFormat:"none"},e)).sort&&(e.sort=function(){});var i=function(t){switch(t.arrayFormat){case"index":return function(e,i,n){return null===i?[s(e,t),"[",n,"]"].join(""):[s(e,t),"[",s(n,t),"]=",s(i,t)].join("")};case"bracket":return function(e,i){return null===i?s(e,t):[s(e,t),"[]=",s(i,t)].join("")};default:return function(e,i){return null===i?s(e,t):[s(e,t),"=",s(i,t)].join("")}}}(e);return t?Object.keys(t).sort(e.sort).map(function(n){var r=t[n];if(void 0===r)return"";if(null===r)return s(n,e);if(Array.isArray(r)){var o=[];return r.slice().forEach(function(t){void 0!==t&&o.push(i(n,t,o.length))}),o.join("&")}return s(n,e)+"="+s(r,e)}).filter(function(t){return t.length>0}).join("&"):""},e.parseUrl=function(t,e){return{url:t.split("?")[0]||"",query:l(a(t),e)}}},function(t,e){!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 i=function(t,e,i){var n,r,o,s,a;if((i=i.split(" ")).length<2&&(i[1]=i[0]),"x"===t)n=i[0],r=i[1],o="left",s="right",a=e.clientWidth;else{if("y"!==t)return;n=i[1],r=i[0],o="top",s="bottom",a=e.clientHeight}if(n!==o&&r!==o){if(n!==s&&r!==s)return"center"===n||"50%"===n?(e.style[o]="50%",void(e.style["margin-"+o]=a/-2+"px")):void(0<=n.indexOf("%")?(n=parseInt(n))<50?(e.style[o]=n+"%",e.style["margin-"+o]=a*(n/-100)+"px"):(n=100-n,e.style[s]=n+"%",e.style["margin-"+s]=a*(n/-100)+"px"):e.style[o]=n);e.style[s]="0"}else e.style[o]="0"},n=function(t){var e=t.dataset?t.dataset.objectFit:t.getAttribute("data-object-fit"),n=t.dataset?t.dataset.objectPosition:t.getAttribute("data-object-position");e=e||"cover",n=n||"50% 50%";var r=t.parentNode;return function(t){var e=window.getComputedStyle(t,null),i=e.getPropertyValue("position"),n=e.getPropertyValue("overflow"),r=e.getPropertyValue("display");i&&"static"!==i||(t.style.position="relative"),"hidden"!==n&&(t.style.overflow="hidden"),r&&"inline"!==r||(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")}(r),function(t){var e=window.getComputedStyle(t,null),i={"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 n in i)e.getPropertyValue(n)!==i[n]&&(t.style[n]=i[n])}(t),t.style.position="absolute",t.style.width="auto",t.style.height="auto","scale-down"===e&&(e=t.clientWidth<r.clientWidth&&t.clientHeight<r.clientHeight?"none":"contain"),"none"===e?(i("x",t,n),void i("y",t,n)):"fill"===e?(t.style.width="100%",t.style.height="100%",i("x",t,n),void i("y",t,n)):(t.style.height="100%",void("cover"===e&&t.clientWidth>r.clientWidth||"contain"===e&&t.clientWidth<r.clientWidth?(t.style.top="0",t.style.marginTop="0",i("x",t,n)):(t.style.width="100%",t.style.height="auto",t.style.left="0",t.style.marginLeft="0",i("y",t,n))))},r=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 i=0;i<t.length;i++)if(t[i].nodeName){var r=t[i].nodeName.toLowerCase();if("img"===r){if(e)continue;t[i].complete?n(t[i]):t[i].addEventListener("load",function(){n(this)})}else"video"===r?0<t[i].readyState?n(t[i]):t[i].addEventListener("loadedmetadata",function(){n(this)}):n(t[i])}return!0};"loading"===document.readyState?document.addEventListener("DOMContentLoaded",r):r(),window.addEventListener("resize",r),window.objectFitPolyfill=r}else window.objectFitPolyfill=function(){return!1}}}()},,,function(t,e,i){i(391),i(394),i(395),i(396),i(397),i(398),i(399),i(400),i(401),i(402),i(403),i(404),i(405),i(406),i(407),i(408),i(409),i(410),i(411),i(412),i(413),i(414),i(415),i(416),i(417),i(418),i(419),i(420),i(421),i(422),i(423),i(424),i(425),i(426),i(427),i(428),i(429),i(430),i(431),i(432),i(433),i(434),i(435),i(436),i(437),i(438),i(439),i(440),i(441),i(442),i(443),i(444),i(445),i(446),i(447),i(448),i(449),i(450),i(451),i(452),i(453),i(454),i(455),i(456),i(457),i(458),i(459),i(460),i(461),i(462),i(463),i(464),i(465),i(466),i(467),i(468),i(469),i(471),i(472),i(474),i(475),i(476),i(477),i(478),i(479),i(480),i(482),i(483),i(484),i(485),i(486),i(487),i(488),i(489),i(490),i(491),i(492),i(493),i(494),i(204),i(495),i(257),i(496),i(258),i(497),i(498),i(499),i(500),i(501),i(261),i(263),i(264),i(502),i(503),i(504),i(505),i(506),i(507),i(508),i(509),i(510),i(511),i(512),i(513),i(514),i(515),i(516),i(517),i(518),i(519),i(520),i(521),i(522),i(523),i(524),i(525),i(526),i(527),i(528),i(529),i(530),i(531),i(532),i(533),i(534),i(535),i(536),i(537),i(538),i(539),i(540),i(541),i(542),i(543),i(544),i(545),i(546),i(547),i(548),i(549),i(550),i(551),i(552),i(553),i(554),i(555),i(556),i(557),i(558),i(559),i(560),i(561),i(562),i(563),i(564),i(565),i(566),i(567),i(568),i(569),i(570),i(571),i(572),i(573),i(574),i(575),i(576),i(577),i(578),i(579),i(580),i(581),i(582),i(583),i(584),i(585),i(586),t.exports=i(58)},function(t,e,i){"use strict";var n=i(8),r=i(54),o=i(22),s=i(0),a=i(49),l=i(85).KEY,u=i(10),c=i(132),h=i(112),d=i(93),f=i(16),p=i(239),v=i(185),g=i(393),m=i(153),y=i(6),_=i(11),b=i(34),x=i(55),w=i(70),S=i(92),T=i(96),E=i(242),C=i(56),O=i(152),M=i(31),P=i(94),k=C.f,I=M.f,L=E.f,A=n.Symbol,R=n.JSON,F=R&&R.stringify,D=f("_hidden"),j=f("toPrimitive"),N={}.propertyIsEnumerable,$=c("symbol-registry"),G=c("symbols"),z=c("op-symbols"),B=Object.prototype,Y="function"==typeof A&&!!O.f,V=n.QObject,W=!V||!V.prototype||!V.prototype.findChild,H=o&&u(function(){return 7!=T(I({},"a",{get:function(){return I(this,"a",{value:7}).a}})).a})?function(t,e,i){var n=k(B,e);n&&delete B[e],I(t,e,i),n&&t!==B&&I(B,e,n)}:I,U=function(t){var e=G[t]=T(A.prototype);return e._k=t,e},X=Y&&"symbol"==typeof A.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof A},q=function(t,e,i){return t===B&&q(z,e,i),y(t),e=w(e,!0),y(i),r(G,e)?(i.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),i=T(i,{enumerable:S(0,!1)})):(r(t,D)||I(t,D,S(1,{})),t[D][e]=!0),H(t,e,i)):I(t,e,i)},K=function(t,e){y(t);for(var i,n=g(e=x(e)),r=0,o=n.length;o>r;)q(t,i=n[r++],e[i]);return t},Z=function(t){var e=N.call(this,t=w(t,!0));return!(this===B&&r(G,t)&&!r(z,t))&&(!(e||!r(this,t)||!r(G,t)||r(this,D)&&this[D][t])||e)},J=function(t,e){if(t=x(t),e=w(e,!0),t!==B||!r(G,e)||r(z,e)){var i=k(t,e);return!i||!r(G,e)||r(t,D)&&t[D][e]||(i.enumerable=!0),i}},Q=function(t){for(var e,i=L(x(t)),n=[],o=0;i.length>o;)r(G,e=i[o++])||e==D||e==l||n.push(e);return n},tt=function(t){for(var e,i=t===B,n=L(i?z:x(t)),o=[],s=0;n.length>s;)!r(G,e=n[s++])||i&&!r(B,e)||o.push(G[e]);return o};Y||(a((A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(i){this===B&&e.call(z,i),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),H(this,t,S(1,i))};return o&&W&&H(B,t,{configurable:!0,set:e}),U(t)}).prototype,"toString",function(){return this._k}),C.f=J,M.f=q,i(97).f=E.f=Q,i(134).f=Z,O.f=tt,o&&!i(84)&&a(B,"propertyIsEnumerable",Z,!0),p.f=function(t){return U(f(t))}),s(s.G+s.W+s.F*!Y,{Symbol:A});for(var et="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),it=0;et.length>it;)f(et[it++]);for(var nt=P(f.store),rt=0;nt.length>rt;)v(nt[rt++]);s(s.S+s.F*!Y,"Symbol",{for:function(t){return r($,t+="")?$[t]:$[t]=A(t)},keyFor:function(t){if(!X(t))throw TypeError(t+" is not a symbol!");for(var e in $)if($[e]===t)return e},useSetter:function(){W=!0},useSimple:function(){W=!1}}),s(s.S+s.F*!Y,"Object",{create:function(t,e){return void 0===e?T(t):K(T(t),e)},defineProperty:q,defineProperties:K,getOwnPropertyDescriptor:J,getOwnPropertyNames:Q,getOwnPropertySymbols:tt});var ot=u(function(){O.f(1)});s(s.S+s.F*ot,"Object",{getOwnPropertySymbols:function(t){return O.f(b(t))}}),R&&s(s.S+s.F*(!Y||u(function(){var t=A();return"[null]"!=F([t])||"{}"!=F({a:t})||"{}"!=F(Object(t))})),"JSON",{stringify:function(t){for(var e,i,n=[t],r=1;arguments.length>r;)n.push(arguments[r++]);if(i=e=n[1],(_(e)||void 0!==t)&&!X(t))return m(e)||(e=function(t,e){if("function"==typeof i&&(e=i.call(this,t,e)),!X(e))return e}),n[1]=e,F.apply(R,n)}}),A.prototype[j]||i(48)(A.prototype,j,A.prototype.valueOf),h(A,"Symbol"),h(Math,"Math",!0),h(n.JSON,"JSON",!0)},function(t,e,i){t.exports=i(132)("native-function-to-string",Function.toString)},function(t,e,i){var n=i(94),r=i(152),o=i(134);t.exports=function(t){var e=n(t),i=r.f;if(i)for(var s,a=i(t),l=o.f,u=0;a.length>u;)l.call(t,s=a[u++])&&e.push(s);return e}},function(t,e,i){var n=i(0);n(n.S,"Object",{create:i(96)})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(22),"Object",{defineProperty:i(31).f})},function(t,e,i){var n=i(0);n(n.S+n.F*!i(22),"Object",{defineProperties:i(241)})},function(t,e,i){var n=i(55),r=i(56).f;i(72)("getOwnPropertyDescriptor",function(){return function(t,e){return r(n(t),e)}})},function(t,e,i){var n=i(34),r=i(57);i(72)("getPrototypeOf",function(){return function(t){return r(n(t))}})},function(t,e,i){var n=i(34),r=i(94);i(72)("keys",function(){return function(t){return r(n(t))}})},function(t,e,i){i(72)("getOwnPropertyNames",function(){return i(242).f})},function(t,e,i){var n=i(11),r=i(85).onFreeze;i(72)("freeze",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(11),r=i(85).onFreeze;i(72)("seal",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(11),r=i(85).onFreeze;i(72)("preventExtensions",function(t){return function(e){return t&&n(e)?t(r(e)):e}})},function(t,e,i){var n=i(11);i(72)("isFrozen",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(11);i(72)("isSealed",function(t){return function(e){return!n(e)||!!t&&t(e)}})},function(t,e,i){var n=i(11);i(72)("isExtensible",function(t){return function(e){return!!n(e)&&(!t||t(e))}})},function(t,e,i){var n=i(0);n(n.S+n.F,"Object",{assign:i(243)})},function(t,e,i){var n=i(0);n(n.S,"Object",{is:i(244)})},function(t,e,i){var n=i(0);n(n.S,"Object",{setPrototypeOf:i(189).set})},function(t,e,i){"use strict";var n=i(113),r={};r[i(16)("toStringTag")]="z",r+""!="[object z]"&&i(49)(Object.prototype,"toString",function(){return"[object "+n(this)+"]"},!0)},function(t,e,i){var n=i(0);n(n.P,"Function",{bind:i(245)})},function(t,e,i){var n=i(31).f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||i(22)&&n(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,e,i){"use strict";var n=i(11),r=i(57),o=i(16)("hasInstance"),s=Function.prototype;o in s||i(31).f(s,o,{value:function(t){if("function"!=typeof this||!n(t))return!1;if(!n(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},function(t,e,i){var n=i(0),r=i(247);n(n.G+n.F*(parseInt!=r),{parseInt:r})},function(t,e,i){var n=i(0),r=i(248);n(n.G+n.F*(parseFloat!=r),{parseFloat:r})},function(t,e,i){"use strict";var n=i(8),r=i(54),o=i(60),s=i(191),a=i(70),l=i(10),u=i(97).f,c=i(56).f,h=i(31).f,d=i(114).trim,f=n.Number,p=f,v=f.prototype,g="Number"==o(i(96)(v)),m="trim"in String.prototype,y=function(t){var e=a(t,!1);if("string"==typeof e&&e.length>2){var i,n,r,o=(e=m?e.trim():d(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(i=e.charCodeAt(2))||120===i)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+e}for(var s,l=e.slice(2),u=0,c=l.length;u<c;u++)if((s=l.charCodeAt(u))<48||s>r)return NaN;return parseInt(l,n)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,i=this;return i instanceof f&&(g?l(function(){v.valueOf.call(i)}):"Number"!=o(i))?s(new p(y(e)),i,f):y(e)};for(var _,b=i(22)?u(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;b.length>x;x++)r(p,_=b[x])&&!r(f,_)&&h(f,_,c(p,_));f.prototype=v,v.constructor=f,i(49)(n,"Number",f)}},function(t,e,i){"use strict";var n=i(0),r=i(61),o=i(249),s=i(192),a=1..toFixed,l=Math.floor,u=[0,0,0,0,0,0],c="Number.toFixed: incorrect invocation!",h=function(t,e){for(var i=-1,n=e;++i<6;)n+=t*u[i],u[i]=n%1e7,n=l(n/1e7)},d=function(t){for(var e=6,i=0;--e>=0;)i+=u[e],u[e]=l(i/t),i=i%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==u[t]){var i=String(u[t]);e=""===e?i:e+s.call("0",7-i.length)+i}return e},p=function(t,e,i){return 0===e?i:e%2==1?p(t,e-1,i*t):p(t*t,e/2,i)};n(n.P+n.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!i(10)(function(){a.call({})})),"Number",{toFixed:function(t){var e,i,n,a,l=o(this,c),u=r(t),v="",g="0";if(u<0||u>20)throw RangeError(c);if(l!=l)return"NaN";if(l<=-1e21||l>=1e21)return String(l);if(l<0&&(v="-",l=-l),l>1e-21)if(i=(e=function(t){for(var e=0,i=t;i>=4096;)e+=12,i/=4096;for(;i>=2;)e+=1,i/=2;return e}(l*p(2,69,1))-69)<0?l*p(2,-e,1):l/p(2,e,1),i*=4503599627370496,(e=52-e)>0){for(h(0,i),n=u;n>=7;)h(1e7,0),n-=7;for(h(p(10,n,1),0),n=e-1;n>=23;)d(1<<23),n-=23;d(1<<n),h(1,1),d(2),g=f()}else h(0,i),h(1<<-e,0),g=f()+s.call("0",u);return g=u>0?v+((a=g.length)<=u?"0."+s.call("0",u-a)+g:g.slice(0,a-u)+"."+g.slice(a-u)):v+g}})},function(t,e,i){"use strict";var n=i(0),r=i(10),o=i(249),s=1..toPrecision;n(n.P+n.F*(r(function(){return"1"!==s.call(1,void 0)})||!r(function(){s.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?s.call(e):s.call(e,t)}})},function(t,e,i){var n=i(0);n(n.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,e,i){var n=i(0),r=i(8).isFinite;n(n.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},function(t,e,i){var n=i(0);n(n.S,"Number",{isInteger:i(250)})},function(t,e,i){var n=i(0);n(n.S,"Number",{isNaN:function(t){return t!=t}})},function(t,e,i){var n=i(0),r=i(250),o=Math.abs;n(n.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},function(t,e,i){var n=i(0);n(n.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,e,i){var n=i(0);n(n.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,e,i){var n=i(0),r=i(248);n(n.S+n.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(t,e,i){var n=i(0),r=i(247);n(n.S+n.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(t,e,i){var n=i(0),r=i(251),o=Math.sqrt,s=Math.acosh;n(n.S+n.F*!(s&&710==Math.floor(s(Number.MAX_VALUE))&&s(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},function(t,e,i){var n=i(0),r=Math.asinh;n(n.S+n.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},function(t,e,i){var n=i(0),r=Math.atanh;n(n.S+n.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,e,i){var n=i(0),r=i(193);n(n.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,e,i){var n=i(0),r=Math.exp;n(n.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},function(t,e,i){var n=i(0),r=i(194);n(n.S+n.F*(r!=Math.expm1),"Math",{expm1:r})},function(t,e,i){var n=i(0);n(n.S,"Math",{fround:i(252)})},function(t,e,i){var n=i(0),r=Math.abs;n(n.S,"Math",{hypot:function(t,e){for(var i,n,o=0,s=0,a=arguments.length,l=0;s<a;)l<(i=r(arguments[s++]))?(o=o*(n=l/i)*n+1,l=i):o+=i>0?(n=i/l)*n:i;return l===1/0?1/0:l*Math.sqrt(o)}})},function(t,e,i){var n=i(0),r=Math.imul;n(n.S+n.F*i(10)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var i=+t,n=+e,r=65535&i,o=65535&n;return 0|r*o+((65535&i>>>16)*o+r*(65535&n>>>16)<<16>>>0)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,e,i){var n=i(0);n(n.S,"Math",{log1p:i(251)})},function(t,e,i){var n=i(0);n(n.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,e,i){var n=i(0);n(n.S,"Math",{sign:i(193)})},function(t,e,i){var n=i(0),r=i(194),o=Math.exp;n(n.S+n.F*i(10)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,e,i){var n=i(0),r=i(194),o=Math.exp;n(n.S,"Math",{tanh:function(t){var e=r(t=+t),i=r(-t);return e==1/0?1:i==1/0?-1:(e-i)/(o(t)+o(-t))}})},function(t,e,i){var n=i(0);n(n.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,e,i){var n=i(0),r=i(95),o=String.fromCharCode,s=String.fromCodePoint;n(n.S+n.F*(!!s&&1!=s.length),"String",{fromCodePoint:function(t){for(var e,i=[],n=arguments.length,s=0;n>s;){if(e=+arguments[s++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");i.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return i.join("")}})},function(t,e,i){var n=i(0),r=i(55),o=i(17);n(n.S,"String",{raw:function(t){for(var e=r(t.raw),i=o(e.length),n=arguments.length,s=[],a=0;i>a;)s.push(String(e[a++])),a<n&&s.push(String(arguments[a]));return s.join("")}})},function(t,e,i){"use strict";i(114)("trim",function(t){return function(){return t(this,3)}})},function(t,e,i){"use strict";var n=i(154)(!0);i(195)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,i=this._i;return i>=e.length?{value:void 0,done:!0}:(t=n(e,i),this._i+=t.length,{value:t,done:!1})})},function(t,e,i){"use strict";var n=i(0),r=i(154)(!1);n(n.P,"String",{codePointAt:function(t){return r(this,t)}})},function(t,e,i){"use strict";var n=i(0),r=i(17),o=i(197),s="".endsWith;n(n.P+n.F*i(198)("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),i=arguments.length>1?arguments[1]:void 0,n=r(e.length),a=void 0===i?n:Math.min(r(i),n),l=String(t);return s?s.call(e,l,a):e.slice(a-l.length,a)===l}})},function(t,e,i){"use strict";var n=i(0),r=i(197);n(n.P+n.F*i(198)("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){var n=i(0);n(n.P,"String",{repeat:i(192)})},function(t,e,i){"use strict";var n=i(0),r=i(17),o=i(197),s="".startsWith;n(n.P+n.F*i(198)("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),i=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),n=String(t);return s?s.call(e,n,i):e.slice(i,i+n.length)===n}})},function(t,e,i){"use strict";i(50)("anchor",function(t){return function(e){return t(this,"a","name",e)}})},function(t,e,i){"use strict";i(50)("big",function(t){return function(){return t(this,"big","","")}})},function(t,e,i){"use strict";i(50)("blink",function(t){return function(){return t(this,"blink","","")}})},function(t,e,i){"use strict";i(50)("bold",function(t){return function(){return t(this,"b","","")}})},function(t,e,i){"use strict";i(50)("fixed",function(t){return function(){return t(this,"tt","","")}})},function(t,e,i){"use strict";i(50)("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},function(t,e,i){"use strict";i(50)("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},function(t,e,i){"use strict";i(50)("italics",function(t){return function(){return t(this,"i","","")}})},function(t,e,i){"use strict";i(50)("link",function(t){return function(e){return t(this,"a","href",e)}})},function(t,e,i){"use strict";i(50)("small",function(t){return function(){return t(this,"small","","")}})},function(t,e,i){"use strict";i(50)("strike",function(t){return function(){return t(this,"strike","","")}})},function(t,e,i){"use strict";i(50)("sub",function(t){return function(){return t(this,"sub","","")}})},function(t,e,i){"use strict";i(50)("sup",function(t){return function(){return t(this,"sup","","")}})},function(t,e,i){var n=i(0);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,e,i){"use strict";var n=i(0),r=i(34),o=i(70);n(n.P+n.F*i(10)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=r(this),i=o(e);return"number"!=typeof i||isFinite(i)?e.toISOString():null}})},function(t,e,i){var n=i(0),r=i(470);n(n.P+n.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(t,e,i){"use strict";var n=i(10),r=Date.prototype.getTime,o=Date.prototype.toISOString,s=function(t){return t>9?t:"0"+t};t.exports=n(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!n(function(){o.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),i=t.getUTCMilliseconds(),n=e<0?"-":e>9999?"+":"";return n+("00000"+Math.abs(e)).slice(n?-6:-4)+"-"+s(t.getUTCMonth()+1)+"-"+s(t.getUTCDate())+"T"+s(t.getUTCHours())+":"+s(t.getUTCMinutes())+":"+s(t.getUTCSeconds())+"."+(i>99?i:"0"+s(i))+"Z"}:o},function(t,e,i){var n=Date.prototype,r=n.toString,o=n.getTime;new Date(NaN)+""!="Invalid Date"&&i(49)(n,"toString",function(){var t=o.call(this);return t==t?r.call(this):"Invalid Date"})},function(t,e,i){var n=i(16)("toPrimitive"),r=Date.prototype;n in r||i(48)(r,n,i(473))},function(t,e,i){"use strict";var n=i(6),r=i(70);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(n(this),"number"!=t)}},function(t,e,i){var n=i(0);n(n.S,"Array",{isArray:i(153)})},function(t,e,i){"use strict";var n=i(59),r=i(0),o=i(34),s=i(253),a=i(199),l=i(17),u=i(200),c=i(201);r(r.S+r.F*!i(156)(function(t){Array.from(t)}),"Array",{from:function(t){var e,i,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,m=0,y=c(d);if(g&&(v=n(v,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&a(y))for(i=new f(e=l(d.length));e>m;m++)u(i,m,g?v(d[m],m):d[m]);else for(h=y.call(d),i=new f;!(r=h.next()).done;m++)u(i,m,g?s(h,v,[r.value,m],!0):r.value);return i.length=m,i}})},function(t,e,i){"use strict";var n=i(0),r=i(200);n(n.S+n.F*i(10)(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,i=new("function"==typeof this?this:Array)(e);e>t;)r(i,t,arguments[t++]);return i.length=e,i}})},function(t,e,i){"use strict";var n=i(0),r=i(55),o=[].join;n(n.P+n.F*(i(133)!=Object||!i(62)(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},function(t,e,i){"use strict";var n=i(0),r=i(188),o=i(60),s=i(95),a=i(17),l=[].slice;n(n.P+n.F*i(10)(function(){r&&l.call(r)}),"Array",{slice:function(t,e){var i=a(this.length),n=o(this);if(e=void 0===e?i:e,"Array"==n)return l.call(this,t,e);for(var r=s(t,i),u=s(e,i),c=a(u-r),h=new Array(c),d=0;d<c;d++)h[d]="String"==n?this.charAt(r+d):this[r+d];return h}})},function(t,e,i){"use strict";var n=i(0),r=i(43),o=i(34),s=i(10),a=[].sort,l=[1,2,3];n(n.P+n.F*(s(function(){l.sort(void 0)})||!s(function(){l.sort(null)})||!i(62)(a)),"Array",{sort:function(t){return void 0===t?a.call(o(this)):a.call(o(this),r(t))}})},function(t,e,i){"use strict";var n=i(0),r=i(73)(0),o=i(62)([].forEach,!0);n(n.P+n.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},function(t,e,i){var n=i(11),r=i(153),o=i(16)("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),n(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},function(t,e,i){"use strict";var n=i(0),r=i(73)(1);n(n.P+n.F*!i(62)([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(73)(2);n(n.P+n.F*!i(62)([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(73)(3);n(n.P+n.F*!i(62)([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(73)(4);n(n.P+n.F*!i(62)([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(254);n(n.P+n.F*!i(62)([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},function(t,e,i){"use strict";var n=i(0),r=i(254);n(n.P+n.F*!i(62)([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},function(t,e,i){"use strict";var n=i(0),r=i(151)(!1),o=[].indexOf,s=!!o&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(s||!i(62)(o)),"Array",{indexOf:function(t){return s?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},function(t,e,i){"use strict";var n=i(0),r=i(55),o=i(61),s=i(17),a=[].lastIndexOf,l=!!a&&1/[1].lastIndexOf(1,-0)<0;n(n.P+n.F*(l||!i(62)(a)),"Array",{lastIndexOf:function(t){if(l)return a.apply(this,arguments)||0;var e=r(this),i=s(e.length),n=i-1;for(arguments.length>1&&(n=Math.min(n,o(arguments[1]))),n<0&&(n=i+n);n>=0;n--)if(n in e&&e[n]===t)return n||0;return-1}})},function(t,e,i){var n=i(0);n(n.P,"Array",{copyWithin:i(255)}),i(86)("copyWithin")},function(t,e,i){var n=i(0);n(n.P,"Array",{fill:i(203)}),i(86)("fill")},function(t,e,i){"use strict";var n=i(0),r=i(73)(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),n(n.P+n.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(86)("find")},function(t,e,i){"use strict";var n=i(0),r=i(73)(6),o="findIndex",s=!0;o in[]&&Array(1)[o](function(){s=!1}),n(n.P+n.F*s,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(86)(o)},function(t,e,i){i(98)("Array")},function(t,e,i){var n=i(8),r=i(191),o=i(31).f,s=i(97).f,a=i(155),l=i(135),u=n.RegExp,c=u,h=u.prototype,d=/a/g,f=/a/g,p=new u(d)!==d;if(i(22)&&(!p||i(10)(function(){return f[i(16)("match")]=!1,u(d)!=d||u(f)==f||"/a/i"!=u(d,"i")}))){u=function(t,e){var i=this instanceof u,n=a(t),o=void 0===e;return!i&&n&&t.constructor===u&&o?t:r(p?new c(n&&!o?t.source:t,e):c((n=t instanceof u)?t.source:t,n&&o?l.call(t):e),i?this:h,u)};for(var v=function(t){t in u||o(u,t,{configurable:!0,get:function(){return c[t]},set:function(e){c[t]=e}})},g=s(c),m=0;g.length>m;)v(g[m++]);h.constructor=u,u.prototype=h,i(49)(n,"RegExp",u)}i(98)("RegExp")},function(t,e,i){"use strict";i(258);var n=i(6),r=i(135),o=i(22),s=/./.toString,a=function(t){i(49)(RegExp.prototype,"toString",t,!0)};i(10)(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?a(function(){var t=n(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)}):"toString"!=s.name&&a(function(){return s.call(this)})},function(t,e,i){"use strict";var n=i(6),r=i(17),o=i(206),s=i(157);i(158)("match",1,function(t,e,i,a){return[function(i){var n=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=a(i,t,this);if(e.done)return e.value;var l=n(t),u=String(this);if(!l.global)return s(l,u);var c=l.unicode;l.lastIndex=0;for(var h,d=[],f=0;null!==(h=s(l,u));){var p=String(h[0]);d[f]=p,""===p&&(l.lastIndex=o(u,r(l.lastIndex),c)),f++}return 0===f?null:d}]})},function(t,e,i){"use strict";var n=i(6),r=i(34),o=i(17),s=i(61),a=i(206),l=i(157),u=Math.max,c=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;i(158)("replace",2,function(t,e,i,p){return[function(n,r){var o=t(this),s=void 0==n?void 0:n[e];return void 0!==s?s.call(n,o,r):i.call(String(o),n,r)},function(t,e){var r=p(i,t,this,e);if(r.done)return r.value;var h=n(t),d=String(this),f="function"==typeof e;f||(e=String(e));var g=h.global;if(g){var m=h.unicode;h.lastIndex=0}for(var y=[];;){var _=l(h,d);if(null===_)break;if(y.push(_),!g)break;""===String(_[0])&&(h.lastIndex=a(d,o(h.lastIndex),m))}for(var b,x="",w=0,S=0;S<y.length;S++){_=y[S];for(var T=String(_[0]),E=u(c(s(_.index),d.length),0),C=[],O=1;O<_.length;O++)C.push(void 0===(b=_[O])?b:String(b));var M=_.groups;if(f){var P=[T].concat(C,E,d);void 0!==M&&P.push(M);var k=String(e.apply(void 0,P))}else k=v(T,d,E,C,M,e);E>=w&&(x+=d.slice(w,E)+k,w=E+T.length)}return x+d.slice(w)}];function v(t,e,n,o,s,a){var l=n+t.length,u=o.length,c=f;return void 0!==s&&(s=r(s),c=d),i.call(a,c,function(i,r){var a;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,n);case"'":return e.slice(l);case"<":a=s[r.slice(1,-1)];break;default:var c=+r;if(0===c)return i;if(c>u){var d=h(c/10);return 0===d?i:d<=u?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):i}a=o[c-1]}return void 0===a?"":a})}})},function(t,e,i){"use strict";var n=i(6),r=i(244),o=i(157);i(158)("search",1,function(t,e,i,s){return[function(i){var n=t(this),r=void 0==i?void 0:i[e];return void 0!==r?r.call(i,n):new RegExp(i)[e](String(n))},function(t){var e=s(i,t,this);if(e.done)return e.value;var a=n(t),l=String(this),u=a.lastIndex;r(u,0)||(a.lastIndex=0);var c=o(a,l);return r(a.lastIndex,u)||(a.lastIndex=u),null===c?-1:c.index}]})},function(t,e,i){"use strict";var n=i(155),r=i(6),o=i(136),s=i(206),a=i(17),l=i(157),u=i(205),c=i(10),h=Math.min,d=[].push,f=!c(function(){RegExp(4294967295,"y")});i(158)("split",2,function(t,e,i,c){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!n(t))return i.call(r,t,e);for(var o,s,a,l=[],c=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,c+"g");(o=u.call(p,r))&&!((s=p.lastIndex)>h&&(l.push(r.slice(h,o.index)),o.length>1&&o.index<r.length&&d.apply(l,o.slice(1)),a=o[0].length,h=s,l.length>=f));)p.lastIndex===o.index&&p.lastIndex++;return h===r.length?!a&&p.test("")||l.push(""):l.push(r.slice(h)),l.length>f?l.slice(0,f):l}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)}:i,[function(i,n){var r=t(this),o=void 0==i?void 0:i[e];return void 0!==o?o.call(i,r,n):p.call(String(r),i,n)},function(t,e){var n=c(p,t,this,e,p!==i);if(n.done)return n.value;var u=r(t),d=String(this),v=o(u,RegExp),g=u.unicode,m=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(f?"y":"g"),y=new v(f?u:"^(?:"+u.source+")",m),_=void 0===e?4294967295:e>>>0;if(0===_)return[];if(0===d.length)return null===l(y,d)?[d]:[];for(var b=0,x=0,w=[];x<d.length;){y.lastIndex=f?x:0;var S,T=l(y,f?d:d.slice(x));if(null===T||(S=h(a(y.lastIndex+(f?0:x)),d.length))===b)x=s(d,x,g);else{if(w.push(d.slice(b,x)),w.length===_)return w;for(var E=1;E<=T.length-1;E++)if(w.push(T[E]),w.length===_)return w;x=b=S}}return w.push(d.slice(b)),w}]})},function(t,e,i){"use strict";var n,r,o,s,a=i(84),l=i(8),u=i(59),c=i(113),h=i(0),d=i(11),f=i(43),p=i(99),v=i(100),g=i(136),m=i(207).set,y=i(208)(),_=i(209),b=i(259),x=i(159),w=i(260),S=l.TypeError,T=l.process,E=T&&T.versions,C=E&&E.v8||"",O=l.Promise,M="process"==c(T),P=function(){},k=r=_.f,I=!!function(){try{var t=O.resolve(1),e=(t.constructor={})[i(16)("species")]=function(t){t(P,P)};return(M||"function"==typeof PromiseRejectionEvent)&&t.then(P)instanceof e&&0!==C.indexOf("6.6")&&-1===x.indexOf("Chrome/66")}catch(t){}}(),L=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},A=function(t,e){if(!t._n){t._n=!0;var i=t._c;y(function(){for(var n=t._v,r=1==t._s,o=0,s=function(e){var i,o,s,a=r?e.ok:e.fail,l=e.resolve,u=e.reject,c=e.domain;try{a?(r||(2==t._h&&D(t),t._h=1),!0===a?i=n:(c&&c.enter(),i=a(n),c&&(c.exit(),s=!0)),i===e.promise?u(S("Promise-chain cycle")):(o=L(i))?o.call(i,l,u):l(i)):u(n)}catch(t){c&&!s&&c.exit(),u(t)}};i.length>o;)s(i[o++]);t._c=[],t._n=!1,e&&!t._h&&R(t)})}},R=function(t){m.call(l,function(){var e,i,n,r=t._v,o=F(t);if(o&&(e=b(function(){M?T.emit("unhandledRejection",r,t):(i=l.onunhandledrejection)?i({promise:t,reason:r}):(n=l.console)&&n.error&&n.error("Unhandled promise rejection",r)}),t._h=M||F(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},F=function(t){return 1!==t._h&&0===(t._a||t._c).length},D=function(t){m.call(l,function(){var e;M?T.emit("rejectionHandled",t):(e=l.onrejectionhandled)&&e({promise:t,reason:t._v})})},j=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),A(e,!0))},N=function(t){var e,i=this;if(!i._d){i._d=!0,i=i._w||i;try{if(i===t)throw S("Promise can't be resolved itself");(e=L(t))?y(function(){var n={_w:i,_d:!1};try{e.call(t,u(N,n,1),u(j,n,1))}catch(t){j.call(n,t)}}):(i._v=t,i._s=1,A(i,!1))}catch(t){j.call({_w:i,_d:!1},t)}}};I||(O=function(t){p(this,O,"Promise","_h"),f(t),n.call(this);try{t(u(N,this,1),u(j,this,1))}catch(t){j.call(this,t)}},(n=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=i(101)(O.prototype,{then:function(t,e){var i=k(g(this,O));return i.ok="function"!=typeof t||t,i.fail="function"==typeof e&&e,i.domain=M?T.domain:void 0,this._c.push(i),this._a&&this._a.push(i),this._s&&A(this,!1),i.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new n;this.promise=t,this.resolve=u(N,t,1),this.reject=u(j,t,1)},_.f=k=function(t){return t===O||t===s?new o(t):r(t)}),h(h.G+h.W+h.F*!I,{Promise:O}),i(112)(O,"Promise"),i(98)("Promise"),s=i(58).Promise,h(h.S+h.F*!I,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(a||!I),"Promise",{resolve:function(t){return w(a&&this===s?O:this,t)}}),h(h.S+h.F*!(I&&i(156)(function(t){O.all(t).catch(P)})),"Promise",{all:function(t){var e=this,i=k(e),n=i.resolve,r=i.reject,o=b(function(){var i=[],o=0,s=1;v(t,!1,function(t){var a=o++,l=!1;i.push(void 0),s++,e.resolve(t).then(function(t){l||(l=!0,i[a]=t,--s||n(i))},r)}),--s||n(i)});return o.e&&r(o.v),i.promise},race:function(t){var e=this,i=k(e),n=i.reject,r=b(function(){v(t,!1,function(t){e.resolve(t).then(i.resolve,n)})});return r.e&&n(r.v),i.promise}})},function(t,e,i){"use strict";var n=i(265),r=i(102);i(160)("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return n.def(r(this,"WeakSet"),t,!0)}},n,!1,!0)},function(t,e,i){"use strict";var n=i(0),r=i(161),o=i(210),s=i(6),a=i(95),l=i(17),u=i(11),c=i(8).ArrayBuffer,h=i(136),d=o.ArrayBuffer,f=o.DataView,p=r.ABV&&c.isView,v=d.prototype.slice,g=r.VIEW;n(n.G+n.W+n.F*(c!==d),{ArrayBuffer:d}),n(n.S+n.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||u(t)&&g in t}}),n(n.P+n.U+n.F*i(10)(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==v&&void 0===e)return v.call(s(this),t);for(var i=s(this).byteLength,n=a(t,i),r=a(void 0===e?i:e,i),o=new(h(this,d))(l(r-n)),u=new f(this),c=new f(o),p=0;n<r;)c.setUint8(p++,u.getUint8(n++));return o}}),i(98)("ArrayBuffer")},function(t,e,i){var n=i(0);n(n.G+n.W+n.F*!i(161).ABV,{DataView:i(210).DataView})},function(t,e,i){i(78)("Int8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Uint8",1,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Uint8",1,function(t){return function(e,i,n){return t(this,e,i,n)}},!0)},function(t,e,i){i(78)("Int16",2,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Uint16",2,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Int32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Uint32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Float32",4,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){i(78)("Float64",8,function(t){return function(e,i,n){return t(this,e,i,n)}})},function(t,e,i){var n=i(0),r=i(43),o=i(6),s=(i(8).Reflect||{}).apply,a=Function.apply;n(n.S+n.F*!i(10)(function(){s(function(){})}),"Reflect",{apply:function(t,e,i){var n=r(t),l=o(i);return s?s(n,e,l):a.call(n,e,l)}})},function(t,e,i){var n=i(0),r=i(96),o=i(43),s=i(6),a=i(11),l=i(10),u=i(245),c=(i(8).Reflect||{}).construct,h=l(function(){function t(){}return!(c(function(){},[],t)instanceof t)}),d=!l(function(){c(function(){})});n(n.S+n.F*(h||d),"Reflect",{construct:function(t,e){o(t),s(e);var i=arguments.length<3?t:o(arguments[2]);if(d&&!h)return c(t,e,i);if(t==i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return n.push.apply(n,e),new(u.apply(t,n))}var l=i.prototype,f=r(a(l)?l:Object.prototype),p=Function.apply.call(t,f,e);return a(p)?p:f}})},function(t,e,i){var n=i(31),r=i(0),o=i(6),s=i(70);r(r.S+r.F*i(10)(function(){Reflect.defineProperty(n.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,i){o(t),e=s(e,!0),o(i);try{return n.f(t,e,i),!0}catch(t){return!1}}})},function(t,e,i){var n=i(0),r=i(56).f,o=i(6);n(n.S,"Reflect",{deleteProperty:function(t,e){var i=r(o(t),e);return!(i&&!i.configurable)&&delete t[e]}})},function(t,e,i){"use strict";var n=i(0),r=i(6),o=function(t){this._t=r(t),this._i=0;var e,i=this._k=[];for(e in t)i.push(e)};i(196)(o,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),n(n.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,e,i){var n=i(56),r=i(57),o=i(54),s=i(0),a=i(11),l=i(6);s(s.S,"Reflect",{get:function t(e,i){var s,u,c=arguments.length<3?e:arguments[2];return l(e)===c?e[i]:(s=n.f(e,i))?o(s,"value")?s.value:void 0!==s.get?s.get.call(c):void 0:a(u=r(e))?t(u,i,c):void 0}})},function(t,e,i){var n=i(56),r=i(0),o=i(6);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return n.f(o(t),e)}})},function(t,e,i){var n=i(0),r=i(57),o=i(6);n(n.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},function(t,e,i){var n=i(0);n(n.S,"Reflect",{has:function(t,e){return e in t}})},function(t,e,i){var n=i(0),r=i(6),o=Object.isExtensible;n(n.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},function(t,e,i){var n=i(0);n(n.S,"Reflect",{ownKeys:i(267)})},function(t,e,i){var n=i(0),r=i(6),o=Object.preventExtensions;n(n.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,e,i){var n=i(31),r=i(56),o=i(57),s=i(54),a=i(0),l=i(92),u=i(6),c=i(11);a(a.S,"Reflect",{set:function t(e,i,a){var h,d,f=arguments.length<4?e:arguments[3],p=r.f(u(e),i);if(!p){if(c(d=o(e)))return t(d,i,a,f);p=l(0)}if(s(p,"value")){if(!1===p.writable||!c(f))return!1;if(h=r.f(f,i)){if(h.get||h.set||!1===h.writable)return!1;h.value=a,n.f(f,i,h)}else n.f(f,i,l(0,a));return!0}return void 0!==p.set&&(p.set.call(f,a),!0)}})},function(t,e,i){var n=i(0),r=i(189);r&&n(n.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},function(t,e,i){"use strict";var n=i(0),r=i(151)(!0);n(n.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),i(86)("includes")},function(t,e,i){"use strict";var n=i(0),r=i(268),o=i(34),s=i(17),a=i(43),l=i(202);n(n.P,"Array",{flatMap:function(t){var e,i,n=o(this);return a(t),e=s(n.length),i=l(n,0),r(i,n,n,e,0,1,t,arguments[1]),i}}),i(86)("flatMap")},function(t,e,i){"use strict";var n=i(0),r=i(268),o=i(34),s=i(17),a=i(61),l=i(202);n(n.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),i=s(e.length),n=l(e,0);return r(n,e,e,i,0,void 0===t?1:a(t)),n}}),i(86)("flatten")},function(t,e,i){"use strict";var n=i(0),r=i(154)(!0);n(n.P,"String",{at:function(t){return r(this,t)}})},function(t,e,i){"use strict";var n=i(0),r=i(269),o=i(159),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*s,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,e,i){"use strict";var n=i(0),r=i(269),o=i(159),s=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);n(n.P+n.F*s,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,e,i){"use strict";i(114)("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},function(t,e,i){"use strict";i(114)("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},function(t,e,i){"use strict";var n=i(0),r=i(71),o=i(17),s=i(155),a=i(135),l=RegExp.prototype,u=function(t,e){this._r=t,this._s=e};i(196)(u,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),n(n.P,"String",{matchAll:function(t){if(r(this),!s(t))throw TypeError(t+" is not a regexp!");var e=String(this),i="flags"in l?String(t.flags):a.call(t),n=new RegExp(t.source,~i.indexOf("g")?i:"g"+i);return n.lastIndex=o(t.lastIndex),new u(n,e)}})},function(t,e,i){i(185)("asyncIterator")},function(t,e,i){i(185)("observable")},function(t,e,i){var n=i(0),r=i(267),o=i(55),s=i(56),a=i(200);n(n.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,i,n=o(t),l=s.f,u=r(n),c={},h=0;u.length>h;)void 0!==(i=l(n,e=u[h++]))&&a(c,e,i);return c}})},function(t,e,i){var n=i(0),r=i(270)(!1);n(n.S,"Object",{values:function(t){return r(t)}})},function(t,e,i){var n=i(0),r=i(270)(!0);n(n.S,"Object",{entries:function(t){return r(t)}})},function(t,e,i){"use strict";var n=i(0),r=i(34),o=i(43),s=i(31);i(22)&&n(n.P+i(162),"Object",{__defineGetter__:function(t,e){s.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(0),r=i(34),o=i(43),s=i(31);i(22)&&n(n.P+i(162),"Object",{__defineSetter__:function(t,e){s.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},function(t,e,i){"use strict";var n=i(0),r=i(34),o=i(70),s=i(57),a=i(56).f;i(22)&&n(n.P+i(162),"Object",{__lookupGetter__:function(t){var e,i=r(this),n=o(t,!0);do{if(e=a(i,n))return e.get}while(i=s(i))}})},function(t,e,i){"use strict";var n=i(0),r=i(34),o=i(70),s=i(57),a=i(56).f;i(22)&&n(n.P+i(162),"Object",{__lookupSetter__:function(t){var e,i=r(this),n=o(t,!0);do{if(e=a(i,n))return e.set}while(i=s(i))}})},function(t,e,i){var n=i(0);n(n.P+n.R,"Map",{toJSON:i(271)("Map")})},function(t,e,i){var n=i(0);n(n.P+n.R,"Set",{toJSON:i(271)("Set")})},function(t,e,i){i(163)("Map")},function(t,e,i){i(163)("Set")},function(t,e,i){i(163)("WeakMap")},function(t,e,i){i(163)("WeakSet")},function(t,e,i){i(164)("Map")},function(t,e,i){i(164)("Set")},function(t,e,i){i(164)("WeakMap")},function(t,e,i){i(164)("WeakSet")},function(t,e,i){var n=i(0);n(n.G,{global:i(8)})},function(t,e,i){var n=i(0);n(n.S,"System",{global:i(8)})},function(t,e,i){var n=i(0),r=i(60);n(n.S,"Error",{isError:function(t){return"Error"===r(t)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{clamp:function(t,e,i){return Math.min(i,Math.max(e,t))}})},function(t,e,i){var n=i(0);n(n.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(t,e,i){var n=i(0),r=180/Math.PI;n(n.S,"Math",{degrees:function(t){return t*r}})},function(t,e,i){var n=i(0),r=i(273),o=i(252);n(n.S,"Math",{fscale:function(t,e,i,n,s){return o(r(t,e,i,n,s))}})},function(t,e,i){var n=i(0);n(n.S,"Math",{iaddh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)+(n>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}})},function(t,e,i){var n=i(0);n(n.S,"Math",{isubh:function(t,e,i,n){var r=t>>>0,o=i>>>0;return(e>>>0)-(n>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}})},function(t,e,i){var n=i(0);n(n.S,"Math",{imulh:function(t,e){var i=+t,n=+e,r=65535&i,o=65535&n,s=i>>16,a=n>>16,l=(s*o>>>0)+(r*o>>>16);return s*a+(l>>16)+((r*a>>>0)+(65535&l)>>16)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(t,e,i){var n=i(0),r=Math.PI/180;n(n.S,"Math",{radians:function(t){return t*r}})},function(t,e,i){var n=i(0);n(n.S,"Math",{scale:i(273)})},function(t,e,i){var n=i(0);n(n.S,"Math",{umulh:function(t,e){var i=+t,n=+e,r=65535&i,o=65535&n,s=i>>>16,a=n>>>16,l=(s*o>>>0)+(r*o>>>16);return s*a+(l>>>16)+((r*a>>>0)+(65535&l)>>>16)}})},function(t,e,i){var n=i(0);n(n.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},function(t,e,i){"use strict";var n=i(0),r=i(58),o=i(8),s=i(136),a=i(260);n(n.P+n.R,"Promise",{finally:function(t){var e=s(this,r.Promise||o.Promise),i="function"==typeof t;return this.then(i?function(i){return a(e,t()).then(function(){return i})}:t,i?function(i){return a(e,t()).then(function(){throw i})}:t)}})},function(t,e,i){"use strict";var n=i(0),r=i(209),o=i(259);n(n.S,"Promise",{try:function(t){var e=r.f(this),i=o(t);return(i.e?e.reject:e.resolve)(i.v),e.promise}})},function(t,e,i){var n=i(79),r=i(6),o=n.key,s=n.set;n.exp({defineMetadata:function(t,e,i,n){s(t,e,r(i),o(n))}})},function(t,e,i){var n=i(79),r=i(6),o=n.key,s=n.map,a=n.store;n.exp({deleteMetadata:function(t,e){var i=arguments.length<3?void 0:o(arguments[2]),n=s(r(e),i,!1);if(void 0===n||!n.delete(t))return!1;if(n.size)return!0;var l=a.get(e);return l.delete(i),!!l.size||a.delete(e)}})},function(t,e,i){var n=i(79),r=i(6),o=i(57),s=n.has,a=n.get,l=n.key,u=function(t,e,i){if(s(t,e,i))return a(t,e,i);var n=o(e);return null!==n?u(t,n,i):void 0};n.exp({getMetadata:function(t,e){return u(t,r(e),arguments.length<3?void 0:l(arguments[2]))}})},function(t,e,i){var n=i(263),r=i(272),o=i(79),s=i(6),a=i(57),l=o.keys,u=o.key,c=function(t,e){var i=l(t,e),o=a(t);if(null===o)return i;var s=c(o,e);return s.length?i.length?r(new n(i.concat(s))):s:i};o.exp({getMetadataKeys:function(t){return c(s(t),arguments.length<2?void 0:u(arguments[1]))}})},function(t,e,i){var n=i(79),r=i(6),o=n.get,s=n.key;n.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,i){var n=i(79),r=i(6),o=n.keys,s=n.key;n.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:s(arguments[1]))}})},function(t,e,i){var n=i(79),r=i(6),o=i(57),s=n.has,a=n.key,l=function(t,e,i){if(s(t,e,i))return!0;var n=o(e);return null!==n&&l(t,n,i)};n.exp({hasMetadata:function(t,e){return l(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},function(t,e,i){var n=i(79),r=i(6),o=n.has,s=n.key;n.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},function(t,e,i){var n=i(79),r=i(6),o=i(43),s=n.key,a=n.set;n.exp({metadata:function(t,e){return function(i,n){a(t,e,(void 0!==n?r:o)(i),s(n))}}})},function(t,e,i){var n=i(0),r=i(208)(),o=i(8).process,s="process"==i(60)(o);n(n.G,{asap:function(t){var e=s&&o.domain;r(e?e.bind(t):t)}})},function(t,e,i){"use strict";var n=i(0),r=i(8),o=i(58),s=i(208)(),a=i(16)("observable"),l=i(43),u=i(6),c=i(99),h=i(101),d=i(48),f=i(100),p=f.RETURN,v=function(t){return null==t?void 0:l(t)},g=function(t){var e=t._c;e&&(t._c=void 0,e())},m=function(t){return void 0===t._o},y=function(t){m(t)||(t._o=void 0,g(t))},_=function(t,e){u(t),this._c=void 0,this._o=t,t=new b(this);try{var i=e(t),n=i;null!=i&&("function"==typeof i.unsubscribe?i=function(){n.unsubscribe()}:l(i),this._c=i)}catch(e){return void t.error(e)}m(this)&&g(this)};_.prototype=h({},{unsubscribe:function(){y(this)}});var b=function(t){this._s=t};b.prototype=h({},{next:function(t){var e=this._s;if(!m(e)){var i=e._o;try{var n=v(i.next);if(n)return n.call(i,t)}catch(t){try{y(e)}finally{throw t}}}},error:function(t){var e=this._s;if(m(e))throw t;var i=e._o;e._o=void 0;try{var n=v(i.error);if(!n)throw t;t=n.call(i,t)}catch(t){try{g(e)}finally{throw t}}return g(e),t},complete:function(t){var e=this._s;if(!m(e)){var i=e._o;e._o=void 0;try{var n=v(i.complete);t=n?n.call(i,t):void 0}catch(t){try{g(e)}finally{throw t}}return g(e),t}}});var x=function(t){c(this,x,"Observable","_f")._f=l(t)};h(x.prototype,{subscribe:function(t){return new _(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||r.Promise)(function(i,n){l(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){n(t),r.unsubscribe()}},error:n,complete:i})})}}),h(x,{from:function(t){var e="function"==typeof this?this:x,i=v(u(t)[a]);if(i){var n=u(i.call(t));return n.constructor===e?n:new e(function(t){return n.subscribe(t)})}return new e(function(e){var i=!1;return s(function(){if(!i){try{if(f(t,!1,function(t){if(e.next(t),i)return p})===p)return}catch(t){if(i)throw t;return void e.error(t)}e.complete()}}),function(){i=!0}})},of:function(){for(var t=0,e=arguments.length,i=new Array(e);t<e;)i[t]=arguments[t++];return new("function"==typeof this?this:x)(function(t){var e=!1;return s(function(){if(!e){for(var n=0;n<i.length;++n)if(t.next(i[n]),e)return;t.complete()}}),function(){e=!0}})}}),d(x.prototype,a,function(){return this}),n(n.G,{Observable:x}),i(98)("Observable")},function(t,e,i){var n=i(8),r=i(0),o=i(159),s=[].slice,a=/MSIE .\./.test(o),l=function(t){return function(e,i){var n=arguments.length>2,r=!!n&&s.call(arguments,2);return t(n?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,i)}};r(r.G+r.B+r.F*a,{setTimeout:l(n.setTimeout),setInterval:l(n.setInterval)})},function(t,e,i){var n=i(0),r=i(207);n(n.G+n.B,{setImmediate:r.set,clearImmediate:r.clear})},function(t,e,i){for(var n=i(204),r=i(94),o=i(49),s=i(8),a=i(48),l=i(115),u=i(16),c=u("iterator"),h=u("toStringTag"),d=l.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),v=0;v<p.length;v++){var g,m=p[v],y=f[m],_=s[m],b=_&&_.prototype;if(b&&(b[c]||a(b,c,d),b[h]||a(b,h,m),l[m]=d,y))for(g in n)b[g]||o(b,g,n[g],!0)}},function(t,e,i){(function(e){!function(e){"use strict";var i,n=Object.prototype,r=n.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag",u="object"==typeof t,c=e.regeneratorRuntime;if(c)u&&(t.exports=c);else{(c=e.regeneratorRuntime=u?t.exports:{}).wrap=b;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",v={},g={};g[s]=function(){return this};var m=Object.getPrototypeOf,y=m&&m(m(I([])));y&&y!==n&&r.call(y,s)&&(g=y);var _=T.prototype=w.prototype=Object.create(g);S.prototype=_.constructor=T,T.constructor=S,T[l]=S.displayName="GeneratorFunction",c.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},c.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,l in t||(t[l]="GeneratorFunction")),t.prototype=Object.create(_),t},c.awrap=function(t){return{__await:t}},E(C.prototype),C.prototype[a]=function(){return this},c.AsyncIterator=C,c.async=function(t,e,i,n){var r=new C(b(t,e,i,n));return c.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},E(_),_[l]="Generator",_[s]=function(){return this},_.toString=function(){return"[object Generator]"},c.keys=function(t){var e=[];for(var i in t)e.push(i);return e.reverse(),function i(){for(;e.length;){var n=e.pop();if(n in t)return i.value=n,i.done=!1,i}return i.done=!0,i}},c.values=I,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=i,this.done=!1,this.delegate=null,this.method="next",this.arg=i,this.tryEntries.forEach(P),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=i)},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,r){return a.type="throw",a.arg=t,e.next=n,r&&(e.method="next",e.arg=i),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var s=this.tryEntries[o],a=s.completion;if("root"===s.tryLoc)return n("end");if(s.tryLoc<=this.prev){var l=r.call(s,"catchLoc"),u=r.call(s,"finallyLoc");if(l&&u){if(this.prev<s.catchLoc)return n(s.catchLoc,!0);if(this.prev<s.finallyLoc)return n(s.finallyLoc)}else if(l){if(this.prev<s.catchLoc)return n(s.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<s.finallyLoc)return n(s.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&r.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var s=o?o.completion:{};return s.type=t,s.arg=e,o?(this.method="next",this.next=o.finallyLoc,v):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),v},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),P(i),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;P(i)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:I(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=i),v}}}function b(t,e,i,n){var r=e&&e.prototype instanceof w?e:w,o=Object.create(r.prototype),s=new k(n||[]);return o._invoke=function(t,e,i){var n=h;return function(r,o){if(n===f)throw new Error("Generator is already running");if(n===p){if("throw"===r)throw o;return L()}for(i.method=r,i.arg=o;;){var s=i.delegate;if(s){var a=O(s,i);if(a){if(a===v)continue;return a}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(n===h)throw n=p,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);n=f;var l=x(t,e,i);if("normal"===l.type){if(n=i.done?p:d,l.arg===v)continue;return{value:l.arg,done:i.done}}"throw"===l.type&&(n=p,i.method="throw",i.arg=l.arg)}}}(t,i,s),o}function x(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}function w(){}function S(){}function T(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function C(t){function i(e,n,o,s){var a=x(t[e],t,n);if("throw"!==a.type){var l=a.arg,u=l.value;return u&&"object"==typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(t){i("next",t,o,s)},function(t){i("throw",t,o,s)}):Promise.resolve(u).then(function(t){l.value=t,o(l)},s)}s(a.arg)}var n;"object"==typeof e.process&&e.process.domain&&(i=e.process.domain.bind(i)),this._invoke=function(t,e){function r(){return new Promise(function(n,r){i(t,e,n,r)})}return n=n?n.then(r,r):r()}}function O(t,e){var n=t.iterator[e.method];if(n===i){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=i,O(t,e),"throw"===e.method))return v;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var r=x(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,v;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=i),e.delegate=null,v):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,v)}function M(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 P(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function I(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,o=function e(){for(;++n<t.length;)if(r.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=i,e.done=!0,e};return o.next=o}}return{next:L}}function L(){return{value:i,done:!0}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,i(53))},function(t,e,i){i(589),t.exports=i(58).RegExp.escape},function(t,e,i){var n=i(0),r=i(590)(/[\\^$*+?.()|[\]{}]/g,"\\$&");n(n.S,"RegExp",{escape:function(t){return r(t)}})},function(t,e){t.exports=function(t,e){var i=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,i)}}},function(t,e,i){"use strict";(function(e,i){var n=Object.freeze({});function r(t){return null==t}function o(t){return null!=t}function s(t){return!0===t}function a(t){return"string"==typeof t||"number"==typeof t||"symbol"==typeof t||"boolean"==typeof t}function l(t){return null!==t&&"object"==typeof t}var u=Object.prototype.toString;function c(t){return"[object Object]"===u.call(t)}function h(t){var e=parseFloat(String(t));return e>=0&&Math.floor(e)===e&&isFinite(t)}function d(t){return o(t)&&"function"==typeof t.then&&"function"==typeof t.catch}function f(t){return null==t?"":Array.isArray(t)||c(t)&&t.toString===u?JSON.stringify(t,null,2):String(t)}function p(t){var e=parseFloat(t);return isNaN(e)?t:e}function v(t,e){for(var i=Object.create(null),n=t.split(","),r=0;r<n.length;r++)i[n[r]]=!0;return e?function(t){return i[t.toLowerCase()]}:function(t){return i[t]}}var g=v("slot,component",!0),m=v("key,ref,slot,slot-scope,is");function y(t,e){if(t.length){var i=t.indexOf(e);if(i>-1)return t.splice(i,1)}}var _=Object.prototype.hasOwnProperty;function b(t,e){return _.call(t,e)}function x(t){var e=Object.create(null);return function(i){return e[i]||(e[i]=t(i))}}var w=/-(\w)/g,S=x(function(t){return t.replace(w,function(t,e){return e?e.toUpperCase():""})}),T=x(function(t){return t.charAt(0).toUpperCase()+t.slice(1)}),E=/\B([A-Z])/g,C=x(function(t){return t.replace(E,"-$1").toLowerCase()}),O=Function.prototype.bind?function(t,e){return t.bind(e)}:function(t,e){function i(i){var n=arguments.length;return n?n>1?t.apply(e,arguments):t.call(e,i):t.call(e)}return i._length=t.length,i};function M(t,e){e=e||0;for(var i=t.length-e,n=new Array(i);i--;)n[i]=t[i+e];return n}function P(t,e){for(var i in e)t[i]=e[i];return t}function k(t){for(var e={},i=0;i<t.length;i++)t[i]&&P(e,t[i]);return e}function I(t,e,i){}var L=function(t,e,i){return!1},A=function(t){return t};function R(t,e){if(t===e)return!0;var i=l(t),n=l(e);if(!i||!n)return!i&&!n&&String(t)===String(e);try{var r=Array.isArray(t),o=Array.isArray(e);if(r&&o)return t.length===e.length&&t.every(function(t,i){return R(t,e[i])});if(t instanceof Date&&e instanceof Date)return t.getTime()===e.getTime();if(r||o)return!1;var s=Object.keys(t),a=Object.keys(e);return s.length===a.length&&s.every(function(i){return R(t[i],e[i])})}catch(t){return!1}}function F(t,e){for(var i=0;i<t.length;i++)if(R(t[i],e))return i;return-1}function D(t){var e=!1;return function(){e||(e=!0,t.apply(this,arguments))}}var j="data-server-rendered",N=["component","directive","filter"],$=["beforeCreate","created","beforeMount","mounted","beforeUpdate","updated","beforeDestroy","destroyed","activated","deactivated","errorCaptured","serverPrefetch"],G={optionMergeStrategies:Object.create(null),silent:!1,productionTip:!1,devtools:!1,performance:!1,errorHandler:null,warnHandler:null,ignoredElements:[],keyCodes:Object.create(null),isReservedTag:L,isReservedAttr:L,isUnknownElement:L,getTagNamespace:I,parsePlatformTagName:A,mustUseProp:L,async:!0,_lifecycleHooks:$},z=/a-zA-Z\u00B7\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u037D\u037F-\u1FFF\u200C-\u200D\u203F-\u2040\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD/;function B(t,e,i,n){Object.defineProperty(t,e,{value:i,enumerable:!!n,writable:!0,configurable:!0})}var Y,V=new RegExp("[^"+z.source+".$_\\d]"),W="__proto__"in{},H="undefined"!=typeof window,U="undefined"!=typeof WXEnvironment&&!!WXEnvironment.platform,X=U&&WXEnvironment.platform.toLowerCase(),q=H&&window.navigator.userAgent.toLowerCase(),K=q&&/msie|trident/.test(q),Z=q&&q.indexOf("msie 9.0")>0,J=q&&q.indexOf("edge/")>0,Q=(q&&q.indexOf("android"),q&&/iphone|ipad|ipod|ios/.test(q)||"ios"===X),tt=(q&&/chrome\/\d+/.test(q),q&&/phantomjs/.test(q),q&&q.match(/firefox\/(\d+)/)),et={}.watch,it=!1;if(H)try{var nt={};Object.defineProperty(nt,"passive",{get:function(){it=!0}}),window.addEventListener("test-passive",null,nt)}catch(n){}var rt=function(){return void 0===Y&&(Y=!H&&!U&&void 0!==e&&e.process&&"server"===e.process.env.VUE_ENV),Y},ot=H&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function st(t){return"function"==typeof t&&/native code/.test(t.toString())}var at,lt="undefined"!=typeof Symbol&&st(Symbol)&&"undefined"!=typeof Reflect&&st(Reflect.ownKeys);at="undefined"!=typeof Set&&st(Set)?Set:function(){function t(){this.set=Object.create(null)}return t.prototype.has=function(t){return!0===this.set[t]},t.prototype.add=function(t){this.set[t]=!0},t.prototype.clear=function(){this.set=Object.create(null)},t}();var ut=I,ct=0,ht=function(){this.id=ct++,this.subs=[]};ht.prototype.addSub=function(t){this.subs.push(t)},ht.prototype.removeSub=function(t){y(this.subs,t)},ht.prototype.depend=function(){ht.target&&ht.target.addDep(this)},ht.prototype.notify=function(){for(var t=this.subs.slice(),e=0,i=t.length;e<i;e++)t[e].update()},ht.target=null;var dt=[];function ft(t){dt.push(t),ht.target=t}function pt(){dt.pop(),ht.target=dt[dt.length-1]}var vt=function(t,e,i,n,r,o,s,a){this.tag=t,this.data=e,this.children=i,this.text=n,this.elm=r,this.ns=void 0,this.context=o,this.fnContext=void 0,this.fnOptions=void 0,this.fnScopeId=void 0,this.key=e&&e.key,this.componentOptions=s,this.componentInstance=void 0,this.parent=void 0,this.raw=!1,this.isStatic=!1,this.isRootInsert=!0,this.isComment=!1,this.isCloned=!1,this.isOnce=!1,this.asyncFactory=a,this.asyncMeta=void 0,this.isAsyncPlaceholder=!1},gt={child:{configurable:!0}};gt.child.get=function(){return this.componentInstance},Object.defineProperties(vt.prototype,gt);var mt=function(t){void 0===t&&(t="");var e=new vt;return e.text=t,e.isComment=!0,e};function yt(t){return new vt(void 0,void 0,void 0,String(t))}function _t(t){var e=new vt(t.tag,t.data,t.children&&t.children.slice(),t.text,t.elm,t.context,t.componentOptions,t.asyncFactory);return e.ns=t.ns,e.isStatic=t.isStatic,e.key=t.key,e.isComment=t.isComment,e.fnContext=t.fnContext,e.fnOptions=t.fnOptions,e.fnScopeId=t.fnScopeId,e.asyncMeta=t.asyncMeta,e.isCloned=!0,e}var bt=Array.prototype,xt=Object.create(bt);["push","pop","shift","unshift","splice","sort","reverse"].forEach(function(t){var e=bt[t];B(xt,t,function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];var r,o=e.apply(this,i),s=this.__ob__;switch(t){case"push":case"unshift":r=i;break;case"splice":r=i.slice(2)}return r&&s.observeArray(r),s.dep.notify(),o})});var wt=Object.getOwnPropertyNames(xt),St=!0;function Tt(t){St=t}var Et=function(t){var e;this.value=t,this.dep=new ht,this.vmCount=0,B(t,"__ob__",this),Array.isArray(t)?(W?(e=xt,t.__proto__=e):function(t,e,i){for(var n=0,r=i.length;n<r;n++){var o=i[n];B(t,o,e[o])}}(t,xt,wt),this.observeArray(t)):this.walk(t)};function Ct(t,e){var i;if(l(t)&&!(t instanceof vt))return b(t,"__ob__")&&t.__ob__ instanceof Et?i=t.__ob__:St&&!rt()&&(Array.isArray(t)||c(t))&&Object.isExtensible(t)&&!t._isVue&&(i=new Et(t)),e&&i&&i.vmCount++,i}function Ot(t,e,i,n,r){var o=new ht,s=Object.getOwnPropertyDescriptor(t,e);if(!s||!1!==s.configurable){var a=s&&s.get,l=s&&s.set;a&&!l||2!==arguments.length||(i=t[e]);var u=!r&&Ct(i);Object.defineProperty(t,e,{enumerable:!0,configurable:!0,get:function(){var e=a?a.call(t):i;return ht.target&&(o.depend(),u&&(u.dep.depend(),Array.isArray(e)&&function t(e){for(var i=void 0,n=0,r=e.length;n<r;n++)(i=e[n])&&i.__ob__&&i.__ob__.dep.depend(),Array.isArray(i)&&t(i)}(e))),e},set:function(e){var n=a?a.call(t):i;e===n||e!=e&&n!=n||a&&!l||(l?l.call(t,e):i=e,u=!r&&Ct(e),o.notify())}})}}function Mt(t,e,i){if(Array.isArray(t)&&h(e))return t.length=Math.max(t.length,e),t.splice(e,1,i),i;if(e in t&&!(e in Object.prototype))return t[e]=i,i;var n=t.__ob__;return t._isVue||n&&n.vmCount?i:n?(Ot(n.value,e,i),n.dep.notify(),i):(t[e]=i,i)}function Pt(t,e){if(Array.isArray(t)&&h(e))t.splice(e,1);else{var i=t.__ob__;t._isVue||i&&i.vmCount||b(t,e)&&(delete t[e],i&&i.dep.notify())}}Et.prototype.walk=function(t){for(var e=Object.keys(t),i=0;i<e.length;i++)Ot(t,e[i])},Et.prototype.observeArray=function(t){for(var e=0,i=t.length;e<i;e++)Ct(t[e])};var kt=G.optionMergeStrategies;function It(t,e){if(!e)return t;for(var i,n,r,o=lt?Reflect.ownKeys(e):Object.keys(e),s=0;s<o.length;s++)"__ob__"!==(i=o[s])&&(n=t[i],r=e[i],b(t,i)?n!==r&&c(n)&&c(r)&&It(n,r):Mt(t,i,r));return t}function Lt(t,e,i){return i?function(){var n="function"==typeof e?e.call(i,i):e,r="function"==typeof t?t.call(i,i):t;return n?It(n,r):r}:e?t?function(){return It("function"==typeof e?e.call(this,this):e,"function"==typeof t?t.call(this,this):t)}:e:t}function At(t,e){var i=e?t?t.concat(e):Array.isArray(e)?e:[e]:t;return i?function(t){for(var e=[],i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e}(i):i}function Rt(t,e,i,n){var r=Object.create(t||null);return e?P(r,e):r}kt.data=function(t,e,i){return i?Lt(t,e,i):e&&"function"!=typeof e?t:Lt(t,e)},$.forEach(function(t){kt[t]=At}),N.forEach(function(t){kt[t+"s"]=Rt}),kt.watch=function(t,e,i,n){if(t===et&&(t=void 0),e===et&&(e=void 0),!e)return Object.create(t||null);if(!t)return e;var r={};for(var o in P(r,t),e){var s=r[o],a=e[o];s&&!Array.isArray(s)&&(s=[s]),r[o]=s?s.concat(a):Array.isArray(a)?a:[a]}return r},kt.props=kt.methods=kt.inject=kt.computed=function(t,e,i,n){if(!t)return e;var r=Object.create(null);return P(r,t),e&&P(r,e),r},kt.provide=Lt;var Ft=function(t,e){return void 0===e?t:e};function Dt(t,e,i){if("function"==typeof e&&(e=e.options),function(t,e){var i=t.props;if(i){var n,r,o={};if(Array.isArray(i))for(n=i.length;n--;)"string"==typeof(r=i[n])&&(o[S(r)]={type:null});else if(c(i))for(var s in i)r=i[s],o[S(s)]=c(r)?r:{type:r};t.props=o}}(e),function(t,e){var i=t.inject;if(i){var n=t.inject={};if(Array.isArray(i))for(var r=0;r<i.length;r++)n[i[r]]={from:i[r]};else if(c(i))for(var o in i){var s=i[o];n[o]=c(s)?P({from:o},s):{from:s}}}}(e),function(t){var e=t.directives;if(e)for(var i in e){var n=e[i];"function"==typeof n&&(e[i]={bind:n,update:n})}}(e),!e._base&&(e.extends&&(t=Dt(t,e.extends,i)),e.mixins))for(var n=0,r=e.mixins.length;n<r;n++)t=Dt(t,e.mixins[n],i);var o,s={};for(o in t)a(o);for(o in e)b(t,o)||a(o);function a(n){var r=kt[n]||Ft;s[n]=r(t[n],e[n],i,n)}return s}function jt(t,e,i,n){if("string"==typeof i){var r=t[e];if(b(r,i))return r[i];var o=S(i);if(b(r,o))return r[o];var s=T(o);return b(r,s)?r[s]:r[i]||r[o]||r[s]}}function Nt(t,e,i,n){var r=e[t],o=!b(i,t),s=i[t],a=zt(Boolean,r.type);if(a>-1)if(o&&!b(r,"default"))s=!1;else if(""===s||s===C(t)){var l=zt(String,r.type);(l<0||a<l)&&(s=!0)}if(void 0===s){s=function(t,e,i){if(b(e,"default")){var n=e.default;return t&&t.$options.propsData&&void 0===t.$options.propsData[i]&&void 0!==t._props[i]?t._props[i]:"function"==typeof n&&"Function"!==$t(e.type)?n.call(t):n}}(n,r,t);var u=St;Tt(!0),Ct(s),Tt(u)}return s}function $t(t){var e=t&&t.toString().match(/^\s*function (\w+)/);return e?e[1]:""}function Gt(t,e){return $t(t)===$t(e)}function zt(t,e){if(!Array.isArray(e))return Gt(e,t)?0:-1;for(var i=0,n=e.length;i<n;i++)if(Gt(e[i],t))return i;return-1}function Bt(t,e,i){ft();try{if(e)for(var n=e;n=n.$parent;){var r=n.$options.errorCaptured;if(r)for(var o=0;o<r.length;o++)try{if(!1===r[o].call(n,t,e,i))return}catch(t){Vt(t,n,"errorCaptured hook")}}Vt(t,e,i)}finally{pt()}}function Yt(t,e,i,n,r){var o;try{(o=i?t.apply(e,i):t.call(e))&&!o._isVue&&d(o)&&!o._handled&&(o.catch(function(t){return Bt(t,n,r+" (Promise/async)")}),o._handled=!0)}catch(t){Bt(t,n,r)}return o}function Vt(t,e,i){if(G.errorHandler)try{return G.errorHandler.call(null,t,e,i)}catch(e){e!==t&&Wt(e,null,"config.errorHandler")}Wt(t,e,i)}function Wt(t,e,i){if(!H&&!U||"undefined"==typeof console)throw t;console.error(t)}var Ht,Ut=!1,Xt=[],qt=!1;function Kt(){qt=!1;var t=Xt.slice(0);Xt.length=0;for(var e=0;e<t.length;e++)t[e]()}if("undefined"!=typeof Promise&&st(Promise)){var Zt=Promise.resolve();Ht=function(){Zt.then(Kt),Q&&setTimeout(I)},Ut=!0}else if(K||"undefined"==typeof MutationObserver||!st(MutationObserver)&&"[object MutationObserverConstructor]"!==MutationObserver.toString())Ht=void 0!==i&&st(i)?function(){i(Kt)}:function(){setTimeout(Kt,0)};else{var Jt=1,Qt=new MutationObserver(Kt),te=document.createTextNode(String(Jt));Qt.observe(te,{characterData:!0}),Ht=function(){Jt=(Jt+1)%2,te.data=String(Jt)},Ut=!0}function ee(t,e){var i;if(Xt.push(function(){if(t)try{t.call(e)}catch(t){Bt(t,e,"nextTick")}else i&&i(e)}),qt||(qt=!0,Ht()),!t&&"undefined"!=typeof Promise)return new Promise(function(t){i=t})}var ie=new at;function ne(t){!function t(e,i){var n,r,o=Array.isArray(e);if(!(!o&&!l(e)||Object.isFrozen(e)||e instanceof vt)){if(e.__ob__){var s=e.__ob__.dep.id;if(i.has(s))return;i.add(s)}if(o)for(n=e.length;n--;)t(e[n],i);else for(n=(r=Object.keys(e)).length;n--;)t(e[r[n]],i)}}(t,ie),ie.clear()}var re=x(function(t){var e="&"===t.charAt(0),i="~"===(t=e?t.slice(1):t).charAt(0),n="!"===(t=i?t.slice(1):t).charAt(0);return{name:t=n?t.slice(1):t,once:i,capture:n,passive:e}});function oe(t,e){function i(){var t=arguments,n=i.fns;if(!Array.isArray(n))return Yt(n,null,arguments,e,"v-on handler");for(var r=n.slice(),o=0;o<r.length;o++)Yt(r[o],null,t,e,"v-on handler")}return i.fns=t,i}function se(t,e,i,n,o,a){var l,u,c,h;for(l in t)u=t[l],c=e[l],h=re(l),r(u)||(r(c)?(r(u.fns)&&(u=t[l]=oe(u,a)),s(h.once)&&(u=t[l]=o(h.name,u,h.capture)),i(h.name,u,h.capture,h.passive,h.params)):u!==c&&(c.fns=u,t[l]=c));for(l in e)r(t[l])&&n((h=re(l)).name,e[l],h.capture)}function ae(t,e,i){var n;t instanceof vt&&(t=t.data.hook||(t.data.hook={}));var a=t[e];function l(){i.apply(this,arguments),y(n.fns,l)}r(a)?n=oe([l]):o(a.fns)&&s(a.merged)?(n=a).fns.push(l):n=oe([a,l]),n.merged=!0,t[e]=n}function le(t,e,i,n,r){if(o(e)){if(b(e,i))return t[i]=e[i],r||delete e[i],!0;if(b(e,n))return t[i]=e[n],r||delete e[n],!0}return!1}function ue(t){return a(t)?[yt(t)]:Array.isArray(t)?function t(e,i){var n,l,u,c,h=[];for(n=0;n<e.length;n++)r(l=e[n])||"boolean"==typeof l||(c=h[u=h.length-1],Array.isArray(l)?l.length>0&&(ce((l=t(l,(i||"")+"_"+n))[0])&&ce(c)&&(h[u]=yt(c.text+l[0].text),l.shift()),h.push.apply(h,l)):a(l)?ce(c)?h[u]=yt(c.text+l):""!==l&&h.push(yt(l)):ce(l)&&ce(c)?h[u]=yt(c.text+l.text):(s(e._isVList)&&o(l.tag)&&r(l.key)&&o(i)&&(l.key="__vlist"+i+"_"+n+"__"),h.push(l)));return h}(t):void 0}function ce(t){return o(t)&&o(t.text)&&!1===t.isComment}function he(t,e){if(t){for(var i=Object.create(null),n=lt?Reflect.ownKeys(t):Object.keys(t),r=0;r<n.length;r++){var o=n[r];if("__ob__"!==o){for(var s=t[o].from,a=e;a;){if(a._provided&&b(a._provided,s)){i[o]=a._provided[s];break}a=a.$parent}if(!a&&"default"in t[o]){var l=t[o].default;i[o]="function"==typeof l?l.call(e):l}}}return i}}function de(t,e){if(!t||!t.length)return{};for(var i={},n=0,r=t.length;n<r;n++){var o=t[n],s=o.data;if(s&&s.attrs&&s.attrs.slot&&delete s.attrs.slot,o.context!==e&&o.fnContext!==e||!s||null==s.slot)(i.default||(i.default=[])).push(o);else{var a=s.slot,l=i[a]||(i[a]=[]);"template"===o.tag?l.push.apply(l,o.children||[]):l.push(o)}}for(var u in i)i[u].every(fe)&&delete i[u];return i}function fe(t){return t.isComment&&!t.asyncFactory||" "===t.text}function pe(t,e,i){var r,o=Object.keys(e).length>0,s=t?!!t.$stable:!o,a=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(s&&i&&i!==n&&a===i.$key&&!o&&!i.$hasNormal)return i;for(var l in r={},t)t[l]&&"$"!==l[0]&&(r[l]=ve(e,l,t[l]))}else r={};for(var u in e)u in r||(r[u]=ge(e,u));return t&&Object.isExtensible(t)&&(t._normalized=r),B(r,"$stable",s),B(r,"$key",a),B(r,"$hasNormal",o),r}function ve(t,e,i){var n=function(){var t=arguments.length?i.apply(null,arguments):i({});return(t=t&&"object"==typeof t&&!Array.isArray(t)?[t]:ue(t))&&(0===t.length||1===t.length&&t[0].isComment)?void 0:t};return i.proxy&&Object.defineProperty(t,e,{get:n,enumerable:!0,configurable:!0}),n}function ge(t,e){return function(){return t[e]}}function me(t,e){var i,n,r,s,a;if(Array.isArray(t)||"string"==typeof t)for(i=new Array(t.length),n=0,r=t.length;n<r;n++)i[n]=e(t[n],n);else if("number"==typeof t)for(i=new Array(t),n=0;n<t;n++)i[n]=e(n+1,n);else if(l(t))if(lt&&t[Symbol.iterator]){i=[];for(var u=t[Symbol.iterator](),c=u.next();!c.done;)i.push(e(c.value,i.length)),c=u.next()}else for(s=Object.keys(t),i=new Array(s.length),n=0,r=s.length;n<r;n++)a=s[n],i[n]=e(t[a],a,n);return o(i)||(i=[]),i._isVList=!0,i}function ye(t,e,i,n){var r,o=this.$scopedSlots[t];o?(i=i||{},n&&(i=P(P({},n),i)),r=o(i)||e):r=this.$slots[t]||e;var s=i&&i.slot;return s?this.$createElement("template",{slot:s},r):r}function _e(t){return jt(this.$options,"filters",t)||A}function be(t,e){return Array.isArray(t)?-1===t.indexOf(e):t!==e}function xe(t,e,i,n,r){var o=G.keyCodes[e]||i;return r&&n&&!G.keyCodes[e]?be(r,n):o?be(o,t):n?C(n)!==e:void 0}function we(t,e,i,n,r){if(i&&l(i)){var o;Array.isArray(i)&&(i=k(i));var s=function(s){if("class"===s||"style"===s||m(s))o=t;else{var a=t.attrs&&t.attrs.type;o=n||G.mustUseProp(e,a,s)?t.domProps||(t.domProps={}):t.attrs||(t.attrs={})}var l=S(s),u=C(s);l in o||u in o||(o[s]=i[s],r&&((t.on||(t.on={}))["update:"+s]=function(t){i[s]=t}))};for(var a in i)s(a)}return t}function Se(t,e){var i=this._staticTrees||(this._staticTrees=[]),n=i[t];return n&&!e?n:(Ee(n=i[t]=this.$options.staticRenderFns[t].call(this._renderProxy,null,this),"__static__"+t,!1),n)}function Te(t,e,i){return Ee(t,"__once__"+e+(i?"_"+i:""),!0),t}function Ee(t,e,i){if(Array.isArray(t))for(var n=0;n<t.length;n++)t[n]&&"string"!=typeof t[n]&&Ce(t[n],e+"_"+n,i);else Ce(t,e,i)}function Ce(t,e,i){t.isStatic=!0,t.key=e,t.isOnce=i}function Oe(t,e){if(e&&c(e)){var i=t.on=t.on?P({},t.on):{};for(var n in e){var r=i[n],o=e[n];i[n]=r?[].concat(r,o):o}}return t}function Me(t,e,i,n){e=e||{$stable:!i};for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?Me(o,e,i):o&&(o.proxy&&(o.fn.proxy=!0),e[o.key]=o.fn)}return n&&(e.$key=n),e}function Pe(t,e){for(var i=0;i<e.length;i+=2){var n=e[i];"string"==typeof n&&n&&(t[e[i]]=e[i+1])}return t}function ke(t,e){return"string"==typeof t?e+t:t}function Ie(t){t._o=Te,t._n=p,t._s=f,t._l=me,t._t=ye,t._q=R,t._i=F,t._m=Se,t._f=_e,t._k=xe,t._b=we,t._v=yt,t._e=mt,t._u=Me,t._g=Oe,t._d=Pe,t._p=ke}function Le(t,e,i,r,o){var a,l=this,u=o.options;b(r,"_uid")?(a=Object.create(r))._original=r:(a=r,r=r._original);var c=s(u._compiled),h=!c;this.data=t,this.props=e,this.children=i,this.parent=r,this.listeners=t.on||n,this.injections=he(u.inject,r),this.slots=function(){return l.$slots||pe(t.scopedSlots,l.$slots=de(i,r)),l.$slots},Object.defineProperty(this,"scopedSlots",{enumerable:!0,get:function(){return pe(t.scopedSlots,this.slots())}}),c&&(this.$options=u,this.$slots=this.slots(),this.$scopedSlots=pe(t.scopedSlots,this.$slots)),u._scopeId?this._c=function(t,e,i,n){var o=ze(a,t,e,i,n,h);return o&&!Array.isArray(o)&&(o.fnScopeId=u._scopeId,o.fnContext=r),o}:this._c=function(t,e,i,n){return ze(a,t,e,i,n,h)}}function Ae(t,e,i,n,r){var o=_t(t);return o.fnContext=i,o.fnOptions=n,e.slot&&((o.data||(o.data={})).slot=e.slot),o}function Re(t,e){for(var i in e)t[S(i)]=e[i]}Ie(Le.prototype);var Fe={init:function(t,e){if(t.componentInstance&&!t.componentInstance._isDestroyed&&t.data.keepAlive){var i=t;Fe.prepatch(i,i)}else(t.componentInstance=function(t,e){var i={_isComponent:!0,_parentVnode:t,parent:Ze},n=t.data.inlineTemplate;return o(n)&&(i.render=n.render,i.staticRenderFns=n.staticRenderFns),new t.componentOptions.Ctor(i)}(t)).$mount(e?t.elm:void 0,e)},prepatch:function(t,e){var i=e.componentOptions;!function(t,e,i,r,o){var s=r.data.scopedSlots,a=t.$scopedSlots,l=!!(s&&!s.$stable||a!==n&&!a.$stable||s&&t.$scopedSlots.$key!==s.$key),u=!!(o||t.$options._renderChildren||l);if(t.$options._parentVnode=r,t.$vnode=r,t._vnode&&(t._vnode.parent=r),t.$options._renderChildren=o,t.$attrs=r.data.attrs||n,t.$listeners=i||n,e&&t.$options.props){Tt(!1);for(var c=t._props,h=t.$options._propKeys||[],d=0;d<h.length;d++){var f=h[d],p=t.$options.props;c[f]=Nt(f,p,e,t)}Tt(!0),t.$options.propsData=e}i=i||n;var v=t.$options._parentListeners;t.$options._parentListeners=i,Ke(t,i,v),u&&(t.$slots=de(o,r.context),t.$forceUpdate())}(e.componentInstance=t.componentInstance,i.propsData,i.listeners,e,i.children)},insert:function(t){var e,i=t.context,n=t.componentInstance;n._isMounted||(n._isMounted=!0,ei(n,"mounted")),t.data.keepAlive&&(i._isMounted?((e=n)._inactive=!1,ni.push(e)):ti(n,!0))},destroy:function(t){var e=t.componentInstance;e._isDestroyed||(t.data.keepAlive?function t(e,i){if(!(i&&(e._directInactive=!0,Qe(e))||e._inactive)){e._inactive=!0;for(var n=0;n<e.$children.length;n++)t(e.$children[n]);ei(e,"deactivated")}}(e,!0):e.$destroy())}},De=Object.keys(Fe);function je(t,e,i,a,u){if(!r(t)){var c=i.$options._base;if(l(t)&&(t=c.extend(t)),"function"==typeof t){var h;if(r(t.cid)&&void 0===(t=function(t,e){if(s(t.error)&&o(t.errorComp))return t.errorComp;if(o(t.resolved))return t.resolved;var i=Ye;if(i&&o(t.owners)&&-1===t.owners.indexOf(i)&&t.owners.push(i),s(t.loading)&&o(t.loadingComp))return t.loadingComp;if(i&&!o(t.owners)){var n=t.owners=[i],a=!0,u=null,c=null;i.$on("hook:destroyed",function(){return y(n,i)});var h=function(t){for(var e=0,i=n.length;e<i;e++)n[e].$forceUpdate();t&&(n.length=0,null!==u&&(clearTimeout(u),u=null),null!==c&&(clearTimeout(c),c=null))},f=D(function(i){t.resolved=Ve(i,e),a?n.length=0:h(!0)}),p=D(function(e){o(t.errorComp)&&(t.error=!0,h(!0))}),v=t(f,p);return l(v)&&(d(v)?r(t.resolved)&&v.then(f,p):d(v.component)&&(v.component.then(f,p),o(v.error)&&(t.errorComp=Ve(v.error,e)),o(v.loading)&&(t.loadingComp=Ve(v.loading,e),0===v.delay?t.loading=!0:u=setTimeout(function(){u=null,r(t.resolved)&&r(t.error)&&(t.loading=!0,h(!1))},v.delay||200)),o(v.timeout)&&(c=setTimeout(function(){c=null,r(t.resolved)&&p(null)},v.timeout)))),a=!1,t.loading?t.loadingComp:t.resolved}}(h=t,c)))return function(t,e,i,n,r){var o=mt();return o.asyncFactory=t,o.asyncMeta={data:e,context:i,children:n,tag:r},o}(h,e,i,a,u);e=e||{},wi(t),o(e.model)&&function(t,e){var i=t.model&&t.model.prop||"value",n=t.model&&t.model.event||"input";(e.attrs||(e.attrs={}))[i]=e.model.value;var r=e.on||(e.on={}),s=r[n],a=e.model.callback;o(s)?(Array.isArray(s)?-1===s.indexOf(a):s!==a)&&(r[n]=[a].concat(s)):r[n]=a}(t.options,e);var f=function(t,e,i){var n=e.options.props;if(!r(n)){var s={},a=t.attrs,l=t.props;if(o(a)||o(l))for(var u in n){var c=C(u);le(s,l,u,c,!0)||le(s,a,u,c,!1)}return s}}(e,t);if(s(t.options.functional))return function(t,e,i,r,s){var a=t.options,l={},u=a.props;if(o(u))for(var c in u)l[c]=Nt(c,u,e||n);else o(i.attrs)&&Re(l,i.attrs),o(i.props)&&Re(l,i.props);var h=new Le(i,l,s,r,t),d=a.render.call(null,h._c,h);if(d instanceof vt)return Ae(d,i,h.parent,a);if(Array.isArray(d)){for(var f=ue(d)||[],p=new Array(f.length),v=0;v<f.length;v++)p[v]=Ae(f[v],i,h.parent,a);return p}}(t,f,e,i,a);var p=e.on;if(e.on=e.nativeOn,s(t.options.abstract)){var v=e.slot;e={},v&&(e.slot=v)}!function(t){for(var e=t.hook||(t.hook={}),i=0;i<De.length;i++){var n=De[i],r=e[n],o=Fe[n];r===o||r&&r._merged||(e[n]=r?Ne(o,r):o)}}(e);var g=t.options.name||u;return new vt("vue-component-"+t.cid+(g?"-"+g:""),e,void 0,void 0,void 0,i,{Ctor:t,propsData:f,listeners:p,tag:u,children:a},h)}}}function Ne(t,e){var i=function(i,n){t(i,n),e(i,n)};return i._merged=!0,i}var $e=1,Ge=2;function ze(t,e,i,n,u,c){return(Array.isArray(i)||a(i))&&(u=n,n=i,i=void 0),s(c)&&(u=Ge),function(t,e,i,n,a){if(o(i)&&o(i.__ob__))return mt();if(o(i)&&o(i.is)&&(e=i.is),!e)return mt();var u,c,h;(Array.isArray(n)&&"function"==typeof n[0]&&((i=i||{}).scopedSlots={default:n[0]},n.length=0),a===Ge?n=ue(n):a===$e&&(n=function(t){for(var e=0;e<t.length;e++)if(Array.isArray(t[e]))return Array.prototype.concat.apply([],t);return t}(n)),"string"==typeof e)?(c=t.$vnode&&t.$vnode.ns||G.getTagNamespace(e),u=G.isReservedTag(e)?new vt(G.parsePlatformTagName(e),i,n,void 0,void 0,t):i&&i.pre||!o(h=jt(t.$options,"components",e))?new vt(e,i,n,void 0,void 0,t):je(h,i,t,n,e)):u=je(e,i,t,n);return Array.isArray(u)?u:o(u)?(o(c)&&function t(e,i,n){if(e.ns=i,"foreignObject"===e.tag&&(i=void 0,n=!0),o(e.children))for(var a=0,l=e.children.length;a<l;a++){var u=e.children[a];o(u.tag)&&(r(u.ns)||s(n)&&"svg"!==u.tag)&&t(u,i,n)}}(u,c),o(i)&&function(t){l(t.style)&&ne(t.style),l(t.class)&&ne(t.class)}(i),u):mt()}(t,e,i,n,u)}var Be,Ye=null;function Ve(t,e){return(t.__esModule||lt&&"Module"===t[Symbol.toStringTag])&&(t=t.default),l(t)?e.extend(t):t}function We(t){return t.isComment&&t.asyncFactory}function He(t){if(Array.isArray(t))for(var e=0;e<t.length;e++){var i=t[e];if(o(i)&&(o(i.componentOptions)||We(i)))return i}}function Ue(t,e){Be.$on(t,e)}function Xe(t,e){Be.$off(t,e)}function qe(t,e){var i=Be;return function n(){null!==e.apply(null,arguments)&&i.$off(t,n)}}function Ke(t,e,i){Be=t,se(e,i||{},Ue,Xe,qe,t),Be=void 0}var Ze=null;function Je(t){var e=Ze;return Ze=t,function(){Ze=e}}function Qe(t){for(;t&&(t=t.$parent);)if(t._inactive)return!0;return!1}function ti(t,e){if(e){if(t._directInactive=!1,Qe(t))return}else if(t._directInactive)return;if(t._inactive||null===t._inactive){t._inactive=!1;for(var i=0;i<t.$children.length;i++)ti(t.$children[i]);ei(t,"activated")}}function ei(t,e){ft();var i=t.$options[e],n=e+" hook";if(i)for(var r=0,o=i.length;r<o;r++)Yt(i[r],t,null,t,n);t._hasHookEvent&&t.$emit("hook:"+e),pt()}var ii=[],ni=[],ri={},oi=!1,si=!1,ai=0,li=0,ui=Date.now;if(H&&!K){var ci=window.performance;ci&&"function"==typeof ci.now&&ui()>document.createEvent("Event").timeStamp&&(ui=function(){return ci.now()})}function hi(){var t,e;for(li=ui(),si=!0,ii.sort(function(t,e){return t.id-e.id}),ai=0;ai<ii.length;ai++)(t=ii[ai]).before&&t.before(),e=t.id,ri[e]=null,t.run();var i=ni.slice(),n=ii.slice();ai=ii.length=ni.length=0,ri={},oi=si=!1,function(t){for(var e=0;e<t.length;e++)t[e]._inactive=!0,ti(t[e],!0)}(i),function(t){for(var e=t.length;e--;){var i=t[e],n=i.vm;n._watcher===i&&n._isMounted&&!n._isDestroyed&&ei(n,"updated")}}(n),ot&&G.devtools&&ot.emit("flush")}var di=0,fi=function(t,e,i,n,r){this.vm=t,r&&(t._watcher=this),t._watchers.push(this),n?(this.deep=!!n.deep,this.user=!!n.user,this.lazy=!!n.lazy,this.sync=!!n.sync,this.before=n.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++di,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new at,this.newDepIds=new at,this.expression="","function"==typeof e?this.getter=e:(this.getter=function(t){if(!V.test(t)){var e=t.split(".");return function(t){for(var i=0;i<e.length;i++){if(!t)return;t=t[e[i]]}return t}}}(e),this.getter||(this.getter=I)),this.value=this.lazy?void 0:this.get()};fi.prototype.get=function(){var t;ft(this);var e=this.vm;try{t=this.getter.call(e,e)}catch(t){if(!this.user)throw t;Bt(t,e,'getter for watcher "'+this.expression+'"')}finally{this.deep&&ne(t),pt(),this.cleanupDeps()}return t},fi.prototype.addDep=function(t){var e=t.id;this.newDepIds.has(e)||(this.newDepIds.add(e),this.newDeps.push(t),this.depIds.has(e)||t.addSub(this))},fi.prototype.cleanupDeps=function(){for(var t=this.deps.length;t--;){var e=this.deps[t];this.newDepIds.has(e.id)||e.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},fi.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():function(t){var e=t.id;if(null==ri[e]){if(ri[e]=!0,si){for(var i=ii.length-1;i>ai&&ii[i].id>t.id;)i--;ii.splice(i+1,0,t)}else ii.push(t);oi||(oi=!0,ee(hi))}}(this)},fi.prototype.run=function(){if(this.active){var t=this.get();if(t!==this.value||l(t)||this.deep){var e=this.value;if(this.value=t,this.user)try{this.cb.call(this.vm,t,e)}catch(t){Bt(t,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,t,e)}}},fi.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fi.prototype.depend=function(){for(var t=this.deps.length;t--;)this.deps[t].depend()},fi.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||y(this.vm._watchers,this);for(var t=this.deps.length;t--;)this.deps[t].removeSub(this);this.active=!1}};var pi={enumerable:!0,configurable:!0,get:I,set:I};function vi(t,e,i){pi.get=function(){return this[e][i]},pi.set=function(t){this[e][i]=t},Object.defineProperty(t,i,pi)}var gi={lazy:!0};function mi(t,e,i){var n=!rt();"function"==typeof i?(pi.get=n?yi(e):_i(i),pi.set=I):(pi.get=i.get?n&&!1!==i.cache?yi(e):_i(i.get):I,pi.set=i.set||I),Object.defineProperty(t,e,pi)}function yi(t){return function(){var e=this._computedWatchers&&this._computedWatchers[t];if(e)return e.dirty&&e.evaluate(),ht.target&&e.depend(),e.value}}function _i(t){return function(){return t.call(this,this)}}function bi(t,e,i,n){return c(i)&&(n=i,i=i.handler),"string"==typeof i&&(i=t[i]),t.$watch(e,i,n)}var xi=0;function wi(t){var e=t.options;if(t.super){var i=wi(t.super);if(i!==t.superOptions){t.superOptions=i;var n=function(t){var e,i=t.options,n=t.sealedOptions;for(var r in i)i[r]!==n[r]&&(e||(e={}),e[r]=i[r]);return e}(t);n&&P(t.extendOptions,n),(e=t.options=Dt(i,t.extendOptions)).name&&(e.components[e.name]=t)}}return e}function Si(t){this._init(t)}function Ti(t){return t&&(t.Ctor.options.name||t.tag)}function Ei(t,e){return Array.isArray(t)?t.indexOf(e)>-1:"string"==typeof t?t.split(",").indexOf(e)>-1:(i=t,"[object RegExp]"===u.call(i)&&t.test(e));var i}function Ci(t,e){var i=t.cache,n=t.keys,r=t._vnode;for(var o in i){var s=i[o];if(s){var a=Ti(s.componentOptions);a&&!e(a)&&Oi(i,o,n,r)}}}function Oi(t,e,i,n){var r=t[e];!r||n&&r.tag===n.tag||r.componentInstance.$destroy(),t[e]=null,y(i,e)}Si.prototype._init=function(t){var e=this;e._uid=xi++,e._isVue=!0,t&&t._isComponent?function(t,e){var i=t.$options=Object.create(t.constructor.options),n=e._parentVnode;i.parent=e.parent,i._parentVnode=n;var r=n.componentOptions;i.propsData=r.propsData,i._parentListeners=r.listeners,i._renderChildren=r.children,i._componentTag=r.tag,e.render&&(i.render=e.render,i.staticRenderFns=e.staticRenderFns)}(e,t):e.$options=Dt(wi(e.constructor),t||{},e),e._renderProxy=e,e._self=e,function(t){var e=t.$options,i=e.parent;if(i&&!e.abstract){for(;i.$options.abstract&&i.$parent;)i=i.$parent;i.$children.push(t)}t.$parent=i,t.$root=i?i.$root:t,t.$children=[],t.$refs={},t._watcher=null,t._inactive=null,t._directInactive=!1,t._isMounted=!1,t._isDestroyed=!1,t._isBeingDestroyed=!1}(e),function(t){t._events=Object.create(null),t._hasHookEvent=!1;var e=t.$options._parentListeners;e&&Ke(t,e)}(e),function(t){t._vnode=null,t._staticTrees=null;var e=t.$options,i=t.$vnode=e._parentVnode,r=i&&i.context;t.$slots=de(e._renderChildren,r),t.$scopedSlots=n,t._c=function(e,i,n,r){return ze(t,e,i,n,r,!1)},t.$createElement=function(e,i,n,r){return ze(t,e,i,n,r,!0)};var o=i&&i.data;Ot(t,"$attrs",o&&o.attrs||n,null,!0),Ot(t,"$listeners",e._parentListeners||n,null,!0)}(e),ei(e,"beforeCreate"),function(t){var e=he(t.$options.inject,t);e&&(Tt(!1),Object.keys(e).forEach(function(i){Ot(t,i,e[i])}),Tt(!0))}(e),function(t){t._watchers=[];var e=t.$options;e.props&&function(t,e){var i=t.$options.propsData||{},n=t._props={},r=t.$options._propKeys=[];t.$parent&&Tt(!1);var o=function(o){r.push(o);var s=Nt(o,e,i,t);Ot(n,o,s),o in t||vi(t,"_props",o)};for(var s in e)o(s);Tt(!0)}(t,e.props),e.methods&&function(t,e){for(var i in t.$options.props,e)t[i]="function"!=typeof e[i]?I:O(e[i],t)}(t,e.methods),e.data?function(t){var e=t.$options.data;c(e=t._data="function"==typeof e?function(t,e){ft();try{return t.call(e,e)}catch(t){return Bt(t,e,"data()"),{}}finally{pt()}}(e,t):e||{})||(e={});for(var i,n=Object.keys(e),r=t.$options.props,o=(t.$options.methods,n.length);o--;){var s=n[o];r&&b(r,s)||36!==(i=(s+"").charCodeAt(0))&&95!==i&&vi(t,"_data",s)}Ct(e,!0)}(t):Ct(t._data={},!0),e.computed&&function(t,e){var i=t._computedWatchers=Object.create(null),n=rt();for(var r in e){var o=e[r],s="function"==typeof o?o:o.get;n||(i[r]=new fi(t,s||I,I,gi)),r in t||mi(t,r,o)}}(t,e.computed),e.watch&&e.watch!==et&&function(t,e){for(var i in e){var n=e[i];if(Array.isArray(n))for(var r=0;r<n.length;r++)bi(t,i,n[r]);else bi(t,i,n)}}(t,e.watch)}(e),function(t){var e=t.$options.provide;e&&(t._provided="function"==typeof e?e.call(t):e)}(e),ei(e,"created"),e.$options.el&&e.$mount(e.$options.el)},function(t){Object.defineProperty(t.prototype,"$data",{get:function(){return this._data}}),Object.defineProperty(t.prototype,"$props",{get:function(){return this._props}}),t.prototype.$set=Mt,t.prototype.$delete=Pt,t.prototype.$watch=function(t,e,i){if(c(e))return bi(this,t,e,i);(i=i||{}).user=!0;var n=new fi(this,t,e,i);if(i.immediate)try{e.call(this,n.value)}catch(t){Bt(t,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(Si),function(t){var e=/^hook:/;t.prototype.$on=function(t,i){var n=this;if(Array.isArray(t))for(var r=0,o=t.length;r<o;r++)n.$on(t[r],i);else(n._events[t]||(n._events[t]=[])).push(i),e.test(t)&&(n._hasHookEvent=!0);return n},t.prototype.$once=function(t,e){var i=this;function n(){i.$off(t,n),e.apply(i,arguments)}return n.fn=e,i.$on(t,n),i},t.prototype.$off=function(t,e){var i=this;if(!arguments.length)return i._events=Object.create(null),i;if(Array.isArray(t)){for(var n=0,r=t.length;n<r;n++)i.$off(t[n],e);return i}var o,s=i._events[t];if(!s)return i;if(!e)return i._events[t]=null,i;for(var a=s.length;a--;)if((o=s[a])===e||o.fn===e){s.splice(a,1);break}return i},t.prototype.$emit=function(t){var e=this._events[t];if(e){e=e.length>1?M(e):e;for(var i=M(arguments,1),n='event handler for "'+t+'"',r=0,o=e.length;r<o;r++)Yt(e[r],this,i,this,n)}return this}}(Si),function(t){t.prototype._update=function(t,e){var i=this,n=i.$el,r=i._vnode,o=Je(i);i._vnode=t,i.$el=r?i.__patch__(r,t):i.__patch__(i.$el,t,e,!1),o(),n&&(n.__vue__=null),i.$el&&(i.$el.__vue__=i),i.$vnode&&i.$parent&&i.$vnode===i.$parent._vnode&&(i.$parent.$el=i.$el)},t.prototype.$forceUpdate=function(){this._watcher&&this._watcher.update()},t.prototype.$destroy=function(){var t=this;if(!t._isBeingDestroyed){ei(t,"beforeDestroy"),t._isBeingDestroyed=!0;var e=t.$parent;!e||e._isBeingDestroyed||t.$options.abstract||y(e.$children,t),t._watcher&&t._watcher.teardown();for(var i=t._watchers.length;i--;)t._watchers[i].teardown();t._data.__ob__&&t._data.__ob__.vmCount--,t._isDestroyed=!0,t.__patch__(t._vnode,null),ei(t,"destroyed"),t.$off(),t.$el&&(t.$el.__vue__=null),t.$vnode&&(t.$vnode.parent=null)}}}(Si),function(t){Ie(t.prototype),t.prototype.$nextTick=function(t){return ee(t,this)},t.prototype._render=function(){var t,e=this,i=e.$options,n=i.render,r=i._parentVnode;r&&(e.$scopedSlots=pe(r.data.scopedSlots,e.$slots,e.$scopedSlots)),e.$vnode=r;try{Ye=e,t=n.call(e._renderProxy,e.$createElement)}catch(i){Bt(i,e,"render"),t=e._vnode}finally{Ye=null}return Array.isArray(t)&&1===t.length&&(t=t[0]),t instanceof vt||(t=mt()),t.parent=r,t}}(Si);var Mi=[String,RegExp,Array],Pi={KeepAlive:{name:"keep-alive",abstract:!0,props:{include:Mi,exclude:Mi,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var t in this.cache)Oi(this.cache,t,this.keys)},mounted:function(){var t=this;this.$watch("include",function(e){Ci(t,function(t){return Ei(e,t)})}),this.$watch("exclude",function(e){Ci(t,function(t){return!Ei(e,t)})})},render:function(){var t=this.$slots.default,e=He(t),i=e&&e.componentOptions;if(i){var n=Ti(i),r=this.include,o=this.exclude;if(r&&(!n||!Ei(r,n))||o&&n&&Ei(o,n))return e;var s=this.cache,a=this.keys,l=null==e.key?i.Ctor.cid+(i.tag?"::"+i.tag:""):e.key;s[l]?(e.componentInstance=s[l].componentInstance,y(a,l),a.push(l)):(s[l]=e,a.push(l),this.max&&a.length>parseInt(this.max)&&Oi(s,a[0],a,this._vnode)),e.data.keepAlive=!0}return e||t&&t[0]}}};!function(t){var e={get:function(){return G}};Object.defineProperty(t,"config",e),t.util={warn:ut,extend:P,mergeOptions:Dt,defineReactive:Ot},t.set=Mt,t.delete=Pt,t.nextTick=ee,t.observable=function(t){return Ct(t),t},t.options=Object.create(null),N.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,P(t.options.components,Pi),function(t){t.use=function(t){var e=this._installedPlugins||(this._installedPlugins=[]);if(e.indexOf(t)>-1)return this;var i=M(arguments,1);return i.unshift(this),"function"==typeof t.install?t.install.apply(t,i):"function"==typeof t&&t.apply(null,i),e.push(t),this}}(t),function(t){t.mixin=function(t){return this.options=Dt(this.options,t),this}}(t),function(t){t.cid=0;var e=1;t.extend=function(t){t=t||{};var i=this,n=i.cid,r=t._Ctor||(t._Ctor={});if(r[n])return r[n];var o=t.name||i.options.name,s=function(t){this._init(t)};return(s.prototype=Object.create(i.prototype)).constructor=s,s.cid=e++,s.options=Dt(i.options,t),s.super=i,s.options.props&&function(t){var e=t.options.props;for(var i in e)vi(t.prototype,"_props",i)}(s),s.options.computed&&function(t){var e=t.options.computed;for(var i in e)mi(t.prototype,i,e[i])}(s),s.extend=i.extend,s.mixin=i.mixin,s.use=i.use,N.forEach(function(t){s[t]=i[t]}),o&&(s.options.components[o]=s),s.superOptions=i.options,s.extendOptions=t,s.sealedOptions=P({},s.options),r[n]=s,s}}(t),function(t){N.forEach(function(e){t[e]=function(t,i){return i?("component"===e&&c(i)&&(i.name=i.name||t,i=this.options._base.extend(i)),"directive"===e&&"function"==typeof i&&(i={bind:i,update:i}),this.options[e+"s"][t]=i,i):this.options[e+"s"][t]}})}(t)}(Si),Object.defineProperty(Si.prototype,"$isServer",{get:rt}),Object.defineProperty(Si.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Si,"FunctionalRenderContext",{value:Le}),Si.version="2.6.11";var ki=v("style,class"),Ii=v("input,textarea,option,select,progress"),Li=function(t,e,i){return"value"===i&&Ii(t)&&"button"!==e||"selected"===i&&"option"===t||"checked"===i&&"input"===t||"muted"===i&&"video"===t},Ai=v("contenteditable,draggable,spellcheck"),Ri=v("events,caret,typing,plaintext-only"),Fi=function(t,e){return Gi(e)||"false"===e?"false":"contenteditable"===t&&Ri(e)?e:"true"},Di=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),ji="http://www.w3.org/1999/xlink",Ni=function(t){return":"===t.charAt(5)&&"xlink"===t.slice(0,5)},$i=function(t){return Ni(t)?t.slice(6,t.length):""},Gi=function(t){return null==t||!1===t};function zi(t,e){return{staticClass:Bi(t.staticClass,e.staticClass),class:o(t.class)?[t.class,e.class]:e.class}}function Bi(t,e){return t?e?t+" "+e:t:e||""}function Yi(t){return Array.isArray(t)?function(t){for(var e,i="",n=0,r=t.length;n<r;n++)o(e=Yi(t[n]))&&""!==e&&(i&&(i+=" "),i+=e);return i}(t):l(t)?function(t){var e="";for(var i in t)t[i]&&(e&&(e+=" "),e+=i);return e}(t):"string"==typeof t?t:""}var Vi={svg:"http://www.w3.org/2000/svg",math:"http://www.w3.org/1998/Math/MathML"},Wi=v("html,body,base,head,link,meta,style,title,address,article,aside,footer,header,h1,h2,h3,h4,h5,h6,hgroup,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,rtc,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,menuitem,summary,content,element,shadow,template,blockquote,iframe,tfoot"),Hi=v("svg,animate,circle,clippath,cursor,defs,desc,ellipse,filter,font-face,foreignObject,g,glyph,image,line,marker,mask,missing-glyph,path,pattern,polygon,polyline,rect,switch,symbol,text,textpath,tspan,use,view",!0),Ui=function(t){return Wi(t)||Hi(t)};function Xi(t){return Hi(t)?"svg":"math"===t?"math":void 0}var qi=Object.create(null),Ki=v("text,number,password,search,email,tel,url");function Zi(t){return"string"==typeof t?document.querySelector(t)||document.createElement("div"):t}var Ji=Object.freeze({createElement:function(t,e){var i=document.createElement(t);return"select"!==t?i:(e.data&&e.data.attrs&&void 0!==e.data.attrs.multiple&&i.setAttribute("multiple","multiple"),i)},createElementNS:function(t,e){return document.createElementNS(Vi[t],e)},createTextNode:function(t){return document.createTextNode(t)},createComment:function(t){return document.createComment(t)},insertBefore:function(t,e,i){t.insertBefore(e,i)},removeChild:function(t,e){t.removeChild(e)},appendChild:function(t,e){t.appendChild(e)},parentNode:function(t){return t.parentNode},nextSibling:function(t){return t.nextSibling},tagName:function(t){return t.tagName},setTextContent:function(t,e){t.textContent=e},setStyleScope:function(t,e){t.setAttribute(e,"")}}),Qi={create:function(t,e){tn(e)},update:function(t,e){t.data.ref!==e.data.ref&&(tn(t,!0),tn(e))},destroy:function(t){tn(t,!0)}};function tn(t,e){var i=t.data.ref;if(o(i)){var n=t.context,r=t.componentInstance||t.elm,s=n.$refs;e?Array.isArray(s[i])?y(s[i],r):s[i]===r&&(s[i]=void 0):t.data.refInFor?Array.isArray(s[i])?s[i].indexOf(r)<0&&s[i].push(r):s[i]=[r]:s[i]=r}}var en=new vt("",{},[]),nn=["create","activate","update","remove","destroy"];function rn(t,e){return t.key===e.key&&(t.tag===e.tag&&t.isComment===e.isComment&&o(t.data)===o(e.data)&&function(t,e){if("input"!==t.tag)return!0;var i,n=o(i=t.data)&&o(i=i.attrs)&&i.type,r=o(i=e.data)&&o(i=i.attrs)&&i.type;return n===r||Ki(n)&&Ki(r)}(t,e)||s(t.isAsyncPlaceholder)&&t.asyncFactory===e.asyncFactory&&r(e.asyncFactory.error))}function on(t,e,i){var n,r,s={};for(n=e;n<=i;++n)o(r=t[n].key)&&(s[r]=n);return s}var sn={create:an,update:an,destroy:function(t){an(t,en)}};function an(t,e){(t.data.directives||e.data.directives)&&function(t,e){var i,n,r,o=t===en,s=e===en,a=un(t.data.directives,t.context),l=un(e.data.directives,e.context),u=[],c=[];for(i in l)n=a[i],r=l[i],n?(r.oldValue=n.value,r.oldArg=n.arg,hn(r,"update",e,t),r.def&&r.def.componentUpdated&&c.push(r)):(hn(r,"bind",e,t),r.def&&r.def.inserted&&u.push(r));if(u.length){var h=function(){for(var i=0;i<u.length;i++)hn(u[i],"inserted",e,t)};o?ae(e,"insert",h):h()}if(c.length&&ae(e,"postpatch",function(){for(var i=0;i<c.length;i++)hn(c[i],"componentUpdated",e,t)}),!o)for(i in a)l[i]||hn(a[i],"unbind",t,t,s)}(t,e)}var ln=Object.create(null);function un(t,e){var i,n,r=Object.create(null);if(!t)return r;for(i=0;i<t.length;i++)(n=t[i]).modifiers||(n.modifiers=ln),r[cn(n)]=n,n.def=jt(e.$options,"directives",n.name);return r}function cn(t){return t.rawName||t.name+"."+Object.keys(t.modifiers||{}).join(".")}function hn(t,e,i,n,r){var o=t.def&&t.def[e];if(o)try{o(i.elm,t,i,n,r)}catch(n){Bt(n,i.context,"directive "+t.name+" "+e+" hook")}}var dn=[Qi,sn];function fn(t,e){var i=e.componentOptions;if(!(o(i)&&!1===i.Ctor.options.inheritAttrs||r(t.data.attrs)&&r(e.data.attrs))){var n,s,a=e.elm,l=t.data.attrs||{},u=e.data.attrs||{};for(n in o(u.__ob__)&&(u=e.data.attrs=P({},u)),u)s=u[n],l[n]!==s&&pn(a,n,s);for(n in(K||J)&&u.value!==l.value&&pn(a,"value",u.value),l)r(u[n])&&(Ni(n)?a.removeAttributeNS(ji,$i(n)):Ai(n)||a.removeAttribute(n))}}function pn(t,e,i){t.tagName.indexOf("-")>-1?vn(t,e,i):Di(e)?Gi(i)?t.removeAttribute(e):(i="allowfullscreen"===e&&"EMBED"===t.tagName?"true":e,t.setAttribute(e,i)):Ai(e)?t.setAttribute(e,Fi(e,i)):Ni(e)?Gi(i)?t.removeAttributeNS(ji,$i(e)):t.setAttributeNS(ji,e,i):vn(t,e,i)}function vn(t,e,i){if(Gi(i))t.removeAttribute(e);else{if(K&&!Z&&"TEXTAREA"===t.tagName&&"placeholder"===e&&""!==i&&!t.__ieph){var n=function(e){e.stopImmediatePropagation(),t.removeEventListener("input",n)};t.addEventListener("input",n),t.__ieph=!0}t.setAttribute(e,i)}}var gn={create:fn,update:fn};function mn(t,e){var i=e.elm,n=e.data,s=t.data;if(!(r(n.staticClass)&&r(n.class)&&(r(s)||r(s.staticClass)&&r(s.class)))){var a=function(t){for(var e=t.data,i=t,n=t;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(e=zi(n.data,e));for(;o(i=i.parent);)i&&i.data&&(e=zi(e,i.data));return function(t,e){return o(t)||o(e)?Bi(t,Yi(e)):""}(e.staticClass,e.class)}(e),l=i._transitionClasses;o(l)&&(a=Bi(a,Yi(l))),a!==i._prevClass&&(i.setAttribute("class",a),i._prevClass=a)}}var yn,_n,bn,xn,wn,Sn,Tn={create:mn,update:mn},En=/[\w).+\-_$\]]/;function Cn(t){var e,i,n,r,o,s=!1,a=!1,l=!1,u=!1,c=0,h=0,d=0,f=0;for(n=0;n<t.length;n++)if(i=e,e=t.charCodeAt(n),s)39===e&&92!==i&&(s=!1);else if(a)34===e&&92!==i&&(a=!1);else if(l)96===e&&92!==i&&(l=!1);else if(u)47===e&&92!==i&&(u=!1);else if(124!==e||124===t.charCodeAt(n+1)||124===t.charCodeAt(n-1)||c||h||d){switch(e){case 34:a=!0;break;case 39:s=!0;break;case 96:l=!0;break;case 40:d++;break;case 41:d--;break;case 91:h++;break;case 93:h--;break;case 123:c++;break;case 125:c--}if(47===e){for(var p=n-1,v=void 0;p>=0&&" "===(v=t.charAt(p));p--);v&&En.test(v)||(u=!0)}}else void 0===r?(f=n+1,r=t.slice(0,n).trim()):g();function g(){(o||(o=[])).push(t.slice(f,n).trim()),f=n+1}if(void 0===r?r=t.slice(0,n).trim():0!==f&&g(),o)for(n=0;n<o.length;n++)r=On(r,o[n]);return r}function On(t,e){var i=e.indexOf("(");if(i<0)return'_f("'+e+'")('+t+")";var n=e.slice(0,i),r=e.slice(i+1);return'_f("'+n+'")('+t+(")"!==r?","+r:r)}function Mn(t,e){console.error("[Vue compiler]: "+t)}function Pn(t,e){return t?t.map(function(t){return t[e]}).filter(function(t){return t}):[]}function kn(t,e,i,n,r){(t.props||(t.props=[])).push($n({name:e,value:i,dynamic:r},n)),t.plain=!1}function In(t,e,i,n,r){(r?t.dynamicAttrs||(t.dynamicAttrs=[]):t.attrs||(t.attrs=[])).push($n({name:e,value:i,dynamic:r},n)),t.plain=!1}function Ln(t,e,i,n){t.attrsMap[e]=i,t.attrsList.push($n({name:e,value:i},n))}function An(t,e,i,n,r,o,s,a){(t.directives||(t.directives=[])).push($n({name:e,rawName:i,value:n,arg:r,isDynamicArg:o,modifiers:s},a)),t.plain=!1}function Rn(t,e,i){return i?"_p("+e+',"'+t+'")':t+e}function Fn(t,e,i,r,o,s,a,l){var u;(r=r||n).right?l?e="("+e+")==='click'?'contextmenu':("+e+")":"click"===e&&(e="contextmenu",delete r.right):r.middle&&(l?e="("+e+")==='click'?'mouseup':("+e+")":"click"===e&&(e="mouseup")),r.capture&&(delete r.capture,e=Rn("!",e,l)),r.once&&(delete r.once,e=Rn("~",e,l)),r.passive&&(delete r.passive,e=Rn("&",e,l)),r.native?(delete r.native,u=t.nativeEvents||(t.nativeEvents={})):u=t.events||(t.events={});var c=$n({value:i.trim(),dynamic:l},a);r!==n&&(c.modifiers=r);var h=u[e];Array.isArray(h)?o?h.unshift(c):h.push(c):u[e]=h?o?[c,h]:[h,c]:c,t.plain=!1}function Dn(t,e,i){var n=jn(t,":"+e)||jn(t,"v-bind:"+e);if(null!=n)return Cn(n);if(!1!==i){var r=jn(t,e);if(null!=r)return JSON.stringify(r)}}function jn(t,e,i){var n;if(null!=(n=t.attrsMap[e]))for(var r=t.attrsList,o=0,s=r.length;o<s;o++)if(r[o].name===e){r.splice(o,1);break}return i&&delete t.attrsMap[e],n}function Nn(t,e){for(var i=t.attrsList,n=0,r=i.length;n<r;n++){var o=i[n];if(e.test(o.name))return i.splice(n,1),o}}function $n(t,e){return e&&(null!=e.start&&(t.start=e.start),null!=e.end&&(t.end=e.end)),t}function Gn(t,e,i){var n=i||{},r=n.number,o="$$v";n.trim&&(o="(typeof $$v === 'string'? $$v.trim(): $$v)"),r&&(o="_n("+o+")");var s=zn(e,o);t.model={value:"("+e+")",expression:JSON.stringify(e),callback:"function ($$v) {"+s+"}"}}function zn(t,e){var i=function(t){if(t=t.trim(),yn=t.length,t.indexOf("[")<0||t.lastIndexOf("]")<yn-1)return(xn=t.lastIndexOf("."))>-1?{exp:t.slice(0,xn),key:'"'+t.slice(xn+1)+'"'}:{exp:t,key:null};for(_n=t,xn=wn=Sn=0;!Yn();)Vn(bn=Bn())?Hn(bn):91===bn&&Wn(bn);return{exp:t.slice(0,wn),key:t.slice(wn+1,Sn)}}(t);return null===i.key?t+"="+e:"$set("+i.exp+", "+i.key+", "+e+")"}function Bn(){return _n.charCodeAt(++xn)}function Yn(){return xn>=yn}function Vn(t){return 34===t||39===t}function Wn(t){var e=1;for(wn=xn;!Yn();)if(Vn(t=Bn()))Hn(t);else if(91===t&&e++,93===t&&e--,0===e){Sn=xn;break}}function Hn(t){for(var e=t;!Yn()&&(t=Bn())!==e;);}var Un,Xn="__r",qn="__c";function Kn(t,e,i){var n=Un;return function r(){null!==e.apply(null,arguments)&&Qn(t,r,i,n)}}var Zn=Ut&&!(tt&&Number(tt[1])<=53);function Jn(t,e,i,n){if(Zn){var r=li,o=e;e=o._wrapper=function(t){if(t.target===t.currentTarget||t.timeStamp>=r||t.timeStamp<=0||t.target.ownerDocument!==document)return o.apply(this,arguments)}}Un.addEventListener(t,e,it?{capture:i,passive:n}:i)}function Qn(t,e,i,n){(n||Un).removeEventListener(t,e._wrapper||e,i)}function tr(t,e){if(!r(t.data.on)||!r(e.data.on)){var i=e.data.on||{},n=t.data.on||{};Un=e.elm,function(t){if(o(t[Xn])){var e=K?"change":"input";t[e]=[].concat(t[Xn],t[e]||[]),delete t[Xn]}o(t[qn])&&(t.change=[].concat(t[qn],t.change||[]),delete t[qn])}(i),se(i,n,Jn,Qn,Kn,e.context),Un=void 0}}var er,ir={create:tr,update:tr};function nr(t,e){if(!r(t.data.domProps)||!r(e.data.domProps)){var i,n,s=e.elm,a=t.data.domProps||{},l=e.data.domProps||{};for(i in o(l.__ob__)&&(l=e.data.domProps=P({},l)),a)i in l||(s[i]="");for(i in l){if(n=l[i],"textContent"===i||"innerHTML"===i){if(e.children&&(e.children.length=0),n===a[i])continue;1===s.childNodes.length&&s.removeChild(s.childNodes[0])}if("value"===i&&"PROGRESS"!==s.tagName){s._value=n;var u=r(n)?"":String(n);rr(s,u)&&(s.value=u)}else if("innerHTML"===i&&Hi(s.tagName)&&r(s.innerHTML)){(er=er||document.createElement("div")).innerHTML="<svg>"+n+"</svg>";for(var c=er.firstChild;s.firstChild;)s.removeChild(s.firstChild);for(;c.firstChild;)s.appendChild(c.firstChild)}else if(n!==a[i])try{s[i]=n}catch(t){}}}}function rr(t,e){return!t.composing&&("OPTION"===t.tagName||function(t,e){var i=!0;try{i=document.activeElement!==t}catch(t){}return i&&t.value!==e}(t,e)||function(t,e){var i=t.value,n=t._vModifiers;if(o(n)){if(n.number)return p(i)!==p(e);if(n.trim)return i.trim()!==e.trim()}return i!==e}(t,e))}var or={create:nr,update:nr},sr=x(function(t){var e={},i=/:(.+)/;return t.split(/;(?![^(]*\))/g).forEach(function(t){if(t){var n=t.split(i);n.length>1&&(e[n[0].trim()]=n[1].trim())}}),e});function ar(t){var e=lr(t.style);return t.staticStyle?P(t.staticStyle,e):e}function lr(t){return Array.isArray(t)?k(t):"string"==typeof t?sr(t):t}var ur,cr=/^--/,hr=/\s*!important$/,dr=function(t,e,i){if(cr.test(e))t.style.setProperty(e,i);else if(hr.test(i))t.style.setProperty(C(e),i.replace(hr,""),"important");else{var n=pr(e);if(Array.isArray(i))for(var r=0,o=i.length;r<o;r++)t.style[n]=i[r];else t.style[n]=i}},fr=["Webkit","Moz","ms"],pr=x(function(t){if(ur=ur||document.createElement("div").style,"filter"!==(t=S(t))&&t in ur)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),i=0;i<fr.length;i++){var n=fr[i]+e;if(n in ur)return n}});function vr(t,e){var i=e.data,n=t.data;if(!(r(i.staticStyle)&&r(i.style)&&r(n.staticStyle)&&r(n.style))){var s,a,l=e.elm,u=n.staticStyle,c=n.normalizedStyle||n.style||{},h=u||c,d=lr(e.data.style)||{};e.data.normalizedStyle=o(d.__ob__)?P({},d):d;var f=function(t,e){for(var i,n={},r=t;r.componentInstance;)(r=r.componentInstance._vnode)&&r.data&&(i=ar(r.data))&&P(n,i);(i=ar(t.data))&&P(n,i);for(var o=t;o=o.parent;)o.data&&(i=ar(o.data))&&P(n,i);return n}(e);for(a in h)r(f[a])&&dr(l,a,"");for(a in f)(s=f[a])!==h[a]&&dr(l,a,null==s?"":s)}}var gr={create:vr,update:vr},mr=/\s+/;function yr(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(mr).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var i=" "+(t.getAttribute("class")||"")+" ";i.indexOf(" "+e+" ")<0&&t.setAttribute("class",(i+e).trim())}}function _r(t,e){if(e&&(e=e.trim()))if(t.classList)e.indexOf(" ")>-1?e.split(mr).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e),t.classList.length||t.removeAttribute("class");else{for(var i=" "+(t.getAttribute("class")||"")+" ",n=" "+e+" ";i.indexOf(n)>=0;)i=i.replace(n," ");(i=i.trim())?t.setAttribute("class",i):t.removeAttribute("class")}}function br(t){if(t){if("object"==typeof t){var e={};return!1!==t.css&&P(e,xr(t.name||"v")),P(e,t),e}return"string"==typeof t?xr(t):void 0}}var xr=x(function(t){return{enterClass:t+"-enter",enterToClass:t+"-enter-to",enterActiveClass:t+"-enter-active",leaveClass:t+"-leave",leaveToClass:t+"-leave-to",leaveActiveClass:t+"-leave-active"}}),wr=H&&!Z,Sr="transition",Tr="animation",Er="transition",Cr="transitionend",Or="animation",Mr="animationend";wr&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Er="WebkitTransition",Cr="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Or="WebkitAnimation",Mr="webkitAnimationEnd"));var Pr=H?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(t){return t()};function kr(t){Pr(function(){Pr(t)})}function Ir(t,e){var i=t._transitionClasses||(t._transitionClasses=[]);i.indexOf(e)<0&&(i.push(e),yr(t,e))}function Lr(t,e){t._transitionClasses&&y(t._transitionClasses,e),_r(t,e)}function Ar(t,e,i){var n=Fr(t,e),r=n.type,o=n.timeout,s=n.propCount;if(!r)return i();var a=r===Sr?Cr:Mr,l=0,u=function(){t.removeEventListener(a,c),i()},c=function(e){e.target===t&&++l>=s&&u()};setTimeout(function(){l<s&&u()},o+1),t.addEventListener(a,c)}var Rr=/\b(transform|all)(,|$)/;function Fr(t,e){var i,n=window.getComputedStyle(t),r=(n[Er+"Delay"]||"").split(", "),o=(n[Er+"Duration"]||"").split(", "),s=Dr(r,o),a=(n[Or+"Delay"]||"").split(", "),l=(n[Or+"Duration"]||"").split(", "),u=Dr(a,l),c=0,h=0;return e===Sr?s>0&&(i=Sr,c=s,h=o.length):e===Tr?u>0&&(i=Tr,c=u,h=l.length):h=(i=(c=Math.max(s,u))>0?s>u?Sr:Tr:null)?i===Sr?o.length:l.length:0,{type:i,timeout:c,propCount:h,hasTransform:i===Sr&&Rr.test(n[Er+"Property"])}}function Dr(t,e){for(;t.length<e.length;)t=t.concat(t);return Math.max.apply(null,e.map(function(e,i){return jr(e)+jr(t[i])}))}function jr(t){return 1e3*Number(t.slice(0,-1).replace(",","."))}function Nr(t,e){var i=t.elm;o(i._leaveCb)&&(i._leaveCb.cancelled=!0,i._leaveCb());var n=br(t.data.transition);if(!r(n)&&!o(i._enterCb)&&1===i.nodeType){for(var s=n.css,a=n.type,u=n.enterClass,c=n.enterToClass,h=n.enterActiveClass,d=n.appearClass,f=n.appearToClass,v=n.appearActiveClass,g=n.beforeEnter,m=n.enter,y=n.afterEnter,_=n.enterCancelled,b=n.beforeAppear,x=n.appear,w=n.afterAppear,S=n.appearCancelled,T=n.duration,E=Ze,C=Ze.$vnode;C&&C.parent;)E=C.context,C=C.parent;var O=!E._isMounted||!t.isRootInsert;if(!O||x||""===x){var M=O&&d?d:u,P=O&&v?v:h,k=O&&f?f:c,I=O&&b||g,L=O&&"function"==typeof x?x:m,A=O&&w||y,R=O&&S||_,F=p(l(T)?T.enter:T),j=!1!==s&&!Z,N=zr(L),$=i._enterCb=D(function(){j&&(Lr(i,k),Lr(i,P)),$.cancelled?(j&&Lr(i,M),R&&R(i)):A&&A(i),i._enterCb=null});t.data.show||ae(t,"insert",function(){var e=i.parentNode,n=e&&e._pending&&e._pending[t.key];n&&n.tag===t.tag&&n.elm._leaveCb&&n.elm._leaveCb(),L&&L(i,$)}),I&&I(i),j&&(Ir(i,M),Ir(i,P),kr(function(){Lr(i,M),$.cancelled||(Ir(i,k),N||(Gr(F)?setTimeout($,F):Ar(i,a,$)))})),t.data.show&&(e&&e(),L&&L(i,$)),j||N||$()}}}function $r(t,e){var i=t.elm;o(i._enterCb)&&(i._enterCb.cancelled=!0,i._enterCb());var n=br(t.data.transition);if(r(n)||1!==i.nodeType)return e();if(!o(i._leaveCb)){var s=n.css,a=n.type,u=n.leaveClass,c=n.leaveToClass,h=n.leaveActiveClass,d=n.beforeLeave,f=n.leave,v=n.afterLeave,g=n.leaveCancelled,m=n.delayLeave,y=n.duration,_=!1!==s&&!Z,b=zr(f),x=p(l(y)?y.leave:y),w=i._leaveCb=D(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[t.key]=null),_&&(Lr(i,c),Lr(i,h)),w.cancelled?(_&&Lr(i,u),g&&g(i)):(e(),v&&v(i)),i._leaveCb=null});m?m(S):S()}function S(){w.cancelled||(!t.data.show&&i.parentNode&&((i.parentNode._pending||(i.parentNode._pending={}))[t.key]=t),d&&d(i),_&&(Ir(i,u),Ir(i,h),kr(function(){Lr(i,u),w.cancelled||(Ir(i,c),b||(Gr(x)?setTimeout(w,x):Ar(i,a,w)))})),f&&f(i,w),_||b||w())}}function Gr(t){return"number"==typeof t&&!isNaN(t)}function zr(t){if(r(t))return!1;var e=t.fns;return o(e)?zr(Array.isArray(e)?e[0]:e):(t._length||t.length)>1}function Br(t,e){!0!==e.data.show&&Nr(e)}var Yr=function(t){var e,i,n={},l=t.modules,u=t.nodeOps;for(e=0;e<nn.length;++e)for(n[nn[e]]=[],i=0;i<l.length;++i)o(l[i][nn[e]])&&n[nn[e]].push(l[i][nn[e]]);function c(t){var e=u.parentNode(t);o(e)&&u.removeChild(e,t)}function h(t,e,i,r,a,l,c){if(o(t.elm)&&o(l)&&(t=l[c]=_t(t)),t.isRootInsert=!a,!function(t,e,i,r){var a=t.data;if(o(a)){var l=o(t.componentInstance)&&a.keepAlive;if(o(a=a.hook)&&o(a=a.init)&&a(t,!1),o(t.componentInstance))return d(t,e),f(i,t.elm,r),s(l)&&function(t,e,i,r){for(var s,a=t;a.componentInstance;)if(o(s=(a=a.componentInstance._vnode).data)&&o(s=s.transition)){for(s=0;s<n.activate.length;++s)n.activate[s](en,a);e.push(a);break}f(i,t.elm,r)}(t,e,i,r),!0}}(t,e,i,r)){var h=t.data,v=t.children,g=t.tag;o(g)?(t.elm=t.ns?u.createElementNS(t.ns,g):u.createElement(g,t),y(t),p(t,v,e),o(h)&&m(t,e),f(i,t.elm,r)):s(t.isComment)?(t.elm=u.createComment(t.text),f(i,t.elm,r)):(t.elm=u.createTextNode(t.text),f(i,t.elm,r))}}function d(t,e){o(t.data.pendingInsert)&&(e.push.apply(e,t.data.pendingInsert),t.data.pendingInsert=null),t.elm=t.componentInstance.$el,g(t)?(m(t,e),y(t)):(tn(t),e.push(t))}function f(t,e,i){o(t)&&(o(i)?u.parentNode(i)===t&&u.insertBefore(t,e,i):u.appendChild(t,e))}function p(t,e,i){if(Array.isArray(e))for(var n=0;n<e.length;++n)h(e[n],i,t.elm,null,!0,e,n);else a(t.text)&&u.appendChild(t.elm,u.createTextNode(String(t.text)))}function g(t){for(;t.componentInstance;)t=t.componentInstance._vnode;return o(t.tag)}function m(t,i){for(var r=0;r<n.create.length;++r)n.create[r](en,t);o(e=t.data.hook)&&(o(e.create)&&e.create(en,t),o(e.insert)&&i.push(t))}function y(t){var e;if(o(e=t.fnScopeId))u.setStyleScope(t.elm,e);else for(var i=t;i;)o(e=i.context)&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e),i=i.parent;o(e=Ze)&&e!==t.context&&e!==t.fnContext&&o(e=e.$options._scopeId)&&u.setStyleScope(t.elm,e)}function _(t,e,i,n,r,o){for(;n<=r;++n)h(i[n],o,t,e,!1,i,n)}function b(t){var e,i,r=t.data;if(o(r))for(o(e=r.hook)&&o(e=e.destroy)&&e(t),e=0;e<n.destroy.length;++e)n.destroy[e](t);if(o(e=t.children))for(i=0;i<t.children.length;++i)b(t.children[i])}function x(t,e,i){for(;e<=i;++e){var n=t[e];o(n)&&(o(n.tag)?(w(n),b(n)):c(n.elm))}}function w(t,e){if(o(e)||o(t.data)){var i,r=n.remove.length+1;for(o(e)?e.listeners+=r:e=function(t,e){function i(){0==--i.listeners&&c(t)}return i.listeners=e,i}(t.elm,r),o(i=t.componentInstance)&&o(i=i._vnode)&&o(i.data)&&w(i,e),i=0;i<n.remove.length;++i)n.remove[i](t,e);o(i=t.data.hook)&&o(i=i.remove)?i(t,e):e()}else c(t.elm)}function S(t,e,i,n){for(var r=i;r<n;r++){var s=e[r];if(o(s)&&rn(t,s))return r}}function T(t,e,i,a,l,c){if(t!==e){o(e.elm)&&o(a)&&(e=a[l]=_t(e));var d=e.elm=t.elm;if(s(t.isAsyncPlaceholder))o(e.asyncFactory.resolved)?O(t.elm,e,i):e.isAsyncPlaceholder=!0;else if(s(e.isStatic)&&s(t.isStatic)&&e.key===t.key&&(s(e.isCloned)||s(e.isOnce)))e.componentInstance=t.componentInstance;else{var f,p=e.data;o(p)&&o(f=p.hook)&&o(f=f.prepatch)&&f(t,e);var v=t.children,m=e.children;if(o(p)&&g(e)){for(f=0;f<n.update.length;++f)n.update[f](t,e);o(f=p.hook)&&o(f=f.update)&&f(t,e)}r(e.text)?o(v)&&o(m)?v!==m&&function(t,e,i,n,s){for(var a,l,c,d=0,f=0,p=e.length-1,v=e[0],g=e[p],m=i.length-1,y=i[0],b=i[m],w=!s;d<=p&&f<=m;)r(v)?v=e[++d]:r(g)?g=e[--p]:rn(v,y)?(T(v,y,n,i,f),v=e[++d],y=i[++f]):rn(g,b)?(T(g,b,n,i,m),g=e[--p],b=i[--m]):rn(v,b)?(T(v,b,n,i,m),w&&u.insertBefore(t,v.elm,u.nextSibling(g.elm)),v=e[++d],b=i[--m]):rn(g,y)?(T(g,y,n,i,f),w&&u.insertBefore(t,g.elm,v.elm),g=e[--p],y=i[++f]):(r(a)&&(a=on(e,d,p)),r(l=o(y.key)?a[y.key]:S(y,e,d,p))?h(y,n,t,v.elm,!1,i,f):rn(c=e[l],y)?(T(c,y,n,i,f),e[l]=void 0,w&&u.insertBefore(t,c.elm,v.elm)):h(y,n,t,v.elm,!1,i,f),y=i[++f]);d>p?_(t,r(i[m+1])?null:i[m+1].elm,i,f,m,n):f>m&&x(e,d,p)}(d,v,m,i,c):o(m)?(o(t.text)&&u.setTextContent(d,""),_(d,null,m,0,m.length-1,i)):o(v)?x(v,0,v.length-1):o(t.text)&&u.setTextContent(d,""):t.text!==e.text&&u.setTextContent(d,e.text),o(p)&&o(f=p.hook)&&o(f=f.postpatch)&&f(t,e)}}}function E(t,e,i){if(s(i)&&o(t.parent))t.parent.data.pendingInsert=e;else for(var n=0;n<e.length;++n)e[n].data.hook.insert(e[n])}var C=v("attrs,class,staticClass,staticStyle,key");function O(t,e,i,n){var r,a=e.tag,l=e.data,u=e.children;if(n=n||l&&l.pre,e.elm=t,s(e.isComment)&&o(e.asyncFactory))return e.isAsyncPlaceholder=!0,!0;if(o(l)&&(o(r=l.hook)&&o(r=r.init)&&r(e,!0),o(r=e.componentInstance)))return d(e,i),!0;if(o(a)){if(o(u))if(t.hasChildNodes())if(o(r=l)&&o(r=r.domProps)&&o(r=r.innerHTML)){if(r!==t.innerHTML)return!1}else{for(var c=!0,h=t.firstChild,f=0;f<u.length;f++){if(!h||!O(h,u[f],i,n)){c=!1;break}h=h.nextSibling}if(!c||h)return!1}else p(e,u,i);if(o(l)){var v=!1;for(var g in l)if(!C(g)){v=!0,m(e,i);break}!v&&l.class&&ne(l.class)}}else t.data!==e.text&&(t.data=e.text);return!0}return function(t,e,i,a){if(!r(e)){var l,c=!1,d=[];if(r(t))c=!0,h(e,d);else{var f=o(t.nodeType);if(!f&&rn(t,e))T(t,e,d,null,null,a);else{if(f){if(1===t.nodeType&&t.hasAttribute(j)&&(t.removeAttribute(j),i=!0),s(i)&&O(t,e,d))return E(e,d,!0),t;l=t,t=new vt(u.tagName(l).toLowerCase(),{},[],void 0,l)}var p=t.elm,v=u.parentNode(p);if(h(e,d,p._leaveCb?null:v,u.nextSibling(p)),o(e.parent))for(var m=e.parent,y=g(e);m;){for(var _=0;_<n.destroy.length;++_)n.destroy[_](m);if(m.elm=e.elm,y){for(var w=0;w<n.create.length;++w)n.create[w](en,m);var S=m.data.hook.insert;if(S.merged)for(var C=1;C<S.fns.length;C++)S.fns[C]()}else tn(m);m=m.parent}o(v)?x([t],0,0):o(t.tag)&&b(t)}}return E(e,d,c),e.elm}o(t)&&b(t)}}({nodeOps:Ji,modules:[gn,Tn,ir,or,gr,H?{create:Br,activate:Br,remove:function(t,e){!0!==t.data.show?$r(t,e):e()}}:{}].concat(dn)});Z&&document.addEventListener("selectionchange",function(){var t=document.activeElement;t&&t.vmodel&&Zr(t,"input")});var Vr={inserted:function(t,e,i,n){"select"===i.tag?(n.elm&&!n.elm._vOptions?ae(i,"postpatch",function(){Vr.componentUpdated(t,e,i)}):Wr(t,e,i.context),t._vOptions=[].map.call(t.options,Xr)):("textarea"===i.tag||Ki(t.type))&&(t._vModifiers=e.modifiers,e.modifiers.lazy||(t.addEventListener("compositionstart",qr),t.addEventListener("compositionend",Kr),t.addEventListener("change",Kr),Z&&(t.vmodel=!0)))},componentUpdated:function(t,e,i){if("select"===i.tag){Wr(t,e,i.context);var n=t._vOptions,r=t._vOptions=[].map.call(t.options,Xr);r.some(function(t,e){return!R(t,n[e])})&&(t.multiple?e.value.some(function(t){return Ur(t,r)}):e.value!==e.oldValue&&Ur(e.value,r))&&Zr(t,"change")}}};function Wr(t,e,i){Hr(t,e,i),(K||J)&&setTimeout(function(){Hr(t,e,i)},0)}function Hr(t,e,i){var n=e.value,r=t.multiple;if(!r||Array.isArray(n)){for(var o,s,a=0,l=t.options.length;a<l;a++)if(s=t.options[a],r)o=F(n,Xr(s))>-1,s.selected!==o&&(s.selected=o);else if(R(Xr(s),n))return void(t.selectedIndex!==a&&(t.selectedIndex=a));r||(t.selectedIndex=-1)}}function Ur(t,e){return e.every(function(e){return!R(e,t)})}function Xr(t){return"_value"in t?t._value:t.value}function qr(t){t.target.composing=!0}function Kr(t){t.target.composing&&(t.target.composing=!1,Zr(t.target,"input"))}function Zr(t,e){var i=document.createEvent("HTMLEvents");i.initEvent(e,!0,!0),t.dispatchEvent(i)}function Jr(t){return!t.componentInstance||t.data&&t.data.transition?t:Jr(t.componentInstance._vnode)}var Qr={model:Vr,show:{bind:function(t,e,i){var n=e.value,r=(i=Jr(i)).data&&i.data.transition,o=t.__vOriginalDisplay="none"===t.style.display?"":t.style.display;n&&r?(i.data.show=!0,Nr(i,function(){t.style.display=o})):t.style.display=n?o:"none"},update:function(t,e,i){var n=e.value;!n!=!e.oldValue&&((i=Jr(i)).data&&i.data.transition?(i.data.show=!0,n?Nr(i,function(){t.style.display=t.__vOriginalDisplay}):$r(i,function(){t.style.display="none"})):t.style.display=n?t.__vOriginalDisplay:"none")},unbind:function(t,e,i,n,r){r||(t.style.display=t.__vOriginalDisplay)}}},to={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function eo(t){var e=t&&t.componentOptions;return e&&e.Ctor.options.abstract?eo(He(e.children)):t}function io(t){var e={},i=t.$options;for(var n in i.propsData)e[n]=t[n];var r=i._parentListeners;for(var o in r)e[S(o)]=r[o];return e}function no(t,e){if(/\d-keep-alive$/.test(e.tag))return t("keep-alive",{props:e.componentOptions.propsData})}var ro=function(t){return t.tag||We(t)},oo=function(t){return"show"===t.name},so={name:"transition",props:to,abstract:!0,render:function(t){var e=this,i=this.$slots.default;if(i&&(i=i.filter(ro)).length){var n=this.mode,r=i[0];if(function(t){for(;t=t.parent;)if(t.data.transition)return!0}(this.$vnode))return r;var o=eo(r);if(!o)return r;if(this._leaving)return no(t,r);var s="__transition-"+this._uid+"-";o.key=null==o.key?o.isComment?s+"comment":s+o.tag:a(o.key)?0===String(o.key).indexOf(s)?o.key:s+o.key:o.key;var l=(o.data||(o.data={})).transition=io(this),u=this._vnode,c=eo(u);if(o.data.directives&&o.data.directives.some(oo)&&(o.data.show=!0),c&&c.data&&!function(t,e){return e.key===t.key&&e.tag===t.tag}(o,c)&&!We(c)&&(!c.componentInstance||!c.componentInstance._vnode.isComment)){var h=c.data.transition=P({},l);if("out-in"===n)return this._leaving=!0,ae(h,"afterLeave",function(){e._leaving=!1,e.$forceUpdate()}),no(t,r);if("in-out"===n){if(We(o))return u;var d,f=function(){d()};ae(l,"afterEnter",f),ae(l,"enterCancelled",f),ae(h,"delayLeave",function(t){d=t})}}return r}}},ao=P({tag:String,moveClass:String},to);function lo(t){t.elm._moveCb&&t.elm._moveCb(),t.elm._enterCb&&t.elm._enterCb()}function uo(t){t.data.newPos=t.elm.getBoundingClientRect()}function co(t){var e=t.data.pos,i=t.data.newPos,n=e.left-i.left,r=e.top-i.top;if(n||r){t.data.moved=!0;var o=t.elm.style;o.transform=o.WebkitTransform="translate("+n+"px,"+r+"px)",o.transitionDuration="0s"}}delete ao.mode;var ho={Transition:so,TransitionGroup:{props:ao,beforeMount:function(){var t=this,e=this._update;this._update=function(i,n){var r=Je(t);t.__patch__(t._vnode,t.kept,!1,!0),t._vnode=t.kept,r(),e.call(t,i,n)}},render:function(t){for(var e=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),n=this.prevChildren=this.children,r=this.$slots.default||[],o=this.children=[],s=io(this),a=0;a<r.length;a++){var l=r[a];l.tag&&null!=l.key&&0!==String(l.key).indexOf("__vlist")&&(o.push(l),i[l.key]=l,(l.data||(l.data={})).transition=s)}if(n){for(var u=[],c=[],h=0;h<n.length;h++){var d=n[h];d.data.transition=s,d.data.pos=d.elm.getBoundingClientRect(),i[d.key]?u.push(d):c.push(d)}this.kept=t(e,null,u),this.removed=c}return t(e,null,o)},updated:function(){var t=this.prevChildren,e=this.moveClass||(this.name||"v")+"-move";t.length&&this.hasMove(t[0].elm,e)&&(t.forEach(lo),t.forEach(uo),t.forEach(co),this._reflow=document.body.offsetHeight,t.forEach(function(t){if(t.data.moved){var i=t.elm,n=i.style;Ir(i,e),n.transform=n.WebkitTransform=n.transitionDuration="",i.addEventListener(Cr,i._moveCb=function t(n){n&&n.target!==i||n&&!/transform$/.test(n.propertyName)||(i.removeEventListener(Cr,t),i._moveCb=null,Lr(i,e))})}}))},methods:{hasMove:function(t,e){if(!wr)return!1;if(this._hasMove)return this._hasMove;var i=t.cloneNode();t._transitionClasses&&t._transitionClasses.forEach(function(t){_r(i,t)}),yr(i,e),i.style.display="none",this.$el.appendChild(i);var n=Fr(i);return this.$el.removeChild(i),this._hasMove=n.hasTransform}}}};Si.config.mustUseProp=Li,Si.config.isReservedTag=Ui,Si.config.isReservedAttr=ki,Si.config.getTagNamespace=Xi,Si.config.isUnknownElement=function(t){if(!H)return!0;if(Ui(t))return!1;if(t=t.toLowerCase(),null!=qi[t])return qi[t];var e=document.createElement(t);return t.indexOf("-")>-1?qi[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:qi[t]=/HTMLUnknownElement/.test(e.toString())},P(Si.options.directives,Qr),P(Si.options.components,ho),Si.prototype.__patch__=H?Yr:I,Si.prototype.$mount=function(t,e){return function(t,e,i){return t.$el=e,t.$options.render||(t.$options.render=mt),ei(t,"beforeMount"),new fi(t,function(){t._update(t._render(),i)},I,{before:function(){t._isMounted&&!t._isDestroyed&&ei(t,"beforeUpdate")}},!0),i=!1,null==t.$vnode&&(t._isMounted=!0,ei(t,"mounted")),t}(this,t=t&&H?Zi(t):void 0,e)},H&&setTimeout(function(){G.devtools&&ot&&ot.emit("init",Si)},0);var fo,po=/\{\{((?:.|\r?\n)+?)\}\}/g,vo=/[-.*+?^${}()|[\]\/\\]/g,go=x(function(t){var e=t[0].replace(vo,"\\$&"),i=t[1].replace(vo,"\\$&");return new RegExp(e+"((?:.|\\n)+?)"+i,"g")}),mo={staticKeys:["staticClass"],transformNode:function(t,e){e.warn;var i=jn(t,"class");i&&(t.staticClass=JSON.stringify(i));var n=Dn(t,"class",!1);n&&(t.classBinding=n)},genData:function(t){var e="";return t.staticClass&&(e+="staticClass:"+t.staticClass+","),t.classBinding&&(e+="class:"+t.classBinding+","),e}},yo={staticKeys:["staticStyle"],transformNode:function(t,e){e.warn;var i=jn(t,"style");i&&(t.staticStyle=JSON.stringify(sr(i)));var n=Dn(t,"style",!1);n&&(t.styleBinding=n)},genData:function(t){var e="";return t.staticStyle&&(e+="staticStyle:"+t.staticStyle+","),t.styleBinding&&(e+="style:("+t.styleBinding+"),"),e}},_o=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),bo=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),xo=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),wo=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,So=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,To="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+z.source+"]*",Eo="((?:"+To+"\\:)?"+To+")",Co=new RegExp("^<"+Eo),Oo=/^\s*(\/?)>/,Mo=new RegExp("^<\\/"+Eo+"[^>]*>"),Po=/^<!DOCTYPE [^>]+>/i,ko=/^<!\--/,Io=/^<!\[/,Lo=v("script,style,textarea",!0),Ao={},Ro={"&lt;":"<","&gt;":">","&quot;":'"',"&amp;":"&","&#10;":"\n","&#9;":"\t","&#39;":"'"},Fo=/&(?:lt|gt|quot|amp|#39);/g,Do=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,jo=v("pre,textarea",!0),No=function(t,e){return t&&jo(t)&&"\n"===e[0]};function $o(t,e){var i=e?Do:Fo;return t.replace(i,function(t){return Ro[t]})}var Go,zo,Bo,Yo,Vo,Wo,Ho,Uo,Xo=/^@|^v-on:/,qo=/^v-|^@|^:|^#/,Ko=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Zo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Jo=/^\(|\)$/g,Qo=/^\[.*\]$/,ts=/:(.*)$/,es=/^:|^\.|^v-bind:/,is=/\.[^.\]]+(?=[^\]]*$)/g,ns=/^v-slot(:|$)|^#/,rs=/[\r\n]/,os=/\s+/g,ss=x(function(t){return(fo=fo||document.createElement("div")).innerHTML=t,fo.textContent}),as="_empty_";function ls(t,e,i){return{type:1,tag:t,attrsList:e,attrsMap:function(t){for(var e={},i=0,n=t.length;i<n;i++)e[t[i].name]=t[i].value;return e}(e),rawAttrsMap:{},parent:i,children:[]}}function us(t,e){var i,n;(n=Dn(i=t,"key"))&&(i.key=n),t.plain=!t.key&&!t.scopedSlots&&!t.attrsList.length,function(t){var e=Dn(t,"ref");e&&(t.ref=e,t.refInFor=function(t){for(var e=t;e;){if(void 0!==e.for)return!0;e=e.parent}return!1}(t))}(t),function(t){var e;"template"===t.tag?(e=jn(t,"scope"),t.slotScope=e||jn(t,"slot-scope")):(e=jn(t,"slot-scope"))&&(t.slotScope=e);var i=Dn(t,"slot");if(i&&(t.slotTarget='""'===i?'"default"':i,t.slotTargetDynamic=!(!t.attrsMap[":slot"]&&!t.attrsMap["v-bind:slot"]),"template"===t.tag||t.slotScope||In(t,"slot",i,function(t,e){return t.rawAttrsMap[":"+e]||t.rawAttrsMap["v-bind:"+e]||t.rawAttrsMap[e]}(t,"slot"))),"template"===t.tag){var n=Nn(t,ns);if(n){var r=ds(n),o=r.name,s=r.dynamic;t.slotTarget=o,t.slotTargetDynamic=s,t.slotScope=n.value||as}}else{var a=Nn(t,ns);if(a){var l=t.scopedSlots||(t.scopedSlots={}),u=ds(a),c=u.name,h=u.dynamic,d=l[c]=ls("template",[],t);d.slotTarget=c,d.slotTargetDynamic=h,d.children=t.children.filter(function(t){if(!t.slotScope)return t.parent=d,!0}),d.slotScope=a.value||as,t.children=[],t.plain=!1}}}(t),function(t){"slot"===t.tag&&(t.slotName=Dn(t,"name"))}(t),function(t){var e;(e=Dn(t,"is"))&&(t.component=e),null!=jn(t,"inline-template")&&(t.inlineTemplate=!0)}(t);for(var r=0;r<Bo.length;r++)t=Bo[r](t,e)||t;return function(t){var e,i,n,r,o,s,a,l,u=t.attrsList;for(e=0,i=u.length;e<i;e++)if(n=r=u[e].name,o=u[e].value,qo.test(n))if(t.hasBindings=!0,(s=fs(n.replace(qo,"")))&&(n=n.replace(is,"")),es.test(n))n=n.replace(es,""),o=Cn(o),(l=Qo.test(n))&&(n=n.slice(1,-1)),s&&(s.prop&&!l&&"innerHtml"===(n=S(n))&&(n="innerHTML"),s.camel&&!l&&(n=S(n)),s.sync&&(a=zn(o,"$event"),l?Fn(t,'"update:"+('+n+")",a,null,!1,0,u[e],!0):(Fn(t,"update:"+S(n),a,null,!1,0,u[e]),C(n)!==S(n)&&Fn(t,"update:"+C(n),a,null,!1,0,u[e])))),s&&s.prop||!t.component&&Ho(t.tag,t.attrsMap.type,n)?kn(t,n,o,u[e],l):In(t,n,o,u[e],l);else if(Xo.test(n))n=n.replace(Xo,""),(l=Qo.test(n))&&(n=n.slice(1,-1)),Fn(t,n,o,s,!1,0,u[e],l);else{var c=(n=n.replace(qo,"")).match(ts),h=c&&c[1];l=!1,h&&(n=n.slice(0,-(h.length+1)),Qo.test(h)&&(h=h.slice(1,-1),l=!0)),An(t,n,r,o,h,l,s,u[e])}else In(t,n,JSON.stringify(o),u[e]),!t.component&&"muted"===n&&Ho(t.tag,t.attrsMap.type,n)&&kn(t,n,"true",u[e])}(t),t}function cs(t){var e;if(e=jn(t,"v-for")){var i=function(t){var e=t.match(Ko);if(e){var i={};i.for=e[2].trim();var n=e[1].trim().replace(Jo,""),r=n.match(Zo);return r?(i.alias=n.replace(Zo,"").trim(),i.iterator1=r[1].trim(),r[2]&&(i.iterator2=r[2].trim())):i.alias=n,i}}(e);i&&P(t,i)}}function hs(t,e){t.ifConditions||(t.ifConditions=[]),t.ifConditions.push(e)}function ds(t){var e=t.name.replace(ns,"");return e||"#"!==t.name[0]&&(e="default"),Qo.test(e)?{name:e.slice(1,-1),dynamic:!0}:{name:'"'+e+'"',dynamic:!1}}function fs(t){var e=t.match(is);if(e){var i={};return e.forEach(function(t){i[t.slice(1)]=!0}),i}}var ps=/^xmlns:NS\d+/,vs=/^NS\d+:/;function gs(t){return ls(t.tag,t.attrsList.slice(),t.parent)}var ms,ys,_s=[mo,yo,{preTransformNode:function(t,e){if("input"===t.tag){var i,n=t.attrsMap;if(!n["v-model"])return;if((n[":type"]||n["v-bind:type"])&&(i=Dn(t,"type")),n.type||i||!n["v-bind"]||(i="("+n["v-bind"]+").type"),i){var r=jn(t,"v-if",!0),o=r?"&&("+r+")":"",s=null!=jn(t,"v-else",!0),a=jn(t,"v-else-if",!0),l=gs(t);cs(l),Ln(l,"type","checkbox"),us(l,e),l.processed=!0,l.if="("+i+")==='checkbox'"+o,hs(l,{exp:l.if,block:l});var u=gs(t);jn(u,"v-for",!0),Ln(u,"type","radio"),us(u,e),hs(l,{exp:"("+i+")==='radio'"+o,block:u});var c=gs(t);return jn(c,"v-for",!0),Ln(c,":type",i),us(c,e),hs(l,{exp:r,block:c}),s?l.else=!0:a&&(l.elseif=a),l}}}}],bs={expectHTML:!0,modules:_s,directives:{model:function(t,e,i){var n=e.value,r=e.modifiers,o=t.tag,s=t.attrsMap.type;if(t.component)return Gn(t,n,r),!1;if("select"===o)!function(t,e,i){var n='var $$selectedVal = Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(r&&r.number?"_n(val)":"val")+"});";Fn(t,"change",n=n+" "+zn(e,"$event.target.multiple ? $$selectedVal : $$selectedVal[0]"),null,!0)}(t,n);else if("input"===o&&"checkbox"===s)!function(t,e,i){var n=i&&i.number,r=Dn(t,"value")||"null",o=Dn(t,"true-value")||"true",s=Dn(t,"false-value")||"false";kn(t,"checked","Array.isArray("+e+")?_i("+e+","+r+")>-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Fn(t,"change","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+zn(e,"$$a.concat([$$v])")+")}else{$$i>-1&&("+zn(e,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+zn(e,"$$c")+"}",null,!0)}(t,n,r);else if("input"===o&&"radio"===s)!function(t,e,i){var n=i&&i.number,r=Dn(t,"value")||"null";kn(t,"checked","_q("+e+","+(r=n?"_n("+r+")":r)+")"),Fn(t,"change",zn(e,r),null,!0)}(t,n,r);else if("input"===o||"textarea"===o)!function(t,e,i){var n=t.attrsMap.type,r=i||{},o=r.lazy,s=r.number,a=r.trim,l=!o&&"range"!==n,u=o?"change":"range"===n?Xn:"input",c="$event.target.value";a&&(c="$event.target.value.trim()"),s&&(c="_n("+c+")");var h=zn(e,c);l&&(h="if($event.target.composing)return;"+h),kn(t,"value","("+e+")"),Fn(t,u,h,null,!0),(a||s)&&Fn(t,"blur","$forceUpdate()")}(t,n,r);else if(!G.isReservedTag(o))return Gn(t,n,r),!1;return!0},text:function(t,e){e.value&&kn(t,"textContent","_s("+e.value+")",e)},html:function(t,e){e.value&&kn(t,"innerHTML","_s("+e.value+")",e)}},isPreTag:function(t){return"pre"===t},isUnaryTag:_o,mustUseProp:Li,canBeLeftOpenTag:bo,isReservedTag:Ui,getTagNamespace:Xi,staticKeys:_s.reduce(function(t,e){return t.concat(e.staticKeys||[])},[]).join(",")},xs=x(function(t){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(t?","+t:""))});var ws=/^([\w$_]+|\([^)]*?\))\s*=>|^function(?:\s+[\w$]+)?\s*\(/,Ss=/\([^)]*?\);*$/,Ts=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Es={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Cs={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Os=function(t){return"if("+t+")return null;"},Ms={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Os("$event.target !== $event.currentTarget"),ctrl:Os("!$event.ctrlKey"),shift:Os("!$event.shiftKey"),alt:Os("!$event.altKey"),meta:Os("!$event.metaKey"),left:Os("'button' in $event && $event.button !== 0"),middle:Os("'button' in $event && $event.button !== 1"),right:Os("'button' in $event && $event.button !== 2")};function Ps(t,e){var i=e?"nativeOn:":"on:",n="",r="";for(var o in t){var s=ks(t[o]);t[o]&&t[o].dynamic?r+=o+","+s+",":n+='"'+o+'":'+s+","}return n="{"+n.slice(0,-1)+"}",r?i+"_d("+n+",["+r.slice(0,-1)+"])":i+n}function ks(t){if(!t)return"function(){}";if(Array.isArray(t))return"["+t.map(function(t){return ks(t)}).join(",")+"]";var e=Ts.test(t.value),i=ws.test(t.value),n=Ts.test(t.value.replace(Ss,""));if(t.modifiers){var r="",o="",s=[];for(var a in t.modifiers)if(Ms[a])o+=Ms[a],Es[a]&&s.push(a);else if("exact"===a){var l=t.modifiers;o+=Os(["ctrl","shift","alt","meta"].filter(function(t){return!l[t]}).map(function(t){return"$event."+t+"Key"}).join("||"))}else s.push(a);return s.length&&(r+="if(!$event.type.indexOf('key')&&"+s.map(Is).join("&&")+")return null;"),o&&(r+=o),"function($event){"+r+(e?"return "+t.value+"($event)":i?"return ("+t.value+")($event)":n?"return "+t.value:t.value)+"}"}return e||i?t.value:"function($event){"+(n?"return "+t.value:t.value)+"}"}function Is(t){var e=parseInt(t,10);if(e)return"$event.keyCode!=="+e;var i=Es[t],n=Cs[t];return"_k($event.keyCode,"+JSON.stringify(t)+","+JSON.stringify(i)+",$event.key,"+JSON.stringify(n)+")"}var Ls={on:function(t,e){t.wrapListeners=function(t){return"_g("+t+","+e.value+")"}},bind:function(t,e){t.wrapData=function(i){return"_b("+i+",'"+t.tag+"',"+e.value+","+(e.modifiers&&e.modifiers.prop?"true":"false")+(e.modifiers&&e.modifiers.sync?",true":"")+")"}},cloak:I},As=function(t){this.options=t,this.warn=t.warn||Mn,this.transforms=Pn(t.modules,"transformCode"),this.dataGenFns=Pn(t.modules,"genData"),this.directives=P(P({},Ls),t.directives);var e=t.isReservedTag||L;this.maybeComponent=function(t){return!!t.component||!e(t.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Rs(t,e){var i=new As(e);return{render:"with(this){return "+(t?Fs(t,i):'_c("div")')+"}",staticRenderFns:i.staticRenderFns}}function Fs(t,e){if(t.parent&&(t.pre=t.pre||t.parent.pre),t.staticRoot&&!t.staticProcessed)return Ds(t,e);if(t.once&&!t.onceProcessed)return js(t,e);if(t.for&&!t.forProcessed)return $s(t,e);if(t.if&&!t.ifProcessed)return Ns(t,e);if("template"!==t.tag||t.slotTarget||e.pre){if("slot"===t.tag)return function(t,e){var i=t.slotName||'"default"',n=Ys(t,e),r="_t("+i+(n?","+n:""),o=t.attrs||t.dynamicAttrs?Hs((t.attrs||[]).concat(t.dynamicAttrs||[]).map(function(t){return{name:S(t.name),value:t.value,dynamic:t.dynamic}})):null,s=t.attrsMap["v-bind"];return!o&&!s||n||(r+=",null"),o&&(r+=","+o),s&&(r+=(o?"":",null")+","+s),r+")"}(t,e);var i;if(t.component)i=function(t,e,i){var n=e.inlineTemplate?null:Ys(e,i,!0);return"_c("+t+","+Gs(e,i)+(n?","+n:"")+")"}(t.component,t,e);else{var n;(!t.plain||t.pre&&e.maybeComponent(t))&&(n=Gs(t,e));var r=t.inlineTemplate?null:Ys(t,e,!0);i="_c('"+t.tag+"'"+(n?","+n:"")+(r?","+r:"")+")"}for(var o=0;o<e.transforms.length;o++)i=e.transforms[o](t,i);return i}return Ys(t,e)||"void 0"}function Ds(t,e){t.staticProcessed=!0;var i=e.pre;return t.pre&&(e.pre=t.pre),e.staticRenderFns.push("with(this){return "+Fs(t,e)+"}"),e.pre=i,"_m("+(e.staticRenderFns.length-1)+(t.staticInFor?",true":"")+")"}function js(t,e){if(t.onceProcessed=!0,t.if&&!t.ifProcessed)return Ns(t,e);if(t.staticInFor){for(var i="",n=t.parent;n;){if(n.for){i=n.key;break}n=n.parent}return i?"_o("+Fs(t,e)+","+e.onceId+++","+i+")":Fs(t,e)}return Ds(t,e)}function Ns(t,e,i,n){return t.ifProcessed=!0,function t(e,i,n,r){if(!e.length)return r||"_e()";var o=e.shift();return o.exp?"("+o.exp+")?"+s(o.block)+":"+t(e,i,n,r):""+s(o.block);function s(t){return n?n(t,i):t.once?js(t,i):Fs(t,i)}}(t.ifConditions.slice(),e,i,n)}function $s(t,e,i,n){var r=t.for,o=t.alias,s=t.iterator1?","+t.iterator1:"",a=t.iterator2?","+t.iterator2:"";return t.forProcessed=!0,(n||"_l")+"(("+r+"),function("+o+s+a+"){return "+(i||Fs)(t,e)+"})"}function Gs(t,e){var i="{",n=function(t,e){var i=t.directives;if(i){var n,r,o,s,a="directives:[",l=!1;for(n=0,r=i.length;n<r;n++){o=i[n],s=!0;var u=e.directives[o.name];u&&(s=!!u(t,o,e.warn)),s&&(l=!0,a+='{name:"'+o.name+'",rawName:"'+o.rawName+'"'+(o.value?",value:("+o.value+"),expression:"+JSON.stringify(o.value):"")+(o.arg?",arg:"+(o.isDynamicArg?o.arg:'"'+o.arg+'"'):"")+(o.modifiers?",modifiers:"+JSON.stringify(o.modifiers):"")+"},")}return l?a.slice(0,-1)+"]":void 0}}(t,e);n&&(i+=n+","),t.key&&(i+="key:"+t.key+","),t.ref&&(i+="ref:"+t.ref+","),t.refInFor&&(i+="refInFor:true,"),t.pre&&(i+="pre:true,"),t.component&&(i+='tag:"'+t.tag+'",');for(var r=0;r<e.dataGenFns.length;r++)i+=e.dataGenFns[r](t);if(t.attrs&&(i+="attrs:"+Hs(t.attrs)+","),t.props&&(i+="domProps:"+Hs(t.props)+","),t.events&&(i+=Ps(t.events,!1)+","),t.nativeEvents&&(i+=Ps(t.nativeEvents,!0)+","),t.slotTarget&&!t.slotScope&&(i+="slot:"+t.slotTarget+","),t.scopedSlots&&(i+=function(t,e,i){var n=t.for||Object.keys(e).some(function(t){var i=e[t];return i.slotTargetDynamic||i.if||i.for||zs(i)}),r=!!t.if;if(!n)for(var o=t.parent;o;){if(o.slotScope&&o.slotScope!==as||o.for){n=!0;break}o.if&&(r=!0),o=o.parent}var s=Object.keys(e).map(function(t){return Bs(e[t],i)}).join(",");return"scopedSlots:_u(["+s+"]"+(n?",null,true":"")+(!n&&r?",null,false,"+function(t){for(var e=5381,i=t.length;i;)e=33*e^t.charCodeAt(--i);return e>>>0}(s):"")+")"}(t,t.scopedSlots,e)+","),t.model&&(i+="model:{value:"+t.model.value+",callback:"+t.model.callback+",expression:"+t.model.expression+"},"),t.inlineTemplate){var o=function(t,e){var i=t.children[0];if(i&&1===i.type){var n=Rs(i,e.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map(function(t){return"function(){"+t+"}"}).join(",")+"]}"}}(t,e);o&&(i+=o+",")}return i=i.replace(/,$/,"")+"}",t.dynamicAttrs&&(i="_b("+i+',"'+t.tag+'",'+Hs(t.dynamicAttrs)+")"),t.wrapData&&(i=t.wrapData(i)),t.wrapListeners&&(i=t.wrapListeners(i)),i}function zs(t){return 1===t.type&&("slot"===t.tag||t.children.some(zs))}function Bs(t,e){var i=t.attrsMap["slot-scope"];if(t.if&&!t.ifProcessed&&!i)return Ns(t,e,Bs,"null");if(t.for&&!t.forProcessed)return $s(t,e,Bs);var n=t.slotScope===as?"":String(t.slotScope),r="function("+n+"){return "+("template"===t.tag?t.if&&i?"("+t.if+")?"+(Ys(t,e)||"undefined")+":undefined":Ys(t,e)||"undefined":Fs(t,e))+"}",o=n?"":",proxy:true";return"{key:"+(t.slotTarget||'"default"')+",fn:"+r+o+"}"}function Ys(t,e,i,n,r){var o=t.children;if(o.length){var s=o[0];if(1===o.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var a=i?e.maybeComponent(s)?",1":",0":"";return""+(n||Fs)(s,e)+a}var l=i?function(t,e){for(var i=0,n=0;n<t.length;n++){var r=t[n];if(1===r.type){if(Vs(r)||r.ifConditions&&r.ifConditions.some(function(t){return Vs(t.block)})){i=2;break}(e(r)||r.ifConditions&&r.ifConditions.some(function(t){return e(t.block)}))&&(i=1)}}return i}(o,e.maybeComponent):0,u=r||Ws;return"["+o.map(function(t){return u(t,e)}).join(",")+"]"+(l?","+l:"")}}function Vs(t){return void 0!==t.for||"template"===t.tag||"slot"===t.tag}function Ws(t,e){return 1===t.type?Fs(t,e):3===t.type&&t.isComment?(n=t,"_e("+JSON.stringify(n.text)+")"):"_v("+(2===(i=t).type?i.expression:Us(JSON.stringify(i.text)))+")";var i,n}function Hs(t){for(var e="",i="",n=0;n<t.length;n++){var r=t[n],o=Us(r.value);r.dynamic?i+=r.name+","+o+",":e+='"'+r.name+'":'+o+","}return e="{"+e.slice(0,-1)+"}",i?"_d("+e+",["+i.slice(0,-1)+"])":e}function Us(t){return t.replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}function Xs(t,e){try{return new Function(t)}catch(i){return e.push({err:i,code:t}),I}}new RegExp("\\b"+"do,if,for,let,new,try,var,case,else,with,await,break,catch,class,const,super,throw,while,yield,delete,export,import,return,switch,default,extends,finally,continue,debugger,function,arguments".split(",").join("\\b|\\b")+"\\b");var qs,Ks,Zs=(qs=function(t,e){var i=function(t,e){Go=e.warn||Mn,Wo=e.isPreTag||L,Ho=e.mustUseProp||L,Uo=e.getTagNamespace||L,e.isReservedTag,Bo=Pn(e.modules,"transformNode"),Yo=Pn(e.modules,"preTransformNode"),Vo=Pn(e.modules,"postTransformNode"),zo=e.delimiters;var i,n,r=[],o=!1!==e.preserveWhitespace,s=e.whitespace,a=!1,l=!1;function u(t){if(c(t),a||t.processed||(t=us(t,e)),r.length||t===i||i.if&&(t.elseif||t.else)&&hs(i,{exp:t.elseif,block:t}),n&&!t.forbidden)if(t.elseif||t.else)s=t,(u=function(t){for(var e=t.length;e--;){if(1===t[e].type)return t[e];t.pop()}}(n.children))&&u.if&&hs(u,{exp:s.elseif,block:s});else{if(t.slotScope){var o=t.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[o]=t}n.children.push(t),t.parent=n}var s,u;t.children=t.children.filter(function(t){return!t.slotScope}),c(t),t.pre&&(a=!1),Wo(t.tag)&&(l=!1);for(var h=0;h<Vo.length;h++)Vo[h](t,e)}function c(t){if(!l)for(var e;(e=t.children[t.children.length-1])&&3===e.type&&" "===e.text;)t.children.pop()}return function(t,e){for(var i,n,r=[],o=e.expectHTML,s=e.isUnaryTag||L,a=e.canBeLeftOpenTag||L,l=0;t;){if(i=t,n&&Lo(n)){var u=0,c=n.toLowerCase(),h=Ao[c]||(Ao[c]=new RegExp("([\\s\\S]*?)(</"+c+"[^>]*>)","i")),d=t.replace(h,function(t,i,n){return u=n.length,Lo(c)||"noscript"===c||(i=i.replace(/<!\--([\s\S]*?)-->/g,"$1").replace(/<!\[CDATA\[([\s\S]*?)]]>/g,"$1")),No(c,i)&&(i=i.slice(1)),e.chars&&e.chars(i),""});l+=t.length-d.length,t=d,C(c,l-u,l)}else{var f=t.indexOf("<");if(0===f){if(ko.test(t)){var p=t.indexOf("--\x3e");if(p>=0){e.shouldKeepComment&&e.comment(t.substring(4,p),l,l+p+3),S(p+3);continue}}if(Io.test(t)){var v=t.indexOf("]>");if(v>=0){S(v+2);continue}}var g=t.match(Po);if(g){S(g[0].length);continue}var m=t.match(Mo);if(m){var y=l;S(m[0].length),C(m[1],y,l);continue}var _=T();if(_){E(_),No(_.tagName,t)&&S(1);continue}}var b=void 0,x=void 0,w=void 0;if(f>=0){for(x=t.slice(f);!(Mo.test(x)||Co.test(x)||ko.test(x)||Io.test(x)||(w=x.indexOf("<",1))<0);)f+=w,x=t.slice(f);b=t.substring(0,f)}f<0&&(b=t),b&&S(b.length),e.chars&&b&&e.chars(b,l-b.length,l)}if(t===i){e.chars&&e.chars(t);break}}function S(e){l+=e,t=t.substring(e)}function T(){var e=t.match(Co);if(e){var i,n,r={tagName:e[1],attrs:[],start:l};for(S(e[0].length);!(i=t.match(Oo))&&(n=t.match(So)||t.match(wo));)n.start=l,S(n[0].length),n.end=l,r.attrs.push(n);if(i)return r.unarySlash=i[1],S(i[0].length),r.end=l,r}}function E(t){var i=t.tagName,l=t.unarySlash;o&&("p"===n&&xo(i)&&C(n),a(i)&&n===i&&C(i));for(var u=s(i)||!!l,c=t.attrs.length,h=new Array(c),d=0;d<c;d++){var f=t.attrs[d],p=f[3]||f[4]||f[5]||"",v="a"===i&&"href"===f[1]?e.shouldDecodeNewlinesForHref:e.shouldDecodeNewlines;h[d]={name:f[1],value:$o(p,v)}}u||(r.push({tag:i,lowerCasedTag:i.toLowerCase(),attrs:h,start:t.start,end:t.end}),n=i),e.start&&e.start(i,h,u,t.start,t.end)}function C(t,i,o){var s,a;if(null==i&&(i=l),null==o&&(o=l),t)for(a=t.toLowerCase(),s=r.length-1;s>=0&&r[s].lowerCasedTag!==a;s--);else s=0;if(s>=0){for(var u=r.length-1;u>=s;u--)e.end&&e.end(r[u].tag,i,o);r.length=s,n=s&&r[s-1].tag}else"br"===a?e.start&&e.start(t,[],!0,i,o):"p"===a&&(e.start&&e.start(t,[],!1,i,o),e.end&&e.end(t,i,o))}C()}(t,{warn:Go,expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,canBeLeftOpenTag:e.canBeLeftOpenTag,shouldDecodeNewlines:e.shouldDecodeNewlines,shouldDecodeNewlinesForHref:e.shouldDecodeNewlinesForHref,shouldKeepComment:e.comments,outputSourceRange:e.outputSourceRange,start:function(t,o,s,c,h){var d=n&&n.ns||Uo(t);K&&"svg"===d&&(o=function(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];ps.test(n.name)||(n.name=n.name.replace(vs,""),e.push(n))}return e}(o));var f,p=ls(t,o,n);d&&(p.ns=d),"style"!==(f=p).tag&&("script"!==f.tag||f.attrsMap.type&&"text/javascript"!==f.attrsMap.type)||rt()||(p.forbidden=!0);for(var v=0;v<Yo.length;v++)p=Yo[v](p,e)||p;a||(function(t){null!=jn(t,"v-pre")&&(t.pre=!0)}(p),p.pre&&(a=!0)),Wo(p.tag)&&(l=!0),a?function(t){var e=t.attrsList,i=e.length;if(i)for(var n=t.attrs=new Array(i),r=0;r<i;r++)n[r]={name:e[r].name,value:JSON.stringify(e[r].value)},null!=e[r].start&&(n[r].start=e[r].start,n[r].end=e[r].end);else t.pre||(t.plain=!0)}(p):p.processed||(cs(p),function(t){var e=jn(t,"v-if");if(e)t.if=e,hs(t,{exp:e,block:t});else{null!=jn(t,"v-else")&&(t.else=!0);var i=jn(t,"v-else-if");i&&(t.elseif=i)}}(p),function(t){null!=jn(t,"v-once")&&(t.once=!0)}(p)),i||(i=p),s?u(p):(n=p,r.push(p))},end:function(t,e,i){var o=r[r.length-1];r.length-=1,n=r[r.length-1],u(o)},chars:function(t,e,i){if(n&&(!K||"textarea"!==n.tag||n.attrsMap.placeholder!==t)){var r,u,c,h=n.children;(t=l||t.trim()?"script"===(r=n).tag||"style"===r.tag?t:ss(t):h.length?s?"condense"===s&&rs.test(t)?"":" ":o?" ":"":"")&&(l||"condense"!==s||(t=t.replace(os," ")),!a&&" "!==t&&(u=function(t,e){var i=zo?go(zo):po;if(i.test(t)){for(var n,r,o,s=[],a=[],l=i.lastIndex=0;n=i.exec(t);){(r=n.index)>l&&(a.push(o=t.slice(l,r)),s.push(JSON.stringify(o)));var u=Cn(n[1].trim());s.push("_s("+u+")"),a.push({"@binding":u}),l=r+n[0].length}return l<t.length&&(a.push(o=t.slice(l)),s.push(JSON.stringify(o))),{expression:s.join("+"),tokens:a}}}(t))?c={type:2,expression:u.expression,tokens:u.tokens,text:t}:" "===t&&h.length&&" "===h[h.length-1].text||(c={type:3,text:t}),c&&h.push(c))}},comment:function(t,e,i){if(n){var r={type:3,text:t,isComment:!0};n.children.push(r)}}}),i}(t.trim(),e);!1!==e.optimize&&function(t,e){t&&(ms=xs(e.staticKeys||""),ys=e.isReservedTag||L,function t(e){if(e.static=function(t){return 2!==t.type&&(3===t.type||!(!t.pre&&(t.hasBindings||t.if||t.for||g(t.tag)||!ys(t.tag)||function(t){for(;t.parent;){if("template"!==(t=t.parent).tag)return!1;if(t.for)return!0}return!1}(t)||!Object.keys(t).every(ms))))}(e),1===e.type){if(!ys(e.tag)&&"slot"!==e.tag&&null==e.attrsMap["inline-template"])return;for(var i=0,n=e.children.length;i<n;i++){var r=e.children[i];t(r),r.static||(e.static=!1)}if(e.ifConditions)for(var o=1,s=e.ifConditions.length;o<s;o++){var a=e.ifConditions[o].block;t(a),a.static||(e.static=!1)}}}(t),function t(e,i){if(1===e.type){if((e.static||e.once)&&(e.staticInFor=i),e.static&&e.children.length&&(1!==e.children.length||3!==e.children[0].type))return void(e.staticRoot=!0);if(e.staticRoot=!1,e.children)for(var n=0,r=e.children.length;n<r;n++)t(e.children[n],i||!!e.for);if(e.ifConditions)for(var o=1,s=e.ifConditions.length;o<s;o++)t(e.ifConditions[o].block,i)}}(t,!1))}(i,e);var n=Rs(i,e);return{ast:i,render:n.render,staticRenderFns:n.staticRenderFns}},function(t){function e(e,i){var n=Object.create(t),r=[],o=[];if(i)for(var s in i.modules&&(n.modules=(t.modules||[]).concat(i.modules)),i.directives&&(n.directives=P(Object.create(t.directives||null),i.directives)),i)"modules"!==s&&"directives"!==s&&(n[s]=i[s]);n.warn=function(t,e,i){(i?o:r).push(t)};var a=qs(e.trim(),n);return a.errors=r,a.tips=o,a}return{compile:e,compileToFunctions:function(t){var e=Object.create(null);return function(i,n,r){(n=P({},n)).warn,delete n.warn;var o=n.delimiters?String(n.delimiters)+i:i;if(e[o])return e[o];var s=t(i,n),a={},l=[];return a.render=Xs(s.render,l),a.staticRenderFns=s.staticRenderFns.map(function(t){return Xs(t,l)}),e[o]=a}}(e)}})(bs),Js=(Zs.compile,Zs.compileToFunctions);function Qs(t){return(Ks=Ks||document.createElement("div")).innerHTML=t?'<a href="\n"/>':'<div a="\n"/>',Ks.innerHTML.indexOf("&#10;")>0}var ta=!!H&&Qs(!1),ea=!!H&&Qs(!0),ia=x(function(t){var e=Zi(t);return e&&e.innerHTML}),na=Si.prototype.$mount;Si.prototype.$mount=function(t,e){if((t=t&&Zi(t))===document.body||t===document.documentElement)return this;var i=this.$options;if(!i.render){var n=i.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=ia(n));else{if(!n.nodeType)return this;n=n.innerHTML}else t&&(n=function(t){if(t.outerHTML)return t.outerHTML;var e=document.createElement("div");return e.appendChild(t.cloneNode(!0)),e.innerHTML}(t));if(n){var r=Js(n,{outputSourceRange:!1,shouldDecodeNewlines:ta,shouldDecodeNewlinesForHref:ea,delimiters:i.delimiters,comments:i.comments},this),o=r.render,s=r.staticRenderFns;i.render=o,i.staticRenderFns=s}}return na.call(this,t,e)},Si.compile=Js,t.exports=Si}).call(e,i(53),i(592).setImmediate)},function(t,e,i){(function(t){var n=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function o(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new o(r.call(setTimeout,n,arguments),clearTimeout)},e.setInterval=function(){return new o(r.call(setInterval,n,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(n,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},i(593),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,i(53))},function(t,e,i){(function(t,e){!function(t,i){"use strict";if(!t.setImmediate){var n,r,o,s,a,l=1,u={},c=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?n=function(t){e.nextTick(function(){p(t)})}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,i=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=i,e}}()?t.MessageChannel?((o=new MessageChannel).port1.onmessage=function(t){p(t.data)},n=function(t){o.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(r=h.documentElement,n=function(t){var e=h.createElement("script");e.onreadystatechange=function(){p(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):n=function(t){setTimeout(p,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&p(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),n=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),i=0;i<e.length;i++)e[i]=arguments[i+1];var r={callback:t,args:e};return u[l]=r,n(l),l++},d.clearImmediate=f}function f(t){delete u[t]}function p(t){if(c)setTimeout(p,0,t);else{var e=u[t];if(e){c=!0;try{!function(t){var e=t.callback,n=t.args;switch(n.length){case 0:e();break;case 1:e(n[0]);break;case 2:e(n[0],n[1]);break;case 3:e(n[0],n[1],n[2]);break;default:e.apply(i,n)}}(e)}finally{f(t),c=!1}}}}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,i(53),i(165))},function(t,e,i){"use strict";var n,r,o,s="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};o=function(){var t="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,i=function(t){for(var e=0;e<t.length;e+=1)this[e]=t[e];return this.length=t.length,this};function n(n,r){var o=[],s=0;if(n&&!r&&n instanceof i)return n;if(n)if("string"==typeof n){var a,l,u=n.trim();if(u.indexOf("<")>=0&&u.indexOf(">")>=0){var c="div";for(0===u.indexOf("<li")&&(c="ul"),0===u.indexOf("<tr")&&(c="tbody"),0!==u.indexOf("<td")&&0!==u.indexOf("<th")||(c="tr"),0===u.indexOf("<tbody")&&(c="table"),0===u.indexOf("<option")&&(c="select"),(l=t.createElement(c)).innerHTML=u,s=0;s<l.childNodes.length;s+=1)o.push(l.childNodes[s])}else for(a=r||"#"!==n[0]||n.match(/[ .<>:~]/)?(r||t).querySelectorAll(n.trim()):[t.getElementById(n.trim().split("#")[1])],s=0;s<a.length;s+=1)a[s]&&o.push(a[s])}else if(n.nodeType||n===e||n===t)o.push(n);else if(n.length>0&&n[0].nodeType)for(s=0;s<n.length;s+=1)o.push(n[s]);return new i(o)}function r(t){for(var e=[],i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}n.fn=i.prototype,n.Class=i,n.Dom7=i;var o={addClass:function(t){if(void 0===t)return this;for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(e[i]);return this},removeClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(e[i]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(e[i]);return this},attr:function(t,e){var i=arguments;if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var n=0;n<this.length;n+=1)if(2===i.length)this[n].setAttribute(t,e);else for(var r in t)this[n][r]=t[r],this[n].setAttribute(r,t[r]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){var i;if(void 0!==e){for(var n=0;n<this.length;n+=1)(i=this[n]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];var r=i.getAttribute("data-"+t);return r||void 0}},transform:function(t){for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransform=t,i.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},on:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];var r=e[0],o=e[1],s=e[2],a=e[3];function l(t){var e=t.target;if(e){var i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),n(e).is(o))s.apply(e,i);else for(var r=n(e).parents(),a=0;a<r.length;a+=1)n(r[a]).is(o)&&s.apply(r[a],i)}}function u(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),s.apply(this,e)}"function"==typeof e[1]&&(r=(t=e)[0],s=t[1],a=t[2],o=void 0),a||(a=!1);for(var c,h=r.split(" "),d=0;d<this.length;d+=1){var f=this[d];if(o)for(c=0;c<h.length;c+=1){var p=h[c];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:s,proxyListener:l}),f.addEventListener(p,l,a)}else for(c=0;c<h.length;c+=1){var v=h[c];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:s,proxyListener:u}),f.addEventListener(v,u,a)}}return this},off:function(){for(var t,e=[],i=arguments.length;i--;)e[i]=arguments[i];var n=e[0],r=e[1],o=e[2],s=e[3];"function"==typeof e[1]&&(n=(t=e)[0],o=t[1],s=t[2],r=void 0),s||(s=!1);for(var a=n.split(" "),l=0;l<a.length;l+=1)for(var u=a[l],c=0;c<this.length;c+=1){var h=this[c],d=void 0;if(!r&&h.dom7Listeners?d=h.dom7Listeners[u]:r&&h.dom7LiveListeners&&(d=h.dom7LiveListeners[u]),d&&d.length)for(var f=d.length-1;f>=0;f-=1){var p=d[f];o&&p.listener===o?(h.removeEventListener(u,p.proxyListener,s),d.splice(f,1)):o&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===o?(h.removeEventListener(u,p.proxyListener,s),d.splice(f,1)):o||(h.removeEventListener(u,p.proxyListener,s),d.splice(f,1))}}return this},trigger:function(){for(var i=[],n=arguments.length;n--;)i[n]=arguments[n];for(var r=i[0].split(" "),o=i[1],s=0;s<r.length;s+=1)for(var a=r[s],l=0;l<this.length;l+=1){var u=this[l],c=void 0;try{c=new e.CustomEvent(a,{detail:o,bubbles:!0,cancelable:!0})}catch(e){(c=t.createEvent("Event")).initEvent(a,!0,!0),c.detail=o}u.dom7EventData=i.filter(function(t,e){return e>0}),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}return this},transitionEnd:function(t){var e,i=["webkitTransitionEnd","transitionend"],n=this;function r(o){if(o.target===this)for(t.call(this,o),e=0;e<i.length;e+=1)n.off(i[e],r)}if(t)for(e=0;e<i.length;e+=1)n.on(i[e],r);return this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var i=this[0],n=i.getBoundingClientRect(),r=t.body,o=i.clientTop||r.clientTop||0,s=i.clientLeft||r.clientLeft||0,a=i===e?e.scrollY:i.scrollTop,l=i===e?e.scrollX:i.scrollLeft;return{top:n.top+a-o,left:n.left+l-s}}return null},css:function(t,i){var n;if(1===arguments.length){if("string"!=typeof t){for(n=0;n<this.length;n+=1)for(var r in t)this[n].style[r]=t[r];return this}if(this[0])return e.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(n=0;n<this.length;n+=1)this[n].style[t]=i;return this}return this},each:function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(r){var o,s,a=this[0];if(!a||void 0===r)return!1;if("string"==typeof r){if(a.matches)return a.matches(r);if(a.webkitMatchesSelector)return a.webkitMatchesSelector(r);if(a.msMatchesSelector)return a.msMatchesSelector(r);for(o=n(r),s=0;s<o.length;s+=1)if(o[s]===a)return!0;return!1}if(r===t)return a===t;if(r===e)return a===e;if(r.nodeType||r instanceof i){for(o=r.nodeType?[r]:r,s=0;s<o.length;s+=1)if(o[s]===a)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e,n=this.length;return new i(t>n-1?[]:t<0?(e=n+t)<0?[]:[this[e]]:[this[t]])},append:function(){for(var e,n=[],r=arguments.length;r--;)n[r]=arguments[r];for(var o=0;o<n.length;o+=1){e=n[o];for(var s=0;s<this.length;s+=1)if("string"==typeof e){var a=t.createElement("div");for(a.innerHTML=e;a.firstChild;)this[s].appendChild(a.firstChild)}else if(e instanceof i)for(var l=0;l<e.length;l+=1)this[s].appendChild(e[l]);else this[s].appendChild(e)}return this},prepend:function(e){var n,r;for(n=0;n<this.length;n+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[n].insertBefore(o.childNodes[r],this[n].childNodes[0])}else if(e instanceof i)for(r=0;r<e.length;r+=1)this[n].insertBefore(e[r],this[n].childNodes[0]);else this[n].insertBefore(e,this[n].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&n(this[0].nextElementSibling).is(t)?new i([this[0].nextElementSibling]):new i([]):this[0].nextElementSibling?new i([this[0].nextElementSibling]):new i([]):new i([])},nextAll:function(t){var e=[],r=this[0];if(!r)return new i([]);for(;r.nextElementSibling;){var o=r.nextElementSibling;t?n(o).is(t)&&e.push(o):e.push(o),r=o}return new i(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&n(e.previousElementSibling).is(t)?new i([e.previousElementSibling]):new i([]):e.previousElementSibling?new i([e.previousElementSibling]):new i([])}return new i([])},prevAll:function(t){var e=[],r=this[0];if(!r)return new i([]);for(;r.previousElementSibling;){var o=r.previousElementSibling;t?n(o).is(t)&&e.push(o):e.push(o),r=o}return new i(e)},parent:function(t){for(var e=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?n(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return n(r(e))},parents:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var o=this[i].parentNode;o;)t?n(o).is(t)&&e.push(o):e.push(o),o=o.parentNode;return n(r(e))},closest:function(t){var e=this;return void 0===t?new i([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var r=this[n].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return new i(e)},children:function(t){for(var e=[],o=0;o<this.length;o+=1)for(var s=this[o].childNodes,a=0;a<s.length;a+=1)t?1===s[a].nodeType&&n(s[a]).is(t)&&e.push(s[a]):1===s[a].nodeType&&e.push(s[a]);return new i(r(e))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,r;for(i=0;i<t.length;i+=1){var o=n(t[i]);for(r=0;r<o.length;r+=1)this[this.length]=o[r],this.length+=1}return this},styles:function(){return this[0]?e.getComputedStyle(this[0],null):{}}};Object.keys(o).forEach(function(t){n.fn[t]=n.fn[t]||o[t]});var a,l,u={deleteProps:function(t){var e=t;Object.keys(e).forEach(function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:function(t,e){return void 0===e&&(e=0),setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t,i){var n,r,o;void 0===i&&(i="x");var s=e.getComputedStyle(t,null);return e.WebKitCSSMatrix?((r=s.transform||s.webkitTransform).split(",").length>6&&(r=r.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),o=new e.WebKitCSSMatrix("none"===r?"":r)):n=(o=s.MozTransform||s.OTransform||s.MsTransform||s.msTransform||s.transform||s.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===i&&(r=e.WebKitCSSMatrix?o.m41:16===n.length?parseFloat(n[12]):parseFloat(n[4])),"y"===i&&(r=e.WebKitCSSMatrix?o.m42:16===n.length?parseFloat(n[13]):parseFloat(n[5])),r||0},parseUrlQuery:function(t){var i,n,r,o,s={},a=t||e.location.href;if("string"==typeof a&&a.length)for(o=(n=(a=a.indexOf("?")>-1?a.replace(/\S*\?/,""):"").split("&").filter(function(t){return""!==t})).length,i=0;i<o;i+=1)r=n[i].replace(/#\S+/g,"").split("="),s[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return s},isObject:function(t){return"object"===(void 0===t?"undefined":s(t))&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var i=Object(t[0]),n=1;n<t.length;n+=1){var r=t[n];if(void 0!==r&&null!==r)for(var o=Object.keys(Object(r)),s=0,a=o.length;s<a;s+=1){var l=o[s],c=Object.getOwnPropertyDescriptor(r,l);void 0!==c&&c.enumerable&&(u.isObject(i[l])&&u.isObject(r[l])?u.extend(i[l],r[l]):!u.isObject(i[l])&&u.isObject(r[l])?(i[l]={},u.extend(i[l],r[l])):i[l]=r[l])}}return i}},c=(l=t.createElement("div"),{touch:e.Modernizr&&!0===e.Modernizr.touch||!!(e.navigator.maxTouchPoints>0||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!(e.navigator.pointerEnabled||e.PointerEvent||"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>0),prefixedPointerEvents:!!e.navigator.msPointerEnabled,transition:(a=l.style,"transition"in a||"webkitTransition"in a||"MozTransition"in a),transforms3d:e.Modernizr&&!0===e.Modernizr.csstransforms3d||function(){var t=l.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=l.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in t)return!0;return!1}(),observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var i=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,i)}catch(t){}return t}(),gestures:"ongesturestart"in e}),h=function(){return{isIE:!!e.navigator.userAgent.match(/Trident/g)||!!e.navigator.userAgent.match(/MSIE/g),isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)};var t}(),d=function(t){void 0===t&&(t={});var e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(function(t){e.on(t,e.params.on[t])})},f={components:{configurable:!0}};d.prototype.on=function(t,e,i){var n=this;if("function"!=typeof e)return n;var r=i?"unshift":"push";return t.split(" ").forEach(function(t){n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][r](e)}),n},d.prototype.once=function(t,e,i){var n=this;if("function"!=typeof e)return n;function r(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];e.apply(n,i),n.off(t,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=e,n.on(t,r,i)},d.prototype.off=function(t,e){var i=this;return i.eventsListeners?(t.split(" ").forEach(function(t){void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach(function(n,r){(n===e||n.f7proxy&&n.f7proxy===e)&&i.eventsListeners[t].splice(r,1)})}),i):i},d.prototype.emit=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var i,n,r,o=this;return o.eventsListeners?("string"==typeof t[0]||Array.isArray(t[0])?(i=t[0],n=t.slice(1,t.length),r=o):(i=t[0].events,n=t[0].data,r=t[0].context||o),(Array.isArray(i)?i:i.split(" ")).forEach(function(t){if(o.eventsListeners&&o.eventsListeners[t]){var e=[];o.eventsListeners[t].forEach(function(t){e.push(t)}),e.forEach(function(t){t.apply(r,n)})}}),o):o},d.prototype.useModulesParams=function(t){var e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var n=e.modules[i];n.params&&u.extend(t,n.params)})},d.prototype.useModules=function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var n=e.modules[i],r=t[i]||{};n.instance&&Object.keys(n.instance).forEach(function(t){var i=n.instance[t];e[t]="function"==typeof i?i.bind(e):i}),n.on&&e.on&&Object.keys(n.on).forEach(function(t){e.on(t,n.on[t])}),n.create&&n.create.bind(e)(r)})},f.components.set=function(t){this.use&&this.use(t)},d.installModule=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var n=this;n.prototype.modules||(n.prototype.modules={});var r=t.name||Object.keys(n.prototype.modules).length+"_"+u.now();return n.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach(function(e){n.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(function(e){n[e]=t.static[e]}),t.install&&t.install.apply(n,e),n},d.use=function(t){for(var e=[],i=arguments.length-1;i-- >0;)e[i]=arguments[i+1];var n=this;return Array.isArray(t)?(t.forEach(function(t){return n.installModule(t)}),n):n.installModule.apply(n,[t].concat(e))},Object.defineProperties(d,f);var p={updateSize:function(){var t,e,i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientWidth,e=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),u.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){var t=this.params,i=this.$wrapperEl,n=this.size,r=this.rtlTranslate,o=this.wrongRTL,s=this.virtual&&t.virtual.enabled,a=s?this.virtual.slides.length:this.slides.length,l=i.children("."+this.params.slideClass),d=s?this.virtual.slides.length:l.length,f=[],p=[],v=[],g=t.slidesOffsetBefore;"function"==typeof g&&(g=t.slidesOffsetBefore.call(this));var m=t.slidesOffsetAfter;"function"==typeof m&&(m=t.slidesOffsetAfter.call(this));var y=this.snapGrid.length,_=this.snapGrid.length,b=t.spaceBetween,x=-g,w=0,S=0;if(void 0!==n){var T,E;"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*n),this.virtualSize=-b,r?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(T=Math.floor(d/t.slidesPerColumn)===d/this.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var C,O=t.slidesPerColumn,M=T/O,P=Math.floor(d/t.slidesPerColumn),k=0;k<d;k+=1){E=0;var I=l.eq(k);if(t.slidesPerColumn>1){var L=void 0,A=void 0,R=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)R=k-(A=Math.floor(k/O))*O,(A>P||A===P&&R===O-1)&&(R+=1)>=O&&(R=0,A+=1);else{var F=Math.floor(k/t.slidesPerGroup);A=k-(R=Math.floor(k/t.slidesPerView)-F*t.slidesPerColumn)*t.slidesPerView-F*t.slidesPerView}L=A+R*T/O,I.css({"-webkit-box-ordinal-group":L,"-moz-box-ordinal-group":L,"-ms-flex-order":L,"-webkit-order":L,order:L})}else A=k-(R=Math.floor(k/M))*M;I.css("margin-"+(this.isHorizontal()?"top":"left"),0!==R&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",A).attr("data-swiper-row",R)}if("none"!==I.css("display")){if("auto"===t.slidesPerView){var D=e.getComputedStyle(I[0],null),j=I[0].style.transform,N=I[0].style.webkitTransform;if(j&&(I[0].style.transform="none"),N&&(I[0].style.webkitTransform="none"),t.roundLengths)E=this.isHorizontal()?I.outerWidth(!0):I.outerHeight(!0);else if(this.isHorizontal()){var $=parseFloat(D.getPropertyValue("width")),G=parseFloat(D.getPropertyValue("padding-left")),z=parseFloat(D.getPropertyValue("padding-right")),B=parseFloat(D.getPropertyValue("margin-left")),Y=parseFloat(D.getPropertyValue("margin-right")),V=D.getPropertyValue("box-sizing");E=V&&"border-box"===V&&!h.isIE?$+B+Y:$+G+z+B+Y}else{var W=parseFloat(D.getPropertyValue("height")),H=parseFloat(D.getPropertyValue("padding-top")),U=parseFloat(D.getPropertyValue("padding-bottom")),X=parseFloat(D.getPropertyValue("margin-top")),q=parseFloat(D.getPropertyValue("margin-bottom")),K=D.getPropertyValue("box-sizing");E=K&&"border-box"===K&&!h.isIE?W+X+q:W+H+U+X+q}j&&(I[0].style.transform=j),N&&(I[0].style.webkitTransform=N),t.roundLengths&&(E=Math.floor(E))}else E=(n-(t.slidesPerView-1)*b)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),l[k]&&(this.isHorizontal()?l[k].style.width=E+"px":l[k].style.height=E+"px");l[k]&&(l[k].swiperSlideSize=E),v.push(E),t.centeredSlides?(x=x+E/2+w/2+b,0===w&&0!==k&&(x=x-n/2-b),0===k&&(x=x-n/2-b),Math.abs(x)<.001&&(x=0),t.roundLengths&&(x=Math.floor(x)),S%t.slidesPerGroup==0&&f.push(x),p.push(x)):(t.roundLengths&&(x=Math.floor(x)),S%t.slidesPerGroup==0&&f.push(x),p.push(x),x=x+E+b),this.virtualSize+=E+b,w=E,S+=1}}if(this.virtualSize=Math.max(this.virtualSize,n)+m,r&&o&&("slide"===t.effect||"coverflow"===t.effect)&&i.css({width:this.virtualSize+t.spaceBetween+"px"}),c.flexbox&&!t.setWrapperSize||(this.isHorizontal()?i.css({width:this.virtualSize+t.spaceBetween+"px"}):i.css({height:this.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(this.virtualSize=(E+t.spaceBetween)*T,this.virtualSize=Math.ceil(this.virtualSize/t.slidesPerColumn)-t.spaceBetween,this.isHorizontal()?i.css({width:this.virtualSize+t.spaceBetween+"px"}):i.css({height:this.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){C=[];for(var Z=0;Z<f.length;Z+=1){var J=f[Z];t.roundLengths&&(J=Math.floor(J)),f[Z]<this.virtualSize+f[0]&&C.push(J)}f=C}if(!t.centeredSlides){C=[];for(var Q=0;Q<f.length;Q+=1){var tt=f[Q];t.roundLengths&&(tt=Math.floor(tt)),f[Q]<=this.virtualSize-n&&C.push(tt)}f=C,Math.floor(this.virtualSize-n)-Math.floor(f[f.length-1])>1&&f.push(this.virtualSize-n)}if(0===f.length&&(f=[0]),0!==t.spaceBetween&&(this.isHorizontal()?r?l.css({marginLeft:b+"px"}):l.css({marginRight:b+"px"}):l.css({marginBottom:b+"px"})),t.centerInsufficientSlides){var et=0;if(v.forEach(function(e){et+=e+(t.spaceBetween?t.spaceBetween:0)}),(et-=t.spaceBetween)<n){var it=(n-et)/2;f.forEach(function(t,e){f[e]=t-it}),p.forEach(function(t,e){p[e]=t+it})}}u.extend(this,{slides:l,snapGrid:f,slidesGrid:p,slidesSizesGrid:v}),d!==a&&this.emit("slidesLengthChange"),f.length!==y&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),p.length!==_&&this.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(t){var e,i=[],n=0;if("number"==typeof t?this.setTransition(t):!0===t&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(e=0;e<Math.ceil(this.params.slidesPerView);e+=1){var r=this.activeIndex+e;if(r>this.slides.length)break;i.push(this.slides.eq(r)[0])}else i.push(this.slides.eq(this.activeIndex)[0]);for(e=0;e<i.length;e+=1)if(void 0!==i[e]){var o=i[e].offsetHeight;n=o>n?o:n}n&&this.$wrapperEl.css("height",n+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this.params,i=this.slides,r=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var o=-t;r&&(o=t),i.removeClass(e.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var s=0;s<i.length;s+=1){var a=i[s],l=(o+(e.centeredSlides?this.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+e.spaceBetween);if(e.watchSlidesVisibility){var u=-(o-a.swiperSlideOffset),c=u+this.slidesSizesGrid[s];(u>=0&&u<this.size-1||c>1&&c<=this.size||u<=0&&c>=this.size)&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(s),i.eq(s).addClass(e.slideVisibleClass))}a.progress=r?-l:l}this.visibleSlides=n(this.visibleSlides)}},updateProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this.params,i=this.maxTranslate()-this.minTranslate(),n=this.progress,r=this.isBeginning,o=this.isEnd,s=r,a=o;0===i?(n=0,r=!0,o=!0):(r=(n=(t-this.minTranslate())/i)<=0,o=n>=1),u.extend(this,{progress:n,isBeginning:r,isEnd:o}),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesProgress(t),r&&!s&&this.emit("reachBeginning toEdge"),o&&!a&&this.emit("reachEnd toEdge"),(s&&!r||a&&!o)&&this.emit("fromEdge"),this.emit("progress",n)},updateSlidesClasses:function(){var t,e=this.slides,i=this.params,n=this.$wrapperEl,r=this.activeIndex,o=this.realIndex,s=this.virtual&&i.virtual.enabled;e.removeClass(i.slideActiveClass+" "+i.slideNextClass+" "+i.slidePrevClass+" "+i.slideDuplicateActiveClass+" "+i.slideDuplicateNextClass+" "+i.slideDuplicatePrevClass),(t=s?this.$wrapperEl.find("."+i.slideClass+'[data-swiper-slide-index="'+r+'"]'):e.eq(r)).addClass(i.slideActiveClass),i.loop&&(t.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(i.slideDuplicateActiveClass));var a=t.nextAll("."+i.slideClass).eq(0).addClass(i.slideNextClass);i.loop&&0===a.length&&(a=e.eq(0)).addClass(i.slideNextClass);var l=t.prevAll("."+i.slideClass).eq(0).addClass(i.slidePrevClass);i.loop&&0===l.length&&(l=e.eq(-1)).addClass(i.slidePrevClass),i.loop&&(a.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicateNextClass),l.hasClass(i.slideDuplicateClass)?n.children("."+i.slideClass+":not(."+i.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass):n.children("."+i.slideClass+"."+i.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(i.slideDuplicatePrevClass))},updateActiveIndex:function(t){var e,i=this.rtlTranslate?this.translate:-this.translate,n=this.slidesGrid,r=this.snapGrid,o=this.params,s=this.activeIndex,a=this.realIndex,l=this.snapIndex,c=t;if(void 0===c){for(var h=0;h<n.length;h+=1)void 0!==n[h+1]?i>=n[h]&&i<n[h+1]-(n[h+1]-n[h])/2?c=h:i>=n[h]&&i<n[h+1]&&(c=h+1):i>=n[h]&&(c=h);o.normalizeSlideIndex&&(c<0||void 0===c)&&(c=0)}if((e=r.indexOf(i)>=0?r.indexOf(i):Math.floor(c/o.slidesPerGroup))>=r.length&&(e=r.length-1),c!==s){var d=parseInt(this.slides.eq(c).attr("data-swiper-slide-index")||c,10);u.extend(this,{snapIndex:e,realIndex:d,previousIndex:s,activeIndex:c}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),a!==d&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else e!==l&&(this.snapIndex=e,this.emit("snapIndexChange"))},updateClickedSlide:function(t){var e=this.params,i=n(t.target).closest("."+e.slideClass)[0],r=!1;if(i)for(var o=0;o<this.slides.length;o+=1)this.slides[o]===i&&(r=!0);if(!i||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(n(i).attr("data-swiper-slide-index"),10):this.clickedIndex=n(i).index(),e.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var v={getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this.params,i=this.rtlTranslate,n=this.translate,r=this.$wrapperEl;if(e.virtualTranslate)return i?-n:n;var o=u.getTranslate(r[0],t);return i&&(o=-o),o||0},setTranslate:function(t,e){var i=this.rtlTranslate,n=this.params,r=this.$wrapperEl,o=this.progress,s=0,a=0;this.isHorizontal()?s=i?-t:t:a=t,n.roundLengths&&(s=Math.floor(s),a=Math.floor(a)),n.virtualTranslate||(c.transforms3d?r.transform("translate3d("+s+"px, "+a+"px, 0px)"):r.transform("translate("+s+"px, "+a+"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:a;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(t-this.minTranslate())/l)!==o&&this.updateProgress(t),this.emit("setTranslate",this.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var g={setTransition:function(t,e){this.$wrapperEl.transition(t),this.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);var i=this.activeIndex,n=this.params,r=this.previousIndex;n.autoHeight&&this.updateAutoHeight();var o=e;if(o||(o=i>r?"next":i<r?"prev":"reset"),this.emit("transitionStart"),t&&i!==r){if("reset"===o)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===o?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(t,e){void 0===t&&(t=!0);var i=this.activeIndex,n=this.previousIndex;this.animating=!1,this.setTransition(0);var r=e;if(r||(r=i>n?"next":i<n?"prev":"reset"),this.emit("transitionEnd"),t&&i!==n){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}};var m={slideTo:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0);var r=this,o=t;o<0&&(o=0);var s=r.params,a=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,h=r.activeIndex,d=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var f=Math.floor(o/s.slidesPerGroup);f>=a.length&&(f=a.length-1),(h||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var p,v=-a[f];if(r.updateProgress(v),s.normalizeSlideIndex)for(var g=0;g<l.length;g+=1)-Math.floor(100*v)>=Math.floor(100*l[g])&&(o=g);if(r.initialized&&o!==h){if(!r.allowSlideNext&&v<r.translate&&v<r.minTranslate())return!1;if(!r.allowSlidePrev&&v>r.translate&&v>r.maxTranslate()&&(h||0)!==o)return!1}return p=o>h?"next":o<h?"prev":"reset",d&&-v===r.translate||!d&&v===r.translate?(r.updateActiveIndex(o),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(v),"reset"!==p&&(r.transitionStart(i,p),r.transitionEnd(i,p)),!1):(0!==e&&c.transition?(r.setTransition(e),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,p),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,p))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(v),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,p),r.transitionEnd(i,p)),!0)},slideToLoop:function(t,e,i,n){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===i&&(i=!0);var r=t;return this.params.loop&&(r+=this.loopedSlides),this.slideTo(r,e,i,n)},slideNext:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this.params,r=this.animating;return n.loop?!r&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+n.slidesPerGroup,t,e,i)):this.slideTo(this.activeIndex+n.slidesPerGroup,t,e,i)},slidePrev:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this.params,r=this.animating,o=this.snapGrid,s=this.slidesGrid,a=this.rtlTranslate;if(n.loop){if(r)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var u,c=l(a?this.translate:-this.translate),h=o.map(function(t){return l(t)}),d=(s.map(function(t){return l(t)}),o[h.indexOf(c)],o[h.indexOf(c)-1]);return void 0!==d&&(u=s.indexOf(d))<0&&(u=this.activeIndex-1),this.slideTo(u,t,e,i)},slideReset:function(t,e,i){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(t,e,i){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var n=this.activeIndex,r=Math.floor(n/this.params.slidesPerGroup);if(r<this.snapGrid.length-1){var o=this.rtlTranslate?this.translate:-this.translate,s=this.snapGrid[r];o-s>(this.snapGrid[r+1]-s)/2&&(n=this.params.slidesPerGroup)}return this.slideTo(n,t,e,i)},slideToClickedSlide:function(){var t,e=this,i=e.params,r=e.$wrapperEl,o="auto"===i.slidesPerView?e.slidesPerViewDynamic():i.slidesPerView,s=e.clickedIndex;if(i.loop){if(e.animating)return;t=parseInt(n(e.clickedSlide).attr("data-swiper-slide-index"),10),i.centeredSlides?s<e.loopedSlides-o/2||s>e.slides.length-e.loopedSlides+o/2?(e.loopFix(),s=r.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),u.nextTick(function(){e.slideTo(s)})):e.slideTo(s):s>e.slides.length-o?(e.loopFix(),s=r.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+i.slideDuplicateClass+")").eq(0).index(),u.nextTick(function(){e.slideTo(s)})):e.slideTo(s)}else e.slideTo(s)}};var y={loopCreate:function(){var e=this,i=e.params,r=e.$wrapperEl;r.children("."+i.slideClass+"."+i.slideDuplicateClass).remove();var o=r.children("."+i.slideClass);if(i.loopFillGroupWithBlank){var s=i.slidesPerGroup-o.length%i.slidesPerGroup;if(s!==i.slidesPerGroup){for(var a=0;a<s;a+=1){var l=n(t.createElement("div")).addClass(i.slideClass+" "+i.slideBlankClass);r.append(l)}o=r.children("."+i.slideClass)}}"auto"!==i.slidesPerView||i.loopedSlides||(i.loopedSlides=o.length),e.loopedSlides=parseInt(i.loopedSlides||i.slidesPerView,10),e.loopedSlides+=i.loopAdditionalSlides,e.loopedSlides>o.length&&(e.loopedSlides=o.length);var u=[],c=[];o.each(function(t,i){var r=n(i);t<e.loopedSlides&&c.push(i),t<o.length&&t>=o.length-e.loopedSlides&&u.push(i),r.attr("data-swiper-slide-index",t)});for(var h=0;h<c.length;h+=1)r.append(n(c[h].cloneNode(!0)).addClass(i.slideDuplicateClass));for(var d=u.length-1;d>=0;d-=1)r.prepend(n(u[d].cloneNode(!0)).addClass(i.slideDuplicateClass))},loopFix:function(){var t,e=this.params,i=this.activeIndex,n=this.slides,r=this.loopedSlides,o=this.allowSlidePrev,s=this.allowSlideNext,a=this.snapGrid,l=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var u=-a[i]-this.getTranslate();i<r?(t=n.length-3*r+i,t+=r,this.slideTo(t,0,!1,!0)&&0!==u&&this.setTranslate((l?-this.translate:this.translate)-u)):("auto"===e.slidesPerView&&i>=2*r||i>=n.length-r)&&(t=-n.length+i+r,t+=r,this.slideTo(t,0,!1,!0)&&0!==u&&this.setTranslate((l?-this.translate:this.translate)-u));this.allowSlidePrev=o,this.allowSlideNext=s},loopDestroy:function(){var t=this.$wrapperEl,e=this.params,i=this.slides;t.children("."+e.slideClass+"."+e.slideDuplicateClass+",."+e.slideClass+"."+e.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var _={setGrabCursor:function(t){if(!(c.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){c.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var b={appendSlide:function(t){var e=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"===(void 0===t?"undefined":s(t))&&"length"in t)for(var n=0;n<t.length;n+=1)t[n]&&e.append(t[n]);else e.append(t);i.loop&&this.loopCreate(),i.observer&&c.observer||this.update()},prependSlide:function(t){var e=this.params,i=this.$wrapperEl,n=this.activeIndex;e.loop&&this.loopDestroy();var r=n+1;if("object"===(void 0===t?"undefined":s(t))&&"length"in t){for(var o=0;o<t.length;o+=1)t[o]&&i.prepend(t[o]);r=n+t.length}else i.prepend(t);e.loop&&this.loopCreate(),e.observer&&c.observer||this.update(),this.slideTo(r,0,!1)},addSlide:function(t,e){var i=this.$wrapperEl,n=this.params,r=this.activeIndex;n.loop&&(r-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+n.slideClass));var o=this.slides.length;if(t<=0)this.prependSlide(e);else if(t>=o)this.appendSlide(e);else{for(var a=r>t?r+1:r,l=[],u=o-1;u>=t;u-=1){var h=this.slides.eq(u);h.remove(),l.unshift(h)}if("object"===(void 0===e?"undefined":s(e))&&"length"in e){for(var d=0;d<e.length;d+=1)e[d]&&i.append(e[d]);a=r>t?r+e.length:r}else i.append(e);for(var f=0;f<l.length;f+=1)i.append(l[f]);n.loop&&this.loopCreate(),n.observer&&c.observer||this.update(),n.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)}},removeSlide:function(t){var e=this.params,i=this.$wrapperEl,n=this.activeIndex;e.loop&&(n-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+e.slideClass));var r,o=n;if("object"===(void 0===t?"undefined":s(t))&&"length"in t){for(var a=0;a<t.length;a+=1)r=t[a],this.slides[r]&&this.slides.eq(r).remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=t,this.slides[r]&&this.slides.eq(r).remove(),r<o&&(o-=1),o=Math.max(o,0);e.loop&&this.loopCreate(),e.observer&&c.observer||this.update(),e.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},x=function(){var i=e.navigator.userAgent,n={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:e.cordova||e.phonegap,phonegap:e.cordova||e.phonegap},r=i.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),o=i.match(/(Android);?[\s\/]+([\d.]+)?/),s=i.match(/(iPad).*OS\s([\d_]+)/),a=i.match(/(iPod)(.*OS\s([\d_]+))?/),l=!s&&i.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(n.os="windows",n.osVersion=r[2],n.windows=!0),o&&!r&&(n.os="android",n.osVersion=o[2],n.android=!0,n.androidChrome=i.toLowerCase().indexOf("chrome")>=0),(s||l||a)&&(n.os="ios",n.ios=!0),l&&!a&&(n.osVersion=l[2].replace(/_/g,"."),n.iphone=!0),s&&(n.osVersion=s[2].replace(/_/g,"."),n.ipad=!0),a&&(n.osVersion=a[3]?a[3].replace(/_/g,"."):null,n.iphone=!0),n.ios&&n.osVersion&&i.indexOf("Version/")>=0&&"10"===n.osVersion.split(".")[0]&&(n.osVersion=i.toLowerCase().split("version/")[1].split(" ")[0]),n.desktop=!(n.os||n.android||n.webView),n.webView=(l||s||a)&&i.match(/.*AppleWebKit(?!.*Safari)/i),n.os&&"ios"===n.os){var u=n.osVersion.split("."),c=t.querySelector('meta[name="viewport"]');n.minimalUi=!n.webView&&(a||l)&&(1*u[0]==7?1*u[1]>=1:1*u[0]>7)&&c&&c.getAttribute("content").indexOf("minimal-ui")>=0}return n.pixelRatio=e.devicePixelRatio||1,n}();function w(){var t=this.params,e=this.el;if(!e||0!==e.offsetWidth){t.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,n=this.allowSlidePrev,r=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),t.freeMode){var o=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(o),this.updateActiveIndex(),this.updateSlidesClasses(),t.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=n,this.allowSlideNext=i,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}var S={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},T={update:p,translate:v,transition:g,slide:m,loop:y,grabCursor:_,manipulation:b,events:{attachEvents:function(){var i=this.params,r=this.touchEvents,o=this.el,s=this.wrapperEl;this.onTouchStart=function(i){var r=this.touchEventsData,o=this.params,s=this.touches;if(!this.animating||!o.preventInteractionOnTransition){var a=i;if(a.originalEvent&&(a=a.originalEvent),r.isTouchEvent="touchstart"===a.type,(r.isTouchEvent||!("which"in a)||3!==a.which)&&!(!r.isTouchEvent&&"button"in a&&a.button>0||r.isTouched&&r.isMoved))if(o.noSwiping&&n(a.target).closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])this.allowClick=!0;else if(!o.swipeHandler||n(a).closest(o.swipeHandler)[0]){s.currentX="touchstart"===a.type?a.targetTouches[0].pageX:a.pageX,s.currentY="touchstart"===a.type?a.targetTouches[0].pageY:a.pageY;var l=s.currentX,c=s.currentY,h=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,d=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(!h||!(l<=d||l>=e.screen.width-d)){if(u.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),s.startX=l,s.startY=c,r.touchStartTime=u.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==a.type){var f=!0;n(a.target).is(r.formElements)&&(f=!1),t.activeElement&&n(t.activeElement).is(r.formElements)&&t.activeElement!==a.target&&t.activeElement.blur();var p=f&&this.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||p)&&a.preventDefault()}this.emit("touchStart",a)}}}}.bind(this),this.onTouchMove=function(e){var i=this.touchEventsData,r=this.params,o=this.touches,s=this.rtlTranslate,a=e;if(a.originalEvent&&(a=a.originalEvent),i.isTouched){if(!i.isTouchEvent||"mousemove"!==a.type){var l="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,c="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(a.preventedByNestedSwiper)return o.startX=l,void(o.startY=c);if(!this.allowTouchMove)return this.allowClick=!1,void(i.isTouched&&(u.extend(o,{startX:l,startY:c,currentX:l,currentY:c}),i.touchStartTime=u.now()));if(i.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(this.isVertical()){if(c<o.startY&&this.translate<=this.maxTranslate()||c>o.startY&&this.translate>=this.minTranslate())return i.isTouched=!1,void(i.isMoved=!1)}else if(l<o.startX&&this.translate<=this.maxTranslate()||l>o.startX&&this.translate>=this.minTranslate())return;if(i.isTouchEvent&&t.activeElement&&a.target===t.activeElement&&n(a.target).is(i.formElements))return i.isMoved=!0,void(this.allowClick=!1);if(i.allowTouchCallbacks&&this.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){o.currentX=l,o.currentY=c;var h,d=o.currentX-o.startX,f=o.currentY-o.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(f,2))<this.params.threshold))if(void 0===i.isScrolling&&(this.isHorizontal()&&o.currentY===o.startY||this.isVertical()&&o.currentX===o.startX?i.isScrolling=!1:d*d+f*f>=25&&(h=180*Math.atan2(Math.abs(f),Math.abs(d))/Math.PI,i.isScrolling=this.isHorizontal()?h>r.touchAngle:90-h>r.touchAngle)),i.isScrolling&&this.emit("touchMoveOpposite",a),void 0===i.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(i.startMoving=!0)),i.isScrolling)i.isTouched=!1;else if(i.startMoving){this.allowClick=!1,a.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&a.stopPropagation(),i.isMoved||(r.loop&&this.loopFix(),i.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),i.allowMomentumBounce=!1,!r.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",a)),this.emit("sliderMove",a),i.isMoved=!0;var p=this.isHorizontal()?d:f;o.diff=p,p*=r.touchRatio,s&&(p=-p),this.swipeDirection=p>0?"prev":"next",i.currentTranslate=p+i.startTranslate;var v=!0,g=r.resistanceRatio;if(r.touchReleaseOnEdges&&(g=0),p>0&&i.currentTranslate>this.minTranslate()?(v=!1,r.resistance&&(i.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+i.startTranslate+p,g))):p<0&&i.currentTranslate<this.maxTranslate()&&(v=!1,r.resistance&&(i.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-i.startTranslate-p,g))),v&&(a.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&i.currentTranslate<i.startTranslate&&(i.currentTranslate=i.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&i.currentTranslate>i.startTranslate&&(i.currentTranslate=i.startTranslate),r.threshold>0){if(!(Math.abs(p)>r.threshold||i.allowThresholdMove))return void(i.currentTranslate=i.startTranslate);if(!i.allowThresholdMove)return i.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,i.currentTranslate=i.startTranslate,void(o.diff=this.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&(0===i.velocities.length&&i.velocities.push({position:o[this.isHorizontal()?"startX":"startY"],time:i.touchStartTime}),i.velocities.push({position:o[this.isHorizontal()?"currentX":"currentY"],time:u.now()})),this.updateProgress(i.currentTranslate),this.setTranslate(i.currentTranslate))}}}}else i.startMoving&&i.isScrolling&&this.emit("touchMoveOpposite",a)}.bind(this),this.onTouchEnd=function(t){var e=this,i=e.touchEventsData,n=e.params,r=e.touches,o=e.rtlTranslate,s=e.$wrapperEl,a=e.slidesGrid,l=e.snapGrid,c=t;if(c.originalEvent&&(c=c.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",c),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var h,d=u.now(),f=d-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(c),e.emit("tap",c),f<300&&d-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=u.nextTick(function(){e&&!e.destroyed&&e.emit("click",c)},300)),f<300&&d-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),e.emit("doubleTap",c))),i.lastClickTime=u.now(),u.nextTick(function(){e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);if(i.isTouched=!1,i.isMoved=!1,i.startMoving=!1,h=n.followFinger?o?e.translate:-e.translate:-i.currentTranslate,n.freeMode){if(h<-e.minTranslate())return void e.slideTo(e.activeIndex);if(h>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var p=i.velocities.pop(),v=i.velocities.pop(),g=p.position-v.position,m=p.time-v.time;e.velocity=g/m,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(m>150||u.now()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var y=1e3*n.freeModeMomentumRatio,_=e.velocity*y,b=e.translate+_;o&&(b=-b);var x,w,S=!1,T=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio;if(b<e.maxTranslate())n.freeModeMomentumBounce?(b+e.maxTranslate()<-T&&(b=e.maxTranslate()-T),x=e.maxTranslate(),S=!0,i.allowMomentumBounce=!0):b=e.maxTranslate(),n.loop&&n.centeredSlides&&(w=!0);else if(b>e.minTranslate())n.freeModeMomentumBounce?(b-e.minTranslate()>T&&(b=e.minTranslate()+T),x=e.minTranslate(),S=!0,i.allowMomentumBounce=!0):b=e.minTranslate(),n.loop&&n.centeredSlides&&(w=!0);else if(n.freeModeSticky){for(var E,C=0;C<l.length;C+=1)if(l[C]>-b){E=C;break}b=-(b=Math.abs(l[E]-b)<Math.abs(l[E-1]-b)||"next"===e.swipeDirection?l[E]:l[E-1])}if(w&&e.once("transitionEnd",function(){e.loopFix()}),0!==e.velocity)y=o?Math.abs((-b-e.translate)/e.velocity):Math.abs((b-e.translate)/e.velocity);else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&S?(e.updateProgress(x),e.setTransition(y),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(function(){e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),e.setTranslate(x),s.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(b),e.setTransition(y),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();(!n.freeModeMomentum||f>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var O=0,M=e.slidesSizesGrid[0],P=0;P<a.length;P+=n.slidesPerGroup)void 0!==a[P+n.slidesPerGroup]?h>=a[P]&&h<a[P+n.slidesPerGroup]&&(O=P,M=a[P+n.slidesPerGroup]-a[P]):h>=a[P]&&(O=P,M=a[a.length-1]-a[a.length-2]);var k=(h-a[O])/M;if(f>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(k>=n.longSwipesRatio?e.slideTo(O+n.slidesPerGroup):e.slideTo(O)),"prev"===e.swipeDirection&&(k>1-n.longSwipesRatio?e.slideTo(O+n.slidesPerGroup):e.slideTo(O))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(O+n.slidesPerGroup),"prev"===e.swipeDirection&&e.slideTo(O)}}}.bind(this),this.onClick=function(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(this);var a="container"===i.touchEventsTarget?o:s,l=!!i.nested;if(c.touch||!c.pointerEvents&&!c.prefixedPointerEvents){if(c.touch){var h=!("touchstart"!==r.start||!c.passiveListener||!i.passiveListeners)&&{passive:!0,capture:!1};a.addEventListener(r.start,this.onTouchStart,h),a.addEventListener(r.move,this.onTouchMove,c.passiveListener?{passive:!1,capture:l}:l),a.addEventListener(r.end,this.onTouchEnd,h)}(i.simulateTouch&&!x.ios&&!x.android||i.simulateTouch&&!c.touch&&x.ios)&&(a.addEventListener("mousedown",this.onTouchStart,!1),t.addEventListener("mousemove",this.onTouchMove,l),t.addEventListener("mouseup",this.onTouchEnd,!1))}else a.addEventListener(r.start,this.onTouchStart,!1),t.addEventListener(r.move,this.onTouchMove,l),t.addEventListener(r.end,this.onTouchEnd,!1);(i.preventClicks||i.preventClicksPropagation)&&a.addEventListener("click",this.onClick,!0),this.on(x.ios||x.android?"resize orientationchange observerUpdate":"resize observerUpdate",w,!0)},detachEvents:function(){var e=this.params,i=this.touchEvents,n=this.el,r=this.wrapperEl,o="container"===e.touchEventsTarget?n:r,s=!!e.nested;if(c.touch||!c.pointerEvents&&!c.prefixedPointerEvents){if(c.touch){var a=!("onTouchStart"!==i.start||!c.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(i.start,this.onTouchStart,a),o.removeEventListener(i.move,this.onTouchMove,s),o.removeEventListener(i.end,this.onTouchEnd,a)}(e.simulateTouch&&!x.ios&&!x.android||e.simulateTouch&&!c.touch&&x.ios)&&(o.removeEventListener("mousedown",this.onTouchStart,!1),t.removeEventListener("mousemove",this.onTouchMove,s),t.removeEventListener("mouseup",this.onTouchEnd,!1))}else o.removeEventListener(i.start,this.onTouchStart,!1),t.removeEventListener(i.move,this.onTouchMove,s),t.removeEventListener(i.end,this.onTouchEnd,!1);(e.preventClicks||e.preventClicksPropagation)&&o.removeEventListener("click",this.onClick,!0),this.off(x.ios||x.android?"resize orientationchange observerUpdate":"resize observerUpdate",w)}},breakpoints:{setBreakpoint:function(){var t=this.activeIndex,e=this.initialized,i=this.loopedSlides;void 0===i&&(i=0);var n=this.params,r=n.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var o=this.getBreakpoint(r);if(o&&this.currentBreakpoint!==o){var s=o in r?r[o]:void 0;s&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(t){var e=s[t];void 0!==e&&(s[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});var a=s||this.originalParams,l=a.direction&&a.direction!==n.direction,c=n.loop&&(a.slidesPerView!==n.slidesPerView||l);l&&e&&this.changeDirection(),u.extend(this.params,a),u.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=o,c&&e&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(t-i+this.loopedSlides,0,!1)),this.emit("breakpoint",a)}}},getBreakpoint:function(t){if(t){var i=!1,n=[];Object.keys(t).forEach(function(t){n.push(t)}),n.sort(function(t,e){return parseInt(t,10)-parseInt(e,10)});for(var r=0;r<n.length;r+=1){var o=n[r];this.params.breakpointsInverse?o<=e.innerWidth&&(i=o):o>=e.innerWidth&&!i&&(i=o)}return i||"max"}}},checkOverflow:{checkOverflow:function(){var t=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var t=this.classNames,e=this.params,i=this.rtl,n=this.$el,r=[];r.push("initialized"),r.push(e.direction),e.freeMode&&r.push("free-mode"),c.flexbox||r.push("no-flexbox"),e.autoHeight&&r.push("autoheight"),i&&r.push("rtl"),e.slidesPerColumn>1&&r.push("multirow"),x.android&&r.push("android"),x.ios&&r.push("ios"),(h.isIE||h.isEdge)&&(c.pointerEvents||c.prefixedPointerEvents)&&r.push("wp8-"+e.direction),r.forEach(function(i){t.push(e.containerModifierClass+i)}),n.addClass(t.join(" "))},removeClasses:function(){var t=this.$el,e=this.classNames;t.removeClass(e.join(" "))}},images:{loadImage:function(t,i,n,r,o,s){var a;function l(){s&&s()}t.complete&&o?l():i?((a=new e.Image).onload=l,a.onerror=l,r&&(a.sizes=r),n&&(a.srcset=n),i&&(a.src=i)):l()},preloadImages:function(){var t=this;function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},E={},C=function(t){function e(){for(var i,r,o,a=[],l=arguments.length;l--;)a[l]=arguments[l];1===a.length&&a[0].constructor&&a[0].constructor===Object?o=a[0]:(r=(i=a)[0],o=i[1]),o||(o={}),o=u.extend({},o),r&&!o.el&&(o.el=r),t.call(this,o),Object.keys(T).forEach(function(t){Object.keys(T[t]).forEach(function(i){e.prototype[i]||(e.prototype[i]=T[t][i])})});var h=this;void 0===h.modules&&(h.modules={}),Object.keys(h.modules).forEach(function(t){var e=h.modules[t];if(e.params){var i=Object.keys(e.params)[0],n=e.params[i];if("object"!==(void 0===n?"undefined":s(n))||null===n)return;if(!(i in o&&"enabled"in n))return;!0===o[i]&&(o[i]={enabled:!0}),"object"!==s(o[i])||"enabled"in o[i]||(o[i].enabled=!0),o[i]||(o[i]={enabled:!1})}});var d=u.extend({},S);h.useModulesParams(d),h.params=u.extend({},d,E,o),h.originalParams=u.extend({},h.params),h.passedParams=u.extend({},o),h.$=n;var f=n(h.params.el);if(r=f[0]){if(f.length>1){var p=[];return f.each(function(t,i){var n=u.extend({},o,{el:i});p.push(new e(n))}),p}r.swiper=h,f.data("swiper",h);var v,g,m=f.children("."+h.params.wrapperClass);return u.extend(h,{$el:f,el:r,$wrapperEl:m,wrapperEl:m[0],classNames:[],slides:n(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===h.params.direction},isVertical:function(){return"vertical"===h.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===f.css("direction"),rtlTranslate:"horizontal"===h.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===f.css("direction")),wrongRTL:"-webkit-box"===m.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:h.params.allowSlideNext,allowSlidePrev:h.params.allowSlidePrev,touchEvents:(v=["touchstart","touchmove","touchend"],g=["mousedown","mousemove","mouseup"],c.pointerEvents?g=["pointerdown","pointermove","pointerup"]:c.prefixedPointerEvents&&(g=["MSPointerDown","MSPointerMove","MSPointerUp"]),h.touchEventsTouch={start:v[0],move:v[1],end:v[2]},h.touchEventsDesktop={start:g[0],move:g[1],end:g[2]},c.touch||!h.params.simulateTouch?h.touchEventsTouch:h.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:u.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:h.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),h.useModules(),h.params.init&&h.init(),h}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var i={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return e.prototype.slidesPerViewDynamic=function(){var t=this.params,e=this.slides,i=this.slidesGrid,n=this.size,r=this.activeIndex,o=1;if(t.centeredSlides){for(var s,a=e[r].swiperSlideSize,l=r+1;l<e.length;l+=1)e[l]&&!s&&(o+=1,(a+=e[l].swiperSlideSize)>n&&(s=!0));for(var u=r-1;u>=0;u-=1)e[u]&&!s&&(o+=1,(a+=e[u].swiperSlideSize)>n&&(s=!0))}else for(var c=r+1;c<e.length;c+=1)i[c]-i[r]<n&&(o+=1);return o},e.prototype.update=function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,i=t.params;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(n(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||n(),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function n(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}},e.prototype.changeDirection=function(t,e){void 0===e&&(e=!0);var i=this.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t?this:(this.$el.removeClass(""+this.params.containerModifierClass+i+" wp8-"+i).addClass(""+this.params.containerModifierClass+t),(h.isIE||h.isEdge)&&(c.pointerEvents||c.prefixedPointerEvents)&&this.$el.addClass(this.params.containerModifierClass+"wp8-"+t),this.params.direction=t,this.slides.each(function(e,i){"vertical"===t?i.style.width="":i.style.height=""}),this.emit("changeDirection"),e&&this.update(),this)},e.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var i=this,n=i.params,r=i.$el,o=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(t){i.off(t)}),!1!==t&&(i.$el[0].swiper=null,i.$el.data("swiper",null),u.deleteProps(i)),i.destroyed=!0,null)},e.extendDefaults=function(t){u.extend(E,t)},i.extendedDefaults.get=function(){return E},i.defaults.get=function(){return S},i.Class.get=function(){return t},i.$.get=function(){return n},Object.defineProperties(e,i),e}(d),O={name:"device",proto:{device:x},static:{device:x}},M={name:"support",proto:{support:c},static:{support:c}},P={name:"browser",proto:{browser:h},static:{browser:h}},k={name:"resize",create:function(){var t=this;u.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){e.addEventListener("resize",this.resize.resizeHandler),e.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){e.removeEventListener("resize",this.resize.resizeHandler),e.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},I={func:e.MutationObserver||e.WebkitMutationObserver,attach:function(t,i){void 0===i&&(i={});var n=this,r=new(0,I.func)(function(t){if(1!==t.length){var i=function(){n.emit("observerUpdate",t[0])};e.requestAnimationFrame?e.requestAnimationFrame(i):e.setTimeout(i,0)}else n.emit("observerUpdate",t[0])});r.observe(t,{attributes:void 0===i.attributes||i.attributes,childList:void 0===i.childList||i.childList,characterData:void 0===i.characterData||i.characterData}),n.observer.observers.push(r)},init:function(){if(c.observer&&this.params.observer){if(this.params.observeParents)for(var t=this.$el.parents(),e=0;e<t.length;e+=1)this.observer.attach(t[e]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(t){t.disconnect()}),this.observer.observers=[]}},L={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){u.extend(this,{observer:{init:I.init.bind(this),attach:I.attach.bind(this),destroy:I.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},A={update:function(t){var e=this,i=e.params,n=i.slidesPerView,r=i.slidesPerGroup,o=i.centeredSlides,s=e.params.virtual,a=s.addSlidesBefore,l=s.addSlidesAfter,c=e.virtual,h=c.from,d=c.to,f=c.slides,p=c.slidesGrid,v=c.renderSlide,g=c.offset;e.updateActiveIndex();var m,y,_,b=e.activeIndex||0;m=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(y=Math.floor(n/2)+r+a,_=Math.floor(n/2)+r+l):(y=n+(r-1)+a,_=r+l);var x=Math.max((b||0)-_,0),w=Math.min((b||0)+y,f.length-1),S=(e.slidesGrid[x]||0)-(e.slidesGrid[0]||0);function T(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(u.extend(e.virtual,{from:x,to:w,offset:S,slidesGrid:e.slidesGrid}),h===x&&d===w&&!t)return e.slidesGrid!==p&&S!==g&&e.slides.css(m,S+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:S,from:x,to:w,slides:function(){for(var t=[],e=x;e<=w;e+=1)t.push(f[e]);return t}()}),void T();var E=[],C=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var O=h;O<=d;O+=1)(O<x||O>w)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+O+'"]').remove();for(var M=0;M<f.length;M+=1)M>=x&&M<=w&&(void 0===d||t?C.push(M):(M>d&&C.push(M),M<h&&E.push(M)));C.forEach(function(t){e.$wrapperEl.append(v(f[t],t))}),E.sort(function(t,e){return e-t}).forEach(function(t){e.$wrapperEl.prepend(v(f[t],t))}),e.$wrapperEl.children(".swiper-slide").css(m,S+"px"),T()},renderSlide:function(t,e){var i=this.params.virtual;if(i.cache&&this.virtual.cache[e])return this.virtual.cache[e];var r=i.renderSlide?n(i.renderSlide.call(this,t,e)):n('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=r),r},appendSlide:function(t){if("object"===(void 0===t?"undefined":s(t))&&"length"in t)for(var e=0;e<t.length;e+=1)t[e]&&this.virtual.slides.push(t[e]);else this.virtual.slides.push(t);this.virtual.update(!0)},prependSlide:function(t){var e=this.activeIndex,i=e+1,n=1;if(Array.isArray(t)){for(var r=0;r<t.length;r+=1)t[r]&&this.virtual.slides.unshift(t[r]);i=e+t.length,n=t.length}else this.virtual.slides.unshift(t);if(this.params.virtual.cache){var o=this.virtual.cache,s={};Object.keys(o).forEach(function(t){s[parseInt(t,10)+n]=o[t]}),this.virtual.cache=s}this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(t){if(void 0!==t&&null!==t){var e=this.activeIndex;if(Array.isArray(t))for(var i=t.length-1;i>=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]<e&&(e-=1),e=Math.max(e,0);else this.virtual.slides.splice(t,1),this.params.virtual.cache&&delete this.virtual.cache[t],t<e&&(e-=1),e=Math.max(e,0);this.virtual.update(!0),this.slideTo(e,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},R={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){u.extend(this,{virtual:{update:A.update.bind(this),appendSlide:A.appendSlide.bind(this),prependSlide:A.prependSlide.bind(this),removeSlide:A.removeSlide.bind(this),removeAllSlides:A.removeAllSlides.bind(this),renderSlide:A.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};u.extend(this.params,t),u.extend(this.originalParams,t),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},F={handle:function(i){var n=this.rtlTranslate,r=i;r.originalEvent&&(r=r.originalEvent);var o=r.keyCode||r.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===o||this.isVertical()&&40===o||34===o))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===o||this.isVertical()&&38===o||33===o))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||t.activeElement&&t.activeElement.nodeName&&("input"===t.activeElement.nodeName.toLowerCase()||"textarea"===t.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===o||34===o||37===o||39===o||38===o||40===o)){var s=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var a=e.innerWidth,l=e.innerHeight,u=this.$el.offset();n&&(u.left-=this.$el[0].scrollLeft);for(var c=[[u.left,u.top],[u.left+this.width,u.top],[u.left,u.top+this.height],[u.left+this.width,u.top+this.height]],h=0;h<c.length;h+=1){var d=c[h];d[0]>=0&&d[0]<=a&&d[1]>=0&&d[1]<=l&&(s=!0)}if(!s)return}this.isHorizontal()?(33!==o&&34!==o&&37!==o&&39!==o||(r.preventDefault?r.preventDefault():r.returnValue=!1),(34!==o&&39!==o||n)&&(33!==o&&37!==o||!n)||this.slideNext(),(33!==o&&37!==o||n)&&(34!==o&&39!==o||!n)||this.slidePrev()):(33!==o&&34!==o&&38!==o&&40!==o||(r.preventDefault?r.preventDefault():r.returnValue=!1),34!==o&&40!==o||this.slideNext(),33!==o&&38!==o||this.slidePrev()),this.emit("keyPress",o)}},enable:function(){this.keyboard.enabled||(n(t).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(n(t).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},D={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){u.extend(this,{keyboard:{enabled:!1,enable:F.enable.bind(this),disable:F.disable.bind(this),handle:F.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var j={lastScrollTime:u.now(),event:e.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in t;if(!e){var i=t.createElement("div");i.setAttribute("onwheel","return;"),e="function"==typeof i.onwheel}return!e&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(e=t.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel",normalize:function(t){var e=0,i=0,n=0,r=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,r=10*i,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||r)&&t.deltaMode&&(1===t.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!e&&(e=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var i=t,n=this,r=n.params.mousewheel;if(!n.mouseEntered&&!r.releaseOnEdges)return!0;i.originalEvent&&(i=i.originalEvent);var o=0,s=n.rtlTranslate?-1:1,a=j.normalize(i);if(r.forceToAxis)if(n.isHorizontal()){if(!(Math.abs(a.pixelX)>Math.abs(a.pixelY)))return!0;o=a.pixelX*s}else{if(!(Math.abs(a.pixelY)>Math.abs(a.pixelX)))return!0;o=a.pixelY}else o=Math.abs(a.pixelX)>Math.abs(a.pixelY)?-a.pixelX*s:-a.pixelY;if(0===o)return!0;if(r.invert&&(o=-o),n.params.freeMode){n.params.loop&&n.loopFix();var l=n.getTranslate()+o*r.sensitivity,c=n.isBeginning,h=n.isEnd;if(l>=n.minTranslate()&&(l=n.minTranslate()),l<=n.maxTranslate()&&(l=n.maxTranslate()),n.setTransition(0),n.setTranslate(l),n.updateProgress(),n.updateActiveIndex(),n.updateSlidesClasses(),(!c&&n.isBeginning||!h&&n.isEnd)&&n.updateSlidesClasses(),n.params.freeModeSticky&&(clearTimeout(n.mousewheel.timeout),n.mousewheel.timeout=u.nextTick(function(){n.slideToClosest()},300)),n.emit("scroll",i),n.params.autoplay&&n.params.autoplayDisableOnInteraction&&n.autoplay.stop(),l===n.minTranslate()||l===n.maxTranslate())return!0}else{if(u.now()-n.mousewheel.lastScrollTime>60)if(o<0)if(n.isEnd&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slideNext(),n.emit("scroll",i);else if(n.isBeginning&&!n.params.loop||n.animating){if(r.releaseOnEdges)return!0}else n.slidePrev(),n.emit("scroll",i);n.mousewheel.lastScrollTime=(new e.Date).getTime()}return i.preventDefault?i.preventDefault():i.returnValue=!1,!1},enable:function(){if(!j.event)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=n(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(j.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!j.event)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=n(this.params.mousewheel.eventsTarged)),t.off(j.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},N={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,e,i=this.params.navigation;(i.nextEl||i.prevEl)&&(i.nextEl&&(t=n(i.nextEl),this.params.uniqueNavElements&&"string"==typeof i.nextEl&&t.length>1&&1===this.$el.find(i.nextEl).length&&(t=this.$el.find(i.nextEl))),i.prevEl&&(e=n(i.prevEl),this.params.uniqueNavElements&&"string"==typeof i.prevEl&&e.length>1&&1===this.$el.find(i.prevEl).length&&(e=this.$el.find(i.prevEl))),t&&t.length>0&&t.on("click",this.navigation.onNextClick),e&&e.length>0&&e.on("click",this.navigation.onPrevClick),u.extend(this.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},$={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,o=this.pagination.$el,s=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((i=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(i-=r-2*this.loopedSlides),i>s-1&&(i-=s),i<0&&"bullets"!==this.params.paginationType&&(i=s+i)):i=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var a,l,u,c=this.pagination.bullets;if(e.dynamicBullets&&(this.pagination.bulletSize=c.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(e.dynamicMainBullets+4)+"px"),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=i-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),a=i-this.pagination.dynamicBulletIndex,u=((l=a+(Math.min(c.length,e.dynamicMainBullets)-1))+a)/2),c.removeClass(e.bulletActiveClass+" "+e.bulletActiveClass+"-next "+e.bulletActiveClass+"-next-next "+e.bulletActiveClass+"-prev "+e.bulletActiveClass+"-prev-prev "+e.bulletActiveClass+"-main"),o.length>1)c.each(function(t,r){var o=n(r),s=o.index();s===i&&o.addClass(e.bulletActiveClass),e.dynamicBullets&&(s>=a&&s<=l&&o.addClass(e.bulletActiveClass+"-main"),s===a&&o.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),s===l&&o.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next"))});else if(c.eq(i).addClass(e.bulletActiveClass),e.dynamicBullets){for(var h=c.eq(a),d=c.eq(l),f=a;f<=l;f+=1)c.eq(f).addClass(e.bulletActiveClass+"-main");h.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),d.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}if(e.dynamicBullets){var p=Math.min(c.length,e.dynamicMainBullets+4),v=(this.pagination.bulletSize*p-this.pagination.bulletSize)/2-u*this.pagination.bulletSize,g=t?"right":"left";c.css(this.isHorizontal()?g:"top",v+"px")}}if("fraction"===e.type&&(o.find("."+e.currentClass).text(e.formatFractionCurrent(i+1)),o.find("."+e.totalClass).text(e.formatFractionTotal(s))),"progressbar"===e.type){var m;m=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var y=(i+1)/s,_=1,b=1;"horizontal"===m?_=y:b=y,o.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+_+") scaleY("+b+")").transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(o.html(e.renderCustom(this,i+1,s)),this.emit("paginationRender",this,o[0])):this.emit("paginationUpdate",this,o[0]),o[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,n="";if("bullets"===t.type){for(var r=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,o=0;o<r;o+=1)t.renderBullet?n+=t.renderBullet.call(this,o,t.bulletClass):n+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";i.html(n),this.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(n=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',i.html(n)),"progressbar"===t.type&&(n=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',i.html(n)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=n(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click","."+e.bulletClass,function(e){e.preventDefault();var i=n(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)}),u.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}}},G={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,i=this.progress,n=t.dragSize,r=t.trackSize,o=t.$dragEl,s=t.$el,a=this.params.scrollbar,l=n,u=(r-n)*i;e?(u=-u)>0?(l=n-u,u=0):-u+n>r&&(l=r+u):u<0?(l=n+u,u=0):u+n>r&&(l=r-u),this.isHorizontal()?(c.transforms3d?o.transform("translate3d("+u+"px, 0, 0)"):o.transform("translateX("+u+"px)"),o[0].style.width=l+"px"):(c.transforms3d?o.transform("translate3d(0px, "+u+"px, 0)"):o.transform("translateY("+u+"px)"),o[0].style.height=l+"px"),a.hide&&(clearTimeout(this.scrollbar.timeout),s[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){s[0].style.opacity=0,s.transition(400)},1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,i=t.$el;e[0].style.width="",e[0].style.height="";var n,r=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,o=this.size/this.virtualSize,s=o*(r/this.size);n="auto"===this.params.scrollbar.dragSize?r*o:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width=n+"px":e[0].style.height=n+"px",i[0].style.display=o>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),u.extend(t,{trackSize:r,divider:o,moveDivider:s,dragSize:n}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition:function(t){var e,i=this.scrollbar,n=this.rtlTranslate,r=i.$el,o=i.dragSize,s=i.trackSize,a=i.dragStartPos;e=(i.getPointerPosition(t)-r.offset()[this.isHorizontal()?"left":"top"]-(null!==a?a:o/2))/(s-o),e=Math.max(Math.min(e,1),0),n&&(e=1-e);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*e;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,n=this.$wrapperEl,r=i.$el,o=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===o[0]||t.target===o?i.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),n.transition(100),o.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),r.transition(0),e.hide&&r.css("opacity",1),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,n=e.$el,r=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),n.transition(0),r.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=u.nextTick(function(){i.css("opacity",0),i.transition(400)},1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,o=e.$el[0],s=!(!c.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},a=!(!c.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};c.touch?(o.addEventListener(i.start,this.scrollbar.onDragStart,s),o.addEventListener(i.move,this.scrollbar.onDragMove,s),o.addEventListener(i.end,this.scrollbar.onDragEnd,a)):(o.addEventListener(n.start,this.scrollbar.onDragStart,s),t.addEventListener(n.move,this.scrollbar.onDragMove,s),t.addEventListener(n.end,this.scrollbar.onDragEnd,a))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,i=this.touchEventsTouch,n=this.touchEventsDesktop,r=this.params,o=e.$el[0],s=!(!c.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},a=!(!c.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};c.touch?(o.removeEventListener(i.start,this.scrollbar.onDragStart,s),o.removeEventListener(i.move,this.scrollbar.onDragMove,s),o.removeEventListener(i.end,this.scrollbar.onDragEnd,a)):(o.removeEventListener(n.start,this.scrollbar.onDragStart,s),t.removeEventListener(n.move,this.scrollbar.onDragMove,s),t.removeEventListener(n.end,this.scrollbar.onDragEnd,a))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,r=n(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&r.length>1&&1===e.find(i.el).length&&(r=e.find(i.el));var o=r.find("."+this.params.scrollbar.dragClass);0===o.length&&(o=n('<div class="'+this.params.scrollbar.dragClass+'"></div>'),r.append(o)),u.extend(t,{$el:r,el:r[0],$dragEl:o,dragEl:o[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},z={setTransform:function(t,e){var i=this.rtl,r=n(t),o=i?-1:1,s=r.attr("data-swiper-parallax")||"0",a=r.attr("data-swiper-parallax-x"),l=r.attr("data-swiper-parallax-y"),u=r.attr("data-swiper-parallax-scale"),c=r.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):this.isHorizontal()?(a=s,l="0"):(l=s,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*e*o+"%":a*e*o+"px",l=l.indexOf("%")>=0?parseInt(l,10)*e+"%":l*e+"px",void 0!==c&&null!==c){var h=c-(c-1)*(1-Math.abs(e));r[0].style.opacity=h}if(void 0===u||null===u)r.transform("translate3d("+a+", "+l+", 0px)");else{var d=u-(u-1)*(1-Math.abs(e));r.transform("translate3d("+a+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,r=t.progress,o=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,r)}),i.each(function(e,i){var s=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(e/2)-r*(o.length-1)),s=Math.min(Math.max(s,-1),1),n(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,s)})})},setTransition:function(t){void 0===t&&(t=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){var r=n(i),o=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(o=0),r.transition(o)})}},B={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,r=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-i,2))},onGestureStart:function(t){var e=this.params.zoom,i=this.zoom,r=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!c.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,r.scaleStart=B.getDistanceBetweenTouches(t)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=n(t.target).closest(".swiper-slide"),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+e.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!c.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,n.scaleMove=B.getDistanceBetweenTouches(t)}n.$imageEl&&0!==n.$imageEl.length&&(c.gestures?i.scale=t.scale*i.currentScale:i.scale=n.scaleMove/n.scaleStart*i.currentScale,i.scale>n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scale<e.minRatio&&(i.scale=e.minRatio+1-Math.pow(e.minRatio-i.scale+1,.5)),n.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!c.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!x.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),e.minRatio),n.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(t){var e=this.zoom,i=e.gesture,n=e.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(x.android&&t.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this.zoom,i=e.gesture,n=e.image,r=e.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=u.getTranslate(i.$imageWrapEl[0],"x")||0,n.startY=u.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(n.startX=-n.startX,n.startY=-n.startY));var o=n.width*e.scale,s=n.height*e.scale;if(!(o<i.slideWidth&&s<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-o/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-s/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!n.isMoved&&!e.isScaling){if(this.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}t.preventDefault(),t.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=n.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=n.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(n.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(n.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(n.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(n.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=n.touchesCurrent.x,r.prevPositionY=n.touchesCurrent.y,r.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,n=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var r=300,o=300,s=n.x*r,a=i.currentX+s,l=n.y*o,u=i.currentY+l;0!==n.x&&(r=Math.abs((a-i.currentX)/n.x)),0!==n.y&&(o=Math.abs((u-i.currentY)/n.y));var c=Math.max(r,o);i.currentX=a,i.currentY=u;var h=i.width*t.scale,d=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-h/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-d/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(c).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,i,r,o,s,a,l,u,c,h,d,f,p,v,g,m,y=this.zoom,_=this.params.zoom,b=y.gesture,x=y.image;(b.$slideEl||(b.$slideEl=this.clickedSlide?n(this.clickedSlide):this.slides.eq(this.activeIndex),b.$imageEl=b.$slideEl.find("img, svg, canvas"),b.$imageWrapEl=b.$imageEl.parent("."+_.containerClass)),b.$imageEl&&0!==b.$imageEl.length)&&(b.$slideEl.addClass(""+_.zoomedSlideClass),void 0===x.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,i="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=x.touchesStart.x,i=x.touchesStart.y),y.scale=b.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,y.currentScale=b.$imageWrapEl.attr("data-swiper-zoom")||_.maxRatio,t?(g=b.$slideEl[0].offsetWidth,m=b.$slideEl[0].offsetHeight,r=b.$slideEl.offset().left+g/2-e,o=b.$slideEl.offset().top+m/2-i,l=b.$imageEl[0].offsetWidth,u=b.$imageEl[0].offsetHeight,c=l*y.scale,h=u*y.scale,p=-(d=Math.min(g/2-c/2,0)),v=-(f=Math.min(m/2-h/2,0)),s=r*y.scale,a=o*y.scale,s<d&&(s=d),s>p&&(s=p),a<f&&(a=f),a>v&&(a=v)):(s=0,a=0),b.$imageWrapEl.transition(300).transform("translate3d("+s+"px, "+a+"px,0)"),b.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?n(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+e.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!c.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};c.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!c.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};c.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove)}}},Y={loadInSlide:function(t,e){void 0===e&&(e=!0);var i=this,r=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var o=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),s=o.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(s=s.add(o[0])),0!==s.length&&s.each(function(t,s){var a=n(s);a.addClass(r.loadingClass);var l=a.attr("data-background"),u=a.attr("data-src"),c=a.attr("data-srcset"),h=a.attr("data-sizes");i.loadImage(a[0],u||l,c,h,!1,function(){if(void 0!==i&&null!==i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeAttr("data-background")):(c&&(a.attr("srcset",c),a.removeAttr("data-srcset")),h&&(a.attr("sizes",h),a.removeAttr("data-sizes")),u&&(a.attr("src",u),a.removeAttr("data-src"))),a.addClass(r.loadedClass).removeClass(r.loadingClass),o.find("."+r.preloaderClass).remove(),i.params.loop&&e){var t=o.attr("data-swiper-slide-index");if(o.hasClass(i.params.slideDuplicateClass)){var n=i.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(n.index(),!1)}else{var s=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadInSlide(s.index(),!1)}}i.emit("lazyImageReady",o[0],a[0])}}),i.emit("lazyImageLoad",o[0],a[0])})}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,r=t.slides,o=t.activeIndex,s=t.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesPerView;function u(t){if(s){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(r[t])return!0;return!1}function c(t){return s?n(t).attr("data-swiper-slide-index"):n(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each(function(e,i){var r=s?n(i).attr("data-swiper-slide-index"):n(i).index();t.lazy.loadInSlide(r)});else if(l>1)for(var h=o;h<o+l;h+=1)u(h)&&t.lazy.loadInSlide(h);else t.lazy.loadInSlide(o);if(a.loadPrevNext)if(l>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var d=a.loadPrevNextAmount,f=l,p=Math.min(o+f+Math.max(d,f),r.length),v=Math.max(o-Math.max(f,d),0),g=o+l;g<p;g+=1)u(g)&&t.lazy.loadInSlide(g);for(var m=v;m<o;m+=1)u(m)&&t.lazy.loadInSlide(m)}else{var y=e.children("."+i.slideNextClass);y.length>0&&t.lazy.loadInSlide(c(y));var _=e.children("."+i.slidePrevClass);_.length>0&&t.lazy.loadInSlide(c(_))}}},V={LinearSpline:function(t,e){var i,n,r,o,s,a=function(t,e){for(n=-1,i=t.length;i-n>1;)t[r=i+n>>1]<=e?n=r:i=r;return i};return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(s=a(this.x,t),o=s-1,(t-this.x[o])*(this.y[s]-this.y[o])/(this.x[s]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new V.LinearSpline(this.slidesGrid,t.slidesGrid):new V.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i,n,r=this,o=r.controller.control;function s(t){var e=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(t),n=-r.controller.spline.interpolate(-e)),n&&"container"!==r.params.controller.by||(i=(t.maxTranslate()-t.minTranslate())/(r.maxTranslate()-r.minTranslate()),n=(e-r.minTranslate())*i+t.minTranslate()),r.params.controller.inverse&&(n=t.maxTranslate()-n),t.updateProgress(n),t.setTranslate(n,r),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(o))for(var a=0;a<o.length;a+=1)o[a]!==e&&o[a]instanceof C&&s(o[a]);else o instanceof C&&e!==o&&s(o)},setTransition:function(t,e){var i,n=this,r=n.controller.control;function o(e){e.setTransition(t,n),0!==t&&(e.transitionStart(),e.params.autoHeight&&u.nextTick(function(){e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(function(){r&&(e.params.loop&&"slide"===n.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(r))for(i=0;i<r.length;i+=1)r[i]!==e&&r[i]instanceof C&&o(r[i]);else r instanceof C&&e!==r&&o(r)}},W={makeElFocusable:function(t){return t.attr("tabIndex","0"),t},addElRole:function(t,e){return t.attr("role",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){var e=this.params.a11y;if(13===t.keyCode){var i=n(t.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(e.lastSlideMessage):this.a11y.notify(e.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(e.firstSlideMessage):this.a11y.notify(e.prevSlideMessage)),this.pagination&&i.is("."+this.params.pagination.bulletClass)&&i[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){if(!this.params.loop){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(i,r){var o=n(r);t.a11y.makeElFocusable(o),t.a11y.addElRole(o,"button"),t.a11y.addElLabel(o,e.paginationBulletMessage.replace(/{{index}}/,o.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var t,e,i=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,i.nextSlideMessage),t.on("keydown",this.a11y.onEnterKey)),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,i.prevSlideMessage),e.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var t,e;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},H={init:function(){if(this.params.history){if(!e.history||!e.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=H.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=H.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=e.location.pathname.slice(1).split("/").filter(function(t){return""!==t}),i=t.length;return{key:t[i-2],value:t[i-1]}},setHistory:function(t,i){if(this.history.initialized&&this.params.history.enabled){var n=this.slides.eq(i),r=H.slugify(n.attr("data-history"));e.location.pathname.includes(t)||(r=t+"/"+r);var o=e.history.state;o&&o.value===r||(this.params.history.replaceState?e.history.replaceState({value:r},null,r):e.history.pushState({value:r},null,r))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var n=0,r=this.slides.length;n<r;n+=1){var o=this.slides.eq(n);if(H.slugify(o.attr("data-history"))===e&&!o.hasClass(this.params.slideDuplicateClass)){var s=o.index();this.slideTo(s,t,i)}}else this.slideTo(0,t,i)}},U={onHashCange:function(){var e=t.location.hash.replace("#","");if(e!==this.slides.eq(this.activeIndex).attr("data-hash")){var i=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+e+'"]').index();if(void 0===i)return;this.slideTo(i)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var i=this.slides.eq(this.activeIndex),n=i.attr("data-hash")||i.attr("data-history");t.location.hash=n||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var i=t.location.hash.replace("#","");if(i)for(var r=0,o=this.slides.length;r<o;r+=1){var s=this.slides.eq(r);if((s.attr("data-hash")||s.attr("data-history"))===i&&!s.hasClass(this.params.slideDuplicateClass)){var a=s.index();this.slideTo(a,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&n(e).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&n(e).off("hashchange",this.hashNavigation.onHashCange)}},X={run:function(){var t=this,e=t.slides.eq(t.activeIndex),i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=u.nextTick(function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(t){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==t&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},q={setTranslate:function(){for(var t=this.slides,e=0;e<t.length;e+=1){var i=this.slides.eq(e),n=-i[0].swiperSlideOffset;this.params.virtualTranslate||(n-=this.translate);var r=0;this.isHorizontal()||(r=n,n=0);var o=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+n+"px, "+r+"px, 0px)")}},setTransition:function(t){var e=this,i=e.slides,n=e.$wrapperEl;if(i.transition(t),e.params.virtualTranslate&&0!==t){var r=!1;i.transitionEnd(function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)n.trigger(t[i])}})}}},K={setTranslate:function(){var t,e=this.$el,i=this.$wrapperEl,r=this.slides,o=this.width,s=this.height,a=this.rtlTranslate,l=this.size,u=this.params.cubeEffect,c=this.isHorizontal(),d=this.virtual&&this.params.virtual.enabled,f=0;u.shadow&&(c?(0===(t=i.find(".swiper-cube-shadow")).length&&(t=n('<div class="swiper-cube-shadow"></div>'),i.append(t)),t.css({height:o+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=n('<div class="swiper-cube-shadow"></div>'),e.append(t)));for(var p=0;p<r.length;p+=1){var v=r.eq(p),g=p;d&&(g=parseInt(v.attr("data-swiper-slide-index"),10));var m=90*g,y=Math.floor(m/360);a&&(m=-m,y=Math.floor(-m/360));var _=Math.max(Math.min(v[0].progress,1),-1),b=0,x=0,w=0;g%4==0?(b=4*-y*l,w=0):(g-1)%4==0?(b=0,w=4*-y*l):(g-2)%4==0?(b=l+4*y*l,w=l):(g-3)%4==0&&(b=-l,w=3*l+4*l*y),a&&(b=-b),c||(x=b,b=0);var S="rotateX("+(c?0:-m)+"deg) rotateY("+(c?m:0)+"deg) translate3d("+b+"px, "+x+"px, "+w+"px)";if(_<=1&&_>-1&&(f=90*g+90*_,a&&(f=90*-g-90*_)),v.transform(S),u.slideShadows){var T=c?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=c?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===T.length&&(T=n('<div class="swiper-slide-shadow-'+(c?"left":"top")+'"></div>'),v.append(T)),0===E.length&&(E=n('<div class="swiper-slide-shadow-'+(c?"right":"bottom")+'"></div>'),v.append(E)),T.length&&(T[0].style.opacity=Math.max(-_,0)),E.length&&(E[0].style.opacity=Math.max(_,0))}}if(i.css({"-webkit-transform-origin":"50% 50% -"+l/2+"px","-moz-transform-origin":"50% 50% -"+l/2+"px","-ms-transform-origin":"50% 50% -"+l/2+"px","transform-origin":"50% 50% -"+l/2+"px"}),u.shadow)if(c)t.transform("translate3d(0px, "+(o/2+u.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+u.shadowScale+")");else{var C=Math.abs(f)-90*Math.floor(Math.abs(f)/90),O=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),M=u.shadowScale,P=u.shadowScale/O,k=u.shadowOffset;t.transform("scale3d("+M+", 1, "+P+") translate3d(0px, "+(s/2+k)+"px, "+-s/2/P+"px) rotateX(-90deg)")}var I=h.isSafari||h.isUiWebView?-l/2:0;i.transform("translate3d(0px,0,"+I+"px) rotateX("+(this.isHorizontal()?0:f)+"deg) rotateY("+(this.isHorizontal()?-f:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},Z={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i<t.length;i+=1){var r=t.eq(i),o=r[0].progress;this.params.flipEffect.limitRotation&&(o=Math.max(Math.min(r[0].progress,1),-1));var s=-180*o,a=0,l=-r[0].swiperSlideOffset,u=0;if(this.isHorizontal()?e&&(s=-s):(u=l,l=0,a=-s,s=0),r[0].style.zIndex=-Math.abs(Math.round(o))+t.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===c.length&&(c=n('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),r.append(c)),0===h.length&&(h=n('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),c.length&&(c[0].style.opacity=Math.max(-o,0)),h.length&&(h[0].style.opacity=Math.max(o,0))}r.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+a+"deg) rotateY("+s+"deg)")}},setTransition:function(t){var e=this,i=e.slides,n=e.activeIndex,r=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var o=!1;i.eq(n).transitionEnd(function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)r.trigger(t[i])}})}}},J={setTranslate:function(){for(var t=this.width,e=this.height,i=this.slides,r=this.$wrapperEl,o=this.slidesSizesGrid,s=this.params.coverflowEffect,a=this.isHorizontal(),l=this.translate,u=a?t/2-l:e/2-l,h=a?s.rotate:-s.rotate,d=s.depth,f=0,p=i.length;f<p;f+=1){var v=i.eq(f),g=o[f],m=(u-v[0].swiperSlideOffset-g/2)/g*s.modifier,y=a?h*m:0,_=a?0:h*m,b=-d*Math.abs(m),x=a?0:s.stretch*m,w=a?s.stretch*m:0;Math.abs(w)<.001&&(w=0),Math.abs(x)<.001&&(x=0),Math.abs(b)<.001&&(b=0),Math.abs(y)<.001&&(y=0),Math.abs(_)<.001&&(_=0);var S="translate3d("+w+"px,"+x+"px,"+b+"px)  rotateX("+_+"deg) rotateY("+y+"deg)";if(v.transform(S),v[0].style.zIndex=1-Math.abs(Math.round(m)),s.slideShadows){var T=a?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=a?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===T.length&&(T=n('<div class="swiper-slide-shadow-'+(a?"left":"top")+'"></div>'),v.append(T)),0===E.length&&(E=n('<div class="swiper-slide-shadow-'+(a?"right":"bottom")+'"></div>'),v.append(E)),T.length&&(T[0].style.opacity=m>0?m:0),E.length&&(E[0].style.opacity=-m>0?-m:0)}}(c.pointerEvents||c.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},Q={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,u.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),u.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):u.isObject(t.swiper)&&(this.thumbs.swiper=new e(u.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,i=t.clickedSlide;if(!(i&&n(i).hasClass(this.params.thumbs.slideThumbActiveClass)||void 0===e||null===e)){var r;if(r=t.params.loop?parseInt(n(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var o=this.activeIndex;this.slides.eq(o).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,o=this.activeIndex);var s=this.slides.eq(o).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),a=this.slides.eq(o).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r=void 0===s?a:void 0===a?s:a-o<o-s?a:s}this.slideTo(r)}}},update:function(t){var e=this.thumbs.swiper;if(e){var i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():e.params.slidesPerView;if(this.realIndex!==e.realIndex){var n,r=e.activeIndex;if(e.params.loop){e.slides.eq(r).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,r=e.activeIndex);var o=e.slides.eq(r).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),s=e.slides.eq(r).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();n=void 0===o?s:void 0===s?o:s-r==r-o?r:s-r<r-o?s:o}else n=this.realIndex;e.visibleSlidesIndexes&&e.visibleSlidesIndexes.indexOf(n)<0&&(e.params.centeredSlides?n=n>r?n-Math.floor(i/2)+1:n+Math.floor(i/2)-1:n>r&&(n=n-i+1),e.slideTo(n,t?0:void 0))}var a=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(a=this.params.slidesPerView),e.slides.removeClass(l),e.params.loop||e.params.virtual)for(var u=0;u<a;u+=1)e.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+u)+'"]').addClass(l);else for(var c=0;c<a;c+=1)e.slides.eq(this.realIndex+c).addClass(l)}}},tt=[O,M,P,k,L,R,D,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){u.extend(this,{mousewheel:{enabled:!1,enable:j.enable.bind(this),disable:j.disable.bind(this),handle:j.handle.bind(this),handleMouseEnter:j.handleMouseEnter.bind(this),handleMouseLeave:j.handleMouseLeave.bind(this),lastScrollTime:u.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){u.extend(this,{navigation:{init:N.init.bind(this),update:N.update.bind(this),destroy:N.destroy.bind(this),onNextClick:N.onNextClick.bind(this),onPrevClick:N.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var e,i=this.navigation,r=i.$nextEl,o=i.$prevEl;!this.params.navigation.hideOnClick||n(t.target).is(o)||n(t.target).is(r)||(r?e=r.hasClass(this.params.navigation.hiddenClass):o&&(e=o.hasClass(this.params.navigation.hiddenClass)),!0===e?this.emit("navigationShow",this):this.emit("navigationHide",this),r&&r.toggleClass(this.params.navigation.hiddenClass),o&&o.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){u.extend(this,{pagination:{init:$.init.bind(this),render:$.render.bind(this),update:$.update.bind(this),destroy:$.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!n(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){u.extend(this,{scrollbar:{init:G.init.bind(this),destroy:G.destroy.bind(this),updateSize:G.updateSize.bind(this),setTranslate:G.setTranslate.bind(this),setTransition:G.setTransition.bind(this),enableDraggable:G.enableDraggable.bind(this),disableDraggable:G.disableDraggable.bind(this),setDragPosition:G.setDragPosition.bind(this),getPointerPosition:G.getPointerPosition.bind(this),onDragStart:G.onDragStart.bind(this),onDragMove:G.onDragMove.bind(this),onDragEnd:G.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){u.extend(this,{parallax:{setTransform:z.setTransform.bind(this),setTranslate:z.setTranslate.bind(this),setTransition:z.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(i){e[i]=B[i].bind(t)}),u.extend(t,{zoom:e});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var n=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,n,r)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){u.extend(this,{lazy:{initialImageLoaded:!1,load:Y.load.bind(this),loadInSlide:Y.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){u.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:V.getInterpolateFunction.bind(this),setTranslate:V.setTranslate.bind(this),setTransition:V.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;u.extend(t,{a11y:{liveRegion:n('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(W).forEach(function(e){t.a11y[e]=W[e].bind(t)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){u.extend(this,{history:{init:H.init.bind(this),setHistory:H.setHistory.bind(this),setHistoryPopState:H.setHistoryPopState.bind(this),scrollToSlide:H.scrollToSlide.bind(this),destroy:H.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){u.extend(this,{hashNavigation:{initialized:!1,init:U.init.bind(this),destroy:U.destroy.bind(this),setHash:U.setHash.bind(this),onHashCange:U.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;u.extend(t,{autoplay:{running:!1,paused:!1,run:X.run.bind(t),start:X.start.bind(t),stop:X.stop.bind(t),pause:X.pause.bind(t),onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){u.extend(this,{fadeEffect:{setTranslate:q.setTranslate.bind(this),setTransition:q.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};u.extend(this.params,t),u.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){u.extend(this,{cubeEffect:{setTranslate:K.setTranslate.bind(this),setTransition:K.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};u.extend(this.params,t),u.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){u.extend(this,{flipEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};u.extend(this.params,t),u.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){u.extend(this,{coverflowEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){u.extend(this,{thumbs:{swiper:null,init:Q.init.bind(this),update:Q.update.bind(this),onThumbClick:Q.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===C.use&&(C.use=C.Class.use,C.installModule=C.Class.installModule),C.use(tt),C},"object"===s(e)&&void 0!==t?t.exports=o():void 0===(r="function"==typeof(n=o)?n.call(e,i,e,t):n)||(t.exports=r)},,,,,,function(t,e){},,,function(t,e,i){"use strict";var n=i(604);t.exports=n},function(t,e,i){"use strict";i(286);var n=i(28);t.exports=n.Object.getOwnPropertySymbols},function(t,e,i){"use strict";var n=i(2),r=i(26),o=i(27),s=i(13),a=i(64),l=i(32),u=i(119),c=i(9),h=i(37),d=i(36),f=i(42),p=i(63),v=i(215),g=i(75),m=i(103),y=i(106),_=i(140),b=i(170),x=i(296),w=i(171),S=i(117),T=i(51),E=i(292),C=i(166),O=i(88),M=i(222),P=i(120),k=i(169),I=i(142),L=i(168),A=i(19),R=i(172),F=i(24),D=i(297),j=i(89),N=i(122),$=i(123).forEach,G=k("hidden"),z=N.set,B=N.getterFor("Symbol"),Y=Object.prototype,V=r.Symbol,W=V&&V.prototype,H=r.RangeError,U=r.TypeError,X=r.QObject,q=S.f,K=T.f,Z=x.f,J=C.f,Q=s([].push),tt=P("symbols"),et=P("op-symbols"),it=P("wks"),nt=!X||!X.prototype||!X.prototype.findChild,rt=function(t,e,i){var n=q(Y,e);n&&delete Y[e],K(t,e,i),n&&t!==Y&&K(Y,e,n)},ot=l&&c(function(){return 7!==y(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a})?rt:K,st=function(t,e){var i=tt[t]=y(W);return z(i,{type:"Symbol",tag:t,description:e}),l||(i.description=e),i},at=function(t,e,i){t===Y&&at(et,e,i),f(t);var n=v(e);return f(i),h(tt,n)?(i.enumerable?(h(t,G)&&t[G][n]&&(t[G][n]=!1),i=y(i,{enumerable:m(0,!1)})):(h(t,G)||K(t,G,m(1,y(null))),t[G][n]=!0),ot(t,n,i)):K(t,n,i)},lt=function(t,e){f(t);var i=p(e),n=_(i).concat(dt(i));return $(n,function(e){l&&!o(ut,i,e)||at(t,e,i[e])}),t},ut=function(t){var e=v(t),i=o(J,this,e);return!(this===Y&&h(tt,e)&&!h(et,e))&&(!(i||!h(this,e)||!h(tt,e)||h(this,G)&&this[G][e])||i)},ct=function(t,e){var i=p(t),n=v(e);if(i!==Y||!h(tt,n)||h(et,n)){var r=q(i,n);return!r||!h(tt,n)||h(i,G)&&i[G][n]||(r.enumerable=!0),r}},ht=function(t){var e=Z(p(t)),i=[];return $(e,function(t){h(tt,t)||h(I,t)||Q(i,t)}),i},dt=function(t){var e=t===Y,i=Z(e?et:p(t)),n=[];return $(i,function(t){!h(tt,t)||e&&!h(Y,t)||Q(n,tt[t])}),n};u||(O(W=(V=function(){if(d(W,this))throw new U("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=L(t),i=function(t){var n=void 0===this?r:this;n===Y&&o(i,et,t),h(n,G)&&h(n[G],e)&&(n[G][e]=!1);var s=m(1,t);try{ot(n,e,s)}catch(t){if(!(t instanceof H))throw t;rt(n,e,s)}};return l&&nt&&ot(Y,e,{configurable:!0,set:i}),st(e,t)}).prototype,"toString",function(){return B(this).tag}),O(V,"withoutSetter",function(t){return st(L(t),t)}),C.f=ut,T.f=at,E.f=lt,S.f=ct,b.f=x.f=ht,w.f=dt,R.f=function(t){return st(A(t),t)},l&&(M(W,"description",{configurable:!0,get:function(){return B(this).description}}),a||O(Y,"propertyIsEnumerable",ut,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!u,sham:!u},{Symbol:V}),$(_(it),function(t){F(t)}),n({target:"Symbol",stat:!0,forced:!u},{useSetter:function(){nt=!0},useSimple:function(){nt=!1}}),n({target:"Object",stat:!0,forced:!u,sham:!l},{create:function(t,e){return void 0===e?y(t):lt(y(t),e)},defineProperty:at,defineProperties:lt,getOwnPropertyDescriptor:ct}),n({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:ht}),D(),j(V,"Symbol"),I[G]=!0},function(t,e,i){"use strict";var n=i(27),r=i(18),o=i(33),s=TypeError;t.exports=function(t,e){var i,a;if("string"===e&&r(i=t.toString)&&!o(a=n(i,t)))return a;if(r(i=t.valueOf)&&!o(a=n(i,t)))return a;if("string"!==e&&r(i=t.toString)&&!o(a=n(i,t)))return a;throw new s("Can't convert object to primitive value")}},function(t,e,i){"use strict";var n=i(26),r=Object.defineProperty;t.exports=function(t,e){try{r(n,t,{value:e,configurable:!0,writable:!0})}catch(i){n[t]=e}return e}},function(t,e,i){"use strict";var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:n)(e)}},function(t,e,i){"use strict";var n=i(218),r=i(121);t.exports=n?{}.toString:function(){return"[object "+r(this)+"]"}},function(t,e,i){"use strict";var n=i(26),r=i(18),o=n.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},function(t,e,i){"use strict";var n=i(108),r=i(173),o=i(33),s=i(19)("species"),a=Array;t.exports=function(t){var e;return n(t)&&(e=t.constructor,r(e)&&(e===a||n(e.prototype))?e=void 0:o(e)&&null===(e=e[s])&&(e=void 0)),void 0===e?a:e}},function(t,e,i){"use strict";var n=i(2),r=i(40),o=i(37),s=i(75),a=i(120),l=i(299),u=a("string-to-symbol-registry"),c=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{for:function(t){var e=s(t);if(o(u,e))return u[e];var i=r("Symbol")(e);return u[e]=i,c[i]=e,i}})},function(t,e,i){"use strict";var n=i(2),r=i(37),o=i(138),s=i(105),a=i(120),l=i(299),u=a("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!l},{keyFor:function(t){if(!o(t))throw new TypeError(s(t)+" is not a symbol");if(r(u,t))return u[t]}})},function(t,e,i){"use strict";var n=i(13),r=i(108),o=i(18),s=i(74),a=i(75),l=n([].push);t.exports=function(t){if(o(t))return t;if(r(t)){for(var e=t.length,i=[],n=0;n<e;n++){var u=t[n];"string"==typeof u?l(i,u):"number"!=typeof u&&"Number"!==s(u)&&"String"!==s(u)||l(i,a(u))}var c=i.length,h=!0;return function(t,e){if(h)return h=!1,e;if(r(this))return e;for(var n=0;n<c;n++)if(i[n]===t)return e}}}},function(t,e,i){"use strict";var n=i(2),r=i(119),o=i(9),s=i(171),a=i(46);n({target:"Object",stat:!0,forced:!r||o(function(){s.f(1)})},{getOwnPropertySymbols:function(t){var e=s.f;return e?e(a(t)):[]}})},function(t,e,i){"use strict";var n=i(617);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(618),o=Array.prototype;t.exports=function(t){var e=t.filter;return t===o||n(o,t)&&e===o.filter?r:e}},function(t,e,i){"use strict";i(619);var n=i(45);t.exports=n("Array","filter")},function(t,e,i){"use strict";var n=i(2),r=i(123).filter;n({target:"Array",proto:!0,forced:!i(143)("filter")},{filter:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){"use strict";i(621);var n=i(28).Object,r=t.exports=function(t,e){return n.getOwnPropertyDescriptor(t,e)};n.getOwnPropertyDescriptor.sham&&(r.sham=!0)},function(t,e,i){"use strict";var n=i(2),r=i(9),o=i(63),s=i(117).f,a=i(32);n({target:"Object",stat:!0,forced:!a||r(function(){s(1)}),sham:!a},{getOwnPropertyDescriptor:function(t,e){return s(o(t),e)}})},function(t,e,i){"use strict";var n=i(623);t.exports=n},function(t,e,i){"use strict";i(624);var n=i(28);t.exports=n.Object.getOwnPropertyDescriptors},function(t,e,i){"use strict";var n=i(2),r=i(32),o=i(302),s=i(63),a=i(117),l=i(144);n({target:"Object",stat:!0,sham:!r},{getOwnPropertyDescriptors:function(t){for(var e,i,n=s(t),r=a.f,u=o(n),c={},h=0;u.length>h;)void 0!==(i=r(n,e=u[h++]))&&l(c,e,i);return c}})},function(t,e,i){"use strict";var n=i(626);t.exports=n},function(t,e,i){"use strict";var n=i(627);t.exports=n},function(t,e,i){"use strict";var n=i(628);t.exports=n},function(t,e,i){"use strict";i(629);var n=i(28).Object,r=t.exports=function(t,e,i){return n.defineProperty(t,e,i)};n.defineProperty.sham&&(r.sham=!0)},function(t,e,i){"use strict";var n=i(2),r=i(32),o=i(51).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==o,sham:!r},{defineProperty:o})},function(t,e,i){"use strict";var n=i(631);i(659),i(660),i(661),i(662),i(663),i(664),i(665),i(666),i(667),i(668),t.exports=n},function(t,e,i){"use strict";var n=i(632);i(655),i(656),i(657),i(658),t.exports=n},function(t,e,i){"use strict";var n=i(633);i(124),t.exports=n},function(t,e,i){"use strict";i(303),i(146),i(286),i(634),i(635),i(636),i(637),i(304),i(638),i(639),i(640),i(641),i(642),i(643),i(305),i(644),i(645),i(646),i(647),i(648);var n=i(28);t.exports=n.Symbol},function(t,e,i){"use strict";i(24)("asyncIterator")},function(t,e){},function(t,e,i){"use strict";i(24)("hasInstance")},function(t,e,i){"use strict";i(24)("isConcatSpreadable")},function(t,e,i){"use strict";i(24)("match")},function(t,e,i){"use strict";i(24)("matchAll")},function(t,e,i){"use strict";i(24)("replace")},function(t,e,i){"use strict";i(24)("search")},function(t,e,i){"use strict";i(24)("species")},function(t,e,i){"use strict";i(24)("split")},function(t,e,i){"use strict";var n=i(40),r=i(24),o=i(89);r("toStringTag"),o(n("Symbol"),"Symbol")},function(t,e,i){"use strict";i(24)("unscopables")},function(t,e,i){"use strict";var n=i(26);i(89)(n.JSON,"JSON",!0)},function(t,e){},function(t,e){},function(t,e,i){"use strict";var n=i(32),r=i(37),o=Function.prototype,s=n&&Object.getOwnPropertyDescriptor,a=r(o,"name"),l=a&&"something"===function(){}.name,u=a&&(!n||n&&s(o,"name").configurable);t.exports={EXISTS:a,PROPER:l,CONFIGURABLE:u}},function(t,e,i){"use strict";var n=i(306).IteratorPrototype,r=i(106),o=i(103),s=i(89),a=i(126),l=function(){return this};t.exports=function(t,e,i,u){var c=e+" Iterator";return t.prototype=r(n,{next:o(+!u,i)}),s(t,c,!1,!0),a[c]=l,t}},function(t,e,i){"use strict";var n=i(13),r=i(38);t.exports=function(t,e,i){try{return n(r(Object.getOwnPropertyDescriptor(t,e)[i]))}catch(t){}}},function(t,e,i){"use strict";var n=i(653),r=String,o=TypeError;t.exports=function(t){if(n(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},function(t,e,i){"use strict";var n=i(33);t.exports=function(t){return n(t)||null===t}},function(t,e,i){"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},function(t,e,i){"use strict";var n=i(19),r=i(51).f,o=n("metadata"),s=Function.prototype;void 0===s[o]&&r(s,o,{value:null})},function(t,e,i){"use strict";i(24)("asyncDispose")},function(t,e,i){"use strict";i(24)("dispose")},function(t,e,i){"use strict";i(24)("metadata")},function(t,e,i){"use strict";i(2)({target:"Symbol",stat:!0},{isRegisteredSymbol:i(308)})},function(t,e,i){"use strict";i(2)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:i(309)})},function(t,e,i){"use strict";i(24)("customMatcher")},function(t,e,i){"use strict";i(24)("observable")},function(t,e,i){"use strict";i(2)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:i(308)})},function(t,e,i){"use strict";i(2)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:i(309)})},function(t,e,i){"use strict";i(24)("matcher")},function(t,e,i){"use strict";i(24)("metadataKey")},function(t,e,i){"use strict";i(24)("patternMatch")},function(t,e,i){"use strict";i(24)("replaceAll")},function(t,e,i){"use strict";var n=i(670);t.exports=n},function(t,e,i){"use strict";var n=i(671);t.exports=n},function(t,e,i){"use strict";var n=i(672);i(124),t.exports=n},function(t,e,i){"use strict";i(125),i(146),i(147),i(304);var n=i(172);t.exports=n.f("iterator")},function(t,e,i){"use strict";var n=i(13),r=i(141),o=i(75),s=i(87),a=n("".charAt),l=n("".charCodeAt),u=n("".slice),c=function(t){return function(e,i){var n,c,h=o(s(e)),d=r(i),f=h.length;return d<0||d>=f?t?"":void 0:(n=l(h,d))<55296||n>56319||d+1===f||(c=l(h,d+1))<56320||c>57343?t?a(h,d):n:t?u(h,d,d+2):c-56320+(n-55296<<10)+65536}};t.exports={codeAt:c(!1),charAt:c(!0)}},function(t,e,i){"use strict";t.exports=i(675)},function(t,e,i){"use strict";var n=i(676);t.exports=n},function(t,e,i){"use strict";var n=i(677);t.exports=n},function(t,e,i){"use strict";var n=i(678);t.exports=n},function(t,e,i){"use strict";i(679),i(305);var n=i(172);t.exports=n.f("toPrimitive")},function(t,e){},function(t,e,i){t.exports=i(681)},function(t,e,i){"use strict";var n=i(682);t.exports=n},function(t,e,i){"use strict";i(683),i(300);var n=i(28),r=i(116);n.JSON||(n.JSON={stringify:JSON.stringify}),t.exports=function(t,e,i){return r(n.JSON.stringify,null,arguments)}},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(46),s=i(287),a=i(684),l=i(74);n({target:"Date",proto:!0,forced:i(9)(function(){return null!==new Date(NaN).toJSON()||1!==r(Date.prototype.toJSON,{toISOString:function(){return 1}})})},{toJSON:function(t){var e=o(this),i=s(e,"number");return"number"!=typeof i||isFinite(i)?"toISOString"in e||"Date"!==l(e)?e.toISOString():r(a,e):null}})},function(t,e,i){"use strict";var n=i(13),r=i(9),o=i(685).start,s=RangeError,a=isFinite,l=Math.abs,u=Date.prototype,c=u.toISOString,h=n(u.getTime),d=n(u.getUTCDate),f=n(u.getUTCFullYear),p=n(u.getUTCHours),v=n(u.getUTCMilliseconds),g=n(u.getUTCMinutes),m=n(u.getUTCMonth),y=n(u.getUTCSeconds);t.exports=r(function(){return"0385-07-25T07:06:39.999Z"!==c.call(new Date(-5e13-1))})||!r(function(){c.call(new Date(NaN))})?function(){if(!a(h(this)))throw new s("Invalid time value");var t=f(this),e=v(this),i=t<0?"-":t>9999?"+":"";return i+o(l(t),i?6:4,0)+"-"+o(m(this)+1,2,0)+"-"+o(d(this),2,0)+"T"+o(p(this),2,0)+":"+o(g(this),2,0)+":"+o(y(this),2,0)+"."+o(e,3,0)+"Z"}:c},function(t,e,i){"use strict";var n=i(13),r=i(294),o=i(75),s=i(686),a=i(87),l=n(s),u=n("".slice),c=Math.ceil,h=function(t){return function(e,i,n){var s,h,d=o(a(e)),f=r(i),p=d.length,v=void 0===n?" ":o(n);return f<=p||""===v?d:((h=l(v,c((s=f-p)/v.length))).length>s&&(h=u(h,0,s)),t?d+h:h+d)}};t.exports={start:h(!1),end:h(!0)}},function(t,e,i){"use strict";var n=i(141),r=i(75),o=i(87),s=RangeError;t.exports=function(t){var e=r(o(this)),i="",a=n(t);if(a<0||a===1/0)throw new s("Wrong number of repetitions");for(;a>0;(a>>>=1)&&(e+=e))1&a&&(i+=e);return i}},function(t,e,i){"use strict";var n=i(688);t.exports=n},function(t,e,i){"use strict";i(689);var n=i(28);t.exports=n.Object.keys},function(t,e,i){"use strict";var n=i(2),r=i(46),o=i(140);n({target:"Object",stat:!0,forced:i(9)(function(){o(1)})},{keys:function(t){return o(r(t))}})},function(t,e){var i="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(i){var n=new Uint8Array(16);t.exports=function(){return i(n),n}}else{var r=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),r[e]=t>>>((3&e)<<3)&255;return r}}},function(t,e){for(var i=[],n=0;n<256;++n)i[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,r=i;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")}},function(t,e,i){var n=i(693).default,r=i(174),o=i(145),s=i(228),a=i(311),l=i(703),u=i(230),c=i(231),h=i(314),d=i(753),f=i(332);function p(){"use strict";t.exports=p=function(){return i},t.exports.__esModule=!0,t.exports.default=t.exports;var e,i={},v=Object.prototype,g=v.hasOwnProperty,m=r||function(t,e,i){t[e]=i.value},y="function"==typeof o?o:{},_=y.iterator||"@@iterator",b=y.asyncIterator||"@@asyncIterator",x=y.toStringTag||"@@toStringTag";function w(t,e,i){return r(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{w({},"")}catch(e){w=function(t,e,i){return t[e]=i}}function S(t,e,i,n){var r=e&&e.prototype instanceof k?e:k,o=s(r.prototype),a=new B(n||[]);return m(o,"_invoke",{value:N(t,i,a)}),o}function T(t,e,i){try{return{type:"normal",arg:t.call(e,i)}}catch(t){return{type:"throw",arg:t}}}i.wrap=S;var E="suspendedStart",C="suspendedYield",O="executing",M="completed",P={};function k(){}function I(){}function L(){}var A={};w(A,_,function(){return this});var R=a&&a(a(Y([])));R&&R!==v&&g.call(R,_)&&(A=R);var F=L.prototype=k.prototype=s(A);function D(t){var e;l(e=["next","throw","return"]).call(e,function(e){w(t,e,function(t){return this._invoke(e,t)})})}function j(t,e){function i(r,o,s,a){var l=T(t[r],t,o);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==n(c)&&g.call(c,"__await")?e.resolve(c.__await).then(function(t){i("next",t,s,a)},function(t){i("throw",t,s,a)}):e.resolve(c).then(function(t){u.value=t,s(u)},function(t){return i("throw",t,s,a)})}a(l.arg)}var r;m(this,"_invoke",{value:function(t,n){function o(){return new e(function(e,r){i(t,n,e,r)})}return r=r?r.then(o,o):o()}})}function N(t,i,n){var r=E;return function(o,s){if(r===O)throw Error("Generator is already running");if(r===M){if("throw"===o)throw s;return{value:e,done:!0}}for(n.method=o,n.arg=s;;){var a=n.delegate;if(a){var l=$(a,n);if(l){if(l===P)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===E)throw r=M,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=O;var u=T(t,i,n);if("normal"===u.type){if(r=n.done?M:C,u.arg===P)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=M,n.method="throw",n.arg=u.arg)}}}function $(t,i){var n=i.method,r=t.iterator[n];if(r===e)return i.delegate=null,"throw"===n&&t.iterator.return&&(i.method="return",i.arg=e,$(t,i),"throw"===i.method)||"return"!==n&&(i.method="throw",i.arg=new TypeError("The iterator does not provide a '"+n+"' method")),P;var o=T(r,t.iterator,i.arg);if("throw"===o.type)return i.method="throw",i.arg=o.arg,i.delegate=null,P;var s=o.arg;return s?s.done?(i[t.resultName]=s.value,i.next=t.nextLoc,"return"!==i.method&&(i.method="next",i.arg=e),i.delegate=null,P):s:(i.method="throw",i.arg=new TypeError("iterator result is not an object"),i.delegate=null,P)}function G(t){var e,i={tryLoc:t[0]};1 in t&&(i.catchLoc=t[1]),2 in t&&(i.finallyLoc=t[2],i.afterLoc=t[3]),u(e=this.tryEntries).call(e,i)}function z(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function B(t){this.tryEntries=[{tryLoc:"root"}],l(t).call(t,G,this),this.reset(!0)}function Y(t){if(t||""===t){var i=t[_];if(i)return i.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function i(){for(;++r<t.length;)if(g.call(t,r))return i.value=t[r],i.done=!1,i;return i.value=e,i.done=!0,i};return o.next=o}}throw new TypeError(n(t)+" is not iterable")}return I.prototype=L,m(F,"constructor",{value:L,configurable:!0}),m(L,"constructor",{value:I,configurable:!0}),I.displayName=w(L,x,"GeneratorFunction"),i.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===I||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(t){return c?c(t,L):(t.__proto__=L,w(t,x,"GeneratorFunction")),t.prototype=s(F),t},i.awrap=function(t){return{__await:t}},D(j.prototype),w(j.prototype,b,function(){return this}),i.AsyncIterator=j,i.async=function(t,e,n,r,o){void 0===o&&(o=h);var s=new j(S(t,e,n,r),o);return i.isGeneratorFunction(e)?s:s.next().then(function(t){return t.done?t.value:s.next()})},D(F),w(F,x,"Generator"),w(F,_,function(){return this}),w(F,"toString",function(){return"[object Generator]"}),i.keys=function(t){var e=Object(t),i=[];for(var n in e)u(i).call(i,n);return d(i).call(i),function t(){for(;i.length;){var n=i.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},i.values=Y,B.prototype={constructor:B,reset:function(t){var i;if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,l(i=this.tryEntries).call(i,z),!t)for(var n in this)"t"===n.charAt(0)&&g.call(this,n)&&!isNaN(+f(n).call(n,1))&&(this[n]=e)},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 i=this;function n(n,r){return s.type="throw",s.arg=t,i.next=n,r&&(i.method="next",i.arg=e),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r],s=o.completion;if("root"===o.tryLoc)return n("end");if(o.tryLoc<=this.prev){var a=g.call(o,"catchLoc"),l=g.call(o,"finallyLoc");if(a&&l){if(this.prev<o.catchLoc)return n(o.catchLoc,!0);if(this.prev<o.finallyLoc)return n(o.finallyLoc)}else if(a){if(this.prev<o.catchLoc)return n(o.catchLoc,!0)}else{if(!l)throw Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return n(o.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var n=this.tryEntries[i];if(n.tryLoc<=this.prev&&g.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var r=n;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var o=r?r.completion:{};return o.type=t,o.arg=e,r?(this.method="next",this.next=r.finallyLoc,P):this.complete(o)},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),P},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.finallyLoc===t)return this.complete(i.completion,i.afterLoc),z(i),P}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var i=this.tryEntries[e];if(i.tryLoc===t){var n=i.completion;if("throw"===n.type){var r=n.arg;z(i)}return r}}throw Error("illegal catch attempt")},delegateYield:function(t,i,n){return this.delegate={iterator:Y(t),resultName:i,nextLoc:n},"next"===this.method&&(this.arg=e),P}},i}t.exports=p,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){var n=i(145),r=i(310);function o(e){"@babel/helpers - typeof";return t.exports=o="function"==typeof n&&"symbol"==typeof r?function(t){return typeof t}:function(t){return t&&"function"==typeof n&&t.constructor===n&&t!==n.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,o(e)}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},function(t,e,i){"use strict";var n=i(695);t.exports=n},function(t,e,i){"use strict";var n=i(696);t.exports=n},function(t,e,i){"use strict";var n=i(697);t.exports=n},function(t,e,i){"use strict";i(698);var n=i(28).Object;t.exports=function(t,e){return n.create(t,e)}},function(t,e,i){"use strict";i(2)({target:"Object",stat:!0,sham:!i(32)},{create:i(106)})},function(t,e,i){"use strict";var n=i(700);t.exports=n},function(t,e,i){"use strict";var n=i(312);t.exports=n},function(t,e,i){"use strict";i(702);var n=i(28);t.exports=n.Object.getPrototypeOf},function(t,e,i){"use strict";var n=i(2),r=i(9),o=i(46),s=i(127),a=i(307);n({target:"Object",stat:!0,forced:r(function(){s(1)}),sham:!a},{getPrototypeOf:function(t){return s(o(t))}})},function(t,e,i){"use strict";t.exports=i(704)},function(t,e,i){"use strict";var n=i(705);t.exports=n},function(t,e,i){"use strict";var n=i(706);t.exports=n},function(t,e,i){"use strict";var n=i(121),r=i(37),o=i(36),s=i(707);i(711);var a=Array.prototype,l={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.forEach;return t===a||o(a,t)&&e===a.forEach||r(l,n(t))?s:e}},function(t,e,i){"use strict";var n=i(708);t.exports=n},function(t,e,i){"use strict";i(709);var n=i(45);t.exports=n("Array","forEach")},function(t,e,i){"use strict";var n=i(2),r=i(710);n({target:"Array",proto:!0,forced:[].forEach!==r},{forEach:r})},function(t,e,i){"use strict";var n=i(123).forEach,r=i(229)("forEach");t.exports=r?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},function(t,e){},function(t,e,i){"use strict";var n=i(713);t.exports=n},function(t,e,i){"use strict";var n=i(714);t.exports=n},function(t,e,i){"use strict";var n=i(715);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(716),o=Array.prototype;t.exports=function(t){var e=t.push;return t===o||n(o,t)&&e===o.push?r:e}},function(t,e,i){"use strict";i(717);var n=i(45);t.exports=n("Array","push")},function(t,e,i){"use strict";var n=i(2),r=i(46),o=i(81),s=i(313),a=i(224);n({target:"Array",proto:!0,arity:1,forced:i(9)(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}()},{push:function(t){var e=r(this),i=o(e),n=arguments.length;a(i+n);for(var l=0;l<n;l++)e[i]=arguments[l],i++;return s(e,i),i}})},function(t,e,i){"use strict";var n=i(719);t.exports=n},function(t,e,i){"use strict";var n=i(720);t.exports=n},function(t,e,i){"use strict";var n=i(721);t.exports=n},function(t,e,i){"use strict";i(722);var n=i(28);t.exports=n.Object.setPrototypeOf},function(t,e,i){"use strict";i(2)({target:"Object",stat:!0},{setPrototypeOf:i(175)})},function(t,e,i){"use strict";var n=i(724);i(749),i(750),i(751),i(752),t.exports=n},function(t,e,i){"use strict";var n=i(315);i(748),t.exports=n},function(t,e,i){"use strict";i(316),i(125),i(146),i(733),i(329),i(330),i(331),i(747),i(147);var n=i(28);t.exports=n.Promise},function(t,e,i){"use strict";var n=i(2),r=i(36),o=i(127),s=i(175),a=i(727),l=i(106),u=i(80),c=i(103),h=i(728),d=i(729),f=i(66),p=i(732),v=i(19)("toStringTag"),g=Error,m=[].push,y=function(t,e){var i,n=r(_,this);s?i=s(new g,n?o(this):_):(i=n?this:l(_),u(i,v,"Error")),void 0!==e&&u(i,"message",p(e)),d(i,y,i.stack,1),arguments.length>2&&h(i,arguments[2]);var a=[];return f(t,m,{that:a}),u(i,"errors",a),i};s?s(y,g):a(y,g,{name:!0});var _=y.prototype=l(g.prototype,{constructor:c(1,y),message:c(1,""),name:c(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:y})},function(t,e,i){"use strict";var n=i(37),r=i(302),o=i(117),s=i(51);t.exports=function(t,e,i){for(var a=r(e),l=s.f,u=o.f,c=0;c<a.length;c++){var h=a[c];n(t,h)||i&&n(i,h)||l(t,h,u(e,h))}}},function(t,e,i){"use strict";var n=i(33),r=i(80);t.exports=function(t,e){n(e)&&"cause"in e&&r(t,"cause",e.cause)}},function(t,e,i){"use strict";var n=i(80),r=i(730),o=i(731),s=Error.captureStackTrace;t.exports=function(t,e,i,a){o&&(s?s(t,e):n(t,"stack",r(i,a)))}},function(t,e,i){"use strict";var n=i(13),r=Error,o=n("".replace),s=String(new r("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,l=a.test(s);t.exports=function(t,e){if(l&&"string"==typeof t&&!r.prepareStackTrace)for(;e--;)t=o(t,a,"");return t}},function(t,e,i){"use strict";var n=i(9),r=i(103);t.exports=!n(function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)})},function(t,e,i){"use strict";var n=i(75);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},function(t,e,i){"use strict";i(734),i(742),i(743),i(744),i(745),i(746)},function(t,e,i){"use strict";var n,r,o,s=i(2),a=i(64),l=i(177),u=i(26),c=i(27),h=i(88),d=i(175),f=i(89),p=i(320),v=i(38),g=i(18),m=i(33),y=i(232),_=i(321),b=i(323).set,x=i(736),w=i(740),S=i(128),T=i(325),E=i(122),C=i(129),O=i(148),M=i(82),P=O.CONSTRUCTOR,k=O.REJECTION_EVENT,I=O.SUBCLASSING,L=E.getterFor("Promise"),A=E.set,R=C&&C.prototype,F=C,D=R,j=u.TypeError,N=u.document,$=u.process,G=M.f,z=G,B=!!(N&&N.createEvent&&u.dispatchEvent),Y=function(t){var e;return!(!m(t)||!g(e=t.then))&&e},V=function(t,e){var i,n,r,o=e.value,s=1===e.state,a=s?t.ok:t.fail,l=t.resolve,u=t.reject,h=t.domain;try{a?(s||(2===e.rejection&&q(e),e.rejection=1),!0===a?i=o:(h&&h.enter(),i=a(o),h&&(h.exit(),r=!0)),i===t.promise?u(new j("Promise-chain cycle")):(n=Y(i))?c(n,i,l,u):l(i)):u(o)}catch(t){h&&!r&&h.exit(),u(t)}},W=function(t,e){t.notified||(t.notified=!0,x(function(){for(var i,n=t.reactions;i=n.get();)V(i,t);t.notified=!1,e&&!t.rejection&&U(t)}))},H=function(t,e,i){var n,r;B?((n=N.createEvent("Event")).promise=e,n.reason=i,n.initEvent(t,!1,!0),u.dispatchEvent(n)):n={promise:e,reason:i},!k&&(r=u["on"+t])?r(n):"unhandledrejection"===t&&w("Unhandled promise rejection",i)},U=function(t){c(b,u,function(){var e,i=t.facade,n=t.value;if(X(t)&&(e=S(function(){l?$.emit("unhandledRejection",n,i):H("unhandledrejection",i,n)}),t.rejection=l||X(t)?2:1,e.error))throw e.value})},X=function(t){return 1!==t.rejection&&!t.parent},q=function(t){c(b,u,function(){var e=t.facade;l?$.emit("rejectionHandled",e):H("rejectionhandled",e,t.value)})},K=function(t,e,i){return function(n){t(e,n,i)}},Z=function(t,e,i){t.done||(t.done=!0,i&&(t=i),t.value=e,t.state=2,W(t,!0))},J=function(t,e,i){if(!t.done){t.done=!0,i&&(t=i);try{if(t.facade===e)throw new j("Promise can't be resolved itself");var n=Y(e);n?x(function(){var i={done:!1};try{c(n,e,K(J,i,t),K(Z,i,t))}catch(e){Z(i,e,t)}}):(t.value=e,t.state=1,W(t,!1))}catch(e){Z({done:!1},e,t)}}};if(P&&(D=(F=function(t){y(this,D),v(t),c(n,this);var e=L(this);try{t(K(J,e),K(Z,e))}catch(t){Z(e,t)}}).prototype,(n=function(t){A(this,{type:"Promise",done:!1,notified:!1,parent:!1,reactions:new T,rejection:!1,state:0,value:void 0})}).prototype=h(D,"then",function(t,e){var i=L(this),n=G(_(this,F));return i.parent=!0,n.ok=!g(t)||t,n.fail=g(e)&&e,n.domain=l?$.domain:void 0,0===i.state?i.reactions.add(n):x(function(){V(n,i)}),n.promise}),r=function(){var t=new n,e=L(t);this.promise=t,this.resolve=K(J,e),this.reject=K(Z,e)},M.f=G=function(t){return t===F||void 0===t?new r(t):z(t)},!a&&g(C)&&R!==Object.prototype)){o=R.then,I||h(R,"then",function(t,e){var i=this;return new F(function(t,e){c(o,i,t,e)}).then(t,e)},{unsafe:!0});try{delete R.constructor}catch(t){}d&&d(R,D)}s({global:!0,constructor:!0,wrap:!0,forced:P},{Promise:F}),f(F,"Promise",!1,!0),p("Promise")},function(t,e,i){"use strict";var n=TypeError;t.exports=function(t,e){if(t<e)throw new n("Not enough arguments");return t}},function(t,e,i){"use strict";var n,r,o,s,a,l=i(26),u=i(737),c=i(44),h=i(323).set,d=i(325),f=i(324),p=i(738),v=i(739),g=i(177),m=l.MutationObserver||l.WebKitMutationObserver,y=l.document,_=l.process,b=l.Promise,x=u("queueMicrotask");if(!x){var w=new d,S=function(){var t,e;for(g&&(t=_.domain)&&t.exit();e=w.get();)try{e()}catch(t){throw w.head&&n(),t}t&&t.enter()};f||g||v||!m||!y?!p&&b&&b.resolve?((s=b.resolve(void 0)).constructor=b,a=c(s.then,s),n=function(){a(S)}):g?n=function(){_.nextTick(S)}:(h=c(h,l),n=function(){h(S)}):(r=!0,o=y.createTextNode(""),new m(S).observe(o,{characterData:!0}),n=function(){o.data=r=!r}),x=function(t){w.head||n(),w.add(t)}}t.exports=x},function(t,e,i){"use strict";var n=i(26),r=i(32),o=Object.getOwnPropertyDescriptor;t.exports=function(t){if(!r)return n[t];var e=o(n,t);return e&&e.value}},function(t,e,i){"use strict";var n=i(104);t.exports=/ipad|iphone|ipod/i.test(n)&&"undefined"!=typeof Pebble},function(t,e,i){"use strict";var n=i(104);t.exports=/web0s(?!.*chrome)/i.test(n)},function(t,e,i){"use strict";t.exports=function(t,e){try{1===arguments.length?console.error(t):console.error(t,e)}catch(t){}}},function(t,e,i){"use strict";var n=i(326),r=i(177);t.exports=!n&&!r&&"object"==typeof window&&"object"==typeof document},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(38),s=i(82),a=i(128),l=i(66);n({target:"Promise",stat:!0,forced:i(178)},{all:function(t){var e=this,i=s.f(e),n=i.resolve,u=i.reject,c=a(function(){var i=o(e.resolve),s=[],a=0,c=1;l(t,function(t){var o=a++,l=!1;c++,r(i,e,t).then(function(t){l||(l=!0,s[o]=t,--c||n(s))},u)}),--c||n(s)});return c.error&&u(c.value),i.promise}})},function(t,e,i){"use strict";var n=i(2),r=i(64),o=i(148).CONSTRUCTOR,s=i(129),a=i(40),l=i(18),u=i(88),c=s&&s.prototype;if(n({target:"Promise",proto:!0,forced:o,real:!0},{catch:function(t){return this.then(void 0,t)}}),!r&&l(s)){var h=a("Promise").prototype.catch;c.catch!==h&&u(c,"catch",h,{unsafe:!0})}},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(38),s=i(82),a=i(128),l=i(66);n({target:"Promise",stat:!0,forced:i(178)},{race:function(t){var e=this,i=s.f(e),n=i.reject,u=a(function(){var s=o(e.resolve);l(t,function(t){r(s,e,t).then(i.resolve,n)})});return u.error&&n(u.value),i.promise}})},function(t,e,i){"use strict";var n=i(2),r=i(82);n({target:"Promise",stat:!0,forced:i(148).CONSTRUCTOR},{reject:function(t){var e=r.f(this);return(0,e.reject)(t),e.promise}})},function(t,e,i){"use strict";var n=i(2),r=i(40),o=i(64),s=i(129),a=i(148).CONSTRUCTOR,l=i(328),u=r("Promise"),c=o&&!a;n({target:"Promise",stat:!0,forced:o||a},{resolve:function(t){return l(c&&this===u?s:this,t)}})},function(t,e,i){"use strict";var n=i(2),r=i(64),o=i(129),s=i(9),a=i(40),l=i(18),u=i(321),c=i(328),h=i(88),d=o&&o.prototype;if(n({target:"Promise",proto:!0,real:!0,forced:!!o&&s(function(){d.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=u(this,a("Promise")),i=l(t);return this.then(i?function(i){return c(e,t()).then(function(){return i})}:t,i?function(i){return c(e,t()).then(function(){throw i})}:t)}}),!r&&l(o)){var f=a("Promise").prototype.finally;d.finally!==f&&h(d,"finally",f,{unsafe:!0})}},function(t,e,i){"use strict";i(331)},function(t,e,i){"use strict";i(316)},function(t,e,i){"use strict";i(329)},function(t,e,i){"use strict";var n=i(2),r=i(116),o=i(107),s=i(82),a=i(38),l=i(128);n({target:"Promise",stat:!0,forced:!0},{try:function(t){var e=o(arguments,1),i=s.f(this),n=l(function(){return r(a(t),void 0,e)});return(n.error?i.reject:i.resolve)(n.value),i.promise}})},function(t,e,i){"use strict";i(330)},function(t,e,i){"use strict";t.exports=i(754)},function(t,e,i){"use strict";var n=i(755);t.exports=n},function(t,e,i){"use strict";var n=i(756);t.exports=n},function(t,e,i){"use strict";var n=i(757);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(758),o=Array.prototype;t.exports=function(t){var e=t.reverse;return t===o||n(o,t)&&e===o.reverse?r:e}},function(t,e,i){"use strict";i(759);var n=i(45);t.exports=n("Array","reverse")},function(t,e,i){"use strict";var n=i(2),r=i(13),o=i(108),s=r([].reverse),a=[1,2];n({target:"Array",proto:!0,forced:String(a)===String(a.reverse())},{reverse:function(){return o(this)&&(this.length=this.length),s(this)}})},function(t,e,i){"use strict";var n=i(761);t.exports=n},function(t,e,i){"use strict";var n=i(333);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(763),o=Array.prototype;t.exports=function(t){var e=t.slice;return t===o||n(o,t)&&e===o.slice?r:e}},function(t,e,i){"use strict";i(764);var n=i(45);t.exports=n("Array","slice")},function(t,e,i){"use strict";var n=i(2),r=i(108),o=i(173),s=i(33),a=i(220),l=i(81),u=i(63),c=i(144),h=i(19),d=i(143),f=i(107),p=d("slice"),v=h("species"),g=Array,m=Math.max;n({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var i,n,h,d=u(this),p=l(d),y=a(t,p),_=a(void 0===e?p:e,p);if(r(d)&&(i=d.constructor,o(i)&&(i===g||r(i.prototype))?i=void 0:s(i)&&null===(i=i[v])&&(i=void 0),i===g||void 0===i))return f(d,y,_);for(n=new(void 0===i?g:i)(m(_-y,0)),h=0;y<_;y++,h++)y in d&&c(n,h,d[y]);return n.length=h,n}})},function(t,e,i){"use strict";i(147),i(766);var n=i(28);t.exports=n.Array.from},function(t,e,i){"use strict";var n=i(2),r=i(767);n({target:"Array",stat:!0,forced:!i(327)(function(t){Array.from(t)})},{from:r})},function(t,e,i){"use strict";var n=i(44),r=i(27),o=i(46),s=i(768),a=i(317),l=i(173),u=i(81),c=i(144),h=i(318),d=i(176),f=Array;t.exports=function(t){var e=o(t),i=l(this),p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v;g&&(v=n(v,p>2?arguments[2]:void 0));var m,y,_,b,x,w,S=d(e),T=0;if(!S||this===f&&a(S))for(m=u(e),y=i?new this(m):f(m);m>T;T++)w=g?v(e[T],T):e[T],c(y,T,w);else for(y=i?new this:[],x=(b=h(e,S)).next;!(_=r(x,b)).done;T++)w=g?s(b,v,[_.value,T],!0):_.value,c(y,T,w);return y.length=T,y}},function(t,e,i){"use strict";var n=i(42),r=i(319);t.exports=function(t,e,i,o){try{return o?e(n(i)[0],i[1]):e(i)}catch(e){r(t,"throw",e)}}},function(t,e,i){t.exports=i(312)},function(t,e,i){"use strict";var n=i(771);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(772),o=Array.prototype;t.exports=function(t){var e=t.find;return t===o||n(o,t)&&e===o.find?r:e}},function(t,e,i){"use strict";i(773);var n=i(45);t.exports=n("Array","find")},function(t,e,i){"use strict";var n=i(2),r=i(123).find,o=i(225),s=!0;"find"in[]&&Array(1).find(function(){s=!1}),n({target:"Array",proto:!0,forced:s},{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),o("find")},function(t,e,i){"use strict";var n=i(775);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(776),o=Array.prototype;t.exports=function(t){var e=t.map;return t===o||n(o,t)&&e===o.map?r:e}},function(t,e,i){"use strict";i(777);var n=i(45);t.exports=n("Array","map")},function(t,e,i){"use strict";var n=i(2),r=i(123).map;n({target:"Array",proto:!0,forced:!i(143)("map")},{map:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){"use strict";var n=i(779);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(780),o=i(782),s=Array.prototype,a=String.prototype;t.exports=function(t){var e=t.includes;return t===s||n(s,t)&&e===s.includes?r:"string"==typeof t||t===a||n(a,t)&&e===a.includes?o:e}},function(t,e,i){"use strict";i(781);var n=i(45);t.exports=n("Array","includes")},function(t,e,i){"use strict";var n=i(2),r=i(219).includes,o=i(9),s=i(225);n({target:"Array",proto:!0,forced:o(function(){return!Array(1).includes()})},{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),s("includes")},function(t,e,i){"use strict";i(783);var n=i(45);t.exports=n("String","includes")},function(t,e,i){"use strict";var n=i(2),r=i(13),o=i(784),s=i(87),a=i(75),l=i(786),u=r("".indexOf);n({target:"String",proto:!0,forced:!l("includes")},{includes:function(t){return!!~u(a(s(this)),a(o(t)),arguments.length>1?arguments[1]:void 0)}})},function(t,e,i){"use strict";var n=i(785),r=TypeError;t.exports=function(t){if(n(t))throw new r("The method doesn't accept regular expressions");return t}},function(t,e,i){"use strict";var n=i(33),r=i(74),o=i(19)("match");t.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"===r(t))}},function(t,e,i){"use strict";var n=i(19)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(i){try{return e[n]=!1,"/./"[t](e)}catch(t){}}return!1}},function(t,e,i){"use strict";var n=i(788);t.exports=n},function(t,e,i){"use strict";i(789);var n=i(28);t.exports=n.Object.values},function(t,e,i){"use strict";var n=i(2),r=i(790).values;n({target:"Object",stat:!0},{values:function(t){return r(t)}})},function(t,e,i){"use strict";var n=i(32),r=i(9),o=i(13),s=i(127),a=i(140),l=i(63),u=o(i(166).f),c=o([].push),h=n&&r(function(){var t=Object.create(null);return t[2]=2,!u(t,2)}),d=function(t){return function(e){for(var i,r=l(e),o=a(r),d=h&&null===s(r),f=o.length,p=0,v=[];f>p;)i=o[p++],n&&!(d?i in r:u(r,i))||c(v,t?[i,r[i]]:r[i]);return v}};t.exports={entries:d(!0),values:d(!1)}},function(t,e,i){"use strict";var n=i(792);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(793),o=Array.prototype;t.exports=function(t){var e=t.concat;return t===o||n(o,t)&&e===o.concat?r:e}},function(t,e,i){"use strict";i(303);var n=i(45);t.exports=n("Array","concat")},function(t,e,i){"use strict";i(795);var n=i(28);t.exports=n.Reflect.construct},function(t,e,i){"use strict";var n=i(2),r=i(40),o=i(116),s=i(338),a=i(322),l=i(42),u=i(33),c=i(106),h=i(9),d=r("Reflect","construct"),f=Object.prototype,p=[].push,v=h(function(){function t(){}return!(d(function(){},[],t)instanceof t)}),g=!h(function(){d(function(){})}),m=v||g;n({target:"Reflect",stat:!0,forced:m,sham:m},{construct:function(t,e){a(t),l(e);var i=arguments.length<3?t:a(arguments[2]);if(g&&!v)return d(t,e,i);if(t===i){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var n=[null];return o(p,n,e),new(o(s,t,n))}var r=i.prototype,h=c(u(r)?r:f),m=o(t,h,e);return u(m)?m:h}})},function(t,e,i){"use strict";t.exports=i(797)},function(t,e,i){"use strict";var n=i(798);t.exports=n},function(t,e,i){"use strict";var n=i(799);t.exports=n},function(t,e,i){"use strict";var n=i(800);t.exports=n},function(t,e,i){"use strict";i(801);var n=i(28);t.exports=n.Reflect.get},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(33),s=i(42),a=i(802),l=i(117),u=i(127);n({target:"Reflect",stat:!0},{get:function t(e,i){var n,c,h=arguments.length<3?e:arguments[2];return s(e)===h?e[i]:(n=l.f(e,i))?a(n)?n.value:void 0===n.get?void 0:r(n.get,h):o(c=u(e))?t(c,i,h):void 0}})},function(t,e,i){"use strict";var n=i(37);t.exports=function(t){return void 0!==t&&(n(t,"value")||n(t,"writable"))}},function(t,e,i){"use strict";var n=i(804);t.exports=n},function(t,e,i){"use strict";var n=i(805);t.exports=n},function(t,e,i){"use strict";var n=i(806);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(807),o=Function.prototype;t.exports=function(t){var e=t.bind;return t===o||n(o,t)&&e===o.bind?r:e}},function(t,e,i){"use strict";i(808);var n=i(45);t.exports=n("Function","bind")},function(t,e,i){"use strict";var n=i(2),r=i(338);n({target:"Function",proto:!0,forced:Function.bind!==r},{bind:r})},function(t,e,i){"use strict";t.exports=i(810)},function(t,e,i){"use strict";var n=i(811);t.exports=n},function(t,e,i){"use strict";var n=i(301);t.exports=n},function(t,e,i){"use strict";t.exports=r;var n=i(813);function r(t){this.buf=ArrayBuffer.isView&&ArrayBuffer.isView(t)?t:new Uint8Array(t||0),this.pos=0,this.type=0,this.length=this.buf.length}r.Varint=0,r.Fixed64=1,r.Bytes=2,r.Fixed32=5;function o(t){return t.type===r.Bytes?t.readVarint()+t.pos:t.pos+1}function s(t,e,i){return i?4294967296*e+(t>>>0):4294967296*(e>>>0)+(t>>>0)}function a(t,e,i){var n=e<=16383?1:e<=2097151?2:e<=268435455?3:Math.ceil(Math.log(e)/(7*Math.LN2));i.realloc(n);for(var r=i.pos-1;r>=t;r--)i.buf[r+n]=i.buf[r]}function l(t,e){for(var i=0;i<t.length;i++)e.writeVarint(t[i])}function u(t,e){for(var i=0;i<t.length;i++)e.writeSVarint(t[i])}function c(t,e){for(var i=0;i<t.length;i++)e.writeFloat(t[i])}function h(t,e){for(var i=0;i<t.length;i++)e.writeDouble(t[i])}function d(t,e){for(var i=0;i<t.length;i++)e.writeBoolean(t[i])}function f(t,e){for(var i=0;i<t.length;i++)e.writeFixed32(t[i])}function p(t,e){for(var i=0;i<t.length;i++)e.writeSFixed32(t[i])}function v(t,e){for(var i=0;i<t.length;i++)e.writeFixed64(t[i])}function g(t,e){for(var i=0;i<t.length;i++)e.writeSFixed64(t[i])}function m(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+16777216*t[e+3]}function y(t,e,i){t[i]=e,t[i+1]=e>>>8,t[i+2]=e>>>16,t[i+3]=e>>>24}function _(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16)+(t[e+3]<<24)}r.prototype={destroy:function(){this.buf=null},readFields:function(t,e,i){for(i=i||this.length;this.pos<i;){var n=this.readVarint(),r=n>>3,o=this.pos;this.type=7&n,t(r,e,this),this.pos===o&&this.skip(n)}return e},readMessage:function(t,e){return this.readFields(t,e,this.readVarint()+this.pos)},readFixed32:function(){var t=m(this.buf,this.pos);return this.pos+=4,t},readSFixed32:function(){var t=_(this.buf,this.pos);return this.pos+=4,t},readFixed64:function(){var t=m(this.buf,this.pos)+4294967296*m(this.buf,this.pos+4);return this.pos+=8,t},readSFixed64:function(){var t=m(this.buf,this.pos)+4294967296*_(this.buf,this.pos+4);return this.pos+=8,t},readFloat:function(){var t=n.read(this.buf,this.pos,!0,23,4);return this.pos+=4,t},readDouble:function(){var t=n.read(this.buf,this.pos,!0,52,8);return this.pos+=8,t},readVarint:function(t){var e,i,n=this.buf;return e=127&(i=n[this.pos++]),i<128?e:(e|=(127&(i=n[this.pos++]))<<7,i<128?e:(e|=(127&(i=n[this.pos++]))<<14,i<128?e:(e|=(127&(i=n[this.pos++]))<<21,i<128?e:function(t,e,i){var n,r,o=i.buf;if(r=o[i.pos++],n=(112&r)>>4,r<128)return s(t,n,e);if(r=o[i.pos++],n|=(127&r)<<3,r<128)return s(t,n,e);if(r=o[i.pos++],n|=(127&r)<<10,r<128)return s(t,n,e);if(r=o[i.pos++],n|=(127&r)<<17,r<128)return s(t,n,e);if(r=o[i.pos++],n|=(127&r)<<24,r<128)return s(t,n,e);if(r=o[i.pos++],n|=(1&r)<<31,r<128)return s(t,n,e);throw new Error("Expected varint not more than 10 bytes")}(e|=(15&(i=n[this.pos]))<<28,t,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var t=this.readVarint();return t%2==1?(t+1)/-2:t/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var t=this.readVarint()+this.pos,e=function(t,e,i){var n="",r=e;for(;r<i;){var o,s,a,l=t[r],u=null,c=l>239?4:l>223?3:l>191?2:1;if(r+c>i)break;1===c?l<128&&(u=l):2===c?128==(192&(o=t[r+1]))&&(u=(31&l)<<6|63&o)<=127&&(u=null):3===c?(o=t[r+1],s=t[r+2],128==(192&o)&&128==(192&s)&&((u=(15&l)<<12|(63&o)<<6|63&s)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(o=t[r+1],s=t[r+2],a=t[r+3],128==(192&o)&&128==(192&s)&&128==(192&a)&&((u=(15&l)<<18|(63&o)<<12|(63&s)<<6|63&a)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,n+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),n+=String.fromCharCode(u),r+=c}return n}(this.buf,this.pos,t);return this.pos=t,e},readBytes:function(){var t=this.readVarint()+this.pos,e=this.buf.subarray(this.pos,t);return this.pos=t,e},readPackedVarint:function(t,e){var i=o(this);for(t=t||[];this.pos<i;)t.push(this.readVarint(e));return t},readPackedSVarint:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSVarint());return t},readPackedBoolean:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readBoolean());return t},readPackedFloat:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFloat());return t},readPackedDouble:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readDouble());return t},readPackedFixed32:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFixed32());return t},readPackedSFixed32:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed32());return t},readPackedFixed64:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readFixed64());return t},readPackedSFixed64:function(t){var e=o(this);for(t=t||[];this.pos<e;)t.push(this.readSFixed64());return t},skip:function(t){var e=7&t;if(e===r.Varint)for(;this.buf[this.pos++]>127;);else if(e===r.Bytes)this.pos=this.readVarint()+this.pos;else if(e===r.Fixed32)this.pos+=4;else{if(e!==r.Fixed64)throw new Error("Unimplemented type: "+e);this.pos+=8}},writeTag:function(t,e){this.writeVarint(t<<3|e)},realloc:function(t){for(var e=this.length||16;e<this.pos+t;)e*=2;if(e!==this.length){var i=new Uint8Array(e);i.set(this.buf),this.buf=i,this.length=e}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(t){this.realloc(4),y(this.buf,t,this.pos),this.pos+=4},writeSFixed32:function(t){this.realloc(4),y(this.buf,t,this.pos),this.pos+=4},writeFixed64:function(t){this.realloc(8),y(this.buf,-1&t,this.pos),y(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(t){this.realloc(8),y(this.buf,-1&t,this.pos),y(this.buf,Math.floor(t*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(t){(t=+t||0)>268435455||t<0?function(t,e){var i,n;t>=0?(i=t%4294967296|0,n=t/4294967296|0):(n=~(-t/4294967296),4294967295^(i=~(-t%4294967296))?i=i+1|0:(i=0,n=n+1|0));if(t>=0x10000000000000000||t<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");e.realloc(10),function(t,e,i){i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos++]=127&t|128,t>>>=7,i.buf[i.pos]=127&t}(i,0,e),function(t,e){var i=(7&t)<<4;if(e.buf[e.pos++]|=i|((t>>>=3)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;if(e.buf[e.pos++]=127&t|((t>>>=7)?128:0),!t)return;e.buf[e.pos++]=127&t}(n,e)}(t,this):(this.realloc(4),this.buf[this.pos++]=127&t|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=127&(t>>>=7)|(t>127?128:0),t<=127||(this.buf[this.pos++]=t>>>7&127))))},writeSVarint:function(t){this.writeVarint(t<0?2*-t-1:2*t)},writeBoolean:function(t){this.writeVarint(Boolean(t))},writeString:function(t){t=String(t),this.realloc(4*t.length),this.pos++;var e=this.pos;this.pos=function(t,e,i){for(var n,r,o=0;o<e.length;o++){if((n=e.charCodeAt(o))>55295&&n<57344){if(!r){n>56319||o+1===e.length?(t[i++]=239,t[i++]=191,t[i++]=189):r=n;continue}if(n<56320){t[i++]=239,t[i++]=191,t[i++]=189,r=n;continue}n=r-55296<<10|n-56320|65536,r=null}else r&&(t[i++]=239,t[i++]=191,t[i++]=189,r=null);n<128?t[i++]=n:(n<2048?t[i++]=n>>6|192:(n<65536?t[i++]=n>>12|224:(t[i++]=n>>18|240,t[i++]=n>>12&63|128),t[i++]=n>>6&63|128),t[i++]=63&n|128)}return i}(this.buf,t,this.pos);var i=this.pos-e;i>=128&&a(e,i,this),this.pos=e-1,this.writeVarint(i),this.pos+=i},writeFloat:function(t){this.realloc(4),n.write(this.buf,t,this.pos,!0,23,4),this.pos+=4},writeDouble:function(t){this.realloc(8),n.write(this.buf,t,this.pos,!0,52,8),this.pos+=8},writeBytes:function(t){var e=t.length;this.writeVarint(e),this.realloc(e);for(var i=0;i<e;i++)this.buf[this.pos++]=t[i]},writeRawMessage:function(t,e){this.pos++;var i=this.pos;t(e,this);var n=this.pos-i;n>=128&&a(i,n,this),this.pos=i-1,this.writeVarint(n),this.pos+=n},writeMessage:function(t,e,i){this.writeTag(t,r.Bytes),this.writeRawMessage(e,i)},writePackedVarint:function(t,e){this.writeMessage(t,l,e)},writePackedSVarint:function(t,e){this.writeMessage(t,u,e)},writePackedBoolean:function(t,e){this.writeMessage(t,d,e)},writePackedFloat:function(t,e){this.writeMessage(t,c,e)},writePackedDouble:function(t,e){this.writeMessage(t,h,e)},writePackedFixed32:function(t,e){this.writeMessage(t,f,e)},writePackedSFixed32:function(t,e){this.writeMessage(t,p,e)},writePackedFixed64:function(t,e){this.writeMessage(t,v,e)},writePackedSFixed64:function(t,e){this.writeMessage(t,g,e)},writeBytesField:function(t,e){this.writeTag(t,r.Bytes),this.writeBytes(e)},writeFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeFixed32(e)},writeSFixed32Field:function(t,e){this.writeTag(t,r.Fixed32),this.writeSFixed32(e)},writeFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeFixed64(e)},writeSFixed64Field:function(t,e){this.writeTag(t,r.Fixed64),this.writeSFixed64(e)},writeVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeVarint(e)},writeSVarintField:function(t,e){this.writeTag(t,r.Varint),this.writeSVarint(e)},writeStringField:function(t,e){this.writeTag(t,r.Bytes),this.writeString(e)},writeFloatField:function(t,e){this.writeTag(t,r.Fixed32),this.writeFloat(e)},writeDoubleField:function(t,e){this.writeTag(t,r.Fixed64),this.writeDouble(e)},writeBooleanField:function(t,e){this.writeVarintField(t,Boolean(e))}}},function(t,e){e.read=function(t,e,i,n,r){var o,s,a=8*r-n-1,l=(1<<a)-1,u=l>>1,c=-7,h=i?r-1:0,d=i?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-c)-1,f>>=-c,c+=a;c>0;o=256*o+t[e+h],h+=d,c-=8);for(s=o&(1<<-c)-1,o>>=-c,c+=n;c>0;s=256*s+t[e+h],h+=d,c-=8);if(0===o)o=1-u;else{if(o===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,n),o-=u}return(f?-1:1)*s*Math.pow(2,o-n)},e.write=function(t,e,i,n,r,o){var s,a,l,u=8*o-r-1,c=(1<<u)-1,h=c>>1,d=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=n?0:o-1,p=n?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=c):(s=Math.floor(Math.log(e)/Math.LN2),e*(l=Math.pow(2,-s))<1&&(s--,l*=2),(e+=s+h>=1?d/l:d*Math.pow(2,1-h))*l>=2&&(s++,l/=2),s+h>=c?(a=0,s=c):s+h>=1?(a=(e*l-1)*Math.pow(2,r),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,r),s=0));r>=8;t[i+f]=255&a,f+=p,a/=256,r-=8);for(s=s<<r|a,u+=r;u>0;t[i+f]=255&s,f+=p,s/=256,u-=8);t[i+f-p]|=128*v}},function(t,e,i){var n;n=function(){"use strict";function t(t,e,i){var n=t[e];t[e]=t[i],t[i]=n}function e(t,e){return t<e?-1:t>e?1:0}return function(i,n,r,o,s){!function e(i,n,r,o,s){for(;o>r;){if(o-r>600){var a=o-r+1,l=n-r+1,u=Math.log(a),c=.5*Math.exp(2*u/3),h=.5*Math.sqrt(u*c*(a-c)/a)*(l-a/2<0?-1:1),d=Math.max(r,Math.floor(n-l*c/a+h)),f=Math.min(o,Math.floor(n+(a-l)*c/a+h));e(i,n,d,f,s)}var p=i[n],v=r,g=o;for(t(i,r,n),s(i[o],p)>0&&t(i,r,o);v<g;){for(t(i,v,g),v++,g--;s(i[v],p)<0;)v++;for(;s(i[g],p)>0;)g--}0===s(i[r],p)?t(i,r,g):t(i,++g,o),g<=n&&(r=g+1),n<=g&&(o=g-1)}}(i,n,r||0,o||i.length-1,s||e)}},t.exports=n()},function(t,e,i){"use strict";var n=i(816);t.exports=n},function(t,e,i){"use strict";i(817);var n=i(28);t.exports=n.Object.assign},function(t,e,i){"use strict";var n=i(2),r=i(818);n({target:"Object",stat:!0,arity:2,forced:Object.assign!==r},{assign:r})},function(t,e,i){"use strict";var n=i(32),r=i(13),o=i(27),s=i(9),a=i(140),l=i(171),u=i(166),c=i(46),h=i(214),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||s(function(){if(n&&1!==d({b:1},d(f({},"a",{enumerable:!0,get:function(){f(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},i=Symbol("assign detection");return t[i]=7,"abcdefghijklmnopqrst".split("").forEach(function(t){e[t]=t}),7!==d({},t)[i]||"abcdefghijklmnopqrst"!==a(d({},e)).join("")})?function(t,e){for(var i=c(t),r=arguments.length,s=1,d=l.f,f=u.f;r>s;)for(var v,g=h(arguments[s++]),m=d?p(a(g),d(g)):a(g),y=m.length,_=0;y>_;)v=m[_++],n&&!o(f,g,v)||(i[v]=g[v]);return i}:d},function(t,e,i){var n=i(820);t.exports=function(t){var e,i,r,o;if(e=/^((?:rgb|hs[lv]|cmyk|xyz|lab)a?)\s*\(([^\)]*)\)/.exec(t)){var s=e[1],a="cmyk"===(l=s.replace(/a$/,""))?4:3;i=n[l],r=e[2].replace(/^\s+|\s+$/g,"").split(/\s*,\s*/).map(function(t,e){return/%$/.test(t)&&e===a?parseFloat(t)/100:(/%$/.test(t),parseFloat(t))}),s===l&&r.push(1),o=void 0===r[a]?1:r[a],r=r.slice(0,a),i[l]=function(){return r}}else if(/^#[A-Fa-f0-9]+$/.test(t)){var l;a=(l=t.replace(/^#/,"")).length;i=n.rgb,r=(r=l.split(3===a?/(.)/:/(..)/)).filter(Boolean).map(function(t){return 3===a?parseInt(t+t,16):parseInt(t,16)}),o=1,i.rgb=function(){return r},r[0]||(r[0]=0),r[1]||(r[1]=0),r[2]||(r[2]=0)}else(i=n.keyword).keyword=function(){return t},r=t,o=1;var u={rgb:void 0,hsl:void 0,hsv:void 0,cmyk:void 0,keyword:void 0,hex:void 0};try{u.rgb=i.rgb(r)}catch(t){}try{u.hsl=i.hsl(r)}catch(t){}try{u.hsv=i.hsv(r)}catch(t){}try{u.cmyk=i.cmyk(r)}catch(t){}try{u.keyword=i.keyword(r)}catch(t){}return u.rgb&&(u.hex="#"+u.rgb.map(function(t){var e=t.toString(16);return 1===e.length?"0"+e:e}).join("")),u.rgb&&(u.rgba=u.rgb.concat(o)),u.hsl&&(u.hsla=u.hsl.concat(o)),u.hsv&&(u.hsva=u.hsv.concat(o)),u.cmyk&&(u.cmyka=u.cmyk.concat(o)),u}},function(t,e,i){var n=i(821),r=function(){return new u};for(var o in n){r[o+"Raw"]=function(t){return function(e){return"number"==typeof e&&(e=Array.prototype.slice.call(arguments)),n[t](e)}}(o);var s=/(\w+)2(\w+)/.exec(o),a=s[1],l=s[2];(r[a]=r[a]||{})[l]=r[o]=function(t){return function(e){"number"==typeof e&&(e=Array.prototype.slice.call(arguments));var i=n[t](e);if("string"==typeof i||void 0===i)return i;for(var r=0;r<i.length;r++)i[r]=Math.round(i[r]);return i}}(o)}var u=function(){this.convs={}};u.prototype.routeSpace=function(t,e){var i=e[0];return void 0===i?this.getValues(t):("number"==typeof i&&(i=Array.prototype.slice.call(e)),this.setValues(t,i))},u.prototype.setValues=function(t,e){return this.space=t,this.convs={},this.convs[t]=e,this},u.prototype.getValues=function(t){var e=this.convs[t];if(!e){var i=this.space,n=this.convs[i];e=r[i][t](n),this.convs[t]=e}return e},["rgb","hsl","hsv","cmyk","keyword"].forEach(function(t){u.prototype[t]=function(e){return this.routeSpace(t,arguments)}}),t.exports=r},function(t,e){function i(t){var e,i,n=t[0]/255,r=t[1]/255,o=t[2]/255,s=Math.min(n,r,o),a=Math.max(n,r,o),l=a-s;return a==s?e=0:n==a?e=(r-o)/l:r==a?e=2+(o-n)/l:o==a&&(e=4+(n-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),i=(s+a)/2,[e,100*(a==s?0:i<=.5?l/(a+s):l/(2-a-s)),100*i]}function n(t){var e,i,n=t[0],r=t[1],o=t[2],s=Math.min(n,r,o),a=Math.max(n,r,o),l=a-s;return i=0==a?0:l/a*1e3/10,a==s?e=0:n==a?e=(r-o)/l:r==a?e=2+(o-n)/l:o==a&&(e=4+(n-r)/l),(e=Math.min(60*e,360))<0&&(e+=360),[e,i,a/255*1e3/10]}function o(t){var e=t[0],n=t[1],r=t[2];return[i(t)[0],100*(1/255*Math.min(e,Math.min(n,r))),100*(r=1-1/255*Math.max(e,Math.max(n,r)))]}function s(t){var e,i=t[0]/255,n=t[1]/255,r=t[2]/255;return[100*((1-i-(e=Math.min(1-i,1-n,1-r)))/(1-e)||0),100*((1-n-e)/(1-e)||0),100*((1-r-e)/(1-e)||0),100*e]}function a(t){return T[JSON.stringify(t)]}function l(t){var e=t[0]/255,i=t[1]/255,n=t[2]/255;return[100*(.4124*(e=e>.04045?Math.pow((e+.055)/1.055,2.4):e/12.92)+.3576*(i=i>.04045?Math.pow((i+.055)/1.055,2.4):i/12.92)+.1805*(n=n>.04045?Math.pow((n+.055)/1.055,2.4):n/12.92)),100*(.2126*e+.7152*i+.0722*n),100*(.0193*e+.1192*i+.9505*n)]}function u(t){var e=l(t),i=e[0],n=e[1],r=e[2];return n/=100,r/=108.883,i=(i/=95.047)>.008856?Math.pow(i,1/3):7.787*i+16/116,[116*(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116)-16,500*(i-n),200*(n-(r=r>.008856?Math.pow(r,1/3):7.787*r+16/116))]}function c(t){var e,i,n,r,o,s=t[0]/360,a=t[1]/100,l=t[2]/100;if(0==a)return[o=255*l,o,o];e=2*l-(i=l<.5?l*(1+a):l+a-l*a),r=[0,0,0];for(var u=0;u<3;u++)(n=s+1/3*-(u-1))<0&&n++,n>1&&n--,o=6*n<1?e+6*(i-e)*n:2*n<1?i:3*n<2?e+(i-e)*(2/3-n)*6:e,r[u]=255*o;return r}function h(t){var e=t[0]/60,i=t[1]/100,n=t[2]/100,r=Math.floor(e)%6,o=e-Math.floor(e),s=255*n*(1-i),a=255*n*(1-i*o),l=255*n*(1-i*(1-o));n*=255;switch(r){case 0:return[n,l,s];case 1:return[a,n,s];case 2:return[s,n,l];case 3:return[s,a,n];case 4:return[l,s,n];case 5:return[n,s,a]}}function d(t){var e,i,n,o,s=t[0]/360,a=t[1]/100,l=t[2]/100,u=a+l;switch(u>1&&(a/=u,l/=u),i=1-l,n=6*s-(e=Math.floor(6*s)),0!=(1&e)&&(n=1-n),o=a+n*(i-a),e){default:case 6:case 0:r=i,g=o,b=a;break;case 1:r=o,g=i,b=a;break;case 2:r=a,g=i,b=o;break;case 3:r=a,g=o,b=i;break;case 4:r=o,g=a,b=i;break;case 5:r=i,g=a,b=o}return[255*r,255*g,255*b]}function f(t){var e=t[0]/100,i=t[1]/100,n=t[2]/100,r=t[3]/100;return[255*(1-Math.min(1,e*(1-r)+r)),255*(1-Math.min(1,i*(1-r)+r)),255*(1-Math.min(1,n*(1-r)+r))]}function p(t){var e,i,n,r=t[0]/100,o=t[1]/100,s=t[2]/100;return i=-.9689*r+1.8758*o+.0415*s,n=.0557*r+-.204*o+1.057*s,e=(e=3.2406*r+-1.5372*o+-.4986*s)>.0031308?1.055*Math.pow(e,1/2.4)-.055:e*=12.92,i=i>.0031308?1.055*Math.pow(i,1/2.4)-.055:i*=12.92,n=n>.0031308?1.055*Math.pow(n,1/2.4)-.055:n*=12.92,[255*(e=Math.min(Math.max(0,e),1)),255*(i=Math.min(Math.max(0,i),1)),255*(n=Math.min(Math.max(0,n),1))]}function v(t){var e=t[0],i=t[1],n=t[2];return i/=100,n/=108.883,e=(e/=95.047)>.008856?Math.pow(e,1/3):7.787*e+16/116,[116*(i=i>.008856?Math.pow(i,1/3):7.787*i+16/116)-16,500*(e-i),200*(i-(n=n>.008856?Math.pow(n,1/3):7.787*n+16/116))]}function m(t){var e,i,n,r,o=t[0],s=t[1],a=t[2];return o<=8?r=(i=100*o/903.3)/100*7.787+16/116:(i=100*Math.pow((o+16)/116,3),r=Math.pow(i/100,1/3)),[e=e/95.047<=.008856?e=95.047*(s/500+r-16/116)/7.787:95.047*Math.pow(s/500+r,3),i,n=n/108.883<=.008859?n=108.883*(r-a/200-16/116)/7.787:108.883*Math.pow(r-a/200,3)]}function y(t){var e,i=t[0],n=t[1],r=t[2];return(e=360*Math.atan2(r,n)/2/Math.PI)<0&&(e+=360),[i,Math.sqrt(n*n+r*r),e]}function _(t){return p(m(t))}function x(t){var e,i=t[0],n=t[1];return e=t[2]/360*2*Math.PI,[i,n*Math.cos(e),n*Math.sin(e)]}function w(t){return S[t]}t.exports={rgb2hsl:i,rgb2hsv:n,rgb2hwb:o,rgb2cmyk:s,rgb2keyword:a,rgb2xyz:l,rgb2lab:u,rgb2lch:function(t){return y(u(t))},hsl2rgb:c,hsl2hsv:function(t){var e=t[0],i=t[1]/100,n=t[2]/100;if(0===n)return[0,0,0];return[e,100*(2*(i*=(n*=2)<=1?n:2-n)/(n+i)),100*((n+i)/2)]},hsl2hwb:function(t){return o(c(t))},hsl2cmyk:function(t){return s(c(t))},hsl2keyword:function(t){return a(c(t))},hsv2rgb:h,hsv2hsl:function(t){var e,i,n=t[0],r=t[1]/100,o=t[2]/100;return e=r*o,[n,100*(e=(e/=(i=(2-r)*o)<=1?i:2-i)||0),100*(i/=2)]},hsv2hwb:function(t){return o(h(t))},hsv2cmyk:function(t){return s(h(t))},hsv2keyword:function(t){return a(h(t))},hwb2rgb:d,hwb2hsl:function(t){return i(d(t))},hwb2hsv:function(t){return n(d(t))},hwb2cmyk:function(t){return s(d(t))},hwb2keyword:function(t){return a(d(t))},cmyk2rgb:f,cmyk2hsl:function(t){return i(f(t))},cmyk2hsv:function(t){return n(f(t))},cmyk2hwb:function(t){return o(f(t))},cmyk2keyword:function(t){return a(f(t))},keyword2rgb:w,keyword2hsl:function(t){return i(w(t))},keyword2hsv:function(t){return n(w(t))},keyword2hwb:function(t){return o(w(t))},keyword2cmyk:function(t){return s(w(t))},keyword2lab:function(t){return u(w(t))},keyword2xyz:function(t){return l(w(t))},xyz2rgb:p,xyz2lab:v,xyz2lch:function(t){return y(v(t))},lab2xyz:m,lab2rgb:_,lab2lch:y,lch2lab:x,lch2xyz:function(t){return m(x(t))},lch2rgb:function(t){return _(x(t))}};var S={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},T={};for(var E in S)T[JSON.stringify(S[E])]=E},function(t,e,i){"use strict";t.exports=i(823)},function(t,e,i){"use strict";var n=i(824);i(837),i(839),i(841),i(842),i(843),i(845),i(846),i(847),i(848),i(850),i(851),i(852),i(853),i(854),i(855),i(856),i(857),i(858),i(859),t.exports=n},function(t,e,i){"use strict";var n=i(825);i(836),t.exports=n},function(t,e,i){"use strict";var n=i(826);i(124),t.exports=n},function(t,e,i){"use strict";i(125),i(827),i(340),i(146),i(147);var n=i(28);t.exports=n.Map},function(t,e,i){"use strict";i(828)},function(t,e,i){"use strict";i(829)("Map",function(t){return function(){return t(this,arguments.length?arguments[0]:void 0)}},i(833))},function(t,e,i){"use strict";var n=i(2),r=i(26),o=i(339),s=i(9),a=i(80),l=i(66),u=i(232),c=i(18),h=i(33),d=i(118),f=i(89),p=i(51).f,v=i(123).forEach,g=i(32),m=i(122),y=m.set,_=m.getterFor;t.exports=function(t,e,i){var m,b=-1!==t.indexOf("Map"),x=-1!==t.indexOf("Weak"),w=b?"set":"add",S=r[t],T=S&&S.prototype,E={};if(g&&c(S)&&(x||T.forEach&&!s(function(){(new S).entries().next()}))){var C=(m=e(function(e,i){y(u(e,C),{type:t,collection:new S}),d(i)||l(i,e[w],{that:e,AS_ENTRIES:b})})).prototype,O=_(t);v(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(t){var e="add"===t||"set"===t;t in T&&(!x||"clear"!==t)&&a(C,t,function(i,n){var r=O(this).collection;if(!e&&x&&!h(i))return"get"===t&&void 0;var o=r[t](0===i?0:i,n);return e?this:o})}),x||p(C,"size",{configurable:!0,get:function(){return O(this).collection.size}})}else m=i.getConstructor(e,t,b,w),o.enable();return f(m,t,!1,!0),E[t]=m,n({global:!0,forced:!0},E),x||i.setStrong(m,t,b),m}},function(t,e,i){"use strict";var n=i(9),r=i(33),o=i(74),s=i(831),a=Object.isExtensible,l=n(function(){a(1)});t.exports=l||s?function(t){return!!r(t)&&((!s||"ArrayBuffer"!==o(t))&&(!a||a(t)))}:a},function(t,e,i){"use strict";var n=i(9);t.exports=n(function(){if("function"==typeof ArrayBuffer){var t=new ArrayBuffer(8);Object.isExtensible(t)&&Object.defineProperty(t,"a",{value:8})}})},function(t,e,i){"use strict";var n=i(9);t.exports=!n(function(){return Object.isExtensible(Object.preventExtensions({}))})},function(t,e,i){"use strict";var n=i(106),r=i(222),o=i(834),s=i(44),a=i(232),l=i(118),u=i(66),c=i(226),h=i(227),d=i(320),f=i(32),p=i(339).fastKey,v=i(122),g=v.set,m=v.getterFor;t.exports={getConstructor:function(t,e,i,c){var h=t(function(t,r){a(t,d),g(t,{type:e,index:n(null),first:void 0,last:void 0,size:0}),f||(t.size=0),l(r)||u(r,t[c],{that:t,AS_ENTRIES:i})}),d=h.prototype,v=m(e),y=function(t,e,i){var n,r,o=v(t),s=_(t,e);return s?s.value=i:(o.last=s={index:r=p(e,!0),key:e,value:i,previous:n=o.last,next:void 0,removed:!1},o.first||(o.first=s),n&&(n.next=s),f?o.size++:t.size++,"F"!==r&&(o.index[r]=s)),t},_=function(t,e){var i,n=v(t),r=p(e);if("F"!==r)return n.index[r];for(i=n.first;i;i=i.next)if(i.key===e)return i};return o(d,{clear:function(){for(var t=v(this),e=t.first;e;)e.removed=!0,e.previous&&(e.previous=e.previous.next=void 0),e=e.next;t.first=t.last=void 0,t.index=n(null),f?t.size=0:this.size=0},delete:function(t){var e=v(this),i=_(this,t);if(i){var n=i.next,r=i.previous;delete e.index[i.index],i.removed=!0,r&&(r.next=n),n&&(n.previous=r),e.first===i&&(e.first=n),e.last===i&&(e.last=r),f?e.size--:this.size--}return!!i},forEach:function(t){for(var e,i=v(this),n=s(t,arguments.length>1?arguments[1]:void 0);e=e?e.next:i.first;)for(n(e.value,e.key,this);e&&e.removed;)e=e.previous},has:function(t){return!!_(this,t)}}),o(d,i?{get:function(t){var e=_(this,t);return e&&e.value},set:function(t,e){return y(this,0===t?0:t,e)}}:{add:function(t){return y(this,t=0===t?0:t,t)}}),f&&r(d,"size",{configurable:!0,get:function(){return v(this).size}}),h},setStrong:function(t,e,i){var n=e+" Iterator",r=m(e),o=m(n);c(t,e,function(t,e){g(this,{type:n,target:t,state:r(t),kind:e,last:void 0})},function(){for(var t=o(this),e=t.kind,i=t.last;i&&i.removed;)i=i.previous;return t.target&&(t.last=i=i?i.next:t.state.first)?h("keys"===e?i.key:"values"===e?i.value:[i.key,i.value],!1):(t.target=void 0,h(void 0,!0))},i?"entries":"values",!i,!0),d(e)}}},function(t,e,i){"use strict";var n=i(88);t.exports=function(t,e,i){for(var r in e)i&&i.unsafe&&t[r]?t[r]=e[r]:n(t,r,e[r],i);return t}},function(t,e,i){"use strict";t.exports=function(t,e){return 1===e?function(e,i){return e[t](i)}:function(e,i,n){return e[t](i,n)}}},function(t,e,i){"use strict";i(340)},function(t,e,i){"use strict";var n=i(2),r=i(68);n({target:"Map",stat:!0,forced:!0},{from:i(838)(r.Map,r.set,!0)})},function(t,e,i){"use strict";var n=i(44),r=i(42),o=i(46),s=i(66);t.exports=function(t,e,i){return function(a){var l=o(a),u=arguments.length,c=u>1?arguments[1]:void 0,h=void 0!==c,d=h?n(c,u>2?arguments[2]:void 0):void 0,f=new t,p=0;return s(l,function(t){var n=h?d(t,p++):t;i?e(f,r(n)[0],n[1]):e(f,n)}),f}}},function(t,e,i){"use strict";var n=i(2),r=i(68);n({target:"Map",stat:!0,forced:!0},{of:i(840)(r.Map,r.set,!0)})},function(t,e,i){"use strict";var n=i(42);t.exports=function(t,e,i){return function(){for(var r=new t,o=arguments.length,s=0;s<o;s++){var a=arguments[s];i?e(r,n(a)[0],a[1]):e(r,a)}return r}}},function(t,e,i){"use strict";var n=i(2),r=i(47),o=i(68).remove;n({target:"Map",proto:!0,real:!0,forced:!0},{deleteAll:function(){for(var t,e=r(this),i=!0,n=0,s=arguments.length;n<s;n++)t=o(e,arguments[n]),i=i&&t;return!!i}})},function(t,e,i){"use strict";var n=i(2),r=i(47),o=i(68),s=o.get,a=o.has,l=o.set;n({target:"Map",proto:!0,real:!0,forced:!0},{emplace:function(t,e){var i,n,o=r(this);return a(o,t)?(i=s(o,t),"update"in e&&(i=e.update(i,t,o),l(o,t,i)),i):(n=e.insert(t,o),l(o,t,n),n)}})},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(76);n({target:"Map",proto:!0,real:!0,forced:!0},{every:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0);return!1!==s(e,function(t,n){if(!i(t,n,e))return!1},!0)}})},function(t,e,i){"use strict";var n=i(27);t.exports=function(t,e,i){for(var r,o,s=i?t:t.iterator,a=t.next;!(r=n(a,s)).done;)if(void 0!==(o=e(r.value)))return o}},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(68),a=i(76),l=s.Map,u=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{filter:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0),n=new l;return a(e,function(t,r){i(t,r,e)&&u(n,r,t)}),n}})},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(76);n({target:"Map",proto:!0,real:!0,forced:!0},{find:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0),n=s(e,function(t,n){if(i(t,n,e))return{value:t}},!0);return n&&n.value}})},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(76);n({target:"Map",proto:!0,real:!0,forced:!0},{findKey:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0),n=s(e,function(t,n){if(i(t,n,e))return{key:n}},!0);return n&&n.key}})},function(t,e,i){"use strict";var n=i(2),r=i(849),o=i(47),s=i(76);n({target:"Map",proto:!0,real:!0,forced:!0},{includes:function(t){return!0===s(o(this),function(e){if(r(e,t))return!0},!0)}})},function(t,e,i){"use strict";t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,i){"use strict";var n=i(2),r=i(27),o=i(66),s=i(18),a=i(38),l=i(68).Map;n({target:"Map",stat:!0,forced:!0},{keyBy:function(t,e){var i=new(s(this)?this:l);a(e);var n=a(i.set);return o(t,function(t){r(n,i,e(t),t)}),i}})},function(t,e,i){"use strict";var n=i(2),r=i(47),o=i(76);n({target:"Map",proto:!0,real:!0,forced:!0},{keyOf:function(t){var e=o(r(this),function(e,i){if(e===t)return{key:i}},!0);return e&&e.key}})},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(68),a=i(76),l=s.Map,u=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapKeys:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0),n=new l;return a(e,function(t,r){u(n,i(t,r,e),t)}),n}})},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(68),a=i(76),l=s.Map,u=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{mapValues:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0),n=new l;return a(e,function(t,r){u(n,r,i(t,r,e))}),n}})},function(t,e,i){"use strict";var n=i(2),r=i(47),o=i(66),s=i(68).set;n({target:"Map",proto:!0,real:!0,arity:1,forced:!0},{merge:function(t){for(var e=r(this),i=arguments.length,n=0;n<i;)o(arguments[n++],function(t,i){s(e,t,i)},{AS_ENTRIES:!0});return e}})},function(t,e,i){"use strict";var n=i(2),r=i(38),o=i(47),s=i(76),a=TypeError;n({target:"Map",proto:!0,real:!0,forced:!0},{reduce:function(t){var e=o(this),i=arguments.length<2,n=i?void 0:arguments[1];if(r(t),s(e,function(r,o){i?(i=!1,n=r):n=t(n,r,o,e)}),i)throw new a("Reduce of empty map with no initial value");return n}})},function(t,e,i){"use strict";var n=i(2),r=i(44),o=i(47),s=i(76);n({target:"Map",proto:!0,real:!0,forced:!0},{some:function(t){var e=o(this),i=r(t,arguments.length>1?arguments[1]:void 0);return!0===s(e,function(t,n){if(i(t,n,e))return!0},!0)}})},function(t,e,i){"use strict";var n=i(2),r=i(38),o=i(47),s=i(68),a=TypeError,l=s.get,u=s.has,c=s.set;n({target:"Map",proto:!0,real:!0,forced:!0},{update:function(t,e){var i=o(this),n=arguments.length;r(e);var s=u(i,t);if(!s&&n<3)throw new a("Updating absent value");var h=s?l(i,t):r(n>2?arguments[2]:void 0)(t,i);return c(i,t,e(h,t,i)),i}})},function(t,e,i){"use strict";i(2)({target:"Map",proto:!0,real:!0,forced:!0},{upsert:i(341)})},function(t,e,i){"use strict";i(2)({target:"Map",proto:!0,real:!0,name:"upsert",forced:!0},{updateOrInsert:i(341)})},function(t,e,i){"use strict";t.exports=i(861)},function(t,e,i){"use strict";var n=i(862);t.exports=n},function(t,e,i){"use strict";var n=i(863);t.exports=n},function(t,e,i){"use strict";var n=i(864);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(865),o=Array.prototype;t.exports=function(t){var e=t.indexOf;return t===o||n(o,t)&&e===o.indexOf?r:e}},function(t,e,i){"use strict";i(866);var n=i(45);t.exports=n("Array","indexOf")},function(t,e,i){"use strict";var n=i(2),r=i(213),o=i(219).indexOf,s=i(229),a=r([].indexOf),l=!!a&&1/a([1],1,-0)<0;n({target:"Array",proto:!0,forced:l||!s("indexOf")},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?a(this,t,e)||0:o(this,t,e)}})},function(t,e,i){"use strict";var n=i(868);t.exports=n},function(t,e,i){"use strict";var n=i(337);t.exports=n},function(t,e,i){t.exports=i(870)},function(t,e,i){"use strict";var n=i(871);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(872),o=Array.prototype;t.exports=function(t){var e=t.splice;return t===o||n(o,t)&&e===o.splice?r:e}},function(t,e,i){"use strict";i(873);var n=i(45);t.exports=n("Array","splice")},function(t,e,i){"use strict";var n=i(2),r=i(46),o=i(220),s=i(141),a=i(81),l=i(313),u=i(224),c=i(223),h=i(144),d=i(343),f=i(143)("splice"),p=Math.max,v=Math.min;n({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var i,n,f,g,m,y,_=r(this),b=a(_),x=o(t,b),w=arguments.length;for(0===w?i=n=0:1===w?(i=0,n=b-x):(i=w-2,n=v(p(s(e),0),b-x)),u(b+i-n),f=c(_,n),g=0;g<n;g++)(m=x+g)in _&&h(f,g,_[m]);if(f.length=n,i<n){for(g=x;g<b-n;g++)y=g+i,(m=g+n)in _?_[y]=_[m]:d(_,y);for(g=b;g>b-n+i;g--)d(_,g-1)}else if(i>n)for(g=b-n;g>x;g--)y=g+i-1,(m=g+n-1)in _?_[y]=_[m]:d(_,y);for(g=0;g<i;g++)_[g+x]=arguments[g+2];return l(_,b-n+i),f}})},function(t,e,i){"use strict";var n=i(875);t.exports=n},function(t,e,i){"use strict";var n=i(876);t.exports=n},function(t,e,i){"use strict";var n=i(877);t.exports=n},function(t,e,i){"use strict";i(878);var n=i(28);t.exports=n.Array.isArray},function(t,e,i){"use strict";i(2)({target:"Array",stat:!0},{isArray:i(108)})},function(t,e,i){"use strict";var n=i(880);t.exports=n},function(t,e,i){"use strict";var n=i(881);t.exports=n},function(t,e,i){"use strict";var n=i(882);i(124),t.exports=n},function(t,e,i){"use strict";i(125),i(147);var n=i(176);t.exports=n},function(t,e,i){"use strict";var n=i(884);t.exports=n},function(t,e,i){"use strict";var n=i(335);t.exports=n},function(t,e,i){"use strict";t.exports=function(t,e,i){if(!t)throw new TypeError("argument dest is required");if(!e)throw new TypeError("argument src is required");void 0===i&&(i=!0);return Object.getOwnPropertyNames(e).forEach(function(r){if(i||!n.call(t,r)){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o)}}),t};var n=Object.prototype.hasOwnProperty},function(t,e,i){t.exports=i(887)},function(t,e,i){"use strict";var n=i(888);t.exports=n},function(t,e,i){"use strict";var n=i(36),r=i(889),o=Array.prototype;t.exports=function(t){var e=t.sort;return t===o||n(o,t)&&e===o.sort?r:e}},function(t,e,i){"use strict";i(890);var n=i(45);t.exports=n("Array","sort")},function(t,e,i){"use strict";var n=i(2),r=i(13),o=i(38),s=i(46),a=i(81),l=i(343),u=i(75),c=i(9),h=i(891),d=i(229),f=i(892),p=i(893),v=i(139),g=i(894),m=[],y=r(m.sort),_=r(m.push),b=c(function(){m.sort(void 0)}),x=c(function(){m.sort(null)}),w=d("sort"),S=!c(function(){if(v)return v<70;if(!(f&&f>3)){if(p)return!0;if(g)return g<603;var t,e,i,n,r="";for(t=65;t<76;t++){switch(e=String.fromCharCode(t),t){case 66:case 69:case 70:case 72:i=3;break;case 68:case 71:i=4;break;default:i=2}for(n=0;n<47;n++)m.push({k:e+n,v:i})}for(m.sort(function(t,e){return e.v-t.v}),n=0;n<m.length;n++)e=m[n].k.charAt(0),r.charAt(r.length-1)!==e&&(r+=e);return"DGBEFHACIJK"!==r}});n({target:"Array",proto:!0,forced:b||!x||!w||!S},{sort:function(t){void 0!==t&&o(t);var e=s(this);if(S)return void 0===t?y(e):y(e,t);var i,n,r=[],c=a(e);for(n=0;n<c;n++)n in e&&_(r,e[n]);for(h(r,function(t){return function(e,i){return void 0===i?-1:void 0===e?1:void 0!==t?+t(e,i)||0:u(e)>u(i)?1:-1}}(t)),i=a(r),n=0;n<i;)e[n]=r[n++];for(;n<c;)l(e,n++);return e}})},function(t,e,i){"use strict";var n=i(107),r=Math.floor,o=function(t,e){var i=t.length;if(i<8)for(var s,a,l=1;l<i;){for(a=l,s=t[l];a&&e(t[a-1],s)>0;)t[a]=t[--a];a!==l++&&(t[a]=s)}else for(var u=r(i/2),c=o(n(t,0,u),e),h=o(n(t,u),e),d=c.length,f=h.length,p=0,v=0;p<d||v<f;)t[p+v]=p<d&&v<f?e(c[p],h[v])<=0?c[p++]:h[v++]:p<d?c[p++]:h[v++];return t};t.exports=o},function(t,e,i){"use strict";var n=i(104).match(/firefox\/(\d+)/i);t.exports=!!n&&+n[1]},function(t,e,i){"use strict";var n=i(104);t.exports=/MSIE|Trident/.test(n)},function(t,e,i){"use strict";var n=i(104).match(/AppleWebKit\/(\d+)\./);t.exports=!!n&&+n[1]},function(t,e,i){t.exports=i(896)},function(t,e,i){"use strict";i(124);var n=i(121),r=i(37),o=i(36),s=i(897),a=Array.prototype,l={DOMTokenList:!0,NodeList:!0};t.exports=function(t){var e=t.values;return t===a||o(a,t)&&e===a.values||r(l,n(t))?s:e}},function(t,e,i){"use strict";var n=i(898);t.exports=n},function(t,e,i){"use strict";i(125),i(146);var n=i(45);t.exports=n("Array","values")},function(t,e,i){var n=i(900);e.Processor=n},function(t,e,i){var n=i(901).newImageData;function r(t){var e=!0;try{new ImageData(10,10)}catch(t){e=!1}function i(t,i,n){return e?new ImageData(t,i,n):{data:t,width:i,height:n}}return function(e){var n,r,o=e.buffers,s=e.meta,a=e.imageOps,l=e.width,u=e.height,c=o.length,h=o[0].byteLength;if(a){var d=new Array(c);for(r=0;r<c;++r)d[r]=i(new Uint8ClampedArray(o[r]),l,u);n=t(d,s).data}else{n=new Uint8ClampedArray(h);var f=new Array(c),p=new Array(c);for(r=0;r<c;++r)f[r]=new Uint8ClampedArray(o[r]),p[r]=[0,0,0,0];for(var v=0;v<h;v+=4){for(var g=0;g<c;++g){var m=f[g];p[g][0]=m[v],p[g][1]=m[v+1],p[g][2]=m[v+2],p[g][3]=m[v+3]}var y=t(p,s);n[v]=y[0],n[v+1]=y[1],n[v+2]=y[2],n[v+3]=y[3]}}return n.buffer}}function o(t,e){var i=Object.keys(t.lib||{}).map(function(e){return"var "+e+" = "+t.lib[e].toString()+";"}).concat(["var __minion__ = ("+r.toString()+")(",t.operation.toString(),");",'self.addEventListener("message", function(event) {',"  var buffer = __minion__(event.data);","  self.postMessage({buffer: buffer, meta: event.data.meta}, [buffer]);","});"]),n=new Blob(i,{type:"text/javascript"}),o=URL.createObjectURL(n),s=new Worker(o);return s.addEventListener("message",e),s}function s(t){var e;this._imageOps=!!t.imageOps;var i=[];if(e=0===t.threads?0:this._imageOps?1:t.threads||1)for(var n=0;n<e;++n)i[n]=o(t,this._onWorkerMessage.bind(this,n));else i[0]=function(t,e){var i=r(t.operation);return{postMessage:function(t){setTimeout(function(){e({data:{buffer:i(t),meta:t.meta}})},0)}}}(t,this._onWorkerMessage.bind(this,0));this._workers=i,this._queue=[],this._maxQueueLength=t.queue||1/0,this._running=0,this._dataLookup={},this._job=null}s.prototype.process=function(t,e,i){this._enqueue({inputs:t,meta:e,callback:i}),this._dispatch()},s.prototype.destroy=function(){for(var t in this)this[t]=null;this._destroyed=!0},s.prototype._enqueue=function(t){for(this._queue.push(t);this._queue.length>this._maxQueueLength;)this._queue.shift().callback(null,null)},s.prototype._dispatch=function(){if(0===this._running&&this._queue.length>0){var t=this._job=this._queue.shift(),e=t.inputs[0].width,i=t.inputs[0].height,n=t.inputs.map(function(t){return t.data.buffer}),r=this._workers.length;if(this._running=r,1===r)this._workers[0].postMessage({buffers:n,meta:t.meta,imageOps:this._imageOps,width:e,height:i},n);else for(var o=t.inputs[0].data.length,s=4*Math.ceil(o/4/r),a=0;a<r;++a){for(var l=a*s,u=[],c=0,h=n.length;c<h;++c)u.push(n[a].slice(l,l+s));this._workers[a].postMessage({buffers:u,meta:t.meta,imageOps:this._imageOps,width:e,height:i},u)}}},s.prototype._onWorkerMessage=function(t,e){this._destroyed||(this._dataLookup[t]=e.data,--this._running,0===this._running&&this._resolveJob())},s.prototype._resolveJob=function(){var t,e,i=this._job,r=this._workers.length;if(1===r)t=new Uint8ClampedArray(this._dataLookup[0].buffer),e=this._dataLookup[0].meta;else{var o=i.inputs[0].data.length;t=new Uint8ClampedArray(o),e=new Array(o);for(var s=4*Math.ceil(o/4/r),a=0;a<r;++a){var l=this._dataLookup[a].buffer,u=a*s;t.set(new Uint8ClampedArray(l),u),e[a]=this._dataLookup[a].meta}}this._job=null,this._dataLookup={},i.callback(null,n(t,i.inputs[0].width,i.inputs[0].height),e),this._dispatch()},t.exports=s},function(t,e){var i=!0;try{new ImageData(10,10)}catch(t){i=!1}var n=document.createElement("canvas").getContext("2d");e.newImageData=function(t,e,r){if(i)return new ImageData(t,e,r);var o=n.createImageData(e,r);return o.data.set(t),o}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){var n={"./locale":358,"./locale.js":358};function r(t){return i(o(t))}function o(t){var e=n[t];if(!(e+1))throw new Error("Cannot find module '"+t+"'.");return e}r.keys=function(){return Object.keys(n)},r.resolve=o,t.exports=r,r.id=949},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){"use strict";t.exports=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16).toUpperCase()})}},function(t,e,i){"use strict";var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var t=new String("abc");if(t[5]="de","5"===Object.getOwnPropertyNames(t)[0])return!1;for(var e={},i=0;i<10;i++)e["_"+String.fromCharCode(i)]=i;if("0123456789"!==Object.getOwnPropertyNames(e).map(function(t){return e[t]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(t){n[t]=t}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(t){return!1}}()?Object.assign:function(t,e){for(var i,s,a=function(t){if(null===t||void 0===t)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(t)}(t),l=1;l<arguments.length;l++){for(var u in i=Object(arguments[l]))r.call(i,u)&&(a[u]=i[u]);if(n){s=n(i);for(var c=0;c<s.length;c++)o.call(i,s[c])&&(a[s[c]]=i[s[c]])}}return a}},function(t,e,i){"use strict";var n=new RegExp("%[a-f0-9]{2}","gi"),r=new RegExp("(%[a-f0-9]{2})+","gi");function o(t,e){try{return decodeURIComponent(t.join(""))}catch(t){}if(1===t.length)return t;e=e||1;var i=t.slice(0,e),n=t.slice(e);return Array.prototype.concat.call([],o(i),o(n))}function s(t){try{return decodeURIComponent(t)}catch(r){for(var e=t.match(n),i=1;i<e.length;i++)e=(t=o(e,i).join("")).match(n);return t}}t.exports=function(t){if("string"!=typeof t)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof t+"`");try{return t=t.replace(/\+/g," "),decodeURIComponent(t)}catch(e){return function(t){for(var e={"%FE%FF":"��","%FF%FE":"��"},i=r.exec(t);i;){try{e[i[0]]=decodeURIComponent(i[0])}catch(t){var n=s(i[0]);n!==i[0]&&(e[i[0]]=n)}i=r.exec(t)}e["%C2"]="�";for(var o=Object.keys(e),a=0;a<o.length;a++){var l=o[a];t=t.replace(new RegExp(l,"g"),e[l])}return t}(t)}}},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,i){i(237),i(1303),i(7),i(23),i(1304),i(284),i(110),i(274),i(211),i(277),i(275),i(278),i(280),i(282),i(276),i(386),i(235),i(387),i(111),i(150),i(109),t.exports=i(285)},function(t,e,i){(function(e,i){var n;n=function(){"use strict";function t(t){return"function"==typeof t}var n=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)},r=0,o=void 0,s=void 0,a=function(t,e){p[r]=t,p[r+1]=e,2===(r+=2)&&(s?s(v):b())};var l="undefined"!=typeof window?window:void 0,u=l||{},c=u.MutationObserver||u.WebKitMutationObserver,h="undefined"==typeof self&&void 0!==e&&"[object process]"==={}.toString.call(e),d="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel;function f(){var t=setTimeout;return function(){return t(v,1)}}var p=new Array(1e3);function v(){for(var t=0;t<r;t+=2){(0,p[t])(p[t+1]),p[t]=void 0,p[t+1]=void 0}r=0}var g,m,y,_,b=void 0;function x(t,e){var i=this,n=new this.constructor(T);void 0===n[S]&&j(n);var r=i._state;if(r){var o=arguments[r-1];a(function(){return F(r,n,o,i._result)})}else A(i,n,t,e);return n}function w(t){if(t&&"object"==typeof t&&t.constructor===this)return t;var e=new this(T);return P(e,t),e}h?b=function(){return e.nextTick(v)}:c?(m=0,y=new c(v),_=document.createTextNode(""),y.observe(_,{characterData:!0}),b=function(){_.data=m=++m%2}):d?((g=new MessageChannel).port1.onmessage=v,b=function(){return g.port2.postMessage(0)}):b=void 0===l?function(){try{var t=Function("return this")().require("vertx");return void 0!==(o=t.runOnLoop||t.runOnContext)?function(){o(v)}:f()}catch(t){return f()}}():f();var S=Math.random().toString(36).substring(2);function T(){}var E=void 0,C=1,O=2;function M(e,i,n){i.constructor===e.constructor&&n===x&&i.constructor.resolve===w?function(t,e){e._state===C?I(t,e._result):e._state===O?L(t,e._result):A(e,void 0,function(e){return P(t,e)},function(e){return L(t,e)})}(e,i):void 0===n?I(e,i):t(n)?function(t,e,i){a(function(t){var n=!1,r=function(t,e,i,n){try{t.call(e,i,n)}catch(t){return t}}(i,e,function(i){n||(n=!0,e!==i?P(t,i):I(t,i))},function(e){n||(n=!0,L(t,e))},t._label);!n&&r&&(n=!0,L(t,r))},t)}(e,i,n):I(e,i)}function P(t,e){if(t===e)L(t,new TypeError("You cannot resolve a promise with itself"));else if(r=typeof(n=e),null===n||"object"!==r&&"function"!==r)I(t,e);else{var i=void 0;try{i=e.then}catch(e){return void L(t,e)}M(t,e,i)}var n,r}function k(t){t._onerror&&t._onerror(t._result),R(t)}function I(t,e){t._state===E&&(t._result=e,t._state=C,0!==t._subscribers.length&&a(R,t))}function L(t,e){t._state===E&&(t._state=O,t._result=e,a(k,t))}function A(t,e,i,n){var r=t._subscribers,o=r.length;t._onerror=null,r[o]=e,r[o+C]=i,r[o+O]=n,0===o&&t._state&&a(R,t)}function R(t){var e=t._subscribers,i=t._state;if(0!==e.length){for(var n=void 0,r=void 0,o=t._result,s=0;s<e.length;s+=3)n=e[s],r=e[s+i],n?F(i,n,r,o):r(o);t._subscribers.length=0}}function F(e,i,n,r){var o=t(n),s=void 0,a=void 0,l=!0;if(o){try{s=n(r)}catch(t){l=!1,a=t}if(i===s)return void L(i,new TypeError("A promises callback cannot return that same promise."))}else s=r;i._state!==E||(o&&l?P(i,s):!1===l?L(i,a):e===C?I(i,s):e===O&&L(i,s))}var D=0;function j(t){t[S]=D++,t._state=void 0,t._result=void 0,t._subscribers=[]}var N=function(){function t(t,e){this._instanceConstructor=t,this.promise=new t(T),this.promise[S]||j(this.promise),n(e)?(this.length=e.length,this._remaining=e.length,this._result=new Array(this.length),0===this.length?I(this.promise,this._result):(this.length=this.length||0,this._enumerate(e),0===this._remaining&&I(this.promise,this._result))):L(this.promise,new Error("Array Methods must be provided an Array"))}return t.prototype._enumerate=function(t){for(var e=0;this._state===E&&e<t.length;e++)this._eachEntry(t[e],e)},t.prototype._eachEntry=function(t,e){var i=this._instanceConstructor,n=i.resolve;if(n===w){var r=void 0,o=void 0,s=!1;try{r=t.then}catch(t){s=!0,o=t}if(r===x&&t._state!==E)this._settledAt(t._state,e,t._result);else if("function"!=typeof r)this._remaining--,this._result[e]=t;else if(i===$){var a=new i(T);s?L(a,o):M(a,t,r),this._willSettleAt(a,e)}else this._willSettleAt(new i(function(e){return e(t)}),e)}else this._willSettleAt(n(t),e)},t.prototype._settledAt=function(t,e,i){var n=this.promise;n._state===E&&(this._remaining--,t===O?L(n,i):this._result[e]=i),0===this._remaining&&I(n,this._result)},t.prototype._willSettleAt=function(t,e){var i=this;A(t,void 0,function(t){return i._settledAt(C,e,t)},function(t){return i._settledAt(O,e,t)})},t}();var $=function(){function e(t){this[S]=D++,this._result=this._state=void 0,this._subscribers=[],T!==t&&("function"!=typeof t&&function(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}(),this instanceof e?function(t,e){try{e(function(e){P(t,e)},function(e){L(t,e)})}catch(e){L(t,e)}}(this,t):function(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}())}return e.prototype.catch=function(t){return this.then(null,t)},e.prototype.finally=function(e){var i=this.constructor;return t(e)?this.then(function(t){return i.resolve(e()).then(function(){return t})},function(t){return i.resolve(e()).then(function(){throw t})}):this.then(e,e)},e}();return $.prototype.then=x,$.all=function(t){return new N(this,t).promise},$.race=function(t){var e=this;return n(t)?new e(function(i,n){for(var r=t.length,o=0;o<r;o++)e.resolve(t[o]).then(i,n)}):new e(function(t,e){return e(new TypeError("You must pass an array to race."))})},$.resolve=w,$.reject=function(t){var e=new this(T);return L(e,t),e},$._setScheduler=function(t){s=t},$._setAsap=function(t){a=t},$._asap=a,$.polyfill=function(){var t=void 0;if(void 0!==i)t=i;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(t){throw new Error("polyfill failed because global object is unavailable in this environment")}var e=t.Promise;if(e){var n=null;try{n=Object.prototype.toString.call(e.resolve())}catch(t){}if("[object Promise]"===n&&!e.cast)return}t.Promise=$},$.Promise=$,$},t.exports=n()}).call(e,i(165),i(53))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),r="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},o=i(1305),s=i(1307);function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u={addClass:o.addClass,removeClass:o.removeClass,hasClass:o.hasClass,toggleClass:o.toggleClass,attr:o.attr,removeAttr:o.removeAttr,data:o.data,transform:o.transform,transition:o.transition,on:o.on,off:o.off,trigger:o.trigger,transitionEnd:o.transitionEnd,outerWidth:o.outerWidth,outerHeight:o.outerHeight,offset:o.offset,css:o.css,each:o.each,html:o.html,text:o.text,is:o.is,index:o.index,eq:o.eq,append:o.append,prepend:o.prepend,next:o.next,nextAll:o.nextAll,prev:o.prev,prevAll:o.prevAll,parent:o.parent,parents:o.parents,closest:o.closest,find:o.find,children:o.children,remove:o.remove,add:o.add,styles:o.styles};Object.keys(u).forEach(function(t){o.$.fn[t]=o.$.fn[t]||u[t]});var c,h,d={deleteProps:function(t){var e=t;Object.keys(e).forEach(function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"x",i=void 0,n=void 0,r=void 0,o=s.window.getComputedStyle(t,null);return s.window.WebKitCSSMatrix?((n=o.transform||o.webkitTransform).split(",").length>6&&(n=n.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),r=new s.window.WebKitCSSMatrix("none"===n?"":n)):i=(r=o.MozTransform||o.OTransform||o.MsTransform||o.msTransform||o.transform||o.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===e&&(n=s.window.WebKitCSSMatrix?r.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===e&&(n=s.window.WebKitCSSMatrix?r.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),n||0},parseUrlQuery:function(t){var e={},i=t||s.window.location.href,n=void 0,r=void 0,o=void 0,a=void 0;if("string"==typeof i&&i.length)for(a=(r=(i=i.indexOf("?")>-1?i.replace(/\S*\?/,""):"").split("&").filter(function(t){return""!==t})).length,n=0;n<a;n+=1)o=r[n].replace(/#\S+/g,"").split("="),e[decodeURIComponent(o[0])]=void 0===o[1]?void 0:decodeURIComponent(o[1])||"";return e},isObject:function(t){return"object"===(void 0===t?"undefined":r(t))&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=Object(arguments.length<=0?void 0:arguments[0]),e=1;e<arguments.length;e+=1){var i=arguments.length<=e?void 0:arguments[e];if(void 0!==i&&null!==i)for(var n=Object.keys(Object(i)),r=0,o=n.length;r<o;r+=1){var s=n[r],a=Object.getOwnPropertyDescriptor(i,s);void 0!==a&&a.enumerable&&(d.isObject(t[s])&&d.isObject(i[s])?d.extend(t[s],i[s]):!d.isObject(t[s])&&d.isObject(i[s])?(t[s]={},d.extend(t[s],i[s])):t[s]=i[s])}}return t}},f=(h=s.document.createElement("div"),{touch:s.window.Modernizr&&!0===s.window.Modernizr.touch||!!(s.window.navigator.maxTouchPoints>0||"ontouchstart"in s.window||s.window.DocumentTouch&&s.document instanceof s.window.DocumentTouch),pointerEvents:!!(s.window.navigator.pointerEnabled||s.window.PointerEvent||"maxTouchPoints"in s.window.navigator&&s.window.navigator.maxTouchPoints>0),prefixedPointerEvents:!!s.window.navigator.msPointerEnabled,transition:(c=h.style,"transition"in c||"webkitTransition"in c||"MozTransition"in c),transforms3d:s.window.Modernizr&&!0===s.window.Modernizr.csstransforms3d||function(){var t=h.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=h.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),i=0;i<e.length;i+=1)if(e[i]in t)return!0;return!1}(),observer:"MutationObserver"in s.window||"WebkitMutationObserver"in s.window,passiveListener:function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});s.window.addEventListener("testPassiveListener",null,e)}catch(t){}return t}(),gestures:"ongesturestart"in s.window}),p=function(){return{isIE:!!s.window.navigator.userAgent.match(/Trident/g)||!!s.window.navigator.userAgent.match(/MSIE/g),isEdge:!!s.window.navigator.userAgent.match(/Edge/g),isSafari:(t=s.window.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(s.window.navigator.userAgent)};var t}(),v=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l(this,t);var i=this;i.params=e,i.eventsListeners={},i.params&&i.params.on&&Object.keys(i.params.on).forEach(function(t){i.on(t,i.params.on[t])})}return n(t,[{key:"on",value:function(t,e,i){var n=this;if("function"!=typeof e)return n;var r=i?"unshift":"push";return t.split(" ").forEach(function(t){n.eventsListeners[t]||(n.eventsListeners[t]=[]),n.eventsListeners[t][r](e)}),n}},{key:"once",value:function(t,e,i){var n=this;if("function"!=typeof e)return n;function r(){for(var i=arguments.length,o=Array(i),s=0;s<i;s++)o[s]=arguments[s];e.apply(n,o),n.off(t,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=e,n.on(t,r,i)}},{key:"off",value:function(t,e){var i=this;return i.eventsListeners?(t.split(" ").forEach(function(t){void 0===e?i.eventsListeners[t]=[]:i.eventsListeners[t]&&i.eventsListeners[t].length&&i.eventsListeners[t].forEach(function(n,r){(n===e||n.f7proxy&&n.f7proxy===e)&&i.eventsListeners[t].splice(r,1)})}),i):i}},{key:"emit",value:function(){var t=this;if(!t.eventsListeners)return t;for(var e=void 0,i=void 0,n=void 0,r=arguments.length,o=Array(r),s=0;s<r;s++)o[s]=arguments[s];return"string"==typeof o[0]||Array.isArray(o[0])?(e=o[0],i=o.slice(1,o.length),n=t):(e=o[0].events,i=o[0].data,n=o[0].context||t),(Array.isArray(e)?e:e.split(" ")).forEach(function(e){if(t.eventsListeners&&t.eventsListeners[e]){var r=[];t.eventsListeners[e].forEach(function(t){r.push(t)}),r.forEach(function(t){t.apply(n,i)})}}),t}},{key:"useModulesParams",value:function(t){var e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var n=e.modules[i];n.params&&d.extend(t,n.params)})}},{key:"useModules",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this;e.modules&&Object.keys(e.modules).forEach(function(i){var n=e.modules[i],r=t[i]||{};n.instance&&Object.keys(n.instance).forEach(function(t){var i=n.instance[t];e[t]="function"==typeof i?i.bind(e):i}),n.on&&e.on&&Object.keys(n.on).forEach(function(t){e.on(t,n.on[t])}),n.create&&n.create.bind(e)(r)})}}],[{key:"installModule",value:function(t){var e=this;e.prototype.modules||(e.prototype.modules={});var i=t.name||Object.keys(e.prototype.modules).length+"_"+d.now();if(e.prototype.modules[i]=t,t.proto&&Object.keys(t.proto).forEach(function(i){e.prototype[i]=t.proto[i]}),t.static&&Object.keys(t.static).forEach(function(i){e[i]=t.static[i]}),t.install){for(var n=arguments.length,r=Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];t.install.apply(e,r)}return e}},{key:"use",value:function(t){var e=this;if(Array.isArray(t))return t.forEach(function(t){return e.installModule(t)}),e;for(var i=arguments.length,n=Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];return e.installModule.apply(e,[t].concat(n))}},{key:"components",set:function(t){this.use&&this.use(t)}}]),t}();var g={updateSize:function(){var t=void 0,e=void 0,i=this.$el;t=void 0!==this.params.width?this.params.width:i[0].clientWidth,e=void 0!==this.params.height?this.params.height:i[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(i.css("padding-left"),10)-parseInt(i.css("padding-right"),10),e=e-parseInt(i.css("padding-top"),10)-parseInt(i.css("padding-bottom"),10),d.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){var t=this.params,e=this.$wrapperEl,i=this.size,n=this.rtlTranslate,r=this.wrongRTL,o=this.virtual&&t.virtual.enabled,a=o?this.virtual.slides.length:this.slides.length,l=e.children("."+this.params.slideClass),u=o?this.virtual.slides.length:l.length,c=[],h=[],v=[],g=t.slidesOffsetBefore;"function"==typeof g&&(g=t.slidesOffsetBefore.call(this));var m=t.slidesOffsetAfter;"function"==typeof m&&(m=t.slidesOffsetAfter.call(this));var y=this.snapGrid.length,_=this.snapGrid.length,b=t.spaceBetween,x=-g,w=0,S=0;if(void 0!==i){"string"==typeof b&&b.indexOf("%")>=0&&(b=parseFloat(b.replace("%",""))/100*i),this.virtualSize=-b,n?l.css({marginLeft:"",marginTop:""}):l.css({marginRight:"",marginBottom:""});var T=void 0;t.slidesPerColumn>1&&(T=Math.floor(u/t.slidesPerColumn)===u/this.params.slidesPerColumn?u:Math.ceil(u/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var E=void 0,C=t.slidesPerColumn,O=T/C,M=Math.floor(u/t.slidesPerColumn),P=0;P<u;P+=1){E=0;var k=l.eq(P);if(t.slidesPerColumn>1){var I=void 0,L=void 0,A=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)A=P-(L=Math.floor(P/C))*C,(L>M||L===M&&A===C-1)&&(A+=1)>=C&&(A=0,L+=1);else{var R=Math.floor(P/t.slidesPerGroup);L=P-(A=Math.floor(P/t.slidesPerView)-R*t.slidesPerColumn)*t.slidesPerView-R*t.slidesPerView}I=L+A*T/C,k.css({"-webkit-box-ordinal-group":I,"-moz-box-ordinal-group":I,"-ms-flex-order":I,"-webkit-order":I,order:I})}else L=P-(A=Math.floor(P/O))*O;k.css("margin-"+(this.isHorizontal()?"top":"left"),0!==A&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",L).attr("data-swiper-row",A)}if("none"!==k.css("display")){if("auto"===t.slidesPerView){var F=s.window.getComputedStyle(k[0],null),D=k[0].style.transform,j=k[0].style.webkitTransform;if(D&&(k[0].style.transform="none"),j&&(k[0].style.webkitTransform="none"),t.roundLengths)E=this.isHorizontal()?k.outerWidth(!0):k.outerHeight(!0);else if(this.isHorizontal()){var N=parseFloat(F.getPropertyValue("width")),$=parseFloat(F.getPropertyValue("padding-left")),G=parseFloat(F.getPropertyValue("padding-right")),z=parseFloat(F.getPropertyValue("margin-left")),B=parseFloat(F.getPropertyValue("margin-right")),Y=F.getPropertyValue("box-sizing");E=Y&&"border-box"===Y&&!p.isIE?N+z+B:N+$+G+z+B}else{var V=parseFloat(F.getPropertyValue("height")),W=parseFloat(F.getPropertyValue("padding-top")),H=parseFloat(F.getPropertyValue("padding-bottom")),U=parseFloat(F.getPropertyValue("margin-top")),X=parseFloat(F.getPropertyValue("margin-bottom")),q=F.getPropertyValue("box-sizing");E=q&&"border-box"===q&&!p.isIE?V+U+X:V+W+H+U+X}D&&(k[0].style.transform=D),j&&(k[0].style.webkitTransform=j),t.roundLengths&&(E=Math.floor(E))}else E=(i-(t.slidesPerView-1)*b)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),l[P]&&(this.isHorizontal()?l[P].style.width=E+"px":l[P].style.height=E+"px");l[P]&&(l[P].swiperSlideSize=E),v.push(E),t.centeredSlides?(x=x+E/2+w/2+b,0===w&&0!==P&&(x=x-i/2-b),0===P&&(x=x-i/2-b),Math.abs(x)<.001&&(x=0),t.roundLengths&&(x=Math.floor(x)),S%t.slidesPerGroup==0&&c.push(x),h.push(x)):(t.roundLengths&&(x=Math.floor(x)),S%t.slidesPerGroup==0&&c.push(x),h.push(x),x=x+E+b),this.virtualSize+=E+b,w=E,S+=1}}this.virtualSize=Math.max(this.virtualSize,i)+m;var K=void 0;if(n&&r&&("slide"===t.effect||"coverflow"===t.effect)&&e.css({width:this.virtualSize+t.spaceBetween+"px"}),f.flexbox&&!t.setWrapperSize||(this.isHorizontal()?e.css({width:this.virtualSize+t.spaceBetween+"px"}):e.css({height:this.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(this.virtualSize=(E+t.spaceBetween)*T,this.virtualSize=Math.ceil(this.virtualSize/t.slidesPerColumn)-t.spaceBetween,this.isHorizontal()?e.css({width:this.virtualSize+t.spaceBetween+"px"}):e.css({height:this.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){K=[];for(var Z=0;Z<c.length;Z+=1){var J=c[Z];t.roundLengths&&(J=Math.floor(J)),c[Z]<this.virtualSize+c[0]&&K.push(J)}c=K}if(!t.centeredSlides){K=[];for(var Q=0;Q<c.length;Q+=1){var tt=c[Q];t.roundLengths&&(tt=Math.floor(tt)),c[Q]<=this.virtualSize-i&&K.push(tt)}c=K,Math.floor(this.virtualSize-i)-Math.floor(c[c.length-1])>1&&c.push(this.virtualSize-i)}if(0===c.length&&(c=[0]),0!==t.spaceBetween&&(this.isHorizontal()?n?l.css({marginLeft:b+"px"}):l.css({marginRight:b+"px"}):l.css({marginBottom:b+"px"})),t.centerInsufficientSlides){var et=0;if(v.forEach(function(e){et+=e+(t.spaceBetween?t.spaceBetween:0)}),(et-=t.spaceBetween)<i){var it=(i-et)/2;c.forEach(function(t,e){c[e]=t-it}),h.forEach(function(t,e){h[e]=t+it})}}d.extend(this,{slides:l,snapGrid:c,slidesGrid:h,slidesSizesGrid:v}),u!==a&&this.emit("slidesLengthChange"),c.length!==y&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),h.length!==_&&this.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(t){var e=[],i=0,n=void 0;if("number"==typeof t?this.setTransition(t):!0===t&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(n=0;n<Math.ceil(this.params.slidesPerView);n+=1){var r=this.activeIndex+n;if(r>this.slides.length)break;e.push(this.slides.eq(r)[0])}else e.push(this.slides.eq(this.activeIndex)[0]);for(n=0;n<e.length;n+=1)if(void 0!==e[n]){var o=e[n].offsetHeight;i=o>i?o:i}i&&this.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,e=this.params,i=this.slides,n=this.rtlTranslate;if(0!==i.length){void 0===i[0].swiperSlideOffset&&this.updateSlidesOffset();var r=-t;n&&(r=t),i.removeClass(e.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var s=0;s<i.length;s+=1){var a=i[s],l=(r+(e.centeredSlides?this.minTranslate():0)-a.swiperSlideOffset)/(a.swiperSlideSize+e.spaceBetween);if(e.watchSlidesVisibility){var u=-(r-a.swiperSlideOffset),c=u+this.slidesSizesGrid[s];(u>=0&&u<this.size-1||c>1&&c<=this.size||u<=0&&c>=this.size)&&(this.visibleSlides.push(a),this.visibleSlidesIndexes.push(s),i.eq(s).addClass(e.slideVisibleClass))}a.progress=n?-l:l}this.visibleSlides=(0,o.$)(this.visibleSlides)}},updateProgress:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this&&this.translate||0,e=this.params,i=this.maxTranslate()-this.minTranslate(),n=this.progress,r=this.isBeginning,o=this.isEnd,s=r,a=o;0===i?(n=0,r=!0,o=!0):(r=(n=(t-this.minTranslate())/i)<=0,o=n>=1),d.extend(this,{progress:n,isBeginning:r,isEnd:o}),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesProgress(t),r&&!s&&this.emit("reachBeginning toEdge"),o&&!a&&this.emit("reachEnd toEdge"),(s&&!r||a&&!o)&&this.emit("fromEdge"),this.emit("progress",n)},updateSlidesClasses:function(){var t=this.slides,e=this.params,i=this.$wrapperEl,n=this.activeIndex,r=this.realIndex,o=this.virtual&&e.virtual.enabled;t.removeClass(e.slideActiveClass+" "+e.slideNextClass+" "+e.slidePrevClass+" "+e.slideDuplicateActiveClass+" "+e.slideDuplicateNextClass+" "+e.slideDuplicatePrevClass);var s=void 0;(s=o?this.$wrapperEl.find("."+e.slideClass+'[data-swiper-slide-index="'+n+'"]'):t.eq(n)).addClass(e.slideActiveClass),e.loop&&(s.hasClass(e.slideDuplicateClass)?i.children("."+e.slideClass+":not(."+e.slideDuplicateClass+')[data-swiper-slide-index="'+r+'"]').addClass(e.slideDuplicateActiveClass):i.children("."+e.slideClass+"."+e.slideDuplicateClass+'[data-swiper-slide-index="'+r+'"]').addClass(e.slideDuplicateActiveClass));var a=s.nextAll("."+e.slideClass).eq(0).addClass(e.slideNextClass);e.loop&&0===a.length&&(a=t.eq(0)).addClass(e.slideNextClass);var l=s.prevAll("."+e.slideClass).eq(0).addClass(e.slidePrevClass);e.loop&&0===l.length&&(l=t.eq(-1)).addClass(e.slidePrevClass),e.loop&&(a.hasClass(e.slideDuplicateClass)?i.children("."+e.slideClass+":not(."+e.slideDuplicateClass+')[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(e.slideDuplicateNextClass):i.children("."+e.slideClass+"."+e.slideDuplicateClass+'[data-swiper-slide-index="'+a.attr("data-swiper-slide-index")+'"]').addClass(e.slideDuplicateNextClass),l.hasClass(e.slideDuplicateClass)?i.children("."+e.slideClass+":not(."+e.slideDuplicateClass+')[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(e.slideDuplicatePrevClass):i.children("."+e.slideClass+"."+e.slideDuplicateClass+'[data-swiper-slide-index="'+l.attr("data-swiper-slide-index")+'"]').addClass(e.slideDuplicatePrevClass))},updateActiveIndex:function(t){var e=this.rtlTranslate?this.translate:-this.translate,i=this.slidesGrid,n=this.snapGrid,r=this.params,o=this.activeIndex,s=this.realIndex,a=this.snapIndex,l=t,u=void 0;if(void 0===l){for(var c=0;c<i.length;c+=1)void 0!==i[c+1]?e>=i[c]&&e<i[c+1]-(i[c+1]-i[c])/2?l=c:e>=i[c]&&e<i[c+1]&&(l=c+1):e>=i[c]&&(l=c);r.normalizeSlideIndex&&(l<0||void 0===l)&&(l=0)}if((u=n.indexOf(e)>=0?n.indexOf(e):Math.floor(l/r.slidesPerGroup))>=n.length&&(u=n.length-1),l!==o){var h=parseInt(this.slides.eq(l).attr("data-swiper-slide-index")||l,10);d.extend(this,{snapIndex:u,realIndex:h,previousIndex:o,activeIndex:l}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==h&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else u!==a&&(this.snapIndex=u,this.emit("snapIndexChange"))},updateClickedSlide:function(t){var e=this.params,i=(0,o.$)(t.target).closest("."+e.slideClass)[0],n=!1;if(i)for(var r=0;r<this.slides.length;r+=1)this.slides[r]===i&&(n=!0);if(!i||!n)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=i,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt((0,o.$)(i).attr("data-swiper-slide-index"),10):this.clickedIndex=(0,o.$)(i).index(),e.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var m={getTranslate:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.isHorizontal()?"x":"y",e=this.params,i=this.rtlTranslate,n=this.translate,r=this.$wrapperEl;if(e.virtualTranslate)return i?-n:n;var o=d.getTranslate(r[0],t);return i&&(o=-o),o||0},setTranslate:function(t,e){var i=this.rtlTranslate,n=this.params,r=this.$wrapperEl,o=this.progress,s=0,a=0;this.isHorizontal()?s=i?-t:t:a=t,n.roundLengths&&(s=Math.floor(s),a=Math.floor(a)),n.virtualTranslate||(f.transforms3d?r.transform("translate3d("+s+"px, "+a+"px, 0px)"):r.transform("translate("+s+"px, "+a+"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?s:a;var l=this.maxTranslate()-this.minTranslate();(0===l?0:(t-this.minTranslate())/l)!==o&&this.updateProgress(t),this.emit("setTranslate",this.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var y={setTransition:function(t,e){this.$wrapperEl.transition(t),this.emit("setTransition",t,e)},transitionStart:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments[1],i=this.activeIndex,n=this.params,r=this.previousIndex;n.autoHeight&&this.updateAutoHeight();var o=e;if(o||(o=i>r?"next":i<r?"prev":"reset"),this.emit("transitionStart"),t&&i!==r){if("reset"===o)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===o?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=arguments[1],i=this.activeIndex,n=this.previousIndex;this.animating=!1,this.setTransition(0);var r=e;if(r||(r=i>n?"next":i<n?"prev":"reset"),this.emit("transitionEnd"),t&&i!==n){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}};var _={slideTo:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments[3],r=this,o=t;o<0&&(o=0);var s=r.params,a=r.snapGrid,l=r.slidesGrid,u=r.previousIndex,c=r.activeIndex,h=r.rtlTranslate;if(r.animating&&s.preventInteractionOnTransition)return!1;var d=Math.floor(o/s.slidesPerGroup);d>=a.length&&(d=a.length-1),(c||s.initialSlide||0)===(u||0)&&i&&r.emit("beforeSlideChangeStart");var p=-a[d];if(r.updateProgress(p),s.normalizeSlideIndex)for(var v=0;v<l.length;v+=1)-Math.floor(100*p)>=Math.floor(100*l[v])&&(o=v);if(r.initialized&&o!==c){if(!r.allowSlideNext&&p<r.translate&&p<r.minTranslate())return!1;if(!r.allowSlidePrev&&p>r.translate&&p>r.maxTranslate()&&(c||0)!==o)return!1}var g=void 0;return g=o>c?"next":o<c?"prev":"reset",h&&-p===r.translate||!h&&p===r.translate?(r.updateActiveIndex(o),s.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==s.effect&&r.setTranslate(p),"reset"!==g&&(r.transitionStart(i,g),r.transitionEnd(i,g)),!1):(0!==e&&f.transition?(r.setTransition(e),r.setTranslate(p),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,g),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(i,g))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(p),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,n),r.transitionStart(i,g),r.transitionEnd(i,g)),!0)},slideToLoop:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.params.speed,i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],n=arguments[3],r=t;return this.params.loop&&(r+=this.loopedSlides),this.slideTo(r,e,i,n)},slideNext:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this.params,r=this.animating;return n.loop?!r&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+n.slidesPerGroup,t,e,i)):this.slideTo(this.activeIndex+n.slidesPerGroup,t,e,i)},slidePrev:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this.params,r=this.animating,o=this.snapGrid,s=this.slidesGrid,a=this.rtlTranslate;if(n.loop){if(r)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function l(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var u=l(a?this.translate:-this.translate),c=o.map(function(t){return l(t)}),h=(s.map(function(t){return l(t)}),o[c.indexOf(u)],o[c.indexOf(u)-1]),d=void 0;return void 0!==h&&(d=s.indexOf(h))<0&&(d=this.activeIndex-1),this.slideTo(d,t,e,i)},slideReset:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2];return this.slideTo(this.activeIndex,t,e,i)},slideToClosest:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed,e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=arguments[2],n=this.activeIndex,r=Math.floor(n/this.params.slidesPerGroup);if(r<this.snapGrid.length-1){var o=this.rtlTranslate?this.translate:-this.translate,s=this.snapGrid[r];o-s>(this.snapGrid[r+1]-s)/2&&(n=this.params.slidesPerGroup)}return this.slideTo(n,t,e,i)},slideToClickedSlide:function(){var t=this,e=t.params,i=t.$wrapperEl,n="auto"===e.slidesPerView?t.slidesPerViewDynamic():e.slidesPerView,r=t.clickedIndex,s=void 0;if(e.loop){if(t.animating)return;s=parseInt((0,o.$)(t.clickedSlide).attr("data-swiper-slide-index"),10),e.centeredSlides?r<t.loopedSlides-n/2||r>t.slides.length-t.loopedSlides+n/2?(t.loopFix(),r=i.children("."+e.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),d.nextTick(function(){t.slideTo(r)})):t.slideTo(r):r>t.slides.length-n?(t.loopFix(),r=i.children("."+e.slideClass+'[data-swiper-slide-index="'+s+'"]:not(.'+e.slideDuplicateClass+")").eq(0).index(),d.nextTick(function(){t.slideTo(r)})):t.slideTo(r)}else t.slideTo(r)}};var b={loopCreate:function(){var t=this,e=t.params,i=t.$wrapperEl;i.children("."+e.slideClass+"."+e.slideDuplicateClass).remove();var n=i.children("."+e.slideClass);if(e.loopFillGroupWithBlank){var r=e.slidesPerGroup-n.length%e.slidesPerGroup;if(r!==e.slidesPerGroup){for(var a=0;a<r;a+=1){var l=(0,o.$)(s.document.createElement("div")).addClass(e.slideClass+" "+e.slideBlankClass);i.append(l)}n=i.children("."+e.slideClass)}}"auto"!==e.slidesPerView||e.loopedSlides||(e.loopedSlides=n.length),t.loopedSlides=parseInt(e.loopedSlides||e.slidesPerView,10),t.loopedSlides+=e.loopAdditionalSlides,t.loopedSlides>n.length&&(t.loopedSlides=n.length);var u=[],c=[];n.each(function(e,i){var r=(0,o.$)(i);e<t.loopedSlides&&c.push(i),e<n.length&&e>=n.length-t.loopedSlides&&u.push(i),r.attr("data-swiper-slide-index",e)});for(var h=0;h<c.length;h+=1)i.append((0,o.$)(c[h].cloneNode(!0)).addClass(e.slideDuplicateClass));for(var d=u.length-1;d>=0;d-=1)i.prepend((0,o.$)(u[d].cloneNode(!0)).addClass(e.slideDuplicateClass))},loopFix:function(){var t=this.params,e=this.activeIndex,i=this.slides,n=this.loopedSlides,r=this.allowSlidePrev,o=this.allowSlideNext,s=this.snapGrid,a=this.rtlTranslate,l=void 0;this.allowSlidePrev=!0,this.allowSlideNext=!0;var u=-s[e]-this.getTranslate();e<n?(l=i.length-3*n+e,l+=n,this.slideTo(l,0,!1,!0)&&0!==u&&this.setTranslate((a?-this.translate:this.translate)-u)):("auto"===t.slidesPerView&&e>=2*n||e>=i.length-n)&&(l=-i.length+e+n,l+=n,this.slideTo(l,0,!1,!0)&&0!==u&&this.setTranslate((a?-this.translate:this.translate)-u));this.allowSlidePrev=r,this.allowSlideNext=o},loopDestroy:function(){var t=this.$wrapperEl,e=this.params,i=this.slides;t.children("."+e.slideClass+"."+e.slideDuplicateClass+",."+e.slideClass+"."+e.slideBlankClass).remove(),i.removeAttr("data-swiper-slide-index")}};var x={setGrabCursor:function(t){if(!(f.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){f.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var w={appendSlide:function(t){var e=this.$wrapperEl,i=this.params;if(i.loop&&this.loopDestroy(),"object"===(void 0===t?"undefined":r(t))&&"length"in t)for(var n=0;n<t.length;n+=1)t[n]&&e.append(t[n]);else e.append(t);i.loop&&this.loopCreate(),i.observer&&f.observer||this.update()},prependSlide:function(t){var e=this.params,i=this.$wrapperEl,n=this.activeIndex;e.loop&&this.loopDestroy();var o=n+1;if("object"===(void 0===t?"undefined":r(t))&&"length"in t){for(var s=0;s<t.length;s+=1)t[s]&&i.prepend(t[s]);o=n+t.length}else i.prepend(t);e.loop&&this.loopCreate(),e.observer&&f.observer||this.update(),this.slideTo(o,0,!1)},addSlide:function(t,e){var i=this.$wrapperEl,n=this.params,o=this.activeIndex;n.loop&&(o-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+n.slideClass));var s=this.slides.length;if(t<=0)this.prependSlide(e);else if(t>=s)this.appendSlide(e);else{for(var a=o>t?o+1:o,l=[],u=s-1;u>=t;u-=1){var c=this.slides.eq(u);c.remove(),l.unshift(c)}if("object"===(void 0===e?"undefined":r(e))&&"length"in e){for(var h=0;h<e.length;h+=1)e[h]&&i.append(e[h]);a=o>t?o+e.length:o}else i.append(e);for(var d=0;d<l.length;d+=1)i.append(l[d]);n.loop&&this.loopCreate(),n.observer&&f.observer||this.update(),n.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)}},removeSlide:function(t){var e=this.params,i=this.$wrapperEl,n=this.activeIndex;e.loop&&(n-=this.loopedSlides,this.loopDestroy(),this.slides=i.children("."+e.slideClass));var o=n,s=void 0;if("object"===(void 0===t?"undefined":r(t))&&"length"in t){for(var a=0;a<t.length;a+=1)s=t[a],this.slides[s]&&this.slides.eq(s).remove(),s<o&&(o-=1);o=Math.max(o,0)}else s=t,this.slides[s]&&this.slides.eq(s).remove(),s<o&&(o-=1),o=Math.max(o,0);e.loop&&this.loopCreate(),e.observer&&f.observer||this.update(),e.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},S=function(){var t=s.window.navigator.userAgent,e={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:s.window.cordova||s.window.phonegap,phonegap:s.window.cordova||s.window.phonegap},i=t.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),n=t.match(/(Android);?[\s\/]+([\d.]+)?/),r=t.match(/(iPad).*OS\s([\d_]+)/),o=t.match(/(iPod)(.*OS\s([\d_]+))?/),a=!r&&t.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(i&&(e.os="windows",e.osVersion=i[2],e.windows=!0),n&&!i&&(e.os="android",e.osVersion=n[2],e.android=!0,e.androidChrome=t.toLowerCase().indexOf("chrome")>=0),(r||a||o)&&(e.os="ios",e.ios=!0),a&&!o&&(e.osVersion=a[2].replace(/_/g,"."),e.iphone=!0),r&&(e.osVersion=r[2].replace(/_/g,"."),e.ipad=!0),o&&(e.osVersion=o[3]?o[3].replace(/_/g,"."):null,e.iphone=!0),e.ios&&e.osVersion&&t.indexOf("Version/")>=0&&"10"===e.osVersion.split(".")[0]&&(e.osVersion=t.toLowerCase().split("version/")[1].split(" ")[0]),e.desktop=!(e.os||e.android||e.webView),e.webView=(a||r||o)&&t.match(/.*AppleWebKit(?!.*Safari)/i),e.os&&"ios"===e.os){var l=e.osVersion.split("."),u=s.document.querySelector('meta[name="viewport"]');e.minimalUi=!e.webView&&(o||a)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&u&&u.getAttribute("content").indexOf("minimal-ui")>=0}return e.pixelRatio=s.window.devicePixelRatio||1,e}();function T(){var t=this.params,e=this.el;if(!e||0!==e.offsetWidth){t.breakpoints&&this.setBreakpoint();var i=this.allowSlideNext,n=this.allowSlidePrev,r=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),t.freeMode){var o=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(o),this.updateActiveIndex(),this.updateSlidesClasses(),t.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=n,this.allowSlideNext=i,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}var E={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},C={update:g,translate:m,transition:y,slide:_,loop:b,grabCursor:x,manipulation:w,events:{attachEvents:function(){var t=this.params,e=this.touchEvents,i=this.el,n=this.wrapperEl;this.onTouchStart=function(t){var e=this.touchEventsData,i=this.params,n=this.touches;if(!this.animating||!i.preventInteractionOnTransition){var r=t;if(r.originalEvent&&(r=r.originalEvent),e.isTouchEvent="touchstart"===r.type,(e.isTouchEvent||!("which"in r)||3!==r.which)&&!(!e.isTouchEvent&&"button"in r&&r.button>0||e.isTouched&&e.isMoved))if(i.noSwiping&&(0,o.$)(r.target).closest(i.noSwipingSelector?i.noSwipingSelector:"."+i.noSwipingClass)[0])this.allowClick=!0;else if(!i.swipeHandler||(0,o.$)(r).closest(i.swipeHandler)[0]){n.currentX="touchstart"===r.type?r.targetTouches[0].pageX:r.pageX,n.currentY="touchstart"===r.type?r.targetTouches[0].pageY:r.pageY;var a=n.currentX,l=n.currentY,u=i.edgeSwipeDetection||i.iOSEdgeSwipeDetection,c=i.edgeSwipeThreshold||i.iOSEdgeSwipeThreshold;if(!u||!(a<=c||a>=s.window.screen.width-c)){if(d.extend(e,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),n.startX=a,n.startY=l,e.touchStartTime=d.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,i.threshold>0&&(e.allowThresholdMove=!1),"touchstart"!==r.type){var h=!0;(0,o.$)(r.target).is(e.formElements)&&(h=!1),s.document.activeElement&&(0,o.$)(s.document.activeElement).is(e.formElements)&&s.document.activeElement!==r.target&&s.document.activeElement.blur();var f=h&&this.allowTouchMove&&i.touchStartPreventDefault;(i.touchStartForcePreventDefault||f)&&r.preventDefault()}this.emit("touchStart",r)}}}}.bind(this),this.onTouchMove=function(t){var e=this.touchEventsData,i=this.params,n=this.touches,r=this.rtlTranslate,a=t;if(a.originalEvent&&(a=a.originalEvent),e.isTouched){if(!e.isTouchEvent||"mousemove"!==a.type){var l="touchmove"===a.type?a.targetTouches[0].pageX:a.pageX,u="touchmove"===a.type?a.targetTouches[0].pageY:a.pageY;if(a.preventedByNestedSwiper)return n.startX=l,void(n.startY=u);if(!this.allowTouchMove)return this.allowClick=!1,void(e.isTouched&&(d.extend(n,{startX:l,startY:u,currentX:l,currentY:u}),e.touchStartTime=d.now()));if(e.isTouchEvent&&i.touchReleaseOnEdges&&!i.loop)if(this.isVertical()){if(u<n.startY&&this.translate<=this.maxTranslate()||u>n.startY&&this.translate>=this.minTranslate())return e.isTouched=!1,void(e.isMoved=!1)}else if(l<n.startX&&this.translate<=this.maxTranslate()||l>n.startX&&this.translate>=this.minTranslate())return;if(e.isTouchEvent&&s.document.activeElement&&a.target===s.document.activeElement&&(0,o.$)(a.target).is(e.formElements))return e.isMoved=!0,void(this.allowClick=!1);if(e.allowTouchCallbacks&&this.emit("touchMove",a),!(a.targetTouches&&a.targetTouches.length>1)){n.currentX=l,n.currentY=u;var c=n.currentX-n.startX,h=n.currentY-n.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(c,2)+Math.pow(h,2))<this.params.threshold)){if(void 0===e.isScrolling){var f=void 0;this.isHorizontal()&&n.currentY===n.startY||this.isVertical()&&n.currentX===n.startX?e.isScrolling=!1:c*c+h*h>=25&&(f=180*Math.atan2(Math.abs(h),Math.abs(c))/Math.PI,e.isScrolling=this.isHorizontal()?f>i.touchAngle:90-f>i.touchAngle)}if(e.isScrolling&&this.emit("touchMoveOpposite",a),void 0===e.startMoving&&(n.currentX===n.startX&&n.currentY===n.startY||(e.startMoving=!0)),e.isScrolling)e.isTouched=!1;else if(e.startMoving){this.allowClick=!1,a.preventDefault(),i.touchMoveStopPropagation&&!i.nested&&a.stopPropagation(),e.isMoved||(i.loop&&this.loopFix(),e.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),e.allowMomentumBounce=!1,!i.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",a)),this.emit("sliderMove",a),e.isMoved=!0;var p=this.isHorizontal()?c:h;n.diff=p,p*=i.touchRatio,r&&(p=-p),this.swipeDirection=p>0?"prev":"next",e.currentTranslate=p+e.startTranslate;var v=!0,g=i.resistanceRatio;if(i.touchReleaseOnEdges&&(g=0),p>0&&e.currentTranslate>this.minTranslate()?(v=!1,i.resistance&&(e.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+e.startTranslate+p,g))):p<0&&e.currentTranslate<this.maxTranslate()&&(v=!1,i.resistance&&(e.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-e.startTranslate-p,g))),v&&(a.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&e.currentTranslate<e.startTranslate&&(e.currentTranslate=e.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&e.currentTranslate>e.startTranslate&&(e.currentTranslate=e.startTranslate),i.threshold>0){if(!(Math.abs(p)>i.threshold||e.allowThresholdMove))return void(e.currentTranslate=e.startTranslate);if(!e.allowThresholdMove)return e.allowThresholdMove=!0,n.startX=n.currentX,n.startY=n.currentY,e.currentTranslate=e.startTranslate,void(n.diff=this.isHorizontal()?n.currentX-n.startX:n.currentY-n.startY)}i.followFinger&&((i.freeMode||i.watchSlidesProgress||i.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),i.freeMode&&(0===e.velocities.length&&e.velocities.push({position:n[this.isHorizontal()?"startX":"startY"],time:e.touchStartTime}),e.velocities.push({position:n[this.isHorizontal()?"currentX":"currentY"],time:d.now()})),this.updateProgress(e.currentTranslate),this.setTranslate(e.currentTranslate))}}}}}else e.startMoving&&e.isScrolling&&this.emit("touchMoveOpposite",a)}.bind(this),this.onTouchEnd=function(t){var e=this,i=e.touchEventsData,n=e.params,r=e.touches,o=e.rtlTranslate,s=e.$wrapperEl,a=e.slidesGrid,l=e.snapGrid,u=t;if(u.originalEvent&&(u=u.originalEvent),i.allowTouchCallbacks&&e.emit("touchEnd",u),i.allowTouchCallbacks=!1,!i.isTouched)return i.isMoved&&n.grabCursor&&e.setGrabCursor(!1),i.isMoved=!1,void(i.startMoving=!1);n.grabCursor&&i.isMoved&&i.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var c=d.now(),h=c-i.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(u),e.emit("tap",u),h<300&&c-i.lastClickTime>300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),i.clickTimeout=d.nextTick(function(){e&&!e.destroyed&&e.emit("click",u)},300)),h<300&&c-i.lastClickTime<300&&(i.clickTimeout&&clearTimeout(i.clickTimeout),e.emit("doubleTap",u))),i.lastClickTime=d.now(),d.nextTick(function(){e.destroyed||(e.allowClick=!0)}),!i.isTouched||!i.isMoved||!e.swipeDirection||0===r.diff||i.currentTranslate===i.startTranslate)return i.isTouched=!1,i.isMoved=!1,void(i.startMoving=!1);i.isTouched=!1,i.isMoved=!1,i.startMoving=!1;var f=void 0;if(f=n.followFinger?o?e.translate:-e.translate:-i.currentTranslate,n.freeMode){if(f<-e.minTranslate())return void e.slideTo(e.activeIndex);if(f>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(n.freeModeMomentum){if(i.velocities.length>1){var p=i.velocities.pop(),v=i.velocities.pop(),g=p.position-v.position,m=p.time-v.time;e.velocity=g/m,e.velocity/=2,Math.abs(e.velocity)<n.freeModeMinimumVelocity&&(e.velocity=0),(m>150||d.now()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=n.freeModeMomentumVelocityRatio,i.velocities.length=0;var y=1e3*n.freeModeMomentumRatio,_=e.velocity*y,b=e.translate+_;o&&(b=-b);var x=!1,w=void 0,S=20*Math.abs(e.velocity)*n.freeModeMomentumBounceRatio,T=void 0;if(b<e.maxTranslate())n.freeModeMomentumBounce?(b+e.maxTranslate()<-S&&(b=e.maxTranslate()-S),w=e.maxTranslate(),x=!0,i.allowMomentumBounce=!0):b=e.maxTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(b>e.minTranslate())n.freeModeMomentumBounce?(b-e.minTranslate()>S&&(b=e.minTranslate()+S),w=e.minTranslate(),x=!0,i.allowMomentumBounce=!0):b=e.minTranslate(),n.loop&&n.centeredSlides&&(T=!0);else if(n.freeModeSticky){for(var E=void 0,C=0;C<l.length;C+=1)if(l[C]>-b){E=C;break}b=-(b=Math.abs(l[E]-b)<Math.abs(l[E-1]-b)||"next"===e.swipeDirection?l[E]:l[E-1])}if(T&&e.once("transitionEnd",function(){e.loopFix()}),0!==e.velocity)y=o?Math.abs((-b-e.translate)/e.velocity):Math.abs((b-e.translate)/e.velocity);else if(n.freeModeSticky)return void e.slideToClosest();n.freeModeMomentumBounce&&x?(e.updateProgress(w),e.setTransition(y),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating=!0,s.transitionEnd(function(){e&&!e.destroyed&&i.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(n.speed),e.setTranslate(w),s.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(b),e.setTransition(y),e.setTranslate(b),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,s.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(b),e.updateActiveIndex(),e.updateSlidesClasses()}else if(n.freeModeSticky)return void e.slideToClosest();(!n.freeModeMomentum||h>=n.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var O=0,M=e.slidesSizesGrid[0],P=0;P<a.length;P+=n.slidesPerGroup)void 0!==a[P+n.slidesPerGroup]?f>=a[P]&&f<a[P+n.slidesPerGroup]&&(O=P,M=a[P+n.slidesPerGroup]-a[P]):f>=a[P]&&(O=P,M=a[a.length-1]-a[a.length-2]);var k=(f-a[O])/M;if(h>n.longSwipesMs){if(!n.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(k>=n.longSwipesRatio?e.slideTo(O+n.slidesPerGroup):e.slideTo(O)),"prev"===e.swipeDirection&&(k>1-n.longSwipesRatio?e.slideTo(O+n.slidesPerGroup):e.slideTo(O))}else{if(!n.shortSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(O+n.slidesPerGroup),"prev"===e.swipeDirection&&e.slideTo(O)}}}.bind(this),this.onClick=function(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(this);var r="container"===t.touchEventsTarget?i:n,a=!!t.nested;if(f.touch||!f.pointerEvents&&!f.prefixedPointerEvents){if(f.touch){var l=!("touchstart"!==e.start||!f.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.addEventListener(e.start,this.onTouchStart,l),r.addEventListener(e.move,this.onTouchMove,f.passiveListener?{passive:!1,capture:a}:a),r.addEventListener(e.end,this.onTouchEnd,l)}(t.simulateTouch&&!S.ios&&!S.android||t.simulateTouch&&!f.touch&&S.ios)&&(r.addEventListener("mousedown",this.onTouchStart,!1),s.document.addEventListener("mousemove",this.onTouchMove,a),s.document.addEventListener("mouseup",this.onTouchEnd,!1))}else r.addEventListener(e.start,this.onTouchStart,!1),s.document.addEventListener(e.move,this.onTouchMove,a),s.document.addEventListener(e.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.addEventListener("click",this.onClick,!0),this.on(S.ios||S.android?"resize orientationchange observerUpdate":"resize observerUpdate",T,!0)},detachEvents:function(){var t=this.params,e=this.touchEvents,i=this.el,n=this.wrapperEl,r="container"===t.touchEventsTarget?i:n,o=!!t.nested;if(f.touch||!f.pointerEvents&&!f.prefixedPointerEvents){if(f.touch){var a=!("onTouchStart"!==e.start||!f.passiveListener||!t.passiveListeners)&&{passive:!0,capture:!1};r.removeEventListener(e.start,this.onTouchStart,a),r.removeEventListener(e.move,this.onTouchMove,o),r.removeEventListener(e.end,this.onTouchEnd,a)}(t.simulateTouch&&!S.ios&&!S.android||t.simulateTouch&&!f.touch&&S.ios)&&(r.removeEventListener("mousedown",this.onTouchStart,!1),s.document.removeEventListener("mousemove",this.onTouchMove,o),s.document.removeEventListener("mouseup",this.onTouchEnd,!1))}else r.removeEventListener(e.start,this.onTouchStart,!1),s.document.removeEventListener(e.move,this.onTouchMove,o),s.document.removeEventListener(e.end,this.onTouchEnd,!1);(t.preventClicks||t.preventClicksPropagation)&&r.removeEventListener("click",this.onClick,!0),this.off(S.ios||S.android?"resize orientationchange observerUpdate":"resize observerUpdate",T)}},breakpoints:{setBreakpoint:function(){var t=this.activeIndex,e=this.initialized,i=this.loopedSlides,n=void 0===i?0:i,r=this.params,o=r.breakpoints;if(o&&(!o||0!==Object.keys(o).length)){var s=this.getBreakpoint(o);if(s&&this.currentBreakpoint!==s){var a=s in o?o[s]:void 0;a&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(t){var e=a[t];void 0!==e&&(a[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});var l=a||this.originalParams,u=l.direction&&l.direction!==r.direction,c=r.loop&&(l.slidesPerView!==r.slidesPerView||u);u&&e&&this.changeDirection(),d.extend(this.params,l),d.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=s,c&&e&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(t-n+this.loopedSlides,0,!1)),this.emit("breakpoint",l)}}},getBreakpoint:function(t){if(t){var e=!1,i=[];Object.keys(t).forEach(function(t){i.push(t)}),i.sort(function(t,e){return parseInt(t,10)-parseInt(e,10)});for(var n=0;n<i.length;n+=1){var r=i[n];this.params.breakpointsInverse?r<=s.window.innerWidth&&(e=r):r>=s.window.innerWidth&&!e&&(e=r)}return e||"max"}}},checkOverflow:{checkOverflow:function(){var t=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var t=this.classNames,e=this.params,i=this.rtl,n=this.$el,r=[];r.push("initialized"),r.push(e.direction),e.freeMode&&r.push("free-mode"),f.flexbox||r.push("no-flexbox"),e.autoHeight&&r.push("autoheight"),i&&r.push("rtl"),e.slidesPerColumn>1&&r.push("multirow"),S.android&&r.push("android"),S.ios&&r.push("ios"),(p.isIE||p.isEdge)&&(f.pointerEvents||f.prefixedPointerEvents)&&r.push("wp8-"+e.direction),r.forEach(function(i){t.push(e.containerModifierClass+i)}),n.addClass(t.join(" "))},removeClasses:function(){var t=this.$el,e=this.classNames;t.removeClass(e.join(" "))}},images:{loadImage:function(t,e,i,n,r,o){var a=void 0;function l(){o&&o()}t.complete&&r?l():e?((a=new s.window.Image).onload=l,a.onerror=l,n&&(a.sizes=n),i&&(a.srcset=i),e&&(a.src=e)):l()},preloadImages:function(){var t=this;function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var i=0;i<t.imagesToLoad.length;i+=1){var n=t.imagesToLoad[i];t.loadImage(n,n.currentSrc||n.getAttribute("src"),n.srcset||n.getAttribute("srcset"),n.sizes||n.getAttribute("sizes"),!0,e)}}}},O={},M=function(t){function e(){l(this,e);for(var t=void 0,i=void 0,n=arguments.length,s=Array(n),u=0;u<n;u++)s[u]=arguments[u];1===s.length&&s[0].constructor&&s[0].constructor===Object?i=s[0]:(t=s[0],i=s[1]),i||(i={}),i=d.extend({},i),t&&!i.el&&(i.el=t);var c=a(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,i));Object.keys(C).forEach(function(t){Object.keys(C[t]).forEach(function(i){e.prototype[i]||(e.prototype[i]=C[t][i])})});var h=c;void 0===h.modules&&(h.modules={}),Object.keys(h.modules).forEach(function(t){var e=h.modules[t];if(e.params){var n=Object.keys(e.params)[0],o=e.params[n];if("object"!==(void 0===o?"undefined":r(o))||null===o)return;if(!(n in i&&"enabled"in o))return;!0===i[n]&&(i[n]={enabled:!0}),"object"!==r(i[n])||"enabled"in i[n]||(i[n].enabled=!0),i[n]||(i[n]={enabled:!1})}});var p=d.extend({},E);h.useModulesParams(p),h.params=d.extend({},p,O,i),h.originalParams=d.extend({},h.params),h.passedParams=d.extend({},i),h.$=o.$;var v=(0,o.$)(h.params.el);if(!(t=v[0]))return void 0,a(c,void 0);if(v.length>1){var g=[];return v.each(function(t,n){var r=d.extend({},i,{el:n});g.push(new e(r))}),a(c,g)}t.swiper=h,v.data("swiper",h);var m,y,_=v.children("."+h.params.wrapperClass);return d.extend(h,{$el:v,el:t,$wrapperEl:_,wrapperEl:_[0],classNames:[],slides:(0,o.$)(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===h.params.direction},isVertical:function(){return"vertical"===h.params.direction},rtl:"rtl"===t.dir.toLowerCase()||"rtl"===v.css("direction"),rtlTranslate:"horizontal"===h.params.direction&&("rtl"===t.dir.toLowerCase()||"rtl"===v.css("direction")),wrongRTL:"-webkit-box"===_.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:h.params.allowSlideNext,allowSlidePrev:h.params.allowSlidePrev,touchEvents:(m=["touchstart","touchmove","touchend"],y=["mousedown","mousemove","mouseup"],f.pointerEvents?y=["pointerdown","pointermove","pointerup"]:f.prefixedPointerEvents&&(y=["MSPointerDown","MSPointerMove","MSPointerUp"]),h.touchEventsTouch={start:m[0],move:m[1],end:m[2]},h.touchEventsDesktop={start:y[0],move:y[1],end:y[2]},f.touch||!h.params.simulateTouch?h.touchEventsTouch:h.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:d.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:h.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),h.useModules(),h.params.init&&h.init(),a(c,h)}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,v),n(e,[{key:"slidesPerViewDynamic",value:function(){var t=this.params,e=this.slides,i=this.slidesGrid,n=this.size,r=this.activeIndex,o=1;if(t.centeredSlides){for(var s=e[r].swiperSlideSize,a=void 0,l=r+1;l<e.length;l+=1)e[l]&&!a&&(o+=1,(s+=e[l].swiperSlideSize)>n&&(a=!0));for(var u=r-1;u>=0;u-=1)e[u]&&!a&&(o+=1,(s+=e[u].swiperSlideSize)>n&&(a=!0))}else for(var c=r+1;c<e.length;c+=1)i[c]-i[r]<n&&(o+=1);return o}},{key:"update",value:function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,i=t.params;i.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses();t.params.freeMode?(n(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||n(),i.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function n(){var e=t.rtlTranslate?-1*t.translate:t.translate,i=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(i),t.updateActiveIndex(),t.updateSlidesClasses()}}},{key:"changeDirection",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this.params.direction;return t||(t="horizontal"===i?"vertical":"horizontal"),t===i||"horizontal"!==t&&"vertical"!==t?this:(this.$el.removeClass(""+this.params.containerModifierClass+i+" wp8-"+i).addClass(""+this.params.containerModifierClass+t),(p.isIE||p.isEdge)&&(f.pointerEvents||f.prefixedPointerEvents)&&this.$el.addClass(this.params.containerModifierClass+"wp8-"+t),this.params.direction=t,this.slides.each(function(e,i){"vertical"===t?i.style.width="":i.style.height=""}),this.emit("changeDirection"),e&&this.update(),this)}},{key:"init",value:function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))}},{key:"destroy",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params,r=i.$el,o=i.$wrapperEl,s=i.slides;return void 0===i.params||i.destroyed?null:(i.emit("beforeDestroy"),i.initialized=!1,i.detachEvents(),n.loop&&i.loopDestroy(),e&&(i.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),s&&s.length&&s.removeClass([n.slideVisibleClass,n.slideActiveClass,n.slideNextClass,n.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),i.emit("destroy"),Object.keys(i.eventsListeners).forEach(function(t){i.off(t)}),!1!==t&&(i.$el[0].swiper=null,i.$el.data("swiper",null),d.deleteProps(i)),i.destroyed=!0,null)}}],[{key:"extendDefaults",value:function(t){d.extend(O,t)}},{key:"extendedDefaults",get:function(){return O}},{key:"defaults",get:function(){return E}},{key:"Class",get:function(){return v}},{key:"$",get:function(){return o.$}}]),e}(),P={name:"device",proto:{device:S},static:{device:S}},k={name:"support",proto:{support:f},static:{support:f}},I={name:"browser",proto:{browser:p},static:{browser:p}},L={name:"resize",create:function(){var t=this;d.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){s.window.addEventListener("resize",this.resize.resizeHandler),s.window.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){s.window.removeEventListener("resize",this.resize.resizeHandler),s.window.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},A={func:s.window.MutationObserver||s.window.WebkitMutationObserver,attach:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this,n=new(0,A.func)(function(t){if(1!==t.length){var e=function(){i.emit("observerUpdate",t[0])};s.window.requestAnimationFrame?s.window.requestAnimationFrame(e):s.window.setTimeout(e,0)}else i.emit("observerUpdate",t[0])});n.observe(t,{attributes:void 0===e.attributes||e.attributes,childList:void 0===e.childList||e.childList,characterData:void 0===e.characterData||e.characterData}),i.observer.observers.push(n)},init:function(){if(f.observer&&this.params.observer){if(this.params.observeParents)for(var t=this.$el.parents(),e=0;e<t.length;e+=1)this.observer.attach(t[e]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(t){t.disconnect()}),this.observer.observers=[]}},R={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){d.extend(this,{observer:{init:A.init.bind(this),attach:A.attach.bind(this),destroy:A.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},F={update:function(t){var e=this,i=e.params,n=i.slidesPerView,r=i.slidesPerGroup,o=i.centeredSlides,s=e.params.virtual,a=s.addSlidesBefore,l=s.addSlidesAfter,u=e.virtual,c=u.from,h=u.to,f=u.slides,p=u.slidesGrid,v=u.renderSlide,g=u.offset;e.updateActiveIndex();var m=e.activeIndex||0,y=void 0;y=e.rtlTranslate?"right":e.isHorizontal()?"left":"top";var _=void 0,b=void 0;o?(_=Math.floor(n/2)+r+a,b=Math.floor(n/2)+r+l):(_=n+(r-1)+a,b=r+l);var x=Math.max((m||0)-b,0),w=Math.min((m||0)+_,f.length-1),S=(e.slidesGrid[x]||0)-(e.slidesGrid[0]||0);function T(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(d.extend(e.virtual,{from:x,to:w,offset:S,slidesGrid:e.slidesGrid}),c===x&&h===w&&!t)return e.slidesGrid!==p&&S!==g&&e.slides.css(y,S+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:S,from:x,to:w,slides:function(){for(var t=[],e=x;e<=w;e+=1)t.push(f[e]);return t}()}),void T();var E=[],C=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var O=c;O<=h;O+=1)(O<x||O>w)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+O+'"]').remove();for(var M=0;M<f.length;M+=1)M>=x&&M<=w&&(void 0===h||t?C.push(M):(M>h&&C.push(M),M<c&&E.push(M)));C.forEach(function(t){e.$wrapperEl.append(v(f[t],t))}),E.sort(function(t,e){return e-t}).forEach(function(t){e.$wrapperEl.prepend(v(f[t],t))}),e.$wrapperEl.children(".swiper-slide").css(y,S+"px"),T()},renderSlide:function(t,e){var i=this.params.virtual;if(i.cache&&this.virtual.cache[e])return this.virtual.cache[e];var n=i.renderSlide?(0,o.$)(i.renderSlide.call(this,t,e)):(0,o.$)('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return n.attr("data-swiper-slide-index")||n.attr("data-swiper-slide-index",e),i.cache&&(this.virtual.cache[e]=n),n},appendSlide:function(t){if("object"===(void 0===t?"undefined":r(t))&&"length"in t)for(var e=0;e<t.length;e+=1)t[e]&&this.virtual.slides.push(t[e]);else this.virtual.slides.push(t);this.virtual.update(!0)},prependSlide:function(t){var e=this.activeIndex,i=e+1,n=1;if(Array.isArray(t)){for(var r=0;r<t.length;r+=1)t[r]&&this.virtual.slides.unshift(t[r]);i=e+t.length,n=t.length}else this.virtual.slides.unshift(t);if(this.params.virtual.cache){var o=this.virtual.cache,s={};Object.keys(o).forEach(function(t){s[parseInt(t,10)+n]=o[t]}),this.virtual.cache=s}this.virtual.update(!0),this.slideTo(i,0)},removeSlide:function(t){if(void 0!==t&&null!==t){var e=this.activeIndex;if(Array.isArray(t))for(var i=t.length-1;i>=0;i-=1)this.virtual.slides.splice(t[i],1),this.params.virtual.cache&&delete this.virtual.cache[t[i]],t[i]<e&&(e-=1),e=Math.max(e,0);else this.virtual.slides.splice(t,1),this.params.virtual.cache&&delete this.virtual.cache[t],t<e&&(e-=1),e=Math.max(e,0);this.virtual.update(!0),this.slideTo(e,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},D={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){d.extend(this,{virtual:{update:F.update.bind(this),appendSlide:F.appendSlide.bind(this),prependSlide:F.prependSlide.bind(this),removeSlide:F.removeSlide.bind(this),removeAllSlides:F.removeAllSlides.bind(this),renderSlide:F.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};d.extend(this.params,t),d.extend(this.originalParams,t),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},j={handle:function(t){var e=this.rtlTranslate,i=t;i.originalEvent&&(i=i.originalEvent);var n=i.keyCode||i.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===n||this.isVertical()&&40===n||34===n))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===n||this.isVertical()&&38===n||33===n))return!1;if(!(i.shiftKey||i.altKey||i.ctrlKey||i.metaKey||s.document.activeElement&&s.document.activeElement.nodeName&&("input"===s.document.activeElement.nodeName.toLowerCase()||"textarea"===s.document.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===n||34===n||37===n||39===n||38===n||40===n)){var r=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var o=s.window.innerWidth,a=s.window.innerHeight,l=this.$el.offset();e&&(l.left-=this.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+this.width,l.top],[l.left,l.top+this.height],[l.left+this.width,l.top+this.height]],c=0;c<u.length;c+=1){var h=u[c];h[0]>=0&&h[0]<=o&&h[1]>=0&&h[1]<=a&&(r=!0)}if(!r)return}this.isHorizontal()?(33!==n&&34!==n&&37!==n&&39!==n||(i.preventDefault?i.preventDefault():i.returnValue=!1),(34!==n&&39!==n||e)&&(33!==n&&37!==n||!e)||this.slideNext(),(33!==n&&37!==n||e)&&(34!==n&&39!==n||!e)||this.slidePrev()):(33!==n&&34!==n&&38!==n&&40!==n||(i.preventDefault?i.preventDefault():i.returnValue=!1),34!==n&&40!==n||this.slideNext(),33!==n&&38!==n||this.slidePrev()),this.emit("keyPress",n)}},enable:function(){this.keyboard.enabled||((0,o.$)(s.document).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&((0,o.$)(s.document).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},N={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){d.extend(this,{keyboard:{enabled:!1,enable:j.enable.bind(this),disable:j.disable.bind(this),handle:j.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var $={lastScrollTime:d.now(),event:s.window.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var t="onwheel"in s.document;if(!t){var e=s.document.createElement("div");e.setAttribute("onwheel","return;"),t="function"==typeof e.onwheel}return!t&&s.document.implementation&&s.document.implementation.hasFeature&&!0!==s.document.implementation.hasFeature("","")&&(t=s.document.implementation.hasFeature("Events.wheel","3.0")),t}()?"wheel":"mousewheel",normalize:function(t){var e=0,i=0,n=0,r=0;return"detail"in t&&(i=t.detail),"wheelDelta"in t&&(i=-t.wheelDelta/120),"wheelDeltaY"in t&&(i=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=i,i=0),n=10*e,r=10*i,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(n=t.deltaX),(n||r)&&t.deltaMode&&(1===t.deltaMode?(n*=40,r*=40):(n*=800,r*=800)),n&&!e&&(e=n<1?-1:1),r&&!i&&(i=r<1?-1:1),{spinX:e,spinY:i,pixelX:n,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var e=t,i=this,n=i.params.mousewheel;if(!i.mouseEntered&&!n.releaseOnEdges)return!0;e.originalEvent&&(e=e.originalEvent);var r=0,o=i.rtlTranslate?-1:1,a=$.normalize(e);if(n.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(a.pixelX)>Math.abs(a.pixelY)))return!0;r=a.pixelX*o}else{if(!(Math.abs(a.pixelY)>Math.abs(a.pixelX)))return!0;r=a.pixelY}else r=Math.abs(a.pixelX)>Math.abs(a.pixelY)?-a.pixelX*o:-a.pixelY;if(0===r)return!0;if(n.invert&&(r=-r),i.params.freeMode){i.params.loop&&i.loopFix();var l=i.getTranslate()+r*n.sensitivity,u=i.isBeginning,c=i.isEnd;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),i.setTransition(0),i.setTranslate(l),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!u&&i.isBeginning||!c&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=d.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",e),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),l===i.minTranslate()||l===i.maxTranslate())return!0}else{if(d.now()-i.mousewheel.lastScrollTime>60)if(r<0)if(i.isEnd&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",e);else if(i.isBeginning&&!i.params.loop||i.animating){if(n.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",e);i.mousewheel.lastScrollTime=(new s.window.Date).getTime()}return e.preventDefault?e.preventDefault():e.returnValue=!1,!1},enable:function(){if(!$.event)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=(0,o.$)(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on($.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!$.event)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=(0,o.$)(this.params.mousewheel.eventsTarged)),t.off($.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},G={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,i=e.$nextEl,n=e.$prevEl;n&&n.length>0&&(this.isBeginning?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),i&&i.length>0&&(this.isEnd?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t=this.params.navigation;if(t.nextEl||t.prevEl){var e=void 0,i=void 0;t.nextEl&&(e=(0,o.$)(t.nextEl),this.params.uniqueNavElements&&"string"==typeof t.nextEl&&e.length>1&&1===this.$el.find(t.nextEl).length&&(e=this.$el.find(t.nextEl))),t.prevEl&&(i=(0,o.$)(t.prevEl),this.params.uniqueNavElements&&"string"==typeof t.prevEl&&i.length>1&&1===this.$el.find(t.prevEl).length&&(i=this.$el.find(t.prevEl))),e&&e.length>0&&e.on("click",this.navigation.onNextClick),i&&i.length>0&&i.on("click",this.navigation.onPrevClick),d.extend(this.navigation,{$nextEl:e,nextEl:e&&e[0],$prevEl:i,prevEl:i&&i[0]})}},destroy:function(){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),i&&i.length&&(i.off("click",this.navigation.onPrevClick),i.removeClass(this.params.navigation.disabledClass))}},z={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var i=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,r=void 0,s=this.params.loop?Math.ceil((i-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((r=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>i-1-2*this.loopedSlides&&(r-=i-2*this.loopedSlides),r>s-1&&(r-=s),r<0&&"bullets"!==this.params.paginationType&&(r=s+r)):r=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var a=this.pagination.bullets,l=void 0,u=void 0,c=void 0;if(e.dynamicBullets&&(this.pagination.bulletSize=a.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),n.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(e.dynamicMainBullets+4)+"px"),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=r-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),l=r-this.pagination.dynamicBulletIndex,c=((u=l+(Math.min(a.length,e.dynamicMainBullets)-1))+l)/2),a.removeClass(e.bulletActiveClass+" "+e.bulletActiveClass+"-next "+e.bulletActiveClass+"-next-next "+e.bulletActiveClass+"-prev "+e.bulletActiveClass+"-prev-prev "+e.bulletActiveClass+"-main"),n.length>1)a.each(function(t,i){var n=(0,o.$)(i),s=n.index();s===r&&n.addClass(e.bulletActiveClass),e.dynamicBullets&&(s>=l&&s<=u&&n.addClass(e.bulletActiveClass+"-main"),s===l&&n.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),s===u&&n.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next"))});else if(a.eq(r).addClass(e.bulletActiveClass),e.dynamicBullets){for(var h=a.eq(l),d=a.eq(u),f=l;f<=u;f+=1)a.eq(f).addClass(e.bulletActiveClass+"-main");h.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),d.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}if(e.dynamicBullets){var p=Math.min(a.length,e.dynamicMainBullets+4),v=(this.pagination.bulletSize*p-this.pagination.bulletSize)/2-c*this.pagination.bulletSize,g=t?"right":"left";a.css(this.isHorizontal()?g:"top",v+"px")}}if("fraction"===e.type&&(n.find("."+e.currentClass).text(e.formatFractionCurrent(r+1)),n.find("."+e.totalClass).text(e.formatFractionTotal(s))),"progressbar"===e.type){var m=void 0;m=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var y=(r+1)/s,_=1,b=1;"horizontal"===m?_=y:b=y,n.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+_+") scaleY("+b+")").transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(n.html(e.renderCustom(this,r+1,s)),this.emit("paginationRender",this,n[0])):this.emit("paginationUpdate",this,n[0]),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,i=this.pagination.$el,n="";if("bullets"===t.type){for(var r=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,o=0;o<r;o+=1)t.renderBullet?n+=t.renderBullet.call(this,o,t.bulletClass):n+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";i.html(n),this.pagination.bullets=i.find("."+t.bulletClass)}"fraction"===t.type&&(n=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',i.html(n)),"progressbar"===t.type&&(n=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',i.html(n)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var i=(0,o.$)(e.el);0!==i.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&i.length>1&&1===t.$el.find(e.el).length&&(i=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&i.addClass(e.clickableClass),i.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(i.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&i.addClass(e.progressbarOppositeClass),e.clickable&&i.on("click","."+e.bulletClass,function(e){e.preventDefault();var i=(0,o.$)(this).index()*t.params.slidesPerGroup;t.params.loop&&(i+=t.loopedSlides),t.slideTo(i)}),d.extend(t.pagination,{$el:i,el:i[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}}},B={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,i=this.progress,n=t.dragSize,r=t.trackSize,o=t.$dragEl,s=t.$el,a=this.params.scrollbar,l=n,u=(r-n)*i;e?(u=-u)>0?(l=n-u,u=0):-u+n>r&&(l=r+u):u<0?(l=n+u,u=0):u+n>r&&(l=r-u),this.isHorizontal()?(f.transforms3d?o.transform("translate3d("+u+"px, 0, 0)"):o.transform("translateX("+u+"px)"),o[0].style.width=l+"px"):(f.transforms3d?o.transform("translate3d(0px, "+u+"px, 0)"):o.transform("translateY("+u+"px)"),o[0].style.height=l+"px"),a.hide&&(clearTimeout(this.scrollbar.timeout),s[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){s[0].style.opacity=0,s.transition(400)},1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,i=t.$el;e[0].style.width="",e[0].style.height="";var n=this.isHorizontal()?i[0].offsetWidth:i[0].offsetHeight,r=this.size/this.virtualSize,o=r*(n/this.size),s=void 0;s="auto"===this.params.scrollbar.dragSize?n*r:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width=s+"px":e[0].style.height=s+"px",i[0].style.display=r>=1?"none":"",this.params.scrollbar.hide&&(i[0].style.opacity=0),d.extend(t,{trackSize:n,divider:r,moveDivider:o,dragSize:s}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition:function(t){var e=this.scrollbar,i=this.rtlTranslate,n=e.$el,r=e.dragSize,o=e.trackSize,s=e.dragStartPos,a=void 0;a=(e.getPointerPosition(t)-n.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:r/2))/(o-r),a=Math.max(Math.min(a,1),0),i&&(a=1-a);var l=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*a;this.updateProgress(l),this.setTranslate(l),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,i=this.scrollbar,n=this.$wrapperEl,r=i.$el,o=i.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===o[0]||t.target===o?i.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),n.transition(100),o.transition(100),i.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),r.transition(0),e.hide&&r.css("opacity",1),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,i=this.$wrapperEl,n=e.$el,r=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),i.transition(0),n.transition(0),r.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,i=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=d.nextTick(function(){i.css("opacity",0),i.transition(400)},1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.touchEventsTouch,i=this.touchEventsDesktop,n=this.params,r=t.$el[0],o=!(!f.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},a=!(!f.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};f.touch?(r.addEventListener(e.start,this.scrollbar.onDragStart,o),r.addEventListener(e.move,this.scrollbar.onDragMove,o),r.addEventListener(e.end,this.scrollbar.onDragEnd,a)):(r.addEventListener(i.start,this.scrollbar.onDragStart,o),s.document.addEventListener(i.move,this.scrollbar.onDragMove,o),s.document.addEventListener(i.end,this.scrollbar.onDragEnd,a))}},disableDraggable:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.touchEventsTouch,i=this.touchEventsDesktop,n=this.params,r=t.$el[0],o=!(!f.passiveListener||!n.passiveListeners)&&{passive:!1,capture:!1},a=!(!f.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};f.touch?(r.removeEventListener(e.start,this.scrollbar.onDragStart,o),r.removeEventListener(e.move,this.scrollbar.onDragMove,o),r.removeEventListener(e.end,this.scrollbar.onDragEnd,a)):(r.removeEventListener(i.start,this.scrollbar.onDragStart,o),s.document.removeEventListener(i.move,this.scrollbar.onDragMove,o),s.document.removeEventListener(i.end,this.scrollbar.onDragEnd,a))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,i=this.params.scrollbar,n=(0,o.$)(i.el);this.params.uniqueNavElements&&"string"==typeof i.el&&n.length>1&&1===e.find(i.el).length&&(n=e.find(i.el));var r=n.find("."+this.params.scrollbar.dragClass);0===r.length&&(r=(0,o.$)('<div class="'+this.params.scrollbar.dragClass+'"></div>'),n.append(r)),d.extend(t,{$el:n,el:n[0],$dragEl:r,dragEl:r[0]}),i.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},Y={setTransform:function(t,e){var i=this.rtl,n=(0,o.$)(t),r=i?-1:1,s=n.attr("data-swiper-parallax")||"0",a=n.attr("data-swiper-parallax-x"),l=n.attr("data-swiper-parallax-y"),u=n.attr("data-swiper-parallax-scale"),c=n.attr("data-swiper-parallax-opacity");if(a||l?(a=a||"0",l=l||"0"):this.isHorizontal()?(a=s,l="0"):(l=s,a="0"),a=a.indexOf("%")>=0?parseInt(a,10)*e*r+"%":a*e*r+"px",l=l.indexOf("%")>=0?parseInt(l,10)*e+"%":l*e+"px",void 0!==c&&null!==c){var h=c-(c-1)*(1-Math.abs(e));n[0].style.opacity=h}if(void 0===u||null===u)n.transform("translate3d("+a+", "+l+", 0px)");else{var d=u-(u-1)*(1-Math.abs(e));n.transform("translate3d("+a+", "+l+", 0px) scale("+d+")")}},setTranslate:function(){var t=this,e=t.$el,i=t.slides,n=t.progress,r=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,n)}),i.each(function(e,i){var s=i.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(s+=Math.ceil(e/2)-n*(r.length-1)),s=Math.min(Math.max(s,-1),1),(0,o.$)(i).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){t.parallax.setTransform(i,s)})})},setTransition:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.params.speed;this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,i){var n=(0,o.$)(i),r=parseInt(n.attr("data-swiper-parallax-duration"),10)||t;0===t&&(r=0),n.transition(r)})}},V={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,i=t.targetTouches[0].pageY,n=t.targetTouches[1].pageX,r=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-i,2))},onGestureStart:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(i.fakeGestureTouched=!1,i.fakeGestureMoved=!1,!f.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;i.fakeGestureTouched=!0,n.scaleStart=V.getDistanceBetweenTouches(t)}n.$slideEl&&n.$slideEl.length||(n.$slideEl=(0,o.$)(t.target).closest(".swiper-slide"),0===n.$slideEl.length&&(n.$slideEl=this.slides.eq(this.activeIndex)),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+e.containerClass),n.maxRatio=n.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==n.$imageWrapEl.length)?(n.$imageEl.transition(0),this.zoom.isScaling=!0):n.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!f.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;i.fakeGestureMoved=!0,n.scaleMove=V.getDistanceBetweenTouches(t)}n.$imageEl&&0!==n.$imageEl.length&&(f.gestures?i.scale=t.scale*i.currentScale:i.scale=n.scaleMove/n.scaleStart*i.currentScale,i.scale>n.maxRatio&&(i.scale=n.maxRatio-1+Math.pow(i.scale-n.maxRatio+1,.5)),i.scale<e.minRatio&&(i.scale=e.minRatio+1-Math.pow(e.minRatio-i.scale+1,.5)),n.$imageEl.transform("translate3d(0,0,0) scale("+i.scale+")"))},onGestureEnd:function(t){var e=this.params.zoom,i=this.zoom,n=i.gesture;if(!f.gestures){if(!i.fakeGestureTouched||!i.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!S.android)return;i.fakeGestureTouched=!1,i.fakeGestureMoved=!1}n.$imageEl&&0!==n.$imageEl.length&&(i.scale=Math.max(Math.min(i.scale,n.maxRatio),e.minRatio),n.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+i.scale+")"),i.currentScale=i.scale,i.isScaling=!1,1===i.scale&&(n.$slideEl=void 0))},onTouchStart:function(t){var e=this.zoom,i=e.gesture,n=e.image;i.$imageEl&&0!==i.$imageEl.length&&(n.isTouched||(S.android&&t.preventDefault(),n.isTouched=!0,n.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this.zoom,i=e.gesture,n=e.image,r=e.velocity;if(i.$imageEl&&0!==i.$imageEl.length&&(this.allowClick=!1,n.isTouched&&i.$slideEl)){n.isMoved||(n.width=i.$imageEl[0].offsetWidth,n.height=i.$imageEl[0].offsetHeight,n.startX=d.getTranslate(i.$imageWrapEl[0],"x")||0,n.startY=d.getTranslate(i.$imageWrapEl[0],"y")||0,i.slideWidth=i.$slideEl[0].offsetWidth,i.slideHeight=i.$slideEl[0].offsetHeight,i.$imageWrapEl.transition(0),this.rtl&&(n.startX=-n.startX,n.startY=-n.startY));var o=n.width*e.scale,s=n.height*e.scale;if(!(o<i.slideWidth&&s<i.slideHeight)){if(n.minX=Math.min(i.slideWidth/2-o/2,0),n.maxX=-n.minX,n.minY=Math.min(i.slideHeight/2-s/2,0),n.maxY=-n.minY,n.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,n.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!n.isMoved&&!e.isScaling){if(this.isHorizontal()&&(Math.floor(n.minX)===Math.floor(n.startX)&&n.touchesCurrent.x<n.touchesStart.x||Math.floor(n.maxX)===Math.floor(n.startX)&&n.touchesCurrent.x>n.touchesStart.x))return void(n.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(n.minY)===Math.floor(n.startY)&&n.touchesCurrent.y<n.touchesStart.y||Math.floor(n.maxY)===Math.floor(n.startY)&&n.touchesCurrent.y>n.touchesStart.y))return void(n.isTouched=!1)}t.preventDefault(),t.stopPropagation(),n.isMoved=!0,n.currentX=n.touchesCurrent.x-n.touchesStart.x+n.startX,n.currentY=n.touchesCurrent.y-n.touchesStart.y+n.startY,n.currentX<n.minX&&(n.currentX=n.minX+1-Math.pow(n.minX-n.currentX+1,.8)),n.currentX>n.maxX&&(n.currentX=n.maxX-1+Math.pow(n.currentX-n.maxX+1,.8)),n.currentY<n.minY&&(n.currentY=n.minY+1-Math.pow(n.minY-n.currentY+1,.8)),n.currentY>n.maxY&&(n.currentY=n.maxY-1+Math.pow(n.currentY-n.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=n.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=n.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(n.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(n.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(n.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(n.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=n.touchesCurrent.x,r.prevPositionY=n.touchesCurrent.y,r.prevTime=Date.now(),i.$imageWrapEl.transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,i=t.image,n=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!i.isTouched||!i.isMoved)return i.isTouched=!1,void(i.isMoved=!1);i.isTouched=!1,i.isMoved=!1;var r=300,o=300,s=n.x*r,a=i.currentX+s,l=n.y*o,u=i.currentY+l;0!==n.x&&(r=Math.abs((a-i.currentX)/n.x)),0!==n.y&&(o=Math.abs((u-i.currentY)/n.y));var c=Math.max(r,o);i.currentX=a,i.currentY=u;var h=i.width*t.scale,d=i.height*t.scale;i.minX=Math.min(e.slideWidth/2-h/2,0),i.maxX=-i.minX,i.minY=Math.min(e.slideHeight/2-d/2,0),i.maxY=-i.minY,i.currentX=Math.max(Math.min(i.currentX,i.maxX),i.minX),i.currentY=Math.max(Math.min(i.currentY,i.maxY),i.minY),e.$imageWrapEl.transition(c).transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e=this.zoom,i=this.params.zoom,n=e.gesture,r=e.image;if(n.$slideEl||(n.$slideEl=this.clickedSlide?(0,o.$)(this.clickedSlide):this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+i.containerClass)),n.$imageEl&&0!==n.$imageEl.length){n.$slideEl.addClass(""+i.zoomedSlideClass);var s=void 0,a=void 0,l=void 0,u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,v=void 0,g=void 0,m=void 0,y=void 0,_=void 0,b=void 0,x=void 0;void 0===r.touchesStart.x&&t?(s="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,a="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(s=r.touchesStart.x,a=r.touchesStart.y),e.scale=n.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,e.currentScale=n.$imageWrapEl.attr("data-swiper-zoom")||i.maxRatio,t?(b=n.$slideEl[0].offsetWidth,x=n.$slideEl[0].offsetHeight,l=n.$slideEl.offset().left+b/2-s,u=n.$slideEl.offset().top+x/2-a,d=n.$imageEl[0].offsetWidth,f=n.$imageEl[0].offsetHeight,p=d*e.scale,v=f*e.scale,y=-(g=Math.min(b/2-p/2,0)),_=-(m=Math.min(x/2-v/2,0)),c=l*e.scale,h=u*e.scale,c<g&&(c=g),c>y&&(c=y),h<m&&(h=m),h>_&&(h=_)):(c=0,h=0),n.$imageWrapEl.transition(300).transform("translate3d("+c+"px, "+h+"px,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+e.scale+")")}},out:function(){var t=this.zoom,e=this.params.zoom,i=t.gesture;i.$slideEl||(i.$slideEl=this.clickedSlide?(0,o.$)(this.clickedSlide):this.slides.eq(this.activeIndex),i.$imageEl=i.$slideEl.find("img, svg, canvas"),i.$imageWrapEl=i.$imageEl.parent("."+e.containerClass)),i.$imageEl&&0!==i.$imageEl.length&&(t.scale=1,t.currentScale=1,i.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),i.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),i.$slideEl.removeClass(""+e.zoomedSlideClass),i.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!f.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};f.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!f.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};f.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove)}}},W={loadInSlide:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this,n=i.params.lazy;if(void 0!==t&&0!==i.slides.length){var r=i.virtual&&i.params.virtual.enabled?i.$wrapperEl.children("."+i.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):i.slides.eq(t),s=r.find("."+n.elementClass+":not(."+n.loadedClass+"):not(."+n.loadingClass+")");!r.hasClass(n.elementClass)||r.hasClass(n.loadedClass)||r.hasClass(n.loadingClass)||(s=s.add(r[0])),0!==s.length&&s.each(function(t,s){var a=(0,o.$)(s);a.addClass(n.loadingClass);var l=a.attr("data-background"),u=a.attr("data-src"),c=a.attr("data-srcset"),h=a.attr("data-sizes");i.loadImage(a[0],u||l,c,h,!1,function(){if(void 0!==i&&null!==i&&i&&(!i||i.params)&&!i.destroyed){if(l?(a.css("background-image",'url("'+l+'")'),a.removeAttr("data-background")):(c&&(a.attr("srcset",c),a.removeAttr("data-srcset")),h&&(a.attr("sizes",h),a.removeAttr("data-sizes")),u&&(a.attr("src",u),a.removeAttr("data-src"))),a.addClass(n.loadedClass).removeClass(n.loadingClass),r.find("."+n.preloaderClass).remove(),i.params.loop&&e){var t=r.attr("data-swiper-slide-index");if(r.hasClass(i.params.slideDuplicateClass)){var o=i.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+i.params.slideDuplicateClass+")");i.lazy.loadInSlide(o.index(),!1)}else{var s=i.$wrapperEl.children("."+i.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');i.lazy.loadInSlide(s.index(),!1)}}i.emit("lazyImageReady",r[0],a[0])}}),i.emit("lazyImageLoad",r[0],a[0])})}},load:function(){var t=this,e=t.$wrapperEl,i=t.params,n=t.slides,r=t.activeIndex,s=t.virtual&&i.virtual.enabled,a=i.lazy,l=i.slidesPerView;function u(t){if(s){if(e.children("."+i.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(n[t])return!0;return!1}function c(t){return s?(0,o.$)(t).attr("data-swiper-slide-index"):(0,o.$)(t).index()}if("auto"===l&&(l=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+i.slideVisibleClass).each(function(e,i){var n=s?(0,o.$)(i).attr("data-swiper-slide-index"):(0,o.$)(i).index();t.lazy.loadInSlide(n)});else if(l>1)for(var h=r;h<r+l;h+=1)u(h)&&t.lazy.loadInSlide(h);else t.lazy.loadInSlide(r);if(a.loadPrevNext)if(l>1||a.loadPrevNextAmount&&a.loadPrevNextAmount>1){for(var d=a.loadPrevNextAmount,f=l,p=Math.min(r+f+Math.max(d,f),n.length),v=Math.max(r-Math.max(f,d),0),g=r+l;g<p;g+=1)u(g)&&t.lazy.loadInSlide(g);for(var m=v;m<r;m+=1)u(m)&&t.lazy.loadInSlide(m)}else{var y=e.children("."+i.slideNextClass);y.length>0&&t.lazy.loadInSlide(c(y));var _=e.children("."+i.slidePrevClass);_.length>0&&t.lazy.loadInSlide(c(_))}}},H={LinearSpline:function(t,e){var i,n,r,o=(i=void 0,n=void 0,r=void 0,function(t,e){for(n=-1,i=t.length;i-n>1;)t[r=i+n>>1]<=e?n=r:i=r;return i});this.x=t,this.y=e,this.lastIndex=t.length-1;var s=void 0,a=void 0;return this.interpolate=function(t){return t?(a=o(this.x,t),s=a-1,(t-this.x[s])*(this.y[a]-this.y[s])/(this.x[a]-this.x[s])+this.y[s]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new H.LinearSpline(this.slidesGrid,t.slidesGrid):new H.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var i=this,n=i.controller.control,r=void 0,o=void 0;function s(t){var e=i.rtlTranslate?-i.translate:i.translate;"slide"===i.params.controller.by&&(i.controller.getInterpolateFunction(t),o=-i.controller.spline.interpolate(-e)),o&&"container"!==i.params.controller.by||(r=(t.maxTranslate()-t.minTranslate())/(i.maxTranslate()-i.minTranslate()),o=(e-i.minTranslate())*r+t.minTranslate()),i.params.controller.inverse&&(o=t.maxTranslate()-o),t.updateProgress(o),t.setTranslate(o,i),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(n))for(var a=0;a<n.length;a+=1)n[a]!==e&&n[a]instanceof M&&s(n[a]);else n instanceof M&&e!==n&&s(n)},setTransition:function(t,e){var i=this,n=i.controller.control,r=void 0;function o(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&d.nextTick(function(){e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(function(){n&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(n))for(r=0;r<n.length;r+=1)n[r]!==e&&n[r]instanceof M&&o(n[r]);else n instanceof M&&e!==n&&o(n)}},U={makeElFocusable:function(t){return t.attr("tabIndex","0"),t},addElRole:function(t,e){return t.attr("role",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){var e=this.params.a11y;if(13===t.keyCode){var i=(0,o.$)(t.target);this.navigation&&this.navigation.$nextEl&&i.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(e.lastSlideMessage):this.a11y.notify(e.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&i.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(e.firstSlideMessage):this.a11y.notify(e.prevSlideMessage)),this.pagination&&i.is("."+this.params.pagination.bulletClass)&&i[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){if(!this.params.loop){var t=this.navigation,e=t.$nextEl,i=t.$prevEl;i&&i.length>0&&(this.isBeginning?this.a11y.disableEl(i):this.a11y.enableEl(i)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(i,n){var r=(0,o.$)(n);t.a11y.makeElFocusable(r),t.a11y.addElRole(r,"button"),t.a11y.addElLabel(r,e.paginationBulletMessage.replace(/{{index}}/,r.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var t=this.params.a11y,e=void 0,i=void 0;this.navigation&&this.navigation.$nextEl&&(e=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(i=this.navigation.$prevEl),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,t.nextSlideMessage),e.on("keydown",this.a11y.onEnterKey)),i&&(this.a11y.makeElFocusable(i),this.a11y.addElRole(i,"button"),this.a11y.addElLabel(i,t.prevSlideMessage),i.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove();var t=void 0,e=void 0;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},X={init:function(){if(this.params.history){if(!s.window.history||!s.window.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=X.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||s.window.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||s.window.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=X.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=s.window.location.pathname.slice(1).split("/").filter(function(t){return""!==t}),e=t.length;return{key:t[e-2],value:t[e-1]}},setHistory:function(t,e){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(e),n=X.slugify(i.attr("data-history"));s.window.location.pathname.includes(t)||(n=t+"/"+n);var r=s.window.history.state;r&&r.value===n||(this.params.history.replaceState?s.window.history.replaceState({value:n},null,n):s.window.history.pushState({value:n},null,n))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,i){if(e)for(var n=0,r=this.slides.length;n<r;n+=1){var o=this.slides.eq(n);if(X.slugify(o.attr("data-history"))===e&&!o.hasClass(this.params.slideDuplicateClass)){var s=o.index();this.slideTo(s,t,i)}}else this.slideTo(0,t,i)}},q={onHashCange:function(){var t=s.document.location.hash.replace("#","");if(t!==this.slides.eq(this.activeIndex).attr("data-hash")){var e=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+t+'"]').index();if(void 0===e)return;this.slideTo(e)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&s.window.history&&s.window.history.replaceState)s.window.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var t=this.slides.eq(this.activeIndex),e=t.attr("data-hash")||t.attr("data-history");s.document.location.hash=e||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var t=s.document.location.hash.replace("#","");if(t)for(var e=0,i=this.slides.length;e<i;e+=1){var n=this.slides.eq(e);if((n.attr("data-hash")||n.attr("data-history"))===t&&!n.hasClass(this.params.slideDuplicateClass)){var r=n.index();this.slideTo(r,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&(0,o.$)(s.window).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&(0,o.$)(s.window).off("hashchange",this.hashNavigation.onHashCange)}},K={run:function(){var t=this,e=t.slides.eq(t.activeIndex),i=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(i=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=d.nextTick(function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},i)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(t){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==t&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},Z={setTranslate:function(){for(var t=this.slides,e=0;e<t.length;e+=1){var i=this.slides.eq(e),n=-i[0].swiperSlideOffset;this.params.virtualTranslate||(n-=this.translate);var r=0;this.isHorizontal()||(r=n,n=0);var o=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(i[0].progress),0):1+Math.min(Math.max(i[0].progress,-1),0);i.css({opacity:o}).transform("translate3d("+n+"px, "+r+"px, 0px)")}},setTransition:function(t){var e=this,i=e.slides,n=e.$wrapperEl;if(i.transition(t),e.params.virtualTranslate&&0!==t){var r=!1;i.transitionEnd(function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)n.trigger(t[i])}})}}},J={setTranslate:function(){var t=this.$el,e=this.$wrapperEl,i=this.slides,n=this.width,r=this.height,s=this.rtlTranslate,a=this.size,l=this.params.cubeEffect,u=this.isHorizontal(),c=this.virtual&&this.params.virtual.enabled,h=0,d=void 0;l.shadow&&(u?(0===(d=e.find(".swiper-cube-shadow")).length&&(d=(0,o.$)('<div class="swiper-cube-shadow"></div>'),e.append(d)),d.css({height:n+"px"})):0===(d=t.find(".swiper-cube-shadow")).length&&(d=(0,o.$)('<div class="swiper-cube-shadow"></div>'),t.append(d)));for(var f=0;f<i.length;f+=1){var v=i.eq(f),g=f;c&&(g=parseInt(v.attr("data-swiper-slide-index"),10));var m=90*g,y=Math.floor(m/360);s&&(m=-m,y=Math.floor(-m/360));var _=Math.max(Math.min(v[0].progress,1),-1),b=0,x=0,w=0;g%4==0?(b=4*-y*a,w=0):(g-1)%4==0?(b=0,w=4*-y*a):(g-2)%4==0?(b=a+4*y*a,w=a):(g-3)%4==0&&(b=-a,w=3*a+4*a*y),s&&(b=-b),u||(x=b,b=0);var S="rotateX("+(u?0:-m)+"deg) rotateY("+(u?m:0)+"deg) translate3d("+b+"px, "+x+"px, "+w+"px)";if(_<=1&&_>-1&&(h=90*g+90*_,s&&(h=90*-g-90*_)),v.transform(S),l.slideShadows){var T=u?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=u?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===T.length&&(T=(0,o.$)('<div class="swiper-slide-shadow-'+(u?"left":"top")+'"></div>'),v.append(T)),0===E.length&&(E=(0,o.$)('<div class="swiper-slide-shadow-'+(u?"right":"bottom")+'"></div>'),v.append(E)),T.length&&(T[0].style.opacity=Math.max(-_,0)),E.length&&(E[0].style.opacity=Math.max(_,0))}}if(e.css({"-webkit-transform-origin":"50% 50% -"+a/2+"px","-moz-transform-origin":"50% 50% -"+a/2+"px","-ms-transform-origin":"50% 50% -"+a/2+"px","transform-origin":"50% 50% -"+a/2+"px"}),l.shadow)if(u)d.transform("translate3d(0px, "+(n/2+l.shadowOffset)+"px, "+-n/2+"px) rotateX(90deg) rotateZ(0deg) scale("+l.shadowScale+")");else{var C=Math.abs(h)-90*Math.floor(Math.abs(h)/90),O=1.5-(Math.sin(2*C*Math.PI/360)/2+Math.cos(2*C*Math.PI/360)/2),M=l.shadowScale,P=l.shadowScale/O,k=l.shadowOffset;d.transform("scale3d("+M+", 1, "+P+") translate3d(0px, "+(r/2+k)+"px, "+-r/2/P+"px) rotateX(-90deg)")}var I=p.isSafari||p.isUiWebView?-a/2:0;e.transform("translate3d(0px,0,"+I+"px) rotateX("+(this.isHorizontal()?0:h)+"deg) rotateY("+(this.isHorizontal()?-h:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},Q={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,i=0;i<t.length;i+=1){var n=t.eq(i),r=n[0].progress;this.params.flipEffect.limitRotation&&(r=Math.max(Math.min(n[0].progress,1),-1));var s=-180*r,a=0,l=-n[0].swiperSlideOffset,u=0;if(this.isHorizontal()?e&&(s=-s):(u=l,l=0,a=-s,s=0),n[0].style.zIndex=-Math.abs(Math.round(r))+t.length,this.params.flipEffect.slideShadows){var c=this.isHorizontal()?n.find(".swiper-slide-shadow-left"):n.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?n.find(".swiper-slide-shadow-right"):n.find(".swiper-slide-shadow-bottom");0===c.length&&(c=(0,o.$)('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),n.append(c)),0===h.length&&(h=(0,o.$)('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),n.append(h)),c.length&&(c[0].style.opacity=Math.max(-r,0)),h.length&&(h[0].style.opacity=Math.max(r,0))}n.transform("translate3d("+l+"px, "+u+"px, 0px) rotateX("+a+"deg) rotateY("+s+"deg)")}},setTransition:function(t){var e=this,i=e.slides,n=e.activeIndex,r=e.$wrapperEl;if(i.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var o=!1;i.eq(n).transitionEnd(function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],i=0;i<t.length;i+=1)r.trigger(t[i])}})}}},tt={setTranslate:function(){for(var t=this.width,e=this.height,i=this.slides,n=this.$wrapperEl,r=this.slidesSizesGrid,s=this.params.coverflowEffect,a=this.isHorizontal(),l=this.translate,u=a?t/2-l:e/2-l,c=a?s.rotate:-s.rotate,h=s.depth,d=0,p=i.length;d<p;d+=1){var v=i.eq(d),g=r[d],m=(u-v[0].swiperSlideOffset-g/2)/g*s.modifier,y=a?c*m:0,_=a?0:c*m,b=-h*Math.abs(m),x=a?0:s.stretch*m,w=a?s.stretch*m:0;Math.abs(w)<.001&&(w=0),Math.abs(x)<.001&&(x=0),Math.abs(b)<.001&&(b=0),Math.abs(y)<.001&&(y=0),Math.abs(_)<.001&&(_=0);var S="translate3d("+w+"px,"+x+"px,"+b+"px)  rotateX("+_+"deg) rotateY("+y+"deg)";if(v.transform(S),v[0].style.zIndex=1-Math.abs(Math.round(m)),s.slideShadows){var T=a?v.find(".swiper-slide-shadow-left"):v.find(".swiper-slide-shadow-top"),E=a?v.find(".swiper-slide-shadow-right"):v.find(".swiper-slide-shadow-bottom");0===T.length&&(T=(0,o.$)('<div class="swiper-slide-shadow-'+(a?"left":"top")+'"></div>'),v.append(T)),0===E.length&&(E=(0,o.$)('<div class="swiper-slide-shadow-'+(a?"right":"bottom")+'"></div>'),v.append(E)),T.length&&(T[0].style.opacity=m>0?m:0),E.length&&(E[0].style.opacity=-m>0?-m:0)}}(f.pointerEvents||f.prefixedPointerEvents)&&(n[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},et={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,d.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),d.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):d.isObject(t.swiper)&&(this.thumbs.swiper=new e(d.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,i=t.clickedSlide;if(!(i&&(0,o.$)(i).hasClass(this.params.thumbs.slideThumbActiveClass)||void 0===e||null===e)){var n=void 0;if(n=t.params.loop?parseInt((0,o.$)(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var r=this.activeIndex;this.slides.eq(r).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,r=this.activeIndex);var s=this.slides.eq(r).prevAll('[data-swiper-slide-index="'+n+'"]').eq(0).index(),a=this.slides.eq(r).nextAll('[data-swiper-slide-index="'+n+'"]').eq(0).index();n=void 0===s?a:void 0===a?s:a-r<r-s?a:s}this.slideTo(n)}}},update:function(t){var e=this.thumbs.swiper;if(e){var i="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():e.params.slidesPerView;if(this.realIndex!==e.realIndex){var n=e.activeIndex,r=void 0;if(e.params.loop){e.slides.eq(n).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,n=e.activeIndex);var o=e.slides.eq(n).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),s=e.slides.eq(n).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();r=void 0===o?s:void 0===s?o:s-n==n-o?n:s-n<n-o?s:o}else r=this.realIndex;e.visibleSlidesIndexes&&e.visibleSlidesIndexes.indexOf(r)<0&&(e.params.centeredSlides?r=r>n?r-Math.floor(i/2)+1:r+Math.floor(i/2)-1:r>n&&(r=r-i+1),e.slideTo(r,t?0:void 0))}var a=1,l=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(a=this.params.slidesPerView),e.slides.removeClass(l),e.params.loop||e.params.virtual)for(var u=0;u<a;u+=1)e.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+u)+'"]').addClass(l);else for(var c=0;c<a;c+=1)e.slides.eq(this.realIndex+c).addClass(l)}}},it=[P,k,I,L,R,D,N,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){d.extend(this,{mousewheel:{enabled:!1,enable:$.enable.bind(this),disable:$.disable.bind(this),handle:$.handle.bind(this),handleMouseEnter:$.handleMouseEnter.bind(this),handleMouseLeave:$.handleMouseLeave.bind(this),lastScrollTime:d.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){d.extend(this,{navigation:{init:G.init.bind(this),update:G.update.bind(this),destroy:G.destroy.bind(this),onNextClick:G.onNextClick.bind(this),onPrevClick:G.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var e=this.navigation,i=e.$nextEl,n=e.$prevEl;if(this.params.navigation.hideOnClick&&!(0,o.$)(t.target).is(n)&&!(0,o.$)(t.target).is(i)){var r=void 0;i?r=i.hasClass(this.params.navigation.hiddenClass):n&&(r=n.hasClass(this.params.navigation.hiddenClass)),!0===r?this.emit("navigationShow",this):this.emit("navigationHide",this),i&&i.toggleClass(this.params.navigation.hiddenClass),n&&n.toggleClass(this.params.navigation.hiddenClass)}}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){d.extend(this,{pagination:{init:z.init.bind(this),render:z.render.bind(this),update:z.update.bind(this),destroy:z.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!(0,o.$)(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){d.extend(this,{scrollbar:{init:B.init.bind(this),destroy:B.destroy.bind(this),updateSize:B.updateSize.bind(this),setTranslate:B.setTranslate.bind(this),setTransition:B.setTransition.bind(this),enableDraggable:B.enableDraggable.bind(this),disableDraggable:B.disableDraggable.bind(this),setDragPosition:B.setDragPosition.bind(this),getPointerPosition:B.getPointerPosition.bind(this),onDragStart:B.onDragStart.bind(this),onDragMove:B.onDragMove.bind(this),onDragEnd:B.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){d.extend(this,{parallax:{setTransform:Y.setTransform.bind(this),setTranslate:Y.setTranslate.bind(this),setTransition:Y.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(i){e[i]=V[i].bind(t)}),d.extend(t,{zoom:e});var i=1;Object.defineProperty(t.zoom,"scale",{get:function(){return i},set:function(e){if(i!==e){var n=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,n,r)}i=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){d.extend(this,{lazy:{initialImageLoaded:!1,load:W.load.bind(this),loadInSlide:W.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){d.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:H.getInterpolateFunction.bind(this),setTranslate:H.setTranslate.bind(this),setTransition:H.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;d.extend(t,{a11y:{liveRegion:(0,o.$)('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys(U).forEach(function(e){t.a11y[e]=U[e].bind(t)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){d.extend(this,{history:{init:X.init.bind(this),setHistory:X.setHistory.bind(this),setHistoryPopState:X.setHistoryPopState.bind(this),scrollToSlide:X.scrollToSlide.bind(this),destroy:X.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){d.extend(this,{hashNavigation:{initialized:!1,init:q.init.bind(this),destroy:q.destroy.bind(this),setHash:q.setHash.bind(this),onHashCange:q.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;d.extend(t,{autoplay:{running:!1,paused:!1,run:K.run.bind(t),start:K.start.bind(t),stop:K.stop.bind(t),pause:K.pause.bind(t),onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){d.extend(this,{fadeEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,t),d.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){d.extend(this,{cubeEffect:{setTranslate:J.setTranslate.bind(this),setTransition:J.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};d.extend(this.params,t),d.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){d.extend(this,{flipEffect:{setTranslate:Q.setTranslate.bind(this),setTransition:Q.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};d.extend(this.params,t),d.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){d.extend(this,{coverflowEffect:{setTranslate:tt.setTranslate.bind(this),setTransition:tt.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){d.extend(this,{thumbs:{swiper:null,init:et.init.bind(this),update:et.update.bind(this),onThumbClick:et.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];void 0===M.use&&(M.use=M.Class.use,M.installModule=M.Class.installModule),M.use(it),e.default=M},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.scroll=e.resize=e.touchmove=e.touchend=e.touchstart=e.mouseover=e.mouseout=e.mouseleave=e.mouseenter=e.mouseup=e.mousemove=e.mousedown=e.change=e.submit=e.keypress=e.keydown=e.keyup=e.focusout=e.focusin=e.focus=e.blur=e.click=e.stop=e.animate=e.scrollLeft=e.scrollTop=e.scrollTo=e.empty=e.add=e.detach=e.remove=e.children=e.find=e.closest=e.parents=e.parent=e.siblings=e.prevAll=e.prev=e.nextAll=e.next=e.insertAfter=e.insertBefore=e.prependTo=e.prepend=e.appendTo=e.append=e.eq=e.index=e.indexOf=e.is=e.text=e.html=e.map=e.filter=e.forEach=e.each=e.toArray=e.css=e.styles=e.show=e.hide=e.offset=e.outerHeight=e.height=e.outerWidth=e.width=e.animationEnd=e.transitionEnd=e.trigger=e.once=e.off=e.on=e.transition=e.transform=e.val=e.dataset=e.removeData=e.data=e.prop=e.removeAttr=e.attr=e.toggleClass=e.hasClass=e.removeClass=e.addClass=e.$=void 0;var n=i(1306);var r=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=0;i<e.length;i+=1)this[i]=e[i];return this.length=e.length,this};function o(t,e){var i=[],o=0;if(t&&!e&&t instanceof r)return t;if(t)if("string"==typeof t){var s=void 0,a=void 0,l=t.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){var u="div";for(0===l.indexOf("<li")&&(u="ul"),0===l.indexOf("<tr")&&(u="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(u="tr"),0===l.indexOf("<tbody")&&(u="table"),0===l.indexOf("<option")&&(u="select"),(a=n.document.createElement(u)).innerHTML=l,o=0;o<a.childNodes.length;o+=1)i.push(a.childNodes[o])}else for(s=e||"#"!==t[0]||t.match(/[ .<>:~]/)?(e||n.document).querySelectorAll(t.trim()):[n.document.getElementById(t.trim().split("#")[1])],o=0;o<s.length;o+=1)s[o]&&i.push(s[o])}else if(t.nodeType||t===n.window||t===n.document)i.push(t);else if(t.length>0&&t[0].nodeType)for(o=0;o<t.length;o+=1)i.push(t[o]);return new r(i)}function s(t){for(var e=[],i=0;i<t.length;i+=1)-1===e.indexOf(t[i])&&e.push(t[i]);return e}function a(t){return n.window.requestAnimationFrame?n.window.requestAnimationFrame(t):n.window.webkitRequestAnimationFrame?n.window.webkitRequestAnimationFrame(t):n.window.setTimeout(t,1e3/60)}o.fn=r.prototype,o.Class=r,o.Dom7=r;var l="resize scroll".split(" ");function u(t){for(var e=arguments.length,i=Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];if(void 0===i[0]){for(var r=0;r<this.length;r+=1)l.indexOf(t)<0&&(t in this[r]?this[r][t]():o(this[r]).trigger(t));return this}return this.on.apply(this,[t].concat(i))}e.$=o,e.addClass=function(t){if(void 0===t)return this;for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.add(e[i]);return this},e.removeClass=function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.remove(e[i]);return this},e.hasClass=function(t){return!!this[0]&&this[0].classList.contains(t)},e.toggleClass=function(t){for(var e=t.split(" "),i=0;i<e.length;i+=1)for(var n=0;n<this.length;n+=1)void 0!==this[n]&&void 0!==this[n].classList&&this[n].classList.toggle(e[i]);return this},e.attr=function(t,e){if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i].setAttribute(t,e);else for(var n in t)this[i][n]=t[n],this[i].setAttribute(n,t[n]);return this},e.removeAttr=function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},e.prop=function(t,e){if(1!==arguments.length||"string"!=typeof t){for(var i=0;i<this.length;i+=1)if(2===arguments.length)this[i][t]=e;else for(var n in t)this[i][n]=t[n];return this}if(this[0])return this[0][t]},e.data=function(t,e){var i=void 0;if(void 0!==e){for(var n=0;n<this.length;n+=1)(i=this[n]).dom7ElementDataStorage||(i.dom7ElementDataStorage={}),i.dom7ElementDataStorage[t]=e;return this}if(i=this[0]){if(i.dom7ElementDataStorage&&t in i.dom7ElementDataStorage)return i.dom7ElementDataStorage[t];var r=i.getAttribute("data-"+t);return r||void 0}},e.removeData=function(t){for(var e=0;e<this.length;e+=1){var i=this[e];i.dom7ElementDataStorage&&i.dom7ElementDataStorage[t]&&(i.dom7ElementDataStorage[t]=null,delete i.dom7ElementDataStorage[t])}},e.dataset=function(){var t=this[0];if(t){var e,i={};if(t.dataset)for(var n in t.dataset)i[n]=t.dataset[n];else for(var r=0;r<t.attributes.length;r+=1){var o=t.attributes[r];o.name.indexOf("data-")>=0&&(i[(e=o.name.split("data-")[1],e.toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}))]=o.value)}for(var s in i)"false"===i[s]?i[s]=!1:"true"===i[s]?i[s]=!0:parseFloat(i[s])===1*i[s]&&(i[s]*=1);return i}},e.val=function(t){if(void 0!==t){for(var e=0;e<this.length;e+=1){var i=this[e];if(Array.isArray(t)&&i.multiple&&"select"===i.nodeName.toLowerCase())for(var n=0;n<i.options.length;n+=1)i.options[n].selected=t.indexOf(i.options[n].value)>=0;else i.value=t}return this}if(this[0]){if(this[0].multiple&&"select"===this[0].nodeName.toLowerCase()){for(var r=[],o=0;o<this[0].selectedOptions.length;o+=1)r.push(this[0].selectedOptions[o].value);return r}return this[0].value}},e.transform=function(t){for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransform=t,i.transform=t}return this},e.transition=function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e+=1){var i=this[e].style;i.webkitTransitionDuration=t,i.transitionDuration=t}return this},e.on=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e[1],s=e[2],a=e[3];function l(t){var e=t.target;if(e){var i=t.target.dom7EventData||[];if(i.indexOf(t)<0&&i.unshift(t),o(e).is(r))s.apply(e,i);else for(var n=o(e).parents(),a=0;a<n.length;a+=1)o(n[a]).is(r)&&s.apply(n[a],i)}}function u(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),s.apply(this,e)}"function"==typeof e[1]&&(n=e[0],s=e[1],a=e[2],r=void 0),a||(a=!1);for(var c=n.split(" "),h=void 0,d=0;d<this.length;d+=1){var f=this[d];if(r)for(h=0;h<c.length;h+=1){var p=c[h];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:s,proxyListener:l}),f.addEventListener(p,l,a)}else for(h=0;h<c.length;h+=1){var v=c[h];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[v]||(f.dom7Listeners[v]=[]),f.dom7Listeners[v].push({listener:s,proxyListener:u}),f.addEventListener(v,u,a)}}return this},e.off=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e[1],o=e[2],s=e[3];"function"==typeof e[1]&&(n=e[0],o=e[1],s=e[2],r=void 0),s||(s=!1);for(var a=n.split(" "),l=0;l<a.length;l+=1)for(var u=a[l],c=0;c<this.length;c+=1){var h=this[c],d=void 0;if(!r&&h.dom7Listeners?d=h.dom7Listeners[u]:r&&h.dom7LiveListeners&&(d=h.dom7LiveListeners[u]),d&&d.length)for(var f=d.length-1;f>=0;f-=1){var p=d[f];o&&p.listener===o?(h.removeEventListener(u,p.proxyListener,s),d.splice(f,1)):o&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===o?(h.removeEventListener(u,p.proxyListener,s),d.splice(f,1)):o||(h.removeEventListener(u,p.proxyListener,s),d.splice(f,1))}}return this},e.once=function(){for(var t=this,e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];var r=i[0],o=i[1],s=i[2],a=i[3];function l(){for(var e=arguments.length,i=Array(e),n=0;n<e;n++)i[n]=arguments[n];s.apply(this,i),t.off(r,o,l,a),l.dom7proxy&&delete l.dom7proxy}return"function"==typeof i[1]&&(r=i[0],s=i[1],a=i[2],o=void 0),l.dom7proxy=s,t.on(r,o,l,a)},e.trigger=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];for(var r=e[0].split(" "),o=e[1],s=0;s<r.length;s+=1)for(var a=r[s],l=0;l<this.length;l+=1){var u=this[l],c=void 0;try{c=new n.window.CustomEvent(a,{detail:o,bubbles:!0,cancelable:!0})}catch(t){(c=n.document.createEvent("Event")).initEvent(a,!0,!0),c.detail=o}u.dom7EventData=e.filter(function(t,e){return e>0}),u.dispatchEvent(c),u.dom7EventData=[],delete u.dom7EventData}return this},e.transitionEnd=function(t){var e=["webkitTransitionEnd","transitionend"],i=this,n=void 0;function r(o){if(o.target===this)for(t.call(this,o),n=0;n<e.length;n+=1)i.off(e[n],r)}if(t)for(n=0;n<e.length;n+=1)i.on(e[n],r);return this},e.animationEnd=function(t){var e=["webkitAnimationEnd","animationend"],i=this,n=void 0;function r(o){if(o.target===this)for(t.call(this,o),n=0;n<e.length;n+=1)i.off(e[n],r)}if(t)for(n=0;n<e.length;n+=1)i.on(e[n],r);return this},e.width=function(){return this[0]===n.window?n.window.innerWidth:this.length>0?parseFloat(this.css("width")):null},e.outerWidth=function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},e.height=function(){return this[0]===n.window?n.window.innerHeight:this.length>0?parseFloat(this.css("height")):null},e.outerHeight=function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},e.offset=function(){if(this.length>0){var t=this[0],e=t.getBoundingClientRect(),i=n.document.body,r=t.clientTop||i.clientTop||0,o=t.clientLeft||i.clientLeft||0,s=t===n.window?n.window.scrollY:t.scrollTop,a=t===n.window?n.window.scrollX:t.scrollLeft;return{top:e.top+s-r,left:e.left+a-o}}return null},e.hide=function(){for(var t=0;t<this.length;t+=1)this[t].style.display="none";return this},e.show=function(){for(var t=0;t<this.length;t+=1){var e=this[t];"none"===e.style.display&&(e.style.display=""),"none"===n.window.getComputedStyle(e,null).getPropertyValue("display")&&(e.style.display="block")}return this},e.styles=function(){return this[0]?n.window.getComputedStyle(this[0],null):{}},e.css=function(t,e){var i=void 0;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(var r in t)this[i].style[r]=t[r];return this}if(this[0])return n.window.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=e;return this}return this},e.toArray=function(){for(var t=[],e=0;e<this.length;e+=1)t.push(this[e]);return t},e.each=function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},e.forEach=function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],this[e],e))return this;return this},e.filter=function(t){for(var e=[],i=0;i<this.length;i+=1)t.call(this[i],i,this[i])&&e.push(this[i]);return new r(e)},e.map=function(t){for(var e=[],i=0;i<this.length;i+=1)e.push(t.call(this[i],i,this[i]));return new r(e)},e.html=function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},e.text=function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},e.is=function(t){var e=this[0],i=void 0,s=void 0;if(!e||void 0===t)return!1;if("string"==typeof t){if(e.matches)return e.matches(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);for(i=o(t),s=0;s<i.length;s+=1)if(i[s]===e)return!0;return!1}if(t===n.document)return e===n.document;if(t===n.window)return e===n.window;if(t.nodeType||t instanceof r){for(i=t.nodeType?[t]:t,s=0;s<i.length;s+=1)if(i[s]===e)return!0;return!1}return!1},e.indexOf=function(t){for(var e=0;e<this.length;e+=1)if(this[e]===t)return e;return-1},e.index=function(){var t=this[0],e=void 0;if(t){for(e=0;null!==(t=t.previousSibling);)1===t.nodeType&&(e+=1);return e}},e.eq=function(t){if(void 0===t)return this;var e=this.length,i=void 0;return new r(t>e-1?[]:t<0?(i=e+t)<0?[]:[this[i]]:[this[t]])},e.append=function(){for(var t=void 0,e=0;e<arguments.length;e+=1){t=arguments.length<=e?void 0:arguments[e];for(var i=0;i<this.length;i+=1)if("string"==typeof t){var o=n.document.createElement("div");for(o.innerHTML=t;o.firstChild;)this[i].appendChild(o.firstChild)}else if(t instanceof r)for(var s=0;s<t.length;s+=1)this[i].appendChild(t[s]);else this[i].appendChild(t)}return this},e.appendTo=function(t){return o(t).append(this),this},e.prepend=function(t){var e=void 0,i=void 0;for(e=0;e<this.length;e+=1)if("string"==typeof t){var o=n.document.createElement("div");for(o.innerHTML=t,i=o.childNodes.length-1;i>=0;i-=1)this[e].insertBefore(o.childNodes[i],this[e].childNodes[0])}else if(t instanceof r)for(i=0;i<t.length;i+=1)this[e].insertBefore(t[i],this[e].childNodes[0]);else this[e].insertBefore(t,this[e].childNodes[0]);return this},e.prependTo=function(t){return o(t).prepend(this),this},e.insertBefore=function(t){for(var e=o(t),i=0;i<this.length;i+=1)if(1===e.length)e[0].parentNode.insertBefore(this[i],e[0]);else if(e.length>1)for(var n=0;n<e.length;n+=1)e[n].parentNode.insertBefore(this[i].cloneNode(!0),e[n])},e.insertAfter=function(t){for(var e=o(t),i=0;i<this.length;i+=1)if(1===e.length)e[0].parentNode.insertBefore(this[i],e[0].nextSibling);else if(e.length>1)for(var n=0;n<e.length;n+=1)e[n].parentNode.insertBefore(this[i].cloneNode(!0),e[n].nextSibling)},e.next=function(t){return this.length>0?t?this[0].nextElementSibling&&o(this[0].nextElementSibling).is(t)?new r([this[0].nextElementSibling]):new r([]):this[0].nextElementSibling?new r([this[0].nextElementSibling]):new r([]):new r([])},e.nextAll=function(t){var e=[],i=this[0];if(!i)return new r([]);for(;i.nextElementSibling;){var n=i.nextElementSibling;t?o(n).is(t)&&e.push(n):e.push(n),i=n}return new r(e)},e.prev=function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&o(e.previousElementSibling).is(t)?new r([e.previousElementSibling]):new r([]):e.previousElementSibling?new r([e.previousElementSibling]):new r([])}return new r([])},e.prevAll=function(t){var e=[],i=this[0];if(!i)return new r([]);for(;i.previousElementSibling;){var n=i.previousElementSibling;t?o(n).is(t)&&e.push(n):e.push(n),i=n}return new r(e)},e.siblings=function(t){return this.nextAll(t).add(this.prevAll(t))},e.parent=function(t){for(var e=[],i=0;i<this.length;i+=1)null!==this[i].parentNode&&(t?o(this[i].parentNode).is(t)&&e.push(this[i].parentNode):e.push(this[i].parentNode));return o(s(e))},e.parents=function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].parentNode;n;)t?o(n).is(t)&&e.push(n):e.push(n),n=n.parentNode;return o(s(e))},e.closest=function(t){var e=this;return void 0===t?new r([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},e.find=function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].querySelectorAll(t),o=0;o<n.length;o+=1)e.push(n[o]);return new r(e)},e.children=function(t){for(var e=[],i=0;i<this.length;i+=1)for(var n=this[i].childNodes,a=0;a<n.length;a+=1)t?1===n[a].nodeType&&o(n[a]).is(t)&&e.push(n[a]):1===n[a].nodeType&&e.push(n[a]);return new r(s(e))},e.remove=function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},e.detach=function(){return this.remove()},e.add=function(){for(var t=void 0,e=void 0,i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];for(t=0;t<n.length;t+=1){var s=o(n[t]);for(e=0;e<s.length;e+=1)this[this.length]=s[e],this.length+=1}return this},e.empty=function(){for(var t=0;t<this.length;t+=1){var e=this[t];if(1===e.nodeType){for(var i=0;i<e.childNodes.length;i+=1)e.childNodes[i].parentNode&&e.childNodes[i].parentNode.removeChild(e.childNodes[i]);e.textContent=""}}return this},e.scrollTo=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e[1],o=e[2],s=e[3],l=e[4];return 4===e.length&&"function"==typeof s&&(l=s,n=e[0],r=e[1],o=e[2],l=e[3],s=e[4]),void 0===s&&(s="swing"),this.each(function(){var t=this,e=void 0,i=void 0,u=void 0,c=void 0,h=void 0,d=void 0,f=void 0,p=void 0,v=r>0||0===r,g=n>0||0===n;if(void 0===s&&(s="swing"),v&&(e=t.scrollTop,o||(t.scrollTop=r)),g&&(i=t.scrollLeft,o||(t.scrollLeft=n)),o){v&&(u=t.scrollHeight-t.offsetHeight,h=Math.max(Math.min(r,u),0)),g&&(c=t.scrollWidth-t.offsetWidth,d=Math.max(Math.min(n,c),0));var m=null;v&&h===e&&(v=!1),g&&d===i&&(g=!1),a(function n(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(new Date).getTime();null===m&&(m=r);var u=Math.max(Math.min((r-m)/o,1),0),c="linear"===s?u:.5-Math.cos(u*Math.PI)/2,y=void 0;v&&(f=e+c*(h-e)),g&&(p=i+c*(d-i)),v&&h>e&&f>=h&&(t.scrollTop=h,y=!0),v&&h<e&&f<=h&&(t.scrollTop=h,y=!0),g&&d>i&&p>=d&&(t.scrollLeft=d,y=!0),g&&d<i&&p<=d&&(t.scrollLeft=d,y=!0),y?l&&l():(v&&(t.scrollTop=f),g&&(t.scrollLeft=p),a(n))})}})},e.scrollTop=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e[1],o=e[2],s=e[3];return 3===e.length&&"function"==typeof o&&(n=e[0],r=e[1],s=e[2],o=e[3]),void 0===n?this.length>0?this[0].scrollTop:null:this.scrollTo(void 0,n,r,o,s)},e.scrollLeft=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=e[0],r=e[1],o=e[2],s=e[3];return 3===e.length&&"function"==typeof o&&(n=e[0],r=e[1],s=e[2],o=e[3]),void 0===n?this.length>0?this[0].scrollLeft:null:this.scrollTo(n,void 0,r,o,s)},e.animate=function(t,e){var i=this,r={props:Object.assign({},t),params:Object.assign({duration:300,easing:"swing"},e),elements:i,animating:!1,que:[],easingProgress:function(t,e){return"swing"===t?.5-Math.cos(e*Math.PI)/2:"function"==typeof t?t(e):e},stop:function(){var t;r.frameId&&(t=r.frameId,n.window.cancelAnimationFrame?n.window.cancelAnimationFrame(t):n.window.webkitCancelAnimationFrame?n.window.webkitCancelAnimationFrame(t):n.window.clearTimeout(t)),r.animating=!1,r.elements.each(function(t,e){delete e.dom7AnimateInstance}),r.que=[]},done:function(t){if(r.animating=!1,r.elements.each(function(t,e){delete e.dom7AnimateInstance}),t&&t(i),r.que.length>0){var e=r.que.shift();r.animate(e[0],e[1])}},animate:function(t,e){if(r.animating)return r.que.push([t,e]),r;var o=[];r.elements.each(function(e,i){var s=void 0,a=void 0,l=void 0,u=void 0,c=void 0;i.dom7AnimateInstance||(r.elements[e].dom7AnimateInstance=r),o[e]={container:i},Object.keys(t).forEach(function(r){s=n.window.getComputedStyle(i,null).getPropertyValue(r).replace(",","."),a=parseFloat(s),l=s.replace(a,""),u=parseFloat(t[r]),c=t[r]+l,o[e][r]={initialFullValue:s,initialValue:a,unit:l,finalValue:u,finalFullValue:c,currentValue:a}})});var s=null,l=void 0,u=0,c=0,h=void 0,d=!1;return r.animating=!0,r.frameId=a(function n(){l=(new Date).getTime();var f=void 0,p=void 0;d||(d=!0,e.begin&&e.begin(i)),null===s&&(s=l),e.progress&&e.progress(i,Math.max(Math.min((l-s)/e.duration,1),0),s+e.duration-l<0?0:s+e.duration-l,s),o.forEach(function(i){var n=i;h||n.done||Object.keys(t).forEach(function(i){if(!h&&!n.done){f=Math.max(Math.min((l-s)/e.duration,1),0),p=r.easingProgress(e.easing,f);var a=n[i],d=a.initialValue,v=a.finalValue,g=a.unit;n[i].currentValue=d+p*(v-d);var m=n[i].currentValue;(v>d&&m>=v||v<d&&m<=v)&&(n.container.style[i]=v+g,(c+=1)===Object.keys(t).length&&(n.done=!0,u+=1),u===o.length&&(h=!0)),h?r.done(e.complete):n.container.style[i]=m+g}})}),h||(r.frameId=a(n))}),r}};if(0===r.elements.length)return i;for(var o=void 0,s=0;s<r.elements.length;s+=1)r.elements[s].dom7AnimateInstance?o=r.elements[s].dom7AnimateInstance:r.elements[s].dom7AnimateInstance=r;return o||(o=r),"stop"===t?o.stop():o.animate(r.props,r.params),i},e.stop=function(){for(var t=0;t<this.length;t+=1)this[t].dom7AnimateInstance&&this[t].dom7AnimateInstance.stop()},e.click=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["click"].concat(e))},e.blur=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["blur"].concat(e))},e.focus=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["focus"].concat(e))},e.focusin=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["focusin"].concat(e))},e.focusout=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["focusout"].concat(e))},e.keyup=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["keyup"].concat(e))},e.keydown=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["keydown"].concat(e))},e.keypress=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["keypress"].concat(e))},e.submit=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["submit"].concat(e))},e.change=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["change"].concat(e))},e.mousedown=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mousedown"].concat(e))},e.mousemove=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mousemove"].concat(e))},e.mouseup=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mouseup"].concat(e))},e.mouseenter=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mouseenter"].concat(e))},e.mouseleave=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mouseleave"].concat(e))},e.mouseout=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mouseout"].concat(e))},e.mouseover=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["mouseover"].concat(e))},e.touchstart=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["touchstart"].concat(e))},e.touchend=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["touchend"].concat(e))},e.touchmove=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["touchmove"].concat(e))},e.resize=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["resize"].concat(e))},e.scroll=function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];return u.bind(this).apply(void 0,["scroll"].concat(e))}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="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};function r(t){return null!==t&&"object"===(void 0===t?"undefined":n(t))&&"constructor"in t&&t.constructor===Object}function o(t,e){void 0===t&&(t={}),void 0===e&&(e={}),Object.keys(e).forEach(function(i){void 0===t[i]?t[i]=e[i]:r(e[i])&&r(t[i])&&Object.keys(e[i]).length>0&&o(t[i],e[i])})}var s="undefined"!=typeof document?document:{},a={body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},createElementNS:function(){return{}},importNode:function(){return null},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""}};o(s,a);var l="undefined"!=typeof window?window:{};o(l,{document:a,navigator:{userAgent:""},location:{hash:"",host:"",hostname:"",href:"",origin:"",pathname:"",protocol:"",search:""},history:{replaceState:function(){},pushState:function(){},go:function(){},back:function(){}},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){},matchMedia:function(){return{}}}),e.document=s,e.extend=o,e.window=l},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,r="undefined"==typeof window?{document:n,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window;e.window=r,e.document=n}],[1302]);