-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.min.js
1 lines (1 loc) · 335 KB
/
app.min.js
1
var t,e,n,o,i,r,a,f,d,s,m,v,y,b,c,x,w,u,l,h;function C(t,e){return t-e}function k(){for(var t=0,e=this.length;t<e;t++)if(void 0!==this[t])return this[t]}function S(){for(var t=this.length;--t;)if(void 0!==this[t])return this[t]}t=this,e=function(){return i={},n.m=o=[function(t,e,n){"use strict";function o(t,e){"object"===(void 0===t?"undefined":c(t))&&(e=t,t=void 0),e=e||{};var n=u(t),o=n.source,i=n.id,r=n.path,a=h[i]&&r in h[i].nsps,s=e.forceNew||e["force new connection"]||!1===e.multiplex||a?l(o,e):(h[i]||(h[i]=l(o,e)),h[i]);return n.query&&!e.query&&(e.query=n.query),s.socket(n.path,e)}var c="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},u=n(1),i=n(4),l=n(9);n(3)("socket.io-client"),t.exports=e=o;var h=e.managers={};e.protocol=i.protocol,e.connect=o,e.Manager=n(9),e.Socket=n(33)},function(t,e,n){"use strict";var i=n(2);n(3)("socket.io-client:url"),t.exports=function(t,e){var n=t;e=e||"undefined"!=typeof location&&location,null==t&&(t=e.protocol+"//"+e.host),"string"==typeof t&&("/"===t.charAt(0)&&(t="/"===t.charAt(1)?e.protocol+t:e.host+t),/^(https?|wss?):\/\//.test(t)||(t=void 0!==e?e.protocol+"//"+t:"https://"+t),n=i(t)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";var o=-1!==n.host.indexOf(":")?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port,n.href=n.protocol+"://"+o+(e&&e.port===n.port?"":":"+n.port),n}},function(t,e){var s=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,c=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];t.exports=function(t){var e=t,n=t.indexOf("["),o=t.indexOf("]");-1!=n&&-1!=o&&(t=t.substring(0,n)+t.substring(n,o).replace(/:/g,";")+t.substring(o,t.length));for(var i=s.exec(t||""),r={},a=14;a--;)r[c[a]]=i[a]||"";return-1!=n&&-1!=o&&(r.source=e,r.host=r.host.substring(1,r.host.length-1).replace(/;/g,":"),r.authority=r.authority.replace("[","").replace("]","").replace(/;/g,":"),r.ipv6uri=!0),r}},function(t,e){"use strict";t.exports=function(){return function(){}}},function(t,s,e){function n(){}function r(t){var e=""+t.type;if(s.BINARY_EVENT!==t.type&&s.BINARY_ACK!==t.type||(e+=t.attachments+"-"),t.nsp&&"/"!==t.nsp&&(e+=t.nsp+","),null!=t.id&&(e+=t.id),null!=t.data){var n=function(t){try{return JSON.stringify(t)}catch(t){return!1}}(t.data);if(!1===n)return d;e+=n}return e}function o(t,i){h.removeBlobs(t,function(t){var e=h.deconstructPacket(t),n=r(e.packet),o=e.buffers;o.unshift(n),i(o)})}function i(){this.reconstructor=null}function a(t){var e=0,n={type:Number(t.charAt(0))};if(null==s.types[n.type])return u("unknown packet type "+n.type);if(s.BINARY_EVENT===n.type||s.BINARY_ACK===n.type){for(var o="";"-"!==t.charAt(++e)&&(o+=t.charAt(e),e!=t.length););if(o!=Number(o)||"-"!==t.charAt(e))throw new Error("Illegal attachments");n.attachments=Number(o)}if("/"===t.charAt(e+1))for(n.nsp="";++e;){if(","===(i=t.charAt(e)))break;if(n.nsp+=i,e===t.length)break}else n.nsp="/";var i,r=t.charAt(e+1);if(""!==r&&Number(r)==r){for(n.id="";++e;){if(null==(i=t.charAt(e))||Number(i)!=i){--e;break}if(n.id+=t.charAt(e),e===t.length)break}n.id=Number(n.id)}if(t.charAt(++e)){var a=function(t){try{return JSON.parse(t)}catch(t){return!1}}(t.substr(e));if(!(!1!==a&&(n.type===s.ERROR||p(a))))return u("invalid payload");n.data=a}return n}function c(t){this.reconPack=t,this.buffers=[]}function u(t){return{type:s.ERROR,data:"parser error: "+t}}var l=(e(3)("socket.io-parser"),e(5)),h=e(6),p=e(7),f=e(8);s.protocol=4,s.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],s.CONNECT=0,s.DISCONNECT=1,s.EVENT=2,s.ACK=3,s.ERROR=4,s.BINARY_EVENT=5,s.BINARY_ACK=6,s.Encoder=n,s.Decoder=i;var d=s.ERROR+'"encode error"';n.prototype.encode=function(t,e){s.BINARY_EVENT===t.type||s.BINARY_ACK===t.type?o(t,e):e([r(t)])},l(i.prototype),i.prototype.add=function(t){var e;if("string"==typeof t)e=a(t),s.BINARY_EVENT===e.type||s.BINARY_ACK===e.type?(this.reconstructor=new c(e),0===this.reconstructor.reconPack.attachments&&this.emit("decoded",e)):this.emit("decoded",e);else{if(!f(t)&&!t.base64)throw new Error("Unknown type: "+t);if(!this.reconstructor)throw new Error("got binary data when not reconstructing a packet");(e=this.reconstructor.takeBinaryData(t))&&(this.reconstructor=null,this.emit("decoded",e))}},i.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()},c.prototype.takeBinaryData=function(t){if(this.buffers.push(t),this.buffers.length!==this.reconPack.attachments)return null;var e=h.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),e},c.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]}},function(t,e,n){function o(t){if(t)return function(t){for(var e in o.prototype)t[e]=o.prototype[e];return t}(t)}(t.exports=o).prototype.on=o.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},o.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},o.prototype.off=o.prototype.removeListener=o.prototype.removeAllListeners=o.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var o,i=0;i<n.length;i++)if((o=n[i])===e||o.fn===e){n.splice(i,1);break}return this},o.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks["$"+t];if(n)for(var o=0,i=(n=n.slice(0)).length;o<i;++o)n[o].apply(this,e);return this},o.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},o.prototype.hasListeners=function(t){return!!this.listeners(t).length}},function(t,e,n){var l=n(7),h=n(8),o=Object.prototype.toString,p="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),f="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);e.deconstructPacket=function(t){var e=[],n=t.data,o=t;return o.data=function t(e,n){if(!e)return e;if(h(e)){var o={_placeholder:!0,num:n.length};return n.push(e),o}if(l(e)){for(var i=new Array(e.length),r=0;r<e.length;r++)i[r]=t(e[r],n);return i}if("object"!=typeof e||e instanceof Date)return e;i={};for(var a in e)i[a]=t(e[a],n);return i}(n,e),o.attachments=e.length,{packet:o,buffers:e}},e.reconstructPacket=function(t,e){return t.data=function t(e,n){if(!e)return e;if(e&&e._placeholder)return n[e.num];if(l(e))for(var o=0;o<e.length;o++)e[o]=t(e[o],n);else if("object"==typeof e)for(var i in e)e[i]=t(e[i],n);return e}(t.data,e),t.attachments=void 0,t},e.removeBlobs=function(t,s){var c=0,u=t;(function t(e,n,o){if(!e)return e;if(p&&e instanceof Blob||f&&e instanceof File){c++;var i=new FileReader;i.onload=function(){o?o[n]=this.result:u=this.result,--c||s(u)},i.readAsArrayBuffer(e)}else if(l(e))for(var r=0;r<e.length;r++)t(e[r],r,e);else if("object"==typeof e&&!h(e))for(var a in e)t(e[a],a,e)})(u),c||s(u)}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){return n&&Buffer.isBuffer(t)||o&&(t instanceof ArrayBuffer||i(t))};var n="function"==typeof Buffer&&"function"==typeof Buffer.isBuffer,o="function"==typeof ArrayBuffer,i=function(t){return"function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):t.buffer instanceof ArrayBuffer}},function(t,e,n){"use strict";function o(t,e){if(!(this instanceof o))return new o(t,e);t&&"object"===(void 0===t?"undefined":i(t))&&(e=t,t=void 0),(e=e||{}).path=e.path||"/socket.io",this.nsps={},this.subs=[],this.opts=e,this.reconnection(!1!==e.reconnection),this.reconnectionAttempts(e.reconnectionAttempts||1/0),this.reconnectionDelay(e.reconnectionDelay||1e3),this.reconnectionDelayMax(e.reconnectionDelayMax||5e3),this.randomizationFactor(e.randomizationFactor||.5),this.backoff=new p({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(null==e.timeout?2e4:e.timeout),this.readyState="closed",this.uri=t,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var n=e.parser||s;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this.autoConnect=!1!==e.autoConnect,this.autoConnect&&this.open()}var 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},c=n(10),r=n(33),a=n(5),s=n(4),u=n(35),l=n(36),h=(n(3)("socket.io-client:manager"),n(32)),p=n(37),f=Object.prototype.hasOwnProperty;(t.exports=o).prototype.emitAll=function(){for(var t in this.emit.apply(this,arguments),this.nsps)f.call(this.nsps,t)&&this.nsps[t].emit.apply(this.nsps[t],arguments)},o.prototype.updateSocketIds=function(){for(var t in this.nsps)f.call(this.nsps,t)&&(this.nsps[t].id=this.generateId(t))},o.prototype.generateId=function(t){return("/"===t?"":t+"#")+this.engine.id},a(o.prototype),o.prototype.reconnection=function(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection},o.prototype.reconnectionAttempts=function(t){return arguments.length?(this._reconnectionAttempts=t,this):this._reconnectionAttempts},o.prototype.reconnectionDelay=function(t){return arguments.length?(this._reconnectionDelay=t,this.backoff&&this.backoff.setMin(t),this):this._reconnectionDelay},o.prototype.randomizationFactor=function(t){return arguments.length?(this._randomizationFactor=t,this.backoff&&this.backoff.setJitter(t),this):this._randomizationFactor},o.prototype.reconnectionDelayMax=function(t){return arguments.length?(this._reconnectionDelayMax=t,this.backoff&&this.backoff.setMax(t),this):this._reconnectionDelayMax},o.prototype.timeout=function(t){return arguments.length?(this._timeout=t,this):this._timeout},o.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&0===this.backoff.attempts&&this.reconnect()},o.prototype.open=o.prototype.connect=function(n,t){if(~this.readyState.indexOf("open"))return this;this.engine=c(this.uri,this.opts);var e=this.engine,o=this;this.readyState="opening",this.skipReconnect=!1;var i,r,a=u(e,"open",function(){o.onopen(),n&&n()}),s=u(e,"error",function(t){var e;o.cleanup(),o.readyState="closed",o.emitAll("connect_error",t),n?((e=new Error("Connection error")).data=t,n(e)):o.maybeReconnectOnOpen()});return!1!==this._timeout&&(i=this._timeout,r=setTimeout(function(){a.destroy(),e.close(),e.emit("error","timeout"),o.emitAll("connect_timeout",i)},i),this.subs.push({destroy:function(){clearTimeout(r)}})),this.subs.push(a),this.subs.push(s),this},o.prototype.onopen=function(){this.cleanup(),this.readyState="open",this.emit("open");var t=this.engine;this.subs.push(u(t,"data",l(this,"ondata"))),this.subs.push(u(t,"ping",l(this,"onping"))),this.subs.push(u(t,"pong",l(this,"onpong"))),this.subs.push(u(t,"error",l(this,"onerror"))),this.subs.push(u(t,"close",l(this,"onclose"))),this.subs.push(u(this.decoder,"decoded",l(this,"ondecoded")))},o.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},o.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},o.prototype.ondata=function(t){this.decoder.add(t)},o.prototype.ondecoded=function(t){this.emit("packet",t)},o.prototype.onerror=function(t){this.emitAll("error",t)},o.prototype.socket=function(t,e){function n(){~h(o.connecting,i)||o.connecting.push(i)}var o,i=this.nsps[t];return i||(i=new r(this,t,e),this.nsps[t]=i,o=this,i.on("connecting",n),i.on("connect",function(){i.id=o.generateId(t)}),this.autoConnect&&n()),i},o.prototype.destroy=function(t){var e=h(this.connecting,t);~e&&this.connecting.splice(e,1),this.connecting.length||this.close()},o.prototype.packet=function(n){var o=this;n.query&&0===n.type&&(n.nsp+="?"+n.query),o.encoding?o.packetBuffer.push(n):(o.encoding=!0,this.encoder.encode(n,function(t){for(var e=0;e<t.length;e++)o.engine.write(t[e],n.options);o.encoding=!1,o.processPacketQueue()}))},o.prototype.processPacketQueue=function(){var t;0<this.packetBuffer.length&&!this.encoding&&(t=this.packetBuffer.shift(),this.packet(t))},o.prototype.cleanup=function(){for(var t=this.subs.length,e=0;e<t;e++){this.subs.shift().destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},o.prototype.close=o.prototype.disconnect=function(){this.skipReconnect=!0,this.reconnecting=!1,"opening"===this.readyState&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},o.prototype.onclose=function(t){this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",t),this._reconnection&&!this.skipReconnect&&this.reconnect()},o.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var t,e,n=this;this.backoff.attempts>=this._reconnectionAttempts?(this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1):(t=this.backoff.duration(),this.reconnecting=!0,e=setTimeout(function(){n.skipReconnect||(n.emitAll("reconnect_attempt",n.backoff.attempts),n.emitAll("reconnecting",n.backoff.attempts),n.skipReconnect||n.open(function(t){t?(n.reconnecting=!1,n.reconnect(),n.emitAll("reconnect_error",t.data)):n.onreconnect()}))},t),this.subs.push({destroy:function(){clearTimeout(e)}}))},o.prototype.onreconnect=function(){var t=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",t)}},function(t,e,n){t.exports=n(11),t.exports.parser=n(18)},function(t,e,n){function h(t,e){return this instanceof h?(e=e||{},t&&"object"==typeof t&&(e=t,t=null),t?(t=s(t),e.hostname=t.host,e.secure="https"===t.protocol||"wss"===t.protocol,e.port=t.port,t.query&&(e.query=t.query)):e.host&&(e.hostname=s(e.host).host),this.secure=null!=e.secure?e.secure:"undefined"!=typeof location&&"https:"===location.protocol,e.hostname&&!e.port&&(e.port=this.secure?"443":"80"),this.agent=e.agent||!1,this.hostname=e.hostname||("undefined"!=typeof location?location.hostname:"localhost"),this.port=e.port||("undefined"!=typeof location&&location.port?location.port:this.secure?443:80),this.query=e.query||{},"string"==typeof this.query&&(this.query=c.decode(this.query)),this.upgrade=!1!==e.upgrade,this.path=(e.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!e.forceJSONP,this.jsonp=!1!==e.jsonp,this.forceBase64=!!e.forceBase64,this.enablesXDR=!!e.enablesXDR,this.withCredentials=!1!==e.withCredentials,this.timestampParam=e.timestampParam||"t",this.timestampRequests=e.timestampRequests,this.transports=e.transports||["polling","websocket"],this.transportOptions=e.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=e.policyPort||843,this.rememberUpgrade=e.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=e.onlyBinaryUpgrades,this.perMessageDeflate=!1!==e.perMessageDeflate&&(e.perMessageDeflate||{}),!0===this.perMessageDeflate&&(this.perMessageDeflate={}),this.perMessageDeflate&&null==this.perMessageDeflate.threshold&&(this.perMessageDeflate.threshold=1024),this.pfx=e.pfx||null,this.key=e.key||null,this.passphrase=e.passphrase||null,this.cert=e.cert||null,this.ca=e.ca||null,this.ciphers=e.ciphers||null,this.rejectUnauthorized=void 0===e.rejectUnauthorized||e.rejectUnauthorized,this.forceNode=!!e.forceNode,this.isReactNative="undefined"!=typeof navigator&&"string"==typeof navigator.product&&"reactnative"===navigator.product.toLowerCase(),"undefined"!=typeof self&&!this.isReactNative||(e.extraHeaders&&0<Object.keys(e.extraHeaders).length&&(this.extraHeaders=e.extraHeaders),e.localAddress&&(this.localAddress=e.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,void this.open()):new h(t,e)}var o=n(12),i=n(5),r=(n(3)("engine.io-client:socket"),n(32)),a=n(18),s=n(2),c=n(26);(t.exports=h).priorWebsocketSuccess=!1,i(h.prototype),h.protocol=a.protocol,(h.Socket=h).Transport=n(17),h.transports=n(12),h.parser=n(18),h.prototype.createTransport=function(t){var e=function(t){var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}(this.query);e.EIO=a.protocol,e.transport=t;var n=this.transportOptions[t]||{};return this.id&&(e.sid=this.id),new o[t]({query:e,socket:this,agent:n.agent||this.agent,hostname:n.hostname||this.hostname,port:n.port||this.port,secure:n.secure||this.secure,path:n.path||this.path,forceJSONP:n.forceJSONP||this.forceJSONP,jsonp:n.jsonp||this.jsonp,forceBase64:n.forceBase64||this.forceBase64,enablesXDR:n.enablesXDR||this.enablesXDR,withCredentials:n.withCredentials||this.withCredentials,timestampRequests:n.timestampRequests||this.timestampRequests,timestampParam:n.timestampParam||this.timestampParam,policyPort:n.policyPort||this.policyPort,pfx:n.pfx||this.pfx,key:n.key||this.key,passphrase:n.passphrase||this.passphrase,cert:n.cert||this.cert,ca:n.ca||this.ca,ciphers:n.ciphers||this.ciphers,rejectUnauthorized:n.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:n.perMessageDeflate||this.perMessageDeflate,extraHeaders:n.extraHeaders||this.extraHeaders,forceNode:n.forceNode||this.forceNode,localAddress:n.localAddress||this.localAddress,requestTimeout:n.requestTimeout||this.requestTimeout,protocols:n.protocols||void 0,isReactNative:this.isReactNative})},h.prototype.open=function(){var t;if(this.rememberUpgrade&&h.priorWebsocketSuccess&&-1!==this.transports.indexOf("websocket"))t="websocket";else{if(0===this.transports.length){var e=this;return void setTimeout(function(){e.emit("error","No transports available")},0)}t=this.transports[0]}this.readyState="opening";try{t=this.createTransport(t)}catch(t){return this.transports.shift(),void this.open()}t.open(),this.setTransport(t)},h.prototype.setTransport=function(t){var e=this;this.transport&&this.transport.removeAllListeners(),(this.transport=t).on("drain",function(){e.onDrain()}).on("packet",function(t){e.onPacket(t)}).on("error",function(t){e.onError(t)}).on("close",function(){e.onClose("transport close")})},h.prototype.probe=function(t){function e(){var t;l.onlyBinaryUpgrades&&(t=!this.supportsBinary&&l.transport.supportsBinary,u=u||t),u||(c.send([{type:"ping",data:"probe"}]),c.once("packet",function(t){if(!u)if("pong"===t.type&&"probe"===t.data){if(l.upgrading=!0,l.emit("upgrading",c),!c)return;h.priorWebsocketSuccess="websocket"===c.name,l.transport.pause(function(){u||"closed"!==l.readyState&&(s(),l.setTransport(c),c.send([{type:"upgrade"}]),l.emit("upgrade",c),c=null,l.upgrading=!1,l.flush())})}else{var e=new Error("probe error");e.transport=c.name,l.emit("upgradeError",e)}}))}function n(){u||(u=!0,s(),c.close(),c=null)}function o(t){var e=new Error("probe error: "+t);e.transport=c.name,n(),l.emit("upgradeError",e)}function i(){o("transport closed")}function r(){o("socket closed")}function a(t){c&&t.name!==c.name&&n()}function s(){c.removeListener("open",e),c.removeListener("error",o),c.removeListener("close",i),l.removeListener("close",r),l.removeListener("upgrading",a)}var c=this.createTransport(t,{probe:1}),u=!1,l=this;h.priorWebsocketSuccess=!1,c.once("open",e),c.once("error",o),c.once("close",i),this.once("close",r),this.once("upgrading",a),c.open()},h.prototype.onOpen=function(){if(this.readyState="open",h.priorWebsocketSuccess="websocket"===this.transport.name,this.emit("open"),this.flush(),"open"===this.readyState&&this.upgrade&&this.transport.pause)for(var t=0,e=this.upgrades.length;t<e;t++)this.probe(this.upgrades[t])},h.prototype.onPacket=function(t){if("opening"===this.readyState||"open"===this.readyState||"closing"===this.readyState)switch(this.emit("packet",t),this.emit("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var e=new Error("server error");e.code=t.data,this.onError(e);break;case"message":this.emit("data",t.data),this.emit("message",t.data)}},h.prototype.onHandshake=function(t){this.emit("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this.upgrades=this.filterUpgrades(t.upgrades),this.pingInterval=t.pingInterval,this.pingTimeout=t.pingTimeout,this.onOpen(),"closed"!==this.readyState&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},h.prototype.onHeartbeat=function(t){clearTimeout(this.pingTimeoutTimer);var e=this;e.pingTimeoutTimer=setTimeout(function(){"closed"!==e.readyState&&e.onClose("ping timeout")},t||e.pingInterval+e.pingTimeout)},h.prototype.setPing=function(){var t=this;clearTimeout(t.pingIntervalTimer),t.pingIntervalTimer=setTimeout(function(){t.ping(),t.onHeartbeat(t.pingTimeout)},t.pingInterval)},h.prototype.ping=function(){var t=this;this.sendPacket("ping",function(){t.emit("ping")})},h.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),(this.prevBufferLen=0)===this.writeBuffer.length?this.emit("drain"):this.flush()},h.prototype.flush=function(){"closed"!==this.readyState&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},h.prototype.write=h.prototype.send=function(t,e,n){return this.sendPacket("message",t,e,n),this},h.prototype.sendPacket=function(t,e,n,o){var i;"function"==typeof e&&(o=e,e=void 0),"function"==typeof n&&(o=n,n=null),"closing"!==this.readyState&&"closed"!==this.readyState&&((n=n||{}).compress=!1!==n.compress,i={type:t,data:e,options:n},this.emit("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush())},h.prototype.close=function(){function t(){o.onClose("forced close"),o.transport.close()}function e(){o.removeListener("upgrade",e),o.removeListener("upgradeError",e),t()}function n(){o.once("upgrade",e),o.once("upgradeError",e)}var o;return"opening"!==this.readyState&&"open"!==this.readyState||(this.readyState="closing",(o=this).writeBuffer.length?this.once("drain",function(){(this.upgrading?n:t)()}):(this.upgrading?n:t)()),this},h.prototype.onError=function(t){h.priorWebsocketSuccess=!1,this.emit("error",t),this.onClose("transport error",t)},h.prototype.onClose=function(t,e){"opening"!==this.readyState&&"open"!==this.readyState&&"closing"!==this.readyState||(clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",t,e),this.writeBuffer=[],this.prevBufferLen=0)},h.prototype.filterUpgrades=function(t){for(var e=[],n=0,o=t.length;n<o;n++)~r(this.transports,t[n])&&e.push(t[n]);return e}},function(t,e,n){var a=n(13),s=n(15),c=n(29),o=n(30);e.polling=function(t){var e,n,o=!1,i=!1,r=!1!==t.jsonp;if("undefined"!=typeof location&&(e="https:"===location.protocol,n=(n=location.port)||(e?443:80),o=t.hostname!==location.hostname||n!==t.port,i=t.secure!==e),t.xdomain=o,t.xscheme=i,"open"in new a(t)&&!t.forceJSONP)return new s(t);if(!r)throw new Error("JSONP disabled");return new c(t)},e.websocket=o},function(t,e,n){var i=n(14);t.exports=function(t){var e=t.xdomain,n=t.xscheme,o=t.enablesXDR;try{if("undefined"!=typeof XMLHttpRequest&&(!e||i))return new XMLHttpRequest}catch(t){}try{if("undefined"!=typeof XDomainRequest&&!n&&o)return new XDomainRequest}catch(t){}if(!e)try{return new(self[["Active"].concat("Object").join("X")])("Microsoft.XMLHTTP")}catch(t){}}},function(t,e){try{t.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(e){t.exports=!1}},function(t,e,n){function o(){}function i(t){var e,n;u.call(this,t),this.requestTimeout=t.requestTimeout,this.extraHeaders=t.extraHeaders,"undefined"!=typeof location&&(e="https:"===location.protocol,n=(n=location.port)||(e?443:80),this.xd="undefined"!=typeof location&&t.hostname!==location.hostname||n!==t.port,this.xs=t.secure!==e)}function r(t){this.method=t.method||"GET",this.uri=t.uri,this.xd=!!t.xd,this.xs=!!t.xs,this.async=!1!==t.async,this.data=void 0!==t.data?t.data:null,this.agent=t.agent,this.isBinary=t.isBinary,this.supportsBinary=t.supportsBinary,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.requestTimeout=t.requestTimeout,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.extraHeaders=t.extraHeaders,this.create()}function a(){for(var t in r.requests)r.requests.hasOwnProperty(t)&&r.requests[t].abort()}var s,c=n(13),u=n(16),l=n(5),h=n(27);n(3)("engine.io-client:polling-xhr"),t.exports=i,t.exports.Request=r,h(i,u),i.prototype.supportsBinary=!0,i.prototype.request=function(t){return(t=t||{}).uri=this.uri(),t.xd=this.xd,t.xs=this.xs,t.agent=this.agent||!1,t.supportsBinary=this.supportsBinary,t.enablesXDR=this.enablesXDR,t.withCredentials=this.withCredentials,t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized,t.requestTimeout=this.requestTimeout,t.extraHeaders=this.extraHeaders,new r(t)},i.prototype.doWrite=function(t,e){var n="string"!=typeof t&&void 0!==t,o=this.request({method:"POST",data:t,isBinary:n}),i=this;o.on("success",e),o.on("error",function(t){i.onError("xhr post error",t)}),this.sendXhr=o},i.prototype.doPoll=function(){var t=this.request(),e=this;t.on("data",function(t){e.onData(t)}),t.on("error",function(t){e.onError("xhr poll error",t)}),this.pollXhr=t},l(r.prototype),r.prototype.create=function(){var t={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};t.pfx=this.pfx,t.key=this.key,t.passphrase=this.passphrase,t.cert=this.cert,t.ca=this.ca,t.ciphers=this.ciphers,t.rejectUnauthorized=this.rejectUnauthorized;var e=this.xhr=new c(t),n=this;try{e.open(this.method,this.uri,this.async);try{if(this.extraHeaders)for(var o in e.setDisableHeaderCheck&&e.setDisableHeaderCheck(!0),this.extraHeaders)this.extraHeaders.hasOwnProperty(o)&&e.setRequestHeader(o,this.extraHeaders[o])}catch(t){}if("POST"===this.method)try{this.isBinary?e.setRequestHeader("Content-type","application/octet-stream"):e.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(t){}try{e.setRequestHeader("Accept","*/*")}catch(t){}"withCredentials"in e&&(e.withCredentials=this.withCredentials),this.requestTimeout&&(e.timeout=this.requestTimeout),this.hasXDR()?(e.onload=function(){n.onLoad()},e.onerror=function(){n.onError(e.responseText)}):e.onreadystatechange=function(){if(2===e.readyState)try{var t=e.getResponseHeader("Content-Type");(n.supportsBinary&&"application/octet-stream"===t||"application/octet-stream; charset=UTF-8"===t)&&(e.responseType="arraybuffer")}catch(t){}4===e.readyState&&(200===e.status||1223===e.status?n.onLoad():setTimeout(function(){n.onError("number"==typeof e.status?e.status:0)},0))},e.send(this.data)}catch(t){return void setTimeout(function(){n.onError(t)},0)}"undefined"!=typeof document&&(this.index=r.requestsCount++,r.requests[this.index]=this)},r.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},r.prototype.onData=function(t){this.emit("data",t),this.onSuccess()},r.prototype.onError=function(t){this.emit("error",t),this.cleanup(!0)},r.prototype.cleanup=function(t){if(void 0!==this.xhr&&null!==this.xhr){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=o:this.xhr.onreadystatechange=o,t)try{this.xhr.abort()}catch(t){}"undefined"!=typeof document&&delete r.requests[this.index],this.xhr=null}},r.prototype.onLoad=function(){var t,e;try{try{e=this.xhr.getResponseHeader("Content-Type")}catch(t){}t=("application/octet-stream"===e||"application/octet-stream; charset=UTF-8"===e)&&this.xhr.response||this.xhr.responseText}catch(t){this.onError(t)}null!=t&&this.onData(t)},r.prototype.hasXDR=function(){return"undefined"!=typeof XDomainRequest&&!this.xs&&this.enablesXDR},r.prototype.abort=function(){this.cleanup()},r.requestsCount=0,r.requests={},"undefined"!=typeof document&&("function"==typeof attachEvent?attachEvent("onunload",a):"function"==typeof addEventListener&&(s="onpagehide"in self?"pagehide":"unload",addEventListener(s,a,!1)))},function(t,e,n){function o(t){var e=t&&t.forceBase64;u&&!e||(this.supportsBinary=!1),i.call(this,t)}var i=n(17),r=n(26),a=n(18),s=n(27),c=n(28);n(3)("engine.io-client:polling"),t.exports=o;var u=null!=new(n(13))({xdomain:!1}).responseType;s(o,i),o.prototype.name="polling",o.prototype.doOpen=function(){this.poll()},o.prototype.pause=function(t){function e(){o.readyState="paused",t()}var n,o=this;this.readyState="pausing",this.polling||!this.writable?(n=0,this.polling&&(n++,this.once("pollComplete",function(){--n||e()})),this.writable||(n++,this.once("drain",function(){--n||e()}))):e()},o.prototype.poll=function(){this.polling=!0,this.doPoll(),this.emit("poll")},o.prototype.onData=function(t){var o=this;a.decodePayload(t,this.socket.binaryType,function(t,e,n){return"opening"===o.readyState&&o.onOpen(),"close"===t.type?(o.onClose(),!1):void o.onPacket(t)}),"closed"!==this.readyState&&(this.polling=!1,this.emit("pollComplete"),"open"===this.readyState&&this.poll())},o.prototype.doClose=function(){function t(){e.write([{type:"close"}])}var e=this;"open"===this.readyState?t():this.once("open",t)},o.prototype.write=function(t){var e=this;this.writable=!1;function n(){e.writable=!0,e.emit("drain")}a.encodePayload(t,this.supportsBinary,function(t){e.doWrite(t,n)})},o.prototype.uri=function(){var t=this.query||{},e=this.secure?"https":"http",n="";return!1!==this.timestampRequests&&(t[this.timestampParam]=c()),this.supportsBinary||t.sid||(t.b64=1),t=r.encode(t),this.port&&("https"==e&&443!==Number(this.port)||"http"==e&&80!==Number(this.port))&&(n=":"+this.port),t.length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t}},function(t,e,n){function o(t){this.path=t.path,this.hostname=t.hostname,this.port=t.port,this.secure=t.secure,this.query=t.query,this.timestampParam=t.timestampParam,this.timestampRequests=t.timestampRequests,this.readyState="",this.agent=t.agent||!1,this.socket=t.socket,this.enablesXDR=t.enablesXDR,this.withCredentials=t.withCredentials,this.pfx=t.pfx,this.key=t.key,this.passphrase=t.passphrase,this.cert=t.cert,this.ca=t.ca,this.ciphers=t.ciphers,this.rejectUnauthorized=t.rejectUnauthorized,this.forceNode=t.forceNode,this.isReactNative=t.isReactNative,this.extraHeaders=t.extraHeaders,this.localAddress=t.localAddress}var i=n(18);n(5)((t.exports=o).prototype),o.prototype.onError=function(t,e){var n=new Error(t);return n.type="TransportError",n.description=e,this.emit("error",n),this},o.prototype.open=function(){return"closed"!==this.readyState&&""!==this.readyState||(this.readyState="opening",this.doOpen()),this},o.prototype.close=function(){return"opening"!==this.readyState&&"open"!==this.readyState||(this.doClose(),this.onClose()),this},o.prototype.send=function(t){if("open"!==this.readyState)throw new Error("Transport not open");this.write(t)},o.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},o.prototype.onData=function(t){var e=i.decodePacket(t,this.socket.binaryType);this.onPacket(e)},o.prototype.onPacket=function(t){this.emit("packet",t)},o.prototype.onClose=function(){this.readyState="closed",this.emit("close")}},function(t,p,e){function s(t,e,n){if(!e)return p.encodeBase64Packet(t,n);if(h)return function(t,e,n){if(!e)return p.encodeBase64Packet(t,n);var o=new FileReader;return o.onload=function(){p.encodePacket({type:t.type,data:o.result},e,!0,n)},o.readAsArrayBuffer(t.data)}(t,e,n);var o=new Uint8Array(1);return o[0]=d[t.type],n(new v([o.buffer,t.data]))}function i(t,e,n){for(var i=new Array(t.length),o=c(t.length,n),r=0;r<t.length;r++)!function(n,t,o){e(t,function(t,e){i[n]=e,o(t,i)})}(r,t[r],o)}var r,n=e(19),a=e(20),f=e(21),c=e(22),u=e(23);"undefined"!=typeof ArrayBuffer&&(r=e(24));var o="undefined"!=typeof navigator&&/Android/i.test(navigator.userAgent),l="undefined"!=typeof navigator&&/PhantomJS/i.test(navigator.userAgent),h=o||l;p.protocol=3;var d=p.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},g=n(d),m={type:"error",data:"parser error"},v=e(25);p.encodePacket=function(t,e,n,o){"function"==typeof e&&(o=e,e=!1),"function"==typeof n&&(o=n,n=null);var i,r=void 0===t.data?void 0:t.data.buffer||t.data;if("undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer)return function(t,e,n){if(!e)return p.encodeBase64Packet(t,n);var o=t.data,i=new Uint8Array(o),r=new Uint8Array(1+o.byteLength);r[0]=d[t.type];for(var a=0;a<i.length;a++)r[a+1]=i[a];return n(r.buffer)}(t,e,o);if(void 0!==v&&r instanceof v)return s(t,e,o);if(r&&r.base64)return i=t,o("b"+p.packets[i.type]+i.data.data);var a=d[t.type];return void 0!==t.data&&(a+=n?u.encode(String(t.data),{strict:!1}):String(t.data)),o(""+a)},p.encodeBase64Packet=function(e,n){var o,i="b"+p.packets[e.type];if(void 0!==v&&e.data instanceof v){var r=new FileReader;return r.onload=function(){var t=r.result.split(",")[1];n(i+t)},r.readAsDataURL(e.data)}try{o=String.fromCharCode.apply(null,new Uint8Array(e.data))}catch(t){for(var a=new Uint8Array(e.data),s=new Array(a.length),c=0;c<a.length;c++)s[c]=a[c];o=String.fromCharCode.apply(null,s)}return i+=btoa(o),n(i)},p.decodePacket=function(t,e,n){if(void 0===t)return m;if("string"==typeof t){if("b"===t.charAt(0))return p.decodeBase64Packet(t.substr(1),e);if(n&&!1===(t=function(t){try{t=u.decode(t,{strict:!1})}catch(t){return!1}return t}(t)))return m;var o=t.charAt(0);return Number(o)==o&&g[o]?1<t.length?{type:g[o],data:t.substring(1)}:{type:g[o]}:m}var o=new Uint8Array(t)[0],i=f(t,1);return v&&"blob"===e&&(i=new v([i])),{type:g[o],data:i}},p.decodeBase64Packet=function(t,e){var n=g[t.charAt(0)];if(!r)return{type:n,data:{base64:!0,data:t.substr(1)}};var o=r.decode(t.substr(1));return"blob"===e&&v&&(o=new v([o])),{type:n,data:o}},p.encodePayload=function(t,e,n){"function"==typeof e&&(n=e,e=null);var o=a(t);return e&&o?v&&!h?p.encodePayloadAsBlob(t,n):p.encodePayloadAsArrayBuffer(t,n):t.length?void i(t,function(t,n){p.encodePacket(t,!!o&&e,!1,function(t){var e;n(null,(e=t).length+":"+e)})},function(t,e){return n(e.join(""))}):n("0:")},p.decodePayload=function(t,e,n){if("string"!=typeof t)return p.decodePayloadAsBinary(t,e,n);var o;if("function"==typeof e&&(n=e,e=null),""===t)return n(m,0,1);for(var i,r,a="",s=0,c=t.length;s<c;s++){var u=t.charAt(s);if(":"===u){if(""===a||a!=(i=Number(a)))return n(m,0,1);if(a!=(r=t.substr(s+1,i)).length)return n(m,0,1);if(r.length){if(o=p.decodePacket(r,e,!1),m.type===o.type&&m.data===o.data)return n(m,0,1);if(!1===n(o,s+i,c))return}s+=i,a=""}else a+=u}return""!==a?n(m,0,1):void 0},p.encodePayloadAsArrayBuffer=function(t,o){return t.length?void i(t,function(t,e){p.encodePacket(t,!0,!0,function(t){return e(null,t)})},function(t,e){var n=e.reduce(function(t,e){var n="string"==typeof e?e.length:e.byteLength;return t+n.toString().length+n+2},0),a=new Uint8Array(n),s=0;return e.forEach(function(t){var e="string"==typeof t,n=t;if(e){for(var o=new Uint8Array(t.length),i=0;i<t.length;i++)o[i]=t.charCodeAt(i);n=o.buffer}a[s++]=e?0:1;for(var r=n.byteLength.toString(),i=0;i<r.length;i++)a[s++]=parseInt(r[i]);a[s++]=255;for(o=new Uint8Array(n),i=0;i<o.length;i++)a[s++]=o[i]}),o(a.buffer)}):o(new ArrayBuffer(0))},p.encodePayloadAsBlob=function(t,n){i(t,function(t,s){p.encodePacket(t,!0,!0,function(t){var e=new Uint8Array(1);if(e[0]=1,"string"==typeof t){for(var n=new Uint8Array(t.length),o=0;o<t.length;o++)n[o]=t.charCodeAt(o);t=n.buffer,e[0]=0}for(var i,r=(t instanceof ArrayBuffer?t.byteLength:t.size).toString(),a=new Uint8Array(r.length+1),o=0;o<r.length;o++)a[o]=parseInt(r[o]);a[r.length]=255,v&&(i=new v([e.buffer,a.buffer,t]),s(null,i))})},function(t,e){return n(new v(e))})},p.decodePayloadAsBinary=function(t,n,o){"function"==typeof n&&(o=n,n=null);for(var e=t,i=[];0<e.byteLength;){for(var r=new Uint8Array(e),a=0===r[0],s="",c=1;255!==r[c];c++){if(310<s.length)return o(m,0,1);s+=r[c]}e=f(e,2+s.length),s=parseInt(s);var u=f(e,0,s);if(a)try{u=String.fromCharCode.apply(null,new Uint8Array(u))}catch(t){var l=new Uint8Array(u);u="";for(c=0;c<l.length;c++)u+=String.fromCharCode(l[c])}i.push(u),e=f(e,s)}var h=i.length;i.forEach(function(t,e){o(p.decodePacket(t,n,!0),e,h)})}},function(t,e){t.exports=Object.keys||function(t){var e=[],n=Object.prototype.hasOwnProperty;for(var o in t)n.call(t,o)&&e.push(o);return e}},function(t,e,n){var r=n(7),o=Object.prototype.toString,a="function"==typeof Blob||"undefined"!=typeof Blob&&"[object BlobConstructor]"===o.call(Blob),s="function"==typeof File||"undefined"!=typeof File&&"[object FileConstructor]"===o.call(File);t.exports=function t(e){if(!e||"object"!=typeof e)return!1;if(r(e)){for(var n=0,o=e.length;n<o;n++)if(t(e[n]))return!0;return!1}if("function"==typeof Buffer&&Buffer.isBuffer&&Buffer.isBuffer(e)||"function"==typeof ArrayBuffer&&e instanceof ArrayBuffer||a&&e instanceof Blob||s&&e instanceof File)return!0;if(e.toJSON&&"function"==typeof e.toJSON&&1===arguments.length)return t(e.toJSON(),!0);for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&t(e[i]))return!0;return!1}},function(t,e){t.exports=function(t,e,n){var o=t.byteLength;if(e=e||0,n=n||o,t.slice)return t.slice(e,n);if(e<0&&(e+=o),n<0&&(n+=o),o<n&&(n=o),o<=e||n<=e||0===o)return new ArrayBuffer(0);for(var i=new Uint8Array(t),r=new Uint8Array(n-e),a=e,s=0;a<n;a++,s++)r[s]=i[a];return r.buffer}},function(t,e){function a(){}t.exports=function(t,n,o){function i(t,e){if(i.count<=0)throw new Error("after called too many times");--i.count,t?(r=!0,n(t),n=o):0!==i.count||r||n(null,e)}var r=!1;return o=o||a,0===(i.count=t)?n():i}},function(t,e){function s(t){for(var e,n,o=[],i=0,r=t.length;i<r;)55296<=(e=t.charCodeAt(i++))&&e<=56319&&i<r?56320==(64512&(n=t.charCodeAt(i++)))?o.push(((1023&e)<<10)+(1023&n)+65536):(o.push(e),i--):o.push(e);return o}function c(t,e){if(!(55296<=t&&t<=57343))return 1;if(e)throw Error("Lone surrogate U+"+t.toString(16).toUpperCase()+" is not a scalar value")}function u(t,e){return p(t>>e&63|128)}function r(){if(l<=h)throw Error("Invalid byte index");var t=255&a[h];if(h++,128==(192&t))return 63&t;throw Error("Invalid continuation byte")}var a,l,h,p=String.fromCharCode;t.exports={version:"2.1.2",encode:function(t,e){for(var n=!1!==(e=e||{}).strict,o=s(t),i=o.length,r=-1,a="";++r<i;)a+=function(t,e){if(0==(4294967168&t))return p(t);var n="";return 0==(4294965248&t)?n=p(t>>6&31|192):0==(4294901760&t)?(c(t,e)||(t=65533),n=p(t>>12&15|224),n+=u(t,6)):0==(4292870144&t)&&(n=p(t>>18&7|240),n+=u(t,12),n+=u(t,6)),n+p(63&t|128)}(o[r],n);return a},decode:function(t,e){var n=!1!==(e=e||{}).strict;a=s(t),l=a.length,h=0;for(var o,i=[];!1!==(o=function(t){var e,n;if(l<h)throw Error("Invalid byte index");if(h==l)return!1;if(e=255&a[h],h++,0==(128&e))return e;if(192==(224&e)){if(128<=(n=(31&e)<<6|r()))return n;throw Error("Invalid continuation byte")}if(224==(240&e)){if(2048<=(n=(15&e)<<12|r()<<6|r()))return c(n,t)?n:65533;throw Error("Invalid continuation byte")}if(240==(248&e)&&(65536<=(n=(7&e)<<18|r()<<12|r()<<6|r())&&n<=1114111))return n;throw Error("Invalid UTF-8 detected")}(n));)i.push(o);return function(t){for(var e,n=t.length,o=-1,i="";++o<n;)65535<(e=t[o])&&(i+=p((e-=65536)>>>10&1023|55296),e=56320|1023&e),i+=p(e);return i}(i)}}},function(t,e){!function(){"use strict";for(var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",h=new Uint8Array(256),t=0;t<r.length;t++)h[r.charCodeAt(t)]=t;e.encode=function(t){for(var e=new Uint8Array(t),n=e.length,o="",i=0;i<n;i+=3)o+=r[e[i]>>2],o+=r[(3&e[i])<<4|e[i+1]>>4],o+=r[(15&e[i+1])<<2|e[i+2]>>6],o+=r[63&e[i+2]];return n%3==2?o=o.substring(0,o.length-1)+"=":n%3==1&&(o=o.substring(0,o.length-2)+"=="),o},e.decode=function(t){var e,n,o,i,r=.75*t.length,a=t.length,s=0;"="===t[t.length-1]&&(r--,"="===t[t.length-2]&&r--);for(var c=new ArrayBuffer(r),u=new Uint8Array(c),l=0;l<a;l+=4)e=h[t.charCodeAt(l)],n=h[t.charCodeAt(l+1)],o=h[t.charCodeAt(l+2)],i=h[t.charCodeAt(l+3)],u[s++]=e<<2|n>>4,u[s++]=(15&n)<<4|o>>2,u[s++]=(3&o)<<6|63&i;return c}}()},function(t,e){function o(t){return t.map(function(t){if(t.buffer instanceof ArrayBuffer){var e,n=t.buffer;return t.byteLength!==n.byteLength&&((e=new Uint8Array(t.byteLength)).set(new Uint8Array(n,t.byteOffset,t.byteLength)),n=e.buffer),n}return t})}function n(t,e){e=e||{};var n=new r;return o(t).forEach(function(t){n.append(t)}),e.type?n.getBlob(e.type):n.getBlob()}function i(t,e){return new Blob(o(t),e||{})}var r=void 0!==r?r:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:"undefined"!=typeof MSBlobBuilder?MSBlobBuilder:"undefined"!=typeof MozBlobBuilder&&MozBlobBuilder,a=function(){try{return 2===new Blob(["hi"]).size}catch(t){return!1}}(),s=a&&function(){try{return 2===new Blob([new Uint8Array([1,2])]).size}catch(t){return!1}}(),c=r&&r.prototype.append&&r.prototype.getBlob;"undefined"!=typeof Blob&&(n.prototype=Blob.prototype,i.prototype=Blob.prototype),t.exports=a?s?Blob:i:c?n:void 0},function(t,e){e.encode=function(t){var e="";for(var n in t)t.hasOwnProperty(n)&&(e.length&&(e+="&"),e+=encodeURIComponent(n)+"="+encodeURIComponent(t[n]));return e},e.decode=function(t){for(var e={},n=t.split("&"),o=0,i=n.length;o<i;o++){var r=n[o].split("=");e[decodeURIComponent(r[0])]=decodeURIComponent(r[1])}return e}},function(t,e){t.exports=function(t,e){function n(){}n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},function(t,e){"use strict";function n(t){for(var e="";e=r[t%a]+e,0<(t=Math.floor(t/a)););return e}function o(){var t=n(+new Date);return t!==i?(c=0,i=t):t+"."+n(c++)}for(var i,r="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),a=64,s={},c=0,u=0;u<a;u++)s[r[u]]=u;o.encode=n,o.decode=function(t){var e=0;for(u=0;u<t.length;u++)e=e*a+s[t.charAt(u)];return e},t.exports=o},function(n,t,s){(function(o){function i(){}function t(t){var e;r.call(this,t),this.query=this.query||{},a||(e="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==o?o:{},a=e.___eio=e.___eio||[]),this.index=a.length;var n=this;a.push(function(t){n.onData(t)}),this.query.j=this.index,"function"==typeof addEventListener&&addEventListener("beforeunload",function(){n.script&&(n.script.onerror=i)},!1)}var r=s(16),e=s(27);n.exports=t;var a,u=/\n/g,l=/\\n/g;e(t,r),t.prototype.supportsBinary=!1,t.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),r.prototype.doClose.call(this)},t.prototype.doPoll=function(){var e=this,t=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),t.async=!0,t.src=this.uri(),t.onerror=function(t){e.onError("jsonp poll error",t)};var n=document.getElementsByTagName("script")[0];n?n.parentNode.insertBefore(t,n):(document.head||document.body).appendChild(t),this.script=t,"undefined"!=typeof navigator&&/gecko/i.test(navigator.userAgent)&&setTimeout(function(){var t=document.createElement("iframe");document.body.appendChild(t),document.body.removeChild(t)},100)},t.prototype.doWrite=function(t,e){function n(){o(),e()}function o(){if(c.iframe)try{c.form.removeChild(c.iframe)}catch(t){c.onError("jsonp polling iframe removal error",t)}try{var t='<iframe src="javascript:0" name="'+c.iframeId+'">';i=document.createElement(t)}catch(t){(i=document.createElement("iframe")).name=c.iframeId,i.src="javascript:0"}i.id=c.iframeId,c.form.appendChild(i),c.iframe=i}var i,r,a,s,c=this;this.form||(r=document.createElement("form"),a=document.createElement("textarea"),s=this.iframeId="eio_iframe_"+this.index,r.className="socketio",r.style.position="absolute",r.style.top="-1000px",r.style.left="-1000px",r.target=s,r.method="POST",r.setAttribute("accept-charset","utf-8"),a.name="d",r.appendChild(a),document.body.appendChild(r),this.form=r,this.area=a),this.form.action=this.uri(),o(),t=t.replace(l,"\\\n"),this.area.value=t.replace(u,"\\n");try{this.form.submit()}catch(t){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){"complete"===c.iframe.readyState&&n()}:this.iframe.onload=n}}).call(t,function(){return this}())},function(t,e,n){function o(t){t&&t.forceBase64&&(this.supportsBinary=!1),this.perMessageDeflate=t.perMessageDeflate,this.usingBrowserWebSocket=i&&!t.forceNode,this.protocols=t.protocols,this.usingBrowserWebSocket||(h=r),a.call(this,t)}var i,r,a=n(17),s=n(18),c=n(26),u=n(27),l=n(28);if(n(3)("engine.io-client:websocket"),"undefined"!=typeof WebSocket?i=WebSocket:"undefined"!=typeof self&&(i=self.WebSocket||self.MozWebSocket),"undefined"==typeof window)try{r=n(31)}catch(t){}var h=i||r;u(t.exports=o,a),o.prototype.name="websocket",o.prototype.supportsBinary=!0,o.prototype.doOpen=function(){if(this.check()){var t=this.uri(),e=this.protocols,n={agent:this.agent,perMessageDeflate:this.perMessageDeflate};n.pfx=this.pfx,n.key=this.key,n.passphrase=this.passphrase,n.cert=this.cert,n.ca=this.ca,n.ciphers=this.ciphers,n.rejectUnauthorized=this.rejectUnauthorized,this.extraHeaders&&(n.headers=this.extraHeaders),this.localAddress&&(n.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?e?new h(t,e):new h(t):new h(t,e,n)}catch(t){return this.emit("error",t)}void 0===this.ws.binaryType&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},o.prototype.addEventListeners=function(){var e=this;this.ws.onopen=function(){e.onOpen()},this.ws.onclose=function(){e.onClose()},this.ws.onmessage=function(t){e.onData(t.data)},this.ws.onerror=function(t){e.onError("websocket error",t)}},o.prototype.write=function(t){var o=this;this.writable=!1;for(var i=t.length,e=0,n=i;e<n;e++)!function(n){s.encodePacket(n,o.supportsBinary,function(t){var e;o.usingBrowserWebSocket||(e={},n.options&&(e.compress=n.options.compress),!o.perMessageDeflate||("string"==typeof t?Buffer.byteLength(t):t.length)<o.perMessageDeflate.threshold&&(e.compress=!1));try{o.usingBrowserWebSocket?o.ws.send(t):o.ws.send(t,e)}catch(t){}--i||(o.emit("flush"),setTimeout(function(){o.writable=!0,o.emit("drain")},0))})}(t[e])},o.prototype.onClose=function(){a.prototype.onClose.call(this)},o.prototype.doClose=function(){void 0!==this.ws&&this.ws.close()},o.prototype.uri=function(){var t=this.query||{},e=this.secure?"wss":"ws",n="";return this.port&&("wss"==e&&443!==Number(this.port)||"ws"==e&&80!==Number(this.port))&&(n=":"+this.port),this.timestampRequests&&(t[this.timestampParam]=l()),this.supportsBinary||(t.b64=1),(t=c.encode(t)).length&&(t="?"+t),e+"://"+(-1!==this.hostname.indexOf(":")?"["+this.hostname+"]":this.hostname)+n+this.path+t},o.prototype.check=function(){return!(!h||"__initialize"in h&&this.name===o.prototype.name)}},function(t,e){},function(t,e){var o=[].indexOf;t.exports=function(t,e){if(o)return t.indexOf(e);for(var n=0;n<t.length;++n)if(t[n]===e)return n;return-1}},function(t,e,n){"use strict";function o(t,e,n){this.io=t,this.nsp=e,(this.json=this).ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},n&&n.query&&(this.query=n.query),this.io.autoConnect&&this.open()}var 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},r=n(4),a=n(5),s=n(34),c=n(35),u=n(36),l=(n(3)("socket.io-client:socket"),n(26)),h=n(20);t.exports=o;var p={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},f=a.prototype.emit;a(o.prototype),o.prototype.subEvents=function(){var t;this.subs||(t=this.io,this.subs=[c(t,"open",u(this,"onopen")),c(t,"packet",u(this,"onpacket")),c(t,"close",u(this,"onclose"))])},o.prototype.open=o.prototype.connect=function(){return this.connected||(this.subEvents(),this.io.open(),"open"===this.io.readyState&&this.onopen(),this.emit("connecting")),this},o.prototype.send=function(){var t=s(arguments);return t.unshift("message"),this.emit.apply(this,t),this},o.prototype.emit=function(t){if(p.hasOwnProperty(t))return f.apply(this,arguments),this;var e=s(arguments),n={type:(void 0!==this.flags.binary?this.flags.binary:h(e))?r.BINARY_EVENT:r.EVENT,data:e,options:{}};return n.options.compress=!this.flags||!1!==this.flags.compress,"function"==typeof e[e.length-1]&&(this.acks[this.ids]=e.pop(),n.id=this.ids++),this.connected?this.packet(n):this.sendBuffer.push(n),this.flags={},this},o.prototype.packet=function(t){t.nsp=this.nsp,this.io.packet(t)},o.prototype.onopen=function(){var t;"/"!==this.nsp&&(this.query?(t="object"===i(this.query)?l.encode(this.query):this.query,this.packet({type:r.CONNECT,query:t})):this.packet({type:r.CONNECT}))},o.prototype.onclose=function(t){this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",t)},o.prototype.onpacket=function(t){var e=t.nsp===this.nsp,n=t.type===r.ERROR&&"/"===t.nsp;if(e||n)switch(t.type){case r.CONNECT:this.onconnect();break;case r.EVENT:case r.BINARY_EVENT:this.onevent(t);break;case r.ACK:case r.BINARY_ACK:this.onack(t);break;case r.DISCONNECT:this.ondisconnect();break;case r.ERROR:this.emit("error",t.data)}},o.prototype.onevent=function(t){var e=t.data||[];null!=t.id&&e.push(this.ack(t.id)),this.connected?f.apply(this,e):this.receiveBuffer.push(e)},o.prototype.ack=function(e){var n=this,o=!1;return function(){var t;o||(o=!0,t=s(arguments),n.packet({type:h(t)?r.BINARY_ACK:r.ACK,id:e,data:t}))}},o.prototype.onack=function(t){var e=this.acks[t.id];"function"==typeof e&&(e.apply(this,t.data),delete this.acks[t.id])},o.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emit("connect"),this.emitBuffered()},o.prototype.emitBuffered=function(){for(var t=0;t<this.receiveBuffer.length;t++)f.apply(this,this.receiveBuffer[t]);for(this.receiveBuffer=[],t=0;t<this.sendBuffer.length;t++)this.packet(this.sendBuffer[t]);this.sendBuffer=[]},o.prototype.ondisconnect=function(){this.destroy(),this.onclose("io server disconnect")},o.prototype.destroy=function(){if(this.subs){for(var t=0;t<this.subs.length;t++)this.subs[t].destroy();this.subs=null}this.io.destroy(this)},o.prototype.close=o.prototype.disconnect=function(){return this.connected&&this.packet({type:r.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},o.prototype.compress=function(t){return this.flags.compress=t,this},o.prototype.binary=function(t){return this.flags.binary=t,this}},function(t,e){t.exports=function(t,e){for(var n=[],o=(e=e||0)||0;o<t.length;o++)n[o-e]=t[o];return n}},function(t,e){"use strict";t.exports=function(t,e,n){return t.on(e,n),{destroy:function(){t.removeListener(e,n)}}}},function(t,e){var o=[].slice;t.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var n=o.call(arguments,2);return function(){return e.apply(t,n.concat(o.call(arguments)))}}},function(t,e){function n(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=0<t.jitter&&t.jitter<=1?t.jitter:0,this.attempts=0}(t.exports=n).prototype.duration=function(){var t,e,n=this.ms*Math.pow(this.factor,this.attempts++);return this.jitter&&(t=Math.random(),e=Math.floor(t*this.jitter*n),n=0==(1&Math.floor(10*t))?n-e:n+e),0|Math.min(n,this.max)},n.prototype.reset=function(){this.attempts=0},n.prototype.setMin=function(t){this.ms=t},n.prototype.setMax=function(t){this.max=t},n.prototype.setJitter=function(t){this.jitter=t}}],n.c=i,n.p="",n(0);function n(t){if(i[t])return i[t].exports;var e=i[t]={exports:{},id:t,loaded:!1};return o[t].call(e.exports,e,e.exports,n),e.loaded=!0,e.exports}var o,i},"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.io=e():t.io=e(),n=this,o=function(){"use strict";function x(t){t.focus?t.focus():t.setActive()}function M(t,e){t.classList.add(e)}function P(t,e){t.classList.remove(e)}function N(t,e){return t.classList.contains(e)}function L(t,e){return[].slice.call(t.getElementsByClassName(e))}function O(t,e){return"object"==typeof t?t:(e||j).querySelector(t)}function S(t,e){var n=e.charAt(0),o=e.substr(1);if("."===n){for(;t&&t!==j;t=t[C])if(null!==O(e,t[C])&&N(t,o))return t}else if("#"===n)for(;t&&t!==j;t=t[C])if(t.id===o)return t;return!1}function F(t,e,n,o){o=o||!1,t.addEventListener(e,n,o)}function _(t,e,n,o){o=o||!1,t.removeEventListener(e,n,o)}function o(n,o,i,r){F(n,o,function t(e){i(e),_(n,o,t,r)},r)}function w(t){var e=et?I.getComputedStyle(t)[a]:0;return"number"!=typeof(e=parseFloat(e))||isNaN(e)?0:1e3*e}function D(t,e){var n=0;w(t)?o(t,r,function(t){n||e(t),n=1}):setTimeout(function(){n||e(),n=1},17)}function R(t,e,n){var o=new CustomEvent(t+".bs."+e);o.relatedTarget=n,this.dispatchEvent(o)}function B(){return{y:I.pageYOffset||z.scrollTop,x:I.pageXOffset||z.scrollLeft}}function E(t,e,n,o){var i,r,a,s,c,u,l=e.offsetWidth,h=e.offsetHeight,p=z.clientWidth||j[q].clientWidth,f=z.clientHeight||j[q].clientHeight,d=t.getBoundingClientRect(),g=o===j[q]?B():{x:o.offsetLeft+o.scrollLeft,y:o.offsetTop+o.scrollTop},m=d.right-d[J],v=d.bottom-d.top,y=N(e,"popover"),b=O(".arrow",e),x=d.top+v/2-h/2<0,w=d[J]+m/2-l/2<0,C=d[J]+l/2+m/2>=p,k=d.top+h/2+v/2>=f,S=d.top-h<0,E=d[J]-l<0,A=d.top+h+v>=f,T=d[J]+l+m>=p;n="right"===(n=(n="bottom"===(n=(n=(n===J||"right"===n)&&E&&T?Q:n)===Q&&S?"bottom":n)&&A?Q:n)===J&&E?"right":n)&&T?J:n,-1===e.className.indexOf(n)&&(e.className=e.className.replace(tt,n)),c=b.offsetWidth,u=b.offsetHeight,n===J||"right"===n?(r=n===J?d[J]+g.x-l-(y?c:0):d[J]+g.x+m,a=x?(i=d.top+g.y,v/2-c):k?(i=d.top+g.y-h+v,h-v/2-c):(i=d.top+g.y-h/2+v/2,h/2-(y?.9*u:u/2))):n!==Q&&"bottom"!==n||(i=n===Q?d.top+g.y-h-(y?u:0):d.top+g.y+v,s=w?(r=0,d[J]+m/2-c):C?(r=p-1.01*l,l-(p-d[J])+m/2-c/2):(r=d[J]+g.x-l/2+m/2,l/2-(y?c:c/2))),e[Y].top=i+"px",e[Y][J]=r+"px",a&&(b[Y].top=a+"px"),s&&(b[Y][J]=s+"px")}var I="undefined"!=typeof global?global:this||window,j=document,z=j.documentElement,q="body",t=I.BSN={},i=t.supports=[],g="data-toggle",A="delay",H="target",T="animation",U="onmouseleave"in j?["mouseenter","mouseleave"]:["mouseover","mouseout"],V="touchstart",Z="touchend",$="touchmove",W="getAttribute",X="setAttribute",C="parentNode",G="length",e="Transition",n="Webkit",Y="style",v="push",K="active",J="left",Q="top",tt=/\b(top|bottom|left|right)+/,k=0,et=n+e in z[Y]||e.toLowerCase()in z[Y],r=n+e in z[Y]?n.toLowerCase()+e+"End":e.toLowerCase()+"end",a=n+"Duration"in z[Y]?n.toLowerCase()+e+"Duration":e.toLowerCase()+"Duration",nt=!!function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});o(I,"testPassive",null,e)}catch(t){}return t}()&&{passive:!0};t.version="2.0.27";function s(e){function t(t){o=S(t[H],".alert"),(e=O('[data-dismiss="alert"]',o))&&o&&(e===t[H]||e.contains(t[H]))&&n.close()}e=O(e);var n=this,o=S(e,".alert"),i=function(){R.call(o,"closed","alert"),_(e,"click",t),o[C].removeChild(o)};this.close=function(){o&&e&&N(o,"show")&&(R.call(o,"close","alert"),P(o,"show"),o&&(N(o,"fade")?D(o,i):i()))},"Alert"in e||F(e,"click",t),e.Alert=n}i[v](["Alert",s,'[data-dismiss="alert"]']);function c(c){function t(t){M(t[H][C],"focus")}function e(t){P(t[H][C],"focus")}c=O(c);var u=!1,l="checked",n=function(t){var e="LABEL"===t[H].tagName?t[H]:"LABEL"===t[H][C].tagName?t[H][C]:null;if(e){var n=L(e[C],"btn"),o=e.getElementsByTagName("INPUT")[0];if(o){if("checkbox"===o.type&&(o[l]?(P(e,K),o[W](l),o.removeAttribute(l),o[l]=!1):(M(e,K),o[W](l),o[X](l,l),o[l]=!0),u||(u=!0,R.call(o,"change","button"),R.call(c,"change","button"))),"radio"===o.type&&!u&&(!o[l]||0===t.screenX&&0==t.screenY)){M(e,K),M(e,"focus"),o[X](l,l),o[l]=!0,R.call(o,"change","button"),R.call(c,"change","button"),u=!0;for(var i=0,r=n[G];i<r;i++){var a=n[i],s=a.getElementsByTagName("INPUT")[0];a!==e&&N(a,K)&&(P(a,K),s.removeAttribute(l),s[l]=!1,R.call(s,"change","button"))}}setTimeout(function(){u=!1},50)}}};if(!("Button"in c)){F(c,"click",n),F(c,"keyup",function(t){32===(t.which||t.keyCode)&&t[H]===j.activeElement&&n(t)}),F(c,"keydown",function(t){32===(t.which||t.keyCode)&&t.preventDefault()});for(var o=L(c,"btn"),i=0;i<o.length;i++){var r=o[i].getElementsByTagName("INPUT")[0];F(r,"focus",t),F(r,"blur",e)}}for(var a=L(c,"btn"),s=a[G],i=0;i<s;i++)!N(a[i],K)&&O("input:checked",a[i])&&M(a[i],K);c.Button=this}i[v](["Button",c,'[data-toggle="buttons"]']);function u(r,t){t=t||{};var e=(r=O(r))[W]("data-interval"),n=t.interval,o="false"===e?0:parseInt(e),i="hover"===r[W]("data-pause")||!1,a="true"===r[W]("data-keyboard")||!1;this.keyboard=!0===t.keyboard||a,this.pause=!("hover"!==t.pause&&!i)&&"hover",this.interval="number"==typeof n?n:!1===n||0===o||!1===o?0:isNaN(o)?5e3:o;var s,c,u,l,h,p,f,d=this,g=r.index=0,m=r.timer=0,v=!1,y=!1,b=null,x=null,w=null,C=L(r,"carousel-item"),k=C[G],S=this.direction=J,E=L(r,"carousel-control-prev")[0],A=L(r,"carousel-control-next")[0],T=O(".carousel-indicators",r),B=T&&T.getElementsByTagName("LI")||[];k<2||(s=function(){!1===d.interval||N(r,"paused")||(M(r,"paused"),v||(clearInterval(m),m=null))},c=function(){!1!==d.interval&&N(r,"paused")&&(P(r,"paused"),v||(clearInterval(m),m=null),v||d.cycle())},u=function(t){var e;t.preventDefault(),v||((e=t.currentTarget||t.srcElement)===A?g++:e===E&&g--,d.slideTo(g))},l=function(t){t(r,$,h,nt),t(r,Z,p,nt)},h=function(t){return y?(x=parseInt(t.touches[0].pageX),"touchmove"===t.type&&1<t.touches[G]?(t.preventDefault(),!1):void 0):void t.preventDefault()},p=function(t){if(y&&!v&&(w=x||parseInt(t.touches[0].pageX),y)){if((!r.contains(t[H])||!r.contains(t.relatedTarget))&&Math.abs(b-w)<75)return!1;x<b?g++:b<x&&g--,y=!1,d.slideTo(g),l(_)}},f=function(t){for(var e=0,n=B[G];e<n;e++)P(B[e],K);B[t]&&M(B[t],K)},this.cycle=function(){m&&(clearInterval(m),m=null),m=setInterval(function(){var t,e;t=r.getBoundingClientRect(),e=I.innerHeight||z.clientHeight,t.top<=e&&0<=t.bottom&&(g++,d.slideTo(g))},this.interval)},this.slideTo=function(n){var o,i;v||(i=this.getActiveIndex())!==n&&(i<n||0===i&&n===k-1?S=d.direction=J:(n<i||i===k-1&&0===n)&&(S=d.direction="right"),n<0?n=k-1:k<=n&&(n=0),o=S===J?"next":"prev",R.call(r,"slide","carousel",C[g=n]),v=!0,clearInterval(m),m=null,f(n),et&&N(r,"slide")?(M(C[n],"carousel-item-"+o),C[n].offsetWidth,M(C[n],"carousel-item-"+S),M(C[i],"carousel-item-"+S),D(C[n],function(t){var e=t&&t[H]!==C[n]?1e3*t.elapsedTime+100:20;v&&setTimeout(function(){v=!1,M(C[n],K),P(C[i],K),P(C[n],"carousel-item-"+o),P(C[n],"carousel-item-"+S),P(C[i],"carousel-item-"+S),R.call(r,"slid","carousel",C[n]),j.hidden||!d.interval||N(r,"paused")||d.cycle()},e)})):(M(C[n],K),C[n].offsetWidth,P(C[i],K),setTimeout(function(){v=!1,d.interval&&!N(r,"paused")&&d.cycle(),R.call(r,"slid","carousel",C[n])},100)))},this.getActiveIndex=function(){return C.indexOf(L(r,"carousel-item active")[0])||0},"Carousel"in r||(d.pause&&d.interval&&(F(r,U[0],s),F(r,U[1],c),F(r,V,s,nt),F(r,Z,c,nt)),1<C[G]&&F(r,V,function(t){y||(b=parseInt(t.touches[0].pageX),r.contains(t[H])&&(y=!0,l(F)))},nt),A&&F(A,"click",u),E&&F(E,"click",u),T&&F(T,"click",function(t){if(t.preventDefault(),!v){var e=t[H];if(!e||N(e,K)||!e[W]("data-slide-to"))return!1;g=parseInt(e[W]("data-slide-to"),10),d.slideTo(g)}}),d.keyboard&&F(I,"keydown",function(t){if(!v){switch(t.which){case 39:g++;break;case 37:g--;break;default:return}d.slideTo(g)}})),d.getActiveIndex()<0&&(C[G]&&M(C[0],K),B[G]&&f(0)),d.interval&&d.cycle(),r.Carousel=d)}i[v](["Carousel",u,'[data-ride="carousel"]']);function l(n,t){function o(t,e){R.call(t,"hide","collapse"),t.isAnimating=!0,t[Y].height=t.scrollHeight+"px",P(t,"collapse"),P(t,"show"),M(t,"collapsing"),t.offsetWidth,t[Y].height="0px",D(t,function(){t.isAnimating=!1,t[X]("aria-expanded","false"),e[X]("aria-expanded","false"),P(t,"collapsing"),M(t,"collapse"),t[Y].height="",R.call(t,"hidden","collapse")})}n=O(n),t=t||{};var i,r,e,a,s,c=null,u=null,l=this,h=n[W]("data-parent");this.toggle=function(t){t.preventDefault(),N(u,"show")?l.hide():l.show()},this.hide=function(){u.isAnimating||(o(u,n),M(n,"collapsed"))},this.show=function(){var t,e;c&&(i=O(".collapse.show",c),r=i&&(O('[data-target="#'+i.id+'"]',c)||O('[href="#'+i.id+'"]',c))),u.isAnimating&&(!i||i.isAnimating)||(r&&i!==u&&(o(i,r),M(r,"collapsed")),e=n,R.call(t=u,"show","collapse"),t.isAnimating=!0,M(t,"collapsing"),P(t,"collapse"),t[Y].height=t.scrollHeight+"px",D(t,function(){t.isAnimating=!1,t[X]("aria-expanded","true"),e[X]("aria-expanded","true"),P(t,"collapsing"),M(t,"collapse"),M(t,"show"),t[Y].height="",R.call(t,"shown","collapse")}),P(n,"collapsed"))},"Collapse"in n||F(n,"click",l.toggle),e=n.href&&n[W]("href"),a=n[W]("data-target"),s=e||a&&"#"===a.charAt(0)&&a,(u=s&&O(s)).isAnimating=!1,c=O(t.parent)||h&&S(n,h),n.Collapse=l}i[v](["Collapse",l,'[data-toggle="collapse"]']);function h(s,t){function o(t){(t.href&&"#"===t.href.slice(-1)||t[C]&&t[C].href&&"#"===t[C].href.slice(-1))&&this.preventDefault()}function e(){var t=s.open?F:_;t(j,"click",r),t(j,"keydown",a),t(j,"keyup",p),t(j,"focus",r,!0)}function n(t){u=s,f(),o.call(t,t[H])}s=O(s),this.persist=!0===t||"true"===s[W]("data-persist")||!1;var c=this,i=s[C],u=null,l=O(".dropdown-menu",i),h=function(){for(var t=l.children,e=[],n=0;n<t[G];n++)t[n].children[G]&&"A"===t[n].children[0].tagName&&e[v](t[n].children[0]),"A"===t[n].tagName&&e[v](t[n]);return e}(),r=function(t){var e=t[H],n=e&&(e[W](g)||e[C]&&W in e[C]&&e[C][W](g));"focus"===t.type&&(e===s||e===l||l.contains(e))||(e===l||l.contains(e))&&(c.persist||n)||(u=e===s||s.contains(e)?s:null,d(),o.call(t,e))},a=function(t){var e=t.which||t.keyCode;38!==e&&40!==e||t.preventDefault()},p=function(t){var e=t.which||t.keyCode,n=j.activeElement,o=h.indexOf(n),i=n===s,r=l.contains(n),a=n[C]===l||n[C][C]===l;a&&(o=i?0:38===e?1<o?o-1:0:40===e&&o<h[G]-1?o+1:o,h[o]&&x(h[o])),(h[G]&&a||!h[G]&&(r||i)||!r)&&s.open&&27===e&&(c.toggle(),u=null)},f=function(){R.call(i,"show","dropdown",u),M(l,"show"),M(i,"show"),s[X]("aria-expanded",!0),R.call(i,"shown","dropdown",u),s.open=!0,_(s,"click",n),setTimeout(function(){x(l.getElementsByTagName("INPUT")[0]||s),e()},1)},d=function(){R.call(i,"hide","dropdown",u),P(l,"show"),P(i,"show"),s[X]("aria-expanded",!1),R.call(i,"hidden","dropdown",u),s.open=!1,e(),x(s),setTimeout(function(){F(s,"click",n)},1)};s.open=!1,this.toggle=function(){(N(i,"show")&&s.open?d:f)()},"Dropdown"in s||(!1 in l&&l[X]("tabindex","0"),F(s,"click",n)),s.Dropdown=c}i[v](["Dropdown",h,'[data-toggle="dropdown"]']);function p(n,t){var i,r,o,a,e,s,c,u,l,h,p,f,d,g,m,v=(n=O(n))[W]("data-target")||n[W]("href"),y=O(v),b=N(n,"modal")?n:y;N(n,"modal")&&(n=null),b&&(t=t||{},this.keyboard=!1!==t.keyboard&&"false"!==b[W]("data-keyboard"),this.backdrop="static"!==t.backdrop&&"static"!==b[W]("data-backdrop")||"static",this.backdrop=!1!==t.backdrop&&"false"!==b[W]("data-backdrop")&&this.backdrop,this[T]=!!N(b,"fade"),this.content=t.content,b.isAnimating=!1,s=this,c=null,u=L(z,"fixed-top").concat(L(z,"fixed-bottom")),l=function(){var t,e=I.getComputedStyle(j[q]),n=parseInt(e.paddingRight,10);if(i&&(j[q][Y].paddingRight=n+r+"px",b[Y].paddingRight=r+"px",u[G]))for(var o=0;o<u[G];o++)t=I.getComputedStyle(u[o]).paddingRight,u[o][Y].paddingRight=parseInt(t)+r+"px"},h=function(){var t,e,n;i=j[q].clientWidth<(n=z.getBoundingClientRect(),I.innerWidth||n.right-Math.abs(n[J])),(e=j.createElement("div")).className="modal-scrollbar-measure",j[q].appendChild(e),t=e.offsetWidth-e.clientWidth,j[q].removeChild(e),r=t},p=function(){(o=O(".modal-backdrop"))&&null!==o&&"object"==typeof o&&(k=0,j[q].removeChild(o),o=null)},f=function(){x(b),b.isAnimating=!1,R.call(b,"shown","modal",c),F(I,"resize",s.update,nt),F(b,"click",m),F(j,"keydown",g)},d=function(){b[Y].display="",n&&x(n),R.call(b,"hidden","modal"),L(j,"modal show")[0]||(function(){if(j[q][Y].paddingRight="",b[Y].paddingRight="",u[G])for(var t=0;t<u[G];t++)u[t][Y].paddingRight=""}(),P(j[q],"modal-open"),o&&N(o,"fade")?(P(o,"show"),D(o,p)):p(),_(I,"resize",s.update,nt),_(b,"click",m),_(j,"keydown",g)),b.isAnimating=!1},g=function(t){b.isAnimating||s.keyboard&&27==t.which&&N(b,"show")&&s.hide()},m=function(t){var e;b.isAnimating||(e=t[H],N(b,"show")&&("modal"===e[C][W]("data-dismiss")||"modal"===e[W]("data-dismiss")||e===b&&"static"!==s.backdrop)&&(s.hide(),c=null,t.preventDefault()))},this.toggle=function(){N(b,"show")?this.hide():this.show()},this.show=function(){N(b,"show")||b.isAnimating||(clearTimeout(e),e=setTimeout(function(){b.isAnimating=!0,R.call(b,"show","modal",c);var t,e=L(j,"modal show")[0];e&&e!==b&&("modalTrigger"in e&&e.modalTrigger.Modal.hide(),"Modal"in e&&e.Modal.hide()),!s.backdrop||k||o||(t=j.createElement("div"),null===(o=O(".modal-backdrop"))&&(t[X]("class","modal-backdrop"+(s[T]?" fade":"")),o=t,j[q].appendChild(o)),k=1),o&&!N(o,"show")&&(o.offsetWidth,a=w(o),M(o,"show")),setTimeout(function(){b[Y].display="block",h(),l(),M(j[q],"modal-open"),M(b,"show"),b[X]("aria-hidden",!1),N(b,"fade")?D(b,f):f()},et&&o&&a?a:1)},1))},this.hide=function(){!b.isAnimating&&N(b,"show")&&(clearTimeout(e),e=setTimeout(function(){b.isAnimating=!0,R.call(b,"hide","modal"),o=O(".modal-backdrop"),a=o&&w(o),P(b,"show"),b[X]("aria-hidden",!0),setTimeout(function(){N(b,"fade")?D(b,d):d()},et&&o&&a?a:2)},2))},this.setContent=function(t){O(".modal-content",b).innerHTML=t},this.update=function(){N(b,"show")&&(h(),l())},!n||"Modal"in n||F(n,"click",function(t){var e;b.isAnimating||((e=(e=t[H]).hasAttribute("data-target")||e.hasAttribute("href")?e:e[C])!==n||N(b,"show")||(b.modalTrigger=n,c=n,s.show(),t.preventDefault()))}),s.content&&s.setContent(s.content),n?(n.Modal=s,b.modalTrigger=n):b.Modal=s)}i[v](["Modal",p,'[data-toggle="modal"]']);function f(i,r){i=O(i),r=r||{};var t=i[W]("data-trigger"),e=i[W]("data-animation"),n=i[W]("data-placement"),o=i[W]("data-dismissible"),a=i[W]("data-delay"),s=i[W]("data-container"),c='<button type="button" class="close">×</button>',u=O(r.container),l=O(s),h=S(i,".modal"),p=S(i,".fixed-top"),f=S(i,".fixed-bottom");this.template=r.template?r.template:null,this.trigger=r.trigger?r.trigger:t||"hover",this[T]=r[T]&&"fade"!==r[T]?r[T]:e||"fade",this.placement=r.placement?r.placement:n||Q,this[A]=parseInt(r[A]||a)||200,this.dismissible=!(!r.dismissible&&"true"!==o),this.container=u||l||p||f||h||j[q];var d,g,m,v,y,b,x,w=this,C=r.title||i[W]("data-title")||null,k=r.content||i[W]("data-content")||null;(k||this.template)&&(d=null,g=0,m=this.placement,v=function(t){null!==d&&t[H]===O(".close",d)&&w.hide()},y=function(t){"click"!=w.trigger&&"focus"!=w.trigger||(w.dismissible||t(i,"blur",w.hide)),w.dismissible&&t(j,"click",v),t(I,"resize",w.hide,nt)},b=function(){y(F),R.call(i,"shown","popover")},x=function(){y(_),w.container.removeChild(d),d=g=null,R.call(i,"hidden","popover")},this.toggle=function(){null===d?w.show():w.hide()},this.show=function(){clearTimeout(g),g=setTimeout(function(){null===d&&(m=w.placement,function(){C=r.title||i[W]("data-title"),k=(k=r.content||i[W]("data-content"))?k.trim():null,d=j.createElement("div");var t,e,n,o=j.createElement("div");o[X]("class","arrow"),d.appendChild(o),null!==k&&null===w.template?(d[X]("role","tooltip"),null!==C&&((t=j.createElement("h3"))[X]("class","popover-header"),t.innerHTML=w.dismissible?C+c:C,d.appendChild(t)),(e=j.createElement("div"))[X]("class","popover-body"),e.innerHTML=w.dismissible&&null===C?k+c:k,d.appendChild(e)):(n=j.createElement("div"),w.template=w.template.trim(),n.innerHTML=w.template,d.innerHTML=n.firstChild.innerHTML),w.container.appendChild(d),d[Y].display="block",d[X]("class","popover bs-popover-"+m+" "+w[T])}(),E(i,d,m,w.container),N(d,"show")||M(d,"show"),R.call(i,"show","popover"),w[T]?D(d,b):b())},20)},this.hide=function(){clearTimeout(g),g=setTimeout(function(){d&&null!==d&&N(d,"show")&&(R.call(i,"hide","popover"),P(d,"show"),w[T]?D(d,x):x())},w[A])},"Popover"in i||("hover"===w.trigger?(F(i,U[0],w.show),w.dismissible||F(i,U[1],w.hide)):"click"!=w.trigger&&"focus"!=w.trigger||F(i,w.trigger,w.toggle)),i.Popover=w)}i[v](["Popover",f,'[data-toggle="popover"]']);function d(l,t){l=O(l);var e=O(l[W]("data-target")),n=l[W]("data-offset");if((t=t||{})[H]||e){for(var h,o=t[H]&&O(t[H])||e,i=o&&o.getElementsByTagName("A"),p=parseInt(t.offset||n)||10,f=[],d=[],r=l.offsetHeight<l.scrollHeight?l:I,g=r===I,a=0,s=i[G];a<s;a++){var c=i[a][W]("href"),u=c&&"#"===c.charAt(0)&&"#"!==c.slice(-1)&&O(c);u&&(f[v](i[a]),d[v](u))}var m=function(){h=g?B().y:l.scrollTop;for(var t=0,e=f[G];t<e;t++)!function(t){var e=f[t],n=d[t],o=e[C][C],i=N(o,"dropdown")&&o.getElementsByTagName("A")[0],r=g&&n.getBoundingClientRect(),a=N(e,K)||!1,s=(g?r.top+h:n.offsetTop)-p,c=g?r.bottom+h-p:d[t+1]?d[t+1].offsetTop-p:l.scrollHeight,u=s<=h&&h<c;if(!a&&u)N(e,K)||(M(e,K),i&&!N(i,K)&&M(i,K),R.call(l,"activate","scrollspy",f[t]));else if(u){if(!u&&!a||a&&u);}else N(e,K)&&(P(e,K),i&&N(i,K)&&!L(e[C],K).length&&P(i,K))}(t)};this.refresh=function(){m()},"ScrollSpy"in l||(F(r,"scroll",this.refresh,nt),F(I,"resize",this.refresh,nt)),this.refresh(),l.ScrollSpy=this}}i[v](["ScrollSpy",d,'[data-spy="scroll"]']);function m(t,e){var n=(t=O(t))[W]("data-height");function o(){v[Y].height="",P(v,"collapsing"),m.isAnimating=!1}function i(){v?h?o():setTimeout(function(){v[Y].height=p+"px",v.offsetWidth,D(v,o)},50):m.isAnimating=!1,R.call(a,"shown","tab",s)}function r(){v&&(c[Y].float=J,u[Y].float=J,l=c.scrollHeight),M(u,K),R.call(a,"show","tab",s),P(c,K),R.call(s,"hidden","tab",a),v&&(p=u.scrollHeight,h=p===l,M(v,"collapsing"),v[Y].height=l+"px",v.offsetHeight,c[Y].float="",u[Y].float=""),N(u,"fade")?setTimeout(function(){M(u,"show"),D(u,i)},20):i()}e=e||{},this.height=!!et&&(e.height||"true"===n);var a,s,c,u,l,h,p,f,d,g=this,m=S(t,".nav"),v=!1,y=m&&O(".dropdown-toggle",m);m&&(m.isAnimating=!1,f=function(){var t,e=L(m,K);return 1!==e[G]||N(e[0][C],"dropdown")?1<e[G]&&(t=e[e[G]-1]):t=e[0],t},d=function(){return O(f()[W]("href"))},this.show=function(){u=O((a=a||t)[W]("href")),s=f(),c=d(),m.isAnimating=!0,P(s,K),s[X]("aria-selected","false"),M(a,K),a[X]("aria-selected","true"),y&&(N(t[C],"dropdown-menu")?N(y,K)||M(y,K):N(y,K)&&P(y,K)),R.call(s,"hide","tab",a),N(c,"fade")?(P(c,"show"),D(c,r)):r()},"Tab"in t||F(t,"click",function(t){t.preventDefault(),a=t.currentTarget,m.isAnimating||N(a,K)||g.show()}),g.height&&(v=d()[C]),t.Tab=g)}i[v](["Tab",m,'[data-toggle="tab"]']);function y(t,e){e=e||{};var n=(t=O(t))[W]("data-animation"),o=t[W]("data-autohide"),i=t[W]("data-delay");function r(){P(h,"showing"),M(h,"show"),R.call(h,"shown","toast"),u.autohide&&u.hide()}function a(){M(h,"hide"),R.call(h,"hidden","toast")}function s(){P(h,"show"),u.animation?D(h,a):a()}function c(){clearTimeout(l),l=null,M(h,"hide"),_(t,"click",u.hide),t.Toast=null,h=t=null}this.animation=!1===e.animation||"false"===n?0:1,this.autohide=!1===e.autohide||"false"===o?0:1,this[A]=parseInt(e[A]||i)||500;var u=this,l=0,h=S(t,".toast");this.show=function(){h&&(R.call(h,"show","toast"),u.animation&&M(h,"fade"),P(h,"hide"),M(h,"showing"),u.animation?D(h,r):r())},this.hide=function(t){h&&N(h,"show")&&(R.call(h,"hide","toast"),t?s():l=setTimeout(s,u[A]))},this.dispose=function(){h&&N(h,"show")&&(P(h,"show"),u.animation?D(h,c):c())},"Toast"in t||F(t,"click",u.hide),t.Toast=u}i[v](["Toast",y,'[data-dismiss="toast"]']);function b(n,t){t=t||{};var e=(n=O(n))[W]("data-animation"),o=n[W]("data-placement"),i=n[W]("data-delay"),r=n[W]("data-container"),a=O(t.container),s=O(r),c=S(n,".modal"),u=S(n,".fixed-top"),l=S(n,".fixed-bottom");this[T]=t[T]&&"fade"!==t[T]?t[T]:e||"fade",this.placement=t.placement?t.placement:o||Q,this[A]=parseInt(t[A]||i)||200,this.container=a||s||u||l||c||j[q];var h,p,f=this,d=0,g=this.placement,m=null,v=n[W]("title")||n[W]("data-title")||n[W]("data-original-title");v&&""!=v&&(h=function(){F(I,"resize",f.hide,nt),R.call(n,"shown","tooltip")},p=function(){_(I,"resize",f.hide,nt),f.container.removeChild(m),d=m=null,R.call(n,"hidden","tooltip")},this.show=function(){clearTimeout(d),d=setTimeout(function(){var t,e;null===m&&(g=f.placement,(v=n[W]("title")||n[W]("data-title")||n[W]("data-original-title"))&&""!==v&&((m=j.createElement("div"))[X]("role","tooltip"),m[Y][J]="0",m[Y].top="0",(t=j.createElement("div"))[X]("class","arrow"),m.appendChild(t),(e=j.createElement("div"))[X]("class","tooltip-inner"),m.appendChild(e),e.innerHTML=v,f.container.appendChild(m),m[X]("class","tooltip bs-tooltip-"+g+" "+f[T])),E(n,m,g,f.container),N(m,"show")||M(m,"show"),R.call(n,"show","tooltip"),f[T]?D(m,h):h())},20)},this.hide=function(){clearTimeout(d),d=setTimeout(function(){m&&N(m,"show")&&(R.call(n,"hide","tooltip"),P(m,"show"),f[T]?D(m,p):p())},f[A])},this.toggle=function(){m?f.hide():f.show()},"Tooltip"in n||(n[X]("data-original-title",v),n.removeAttribute("title"),F(n,U[0],f.show),F(n,U[1],f.hide)),n.Tooltip=f)}i[v](["Tooltip",b,'[data-toggle="tooltip"]']);var ot=t.initCallback=function(t){t=t||j;for(var e=0,n=i[G];e<n;e++)!function(t,e){for(var n=0,o=e[G];n<o;n++)new t(e[n])}(i[e][1],t.querySelectorAll(i[e][2]))};return j[q]?ot():F(j,"DOMContentLoaded",function(){ot()}),{Alert:s,Button:c,Carousel:u,Collapse:l,Dropdown:h,Modal:p,Popover:f,ScrollSpy:d,Tab:m,Toast:y,Tooltip:b}},"function"==typeof define&&define.amd?define([],o):"object"==typeof module&&module.exports?module.exports=o():(i=o(),n.Alert=i.Alert,n.Button=i.Button,n.Carousel=i.Carousel,n.Collapse=i.Collapse,n.Dropdown=i.Dropdown,n.Modal=i.Modal,n.Popover=i.Popover,n.ScrollSpy=i.ScrollSpy,n.Tab=i.Tab,n.Toast=i.Toast,n.Tooltip=i.Tooltip),r=this,a=function(){"use strict";function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function t(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),t}function p(){return(p=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t}).apply(this,arguments)}function r(t){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function a(t,e){return(a=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function s(t,e,n){return(s=function(){if("undefined"!=typeof Reflect&&Reflect.construct&&!Reflect.construct.sham){if("function"==typeof Proxy)return 1;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),1}catch(t){return}}}()?Reflect.construct:function(t,e,n){var o=[null];o.push.apply(o,e);var i=new(Function.bind.apply(t,o));return n&&a(i,n.prototype),i}).apply(null,arguments)}function c(t,e,n){return(c="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var o=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t}(t,e);if(o){var i=Object.getOwnPropertyDescriptor(o,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function l(e){return Object.keys(e).map(function(t){return e[t]})}function h(t){return Array.prototype.slice.call(t)}function f(t){return t&&Promise.resolve(t)===t}function d(t){return t instanceof Element||"object"===u(e=t)&&e.jquery;var e}function e(t){var e={};for(var n in t)e[t[n]]="swal2-"+t[n];return e}function g(t){var e=z();return e?e.querySelector(t):null}function n(t){return g(".".concat(t))}function m(){return h(q().querySelectorAll(".".concat(I.icon)))}function v(){var t=m().filter(function(t){return at(t)});return t.length?t[0]:null}function y(){return n(I.title)}function M(){return n(I.content)}function b(){return n(I.image)}function x(){return n(I["progress-steps"])}function w(){return n(I["validation-message"])}function P(){return g(".".concat(I.actions," .").concat(I.confirm))}function N(){return g(".".concat(I.actions," .").concat(I.cancel))}function L(){return n(I.actions)}function C(){return n(I.header)}function O(){return n(I.footer)}function k(){return n(I["timer-progress-bar"])}function S(){return n(I.close)}function E(){var t=h(q().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(function(t,e){return t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0}),e=h(q().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter(function(t){return"-1"!==t.getAttribute("tabindex")});return function(t){for(var e=[],n=0;n<t.length;n++)-1===e.indexOf(t[n])&&e.push(t[n]);return e}(t.concat(e)).filter(function(t){return at(t)})}function A(){return!H()&&!document.body.classList.contains(I["no-backdrop"])}function T(t,e){if(e){for(var n=e.split(/\s+/),o=0;o<n.length;o++)if(!t.classList.contains(n[o]))return;return 1}}function F(t,e,n){var o,i=e;if(h((o=t).classList).forEach(function(t){-1===l(I).indexOf(t)&&-1===l(j).indexOf(t)&&-1===l(i.showClass).indexOf(t)&&o.classList.remove(t)}),e.customClass&&e.customClass[n]){if("string"!=typeof e.customClass[n]&&!e.customClass[n].forEach)return _("Invalid type of customClass.".concat(n,'! Expected string or iterable object, got "').concat(u(e.customClass[n]),'"'));ot(t,e.customClass[n])}}function B(t){return"function"==typeof t?t():t}var _=function(t){},D=[],R=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),I=e(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","toast","toast-shown","toast-column","show","hide","close","title","header","content","html-container","actions","confirm","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),j=e(["success","warning","info","question","error"]),z=function(){return document.body.querySelector(".".concat(I.container))},q=function(){return n(I.popup)},H=function(){return document.body.classList.contains(I["toast-shown"])},U={previousBodyPadding:null};function V(t,e){if(!e)return null;switch(e){case"select":case"textarea":case"file":return rt(t,I[e]);case"checkbox":return t.querySelector(".".concat(I.checkbox," input"));case"radio":return t.querySelector(".".concat(I.radio," input:checked"))||t.querySelector(".".concat(I.radio," input:first-child"));case"range":return t.querySelector(".".concat(I.range," input"));default:return rt(t,I.input)}}function Z(t){var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)}function $(t,e,n){t&&e&&("string"==typeof e&&(e=e.split(/\s+/).filter(Boolean)),e.forEach(function(e){t.forEach?t.forEach(function(t){n?t.classList.add(e):t.classList.remove(e)}):n?t.classList.add(e):t.classList.remove(e)}))}function W(t,e,n){n||0===parseInt(n)?t.style[e]="number"==typeof n?"".concat(n,"px"):n:t.style.removeProperty(e)}function X(t,e){var n=1<arguments.length&&void 0!==e?e:"flex";t.style.opacity="",t.style.display=n}function G(t){t.style.opacity="",t.style.display="none"}function Y(t,e,n){e?X(t,n):G(t)}function K(t){var e=window.getComputedStyle(t),n=parseFloat(e.getPropertyValue("animation-duration")||"0"),o=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<n||0<o}function J(t,e){var n=1<arguments.length&&void 0!==e&&e,o=k();at(o)&&(n&&(o.style.transition="none",o.style.width="100%"),setTimeout(function(){o.style.transition="width ".concat(t/1e3,"s linear"),o.style.width="0%"},10))}function Q(){return"undefined"==typeof window||"undefined"==typeof document}function tt(t){Ce.isVisible()&&nt!==t.target.value&&Ce.resetValidationMessage(),nt=t.target.value}function et(t,e){t instanceof HTMLElement?e.appendChild(t):"object"===u(t)?ct(t,e):t&&(e.innerHTML=t)}var nt,ot=function(t,e){$(t,e,!0)},it=function(t,e){$(t,e,!1)},rt=function(t,e){for(var n=0;n<t.childNodes.length;n++)if(T(t.childNodes[n],e))return t.childNodes[n]},at=function(t){return!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length))},st='\n <div aria-labelledby="'.concat(I.title,'" aria-describedby="').concat(I.content,'" class="').concat(I.popup,'" tabindex="-1">\n <div class="').concat(I.header,'">\n <ul class="').concat(I["progress-steps"],'"></ul>\n <div class="').concat(I.icon," ").concat(j.error,'"></div>\n <div class="').concat(I.icon," ").concat(j.question,'"></div>\n <div class="').concat(I.icon," ").concat(j.warning,'"></div>\n <div class="').concat(I.icon," ").concat(j.info,'"></div>\n <div class="').concat(I.icon," ").concat(j.success,'"></div>\n <img class="').concat(I.image,'" />\n <h2 class="').concat(I.title,'" id="').concat(I.title,'"></h2>\n <button type="button" class="').concat(I.close,'"></button>\n </div>\n <div class="').concat(I.content,'">\n <div id="').concat(I.content,'" class="').concat(I["html-container"],'"></div>\n <input class="').concat(I.input,'" />\n <input type="file" class="').concat(I.file,'" />\n <div class="').concat(I.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(I.select,'"></select>\n <div class="').concat(I.radio,'"></div>\n <label for="').concat(I.checkbox,'" class="').concat(I.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(I.label,'"></span>\n </label>\n <textarea class="').concat(I.textarea,'"></textarea>\n <div class="').concat(I["validation-message"],'" id="').concat(I["validation-message"],'"></div>\n </div>\n <div class="').concat(I.actions,'">\n <button type="button" class="').concat(I.confirm,'">OK</button>\n <button type="button" class="').concat(I.cancel,'">Cancel</button>\n </div>\n <div class="').concat(I.footer,'"></div>\n <div class="').concat(I["timer-progress-bar"],'"></div>\n </div>\n').replace(/(^|\n)\s*/g,""),ct=function(t,e){t.jquery?ut(e,t):e.innerHTML=t.toString()},ut=function(t,e){if(t.innerHTML="",0 in e)for(var n=0;n in e;n++)t.appendChild(e[n].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},lt=function(){if(Q())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&void 0!==t.style[n])return e[n];return!1}();function ht(t,e,n){var o;Y(t,n["show".concat((o=e).charAt(0).toUpperCase()+o.slice(1),"Button")],"inline-block"),t.innerHTML=n["".concat(e,"ButtonText")],t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=I[e],F(t,n,"".concat(e,"Button")),ot(t,n["".concat(e,"ButtonClass")])}function pt(t,e){t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)}var ft={promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap},dt=["input","file","range","select","radio","checkbox","textarea"],gt=function(t){var e,n;bt[t.input]?(e=yt(t.input),X(n=bt[t.input](e,t)),setTimeout(function(){Z(n)})):'Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"')},mt=function(t,e){var n=V(M(),t);if(n)for(var o in function(t){for(var e=0;e<t.attributes.length;e++){var n=t.attributes[e].name;-1===["type","value","style"].indexOf(n)&&t.removeAttribute(n)}}(n),e)"range"===t&&"placeholder"===o||n.setAttribute(o,e[o])},vt=function(t){var e=yt(t.input);t.customClass&&ot(e,t.customClass.input)},yt=function(t){var e=I[t]?I[t]:I.input;return rt(M(),e)},bt={};function xt(){return z().getAttribute("data-queue-step")}function wt(t,e){var n,o,i,r,a,s,c;F(C(),e,"header"),function(c){var u=x();if(!c.progressSteps||0===c.progressSteps.length)return G(u);X(u),u.innerHTML="";var l=parseInt(void 0===c.currentProgressStep?xt():c.currentProgressStep);l>=c.progressSteps.length&&_("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),c.progressSteps.forEach(function(t,e){var n,o,i,r,a,s=(n=t,o=document.createElement("li"),ot(o,I["progress-step"]),o.innerHTML=n,o);u.appendChild(s),e===l&&ot(s,I["active-progress-step"]),e!==c.progressSteps.length-1&&(i=t,r=document.createElement("li"),ot(r,I["progress-step-line"]),i.progressStepsDistance&&(r.style.width=i.progressStepsDistance),a=r,u.appendChild(a))})}(e),a=e,(c=ft.innerParams.get(t))&&a.icon===c.icon&&v()?F(v(),a,"icon"):(St(),a.icon&&(-1!==Object.keys(j).indexOf(a.icon)?(X(s=g(".".concat(I.icon,".").concat(j[a.icon]))),At(s,a),Et(),F(s,a,"icon"),ot(s,a.showClass.icon)):'Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(a.icon,'"'))),function(t){var e=b();if(!t.imageUrl)return G(e);X(e),e.setAttribute("src",t.imageUrl),e.setAttribute("alt",t.imageAlt),W(e,"width",t.imageWidth),W(e,"height",t.imageHeight),e.className=I.image,F(e,t,"image")}(e),n=e,Y(o=y(),n.title||n.titleText),n.title&&et(n.title,o),n.titleText&&(o.innerText=n.titleText),F(o,n,"title"),i=e,(r=S()).innerHTML=i.closeButtonHtml,F(r,i,"closeButton"),Y(r,i.showCloseButton),r.setAttribute("aria-label",i.closeButtonAriaLabel)}function Ct(t,e){var n,o,i,r,a,s,c,u,l,h,p,f,d,g,m,v,y,b,x,w,C,k,S,E,A,T=e,B=q();W(B,"width",T.width),W(B,"padding",T.padding),T.background&&(B.style.background=T.background),A=T,(E=B).className="".concat(I.popup," ").concat(at(E)?A.showClass.popup:""),A.toast?(ot([document.documentElement,document.body],I["toast-shown"]),ot(E,I.toast)):ot(E,I.modal),F(E,A,"popup"),"string"==typeof A.customClass&&ot(E,A.customClass),A.icon&&ot(E,I["icon-".concat(A.icon)]),m=e,(S=z())&&("string"==typeof(v=m.backdrop)?S.style.background=v:v||ot([document.documentElement,document.body],I["no-backdrop"]),!m.backdrop&&m.allowOutsideClick&&_('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),y=S,(b=m.position)in I?ot(y,I[b]):(_('The "position" parameter is not valid, defaulting to "center"'),ot(y,I.center)),w=S,!(C=m.grow)||"string"!=typeof C||(k="grow-".concat(C))in I&&ot(w,I[k]),F(S,m,"container"),(x=document.body.getAttribute("data-swal2-queue-step"))&&(S.setAttribute("data-queue-step",x),document.body.removeAttribute("data-swal2-queue-step"))),wt(t,e),c=t,u=e,g=M().querySelector("#".concat(I.content)),u.html?(et(u.html,g),X(g,"block")):u.text?(g.textContent=u.text,X(g,"block")):G(g),l=c,h=u,p=M(),f=ft.innerParams.get(l),d=!f||h.input!==f.input,dt.forEach(function(t){var e=I[t],n=rt(p,e);mt(t,h.inputAttributes),n.className=e,d&&G(n)}),h.input&&(d&>(h),vt(h)),F(M(),u,"content"),i=e,r=L(),a=P(),s=N(),i.showConfirmButton||i.showCancelButton||G(r),F(r,i,"actions"),ht(a,"confirm",i),ht(s,"cancel",i),i.buttonsStyling?function(t,e,n){ot([t,e],I.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor),n.cancelButtonColor&&(e.style.backgroundColor=n.cancelButtonColor);var o=window.getComputedStyle(t).getPropertyValue("background-color");t.style.borderLeftColor=o,t.style.borderRightColor=o}(a,s,i):(it([a,s],I.styled),a.style.backgroundColor=a.style.borderLeftColor=a.style.borderRightColor="",s.style.backgroundColor=s.style.borderLeftColor=s.style.borderRightColor=""),i.reverseButtons&&a.parentNode.insertBefore(s,a),n=e,Y(o=O(),n.footer),n.footer&&et(n.footer,o),F(o,n,"footer"),"function"==typeof e.onRender&&e.onRender(q())}function kt(){return P()&&P().click()}bt.text=bt.email=bt.password=bt.number=bt.tel=bt.url=function(t,e){return"string"==typeof e.inputValue||"number"==typeof e.inputValue?t.value=e.inputValue:f(e.inputValue)||_('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(u(e.inputValue),'"')),pt(t,e),t.type=e.input,t},bt.file=function(t,e){return pt(t,e),t},bt.range=function(t,e){var n=t.querySelector("input"),o=t.querySelector("output");return n.value=e.inputValue,n.type=e.input,o.value=e.inputValue,t},bt.select=function(t,e){var n;return t.innerHTML="",e.inputPlaceholder&&((n=document.createElement("option")).innerHTML=e.inputPlaceholder,n.value="",n.disabled=!0,n.selected=!0,t.appendChild(n)),t},bt.radio=function(t){return t.innerHTML="",t},bt.checkbox=function(t,e){var n=V(M(),"checkbox");return n.value=1,n.id=I.checkbox,n.checked=Boolean(e.inputValue),t.querySelector("span").innerHTML=e.inputPlaceholder,t},bt.textarea=function(e,t){var n,o;return e.value=t.inputValue,pt(e,t),"MutationObserver"in window&&(n=parseInt(window.getComputedStyle(q()).width),o=parseInt(window.getComputedStyle(q()).paddingLeft)+parseInt(window.getComputedStyle(q()).paddingRight),new MutationObserver(function(){var t=e.offsetWidth+o;q().style.width=n<t?"".concat(t,"px"):null}).observe(e,{attributes:!0,attributeFilter:["style"]})),e};var St=function(){for(var t=m(),e=0;e<t.length;e++)G(t[e])},Et=function(){for(var t=q(),e=window.getComputedStyle(t).getPropertyValue("background-color"),n=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix"),o=0;o<n.length;o++)n[o].style.backgroundColor=e},At=function(t,e){t.innerHTML="",e.iconHtml?t.innerHTML=Tt(e.iconHtml):"success"===e.icon?t.innerHTML='\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n ':"error"===e.icon?t.innerHTML='\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n ':t.innerHTML=Tt({question:"?",warning:"!",info:"i"}[e.icon])},Tt=function(t){return'<div class="'.concat(I["icon-content"],'">').concat(t,"</div>")},Bt=[];function Mt(){var t=q();t||Ce.fire(),t=q();var e=L(),n=P();X(e),X(n,"inline-block"),ot([t,e],I.loading),n.disabled=!0,t.setAttribute("data-loading",!0),t.setAttribute("aria-busy",!0),t.focus()}function Pt(){if(Ft.timeout)return function(){var t=k(),e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var n=parseInt(window.getComputedStyle(t).width),o=parseInt(e/n*100);t.style.removeProperty("transition"),t.style.width="".concat(o,"%")}(),Ft.timeout.stop()}function Nt(){if(Ft.timeout){var t=Ft.timeout.start();return J(t),t}}function Lt(t){return Object.prototype.hasOwnProperty.call(_t,t)}function Ot(t){return Rt[t]}var Ft={},_t={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconHtml:void 0,toast:!1,animation:!0,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:void 0,target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showCancelButton:!1,preConfirm:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusCancel:!1,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",showLoaderOnConfirm:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,onBeforeOpen:void 0,onOpen:void 0,onRender:void 0,onClose:void 0,onAfterClose:void 0,onDestroy:void 0,scrollbarPadding:!0},Dt=["title","titleText","text","html","icon","customClass","allowOutsideClick","allowEscapeKey","showConfirmButton","showCancelButton","confirmButtonText","confirmButtonAriaLabel","confirmButtonColor","cancelButtonText","cancelButtonAriaLabel","cancelButtonColor","buttonsStyling","reverseButtons","imageUrl","imageWidth","imageHeight","imageAlt","progressSteps","currentProgressStep"],Rt={animation:'showClass" and "hideClass'},It=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusCancel","heightAuto","keydownListenerCapture"],jt=Object.freeze({isValidParameter:Lt,isUpdatableParameter:function(t){return-1!==Dt.indexOf(t)},isDeprecatedParameter:Ot,argsToParams:function(o){var i={};return"object"!==u(o[0])||d(o[0])?["title","html","icon"].forEach(function(t,e){var n=o[e];"string"==typeof n||d(n)?i[t]=n:void 0!==n&&"Unexpected type of ".concat(t,'! Expected "string" or "Element", got ').concat(u(n))}):p(i,o[0]),i},isVisible:function(){return at(q())},clickConfirm:kt,clickCancel:function(){return N()&&N().click()},getContainer:z,getPopup:q,getTitle:y,getContent:M,getHtmlContainer:function(){return n(I["html-container"])},getImage:b,getIcon:v,getIcons:m,getCloseButton:S,getActions:L,getConfirmButton:P,getCancelButton:N,getHeader:C,getFooter:O,getFocusableElements:E,getValidationMessage:w,isLoading:function(){return q().hasAttribute("data-loading")},fire:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return s(this,e)},mixin:function(e){return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&a(t,e)}(n,this),t(n,[{key:"_main",value:function(t){return c(r(n.prototype),"_main",this).call(this,p({},e,t))}}]),n;function n(){return o(this,n),t=this,!(e=r(n).apply(this,arguments))||"object"!=typeof e&&"function"!=typeof e?function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(t):e;var t,e}},queue:function(t){var r=this;function a(t,e){Bt=[],t(e)}Bt=t;var s=[];return new Promise(function(i){!function e(n,o){n<Bt.length?(document.body.setAttribute("data-swal2-queue-step",n),r.fire(Bt[n]).then(function(t){void 0!==t.value?(s.push(t.value),e(n+1,o)):a(i,{dismiss:t.dismiss})})):a(i,{value:s})}(0)})},getQueueStep:xt,insertQueueStep:function(t,e){return e&&e<Bt.length?Bt.splice(e,0,t):Bt.push(t)},deleteQueueStep:function(t){void 0!==Bt[t]&&Bt.splice(t,1)},showLoading:Mt,enableLoading:Mt,getTimerLeft:function(){return Ft.timeout&&Ft.timeout.getTimerLeft()},stopTimer:Pt,resumeTimer:Nt,toggleTimer:function(){var t=Ft.timeout;return t&&(t.running?Pt:Nt)()},increaseTimer:function(t){if(Ft.timeout){var e=Ft.timeout.increase(t);return J(e,!0),e}},isTimerRunning:function(){return Ft.timeout&&Ft.timeout.isRunning()}});function zt(){var t,e=ft.innerParams.get(this);e&&(t=ft.domCache.get(this),e.showConfirmButton||(G(t.confirmButton),e.showCancelButton||G(t.actions)),it([t.popup,t.actions],I.loading),t.popup.removeAttribute("aria-busy"),t.popup.removeAttribute("data-loading"),t.confirmButton.disabled=!1,t.cancelButton.disabled=!1)}function qt(){return window.MSInputMethodContext&&document.documentMode}function Ht(){var t=z(),e=q();t.style.removeProperty("align-items"),e.offsetTop<0&&(t.style.alignItems="flex-start")}var Ut={swalPromiseResolve:new WeakMap};function Vt(t,e,n,o){var i;n?$t(t,o):(new Promise(function(t){var e=window.scrollX,n=window.scrollY;Ft.restoreFocusTimeout=setTimeout(function(){Ft.previousActiveElement&&Ft.previousActiveElement.focus?(Ft.previousActiveElement.focus(),Ft.previousActiveElement=null):document.body&&document.body.focus(),t()},100),void 0!==e&&void 0!==n&&window.scrollTo(e,n)}).then(function(){return $t(t,o)}),Ft.keydownTarget.removeEventListener("keydown",Ft.keydownHandler,{capture:Ft.keydownListenerCapture}),Ft.keydownHandlerAdded=!1),e.parentNode&&e.parentNode.removeChild(e),A()&&(null!==U.previousBodyPadding&&(document.body.style.paddingRight="".concat(U.previousBodyPadding,"px"),U.previousBodyPadding=null),T(document.body,I.iosfix)&&(i=parseInt(document.body.style.top,10),it(document.body,I.iosfix),document.body.style.top="",document.body.scrollTop=-1*i),"undefined"!=typeof window&&qt()&&window.removeEventListener("resize",Ht),h(document.body.children).forEach(function(t){t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")})),it([document.documentElement,document.body],[I.shown,I["height-auto"],I["no-backdrop"],I["toast-shown"],I["toast-column"]])}function Zt(t){var e,n,o,i,r,a,s,c,u,l,h,p,f,d,g=q();!g||(e=ft.innerParams.get(this))&&!T(g,e.hideClass.popup)&&(n=Ut.swalPromiseResolve.get(this),it(g,e.showClass.popup),ot(g,e.hideClass.popup),o=z(),it(o,e.showClass.backdrop),ot(o,e.hideClass.backdrop),i=this,r=g,a=e,h=z(),p=lt&&K(r),f=a.onClose,d=a.onAfterClose,null!==f&&"function"==typeof f&&f(r),p?(s=i,c=r,u=h,l=d,Ft.swalCloseEventFinishedCallback=Vt.bind(null,s,u,H(),l),c.addEventListener(lt,function(t){t.target===c&&(Ft.swalCloseEventFinishedCallback(),delete Ft.swalCloseEventFinishedCallback)})):Vt(i,h,H(),d),n(t||{}))}var $t=function(t,e){setTimeout(function(){"function"==typeof e&&e(),t._destroy()})};function Wt(t,e,n){var o=ft.domCache.get(t);e.forEach(function(t){o[t].disabled=n})}function Xt(t,e){if(!t)return!1;if("radio"===t.type)for(var n=t.parentNode.parentNode.querySelectorAll("input"),o=0;o<n.length;o++)n[o].disabled=e;else t.disabled=e}var Gt=(t(Kt,[{key:"start",value:function(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}},{key:"stop",value:function(){return this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}},{key:"increase",value:function(t){var e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}},{key:"getTimerLeft",value:function(){return this.running&&(this.stop(),this.start()),this.remaining}},{key:"isRunning",value:function(){return this.running}}]),Kt),Yt={email:function(t,e){return/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address")},url:function(t,e){return/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")}};function Kt(t,e){o(this,Kt),this.callback=t,this.remaining=e,this.running=!1,this.start()}function Jt(t){var e,n,o,i,r,a,s,c,u,l,h,p,f,d,g,m,v;(e=t).inputValidator||Object.keys(Yt).forEach(function(t){e.input===t&&(e.inputValidator=Yt[t])}),t.showLoaderOnConfirm&&!t.preConfirm&&_("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),t.animation=B(t.animation),(n=t).target&&("string"!=typeof n.target||document.querySelector(n.target))&&("string"==typeof n.target||n.target.appendChild)||(_('Target parameter is not valid, defaulting to "body"'),n.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),o=t,(i=z())&&(i.parentNode.removeChild(i),it([document.documentElement,document.body],[I["no-backdrop"],I["toast-shown"],I["has-column"]])),Q()||((r=document.createElement("div")).className=I.container,r.innerHTML=st,(v="string"==typeof(a=o.target)?document.querySelector(a):a).appendChild(r),s=o,(c=q()).setAttribute("role",s.toast?"alert":"dialog"),c.setAttribute("aria-live",s.toast?"polite":"assertive"),s.toast||c.setAttribute("aria-modal","true"),"rtl"===window.getComputedStyle(v).direction&&ot(z(),I.rtl),u=M(),l=rt(u,I.input),h=rt(u,I.file),p=u.querySelector(".".concat(I.range," input")),f=u.querySelector(".".concat(I.range," output")),d=rt(u,I.select),g=u.querySelector(".".concat(I.checkbox," input")),m=rt(u,I.textarea),l.oninput=tt,h.onchange=tt,d.onchange=tt,g.onchange=tt,m.oninput=tt,p.oninput=function(t){tt(t),f.value=p.value},p.onchange=function(t){tt(t),p.nextSibling.value=p.value})}function Qt(t){var e,n,o,i,r,a,s=z(),c=q();"function"==typeof t.onBeforeOpen&&t.onBeforeOpen(c),r=c,ot(s,(a=t).showClass.backdrop),X(r),ot(r,a.showClass.popup),ot([document.documentElement,document.body],I.shown),a.heightAuto&&a.backdrop&&!a.toast&&ot([document.documentElement,document.body],I["height-auto"]),o=s,i=c,lt&&K(i)?(o.style.overflowY="hidden",i.addEventListener(lt,te)):o.style.overflowY="auto",A()&&(e=s,n=t.scrollbarPadding,function(){var t,e,n;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!T(document.body,I.iosfix)&&(t=document.body.scrollTop,document.body.style.top="".concat(-1*t,"px"),ot(document.body,I.iosfix),(n=z()).ontouchstart=function(t){e=t.target===n||!(n.scrollHeight>n.clientHeight)&&"INPUT"!==t.target.tagName},n.ontouchmove=function(t){e&&(t.preventDefault(),t.stopPropagation())})}(),"undefined"!=typeof window&&qt()&&(Ht(),window.addEventListener("resize",Ht)),h(document.body.children).forEach(function(t){var e,n;t===z()||(e=t,n=z(),"function"==typeof e.contains&&e.contains(n))||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}),!n||null===U.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(U.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(U.previousBodyPadding+function(){var t=document.createElement("div");t.className=I["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e}(),"px")),setTimeout(function(){e.scrollTop=0})),H()||Ft.previousActiveElement||(Ft.previousActiveElement=document.activeElement),"function"==typeof t.onOpen&&setTimeout(function(){return t.onOpen(c)})}function te(t){var e,n=q();t.target===n&&(e=z(),n.removeEventListener(lt,te),e.style.overflowY="auto")}function ee(t,e){var n,o,i,r,a,s;function c(t){return ue[a.input](s,le(t),a)}"select"===e.input||"radio"===e.input?(r=t,a=e,s=M(),f(a.inputOptions)?(Mt(),a.inputOptions.then(function(t){r.hideLoading(),c(t)})):"object"===u(a.inputOptions)?c(a.inputOptions):"Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(u(a.inputOptions))):-1!==["text","email","number","tel","textarea"].indexOf(e.input)&&f(e.inputValue)&&(o=e,G(i=(n=t).getInput()),o.inputValue.then(function(t){i.value="number"===o.input?parseFloat(t)||0:"".concat(t),X(i),i.focus(),n.hideLoading()}).catch(function(t){"Error in inputValue promise: ".concat(t),i.value="",X(i),i.focus(),n.hideLoading()}))}function ne(t,e){var i,n,o;t.disableButtons(),e.input?(i=t,o=function(t){var e,n,o=i.getInput();if(!o)return null;switch(t.input){case"checkbox":return o.checked?1:0;case"radio":return(n=o).checked?n.value:null;case"file":return(e=o).files.length?null!==e.getAttribute("multiple")?e.files:e.files[0]:null;default:return t.inputAutoTrim?o.value.trim():o.value}}(n=e),n.inputValidator?(i.disableInput(),Promise.resolve().then(function(){return n.inputValidator(o,n.validationMessage)}).then(function(t){i.enableButtons(),i.enableInput(),t?i.showValidationMessage(t):he(i,n,o)})):i.getInput().checkValidity()?he(i,n,o):(i.enableButtons(),i.showValidationMessage(n.validationMessage))):he(t,e,!0)}function oe(t,e){t.closePopup({value:e})}function ie(r,t,e,a){t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1),e.toast||(t.keydownHandler=function(t){return e=r,n=t,o=a,(i=ft.innerParams.get(e)).stopKeydownPropagation&&n.stopPropagation(),void("Enter"===n.key?de(e,n,i):"Tab"===n.key?ge(n,i):-1!==pe.indexOf(n.key)?me():-1!==fe.indexOf(n.key)&&ve(n,i,o));var e,n,o,i},t.keydownTarget=e.keydownListenerCapture?window:q(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)}function re(t,e,n){var o=E();if(0<o.length)return(e+=n)===o.length?e=0:-1===e&&(e=o.length-1),o[e].focus();q().focus()}function ae(t,e,n){var o,i,r,a,s,c,u;ft.innerParams.get(t).toast?(c=t,u=n,e.popup.onclick=function(){var t=ft.innerParams.get(c);t.showConfirmButton||t.showCancelButton||t.showCloseButton||t.input||u(R.close)}):((s=e).popup.onmousedown=function(){s.container.onmouseup=function(t){s.container.onmouseup=void 0,t.target===s.container&&(ye=!0)}},(a=e).container.onmousedown=function(){a.popup.onmouseup=function(t){a.popup.onmouseup=void 0,t.target!==a.popup&&!a.popup.contains(t.target)||(ye=!0)}},o=t,r=n,(i=e).container.onclick=function(t){var e=ft.innerParams.get(o);ye?ye=!1:t.target===i.container&&B(e.allowOutsideClick)&&r(R.backdrop)})}function se(t){for(var e in t)t[e]=new WeakMap}var ce,ue={select:function(t,e,i){var r=rt(t,I.select);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("option");o.value=e,o.innerHTML=n,i.inputValue.toString()===e.toString()&&(o.selected=!0),r.appendChild(o)}),r.focus()},radio:function(t,e,a){var s=rt(t,I.radio);e.forEach(function(t){var e=t[0],n=t[1],o=document.createElement("input"),i=document.createElement("label");o.type="radio",o.name=I.radio,o.value=e,a.inputValue.toString()===e.toString()&&(o.checked=!0);var r=document.createElement("span");r.innerHTML=n,r.className=I.label,i.appendChild(o),i.appendChild(r),s.appendChild(i)});var n=s.querySelectorAll("input");n.length&&n[0].focus()}},le=function(e){var n=[];return"undefined"!=typeof Map&&e instanceof Map?e.forEach(function(t,e){n.push([e,t])}):Object.keys(e).forEach(function(t){n.push([t,e[t]])}),n},he=function(e,t,n){t.showLoaderOnConfirm&&Mt(),t.preConfirm?(e.resetValidationMessage(),Promise.resolve().then(function(){return t.preConfirm(n,t.validationMessage)}).then(function(t){at(w())||!1===t?e.hideLoading():oe(e,void 0===t?n:t)})):oe(e,n)},pe=["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Left","Right","Up","Down"],fe=["Escape","Esc"],de=function(t,e,n){if(!e.isComposing&&e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML){if(-1!==["textarea","file"].indexOf(n.input))return;kt(),e.preventDefault()}},ge=function(t){for(var e=t.target,n=E(),o=-1,i=0;i<n.length;i++)if(e===n[i]){o=i;break}t.shiftKey?re(0,o,-1):re(0,o,1),t.stopPropagation(),t.preventDefault()},me=function(){var t=P(),e=N();document.activeElement===t&&at(e)?e.focus():document.activeElement===e&&at(t)&&t.focus()},ve=function(t,e,n){B(e.allowEscapeKey)&&(t.preventDefault(),n(R.esc))},ye=!1,be=function(){document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()},xe=Object.freeze({hideLoading:zt,disableLoading:zt,getInput:function(t){var e=ft.innerParams.get(t||this),n=ft.domCache.get(t||this);return n?V(n.content,e.input):null},close:Zt,closePopup:Zt,closeModal:Zt,closeToast:Zt,enableButtons:function(){Wt(this,["confirmButton","cancelButton"],!1)},disableButtons:function(){Wt(this,["confirmButton","cancelButton"],!0)},enableInput:function(){return Xt(this.getInput(),!1)},disableInput:function(){return Xt(this.getInput(),!0)},showValidationMessage:function(t){var e=ft.domCache.get(this);e.validationMessage.innerHTML=t;var n=window.getComputedStyle(e.popup);e.validationMessage.style.marginLeft="-".concat(n.getPropertyValue("padding-left")),e.validationMessage.style.marginRight="-".concat(n.getPropertyValue("padding-right")),X(e.validationMessage);var o=this.getInput();o&&(o.setAttribute("aria-invalid",!0),o.setAttribute("aria-describedBy",I["validation-message"]),Z(o),ot(o,I.inputerror))},resetValidationMessage:function(){var t=ft.domCache.get(this);t.validationMessage&&G(t.validationMessage);var e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedBy"),it(e,I.inputerror))},getProgressSteps:function(){return ft.domCache.get(this).progressSteps},_main:function(t){!function(t){for(var e in t)Lt(s=e)||_('Unknown parameter "'.concat(s,'"')),t.toast&&(a=e,-1!==It.indexOf(a)&&_('The parameter "'.concat(a,'" is incompatible with toasts'))),Ot(r=e)&&(o=Ot(n=r),i='"'.concat(n,'" is deprecated and will be removed in the next major release. Please use "').concat(o,'" instead.'),-1===D.indexOf(i)&&(D.push(i),_(i)));var n,o,i,r,a,s}(t),Ft.currentInstance&&Ft.currentInstance._destroy(),Ft.currentInstance=this;var e,n,o,i,r=(n=p({},_t.showClass,(e=t).showClass),o=p({},_t.hideClass,e.hideClass),(i=p({},_t,e)).showClass=n,i.hideClass=o,!1===e.animation&&(i.showClass={popup:"",backdrop:"swal2-backdrop-show swal2-noanimation"},i.hideClass={}),i);Jt(r),Object.freeze(r),Ft.timeout&&(Ft.timeout.stop(),delete Ft.timeout),clearTimeout(Ft.restoreFocusTimeout);var a,s,c,u,l,h=(a=this,s={popup:q(),container:z(),content:M(),actions:L(),confirmButton:P(),cancelButton:N(),closeButton:S(),validationMessage:w(),progressSteps:x()},ft.domCache.set(a,s),s);return Ct(this,r),ft.innerParams.set(this,r),c=this,u=h,l=r,new Promise(function(t){function e(t){c.closePopup({dismiss:t})}var n,o,i,r;Ut.swalPromiseResolve.set(c,t),n=Ft,o=l,i=e,G(r=k()),o.timer&&(n.timeout=new Gt(function(){i("timer"),delete n.timeout},o.timer),o.timerProgressBar&&(X(r),setTimeout(function(){J(o.timer)}))),u.confirmButton.onclick=function(){return ne(c,l)},u.cancelButton.onclick=function(){return t=e,c.disableButtons(),void t(R.cancel);var t},u.closeButton.onclick=function(){return e(R.close)},ae(c,u,e),ie(c,Ft,l,e),(l.toast&&(l.input||l.footer||l.showCloseButton)?ot:it)(document.body,I["toast-column"]),ee(c,l),Qt(l),function(t,e){e.toast||(B(e.allowEnterKey)?e.focusCancel&&at(t.cancelButton)?t.cancelButton.focus():e.focusConfirm&&at(t.confirmButton)?t.confirmButton.focus():re(0,-1,1):be())}(u,l),u.container.scrollTop=0})},update:function(e){var t=q(),n=ft.innerParams.get(this);if(!t||T(t,n.hideClass.popup))return _("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");var o={};Object.keys(e).forEach(function(t){Ce.isUpdatableParameter(t)?o[t]=e[t]:_('Invalid parameter to update: "'.concat(t,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js'))});var i=p({},n,o);Ct(this,i),ft.innerParams.set(this,i),Object.defineProperties(this,{params:{value:p({},this.params,e),writable:!1,enumerable:!0}})},_destroy:function(){var t=ft.domCache.get(this),e=ft.innerParams.get(this);e&&(t.popup&&Ft.swalCloseEventFinishedCallback&&(Ft.swalCloseEventFinishedCallback(),delete Ft.swalCloseEventFinishedCallback),Ft.deferDisposalTimer&&(clearTimeout(Ft.deferDisposalTimer),delete Ft.deferDisposalTimer),"function"==typeof e.onDestroy&&e.onDestroy(),delete this.params,delete Ft.keydownHandler,delete Ft.keydownTarget,se(ft),se(Ut))}});function we(){if("undefined"!=typeof window){ce=this;for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var o=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:o,writable:!1,enumerable:!0,configurable:!0}});var i=this._main(this.params);ft.promise.set(this,i)}}we.prototype.then=function(t){return ft.promise.get(this).then(t)},we.prototype.finally=function(t){return ft.promise.get(this).finally(t)},p(we.prototype,xe),p(we,jt),Object.keys(xe).forEach(function(t){we[t]=function(){if(ce)return ce[t].apply(ce,arguments)}}),we.DismissReason=R,we.version="9.7.2";var Ce=we;return Ce.default=Ce},"object"==typeof exports&&"undefined"!=typeof module?module.exports=a():"function"==typeof define&&define.amd?define(a):r.Sweetalert2=a(),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),s="0.5.0",m="hasOwnProperty",v=/[\.\/]/,y=/\s*,\s*/,b={n:{}},c=Object.prototype.toString,x=String,w=Array.isArray||function(t){return t instanceof Array||"[object Array]"==c.call(t)},eve=function(t,e){var n,o=d,i=Array.prototype.slice.call(arguments,2),r=eve.listeners(t),a=0,s=[],c={},u=[],l=f;u.firstDefined=k,u.lastDefined=S,f=t;for(var h=d=0,p=r.length;h<p;h++)"zIndex"in r[h]&&(s.push(r[h].zIndex),r[h].zIndex<0&&(c[r[h].zIndex]=r[h]));for(s.sort(C);s[a]<0;)if(n=c[s[a++]],u.push(n.apply(e,i)),d)return d=o,u;for(h=0;h<p;h++)if("zIndex"in(n=r[h]))if(n.zIndex==s[a]){if(u.push(n.apply(e,i)),d)break;do{if((n=c[s[++a]])&&u.push(n.apply(e,i)),d)break}while(n)}else c[n.zIndex]=n;else if(u.push(n.apply(e,i)),d)break;return d=o,f=l,u},eve._events=b,eve.listeners=function(t){for(var e,n,o,i,r,a,s=w(t)?t:t.split(v),c=b,u=[c],l=[],h=0,p=s.length;h<p;h++){for(a=[],i=0,r=u.length;i<r;i++)for(n=[(c=u[i].n)[s[h]],c["*"]],o=2;o--;)(e=n[o])&&(a.push(e),l=l.concat(e.f||[]));u=a}return l},eve.separator=function(t){v=t?(t="["+(t=x(t).replace(/(?=[\.\^\]\[\-])/g,"\\"))+"]",new RegExp(t)):/[\.\/]/},eve.on=function(t,a){if("function"!=typeof a)return function(){};for(var e=w(t)?w(t[0])?t:[t]:x(t).split(y),n=0,o=e.length;n<o;n++)!function(t){for(var e,n=w(t)?t:x(t).split(v),o=b,i=0,r=n.length;i<r;i++)o=(o=o.n).hasOwnProperty(n[i])&&o[n[i]]||(o[n[i]]={n:{}});for(o.f=o.f||[],i=0,r=o.f.length;i<r;i++)if(o.f[i]==a){e=!0;break}e||o.f.push(a)}(e[n]);return function(t){+t==+t&&(a.zIndex=+t)}},eve.f=function(t){var e=[].slice.call(arguments,1);return function(){eve.apply(null,[t,null].concat(e).concat([].slice.call(arguments,0)))}},eve.stop=function(){d=1},eve.nt=function(t){var e=w(f)?f.join("."):f;return t?new RegExp("(?:\\.|\\/|^)"+t+"(?:\\.|\\/|$)").test(e):e},eve.nts=function(){return w(f)?f:f.split(v)},eve.off=eve.unbind=function(t,e){if(t){var n=w(t)?w(t[0])?t:[t]:x(t).split(y);if(1<n.length)for(var o=0,i=n.length;o<i;o++)eve.off(n[o],e);else{n=w(t)?t:x(t).split(v);for(var r,a,s,c=[b],u=[],o=0,i=n.length;o<i;o++)for(h=0;h<c.length;h+=s.length-2){if(s=[h,1],r=c[h].n,"*"!=n[o])r[n[o]]&&(s.push(r[n[o]]),u.unshift({n:r,name:n[o]}));else for(a in r)r[m](a)&&(s.push(r[a]),u.unshift({n:r,name:a}));c.splice.apply(c,s)}for(o=0,i=c.length;o<i;o++)for(r=c[o];r.n;){if(e){if(r.f){for(h=0,p=r.f.length;h<p;h++)if(r.f[h]==e){r.f.splice(h,1);break}r.f.length||delete r.f}for(a in r.n)if(r.n[m](a)&&r.n[a].f){for(var l=r.n[a].f,h=0,p=l.length;h<p;h++)if(l[h]==e){l.splice(h,1);break}l.length||delete r.n[a].f}}else for(a in delete r.f,r.n)r.n[m](a)&&r.n[a].f&&delete r.n[a].f;r=r.n}t:for(o=0,i=u.length;o<i;o++){for(a in(r=u[o]).n[r.name].f)continue t;for(a in r.n[r.name].n)continue t;delete r.n[r.name]}}}else eve._events=b={n:{}}},eve.once=function(t,e){var n=function(){return eve.off(t,n),e.apply(this,arguments)};return eve.on(t,n)},eve.version=s,eve.toString=function(){return"You are running Eve "+s},"undefined"!=typeof module&&module.exports?module.exports=eve:"function"==typeof define&&define.amd?define("eve",[],function(){return eve}):this.eve=eve,u=window||this,l=function(v,W){var r,a,l,s,i,h,p,t,f,d,x=(r=void 0===W?function(){}:W,l={},s=v.requestAnimationFrame||v.webkitRequestAnimationFrame||v.mozRequestAnimationFrame||v.oRequestAnimationFrame||v.msRequestAnimationFrame||function(t){return setTimeout(t,16,(new Date).getTime()),!0},i=Array.isArray||function(t){return t instanceof Array||"[object Array]"==Object.prototype.toString.call(t)},h=0,p="M"+(+new Date).toString(36),t=Date.now||function(){return+new Date},f=function(t){if(t){var e,n,o=0;for(var i in l){l.hasOwnProperty(i)&&(n=(e=l[i]).get(),o++,e.s=(n-e.b)/(e.dur/e.spd),1<=e.s&&(delete l[i],e.s=1,o--,function(t){setTimeout(function(){r("mina.finish."+t.id,t)})}(e)),e.update())}a=!!o&&s(f)}else a=a||s(f)},(d=function(t,e,n,o,i,r,a){var s={id:p+(h++).toString(36),start:t,end:e,b:n,s:0,dur:o-n,spd:1,get:i,set:r,easing:a||d.linear,status:m,speed:y,duration:b,stop:w,pause:C,resume:k,update:S};l[s.id]=s;var c,u=0;for(c in l)if(l.hasOwnProperty(c)&&2==++u)break;return 1==u&&f(),s}).time=t,d.getById=function(t){return l[t]||null},d.linear=function(t){return t},d.easeout=function(t){return Math.pow(t,1.7)},d.easein=function(t){return Math.pow(t,.48)},d.easeinout=function(t){if(1==t)return 1;if(0==t)return 0;var e=.48-t/1.04,n=Math.sqrt(.1734+e*e),o=n-e,i=-n-e,r=Math.pow(Math.abs(o),1/3)*(o<0?-1:1)+Math.pow(Math.abs(i),1/3)*(i<0?-1:1)+.5;return 3*(1-r)*r*r+r*r*r},d.backin=function(t){return 1==t?1:t*t*(2.70158*t-1.70158)},d.backout=function(t){return 0==t?0:--t*t*(2.70158*t+1.70158)+1},d.elastic=function(t){return t==!!t?t:Math.pow(2,-10*t)*Math.sin((t-.075)*(2*Math.PI)/.3)+1},d.bounce=function(t){var e=7.5625,n=2.75;return t<1/n?e*t*t:t<2/n?e*(t-=1.5/n)*t+.75:t<2.5/n?e*(t-=2.25/n)*t+.9375:e*(t-=2.625/n)*t+.984375},v.mina=d),e=function(t){function m(t,e){if(t){if(t.nodeType)return d(t);if(l(t,"array")&&m.set)return m.set.apply(m,t);if(t instanceof c)return t;if(null==e)try{return d(t=v.doc.querySelector(String(t)))}catch(t){return null}}return new f(t=null==t?"100%":t,e=null==e?"100%":e)}function u(t,e){if(e){if("#text"==t&&(t=v.doc.createTextNode(e.text||e["#text"]||"")),"#comment"==t&&(t=v.doc.createComment(e.text||e["#text"]||"")),"string"==typeof t&&(t=u(t)),"string"==typeof e)return 1==t.nodeType?"xlink:"==e.substring(0,6)?t.getAttributeNS(D,e.substring(6)):"xml:"==e.substring(0,4)?t.getAttributeNS(R,e.substring(4)):t.getAttribute(e):"text"==e?t.nodeValue:null;if(1==t.nodeType)for(var n in e){var o;e[y](n)&&((o=b(e[n]))?"xlink:"==n.substring(0,6)?t.setAttributeNS(D,n.substring(6),o):"xml:"==n.substring(0,4)?t.setAttributeNS(R,n.substring(4),o):t.setAttribute(n,o):t.removeAttribute(n))}else"text"in e&&(t.nodeValue=e.text)}else t=v.doc.createElementNS(R,t);return t}function l(t,e){return"finite"==(e=b.prototype.toLowerCase.call(e))?isFinite(t):!("array"!=e||!(t instanceof Array||Array.isArray&&Array.isArray(t)))||"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||o.call(t).slice(8,-1).toLowerCase()==e}function e(r,a,s){return function t(){var e=Array.prototype.slice.call(arguments,0),n=e.join("␀"),o=t.cache=t.cache||{},i=t.count=t.count||[];return o[y](n)?function(t,e){for(var n=0,o=t.length;n<o;n++)if(t[n]===e)return t.push(t.splice(n,1)[0])}(i,n):(1e3<=i.length&&delete o[i.shift()],i.push(n),o[n]=r.apply(a,e)),s?s(o[n]):o[n]}}function i(t){return t%360*A/180}function h(t){return t.node.ownerSVGElement&&d(t.node.ownerSVGElement)||m.select("svg")}function r(t){l(t,"array")||(t=Array.prototype.slice.call(arguments,0));for(var e=0,n=0,o=this.node;this[e];)delete this[e++];for(e=0;e<t.length;e++)"set"==t[e].type?t[e].forEach(function(t){o.appendChild(t.node)}):o.appendChild(t[e].node);for(var i=o.childNodes,e=0;e<i.length;e++)this[n++]=d(i[e]);return this}function c(t){if(t.snap in I)return I[t.snap];var e;try{e=t.ownerSVGElement}catch(t){}this.node=t,e&&(this.paper=new f(e)),this.type=t.tagName||t.nodeName;var n=this.id=_(this);if(this.anims={},this._={transform:[]},t.snap=n,"g"==(I[n]=this).type&&(this.add=r),this.type in{g:1,mask:1,pattern:1,symbol:1})for(var o in f.prototype)f.prototype[y](o)&&(this[o]=f.prototype[o])}function a(t){this.node=t}function p(t,e){var n=u(t);return e.appendChild(n),d(n)}function f(t,e){var n=f.prototype;if(t&&t.tagName&&"svg"==t.tagName.toLowerCase()){if(t.snap in I)return I[t.snap];var o=t.ownerDocument,i=new c(t),r=t.getElementsByTagName("desc")[0],a=t.getElementsByTagName("defs")[0];for(var s in r||((r=u("desc")).appendChild(o.createTextNode("Created with Snap")),i.node.appendChild(r)),a||(a=u("defs"),i.node.appendChild(a)),i.defs=a,n)n[y](s)&&(i[s]=n[s]);i.paper=i.root=i}else u((i=p("svg",v.doc.body)).node,{height:e,version:1.1,width:t,xmlns:R});return i}function d(t){return!t||t instanceof c||t instanceof a?t:t.tagName&&"svg"==t.tagName.toLowerCase()?new f(t):t.tagName&&"object"==t.tagName.toLowerCase()&&"image/svg+xml"==t.type?new f(t.contentDocument.getElementsByTagName("svg")[0]):new c(t)}m.version="0.5.1",m.toString=function(){return"Snap v"+this.version},m._={};var v={win:t.window,doc:t.window.document};m._.glob=v;var n,s,y="hasOwnProperty",b=String,x=parseFloat,w=parseInt,C=Math,k=C.max,S=C.min,E=C.abs,A=(C.pow,C.PI),o=(C.round,Object.prototype.toString),T=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?%?)\s*\))\s*$/i,B=(m._.separator=/[,\s]+/,/[\s]*,[\s]*/),M={hs:1,rg:1},P=/([a-z])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,N=/([rstm])[\s,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\s]*,?[\s]*)+)/gi,L=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\s]*,?[\s]*/gi,O=0,F="S"+(+new Date).toString(36),_=function(t){return(t&&t.type?t.type:"")+F+(O++).toString(36)},D="http://www.w3.org/1999/xlink",R="http://www.w3.org/2000/svg",I={};function j(){return"hsb("+[this.h,this.s,this.b]+")"}function z(){return"hsl("+[this.h,this.s,this.l]+")"}function q(t,e,n){var o;return null==e&&l(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(n=t.b,e=t.g,t=t.r),null==e&&l(t,string)&&(t=(o=m.getRGB(t)).r,e=o.g,n=o.b),(1<t||1<e||1<n)&&(t/=255,e/=255,n/=255),[t,e,n]}function H(t,e,n,o){var i={r:t=C.round(255*t),g:e=C.round(255*e),b:n=C.round(255*n),opacity:l(o,"finite")?o:1,hex:m.rgb(t,e,n),toString:V};return l(o,"finite")&&(i.opacity=o),i}m.url=function(t){return"url('#"+t+"')"},m._.$=u,m._.id=_,m.format=(n=/\{([^\}]+)\}/g,s=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,function(t,i){return b(t).replace(n,function(t,e){return n=t,r=o=i,e.replace(s,function(t,e,n,o,i){e=e||o,r&&(e in r&&(r=r[e]),"function"==typeof r&&i&&(r=r()))}),r=(null==r||r==o?n:r)+"";var n,o,r})}),m._.clone=function t(e){if("function"==typeof e||Object(e)!==e)return e;var n=new e.constructor;for(var o in e)e[y](o)&&(n[o]=t(e[o]));return n},m._.cacher=e,m.rad=i,m.deg=function(t){return 180*t/A%360},m.sin=function(t){return C.sin(m.rad(t))},m.tan=function(t){return C.tan(m.rad(t))},m.cos=function(t){return C.cos(m.rad(t))},m.asin=function(t){return m.deg(C.asin(t))},m.acos=function(t){return m.deg(C.acos(t))},m.atan=function(t){return m.deg(C.atan(t))},m.atan2=function(t){return m.deg(C.atan2(t))},m.angle=function t(e,n,o,i,r,a){if(null!=r)return t(e,n,r,a)-t(o,i,r,a);var s=e-o,c=n-i;return s||c?(180+180*C.atan2(-c,-s)/A+360)%360:0},m.len=function(t,e,n,o){return Math.sqrt(m.len2(t,e,n,o))},m.len2=function(t,e,n,o){return(t-n)*(t-n)+(e-o)*(e-o)},m.closestPoint=function(t,o,i){function e(t){var e=t.x-o,n=t.y-i;return e*e+n*n}for(var n,r,a,s,c,u,l,h,p,f,d=t.node,g=d.getTotalLength(),m=g/d.pathSegList.numberOfItems*.125,v=1/0,y=0;y<=g;y+=m)(s=e(a=d.getPointAtLength(y)))<v&&(n=a,r=y,v=s);for(m*=.5;.5<m;){0<=(l=r-m)&&(p=e(c=d.getPointAtLength(l)))<v?(n=c,r=l,v=p):(h=r+m)<=g&&(f=e(u=d.getPointAtLength(h)))<v?(n=u,r=h,v=f):m*=.5}return{x:n.x,y:n.y,length:r,distance:Math.sqrt(v)}},m.is=l,m.snapTo=function(t,e,n){if(n=l(n,"finite")?n:10,l(t,"array")){for(var o=t.length;o--;)if(E(t[o]-e)<=n)return t[o]}else{var i=e%(t=+t);if(i<n)return e-i;if(t-n<i)return e-i+t}return e},m.getRGB=e(function(t){if(!t||(t=b(t)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:V};if("none"==t)return{r:-1,g:-1,b:-1,hex:"none",toString:V};if(M[y](t.toLowerCase().substring(0,2))||"#"==t.charAt()||(t=U(t)),!t)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:V};var e,n,o,i,r,a,s=t.match(T);return s?(s[2]&&(o=w(s[2].substring(5),16),n=w(s[2].substring(3,5),16),e=w(s[2].substring(1,3),16)),s[3]&&(o=w((r=s[3].charAt(3))+r,16),n=w((r=s[3].charAt(2))+r,16),e=w((r=s[3].charAt(1))+r,16)),s[4]&&(a=s[4].split(B),e=x(a[0]),"%"==a[0].slice(-1)&&(e*=2.55),n=x(a[1]),"%"==a[1].slice(-1)&&(n*=2.55),o=x(a[2]),"%"==a[2].slice(-1)&&(o*=2.55),"rgba"==s[1].toLowerCase().slice(0,4)&&(i=x(a[3])),a[3]&&"%"==a[3].slice(-1)&&(i/=100)),s[5]?(a=s[5].split(B),e=x(a[0]),"%"==a[0].slice(-1)&&(e/=100),n=x(a[1]),"%"==a[1].slice(-1)&&(n/=100),o=x(a[2]),"%"==a[2].slice(-1)&&(o/=100),"deg"!=a[0].slice(-3)&&"°"!=a[0].slice(-1)||(e/=360),"hsba"==s[1].toLowerCase().slice(0,4)&&(i=x(a[3])),a[3]&&"%"==a[3].slice(-1)&&(i/=100),m.hsb2rgb(e,n,o,i)):s[6]?(a=s[6].split(B),e=x(a[0]),"%"==a[0].slice(-1)&&(e/=100),n=x(a[1]),"%"==a[1].slice(-1)&&(n/=100),o=x(a[2]),"%"==a[2].slice(-1)&&(o/=100),"deg"!=a[0].slice(-3)&&"°"!=a[0].slice(-1)||(e/=360),"hsla"==s[1].toLowerCase().slice(0,4)&&(i=x(a[3])),a[3]&&"%"==a[3].slice(-1)&&(i/=100),m.hsl2rgb(e,n,o,i)):(e=S(C.round(e),255),n=S(C.round(n),255),o=S(C.round(o),255),i=S(k(i,0),1),(s={r:e,g:n,b:o,toString:V}).hex="#"+(16777216|o|n<<8|e<<16).toString(16).slice(1),s.opacity=l(i,"finite")?i:1,s)):{r:-1,g:-1,b:-1,hex:"none",error:1,toString:V}},m),m.hsb=e(function(t,e,n){return m.hsb2rgb(t,e,n).hex}),m.hsl=e(function(t,e,n){return m.hsl2rgb(t,e,n).hex}),m.rgb=e(function(t,e,n,o){if(l(o,"finite")){var i=C.round;return"rgba("+[i(t),i(e),i(n),+o.toFixed(2)]+")"}return"#"+(16777216|n|e<<8|t<<16).toString(16).slice(1)});var U=function(t){var n=v.doc.getElementsByTagName("head")[0]||v.doc.getElementsByTagName("svg")[0],o="rgb(255, 0, 0)";return(U=e(function(t){if("red"==t.toLowerCase())return o;n.style.color=o,n.style.color=t;var e=v.doc.defaultView.getComputedStyle(n,"").getPropertyValue("color");return e==o?null:e}))(t)},V=function(){return 1==this.opacity||null==this.opacity?this.hex:"rgba("+[this.r,this.g,this.b,this.opacity]+")"};m.color=function(t){var e;return l(t,"object")&&"h"in t&&"s"in t&&"b"in t?(e=m.hsb2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):l(t,"object")&&"h"in t&&"s"in t&&"l"in t?(e=m.hsl2rgb(t),t.r=e.r,t.g=e.g,t.b=e.b,t.opacity=1,t.hex=e.hex):(l(t,"string")&&(t=m.getRGB(t)),l(t,"object")&&"r"in t&&"g"in t&&"b"in t&&!("error"in t)?(e=m.rgb2hsl(t),t.h=e.h,t.s=e.s,t.l=e.l,e=m.rgb2hsb(t),t.v=e.b):((t={hex:"none"}).r=t.g=t.b=t.h=t.s=t.v=t.l=-1,t.error=1)),t.toString=V,t},m.hsb2rgb=function(t,e,n,o){var i,r,a,s,c;return l(t,"object")&&"h"in t&&"s"in t&&"b"in t&&(n=t.b,e=t.s,o=t.o,t=t.h),s=(c=n*e)*(1-E((t=(t*=360)%360/60)%2-1)),i=r=a=n-c,H(i+=[c,s,0,0,s,c][t=~~t],r+=[s,c,c,s,0,0][t],a+=[0,0,s,c,c,s][t],o)},m.hsl2rgb=function(t,e,n,o){var i,r,a,s,c;return l(t,"object")&&"h"in t&&"s"in t&&"l"in t&&(n=t.l,e=t.s,t=t.h),(1<t||1<e||1<n)&&(t/=360,e/=100,n/=100),s=(c=2*e*(n<.5?n:1-n))*(1-E((t=(t*=360)%360/60)%2-1)),i=r=a=n-c/2,H(i+=[c,s,0,0,s,c][t=~~t],r+=[s,c,c,s,0,0][t],a+=[0,0,s,c,c,s][t],o)},m.rgb2hsb=function(t,e,n){var o,i;return t=(n=q(t,e,n))[0],e=n[1],n=n[2],{h:((0==(i=(o=k(t,e,n))-S(t,e,n))?null:o==t?(e-n)/i:o==e?(n-t)/i+2:(t-e)/i+4)+360)%6*60/360,s:0==i?0:i/o,b:o,toString:j}},m.rgb2hsl=function(t,e,n){var o,i,r,a;return t=(n=q(t,e,n))[0],e=n[1],n=n[2],o=((i=k(t,e,n))+(r=S(t,e,n)))/2,{h:((0==(a=i-r)?null:i==t?(e-n)/a:i==e?(n-t)/a+2:(t-e)/a+4)+360)%6*60/360,s:0==a?0:o<.5?a/(2*o):a/(2-2*o),l:o,toString:z}},m.parsePathString=function(t){if(!t)return null;var e=m.path(t);if(e.arr)return m.path.clone(e.arr);var r={a:7,c:6,o:2,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,u:3,z:0},a=[];return l(t,"array")&&l(t[0],"array")&&(a=m.path.clone(t)),a.length||b(t).replace(P,function(t,e,n){var o=[],i=e.toLowerCase();if(n.replace(L,function(t,e){e&&o.push(+e)}),"m"==i&&2<o.length&&(a.push([e].concat(o.splice(0,2))),i="l",e="m"==e?"l":"L"),"o"==i&&1==o.length&&a.push([e,o[0]]),"r"==i)a.push([e].concat(o));else for(;o.length>=r[i]&&(a.push([e].concat(o.splice(0,r[i]))),r[i]););}),a.toString=m.path.toString,e.arr=m.path.clone(a),a};var Z=m.parseTransformString=function(t){if(!t)return null;var i=[];return l(t,"array")&&l(t[0],"array")&&(i=m.path.clone(t)),i.length||b(t).replace(N,function(t,e,n){var o=[];e.toLowerCase(),n.replace(L,function(t,e){e&&o.push(+e)}),i.push([e].concat(o))}),i.toString=m.path.toString,i};m._.svgTransform2string=function(t){var o=[];return t=t.replace(/(?:^|\s)(\w+)\(([^)]+)\)/g,function(t,e,n){return n=n.split(/\s*,\s*|\s+/),"rotate"==e&&1==n.length&&n.push(0,0),"scale"==e&&(2<n.length?n=n.slice(0,2):2==n.length&&n.push(0,0),1==n.length&&n.push(n[0],0,0)),"skewX"==e?o.push(["m",1,0,C.tan(i(n[0])),1,0,0]):"skewY"==e?o.push(["m",1,C.tan(i(n[0])),0,1,0,0]):o.push([e.charAt(0)].concat(n)),t}),o},m._.rgTransform=/^[a-z][\s]*-?\.?\d/i,m._.transform2matrix=function(t,e){var n=Z(t),o=new m.Matrix;if(n)for(var i=0,r=n.length;i<r;i++){var a,s,c,u,l,h=n[i],p=h.length,f=b(h[0]).toLowerCase(),d=h[0]!=f,g=d?o.invert():0;"t"==f&&2==p?o.translate(h[1],0):"t"==f&&3==p?d?(a=g.x(0,0),s=g.y(0,0),c=g.x(h[1],h[2]),u=g.y(h[1],h[2]),o.translate(c-a,u-s)):o.translate(h[1],h[2]):"r"==f?2==p?(l=l||e,o.rotate(h[1],l.x+l.width/2,l.y+l.height/2)):4==p&&(d?(c=g.x(h[2],h[3]),u=g.y(h[2],h[3]),o.rotate(h[1],c,u)):o.rotate(h[1],h[2],h[3])):"s"==f?2==p||3==p?(l=l||e,o.scale(h[1],h[p-1],l.x+l.width/2,l.y+l.height/2)):4==p?d?(c=g.x(h[2],h[3]),u=g.y(h[2],h[3]),o.scale(h[1],h[1],c,u)):o.scale(h[1],h[1],h[2],h[3]):5==p&&(d?(c=g.x(h[3],h[4]),u=g.y(h[3],h[4]),o.scale(h[1],h[2],c,u)):o.scale(h[1],h[2],h[3],h[4])):"m"==f&&7==p&&o.add(h[1],h[2],h[3],h[4],h[5],h[6])}return o},m._unit2px=function(n,o,i){function t(t){if(null==t)return"";if(t==+t)return t;u(c,{width:t});try{return c.getBBox().width}catch(t){return 0}}function e(t){if(null==t)return"";if(t==+t)return t;u(c,{height:t});try{return c.getBBox().height}catch(t){return 0}}function r(t,e){null==o?s[t]=e(n.attr(t)||0):t==o&&(s=e(null==i?n.attr(t)||0:i))}var a=h(n).node,s={},c=a.querySelector(".svg---mgr");switch(c||(c=u("rect"),u(c,{x:-9e9,y:-9e9,width:10,height:10,class:"svg---mgr",fill:"none"}),a.appendChild(c)),n.type){case"rect":r("rx",t),r("ry",e);case"image":r("width",t),r("height",e);case"text":r("x",t),r("y",e);break;case"circle":r("cx",t),r("cy",e),r("r",t);break;case"ellipse":r("cx",t),r("cy",e),r("rx",t),r("ry",e);break;case"line":r("x1",t),r("x2",t),r("y1",e),r("y2",e);break;case"marker":r("refX",t),r("markerWidth",t),r("refY",e),r("markerHeight",e);break;case"radialGradient":r("fx",t),r("fy",e);break;case"tspan":r("dx",t),r("dy",e);break;default:r(o,t)}return a.removeChild(c),s},v.doc.contains||v.doc.compareDocumentPosition,m._.getSomeDefs=function(t){var e=t.node.ownerSVGElement&&d(t.node.ownerSVGElement)||t.node.parentNode&&d(t.node.parentNode)||m.select("svg")||m(0,0),n=e.select("defs"),o=null!=n&&n.node;return o||p("defs",e.node).node},m._.getSomeSVG=h,m.select=function(t){return t=b(t).replace(/([^\\]):/g,"$1\\:"),d(v.doc.querySelector(t))},m.selectAll=function(t){for(var e=v.doc.querySelectorAll(t),n=(m.set||Array)(),o=0;o<e.length;o++)n.push(d(e[o]));return n},setInterval(function(){for(var t in I){var e,n;I[y](t)&&(n=(e=I[t]).node,("svg"!=e.type&&!n.ownerSVGElement||"svg"==e.type&&(!n.parentNode||"ownerSVGElement"in n.parentNode&&!n.ownerSVGElement))&&delete I[t])}},1e4),c.prototype.attr=function(t,e){var n=this.node;if(!t){if(1!=n.nodeType)return{text:n.nodeValue};for(var o=n.attributes,i={},r=0,a=o.length;r<a;r++)i[o[r].nodeName]=o[r].nodeValue;return i}if(l(t,"string")){if(!(1<arguments.length))return W("snap.util.getattr."+t,this).firstDefined();var s={};s[t]=e,t=s}for(var c in t)t[y](c)&&W("snap.util.attr."+c,this,t[c]);return this},m.parse=function(t){var e=v.doc.createDocumentFragment(),n=!0,o=v.doc.createElement("div");if((t=b(t)).match(/^\s*<\s*svg(?:\s|>)/)||(t="<svg>"+t+"</svg>",n=!1),o.innerHTML=t,t=o.getElementsByTagName("svg")[0])if(n)e=t;else for(;t.firstChild;)e.appendChild(t.firstChild);return new a(e)},m.fragment=function(){for(var t=Array.prototype.slice.call(arguments,0),e=v.doc.createDocumentFragment(),n=0,o=t.length;n<o;n++){var i=t[n];i.node&&i.node.nodeType&&e.appendChild(i.node),i.nodeType&&e.appendChild(i),"string"==typeof i&&e.appendChild(m.parse(i).node)}return new a(e)},m._.make=p,m._.wrap=d,f.prototype.el=function(t,e){var n=p(t,this.node);return e&&n.attr(e),n},c.prototype.children=function(){for(var t=[],e=this.node.childNodes,n=0,o=e.length;n<o;n++)t[n]=m(e[n]);return t},c.prototype.toJSON=function(){var t=[];return function t(e,n){for(var o=0,i=e.length;o<i;o++){var r={type:e[o].type,attr:e[o].attr()},a=e[o].children();n.push(r),a.length&&t(a,r.childNodes=[])}}([this],t),t[0]},W.on("snap.util.getattr",function(){var t=W.nt(),e=(t=t.substring(t.lastIndexOf(".")+1)).replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});return $[y](e)?this.node.ownerDocument.defaultView.getComputedStyle(this.node,null).getPropertyValue(e):u(this.node,t)});var $={"alignment-baseline":0,"baseline-shift":0,clip:0,"clip-path":0,"clip-rule":0,color:0,"color-interpolation":0,"color-interpolation-filters":0,"color-profile":0,"color-rendering":0,cursor:0,direction:0,display:0,"dominant-baseline":0,"enable-background":0,fill:0,"fill-opacity":0,"fill-rule":0,filter:0,"flood-color":0,"flood-opacity":0,font:0,"font-family":0,"font-size":0,"font-size-adjust":0,"font-stretch":0,"font-style":0,"font-variant":0,"font-weight":0,"glyph-orientation-horizontal":0,"glyph-orientation-vertical":0,"image-rendering":0,kerning:0,"letter-spacing":0,"lighting-color":0,marker:0,"marker-end":0,"marker-mid":0,"marker-start":0,mask:0,opacity:0,overflow:0,"pointer-events":0,"shape-rendering":0,"stop-color":0,"stop-opacity":0,stroke:0,"stroke-dasharray":0,"stroke-dashoffset":0,"stroke-linecap":0,"stroke-linejoin":0,"stroke-miterlimit":0,"stroke-opacity":0,"stroke-width":0,"text-anchor":0,"text-decoration":0,"text-rendering":0,"unicode-bidi":0,visibility:0,"word-spacing":0,"writing-mode":0};return W.on("snap.util.attr",function(t){var e=W.nt(),n={};n[e=e.substring(e.lastIndexOf(".")+1)]=t;var o=e.replace(/-(\w)/gi,function(t,e){return e.toUpperCase()}),i=e.replace(/[A-Z]/g,function(t){return"-"+t.toLowerCase()});$[y](i)?this.node.style[o]=null==t?"":t:u(this.node,n)}),m.ajax=function(t,e,n,o){var i=new XMLHttpRequest,r=_();if(i){if(l(e,"function"))o=n,n=e,e=null;else if(l(e,"object")){var a=[];for(var s in e)e.hasOwnProperty(s)&&a.push(encodeURIComponent(s)+"="+encodeURIComponent(e[s]));e=a.join("&")}return i.open(e?"POST":"GET",t,!0),e&&(i.setRequestHeader("X-Requested-With","XMLHttpRequest"),i.setRequestHeader("Content-type","application/x-www-form-urlencoded")),n&&(W.once("snap.ajax."+r+".0",n),W.once("snap.ajax."+r+".200",n),W.once("snap.ajax."+r+".304",n)),i.onreadystatechange=function(){4==i.readyState&&W("snap.ajax."+r+"."+i.status,o,i)},4==i.readyState||i.send(e),i}},m.load=function(t,n,o){m.ajax(t,function(t){var e=m.parse(t.responseText);o?n.call(o,e):n(e)})},m.getElementByPoint=function(t,e){var n,o,i,r,a,s,c,u,l,h,p=(this.canvas,v.doc.elementFromPoint(t,e));return v.win.opera&&"svg"==p.tagName&&(o=(n=p).getBoundingClientRect(),r=(i=n.ownerDocument).body,s=(a=i.documentElement).clientTop||r.clientTop||0,c=a.clientLeft||r.clientLeft||0,u={y:o.top+(g.win.pageYOffset||a.scrollTop||r.scrollTop)-s,x:o.left+(g.win.pageXOffset||a.scrollLeft||r.scrollLeft)-c},(l=p.createSVGRect()).x=t-u.x,l.y=e-u.y,l.width=l.height=1,(h=p.getIntersectionList(l,null)).length&&(p=h[h.length-1])),p?d(p):null},m.plugin=function(t){t(m,c,f,v,a)},v.win.Snap=m}(v||this);function m(t){var e=this;if(null==t)return e.s;var n=e.s-t;e.b+=e.dur*n,e.B+=e.dur*n,e.s=t}function y(t){return null==t?this.spd:void(this.spd=t)}function b(t){var e=this;return null==t?e.dur:(e.s=e.s*t/e.dur,void(e.dur=t))}function w(){delete l[this.id],this.update(),r("mina.stop."+this.id,this)}function C(){var t=this;t.pdif||(delete l[t.id],t.update(),t.pdif=t.get()-t.b)}function k(){var t=this;t.pdif&&(t.b=t.get()-t.pdif,delete t.pdif,l[t.id]=t,f())}function S(){var t,e=this;if(i(e.start)){t=[];for(var n=0,o=e.start.length;n<o;n++)t[n]=+e.start[n]+(e.end[n]-e.start[n])*e.easing(e.s)}else t=+e.start+(e.end-e.start)*e.easing(e.s);e.set(t)}return e.plugin(function(f,t,e,n,o){function l(t,e){if(null==e){var n=!0;if(!(e="linearGradient"==t.type||"radialGradient"==t.type?t.node.getAttribute("gradientTransform"):"pattern"==t.type?t.node.getAttribute("patternTransform"):t.node.getAttribute("transform")))return new f.Matrix;e=f._.svgTransform2string(e)}else e=f._.rgTransform.test(e)?h(e).replace(/\.{3}|\u2026/g,t._.transform||""):f._.svgTransform2string(e),s(e,"array")&&(e=f.path?f.path.toString.call(e):h(e)),t._.transform=e;var o=f._.transform2matrix(e,t.getBBox(1));return n?o:void(t.matrix=o)}function i(r){return function(){var t=r?"<"+this.type:"",e=this.node.attributes,n=this.node.childNodes;if(r)for(var o=0,i=e.length;o<i;o++)t+=" "+e[o].name+'="'+e[o].value.replace(/"/g,'\\"')+'"';if(n.length){for(r&&(t+=">"),o=0,i=n.length;o<i;o++)3==n[o].nodeType?t+=n[o].nodeValue:1==n[o].nodeType&&(t+=g(n[o]).toString());r&&(t+="</"+this.type+">")}else r&&(t+="/>");return t}}var r=t.prototype,s=f.is,h=String,a=f._unit2px,d=f._.$,c=f._.make,u=f._.getSomeDefs,g=f._.wrap;function p(){return this.string}r.getBBox=function(t){if("tspan"==this.type)return f._.box(this.node.getClientRects().item(0));if(!f.Matrix||!f.path)return this.node.getBBox();var e,n=this,o=new f.Matrix;if(n.removed)return f._.box();for(;"use"==n.type;){t||(o=o.add(n.transform().localMatrix.translate(n.attr("x")||0,n.attr("y")||0))),n=n.original?n.original:(e=n.attr("xlink:href"),n.original=n.node.ownerDocument.getElementById(e.substring(e.indexOf("#")+1)))}var i=n._,r=f.path.get[n.type]||f.path.get.deflt;try{return t?(i.bboxwt=r?f.path.getBBox(n.realPath=r(n)):f._.box(n.node.getBBox()),f._.box(i.bboxwt)):(n.realPath=r(n),n.matrix=n.transform().localMatrix,i.bbox=f.path.getBBox(f.path.map(n.realPath,o.add(n.matrix))),f._.box(i.bbox))}catch(t){return f._.box()}},r.transform=function(t){var e=this._;if(null!=t)return t instanceof f.Matrix?(this.matrix=t,this._.transform=t.toTransformString()):l(this,t),this.node&&("linearGradient"==this.type||"radialGradient"==this.type?d(this.node,{gradientTransform:this.matrix}):"pattern"==this.type?d(this.node,{patternTransform:this.matrix}):d(this.node,{transform:this.matrix})),this;for(var n,o=this,i=new f.Matrix(this.node.getCTM()),r=l(this),a=[r],s=new f.Matrix,c=r.toTransformString(),u=h(r)==h(this.matrix)?h(e.transform):c;"svg"!=o.type&&(o=o.parent());)a.push(l(o));for(n=a.length;n--;)s.add(a[n]);return{string:u,globalMatrix:i,totalMatrix:s,localMatrix:r,diffMatrix:i.clone().add(r.invert()),global:i.toTransformString(),total:s.toTransformString(),local:c,toString:p}},r.parent=function(){return g(this.node.parentNode)},r.append=r.add=function(t){if(t){if("set"==t.type){var e=this;return t.forEach(function(t){e.add(t)}),this}t=g(t),this.node.appendChild(t.node),t.paper=this.paper}return this},r.appendTo=function(t){return t&&(t=g(t)).append(this),this},r.prepend=function(t){if(t){if("set"==t.type){var e,n=this;return t.forEach(function(t){e?e.after(t):n.prepend(t),e=t}),this}var o=(t=g(t)).parent();this.node.insertBefore(t.node,this.node.firstChild),this.add&&this.add(),t.paper=this.paper,this.parent()&&this.parent().add(),o&&o.add()}return this},r.prependTo=function(t){return(t=g(t)).prepend(this),this},r.before=function(t){if("set"==t.type){var n=this;return t.forEach(function(t){var e=t.parent();n.node.parentNode.insertBefore(t.node,n.node),e&&e.add()}),this.parent().add(),this}var e=(t=g(t)).parent();return this.node.parentNode.insertBefore(t.node,this.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},r.after=function(t){var e=(t=g(t)).parent();return this.node.nextSibling?this.node.parentNode.insertBefore(t.node,this.node.nextSibling):this.node.parentNode.appendChild(t.node),this.parent()&&this.parent().add(),e&&e.add(),t.paper=this.paper,this},r.insertBefore=function(t){t=g(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},r.insertAfter=function(t){t=g(t);var e=this.parent();return t.node.parentNode.insertBefore(this.node,t.node.nextSibling),this.paper=t.paper,e&&e.add(),t.parent()&&t.parent().add(),this},r.remove=function(){var t=this.parent();return this.node.parentNode&&this.node.parentNode.removeChild(this.node),delete this.paper,this.removed=!0,t&&t.add(),this},r.select=function(t){return g(this.node.querySelector(t))},r.selectAll=function(t){for(var e=this.node.querySelectorAll(t),n=(f.set||Array)(),o=0;o<e.length;o++)n.push(g(e[o]));return n},r.asPX=function(t,e){return null==e&&(e=this.attr(t)),+a(this,t,e)},r.use=function(){var t,e=this.node.id;return e||(e=this.id,d(this.node,{id:e})),t="linearGradient"==this.type||"radialGradient"==this.type||"pattern"==this.type?c(this.type,this.node.parentNode):c("use",this.node.parentNode),d(t.node,{"xlink:href":"#"+e}),t.original=this,t},r.clone=function(){var p=g(this.node.cloneNode(!0));return d(p.node,"id")&&d(p.node,{id:p.id}),function(){function t(n,o){var t=d(n.node,o);!(t=(t=t&&t.match(i))&&t[2])||"#"!=t.charAt()||(t=t.substring(1))&&(r[t]=(r[t]||[]).concat(function(t){var e={};e[o]=f.url(t),d(n.node,e)}))}for(var e,n=p.selectAll("*"),i=/^\s*url\(("|'|)(.*)\1\)\s*$/,o=[],r={},a=0,s=n.length;a<s;a++){t(e=n[a],"fill"),t(e,"stroke"),t(e,"filter"),t(e,"mask"),t(e,"clip-path"),function(e){var t=d(e.node,"xlink:href");!t||"#"!=t.charAt()||(t=t.substring(1))&&(r[t]=(r[t]||[]).concat(function(t){e.attr("xlink:href","#"+t)}))}(e);var c=d(e.node,"id");c&&(d(e.node,{id:e.id}),o.push({old:c,id:e.id}))}for(a=0,s=o.length;a<s;a++){var u=r[o[a].old];if(u)for(var l=0,h=u.length;l<h;l++)u[l](o[a].id)}}(),p.insertAfter(this),p},r.toDefs=function(){return u(this).appendChild(this.node),this},r.pattern=r.toPattern=function(t,e,n,o){var i=c("pattern",u(this));return null==t&&(t=this.getBBox()),s(t,"object")&&"x"in t&&(e=t.y,n=t.width,o=t.height,t=t.x),d(i.node,{x:t,y:e,width:n,height:o,patternUnits:"userSpaceOnUse",id:i.id,viewBox:[t,e,n,o].join(" ")}),i.node.appendChild(this.node),i},r.marker=function(t,e,n,o,i,r){var a=c("marker",u(this));return null==t&&(t=this.getBBox()),s(t,"object")&&"x"in t&&(e=t.y,n=t.width,o=t.height,i=t.refX||t.cx,r=t.refY||t.cy,t=t.x),d(a.node,{viewBox:[t,e,n,o].join(" "),markerWidth:n,markerHeight:o,orient:"auto",refX:i||0,refY:r||0,id:a.id}),a.node.appendChild(this.node),a};var m={};r.data=function(t,e){var n=m[this.id]=m[this.id]||{};if(0==arguments.length)return W("snap.data.get."+this.id,this,n,null),n;if(1!=arguments.length)return n[t]=e,W("snap.data.set."+this.id,this,e,t),this;if(f.is(t,"object")){for(var o in t)t.hasOwnProperty(o)&&this.data(o,t[o]);return this}return W("snap.data.get."+this.id,this,n[t],t),n[t]},r.removeData=function(t){return null==t?m[this.id]={}:m[this.id]&&delete m[this.id][t],this},r.outerSVG=r.toString=i(1),r.innerSVG=i(),r.toDataURL=function(){if(v&&v.btoa){var t=this.getBBox(),e=f.format('<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="{width}" height="{height}" viewBox="{x} {y} {width} {height}">{contents}</svg>',{x:+t.x.toFixed(3),y:+t.y.toFixed(3),width:+t.width.toFixed(3),height:+t.height.toFixed(3),contents:this.outerSVG()});return"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e)))}},o.prototype.select=r.select,o.prototype.selectAll=r.selectAll}),e.plugin(function(t,e,n,o,i){function m(t,e,n,o){"function"!=typeof n||n.length||(o=n,n=x.linear),this.attr=t,this.dur=e,n&&(this.easing=n),o&&(this.callback=o)}var r=e.prototype,v=t.is,y=String,b="hasOwnProperty";t._.Animation=m,t.animation=function(t,e,n,o){return new m(t,e,n,o)},r.inAnim=function(){var t=[];for(var e in this.anims)this.anims[b](e)&&function(e){t.push({anim:new m(e._attrs,e.dur,e.easing,e._callback),mina:e,curStatus:e.status(),status:function(t){return e.status(t)},stop:function(){e.stop()}})}(this.anims[e]);return t},t.animate=function(t,e,n,o,i,r){"function"!=typeof i||i.length||(r=i,i=x.linear);var a=x.time(),s=x(t,e,a,a+o,x.time,n,i);return r&&W.once("mina.finish."+s.id,r),s},r.stop=function(){for(var t=this.inAnim(),e=0,n=t.length;e<n;e++)t[e].stop();return this},r.animate=function(t,e,n,o){"function"!=typeof n||n.length||(o=n,n=x.linear),t instanceof m&&(o=t.callback,n=t.easing,e=t.dur,t=t.attr);var i,r,a,s,c,u=[],l=[],h={},p=this;for(var f in t){t[b](f)&&(p.equal?(i=(s=p.equal(f,y(t[f]))).from,r=s.to,a=s.f):(i=+p.attr(f),r=+t[f]),c=v(i,"array")?i.length:1,h[f]=function(n,o,i){return function(t){var e=t.slice(n,o);return 1==e.length&&(e=e[0]),i?i(e):e}}(u.length,u.length+c,a),u=u.concat(i),l=l.concat(r))}var d=x.time(),g=x(u,l,d,d+e,x.time,function(t){var e={};for(var n in h)h[b](n)&&(e[n]=h[n](t));p.attr(e)},n);return(p.anims[g.id]=g)._attrs=t,g._callback=o,W("snap.animcreated."+p.id,g),W.once("mina.finish."+g.id,function(){W.off("mina.*."+g.id),delete p.anims[g.id],o&&o.call(p)}),W.once("mina.stop."+g.id,function(){W.off("mina.*."+g.id),delete p.anims[g.id]}),p}}),e.plugin(function(r,t,e,n,o){function u(t,e,n,o,i,r){return null==e&&"[object SVGMatrix]"==a.call(t)?(this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.e=t.e,void(this.f=t.f)):void(null!=t?(this.a=+t,this.b=+e,this.c=+n,this.d=+o,this.e=+i,this.f=+r):(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0))}var i,a=Object.prototype.toString,s=String,c=Math;function l(t){return t[0]*t[0]+t[1]*t[1]}function h(t){var e=c.sqrt(l(t));t[0]&&(t[0]/=e),t[1]&&(t[1]/=e)}(i=u.prototype).add=function(t,e,n,o,i,r){if(t&&t instanceof u)return this.add(t.a,t.b,t.c,t.d,t.e,t.f);var a=t*this.a+e*this.c,s=t*this.b+e*this.d;return this.e+=i*this.a+r*this.c,this.f+=i*this.b+r*this.d,this.c=n*this.a+o*this.c,this.d=n*this.b+o*this.d,this.a=a,this.b=s,this},u.prototype.multLeft=function(t,e,n,o,i,r){if(t&&t instanceof u)return this.multLeft(t.a,t.b,t.c,t.d,t.e,t.f);var a=t*this.a+n*this.b,s=t*this.c+n*this.d,c=t*this.e+n*this.f+i;return this.b=e*this.a+o*this.b,this.d=e*this.c+o*this.d,this.f=e*this.e+o*this.f+r,this.a=a,this.c=s,this.e=c,this},i.invert=function(){var t=this,e=t.a*t.d-t.b*t.c;return new u(t.d/e,-t.b/e,-t.c/e,t.a/e,(t.c*t.f-t.d*t.e)/e,(t.b*t.e-t.a*t.f)/e)},i.clone=function(){return new u(this.a,this.b,this.c,this.d,this.e,this.f)},i.translate=function(t,e){return this.e+=t*this.a+e*this.c,this.f+=t*this.b+e*this.d,this},i.scale=function(t,e,n,o){return null==e&&(e=t),(n||o)&&this.translate(n,o),this.a*=t,this.b*=t,this.c*=e,this.d*=e,(n||o)&&this.translate(-n,-o),this},i.rotate=function(t,e,n){t=r.rad(t),e=e||0,n=n||0;var o=+c.cos(t).toFixed(9),i=+c.sin(t).toFixed(9);return this.add(o,i,-i,o,e,n),this.add(1,0,0,1,-e,-n)},i.skewX=function(t){return this.skew(t,0)},i.skewY=function(t){return this.skew(0,t)},i.skew=function(t,e){t=t||0,e=e||0,t=r.rad(t),e=r.rad(e);var n=c.tan(t).toFixed(9),o=c.tan(e).toFixed(9);return this.add(1,o,n,1,0,0)},i.x=function(t,e){return t*this.a+e*this.c+this.e},i.y=function(t,e){return t*this.b+e*this.d+this.f},i.get=function(t){return+this[s.fromCharCode(97+t)].toFixed(4)},i.toString=function(){return"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")"},i.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]},i.determinant=function(){return this.a*this.d-this.b*this.c},i.split=function(){var t={};t.dx=this.e,t.dy=this.f;var e=[[this.a,this.b],[this.c,this.d]];t.scalex=c.sqrt(l(e[0])),h(e[0]),t.shear=e[0][0]*e[1][0]+e[0][1]*e[1][1],e[1]=[e[1][0]-e[0][0]*t.shear,e[1][1]-e[0][1]*t.shear],t.scaley=c.sqrt(l(e[1])),h(e[1]),t.shear/=t.scaley,this.determinant()<0&&(t.scalex=-t.scalex);var n=e[0][1],o=e[1][1];return o<0?(t.rotate=r.deg(c.acos(o)),n<0&&(t.rotate=360-t.rotate)):t.rotate=r.deg(c.asin(n)),t.isSimple=!(+t.shear.toFixed(9)||t.scalex.toFixed(9)!=t.scaley.toFixed(9)&&t.rotate),t.isSuperSimple=!+t.shear.toFixed(9)&&t.scalex.toFixed(9)==t.scaley.toFixed(9)&&!t.rotate,t.noRotation=!+t.shear.toFixed(9)&&!t.rotate,t},i.toTransformString=function(t){var e=t||this.split();return+e.shear.toFixed(9)?"m"+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)]:(e.scalex=+e.scalex.toFixed(4),e.scaley=+e.scaley.toFixed(4),e.rotate=+e.rotate.toFixed(4),(e.dx||e.dy?"t"+[+e.dx.toFixed(4),+e.dy.toFixed(4)]:"")+(e.rotate?"r"+[+e.rotate.toFixed(4),0,0]:"")+(1!=e.scalex||1!=e.scaley?"s"+[e.scalex,e.scaley,0,0]:""))},r.Matrix=u,r.matrix=function(t,e,n,o,i,r){return new u(t,e,n,o,i,r)}}),e.plugin(function(r,a,t,i,s){function e(i){return function(t){var e,n;W.stop(),t instanceof s&&1==t.node.childNodes.length&&("radialGradient"==t.node.firstChild.tagName||"linearGradient"==t.node.firstChild.tagName||"pattern"==t.node.firstChild.tagName)&&(t=t.node.firstChild,p(this).appendChild(t),t=l(t)),n=t instanceof a?"radialGradient"==t.type||"linearGradient"==t.type||"pattern"==t.type?(t.node.id||d(t.node,{id:t.id}),g(t.node.id)):t.attr(i):(n=r.color(t)).error?(e=r(p(this).ownerSVGElement).gradient(t))?(e.node.id||d(e.node,{id:e.id}),g(e.node.id)):t:m(n);var o={};o[i]=n,d(this.node,o),this.node.style[i]=""}}function n(t){W.stop(),t==+t&&(t+="px"),this.node.style.fontSize=t}function o(){return W.stop(),this.node.style.fontSize}var c,u=r._.make,l=r._.wrap,h=r.is,p=r._.getSomeDefs,f=/^url\((['"]?)([^)]+)\1\)$/,d=r._.$,g=r.url,m=String,v=r._.separator;r.deurl=function(t){var e=String(t).match(f);return e?e[2]:t},W.on("snap.util.attr.mask",function(t){var e;(t instanceof a||t instanceof s)&&(W.stop(),t instanceof s&&1==t.node.childNodes.length&&(t=t.node.firstChild,p(this).appendChild(t),t=l(t)),"mask"==t.type?e=t:(e=u("mask",p(this))).node.appendChild(t.node),e.node.id||d(e.node,{id:e.id}),d(this.node,{mask:g(e.id)}))}),c=function(t){if(t instanceof a||t instanceof s){W.stop();for(var e,n=t.node;n;){if("clipPath"===n.nodeName){e=new a(n);break}if("svg"===n.nodeName){e=void 0;break}n=n.parentNode}e||((e=u("clipPath",p(this))).node.appendChild(t.node),e.node.id||d(e.node,{id:e.id})),d(this.node,{"clip-path":g(e.node.id||e.id)})}},W.on("snap.util.attr.clip",c),W.on("snap.util.attr.clip-path",c),W.on("snap.util.attr.clipPath",c),W.on("snap.util.attr.fill",e("fill")),W.on("snap.util.attr.stroke",e("stroke"));var y=/^([lr])(?:\(([^)]*)\))?(.*)$/i;function b(e){return function(){W.stop();var t=i.doc.defaultView.getComputedStyle(this.node,null).getPropertyValue("marker-"+e);return"none"==t?t:r(i.doc.getElementById(t.match(f)[1]))}}function x(o){return function(t){W.stop();var e="marker"+o.charAt(0).toUpperCase()+o.substring(1);if(""!=t&&t){if("marker"==t.type){var n=t.node.id;return n||d(t.node,{id:t.id}),void(this.node.style[e]=g(n))}}else this.node.style[e]="none"}}W.on("snap.util.grad.parse",function(t){function e(t,e){for(var n=(e-s)/(t-c),o=c;o<t;o++)r[o].offset=+(+s+n*(o-c)).toFixed(2);c=t,s=e}var n=(t=m(t)).match(y);if(!n)return null;var o=n[1],i=n[2],r=n[3];1==(i=i.split(/\s*,\s*/).map(function(t){return+t==t?+t:t})).length&&0==i[0]&&(i=[]);var a=(r=(r=r.split("-")).map(function(t){var e={color:(t=t.split(":"))[0]};return t[1]&&(e.offset=parseFloat(t[1])),e})).length,s=0,c=0;a--;for(var u=0;u<a;u++)"offset"in r[u]&&e(u,r[u].offset);return r[a].offset=r[a].offset||100,e(a,r[a].offset),{type:o,params:i,stops:r}}),W.on("snap.util.attr.d",function(t){W.stop(),h(t,"array")&&h(t[0],"array")&&(t=r.path.toString.call(t)),(t=m(t)).match(/[ruo]/i)&&(t=r.path.toAbsolute(t)),d(this.node,{d:t})})(-1),W.on("snap.util.attr.#text",function(t){W.stop(),t=m(t);for(var e=i.doc.createTextNode(t);this.node.firstChild;)this.node.removeChild(this.node.firstChild);this.node.appendChild(e)})(-1),W.on("snap.util.attr.path",function(t){W.stop(),this.attr({d:t})})(-1),W.on("snap.util.attr.class",function(t){W.stop(),this.node.className.baseVal=t})(-1),W.on("snap.util.attr.viewBox",function(t){var e=h(t,"object")&&"x"in t?[t.x,t.y,t.width,t.height].join(" "):h(t,"array")?t.join(" "):t;d(this.node,{viewBox:e}),W.stop()})(-1),W.on("snap.util.attr.transform",function(t){this.transform(t),W.stop()})(-1),W.on("snap.util.attr.r",function(t){"rect"==this.type&&(W.stop(),d(this.node,{rx:t,ry:t}))})(-1),W.on("snap.util.attr.textpath",function(t){if(W.stop(),"text"==this.type){var e,n,o,i,r;if(!t&&this.textPath){for(n=this.textPath;n.node.firstChild;)this.node.appendChild(n.node.firstChild);return n.remove(),void delete this.textPath}if(h(t,"string")?(i=p(this),r=l(i.parentNode).path(t),i.appendChild(r.node),e=r.id,r.attr({id:e})):(t=l(t))instanceof a&&((e=t.attr("id"))||(e=t.id,t.attr({id:e}))),e)if(n=this.textPath,o=this.node,n)n.attr({"xlink:href":"#"+e});else{for(n=d("textPath",{"xlink:href":"#"+e});o.firstChild;)n.appendChild(o.firstChild);o.appendChild(n),this.textPath=l(n)}}})(-1),W.on("snap.util.attr.text",function(t){if("text"==this.type){for(var e=this.node,o=function(t){var e=d("tspan");if(h(t,"array"))for(var n=0;n<t.length;n++)e.appendChild(o(t[n]));else e.appendChild(i.doc.createTextNode(t));return e.normalize&&e.normalize(),e};e.firstChild;)e.removeChild(e.firstChild);for(var n=o(t);n.firstChild;)e.appendChild(n.firstChild)}W.stop()})(-1),W.on("snap.util.attr.fontSize",n)(-1),W.on("snap.util.attr.font-size",n)(-1),W.on("snap.util.getattr.transform",function(){return W.stop(),this.transform()})(-1),W.on("snap.util.getattr.textpath",function(){return W.stop(),this.textPath})(-1),W.on("snap.util.getattr.marker-end",b("end"))(-1),W.on("snap.util.getattr.markerEnd",b("end"))(-1),W.on("snap.util.getattr.marker-start",b("start"))(-1),W.on("snap.util.getattr.markerStart",b("start"))(-1),W.on("snap.util.getattr.marker-mid",b("mid"))(-1),W.on("snap.util.getattr.markerMid",b("mid"))(-1),W.on("snap.util.attr.marker-end",x("end"))(-1),W.on("snap.util.attr.markerEnd",x("end"))(-1),W.on("snap.util.attr.marker-start",x("start"))(-1),W.on("snap.util.attr.markerStart",x("start"))(-1),W.on("snap.util.attr.marker-mid",x("mid"))(-1),W.on("snap.util.attr.markerMid",x("mid"))(-1),W.on("snap.util.getattr.r",function(){return"rect"==this.type&&d(this.node,"rx")==d(this.node,"ry")?(W.stop(),d(this.node,"rx")):void 0})(-1),W.on("snap.util.getattr.text",function(){if("text"==this.type||"tspan"==this.type){W.stop();var t=function t(e){for(var n=[],o=e.childNodes,i=0,r=o.length;i<r;i++){var a=o[i];3==a.nodeType&&n.push(a.nodeValue),"tspan"==a.tagName&&(1==a.childNodes.length&&3==a.firstChild.nodeType?n.push(a.firstChild.nodeValue):n.push(t(a)))}return n}(this.node);return 1==t.length?t[0]:t}})(-1),W.on("snap.util.getattr.#text",function(){return this.node.textContent})(-1),W.on("snap.util.getattr.fill",function(t){if(!t){W.stop();var e=W("snap.util.getattr.fill",this,!0).firstDefined();return r(r.deurl(e))||e}})(-1),W.on("snap.util.getattr.stroke",function(t){if(!t){W.stop();var e=W("snap.util.getattr.stroke",this,!0).firstDefined();return r(r.deurl(e))||e}})(-1),W.on("snap.util.getattr.viewBox",function(){W.stop();var t=d(this.node,"viewBox");return t?(t=t.split(v),r._.box(+t[0],+t[1],+t[2],+t[3])):void 0})(-1),W.on("snap.util.getattr.points",function(){var t=d(this.node,"points");return W.stop(),t?t.split(v):void 0})(-1),W.on("snap.util.getattr.path",function(){var t=d(this.node,"d");return W.stop(),t})(-1),W.on("snap.util.getattr.class",function(){return this.node.className.baseVal})(-1),W.on("snap.util.getattr.fontSize",o)(-1),W.on("snap.util.getattr.font-size",o)(-1)}),e.plugin(function(t,e,n,o,i){var l=/\S+/g,u=String,r=e.prototype;r.addClass=function(t){var e,n,o,i=u(t||"").match(l)||[],r=this.node,a=r.className.baseVal,s=a.match(l)||[];if(i.length){for(e=0;n=i[e++];)~s.indexOf(n)||s.push(n);a!=(o=s.join(" "))&&(r.className.baseVal=o)}return this},r.removeClass=function(t){var e,n,o,i,r=u(t||"").match(l)||[],a=this.node,s=a.className.baseVal,c=s.match(l)||[];if(c.length){for(e=0;o=r[e++];)~(n=c.indexOf(o))&&c.splice(n,1);s!=(i=c.join(" "))&&(a.className.baseVal=i)}return this},r.hasClass=function(t){return!!~(this.node.className.baseVal.match(l)||[]).indexOf(t)},r.toggleClass=function(t,e){if(null!=e)return e?this.addClass(t):this.removeClass(t);for(var n,o,i,r=(t||"").match(l)||[],a=this.node,s=a.className.baseVal,c=s.match(l)||[],u=0;o=r[u++];)~(n=c.indexOf(o))?c.splice(n,1):c.push(o);return s!=(i=c.join(" "))&&(a.className.baseVal=i),this}}),e.plugin(function(t,e,n,o,i){function c(t){return t}var u={"+":function(t,e){return t+e},"-":function(t,e){return t-e},"/":function(t,e){return t/e},"*":function(t,e){return t*e}},l=String,h=/[a-z]+$/i,p=/^\s*([+\-\/*])\s*=\s*([\d.eE+\-]+)\s*([^\d\s]+)?\s*$/;W.on("snap.util.attr",function(t){var e=l(t).match(p);if(e){var n=W.nt(),o=n.substring(n.lastIndexOf(".")+1),i=this.attr(o),r={};W.stop();var a=e[3]||"",s=i.match(h),c=u[e[1]];if(t=s&&s==a?c(parseFloat(i),+e[2]):(i=this.asPX(o),c(this.asPX(o),this.asPX(o,e[2]+a))),isNaN(i)||isNaN(t))return;r[o]=t,this.attr(r)}})(-10),W.on("snap.util.equal",function(t,e){var n,o=l(this.attr(t)||""),i=l(e).match(p);if(i){W.stop();var r=i[3]||"",a=o.match(h),s=u[i[1]];return a&&a==r?{from:parseFloat(o),to:s(parseFloat(o),+i[2]),f:(n=a,function(t){return+t.toFixed(3)+n})}:{from:o=this.asPX(t),to:s(o,this.asPX(t,i[2]+r)),f:c}}})(-10)}),e.plugin(function(h,e,t,p,n){var o=t.prototype,f=h.is;o.rect=function(t,e,n,o,i,r){var a;return null==r&&(r=i),f(t,"object")&&"[object Object]"==t?a=t:null!=t&&(a={x:t,y:e,width:n,height:o},null!=i&&(a.rx=i,a.ry=r)),this.el("rect",a)},o.circle=function(t,e,n){var o;return f(t,"object")&&"[object Object]"==t?o=t:null!=t&&(o={cx:t,cy:e,r:n}),this.el("circle",o)};var c;function d(){this.parentNode.removeChild(this)}function s(){return this.selectAll("stop")}function u(t,e){var n=c("stop"),o={offset:+e+"%"};t=h.color(t),o["stop-color"]=t.hex,t.opacity<1&&(o["stop-opacity"]=t.opacity),c(n,o);for(var i,r=this.stops(),a=0;a<r.length;a++)if(e<parseFloat(r[a].attr("offset"))){this.node.insertBefore(n,r[a].node),i=!0;break}return i||this.node.appendChild(n),this}function l(){if("linearGradient"==this.type){var t=c(this.node,"x1")||0,e=c(this.node,"x2")||1,n=c(this.node,"y1")||0,o=c(this.node,"y2")||0;return h._.box(t,n,math.abs(e-t),math.abs(o-n))}var i=this.node.cx||.5,r=this.node.cy||.5,a=this.node.r||0;return h._.box(i-a,r-a,2*a,2*a)}function a(t){var e=t,n=this.stops();if("string"==typeof t&&(e=W("snap.util.grad.parse",null,"l(0,0,0,1)"+t).firstDefined().stops),h.is(e,"array")){for(var o,i,r=0;r<n.length;r++){e[r]?(o=h.color(e[r].color),(i={offset:e[r].offset+"%"})["stop-color"]=o.hex,o.opacity<1&&(i["stop-opacity"]=o.opacity),n[r].attr(i)):n[r].remove()}for(r=n.length;r<e.length;r++)this.addStop(e[r].color,e[r].offset);return this}}function g(t,e,n,o,i){var r=h._.make("linearGradient",t);return r.stops=s,r.addStop=u,r.getBBox=l,r.setStops=a,null!=e&&c(r.node,{x1:e,y1:n,x2:o,y2:i}),r}function m(t,e,n,o,i,r){var a=h._.make("radialGradient",t);return a.stops=s,a.addStop=u,a.getBBox=l,null!=e&&c(a.node,{cx:e,cy:n,r:o}),null!=i&&null!=r&&c(a.node,{fx:i,fy:r}),a}o.image=function(t,e,n,o,i){var r,a,s,c,u,l=this.el("image");return f(t,"object")&&"src"in t?l.attr(t):null!=t&&(r={"xlink:href":t,preserveAspectRatio:"none"},null!=e&&null!=n&&(r.x=e,r.y=n),null!=o&&null!=i?(r.width=o,r.height=i):(a=t,s=function(){h._.$(l.node,{width:this.offsetWidth,height:this.offsetHeight})},c=p.doc.createElement("img"),u=p.doc.body,c.style.cssText="position:absolute;left:-9999em;top:-9999em",c.onload=function(){s.call(c),c.onload=c.onerror=null,u.removeChild(c)},c.onerror=d,u.appendChild(c),c.src=a),h._.$(l.node,r)),l},o.ellipse=function(t,e,n,o){var i;return f(t,"object")&&"[object Object]"==t?i=t:null!=t&&(i={cx:t,cy:e,rx:n,ry:o}),this.el("ellipse",i)},o.path=function(t){var e;return f(t,"object")&&!f(t,"array")?e=t:t&&(e={d:t}),this.el("path",e)},o.group=o.g=function(t){var e=this.el("g");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},o.svg=function(t,e,n,o,i,r,a,s){var c={};return f(t,"object")&&null==e?c=t:(null!=t&&(c.x=t),null!=e&&(c.y=e),null!=n&&(c.width=n),null!=o&&(c.height=o),null!=i&&null!=r&&null!=a&&null!=s&&(c.viewBox=[i,r,a,s])),this.el("svg",c)},o.mask=function(t){var e=this.el("mask");return 1==arguments.length&&t&&!t.type?e.attr(t):arguments.length&&e.add(Array.prototype.slice.call(arguments,0)),e},o.ptrn=function(t,e,n,o,i,r,a,s){var c;return f(t,"object")?c=t:(c={patternUnits:"userSpaceOnUse"},t&&(c.x=t),e&&(c.y=e),null!=n&&(c.width=n),null!=o&&(c.height=o),c.viewBox=null!=i&&null!=r&&null!=a&&null!=s?[i,r,a,s]:[t||0,e||0,n||0,o||0]),this.el("pattern",c)},o.use=function(t){return null!=t?(t instanceof e&&(t.attr("id")||t.attr({id:h._.id(t)}),t=t.attr("id")),"#"==String(t).charAt()&&(t=t.substring(1)),this.el("use",{"xlink:href":"#"+t})):e.prototype.use.call(this)},o.symbol=function(t,e,n,o){var i={};return null!=t&&null!=e&&null!=n&&null!=o&&(i.viewBox=[t,e,n,o]),this.el("symbol",i)},o.text=function(t,e,n){var o={};return f(t,"object")?o=t:null!=t&&(o={x:t,y:e,text:n||""}),this.el("text",o)},o.line=function(t,e,n,o){var i={};return f(t,"object")?i=t:null!=t&&(i={x1:t,x2:n,y1:e,y2:o}),this.el("line",i)},o.polyline=function(t){1<arguments.length&&(t=Array.prototype.slice.call(arguments,0));var e={};return f(t,"object")&&!f(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polyline",e)},o.polygon=function(t){1<arguments.length&&(t=Array.prototype.slice.call(arguments,0));var e={};return f(t,"object")&&!f(t,"array")?e=t:null!=t&&(e={points:t}),this.el("polygon",e)},c=h._.$,o.gradient=function(s){return function(t){var e,n=W("snap.util.grad.parse",null,s).firstDefined();if(!n)return null;n.params.unshift(t),e="l"==n.type.toLowerCase()?g.apply(0,n.params):m.apply(0,n.params),n.type!=n.type.toLowerCase()&&c(e.node,{gradientUnits:"userSpaceOnUse"});for(var o=n.stops,i=o.length,r=0;r<i;r++){var a=o[r];e.addStop(a.color,a.offset)}return e}(this.defs)},o.gradientLinear=function(t,e,n,o){return g(this.defs,t,e,n,o)},o.gradientRadial=function(t,e,n,o,i){return m(this.defs,t,e,n,o,i)},o.toString=function(){var t,e=this.node.ownerDocument,n=e.createDocumentFragment(),o=e.createElement("div"),i=this.node.cloneNode(!0);return n.appendChild(o),o.appendChild(i),h._.$(i,{xmlns:"http://www.w3.org/2000/svg"}),t=o.innerHTML,n.removeChild(n.firstChild),t},o.toDataURL=function(){return v&&v.btoa?"data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(this))):void 0},o.clear=function(){for(var t,e=this.node.firstChild;e;)t=e.nextSibling,"defs"!=e.tagName?e.parentNode.removeChild(e):o.clear.call({node:e}),e=t}}),e.plugin(function(V,m,t,e){function x(e){var n=x.ps=x.ps||{};return n[e]?n[e].sleep=100:n[e]={sleep:100},setTimeout(function(){for(var t in n)n[s](t)&&t!=e&&(n[t].sleep--,n[t].sleep||delete n[t])}),n[e]}function g(t,e,n,o){return null==t&&(t=e=n=o=0),null==e&&(e=t.y,n=t.width,o=t.height,t=t.x),{x:t,y:e,width:n,w:n,height:o,h:o,x2:t+n,y2:e+o,cx:t+n/2,cy:e+o/2,r1:Z.min(n,o)/2,r2:Z.max(n,o)/2,r0:Z.sqrt(n*n+o*o)/2,path:a(t,e,n,o),vb:[t,e,n,o].join(" ")}}function b(){return this.join(",").replace(c,"$1")}function w(t){var e=d(t);return e.toString=b,e}function v(t,e,n,o,i,r,a,s,c){return null==c?A(t,e,n,o,i,r,a,s):C(t,e,n,o,i,r,a,s,function(t,e,n,o,i,r,a,s,c){if(!(c<0||A(t,e,n,o,i,r,a,s)<c)){for(var u,l=1-(u=.5),h=A(t,e,n,o,i,r,a,s,l);.01<W(h-c);)h=A(t,e,n,o,i,r,a,s,l+=(h<c?1:-1)*(u/=2));return l}}(t,e,n,o,i,r,a,s,c))}function n(f,d){function g(t){return+(+t).toFixed(3)}return V._.cacher(function(t,e,n){t instanceof m&&(t=t.attr("d"));for(var o,i,r,a,s,c="",u={},l=0,h=0,p=(t=L(t)).length;h<p;h++){if("M"==(r=t[h])[0])o=+r[1],i=+r[2];else{if(e<l+(a=v(o,i,r[1],r[2],r[3],r[4],r[5],r[6]))){if(d&&!u.start){if(c+=["C"+g((s=v(o,i,r[1],r[2],r[3],r[4],r[5],r[6],e-l)).start.x),g(s.start.y),g(s.m.x),g(s.m.y),g(s.x),g(s.y)],n)return c;u.start=c,c=["M"+g(s.x),g(s.y)+"C"+g(s.n.x),g(s.n.y),g(s.end.x),g(s.end.y),g(r[5]),g(r[6])].join(),l+=a,o=+r[5],i=+r[6];continue}if(!f&&!d)return v(o,i,r[1],r[2],r[3],r[4],r[5],r[6],e-l)}l+=a,o=+r[5],i=+r[6]}c+=r.shift()+r}return u.end=c,f?l:d?u:C(o,i,r[0],r[1],r[2],r[3],r[4],r[5],1)},null,V._.clone)}function C(t,e,n,o,i,r,a,s,c){var u=1-c,l=I(u,3),h=I(u,2),p=c*c,f=p*c,d=t+2*c*(n-t)+p*(i-2*n+t),g=e+2*c*(o-e)+p*(r-2*o+e),m=n+2*c*(i-n)+p*(a-2*i+n),v=o+2*c*(r-o)+p*(s-2*r+o);return{x:l*t+3*h*c*n+3*u*c*c*i+f*a,y:l*e+3*h*c*o+3*u*c*c*r+f*s,m:{x:d,y:g},n:{x:m,y:v},start:{x:u*t+c*n,y:u*e+c*o},end:{x:u*i+c*a,y:u*r+c*s},alpha:90-180*Z.atan2(d-m,g-v)/$}}function k(t,e,n,o,i,r,a,s){V.is(t,"array")||(t=[t,e,n,o,i,r,a,s]);var c=f.apply(null,t);return g(c.min.x,c.min.y,c.max.x-c.min.x,c.max.y-c.min.y)}function y(t,e,n){return e>=t.x&&e<=t.x+t.width&&n>=t.y&&n<=t.y+t.height}function S(t,e){return t=g(t),y(e=g(e),t.x,t.y)||y(e,t.x2,t.y)||y(e,t.x,t.y2)||y(e,t.x2,t.y2)||y(t,e.x,e.y)||y(t,e.x2,e.y)||y(t,e.x,e.y2)||y(t,e.x2,e.y2)||(t.x<e.x2&&t.x>e.x||e.x<t.x2&&e.x>t.x)&&(t.y<e.y2&&t.y>e.y||e.y<t.y2&&e.y>t.y)}function E(t,e,n,o,i){return t*(t*(-3*e+9*n-9*o+3*i)+6*e-12*n+6*o)-3*e+3*n}function A(t,e,n,o,i,r,a,s,c){null==c&&(c=1);for(var u=(c=1<c?1:c<0?0:c)/2,l=[-.1252,.1252,-.3678,.3678,-.5873,.5873,-.7699,.7699,-.9041,.9041,-.9816,.9816],h=[.2491,.2491,.2335,.2335,.2032,.2032,.1601,.1601,.1069,.1069,.0472,.0472],p=0,f=0;f<12;f++){var d=u*l[f]+u,g=E(d,t,n,i,a),m=E(d,e,o,r,s),v=g*g+m*m;p+=h[f]*Z.sqrt(v)}return u*p}function T(t,e,n){if(!S(k(t),k(e)))return n?0:[];for(var o=~~(A.apply(0,t)/8),i=~~(A.apply(0,e)/8),r=[],a=[],s={},c=n?0:[],u=0;u<1+o;u++){var l=C.apply(0,t.concat(u/o));r.push({x:l.x,y:l.y,t:u/o})}for(u=0;u<1+i;u++)l=C.apply(0,e.concat(u/i)),a.push({x:l.x,y:l.y,t:u/i});for(u=0;u<o;u++)for(var h=0;h<i;h++){var p=r[u],f=r[u+1],d=a[h],g=a[h+1],m=W(f.x-p.x)<.001?"y":"x",v=W(g.x-d.x)<.001?"y":"x",y=function(t,e,n,o,i,r,a,s){if(!(R(t,n)<D(i,a)||D(t,n)>R(i,a)||R(e,o)<D(r,s)||D(e,o)>R(r,s))){var c=(t-n)*(r-s)-(e-o)*(i-a);if(c){var u=((t*o-e*n)*(i-a)-(t-n)*(i*s-r*a))/c,l=((t*o-e*n)*(r-s)-(e-o)*(i*s-r*a))/c,h=+u.toFixed(2),p=+l.toFixed(2);if(!(h<+D(t,n).toFixed(2)||h>+R(t,n).toFixed(2)||h<+D(i,a).toFixed(2)||h>+R(i,a).toFixed(2)||p<+D(e,o).toFixed(2)||p>+R(e,o).toFixed(2)||p<+D(r,s).toFixed(2)||p>+R(r,s).toFixed(2)))return{x:u,y:l}}}}(p.x,p.y,f.x,f.y,d.x,d.y,g.x,g.y);if(y){if(s[y.x.toFixed(4)]==y.y.toFixed(4))continue;s[y.x.toFixed(4)]=y.y.toFixed(4);var b=p.t+W((y[m]-p[m])/(f[m]-p[m]))*(f.t-p.t),x=d.t+W((y[v]-d[v])/(g[v]-d[v]))*(g.t-d.t);0<=b&&b<=1&&0<=x&&x<=1&&(n?c++:c.push({x:y.x,y:y.y,t1:b,t2:x}))}}return c}function i(t,e,n){t=L(t),e=L(e);for(var o,i,r,a,s,c,u,l,h,p,f=n?0:[],d=0,g=t.length;d<g;d++){var m=t[d];if("M"==m[0])o=s=m[1],i=c=m[2];else{i="C"==m[0]?(o=(h=[o,i].concat(m.slice(1)))[6],h[7]):(h=[o,i,o,i,s,c,s,c],o=s,c);for(var v=0,y=e.length;v<y;v++){var b=e[v];if("M"==b[0])r=u=b[1],a=l=b[2];else{a="C"==b[0]?(r=(p=[r,a].concat(b.slice(1)))[6],p[7]):(p=[r,a,r,a,u,l,u,l],r=u,l);var x=T(h,p,n);if(n)f+=x;else{for(var w=0,C=x.length;w<C;w++)x[w].segment1=d,x[w].segment2=v,x[w].bez1=h,x[w].bez2=p;f=f.concat(x)}}}}}return f}function r(t){var e=x(t);if(e.bbox)return d(e.bbox);if(!t)return g();for(var n,o,i=0,r=0,a=[],s=[],c=0,u=(t=L(t)).length;c<u;c++){"M"==(n=t[c])[0]?(i=n[1],r=n[2],a.push(i),s.push(r)):(o=f(i,r,n[1],n[2],n[3],n[4],n[5],n[6]),a=a.concat(o.min.x,o.max.x),s=s.concat(o.min.y,o.max.y),i=n[5],r=n[6])}var l=D.apply(0,a),h=D.apply(0,s),p=g(l,h,R.apply(0,a)-l,R.apply(0,s)-h);return e.bbox=d(p),p}function a(t,e,n,o,i){if(i)return[["M",+t+ +i,e],["l",n-2*i,0],["a",i,i,0,0,1,i,i],["l",0,o-2*i],["a",i,i,0,0,1,-i,i],["l",2*i-n,0],["a",i,i,0,0,1,-i,-i],["l",0,2*i-o],["a",i,i,0,0,1,i,-i],["z"]];var r=[["M",t,e],["l",n,0],["l",0,o],["l",-n,0],["z"]];return r.toString=b,r}function B(t,e,n,o,i){var r,a,s,c;return null==i&&null==o&&(o=n),t=+t,e=+e,n=+n,o=+o,(c=null!=i?(r=Math.PI/180,a=t+n*Math.cos(-o*r),s=t+n*Math.cos(-i*r),[["M",a,e+n*Math.sin(-o*r)],["A",n,n,0,+(180<i-o),0,s,e+n*Math.sin(-i*r)]]):[["M",t,e],["m",0,-o],["a",n,o,0,1,1,0,2*o],["a",n,o,0,1,1,0,-2*o],["z"]]).toString=b,c}function M(t){var e=x(t);if(e.abs)return w(e.abs);if(F(t,"array")&&F(t&&t[0],"array")||(t=V.parsePathString(t)),!t||!t.length)return[["M",0,0]];var n,o=[],i=0,r=0,a=0,s=0,c=0;"M"==t[0][0]&&(a=i=+t[0][1],s=r=+t[0][2],c++,o[0]=["M",i,r]);for(var u,l,h=3==t.length&&"M"==t[0][0]&&"R"==t[1][0].toUpperCase()&&"Z"==t[2][0].toUpperCase(),p=c,f=t.length;p<f;p++){if(o.push(u=[]),(n=(l=t[p])[0])!=n.toUpperCase())switch(u[0]=n.toUpperCase(),u[0]){case"A":u[1]=l[1],u[2]=l[2],u[3]=l[3],u[4]=l[4],u[5]=l[5],u[6]=+l[6]+i,u[7]=+l[7]+r;break;case"V":u[1]=+l[1]+r;break;case"H":u[1]=+l[1]+i;break;case"R":for(var d=[i,r].concat(l.slice(1)),g=2,m=d.length;g<m;g++)d[g]=+d[g]+i,d[++g]=+d[g]+r;o.pop(),o=o.concat(O(d,h));break;case"O":o.pop(),(d=B(i,r,l[1],l[2])).push(d[0]),o=o.concat(d);break;case"U":o.pop(),o=o.concat(B(i,r,l[1],l[2],l[3])),u=["U"].concat(o[o.length-1].slice(-2));break;case"M":a=+l[1]+i,s=+l[2]+r;default:for(g=1,m=l.length;g<m;g++)u[g]=+l[g]+(g%2?i:r)}else if("R"==n)d=[i,r].concat(l.slice(1)),o.pop(),o=o.concat(O(d,h)),u=["R"].concat(l.slice(-2));else if("O"==n)o.pop(),(d=B(i,r,l[1],l[2])).push(d[0]),o=o.concat(d);else if("U"==n)o.pop(),o=o.concat(B(i,r,l[1],l[2],l[3])),u=["U"].concat(o[o.length-1].slice(-2));else for(var v=0,y=l.length;v<y;v++)u[v]=l[v];if("O"!=(n=n.toUpperCase()))switch(u[0]){case"Z":i=+a,r=+s;break;case"H":i=u[1];break;case"V":r=u[1];break;case"M":a=u[u.length-2],s=u[u.length-1];default:i=u[u.length-2],r=u[u.length-1]}}return o.toString=b,e.abs=w(o),o}function P(t,e,n,o){return[t,e,n,o,n,o]}function N(t,e,n,o,i,r){return[1/3*t+2/3*n,1/3*e+2/3*o,1/3*i+2/3*n,1/3*r+2/3*o,i,r]}function f(t,e,n,o,i,r,a,s){for(var c,u,l,h,p,f,d,g,m=[],v=[[],[]],y=0;y<2;++y)if(l=0==y?(u=6*t-12*n+6*i,c=-3*t+9*n-9*i+3*a,3*n-3*t):(u=6*e-12*o+6*r,c=-3*e+9*o-9*r+3*s,3*o-3*e),W(c)<1e-12){if(W(u)<1e-12)continue;0<(h=-l/u)&&h<1&&m.push(h)}else d=u*u-4*l*c,g=Z.sqrt(d),d<0||(0<(p=(-u+g)/(2*c))&&p<1&&m.push(p),0<(f=(-u-g)/(2*c))&&f<1&&m.push(f));for(var b,x=m.length,w=x;x--;)b=1-(h=m[x]),v[0][x]=b*b*b*t+3*b*b*h*n+3*b*h*h*i+h*h*h*a,v[1][x]=b*b*b*e+3*b*b*h*o+3*b*h*h*r+h*h*h*s;return v[0][w]=t,v[1][w]=e,v[0][w+1]=a,v[1][w+1]=s,v[0].length=v[1].length=w+2,{min:{x:D.apply(0,v[0]),y:D.apply(0,v[1])},max:{x:R.apply(0,v[0]),y:R.apply(0,v[1])}}}function L(t,e){var n=!e&&x(t);if(!e&&n.curve)return w(n.curve);function o(t,e,n){var o,i;if(!t)return["C",e.x,e.y,e.x,e.y,e.x,e.y];switch(t[0]in{T:1,Q:1}||(e.qx=e.qy=null),t[0]){case"M":e.X=t[1],e.Y=t[2];break;case"A":t=["C"].concat(function t(e,n,o,i,r,a,s,c,u,l){var h,p,f,d,g,m,v,y,b,x,w=120*$/180,C=$/180*(+r||0),k=[],S=V._.cacher(function(t,e,n){return{x:t*Z.cos(n)-e*Z.sin(n),y:t*Z.sin(n)+e*Z.cos(n)}});if(!o||!i)return[e,n,c,u,c,u];l?(x=l[0],B=l[1],y=l[2],b=l[3]):(e=(h=S(e,n,-C)).x,n=h.y,c=(h=S(c,u,-C)).x,u=h.y,1<(d=(p=(Z.cos($/180*r),Z.sin($/180*r),(e-c)/2))*p/(o*o)+(f=(n-u)/2)*f/(i*i))&&(o*=d=Z.sqrt(d),i*=d),g=o*o,m=i*i,y=(v=(a==s?-1:1)*Z.sqrt(W((g*m-g*f*f-m*p*p)/(g*f*f+m*p*p))))*o*f/i+(e+c)/2,b=v*-i*p/o+(n+u)/2,x=Z.asin(((n-b)/i).toFixed(9)),B=Z.asin(((u-b)/i).toFixed(9)),(x=e<y?$-x:x)<0&&(x=2*$+x),(B=c<y?$-B:B)<0&&(B=2*$+B),s&&B<x&&(x-=2*$),!s&&x<B&&(B-=2*$));var E,A,T,B,M=B-x;W(M)>w&&(E=B,A=c,T=u,B=x+w*(s&&x<B?1:-1),k=t(c=y+o*Z.cos(B),u=b+i*Z.sin(B),o,i,r,0,s,A,T,[B,E,y,b])),M=B-x;var P=Z.cos(x),N=Z.sin(x),L=Z.cos(B),O=Z.sin(B),F=Z.tan(M/4),_=4/3*o*F,D=4/3*i*F,R=[e,n],I=[e+_*N,n-D*P],j=[c+_*O,u-D*L],z=[c,u];if(I[0]=2*R[0]-I[0],I[1]=2*R[1]-I[1],l)return[I,j,z].concat(k);for(var q=[],H=0,U=(k=[I,j,z].concat(k).join().split(",")).length;H<U;H++)q[H]=H%2?S(k[H-1],k[H],C).y:S(k[H],k[H+1],C).x;return q}.apply(0,[e.x,e.y].concat(t.slice(1))));break;case"S":i="C"==n||"S"==n?(o=2*e.x-e.bx,2*e.y-e.by):(o=e.x,e.y),t=["C",o,i].concat(t.slice(1));break;case"T":"Q"==n||"T"==n?(e.qx=2*e.x-e.qx,e.qy=2*e.y-e.qy):(e.qx=e.x,e.qy=e.y),t=["C"].concat(N(e.x,e.y,e.qx,e.qy,t[1],t[2]));break;case"Q":e.qx=t[1],e.qy=t[2],t=["C"].concat(N(e.x,e.y,t[1],t[2],t[3],t[4]));break;case"L":t=["C"].concat(P(e.x,e.y,t[1],t[2]));break;case"H":t=["C"].concat(P(e.x,e.y,t[1],e.y));break;case"V":t=["C"].concat(P(e.x,e.y,e.x,t[1]));break;case"Z":t=["C"].concat(P(e.x,e.y,e.X,e.Y))}return t}function i(t,e){if(7<t[e].length){t[e].shift();for(var n=t[e];n.length;)l[e]="A",s&&(h[e]="A"),t.splice(e++,0,["C"].concat(n.splice(0,6)));t.splice(e,1),g=R(a.length,s&&s.length||0)}}function r(t,e,n,o,i){t&&e&&"M"==t[i][0]&&"M"!=e[i][0]&&(e.splice(i,0,["M",o.x,o.y]),n.bx=0,n.by=0,n.x=t[i][1],n.y=t[i][2],g=R(a.length,s&&s.length||0))}for(var a=M(t),s=e&&M(e),c={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},u={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},l=[],h=[],p="",f="",d=0,g=R(a.length,s&&s.length||0);d<g;d++){a[d]&&(p=a[d][0]),"C"!=p&&(l[d]=p,d&&(f=l[d-1])),a[d]=o(a[d],c,f),"A"!=l[d]&&"C"==p&&(l[d]="C"),i(a,d),s&&(s[d]&&(p=s[d][0]),"C"!=p&&(h[d]=p,d&&(f=h[d-1])),s[d]=o(s[d],u,f),"A"!=h[d]&&"C"==p&&(h[d]="C"),i(s,d)),r(a,s,c,u,d),r(s,a,u,c,d);var m=a[d],v=s&&s[d],y=m.length,b=s&&v.length;c.x=m[y-2],c.y=m[y-1],c.bx=_(m[y-4])||c.x,c.by=_(m[y-3])||c.y,u.bx=s&&(_(v[b-4])||u.x),u.by=s&&(_(v[b-3])||u.y),u.x=s&&v[b-2],u.y=s&&v[b-1]}return s||(n.curve=w(a)),s?[a,s]:a}function O(t,e){for(var n=[],o=0,i=t.length;o<i-2*!e;o+=2){var r=[{x:+t[o-2],y:+t[o-1]},{x:+t[o],y:+t[o+1]},{x:+t[o+2],y:+t[o+3]},{x:+t[o+4],y:+t[o+5]}];e?o?i-4==o?r[3]={x:+t[0],y:+t[1]}:i-2==o&&(r[2]={x:+t[0],y:+t[1]},r[3]={x:+t[2],y:+t[3]}):r[0]={x:+t[i-2],y:+t[i-1]}:i-4==o?r[3]=r[2]:o||(r[0]={x:+t[o],y:+t[o+1]}),n.push(["C",(-r[0].x+6*r[1].x+r[2].x)/6,(-r[0].y+6*r[1].y+r[2].y)/6,(r[1].x+6*r[2].x-r[3].x)/6,(r[1].y+6*r[2].y-r[3].y)/6,r[2].x,r[2].y])}return n}var o=m.prototype,F=V.is,d=V._.clone,s="hasOwnProperty",c=/,?([a-z]),?/gi,_=parseFloat,Z=Math,$=Z.PI,D=Z.min,R=Z.max,I=Z.pow,W=Z.abs,u=n(1),l=n(),h=n(0,1),p=V._unit2px,j={path:function(t){return t.attr("path")},circle:function(t){var e=p(t);return B(e.cx,e.cy,e.r)},ellipse:function(t){var e=p(t);return B(e.cx||0,e.cy||0,e.rx,e.ry)},rect:function(t){var e=p(t);return a(e.x||0,e.y||0,e.width,e.height,e.rx,e.ry)},image:function(t){var e=p(t);return a(e.x||0,e.y||0,e.width,e.height)},line:function(t){return"M"+[t.attr("x1")||0,t.attr("y1")||0,t.attr("x2"),t.attr("y2")]},polyline:function(t){return"M"+t.attr("points")},polygon:function(t){return"M"+t.attr("points")+"z"},deflt:function(t){var e=t.node.getBBox();return a(e.x,e.y,e.width,e.height)}};V.path=x,V.path.getTotalLength=u,V.path.getPointAtLength=l,V.path.getSubpath=function(t,e,n){if(this.getTotalLength(t)-n<1e-6)return h(t,e).end;var o=h(t,n,1);return e?h(o,e).end:o},o.getTotalLength=function(){return this.node.getTotalLength?this.node.getTotalLength():void 0},o.getPointAtLength=function(t){return l(this.attr("d"),t)},o.getSubpath=function(t,e){return V.path.getSubpath(this.attr("d"),t,e)},V._.box=g,V.path.findDotsAtSegment=C,V.path.bezierBBox=k,V.path.isPointInsideBBox=y,V.closest=function(t,e,n,o){for(var i=100,r=g(t-i/2,e-i/2,i,i),a=[],s=n[0].hasOwnProperty("x")?function(t){return{x:n[t].x,y:n[t].y}}:function(t){return{x:n[t],y:o[t]}},c=0;i<=1e6&&!c;){for(var u=0,l=n.length;u<l;u++){var h=s(u);if(y(r,h.x,h.y)){c++,a.push(h);break}}c||(r=g(t-(i*=2)/2,e-i/2,i,i))}if(1e6!=i){for(var p,f=1/0,u=0,l=a.length;u<l;u++){var d=V.len(t,e,a[u].x,a[u].y);d<f&&(f=d,a[u].len=d,p=a[u])}return p}},V.path.isBBoxIntersect=S,V.path.intersection=function(t,e){return i(t,e)},V.path.intersectionNumber=function(t,e){return i(t,e,1)},V.path.isPointInside=function(t,e,n){var o=r(t);return y(o,e,n)&&i(t,[["M",e,n],["H",o.x2+10]],1)%2==1},V.path.getBBox=r,V.path.get=j,V.path.toRelative=function(t){var e=x(t),n=String.prototype.toLowerCase;if(e.rel)return w(e.rel);V.is(t,"array")&&V.is(t&&t[0],"array")||(t=V.parsePathString(t));var o=[],i=0,r=0,a=0,s=0,c=0;"M"==t[0][0]&&(a=i=t[0][1],s=r=t[0][2],c++,o.push(["M",i,r]));for(var u=c,l=t.length;u<l;u++){var h=o[u]=[],p=t[u];if(p[0]!=n.call(p[0]))switch(h[0]=n.call(p[0]),h[0]){case"a":h[1]=p[1],h[2]=p[2],h[3]=p[3],h[4]=p[4],h[5]=p[5],h[6]=+(p[6]-i).toFixed(3),h[7]=+(p[7]-r).toFixed(3);break;case"v":h[1]=+(p[1]-r).toFixed(3);break;case"m":a=p[1],s=p[2];default:for(var f=1,d=p.length;f<d;f++)h[f]=+(p[f]-(f%2?i:r)).toFixed(3)}else{h=o[u]=[],"m"==p[0]&&(a=p[1]+i,s=p[2]+r);for(var g=0,m=p.length;g<m;g++)o[u][g]=p[g]}var v=o[u].length;switch(o[u][0]){case"z":i=a,r=s;break;case"h":i+=+o[u][v-1];break;case"v":r+=+o[u][v-1];break;default:i+=+o[u][v-2],r+=+o[u][v-1]}}return o.toString=b,e.rel=w(o),o},V.path.toAbsolute=M,V.path.toCubic=L,V.path.map=function(t,e){if(!e)return t;for(var n,o,i,r,a,s=0,c=(t=L(t)).length;s<c;s++)for(i=1,r=(a=t[s]).length;i<r;i+=2)n=e.x(a[i],a[i+1]),o=e.y(a[i],a[i+1]),a[i]=n,a[i+1]=o;return t},V.path.toString=b,V.path.clone=w}),e.plugin(function(h,t,e,n){function c(t){if(this.items=[],this.bindings={},this.length=0,this.type="set",t)for(var e=0,n=t.length;e<n;e++)t[e]&&(this[this.items.length]=this.items[this.items.length]=t[e],this.length++)}var u=Math.max,l=Math.min,o=c.prototype;o.push=function(){for(var t,e,n=0,o=arguments.length;n<o;n++)(t=arguments[n])&&(this[e=this.items.length]=this.items[e]=t,this.length++);return this},o.pop=function(){return this.length&&delete this[this.length--],this.items.pop()},o.forEach=function(t,e){for(var n=0,o=this.items.length;n<o;n++)if(!1===t.call(e,this.items[n],n))return this;return this},o.animate=function(n,o,i,t){"function"!=typeof i||i.length||(t=i,i=x.linear),n instanceof h._.Animation&&(t=n.callback,i=n.easing,o=i.dur,n=n.attr);var r,a=arguments;function s(){e?this.b=e:e=this.b}h.is(n,"array")&&h.is(a[a.length-1],"array")&&(r=!0);var e,c=0,u=this,l=t&&function(){++c==u.length&&t.call(this)};return this.forEach(function(t,e){W.once("snap.animcreated."+t.id,s),r?a[e]&&t.animate.apply(t,a[e]):t.animate(n,o,i,l)})},o.remove=function(){for(;this.length;)this.pop().remove();return this},o.bind=function(t,e,n){var o,i={};return"function"==typeof e?this.bindings[t]=e:(o=n||t,this.bindings[t]=function(t){i[o]=t,e.attr(i)}),this},o.attr=function(t){var e={};for(var n in t)this.bindings[n]?this.bindings[n](t[n]):e[n]=t[n];for(var o=0,i=this.items.length;o<i;o++)this.items[o].attr(e);return this},o.clear=function(){for(;this.length;)this.pop()},o.splice=function(t,e,n){t=t<0?u(this.length+t,0):t,e=u(0,l(this.length-t,e));for(var o=[],i=[],r=[],a=2;a<arguments.length;a++)r.push(arguments[a]);for(a=0;a<e;a++)i.push(this[t+a]);for(;a<this.length-t;a++)o.push(this[t+a]);var s=r.length;for(a=0;a<s+o.length;a++)this.items[t+a]=this[t+a]=a<s?r[a]:o[a-s];for(a=this.items.length=this.length-=e-s;this[a];)delete this[a++];return new c(i)},o.exclude=function(t){for(var e=0,n=this.length;e<n;e++)if(this[e]==t)return this.splice(e,1),!0;return!1},o.insertAfter=function(t){for(var e=this.items.length;e--;)this.items[e].insertAfter(t);return this},o.getBBox=function(){for(var t,e=[],n=[],o=[],i=[],r=this.items.length;r--;){this.items[r].removed||(t=this.items[r].getBBox(),e.push(t.x),n.push(t.y),o.push(t.x+t.width),i.push(t.y+t.height))}return{x:e=l.apply(0,e),y:n=l.apply(0,n),x2:o=u.apply(0,o),y2:i=u.apply(0,i),width:o-e,height:i-n,cx:e+(o-e)/2,cy:n+(i-n)/2}},o.clone=function(t){t=new c;for(var e=0,n=this.items.length;e<n;e++)t.push(this.items[e].clone());return t},o.toString=function(){return"Snap‘s set"},o.type="set",h.Set=c,h.set=function(){var t=new c;return arguments.length&&t.push.apply(t,Array.prototype.slice.call(arguments,0)),t}}),e.plugin(function(h,t,e,n){function p(t){var e=t[0];switch(e.toLowerCase()){case"t":return[e,0,0];case"m":return[e,1,0,0,1,0,0];case"r":return 4==t.length?[e,0,t[2],t[3]]:[e,0];case"s":return 5==t.length?[e,1,1,t[3],t[4]]:3==t.length?[e,1,1]:[e,1]}}function f(t){return t}function d(t){return t.join(" ")}function g(t){return h.rgb(t[0],t[1],t[2],t[3])}function m(t){for(var e,n,o,i,r=0,a=[],s=0,c=t.length;s<c;s++){for(o="[",i=['"'+t[s][0]+'"'],e=1,n=t[s].length;e<n;e++)i[e]="val["+r+++"]";o+=i+"]",a[s]=o}return Function("val","return Snap.path.toString.call(["+a+"])")}function v(t){for(var e=[],n=0,o=t.length;n<o;n++)for(var i=1,r=t[n].length;i<r;i++)e.push(t[n][i]);return e}function y(t){return isFinite(t)}var b={},x=/[%a-z]+$/i,w=String;b.stroke=b.fill="colour",t.prototype.equal=function(t,e){return W("snap.util.equal",this,t,e).firstDefined()},W.on("snap.util.equal",function(t,e){var n,o,i=w(this.attr(t)||""),r=this;if("colour"==b[t])return n=h.color(i),o=h.color(e),{from:[n.r,n.g,n.b,n.opacity],to:[o.r,o.g,o.b,o.opacity],f:g};if("viewBox"==t)return{from:n=this.attr(t).vb.split(" ").map(Number),to:o=e.split(" ").map(Number),f:d};if("transform"==t||"gradientTransform"==t||"patternTransform"==t)return"string"==typeof e&&(e=w(e).replace(/\.{3}|\u2026/g,i)),function(t,e,n){t=t||new h.Matrix,e=e||new h.Matrix,t=h.parseTransformString(t.toTransformString())||[],e=h.parseTransformString(e.toTransformString())||[];for(var o,i,r,a,s=Math.max(t.length,e.length),c=[],u=[],l=0;l<s;l++){if(r=t[l]||p(e[l]),a=e[l]||p(r),r[0]!=a[0]||"r"==r[0].toLowerCase()&&(r[2]!=a[2]||r[3]!=a[3])||"s"==r[0].toLowerCase()&&(r[3]!=a[3]||r[4]!=a[4])){t=h._.transform2matrix(t,n()),e=h._.transform2matrix(e,n()),c=[["m",t.a,t.b,t.c,t.d,t.e,t.f]],u=[["m",e.a,e.b,e.c,e.d,e.e,e.f]];break}for(c[l]=[],u[l]=[],o=0,i=Math.max(r.length,a.length);o<i;o++)o in r&&(c[l][o]=r[o]),o in a&&(u[l][o]=a[o])}return{from:v(c),to:v(u),f:m(c)}}(i=this.matrix,e=h._.rgTransform.test(e)?h._.transform2matrix(e,this.getBBox()):h._.transform2matrix(h._.svgTransform2string(e),this.getBBox()),function(){return r.getBBox(1)});if("d"==t||"path"==t)return{from:v((n=h.path.toCubic(i,e))[0]),to:v(n[1]),f:m(n[0])};if("points"==t)return{from:n=w(i).split(h._.separator),to:o=w(e).split(h._.separator),f:function(t){return t}};if(y(i)&&y(e))return{from:parseFloat(i),to:parseFloat(e),f:f};var a,s,c,u=i.match(x),l=w(e).match(x);return u&&(s=u,c=l,h.is(s,"array")&&h.is(c,"array")&&s.toString()==c.toString())?{from:parseFloat(i),to:parseFloat(e),f:(a=u,function(t){return+t.toFixed(3)+a})}:{from:this.asPX(t),to:this.asPX(t,e),f:f}})}),e.plugin(function(p,t,e,i){function f(t,e){var n="y"==t?"scrollTop":"scrollLeft",o=e&&e.node?e.node.ownerDocument:i.doc;return o[n in o.documentElement?"documentElement":"body"][n]}function d(){return this.originalEvent.preventDefault()}function g(){return this.originalEvent.stopPropagation()}function l(t){for(var e,n=t.clientX,o=t.clientY,i=f("y"),r=f("x"),a=h.length;a--;){if(e=h[a],m){for(var s,c=t.touches&&t.touches.length;c--;)if((s=t.touches[c]).identifier==e.el._drag.id||e.el.node.contains(s.target)){n=s.clientX,o=s.clientY,(t.originalEvent?t.originalEvent:t).preventDefault();break}}else t.preventDefault();var u=e.el.node;u.nextSibling,u.parentNode,u.style.display,n+=r,o+=i,W("snap.drag.move."+e.el.id,e.move_scope||e.el,n-e.el._drag.x,o-e.el._drag.y,n,o,t)}}for(var n=t.prototype,m=("createTouch"in i.doc),o=["click","dblclick","mousedown","mousemove","mouseout","mouseover","mouseup","touchstart","touchmove","touchend","touchcancel"],v={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},h=[],y=function(t){p.unmousemove(l).unmouseup(y);for(var e,n=h.length;n--;)(e=h[n]).el._drag={},W("snap.drag.end."+e.el.id,e.end_scope||e.start_scope||e.move_scope||e.el,t),W.off("snap.drag.*."+e.el.id);h=[]},r=o.length;r--;)!function(a){p[a]=n[a]=function(t,e){if(p.is(t,"function"))this.events=this.events||[],this.events.push({name:a,f:t,unbind:(c=this.node||document,u=a,l=t,h=e||this,r=m&&v[u]?v[u]:u,u!==r&&c.addEventListener(u,i,!1),c.addEventListener(r,i,!1),function(){return u!==r&&c.removeEventListener(u,i,!1),c.removeEventListener(r,i,!1),!0})});else for(var n=0,o=this.events.length;n<o;n++)if(this.events[n].name==a)try{this.events[n].f.call(this)}catch(t){}function i(t){var e=f("y",h),n=f("x",h);if(m&&v.hasOwnProperty(u))for(var o=0,i=t.targetTouches&&t.targetTouches.length;o<i;o++)if(t.targetTouches[o].target==c||c.contains(t.targetTouches[o].target)){var r=t;(t=t.targetTouches[o]).originalEvent=r,t.preventDefault=d,t.stopPropagation=g;break}var a=t.clientX+n,s=t.clientY+e;return l.call(h,t,a,s)}var c,u,l,h,r;return this},p["un"+a]=n["un"+a]=function(t){for(var e=this.events||[],n=e.length;n--;)if(e[n].name==a&&(e[n].f==t||!t))return e[n].unbind(),e.splice(n,1),e.length||delete this.events,this;return this}}(o[r]);n.hover=function(t,e,n,o){return this.mouseover(t,n).mouseout(e,o||n)},n.unhover=function(t,e){return this.unmouseover(t).unmouseout(e)};var b=[];n.drag=function(o,i,r,a,s,c){function t(t,e,n){(t.originalEvent||t).preventDefault(),u._drag.x=e,u._drag.y=n,u._drag.id=t.identifier,h.length||p.mousemove(l).mouseup(y),h.push({el:u,move_scope:a,start_scope:s,end_scope:c}),i&&W.on("snap.drag.start."+u.id,i),o&&W.on("snap.drag.move."+u.id,o),r&&W.on("snap.drag.end."+u.id,r),W("snap.drag.start."+u.id,s||a||u,e,n,t)}function e(t,e,n){W("snap.draginit."+u.id,u,t,e,n)}var n,u=this;return arguments.length?(W.on("snap.draginit."+u.id,t),u._drag={},b.push({el:u,start:t,init:e}),u.mousedown(e),u):u.drag(function(t,e){this.attr({transform:n+(n?"T":"t")+[t,e]})},function(){n=this.transform().local})},n.undrag=function(){for(var t=b.length;t--;)b[t].el==this&&(this.unmousedown(b[t].init),b.splice(t,1),W.unbind("snap.drag.*."+this.id),W.unbind("snap.draginit."+this.id));return b.length||p.unmousemove(l).unmouseup(y),this}}),e.plugin(function(r,a,t,e){var n=(a.prototype,t.prototype),o=/^\s*url\((.+)\)/,s=String,c=r._.$;r.filter={},n.filter=function(t){var e=this;"svg"!=e.type&&(e=e.paper);var n=r.parse(s(t)),o=r._.id(),i=(e.node.offsetWidth,e.node.offsetHeight,c("filter"));return c(i,{id:o,filterUnits:"userSpaceOnUse"}),i.appendChild(n.node),e.defs.appendChild(i),new a(i)},W.on("snap.util.getattr.filter",function(){W.stop();var t=c(this.node,"filter");if(t){var e=s(t).match(o);return e&&r.select(e[1])}}),W.on("snap.util.attr.filter",function(t){var e;t instanceof a&&"filter"==t.type&&(W.stop(),(e=t.node.id)||(c(t.node,{id:t.id}),e=t.id),c(this.node,{filter:r.url(e)})),t&&"none"!=t||(W.stop(),this.node.removeAttribute("filter"))}),r.filter.blur=function(t,e){null==t&&(t=2);var n=null==e?t:[t,e];return r.format('<feGaussianBlur stdDeviation="{def}"/>',{def:n})},r.filter.blur.toString=function(){return this()},r.filter.shadow=function(t,e,n,o,i){return null==i&&(null==o?(i=n,n=4,o="#000"):(i=o,o=n,n=4)),null==n&&(n=4),null==i&&(i=1),null==t&&(t=0,e=2),null==e&&(e=t),o=r.color(o),r.format('<feGaussianBlur in="SourceAlpha" stdDeviation="{blur}"/><feOffset dx="{dx}" dy="{dy}" result="offsetblur"/><feFlood flood-color="{color}"/><feComposite in2="offsetblur" operator="in"/><feComponentTransfer><feFuncA type="linear" slope="{opacity}"/></feComponentTransfer><feMerge><feMergeNode/><feMergeNode in="SourceGraphic"/></feMerge>',{color:o,dx:t,dy:e,blur:n,opacity:i})},r.filter.shadow.toString=function(){return this()},r.filter.grayscale=function(t){return null==t&&(t=1),r.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {b} {h} 0 0 0 0 0 1 0"/>',{a:.2126+.7874*(1-t),b:.7152-.7152*(1-t),c:.0722-.0722*(1-t),d:.2126-.2126*(1-t),e:.7152+.2848*(1-t),f:.0722-.0722*(1-t),g:.2126-.2126*(1-t),h:.0722+.9278*(1-t)})},r.filter.grayscale.toString=function(){return this()},r.filter.sepia=function(t){return null==t&&(t=1),r.format('<feColorMatrix type="matrix" values="{a} {b} {c} 0 0 {d} {e} {f} 0 0 {g} {h} {i} 0 0 0 0 0 1 0"/>',{a:.393+.607*(1-t),b:.769-.769*(1-t),c:.189-.189*(1-t),d:.349-.349*(1-t),e:.686+.314*(1-t),f:.168-.168*(1-t),g:.272-.272*(1-t),h:.534-.534*(1-t),i:.131+.869*(1-t)})},r.filter.sepia.toString=function(){return this()},r.filter.saturate=function(t){return null==t&&(t=1),r.format('<feColorMatrix type="saturate" values="{amount}"/>',{amount:1-t})},r.filter.saturate.toString=function(){return this()},r.filter.hueRotate=function(t){return t=t||0,r.format('<feColorMatrix type="hueRotate" values="{angle}"/>',{angle:t})},r.filter.hueRotate.toString=function(){return this()},r.filter.invert=function(t){return null==t&&(t=1),r.format('<feComponentTransfer><feFuncR type="table" tableValues="{amount} {amount2}"/><feFuncG type="table" tableValues="{amount} {amount2}"/><feFuncB type="table" tableValues="{amount} {amount2}"/></feComponentTransfer>',{amount:t,amount2:1-t})},r.filter.invert.toString=function(){return this()},r.filter.brightness=function(t){return null==t&&(t=1),r.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}"/><feFuncG type="linear" slope="{amount}"/><feFuncB type="linear" slope="{amount}"/></feComponentTransfer>',{amount:t})},r.filter.brightness.toString=function(){return this()},r.filter.contrast=function(t){return null==t&&(t=1),r.format('<feComponentTransfer><feFuncR type="linear" slope="{amount}" intercept="{amount2}"/><feFuncG type="linear" slope="{amount}" intercept="{amount2}"/><feFuncB type="linear" slope="{amount}" intercept="{amount2}"/></feComponentTransfer>',{amount:t,amount2:.5-t/2})},r.filter.contrast.toString=function(){return this()}}),e.plugin(function(t,e,n,o,i){function r(){return"T"+this.dx+","+this.dy}var a=t._.box,s=t.is,c=/^[^a-z]*([tbmlrc])/i;e.prototype.getAlign=function(t,e){null==e&&s(t,"string")&&(e=t,t=null);var n=(t=t||this.paper).getBBox?t.getBBox():a(t),o=this.getBBox(),i={};switch(e=(e=e&&e.match(c))?e[1].toLowerCase():"c"){case"t":i.dx=0,i.dy=n.y-o.y;break;case"b":i.dx=0,i.dy=n.y2-o.y2;break;case"m":i.dx=0,i.dy=n.cy-o.cy;break;case"l":i.dx=n.x-o.x,i.dy=0;break;case"r":i.dx=n.x2-o.x2,i.dy=0;break;default:i.dx=n.cx-o.cx,i.dy=0}return i.toString=r,i},e.prototype.align=function(t,e){return this.transform("..."+this.getAlign(t,e))}}),e.plugin(function(e,t,n,o){function i(t){t=t.split(/(?=#)/);var e=new String(t[5]);return e[50]=t[0],e[100]=t[1],e[200]=t[2],e[300]=t[3],e[400]=t[4],e[500]=t[5],e[600]=t[6],e[700]=t[7],e[800]=t[8],e[900]=t[9],t[10]&&(e.A100=t[10],e.A200=t[11],e.A400=t[12],e.A700=t[13]),e}e.mui={},e.flat={},e.mui.red=i("#ffebee#ffcdd2#ef9a9a#e57373#ef5350#f44336#e53935#d32f2f#c62828#b71c1c#ff8a80#ff5252#ff1744#d50000"),e.mui.pink=i("#FCE4EC#F8BBD0#F48FB1#F06292#EC407A#E91E63#D81B60#C2185B#AD1457#880E4F#FF80AB#FF4081#F50057#C51162"),e.mui.purple=i("#F3E5F5#E1BEE7#CE93D8#BA68C8#AB47BC#9C27B0#8E24AA#7B1FA2#6A1B9A#4A148C#EA80FC#E040FB#D500F9#AA00FF"),e.mui.deeppurple=i("#EDE7F6#D1C4E9#B39DDB#9575CD#7E57C2#673AB7#5E35B1#512DA8#4527A0#311B92#B388FF#7C4DFF#651FFF#6200EA"),e.mui.indigo=i("#E8EAF6#C5CAE9#9FA8DA#7986CB#5C6BC0#3F51B5#3949AB#303F9F#283593#1A237E#8C9EFF#536DFE#3D5AFE#304FFE"),e.mui.blue=i("#E3F2FD#BBDEFB#90CAF9#64B5F6#64B5F6#2196F3#1E88E5#1976D2#1565C0#0D47A1#82B1FF#448AFF#2979FF#2962FF"),e.mui.lightblue=i("#E1F5FE#B3E5FC#81D4FA#4FC3F7#29B6F6#03A9F4#039BE5#0288D1#0277BD#01579B#80D8FF#40C4FF#00B0FF#0091EA"),e.mui.cyan=i("#E0F7FA#B2EBF2#80DEEA#4DD0E1#26C6DA#00BCD4#00ACC1#0097A7#00838F#006064#84FFFF#18FFFF#00E5FF#00B8D4"),e.mui.teal=i("#E0F2F1#B2DFDB#80CBC4#4DB6AC#26A69A#009688#00897B#00796B#00695C#004D40#A7FFEB#64FFDA#1DE9B6#00BFA5"),e.mui.green=i("#E8F5E9#C8E6C9#A5D6A7#81C784#66BB6A#4CAF50#43A047#388E3C#2E7D32#1B5E20#B9F6CA#69F0AE#00E676#00C853"),e.mui.lightgreen=i("#F1F8E9#DCEDC8#C5E1A5#AED581#9CCC65#8BC34A#7CB342#689F38#558B2F#33691E#CCFF90#B2FF59#76FF03#64DD17"),e.mui.lime=i("#F9FBE7#F0F4C3#E6EE9C#DCE775#D4E157#CDDC39#C0CA33#AFB42B#9E9D24#827717#F4FF81#EEFF41#C6FF00#AEEA00"),e.mui.yellow=i("#FFFDE7#FFF9C4#FFF59D#FFF176#FFEE58#FFEB3B#FDD835#FBC02D#F9A825#F57F17#FFFF8D#FFFF00#FFEA00#FFD600"),e.mui.amber=i("#FFF8E1#FFECB3#FFE082#FFD54F#FFCA28#FFC107#FFB300#FFA000#FF8F00#FF6F00#FFE57F#FFD740#FFC400#FFAB00"),e.mui.orange=i("#FFF3E0#FFE0B2#FFCC80#FFB74D#FFA726#FF9800#FB8C00#F57C00#EF6C00#E65100#FFD180#FFAB40#FF9100#FF6D00"),e.mui.deeporange=i("#FBE9E7#FFCCBC#FFAB91#FF8A65#FF7043#FF5722#F4511E#E64A19#D84315#BF360C#FF9E80#FF6E40#FF3D00#DD2C00"),e.mui.brown=i("#EFEBE9#D7CCC8#BCAAA4#A1887F#8D6E63#795548#6D4C41#5D4037#4E342E#3E2723"),e.mui.grey=i("#FAFAFA#F5F5F5#EEEEEE#E0E0E0#BDBDBD#9E9E9E#757575#616161#424242#212121"),e.mui.bluegrey=i("#ECEFF1#CFD8DC#B0BEC5#90A4AE#78909C#607D8B#546E7A#455A64#37474F#263238"),e.flat.turquoise="#1abc9c",e.flat.greensea="#16a085",e.flat.sunflower="#f1c40f",e.flat.orange="#f39c12",e.flat.emerland="#2ecc71",e.flat.nephritis="#27ae60",e.flat.carrot="#e67e22",e.flat.pumpkin="#d35400",e.flat.peterriver="#3498db",e.flat.belizehole="#2980b9",e.flat.alizarin="#e74c3c",e.flat.pomegranate="#c0392b",e.flat.amethyst="#9b59b6",e.flat.wisteria="#8e44ad",e.flat.clouds="#ecf0f1",e.flat.silver="#bdc3c7",e.flat.wetasphalt="#34495e",e.flat.midnightblue="#2c3e50",e.flat.concrete="#95a5a6",e.flat.asbestos="#7f8c8d",e.importMUIColors=function(){for(var t in e.mui)e.mui.hasOwnProperty(t)&&(v[t]=e.mui[t])}}),e},"function"==typeof define&&define.amd?define(["eve"],function(t){return l(u,t)}):"undefined"!=typeof exports?(h=require("eve"),module.exports=l(u,h)):l(u,u.eve),function r(a,s,c){function u(e,t){if(!s[e]){if(!a[e]){var n="function"==typeof require&&require;if(!t&&n)return n(e,!0);if(l)return l(e,!0);var o=new Error("Cannot find module '"+e+"'");throw o.code="MODULE_NOT_FOUND",o}var i=s[e]={exports:{}};a[e][0].call(i.exports,function(t){return u(a[e][1][t]||t)},i,i.exports,r,a,s,c)}return s[e].exports}for(var l="function"==typeof require&&require,t=0;t<c.length;t++)u(c[t]);return u}({1:[function(t,e,n){var r=t("./svg-utilities");e.exports={enable:function(t){var e,n=t.svg.querySelector("defs");n||(n=document.createElementNS(r.svgNS,"defs"),t.svg.appendChild(n)),n.querySelector("style#svg-pan-zoom-controls-styles")||((e=document.createElementNS(r.svgNS,"style")).setAttribute("id","svg-pan-zoom-controls-styles"),e.setAttribute("type","text/css"),e.textContent=".svg-pan-zoom-control { cursor: pointer; fill: black; fill-opacity: 0.333; } .svg-pan-zoom-control:hover { fill-opacity: 0.8; } .svg-pan-zoom-control-background { fill: white; fill-opacity: 0.5; } .svg-pan-zoom-control-background { fill-opacity: 0.8; }",n.appendChild(e));var o=document.createElementNS(r.svgNS,"g");o.setAttribute("id","svg-pan-zoom-controls"),o.setAttribute("transform","translate("+(t.width-70)+" "+(t.height-76)+") scale(0.75)"),o.setAttribute("class","svg-pan-zoom-control"),o.appendChild(this._createZoomIn(t)),o.appendChild(this._createZoomReset(t)),o.appendChild(this._createZoomOut(t)),t.svg.appendChild(o),t.controlIcons=o},_createZoomIn:function(t){var e=document.createElementNS(r.svgNS,"g");e.setAttribute("id","svg-pan-zoom-zoom-in"),e.setAttribute("transform","translate(30.5 5) scale(0.015)"),e.setAttribute("class","svg-pan-zoom-control"),e.addEventListener("click",function(){t.getPublicInstance().zoomIn()},!1),e.addEventListener("touchstart",function(){t.getPublicInstance().zoomIn()},!1);var n=document.createElementNS(r.svgNS,"rect");n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","1500"),n.setAttribute("height","1400"),n.setAttribute("class","svg-pan-zoom-control-background"),e.appendChild(n);var o=document.createElementNS(r.svgNS,"path");return o.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-320v320q0 26 -19 45t-45 19h-128q-26 0 -45 -19t-19 -45v-320h-320q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h320v-320q0 -26 19 -45t45 -19h128q26 0 45 19t19 45v320h320q26 0 45 19t19 45zM1536 1120v-960 q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5t84.5 -203.5z"),o.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(o),e},_createZoomReset:function(t){var e=document.createElementNS(r.svgNS,"g");e.setAttribute("id","svg-pan-zoom-reset-pan-zoom"),e.setAttribute("transform","translate(5 35) scale(0.4)"),e.setAttribute("class","svg-pan-zoom-control"),e.addEventListener("click",function(){t.getPublicInstance().reset()},!1),e.addEventListener("touchstart",function(){t.getPublicInstance().reset()},!1);var n=document.createElementNS(r.svgNS,"rect");n.setAttribute("x","2"),n.setAttribute("y","2"),n.setAttribute("width","182"),n.setAttribute("height","58"),n.setAttribute("class","svg-pan-zoom-control-background"),e.appendChild(n);var o=document.createElementNS(r.svgNS,"path");o.setAttribute("d","M33.051,20.632c-0.742-0.406-1.854-0.609-3.338-0.609h-7.969v9.281h7.769c1.543,0,2.701-0.188,3.473-0.562c1.365-0.656,2.048-1.953,2.048-3.891C35.032,22.757,34.372,21.351,33.051,20.632z"),o.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(o);var i=document.createElementNS(r.svgNS,"path");return i.setAttribute("d","M170.231,0.5H15.847C7.102,0.5,0.5,5.708,0.5,11.84v38.861C0.5,56.833,7.102,61.5,15.847,61.5h154.384c8.745,0,15.269-4.667,15.269-10.798V11.84C185.5,5.708,178.976,0.5,170.231,0.5z M42.837,48.569h-7.969c-0.219-0.766-0.375-1.383-0.469-1.852c-0.188-0.969-0.289-1.961-0.305-2.977l-0.047-3.211c-0.03-2.203-0.41-3.672-1.142-4.406c-0.732-0.734-2.103-1.102-4.113-1.102h-7.05v13.547h-7.055V14.022h16.524c2.361,0.047,4.178,0.344,5.45,0.891c1.272,0.547,2.351,1.352,3.234,2.414c0.731,0.875,1.31,1.844,1.737,2.906s0.64,2.273,0.64,3.633c0,1.641-0.414,3.254-1.242,4.84s-2.195,2.707-4.102,3.363c1.594,0.641,2.723,1.551,3.387,2.73s0.996,2.98,0.996,5.402v2.32c0,1.578,0.063,2.648,0.19,3.211c0.19,0.891,0.635,1.547,1.333,1.969V48.569z M75.579,48.569h-26.18V14.022h25.336v6.117H56.454v7.336h16.781v6H56.454v8.883h19.125V48.569z M104.497,46.331c-2.44,2.086-5.887,3.129-10.34,3.129c-4.548,0-8.125-1.027-10.731-3.082s-3.909-4.879-3.909-8.473h6.891c0.224,1.578,0.662,2.758,1.316,3.539c1.196,1.422,3.246,2.133,6.15,2.133c1.739,0,3.151-0.188,4.236-0.562c2.058-0.719,3.087-2.055,3.087-4.008c0-1.141-0.504-2.023-1.512-2.648c-1.008-0.609-2.607-1.148-4.796-1.617l-3.74-0.82c-3.676-0.812-6.201-1.695-7.576-2.648c-2.328-1.594-3.492-4.086-3.492-7.477c0-3.094,1.139-5.664,3.417-7.711s5.623-3.07,10.036-3.07c3.685,0,6.829,0.965,9.431,2.895c2.602,1.93,3.966,4.73,4.093,8.402h-6.938c-0.128-2.078-1.057-3.555-2.787-4.43c-1.154-0.578-2.587-0.867-4.301-0.867c-1.907,0-3.428,0.375-4.565,1.125c-1.138,0.75-1.706,1.797-1.706,3.141c0,1.234,0.561,2.156,1.682,2.766c0.721,0.406,2.25,0.883,4.589,1.43l6.063,1.43c2.657,0.625,4.648,1.461,5.975,2.508c2.059,1.625,3.089,3.977,3.089,7.055C108.157,41.624,106.937,44.245,104.497,46.331z M139.61,48.569h-26.18V14.022h25.336v6.117h-18.281v7.336h16.781v6h-16.781v8.883h19.125V48.569z M170.337,20.14h-10.336v28.43h-7.266V20.14h-10.383v-6.117h27.984V20.14z"),i.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(i),e},_createZoomOut:function(t){var e=document.createElementNS(r.svgNS,"g");e.setAttribute("id","svg-pan-zoom-zoom-out"),e.setAttribute("transform","translate(30.5 70) scale(0.015)"),e.setAttribute("class","svg-pan-zoom-control"),e.addEventListener("click",function(){t.getPublicInstance().zoomOut()},!1),e.addEventListener("touchstart",function(){t.getPublicInstance().zoomOut()},!1);var n=document.createElementNS(r.svgNS,"rect");n.setAttribute("x","0"),n.setAttribute("y","0"),n.setAttribute("width","1500"),n.setAttribute("height","1400"),n.setAttribute("class","svg-pan-zoom-control-background"),e.appendChild(n);var o=document.createElementNS(r.svgNS,"path");return o.setAttribute("d","M1280 576v128q0 26 -19 45t-45 19h-896q-26 0 -45 -19t-19 -45v-128q0 -26 19 -45t45 -19h896q26 0 45 19t19 45zM1536 1120v-960q0 -119 -84.5 -203.5t-203.5 -84.5h-960q-119 0 -203.5 84.5t-84.5 203.5v960q0 119 84.5 203.5t203.5 84.5h960q119 0 203.5 -84.5 t84.5 -203.5z"),o.setAttribute("class","svg-pan-zoom-control-element"),e.appendChild(o),e},disable:function(t){t.controlIcons&&(t.controlIcons.parentNode.removeChild(t.controlIcons),t.controlIcons=null)}}},{"./svg-utilities":5}],2:[function(t,e,n){function o(t,e){this.init(t,e)}var i=t("./svg-utilities"),a=t("./utilities");o.prototype.init=function(t,e){this.viewport=t,this.options=e,this.originalState={zoom:1,x:0,y:0},this.activeState={zoom:1,x:0,y:0},this.updateCTMCached=a.proxy(this.updateCTM,this),this.requestAnimationFrame=a.createRequestAnimationFrame(this.options.refreshRate),this.viewBox={x:0,y:0,width:0,height:0},this.cacheViewBox();var n=this.processCTM();this.setCTM(n),this.updateCTM()},o.prototype.cacheViewBox=function(){var t,e,n=this.options.svg.getAttribute("viewBox");n?(t=n.split(/[\s\,]/).filter(function(t){return t}).map(parseFloat),this.viewBox.x=t[0],this.viewBox.y=t[1],this.viewBox.width=t[2],this.viewBox.height=t[3],e=Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height),this.activeState.zoom=e,this.activeState.x=(this.options.width-this.viewBox.width*e)/2,this.activeState.y=(this.options.height-this.viewBox.height*e)/2,this.updateCTMOnNextFrame(),this.options.svg.removeAttribute("viewBox")):this.simpleViewBoxCache()},o.prototype.simpleViewBoxCache=function(){var t=this.viewport.getBBox();this.viewBox.x=t.x,this.viewBox.y=t.y,this.viewBox.width=t.width,this.viewBox.height=t.height},o.prototype.getViewBox=function(){return a.extend({},this.viewBox)},o.prototype.processCTM=function(){var t,e,n,o=this.getCTM();return(this.options.fit||this.options.contain)&&(t=this.options.fit?Math.min(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height):Math.max(this.options.width/this.viewBox.width,this.options.height/this.viewBox.height),o.a=t,o.d=t,o.e=-this.viewBox.x*t,o.f=-this.viewBox.y*t),this.options.center&&(e=.5*(this.options.width-(this.viewBox.width+2*this.viewBox.x)*o.a),n=.5*(this.options.height-(this.viewBox.height+2*this.viewBox.y)*o.a),o.e=e,o.f=n),this.originalState.zoom=o.a,this.originalState.x=o.e,this.originalState.y=o.f,o},o.prototype.getOriginalState=function(){return a.extend({},this.originalState)},o.prototype.getState=function(){return a.extend({},this.activeState)},o.prototype.getZoom=function(){return this.activeState.zoom},o.prototype.getRelativeZoom=function(){return this.activeState.zoom/this.originalState.zoom},o.prototype.computeRelativeZoom=function(t){return t/this.originalState.zoom},o.prototype.getPan=function(){return{x:this.activeState.x,y:this.activeState.y}},o.prototype.getCTM=function(){var t=this.options.svg.createSVGMatrix();return t.a=this.activeState.zoom,t.b=0,t.c=0,t.d=this.activeState.zoom,t.e=this.activeState.x,t.f=this.activeState.y,t},o.prototype.setCTM=function(t){var e,n,o,i=this.isZoomDifferent(t),r=this.isPanDifferent(t);(i||r)&&(i&&(!1===this.options.beforeZoom(this.getRelativeZoom(),this.computeRelativeZoom(t.a))?(t.a=t.d=this.activeState.zoom,i=!1):(this.updateCache(t),this.options.onZoom(this.getRelativeZoom()))),r&&((o=n=!1)===(e=this.options.beforePan(this.getPan(),{x:t.e,y:t.f}))?(t.e=this.getPan().x,t.f=this.getPan().y,n=o=!0):a.isObject(e)&&(!1===e.x?(t.e=this.getPan().x,n=!0):a.isNumber(e.x)&&(t.e=e.x),!1===e.y?(t.f=this.getPan().y,o=!0):a.isNumber(e.y)&&(t.f=e.y)),n&&o||!this.isPanDifferent(t)?r=!1:(this.updateCache(t),this.options.onPan(this.getPan()))),(i||r)&&this.updateCTMOnNextFrame())},o.prototype.isZoomDifferent=function(t){return this.activeState.zoom!==t.a},o.prototype.isPanDifferent=function(t){return this.activeState.x!==t.e||this.activeState.y!==t.f},o.prototype.updateCache=function(t){this.activeState.zoom=t.a,this.activeState.x=t.e,this.activeState.y=t.f},o.prototype.pendingUpdate=!1,o.prototype.updateCTMOnNextFrame=function(){this.pendingUpdate||(this.pendingUpdate=!0,this.requestAnimationFrame.call(window,this.updateCTMCached))},o.prototype.updateCTM=function(){var t=this.getCTM();i.setCTM(this.viewport,t,this.defs),this.pendingUpdate=!1,this.options.onUpdatedCTM&&this.options.onUpdatedCTM(t)},e.exports=function(t,e){return new o(t,e)}},{"./svg-utilities":5,"./utilities":7}],3:[function(t,e,n){var o=t("./svg-pan-zoom.js"),i=window;document,"function"==typeof define&&define.amd?define("svg-pan-zoom",function(){return o}):void 0!==e&&e.exports&&(e.exports=o,i.svgPanZoom=o)},{"./svg-pan-zoom.js":4}],4:[function(t,e,n){function i(t,e){this.init(t,e)}var o=t("./uniwheel"),r=t("./control-icons"),a=t("./utilities"),s=t("./svg-utilities"),c=t("./shadow-viewport"),u={viewportSelector:".svg-pan-zoom_viewport",panEnabled:!0,controlIconsEnabled:!1,zoomEnabled:!0,dblClickZoomEnabled:!0,mouseWheelZoomEnabled:!0,preventMouseEventsDefault:!0,zoomScaleSensitivity:.1,minZoom:.5,maxZoom:10,fit:!0,contain:!1,center:!0,refreshRate:"auto",beforeZoom:null,onZoom:null,beforePan:null,onPan:null,customEventsHandler:null,eventsListenerElement:null,onUpdatedCTM:null},l={passive:!0};i.prototype.init=function(t,e){var n=this;this.svg=t,this.defs=t.querySelector("defs"),s.setupSvgAttributes(this.svg),this.options=a.extend(a.extend({},u),e),this.state="none";var o=s.getBoundingClientRectNormalized(t);this.width=o.width,this.height=o.height,this.viewport=c(s.getOrCreateViewport(this.svg,this.options.viewportSelector),{svg:this.svg,width:this.width,height:this.height,fit:this.options.fit,contain:this.options.contain,center:this.options.center,refreshRate:this.options.refreshRate,beforeZoom:function(t,e){if(n.viewport&&n.options.beforeZoom)return n.options.beforeZoom(t,e)},onZoom:function(t){if(n.viewport&&n.options.onZoom)return n.options.onZoom(t)},beforePan:function(t,e){if(n.viewport&&n.options.beforePan)return n.options.beforePan(t,e)},onPan:function(t){if(n.viewport&&n.options.onPan)return n.options.onPan(t)},onUpdatedCTM:function(t){if(n.viewport&&n.options.onUpdatedCTM)return n.options.onUpdatedCTM(t)}});var i=this.getPublicInstance();i.setBeforeZoom(this.options.beforeZoom),i.setOnZoom(this.options.onZoom),i.setBeforePan(this.options.beforePan),i.setOnPan(this.options.onPan),i.setOnUpdatedCTM(this.options.onUpdatedCTM),this.options.controlIconsEnabled&&r.enable(this),this.lastMouseWheelEventTime=Date.now(),this.setupHandlers()},i.prototype.setupHandlers=function(){var n=this,o=null;if(this.eventListeners={mousedown:function(t){var e=n.handleMouseDown(t,o);return o=t,e},touchstart:function(t){var e=n.handleMouseDown(t,o);return o=t,e},mouseup:function(t){return n.handleMouseUp(t)},touchend:function(t){return n.handleMouseUp(t)},mousemove:function(t){return n.handleMouseMove(t)},touchmove:function(t){return n.handleMouseMove(t)},mouseleave:function(t){return n.handleMouseUp(t)},touchleave:function(t){return n.handleMouseUp(t)},touchcancel:function(t){return n.handleMouseUp(t)}},null!=this.options.customEventsHandler){this.options.customEventsHandler.init({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()});var t=this.options.customEventsHandler.haltEventListeners;if(t&&t.length)for(var e=t.length-1;0<=e;e--)this.eventListeners.hasOwnProperty(t[e])&&delete this.eventListeners[t[e]]}for(var i in this.eventListeners)(this.options.eventsListenerElement||this.svg).addEventListener(i,this.eventListeners[i],!this.options.preventMouseEventsDefault&&l);this.options.mouseWheelZoomEnabled&&(this.options.mouseWheelZoomEnabled=!1,this.enableMouseWheelZoom())},i.prototype.enableMouseWheelZoom=function(){var e,t;this.options.mouseWheelZoomEnabled||((e=this).wheelListener=function(t){return e.handleMouseWheel(t)},t=!this.options.preventMouseEventsDefault,o.on(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!0)},i.prototype.disableMouseWheelZoom=function(){var t;this.options.mouseWheelZoomEnabled&&(t=!this.options.preventMouseEventsDefault,o.off(this.options.eventsListenerElement||this.svg,this.wheelListener,t),this.options.mouseWheelZoomEnabled=!1)},i.prototype.handleMouseWheel=function(t){var e,n,o,i,r,a;this.options.zoomEnabled&&"none"===this.state&&(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),e=t.deltaY||1,n=Date.now()-this.lastMouseWheelEventTime,o=3+Math.max(0,30-n),this.lastMouseWheelEventTime=Date.now(),"deltaMode"in t&&0===t.deltaMode&&t.wheelDelta&&(e=0===t.deltaY?0:Math.abs(t.wheelDelta)/t.deltaY),e=-.3<e&&e<.3?e:(0<e?1:-1)*Math.log(Math.abs(e)+10)/o,i=this.svg.getScreenCTM().inverse(),r=s.getEventPoint(t,this.svg).matrixTransform(i),a=Math.pow(1+this.options.zoomScaleSensitivity,-1*e),this.zoomAtPoint(a,r))},i.prototype.zoomAtPoint=function(t,e,n){var o=this.viewport.getOriginalState();n?(t=Math.max(this.options.minZoom*o.zoom,Math.min(this.options.maxZoom*o.zoom,t)),t/=this.getZoom()):this.getZoom()*t<this.options.minZoom*o.zoom?t=this.options.minZoom*o.zoom/this.getZoom():this.getZoom()*t>this.options.maxZoom*o.zoom&&(t=this.options.maxZoom*o.zoom/this.getZoom());var i=this.viewport.getCTM(),r=e.matrixTransform(i.inverse()),a=this.svg.createSVGMatrix().translate(r.x,r.y).scale(t).translate(-r.x,-r.y),s=i.multiply(a);s.a!==i.a&&this.viewport.setCTM(s)},i.prototype.zoom=function(t,e){this.zoomAtPoint(t,s.getSvgCenterPoint(this.svg,this.width,this.height),e)},i.prototype.publicZoom=function(t,e){e&&(t=this.computeFromRelativeZoom(t)),this.zoom(t,e)},i.prototype.publicZoomAtPoint=function(t,e,n){if(n&&(t=this.computeFromRelativeZoom(t)),"SVGPoint"!==a.getType(e)){if(!("x"in e&&"y"in e))throw new Error("Given point is invalid");e=s.createSVGPoint(this.svg,e.x,e.y)}this.zoomAtPoint(t,e,n)},i.prototype.getZoom=function(){return this.viewport.getZoom()},i.prototype.getRelativeZoom=function(){return this.viewport.getRelativeZoom()},i.prototype.computeFromRelativeZoom=function(t){return t*this.viewport.getOriginalState().zoom},i.prototype.resetZoom=function(){var t=this.viewport.getOriginalState();this.zoom(t.zoom,!0)},i.prototype.resetPan=function(){this.pan(this.viewport.getOriginalState())},i.prototype.reset=function(){this.resetZoom(),this.resetPan()},i.prototype.handleDblClick=function(t){var e;if(this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),this.options.controlIconsEnabled&&-1<(t.target.getAttribute("class")||"").indexOf("svg-pan-zoom-control"))return!1;e=t.shiftKey?1/(2*(1+this.options.zoomScaleSensitivity)):2*(1+this.options.zoomScaleSensitivity);var n=s.getEventPoint(t,this.svg).matrixTransform(this.svg.getScreenCTM().inverse());this.zoomAtPoint(e,n)},i.prototype.handleMouseDown=function(t,e){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),a.mouseAndTouchNormalize(t,this.svg),this.options.dblClickZoomEnabled&&a.isDblClick(t,e)?this.handleDblClick(t):(this.state="pan",this.firstEventCTM=this.viewport.getCTM(),this.stateOrigin=s.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()))},i.prototype.handleMouseMove=function(t){var e,n;this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),"pan"===this.state&&this.options.panEnabled&&(e=s.getEventPoint(t,this.svg).matrixTransform(this.firstEventCTM.inverse()),n=this.firstEventCTM.translate(e.x-this.stateOrigin.x,e.y-this.stateOrigin.y),this.viewport.setCTM(n))},i.prototype.handleMouseUp=function(t){this.options.preventMouseEventsDefault&&(t.preventDefault?t.preventDefault():t.returnValue=!1),"pan"===this.state&&(this.state="none")},i.prototype.fit=function(){var t=this.viewport.getViewBox(),e=Math.min(this.width/t.width,this.height/t.height);this.zoom(e,!0)},i.prototype.contain=function(){var t=this.viewport.getViewBox(),e=Math.max(this.width/t.width,this.height/t.height);this.zoom(e,!0)},i.prototype.center=function(){var t=this.viewport.getViewBox(),e=.5*(this.width-(t.width+2*t.x)*this.getZoom()),n=.5*(this.height-(t.height+2*t.y)*this.getZoom());this.getPublicInstance().pan({x:e,y:n})},i.prototype.updateBBox=function(){this.viewport.simpleViewBoxCache()},i.prototype.pan=function(t){var e=this.viewport.getCTM();e.e=t.x,e.f=t.y,this.viewport.setCTM(e)},i.prototype.panBy=function(t){var e=this.viewport.getCTM();e.e+=t.x,e.f+=t.y,this.viewport.setCTM(e)},i.prototype.getPan=function(){var t=this.viewport.getState();return{x:t.x,y:t.y}},i.prototype.resize=function(){var t=s.getBoundingClientRectNormalized(this.svg);this.width=t.width,this.height=t.height;var e=this.viewport;e.options.width=this.width,e.options.height=this.height,e.processCTM(),this.options.controlIconsEnabled&&(this.getPublicInstance().disableControlIcons(),this.getPublicInstance().enableControlIcons())},i.prototype.destroy=function(){var e=this;for(var t in this.beforeZoom=null,this.onZoom=null,this.beforePan=null,this.onPan=null,(this.onUpdatedCTM=null)!=this.options.customEventsHandler&&this.options.customEventsHandler.destroy({svgElement:this.svg,eventsListenerElement:this.options.eventsListenerElement,instance:this.getPublicInstance()}),this.eventListeners)(this.options.eventsListenerElement||this.svg).removeEventListener(t,this.eventListeners[t],!this.options.preventMouseEventsDefault&&l);this.disableMouseWheelZoom(),this.getPublicInstance().disableControlIcons(),this.reset(),h=h.filter(function(t){return t.svg!==e.svg}),delete this.options,delete this.viewport,delete this.publicInstance,delete this.pi,this.getPublicInstance=function(){return null}},i.prototype.getPublicInstance=function(){var n=this;return this.publicInstance||(this.publicInstance=this.pi={enablePan:function(){return n.options.panEnabled=!0,n.pi},disablePan:function(){return n.options.panEnabled=!1,n.pi},isPanEnabled:function(){return!!n.options.panEnabled},pan:function(t){return n.pan(t),n.pi},panBy:function(t){return n.panBy(t),n.pi},getPan:function(){return n.getPan()},setBeforePan:function(t){return n.options.beforePan=null===t?null:a.proxy(t,n.publicInstance),n.pi},setOnPan:function(t){return n.options.onPan=null===t?null:a.proxy(t,n.publicInstance),n.pi},enableZoom:function(){return n.options.zoomEnabled=!0,n.pi},disableZoom:function(){return n.options.zoomEnabled=!1,n.pi},isZoomEnabled:function(){return!!n.options.zoomEnabled},enableControlIcons:function(){return n.options.controlIconsEnabled||(n.options.controlIconsEnabled=!0,r.enable(n)),n.pi},disableControlIcons:function(){return n.options.controlIconsEnabled&&(n.options.controlIconsEnabled=!1,r.disable(n)),n.pi},isControlIconsEnabled:function(){return!!n.options.controlIconsEnabled},enableDblClickZoom:function(){return n.options.dblClickZoomEnabled=!0,n.pi},disableDblClickZoom:function(){return n.options.dblClickZoomEnabled=!1,n.pi},isDblClickZoomEnabled:function(){return!!n.options.dblClickZoomEnabled},enableMouseWheelZoom:function(){return n.enableMouseWheelZoom(),n.pi},disableMouseWheelZoom:function(){return n.disableMouseWheelZoom(),n.pi},isMouseWheelZoomEnabled:function(){return!!n.options.mouseWheelZoomEnabled},setZoomScaleSensitivity:function(t){return n.options.zoomScaleSensitivity=t,n.pi},setMinZoom:function(t){return n.options.minZoom=t,n.pi},setMaxZoom:function(t){return n.options.maxZoom=t,n.pi},setBeforeZoom:function(t){return n.options.beforeZoom=null===t?null:a.proxy(t,n.publicInstance),n.pi},setOnZoom:function(t){return n.options.onZoom=null===t?null:a.proxy(t,n.publicInstance),n.pi},zoom:function(t){return n.publicZoom(t,!0),n.pi},zoomBy:function(t){return n.publicZoom(t,!1),n.pi},zoomAtPoint:function(t,e){return n.publicZoomAtPoint(t,e,!0),n.pi},zoomAtPointBy:function(t,e){return n.publicZoomAtPoint(t,e,!1),n.pi},zoomIn:function(){return this.zoomBy(1+n.options.zoomScaleSensitivity),n.pi},zoomOut:function(){return this.zoomBy(1/(1+n.options.zoomScaleSensitivity)),n.pi},getZoom:function(){return n.getRelativeZoom()},setOnUpdatedCTM:function(t){return n.options.onUpdatedCTM=null===t?null:a.proxy(t,n.publicInstance),n.pi},resetZoom:function(){return n.resetZoom(),n.pi},resetPan:function(){return n.resetPan(),n.pi},reset:function(){return n.reset(),n.pi},fit:function(){return n.fit(),n.pi},contain:function(){return n.contain(),n.pi},center:function(){return n.center(),n.pi},updateBBox:function(){return n.updateBBox(),n.pi},resize:function(){return n.resize(),n.pi},getSizes:function(){return{width:n.width,height:n.height,realZoom:n.getZoom(),viewBox:n.viewport.getViewBox()}},destroy:function(){return n.destroy(),n.pi}}),this.publicInstance};var h=[];e.exports=function(t,e){var n=a.getSvg(t);if(null===n)return null;for(var o=h.length-1;0<=o;o--)if(h[o].svg===n)return h[o].instance.getPublicInstance();return h.push({svg:n,instance:new i(n,e)}),h[h.length-1].instance.getPublicInstance()}},{"./control-icons":1,"./shadow-viewport":2,"./svg-utilities":5,"./uniwheel":6,"./utilities":7}],5:[function(t,e,n){var c=t("./utilities"),r="unknown";document.documentMode&&(r="ie"),e.exports={svgNS:"http://www.w3.org/2000/svg",xmlNS:"http://www.w3.org/XML/1998/namespace",xmlnsNS:"http://www.w3.org/2000/xmlns/",xlinkNS:"http://www.w3.org/1999/xlink",evNS:"http://www.w3.org/2001/xml-events",getBoundingClientRectNormalized:function(t){if(t.clientWidth&&t.clientHeight)return{width:t.clientWidth,height:t.clientHeight};if(t.getBoundingClientRect())return t.getBoundingClientRect();throw new Error("Cannot get BoundingClientRect for SVG.")},getOrCreateViewport:function(t,e){var n,o=null;if((o=c.isElement(e)?e:t.querySelector(e))||1===(n=Array.prototype.slice.call(t.childNodes||t.children).filter(function(t){return"defs"!==t.nodeName&&"#text"!==t.nodeName})).length&&"g"===n[0].nodeName&&null===n[0].getAttribute("transform")&&(o=n[0]),!o){var i="viewport-"+(new Date).toISOString().replace(/\D/g,"");(o=document.createElementNS(this.svgNS,"g")).setAttribute("id",i);var r=t.childNodes||t.children;if(r&&0<r.length)for(var a=r.length;0<a;a--)"defs"!==r[r.length-a].nodeName&&o.appendChild(r[r.length-a]);t.appendChild(o)}var s=[];return o.getAttribute("class")&&(s=o.getAttribute("class").split(" ")),~s.indexOf("svg-pan-zoom_viewport")||(s.push("svg-pan-zoom_viewport"),o.setAttribute("class",s.join(" "))),o},setupSvgAttributes:function(t){var e;t.setAttribute("xmlns",this.svgNS),t.setAttributeNS(this.xmlnsNS,"xmlns:xlink",this.xlinkNS),t.setAttributeNS(this.xmlnsNS,"xmlns:ev",this.evNS),null!==t.parentNode&&-1===(e=t.getAttribute("style")||"").toLowerCase().indexOf("overflow")&&t.setAttribute("style","overflow: hidden; "+e)},internetExplorerRedisplayInterval:300,refreshDefsGlobal:c.throttle(function(){for(var t=document.querySelectorAll("defs"),e=t.length,n=0;n<e;n++){var o=t[n];o.parentNode.insertBefore(o,o)}},this?this.internetExplorerRedisplayInterval:null),setCTM:function(t,e,n){var o=this,i="matrix("+e.a+","+e.b+","+e.c+","+e.d+","+e.e+","+e.f+")";t.setAttributeNS(null,"transform",i),"transform"in t.style?t.style.transform=i:"-ms-transform"in t.style?t.style["-ms-transform"]=i:"-webkit-transform"in t.style&&(t.style["-webkit-transform"]=i),"ie"===r&&n&&(n.parentNode.insertBefore(n,n),window.setTimeout(function(){o.refreshDefsGlobal()},o.internetExplorerRedisplayInterval))},getEventPoint:function(t,e){var n=e.createSVGPoint();return c.mouseAndTouchNormalize(t,e),n.x=t.clientX,n.y=t.clientY,n},getSvgCenterPoint:function(t,e,n){return this.createSVGPoint(t,e/2,n/2)},createSVGPoint:function(t,e,n){var o=t.createSVGPoint();return o.x=e,o.y=n,o}}},{"./utilities":7}],6:[function(t,e,n){function o(t,e,n,o){var i,r;function a(t){var e={originalEvent:t=t||window.event,target:t.target||t.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==t.type?0:1,deltaX:0,delatZ:0,preventDefault:function(){t.preventDefault?t.preventDefault():t.returnValue=!1}};return"mousewheel"==c?(e.deltaY=-.025*t.wheelDelta,t.wheelDeltaX&&(e.deltaX=-.025*t.wheelDeltaX)):e.deltaY=t.detail,r(e)}i="wheel"==c?n:(r=n,l.push({element:t,fn:a}),a),t[s](u+e,i,!!o&&h)}function i(t,e,n,o){var i="wheel"==c?n:function(t){for(var e=0;e<l.length;e++)if(l[e].element===t)return l[e].fn;return function(){}}(t);t[r](u+e,i,!!o&&h),function(t){for(var e=0;e<l.length;e++)if(l[e].element===t)return l.splice(e,1)}(t)}var s,r,c,u,l,h;e.exports=(l=[],h={passive:!(u="")},window.addEventListener?(s="addEventListener",r="removeEventListener"):(s="attachEvent",r="detachEvent",u="on"),c="onwheel"in document.createElement("div")?"wheel":void 0!==document.onmousewheel?"mousewheel":"DOMMouseScroll",{on:function(t,e,n){o(t,c,e,n),"DOMMouseScroll"==c&&o(t,"MozMousePixelScroll",e,n)},off:function(t,e,n){i(t,c,e,n),"DOMMouseScroll"==c&&i(t,"MozMousePixelScroll",e,n)}})},{}],7:[function(t,e,n){function o(e){return function(t){window.setTimeout(t,e)}}e.exports={extend:function(t,e){for(var n in t=t||{},e)this.isObject(e[n])?t[n]=this.extend(t[n],e[n]):t[n]=e[n];return t},isElement:function(t){return t instanceof HTMLElement||t instanceof SVGElement||t instanceof SVGSVGElement||t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName},isObject:function(t){return"[object Object]"===Object.prototype.toString.call(t)},isNumber:function(t){return!isNaN(parseFloat(t))&&isFinite(t)},getSvg:function(t){var e,n;if(this.isElement(t))e=t;else{if(!("string"==typeof t||t instanceof String))throw new Error("Provided selector is not an HTML object nor String");if(!(e=document.querySelector(t)))throw new Error("Provided selector did not find any elements. Selector: "+t)}if("svg"===e.tagName.toLowerCase())n=e;else if("object"===e.tagName.toLowerCase())n=e.contentDocument.documentElement;else{if("embed"!==e.tagName.toLowerCase())throw"img"===e.tagName.toLowerCase()?new Error('Cannot script an SVG in an "img" element. Please use an "object" element or an in-line SVG.'):new Error("Cannot get SVG.");n=e.getSVGDocument().documentElement}return n},proxy:function(t,e){return function(){return t.apply(e,arguments)}},getType:function(t){return Object.prototype.toString.apply(t).replace(/^\[object\s/,"").replace(/\]$/,"")},mouseAndTouchNormalize:function(t,e){var n;void 0!==t.clientX&&null!==t.clientX||(t.clientX=0,void(t.clientY=0)!==t.touches&&t.touches.length?void 0!==t.touches[0].clientX?(t.clientX=t.touches[0].clientX,t.clientY=t.touches[0].clientY):void 0!==t.touches[0].pageX&&(n=e.getBoundingClientRect(),t.clientX=t.touches[0].pageX-n.left,t.clientY=t.touches[0].pageY-n.top):void 0!==t.originalEvent&&void 0!==t.originalEvent.clientX&&(t.clientX=t.originalEvent.clientX,t.clientY=t.originalEvent.clientY))},isDblClick:function(t,e){if(2===t.detail)return!0;if(null==e)return!1;var n=t.timeStamp-e.timeStamp,o=Math.sqrt(Math.pow(t.clientX-e.clientX,2)+Math.pow(t.clientY-e.clientY,2));return n<250&&o<10},now:Date.now||function(){return(new Date).getTime()},throttle:function(n,o,i){var r,a,s,c=this,u=null,l=0;function h(){l=!1===i.leading?0:c.now(),u=null,s=n.apply(r,a),u||(r=a=null)}return i=i||{},function(){var t=c.now();l||!1!==i.leading||(l=t);var e=o-(t-l);return r=this,a=arguments,e<=0||o<e?(clearTimeout(u),u=null,l=t,s=n.apply(r,a),u||(r=a=null)):u||!1===i.trailing||(u=setTimeout(h,e)),s}},createRequestAnimationFrame:function(t){var e=null;return"auto"!==t&&t<60&&1<t&&(e=Math.floor(1e3/t)),null===e?window.requestAnimationFrame||o(33):o(e)}}},{}]},{},[3]),function(r,s,P){"use strict";function c(t,e,n){return setTimeout(i(t,n),e)}function o(t,e,n){return Array.isArray(t)&&(a(t,n[e],n),1)}function a(t,e,n){var o;if(t)if(t.forEach)t.forEach(e,n);else if(t.length!==P)for(o=0;o<t.length;)e.call(n,t[o],o,t),o++;else for(o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function t(o,t,e){var i="DEPRECATED METHOD: "+t+"\n"+e+" AT \n";return function(){var t=new Error("get-stack-trace"),e=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",n=r.console&&(r.console.warn||r.console.log);return n&&n.call(r.console,i,e),o.apply(this,arguments)}}function e(t,e,n){var o,i=e.prototype;(o=t.prototype=Object.create(i)).constructor=t,o._super=i,n&&nt(o,n)}function i(t,e){return function(){return t.apply(e,arguments)}}function u(t,e){return typeof t==J?t.apply(e&&e[0]||P,e):t}function n(t,e){return t===P?e:t}function l(e,t,n){a(f(t),function(t){e.addEventListener(t,n,!1)})}function h(e,t,n){a(f(t),function(t){e.removeEventListener(t,n,!1)})}function N(t,e){for(;t;){if(t==e)return!0;t=t.parentNode}return!1}function p(t,e){return-1<t.indexOf(e)}function f(t){return t.trim().split(/\s+/g)}function d(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var o=0;o<t.length;){if(n&&t[o][n]==e||!n&&t[o]===e)return o;o++}return-1}function g(t){return Array.prototype.slice.call(t,0)}function m(t,n,e){for(var o=[],i=[],r=0;r<t.length;){var a=n?t[r][n]:t[r];d(i,a)<0&&o.push(t[r]),i[r]=a,r++}return e&&(o=n?o.sort(function(t,e){return t[n]>e[n]}):o.sort()),o}function v(t,e){for(var n,o,i=e[0].toUpperCase()+e.slice(1),r=0;r<Y.length;){if((o=(n=Y[r])?n+i:e)in t)return o;r++}return P}function y(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||r}function b(e,t){var n=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){u(e.options.enable,[e])&&n.handler(t)},this.init()}function x(t,e,n){var o=n.pointers.length,i=n.changedPointers.length,r=e&ht&&o-i==0,a=e&(pt|ft)&&o-i==0;n.isFirst=!!r,n.isFinal=!!a,r&&(t.session={}),n.eventType=e,function(t,e){var n=t.session,o=e.pointers,i=o.length;n.firstInput||(n.firstInput=L(e)),1<i&&!n.firstMultiple?n.firstMultiple=L(e):1===i&&(n.firstMultiple=!1);var r,a,s,c,u,l,h=n.firstInput,p=n.firstMultiple,f=p?p.center:h.center,d=e.center=O(o);e.timeStamp=et(),e.deltaTime=e.timeStamp-h.timeStamp,e.angle=R(f,d),e.distance=D(f,d),r=n,s=(a=e).center,c=r.offsetDelta||{},u=r.prevDelta||{},l=r.prevInput||{},a.eventType!==ht&&l.eventType!==pt||(u=r.prevDelta={x:l.deltaX||0,y:l.deltaY||0},c=r.offsetDelta={x:s.x,y:s.y}),a.deltaX=u.x+(s.x-c.x),a.deltaY=u.y+(s.y-c.y),e.offsetDirection=_(e.deltaX,e.deltaY);var g,m,v,y,b,x,w,C,k,S,E,A,T,B=F(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=B.x,e.overallVelocityY=B.y,e.overallVelocity=tt(B.x)>tt(B.y)?B.x:B.y,e.scale=p?(T=p.pointers,D(o[0],o[1],kt)/D(T[0],T[1],kt)):1,e.rotation=p?(A=p.pointers,R(o[1],o[0],kt)+R(A[1],A[0],kt)):0,e.maxPointers=!n.prevInput||e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers,m=e,S=(g=n).lastInterval||m,E=m.timeStamp-S.timeStamp,m.eventType!=ft&&(lt<E||S.velocity===P)?(x=(b=F(E,v=m.deltaX-S.deltaX,y=m.deltaY-S.deltaY)).x,w=b.y,C=tt(b.x)>tt(b.y)?b.x:b.y,k=_(v,y),g.lastInterval=m):(C=S.velocity,x=S.velocityX,w=S.velocityY,k=S.direction),m.velocity=C,m.velocityX=x,m.velocityY=w,m.direction=k;var M=t.element;N(e.srcEvent.target,M)&&(M=e.srcEvent.target),e.target=M}(t,n),t.emit("hammer.input",n),t.recognize(n),t.session.prevInput=n}function L(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:Q(t.pointers[n].clientX),clientY:Q(t.pointers[n].clientY)},n++;return{timeStamp:et(),pointers:e,center:O(e),deltaX:t.deltaX,deltaY:t.deltaY}}function O(t){var e=t.length;if(1===e)return{x:Q(t[0].clientX),y:Q(t[0].clientY)};for(var n=0,o=0,i=0;i<e;)n+=t[i].clientX,o+=t[i].clientY,i++;return{x:Q(n/e),y:Q(o/e)}}function F(t,e,n){return{x:e/t||0,y:n/t||0}}function _(t,e){return t===e?dt:tt(t)>=tt(e)?t<0?gt:mt:e<0?vt:yt}function D(t,e,n){var o=e[(n=n||Ct)[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return Math.sqrt(o*o+i*i)}function R(t,e,n){var o=e[(n=n||Ct)[0]]-t[n[0]],i=e[n[1]]-t[n[1]];return 180*Math.atan2(i,o)/Math.PI}function w(){this.evEl=Et,this.evWin=At,this.pressed=!1,b.apply(this,arguments)}function C(){this.evEl=Mt,this.evWin=Pt,b.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function k(){this.evTarget="touchstart",this.evWin="touchstart touchmove touchend touchcancel",this.started=!1,b.apply(this,arguments)}function S(){this.evTarget=Ot,this.targetIds={},b.apply(this,arguments)}function E(){b.apply(this,arguments);var t=i(this.handler,this);this.touch=new S(this.manager,t),this.mouse=new w(this.manager,t),this.primaryTouch=null,this.lastTouches=[]}function A(t){var e,n,o=t.changedPointers[0];o.identifier===this.primaryTouch&&(e={x:o.clientX,y:o.clientY},this.lastTouches.push(e),n=this.lastTouches,setTimeout(function(){var t=n.indexOf(e);-1<t&&n.splice(t,1)},2500))}function T(t,e){this.manager=t,this.set(e)}function B(t){this.options=nt({},this.defaults,t||{}),this.id=rt++,this.manager=null,this.options.enable=n(this.options.enable,!0),this.state=qt,this.simultaneous={},this.requireFail=[]}function M(t){return 16&t?"cancel":8&t?"end":4&t?"move":2&t?"start":""}function I(t){return t==yt?"down":t==vt?"up":t==gt?"left":t==mt?"right":""}function j(t,e){var n=e.manager;return n?n.get(t):t}function z(){B.apply(this,arguments)}function q(){z.apply(this,arguments),this.pX=null,this.pY=null}function H(){z.apply(this,arguments)}function U(){B.apply(this,arguments),this._timer=null,this._input=null}function V(){z.apply(this,arguments)}function Z(){z.apply(this,arguments)}function $(){B.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function W(t,e){return(e=e||{}).recognizers=n(e.recognizers,W.defaults.preset),new X(t,e)}function X(t,e){this.options=nt({},W.defaults,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new(this.options.inputClass||(st?C:ct?S:at?E:w))(this,x),this.touchAction=new T(this,this.options.touchAction),G(this,!0),a(this.options.recognizers,function(t){var e=this.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}function G(n,o){var i,r=n.element;r.style&&(a(n.options.cssProps,function(t,e){i=v(r.style,e),o?(n.oldCssProps[i]=r.style[i],r.style[i]=t):r.style[i]=n.oldCssProps[i]||""}),o||(n.oldCssProps={}))}var Y=["","webkit","Moz","MS","ms","o"],K=s.createElement("div"),J="function",Q=Math.round,tt=Math.abs,et=Date.now,nt="function"!=typeof Object.assign?function(t){if(t===P||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var o=arguments[n];if(o!==P&&null!==o)for(var i in o)o.hasOwnProperty(i)&&(e[i]=o[i])}return e}:Object.assign,ot=t(function(t,e,n){for(var o=Object.keys(e),i=0;i<o.length;)(!n||n&&t[o[i]]===P)&&(t[o[i]]=e[o[i]]),i++;return t},"extend","Use `assign`."),it=t(function(t,e){return ot(t,e,!0)},"merge","Use `assign`."),rt=1,at="ontouchstart"in r,st=v(r,"PointerEvent")!==P,ct=at&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),ut="touch",lt=25,ht=1,pt=4,ft=8,dt=1,gt=2,mt=4,vt=8,yt=16,bt=gt|mt,xt=vt|yt,wt=bt|xt,Ct=["x","y"],kt=["clientX","clientY"];b.prototype={handler:function(){},init:function(){this.evEl&&l(this.element,this.evEl,this.domHandler),this.evTarget&&l(this.target,this.evTarget,this.domHandler),this.evWin&&l(y(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&h(this.element,this.evEl,this.domHandler),this.evTarget&&h(this.target,this.evTarget,this.domHandler),this.evWin&&h(y(this.element),this.evWin,this.domHandler)}};var St={mousedown:ht,mousemove:2,mouseup:pt},Et="mousedown",At="mousemove mouseup";e(w,b,{handler:function(t){var e=St[t.type];e&ht&&0===t.button&&(this.pressed=!0),2&e&&1!==t.which&&(e=pt),this.pressed&&(e&pt&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:"mouse",srcEvent:t}))}});var Tt={pointerdown:ht,pointermove:2,pointerup:pt,pointercancel:ft,pointerout:ft},Bt={2:ut,3:"pen",4:"mouse",5:"kinect"},Mt="pointerdown",Pt="pointermove pointerup pointercancel";r.MSPointerEvent&&!r.PointerEvent&&(Mt="MSPointerDown",Pt="MSPointerMove MSPointerUp MSPointerCancel"),e(C,b,{handler:function(t){var e=this.store,n=!1,o=t.type.toLowerCase().replace("ms",""),i=Tt[o],r=Bt[t.pointerType]||t.pointerType,a=r==ut,s=d(e,t.pointerId,"pointerId");i&ht&&(0===t.button||a)?s<0&&(e.push(t),s=e.length-1):i&(pt|ft)&&(n=!0),s<0||(e[s]=t,this.callback(this.manager,i,{pointers:e,changedPointers:[t],pointerType:r,srcEvent:t}),n&&e.splice(s,1))}});var Nt={touchstart:ht,touchmove:2,touchend:pt,touchcancel:ft};e(k,b,{handler:function(t){var e,n=Nt[t.type];n===ht&&(this.started=!0),this.started&&(e=function(t,e){var n=g(t.touches),o=g(t.changedTouches);return e&(pt|ft)&&(n=m(n.concat(o),"identifier",!0)),[n,o]}.call(this,t,n),n&(pt|ft)&&e[0].length-e[1].length==0&&(this.started=!1),this.callback(this.manager,n,{pointers:e[0],changedPointers:e[1],pointerType:ut,srcEvent:t}))}});var Lt={touchstart:ht,touchmove:2,touchend:pt,touchcancel:ft},Ot="touchstart touchmove touchend touchcancel";e(S,b,{handler:function(t){var e=Lt[t.type],n=function(t,e){var n=g(t.touches),o=this.targetIds;if(e&(2|ht)&&1===n.length)return o[n[0].identifier]=!0,[n,n];var i,r=g(t.changedTouches),a=[],s=this.target,c=n.filter(function(t){return N(t.target,s)});if(e===ht)for(i=0;i<c.length;)o[c[i].identifier]=!0,i++;for(i=0;i<r.length;)o[r[i].identifier]&&a.push(r[i]),e&(pt|ft)&&delete o[r[i].identifier],i++;return a.length?[m(c.concat(a),"identifier",!0),a]:void 0}.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:ut,srcEvent:t})}});e(E,b,{handler:function(t,e,n){var o=n.pointerType==ut,i="mouse"==n.pointerType;if(!(i&&n.sourceCapabilities&&n.sourceCapabilities.firesTouchEvents)){if(o)(function(t,e){t&ht?(this.primaryTouch=e.changedPointers[0].identifier,A.call(this,e)):t&(pt|ft)&&A.call(this,e)}).call(this,e,n);else if(i&&function(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,o=0;o<this.lastTouches.length;o++){var i=this.lastTouches[o],r=Math.abs(e-i.x),a=Math.abs(n-i.y);if(r<=25&&a<=25)return!0}return!1}.call(this,n))return;this.callback(t,e,n)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var Ft=v(K.style,"touchAction"),_t=Ft!==P,Dt="manipulation",Rt="none",It="pan-x",jt="pan-y",zt=function(){if(!_t)return!1;var e={},n=r.CSS&&r.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(t){e[t]=!n||r.CSS.supports("touch-action",t)}),e}();T.prototype={set:function(t){"compute"==t&&(t=this.compute()),_t&&this.manager.element.style&&zt[t]&&(this.manager.element.style[Ft]=t),this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return a(this.manager.recognizers,function(t){u(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),function(t){if(p(t,Rt))return Rt;var e=p(t,It),n=p(t,jt);return e&&n?Rt:e||n?e?It:jt:p(t,Dt)?Dt:"auto"}(e.join(" "))},preventDefaults:function(t){var e=t.srcEvent,n=t.offsetDirection;if(!this.manager.session.prevented){var o=this.actions,i=p(o,Rt)&&!zt.none,r=p(o,jt)&&!zt[jt],a=p(o,It)&&!zt[It];if(i){var s=1===t.pointers.length,c=t.distance<2,u=t.deltaTime<250;if(s&&c&&u)return}return a&&r||!(i||r&&n&bt||a&&n&xt)?void 0:this.preventSrc(e)}e.preventDefault()},preventSrc:function(t){this.manager.session.prevented=!0,t.preventDefault()}};var qt=1;B.prototype={defaults:{},set:function(t){return nt(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(o(t,"recognizeWith",this))return this;var e=this.simultaneous;return e[(t=j(t,this)).id]||(e[t.id]=t).recognizeWith(this),this},dropRecognizeWith:function(t){return o(t,"dropRecognizeWith",this)||(t=j(t,this),delete this.simultaneous[t.id]),this},requireFailure:function(t){if(o(t,"requireFailure",this))return this;var e=this.requireFail;return-1===d(e,t=j(t,this))&&(e.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(o(t,"dropRequireFailure",this))return this;t=j(t,this);var e=d(this.requireFail,t);return-1<e&&this.requireFail.splice(e,1),this},hasRequireFailures:function(){return 0<this.requireFail.length},canRecognizeWith:function(t){return!!this.simultaneous[t.id]},emit:function(e){function t(t){n.manager.emit(t,e)}var n=this,o=this.state;o<8&&t(n.options.event+M(o)),t(n.options.event),e.additionalEvent&&t(e.additionalEvent),8<=o&&t(n.options.event+M(o))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;t<this.requireFail.length;){if(!(this.requireFail[t].state&(32|qt)))return!1;t++}return!0},recognize:function(t){var e=nt({},t);return u(this.options.enable,[this,e])?(56&this.state&&(this.state=qt),this.state=this.process(e),void(30&this.state&&this.tryEmit(e))):(this.reset(),void(this.state=32))},process:function(t){},getTouchAction:function(){},reset:function(){}},e(z,B,{defaults:{pointers:1},attrTest:function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},process:function(t){var e=this.state,n=t.eventType,o=6&e,i=this.attrTest(t);return o&&(n&ft||!i)?16|e:o||i?n&pt?8|e:2&e?4|e:2:32}}),e(q,z,{defaults:{event:"pan",threshold:10,pointers:1,direction:wt},getTouchAction:function(){var t=this.options.direction,e=[];return t&bt&&e.push(jt),t&xt&&e.push(It),e},directionTest:function(t){var e=this.options,n=!0,o=t.distance,i=t.direction,r=t.deltaX,a=t.deltaY;return i&e.direction||(o=e.direction&bt?(i=0===r?dt:r<0?gt:mt,n=r!=this.pX,Math.abs(t.deltaX)):(i=0===a?dt:a<0?vt:yt,n=a!=this.pY,Math.abs(t.deltaY))),t.direction=i,n&&o>e.threshold&&i&e.direction},attrTest:function(t){return z.prototype.attrTest.call(this,t)&&(2&this.state||!(2&this.state)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=I(t.direction);e&&(t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),e(H,z,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[Rt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||2&this.state)},emit:function(t){var e;1!==t.scale&&(e=t.scale<1?"in":"out",t.additionalEvent=this.options.event+e),this._super.emit.call(this,t)}}),e(U,B,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return["auto"]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,i=t.deltaTime>e.time;if(this._input=t,!o||!n||t.eventType&(pt|ft)&&!i)this.reset();else if(t.eventType&ht)this.reset(),this._timer=c(function(){this.state=8,this.tryEmit()},e.time,this);else if(t.eventType&pt)return 8;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){8===this.state&&(t&&t.eventType&pt?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=et(),this.manager.emit(this.options.event,this._input)))}}),e(V,z,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[Rt]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||2&this.state)}}),e(Z,z,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:bt|xt,pointers:1},getTouchAction:function(){return q.prototype.getTouchAction.call(this)},attrTest:function(t){var e,n=this.options.direction;return n&(bt|xt)?e=t.overallVelocity:n&bt?e=t.overallVelocityX:n&xt&&(e=t.overallVelocityY),this._super.attrTest.call(this,t)&&n&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&tt(e)>this.options.velocity&&t.eventType&pt},emit:function(t){var e=I(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)}}),e($,B,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Dt]},process:function(t){var e=this.options,n=t.pointers.length===e.pointers,o=t.distance<e.threshold,i=t.deltaTime<e.time;if(this.reset(),t.eventType&ht&&0===this.count)return this.failTimeout();if(o&&i&&n){if(t.eventType!=pt)return this.failTimeout();var r=!this.pTime||t.timeStamp-this.pTime<e.interval,a=!this.pCenter||D(this.pCenter,t.center)<e.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&r?this.count+=1:this.count=1,this._input=t,0==this.count%e.taps)return this.hasRequireFailures()?(this._timer=c(function(){this.state=8,this.tryEmit()},e.interval,this),2):8}return 32},failTimeout:function(){return this._timer=c(function(){this.state=32},this.options.interval,this),32},reset:function(){clearTimeout(this._timer)},emit:function(){8==this.state&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),W.VERSION="2.0.8",W.defaults={domEvents:!1,touchAction:"compute",enable:!0,inputTarget:null,inputClass:null,preset:[[V,{enable:!1}],[H,{enable:!1},["rotate"]],[Z,{direction:bt}],[q,{direction:bt},["swipe"]],[$],[$,{event:"doubletap",taps:2},["tap"]],[U]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},X.prototype={set:function(t){return nt(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},stop:function(t){this.session.stopped=t?2:1},recognize:function(t){var e=this.session;if(!e.stopped){this.touchAction.preventDefaults(t);var n,o=this.recognizers,i=e.curRecognizer;(!i||i&&8&i.state)&&(i=e.curRecognizer=null);for(var r=0;r<o.length;)n=o[r],2===e.stopped||i&&n!=i&&!n.canRecognizeWith(i)?n.reset():n.recognize(t),!i&&14&n.state&&(i=e.curRecognizer=n),r++}},get:function(t){if(t instanceof B)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event==t)return e[n];return null},add:function(t){if(o(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),(t.manager=this).touchAction.update(),t},remove:function(t){return o(t,"remove",this)||!(t=this.get(t))||-1!==(n=d(e=this.recognizers,t))&&(e.splice(n,1),this.touchAction.update()),this;var e,n},on:function(t,e){if(t!==P&&e!==P){var n=this.handlers;return a(f(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this}},off:function(t,e){if(t!==P){var n=this.handlers;return a(f(t),function(t){e?n[t]&&n[t].splice(d(n[t],e),1):delete n[t]}),this}},emit:function(t,e){var n,o,i;this.options.domEvents&&(n=t,o=e,(i=s.createEvent("Event")).initEvent(n,!0,!0),(i.gesture=o).target.dispatchEvent(i));var r=this.handlers[t]&&this.handlers[t].slice();if(r&&r.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var a=0;a<r.length;)r[a](e),a++}},destroy:function(){this.element&&G(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},nt(W,{INPUT_START:ht,INPUT_MOVE:2,INPUT_END:pt,INPUT_CANCEL:ft,STATE_POSSIBLE:qt,STATE_BEGAN:2,STATE_CHANGED:4,STATE_ENDED:8,STATE_RECOGNIZED:8,STATE_CANCELLED:16,STATE_FAILED:32,DIRECTION_NONE:dt,DIRECTION_LEFT:gt,DIRECTION_RIGHT:mt,DIRECTION_UP:vt,DIRECTION_DOWN:yt,DIRECTION_HORIZONTAL:bt,DIRECTION_VERTICAL:xt,DIRECTION_ALL:wt,Manager:X,Input:b,TouchAction:T,TouchInput:S,MouseInput:w,PointerEventInput:C,TouchMouseInput:E,SingleTouchInput:k,Recognizer:B,AttrRecognizer:z,Tap:$,Pan:q,Swipe:Z,Pinch:H,Rotate:V,Press:U,on:l,off:h,each:a,merge:it,extend:ot,assign:nt,inherit:e,bindFn:i,prefixed:v}),(void 0!==r?r:"undefined"!=typeof self?self:{}).Hammer=W,"function"==typeof define&&define.amd?define(function(){return W}):"undefined"!=typeof module&&module.exports?module.exports=W:r.Hammer=W}(window,document);var p={AO:"Angola",BF:"Burkina Faso",BI:"Burundi",BJ:"Benin",BW:"Botswana",CD:"Democratic Republic of the Congo",CF:"Central African Republic",CG:"Congo",CI:"Côte d'Ivoire",CM:"Cameroon",CV:"Cape Verde",DJ:"Djibouti",DZ:"Algeria",EG:"Egypt",EH:"Western Sahara",ER:"Eritrea",ET:"Ethiopia",GA:"Gabon",GH:"Ghana",GM:"Gambia",GN:"Guinea",GQ:"Equatorial Guinea",GW:"Guinea-Bissau",KE:"Kenya",KM:"Comoros",LR:"Liberia",LS:"Lesotho",LY:"Libya",MA:"Morocco",MG:"Madagascar",ML:"Mali",MR:"Mauritania",MU:"Mauritius",MW:"Malawi",MZ:"Mozambique",NA:"Namibia",NE:"Niger",NG:"Nigeria",RW:"Rwanda",SC:"Seychelles",SD:"Sudan",SH:"Saint Helena",SL:"Sierra Leone",SN:"Senegal",SO:"Somalia",SS:"South Sudan",ST:"Sao Tome and Principe",SZ:"Eswatini",TD:"Chad",TF:"French Southern Territories",TG:"Togo",TN:"Tunisia",TZ:"United Republic of Tanzania",UG:"Uganda",ZA:"South Africa",ZM:"Zambia",ZW:"Zimbabwe",AR:"Argentina",AW:"Aruba",BO:"Bolivia",BQ:"Bonaire",BR:"Brazil",BS:"Bahamas",BZ:"Belize",CA:"Canada",CL:"Chile",CO:"Colombia",CR:"Costa Rica",CU:"Cuba",CW:"Curacao",DO:"Dominican Republic",EC:"Ecuador",FK:"Falkland Islands",GF:"French Guiana",GL:"Greenland",GP:"Guadeloupe",GT:"Guatemala",GY:"Guyana",HN:"Honduras",HT:"Haiti",JM:"Jamaica",KY:"Cayman Islands",MQ:"Martinique",MX:"Mexico",NI:"Nicaragua",PA:"Panama",PE:"Peru",PR:"Puerto Rico",PY:"Paraguay",SR:"Suriname",SV:"El Salvador",TT:"Trinidad and Tobago",US:"United States",UY:"Uruguay",VE:"Venezuela",AE:"United Arab Emirates",AF:"Afghanistan",AM:"Armenia",AZ:"Azerbaijan",BD:"Bangladesh",BH:"Bahrain",BN:"Brunei Darussalam",BT:"Bhutan",CN:"China",GE:"Georgia",HK:"Hong Kong",ID:"Indonesia",IL:"Israel",IN:"India",IO:"British Indian Ocean Territory",IQ:"Iraq",IR:"Iran",JO:"Jordan",JP:"Japan",KG:"Kyrgyzstan",KH:"Cambodia",KP:"North Korea",KR:"Republic of Korea",KW:"Kuwait",KZ:"Kazakhstan",LA:"Laos",LB:"Lebanon",LK:"Sri Lanka",MM:"Myanmar",MN:"Mongolia",MO:"Macao",MV:"Maldives",MY:"Malaysia",NP:"Nepal",OM:"Oman",PH:"Philippines",PK:"Pakistan",PS:"Palestine",QA:"Qatar",SA:"Saudi Arabia",SG:"Singapore",SY:"Syrian Arab Republic",TH:"Thailand",TJ:"Tajikistan",TL:"Timor-Leste",TM:"Turkmenistan",TR:"Turkey",TW:"Taiwan",UZ:"Uzbekistan",VN:"Vietnam",YE:"Yemen",AD:"Andorra",AL:"Albania",AT:"Austria",BA:"Bosnia and Herzegovina",BE:"Belgium",BG:"Bulgaria",BY:"Belarus",CH:"Switzerland",CY:"Cyprus",CZ:"Czechia",DE:"Germany",DK:"Denmark",EE:"Estonia",ES:"Spain",FI:"Finland",FR:"France",GR:"Greece",HR:"Croatia",HU:"Hungary",IE:"Ireland",IS:"Iceland",IT:"Italy",LI:"Liechtenstein",LT:"Lithuania",LU:"Luxembourg",LV:"Latvia",MC:"Monaco",MD:"Moldova",ME:"Montenegro",MK:"North Macedonia",MT:"Malta",NL:"Netherlands",NO:"Norway",PL:"Poland",PT:"Portugal",RO:"Romania",RS:"Serbia",RU:"Russia",SE:"Sweden",SI:"Slovenia",SM:"San Marino",SK:"Slovakia",UA:"Ukraine",UK:"United Kingdom",VA:"Vatican",XK:"Kosovo",AU:"Australia",FJ:"Fiji",FM:"Micronesia, Federated States of",MP:"Northern Mariana Islands",NC:"New Caledonia",NF:"Norfolk Island",NZ:"New Zealand",PG:"Papua New Guinea",PW:"Palau",SB:"Solomon Islands",VU:"Vanuatu",OT:"Other, autonomous, etc."};function E(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function A(t){var e=!0;return-1!==["State_borders","sidemap","sidemap2","fas_name","state_abbr","state_lines","terr_name","Department_Names","Department_Numbers","Prefecture_Names","Cities","split_UK_label","United_Kingdom_label"].indexOf(t)&&(e=!1),e}function T(t,e,n){var o;n={detail:n},window.CustomEvent?o=new CustomEvent(e,n):(o=document.createEvent("CustomEvent")).initCustomEvent(e,!0,!0,n),t.dispatchEvent(o)}function B(t,e){var n;t in O&&(O[t].count--,n=O[t].paths.indexOf(e),O[t].paths.splice(n,1),O[t].count)}function M(t){function e(t){return"0".concat(parseInt(t).toString(16)).slice(-2)}return/^#[0-9A-F]{6}$/i.test(t)?t:(t=t.match(/^rgb\((\d+),\s*(\d+),\s*(\d+)\)$/),"#".concat(e(t[1])).concat(e(t[2])).concat(e(t[3])))}var P,N="0.2px",L="rgba(0, 0, 0, 0.33)",O={},F=[],_="#d1dbdd";document.addEventListener("DOMContentLoaded",function(){window.mapSnap=Snap("#map"),window.$map=document.querySelector("#map"),$map.setAttribute("height",window.innerHeight),window.loadRegion=function(t,e){var n=new XMLHttpRequest;n.open("GET","wmr-data/divided/".concat(t,".json")),n.responseType="json",n.send(),n.onload=function(){200===n.status?e(n.response):(alert("WMR data onload error! status: ".concat(n.status,", statusText: ").concat(n.statusText)),n.statusText||alert(JSON.stringify(error)))},n.onerror=function(t){alert("WMR data onerror! ".concat(JSON.stringify(t)))}};var r=0;window.addRegions=function(t){for(var e in t){var n=p[e.slice(-2)],o=e.substring(0,e.length-2).replace(/_/g," ").trim();window[e]=mapSnap.path(t[e]).attr({id:e,fill:"#d1dbdd",stroke:L,"stroke-width":"0.07","stroke-opacity":"1",title:"".concat(n,", ").concat(o)}).data("id",e);var i=document.querySelector("#".concat(e));i.addEventListener("mouseover",function(t){var e,n;A(e=t.target.id)&&(document.getElementById(e).setAttribute("stroke-width",N),n=e.slice(-2),T(document,"mapchart:mouseover",{placeId:e,countryCode:n,country:p[n],region:e.substring(0,e.length-2).replace(/_/g," ").trim()}))}),i.addEventListener("mouseout",function(t){var e=t.target.id;A(e)&&(document.getElementById(e).setAttribute("stroke-width","0.07px"),T(document,"mapchart:mouseout",{placeId:e}))}),i.addEventListener("click",function(t){var e,n=t.target.id;A(n)&&(document.getElementById(n),e=n.slice(-2),T(document,"mapchart:click",{placeId:n,countryCode:e,country:p[e],region:n.substring(0,n.length-2).replace(/_/g," ").trim()}))})}++r===countRegions&&(window.svgZoom=window.mapChart.startZoom())},window.onresize=function(){$map.setAttribute("height",window.innerHeight),svgZoom.resize(),svgZoom.fit(),svgZoom.center()}});var D,R,I,j,z,q,H,U,V,Z,W,X,G,Y,K=(E(J.prototype,[{key:"init",value:function(){loadRegion("europe",addRegions),loadRegion("america",addRegions),loadRegion("asia",addRegions),loadRegion("africa",addRegions),loadRegion("other",addRegions),window.countRegions=5}},{key:"selectRegion",value:function(){(function(t,e,n){var o,i;A(t)&&(o=document.getElementById(t),-1!==F.indexOf(o)&&(o.style.strokeDasharray="none",F.splice(F.indexOf(o),1)),i=""===o.style.fill?_:M(o.style.fill),e=e||L,o.setAttribute("fill",e),o.style.fill=e,n&&(o.style.stroke=L),B(i,o))}).apply(void 0,arguments)}},{key:"removeColor",value:function(){(function(t){var e=t[0].style,n=t[0].id;if(""===e.fill)return!1;var o=M(e.fill);o!==_&&(e.fill=_,t.attr("fill",_),$("#no-borders").is(":checked")||(e.stroke=_),B(o,n))}).apply(void 0,arguments)}},{key:"load",value:function(){(function(t){for(var e in t=JSON.parse(t),$("#map>path").each(function(){A(this.id)&&$(this).css("stroke",t.borders)}),t.background&&$("#map").css("background-color",t.background),t.groups)for(var n,o=t.groups[e].paths,i=o.length,r=0;r<i;r++)n=o[r],P[n]&&(n=P[n]),A(n)&&$("#".concat(n)).attr("fill",e).css("fill",e)}).apply(void 0,arguments)}},{key:"save",value:function(){!function(){var t={groups:{},background:"#000",borders:"#fda"};for(var e in O){var n=O[e].div;n.match(/\d/g).join(""),t.groups[e]={div:n,paths:O[e].paths}}JSON.stringify(t)}()}},{key:"startZoom",value:function(){return r=svgPanZoom("#map",{zoomEnabled:!0,controlIconsEnabled:!1,fit:!0,center:!0,minZoom:1,maxZoom:700<map.clientWidth?50:100,zoomScaleSensitivity:.5,customEventsHandler:{haltEventListeners:["touchstart","touchend","touchmove","touchleave","touchcancel"],init:function(t){var e=t.instance,n=1,o=0,i=0,r=Hammer(t.svgElement,{inputClass:Hammer.SUPPORT_POINTER_EVENTS?Hammer.PointerEventInput:Hammer.TouchInput});r.on("panstart panmove",function(t){"panstart"===t.type&&(i=o=0),e.panBy({x:t.deltaX-o,y:t.deltaY-i}),o=t.deltaX,i=t.deltaY}),r.get("pinch").set({enable:!0}),r.on("pinchstart pinchmove",function(t){"pinchstart"===t.type&&(n=e.getZoom(),e.zoomAtPoint(n*t.scale,{x:t.center.x,y:t.center.y})),e.zoomAtPoint(n*t.scale,{x:t.center.x,y:t.center.y})}),t.svgElement.addEventListener("touchmove",function(t){t.preventDefault()})}}}),document.addEventListener("keydown",function(t){switch(t.keyCode){case 187:return r.zoomIn(),!1;case 189:return r.zoomOut(),!1;case 38:var e=r.getPan();return r.pan({x:e.x,y:e.y+10}),!1;case 39:var n=r.getPan();return r.pan({x:n.x-10,y:n.y}),!1;case 40:var o=r.getPan();return r.pan({x:o.x,y:o.y-10}),!1;case 37:var i=r.getPan();return r.pan({x:i.x+10,y:i.y}),!1}}),r;var r}},{key:"showBorders",value:function(){$("#map path").each(function(){$(this).css("stroke",L)})}},{key:"hideBorders",value:function(){$("#map path").each(function(){$(this).css("stroke","none")})}}]),J);function J(){!function(t){if(!(t instanceof J))throw new TypeError("Cannot call a class as a function")}(this)}window.mapChart=new K,function(){"use strict";var T,B,M={messageLocales:{it:"Utilizziamo i cookie per essere sicuri che tu possa avere la migliore esperienza sul nostro sito. Se continui ad utilizzare questo sito assumiamo che tu ne sia felice.",en:"We use cookies to ensure that you have the best experience on our website. If you continue to use this site we assume that you accept this.",de:"Wir verwenden Cookies um sicherzustellen, dass Sie das beste Erlebnis auf unserer Website haben.",fr:"Nous utilisons des cookies afin d'être sûr que vous pouvez avoir la meilleure expérience sur notre site. Si vous continuez à utiliser ce site, nous supposons que vous acceptez.",pt:"Utilizamos cookies para garantir que você tenha a melhor experiência em nosso site. Se você continuar a usar este site, assumimos que você aceita isso."},cookieNoticePosition:"bottom",learnMoreLinkEnabled:!1,learnMoreLinkHref:"/cookie-banner-information.html",learnMoreLinkText:{it:"Saperne di più",en:"Learn more",de:"Mehr erfahren",fr:"En savoir plus",pt:"Saber mais"},buttonLocales:{en:"OK"},expiresIn:30,fontFamily:"inherit",buttonBgColor:"#ca5000",buttonTextColor:"#fff",noticeBgColor:"#000",noticeTextColor:"#fff",linkColor:"#009fdd",linkBgColor:"#000",linkTarget:"_blank",debug:!1};function P(t){var e=(navigator.userLanguage||navigator.language).substr(0,2);return t[e]?t[e]:t.en}window.cookieNoticeJS=function(){if(void 0===T&&(T=this,-1==document.cookie.indexOf("cookie_notice"))){var t,e=document.querySelector("script[ data-cookie-notice ]");try{t=e?JSON.parse(e.getAttribute("data-cookie-notice")):{}}catch(n){t={}}var r=function t(e,n){var o;for(o in n)n.hasOwnProperty(o)&&("object"==typeof e[o]?e[o]=t(e[o],n[o]):e[o]=n[o]);return e}(M,arguments[0]||t||{});r.debug;var n,o,i,a,s,c,u,l=(b=P(r.messageLocales),x=r.noticeBgColor,w=r.noticeTextColor,C=r.fontFamily,k=r.cookieNoticePosition,E=document.createElement("div"),A=E.style,E.innerHTML=b+" ",E.setAttribute("id","cookieNotice"),E.setAttribute("data-test-section","cookie-notice"),E.setAttribute("data-test-transitioning","false"),A.position="fixed","top"===k?(S=document.querySelector("body"),B=S.style.paddingTop,A.top="0",S.style.paddingTop="48px"):A.bottom="0",A.left="0",A.right="0",A.background=x,A.color=w,A["z-index"]="999",A.padding="10px 5px",A["text-align"]="center",A["font-size"]="12px",A["line-height"]="28px",C&&(A.fontFamily=C),E);r.learnMoreLinkEnabled&&(a=P(r.learnMoreLinkText),s=r.learnMoreLinkHref,c=r.linkTarget,u=r.linkColor,r.linkBgColor,i=(o=document.createElement("a")).style,o.href=s,o.textContent=a,o.title=a,o.target=c,o.className="learn-more",o.setAttribute("data-test-action","learn-more-link"),i.color=u,i.backgroundColor="transparent",i["text-decoration"]="underline",i.display="inline",n=o);var h=(f=P(r.buttonLocales),d=r.buttonBgColor,g=r.buttonTextColor,m=r.fontFamily,v=document.createElement("span"),y=v.style,v.href="#",v.innerHTML=f,v.setAttribute("role","button"),v.className="confirm",v.setAttribute("data-test-action","dismiss-cookie-notice"),y.background=d,y.color=g,y["text-decoration"]="none",y.cursor="pointer",y.display="inline-block",y.padding="0 15px",y.margin="0 0 0 10px",m&&(y.fontFamily=m),v);h.addEventListener("click",function(t){var e,n,o,i;t.preventDefault(),e=60*parseInt(r.expiresIn+"",10)*1e3*60*24,n=new Date,(o=new Date).setTime(n.getTime()+e),document.cookie="cookie_notice=1; expires="+o.toUTCString()+"; path=/;",(i=l).style.opacity=1,i.setAttribute("data-test-transitioning","true"),function t(){(i.style.opacity-=.1)<.01?(void 0!==B&&(document.querySelector("body").style.paddingTop=B),document.body.removeChild(i)):setTimeout(t,40)}()});var p=document.body.appendChild(l);n&&p.appendChild(n),p.appendChild(h)}var f,d,g,m,v,y,b,x,w,C,k,S,E,A}}(),D=this,R=function(){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function L(t){return(L="function"==typeof Symbol&&"symbol"===e(Symbol.iterator)?function(t){return e(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":e(t)})(t)}function O(i){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},e=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(e=e.concat(Object.getOwnPropertySymbols(r).filter(function(t){return Object.getOwnPropertyDescriptor(r,t).enumerable}))),e.forEach(function(t){var e,n,o;e=i,o=r[n=t],n in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o})}return i}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function t(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function c(t,e){return!e||"object"!==L(e)&&"function"!=typeof e?s(t):e}function u(t){return(u=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function n(t,e){return(n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&n(t,e)}var r={type:"logger",log:function(t){this.output("log",t)},warn:function(t){this.output("warn",t)},error:function(t){this.output("error",t)},output:function(t,e){var n,o;console&&console[t]&&(n=console)[t].apply(n,function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}(o=e)||function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}())}},l=(t(f,[{key:"init",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.prefix=e.prefix||"i18next:",this.logger=t||r,this.options=e,this.debug=e.debug}},{key:"setDebug",value:function(t){this.debug=t}},{key:"log",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"log","",!0)}},{key:"warn",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","",!0)}},{key:"error",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"error","")}},{key:"deprecate",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(t,e,n,o){return o&&!this.debug?null:("string"==typeof t[0]&&(t[0]="".concat(n).concat(this.prefix," ").concat(t[0])),this.logger[e](t))}},{key:"create",value:function(t){return new f(this.logger,O({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),new f),h=(t(p,[{key:"on",value:function(t,e){var n=this;return t.split(" ").forEach(function(t){n.observers[t]=n.observers[t]||[],n.observers[t].push(e)}),this}},{key:"off",value:function(t,e){this.observers[t]&&(e?this.observers[t]=this.observers[t].filter(function(t){return t!==e}):delete this.observers[t])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(1<t?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];this.observers[e]&&[].concat(this.observers[e]).forEach(function(t){t.apply(void 0,n)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(function(t){t.apply(t,[e].concat(n))})}}]),p);function p(){a(this,p),this.observers={}}function f(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};a(this,f),this.init(t,e)}function d(){var n,o,t=new Promise(function(t,e){n=t,o=e});return t.resolve=n,t.reject=o,t}function g(t){return null==t?"":""+t}function m(t,e,n){function o(t){return t&&-1<t.indexOf("###")?t.replace(/###/g,"."):t}function i(){return!t||"string"==typeof t}for(var r="string"!=typeof e?[].concat(e):e.split(".");1<r.length;){if(i())return{};var a=o(r.shift());!t[a]&&n&&(t[a]=new n),t=t[a]}return i()?{}:{obj:t,k:o(r.shift())}}function v(t,e,n){var o=m(t,e,Object);o.obj[o.k]=n}function y(t,e){var n=m(t,e),o=n.obj,i=n.k;if(o)return o[i]}function b(t,e,n){var o=y(t,n);return void 0!==o?o:y(e,n)}function x(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var w={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function C(t){return"string"==typeof t?t.replace(/[&<>"'\/]/g,function(t){return w[t]}):t}var k=(i(B,h),t(B,[{key:"addNamespaces",value:function(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}},{key:"removeNamespaces",value:function(t){var e=this.options.ns.indexOf(t);-1<e&&this.options.ns.splice(e,1)}},{key:"getResource",value:function(t,e,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{},i=void 0!==o.keySeparator?o.keySeparator:this.options.keySeparator,r=[t,e];return n&&"string"!=typeof n&&(r=r.concat(n)),n&&"string"==typeof n&&(r=r.concat(i?n.split(i):n)),-1<t.indexOf(".")&&(r=t.split(".")),y(this.data,r)}},{key:"addResource",value:function(t,e,n,o){var i=4<arguments.length&&void 0!==arguments[4]?arguments[4]:{silent:!1},r=this.options.keySeparator;void 0===r&&(r=".");var a=[t,e];n&&(a=a.concat(r?n.split(r):n)),-1<t.indexOf(".")&&(o=e,e=(a=t.split("."))[1]),this.addNamespaces(e),v(this.data,a,o),i.silent||this.emit("added",t,e,n,o)}},{key:"addResources",value:function(t,e,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(t,e,i,n[i],{silent:!0});o.silent||this.emit("added",t,e,n)}},{key:"addResourceBundle",value:function(t,e,n,o,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[t,e];-1<t.indexOf(".")&&(o=n,n=e,e=(a=t.split("."))[1]),this.addNamespaces(e);var s=y(this.data,a)||{};o?function t(e,n,o){for(var i in n)i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof n[i]||n[i]instanceof String?o&&(e[i]=n[i]):t(e[i],n[i],o):e[i]=n[i];return e}(s,n,i):s=O({},s,n),v(this.data,a,s),r.silent||this.emit("added",t,e,n)}},{key:"removeResourceBundle",value:function(t,e){this.hasResourceBundle(t,e)&&delete this.data[t][e],this.removeNamespaces(e),this.emit("removed",t,e)}},{key:"hasResourceBundle",value:function(t,e){return void 0!==this.getResource(t,e)}},{key:"getResourceBundle",value:function(t,e){return e=e||this.options.defaultNS,"v1"===this.options.compatibilityAPI?O({},{},this.getResource(t,e)):this.getResource(t,e)}},{key:"getDataByLanguage",value:function(t){return this.data[t]}},{key:"toJSON",value:function(){return this.data}}]),B),S={processors:{},addPostProcessor:function(t){this.processors[t.name]=t},handle:function(t,e,n,o,i){var r=this;return t.forEach(function(t){r.processors[t]&&(e=r.processors[t].process(e,n,o,i))}),e}},E={},A=(i(T,h),t(T,[{key:"changeLanguage",value:function(t){t&&(this.language=t)}},{key:"exists",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(t,e);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(t,e){var n=e.nsSeparator||this.options.nsSeparator;void 0===n&&(n=":");var o,i=void 0!==e.keySeparator?e.keySeparator:this.options.keySeparator,r=e.ns||this.options.defaultNS;return n&&-1<t.indexOf(n)&&(o=t.split(n),(n!==i||n===i&&-1<this.options.ns.indexOf(o[0]))&&(r=o.shift()),t=o.join(i)),"string"==typeof r&&(r=[r]),{key:t,namespaces:r}}},{key:"translate",value:function(t,n){var o=this;if("object"!==L(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n=n||{},null==t)return"";Array.isArray(t)||(t=[String(t)]);var e=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,i=this.extractFromKey(t[t.length-1],n),r=i.key,a=i.namespaces,s=a[a.length-1],c=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(c&&"cimode"===c.toLowerCase()){if(u){var l=n.nsSeparator||this.options.nsSeparator;return s+l+r}return r}var h=this.resolve(t,n),p=h&&h.res,f=h&&h.usedKey||r,d=h&&h.exactUsedKey||r,g=Object.prototype.toString.apply(p),m=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject;if(v&&p&&"string"!=typeof p&&"boolean"!=typeof p&&"number"!=typeof p&&["[object Number]","[object Function]","[object RegExp]"].indexOf(g)<0&&("string"!=typeof m||"[object Array]"!==g)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,p,n):"key '".concat(r," (").concat(this.language,")' returned an object instead of string.");if(e){var y,b="[object Array]"===g,x=b?[]:{},w=b?d:f;for(var C in p)Object.prototype.hasOwnProperty.call(p,C)&&(y="".concat(w).concat(e).concat(C),x[C]=this.translate(y,O({},n,{joinArrays:!1,ns:a})),x[C]===y&&(x[C]=p[C]));p=x}}else if(v&&"string"==typeof m&&"[object Array]"===g)(p=p.join(m))&&(p=this.extendTranslation(p,t,n));else{var k,S=!1,E=!1;this.isValidLookup(p)||void 0===n.defaultValue||(S=!0,void 0!==n.count&&(k=this.pluralResolver.getSuffix(c,n.count),p=n["defaultValue".concat(k)]),p=p||n.defaultValue),this.isValidLookup(p)||(E=!0,p=r);var A=n.defaultValue&&n.defaultValue!==p&&this.options.updateMissing;if(E||S||A){this.logger.log(A?"updateKey":"missingKey",c,s,r,A?n.defaultValue:p);var T=[],B=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&B&&B[0])for(var M=0;M<B.length;M++)T.push(B[M]);else"all"===this.options.saveMissingTo?T=this.languageUtils.toResolveHierarchy(n.lng||this.language):T.push(n.lng||this.language);var P,N=function(t,e){o.options.missingKeyHandler?o.options.missingKeyHandler(t,s,e,A?n.defaultValue:p,A,n):o.backendConnector&&o.backendConnector.saveMissing&&o.backendConnector.saveMissing(t,s,e,A?n.defaultValue:p,A,n),o.emit("missingKey",t,s,e,p)};this.options.saveMissing&&(P=void 0!==n.count&&"string"!=typeof n.count,this.options.saveMissingPlurals&&P?T.forEach(function(e){o.pluralResolver.getPluralFormsOfKey(e,r).forEach(function(t){return N([e],t)})}):N(T,r))}p=this.extendTranslation(p,t,n,h),E&&p===r&&this.options.appendNamespaceToMissingKey&&(p="".concat(s,":").concat(r)),E&&this.options.parseMissingKeyHandler&&(p=this.options.parseMissingKeyHandler(p))}return p}},{key:"extendTranslation",value:function(t,e,n,o){var i,r=this;this.i18nFormat&&this.i18nFormat.parse?t=this.i18nFormat.parse(t,n,o.usedLng,o.usedNS,o.usedKey,{resolved:o}):n.skipInterpolation||(n.interpolation&&this.interpolator.init(O({},n,{interpolation:O({},this.options.interpolation,n.interpolation)})),i=n.replace&&"string"!=typeof n.replace?n.replace:n,this.options.interpolation.defaultVariables&&(i=O({},this.options.interpolation.defaultVariables,i)),t=this.interpolator.interpolate(t,i,n.lng||this.language,n),!1!==n.nest&&(t=this.interpolator.nest(t,function(){return r.translate.apply(r,arguments)},n)),n.interpolation&&this.interpolator.reset());var a=n.postProcess||this.options.postProcess,s="string"==typeof a?[a]:a;return null!=t&&s&&s.length&&!1!==n.applyPostProcessor&&(t=S.handle(s,t,e,this.options&&this.options.postProcessPassResolved?O({i18nResolved:o},n):n,this)),t}},{key:"resolve",value:function(t){var u,i,l,h,p,f=this,d=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof t&&(t=[t]),t.forEach(function(t){var e,a,n,s,c,o;f.isValidLookup(u)||(e=f.extractFromKey(t,d),a=e.key,i=a,n=e.namespaces,f.options.fallbackNS&&(n=n.concat(f.options.fallbackNS)),s=void 0!==d.count&&"string"!=typeof d.count,c=void 0!==d.context&&"string"==typeof d.context&&""!==d.context,o=d.lngs?d.lngs:f.languageUtils.toResolveHierarchy(d.lng||f.language,d.fallbackLng),n.forEach(function(r){f.isValidLookup(u)||(p=r,!E["".concat(o[0],"-").concat(r)]&&f.utils&&f.utils.hasLoadedNamespace&&!f.utils.hasLoadedNamespace(p)&&(E["".concat(o[0],"-").concat(r)]=!0,f.logger.warn('key "'.concat(i,'" for namespace "').concat(p,'" for languages "').concat(o.join(", "),"\" won't get resolved as namespace was not yet loaded"),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),o.forEach(function(t){if(!f.isValidLookup(u)){h=t;var e,n,o=a,i=[o];for(f.i18nFormat&&f.i18nFormat.addLookupKeys?f.i18nFormat.addLookupKeys(i,a,t,r,d):(s&&(e=f.pluralResolver.getSuffix(t,d.count)),s&&c&&i.push(o+e),c&&i.push(o+="".concat(f.options.contextSeparator).concat(d.context)),s&&i.push(o+=e));n=i.pop();)f.isValidLookup(u)||(l=n,u=f.getResource(t,r,n,d))}}))}))}),{res:u,usedKey:i,exactUsedKey:l,usedLng:h,usedNS:p}}},{key:"isValidLookup",value:function(t){return!(void 0===t||!this.options.returnNull&&null===t||!this.options.returnEmptyString&&""===t)}},{key:"getResource",value:function(t,e,n){var o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,e,n,o):this.resourceStore.getResource(t,e,n,o)}}]),T);function T(t){var e,n,o,i,r=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return a(this,T),e=c(this,u(T).call(this)),h.call(s(e)),n=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=t,i=s(e),n.forEach(function(t){o[t]&&(i[t]=o[t])}),e.options=r,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e.logger=l.create("translator"),e}function B(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return a(this,B),e=c(this,u(B).call(this)),h.call(s(e)),e.data=t||{},e.options=n,void 0===e.options.keySeparator&&(e.options.keySeparator="."),e}function M(t){return t.charAt(0).toUpperCase()+t.slice(1)}var P=(t(_,[{key:"getScriptPartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return null;var e=t.split("-");return 2===e.length?null:(e.pop(),this.formatLanguageCode(e.join("-")))}},{key:"getLanguagePartFromCode",value:function(t){if(!t||t.indexOf("-")<0)return t;var e=t.split("-");return this.formatLanguageCode(e[0])}},{key:"formatLanguageCode",value:function(t){if("string"==typeof t&&-1<t.indexOf("-")){var e=["hans","hant","latn","cyrl","cans","mong","arab"],n=t.split("-");return this.options.lowerCaseLng?n=n.map(function(t){return t.toLowerCase()}):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),-1<e.indexOf(n[1].toLowerCase())&&(n[1]=M(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),-1<e.indexOf(n[1].toLowerCase())&&(n[1]=M(n[1].toLowerCase())),-1<e.indexOf(n[2].toLowerCase())&&(n[2]=M(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}},{key:"isWhitelisted",value:function(t){return"languageOnly"!==this.options.load&&!this.options.nonExplicitWhitelist||(t=this.getLanguagePartFromCode(t)),!this.whitelist||!this.whitelist.length||-1<this.whitelist.indexOf(t)}},{key:"getFallbackCodes",value:function(t,e){if(!t)return[];if("string"==typeof t&&(t=[t]),"[object Array]"===Object.prototype.toString.apply(t))return t;if(!e)return t.default||[];var n=t[e];return(n=(n=(n=n||t[this.getScriptPartFromCode(e)])||t[this.formatLanguageCode(e)])||t.default)||[]}},{key:"toResolveHierarchy",value:function(t,e){function n(t){t&&(o.isWhitelisted(t)?r.push(t):o.logger.warn("rejecting non-whitelisted language code: ".concat(t)))}var o=this,i=this.getFallbackCodes(e||this.options.fallbackLng||[],t),r=[];return"string"==typeof t&&-1<t.indexOf("-")?("languageOnly"!==this.options.load&&n(this.formatLanguageCode(t)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&n(this.getScriptPartFromCode(t)),"currentOnly"!==this.options.load&&n(this.getLanguagePartFromCode(t))):"string"==typeof t&&n(this.formatLanguageCode(t)),i.forEach(function(t){r.indexOf(t)<0&&n(o.formatLanguageCode(t))}),r}}]),_),N=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he"],nr:[1,2,20,21],fc:22}],F={1:function(t){return Number(1<t)},2:function(t){return Number(1!=t)},3:function(t){return 0},4:function(t){return Number(t%10==1&&t%100!=11?0:2<=t%10&&t%10<=4&&(t%100<10||20<=t%100)?1:2)},5:function(t){return Number(0===t?0:1==t?1:2==t?2:3<=t%100&&t%100<=10?3:11<=t%100?4:5)},6:function(t){return Number(1==t?0:2<=t&&t<=4?1:2)},7:function(t){return Number(1==t?0:2<=t%10&&t%10<=4&&(t%100<10||20<=t%100)?1:2)},8:function(t){return Number(1==t?0:2==t?1:8!=t&&11!=t?2:3)},9:function(t){return Number(2<=t)},10:function(t){return Number(1==t?0:2==t?1:t<7?2:t<11?3:4)},11:function(t){return Number(1==t||11==t?0:2==t||12==t?1:2<t&&t<20?2:3)},12:function(t){return Number(t%10!=1||t%100==11)},13:function(t){return Number(0!==t)},14:function(t){return Number(1==t?0:2==t?1:3==t?2:3)},15:function(t){return Number(t%10==1&&t%100!=11?0:2<=t%10&&(t%100<10||20<=t%100)?1:2)},16:function(t){return Number(t%10==1&&t%100!=11?0:0!==t?1:2)},17:function(t){return Number(1==t||t%10==1?0:1)},18:function(t){return Number(0==t?0:1==t?1:2)},19:function(t){return Number(1==t?0:0===t||1<t%100&&t%100<11?1:10<t%100&&t%100<20?2:3)},20:function(t){return Number(1==t?0:0===t||0<t%100&&t%100<20?1:2)},21:function(t){return Number(t%100==1?1:t%100==2?2:t%100==3||t%100==4?3:0)},22:function(t){return Number(1===t?0:2===t?1:(t<0||10<t)&&t%10==0?2:3)}};function _(t){a(this,_),this.options=t,this.whitelist=this.options.whitelist||!1,this.logger=l.create("languageUtils")}var D=(t(j,[{key:"addRule",value:function(t,e){this.rules[t]=e}},{key:"getRule",value:function(t){return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}},{key:"needsPlural",value:function(t){var e=this.getRule(t);return e&&1<e.numbers.length}},{key:"getPluralFormsOfKey",value:function(n,o){var i=this,r=[],t=this.getRule(n);return t&&t.numbers.forEach(function(t){var e=i.getSuffix(n,t);r.push("".concat(o).concat(e))}),r}},{key:"getSuffix",value:function(t,e){var n=this,o=this.getRule(t);if(o){var i=o.noAbs?o.plurals(e):o.plurals(Math.abs(e)),r=o.numbers[i];this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]&&(2===r?r="plural":1===r&&(r=""));var a=function(){return n.options.prepend&&r.toString()?n.options.prepend+r.toString():r.toString()};return"v1"===this.options.compatibilityJSON?1===r?"":"number"==typeof r?"_plural_".concat(r.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===o.numbers.length&&1===o.numbers[0]?a():this.options.prepend&&i.toString()?this.options.prepend+i.toString():i.toString()}return this.logger.warn("no plural rule found for: ".concat(t)),""}}]),j),R=(t(I,[{key:"init",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});var e=t.interpolation;this.escape=void 0!==e.escape?e.escape:C,this.escapeValue=void 0===e.escapeValue||e.escapeValue,this.useRawValueToEscape=void 0!==e.useRawValueToEscape&&e.useRawValueToEscape,this.prefix=e.prefix?x(e.prefix):e.prefixEscaped||"{{",this.suffix=e.suffix?x(e.suffix):e.suffixEscaped||"}}",this.formatSeparator=e.formatSeparator?e.formatSeparator:e.formatSeparator||",",this.unescapePrefix=e.unescapeSuffix?"":e.unescapePrefix||"-",this.unescapeSuffix=!this.unescapePrefix&&e.unescapeSuffix||"",this.nestingPrefix=e.nestingPrefix?x(e.nestingPrefix):e.nestingPrefixEscaped||x("$t("),this.nestingSuffix=e.nestingSuffix?x(e.nestingSuffix):e.nestingSuffixEscaped||x(")"),this.nestingOptionsSeparator=e.nestingOptionsSeparator?e.nestingOptionsSeparator:e.nestingOptionsSeparator||",",this.maxReplaces=e.maxReplaces?e.maxReplaces:1e3,this.alwaysFormat=void 0!==e.alwaysFormat&&e.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var t="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(t,"g");var e="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(e,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(t,r,a,s){var e,c=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function n(t){return t.replace(/\$/g,"$$$$")}function o(t){if(t.indexOf(c.formatSeparator)<0){var e=b(r,u,t);return c.alwaysFormat?c.format(e,void 0,a):e}var n=t.split(c.formatSeparator),o=n.shift().trim(),i=n.join(c.formatSeparator).trim();return c.format(b(r,u,o),i,a,s)}this.resetRegExp();for(var i,l,h,p=s&&s.missingInterpolationHandler||this.options.missingInterpolationHandler,f=0;(e=this.regexpUnescape.exec(t))&&(void 0===(l=o(e[1].trim()))?l="function"==typeof p?"string"==typeof(i=p(t,e,s))?i:"":(this.logger.warn("missed to pass in variable ".concat(e[1]," for interpolating ").concat(t)),""):"string"==typeof l||this.useRawValueToEscape||(l=g(l)),t=t.replace(e[0],n(l)),this.regexpUnescape.lastIndex=0,!(++f>=this.maxReplaces)););for(f=0;(e=this.regexp.exec(t))&&(void 0===(l=o(e[1].trim()))?l="function"==typeof p?"string"==typeof(h=p(t,e,s))?h:"":(this.logger.warn("missed to pass in variable ".concat(e[1]," for interpolating ").concat(t)),""):"string"==typeof l||this.useRawValueToEscape||(l=g(l)),l=this.escapeValue?n(this.escape(l)):n(l),t=t.replace(e[0],l),this.regexp.lastIndex=0,!(++f>=this.maxReplaces)););return t}},{key:"nest",value:function(t,e){var n,o,r=O({},2<arguments.length&&void 0!==arguments[2]?arguments[2]:{});function i(t,e){var n=this.nestingOptionsSeparator;if(t.indexOf(n)<0)return t;var o=t.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(o[1]);t=o[0],i=(i=this.interpolate(i,r)).replace(/'/g,'"');try{r=JSON.parse(i),e&&(r=O({},e,r))}catch(e){return this.logger.warn("failed parsing options string in nesting for key ".concat(t),e),"".concat(t).concat(n).concat(i)}return delete r.defaultValue,t}for(r.applyPostProcessor=!1,delete r.defaultValue;n=this.nestingRegexp.exec(t);){if((o=e(i.call(this,n[1].trim(),r),r))&&n[0]===t&&"string"!=typeof o)return o;"string"!=typeof o&&(o=g(o)),o||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(t)),o=""),t=t.replace(n[0],o),this.regexp.lastIndex=0}return t}}]),I);function I(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{};a(this,I),this.logger=l.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(t){return t},this.init(t)}function j(t){var n,e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};a(this,j),this.languageUtils=t,this.options=e,this.logger=l.create("pluralResolver"),this.rules=(n={},N.forEach(function(e){e.lngs.forEach(function(t){n[t]={numbers:e.nr,plurals:F[e.fc]}})}),n)}function z(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=[],o=!0,i=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);o=!0);}catch(t){i=!0,r=t}finally{try{o||null==s.return||s.return()}finally{if(i)throw r}}return n}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}var q=(i(H,h),t(H,[{key:"queueLoad",value:function(t,e,i,n){var r=this,a=[],s=[],c=[],u=[];return t.forEach(function(n){var o=!0;e.forEach(function(t){var e="".concat(n,"|").concat(t);!i.reload&&r.store.hasResourceBundle(n,t)?r.state[e]=2:r.state[e]<0||(1===r.state[e]?s.indexOf(e)<0&&s.push(e):(r.state[e]=1,o=!1,s.indexOf(e)<0&&s.push(e),a.indexOf(e)<0&&a.push(e),u.indexOf(t)<0&&u.push(t)))}),o||c.push(n)}),(a.length||s.length)&&this.queue.push({pending:s,loaded:{},errors:[],callback:n}),{toLoad:a,pending:s,toLoadLanguages:c,toLoadNamespaces:u}}},{key:"loaded",value:function(a,s,t){var e=z(a.split("|"),2),c=e[0],u=e[1];s&&this.emit("failedLoading",c,u,s),t&&this.store.addResourceBundle(c,u,t),this.state[a]=s?-1:2;var l={};this.queue.forEach(function(t){var e=t.loaded,n=u,o=m(e,[c],Object),i=o.obj,r=o.k;i[r]=i[r]||[],i[r].push(n),function(t,e){for(var n=t.indexOf(e);-1!==n;)t.splice(n,1),n=t.indexOf(e)}(t.pending,a),s&&t.errors.push(s),0!==t.pending.length||t.done||(Object.keys(t.loaded).forEach(function(e){l[e]||(l[e]=[]),t.loaded[e].length&&t.loaded[e].forEach(function(t){l[e].indexOf(t)<0&&l[e].push(t)})}),t.done=!0,t.errors.length?t.callback(t.errors):t.callback())}),this.emit("loaded",l),this.queue=this.queue.filter(function(t){return!t.done})}},{key:"read",value:function(n,o,i){var r=this,a=3<arguments.length&&void 0!==arguments[3]?arguments[3]:0,s=4<arguments.length&&void 0!==arguments[4]?arguments[4]:250,c=5<arguments.length?arguments[5]:void 0;return n.length?this.backend[i](n,o,function(t,e){t&&e&&a<5?setTimeout(function(){r.read.call(r,n,o,i,a+1,2*s,c)},s):c(t,e)}):c(null,{})}},{key:"prepareLoading",value:function(t,e){var n=this,o=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=3<arguments.length?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),i&&i();"string"==typeof t&&(t=this.languageUtils.toResolveHierarchy(t)),"string"==typeof e&&(e=[e]);var r=this.queueLoad(t,e,o,i);if(!r.toLoad.length)return r.pending.length||i(),null;r.toLoad.forEach(function(t){n.loadOne(t)})}},{key:"load",value:function(t,e,n){this.prepareLoading(t,e,{},n)}},{key:"reload",value:function(t,e,n){this.prepareLoading(t,e,{reload:!0},n)}},{key:"loadOne",value:function(n){var o=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",t=z(n.split("|"),2),r=t[0],a=t[1];this.read(r,a,"read",void 0,void 0,function(t,e){t&&o.logger.warn("".concat(i,"loading namespace ").concat(a," for language ").concat(r," failed"),t),!t&&e&&o.logger.log("".concat(i,"loaded namespace ").concat(a," for language ").concat(r),e),o.loaded(n,t,e)})}},{key:"saveMissing",value:function(t,e,n,o,i){var r=5<arguments.length&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(e)?this.logger.warn('did not save key "'.concat(n,'" for namespace "').concat(e,'" as the namespace was not yet loaded'),"This means something IS WRONG in your application setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(t,e,n,o,null,O({},r,{isUpdate:i})),t&&t[0]&&this.store.addResource(t[0],e,n,o))}}]),H);function H(t,e,n){var o,i=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};return a(this,H),o=c(this,u(H).call(this)),h.call(s(o)),o.backend=t,o.store=e,o.services=n,o.languageUtils=n.languageUtils,o.options=i,o.logger=l.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(n,i.backend,i),o}function U(t){return"string"==typeof t.ns&&(t.ns=[t.ns]),"string"==typeof t.fallbackLng&&(t.fallbackLng=[t.fallbackLng]),"string"==typeof t.fallbackNS&&(t.fallbackNS=[t.fallbackNS]),t.whitelist&&t.whitelist.indexOf("cimode")<0&&(t.whitelist=t.whitelist.concat(["cimode"])),t}function V(){}return i(Z,h),t(Z,[{key:"init",value:function(){var t,e,i=this,n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},o=1<arguments.length?arguments[1]:void 0;function r(t){return t?"function"==typeof t?new t:t:null}function a(){i.changeLanguage(i.options.lng,function(t,e){i.isInitialized=!0,i.logger.log("initialized",i.options),i.emit("initialized",i.options),s.resolve(e),o(t,e)})}"function"==typeof n&&(o=n,n={}),this.options=O({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(t){var e,n={};return"object"===L(t[1])&&(n=t[1]),"string"==typeof t[1]&&(n.defaultValue=t[1]),"string"==typeof t[2]&&(n.tDescription=t[2]),"object"!==L(t[2])&&"object"!==L(t[3])||(e=t[3]||t[2],Object.keys(e).forEach(function(t){n[t]=e[t]})),n},interpolation:{escapeValue:!0,format:function(t,e,n,o){return t},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3}},this.options,U(n)),this.format=this.options.interpolation.format,o=o||V,this.options.isClone||(this.modules.logger?l.init(r(this.modules.logger),this.options):l.init(null,this.options),t=new P(this.options),this.store=new k(this.options.resources,this.options),(e=this.services).logger=l,e.resourceStore=this.store,e.languageUtils=t,e.pluralResolver=new D(t,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),e.interpolator=new R(this.options),e.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},e.backendConnector=new q(r(this.modules.backend),e.resourceStore,e,this.options),e.backendConnector.on("*",function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];i.emit.apply(i,[t].concat(n))}),this.modules.languageDetector&&(e.languageDetector=r(this.modules.languageDetector),e.languageDetector.init(e,this.options.detection,this.options)),this.modules.i18nFormat&&(e.i18nFormat=r(this.modules.i18nFormat),e.i18nFormat.init&&e.i18nFormat.init(this)),this.translator=new A(this.services,this.options),this.translator.on("*",function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];i.emit.apply(i,[t].concat(n))}),this.modules.external.forEach(function(t){t.init&&t.init(i)})),this.modules.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","addResource","addResources","addResourceBundle","removeResourceBundle","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(function(e){i[e]=function(){var t;return(t=i.store)[e].apply(t,arguments)}});var s=d();return this.options.resources||!this.options.initImmediate?a():setTimeout(a,0),s}},{key:"loadResources",value:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:V,o="string"==typeof t?t:this.language;if("function"==typeof t&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(o&&"cimode"===o.toLowerCase())return n();var i=[],r=function(t){t&&e.services.languageUtils.toResolveHierarchy(t).forEach(function(t){i.indexOf(t)<0&&i.push(t)})};o?r(o):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(r),this.options.preload&&this.options.preload.forEach(r),this.services.backendConnector.load(i,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(t,e,n){var o=d();return t=t||this.languages,e=e||this.options.ns,n=n||V,this.services.backendConnector.reload(t,e,function(t){o.resolve(),n(t)}),o}},{key:"use",value:function(t){return"backend"===t.type&&(this.modules.backend=t),("logger"===t.type||t.log&&t.warn&&t.error)&&(this.modules.logger=t),"languageDetector"===t.type&&(this.modules.languageDetector=t),"i18nFormat"===t.type&&(this.modules.i18nFormat=t),"postProcessor"===t.type&&S.addPostProcessor(t),"3rdParty"===t.type&&this.modules.external.push(t),this}},{key:"changeLanguage",value:function(t,i){var r=this;this.isLanguageChangingTo=t;var a=d();function e(o){o&&(r.language||(r.language=o,r.languages=r.services.languageUtils.toResolveHierarchy(o)),r.translator.language||r.translator.changeLanguage(o),r.services.languageDetector&&r.services.languageDetector.cacheUserLanguage(o)),r.loadResources(o,function(t){var e,n;e=t,(n=o)?(r.language=n,r.languages=r.services.languageUtils.toResolveHierarchy(n),r.translator.changeLanguage(n),r.isLanguageChangingTo=void 0,r.emit("languageChanged",n),r.logger.log("languageChanged",n)):r.isLanguageChangingTo=void 0,a.resolve(function(){return r.t.apply(r,arguments)}),i&&i(e,function(){return r.t.apply(r,arguments)})})}return this.emit("languageChanging",t),t||!this.services.languageDetector||this.services.languageDetector.async?!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(e):e(t):e(this.services.languageDetector.detect()),a}},{key:"getFixedT",value:function(t,e){function a(t,e){var n;if("object"!==L(e)){for(var o=arguments.length,i=new Array(2<o?o-2:0),r=2;r<o;r++)i[r-2]=arguments[r];n=s.options.overloadTranslationOptionHandler([t,e].concat(i))}else n=O({},e);return n.lng=n.lng||a.lng,n.lngs=n.lngs||a.lngs,n.ns=n.ns||a.ns,s.t(t,n)}var s=this;return"string"==typeof t?a.lng=t:a.lngs=t,a.ns=e,a}},{key:"t",value:function(){var t;return this.translator&&(t=this.translator).translate.apply(t,arguments)}},{key:"exists",value:function(){var t;return this.translator&&(t=this.translator).exists.apply(t,arguments)}},{key:"setDefaultNamespace",value:function(t){this.options.defaultNS=t}},{key:"hasLoadedNamespace",value:function(t){var o=this;if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var e=this.languages[0],n=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===e.toLowerCase())return!0;function r(t,e){var n=o.services.backendConnector.state["".concat(t,"|").concat(e)];return-1===n||2===n}return!!this.hasResourceBundle(e,t)||!this.services.backendConnector.backend||!(!r(e,t)||n&&!r(i,t))}},{key:"loadNamespaces",value:function(t,e){var n=this,o=d();return this.options.ns?("string"==typeof t&&(t=[t]),t.forEach(function(t){n.options.ns.indexOf(t)<0&&n.options.ns.push(t)}),this.loadResources(function(t){o.resolve(),e&&e(t)}),o):(e&&e(),Promise.resolve())}},{key:"loadLanguages",value:function(t,e){var n=d();"string"==typeof t&&(t=[t]);var o=this.options.preload||[],i=t.filter(function(t){return o.indexOf(t)<0});return i.length?(this.options.preload=o.concat(i),this.loadResources(function(t){n.resolve(),e&&e(t)}),n):(e&&e(),Promise.resolve())}},{key:"dir",value:function(t){return!(t=t||(this.languages&&0<this.languages.length?this.languages[0]:this.language))||0<=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(t))?"rtl":"ltr"}},{key:"createInstance",value:function(){return new Z(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},1<arguments.length?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:V,o=O({},this.options,t,{isClone:!0}),i=new Z(o);return["store","services","language"].forEach(function(t){i[t]=e[t]}),i.translator=new A(i.services,i.options),i.translator.on("*",function(t){for(var e=arguments.length,n=new Array(1<e?e-1:0),o=1;o<e;o++)n[o-1]=arguments[o];i.emit.apply(i,[t].concat(n))}),i.init(o,n),i.translator.options=i.options,i}}]),new Z;function Z(){var t,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length?arguments[1]:void 0;if(a(this,Z),t=c(this,u(Z).call(this)),h.call(s(t)),t.options=U(e),t.services={},t.logger=l,t.modules={external:[]},n&&!t.isInitialized&&!e.isClone){if(!t.options.initImmediate)return t.init(e,n),c(t,s(t));setTimeout(function(){t.init(e,n)},0)}return t}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=R():"function"==typeof define&&define.amd?define(R):(D=D||self).i18next=R(),I=this,j=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=[],o=e.forEach,i=e.slice;function n(t){return(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})(t)}function c(t){return(c="function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?function(t){return n(t)}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)})(t)}function u(t,e){if(e&&"object"===c(e)){var n="",o=encodeURIComponent;for(var i in e)n+="&"+o(i)+"="+o(e[i]);if(!n)return t;t=t+(-1!==t.indexOf("?")?"&":"?")+n.slice(1)}return t}function r(t,e,n,o,i){o&&"object"===c(o)&&(i||(o._t=new Date),o=u("",o).slice(1)),e.queryStringParams&&(t=u(t,e.queryStringParams));try{var r;(r=XMLHttpRequest?new XMLHttpRequest:new ActiveXObject("MSXML2.XMLHTTP.3.0")).open(o?"POST":"GET",t,1),e.crossDomain||r.setRequestHeader("X-Requested-With","XMLHttpRequest"),r.withCredentials=!!e.withCredentials,o&&r.setRequestHeader("Content-type","application/x-www-form-urlencoded"),r.overrideMimeType&&r.overrideMimeType("application/json");var a=e.customHeaders;if(a="function"==typeof a?a():a)for(var s in a)r.setRequestHeader(s,a[s]);r.onreadystatechange=function(){3<r.readyState&&n&&n(r.responseText,r)},r.send(o)}catch(t){console}}function a(){return{loadPath:"/locales/{{lng}}/{{ns}}.json",addPath:"/locales/add/{{lng}}/{{ns}}",allowMultiLoading:!1,parse:JSON.parse,parsePayload:function(t,e,n){return r=n||"",(i=e)in(o={})?Object.defineProperty(o,i,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[i]=r,o;var o,i,r},crossDomain:!1,ajax:r}}var s=(t(l.prototype,[{key:"init",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};this.services=t,this.options=function(n){return o.call(i.call(arguments,1),function(t){if(t)for(var e in t)void 0===n[e]&&(n[e]=t[e])}),n}(e,this.options||{},a())}},{key:"readMulti",value:function(t,e,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath(t,e));var i=this.services.interpolator.interpolate(o,{lng:t.join("+"),ns:e.join("+")});this.loadUrl(i,n)}},{key:"read",value:function(t,e,n){var o=this.options.loadPath;"function"==typeof this.options.loadPath&&(o=this.options.loadPath([t],[e]));var i=this.services.interpolator.interpolate(o,{lng:t,ns:e});this.loadUrl(i,n)}},{key:"loadUrl",value:function(i,r){var a=this;this.options.ajax(i,this.options,function(t,e){if(500<=e.status&&e.status<600)return r("failed loading "+i,!0);if(400<=e.status&&e.status<500)return r("failed loading "+i,!1);var n,o;try{n=a.options.parse(t,i)}catch(t){o="failed parsing "+i+" to json"}if(o)return r(o,!1);r(null,n)})}},{key:"create",value:function(t,n,e,o){var i=this;"string"==typeof t&&(t=[t]);var r=this.options.parsePayload(n,e,o);t.forEach(function(t){var e=i.services.interpolator.interpolate(i.options.addPath,{lng:t,ns:n});i.options.ajax(e,i.options,function(t,e){},r)})}}]),l);function l(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(t){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}(this),this.init(t,e),this.type="backend"}return s.type="backend",s},"object"==typeof exports&&"undefined"!=typeof module?module.exports=j():"function"==typeof define&&define.amd?define(j):(I=I||self).i18nextXHRBackend=j(),z=this,q=function(){"use strict";function t(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}var e=[],o=e.forEach,i=e.slice;var r,a={name:"cookie",lookup:function(t){var e,n;return!t.lookupCookie||"undefined"==typeof document||(n=function(t){for(var e=t+"=",n=document.cookie.split(";"),o=0;o<n.length;o++){for(var i=n[o];" "===i.charAt(0);)i=i.substring(1,i.length);if(0===i.indexOf(e))return i.substring(e.length,i.length)}return null}(t.lookupCookie))&&(e=n),e},cacheUserLanguage:function(t,e){var n,o,i,r,a,s;e.lookupCookie&&"undefined"!=typeof document&&(n=e.lookupCookie,o=t,i=e.cookieMinutes,r=e.cookieDomain,s=i?((a=new Date).setTime(a.getTime()+60*i*1e3),"; expires="+a.toGMTString()):"",document.cookie=n+"="+o+s+";"+(r=r?"domain="+r+";":"")+"path=/")}},s={name:"querystring",lookup:function(t){var e;if("undefined"!=typeof window)for(var n=window.location.search.substring(1).split("&"),o=0;o<n.length;o++){var i=n[o].indexOf("=");0<i&&n[o].substring(0,i)===t.lookupQuerystring&&(e=n[o].substring(i+1))}return e}};try{r="undefined"!==window&&null!==window.localStorage,window.localStorage.setItem("i18next.translate.boo","foo"),window.localStorage.removeItem("i18next.translate.boo")}catch(t){r=!1}var c={name:"localStorage",lookup:function(t){var e,n;return t.lookupLocalStorage&&r&&((n=window.localStorage.getItem(t.lookupLocalStorage))&&(e=n)),e},cacheUserLanguage:function(t,e){e.lookupLocalStorage&&r&&window.localStorage.setItem(e.lookupLocalStorage,t)}},u={name:"navigator",lookup:function(t){var e=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n<navigator.languages.length;n++)e.push(navigator.languages[n]);navigator.userLanguage&&e.push(navigator.userLanguage),navigator.language&&e.push(navigator.language)}return 0<e.length?e:void 0}},l={name:"htmlTag",lookup:function(t){var e,n=t.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(e=n.getAttribute("lang")),e}},h={name:"path",lookup:function(t){var e;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof t.lookupFromPathIndex){if("string"!=typeof n[t.lookupFromPathIndex])return;e=n[t.lookupFromPathIndex].replace("/","")}else e=n[0].replace("/","")}return e}},p={name:"subdomain",lookup:function(t){var e,n;return"undefined"==typeof window||(n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi))instanceof Array&&(e="number"==typeof t.lookupFromSubdomainIndex?n[t.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".","")),e}},n=(t(f.prototype,[{key:"init",value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};this.services=t,this.options=function(n){return o.call(i.call(arguments,1),function(t){if(t)for(var e in t)void 0===n[e]&&(n[e]=t[e])}),n}(e,this.options||{},{order:["querystring","cookie","localStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"],checkWhitelist:!0}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(a),this.addDetector(s),this.addDetector(c),this.addDetector(u),this.addDetector(l),this.addDetector(h),this.addDetector(p)}},{key:"addDetector",value:function(t){this.detectors[t.name]=t}},{key:"detect",value:function(t){var n=this;t=t||this.options.order;var o,e,i=[];return t.forEach(function(t){var e;n.detectors[t]&&((e=n.detectors[t].lookup(n.options))&&"string"==typeof e&&(e=[e]),e&&(i=i.concat(e)))}),i.forEach(function(t){var e;o||(e=n.services.languageUtils.formatLanguageCode(t),n.options.checkWhitelist&&!n.services.languageUtils.isWhitelisted(e)||(o=e))}),o||("string"==typeof(e=this.i18nOptions.fallbackLng)&&(e=[e]),e=e||[],o="[object Array]"===Object.prototype.toString.apply(e)?e[0]:e[0]||e.default&&e.default[0]),o}},{key:"cacheUserLanguage",value:function(e,t){var n=this;(t=t||this.options.caches)&&(this.options.excludeCacheFor&&-1<this.options.excludeCacheFor.indexOf(e)||t.forEach(function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)}))}}]),f);function f(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};!function(t){if(!(t instanceof f))throw new TypeError("Cannot call a class as a function")}(this),this.type="languageDetector",this.detectors={},this.init(t,e)}return n.type="languageDetector",n},"object"==typeof exports&&"undefined"!=typeof module?module.exports=q():"function"==typeof define&&define.amd?define(q):(z=z||self).i18nextBrowserLanguageDetector=q(),H=this,U=function(){var i="retain",v=document,r={}.hasOwnProperty;function c(){return function(t,e,n,o,i){if(e&&!e.nodeType&&arguments.length<=2)return!1;var r,a="function"==typeof n;a&&(r=n,n=function(t,e){return r(t.text,e.startIndex)});var s=u(e,{find:t,wrap:a?null:n,replace:a?n:"$"+(o||"&"),prepMatch:function(t,e){if(!t[0])throw"findAndReplaceDOMText cannot handle zero-length matches";var n;return 0<o&&(n=t[o],t.index+=t[0].indexOf(n),t[0]=n),t.endIndex=t.index+t[0].length,t.startIndex=t.index,t.index=e,t},filterElements:i});return c.revert=function(){return s.revert()},!0}.apply(null,arguments)||u.apply(null,arguments)}function u(t,e){return new n(t,e)}function n(t,e){var n=e.preset&&c.PRESETS[e.preset];if(e.portionMode=e.portionMode||i,n)for(var o in n)r.call(n,o)&&!r.call(e,o)&&(e[o]=n[o]);this.node=t,this.options=e,this.prepMatch=e.prepMatch||this.prepMatch,this.reverts=[],this.matches=this.search(),this.matches.length&&this.processMatches()}return c.NON_PROSE_ELEMENTS={br:1,hr:1,script:1,style:1,img:1,video:1,audio:1,canvas:1,svg:1,map:1,object:1,input:1,textarea:1,select:1,option:1,optgroup:1,button:1},c.NON_CONTIGUOUS_PROSE_ELEMENTS={address:1,article:1,aside:1,blockquote:1,dd:1,div:1,dl:1,fieldset:1,figcaption:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,main:1,nav:1,noscript:1,ol:1,output:1,p:1,pre:1,section:1,ul:1,br:1,li:1,summary:1,dt:1,details:1,rp:1,rt:1,rtc:1,script:1,style:1,img:1,video:1,audio:1,canvas:1,svg:1,map:1,object:1,input:1,textarea:1,select:1,option:1,optgroup:1,button:1,table:1,tbody:1,thead:1,th:1,tr:1,td:1,caption:1,col:1,tfoot:1,colgroup:1},c.PRESETS={prose:{forceContext:c.NON_INLINE_PROSE=function(t){return r.call(c.NON_CONTIGUOUS_PROSE_ELEMENTS,t.nodeName.toLowerCase())},filterElements:function(t){return!r.call(c.NON_PROSE_ELEMENTS,t.nodeName.toLowerCase())}}},(c.Finder=n).prototype={search:function(){var r,a=0,s=0,c=this.options.find,t=this.getAggregateText(),u=[],l=this,c="string"==typeof c?RegExp(String(c).replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1"),"g"):c;return function t(e){for(var n=0,o=e.length;n<o;++n){var i=e[n];if("string"==typeof i){if(c.global)for(;r=c.exec(i);)u.push(l.prepMatch(r,a++,s));else(r=i.match(c))&&u.push(l.prepMatch(r,0,s));s+=i.length}else t(i)}}(t),u},prepMatch:function(t,e,n){if(!t[0])throw new Error("findAndReplaceDOMText cannot handle zero-length matches");return t.endIndex=n+t.index+t[0].length,t.startIndex=n+t.index,t.index=e,t},getAggregateText:function(){var r=this.options.filterElements,a=this.options.forceContext;return function t(e){if(e.nodeType===Node.TEXT_NODE)return[e.data];if(r&&!r(e))return[];var n,o=[""],i=0;if(e=e.firstChild)do{e.nodeType!==Node.TEXT_NODE?(n=t(e),a&&e.nodeType===Node.ELEMENT_NODE&&(!0===a||a(e))?(o[++i]=n,o[++i]=""):("string"==typeof n[0]&&(o[i]+=n.shift()),n.length&&(o[++i]=n,o[++i]=""))):o[i]+=e.data}while(e=e.nextSibling);return o}(this.node)},processMatches:function(){var t,e,n,o=this.matches,i=this.node,r=this.options.filterElements,a=[],s=i,c=o.shift(),u=0,l=0,h=[i];t:for(;;){if(s.nodeType===Node.TEXT_NODE&&(!e&&s.length+u>=c.endIndex?e={node:s,index:l++,text:s.data.substring(c.startIndex-u,c.endIndex-u),indexInMatch:0===u?0:u-c.startIndex,indexInNode:c.startIndex-u,endIndexInNode:c.endIndex-u,isEnd:!0}:t&&a.push({node:s,index:l++,text:s.data,indexInMatch:u-c.startIndex,indexInNode:0}),!t&&s.length+u>c.startIndex&&(t={node:s,index:l++,indexInMatch:0,indexInNode:c.startIndex-u,endIndexInNode:c.endIndex-u,text:s.data.substring(c.startIndex-u,c.endIndex-u)}),u+=s.data.length),n=s.nodeType===Node.ELEMENT_NODE&&r&&!r(s),t&&e){if(s=this.replaceMatch(c,t,a,e),u-=e.node.data.length-e.endIndexInNode,e=t=null,a=[],l=0,!(c=o.shift()))break}else if(!n&&(s.firstChild||s.nextSibling)){s=s.firstChild?(h.push(s),s.firstChild):s.nextSibling;continue}for(;;){if(s.nextSibling){s=s.nextSibling;break}if((s=h.pop())===i)break t}}},revert:function(){for(var t=this.reverts.length;t--;)this.reverts[t]();this.reverts=[]},prepareReplacementString:function(t,e,o){var n=this.options.portionMode;return"first"===n&&0<e.indexInMatch?"":(t=t.replace(/\$(\d+|&|`|')/g,function(t,e){var n;switch(e){case"&":n=o[0];break;case"`":n=o.input.substring(0,o.startIndex);break;case"'":n=o.input.substring(o.endIndex);break;default:n=o[+e]||""}return n}),"first"===n?t:e.isEnd?t.substring(e.indexInMatch):t.substring(e.indexInMatch,e.indexInMatch+e.text.length))},getPortionReplacementNode:function(t,e){var n,o=this.options.replace||"$&",i=this.options.wrap,r=this.options.wrapClass;if(i&&i.nodeType&&((n=v.createElement("div")).innerHTML=i.outerHTML||(new XMLSerializer).serializeToString(i),i=n.firstChild),"function"==typeof o)return(o=o(t,e))&&o.nodeType?o:v.createTextNode(String(o));var a="string"==typeof i?v.createElement(i):i;return a&&r&&(a.className=r),(o=v.createTextNode(this.prepareReplacementString(o,t,e))).data&&a?(a.appendChild(o),a):o},replaceMatch:function(t,e,n,o){var i,r,a=e.node,s=o.node;if(a===s){var c=a;0<e.indexInNode&&(i=v.createTextNode(c.data.substring(0,e.indexInNode)),c.parentNode.insertBefore(i,c));var u=this.getPortionReplacementNode(o,t);return c.parentNode.insertBefore(u,c),o.endIndexInNode<c.length&&(r=v.createTextNode(c.data.substring(o.endIndexInNode)),c.parentNode.insertBefore(r,c)),c.parentNode.removeChild(c),this.reverts.push(function(){i===u.previousSibling&&i.parentNode.removeChild(i),r===u.nextSibling&&r.parentNode.removeChild(r),u.parentNode.replaceChild(c,u)}),u}i=v.createTextNode(a.data.substring(0,e.indexInNode)),r=v.createTextNode(s.data.substring(o.endIndexInNode));for(var l=this.getPortionReplacementNode(e,t),h=[],p=0,f=n.length;p<f;++p){var d=n[p],g=this.getPortionReplacementNode(d,t);d.node.parentNode.replaceChild(g,d.node),this.reverts.push(function(t,e){return function(){e.parentNode.replaceChild(t.node,e)}}(d,g)),h.push(g)}var m=this.getPortionReplacementNode(o,t);return a.parentNode.insertBefore(i,a),a.parentNode.insertBefore(l,a),a.parentNode.removeChild(a),s.parentNode.insertBefore(m,s),s.parentNode.insertBefore(r,s),s.parentNode.removeChild(s),this.reverts.push(function(){i.parentNode.removeChild(i),l.parentNode.replaceChild(a,l),r.parentNode.removeChild(r),m.parentNode.replaceChild(s,m)}),m}},c},"object"==typeof module&&module.exports?module.exports=U():"function"==typeof define&&define.amd?define(U):H.findAndReplaceDOMText=U(),V=this,Z=function(r){"use strict";var o="http://www.w3.org/1999/xhtml",i={svg:"http://www.w3.org/2000/svg",xhtml:o,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function a(t){var e=t+="",n=e.indexOf(":");return 0<=n&&"xmlns"!==(e=t.slice(0,n))&&(t=t.slice(n+1)),i.hasOwnProperty(e)?{space:i[e],local:t}:t}function s(t){var e=a(t);return(e.local?function(t){return function(){return this.ownerDocument.createElementNS(t.space,t.local)}}:function(n){return function(){var t=this.ownerDocument,e=this.namespaceURI;return e===o&&t.documentElement.namespaceURI===o?t.createElement(n):t.createElementNS(e,n)}})(e)}function e(){}function h(t){return null==t?e:function(){return this.querySelector(t)}}function n(){return[]}function l(t){return null==t?n:function(){return this.querySelectorAll(t)}}function p(t){return function(){return this.matches(t)}}function t(t){return new Array(t.length)}function d(t,e){this.ownerDocument=t.ownerDocument,this.namespaceURI=t.namespaceURI,this._next=null,this._parent=t,this.__data__=e}d.prototype={constructor:d,appendChild:function(t){return this._parent.insertBefore(t,this._next)},insertBefore:function(t,e){return this._parent.insertBefore(t,e)},querySelector:function(t){return this._parent.querySelector(t)},querySelectorAll:function(t){return this._parent.querySelectorAll(t)}};function C(t,e,n,o,i,r){for(var a,s=0,c=e.length,u=r.length;s<u;++s)(a=e[s])?(a.__data__=r[s],o[s]=a):n[s]=new d(t,r[s]);for(;s<c;++s)(a=e[s])&&(i[s]=a)}function k(t,e,n,o,i,r,a){for(var s,c,u={},l=e.length,h=r.length,p=new Array(l),f=0;f<l;++f)(s=e[f])&&(p[f]=c="$"+a.call(s,s.__data__,f,e),c in u?i[f]=s:u[c]=s);for(f=0;f<h;++f)(s=u[c="$"+a.call(t,r[f],f,r)])?((o[f]=s).__data__=r[f],u[c]=null):n[f]=new d(t,r[f]);for(f=0;f<l;++f)(s=e[f])&&u[p[f]]===s&&(i[f]=s)}function f(t,e){return t<e?-1:e<t?1:e<=t?0:NaN}function c(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}function u(t,e){return t.style.getPropertyValue(e)||c(t).getComputedStyle(t,null).getPropertyValue(e)}function g(t){return t.trim().split(/^|\s+/)}function m(t){return t.classList||new v(t)}function v(t){this._node=t,this._names=g(t.getAttribute("class")||"")}function y(t,e){for(var n=m(t),o=-1,i=e.length;++o<i;)n.add(e[o])}function b(t,e){for(var n=m(t),o=-1,i=e.length;++o<i;)n.remove(e[o])}function x(){this.textContent=""}function w(){this.innerHTML=""}function S(){this.nextSibling&&this.parentNode.appendChild(this)}function E(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function A(){return null}function T(){var t=this.parentNode;t&&t.removeChild(this)}function B(){var t=this.cloneNode(!1),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}function M(){var t=this.cloneNode(!0),e=this.parentNode;return e?e.insertBefore(t,this.nextSibling):t}v.prototype={add:function(t){this._names.indexOf(t)<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},remove:function(t){var e=this._names.indexOf(t);0<=e&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(t){return 0<=this._names.indexOf(t)}};var P={};function N(n,t,e){return n=L(n,t,e),function(t){var e=t.relatedTarget;e&&(e===this||8&e.compareDocumentPosition(this))||n.call(this,t)}}function L(n,o,i){return function(t){var e=r.event;r.event=t;try{n.call(this,this.__data__,o,i)}finally{r.event=e}}}function O(r){return function(){var t=this.__on;if(t){for(var e,n=0,o=-1,i=t.length;n<i;++n)e=t[n],r.type&&e.type!==r.type||e.name!==r.name?t[++o]=e:this.removeEventListener(e.type,e.listener,e.capture);++o?t.length=o:delete this.__on}}}function F(c,u,l){var h=P.hasOwnProperty(c.type)?N:L;return function(t,e,n){var o,i=this.__on,r=h(u,e,n);if(i)for(var a=0,s=i.length;a<s;++a)if((o=i[a]).type===c.type&&o.name===c.name)return this.removeEventListener(o.type,o.listener,o.capture),this.addEventListener(o.type,o.listener=r,o.capture=l),void(o.value=u);this.addEventListener(c.type,r,l),o={type:c.type,name:c.name,value:u,listener:r,capture:l},i?i.push(o):this.__on=[o]}}function _(t,e,n){var o=c(t),i=o.CustomEvent;"function"==typeof i?i=new i(e,n):(i=o.document.createEvent("Event"),n?(i.initEvent(e,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(e,!1,!1)),t.dispatchEvent(i)}r.event=null,"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(P={mouseenter:"mouseover",mouseleave:"mouseout"}));var D=[null];function R(t,e){this._groups=t,this._parents=e}function I(){return new R([[document.documentElement]],D)}function j(t){return"string"==typeof t?new R([[document.querySelector(t)]],[document.documentElement]):new R([[t]],D)}R.prototype=I.prototype={constructor:R,select:function(t){"function"!=typeof t&&(t=h(t));for(var e=this._groups,n=e.length,o=new Array(n),i=0;i<n;++i)for(var r,a,s=e[i],c=s.length,u=o[i]=new Array(c),l=0;l<c;++l)(r=s[l])&&(a=t.call(r,r.__data__,l,s))&&("__data__"in r&&(a.__data__=r.__data__),u[l]=a);return new R(o,this._parents)},selectAll:function(t){"function"!=typeof t&&(t=l(t));for(var e=this._groups,n=e.length,o=[],i=[],r=0;r<n;++r)for(var a,s=e[r],c=s.length,u=0;u<c;++u)(a=s[u])&&(o.push(t.call(a,a.__data__,u,s)),i.push(a));return new R(o,i)},filter:function(t){"function"!=typeof t&&(t=p(t));for(var e=this._groups,n=e.length,o=new Array(n),i=0;i<n;++i)for(var r,a=e[i],s=a.length,c=o[i]=[],u=0;u<s;++u)(r=a[u])&&t.call(r,r.__data__,u,a)&&c.push(r);return new R(o,this._parents)},data:function(t,e){if(!t)return d=new Array(this.size()),l=-1,this.each(function(t){d[++l]=t}),d;var n,o=e?k:C,i=this._parents,r=this._groups;"function"!=typeof t&&(n=t,t=function(){return n});for(var a=r.length,s=new Array(a),c=new Array(a),u=new Array(a),l=0;l<a;++l){var h=i[l],p=r[l],f=p.length,d=t.call(h,h&&h.__data__,l,i),g=d.length,m=c[l]=new Array(g),v=s[l]=new Array(g);o(h,p,m,v,u[l]=new Array(f),d,e);for(var y,b,x=0,w=0;x<g;++x)if(y=m[x]){for(w<=x&&(w=x+1);!(b=v[w])&&++w<g;);y._next=b||null}}return(s=new R(s,i))._enter=c,s._exit=u,s},enter:function(){return new R(this._enter||this._groups.map(t),this._parents)},exit:function(){return new R(this._exit||this._groups.map(t),this._parents)},join:function(t,e,n){var o=this.enter(),i=this,r=this.exit(),o="function"==typeof t?t(o):o.append(t+"");return null!=e&&(i=e(i)),null==n?r.remove():n(r),o&&i?o.merge(i).order():i},merge:function(t){for(var e=this._groups,n=t._groups,o=e.length,i=n.length,r=Math.min(o,i),a=new Array(o),s=0;s<r;++s)for(var c,u=e[s],l=n[s],h=u.length,p=a[s]=new Array(h),f=0;f<h;++f)(c=u[f]||l[f])&&(p[f]=c);for(;s<o;++s)a[s]=e[s];return new R(a,this._parents)},order:function(){for(var t=this._groups,e=-1,n=t.length;++e<n;)for(var o,i=t[e],r=i.length-1,a=i[r];0<=--r;)(o=i[r])&&(a&&4^o.compareDocumentPosition(a)&&a.parentNode.insertBefore(o,a),a=o);return this},sort:function(n){function t(t,e){return t&&e?n(t.__data__,e.__data__):!t-!e}n=n||f;for(var e=this._groups,o=e.length,i=new Array(o),r=0;r<o;++r){for(var a,s=e[r],c=s.length,u=i[r]=new Array(c),l=0;l<c;++l)(a=s[l])&&(u[l]=a);u.sort(t)}return new R(i,this._parents).order()},call:function(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this},nodes:function(){var t=new Array(this.size()),e=-1;return this.each(function(){t[++e]=this}),t},node:function(){for(var t=this._groups,e=0,n=t.length;e<n;++e)for(var o=t[e],i=0,r=o.length;i<r;++i){var a=o[i];if(a)return a}return null},size:function(){var t=0;return this.each(function(){++t}),t},empty:function(){return!this.node()},each:function(t){for(var e=this._groups,n=0,o=e.length;n<o;++n)for(var i,r=e[n],a=0,s=r.length;a<s;++a)(i=r[a])&&t.call(i,i.__data__,a,r);return this},attr:function(t,e){var n=a(t);if(arguments.length<2){var o=this.node();return n.local?o.getAttributeNS(n.space,n.local):o.getAttribute(n)}return this.each((null==e?n.local?function(t){return function(){this.removeAttributeNS(t.space,t.local)}}:function(t){return function(){this.removeAttribute(t)}}:"function"==typeof e?n.local?function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,t)}}:function(e,n){return function(){var t=n.apply(this,arguments);null==t?this.removeAttribute(e):this.setAttribute(e,t)}}:n.local?function(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}:function(t,e){return function(){this.setAttribute(t,e)}})(n,e))},style:function(t,e,n){return 1<arguments.length?this.each((null==e?function(t){return function(){this.style.removeProperty(t)}}:"function"==typeof e?function(e,n,o){return function(){var t=n.apply(this,arguments);null==t?this.style.removeProperty(e):this.style.setProperty(e,t,o)}}:function(t,e,n){return function(){this.style.setProperty(t,e,n)}})(t,e,null==n?"":n)):u(this.node(),t)},property:function(t,e){return 1<arguments.length?this.each((null==e?function(t){return function(){delete this[t]}}:"function"==typeof e?function(e,n){return function(){var t=n.apply(this,arguments);null==t?delete this[e]:this[e]=t}}:function(t,e){return function(){this[t]=e}})(t,e)):this.node()[t]},classed:function(t,e){var n=g(t+"");if(arguments.length<2){for(var o=m(this.node()),i=-1,r=n.length;++i<r;)if(!o.contains(n[i]))return!1;return!0}return this.each(("function"==typeof e?function(t,e){return function(){(e.apply(this,arguments)?y:b)(this,t)}}:e?function(t){return function(){y(this,t)}}:function(t){return function(){b(this,t)}})(n,e))},text:function(t){return arguments.length?this.each(null==t?x:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(t){return function(){this.textContent=t}})(t)):this.node().textContent},html:function(t){return arguments.length?this.each(null==t?w:("function"==typeof t?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(t){return function(){this.innerHTML=t}})(t)):this.node().innerHTML},raise:function(){return this.each(S)},lower:function(){return this.each(E)},append:function(t){var e="function"==typeof t?t:s(t);return this.select(function(){return this.appendChild(e.apply(this,arguments))})},insert:function(t,e){var n="function"==typeof t?t:s(t),o=null==e?A:"function"==typeof e?e:h(e);return this.select(function(){return this.insertBefore(n.apply(this,arguments),o.apply(this,arguments)||null)})},remove:function(){return this.each(T)},clone:function(t){return this.select(t?M:B)},datum:function(t){return arguments.length?this.property("__data__",t):this.node().__data__},on:function(t,e,n){var o,i,r=(t+"").trim().split(/^|\s+/).map(function(t){var e="",n=t.indexOf(".");return 0<=n&&(e=t.slice(n+1),t=t.slice(0,n)),{type:t,name:e}}),a=r.length;if(!(arguments.length<2)){for(s=e?F:O,null==n&&(n=!1),o=0;o<a;++o)this.each(s(r[o],e,n));return this}var s=this.node().__on;if(s)for(var c,u=0,l=s.length;u<l;++u)for(o=0,c=s[u];o<a;++o)if((i=r[o]).type===c.type&&i.name===c.name)return c.value},dispatch:function(t,e){return this.each(("function"==typeof e?function(t,e){return function(){return _(this,t,e.apply(this,arguments))}}:function(t,e){return function(){return _(this,t,e)}})(t,e))}};var z=0;function q(){return new H}function H(){this._="@"+(++z).toString(36)}function U(){for(var t,e=r.event;t=e.sourceEvent;)e=t;return e}function V(t,e){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var o=n.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,[(o=o.matrixTransform(t.getScreenCTM().inverse())).x,o.y]}var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}H.prototype=q.prototype={constructor:H,get:function(t){for(var e=this._;!(e in t);)if(!(t=t.parentNode))return;return t[e]},set:function(t,e){return t[this._]=e},remove:function(t){return this._ in t&&delete t[this._]},toString:function(){return this._}},r.clientPoint=V,r.create=function(t){return j(s(t).call(document.documentElement))},r.creator=s,r.customEvent=function(t,e,n,o){var i=r.event;t.sourceEvent=r.event,r.event=t;try{return e.apply(n,o)}finally{r.event=i}},r.local=q,r.matcher=p,r.mouse=function(t){var e=U();return e.changedTouches&&(e=e.changedTouches[0]),V(t,e)},r.namespace=a,r.namespaces=i,r.select=j,r.selectAll=function(t){return"string"==typeof t?new R([document.querySelectorAll(t)],[document.documentElement]):new R([null==t?[]:t],D)},r.selection=I,r.selector=h,r.selectorAll=l,r.style=u,r.touch=function(t,e,n){arguments.length<3&&(n=e,e=U().changedTouches);for(var o,i=0,r=e?e.length:0;i<r;++i)if((o=e[i]).identifier===n)return V(t,o);return null},r.touches=function(t,e){null==e&&(e=U().touches);for(var n=0,o=e?e.length:0,i=new Array(o);n<o;++n)i[n]=V(t,e[n]);return i},r.window=c,Object.defineProperty(r,"__esModule",{value:!0})},"object"==typeof exports&&"undefined"!=typeof module?Z(exports):"function"==typeof define&&define.amd?define(["exports"],Z):Z((V=V||self).d3=V.d3||{}),W=this,X=function(t){"use strict";t.SVGPathUtils=function(){var c={M:function(t,e){return"M"+t+","+e},m:function(t,e){return"m"+t+","+e},L:function(t,e){return"L"+t+","+e},l:function(t,e){return"l"+t+","+e},H:function(t){return"H"+t},h:function(t){return"h"+t},V:function(t){return"V"+t},v:function(t){return"v"+t},C:function(t,e,n,o,i,r){return"C"+t+","+e+" "+n+","+o+" "+i+","+r},c:function(t,e,n,o,i,r){return"c"+t+","+e+" "+n+","+o+" "+i+","+r},S:function(t,e,n,o){return"S"+t+","+e+" "+n+","+o},s:function(t,e,n,o){return"s"+t+","+e+" "+n+","+o},Q:function(t,e,n,o){return"Q"+t+","+e+" "+n+","+o},q:function(t,e,n,o){return"q"+t+","+e+" "+n+","+o},T:function(t,e){return"T"+t+","+e},t:function(t,e){return"t"+t+","+e},Z:function(){return"Z"},z:function(){return"z"},angle:function(t,e){return 180*Math.atan2(e.y-t.y,e.x-t.x)/Math.PI},parse:function(t){var o,e=t.replace(/[\d,\-\s]+/g,"").split(""),i=[],r=t.replace(/[A-Za-z,]+/g," ").trim().replace(/\s\s+/g," ").split(" "),a=-1;return e.forEach(function(t){if("function"==typeof(o=c[t]))if(1===o.length)i.push({x:+r[++a]});else for(var e=-1,n=o.length/2;++e<n;)i.push({x:+r[++a],y:+r[++a]})}),{operators:e,points:i}},generate:function(t){var r,a=t.points.slice(),s=[];return t.operators.forEach(function(t){if("function"==typeof(r=c[t])){var e=[];if(1===r.length)e.push(a.shift().x);else for(var n=-1,o=r.length/2;++n<o;){var i=a.shift();e.push(i.x,i.y)}s.push(r.apply(null,e))}}),s.join(" ")},inversePath:function(t){var e,n=c.parse(t),o=n.operators.reverse(),i=n.points.reverse(),r=o.pop();return"z"===(e=o[0]).toLowerCase()&&(o.push(e),o.shift()),o.unshift(r),c.generate({operators:o,points:i})},join:function(){return arguments.length?Array.prototype.join.call(arguments," "):void 0}};return c}},"object"==typeof exports&&"undefined"!=typeof module?X(exports):"function"==typeof define&&define.amd?define(["exports"],X):X(W.svg_path_utils=W.svg_path_utils||{}),G=this,Y=function(t,s,c){"use strict";var i=function(i,t,e){function n(t,e){function n(t){for(var e=0,n=0;t&&!isNaN(t.offsetLeft)&&!isNaN(t.offsetTop);)e+=t.offsetLeft-t.scrollLeft,n+=t.offsetTop-t.scrollTop,t=t.offsetParent;return{top:n,left:e}}var o=t.getBoundingClientRect(),i=o.right-o.left,r=o.bottom-o.top,a=n(t),s=n(e),c=a.top-s.top,u=a.left-s.left;return{element:t,top:c,left:u,bottom:c+r,right:u+i,width:i,height:r}}function o(){"function"==typeof t.x1&&(k.x1=t.x1(k)),"function"==typeof t.y1&&(k.y1=t.y1(k)),"function"==typeof t.x2&&(k.x2=t.x2(k)),"function"==typeof t.y2&&(k.y2=t.y2(k))}var r,a={},x=new c.SVGPathUtils,w="id"+Math.random().toString(36).substr(2,10),C=s.select(e),k={},k={animation:void 0===t.animation||t.animation,x1:t.x1||0,y1:t.y1||0,x2:t.x2||0,y2:t.y2||0,d:t.d||function(t,e){return e.join(e.M(0<t.dx?0:t.w,0<t.dy?0:t.h),e.L(0<t.dx?t.dx:0,0<t.dy?t.dy:0))},d1:t.d1||function(t,e){return e.join(e.m(0,0),e.l(-20,-10))},d2:t.d2||function(t,e){return e.join(e.m(0,0),e.l(-20,10))},arrowStyles:t.arrowStyles||{},text:t.text,textDx:t.textDx||0,textDy:t.textDy||-5,textStyles:t.textStyles||{},margin:Object.assign({},{top:20,right:20,bottom:20,left:20},t.margin),get dx(){return this.x2-this.x1},get dy(){return this.y2-this.y1},get w(){return Math.abs(this.dx)},get h(){return Math.abs(this.dy)}};return t.source&&(r=s.select(t.source).node())&&(k.source=n(r,e)),t.target&&(r=s.select(t.target).node())&&(k.target=n(r,e)),o(),k.duration=t.duration||300,k.delay=t.delay||0,k.duration1=t.duration1||200,k.delay1=t.delay1||k.duration+k.delay,k.duration2=t.duration2||k.duration1,k.delay2=t.delay2||k.duration+k.delay,k.textReverseDirection=("function"==typeof t.textReverseDirection?t.textReverseDirection(k,x):t.textReverseDirection)||!1,k.textStartOffset=("function"==typeof t.textStartOffset?t.textStartOffset(k,x):t.textStartOffset)||0,a.id=w,a.render=function(){var t=k.margin,e=k.w,n=k.h,o=Math.min(k.y1,k.y2)-t.top,i=Math.min(k.x1,k.x2)-t.left,r=e+t.left+t.right,a=n+t.top+t.bottom;C.select("#"+w).remove();var s,c,u=C.append("svg").attrs({id:w,"xmlns:xlink":"http://www.w3.org/1999/xlink","xml:space":"preserve",class:"yarrow",viewBox:"0 0 "+r+" "+a+" ",width:r+"px",height:a+"px"}).styles({top:o+"px",left:i+"px"}).append("g").attrs({transform:"translate("+t.left+","+t.top+")"}),l=u.append("path").attrs({id:"path_"+w,"stroke-linecap":"round","stroke-linejoin":"round",class:"arrow",d:"function"==typeof k.d?k.d(k,x):k.d}).styles(k.arrowStyles),h=l.node(),p="function"==typeof h.getTotalLength,f=p?(s=h.getTotalLength(),c=h.getPointAtLength(s-1),h.getPointAtLength(s)):(c={x:s=0,y:0},{x:0,y:0}),d=x.angle(c,f);k.animation&&(l.styles({"animation-duration":k.duration/1e3+"s","animation-delay":k.delay/1e3+"s","stroke-dasharray":s+" "+s,"stroke-dashoffset":s,visibility:"hidden"}),setTimeout(function(){l.style("visibility","visible")},k.delay));var g,m=u.append("path").attrs({"stroke-linecap":"round","stroke-linejoin":"round",class:"arrow tip-1",d:"function"==typeof k.d1?k.d1(k,x):k.d1,transform:"translate("+f.x+","+f.y+")rotate("+d+")"});k.animation&&(g=p?m.node().getTotalLength():0,m.styles({"animation-duration":k.duration1/1e3+"s","animation-delay":k.delay1/1e3+"s","stroke-dasharray":g+" "+g,"stroke-dashoffset":g,visibility:"hidden"}),setTimeout(function(){m.style("visibility","visible")},k.delay1)),m.styles(k.arrowStyles);var v,y=u.append("path").attrs({"stroke-linecap":"round","stroke-linejoin":"round",class:"arrow tip-2",d:"function"==typeof k.d2?k.d2(k,x):k.d2,transform:"translate("+f.x+","+f.y+")rotate("+d+")"});k.animation&&(v=p?y.node().getTotalLength():0,y.styles({"animation-duration":k.duration2/1e3+"s","animation-delay":k.delay2/1e3+"s","stroke-dasharray":v+" "+v,"stroke-dashoffset":v,visibility:"hidden"}),setTimeout(function(){y.style("visibility","visible")},k.delay2)),y.styles(k.arrowStyles),k.textReverseDirection&&u.append("path").attrs({id:"path_reverse_"+w,d:x.inversePath("function"==typeof k.d?k.d(k,x):k.d)}).style("display","none");var b=u.append("text").attrs({class:"arrow text",dx:k.textDx,dy:k.textDy}).styles(k.textStyles).append("textPath").attrs({"xlink:href":k.textReverseDirection?"#path_reverse_"+w:"#path_"+w,startOffset:k.textReverseDirection?s-k.textStartOffset:k.textStartOffset}).html(k.text);return k.animation&&(b.styles({opacity:0}),setTimeout(function(){b.styles({transition:"all "+k.duration/1e3+"s linear",opacity:1})},k.delay+10)),this},a.dispose=function(t,e){function n(t,e){return e?(t.selectAll(".arrow").styles({transition:"all "+e/1e3+"s linear",opacity:0}),void setTimeout(function(){return t.remove()},e)):t.remove()}var o=C.select("#"+w);i.remove(w),e?setTimeout(function(){n(o,t)},e):n(o,t)},a.options=function(t){if(!arguments.length)return k;for(var e in t)k.hasOwnProperty(e)&&(k[e]=t[e]);return this},a.x1=function(t){return arguments.length?(k.x1=t,this):k.x1},a.y1=function(t){return arguments.length?(k.y1=t,this):k.y1},a.x2=function(t){return arguments.length?(k.x2=t,this):k.x2},a.y2=function(t){return arguments.length?(k.y2=t,this):k.y2},a.source=function(t){return arguments.length?(k.source=t,o(),this):k.source},a.target=function(t){return arguments.length?(k.target=t,o(),this):k.target},a.duration=function(t){return arguments.length?(k.duration=t,this):k.duration},a.delay=function(t){return arguments.length?(k.delay=t,this):k.delay},a.d=function(t){return arguments.length?(k.d=t,this):k.d},a.duration1=function(t){return arguments.length?(k.duration1=t,this):k.duration1},a.delay1=function(t){return arguments.length?(k.delay1=t,this):k.delay1},a.d1=function(t){return arguments.length?(k.d1=t,this):k.d1},a.duration2=function(t){return arguments.length?(k.duration2=t,this):k.duration2},a.delay2=function(t){return arguments.length?(k.delay2=t,this):k.delay2},a.d2=function(t){return arguments.length?(k.d1=t,this):k.d1},a.arrowStyles=function(t){return arguments.length?(k.arrowStyles=t,this):k.arrowStyles},a.text=function(t){return arguments.length?(k.text=t,this):k.text},a.textReverseDirection=function(t){return arguments.length?(k.textReverseDirection=t,this):k.textReverseDirection},a.textStartOffset=function(t){return arguments.length?(k.textStartOffset=t,this):k.textStartOffset},a.textDx=function(t){return arguments.length?(k.textDx=t,this):k.textDx},a.textDy=function(t){return arguments.length?(k.textDy=t,this):k.textDy},a.textStyles=function(t){return arguments.length?(k.textStyles=t,this):k.textStyles},a.margin=function(t){return arguments.length?(k.margin=Object.assign({},k.margin,t),this):k.margin},a};t.Yarrow=function(){var t={};(function(){var t=this.selection;t.attrs||(t.prototype.attrs=function(t){for(var e in t)this.attr(e,t[e]);return this},t.prototype.styles=function(t,e){for(var n in t)this.style(n,t[n],e);return this})}).apply(s);var o=[];return t.arrow=function(t,e){e=e||document.body;var n=new i(this,t,e);return o.push(n),n},t.arrows=function(t,e){if(!arguments.length)return o;e=e||document.body;var n=this;return t.forEach(function(t){o.push(new i(n,t,e))}),this},t.remove=function(t){for(var e=-1,n=o.length;e++<n;)if(o[e].id===t)return o.splice(e,1)},t.renderAll=function(){return o.forEach(function(t){t.render()}),this},t.disposeAll=function(){return o.slice().forEach(function(t){t.dispose()}),this},t}},"object"==typeof exports&&"undefined"!=typeof module?Y(exports,require("d3-selection"),require("svg-path-utils")):"function"==typeof define&&define.amd?define(["exports","d3-selection","svg-path-utils"],Y):Y(G.yarrow=G.yarrow||{},G.d3,G.svg_path_utils);"use strict";Swal=Swal.mixin({buttonsStyling:!1,customClass:{confirmButton:"btn btn-success btn-lg",cancelButton:"btn btn-outline-danger btn-lg"}});function Q(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t){var e=t.replace(/[=\[\]"]/g," ").replace(/ +/g," ").replace(/[#\.]/g,"").replace(/-([a-z])/g,function(t,e){return e.toUpperCase()}).replace(/ ([a-z])/g,function(t,e){return e.toUpperCase()});window["$".concat(e)]=document.querySelector(t)})}function tt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t){t.classList.add("d-none")})}function et(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e.forEach(function(t){t.classList.remove("d-none")})}function nt(t,e,n){var o=2<arguments.length&&void 0!==n?n:{};it.style.display="block",o.lang=mt,ut.emit(t,o,function(t){it.style.display="none",e(t.items)})}function ot(t){switch(t){case 1:return"#18BC9C";case 2:return"#F39C12";case 3:return"#E74C3C"}}var it=document.getElementById("loader");function rt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=function(t,e){if(!t)return;if("string"==typeof t)return st(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(t,e)}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function at(t,e){if(t){if("string"==typeof t)return st(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))&&st(t,e)}}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}var ct="map",ut=io.connect("wss://tripseasonmap.com",{reconnection:!0,reconnectionDelay:1e4,timeout:3e5});ut.on("connect_error",function(){}),ut.on("reconnecting",function(){}),ut.on("connect_timeout",function(){}),ut.on("reconnect",function(){}),ut.on("error",function(t){t=JSON.parse(t),Swal.fire({showCloseButton:!0,showConfirmButton:!1,toast:!0,position:"top",timer:3e3,icon:"error",title:t.message})}),document.addEventListener("DOMContentLoaded",function(){Q("#main","#welcome","#map-page","#map","#about-modal","#help-project-modal","#api-modal","#lang-modal","#langs","#additional-mobile-menu-page"),new Modal($aboutModal),new Modal($helpProjectModal),new Modal($apiModal),new Modal($langModal)}),window.addEventListener("hashchange",function(){var t=window.location.hash.substring(1);if(t){var e=t.split("/");if(e[0])switch(e[0]){case"map":et($main,$mapPage),tt($additionalMobileMenuPage);break;case"about":$aboutModal.Modal.show();break;case"help-project":$helpProjectModal.Modal.show();break;case"api":$apiModal.Modal.show();break;case"mobile-menu":tt($mapPage),et($main,$additionalMobileMenuPage);break;default:window.location.hash=ct}}else window.location.hash=ct});function lt(){pt&&pt.dispose(),pt=(new yarrow.Yarrow).arrow({x1:function(t){return t.source.left+t.source.width/2-100},y1:function(t){return t.source.top+300},x2:function(t){return t.target.left+t.target.width/2},y2:function(t){return t.target.top+t.target.height+10},text:i18next.t("#_PLEASE_SELECT_A_MONTH__"),source:"#month",target:"#month",duration:1e3,d:"M50,240 Q10,100 100,0"},$sidebarContainer),setTimeout(function(){pt.render(),$month.value&&(document.getElementById(pt.id).style.display="none")},2e3)}function ht(){i18next.use(i18nextXHRBackend).use(i18nextBrowserLanguageDetector).init({backend:{loadPath:"locales/{{lng}}.json"},fallbackLng:"en",load:"languageOnly",whitelist:ft},function(t){lt()})}var pt,ft=[],dt={},gt=[],mt=null,vt=[];function rt(t,e){var n;if("undefined"==typeof Symbol||null==t[Symbol.iterator]){if(Array.isArray(t)||(n=at(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var o=0,i=function(){};return{s:i,n:function(){return o>=t.length?{done:!0}:{done:!1,value:t[o++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,s=!1;return{s:function(){n=t[Symbol.iterator]()},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function at(t,e){if(!t)return;if("string"==typeof t)return st(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);if("Object"===n&&t.constructor)n=t.constructor.name;if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return st(t,e)}function st(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o}i18next.on("languageChanged",function(){mt=i18next.languages[0],gt.forEach(function(t){t.getAttribute("lang")!=mt?t.style.opacity=1:t.style.opacity=.5}),vt=i18next.services.resourceStore.data[mt].translation,Object.keys(vt).forEach(function(t){dt[t]&&dt[t].revert(),dt[t]=findAndReplaceDOMText(document.body,{find:t,replace:i18next.t(t)})}),lt()}),document.addEventListener("DOMContentLoaded",function(){window.dispatchEvent(new CustomEvent("hashchange")),tt($welcome),(gt=Array.from($langs.querySelectorAll("a"))).forEach(function(e){e.addEventListener("click",function(t){t.preventDefault(),i18next.changeLanguage(e.getAttribute("lang"),function(t){t||$langModal.Modal.hide()})}),ft.push(e.getAttribute("lang"))}),localStorage.askLang||(localStorage.askLang=!0,$langModal.Modal.show()),document.querySelectorAll(".lang-modal-btn").forEach(function(t){t.addEventListener("click",function(t){t.preventDefault(),$langModal.Modal.show()})}),$langModal.addEventListener("hide.bs.modal",function(){localStorage.welcome||(localStorage.welcome=1,Swal.fire({showCloseButton:!0,html:$welcome.innerHTML,confirmButtonText:i18next.t("#_WELCOME_BUTTON__"),width:"50%",imageUrl:"graphics/logo.svg",customClass:{image:"w-25",confirmButton:"btn btn-success btn-lg"}}))});function t(){window.location.hash=ct}$aboutModal.addEventListener("hide.bs.modal",t),$helpProjectModal.addEventListener("hide.bs.modal",t),$apiModal.addEventListener("hide.bs.modal",t);function e(){$additionalMobileMenuPage.querySelector(".close").addEventListener("click",function(){window.location.hash=ct})}if("undefined"!=typeof cordova){document.addEventListener("deviceready",function(){mapChart.init(),ht(),e()},!1);var n,o=rt(document.querySelectorAll(".cordova-remove"));try{for(o.s();!(n=o.n()).done;){n.value.remove()}}catch(t){o.e(t)}finally{o.f()}if("ios"===cordova.platformId){var i,r=rt(document.querySelectorAll(".apple-remove"));try{for(r.s();!(i=r.n()).done;){i.value.remove()}}catch(t){r.e(t)}finally{r.f()}}document.querySelector("#sidebar-container > div").style.height="calc(100% - 110px)",document.querySelectorAll(".instagram")[1].style.setProperty("bottom","0","important"),document.querySelector('a[href="privacy.html"]').href="privacy-mobile.html";var a,s=rt(document.querySelectorAll('a[target="_blank"]:not([href^="mailto:"])'));try{for(s.s();!(a=s.n()).done;)!function(){var n=a.value;n.addEventListener("click",function(t){t.preventDefault();var e="_blank";"https://www.instagram.com/tripseasonmap"===n.href&&(e="_system"),cordova.InAppBrowser.open(n.href,e,"location=yes")})}()}catch(t){s.e(t)}finally{s.f()}window.appMetrica.activate({apiKey:"854ca999-8779-4478-81f4-032537f79e77"})}else mapChart.init(),ht(),e(),new cookieNoticeJS({learnMoreLinkEnabled:!0,learnMoreLinkHref:"cookies.html",expiresIn:180,noticeBgColor:"#f39c12",linkColor:"#f00"})}),document.addEventListener("DOMContentLoaded",function(){Q("#info span","#map-zoom-in","#map-zoom-out","#map-reset","#sidebar-container","#month","#prev-month","#next-month","#step2-hint","#show-map","#country","#region","#place","#season","#description","#help-hint"),$mapZoomIn.addEventListener("click",function(){svgZoom.zoomIn()}),$mapZoomOut.addEventListener("click",function(){svgZoom.zoomOut()}),$mapReset.addEventListener("click",function(){svgZoom.reset()}),document.addEventListener("mapchart:mouseover",function(t){var e=t.detail;$infoSpan.innerText="".concat(e.country,", ").concat(e.region)}),document.addEventListener("mapchart:mouseout",function(t){t.detail;$infoSpan.innerText=""});function l(t){function e(t){return 100*(t/100).toFixed()}return t.x=e(t.x),t.y=e(t.y),t}function h(){$place.innerText=d[p].place,$season.innerText=function(t){switch(t){case 1:return i18next.t("#_SEASON_BEST__");case 2:return i18next.t("#_SEASON_SUITABLE__");case 3:return i18next.t("#_SEASON_WORST__")}}(d[p].season),$season.style.backgroundColor=ot(d[p].season),$description.innerText=d[p].description}var p,f={},d={};$month.addEventListener("change",function(){var t;1<$month.selectedIndex?$prevMonth.removeAttribute("disabled"):$prevMonth.setAttribute("disabled",""),$month.selectedIndex<12?$nextMonth.removeAttribute("disabled"):$nextMonth.setAttribute("disabled",""),$month.value?((t=document.getElementById(pt.id))&&(t.style.display="none"),nt("seasons.get",function(t){et($step2Hint,$showMap);var e,n,o=l(svgZoom.getPan());o.x===f.x&&o.y===f.y||(svgZoom.reset(),e=map.clientWidth-map.clientWidth/100*15,n=map.clientHeight/2,svgZoom.zoomAtPoint(700<e?4:5,{x:e,y:n}),f=l(svgZoom.getPan())),d={};var i,r=rt(t);try{for(r.s();!(i=r.n()).done;){var a,s=i.value,c=rt(s[2]);try{for(c.s();!(a=c.n()).done;){var u=a.value;mapChart.selectRegion(u,ot(s[1])),d[u]={place:s[0],season:s[1],description:s[3]}}}catch(t){c.e(t)}finally{c.f()}}}catch(t){r.e(t)}finally{r.f()}p&&h()},{month:$month.value})):(document.getElementById(pt.id).style.display="block",tt($step2Hint,$showMap,$helpHint,$country.closest(".form-group"),$region.closest(".form-group"),$place.closest(".form-group"),$season.closest(".form-group"),$description.closest(".form-group")))});function t(t,e){var n=document.createEvent("HTMLEvents");return n.initEvent(e,!0,!0),!t.dispatchEvent(n)}$prevMonth.addEventListener("click",function(){1<$month.selectedIndex&&($month.selectedIndex--,t($month,"change"))}),$nextMonth.addEventListener("click",function(){$month.selectedIndex<12&&($month.selectedIndex++,t($month,"change"))}),$showMap.addEventListener("click",function(){tt($sidebarContainer)}),document.addEventListener("mapchart:click",function(t){var e,n=t.detail;et($sidebarContainer),$month.value?d[n.placeId]?($month.closest(".form-group").classList.remove("mt-10"),tt($helpHint),p=n.placeId,$country.innerText=n.country,$region.innerText=n.region,h(),et($country.closest(".form-group"),$region.closest(".form-group"),$place.closest(".form-group"),$season.closest(".form-group"),$description.closest(".form-group"))):($month.closest(".form-group").classList.add("mt-10"),tt($country.closest(".form-group"),$region.closest(".form-group"),$place.closest(".form-group"),$season.closest(".form-group"),$description.closest(".form-group")),et($helpHint)):((e={showCloseButton:!0,showConfirmButton:!1,toast:!0,position:"top-end",timer:3e3}).title=i18next.t("#_PLEASE_SELECT_A_MONTH_ERROR__"),e.icon="error",Swal.fire(e),$month.focus())})});