/**
 * Ritzy v0.1.4
 *
 * Copyright 2015, VIVO Systems, Inc.
 * All rights reserved.
 *
 * This source code is licensed under the Apache v2 license found in the
 * LICENSE.txt file in the root directory of this source tree.
 *
 */
module.exports=function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e,t,r){var a=r?r:n(173),l=function(e){function t(e,n){var r=this;i(this,t),u(Object.getPrototypeOf(t.prototype),"constructor",this).call(this),this.renderTarget=n,this.update=function(){C(r.config,r.renderTarget)},this.load=function(t){_(e).then(function(e){e.eventEmitter=r,r.config=e,r.update()}).catch(function(e){console.error("Editor loading failed.",e),"function"==typeof t&&t(e)})}}return o(t,e),s(t,[{key:"hasListeners",value:function(e){return this.listeners(e,!0)}},{key:"updateConfig",value:function(e,t){this.config[e]=t,this.update()}},{key:"setUserName",value:function(e){this.updateConfig("userName",e)}},{key:"setFontSize",value:function(e){this.updateConfig("fontSize",e)}},{key:"setWidth",value:function(e){this.updateConfig("width",e)}},{key:"setMargin",value:function(e,t){this.updateConfig("margin",{horizontal:e,vertical:t})}},{key:"setMarginHorizontal",value:function(e){var t={horizontal:e,vertical:this.config.margin.vertical};this.updateConfig("margin",t)}},{key:"setMarginVertical",value:function(e){var t={horizontal:this.config.margin.horizontal,vertical:e};this.updateConfig("margin",t)}},{key:"getContents",value:function(){return y.default.getContents()}},{key:"getContentsRich",value:function(){return y.default.getContentsRich()}},{key:"getContentsHtml",value:function(){return y.default.getContentsHtml()}},{key:"getContentsText",value:function(){return y.default.getContentsText()}},{key:"getSelection",value:function(){return y.default.getSelection()}},{key:"getSelectionRich",value:function(){return y.default.getSelectionRich()}},{key:"getSelectionHtml",value:function(){return y.default.getSelectionHtml()}},{key:"getSelectionText",value:function(){return y.default.getSelectionText()}},{key:"getPosition",value:function(){return y.default.getPosition()}},{key:"getRemoteCursors",value:function(){return y.default.getRemoteCursors()}},{key:"onPositionChange",value:function(e){this.on("position-change",e)}},{key:"onSelectionChange",value:function(e){this.on("selection-change",e)}},{key:"onFocusGained",value:function(e){this.on("focus-gained",e)}},{key:"onFocusLost",value:function(e){this.on("focus-lost",e)}},{key:"onRemoteCursorAdd",value:function(e){this.on("remote-cursor-add",e)}},{key:"onRemoteCursorRemove",value:function(e){this.on("remote-cursor-remove",e)}},{key:"onRemoteCursorChangeName",value:function(e){this.on("remote-cursor-change-name",e)}},{key:"onTextInsert",value:function(e){this.on("text-insert",e)}},{key:"onTextDelete",value:function(e){this.on("text-delete",e)}}]),t}(a);return new l(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var s=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),u=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return void 0;e=l,t=o,n=a,r=!0}};t.default=a;var l=n(22),c=r(l),h=n(287),f=r(h),p=n(177),d=r(p),v=n(144),m=r(v),g=n(60),y=r(g),b=n(40),_=function(e){var t=function(t,n){e.hasOwnProperty(t)||("function"==typeof n?e[t]=n():e[t]=n)},r=function(t){if(!e.hasOwnProperty(t))throw new Error("Configuration must contain a property '"+t+"'.")},i=function(e){return new Promise(function(t,n){var r={classes:!1,active:function(){t()},inactive:function(){n(Error("Webfonts ["+JSON.stringify(e)+"] could not be loaded."))}};Object.keys(e).forEach(function(t){return r[t]=e[t]}),f.default.load(r)})},o=function(e){return new Promise(function(t,n){d.default.load(e,function(r,i){r?n(Error("Opentype.js font "+e+" could not be loaded: "+r)):t(i)})})};return t("localFontPath","/fonts/"),t("fontRegular","OpenSans-Regular-Latin.ttf"),t("fontBold","OpenSans-Bold-Latin.ttf"),t("fontBoldItalic","OpenSans-BoldItalic-Latin.ttf"),t("fontItalic","OpenSans-Italic-Latin.ttf"),t("webFontFamily",{google:{families:["Open Sans:400italic,700italic,700,400"]}}),Promise.all([o(e.localFontPath+e.fontRegular),o(e.localFontPath+e.fontBold),o(e.localFontPath+e.fontBoldItalic),o(e.localFontPath+e.fontItalic),i(e.webFontFamily)]).then(function(i){return e.fonts={regular:i[0],bold:i[1],boldItalic:i[2],italic:i[3]},e.unitsPerEm=i[0].unitsPerEm,e.minFontSize=b.detectMinFontSize(),t("skin","default"),"default"===e.skin&&n(266),r("id"),r("fonts"),t("fontSize",18),r("minFontSize"),r("unitsPerEm"),t("width",600),t("marginH",30),t("marginV",35),t("userId",function(){var e=window.localStorage.getItem("localuser")||"A"+parseInt(1e4*Math.random()).toString(16);return window.localStorage.setItem("localuser",e),e}),t("userName",e.userId),t("wsPort",null),t("renderOptimizations",!0),t("showErrorNotification",!0),e})},C=function(e,t){var n=c.default.createFactory(m.default);c.default.render(n(e),t)};e.exports=t.default},function(e,t,n){"use strict";var r=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return l[c++]}))}throw u.framesToPop=1,u}};e.exports=r},function(e,t){"use strict";function n(e,t){if(null==e)throw new TypeError("Object.assign target cannot be null or undefined");for(var n=Object(e),r=Object.prototype.hasOwnProperty,i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o){var a=Object(o);for(var s in a)r.call(a,s)&&(n[s]=a[s])}}return n}e.exports=n},function(e,t,n){"use strict";var r=n(15),i=r;e.exports=i},function(e,t,n){"use strict";var r=n(70),i=n(20),o=n(2),a=(n(3),{key:!0,ref:!0}),s=function(e,t,n,r,i,o){this.type=e,this.key=t,this.ref=n,this._owner=r,this._context=i,this.props=o};s.prototype={_isReactElement:!0},s.createElement=function(e,t,n){var o,u={},l=null,c=null;if(null!=t){c=void 0===t.ref?null:t.ref,l=void 0===t.key?null:""+t.key;for(o in t)t.hasOwnProperty(o)&&!a.hasOwnProperty(o)&&(u[o]=t[o])}var h=arguments.length-2;if(1===h)u.children=n;else if(h>1){for(var f=Array(h),p=0;h>p;p++)f[p]=arguments[p+2];u.children=f}if(e&&e.defaultProps){var d=e.defaultProps;for(o in d)"undefined"==typeof u[o]&&(u[o]=d[o])}return new s(e,l,c,i.current,r.current,u)},s.createFactory=function(e){var t=s.createElement.bind(null,e);return t.type=e,t},s.cloneAndReplaceProps=function(e,t){var n=new s(e.type,e.key,e.ref,e._owner,e._context,t);return n},s.cloneElement=function(e,t,n){var r,u=o({},e.props),l=e.key,c=e.ref,h=e._owner;if(null!=t){void 0!==t.ref&&(c=t.ref,h=i.current),void 0!==t.key&&(l=""+t.key);for(r in t)t.hasOwnProperty(r)&&!a.hasOwnProperty(r)&&(u[r]=t[r])}var f=arguments.length-2;if(1===f)u.children=n;else if(f>1){for(var p=Array(f),d=0;f>d;d++)p[d]=arguments[d+2];u.children=p}return new s(e.type,l,c,h,e._context,u)},s.isValidElement=function(e){var t=!(!e||!e._isReactElement);return t},e.exports=s},function(e,t,n){var r;(function(e,i){(function(){function o(e,t){if(e!==t){var n=null===e,r=e===T,i=e===e,o=null===t,a=t===T,s=t===t;if(e>t&&!o||!i||n&&!a&&s||r&&s)return 1;if(t>e&&!n||!s||o&&!r&&i||a&&i)return-1}return 0}function a(e,t,n){for(var r=e.length,i=n?r:-1;n?i--:++i<r;)if(t(e[i],i,e))return i;return-1}function s(e,t,n){if(t!==t)return y(e,n);for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function u(e){return"function"==typeof e||!1}function l(e){return null==e?"":e+""}function c(e,t){for(var n=-1,r=e.length;++n<r&&t.indexOf(e.charAt(n))>-1;);return n}function h(e,t){for(var n=e.length;n--&&t.indexOf(e.charAt(n))>-1;);return n}function f(e,t){return o(e.criteria,t.criteria)||e.index-t.index}function p(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,s=i.length,u=n.length;++r<s;){var l=o(i[r],a[r]);if(l){if(r>=u)return l;var c=n[r];return l*("asc"===c||c===!0?1:-1)}}return e.index-t.index}function d(e){return Ge[e]}function v(e){return Ke[e]}function m(e,t,n){return t?e=$e[e]:n&&(e=Qe[e]),"\\"+e}function g(e){return"\\"+Qe[e]}function y(e,t,n){for(var r=e.length,i=t+(n?0:-1);n?i--:++i<r;){var o=e[i];if(o!==o)return i}return-1}function b(e){return!!e&&"object"==typeof e}function _(e){return 160>=e&&e>=9&&13>=e||32==e||160==e||5760==e||6158==e||e>=8192&&(8202>=e||8232==e||8233==e||8239==e||8287==e||12288==e||65279==e)}function C(e,t){for(var n=-1,r=e.length,i=-1,o=[];++n<r;)e[n]===t&&(e[n]=G,o[++i]=n);return o}function w(e,t){for(var n,r=-1,i=e.length,o=-1,a=[];++r<i;){var s=e[r],u=t?t(s,r,e):s;r&&n===u||(n=u,a[++o]=s)}return a}function x(e){for(var t=-1,n=e.length;++t<n&&_(e.charCodeAt(t)););return t}function E(e){for(var t=e.length;t--&&_(e.charCodeAt(t)););return t}function S(e){return Xe[e]}function k(e){function t(e){if(b(e)&&!Rs(e)&&!(e instanceof i)){if(e instanceof r)return e;if(ta.call(e,"__chain__")&&ta.call(e,"__wrapped__"))return pr(e)}return new r(e)}function n(){}function r(e,t,n){this.__wrapped__=e,this.__actions__=n||[],this.__chain__=!!t}function i(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Oa,this.__views__=[]}function _(){var e=new i(this.__wrapped__);return e.__actions__=et(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=et(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=et(this.__views__),e}function Z(){if(this.__filtered__){var e=new i(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function re(){var e=this.__wrapped__.value(),t=this.__dir__,n=Rs(e),r=0>t,i=n?e.length:0,o=Gn(0,i,this.__views__),a=o.start,s=o.end,u=s-a,l=r?s:a-1,c=this.__iteratees__,h=c.length,f=0,p=xa(u,this.__takeCount__);if(!n||z>i||i==u&&p==u)return nn(r&&n?e.reverse():e,this.__actions__);var d=[];e:for(;u--&&p>f;){l+=t;for(var v=-1,m=e[l];++v<h;){var g=c[v],y=g.iteratee,b=g.type,_=y(m);if(b==q)m=_;else if(!_){if(b==W)continue e;break e}}d[f++]=m}return d}function oe(){this.__data__={}}function Ge(e){return this.has(e)&&delete this.__data__[e]}function Ke(e){return"__proto__"==e?T:this.__data__[e]}function Xe(e){return"__proto__"!=e&&ta.call(this.__data__,e)}function Ye(e,t){return"__proto__"!=e&&(this.__data__[e]=t),this}function $e(e){var t=e?e.length:0;for(this.data={hash:ga(null),set:new ha};t--;)this.push(e[t])}function Qe(e,t){var n=e.data,r="string"==typeof t||Pi(t)?n.set.has(t):n.hash[t];return r?0:-1}function Je(e){var t=this.data;"string"==typeof e||Pi(e)?t.set.add(e):t.hash[e]=!0}function Ze(e,t){for(var n=-1,r=e.length,i=-1,o=t.length,a=Ho(r+o);++n<r;)a[n]=e[n];for(;++i<o;)a[n++]=t[i];return a}function et(e,t){var n=-1,r=e.length;for(t||(t=Ho(r));++n<r;)t[n]=e[n];return t}function tt(e,t){for(var n=-1,r=e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function nt(e,t){for(var n=e.length;n--&&t(e[n],n,e)!==!1;);return e}function ot(e,t){for(var n=-1,r=e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function at(e,t,n,r){for(var i=-1,o=e.length,a=r,s=a;++i<o;){var u=e[i],l=+t(u);n(l,a)&&(a=l,s=u)}return s}function st(e,t){for(var n=-1,r=e.length,i=-1,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[++i]=a)}return o}function ut(e,t){for(var n=-1,r=e.length,i=Ho(r);++n<r;)i[n]=t(e[n],n,e);return i}function lt(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function ct(e,t,n,r){var i=-1,o=e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function ht(e,t,n,r){var i=e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function ft(e,t){for(var n=-1,r=e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function pt(e,t){for(var n=e.length,r=0;n--;)r+=+t(e[n])||0;return r}function dt(e,t){return e===T?t:e}function vt(e,t,n,r){return e!==T&&ta.call(r,n)?e:t}function mt(e,t,n){for(var r=-1,i=Bs(t),o=i.length;++r<o;){var a=i[r],s=e[a],u=n(s,t[a],a,e,t);(u===u?u===s:s!==s)&&(s!==T||a in e)||(e[a]=u)}return e}function gt(e,t){return null==t?e:bt(t,Bs(t),e)}function yt(e,t){for(var n=-1,r=null==e,i=!r&&Qn(e),o=i?e.length:0,a=t.length,s=Ho(a);++n<a;){var u=t[n];i?s[n]=Jn(u,o)?e[u]:T:s[n]=r?T:e[u]}return s}function bt(e,t,n){n||(n={});for(var r=-1,i=t.length;++r<i;){var o=t[r];n[o]=e[o]}return n}function _t(e,t,n){var r=typeof e;return"function"==r?t===T?e:an(e,t,n):null==e?Oo:"object"==r?jt(e):t===T?Po(e):Bt(e,t)}function Ct(e,t,n,r,i,o,a){var s;if(n&&(s=i?n(e,r,i):n(e)),s!==T)return s;if(!Pi(e))return e;var u=Rs(e);if(u){if(s=Kn(e),!t)return et(e,s)}else{var l=ra.call(e),c=l==J;if(l!=te&&l!=K&&(!c||i))return Ve[l]?Yn(e,l,t):i?e:{};if(s=Xn(c?{}:e),!t)return gt(s,e)}o||(o=[]),a||(a=[]);for(var h=o.length;h--;)if(o[h]==e)return a[h];return o.push(e),a.push(s),(u?tt:Mt)(e,function(r,i){s[i]=Ct(r,t,n,i,e,o,a)}),s}function wt(e,t,n){if("function"!=typeof e)throw new $o(V);return fa(function(){e.apply(T,n)},t)}function xt(e,t){var n=e?e.length:0,r=[];if(!n)return r;var i=-1,o=Wn(),a=o==s,u=a&&t.length>=z?vn(t):null,l=t.length;u&&(o=Qe,a=!1,t=u);e:for(;++i<n;){var c=e[i];if(a&&c===c){for(var h=l;h--;)if(t[h]===c)continue e;r.push(c)}else o(t,c,0)<0&&r.push(c)}return r}function Et(e,t){var n=!0;return La(e,function(e,r,i){return n=!!t(e,r,i)}),n}function St(e,t,n,r){var i=r,o=i;return La(e,function(e,a,s){var u=+t(e,a,s);(n(u,i)||u===r&&u===o)&&(i=u,o=e)}),o}function kt(e,t,n,r){var i=e.length;for(n=null==n?0:+n||0,0>n&&(n=-n>i?0:i+n),r=r===T||r>i?i:+r||0,0>r&&(r+=i),i=n>r?0:r>>>0,n>>>=0;i>n;)e[n++]=t;return e}function Tt(e,t){var n=[];return La(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ot(e,t,n,r){var i;return n(e,function(e,n,o){return t(e,n,o)?(i=r?n:e,!1):void 0}),i}function Rt(e,t,n,r){r||(r=[]);for(var i=-1,o=e.length;++i<o;){var a=e[i];b(a)&&Qn(a)&&(n||Rs(a)||Si(a))?t?Rt(a,t,n,r):lt(r,a):n||(r[r.length]=a)}return r}function At(e,t){return Fa(e,t,eo)}function Mt(e,t){return Fa(e,t,Bs)}function Nt(e,t){return ja(e,t,Bs)}function It(e,t){for(var n=-1,r=t.length,i=-1,o=[];++n<r;){var a=t[n];Ii(e[a])&&(o[++i]=a)}return o}function Pt(e,t,n){if(null!=e){n!==T&&n in hr(e)&&(t=[n]);for(var r=0,i=t.length;null!=e&&i>r;)e=e[t[r++]];return r&&r==i?e:T}}function Dt(e,t,n,r,i,o){return e===t?!0:null==e||null==t||!Pi(e)&&!b(t)?e!==e&&t!==t:Lt(e,t,Dt,n,r,i,o)}function Lt(e,t,n,r,i,o,a){var s=Rs(e),u=Rs(t),l=X,c=X;s||(l=ra.call(e),l==K?l=te:l!=te&&(s=Wi(e))),u||(c=ra.call(t),c==K?c=te:c!=te&&(u=Wi(t)));var h=l==te,f=c==te,p=l==c;if(p&&!s&&!h)return jn(e,t,l);if(!i){var d=h&&ta.call(e,"__wrapped__"),v=f&&ta.call(t,"__wrapped__");if(d||v)return n(d?e.value():e,v?t.value():t,r,i,o,a)}if(!p)return!1;o||(o=[]),a||(a=[]);for(var m=o.length;m--;)if(o[m]==e)return a[m]==t;o.push(e),a.push(t);var g=(s?Fn:Bn)(e,t,n,r,i,o,a);return o.pop(),a.pop(),g}function Ut(e,t,n){var r=t.length,i=r,o=!n;if(null==e)return!i;for(e=hr(e);r--;){var a=t[r];if(o&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++r<i;){a=t[r];var s=a[0],u=e[s],l=a[1];if(o&&a[2]){if(u===T&&!(s in e))return!1}else{var c=n?n(u,l,s):T;if(!(c===T?Dt(l,u,n,!0):c))return!1}}return!0}function Ft(e,t){var n=-1,r=Qn(e)?Ho(e.length):[];return La(e,function(e,i,o){r[++n]=t(e,i,o)}),r}function jt(e){var t=qn(e);if(1==t.length&&t[0][2]){var n=t[0][0],r=t[0][1];return function(e){return null==e?!1:e[n]===r&&(r!==T||n in hr(e))}}return function(e){return Ut(e,t)}}function Bt(e,t){var n=Rs(e),r=er(e)&&rr(t),i=e+"";return e=fr(e),function(o){if(null==o)return!1;var a=i;if(o=hr(o),(n||!r)&&!(a in o)){if(o=1==e.length?o:Pt(o,Xt(e,0,-1)),null==o)return!1;a=kr(e),o=hr(o)}return o[a]===t?t!==T||a in o:Dt(t,o[a],T,!0)}}function Ht(e,t,n,r,i){if(!Pi(e))return e;var o=Qn(t)&&(Rs(t)||Wi(t)),a=o?T:Bs(t);return tt(a||t,function(s,u){if(a&&(u=s,s=t[u]),b(s))r||(r=[]),i||(i=[]),zt(e,t,u,Ht,n,r,i);else{var l=e[u],c=n?n(l,s,u,e,t):T,h=c===T;h&&(c=s),c===T&&(!o||u in e)||!h&&(c===c?c===l:l!==l)||(e[u]=c)}}),e}function zt(e,t,n,r,i,o,a){for(var s=o.length,u=t[n];s--;)if(o[s]==u)return void(e[n]=a[s]);var l=e[n],c=i?i(l,u,n,e,t):T,h=c===T;h&&(c=u,Qn(u)&&(Rs(u)||Wi(u))?c=Rs(l)?l:Qn(l)?et(l):[]:Bi(u)||Si(u)?c=Si(l)?Xi(l):Bi(l)?l:{}:h=!1),o.push(u),a.push(c),h?e[n]=r(c,u,i,o,a):(c===c?c!==l:l===l)&&(e[n]=c)}function Wt(e){return function(t){return null==t?T:t[e]}}function qt(e){var t=e+"";return e=fr(e),function(n){return Pt(n,e,t)}}function Vt(e,t){for(var n=e?t.length:0;n--;){var r=t[n];if(r!=i&&Jn(r)){var i=r;pa.call(e,r,1)}}return e}function Gt(e,t){return e+ya(ka()*(t-e+1))}function Kt(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function Xt(e,t,n){var r=-1,i=e.length;t=null==t?0:+t||0,0>t&&(t=-t>i?0:i+t),n=n===T||n>i?i:+n||0,0>n&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Ho(i);++r<i;)o[r]=e[r+t];return o}function Yt(e,t){var n;return La(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function $t(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Qt(e,t,n){var r=Hn(),i=-1;t=ut(t,function(e){return r(e)});var o=Ft(e,function(e){var n=ut(t,function(t){return t(e)});return{criteria:n,index:++i,value:e}});return $t(o,function(e,t){return p(e,t,n)})}function Jt(e,t){var n=0;return La(e,function(e,r,i){n+=+t(e,r,i)||0}),n}function Zt(e,t){var n=-1,r=Wn(),i=e.length,o=r==s,a=o&&i>=z,u=a?vn():null,l=[];u?(r=Qe,o=!1):(a=!1,u=t?[]:l);e:for(;++n<i;){var c=e[n],h=t?t(c,n,e):c;if(o&&c===c){for(var f=u.length;f--;)if(u[f]===h)continue e;t&&u.push(h),l.push(c)}else r(u,h,0)<0&&((t||a)&&u.push(h),l.push(c))}return l}function en(e,t){for(var n=-1,r=t.length,i=Ho(r);++n<r;)i[n]=e[t[n]];return i}function tn(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Xt(e,r?0:o,r?o+1:i):Xt(e,r?o+1:0,r?i:o)}function nn(e,t){var n=e;n instanceof i&&(n=n.value());for(var r=-1,o=t.length;++r<o;){var a=t[r];n=a.func.apply(a.thisArg,lt([n],a.args))}return n}function rn(e,t,n){var r=0,i=e?e.length:r;if("number"==typeof t&&t===t&&Ma>=i){for(;i>r;){var o=r+i>>>1,a=e[o];(n?t>=a:t>a)&&null!==a?r=o+1:i=o}return i}return on(e,t,Oo,n)}function on(e,t,n,r){t=n(t);for(var i=0,o=e?e.length:0,a=t!==t,s=null===t,u=t===T;o>i;){var l=ya((i+o)/2),c=n(e[l]),h=c!==T,f=c===c;if(a)var p=f||r;else p=s?f&&h&&(r||null!=c):u?f&&(r||h):null==c?!1:r?t>=c:t>c;p?i=l+1:o=l}return xa(o,Aa)}function an(e,t,n){if("function"!=typeof e)return Oo;if(t===T)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,i){return e.call(t,n,r,i)};case 4:return function(n,r,i,o){return e.call(t,n,r,i,o)};case 5:return function(n,r,i,o,a){return e.call(t,n,r,i,o,a)}}return function(){return e.apply(t,arguments)}}function sn(e){var t=new aa(e.byteLength),n=new da(t);return n.set(new da(e)),t}function un(e,t,n){for(var r=n.length,i=-1,o=wa(e.length-r,0),a=-1,s=t.length,u=Ho(s+o);++a<s;)u[a]=t[a];for(;++i<r;)u[n[i]]=e[i];for(;o--;)u[a++]=e[i++];return u}function ln(e,t,n){for(var r=-1,i=n.length,o=-1,a=wa(e.length-i,0),s=-1,u=t.length,l=Ho(a+u);++o<a;)l[o]=e[o];for(var c=o;++s<u;)l[c+s]=t[s];for(;++r<i;)l[c+n[r]]=e[o++];return l}function cn(e,t){return function(n,r,i){var o=t?t():{};if(r=Hn(r,i,3),Rs(n))for(var a=-1,s=n.length;++a<s;){var u=n[a];e(o,u,r(u,a,n),n)}else La(n,function(t,n,i){e(o,t,r(t,n,i),i)});return o}}function hn(e){return gi(function(t,n){var r=-1,i=null==t?0:n.length,o=i>2?n[i-2]:T,a=i>2?n[2]:T,s=i>1?n[i-1]:T;for("function"==typeof o?(o=an(o,s,5),i-=2):(o="function"==typeof s?s:T,i-=o?1:0),a&&Zn(n[0],n[1],a)&&(o=3>i?T:o,i=1);++r<i;){var u=n[r];u&&e(t,u,o)}return t})}function fn(e,t){return function(n,r){var i=n?za(n):0;if(!nr(i))return e(n,r);for(var o=t?i:-1,a=hr(n);(t?o--:++o<i)&&r(a[o],o,a)!==!1;);return n}}function pn(e){return function(t,n,r){for(var i=hr(t),o=r(t),a=o.length,s=e?a:-1;e?s--:++s<a;){var u=o[s];if(n(i[u],u,i)===!1)break}return t}}function dn(e,t){function n(){var i=this&&this!==rt&&this instanceof n?r:e;return i.apply(t,arguments)}var r=gn(e);return n}function vn(e){return ga&&ha?new $e(e):null}function mn(e){return function(t){for(var n=-1,r=So(co(t)),i=r.length,o="";++n<i;)o=e(o,r[n],n);return o}}function gn(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Da(e.prototype),r=e.apply(n,t);return Pi(r)?r:n}}function yn(e){function t(n,r,i){i&&Zn(n,r,i)&&(r=T);var o=Un(n,e,T,T,T,T,T,r);return o.placeholder=t.placeholder,o}return t}function bn(e,t){return gi(function(n){var r=n[0];return null==r?r:(n.push(t),e.apply(T,n))})}function _n(e,t){return function(n,r,i){if(i&&Zn(n,r,i)&&(r=T),r=Hn(r,i,3),1==r.length){n=Rs(n)?n:cr(n);var o=at(n,r,e,t);if(!n.length||o!==t)return o}return St(n,r,e,t)}}function Cn(e,t){return function(n,r,i){if(r=Hn(r,i,3),Rs(n)){var o=a(n,r,t);return o>-1?n[o]:T}return Ot(n,r,e)}}function wn(e){return function(t,n,r){return t&&t.length?(n=Hn(n,r,3),a(t,n,e)):-1}}function xn(e){return function(t,n,r){return n=Hn(n,r,3),Ot(t,n,e,!0)}}function En(e){return function(){for(var t,n=arguments.length,i=e?n:-1,o=0,a=Ho(n);e?i--:++i<n;){var s=a[o++]=arguments[i];if("function"!=typeof s)throw new $o(V);!t&&r.prototype.thru&&"wrapper"==zn(s)&&(t=new r([],!0))}for(i=t?-1:n;++i<n;){s=a[i];var u=zn(s),l="wrapper"==u?Ha(s):T;t=l&&tr(l[0])&&l[1]==(L|N|P|U)&&!l[4].length&&1==l[9]?t[zn(l[0])].apply(t,l[3]):1==s.length&&tr(s)?t[u]():t.thru(s)}return function(){var e=arguments,r=e[0];if(t&&1==e.length&&Rs(r)&&r.length>=z)return t.plant(r).value();for(var i=0,o=n?a[i].apply(this,e):r;++i<n;)o=a[i].call(this,o);return o}}}function Sn(e,t){return function(n,r,i){return"function"==typeof r&&i===T&&Rs(n)?e(n,r):t(n,an(r,i,3))}}function kn(e){return function(t,n,r){return("function"!=typeof n||r!==T)&&(n=an(n,r,3)),e(t,n,eo)}}function Tn(e){return function(t,n,r){return("function"!=typeof n||r!==T)&&(n=an(n,r,3)),e(t,n)}}function On(e){return function(t,n,r){var i={};return n=Hn(n,r,3),Mt(t,function(t,r,o){var a=n(t,r,o);r=e?a:r,t=e?t:a,i[r]=t}),i}}function Rn(e){return function(t,n,r){return t=l(t),(e?t:"")+In(t,n,r)+(e?"":t)}}function An(e){var t=gi(function(n,r){var i=C(r,t.placeholder);return Un(n,e,T,r,i)});return t}function Mn(e,t){return function(n,r,i,o){var a=arguments.length<3;return"function"==typeof r&&o===T&&Rs(n)?e(n,r,i,a):Kt(n,Hn(r,o,4),i,a,t)}}function Nn(e,t,n,r,i,o,a,s,u,l){function c(){for(var y=arguments.length,b=y,_=Ho(y);b--;)_[b]=arguments[b];if(r&&(_=un(_,r,i)),o&&(_=ln(_,o,a)),d||m){var w=c.placeholder,x=C(_,w);if(y-=x.length,l>y){var E=s?et(s):T,S=wa(l-y,0),k=d?x:T,O=d?T:x,M=d?_:T,N=d?T:_;t|=d?P:D,t&=~(d?D:P),v||(t&=~(R|A));var I=[e,t,n,M,k,N,O,E,u,S],L=Nn.apply(T,I);return tr(e)&&Wa(L,I),L.placeholder=w,L}}var U=f?n:this,F=p?U[e]:e;return s&&(_=ur(_,s)),h&&u<_.length&&(_.length=u),this&&this!==rt&&this instanceof c&&(F=g||gn(e)),F.apply(U,_)}var h=t&L,f=t&R,p=t&A,d=t&N,v=t&M,m=t&I,g=p?T:gn(e);return c}function In(e,t,n){var r=e.length;if(t=+t,r>=t||!_a(t))return"";var i=t-r;return n=null==n?" ":n+"",go(n,ma(i/n.length)).slice(0,i)}function Pn(e,t,n,r){function i(){for(var t=-1,s=arguments.length,u=-1,l=r.length,c=Ho(l+s);++u<l;)c[u]=r[u];for(;s--;)c[u++]=arguments[++t];var h=this&&this!==rt&&this instanceof i?a:e;return h.apply(o?n:this,c)}var o=t&R,a=gn(e);return i}function Dn(e){var t=Vo[e];return function(e,n){return n=n===T?0:+n||0,n?(n=la(10,n),t(e*n)/n):t(e)}}function Ln(e){return function(t,n,r,i){var o=Hn(r);return null==r&&o===_t?rn(t,n,e):on(t,n,o(r,i,1),e)}}function Un(e,t,n,r,i,o,a,s){var u=t&A;if(!u&&"function"!=typeof e)throw new $o(V);var l=r?r.length:0;if(l||(t&=~(P|D),r=i=T),l-=i?i.length:0,t&D){var c=r,h=i;r=i=T}var f=u?T:Ha(e),p=[e,t,n,r,i,c,h,o,a,s];if(f&&(ir(p,f),t=p[1],s=p[9]),p[9]=null==s?u?0:e.length:wa(s-l,0)||0,t==R)var d=dn(p[0],p[2]);else d=t!=P&&t!=(R|P)||p[4].length?Nn.apply(T,p):Pn.apply(T,p);var v=f?Ba:Wa;return v(d,p)}function Fn(e,t,n,r,i,o,a){var s=-1,u=e.length,l=t.length;if(u!=l&&!(i&&l>u))return!1;for(;++s<u;){var c=e[s],h=t[s],f=r?r(i?h:c,i?c:h,s):T;if(f!==T){if(f)continue;return!1}if(i){if(!ft(t,function(e){return c===e||n(c,e,r,i,o,a)}))return!1}else if(c!==h&&!n(c,h,r,i,o,a))return!1}return!0}function jn(e,t,n){switch(n){case Y:case $:return+e==+t;case Q:return e.name==t.name&&e.message==t.message;case ee:return e!=+e?t!=+t:e==+t;case ne:case ie:return e==t+""}return!1}function Bn(e,t,n,r,i,o,a){var s=Bs(e),u=s.length,l=Bs(t),c=l.length;if(u!=c&&!i)return!1;for(var h=u;h--;){var f=s[h];if(!(i?f in t:ta.call(t,f)))return!1}for(var p=i;++h<u;){f=s[h];var d=e[f],v=t[f],m=r?r(i?v:d,i?d:v,f):T;if(!(m===T?n(d,v,r,i,o,a):m))return!1;p||(p="constructor"==f)}if(!p){var g=e.constructor,y=t.constructor;if(g!=y&&"constructor"in e&&"constructor"in t&&!("function"==typeof g&&g instanceof g&&"function"==typeof y&&y instanceof y))return!1}return!0}function Hn(e,n,r){var i=t.callback||ko;return i=i===ko?_t:i,r?i(e,n,r):i}function zn(e){for(var t=e.name,n=Pa[t],r=n?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Wn(e,n,r){var i=t.indexOf||Er;return i=i===Er?s:i,e?i(e,n,r):i}function qn(e){for(var t=to(e),n=t.length;n--;)t[n][2]=rr(t[n][1]);return t}function Vn(e,t){var n=null==e?T:e[t];return Ui(n)?n:T}function Gn(e,t,n){for(var r=-1,i=n.length;++r<i;){var o=n[r],a=o.size;switch(o.type){case"drop":e+=a;break;case"dropRight":t-=a;break;case"take":t=xa(t,e+a);break;case"takeRight":e=wa(e,t-a)}}return{start:e,end:t}}function Kn(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&ta.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function Xn(e){var t=e.constructor;return"function"==typeof t&&t instanceof t||(t=Ko),new t}function Yn(e,t,n){var r=e.constructor;switch(t){case ae:return sn(e);case Y:case $:return new r(+e);case se:case ue:case le:case ce:case he:case fe:case pe:case de:case ve:var i=e.buffer;return new r(n?sn(i):i,e.byteOffset,e.length);case ee:case ie:return new r(e);case ne:var o=new r(e.source,Pe.exec(e));o.lastIndex=e.lastIndex}return o}function $n(e,t,n){null==e||er(t,e)||(t=fr(t),e=1==t.length?e:Pt(e,Xt(t,0,-1)),t=kr(t));var r=null==e?e:e[t];return null==r?T:r.apply(e,n)}function Qn(e){return null!=e&&nr(za(e))}function Jn(e,t){return e="number"==typeof e||Ue.test(e)?+e:-1,t=null==t?Na:t,e>-1&&e%1==0&&t>e}function Zn(e,t,n){if(!Pi(n))return!1;var r=typeof t;if("number"==r?Qn(n)&&Jn(t,n.length):"string"==r&&t in n){var i=n[t];return e===e?e===i:i!==i}return!1}function er(e,t){var n=typeof e;if("string"==n&&Te.test(e)||"number"==n)return!0;if(Rs(e))return!1;var r=!ke.test(e);return r||null!=t&&e in hr(t)}function tr(e){var n=zn(e);if(!(n in i.prototype))return!1;var r=t[n];if(e===r)return!0;var o=Ha(r);return!!o&&e===o[0]}function nr(e){return"number"==typeof e&&e>-1&&e%1==0&&Na>=e}function rr(e){return e===e&&!Pi(e)}function ir(e,t){var n=e[1],r=t[1],i=n|r,o=L>i,a=r==L&&n==N||r==L&&n==U&&e[7].length<=t[8]||r==(L|U)&&n==N;if(!o&&!a)return e;r&R&&(e[2]=t[2],i|=n&R?0:M);var s=t[3];if(s){var u=e[3];e[3]=u?un(u,s,t[4]):et(s),e[4]=u?C(e[3],G):et(t[4])}return s=t[5],s&&(u=e[5],e[5]=u?ln(u,s,t[6]):et(s),e[6]=u?C(e[5],G):et(t[6])),s=t[7],s&&(e[7]=et(s)),r&L&&(e[8]=null==e[8]?t[8]:xa(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i,e}function or(e,t){return e===T?t:As(e,t,or)}function ar(e,t){e=hr(e);for(var n=-1,r=t.length,i={};++n<r;){var o=t[n];o in e&&(i[o]=e[o])}return i}function sr(e,t){var n={};return At(e,function(e,r,i){t(e,r,i)&&(n[r]=e)}),n}function ur(e,t){for(var n=e.length,r=xa(t.length,n),i=et(e);r--;){var o=t[r];e[r]=Jn(o,n)?i[o]:T}return e}function lr(e){for(var t=eo(e),n=t.length,r=n&&e.length,i=!!r&&nr(r)&&(Rs(e)||Si(e)),o=-1,a=[];++o<n;){var s=t[o];(i&&Jn(s,r)||ta.call(e,s))&&a.push(s)}return a}function cr(e){return null==e?[]:Qn(e)?Pi(e)?e:Ko(e):oo(e)}function hr(e){return Pi(e)?e:Ko(e)}function fr(e){if(Rs(e))return e;var t=[];return l(e).replace(Oe,function(e,n,r,i){t.push(r?i.replace(Ne,"$1"):n||e)}),t}function pr(e){return e instanceof i?e.clone():new r(e.__wrapped__,e.__chain__,et(e.__actions__))}function dr(e,t,n){t=(n?Zn(e,t,n):null==t)?1:wa(ya(t)||1,1);for(var r=0,i=e?e.length:0,o=-1,a=Ho(ma(i/t));i>r;)a[++o]=Xt(e,r,r+=t);return a}function vr(e){for(var t=-1,n=e?e.length:0,r=-1,i=[];++t<n;){var o=e[t];o&&(i[++r]=o)}return i}function mr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),Xt(e,0>t?0:t)):[]}function gr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Xt(e,0,0>t?0:t)):[]}function yr(e,t,n){return e&&e.length?tn(e,Hn(t,n,3),!0,!0):[]}function br(e,t,n){return e&&e.length?tn(e,Hn(t,n,3),!0):[]}function _r(e,t,n,r){var i=e?e.length:0;return i?(n&&"number"!=typeof n&&Zn(e,t,n)&&(n=0,r=i),kt(e,t,n,r)):[]}function Cr(e){return e?e[0]:T}function wr(e,t,n){var r=e?e.length:0;return n&&Zn(e,t,n)&&(t=!1),r?Rt(e,t):[]}function xr(e){var t=e?e.length:0;return t?Rt(e,!0):[]}function Er(e,t,n){var r=e?e.length:0;if(!r)return-1;if("number"==typeof n)n=0>n?wa(r+n,0):n;else if(n){var i=rn(e,t);return r>i&&(t===t?t===e[i]:e[i]!==e[i])?i:-1}return s(e,t,n||0)}function Sr(e){return gr(e,1)}function kr(e){var t=e?e.length:0;return t?e[t-1]:T}function Tr(e,t,n){var r=e?e.length:0;if(!r)return-1;var i=r;if("number"==typeof n)i=(0>n?wa(r+n,0):xa(n||0,r-1))+1;else if(n){i=rn(e,t,!0)-1;var o=e[i];return(t===t?t===o:o!==o)?i:-1}if(t!==t)return y(e,i,!0);for(;i--;)if(e[i]===t)return i;return-1}function Or(){var e=arguments,t=e[0];if(!t||!t.length)return t;for(var n=0,r=Wn(),i=e.length;++n<i;)for(var o=0,a=e[n];(o=r(t,a,o))>-1;)pa.call(t,o,1);return t}function Rr(e,t,n){var r=[];if(!e||!e.length)return r;var i=-1,o=[],a=e.length;for(t=Hn(t,n,3);++i<a;){var s=e[i];t(s,i,e)&&(r.push(s),o.push(i))}return Vt(e,o),r}function Ar(e){return mr(e,1)}function Mr(e,t,n){var r=e?e.length:0;return r?(n&&"number"!=typeof n&&Zn(e,t,n)&&(t=0,n=r),Xt(e,t,n)):[]}function Nr(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),Xt(e,0,0>t?0:t)):[]}function Ir(e,t,n){var r=e?e.length:0;return r?((n?Zn(e,t,n):null==t)&&(t=1),t=r-(+t||0),Xt(e,0>t?0:t)):[]}function Pr(e,t,n){return e&&e.length?tn(e,Hn(t,n,3),!1,!0):[]}function Dr(e,t,n){return e&&e.length?tn(e,Hn(t,n,3)):[]}function Lr(e,t,n,r){var i=e?e.length:0;if(!i)return[];null!=t&&"boolean"!=typeof t&&(r=n,n=Zn(e,t,r)?T:t,t=!1);var o=Hn();return(null!=n||o!==_t)&&(n=o(n,r,3)),t&&Wn()==s?w(e,n):Zt(e,n)}function Ur(e){if(!e||!e.length)return[];var t=-1,n=0;e=st(e,function(e){return Qn(e)?(n=wa(e.length,n),!0):void 0});for(var r=Ho(n);++t<n;)r[t]=ut(e,Wt(t));return r}function Fr(e,t,n){var r=e?e.length:0;if(!r)return[];var i=Ur(e);return null==t?i:(t=an(t,n,4),ut(i,function(e){return ct(e,t,T,!0)}))}function jr(){for(var e=-1,t=arguments.length;++e<t;){var n=arguments[e];if(Qn(n))var r=r?lt(xt(r,n),xt(n,r)):n}return r?Zt(r):[]}function Br(e,t){var n=-1,r=e?e.length:0,i={};for(!r||t||Rs(e[0])||(t=[]);++n<r;){var o=e[n];t?i[o]=t[n]:o&&(i[o[0]]=o[1])}return i}function Hr(e){var n=t(e);return n.__chain__=!0,n}function zr(e,t,n){return t.call(n,e),e}function Wr(e,t,n){return t.call(n,e)}function qr(){return Hr(this)}function Vr(){return new r(this.value(),this.__chain__)}function Gr(e){for(var t,r=this;r instanceof n;){var i=pr(r);t?o.__wrapped__=i:t=i;
var o=i;r=r.__wrapped__}return o.__wrapped__=e,t}function Kr(){var e=this.__wrapped__,t=function(e){return n&&n.__dir__<0?e:e.reverse()};if(e instanceof i){var n=e;return this.__actions__.length&&(n=new i(this)),n=n.reverse(),n.__actions__.push({func:Wr,args:[t],thisArg:T}),new r(n,this.__chain__)}return this.thru(t)}function Xr(){return this.value()+""}function Yr(){return nn(this.__wrapped__,this.__actions__)}function $r(e,t,n){var r=Rs(e)?ot:Et;return n&&Zn(e,t,n)&&(t=T),("function"!=typeof t||n!==T)&&(t=Hn(t,n,3)),r(e,t)}function Qr(e,t,n){var r=Rs(e)?st:Tt;return t=Hn(t,n,3),r(e,t)}function Jr(e,t){return is(e,jt(t))}function Zr(e,t,n,r){var i=e?za(e):0;return nr(i)||(e=oo(e),i=e.length),n="number"!=typeof n||r&&Zn(t,n,r)?0:0>n?wa(i+n,0):n||0,"string"==typeof e||!Rs(e)&&zi(e)?i>=n&&e.indexOf(t,n)>-1:!!i&&Wn(e,t,n)>-1}function ei(e,t,n){var r=Rs(e)?ut:Ft;return t=Hn(t,n,3),r(e,t)}function ti(e,t){return ei(e,Po(t))}function ni(e,t,n){var r=Rs(e)?st:Tt;return t=Hn(t,n,3),r(e,function(e,n,r){return!t(e,n,r)})}function ri(e,t,n){if(n?Zn(e,t,n):null==t){e=cr(e);var r=e.length;return r>0?e[Gt(0,r-1)]:T}var i=-1,o=Ki(e),r=o.length,a=r-1;for(t=xa(0>t?0:+t||0,r);++i<t;){var s=Gt(i,a),u=o[s];o[s]=o[i],o[i]=u}return o.length=t,o}function ii(e){return ri(e,Oa)}function oi(e){var t=e?za(e):0;return nr(t)?t:Bs(e).length}function ai(e,t,n){var r=Rs(e)?ft:Yt;return n&&Zn(e,t,n)&&(t=T),("function"!=typeof t||n!==T)&&(t=Hn(t,n,3)),r(e,t)}function si(e,t,n){if(null==e)return[];n&&Zn(e,t,n)&&(t=T);var r=-1;t=Hn(t,n,3);var i=Ft(e,function(e,n,i){return{criteria:t(e,n,i),index:++r,value:e}});return $t(i,f)}function ui(e,t,n,r){return null==e?[]:(r&&Zn(t,n,r)&&(n=T),Rs(t)||(t=null==t?[]:[t]),Rs(n)||(n=null==n?[]:[n]),Qt(e,t,n))}function li(e,t){return Qr(e,jt(t))}function ci(e,t){if("function"!=typeof t){if("function"!=typeof e)throw new $o(V);var n=e;e=t,t=n}return e=_a(e=+e)?e:0,function(){return--e<1?t.apply(this,arguments):void 0}}function hi(e,t,n){return n&&Zn(e,t,n)&&(t=T),t=e&&null==t?e.length:wa(+t||0,0),Un(e,L,T,T,T,T,t)}function fi(e,t){var n;if("function"!=typeof t){if("function"!=typeof e)throw new $o(V);var r=e;e=t,t=r}return function(){return--e>0&&(n=t.apply(this,arguments)),1>=e&&(t=T),n}}function pi(e,t,n){function r(){p&&sa(p),l&&sa(l),v=0,l=p=d=T}function i(t,n){n&&sa(n),l=p=d=T,t&&(v=vs(),c=e.apply(f,u),p||l||(u=f=T))}function o(){var e=t-(vs()-h);0>=e||e>t?i(d,l):p=fa(o,e)}function a(){i(g,p)}function s(){if(u=arguments,h=vs(),f=this,d=g&&(p||!y),m===!1)var n=y&&!p;else{l||y||(v=h);var r=m-(h-v),i=0>=r||r>m;i?(l&&(l=sa(l)),v=h,c=e.apply(f,u)):l||(l=fa(a,r))}return i&&p?p=sa(p):p||t===m||(p=fa(o,t)),n&&(i=!0,c=e.apply(f,u)),!i||p||l||(u=f=T),c}var u,l,c,h,f,p,d,v=0,m=!1,g=!0;if("function"!=typeof e)throw new $o(V);if(t=0>t?0:+t||0,n===!0){var y=!0;g=!1}else Pi(n)&&(y=!!n.leading,m="maxWait"in n&&wa(+n.maxWait||0,t),g="trailing"in n?!!n.trailing:g);return s.cancel=r,s}function di(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new $o(V);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new di.Cache,n}function vi(e){if("function"!=typeof e)throw new $o(V);return function(){return!e.apply(this,arguments)}}function mi(e){return fi(2,e)}function gi(e,t){if("function"!=typeof e)throw new $o(V);return t=wa(t===T?e.length-1:+t||0,0),function(){for(var n=arguments,r=-1,i=wa(n.length-t,0),o=Ho(i);++r<i;)o[r]=n[t+r];switch(t){case 0:return e.call(this,o);case 1:return e.call(this,n[0],o);case 2:return e.call(this,n[0],n[1],o)}var a=Ho(t+1);for(r=-1;++r<t;)a[r]=n[r];return a[t]=o,e.apply(this,a)}}function yi(e){if("function"!=typeof e)throw new $o(V);return function(t){return e.apply(this,t)}}function bi(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new $o(V);return n===!1?r=!1:Pi(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),pi(e,t,{leading:r,maxWait:+t,trailing:i})}function _i(e,t){return t=null==t?Oo:t,Un(t,P,T,[e],[])}function Ci(e,t,n,r){return t&&"boolean"!=typeof t&&Zn(e,t,n)?t=!1:"function"==typeof t&&(r=n,n=t,t=!1),"function"==typeof n?Ct(e,t,an(n,r,1)):Ct(e,t)}function wi(e,t,n){return"function"==typeof t?Ct(e,!0,an(t,n,1)):Ct(e,!0)}function xi(e,t){return e>t}function Ei(e,t){return e>=t}function Si(e){return b(e)&&Qn(e)&&ta.call(e,"callee")&&!ca.call(e,"callee")}function ki(e){return e===!0||e===!1||b(e)&&ra.call(e)==Y}function Ti(e){return b(e)&&ra.call(e)==$}function Oi(e){return!!e&&1===e.nodeType&&b(e)&&!Bi(e)}function Ri(e){return null==e?!0:Qn(e)&&(Rs(e)||zi(e)||Si(e)||b(e)&&Ii(e.splice))?!e.length:!Bs(e).length}function Ai(e,t,n,r){n="function"==typeof n?an(n,r,3):T;var i=n?n(e,t):T;return i===T?Dt(e,t,n):!!i}function Mi(e){return b(e)&&"string"==typeof e.message&&ra.call(e)==Q}function Ni(e){return"number"==typeof e&&_a(e)}function Ii(e){return Pi(e)&&ra.call(e)==J}function Pi(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function Di(e,t,n,r){return n="function"==typeof n?an(n,r,3):T,Ut(e,qn(t),n)}function Li(e){return ji(e)&&e!=+e}function Ui(e){return null==e?!1:Ii(e)?oa.test(ea.call(e)):b(e)&&Le.test(e)}function Fi(e){return null===e}function ji(e){return"number"==typeof e||b(e)&&ra.call(e)==ee}function Bi(e){var t;if(!b(e)||ra.call(e)!=te||Si(e)||!ta.call(e,"constructor")&&(t=e.constructor,"function"==typeof t&&!(t instanceof t)))return!1;var n;return At(e,function(e,t){n=t}),n===T||ta.call(e,n)}function Hi(e){return Pi(e)&&ra.call(e)==ne}function zi(e){return"string"==typeof e||b(e)&&ra.call(e)==ie}function Wi(e){return b(e)&&nr(e.length)&&!!qe[ra.call(e)]}function qi(e){return e===T}function Vi(e,t){return t>e}function Gi(e,t){return t>=e}function Ki(e){var t=e?za(e):0;return nr(t)?t?et(e):[]:oo(e)}function Xi(e){return bt(e,eo(e))}function Yi(e,t,n){var r=Da(e);return n&&Zn(e,t,n)&&(t=T),t?gt(r,t):r}function $i(e){return It(e,eo(e))}function Qi(e,t,n){var r=null==e?T:Pt(e,fr(t),t+"");return r===T?n:r}function Ji(e,t){if(null==e)return!1;var n=ta.call(e,t);if(!n&&!er(t)){if(t=fr(t),e=1==t.length?e:Pt(e,Xt(t,0,-1)),null==e)return!1;t=kr(t),n=ta.call(e,t)}return n||nr(e.length)&&Jn(t,e.length)&&(Rs(e)||Si(e))}function Zi(e,t,n){n&&Zn(e,t,n)&&(t=T);for(var r=-1,i=Bs(e),o=i.length,a={};++r<o;){var s=i[r],u=e[s];t?ta.call(a,u)?a[u].push(s):a[u]=[s]:a[u]=s}return a}function eo(e){if(null==e)return[];Pi(e)||(e=Ko(e));var t=e.length;t=t&&nr(t)&&(Rs(e)||Si(e))&&t||0;for(var n=e.constructor,r=-1,i="function"==typeof n&&n.prototype===e,o=Ho(t),a=t>0;++r<t;)o[r]=r+"";for(var s in e)a&&Jn(s,t)||"constructor"==s&&(i||!ta.call(e,s))||o.push(s);return o}function to(e){e=hr(e);for(var t=-1,n=Bs(e),r=n.length,i=Ho(r);++t<r;){var o=n[t];i[t]=[o,e[o]]}return i}function no(e,t,n){var r=null==e?T:e[t];return r===T&&(null==e||er(t,e)||(t=fr(t),e=1==t.length?e:Pt(e,Xt(t,0,-1)),r=null==e?T:e[kr(t)]),r=r===T?n:r),Ii(r)?r.call(e):r}function ro(e,t,n){if(null==e)return e;var r=t+"";t=null!=e[r]||er(t,e)?[r]:fr(t);for(var i=-1,o=t.length,a=o-1,s=e;null!=s&&++i<o;){var u=t[i];Pi(s)&&(i==a?s[u]=n:null==s[u]&&(s[u]=Jn(t[i+1])?[]:{})),s=s[u]}return e}function io(e,t,n,r){var i=Rs(e)||Wi(e);if(t=Hn(t,r,4),null==n)if(i||Pi(e)){var o=e.constructor;n=i?Rs(e)?new o:[]:Da(Ii(o)?o.prototype:T)}else n={};return(i?tt:Mt)(e,function(e,r,i){return t(n,e,r,i)}),n}function oo(e){return en(e,Bs(e))}function ao(e){return en(e,eo(e))}function so(e,t,n){return t=+t||0,n===T?(n=t,t=0):n=+n||0,e>=xa(t,n)&&e<wa(t,n)}function uo(e,t,n){n&&Zn(e,t,n)&&(t=n=T);var r=null==e,i=null==t;if(null==n&&(i&&"boolean"==typeof e?(n=e,e=1):"boolean"==typeof t&&(n=t,i=!0)),r&&i&&(t=1,i=!1),e=+e||0,i?(t=e,e=0):t=+t||0,n||e%1||t%1){var o=ka();return xa(e+o*(t-e+ua("1e-"+((o+"").length-1))),t)}return Gt(e,t)}function lo(e){return e=l(e),e&&e.charAt(0).toUpperCase()+e.slice(1)}function co(e){return e=l(e),e&&e.replace(Fe,d).replace(Me,"")}function ho(e,t,n){e=l(e),t+="";var r=e.length;return n=n===T?r:xa(0>n?0:+n||0,r),n-=t.length,n>=0&&e.indexOf(t,n)==n}function fo(e){return e=l(e),e&&we.test(e)?e.replace(_e,v):e}function po(e){return e=l(e),e&&Ae.test(e)?e.replace(Re,m):e||"(?:)"}function vo(e,t,n){e=l(e),t=+t;var r=e.length;if(r>=t||!_a(t))return e;var i=(t-r)/2,o=ya(i),a=ma(i);return n=In("",a,n),n.slice(0,o)+e+n}function mo(e,t,n){return(n?Zn(e,t,n):null==t)?t=0:t&&(t=+t),e=_o(e),Sa(e,t||(De.test(e)?16:10))}function go(e,t){var n="";if(e=l(e),t=+t,1>t||!e||!_a(t))return n;do t%2&&(n+=e),t=ya(t/2),e+=e;while(t);return n}function yo(e,t,n){return e=l(e),n=null==n?0:xa(0>n?0:+n||0,e.length),e.lastIndexOf(t,n)==n}function bo(e,n,r){var i=t.templateSettings;r&&Zn(e,n,r)&&(n=r=T),e=l(e),n=mt(gt({},r||n),i,vt);var o,a,s=mt(gt({},n.imports),i.imports,vt),u=Bs(s),c=en(s,u),h=0,f=n.interpolate||je,p="__p += '",d=Xo((n.escape||je).source+"|"+f.source+"|"+(f===Se?Ie:je).source+"|"+(n.evaluate||je).source+"|$","g"),v="//# sourceURL="+("sourceURL"in n?n.sourceURL:"lodash.templateSources["+ ++We+"]")+"\n";e.replace(d,function(t,n,r,i,s,u){return r||(r=i),p+=e.slice(h,u).replace(Be,g),n&&(o=!0,p+="' +\n__e("+n+") +\n'"),s&&(a=!0,p+="';\n"+s+";\n__p += '"),r&&(p+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),h=u+t.length,t}),p+="';\n";var m=n.variable;m||(p="with (obj) {\n"+p+"\n}\n"),p=(a?p.replace(me,""):p).replace(ge,"$1").replace(ye,"$1;"),p="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+p+"return __p\n}";var y=Qs(function(){return qo(u,v+"return "+p).apply(T,c)});if(y.source=p,Mi(y))throw y;return y}function _o(e,t,n){var r=e;return(e=l(e))?(n?Zn(r,t,n):null==t)?e.slice(x(e),E(e)+1):(t+="",e.slice(c(e,t),h(e,t)+1)):e}function Co(e,t,n){var r=e;return e=l(e),e?(n?Zn(r,t,n):null==t)?e.slice(x(e)):e.slice(c(e,t+"")):e}function wo(e,t,n){var r=e;return e=l(e),e?(n?Zn(r,t,n):null==t)?e.slice(0,E(e)+1):e.slice(0,h(e,t+"")+1):e}function xo(e,t,n){n&&Zn(e,t,n)&&(t=T);var r=F,i=j;if(null!=t)if(Pi(t)){var o="separator"in t?t.separator:o;r="length"in t?+t.length||0:r,i="omission"in t?l(t.omission):i}else r=+t||0;if(e=l(e),r>=e.length)return e;var a=r-i.length;if(1>a)return i;var s=e.slice(0,a);if(null==o)return s+i;if(Hi(o)){if(e.slice(a).search(o)){var u,c,h=e.slice(0,a);for(o.global||(o=Xo(o.source,(Pe.exec(o)||"")+"g")),o.lastIndex=0;u=o.exec(h);)c=u.index;s=s.slice(0,null==c?a:c)}}else if(e.indexOf(o,a)!=a){var f=s.lastIndexOf(o);f>-1&&(s=s.slice(0,f))}return s+i}function Eo(e){return e=l(e),e&&Ce.test(e)?e.replace(be,S):e}function So(e,t,n){return n&&Zn(e,t,n)&&(t=T),e=l(e),e.match(t||He)||[]}function ko(e,t,n){return n&&Zn(e,t,n)&&(t=T),b(e)?Ro(e):_t(e,t)}function To(e){return function(){return e}}function Oo(e){return e}function Ro(e){return jt(Ct(e,!0))}function Ao(e,t){return Bt(e,Ct(t,!0))}function Mo(e,t,n){if(null==n){var r=Pi(t),i=r?Bs(t):T,o=i&&i.length?It(t,i):T;(o?o.length:r)||(o=!1,n=t,t=e,e=this)}o||(o=It(t,Bs(t)));var a=!0,s=-1,u=Ii(e),l=o.length;n===!1?a=!1:Pi(n)&&"chain"in n&&(a=n.chain);for(;++s<l;){var c=o[s],h=t[c];e[c]=h,u&&(e.prototype[c]=function(t){return function(){var n=this.__chain__;if(a||n){var r=e(this.__wrapped__),i=r.__actions__=et(this.__actions__);return i.push({func:t,args:arguments,thisArg:e}),r.__chain__=n,r}return t.apply(e,lt([this.value()],arguments))}}(h))}return e}function No(){return rt._=ia,this}function Io(){}function Po(e){return er(e)?Wt(e):qt(e)}function Do(e){return function(t){return Pt(e,fr(t),t+"")}}function Lo(e,t,n){n&&Zn(e,t,n)&&(t=n=T),e=+e||0,n=null==n?1:+n||0,null==t?(t=e,e=0):t=+t||0;for(var r=-1,i=wa(ma((t-e)/(n||1)),0),o=Ho(i);++r<i;)o[r]=e,e+=n;return o}function Uo(e,t,n){if(e=ya(e),1>e||!_a(e))return[];var r=-1,i=Ho(xa(e,Ra));for(t=an(t,n,1);++r<e;)Ra>r?i[r]=t(r):t(r);return i}function Fo(e){var t=++na;return l(e)+t}function jo(e,t){return(+e||0)+(+t||0)}function Bo(e,t,n){return n&&Zn(e,t,n)&&(t=T),t=Hn(t,n,3),1==t.length?pt(Rs(e)?e:cr(e),t):Jt(e,t)}e=e?it.defaults(rt.Object(),e,it.pick(rt,ze)):rt;var Ho=e.Array,zo=e.Date,Wo=e.Error,qo=e.Function,Vo=e.Math,Go=e.Number,Ko=e.Object,Xo=e.RegExp,Yo=e.String,$o=e.TypeError,Qo=Ho.prototype,Jo=Ko.prototype,Zo=Yo.prototype,ea=qo.prototype.toString,ta=Jo.hasOwnProperty,na=0,ra=Jo.toString,ia=rt._,oa=Xo("^"+ea.call(ta).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),aa=e.ArrayBuffer,sa=e.clearTimeout,ua=e.parseFloat,la=Vo.pow,ca=Jo.propertyIsEnumerable,ha=Vn(e,"Set"),fa=e.setTimeout,pa=Qo.splice,da=e.Uint8Array,va=Vn(e,"WeakMap"),ma=Vo.ceil,ga=Vn(Ko,"create"),ya=Vo.floor,ba=Vn(Ho,"isArray"),_a=e.isFinite,Ca=Vn(Ko,"keys"),wa=Vo.max,xa=Vo.min,Ea=Vn(zo,"now"),Sa=e.parseInt,ka=Vo.random,Ta=Go.NEGATIVE_INFINITY,Oa=Go.POSITIVE_INFINITY,Ra=4294967295,Aa=Ra-1,Ma=Ra>>>1,Na=9007199254740991,Ia=va&&new va,Pa={};t.support={};t.templateSettings={escape:xe,evaluate:Ee,interpolate:Se,variable:"",imports:{_:t}};var Da=function(){function e(){}return function(t){if(Pi(t)){e.prototype=t;var n=new e;e.prototype=T}return n||{}}}(),La=fn(Mt),Ua=fn(Nt,!0),Fa=pn(),ja=pn(!0),Ba=Ia?function(e,t){return Ia.set(e,t),e}:Oo,Ha=Ia?function(e){return Ia.get(e)}:Io,za=Wt("length"),Wa=function(){var e=0,t=0;return function(n,r){var i=vs(),o=H-(i-t);if(t=i,o>0){if(++e>=B)return n}else e=0;return Ba(n,r)}}(),qa=gi(function(e,t){return b(e)&&Qn(e)?xt(e,Rt(t,!1,!0)):[]}),Va=wn(),Ga=wn(!0),Ka=gi(function(e){for(var t=e.length,n=t,r=Ho(h),i=Wn(),o=i==s,a=[];n--;){var u=e[n]=Qn(u=e[n])?u:[];r[n]=o&&u.length>=120?vn(n&&u):null}var l=e[0],c=-1,h=l?l.length:0,f=r[0];e:for(;++c<h;)if(u=l[c],(f?Qe(f,u):i(a,u,0))<0){for(var n=t;--n;){var p=r[n];if((p?Qe(p,u):i(e[n],u,0))<0)continue e}f&&f.push(u),a.push(u)}return a}),Xa=gi(function(e,t){t=Rt(t);var n=yt(e,t);return Vt(e,t.sort(o)),n}),Ya=Ln(),$a=Ln(!0),Qa=gi(function(e){return Zt(Rt(e,!1,!0))}),Ja=gi(function(e,t){return Qn(e)?xt(e,t):[]}),Za=gi(Ur),es=gi(function(e){var t=e.length,n=t>2?e[t-2]:T,r=t>1?e[t-1]:T;return t>2&&"function"==typeof n?t-=2:(n=t>1&&"function"==typeof r?(--t,r):T,r=T),e.length=t,Fr(e,n,r)}),ts=gi(function(e){return e=Rt(e),this.thru(function(t){return Ze(Rs(t)?t:[hr(t)],e)})}),ns=gi(function(e,t){return yt(e,Rt(t))}),rs=cn(function(e,t,n){ta.call(e,n)?++e[n]:e[n]=1}),is=Cn(La),os=Cn(Ua,!0),as=Sn(tt,La),ss=Sn(nt,Ua),us=cn(function(e,t,n){ta.call(e,n)?e[n].push(t):e[n]=[t]}),ls=cn(function(e,t,n){e[n]=t}),cs=gi(function(e,t,n){var r=-1,i="function"==typeof t,o=er(t),a=Qn(e)?Ho(e.length):[];return La(e,function(e){var s=i?t:o&&null!=e?e[t]:T;a[++r]=s?s.apply(e,n):$n(e,t,n)}),a}),hs=cn(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]}),fs=Mn(ct,La),ps=Mn(ht,Ua),ds=gi(function(e,t){if(null==e)return[];var n=t[2];return n&&Zn(t[0],t[1],n)&&(t.length=1),Qt(e,Rt(t),[])}),vs=Ea||function(){return(new zo).getTime()},ms=gi(function(e,t,n){var r=R;if(n.length){var i=C(n,ms.placeholder);r|=P}return Un(e,r,t,n,i)}),gs=gi(function(e,t){t=t.length?Rt(t):$i(e);for(var n=-1,r=t.length;++n<r;){var i=t[n];e[i]=Un(e[i],R,e)}return e}),ys=gi(function(e,t,n){var r=R|A;if(n.length){var i=C(n,ys.placeholder);r|=P}return Un(t,r,e,n,i)}),bs=yn(N),_s=yn(I),Cs=gi(function(e,t){return wt(e,1,t)}),ws=gi(function(e,t,n){return wt(e,t,n)}),xs=En(),Es=En(!0),Ss=gi(function(e,t){if(t=Rt(t),"function"!=typeof e||!ot(t,u))throw new $o(V);var n=t.length;return gi(function(r){for(var i=xa(r.length,n);i--;)r[i]=t[i](r[i]);return e.apply(this,r)})}),ks=An(P),Ts=An(D),Os=gi(function(e,t){return Un(e,U,T,T,T,Rt(t))}),Rs=ba||function(e){return b(e)&&nr(e.length)&&ra.call(e)==X},As=hn(Ht),Ms=hn(function(e,t,n){return n?mt(e,t,n):gt(e,t)}),Ns=bn(Ms,dt),Is=bn(As,or),Ps=xn(Mt),Ds=xn(Nt),Ls=kn(Fa),Us=kn(ja),Fs=Tn(Mt),js=Tn(Nt),Bs=Ca?function(e){var t=null==e?T:e.constructor;return"function"==typeof t&&t.prototype===e||"function"!=typeof e&&Qn(e)?lr(e):Pi(e)?Ca(e):[]}:lr,Hs=On(!0),zs=On(),Ws=gi(function(e,t){if(null==e)return{};if("function"!=typeof t[0]){var t=ut(Rt(t),Yo);return ar(e,xt(eo(e),t))}var n=an(t[0],t[1],3);return sr(e,function(e,t,r){return!n(e,t,r)})}),qs=gi(function(e,t){return null==e?{}:"function"==typeof t[0]?sr(e,an(t[0],t[1],3)):ar(e,Rt(t))}),Vs=mn(function(e,t,n){return t=t.toLowerCase(),e+(n?t.charAt(0).toUpperCase()+t.slice(1):t)}),Gs=mn(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),Ks=Rn(),Xs=Rn(!0),Ys=mn(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}),$s=mn(function(e,t,n){return e+(n?" ":"")+(t.charAt(0).toUpperCase()+t.slice(1))}),Qs=gi(function(e,t){try{return e.apply(T,t)}catch(n){return Mi(n)?n:new Wo(n)}}),Js=gi(function(e,t){return function(n){return $n(n,e,t)}}),Zs=gi(function(e,t){return function(n){return $n(e,n,t)}}),eu=Dn("ceil"),tu=Dn("floor"),nu=_n(xi,Ta),ru=_n(Vi,Oa),iu=Dn("round");return t.prototype=n.prototype,r.prototype=Da(n.prototype),r.prototype.constructor=r,i.prototype=Da(n.prototype),i.prototype.constructor=i,oe.prototype.delete=Ge,oe.prototype.get=Ke,oe.prototype.has=Xe,oe.prototype.set=Ye,$e.prototype.push=Je,di.Cache=oe,t.after=ci,t.ary=hi,t.assign=Ms,t.at=ns,t.before=fi,t.bind=ms,t.bindAll=gs,t.bindKey=ys,t.callback=ko,t.chain=Hr,t.chunk=dr,t.compact=vr,t.constant=To,t.countBy=rs,t.create=Yi,t.curry=bs,t.curryRight=_s,t.debounce=pi,t.defaults=Ns,t.defaultsDeep=Is,t.defer=Cs,t.delay=ws,t.difference=qa,t.drop=mr,t.dropRight=gr,t.dropRightWhile=yr,t.dropWhile=br,t.fill=_r,t.filter=Qr,t.flatten=wr,t.flattenDeep=xr,t.flow=xs,t.flowRight=Es,t.forEach=as,t.forEachRight=ss,t.forIn=Ls,t.forInRight=Us,t.forOwn=Fs,t.forOwnRight=js,t.functions=$i,t.groupBy=us,t.indexBy=ls,t.initial=Sr,t.intersection=Ka,t.invert=Zi,t.invoke=cs,t.keys=Bs,t.keysIn=eo,t.map=ei,t.mapKeys=Hs,t.mapValues=zs,t.matches=Ro,t.matchesProperty=Ao,t.memoize=di,t.merge=As,t.method=Js,t.methodOf=Zs,t.mixin=Mo,t.modArgs=Ss,t.negate=vi,t.omit=Ws,t.once=mi,t.pairs=to,t.partial=ks,t.partialRight=Ts,t.partition=hs,t.pick=qs,t.pluck=ti,t.property=Po,t.propertyOf=Do,t.pull=Or,t.pullAt=Xa,t.range=Lo,t.rearg=Os,t.reject=ni,t.remove=Rr,t.rest=Ar,t.restParam=gi,t.set=ro,t.shuffle=ii,t.slice=Mr,t.sortBy=si,t.sortByAll=ds,t.sortByOrder=ui,t.spread=yi,t.take=Nr,t.takeRight=Ir,t.takeRightWhile=Pr,t.takeWhile=Dr,t.tap=zr,t.throttle=bi,t.thru=Wr,t.times=Uo,t.toArray=Ki,t.toPlainObject=Xi,t.transform=io,t.union=Qa,t.uniq=Lr,t.unzip=Ur,t.unzipWith=Fr,t.values=oo,t.valuesIn=ao,t.where=li,t.without=Ja,t.wrap=_i,t.xor=jr,t.zip=Za,t.zipObject=Br,t.zipWith=es,t.backflow=Es,t.collect=ei,t.compose=Es,t.each=as,t.eachRight=ss,t.extend=Ms,t.iteratee=ko,t.methods=$i,t.object=Br,t.select=Qr,t.tail=Ar,t.unique=Lr,Mo(t,t),t.add=jo,t.attempt=Qs,t.camelCase=Vs,t.capitalize=lo,t.ceil=eu,t.clone=Ci,t.cloneDeep=wi,t.deburr=co,t.endsWith=ho,t.escape=fo,t.escapeRegExp=po,t.every=$r,t.find=is,t.findIndex=Va,t.findKey=Ps,t.findLast=os,t.findLastIndex=Ga,t.findLastKey=Ds,t.findWhere=Jr,t.first=Cr,t.floor=tu,t.get=Qi,t.gt=xi,t.gte=Ei,t.has=Ji,t.identity=Oo,t.includes=Zr,t.indexOf=Er,t.inRange=so,t.isArguments=Si,t.isArray=Rs,t.isBoolean=ki,t.isDate=Ti,t.isElement=Oi,t.isEmpty=Ri,t.isEqual=Ai,t.isError=Mi,t.isFinite=Ni,t.isFunction=Ii,t.isMatch=Di,t.isNaN=Li,t.isNative=Ui,t.isNull=Fi,t.isNumber=ji,t.isObject=Pi,t.isPlainObject=Bi,t.isRegExp=Hi,t.isString=zi,t.isTypedArray=Wi,t.isUndefined=qi,t.kebabCase=Gs,t.last=kr,t.lastIndexOf=Tr,t.lt=Vi,t.lte=Gi,t.max=nu,t.min=ru,t.noConflict=No,t.noop=Io,t.now=vs,t.pad=vo,t.padLeft=Ks,t.padRight=Xs,t.parseInt=mo,t.random=uo,t.reduce=fs,t.reduceRight=ps,t.repeat=go,t.result=no,t.round=iu,t.runInContext=k,t.size=oi,t.snakeCase=Ys,t.some=ai,t.sortedIndex=Ya,t.sortedLastIndex=$a,t.startCase=$s,t.startsWith=yo,t.sum=Bo,t.template=bo,t.trim=_o,t.trimLeft=Co,t.trimRight=wo,t.trunc=xo,t.unescape=Eo,t.uniqueId=Fo,t.words=So,t.all=$r,t.any=ai,t.contains=Zr,t.eq=Ai,t.detect=is,t.foldl=fs,t.foldr=ps,t.head=Cr,t.include=Zr,t.inject=fs,Mo(t,function(){var e={};return Mt(t,function(n,r){t.prototype[r]||(e[r]=n)}),e}(),!1),t.sample=ri,t.prototype.sample=function(e){return this.__chain__||null!=e?this.thru(function(t){return ri(t,e)}):ri(this.value())},t.VERSION=O,tt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){t[e].placeholder=t}),tt(["drop","take"],function(e,t){i.prototype[e]=function(n){var r=this.__filtered__;if(r&&!t)return new i(this);n=null==n?1:wa(ya(n)||0,0);var o=this.clone();return r?o.__takeCount__=xa(o.__takeCount__,n):o.__views__.push({size:n,type:e+(o.__dir__<0?"Right":"")}),o},i.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),tt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n!=q;i.prototype[e]=function(e,t){var i=this.clone();return i.__iteratees__.push({iteratee:Hn(e,t,1),type:n}),i.__filtered__=i.__filtered__||r,i}}),tt(["first","last"],function(e,t){var n="take"+(t?"Right":"");i.prototype[e]=function(){return this[n](1).value()[0]}}),tt(["initial","rest"],function(e,t){var n="drop"+(t?"":"Right");i.prototype[e]=function(){return this.__filtered__?new i(this):this[n](1)}}),tt(["pluck","where"],function(e,t){var n=t?"filter":"map",r=t?jt:Po;i.prototype[e]=function(e){return this[n](r(e))}}),i.prototype.compact=function(){return this.filter(Oo)},i.prototype.reject=function(e,t){return e=Hn(e,t,1),this.filter(function(t){return!e(t)})},i.prototype.slice=function(e,t){e=null==e?0:+e||0;var n=this;return n.__filtered__&&(e>0||0>t)?new i(n):(0>e?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==T&&(t=+t||0,n=0>t?n.dropRight(-t):n.take(t-e)),n)},i.prototype.takeRightWhile=function(e,t){return this.reverse().takeWhile(e,t).reverse()},i.prototype.toArray=function(){return this.take(Oa)},Mt(i.prototype,function(e,n){var o=/^(?:filter|map|reject)|While$/.test(n),a=/^(?:first|last)$/.test(n),s=t[a?"take"+("last"==n?"Right":""):n];s&&(t.prototype[n]=function(){var t=a?[1]:arguments,n=this.__chain__,u=this.__wrapped__,l=!!this.__actions__.length,c=u instanceof i,h=t[0],f=c||Rs(u);f&&o&&"function"==typeof h&&1!=h.length&&(c=f=!1);var p=function(e){return a&&n?s(e,1)[0]:s.apply(T,lt([e],t))},d={func:Wr,args:[p],thisArg:T},v=c&&!l;if(a&&!n)return v?(u=u.clone(),u.__actions__.push(d),e.call(u)):s.call(T,this.value())[0];if(!a&&f){u=v?u:new i(this);var m=e.apply(u,t);return m.__actions__.push(d),new r(m,n)}return this.thru(p)})}),tt(["join","pop","push","replace","shift","sort","splice","split","unshift"],function(e){var n=(/^(?:replace|split)$/.test(e)?Zo:Qo)[e],r=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:join|pop|replace|shift)$/.test(e);t.prototype[e]=function(){var e=arguments;return i&&!this.__chain__?n.apply(this.value(),e):this[r](function(t){return n.apply(t,e)})}}),Mt(i.prototype,function(e,n){var r=t[n];if(r){var i=r.name,o=Pa[i]||(Pa[i]=[]);o.push({name:n,func:r})}}),Pa[Nn(T,A).name]=[{name:"wrapper",func:T}],i.prototype.clone=_,i.prototype.reverse=Z,i.prototype.value=re,t.prototype.chain=qr,t.prototype.commit=Vr,t.prototype.concat=ts,t.prototype.plant=Gr,t.prototype.reverse=Kr,t.prototype.toString=Xr,t.prototype.run=t.prototype.toJSON=t.prototype.valueOf=t.prototype.value=Yr,t.prototype.collect=t.prototype.map,t.prototype.head=t.prototype.first,t.prototype.select=t.prototype.filter,t.prototype.tail=t.prototype.rest,t}var T,O="3.10.0",R=1,A=2,M=4,N=8,I=16,P=32,D=64,L=128,U=256,F=30,j="...",B=150,H=16,z=200,W=1,q=2,V="Expected a function",G="__lodash_placeholder__",K="[object Arguments]",X="[object Array]",Y="[object Boolean]",$="[object Date]",Q="[object Error]",J="[object Function]",Z="[object Map]",ee="[object Number]",te="[object Object]",ne="[object RegExp]",re="[object Set]",ie="[object String]",oe="[object WeakMap]",ae="[object ArrayBuffer]",se="[object Float32Array]",ue="[object Float64Array]",le="[object Int8Array]",ce="[object Int16Array]",he="[object Int32Array]",fe="[object Uint8Array]",pe="[object Uint8ClampedArray]",de="[object Uint16Array]",ve="[object Uint32Array]",me=/\b__p \+= '';/g,ge=/\b(__p \+=) '' \+/g,ye=/(__e\(.*?\)|\b__t\)) \+\n'';/g,be=/&(?:amp|lt|gt|quot|#39|#96);/g,_e=/[&<>"'`]/g,Ce=RegExp(be.source),we=RegExp(_e.source),xe=/<%-([\s\S]+?)%>/g,Ee=/<%([\s\S]+?)%>/g,Se=/<%=([\s\S]+?)%>/g,ke=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\n\\]|\\.)*?\1)\]/,Te=/^\w*$/,Oe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\n\\]|\\.)*?)\2)\]/g,Re=/^[:!,]|[\\^$.*+?()[\]{}|\/]|(^[0-9a-fA-Fnrtuvx])|([\n\r\u2028\u2029])/g,Ae=RegExp(Re.source),Me=/[\u0300-\u036f\ufe20-\ufe23]/g,Ne=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Pe=/\w*$/,De=/^0[xX]/,Le=/^\[object .+?Constructor\]$/,Ue=/^\d+$/,Fe=/[\xc0-\xd6\xd8-\xde\xdf-\xf6\xf8-\xff]/g,je=/($^)/,Be=/['\n\r\u2028\u2029\\]/g,He=function(){var e="[A-Z\\xc0-\\xd6\\xd8-\\xde]",t="[a-z\\xdf-\\xf6\\xf8-\\xff]+";return RegExp(e+"+(?="+e+t+")|"+e+"?"+t+"|"+e+"+|[0-9]+","g")}(),ze=["Array","ArrayBuffer","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Math","Number","Object","RegExp","Set","String","_","clearTimeout","isFinite","parseFloat","parseInt","setTimeout","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap"],We=-1,qe={};qe[se]=qe[ue]=qe[le]=qe[ce]=qe[he]=qe[fe]=qe[pe]=qe[de]=qe[ve]=!0,qe[K]=qe[X]=qe[ae]=qe[Y]=qe[$]=qe[Q]=qe[J]=qe[Z]=qe[ee]=qe[te]=qe[ne]=qe[re]=qe[ie]=qe[oe]=!1;var Ve={};Ve[K]=Ve[X]=Ve[ae]=Ve[Y]=Ve[$]=Ve[se]=Ve[ue]=Ve[le]=Ve[ce]=Ve[he]=Ve[ee]=Ve[te]=Ve[ne]=Ve[ie]=Ve[fe]=Ve[pe]=Ve[de]=Ve[ve]=!0,Ve[Q]=Ve[J]=Ve[Z]=Ve[re]=Ve[oe]=!1;var Ge={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss"},Ke={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","`":"&#96;"},Xe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'","&#96;":"`"},Ye={"function":!0,object:!0},$e={0:"x30",1:"x31",2:"x32",3:"x33",4:"x34",5:"x35",6:"x36",7:"x37",8:"x38",9:"x39",A:"x41",B:"x42",C:"x43",D:"x44",E:"x45",F:"x46",a:"x61",b:"x62",c:"x63",d:"x64",e:"x65",f:"x66",n:"x6e",r:"x72",t:"x74",u:"x75",v:"x76",x:"x78"},Qe={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Je=Ye[typeof t]&&t&&!t.nodeType&&t,Ze=Ye[typeof e]&&e&&!e.nodeType&&e,et=Je&&Ze&&"object"==typeof i&&i&&i.Object&&i,tt=Ye[typeof self]&&self&&self.Object&&self,nt=Ye[typeof window]&&window&&window.Object&&window,rt=(Ze&&Ze.exports===Je&&Je,et||nt!==(this&&this.window)&&nt||tt||this),it=k();rt._=it,r=function(){return it}.call(t,n,t,e),!(r!==T&&(e.exports=r))}).call(this)}).call(t,n(288)(e),function(){return this}())},function(e,t){"use strict";var n=!("undefined"==typeof window||!window.document||!window.document.createElement),r={canUseDOM:n,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:n&&!!window.screen,isInWorker:!n};e.exports=r},function(e,t){"use strict";function n(e,t){this.data=e,this.offset=t,this.relativeOffset=0}t.getByte=function(e,t){return e.getUint8(t)},t.getCard8=t.getByte,t.getUShort=function(e,t){return e.getUint16(t,!1)},t.getCard16=t.getUShort,t.getShort=function(e,t){return e.getInt16(t,!1)},t.getULong=function(e,t){return e.getUint32(t,!1)},t.getFixed=function(e,t){var n=e.getInt16(t,!1),r=e.getUint16(t+2,!1);return n+r/65535},t.getTag=function(e,t){for(var n="",r=t;t+4>r;r+=1)n+=String.fromCharCode(e.getInt8(r));return n},t.getOffset=function(e,t,n){for(var r=0,i=0;n>i;i+=1)r<<=8,r+=e.getUint8(t+i);return r},t.getBytes=function(e,t,n){for(var r=[],i=t;n>i;i+=1)r.push(e.getUint8(i));return r},t.bytesToString=function(e){for(var t="",n=0;n<e.length;n+=1)t+=String.fromCharCode(e[n]);return t};var r={"byte":1,uShort:2,"short":2,uLong:4,fixed:4,longDateTime:8,tag:4};n.prototype.parseByte=function(){var e=this.data.getUint8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},n.prototype.parseChar=function(){var e=this.data.getInt8(this.offset+this.relativeOffset);return this.relativeOffset+=1,e},n.prototype.parseCard8=n.prototype.parseByte,n.prototype.parseUShort=function(){var e=this.data.getUint16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},n.prototype.parseCard16=n.prototype.parseUShort,n.prototype.parseSID=n.prototype.parseUShort,n.prototype.parseOffset16=n.prototype.parseUShort,n.prototype.parseShort=function(){var e=this.data.getInt16(this.offset+this.relativeOffset);return this.relativeOffset+=2,e},n.prototype.parseF2Dot14=function(){var e=this.data.getInt16(this.offset+this.relativeOffset)/16384;return this.relativeOffset+=2,e},n.prototype.parseULong=function(){var e=t.getULong(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},n.prototype.parseFixed=function(){var e=t.getFixed(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e},n.prototype.parseOffset16List=n.prototype.parseUShortList=function(e){for(var n=new Array(e),r=this.data,i=this.offset+this.relativeOffset,o=0;e>o;o++)n[o]=t.getUShort(r,i),i+=2;return this.relativeOffset+=2*e,n},n.prototype.parseString=function(e){var t=this.data,n=this.offset+this.relativeOffset,r="";this.relativeOffset+=e;for(var i=0;e>i;i++)r+=String.fromCharCode(t.getUint8(n+i));return r},n.prototype.parseTag=function(){return this.parseString(4)},n.prototype.parseLongDateTime=function(){var e=t.getULong(this.data,this.offset+this.relativeOffset+4);return this.relativeOffset+=8,e},n.prototype.parseFixed=function(){var e=t.getULong(this.data,this.offset+this.relativeOffset);return this.relativeOffset+=4,e/65536},n.prototype.parseVersion=function(){var e=t.getUShort(this.data,this.offset+this.relativeOffset),n=t.getUShort(this.data,this.offset+this.relativeOffset+2);return this.relativeOffset+=4,e+n/4096/10},n.prototype.skip=function(e,t){void 0===t&&(t=1),this.relativeOffset+=r[e]*t},t.Parser=n},function(e,t){e.exports=function(){var e=[];return e.toString=function(){for(var e=[],t=0;t<this.length;t++){var n=this[t];n[2]?e.push("@media "+n[2]+"{"+n[1]+"}"):e.push(n[1])}return e.join("")},e.i=function(t,n){"string"==typeof t&&(t=[[null,t,""]]);for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<t.length;i++){var a=t[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),e.push(a))}},e}},function(e,t,n){function r(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=h[r.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](r.parts[o]);for(;o<r.parts.length;o++)i.parts.push(s(r.parts[o],t))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(s(r.parts[o],t));h[r.id]={id:r.id,refs:1,parts:a}}}}function i(e){for(var t=[],n={},r=0;r<e.length;r++){var i=e[r],o=i[0],a=i[1],s=i[2],u=i[3],l={css:a,media:s,sourceMap:u};n[o]?n[o].parts.push(l):t.push(n[o]={id:o,parts:[l]})}return t}function o(){var e=document.createElement("style"),t=d();return e.type="text/css",t.appendChild(e),e}function a(){var e=document.createElement("link"),t=d();return e.rel="stylesheet",t.appendChild(e),e}function s(e,t){var n,r,i;if(t.singleton){var s=m++;n=v||(v=o()),r=u.bind(null,n,s,!1),i=u.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=a(),r=c.bind(null,n),i=function(){n.parentNode.removeChild(n),n.href&&URL.revokeObjectURL(n.href)}):(n=o(),r=l.bind(null,n),i=function(){n.parentNode.removeChild(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else i()}}function u(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=g(t,i);else{var o=document.createTextNode(i),a=e.childNodes;a[t]&&e.removeChild(a[t]),a.length?e.insertBefore(o,a[t]):e.appendChild(o)}}function l(e,t){var n=t.css,r=t.media;
t.sourceMap;if(r&&e.setAttribute("media",r),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}function c(e,t){var n=t.css,r=(t.media,t.sourceMap);r&&(n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(r))))+" */");var i=new Blob([n],{type:"text/css"}),o=e.href;e.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}var h={},f=function(e){var t;return function(){return"undefined"==typeof t&&(t=e.apply(this,arguments)),t}},p=f(function(){return/msie [6-9]\b/.test(window.navigator.userAgent.toLowerCase())}),d=f(function(){return document.head||document.getElementsByTagName("head")[0]}),v=null,m=0;e.exports=function(e,t){t=t||{},"undefined"==typeof t.singleton&&(t.singleton=p());var n=i(e);return r(n,t),function(e){for(var o=[],a=0;a<n.length;a++){var s=n[a],u=h[s.id];u.refs--,o.push(u)}if(e){var l=i(e);r(l,t)}for(var a=0;a<o.length;a++){var u=o[a];if(0===u.refs){for(var c=0;c<u.parts.length;c++)u.parts[c]();delete h[u.id]}}}};var g=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){"use strict";function n(e,t){if(e&&e.constructor===n)e=e.value;else if(e=(e||"").toString(),t&&e.charAt(0)>="0"&&(e=t+e),e.replace(n.reQTokExt,""))throw new Error("malformed specifier: "+e);this.value=e,this.index=0}e.exports=n,n.prototype.filter=function(e){var t=function(t,n){return-1!==e.indexOf(n)?t:""};return new n(this.value.replace(n.reQTokExt,t))},n.pattern=function(e){return e.toString().replace(n.reQTokExt,"$1")},n.prototype.isEmpty=function(){return""===this.value},n.prototype.pattern=function(){return n.pattern(this.value)},n.prototype.token=function(e){var t=e?this.value.indexOf(e,this.index):this.index;if(-1===t)return void 0;n.reQTokExt.lastIndex=t;var r=n.reQTokExt.exec(this.value);return this.index=n.reQTokExt.lastIndex,r?{quant:r[1],body:r[2],bare:r[3],ext:r[4]}:void 0},n.prototype.get=function(e){var t=this.value.indexOf(e);if(-1===t)return"";n.reQTokExt.lastIndex=t;var r=n.reQTokExt.exec(this.value);return r&&r[2]},n.prototype.tok=function(e){var t=this.value.indexOf(e);if(-1===t)return"";n.reQTokExt.lastIndex=t;var r=n.reQTokExt.exec(this.value);return r&&r[0]},n.prototype.has=function(e){if(1===e.length)return-1!==this.value.indexOf(e);var t=this.value.match(n.reQTokExt);return-1!==t.indexOf(e)},n.prototype.set=function(e,t){var r,i=new n(e,t);for(n.reQTokExt.lastIndex=0;null!==(r=n.reQTokExt.exec(this.value));)i.has(r[1])||(i=i.add(r[0]));return i.sort()},n.prototype.version=function(){return this.get("!")},n.prototype.op=function(){return this.get(".")},n.prototype.type=function(){return this.get("/")},n.prototype.id=function(){return this.get("#")},n.prototype.typeid=function(){return this.filter("/#")},n.prototype.source=function(){return this.token("!").ext},n.prototype.sort=function(){function e(e,t){var r=e.charAt(0),i=t.charAt(0),o=n.quants;return o.indexOf(r)-o.indexOf(i)||t>e}var t=this.value.match(n.reQTokExt);return new n(t?t.sort(e).join(""):"")},n.prototype.add=function(e,t){return e.constructor!==n&&(e=new n(e,t)),new n(this.value+e.value)},n.prototype.toString=function(){return this.value},n.int2base=function(e,t){if(0>e||e>=1<<30)throw new Error("out of range");for(var r="",i=t||5;e||i>0;e>>=6,i--)r=n.base64.charAt(63&e)+r;return r},n.prototype.fits=function(e){for(var t,r=this.value.match(n.reQTokExt),i=e.match(n.reQTokExt);t=i.pop();)if(-1===r.indexOf(t))return!1;return!0},n.base2int=function(e){for(var t=0,r=e.match(n.re64l),i=0;r.length;i+=6)t+=n.base64.indexOf(r.pop())<<i;return t},n.parseToken=function(e){n.reTokExt.lastIndex=-1;var t=n.reTokExt.exec(e);return t?{bare:t[1],ext:t[2]||"swarm"}:null},n.base64="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~",n.rT="[0-9A-Za-z_~]{1,80}",n.reTok=new RegExp("^"+n.rT+"$"),n.re64l=new RegExp("[0-9A-Za-z_~]","g"),n.quants=["/","#","!","."],n.rsTokExt="^(=)(?:\\+(=))?$".replace(/=/g,n.rT),n.reTokExt=new RegExp(n.rsTokExt),n.rsQTokExt="([/#\\.!\\*])((=)(?:\\+(=))?)".replace(/=/g,n.rT),n.reQTokExt=new RegExp(n.rsQTokExt,"g"),n.is=function(e){return null===e||void 0===e?!1:e.constructor===n||""===e.toString().replace(n.reQTokExt,"")},n.as=function(e){return e?e.constructor===n?e:new n(e):new n("")},n.Map=function(e){this.map={},e&&this.add(e)},n.Map.prototype.add=function(e){for(var t,r=new n(e,"!");void 0!==(t=r.token("!"));){var i=t.bare,o=t.ext||"swarm";i>(this.map[o]||"")&&(this.map[o]=i)}},n.Map.prototype.covers=function(e){n.reTokExt.lastIndex=0;var t=n.reTokExt.exec(e),r=t[1],i=t[2]||"swarm";return r<=(this.map[i]||"")},n.Map.prototype.maxTs=function(){var e=null,t=this.map;for(var n in t)(!e||e<t[n])&&(e=t[n]);return e},n.Map.prototype.toString=function(e){e=e||{top:10,rot:"0"};var t=e.top||10,n="!"+(e.rot||"0"),r=[],i=this.map;for(var o in i)r.push("!"+i[o]+("swarm"===o?"":"+"+o));for(r.sort().reverse();r.length>t||r[r.length-1]<=n;)r.pop();return r.join("")||"!0"}},function(e,t,n){"use strict";var r=n(47),i=r({bubbled:null,captured:null}),o=r({topBlur:null,topChange:null,topClick:null,topCompositionEnd:null,topCompositionStart:null,topCompositionUpdate:null,topContextMenu:null,topCopy:null,topCut:null,topDoubleClick:null,topDrag:null,topDragEnd:null,topDragEnter:null,topDragExit:null,topDragLeave:null,topDragOver:null,topDragStart:null,topDrop:null,topError:null,topFocus:null,topInput:null,topKeyDown:null,topKeyPress:null,topKeyUp:null,topLoad:null,topMouseDown:null,topMouseMove:null,topMouseOut:null,topMouseOver:null,topMouseUp:null,topPaste:null,topReset:null,topScroll:null,topSelectionChange:null,topSubmit:null,topTextInput:null,topTouchCancel:null,topTouchEnd:null,topTouchMove:null,topTouchStart:null,topWheel:null}),a={topLevelTypes:o,PropagationPhases:i};e.exports=a},function(e,t,n){"use strict";function r(e,t){var n=E.hasOwnProperty(t)?E[t]:null;k.hasOwnProperty(t)&&y(n===w.OVERRIDE_BASE),e.hasOwnProperty(t)&&y(n===w.DEFINE_MANY||n===w.DEFINE_MANY_MERGED)}function i(e,t){if(t){y("function"!=typeof t),y(!f.isValidElement(t));var n=e.prototype;t.hasOwnProperty(C)&&S.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==C){var o=t[i];if(r(n,i),S.hasOwnProperty(i))S[i](e,o);else{var a=E.hasOwnProperty(i),l=n.hasOwnProperty(i),c=o&&o.__reactDontBind,h="function"==typeof o,p=h&&!a&&!l&&!c;if(p)n.__reactAutoBindMap||(n.__reactAutoBindMap={}),n.__reactAutoBindMap[i]=o,n[i]=o;else if(l){var d=E[i];y(a&&(d===w.DEFINE_MANY_MERGED||d===w.DEFINE_MANY)),d===w.DEFINE_MANY_MERGED?n[i]=s(n[i],o):d===w.DEFINE_MANY&&(n[i]=u(n[i],o))}else n[i]=o}}}}function o(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var i=n in S;y(!i);var o=n in e;y(!o),e[n]=r}}}function a(e,t){y(e&&t&&"object"==typeof e&&"object"==typeof t);for(var n in t)t.hasOwnProperty(n)&&(y(void 0===e[n]),e[n]=t[n]);return e}function s(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var i={};return a(i,n),a(i,r),i}}function u(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function l(e,t){var n=t.bind(e);return n}function c(e){for(var t in e.__reactAutoBindMap)if(e.__reactAutoBindMap.hasOwnProperty(t)){var n=e.__reactAutoBindMap[t];e[t]=l(e,p.guard(n,e.constructor.displayName+"."+t))}}var h=n(103),f=(n(20),n(4)),p=n(215),d=n(35),v=n(73),m=(n(74),n(52),n(75)),g=n(2),y=n(1),b=n(47),_=n(16),C=(n(3),_({mixins:null})),w=b({DEFINE_ONCE:null,DEFINE_MANY:null,OVERRIDE_BASE:null,DEFINE_MANY_MERGED:null}),x=[],E={mixins:w.DEFINE_MANY,statics:w.DEFINE_MANY,propTypes:w.DEFINE_MANY,contextTypes:w.DEFINE_MANY,childContextTypes:w.DEFINE_MANY,getDefaultProps:w.DEFINE_MANY_MERGED,getInitialState:w.DEFINE_MANY_MERGED,getChildContext:w.DEFINE_MANY_MERGED,render:w.DEFINE_ONCE,componentWillMount:w.DEFINE_MANY,componentDidMount:w.DEFINE_MANY,componentWillReceiveProps:w.DEFINE_MANY,shouldComponentUpdate:w.DEFINE_ONCE,componentWillUpdate:w.DEFINE_MANY,componentDidUpdate:w.DEFINE_MANY,componentWillUnmount:w.DEFINE_MANY,updateComponent:w.OVERRIDE_BASE},S={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=g({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=g({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=s(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=g({},e.propTypes,t)},statics:function(e,t){o(e,t)}},k={replaceState:function(e,t){m.enqueueReplaceState(this,e),t&&m.enqueueCallback(this,t)},isMounted:function(){var e=d.get(this);return e&&e!==v.currentlyMountingInstance},setProps:function(e,t){m.enqueueSetProps(this,e),t&&m.enqueueCallback(this,t)},replaceProps:function(e,t){m.enqueueReplaceProps(this,e),t&&m.enqueueCallback(this,t)}},T=function(){};g(T.prototype,h.prototype,k);var O={createClass:function(e){var t=function(e,t){this.__reactAutoBindMap&&c(this),this.props=e,this.context=t,this.state=null;var n=this.getInitialState?this.getInitialState():null;y("object"==typeof n&&!Array.isArray(n)),this.state=n};t.prototype=new T,t.prototype.constructor=t,x.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),y(t.prototype.render);for(var n in E)t.prototype[n]||(t.prototype[n]=null);return t.type=t,t},injection:{injectMixin:function(e){x.push(e)}}};e.exports=O},function(e,t,n){"use strict";function r(){m(k.ReactReconcileTransaction&&_)}function i(){this.reinitializeTransaction(),this.dirtyComponentsLength=null,this.callbackQueue=c.getPooled(),this.reconcileTransaction=k.ReactReconcileTransaction.getPooled()}function o(e,t,n,i,o){r(),_.batchedUpdates(e,t,n,i,o)}function a(e,t){return e._mountOrder-t._mountOrder}function s(e){var t=e.dirtyComponentsLength;m(t===g.length),g.sort(a);for(var n=0;t>n;n++){var r=g[n],i=r._pendingCallbacks;if(r._pendingCallbacks=null,p.performUpdateIfNecessary(r,e.reconcileTransaction),i)for(var o=0;o<i.length;o++)e.callbackQueue.enqueue(i[o],r.getPublicInstance())}}function u(e){return r(),_.isBatchingUpdates?void g.push(e):void _.batchedUpdates(u,e)}function l(e,t){m(_.isBatchingUpdates),y.enqueue(e,t),b=!0}var c=n(64),h=n(18),f=(n(20),n(25)),p=n(36),d=n(54),v=n(2),m=n(1),g=(n(3),[]),y=c.getPooled(),b=!1,_=null,C={initialize:function(){this.dirtyComponentsLength=g.length},close:function(){this.dirtyComponentsLength!==g.length?(g.splice(0,this.dirtyComponentsLength),E()):g.length=0}},w={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},x=[C,w];v(i.prototype,d.Mixin,{getTransactionWrappers:function(){return x},destructor:function(){this.dirtyComponentsLength=null,c.release(this.callbackQueue),this.callbackQueue=null,k.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){return d.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),h.addPoolingTo(i);var E=function(){for(;g.length||b;){if(g.length){var e=i.getPooled();e.perform(s,null,e),i.release(e)}if(b){b=!1;var t=y;y=c.getPooled(),t.notifyAll(),c.release(t)}}};E=f.measure("ReactUpdates","flushBatchedUpdates",E);var S={injectReconcileTransaction:function(e){m(e),k.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){m(e),m("function"==typeof e.batchedUpdates),m("boolean"==typeof e.isBatchingUpdates),_=e}},k={ReactReconcileTransaction:null,batchedUpdates:o,enqueueUpdate:u,flushBatchedUpdates:E,injection:S,asap:l};e.exports=k},function(e,t,n){"use strict";function r(e,t,n){var r;for(r=0;r<t.length;r+=1){var i=t[r];this[i.name]=i.value}if(this.tableName=e,this.fields=t,n){var o=Object.keys(n);for(r=0;r<o.length;r+=1){var a=o[r],s=n[a];void 0!==this[a]&&(this[a]=s)}}}var i=n(17),o=n(62).encode,a=n(62).sizeOf;r.prototype.sizeOf=function(){for(var e=0,t=0;t<this.fields.length;t+=1){var n=this.fields[t],r=this[n.name];if(void 0===r&&(r=n.value),"function"==typeof r.sizeOf)e+=r.sizeOf();else{var o=a[n.type];i.assert("function"==typeof o,"Could not find sizeOf function for field"+n.name),e+=o(r)}}return e},r.prototype.encode=function(){return o.TABLE(this)},t.Table=r},function(e,t){function n(e){return function(){return e}}function r(){}r.thatReturns=n,r.thatReturnsFalse=n(!1),r.thatReturnsTrue=n(!0),r.thatReturnsNull=n(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(e){return e},e.exports=r},function(e,t){var n=function(e){var t;for(t in e)if(e.hasOwnProperty(t))return t;return null};e.exports=n},function(e,t){"use strict";t.argument=function(e,t){if(!e)throw new Error(t)},t.assert=t.argument},function(e,t,n){"use strict";var r=n(1),i=function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)},o=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var i=r.instancePool.pop();return r.call(i,e,t,n),i}return new r(e,t,n)},s=function(e,t,n,r,i){var o=this;if(o.instancePool.length){var a=o.instancePool.pop();return o.call(a,e,t,n,r,i),a}return new o(e,t,n,r,i)},u=function(e){var t=this;r(e instanceof t),e.destructor&&e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},l=10,c=i,h=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=l),n.release=u,n},f={addPoolingTo:h,oneArgumentPooler:i,twoArgumentPooler:o,threeArgumentPooler:a,fiveArgumentPooler:s};e.exports=f},function(e,t,n){"use strict";var r=n(116),i={getDOMNode:function(){return r(this)}};e.exports=i},function(e,t){"use strict";var n={current:null};e.exports=n},function(e,t,n){"use strict";function r(e,t){for(var n=Math.min(e.length,t.length),r=0;n>r;r++)if(e.charAt(r)!==t.charAt(r))return r;return e.length===t.length?-1:n}function i(e){var t=R(e);return t&&W.getID(t)}function o(e){var t=a(e);if(t)if(L.hasOwnProperty(t)){var n=L[t];n!==e&&(M(!c(n,t)),L[t]=e)}else L[t]=e;return t}function a(e){return e&&e.getAttribute&&e.getAttribute(D)||""}function s(e,t){var n=a(e);n!==t&&delete L[n],e.setAttribute(D,t),L[t]=e}function u(e){return L.hasOwnProperty(e)&&c(L[e],e)||(L[e]=W.findReactNodeByID(e)),L[e]}function l(e){var t=C.get(e)._rootNodeID;return b.isNullComponentID(t)?null:(L.hasOwnProperty(t)&&c(L[t],t)||(L[t]=W.findReactNodeByID(t)),L[t])}function c(e,t){if(e){M(a(e)===t);var n=W.findReactContainerForID(t);if(n&&O(n,e))return!0}return!1}function h(e){delete L[e]}function f(e){var t=L[e];return t&&c(t,e)?void(z=t):!1}function p(e){z=null,_.traverseAncestors(e,f);var t=z;return z=null,t}function d(e,t,n,r,i){var o=E.mountComponent(e,t,r,T);e._isTopLevel=!0,W._mountImageIntoNode(o,n,i)}function v(e,t,n,r){var i=k.ReactReconcileTransaction.getPooled();i.perform(d,null,e,t,n,i,r),k.ReactReconcileTransaction.release(i)}var m=n(30),g=n(32),y=(n(20),n(4)),b=(n(45),n(72)),_=n(34),C=n(35),w=n(107),x=n(25),E=n(36),S=n(75),k=n(13),T=n(55),O=n(115),R=n(253),A=n(81),M=n(1),N=n(83),I=n(84),P=(n(3),_.SEPARATOR),D=m.ID_ATTRIBUTE_NAME,L={},U=1,F=9,j={},B={},H=[],z=null,W={_instancesByReactRootID:j,scrollMonitor:function(e,t){t()},_updateRootComponent:function(e,t,n,r){return W.scrollMonitor(n,function(){S.enqueueElementInternal(e,t),r&&S.enqueueCallbackInternal(e,r)}),e},_registerComponent:function(e,t){M(t&&(t.nodeType===U||t.nodeType===F)),g.ensureScrollValueMonitoring();var n=W.registerContainer(t);return j[n]=e,n},_renderNewRootComponent:function(e,t,n){var r=A(e,null),i=W._registerComponent(r,t);return k.batchedUpdates(v,r,i,t,n),r},render:function(e,t,n){M(y.isValidElement(e));var r=j[i(t)];if(r){var o=r._currentElement;if(I(o,e))return W._updateRootComponent(r,e,t,n).getPublicInstance();W.unmountComponentAtNode(t)}var a=R(t),s=a&&W.isRenderedByReact(a),u=s&&!r,l=W._renderNewRootComponent(e,t,u).getPublicInstance();return n&&n.call(l),l},constructAndRenderComponent:function(e,t,n){var r=y.createElement(e,t);return W.render(r,n)},constructAndRenderComponentByID:function(e,t,n){var r=document.getElementById(n);return M(r),W.constructAndRenderComponent(e,t,r)},registerContainer:function(e){var t=i(e);return t&&(t=_.getReactRootIDFromNodeID(t)),t||(t=_.createReactRootID()),B[t]=e,t},unmountComponentAtNode:function(e){M(e&&(e.nodeType===U||e.nodeType===F));var t=i(e),n=j[t];return n?(W.unmountComponentFromNode(n,e),delete j[t],delete B[t],!0):!1},unmountComponentFromNode:function(e,t){for(E.unmountComponent(e),t.nodeType===F&&(t=t.documentElement);t.lastChild;)t.removeChild(t.lastChild)},findReactContainerForID:function(e){var t=_.getReactRootIDFromNodeID(e),n=B[t];return n},findReactNodeByID:function(e){var t=W.findReactContainerForID(e);return W.findComponentRoot(t,e)},isRenderedByReact:function(e){if(1!==e.nodeType)return!1;var t=W.getID(e);return t?t.charAt(0)===P:!1},getFirstReactDOM:function(e){for(var t=e;t&&t.parentNode!==t;){if(W.isRenderedByReact(t))return t;t=t.parentNode}return null},findComponentRoot:function(e,t){var n=H,r=0,i=p(t)||e;for(n[0]=i.firstChild,n.length=1;r<n.length;){for(var o,a=n[r++];a;){var s=W.getID(a);s?t===s?o=a:_.isAncestorIDOf(s,t)&&(n.length=r=0,n.push(a.firstChild)):n.push(a.firstChild),a=a.nextSibling}if(o)return n.length=0,o}n.length=0,M(!1)},_mountImageIntoNode:function(e,t,n){if(M(t&&(t.nodeType===U||t.nodeType===F)),n){var i=R(t);if(w.canReuseMarkup(e,i))return;var o=i.getAttribute(w.CHECKSUM_ATTR_NAME);i.removeAttribute(w.CHECKSUM_ATTR_NAME);var a=i.outerHTML;i.setAttribute(w.CHECKSUM_ATTR_NAME,o);var s=r(e,a);" (client) "+e.substring(s-20,s+20)+"\n (server) "+a.substring(s-20,s+20);M(t.nodeType!==F)}M(t.nodeType!==F),N(t,e)},getReactRootID:i,getID:o,setID:s,getNode:u,getNodeFromInstance:l,purgeID:h};x.measureMethods(W,"ReactMount",{_renderNewRootComponent:"_renderNewRootComponent",_mountImageIntoNode:"_mountImageIntoNode"}),e.exports=W},function(e,t,n){e.exports=n(230)},function(e,t){"use strict";function n(e){for(var t=5381,n=0;n<e.length;n++)t=(t<<5)+t+e.charCodeAt(n);return t}function r(e,t,n){var r="log";switch(e.op()){case"error":r="error";break;case"warn":r="warn"}console[r](e.toString(),t,n&&n._id,"@"+(n&&n._host&&n._host._id||""))}var i=e.exports={streams:{},localhost:void 0,multihost:!1,hashfn:n,log:r,debug:!1,trace:!1,isServer:"undefined"==typeof navigator,isBrowser:"object"==typeof navigator,isWebKit:!1,isGecko:!1,isIE:!1,clockType:void 0};if("object"==typeof navigator){var o=navigator.userAgent;i.isWebKit=/AppleWebKit\/(\S+)/.test(o),i.isIE=/MSIE ([^;]+)/.test(o),i.isGecko=/rv:.* Gecko\/\d{8}/.test(o)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){return e&&e[t]}function o(e){return u.default.partial(i,e)}function a(e,t){var n=function(e){return u.default.pick(e,function(e){return e})};return u.default.isEqual(n(e),n(t))}Object.defineProperty(t,"__esModule",{value:!0}),t.hasAttributeFor=o,t.attributesEqual=a;var s=n(5),u=r(s),l={BOLD:"bold",ITALIC:"italic",UNDERLINE:"underline",STRIKETHROUGH:"strikethrough",SUPERSCRIPT:"superscript",SUBSCRIPT:"subscript"};t.ATTR=l},function(e,t,n){"use strict";function r(e,t,n){return n}var i={enableMeasure:!1,storedMeasure:r,measureMethods:function(e,t,n){},measure:function(e,t,n){return n},injection:{injectMeasure:function(e){i.storedMeasure=e}}};e.exports=i},function(e,t,n){"use strict";function r(e,t,n){this.dispatchConfig=e,this.dispatchMarker=t,this.nativeEvent=n;var r=this.constructor.Interface;for(var i in r)if(r.hasOwnProperty(i)){var o=r[i];o?this[i]=o(n):this[i]=n[i]}var s=null!=n.defaultPrevented?n.defaultPrevented:n.returnValue===!1;s?this.isDefaultPrevented=a.thatReturnsTrue:this.isDefaultPrevented=a.thatReturnsFalse,this.isPropagationStopped=a.thatReturnsFalse}var i=n(18),o=n(2),a=n(15),s=n(80),u={type:null,target:s,currentTarget:a.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};o(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e.preventDefault?e.preventDefault():e.returnValue=!1,this.isDefaultPrevented=a.thatReturnsTrue},stopPropagation:function(){var e=this.nativeEvent;e.stopPropagation?e.stopPropagation():e.cancelBubble=!0,this.isPropagationStopped=a.thatReturnsTrue},persist:function(){this.isPersistent=a.thatReturnsTrue},isPersistent:a.thatReturnsFalse,destructor:function(){var e=this.constructor.Interface;for(var t in e)this[t]=null;this.dispatchConfig=null,this.dispatchMarker=null,this.nativeEvent=null}}),r.Interface=u,r.augmentClass=function(e,t){var n=this,r=Object.create(n.prototype);o(r,e.prototype),e.prototype=r,e.prototype.constructor=e,e.Interface=o({},n.Interface,t),e.augmentClass=n.augmentClass,i.addPoolingTo(e,i.threeArgumentPooler)},i.addPoolingTo(r,i.threeArgumentPooler),e.exports=r},function(e,t,n){"use strict";function r(){this._lstn=[","],this._version="";var e=Array.prototype.slice.call(arguments);this._host=e.length&&"Host"===e[e.length-1]._type?e.pop():a.localhost,o.is(e[0])?this._id=new o(e.shift()).id()||this._host.time():"string"==typeof e[0]?this._id=e.shift():(this._id=this._host.time(),this._version="!0");var t=this._host.register(this);return t!==this?t:(this.reset(),this.checkUplink(),this)}function i(e){return e.name?e.name:e.toString().match(/^function\s*([^\s(]+)/)[1]}var o=n(10),a=n(23);e.exports=r,r.types={},r.isOpSink=function(e){return e?e.constructor===Function?!0:e.deliver&&e.deliver.constructor===Function?!0:!1:!1},r.reMethodName=/^[a-z][a-z0-9]*([A-Z][a-z0-9]*)*$/,r.memberClasses={ops:1,neutrals:1,remotes:1,defaults:1,reactions:1,mixins:1},r._default={},r.extend=function(e,t){function n(e){return e&&e.type?e:e&&e.constructor===Function?{type:e,value:void 0}:{type:null,value:e}}function o(e){return function(){var t,n=this.newEventSpec(e),i=Array.prototype.slice.apply(arguments);return r.isOpSink(i[i.length-1])&&(t=i.pop()),i.length?1===i.length&&(i=i[0]):i="",this.deliver(n,i,t)}}var a,s=this;if(e.constructor!==Function){var u=e.toString();e=function(){return s.apply(this,arguments)},a=u}else a=i(e);var l=function(){this.constructor=e,this._neutrals={},this._ops={},this._reactions={};var n,i;if(s._pt){for(n in s._pt._neutrals)this._neutrals[n]=s._pt._neutrals[n];for(n in s._pt._ops)this._ops[n]=s._pt._ops[n]}for(i in t.ops||{})r.reMethodName.test(i)?(this._ops[i]=t.ops[i],this[i]=o(i)):console.warn("invalid op name:",i);for(i in t.neutrals||{})r.reMethodName.test(i)?(this._neutrals[i]=t.neutrals[i],this[i]=o(i)):console.warn("invalid neutral op name:",i);for(i in t.remotes||{})r.reMethodName.test(i)?this[i]=o(i):console.warn("invalid rpc name:",i);(t.mixins||[]).forEach(function(e){for(var t in e)this[t]=e[t]},this);for(i in t)if(r.reMethodName.test(i)){var u=t[i].constructor;if(u===Function)this[i]=t[i];else if(u===String||u===Number)this[i]=t[i];else{if(i in r.memberClasses)continue;console.warn("invalid member:",i,u)}}else console.warn("invalid member name:",i);for(i in t.reactions||{}){var l=t.reactions[i];if(l)switch(typeof l){case"function":this._reactions[i]=[l];break;case"string":this._reactions[i]=[this[i]];break;default:if(l.constructor!==Array)throw new Error("unexpected reaction type");this._reactions[i]=l.map(function(e){switch(typeof e){case"function":return e;case"string":return this[e];default:throw new Error("unexpected reaction type")}},this)}}var c=this;this.callReactions=function(e,t,n){var r=c._super.callReactions;"function"==typeof r&&r.call(this,e,t,n);var i=c._reactions[e.op()];if(i){i.constructor!==Array&&(i=[i]);for(var o=0;o<i.length;o++)i[o]&&i[o].call(this,e,t,n)}},this._super=s.prototype,this._type=a};l.prototype=s.prototype,e.prototype=new l,e._pt=e.prototype;var c,h=e.defaults={};for(c in s.defaults||{})h[c]=n(s.defaults[c]);for(c in t.defaults||{})h[c]=n(t.defaults[c]);return e._super=s,e.extend=this.extend,e.addReaction=this.addReaction,e.removeReaction=this.removeReaction,r.types[a]=e,e},r.addReaction=function(e,t){var n=this.prototype._reactions,r=n[e];return r||(r=n[e]=[]),r.push(t),{op:e,fn:t}},r.removeReaction=function(e){var t=e.op,n=e.fn,r=this.prototype._reactions[t],i=r.indexOf(n);if(-1===i)throw new Error("reaction unknown");for(r[i]=void 0;r.length&&!r[r.length-1];)r.pop()},r.listenerEquals=function(e,t){return!!e&&(e===t||e._src&&e._src===t||e.fn&&e.fn===t||e.sink&&e.sink===t||e.sink&&e.sink.sink&&e.sink.sink===t)},r.extend(r,{spec:function(){return new o("/"+this._type+"#"+this._id)},newEventSpec:function(e){return this.spec().add(this._host.time(),"!").add(e,".")},stateSpec:function(){return this.spec()+(this._version||"")},deliver:function(e,t,n){function r(r,i){console.error(r,e,t,i&&i.stack||i||new Error(r)),"function"==typeof n?n(e.set(".fail"),r):n&&"function"==typeof n.error&&n.error(e,r)}e=o.as(e);var i,s="!"+e.version();if("/#!."!==e.pattern())return r("malformed spec",e);if(!this._id)return r("undead object invoked");if(i=this.validate(e,t))return r("invalid input, "+i,t);if(!this.acl(e,t,n))return r("access violation",e);a.debug&&a.log(e,t,n);try{var u=e.op();if(this._ops[u]){if(this.isReplay(e))return void console.warn("replay",e);this._ops[u].call(this,e,t,n),"init"!==e.op()?(this._oplog&&(this._oplog[e.filter("!.")]=t),this._version=s>this._version?s:this._version+s):t=this.diff("!0"),this.emit(e,t,n)}else this._neutrals[u]?(this._neutrals[u].call(this,e,t,n),this.emit(e,t,n)):this.unimplemented(e,t,n)}catch(l){return r("method execution failed",l)}return e},emit:function(e,t,n){var r=this._lstn,i=e.op(),o=i in this._neutrals;if(r){for(var a=[],s=0;s<r.length;s++){var u=r[s];u&&","!==u&&u!==n&&(o&&u._op!==i||u._op&&u._op!==i||a.push(u))}for(s=0;s<a.length;s++)try{a[s].deliver(e,t,this)}catch(l){console.error(l.message,l.stack)}}this.callReactions(e,t,n)},trigger:function(e,t){var n=this.newEventSpec(e);this.deliver(n,t)},apply:function(e){for(var t in e)if(r.reFieldName.test(t)){var n=this.constructor.defaults[t];this[t]=n&&n.type?new n.type(e[t]):e[t]}},version:function(){var e=new o.Map(this._version+(this._vector||""));if(this._oplog)for(var t in this._oplog)e.add(t);return e},diff:function(e){if(!this._version)return void 0;this.distillLog();var t,n;if(e&&"!0"!=e&&"0"!=e){var r=new o.Map(e||"");for(n in this._oplog)r.covers(new o(n).version())||(t=t||{_tail:{}},t._tail[n]=this._oplog[n])}else{t={_version:"!0",_tail:{}};for(n in this._oplog)t._tail[n]=this._oplog[n]}return t},distillLog:function(){},acl:function(e,t,n){return!0},validate:function(e,t,n){return"/#!."!==e.pattern()?"incomplete event spec":this.clock&&"Host"!==e.type()&&!this.clock.checkTimestamp(e.version())?"invalid timestamp "+e:void 0},isReplay:function(e){if(!this._version)return!1;if("init"===e.op())return!1;var t=e.version();return t>this._version.substr(1)?!1:e.filter("!.").toString()in this._oplog?!0:this.version().covers(t)},hasState:function(){return!!this._version},getListenerIndex:function(e,t){var n,i=this._lstn.indexOf(e);if(i>-1)return i;for(i=0,n=this._lstn.length;n>i;i++){var o=this._lstn[i];if(t&&","===o)return-1;if(r.listenerEquals(o,e))return i}return-1},reset:function(){var e=this.constructor.defaults;for(var t in e){var n=e[t];n.type?this[t]=n.value?new n.type(n.value):new n.type:this[t]=n.value}},neutrals:{on:function(e,t,n){if(n){var r=this;if(!this._version&&t)return void this._lstn.push({_op:"reon",_src:n,deliver:function(){var i=r._lstn.indexOf(this);r._lstn.splice(i,1),r.deliver(e,t,n)}});if(n.constructor===Function&&(n={sink:n,that:this,deliver:function(){this.sink.apply(this.that,arguments)}}),t){t=new o(t,".");var i=t.filter("!"),a=t.get(".");if("init"===a){var s=i?this.diff(i):"";return void n.deliver(e.set(".init"),s,this)}if(a&&(n={sink:n,_op:a,deliver:function(e,t,n){e.op()===a&&this.sink.deliver(e,t,n)}}),!i.isEmpty()){var u=this.diff(i);u&&n.deliver(e.set(".init"),u,this),n.deliver(e.set(".reon"),this.version().toString(),this)}}this._lstn.push(n)}},reon:function(e,t,n){if(t){var r=o.as(t).tok("!"),i=this.diff(r);i&&n.deliver(e.set(".init"),i,this)}},off:function(e,t,n){var r=this.getListenerIndex(n);r>-1&&this._lstn.splice(r,1)},reoff:function(e,t,n){var r=this.getListenerIndex(n);r>-1&&this._lstn.splice(r,1),this._id&&this.checkUplink()},error:function(e,t,n){console.error("something failed:",e,t,"@",n&&n._id)}},ops:{init:function(e,t,n){var r,i={},o=e.filter("/#"),a=this._lstn;if(this._lstn=[],t._version){if(this._oplog){for(r in this._oplog)i[r]=this._oplog[r];this._oplog={}}this._vector&&(this._vector=void 0);for(var s in this)this.hasOwnProperty(s)&&"_"!==s.charAt(0)&&(this[s]=void 0);this.reset(),this.apply(t),this._version=t._version,t._oplog&&(this._oplog=t._oplog),t._vector&&(this._vector=t._vector)}if(t._tail)for(r in t._tail)i[r]=t._tail[r];var u=[];for(r in i)u.push(r);for(u.sort().reverse();r=u.pop();)this.deliver(o.add(r),i[r],this);this._lstn=a}},checkUplink:function(){for(var e,t=this._host.getSources(this.spec()).slice(),n=this,r=0;r<this._lstn.length&&","!=this._lstn[r];r++)if(e=this._lstn[r]){e._src&&(e=e._src);var i=t.indexOf(e);-1===i?e.deliver(this.newEventSpec("off"),"",this):t[i]=void 0}for(r=0;r<t.length;r++)if(e=t[r]){var o=this.newEventSpec("on");this._lstn.unshift({_op:"reon",_src:e,deliver:function(t,r,i){if(t.version()===o.version()){var a=n.getListenerIndex(this);n._lstn[a]=e}}}),e.deliver(o,this.version().toString(),this)}},pojo:function(e){var t={},n=this.constructor.defaults;for(var i in this)if(this.hasOwnProperty(i)&&r.reFieldName.test(i)&&void 0!==this[i]){var o=n[i],a=this[i];t[i]=o&&o.type?a.toJSON&&a.toJSON()||a.toString():a&&a._id?a._id:a}return e&&(t._id=this._id,t._version=this._version,this._vector&&(t._vector=this._vector),this._oplog&&(t._oplog=this._oplog)),t},unimplemented:function(e,t,n){console.warn("method not implemented:",e)},close:function(){var e,t=this._lstn,n=this.spec();for(this._id=null;(e=t.shift())&&","!==e;)e.off(n,null,this);for(;t.length;)t.pop().deliver(n.set(".reoff"),null,this);this._host.unregister(this)},gc:function(){var e=this._lstn;(!e.length||1===e.length&&!e[0])&&this.close()},once:function(e,t){this.on(e,function n(r,i,o){t.constructor===Function?t.call(this,r,i,o):t.deliver(r,i,o),this.off(e,n)})}}),r.reFieldName=/^[a-z][a-z0-9]*([A-Z][a-z0-9]*)*$/,r.stateVersionVector=function(e){var t,n=new o.Map((e._version||"!0")+(e._vector||""));if(e._oplog)for(t in e._oplog)n.add(t);if(e._tail)for(t in e._tail)n.add(t);return n.toString()}},function(e,t){"use strict";function n(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}function r(e,t){t.forEach(function(t){Object.keys(Object(t)).forEach(function(n){e(n,t[n])})})}function i(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];return r(function(t,n){return e[t]=n},n),e}Object.defineProperty(t,"__esModule",{value:!0}),t.isPromise=n,t.eachObject=r,t.assign=i;var o=function(e){return"function"==typeof e};t.isFunction=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(89),s=r(a),u=function(){function e(){i(this,e)}return o(e,[{key:"initialize",value:function(e,t){this.dispatch({config:e,replica:t})}},{key:"initializeCursorModel",value:function(e,t){this.dispatch({cursorSet:e,cursorModel:t})}},{key:"replicaInitialized",value:function(){this.dispatch()}},{key:"replicaUpdated",value:function(){this.dispatch()}},{key:"focusInput",value:function(){this.dispatch()}},{key:"inputFocusLost",value:function(){this.dispatch()}},{key:"reflow",
value:function(){this.dispatch()}},{key:"setRemoteCursorPosition",value:function(e){this.dispatch(e)}},{key:"unsetRemoteCursorPosition",value:function(e){this.dispatch(e)}},{key:"revealRemoteCursorName",value:function(e){this.dispatch(e)}},{key:"navigateLeft",value:function(){this.dispatch()}},{key:"navigateRight",value:function(){this.dispatch()}},{key:"navigateUp",value:function(){this.dispatch()}},{key:"navigateDown",value:function(){this.dispatch()}},{key:"navigatePageUp",value:function(){this.dispatch()}},{key:"navigatePageDown",value:function(){this.dispatch()}},{key:"navigateStart",value:function(){this.dispatch()}},{key:"navigateStartLine",value:function(){this.dispatch()}},{key:"navigateEnd",value:function(){this.dispatch()}},{key:"navigateEndLine",value:function(){this.dispatch()}},{key:"navigateWordLeft",value:function(){this.dispatch()}},{key:"navigateWordRight",value:function(){this.dispatch()}},{key:"navigateToCoordinates",value:function(e){this.dispatch(e)}},{key:"selectionLeft",value:function(){this.dispatch()}},{key:"selectionRight",value:function(){this.dispatch()}},{key:"selectionUp",value:function(){this.dispatch()}},{key:"selectionDown",value:function(){this.dispatch()}},{key:"selectionPageUp",value:function(){this.dispatch()}},{key:"selectionPageDown",value:function(){this.dispatch()}},{key:"selectionStart",value:function(){this.dispatch()}},{key:"selectionStartLine",value:function(){this.dispatch()}},{key:"selectionEnd",value:function(){this.dispatch()}},{key:"selectionEndLine",value:function(){this.dispatch()}},{key:"selectionWordLeft",value:function(){this.dispatch()}},{key:"selectionWordRight",value:function(){this.dispatch()}},{key:"selectionAll",value:function(){this.dispatch()}},{key:"selectToCoordinates",value:function(e){this.dispatch(e)}},{key:"selectWordAtCurrentPosition",value:function(){this.dispatch()}},{key:"copySelection",value:function(e){this.dispatch(e)}},{key:"insertChars",value:function(e,t,n){this.dispatch({value:e,attributes:t,atPosition:n})}},{key:"insertCharsBatch",value:function(e){this.dispatch(e)}},{key:"eraseCharBack",value:function(){this.dispatch()}},{key:"eraseCharForward",value:function(){this.dispatch()}},{key:"eraseWordBack",value:function(){this.dispatch()}},{key:"eraseWordForward",value:function(){this.dispatch()}},{key:"eraseSelection",value:function(){this.dispatch()}},{key:"toggleBold",value:function(){this.dispatch()}},{key:"toggleItalics",value:function(){this.dispatch()}},{key:"toggleUnderline",value:function(){this.dispatch()}},{key:"toggleStrikethrough",value:function(){this.dispatch()}},{key:"toggleSuperscript",value:function(){this.dispatch()}},{key:"toggleSubscript",value:function(){this.dispatch()}},{key:"setActiveAttributes",value:function(){this.dispatch()}},{key:"registerEditorError",value:function(e){this.dispatch(e)}},{key:"dismissEditorError",value:function(){this.dispatch()}}]),e}();t.default=s.default.createActions(u),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){return(e&t)===t}var i=n(1),o={MUST_USE_ATTRIBUTE:1,MUST_USE_PROPERTY:2,HAS_SIDE_EFFECTS:4,HAS_BOOLEAN_VALUE:8,HAS_NUMERIC_VALUE:16,HAS_POSITIVE_NUMERIC_VALUE:48,HAS_OVERLOADED_BOOLEAN_VALUE:64,injectDOMPropertyConfig:function(e){var t=e.Properties||{},n=e.DOMAttributeNames||{},a=e.DOMPropertyNames||{},u=e.DOMMutationMethods||{};e.isCustomAttribute&&s._isCustomAttributeFunctions.push(e.isCustomAttribute);for(var l in t){i(!s.isStandardName.hasOwnProperty(l)),s.isStandardName[l]=!0;var c=l.toLowerCase();if(s.getPossibleStandardName[c]=l,n.hasOwnProperty(l)){var h=n[l];s.getPossibleStandardName[h]=l,s.getAttributeName[l]=h}else s.getAttributeName[l]=c;s.getPropertyName[l]=a.hasOwnProperty(l)?a[l]:l,u.hasOwnProperty(l)?s.getMutationMethod[l]=u[l]:s.getMutationMethod[l]=null;var f=t[l];s.mustUseAttribute[l]=r(f,o.MUST_USE_ATTRIBUTE),s.mustUseProperty[l]=r(f,o.MUST_USE_PROPERTY),s.hasSideEffects[l]=r(f,o.HAS_SIDE_EFFECTS),s.hasBooleanValue[l]=r(f,o.HAS_BOOLEAN_VALUE),s.hasNumericValue[l]=r(f,o.HAS_NUMERIC_VALUE),s.hasPositiveNumericValue[l]=r(f,o.HAS_POSITIVE_NUMERIC_VALUE),s.hasOverloadedBooleanValue[l]=r(f,o.HAS_OVERLOADED_BOOLEAN_VALUE),i(!s.mustUseAttribute[l]||!s.mustUseProperty[l]),i(s.mustUseProperty[l]||!s.hasSideEffects[l]),i(!!s.hasBooleanValue[l]+!!s.hasNumericValue[l]+!!s.hasOverloadedBooleanValue[l]<=1)}}},a={},s={ID_ATTRIBUTE_NAME:"data-reactid",isStandardName:{},getPossibleStandardName:{},getAttributeName:{},getPropertyName:{},getMutationMethod:{},mustUseAttribute:{},mustUseProperty:{},hasSideEffects:{},hasBooleanValue:{},hasNumericValue:{},hasPositiveNumericValue:{},hasOverloadedBooleanValue:{},_isCustomAttributeFunctions:[],isCustomAttribute:function(e){for(var t=0;t<s._isCustomAttributeFunctions.length;t++){var n=s._isCustomAttributeFunctions[t];if(n(e))return!0}return!1},getDefaultValueForProperty:function(e,t){var n,r=a[e];return r||(a[e]=r={}),t in r||(n=document.createElement(e),r[t]=n[t]),r[t]},injection:o};e.exports=s},function(e,t,n){"use strict";var r=n(65),i=n(102),o=n(103),a=n(12),s=n(70),u=n(20),l=n(4),c=(n(45),n(203)),h=n(105),f=n(214),p=n(34),d=n(21),v=n(25),m=n(109),g=n(36),y=n(225),b=n(2),_=n(116),C=n(125);f.inject();var w=l.createElement,x=l.createFactory,E=l.cloneElement,S=v.measure("React","render",d.render),k={Children:{map:i.map,forEach:i.forEach,count:i.count,only:C},Component:o,DOM:c,PropTypes:m,initializeTouchEvents:function(e){r.useTouchEvents=e},createClass:a.createClass,createElement:w,cloneElement:E,createFactory:x,createMixin:function(e){return e},constructAndRenderComponent:d.constructAndRenderComponent,constructAndRenderComponentByID:d.constructAndRenderComponentByID,findDOMNode:_,render:S,renderToString:y.renderToString,renderToStaticMarkup:y.renderToStaticMarkup,unmountComponentAtNode:d.unmountComponentAtNode,isValidElement:l.isValidElement,withContext:s.withContext,__spread:b};"undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:u,InstanceHandles:p,Mount:d,Reconciler:g,TextComponent:h});k.version="0.13.3",e.exports=k},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,v)||(e[v]=p++,h[e[v]]={}),h[e[v]]}var i=n(11),o=n(43),a=n(101),s=n(216),u=n(113),l=n(2),c=n(82),h={},f=!1,p=0,d={topBlur:"blur",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topScroll:"scroll",topSelectionChange:"selectionchange",topTextInput:"textInput",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),m=l({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),s=a.registrationNameDependencies[e],u=i.topLevelTypes,l=0,h=s.length;h>l;l++){var f=s[l];o.hasOwnProperty(f)&&o[f]||(f===u.topWheel?c("wheel")?m.ReactEventListener.trapBubbledEvent(u.topWheel,"wheel",n):c("mousewheel")?m.ReactEventListener.trapBubbledEvent(u.topWheel,"mousewheel",n):m.ReactEventListener.trapBubbledEvent(u.topWheel,"DOMMouseScroll",n):f===u.topScroll?c("scroll",!0)?m.ReactEventListener.trapCapturedEvent(u.topScroll,"scroll",n):m.ReactEventListener.trapBubbledEvent(u.topScroll,"scroll",m.ReactEventListener.WINDOW_HANDLE):f===u.topFocus||f===u.topBlur?(c("focus",!0)?(m.ReactEventListener.trapCapturedEvent(u.topFocus,"focus",n),m.ReactEventListener.trapCapturedEvent(u.topBlur,"blur",n)):c("focusin")&&(m.ReactEventListener.trapBubbledEvent(u.topFocus,"focusin",n),m.ReactEventListener.trapBubbledEvent(u.topBlur,"focusout",n)),o[u.topBlur]=!0,o[u.topFocus]=!0):d.hasOwnProperty(f)&&m.ReactEventListener.trapBubbledEvent(f,d[f],n),o[f]=!0)}},trapBubbledEvent:function(e,t,n){return m.ReactEventListener.trapBubbledEvent(e,t,n)},trapCapturedEvent:function(e,t,n){return m.ReactEventListener.trapCapturedEvent(e,t,n)},ensureScrollValueMonitoring:function(){if(!f){var e=u.refreshScrollValues;m.ReactEventListener.monitorScrollValue(e),f=!0}},eventNameDispatchConfigs:o.eventNameDispatchConfigs,registrationNameModules:o.registrationNameModules,putListener:o.putListener,getListener:o.getListener,deleteListener:o.deleteListener,deleteAllListeners:o.deleteAllListeners});e.exports=m},function(e,t,n){"use strict";var r=(n(4),n(3),{create:function(e){return e},extract:function(e){return e},extractIfFragment:function(e){return e}});e.exports=r},function(e,t,n){"use strict";function r(e){return p+e.toString(36)}function i(e,t){return e.charAt(t)===p||t===e.length}function o(e){return""===e||e.charAt(0)===p&&e.charAt(e.length-1)!==p}function a(e,t){return 0===t.indexOf(e)&&i(t,e.length)}function s(e){return e?e.substr(0,e.lastIndexOf(p)):""}function u(e,t){if(f(o(e)&&o(t)),f(a(e,t)),e===t)return e;var n,r=e.length+d;for(n=r;n<t.length&&!i(t,n);n++);return t.substr(0,n)}function l(e,t){var n=Math.min(e.length,t.length);if(0===n)return"";for(var r=0,a=0;n>=a;a++)if(i(e,a)&&i(t,a))r=a;else if(e.charAt(a)!==t.charAt(a))break;var s=e.substr(0,r);return f(o(s)),s}function c(e,t,n,r,i,o){e=e||"",t=t||"",f(e!==t);var l=a(t,e);f(l||a(e,t));for(var c=0,h=l?s:u,p=e;;p=h(p,t)){var d;if(i&&p===e||o&&p===t||(d=n(p,l,r)),d===!1||p===t)break;f(c++<v)}}var h=n(111),f=n(1),p=".",d=p.length,v=100,m={createReactRootID:function(){return r(h.createReactRootIndex())},createReactID:function(e,t){return e+t},getReactRootIDFromNodeID:function(e){if(e&&e.charAt(0)===p&&e.length>1){var t=e.indexOf(p,1);return t>-1?e.substr(0,t):e}return null},traverseEnterLeave:function(e,t,n,r,i){var o=l(e,t);o!==e&&c(e,o,n,r,!1,!0),o!==t&&c(o,t,n,i,!0,!1)},traverseTwoPhase:function(e,t,n){e&&(c("",e,t,n,!0,!1),c(e,"",t,n,!1,!0))},traverseAncestors:function(e,t,n){c("",e,t,n,!0,!1)},_getFirstCommonAncestorID:l,_getNextDescendantID:u,isAncestorIDOf:a,SEPARATOR:p};e.exports=m},function(e,t){"use strict";var n={remove:function(e){e._reactInternalInstance=void 0},get:function(e){return e._reactInternalInstance},has:function(e){return void 0!==e._reactInternalInstance},set:function(e,t){e._reactInternalInstance=t}};e.exports=n},function(e,t,n){"use strict";function r(){i.attachRefs(this,this._currentElement)}var i=n(224),o=(n(45),{mountComponent:function(e,t,n,i){var o=e.mountComponent(t,n,i);return n.getReactMountReady().enqueue(r,e),o},unmountComponent:function(e){i.detachRefs(e,e._currentElement),e.unmountComponent()},receiveComponent:function(e,t,n,o){var a=e._currentElement;if(t!==a||null==t._owner){var s=i.shouldUpdateRefs(a,t);s&&i.detachRefs(e,a),e.receiveComponent(t,n,o),s&&n.getReactMountReady().enqueue(r,e)}},performUpdateIfNecessary:function(e,t){e.performUpdateIfNecessary(t)}});e.exports=o},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e){return f.default.has(e,"id")?e.id:e}function a(e,t){return e===t?!0:e?o(e)===o(t):Object.is(e,t)}function s(e,t){return e===t?!0:e?f.default.isArray(e.chars)&&f.default.isArray(t.chars)&&e.chars.length!==t.chars.length?!1:f.default.isEqual(e.start,t.start)&&f.default.isEqual(e.end,t.end)&&f.default.isEqual(e.chunks,t.chunks)?f.default.isEqual(e.chars,t.chars):!1:Object.is(e,t)}function u(e,t){if(e===t)return!0;if(!e||!f.default.isArray(e))return Object.is(e,t);if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!a(e[n],t[n]))return!1;return!0}function l(e,t,n){if(f.default.isUndefined(n)&&(n=!1),!e||0===e.length)return{line:v,index:-1,endOfLine:null};if(a(e[0].start,t))return{line:e[0],index:0,endOfLine:!a(t,p.BASE_CHAR)};if(a(e[e.length-1].end,t))return{line:e[e.length-1],index:e.length-1,endOfLine:!0};for(var r=0;r<e.length;r++){var i=e[r];if(i.hasChar(t)){var o=r,s=a(t,i.end);return n&&s&&!i.isEof()&&e.length-1>r&&(o++,i=e[o]),{line:i,index:o,endOfLine:s}}}return null}Object.defineProperty(t,"__esModule",{value:!0});var c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.charId=o,t.charEq=a,t.linesEq=s,t.charArrayEq=u,t.lineContainingChar=l;var h=n(5),f=r(h),p=n(39),d=function(){function e(t,n,r,o,a){i(this,e),this.chars=t,this.chunks=n,this.start=r,this.end=o,this.advance=a}return c(e,[{key:"hasChar",value:function(e){var t=this;return e?(this._charIds||(this._charIds=new Set,this.chars.forEach(function(e){return t._charIds.add(e.id)})),this._charIds.has(o(e))):!1}},{key:"first",value:function(){return this.chars.length>0?this.chars[0]:null}},{key:"toString",value:function(){var e="-";if(this.chars.length>0){var t=this.chars.map(function(e){return"\n"===e.char?"↵":e.char});if(t.length>13){var n=t.slice(0,5).join(""),r=t.slice(t.length-5).join("");e=n+"…"+r}else e=t.join("")}var i=this.chars.length>1?this.first().toString():"",o=this.chars.length>2?this.chars[1].toString():"",a=i.length>0&&o.length>0?i+" "+o:i+o,s=this.chars.length>1?this.chars[this.chars.length-2].toString():"",u=s.length>0?s+" "+this.end.toString():this.end.toString(),l=a.length>0?a+" … "+u:u;return"["+e+"] start="+this.start.toString()+" chars=["+l+"] adv="+this.advance+"}"}},{key:"isHard",value:function(){return"\n"===this.end.char}},{key:"isEof",value:function(){return this.end===p.EOF}},{key:"indexOf",value:function(e){for(var t=0;t<this.chars.length;t++)if(a(this.chars[t],e))return t;return-1}},{key:"charsBetween",value:function(e,t){var n=0,r=this.chars.length;return a(e,this.start)||(n=this.indexOf(e)+1),t===p.EOF||a(t,this.end)||(r=this.indexOf(t)+1),this.chars.slice(n,r)}},{key:"charsTo",value:function(e){return this.chars.slice(0,this.indexOf(e)+1)}}]),e}();t.Line=d;var v=new d([],[],p.BASE_CHAR,p.EOF,0)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t,n,r){if(!e)return Object.is(e,t);if(n||(n=a.default.isEqual),r){for(var i=0;i<r.length;i++){var o=r[i];if(!n(o(e),o(t)))return!1}return!0}return n(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var o=n(5),a=r(o);t.default={deepEquals:i},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(5),s=r(a),u=n(1),l=r(u),c=n(10),h=r(c),f=n(27),p=r(f),d=n(59),v=function(){function e(t,n,r,o){i(this,e),this.id=t,this.char=n,this.deletedIds=s.default.isArray(r)?new Set(r):r,this._attributes=o?Object.freeze(o):null}return o(e,[{key:"copyOfAttributes",value:function(){return this._attributes?s.default.clone(this._attributes):null}},{key:"toString",value:function(){var e=this.char.replace("\n","↵").replace(" ","␣");return e+" ("+this.id+")}"}},{key:"attributes",get:function(){return this._attributes},set:function(e){this._attributes=e?Object.freeze(e):null}}]),e}(),m=new v("00000+swarm","",null,null),g=-1,y=function(){function e(){i(this,e),m.deletedIds=new Set,this.chars=[m]}return o(e,[{key:"len",value:function(){return this.chars.length}},{key:"getChar",value:function(e){return l.default(e<this.len(),"Index "+e+" out of bounds."),this.chars[e]}},{key:"insertChar",value:function(e,t,n,r){l.default(0!==e,"Cannot insert at position 0."),l.default(e<=this.len(),"Index "+e+" out of bounds."),this.chars.splice(e,0,new v(n,t,null,this._normalizeAttrs(r)))}},{key:"deleteChar",value:function(e){l.default(0!==e,"Cannot delete position 0."),l.default(e<this.len(),"Index "+e+" out of bounds.");var t=this.chars[e-1],n=this.chars.splice(e,1)[0];t.deletedIds||(t.deletedIds=new Set),t.deletedIds.add(n.id),n.deletedIds&&d.pushSet(n.deletedIds,t.deletedIds)}},{key:"setCharAttr",value:function(e,t){l.default(0!==e,"Cannot set attributes of position 0."),l.default(e<this.len(),"Index "+e+" out of bounds."),this.chars[e].attributes=this._normalizeAttrs(s.default.clone(t))}},{key:"matches",value:function(e,t,n){if(l.default(e<this.len(),"Index out of bounds."),n=n!==!1,s.default.isArray(t)||t.iterator){if(t.iterator||(t=new Set(t)),t.has(this.chars[e].id))return!0;if(n&&this.chars[e].deletedIds)return d.setIntersection(this.chars[e].deletedIds,t).length>0}else{if(t===this.chars[e].id)return!0;if(n&&this.chars[e].deletedIds)return this.chars[e].deletedIds.has(t)}return!1}},{key:"matchCount",value:function(e,t,n){l.default(e<this.len(),"Index out of bounds."),n=n!==!1;var r=0;return s.default.isArray(t)||t.iterator?(t.iterator||(t=new Set(t)),t.has(this.chars[e].id)&&(r+=1),n&&this.chars[e].deletedIds&&(r+=d.setIntersection(this.chars[e].deletedIds,t).length)):(t===this.chars[e].id&&(r+=1),n&&this.chars[e].deletedIds&&this.chars[e].deletedIds.has(t)&&(r+=1)),r}},{key:"text",value:function(){return this.chars.map(function(e){return e.char}).join("")}},{key:"_normalizeAttrs",value:function(e){return e?(Object.keys(e).filter(function(t){return!e[t]}).forEach(function(t){return delete e[t]}),s.default.isEmpty(e)?null:e):null}}]),e}(),b=p.default.extend("Text",{defaults:{data:{type:y},_oplog:Object},ops:{insert:function(e,t,n){for(var r=e.token("!"),i=r.bare,o=i.substr(0,5),a=i.substr(5)||"00",s=h.default.base2int(a),u=void 0,l=t?Object.keys(t):[],c=0;c<this.data.len();c++)for(var f=0;f<l.length;f++){var p=l[f];if(this.data.matches(c,p)){for(var d=t[p].value,v=t[p].attributes,m=c+1;m<this.data.len()&&this.data.getChar(m).id>r.body;)m++;if(m>c+1){var g=this.data.getChar(m-1).id;t[g]=t[p],delete t[p]}else{for(var y=0;y<d.length;y++)u=o+(s?h.default.int2base(s++,2):"")+"+"+r.ext,this.data.insertChar(c+y+1,d.charAt(y),u,v),s||(s=1);c+=d.length}}}u&&this._host.clock.checkTimestamp(u)},remove:function(e,t,n){if(t)for(var r=Object.keys(t),i=1;i<this.data.len();i++)this.data.matches(i,r)&&(this.data.deleteChar(i),i-=1)},setAttributes:function(e,t,n){if(t)for(var r=Object.keys(t),i=1;i<this.data.len();i++)for(var o=0;o<r.length;o++)this.data.matches(i,r[o],!1)&&this.data.setCharAttr(i,t[r[o]])}},text:function(){return this.data.text()},applyDelta:function(e){for(var t=null,n=null,r=1,i=0;i<e.length;i++){var o=e[i];if(o.insert&&(l.default(r>0,"Cannot insert at position 0."),n||(n={}),n[this.data.getChar(r-1).id]={value:o.insert,attributes:o.attributes}),o.delete){l.default(r>0,"Cannot delete position 0."),t||(t={});for(var a=o.delete,s=0;a>s;s++)t[this.data.getChar(r).id]=!0,r+=1}o.retain&&(r+=o.retain)}t&&this.remove(t),n&&this.insert(n)},deltaFromInsert:function(e){for(var t=[],n=0,r=e?Object.keys(e):[],i=0,o=0;o<this.data.len();o++)for(var a=0;a<r.length;a++){var s=r[a];if(this.data.matches(o,s)){o-i>0&&t.push({retain:o-i});var u=e[s].value,l={insert:u},c=e[s].attributes;if(c&&(l.attributes=c),t.push(l),i=o+u.length,n+=1,n>=r.length)return t}}return t},deltaFromRemove:function(e){for(var t=[],n=0,r=Object.keys(e),i=0,o=0;o<this.data.len();o++){var a=this.data.matchCount(o,r);if(a>0&&(o-i>0&&t.push({retain:o-i}),t.push({"delete":a}),i=o,n+=a,n>=r.length))return t}return t},insertCharsAt:function(e,t,n){var r={};r[e.id]={value:t,attributes:n},this.insert(r)},rmChars:function(e){if(e){var t={};if(s.default.isArray(e))for(var n=0;n<e.length;n++)t[e[n].id]=!0;else t[e.id]=!0;this.remove(t)}},set:function(e,t){this.rmChars(this.getTextRange(m)),this.insertCharsAt(m,e,t)},len:function(){return this.data.len()},getChar:function(e){return this.getCharRelativeTo(e,0,"error")},getCharAt:function(e){return this.data.getChar(e)},indexOf:function(e,t){l.default(e,"From char must be defined.");for(var n=s.default.has(e,"id")?e.id:e,r=0;r<this.data.len();r++)if(this.data.matches(r,n,t))return r;return-1},getCharRelativeTo:function(e,t,n){if(l.default(e,"Char must be defined."),s.default.isUndefined(t)&&(t=0),s.default.isUndefined(n)&&(n="wrap"),e===g){if(t>0&&("limit"===n||"eof"===n))return g;if(t>0&&"error"===n)throw new Error("Index out of bounds, past EOF by: "+t);t>0&&"wrap"===n?e=this.data.getChar(this.data.len()-1):(e=this.data.getChar(this.data.len()-1),t+=1)}for(var r=s.default.has(e,"id")?e.id:e,i=0;i<this.data.len();i++)if(this.data.matches(i,r)){var o=i+t;if("wrap"===n)0>o?o=this.data.len()+o:o>=this.data.len()&&(o-=this.data.len());else if("limit"===n)0>o?o=0:o>=this.data.len()&&(o=this.data.len()-1);else if("eof"===n){if(0>o)o=0;else if(o>=this.data.len())return g}else{if("error"!==n)throw new Error("Undefined wrap value: "+n);if(0>o||o>=this.data.len())throw new Error("Index out of bounds: "+o)}return this.getCharAt(o)}},getTextRange:function(e,t){l.default(e,"From char must be defined.");var n=!1,r=[],i=s.default.has(e,"id")?e.id:e,o=void 0;if(s.default.isUndefined(t)||(o=s.default.has(t,"id")?t.id:t),i===o)return r;for(var a=0;a<this.data.len();a++)if(!n&&this.data.matches(a,i)){if(n=!0,i===o)return r.push(this.getCharAt(a)),r}else{if(o&&this.data.matches(a,o))return l.default(n,"From id must precede To id."),r.push(this.getCharAt(a)),r;n&&r.push(this.getCharAt(a))}return r},compareCharPos:function(e,t){if(l.default(e,"First char must be defined."),l.default(t,"Second char must be defined."),e===g&&t===g)return 0;if(e===g)return 1;if(t===g)return-1;for(var n=s.default.has(e,"id")?e.id:e,r=s.default.has(t,"id")?t.id:t,i=!1,o=void 0,a=!1,u=void 0,c=0;c<this.data.len();c++){if(!i&&this.data.matches(c,n)&&(i=!0,o=c,n===r))return 0;if(!a&&this.data.matches(c,r)&&(a=!0,u=c),i&&a)return u>o?-1:o===u?0:1}throw new Error("One or both chars were not found.")}});t.default=b,t.BASE_CHAR=m,t.EOF=g,t.Char=v,t.TextData=y},function(e,t){"use strict";function n(e,t){return parseInt(e.getPropertyValue(t),10)}function r(e,t){return Number(e.getPropertyValue(t).match(/(\d*(\.\d*)?)px/)[1])}function i(e){var t=parseInt(e,10);return Number.isNaN(t)?e:400===t?"normal":700===t?"bold":e}function o(){var e=document.createElement("div");e.style["font-size"]="1px",e.style.display="none",e.style.visibility="hidden",document.body.appendChild(e);var t=getComputedStyle(e,null),n=r(t,"font-size");return document.body.removeChild(e),n}function a(e,t){for(var r=0,i=0,o=!0;e;){var a=getComputedStyle(e,null);if(t&&t(e,a))break;r+=e.offsetLeft,i+=e.offsetTop,i+=n(a,"border-top-width"),r+=n(a,"border-left-width"),o&&(i+=n(a,"padding-top"),r+=n(a,"padding-left")),o=!1,e=e.offsetParent}return{x:r,y:i}}function s(e,t,n){var r=e.getBoundingClientRect(),i=0,o=0;t=t||0,n=n||0;var a=document.documentElement.clientWidth||document.body.clientWidth;r.right<t?i=r.right-t:r.left>a-t&&(i=r.left-a+t);var s=document.documentElement.clientHeight||document.body.clientHeight;return r.top<n?o=r.top-n:r.bottom>s-n&&(o=r.bottom-s+n),{xDelta:i,yDelta:o}}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}Object.defineProperty(t,"__esModule",{value:!0}),t.getNumericStyleProperty=n,t.getPixelStyleProperty=r,t.normalizeFontWeight=i,t.detectMinFontSize=o,t.elementPosition=a,t.scrollByToVisible=s,t.emptyNode=u},function(e,t){"use strict";function n(){this.commands=[],this.fill="black",this.stroke=null,this.strokeWidth=1}n.prototype.moveTo=function(e,t){this.commands.push({type:"M",x:e,y:t})},n.prototype.lineTo=function(e,t){this.commands.push({type:"L",x:e,y:t})},n.prototype.curveTo=n.prototype.bezierCurveTo=function(e,t,n,r,i,o){this.commands.push({type:"C",x1:e,y1:t,x2:n,y2:r,x:i,y:o})},n.prototype.quadTo=n.prototype.quadraticCurveTo=function(e,t,n,r){this.commands.push({type:"Q",x1:e,y1:t,x:n,y:r})},n.prototype.close=n.prototype.closePath=function(){this.commands.push({type:"Z"})},n.prototype.extend=function(e){e.commands&&(e=e.commands),Array.prototype.push.apply(this.commands,e)},n.prototype.draw=function(e){e.beginPath();for(var t=0;t<this.commands.length;t+=1){var n=this.commands[t];"M"===n.type?e.moveTo(n.x,n.y):"L"===n.type?e.lineTo(n.x,n.y):"C"===n.type?e.bezierCurveTo(n.x1,n.y1,n.x2,n.y2,n.x,n.y):"Q"===n.type?e.quadraticCurveTo(n.x1,n.y1,n.x,n.y):"Z"===n.type&&e.closePath()}this.fill&&(e.fillStyle=this.fill,e.fill()),this.stroke&&(e.strokeStyle=this.stroke,e.lineWidth=this.strokeWidth,e.stroke())},n.prototype.toPathData=function(e){function t(t){return Math.round(t)===t?""+Math.round(t):t.toFixed(e)}function n(){for(var e="",n=0;n<arguments.length;n+=1){var r=arguments[n];r>=0&&n>0&&(e+=" "),e+=t(r)}return e}e=void 0!==e?e:2;for(var r="",i=0;i<this.commands.length;i+=1){var o=this.commands[i];"M"===o.type?r+="M"+n(o.x,o.y):"L"===o.type?r+="L"+n(o.x,o.y):"C"===o.type?r+="C"+n(o.x1,o.y1,o.x2,o.y2,o.x,o.y):"Q"===o.type?r+="Q"+n(o.x1,o.y1,o.x,o.y):"Z"===o.type&&(r+="Z")}return r},n.prototype.toSVG=function(e){var t='<path d="';return t+=this.toPathData(e),t+='"',this.fill&"black"!==this.fill&&(t+=null===this.fill?' fill="none"':' fill="'+this.fill+'"'),this.stroke&&(t+=' stroke="'+this.stroke+'" stroke-width="'+this.strokeWidth+'"'),t+="/>"},t.Path=n},function(e,t,n){"use strict";function r(e,t){return null==t||i.hasBooleanValue[e]&&!t||i.hasNumericValue[e]&&isNaN(t)||i.hasPositiveNumericValue[e]&&1>t||i.hasOverloadedBooleanValue[e]&&t===!1}var i=n(30),o=n(261),a=(n(3),{createMarkupForID:function(e){return i.ID_ATTRIBUTE_NAME+"="+o(e)},createMarkupForProperty:function(e,t){if(i.isStandardName.hasOwnProperty(e)&&i.isStandardName[e]){if(r(e,t))return"";var n=i.getAttributeName[e];return i.hasBooleanValue[e]||i.hasOverloadedBooleanValue[e]&&t===!0?n:n+"="+o(t)}return i.isCustomAttribute(e)?null==t?"":e+"="+o(t):null},setValueForProperty:function(e,t,n){if(i.isStandardName.hasOwnProperty(t)&&i.isStandardName[t]){var o=i.getMutationMethod[t];if(o)o(e,n);else if(r(t,n))this.deleteValueForProperty(e,t);else if(i.mustUseAttribute[t])e.setAttribute(i.getAttributeName[t],""+n);else{var a=i.getPropertyName[t];i.hasSideEffects[t]&&""+e[a]==""+n||(e[a]=n)}}else i.isCustomAttribute(t)&&(null==n?e.removeAttribute(t):e.setAttribute(t,""+n))},deleteValueForProperty:function(e,t){if(i.isStandardName.hasOwnProperty(t)&&i.isStandardName[t]){var n=i.getMutationMethod[t];if(n)n(e,void 0);else if(i.mustUseAttribute[t])e.removeAttribute(i.getAttributeName[t]);else{var r=i.getPropertyName[t],o=i.getDefaultValueForProperty(e.nodeName,r);i.hasSideEffects[t]&&""+e[r]===o||(e[r]=o)}}else i.isCustomAttribute(t)&&e.removeAttribute(t)}});e.exports=a},function(e,t,n){"use strict";var r=n(101),i=n(65),o=n(76),a=n(77),s=n(1),u={},l=null,c=function(e){if(e){var t=i.executeDispatch,n=r.getPluginModuleForEvent(e);n&&n.executeDispatch&&(t=n.executeDispatch),i.executeDispatchesInOrder(e,t),e.isPersistent()||e.constructor.release(e)}},h=null,f={injection:{injectMount:i.injection.injectMount,injectInstanceHandle:function(e){h=e},getInstanceHandle:function(){return h},injectEventPluginOrder:r.injectEventPluginOrder,injectEventPluginsByName:r.injectEventPluginsByName},eventNameDispatchConfigs:r.eventNameDispatchConfigs,registrationNameModules:r.registrationNameModules,putListener:function(e,t,n){s(!n||"function"==typeof n);var r=u[t]||(u[t]={});r[e]=n},getListener:function(e,t){var n=u[t];return n&&n[e]},deleteListener:function(e,t){var n=u[t];n&&delete n[e]},deleteAllListeners:function(e){for(var t in u)delete u[t][e]},extractEvents:function(e,t,n,i){for(var a,s=r.plugins,u=0,l=s.length;l>u;u++){var c=s[u];if(c){var h=c.extractEvents(e,t,n,i);h&&(a=o(a,h))}}return a},enqueueEvents:function(e){e&&(l=o(l,e))},processEventQueue:function(){var e=l;l=null,a(e,c),s(!l)},__purge:function(){u={}},__getListenerBank:function(){return u}};e.exports=f},function(e,t,n){"use strict";function r(e,t,n){var r=t.dispatchConfig.phasedRegistrationNames[n];return m(e,r)}function i(e,t,n){var i=t?v.bubbled:v.captured,o=r(e,n,i);o&&(n._dispatchListeners=p(n._dispatchListeners,o),n._dispatchIDs=p(n._dispatchIDs,e))}function o(e){e&&e.dispatchConfig.phasedRegistrationNames&&f.injection.getInstanceHandle().traverseTwoPhase(e.dispatchMarker,i,e)}function a(e,t,n){if(n&&n.dispatchConfig.registrationName){var r=n.dispatchConfig.registrationName,i=m(e,r);i&&(n._dispatchListeners=p(n._dispatchListeners,i),n._dispatchIDs=p(n._dispatchIDs,e))}}function s(e){e&&e.dispatchConfig.registrationName&&a(e.dispatchMarker,null,e)}function u(e){d(e,o)}function l(e,t,n,r){f.injection.getInstanceHandle().traverseEnterLeave(n,r,a,e,t)}function c(e){d(e,s)}var h=n(11),f=n(43),p=n(76),d=n(77),v=h.PropagationPhases,m=f.getListener,g={accumulateTwoPhaseDispatches:u,accumulateDirectDispatches:c,accumulateEnterLeaveDispatches:l};e.exports=g},function(e,t,n){"use strict";function r(){if(y.current){var e=y.current.getName();if(e)return" Check the render method of `"+e+"`."}return""}function i(e){var t=e&&e.getPublicInstance();if(!t)return void 0;var n=t.constructor;return n?n.displayName||n.name||void 0:void 0}function o(){var e=y.current;return e&&i(e)||void 0}function a(e,t){e._store.validated||null!=e.key||(e._store.validated=!0,u('Each child in an array or iterator should have a unique "key" prop.',e,t))}function s(e,t,n){E.test(e)&&u("Child objects should have non-numeric keys so ordering is preserved.",t,n)}function u(e,t,n){var r=o(),a="string"==typeof n?n:n.displayName||n.name,s=r||a,u=w[e]||(w[e]={});if(!u.hasOwnProperty(s)){u[s]=!0;var l="";if(t&&t._owner&&t._owner!==y.current){var c=i(t._owner);l=" It was passed a child from "+c+"."}}}function l(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++){var r=e[n];v.isValidElement(r)&&a(r,t)}else if(v.isValidElement(e))e._store.validated=!0;else if(e){var i=_(e);if(i){if(i!==e.entries)for(var o,u=i.call(e);!(o=u.next()).done;)v.isValidElement(o.value)&&a(o.value,t)}else if("object"==typeof e){var l=m.extractIfFragment(e);for(var c in l)l.hasOwnProperty(c)&&s(c,l[c],t)}}}function c(e,t,n,i){for(var o in t)if(t.hasOwnProperty(o)){var a;try{C("function"==typeof t[o]),a=t[o](n,o,e,i)}catch(s){a=s}if(a instanceof Error&&!(a.message in x)){x[a.message]=!0;r(this)}}}function h(e,t){var n=t.type,r="string"==typeof n?n:n.displayName,i=t._owner?t._owner.getPublicInstance().constructor.displayName:null,o=e+"|"+r+"|"+i;if(!S.hasOwnProperty(o)){S[o]=!0;var a="";r&&(a=" <"+r+" />");var s="";i&&(s=" The element was created by "+i+".")}}function f(e,t){return e!==e?t!==t:0===e&&0===t?1/e===1/t:e===t}function p(e){if(e._store){var t=e._store.originalProps,n=e.props;for(var r in n)n.hasOwnProperty(r)&&(t.hasOwnProperty(r)&&f(t[r],n[r])||(h(r,e),t[r]=n[r]))}}function d(e){if(null!=e.type){var t=b.getComponentClassForElement(e),n=t.displayName||t.name;t.propTypes&&c(n,t.propTypes,e.props,g.prop),"function"==typeof t.getDefaultProps}}var v=n(4),m=n(33),g=n(74),y=(n(52),n(20)),b=n(51),_=n(120),C=n(1),w=(n(3),{}),x={},E=/^\d+$/,S={},k={checkAndWarnForMutatedProps:p,createElement:function(e,t,n){var r=v.createElement.apply(this,arguments);if(null==r)return r;for(var i=2;i<arguments.length;i++)l(arguments[i],e);return d(r),r},createFactory:function(e){var t=k.createElement.bind(null,e);return t.type=e,t},cloneElement:function(e,t,n){for(var r=v.cloneElement.apply(this,arguments),i=2;i<arguments.length;i++)l(arguments[i],r.type);return d(r),
r}};e.exports=k},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(26),o=n(80),a={view:function(e){if(e.view)return e.view;var t=o(e);if(null!=t&&t.window===t)return t;var n=t.ownerDocument;return n?n.defaultView||n.parentWindow:window},detail:function(e){return e.detail||0}};i.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";var r=n(1),i=function(e){var t,n={};r(e instanceof Object&&!Array.isArray(e));for(t in e)e.hasOwnProperty(t)&&(n[t]=t);return n};e.exports=i},function(e,t,n){var r;/*!
    Copyright (c) 2015 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
!function(){"use strict";function i(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e+=" "+n;else if(Array.isArray(n))e+=" "+i.apply(null,n);else if("object"===r)for(var o in n)n.hasOwnProperty(o)&&n[o]&&(e+=" "+o)}}return e.substr(1)}"undefined"!=typeof e&&e.exports?e.exports=i:(r=function(){return i}.call(t,n,t,e),!(void 0!==r&&(e.exports=r)))}()},function(e,t){"use strict";function n(e){this.font=e}function r(e){this.cmap=e}function i(e,t){this.encoding=e,this.charset=t}function o(e){var n;switch(e.version){case 1:this.names=t.standardNames.slice();break;case 2:for(this.names=new Array(e.numberOfGlyphs),n=0;n<e.numberOfGlyphs;n++)e.glyphNameIndex[n]<t.standardNames.length?this.names[n]=t.standardNames[e.glyphNameIndex[n]]:this.names[n]=e.names[e.glyphNameIndex[n]-t.standardNames.length];break;case 2.5:for(this.names=new Array(e.numberOfGlyphs),n=0;n<e.numberOfGlyphs;n++)this.names[n]=t.standardNames[n+e.glyphNameIndex[n]];break;case 3:this.names=[]}}function a(e){for(var t,n=e.tables.cmap.glyphIndexMap,r=Object.keys(n),i=0;i<r.length;i+=1){var o=r[i],a=n[o];t=e.glyphs.get(a),t.addUnicode(parseInt(o))}for(i=0;i<e.glyphs.length;i+=1)t=e.glyphs.get(i),e.cffEncoding?t.name=e.cffEncoding.charset[i]:t.name=e.glyphNames.glyphIndexToName(i)}var s=[".notdef","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","endash","dagger","daggerdbl","periodcentered","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","questiondown","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","ring","cedilla","hungarumlaut","ogonek","caron","emdash","AE","ordfeminine","Lslash","Oslash","OE","ordmasculine","ae","dotlessi","lslash","oslash","oe","germandbls","onesuperior","logicalnot","mu","trademark","Eth","onehalf","plusminus","Thorn","onequarter","divide","brokenbar","degree","thorn","threequarters","twosuperior","registered","minus","eth","multiply","threesuperior","copyright","Aacute","Acircumflex","Adieresis","Agrave","Aring","Atilde","Ccedilla","Eacute","Ecircumflex","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Ntilde","Oacute","Ocircumflex","Odieresis","Ograve","Otilde","Scaron","Uacute","Ucircumflex","Udieresis","Ugrave","Yacute","Ydieresis","Zcaron","aacute","acircumflex","adieresis","agrave","aring","atilde","ccedilla","eacute","ecircumflex","edieresis","egrave","iacute","icircumflex","idieresis","igrave","ntilde","oacute","ocircumflex","odieresis","ograve","otilde","scaron","uacute","ucircumflex","udieresis","ugrave","yacute","ydieresis","zcaron","exclamsmall","Hungarumlautsmall","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","266 ff","onedotenleader","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","commasuperior","threequartersemdash","periodsuperior","questionsmall","asuperior","bsuperior","centsuperior","dsuperior","esuperior","isuperior","lsuperior","msuperior","nsuperior","osuperior","rsuperior","ssuperior","tsuperior","ff","ffi","ffl","parenleftinferior","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","exclamdownsmall","centoldstyle","Lslashsmall","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","Dotaccentsmall","Macronsmall","figuredash","hypheninferior","Ogoneksmall","Ringsmall","Cedillasmall","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","zerosuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall","001.000","001.001","001.002","001.003","Black","Bold","Book","Light","Medium","Regular","Roman","Semibold"],u=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quoteright","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","quoteleft","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdown","cent","sterling","fraction","yen","florin","section","currency","quotesingle","quotedblleft","guillemotleft","guilsinglleft","guilsinglright","fi","fl","","endash","dagger","daggerdbl","periodcentered","","paragraph","bullet","quotesinglbase","quotedblbase","quotedblright","guillemotright","ellipsis","perthousand","","questiondown","","grave","acute","circumflex","tilde","macron","breve","dotaccent","dieresis","","ring","cedilla","","hungarumlaut","ogonek","caron","emdash","","","","","","","","","","","","","","","","","AE","","ordfeminine","","","","","Lslash","Oslash","OE","ordmasculine","","","","","","ae","","","","dotlessi","","","lslash","oslash","oe","germandbls"],l=["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","space","exclamsmall","Hungarumlautsmall","","dollaroldstyle","dollarsuperior","ampersandsmall","Acutesmall","parenleftsuperior","parenrightsuperior","twodotenleader","onedotenleader","comma","hyphen","period","fraction","zerooldstyle","oneoldstyle","twooldstyle","threeoldstyle","fouroldstyle","fiveoldstyle","sixoldstyle","sevenoldstyle","eightoldstyle","nineoldstyle","colon","semicolon","commasuperior","threequartersemdash","periodsuperior","questionsmall","","asuperior","bsuperior","centsuperior","dsuperior","esuperior","","","isuperior","","","lsuperior","msuperior","nsuperior","osuperior","","","rsuperior","ssuperior","tsuperior","","ff","fi","fl","ffi","ffl","parenleftinferior","","parenrightinferior","Circumflexsmall","hyphensuperior","Gravesmall","Asmall","Bsmall","Csmall","Dsmall","Esmall","Fsmall","Gsmall","Hsmall","Ismall","Jsmall","Ksmall","Lsmall","Msmall","Nsmall","Osmall","Psmall","Qsmall","Rsmall","Ssmall","Tsmall","Usmall","Vsmall","Wsmall","Xsmall","Ysmall","Zsmall","colonmonetary","onefitted","rupiah","Tildesmall","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","exclamdownsmall","centoldstyle","Lslashsmall","","","Scaronsmall","Zcaronsmall","Dieresissmall","Brevesmall","Caronsmall","","Dotaccentsmall","","","Macronsmall","","","figuredash","hypheninferior","","","Ogoneksmall","Ringsmall","Cedillasmall","","","","onequarter","onehalf","threequarters","questiondownsmall","oneeighth","threeeighths","fiveeighths","seveneighths","onethird","twothirds","","","zerosuperior","onesuperior","twosuperior","threesuperior","foursuperior","fivesuperior","sixsuperior","sevensuperior","eightsuperior","ninesuperior","zeroinferior","oneinferior","twoinferior","threeinferior","fourinferior","fiveinferior","sixinferior","seveninferior","eightinferior","nineinferior","centinferior","dollarinferior","periodinferior","commainferior","Agravesmall","Aacutesmall","Acircumflexsmall","Atildesmall","Adieresissmall","Aringsmall","AEsmall","Ccedillasmall","Egravesmall","Eacutesmall","Ecircumflexsmall","Edieresissmall","Igravesmall","Iacutesmall","Icircumflexsmall","Idieresissmall","Ethsmall","Ntildesmall","Ogravesmall","Oacutesmall","Ocircumflexsmall","Otildesmall","Odieresissmall","OEsmall","Oslashsmall","Ugravesmall","Uacutesmall","Ucircumflexsmall","Udieresissmall","Yacutesmall","Thornsmall","Ydieresissmall"],c=[".notdef",".null","nonmarkingreturn","space","exclam","quotedbl","numbersign","dollar","percent","ampersand","quotesingle","parenleft","parenright","asterisk","plus","comma","hyphen","period","slash","zero","one","two","three","four","five","six","seven","eight","nine","colon","semicolon","less","equal","greater","question","at","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","bracketleft","backslash","bracketright","asciicircum","underscore","grave","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","braceleft","bar","braceright","asciitilde","Adieresis","Aring","Ccedilla","Eacute","Ntilde","Odieresis","Udieresis","aacute","agrave","acircumflex","adieresis","atilde","aring","ccedilla","eacute","egrave","ecircumflex","edieresis","iacute","igrave","icircumflex","idieresis","ntilde","oacute","ograve","ocircumflex","odieresis","otilde","uacute","ugrave","ucircumflex","udieresis","dagger","degree","cent","sterling","section","bullet","paragraph","germandbls","registered","copyright","trademark","acute","dieresis","notequal","AE","Oslash","infinity","plusminus","lessequal","greaterequal","yen","mu","partialdiff","summation","product","pi","integral","ordfeminine","ordmasculine","Omega","ae","oslash","questiondown","exclamdown","logicalnot","radical","florin","approxequal","Delta","guillemotleft","guillemotright","ellipsis","nonbreakingspace","Agrave","Atilde","Otilde","OE","oe","endash","emdash","quotedblleft","quotedblright","quoteleft","quoteright","divide","lozenge","ydieresis","Ydieresis","fraction","currency","guilsinglleft","guilsinglright","fi","fl","daggerdbl","periodcentered","quotesinglbase","quotedblbase","perthousand","Acircumflex","Ecircumflex","Aacute","Edieresis","Egrave","Iacute","Icircumflex","Idieresis","Igrave","Oacute","Ocircumflex","apple","Ograve","Uacute","Ucircumflex","Ugrave","dotlessi","circumflex","tilde","macron","breve","dotaccent","ring","cedilla","hungarumlaut","ogonek","caron","Lslash","lslash","Scaron","scaron","Zcaron","zcaron","brokenbar","Eth","eth","Yacute","yacute","Thorn","thorn","minus","multiply","onesuperior","twosuperior","threesuperior","onehalf","onequarter","threequarters","franc","Gbreve","gbreve","Idotaccent","Scedilla","scedilla","Cacute","cacute","Ccaron","ccaron","dcroat"];n.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.font.glyphs;if(!n)return null;for(var r=0;r<n.length;r+=1)for(var i=n.get(r),o=0;o<i.unicodes.length;o+=1)if(i.unicodes[o]===t)return r},r.prototype.charToGlyphIndex=function(e){return this.cmap.glyphIndexMap[e.charCodeAt(0)]||0},i.prototype.charToGlyphIndex=function(e){var t=e.charCodeAt(0),n=this.encoding[t];return this.charset.indexOf(n)},o.prototype.nameToGlyphIndex=function(e){return this.names.indexOf(e)},o.prototype.glyphIndexToName=function(e){return this.names[e]},t.cffStandardStrings=s,t.cffStandardEncoding=u,t.cffExpertEncoding=l,t.standardNames=c,t.DefaultEncoding=n,t.CmapEncoding=r,t.CffEncoding=i,t.GlyphNames=o,t.addGlyphNames=a},function(e,t,n){"use strict";var r=n(117),i={componentDidMount:function(){this.props.autoFocus&&r(this.getDOMNode())}};e.exports=i},function(e,t,n){"use strict";function r(e){if("function"==typeof e.type)return e.type;var t=e.type,n=h[t];return null==n&&(h[t]=n=l(t)),n}function i(e){return u(c),new c(e.type,e.props)}function o(e){return new f(e)}function a(e){return e instanceof f}var s=n(2),u=n(1),l=null,c=null,h={},f=null,p={injectGenericComponentClass:function(e){c=e},injectTextComponentClass:function(e){f=e},injectComponentClasses:function(e){s(h,e)},injectAutoWrapper:function(e){l=e}},d={getComponentClassForElement:r,createInternalComponent:i,createInstanceForText:o,isTextComponent:a,injection:p};e.exports=d},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(46),o=n(113),a=n(79),s={screenX:null,screenY:null,clientX:null,clientY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:a,button:function(e){var t=e.button;return"which"in e?t:2===t?2:4===t?1:0},buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},pageX:function(e){return"pageX"in e?e.pageX:e.clientX+o.currentScrollLeft},pageY:function(e){return"pageY"in e?e.pageY:e.clientY+o.currentScrollTop}};i.augmentClass(r,s),e.exports=r},function(e,t,n){"use strict";var r=n(1),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,i,o,a,s,u){r(!this.isInTransaction());var l,c;try{this._isInTransaction=!0,l=!0,this.initializeAll(0),c=e.call(t,n,i,o,a,s,u),l=!1}finally{try{if(l)try{this.closeAll(0)}catch(h){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return c},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n<t.length;n++){var r=t[n];try{this.wrapperInitData[n]=o.OBSERVED_ERROR,this.wrapperInitData[n]=r.initialize?r.initialize.call(this):null}finally{if(this.wrapperInitData[n]===o.OBSERVED_ERROR)try{this.initializeAll(n+1)}catch(i){}}}},closeAll:function(e){r(this.isInTransaction());for(var t=this.transactionWrappers,n=e;n<t.length;n++){var i,a=t[n],s=this.wrapperInitData[n];try{i=!0,s!==o.OBSERVED_ERROR&&a.close&&a.close.call(this,s),i=!1}finally{if(i)try{this.closeAll(n+1)}catch(u){}}}this.wrapperInitData.length=0}},o={Mixin:i,OBSERVED_ERROR:{}};e.exports=o},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t){"use strict";function n(e){return i[e]}function r(e){return(""+e).replace(o,n)}var i={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},o=/[&><"']/g;e.exports=r},function(e,t){"use strict";function n(e,t){var n=t?l:u,r=t?e.prototype:e;return Object.getOwnPropertyNames(r).reduce(function(e,t){return-1!==n.indexOf(t)?e:(e[t]=r[t],e)},{})}function r(e){"undefined"!=typeof console&&console.warn(new ReferenceError(e))}function i(e,t){for(var n=0,r=t;Object.hasOwnProperty.call(e,r);)r=t+String(++n);return r}function o(e){return e.replace(/[a-z]([A-Z])/g,function(e){return e[0]+"_"+e[1].toLowerCase()}).toUpperCase()}function a(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;t>r;r++)n[r-1]=arguments[r];this.dispatch(n.length?[e].concat(n):e)}function s(){}Object.defineProperty(t,"__esModule",{value:!0}),t.getInternalMethods=n,t.warn=r,t.uid=i,t.formatAsConstant=o,t.dispatchIdentity=a;var u=Object.getOwnPropertyNames(s),l=Object.getOwnPropertyNames(s.prototype)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){return 1/t*e}function o(e,t){var n=Math.round(e*g);return n>t?n:t}function a(e){var t=e.attributes;if(!t)return"regular";var n=!1,r=!1;return v.default.isUndefined(t[m.ATTR.BOLD])||(n=t[m.ATTR.BOLD]),v.default.isUndefined(t[m.ATTR.ITALIC])||(r=t[m.ATTR.ITALIC]),n&&r?"boldItalic":n?"bold":r?"italic":"regular"}function s(e,t,n){var r=m.hasAttributeFor(n),i=r(m.ATTR.SUPERSCRIPT),a=r(m.ATTR.SUBSCRIPT);return i||a?o(e,t):e}function u(e,t){var n="Regular"===t.styleName?"":t.styleName+" ",r=e+"px ",i=t.familyName;return n+r+i}function l(e,t,n,r){var o=n.charToGlyph(e);return o.unicode?o.advanceWidth*i(t,r):h(e,t,n)}function c(){var e=y();b().clearRect(0,0,e.width,e.height)}function h(e,t,n){if("\n"===e)return 0;var r=b();return r.font=u(t,n),r.measureText(e).width}function f(e,t,n,r){return _(t,n,r)?l(e,t,n,r):h(e,t,n)}function p(e,t,n,r,i){var o=a(e),u=s(t,r,e.attributes);return f(e.char,u,n[o],i)}Object.defineProperty(t,"__esModule",{value:!0});var d=n(5),v=r(d),m=n(24),g=.65,y=v.default.memoize(function(){return document.createElement("canvas")}),b=v.default.memoize(function(){return y().getContext("2d")}),_=v.default.memoize(function(e,t,n){var r=["111111111111111111111111111111","bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb","iiiiiiiiiiiiiiiiiiiiiiiiiiiiii","wwwwwwwwwwwwwwwwwwwwwwwwwwwwww","Lorem ipsum dolor sit amet, libris essent labitur duo cu."],i=function(r,i){return r+l(i,e,t,n)},o=function(n,r){return n+h(r,e,t)},a=!0,s=!0,f=!1,p=void 0;try{for(var d,v=r[Symbol.iterator]();!(s=(d=v.next()).done);s=!0){var m=d.value,g=m.split(""),y=g.reduce(i,0),b=h(m,e,t),_=Math.abs(y-b);if(_>1){console.warn("OpenType.js NOT reliable on this browser/OS (or font not loaded):\n  Candidate = ["+m+"], Fontspec = "+u(e,t)+", Δ = "+_+"px\n  Falling back to slower canvas measurement mechanism.");var C=g.reduce(o,0),w=Math.abs(b-C);w>1&&console.error("Canvas char-by-char width != canvas text width, oops!\n  Candidate = ["+m+"], Fontspec = "+u(e,t)+", Δ ot = "+_+"px, Δ canvas = "+w+"px\n  Please report this along with your browser/OS details."),a=!1;break}}}catch(x){f=!0,p=x}finally{try{!s&&v.return&&v.return()}finally{if(f)throw p}}return c(),a},function(e,t,n){return u(e,t)+" "+n});t.default={setConfig:function(e){this.config=e},fontScale:function(e){return i(e,this.config.unitsPerEm)},fontSizeFromAttributes:function(e,t){return s(e,this.config.minFontSize,t)},replicaCharAdvance:function(e,t){return p(e,t,this.config.fonts,this.config.minFontSize,this.config.unitsPerEm)},charAdvance:function(e,t,n){return f(e,t,n,this.config.unitsPerEm)},advanceXForSpace:function(e){return this.charAdvance(" ",e,this.config.fonts.regular)},indexAndCursorForXValue:function(e,t,n){var r=this.config.minFontSize;e=e>r?e:r;for(var i=0,o=0,a=0;a<n.length;a++){var s=this.replicaCharAdvance(n[a],e);if(i+s/2>t)return{cursorX:i,index:o};i+=s,s>0&&o++}return{cursorX:i,index:o}},advanceXForChars:function(e,t){var n=this,r=this.config.minFontSize;return e=e>r?e:r,v.default.isArray(t)?t.reduce(function(t,r){return t+n.replicaCharAdvance(r,e)},0):this.replicaCharAdvance(t,e)},lineHeight:function(e){var t=this.config.fonts.bold.tables.head;return(t.yMax-t.yMin)*this.fontScale(e)},top:function(e){var t=this.config.fonts.bold.tables.head;return t.yMax*this.fontScale(e)}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function o(e,t){e.push.apply(e,t)}function a(e,t){if(c.default(t,"Set to push into must be defined."),e){var n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t.add(s)}}catch(u){r=!0,i=u}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}}function s(e,t){return e&&t?[].concat(i(e)).filter(function(e){return t.has(e)}):[]}function u(e,t){console.group&&console.group(e);try{t()}finally{console.groupEnd&&console.groupEnd()}}Object.defineProperty(t,"__esModule",{value:!0}),t.pushArray=o,t.pushSet=a,t.setIntersection=s,t.logInGroup=u;var l=n(1),c=r(l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(5),s=r(a),u=n(1),l=r(u),c=n(89),h=r(c),f=n(24),p=n(29),d=r(p),v=n(39),m=n(59),g=n(159),y=r(g),b=n(154),_=r(b),C=n(158),w=r(C),x=n(58),E=r(x),S=n(37),k=!1,T="delete",O="insert",R="attributes",A=function(){function e(){var t=this;i(this,e),this.exportPublicMethods({getPosition:function(){return t.getPosition()},getRemoteCursors:function(){return t.getRemoteCursors()},getContents:function(){return t.getContents()},getContentsRich:function(){return t.getContentsRich()},getContentsHtml:function(){return t.getContentsHtml()},getContentsText:function(){return t.getContentsText()},getSelection:function(){return t.getSelection()},getSelectionRich:function(){return t.getSelectionRich()},getSelectionHtml:function(){return t.getSelectionHtml()},getSelectionText:function(){return t.getSelectionText()}}),this.bindActions(d.default),this.on("error",function(e){throw console.group("Error Handler"),console.error("Error during dispatch, please report this to https://github.com/ritzyed/ritzy/issues, ideally with a reproduction recipe."),console.log(e.error.message),console.log(e.error.stack),console.log("Payload:"),console.dir(e.payload),console.log("State:"),console.dir(s.default.clone(e.state)),console.groupEnd(),t.registerEditorError(e.error),t.emitChange(),e.error}),this.config=null,this.replica=null,this.state={position:v.BASE_CHAR,positionEolStart:!0,cursorMotion:!1,selectionActive:!1,remoteCursors:{},remoteNameReveal:new Set,activeAttributes:{},focus:!1,loaded:!1,lines:[],error:null}}return o(e,[{key:"initialize",value:function(e){var t=this,n=e.config,r=e.replica;E.default.setConfig(n),this.config=n,this.replica=r,this.setState({focus:n.initialFocus}),this.cursorModel&&this.cursorModel.name!==n.userName&&setTimeout(function(){t.cursorModel.set({name:n.userName})},0)}},{key:"initializeCursorModel",value:function(e){var t=e.cursorSet,n=e.cursorModel;this.cursorSet=t,this.cursorModel=n,this._setRemoteCursorModel()}},{key:"replicaInitialized",value:function(){this.setState({loaded:!0}),this._flow()}},{key:"replicaUpdated",value:function(){var e=this;if(this._flow(),this.state.selectionActive)this._updateSelection(this.state,function(t){e.setState(t),e._setRemoteCursorModel()});else{var t=this._relativeChar(this.state.position,0);S.charEq(this.state.position,t)||(this.setState({position:t}),this._setRemoteCursorModel())}}},{key:"focusInput",value:function(){this._delayedCursorBlink(0),this.setState({focus:!0}),this.config.eventEmitter.emit("focus-gained")}},{key:"inputFocusLost",value:function(){this.setState({focus:!1}),this.config.eventEmitter.emit("focus-lost")}},{key:"reflow",value:function(){this._flow()}},{key:"setRemoteCursorPosition",value:function(e){var t=e._id;if(t){var n=s.default.clone(this.state.remoteCursors),r=n.hasOwnProperty(t);this.config.eventEmitter.hasListeners("remote-cursor-add")&&!r&&this.config.eventEmitter.emit("remote-cursor-add",e),this.config.eventEmitter.hasListeners("remote-cursor-change-name")&&r&&n[t].name!==e.name&&this.config.eventEmitter.emit("remote-cursor-change-name",e,n[t].name,e.name),n[t]=e,this.setState({remoteCursors:n}),this._delayedRemoteCursorNameReveal(t)}}},{key:"unsetRemoteCursorPosition",value:function(e){var t=e._id;if(t){var n=s.default.clone(this.state.remoteCursors);t in n&&(this.config.eventEmitter.hasListeners("remote-cursor-remove")&&this.config.eventEmitter.emit("remote-cursor-remove",e),delete n[t],this.setState({remoteCursors:n}))}}},{key:"revealRemoteCursorName",value:function(e){this._delayedRemoteCursorNameReveal(e._id)}},{key:"getPosition",value:function(){return{"char":this.state.position,eolStart:this.state.positionEolStart}}},{key:"getRemoteCursors",value:function(){return Object.values(this.state.remoteCursors)}},{key:"getContents",value:function(){return this.replica.getTextRange(v.BASE_CHAR)}},{key:"getContentsRich",value:function(){return this._getContentRich(this.getContents())}},{key:"getContentsHtml",value:function(){return _.default(this.getContentsRich())}},{key:"getContentsText",value:function(){return w.default(this.getContentsRich())}},{key:"navigateLeft",value:function(){this._navigateLeftRight(-1)}},{key:"navigateRight",value:function(){this._navigateLeftRight(1)}},{key:"navigateUp",value:function(){this._navigateUpDown(-1)}},{key:"navigateDown",value:function(){this._navigateUpDown(1)}},{key:"navigatePageUp",value:function(){this._navigateUpDown(-10)}},{key:"navigatePageDown",value:function(){this._navigateUpDown(10)}},{key:"navigateStart",value:function(){this._resetPosition()}},{key:"navigateStartLine",value:function(){if(this._emptyEditor())return void this._resetPosition();var e=S.lineContainingChar(this.state.lines,this.state.position,this.state.positionEolStart),t=e.line;this._setPosition(t.start,!0)}},{key:"navigateEnd",value:function(){if(this._emptyEditor())return void this._resetPosition();var e=!1;this._lastLine().isEof()&&(e=!0),this._setPosition(this._relativeChar(v.BASE_CHAR,-1),e)}},{key:"navigateEndLine",value:function(){if(this._emptyEditor())return void this._resetPosition();var e=S.lineContainingChar(this.state.lines,this.state.position,this.state.positionEolStart),t=e.line,n=void 0,r=!1;t.isEof()||0===t.chunks.length?(n=this.state.position,r=!0):n=t.isHard()?this._relativeChar(t.end,-1,"limit"):t.end,this._setPosition(n,r)}},{key:"navigateWordLeft",value:function(){this._navigateWordLeftRight(-1)}},{key:"navigateWordRight",value:function(){this._navigateWordLeftRight(1)}},{key:"navigateToCoordinates",value:function(e){var t=this._coordinatesToPosition(e),n=t.position,r=t.positionEolStart;n=n?n:v.BASE_CHAR,this._setPosition(n,r),this.setState({selectionAnchorChar:n})}},{key:"selectionLeft",value:function(){this._selectionLeftRight(-1)}},{key:"selectionRight",value:function(){this._selectionLeftRight(1)}},{key:"selectionUp",value:function(){this._selectionUpDown(-1)}},{key:"selectionDown",value:function(){this._selectionUpDown(1)}},{key:"selectionPageUp",value:function(){this._selectionUpDown(-10)}},{key:"selectionPageDown",value:function(){this._selectionUpDown(10)}},{key:"selectionStart",value:function(){this._modifySelection(v.BASE_CHAR,!0),this.setActiveAttributes()}},{key:"selectionStartLine",value:function(){var e=S.lineContainingChar(this.state.lines,this.state.position,this.state.positionEolStart),t=e.line;this._modifySelection(t.start,!0),this.setActiveAttributes()}},{key:"selectionEnd",value:function(){var e=this._lastLine()&&this._lastLine().isEof()?v.EOF:this._relativeChar(v.BASE_CHAR,-1);this._modifySelection(e,e===v.EOF),this.setActiveAttributes()}},{key:"selectionEndLine",value:function(){var e=S.lineContainingChar(this.state.lines,this.state.position,this.state.positionEolStart),t=e.line,n=void 0,r=!1;t.isEof()?(n=this.state.position,r=!0):n=t.isHard()?this._relativeChar(t.end,-1,"limit"):t.end,this._modifySelection(n,r),this.setActiveAttributes()}},{key:"selectionWordLeft",value:function(){var e=void 0,t=void 0;this.state.position===v.EOF?(e=this._lastLine().start,t=!0):(e=this._wordStartRelativeTo(this.state.position),t=!S.lineContainingChar(this.state.lines,this.state.position).endOfLine),this._modifySelection(e,t),this.setActiveAttributes()}},{key:"selectionWordRight",value:function(){var e=this._wordEndRelativeTo(this.state.position),t=S.lineContainingChar(this.state.lines,this.state.position).endOfLine;this._modifySelection(e,!t),this.setActiveAttributes()}},{key:"selectionAll",value:function(){if(this._setPosition(v.BASE_CHAR),0===this.state.lines.length)this._modifySelection(v.EOF,!0);else{var e=this._lastLine()&&this._lastLine().isEof()?v.EOF:this._lastLine().end;this._modifySelection(e,!1)}this.setActiveAttributes()}},{key:"selectToCoordinates",value:function(e){var t=this._coordinatesToPosition(e),n=t.position,r=t.positionEolStart;this._modifySelection(n,r)}},{key:"selectWordAtCurrentPosition",value:function(){if(0===this.state.lines.length||S.lineContainingChar(this.state.lines,this.state.position,!0).line.isEof())this._setPosition(this.state.position),this._modifySelection(v.EOF,!0);else{var e=this._wordRelativeTo(this.state.position);this._setPosition(e.start),this._modifySelection(e.end,!1)}this.setActiveAttributes()}},{key:"copySelection",value:function(e){var t=this._getSelectionRich();if(t&&t.length>0){var n=w.default(t),r=_.default(t);e(n,r,t)}}},{key:"getSelection",value:function(){return this.state.selectionActive?this.replica.getTextRange(this.state.selectionLeftChar,this.state.selectionRightChar):null}},{key:"getSelectionRich",value:function(){return this._getSelectionRich()}},{key:"getSelectionHtml",value:function(){return _.default(this._getSelectionRich())}},{key:"getSelectionText",value:function(){return w.default(this._getSelectionRich())}},{key:"insertChars",value:function(e){var t=e.value,n=e.attributes,r=e.atPosition,i=e.reflow;return this._insertChars(t,n,r,i)}},{key:"insertCharsBatch",value:function(e){var t=this,n=this.state.position,r=null;e.forEach(function(e){r=t._insertChars(e.text,e.attrs||null,r,!1)}),this._flow({start:n,end:r,action:"insert"})}},{key:"eraseCharBack",value:function(){if(this.state.selectionActive)this._eraseSelection();else if(!S.charEq(this.state.position,v.BASE_CHAR)){var e=this._relativeChar(this.state.position,-1);this.replica.rmChars(this.state.position),this._flow({start:e,end:this.state.position,action:T}),this.config.eventEmitter.hasListeners("text-delete")&&this.config.eventEmitter.emit("text-delete",e,this.state.position,e);var t=S.lineContainingChar(this.state.lines,e).endOfLine;this._setPosition(e,t),this._updateRemoteCursorSelectionsLocally()}}},{key:"eraseCharForward",value:function(){if(this.state.selectionActive)this._eraseSelection();else if(!this._cursorAtEnd()){var e=this._relativeChar(this.state.position,1,"limit");this.replica.rmChars(e),this._flow({start:this.state.position,end:e,action:T}),this.config.eventEmitter.hasListeners("text-delete")&&this.config.eventEmitter.emit("text-delete",this.state.position,e,this.state.position);var t=S.lineContainingChar(this.state.lines,this.state.position).endOfLine;this._setPosition(this.state.position,t),this._updateRemoteCursorSelectionsLocally()}}},{key:"eraseWordBack",value:function(){if(this.state.selectionActive)this._eraseSelection();else{var e=this.state.position,t=this._wordStartRelativeTo(e),n=e;if(S.charEq(t,e)){var r=this._wordStartRelativeTo(this._relativeChar(e,-1,"limit"));if(t===r)return;n=this._wordEndRelativeTo(t)}var i=this.replica.getTextRange(t,n);this.replica.rmChars(i),this._flow({start:t,end:n,action:T}),this.config.eventEmitter.hasListeners("text-delete")&&this.config.eventEmitter.emit("text-delete",t,n,t);var o=S.lineContainingChar(this.state.lines,t),a=o?o.endOfLine:!0;this._setPosition(t,a),this._updateRemoteCursorSelectionsLocally()}}},{key:"eraseWordForward",value:function(){if(this.state.selectionActive)this._eraseSelection();else{var e=this.state.position,t=void 0;g.isWhitespace(this._relativeChar(e,1,"limit").char)&&(t={includeLeadingSpace:!0});var n=e,r=this._wordEndRelativeTo(n,t);
if(S.charEq(r,e)){var i=this._wordEndRelativeTo(this._relativeChar(e,1,"limit"),t);if(r===i)return;n=this._wordStartRelativeTo(r,t)}var o=this.replica.getTextRange(n,r);this.replica.rmChars(o),this._flow({start:n,end:r,action:T}),this.config.eventEmitter.hasListeners("text-delete")&&this.config.eventEmitter.emit("text-delete",n,r,n);var a=S.lineContainingChar(this.state.lines,n),s=a?a.endOfLine:!0;this._setPosition(n,s),this._updateRemoteCursorSelectionsLocally()}}},{key:"eraseSelection",value:function(){this.state.selectionActive&&this._eraseSelection()}},{key:"toggleBold",value:function(){this._toggleAttribute(f.ATTR.BOLD)}},{key:"toggleItalics",value:function(){this._toggleAttribute(f.ATTR.ITALIC)}},{key:"toggleUnderline",value:function(){this._toggleAttribute(f.ATTR.UNDERLINE)}},{key:"toggleStrikethrough",value:function(){this._toggleAttribute(f.ATTR.STRIKETHROUGH)}},{key:"toggleSuperscript",value:function(){this._toggleAttribute(f.ATTR.SUPERSCRIPT,f.ATTR.SUBSCRIPT)}},{key:"toggleSubscript",value:function(){this._toggleAttribute(f.ATTR.SUBSCRIPT,f.ATTR.SUPERSCRIPT)}},{key:"setActiveAttributes",value:function(){var e=void 0;if(this.state.selectionActive){var t=this.getSelection();if(e=t.length>0?t[0].copyOfAttributes():null,e&&t.length>1)for(var n=function(n){var r=t[n],i=r.attributes;return i?void Object.keys(e).forEach(function(t){e[t]&&!i[t]&&delete e[t]}):(e=null,"break")},r=1;r<t.length&&!s.default.isEmpty(e);r++){var i=n(r);if("break"===i)break}}else e=this.state.position.attributes;this.setState({activeAttributes:e})}},{key:"registerEditorError",value:function(e){this.setState({error:e})}},{key:"dismissEditorError",value:function(){this.setState({error:null})}},{key:"_insertChars",value:function(e,t,n,r){s.default.isUndefined(r)&&(r=!0);var i=void 0;t||(t=this.state.activeAttributes),this.state.selectionActive?(i=this.state.selectionLeftChar,this._eraseSelection()):(i=n?n:this.state.position,i===v.EOF&&(i=this._relativeChar(v.EOF,-1,"limit"))),e=e.replace(/\r\n/g,"\n"),e=e.replace(/\r/g,"\n"),this.replica.insertCharsAt(i,e,t);var o=e.length,a=this._relativeChar(i,o),u="\n"===e.slice(-1);return r&&this._flow({start:i,end:a,action:O}),this.config.eventEmitter.hasListeners("text-insert")&&this.config.eventEmitter.emit("text-insert",i,e,t,a),this._setPosition(a,u),this.setState({activeAttributes:t}),this._updateRemoteCursorSelectionsLocally(),a}},{key:"_relativeChar",value:function(e,t,n){return this.replica.getCharRelativeTo(e,t,n)}},{key:"_flow",value:function(e){var t=this,n=[],r=void 0,a=void 0;if(e){var u=0;r=S.lineContainingChar(this.state.lines,e.start,!0),r&&r.index>0?(u=r.index-1,this.state.lines[u].isHard()&&(u=r.index),m.pushArray(n,this.state.lines.slice(0,u)),a=this.state.lines[u].start):a=v.BASE_CHAR}else a=v.BASE_CHAR;if(k){var c=void 0;c=e?e.action+" "+e.start.toString()+" … "+e.end.toString():"n/a",console.group("FLOW: modification="+c+" startChar="+a.toString())}var h=!1,p=function(){function e(){i(this,e),this.reset()}return o(e,[{key:"reset",value:function(){this.chars=[],this.length=0,this.pendingChunks=[],this.advance=0,this.lineAdvance=0,this.attributes=null,this.lastCharSpace=!1}},{key:"pushChar",value:function(e,t){this.attributes||(this.attributes=e.attributes);var n=E.default.advanceXForChars(t,e);" "===e.char?this.lastCharSpace=!0:this.advance+=n,this.lineAdvance+=n,this.chars.push(e),this.length++}},{key:"popChar",value:function(){return this.length--,this.chars.pop()}},{key:"pushChunks",value:function(){this.length>0&&this.pendingChunks.push({length:this.length,attributes:this.attributes}),this.attributes=null,this.length=0}}]),e}(),d=function(){function e(){i(this,e),this.reset()}return o(e,[{key:"reset",value:function(){this.chars=[],this.chunks=[],this.advance=0,this.start=null,this.end=null}},{key:"pushWord",value:function(e){m.pushArray(this.chars,e.chars);var t=void 0;this.chunks.length>0&&(t=this.chunks[this.chunks.length-1],f.attributesEqual(t.attributes,e.pendingChunks[0].attributes)&&(t.end+=e.pendingChunks[0].length,e.pendingChunks.shift()));var n=t?t.end:0;e.pendingChunks.map(function(e){return e.start=n,e.end=n+e.length,n=e.end,delete e.length,e}),m.pushArray(this.chunks,e.pendingChunks),this.end=this.chars[this.chars.length-1],this.advance+=e.lineAdvance,e.reset()}},{key:"pushNewline",value:function(e){l.default("\n"===e.char,"pushNewline can only be called with a newline char."),this.chars.push(e),this.end=e}},{key:"pushEof",value:function(){this.end=v.EOF}}]),e}(),g=new p,y=new d,b=function(e){if(e.end){var t=new S.Line(e.chars,e.chunks,e.start,e.end,e.advance);n.push(t),k&&console.debug("PUSHED LINE (index="+(n.length-1)+"): "+t.toString()),h=!0}e.reset(),e.start=n.length>0?n[n.length-1].end:v.BASE_CHAR},_=void 0,C=function(i){for(var o=!0;o;){var a=i;if(u=u=l=c=p=d=v=C=w=void 0,o=!1,h&&e&&t.state.lines){if(s.default.isUndefined(_))if(e.action===O)n[n.length-1].hasChar(e.end)&&(_=n.length-r.index,"\n"===e.end.char&&_++);else if(e.action===T){if(n.length>r.index){var u=S.lineContainingChar(t.state.lines,e.end);_=r.index-u.index}}else if(e.action===R&&n[n.length-1].hasChar(e.end)){var u=S.lineContainingChar(t.state.lines,e.end);_=n.length-u.index}if(!s.default.isUndefined(_)){var l=_>n.length?0:n.length-_,c=s.default.clone(g.chars);c.push(a),k&&console.group("MATCH ATTEMPT: chars=["+c.map(function(e){return"\n"===e.char?"↵":e.char}).join("")+"] modLineOffset="+_);for(var p=0,d=!1,v=l;v<t.state.lines.length&&!d;v++){if(p++,k&&console.debug(t.state.lines[v].toString()),S.charArrayEq(c,t.state.lines[v].chars.slice(0,c.length))){var C=t.state.lines.slice(v);C[0].start=n[n.length-1].end,m.pushArray(n,C),d=!0}if(v>l&&t.state.lines[v-1].isHard())break}if(k&&(console.debug("Match "+(d?"succeeded":"failed")+" in "+p+" iterations."),console.groupEnd()),d)return!1}h=!1}if(f.attributesEqual(g.attributes,a.attributes)||g.pushChunks(),"\n"!==a.char&&" "!==a.char&&g.lastCharSpace?(g.pushChunks(),y.pushWord(g),g.pushChar(a,t.config.fontSize)):"\n"===a.char?(g.pushChunks(),y.pushWord(g),y.pushNewline(a),b(y)):g.pushChar(a,t.config.fontSize),!(0===y.advance&&g.advance>t.config.width))return y.advance+g.advance>t.config.width&&b(y),!0;var w=g.popChar();g.pushChunks(),y.pushWord(g),b(y),i=w,o=!0}};y.start=a;for(var w=this.replica.getTextRange(a)[Symbol.iterator](),x=void 0,A=!1;!(x=w.next()).done&&!A;)C(x.value)||(A=!0);A||(g.pushChunks(),y.pushWord(g),b(y),n.length>0&&n[n.length-1].isHard()&&(y.pushEof(),b(y))),this.setState({lines:n}),k&&console.groupEnd()}},{key:"_setRemoteCursorModel",value:function(){var e=this;if(this.cursorModel){var t={state:{position:this.state.position.id,positionEolStart:this.state.positionEolStart,selectionActive:this.state.selectionActive,selectionLeftChar:this.state.selectionActive?S.charId(this.state.selectionLeftChar):null,selectionRightChar:this.state.selectionActive?S.charId(this.state.selectionRightChar):null},ms:Date.now()};setTimeout(function(){e.cursorSet.list().findIndex(function(t){return t._id===e.cursorModel._id})<0&&e.cursorSet.addObject(e.cursorModel),e.cursorModel.set(t)},0)}}},{key:"_setPosition",value:function(e,t,n){s.default.isUndefined(t)&&(t=this.state.positionEolStart),s.default.isUndefined(n)&&(n=!0);var r=this.state.position,i=this.state.selectionActive;this.setState({position:e,positionEolStart:t,selectionActive:!1}),S.charEq(e,r)||this.setState({activeAttributes:e.attributes}),n&&(this.upDownAdvanceX=null,this.upDownPositionEolStart=null),this._delayedCursorBlink(),this._setRemoteCursorModel(),this.config.eventEmitter.hasListeners("position-change")&&this.config.eventEmitter.emit("position-change",this.getPosition()),i&&this.config.eventEmitter.hasListeners("selection-change")&&this.config.eventEmitter.emit("selection-change",null)}},{key:"_resetPosition",value:function(){this._setPosition(v.BASE_CHAR)}},{key:"_delayedCursorBlink",value:function(e){var t=this;s.default.isUndefined(e)&&(e=1e3),this.setState({cursorMotion:!0}),this.cursorMotionTimeout&&clearTimeout(this.cursorMotionTimeout),this.cursorMotionTimeout=setTimeout(function(){t.setState({cursorMotion:!1}),t.cursorMotionTimeout=null},e)}},{key:"_delayedRemoteCursorNameReveal",value:function(e,t){var n=this;s.default.isUndefined(t)&&(t=2e3);var r=new Set(this.state.remoteNameReveal);r.add(e),this.setState({remoteNameReveal:r}),setTimeout(function(){var t=new Set(n.state.remoteNameReveal);t.delete(e),n.setState({remoteNameReveal:t})},t)}},{key:"_lastLine",value:function(){return this.state.lines[this.state.lines.length-1]}},{key:"_emptyEditor",value:function(){return 0===this.state.lines.length&&(this.state.position===v.EOF||S.charEq(this.state.position,v.BASE_CHAR))}},{key:"_cursorAtEnd",value:function(){return this._emptyEditor()||S.charEq(this.state.position,this._lastLine().end)||this._lastLine().isEof()&&S.charEq(this.state.position,this._lastLine().start)}},{key:"_getContentRich",value:function(e){for(var t=this,n=[],r={chars:[],attributes:null,reset:function(){this.chars=[],this.attributes=null},pushChar:function(e){this.attributes||(this.attributes=e.attributes);var t="\n"===e.char;t&&this.pushChunk(),this.chars.push(e.char),t&&this.pushChunk()},pushChunk:function(){this.chars.length>0&&n.push({text:this.chars.join(""),attrs:this.attributes}),this.reset()}},i=function(e){f.attributesEqual(r.attributes,e.attributes)||r.pushChunk(),r.pushChar(e,t)},o=e[Symbol.iterator](),a=void 0;!(a=o.next()).done;)i(a.value);return r.chars.length>0&&r.pushChunk(),n}},{key:"_getSelectionRich",value:function(){var e=this.state.selectionActive?this.replica.getTextRange(this.state.selectionLeftChar,this.state.selectionRightChar):[];return this._getContentRich(e)}},{key:"_modifySelection",value:function(e,t,n){var r=this;if(e){s.default.isUndefined(n)&&(n=!0),this.cursorMotionTimeout&&clearTimeout(this.cursorMotionTimeout);var i={selectionActive:this.state.selectionActive,selectionLeftChar:this.state.selectionLeftChar,selectionRightChar:this.state.selectionRightChar};this.setState(function(n){if(!n.selectionActive){var i=r.replica.compareCharPos(n.position,e);return 0===i?null:{selectionActive:!0,selectionAnchorChar:n.position,selectionLeftChar:0>i?n.position:e,selectionRightChar:i>0?n.position:e,position:e,positionEolStart:t}}if(S.charEq(n.selectionAnchorChar,n.selectionLeftChar)){var o=r.replica.compareCharPos(e,n.selectionAnchorChar);if(0>o)return{selectionRightChar:n.selectionAnchorChar,selectionLeftChar:e,position:e,positionEolStart:t};if(o>0)return{selectionRightChar:e,position:e,positionEolStart:t};r._setPosition(n.selectionAnchorChar,t)}else{var o=r.replica.compareCharPos(n.selectionAnchorChar,e);if(0>o)return{selectionRightChar:e,selectionLeftChar:n.selectionAnchorChar,position:e,positionEolStart:t};if(o>0)return{selectionLeftChar:e,position:e,positionEolStart:t};r._setPosition(n.selectionAnchorChar,t)}}),n&&(this.upDownAdvanceX=null,this.upDownPositionEolStart=null);var o=this.config.eventEmitter.hasListeners("selection-change");i.selectionActive&&!this.state.selectionActive&&o?this.config.eventEmitter.emit("selection-change",null):!this.state.selectionActive||!o||i.selectionActive===this.state.selectionActive&&S.charEq(i.selectionLeftChar,this.state.selectionLeftChar)&&S.charEq(i.selectionRightChar,this.state.selectionRightChar)||this.config.eventEmitter.emit("selection-change",{left:this.state.selectionLeftChar,right:this.state.selectionRightChar}),this._setRemoteCursorModel()}}},{key:"_updateSelection",value:function(e,t){var n=this._relativeChar(e.selectionLeftChar,0),r=this._relativeChar(e.selectionRightChar,0);if(!S.charEq(e.selectionLeftChar,n)||!S.charEq(e.selectionRightChar,r)){var i=this._relativeChar(e.position,0),o=void 0;S.charEq(n,r)?o={selectionActive:!1,position:i}:(o={selectionLeftChar:n,selectionRightChar:r,position:i},e.hasOwnProperty("selectionAnchorChar")&&(o.selectionAnchorChar=this._relativeChar(e.selectionAnchorChar,0))),t(o)}}},{key:"_updateRemoteCursorSelectionsLocally",value:function(){var e=this;Object.values(this.state.remoteCursors).filter(function(e){return e.state.selectionActive}).forEach(function(t){e._updateSelection(t.state,function(n){var r=s.default.merge(s.default.clone(t.state),n);e.setState(function(e){return e.remoteCursors[t._id].state=r,e})})})}},{key:"_charPositionRelativeToIndex",value:function(e,t){return 0===e?this._relativeChar(t[0],-1):t[e-1]}},{key:"_wordRelativeTo",value:function(e,t){for(var n=this.replica.getTextRange(v.BASE_CHAR),r=n.findIndex(function(t){return S.charEq(t,e)})+1,i=y.default(n.map(function(e){return e.char}),t),o=0;o<i.length;o++)if(r>=i[o].start&&r<i[o].end)return{start:0===i[o].start?v.BASE_CHAR:n[i[o].start-1],end:n[i[o].end-1]};var a=i.length-1;return{start:0===i[a].start?v.BASE_CHAR:n[i[a].start-1],end:n[i[a].end-1]}}},{key:"_wordStartRelativeTo",value:function(e,t){var n=this.replica.getTextRange(v.BASE_CHAR,e),r=y.default(n.map(function(e){return e.char}),t);if(r.length>0){var i=r[r.length-1].start;return 1>i?v.BASE_CHAR:n[i-1]}return v.BASE_CHAR}},{key:"_wordEndRelativeTo",value:function(e,t){var n=this.replica.getTextRange(e),r=y.default(n.map(function(e){return e.char}),t);if(r.length>0){var i=r[0].end;return n[i-1]}return this._cursorAtEnd()?v.EOF:this._relativeChar(v.BASE_CHAR,-1)}},{key:"_eraseSelection",value:function(){l.default(this.state.selectionActive,"Selection must be active to erase it.");var e=this.state.selectionLeftChar,t=this.replica.getTextRange(this.state.selectionLeftChar,this.state.selectionRightChar);this.replica.rmChars(t),this._flow({start:this.state.selectionLeftChar,end:this.state.selectionRightChar,action:T}),this.config.eventEmitter.hasListeners("text-delete")&&this.config.eventEmitter.emit("text-delete",this.state.selectionLeftChar,this.state.selectionRightChar,e);var n=S.lineContainingChar(this.state.lines,e).endOfLine;this._setPosition(e,n),this._updateRemoteCursorSelectionsLocally()}},{key:"_navigateLeftRight",value:function(e){var t=void 0;if(this._emptyEditor())return void this._resetPosition();t=this.state.selectionActive&&0>e?this.state.selectionLeftChar:this.state.selectionActive?this.state.selectionRightChar:this._relativeChar(this.state.position,e,"limit");var n=S.lineContainingChar(this.state.lines,t).endOfLine;this._setPosition(t,n)}},{key:"_navigateUpDown",value:function(e){if(this._emptyEditor())return void this._resetPosition();if(this.state.selectionActive){var t=void 0,n=void 0;0>e?(t=this.state.selectionLeftChar,n=!0):this.state.selectionActive&&(t=this.state.selectionRightChar,n=!1),this._setPosition(t,n)}var r=this.upDownAdvanceX,i=this.upDownPositionEolStart,o=this._lineAndAdvanceAtPosition(this.state.position,this.state.positionEolStart),a=o.index;(null==this.upDownAdvanceX||null==this.upDownPositionEolStart)&&(r=o.advanceX,i=this.state.positionEolStart,this.upDownAdvanceX=r,this.upDownPositionEolStart=i);var s=a+e,u=void 0;if(0>s||s>this.state.lines.length-1?0>s&&0!==a?u=this.state.lines[0]:s>this.state.lines.length-1&&a!==this.state.lines.length-1?u=this.state.lines[this.state.lines.length-1]:this._delayedCursorBlink():u=this.state.lines[s],u){var l=void 0;if(u.isEof())l=u.start,i=!0;else{var c=u.chars,h=E.default.indexAndCursorForXValue(this.config.fontSize,r,c);l=this._charPositionRelativeToIndex(h.index,c),i=S.charEq(l,u.start)}this._setPosition(l,i,!1)}}},{key:"_navigateWordLeftRight",value:function(e){var t=void 0;if(this._emptyEditor())return void this._resetPosition();t=this.state.selectionActive&&0>e?this._relativeChar(this.state.selectionLeftChar,1,"limit"):this.state.selectionActive?this._relativeChar(this.state.selectionRightChar,-1,"limit"):this.state.position;var n=s.default.bind(0>e?this._wordStartRelativeTo:this._wordEndRelativeTo,this);t=n(t);var r=S.lineContainingChar(this.state.lines,t).endOfLine;this._setPosition(t,r)}},{key:"_selectionLeftRight",value:function(e){var t=S.lineContainingChar(this.state.lines,this.state.position).endOfLine,n=this._relativeChar(this.state.position,e,"eof");n===v.EOF&&this._lastLine()&&!this._lastLine().isEof()&&(n=this._lastLine().end),this._modifySelection(n,this.state.position===v.EOF&&-1===e||!t),this.setActiveAttributes()}},{key:"_selectionUpDown",value:function(e){var t=this.upDownAdvanceX,n=this.upDownPositionEolStart,r=this._lineAndAdvanceAtPosition(this.state.position,this.state.positionEolStart),i=r.line,o=r.index;(null==this.upDownAdvanceX||null==this.upDownPositionEolStart)&&(t=r.advanceX,n=this.state.positionEolStart,this.upDownAdvanceX=t,this.upDownPositionEolStart=n);var a=o+e;if(0>a)this._modifySelection(v.BASE_CHAR,!0),this.upDownAdvanceX=0,this.upDownPositionEolStart=!0;else if(a>this.state.lines.length-1&&!this._lastLine().isEof()){var s=this._relativeChar(v.BASE_CHAR,-1);this._modifySelection(s,!1);var u=i.chars;this.upDownAdvanceX=E.default.advanceXForChars(this.config.fontSize,u),this.upDownPositionEolStart=!1}else if(a>=this.state.lines.length-1&&this._lastLine().isEof())this._modifySelection(v.EOF,!0,!1);else if(this._emptyEditor())this._resetPosition();else{var l=this.state.lines[a],c=void 0;if(l.isEof())c=l.start,n=!0;else{var u=l.chars,h=E.default.indexAndCursorForXValue(this.config.fontSize,t,u);c=this._charPositionRelativeToIndex(h.index,u),n=S.charEq(c,l.start)}this._modifySelection(c,n,!1)}this.setActiveAttributes()}},{key:"_toggleAttribute",value:function(e,t){if(this.state.selectionActive){var n=this.replica.getTextRange(this.state.selectionLeftChar,this.state.selectionRightChar),r=n.filter(function(t){return!t.attributes||!t.attributes[e]}),i={};if(r&&r.length>0){var o={};o[e]=!0;for(var a=0;a<r.length;a++){var u=r[a].copyOfAttributes();t&&u&&u[t]&&delete u[t],i[r[a].id]=u?s.default.merge(u,o):o}}else for(var a=0;a<n.length;a++){var u=n[a].copyOfAttributes();delete u[e],s.default.isEmpty(u)&&(u=null),i[n[a].id]=u}this.replica.setAttributes(i),this.setActiveAttributes(),this._flow({start:this.state.selectionLeftChar,end:this.state.selectionRightChar,action:R})}else{var l=this.state.activeAttributes?s.default.clone(this.state.activeAttributes):{};l[e]?delete l[e]:l[e]=!0,l&&l[e]&&t&&l[t]&&delete l[t],this.setState({activeAttributes:l})}}},{key:"_lineAndAdvanceAtPosition",value:function(e,t){var n=S.lineContainingChar(this.state.lines,e,t),r=n.line,i=n.index,o=n.endOfLine,a=void 0;if(S.charEq(v.BASE_CHAR,e)||o&&t)a=0;else{var s=r.charsTo(e);a=E.default.advanceXForChars(this.config.fontSize,s)}return{advanceX:a,line:r,index:i,endOfLine:o}}},{key:"_coordinatesToPosition",value:function(e){var t=e.x,n=e.y,r=E.default.lineHeight(this.config.fontSize),i=Math.floor(n/r);0>i?i=0:i>this.state.lines.length-1&&(i=this.state.lines.length-1);var o=this.state.lines[i],a=void 0,s=void 0;if(o)if(o.isEof())a=o.start,s=!0;else{var u=E.default.indexAndCursorForXValue(this.config.fontSize,t,o.chars);a=this._charPositionRelativeToIndex(u.index,o.chars);var l=u.cursorX;s=0===l||o.isEof()}else a=v.BASE_CHAR,s=!1;return{position:a,positionEolStart:s}}},{key:"_attributesForSelection",value:function(){var e=this.getSelection(),t=e.length>0?e[0].copyOfAttributes():{};return t&&e.length>1&&e.slice(1).forEach(function(e){var n=e.attributes;Object.keys(t).forEach(function(e){t[e]&&!n[e]&&delete t[e]})}),t}}]),e}();t.default=h.default.createStore(A),e.exports=t.default},function(e,t,n){"use strict";function r(e,t){if(this.font=e,this.glyphs={},Array.isArray(t))for(var n=0;n<t.length;n++)this.glyphs[n]=t[n];this.length=t&&t.length||0}function i(e,t){return new s.Glyph({index:t,font:e})}function o(e,t,n,r,i,o){return function(){var a=new s.Glyph({index:t,font:e});return a.path=function(){n(a,r,i);var t=o(e.glyphs,a);return t.unitsPerEm=e.unitsPerEm,t},a}}function a(e,t,n,r){return function(){var i=new s.Glyph({index:t,font:e});return i.path=function(){var t=n(e,i,r);return t.unitsPerEm=e.unitsPerEm,t},i}}var s=n(90);r.prototype.get=function(e){return"function"==typeof this.glyphs[e]&&(this.glyphs[e]=this.glyphs[e]()),this.glyphs[e]},r.prototype.push=function(e,t){this.glyphs[e]=t,this.length++},t.GlyphSet=r,t.glyphLoader=i,t.ttfGlyphLoader=o,t.cffGlyphLoader=a},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=n(17),o=32768,a=2147483648,s={},u={},l={};u.BYTE=function(e){return i.argument(e>=0&&255>=e,"Byte value should be between 0 and 255."),[e]},l.BYTE=r(1),u.CHAR=function(e){return[e.charCodeAt(0)]},l.BYTE=r(1),u.CHARARRAY=function(e){for(var t=[],n=0;n<e.length;n+=1)t.push(e.charCodeAt(n));return t},l.CHARARRAY=function(e){return e.length},u.USHORT=function(e){return[e>>8&255,255&e]},l.USHORT=r(2),u.SHORT=function(e){return e>=o&&(e=-(2*o-e)),[e>>8&255,255&e]},l.SHORT=r(2),u.UINT24=function(e){return[e>>16&255,e>>8&255,255&e]},l.UINT24=r(3),u.ULONG=function(e){return[e>>24&255,e>>16&255,e>>8&255,255&e]},l.ULONG=r(4),u.LONG=function(e){return e>=a&&(e=-(2*a-e)),[e>>24&255,e>>16&255,e>>8&255,255&e]},l.LONG=r(4),u.FIXED=u.ULONG,l.FIXED=l.ULONG,u.FWORD=u.SHORT,l.FWORD=l.SHORT,u.UFWORD=u.USHORT,l.UFWORD=l.USHORT,u.LONGDATETIME=function(){return[0,0,0,0,0,0,0,0]},l.LONGDATETIME=r(8),u.TAG=function(e){return i.argument(4===e.length,"Tag should be exactly 4 ASCII characters."),[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]},l.TAG=r(4),u.Card8=u.BYTE,l.Card8=l.BYTE,u.Card16=u.USHORT,l.Card16=l.USHORT,u.OffSize=u.BYTE,l.OffSize=l.BYTE,u.SID=u.USHORT,l.SID=l.USHORT,u.NUMBER=function(e){return e>=-107&&107>=e?[e+139]:e>=108&&1131>=e?(e-=108,[(e>>8)+247,255&e]):e>=-1131&&-108>=e?(e=-e-108,[(e>>8)+251,255&e]):e>=-32768&&32767>=e?u.NUMBER16(e):u.NUMBER32(e)},l.NUMBER=function(e){return u.NUMBER(e).length},u.NUMBER16=function(e){return[28,e>>8&255,255&e]},l.NUMBER16=r(2),u.NUMBER32=function(e){return[29,e>>24&255,e>>16&255,e>>8&255,255&e]},l.NUMBER32=r(4),u.REAL=function(e){var t=e.toString(),n=/\.(\d*?)(?:9{5,20}|0{5,20})\d{0,2}(?:e(.+)|$)/.exec(t);if(n){var r=parseFloat("1e"+((n[2]?+n[2]:0)+n[1].length));t=(Math.round(e*r)/r).toString()}var i,o,a="";for(i=0,o=t.length;o>i;i+=1){var s=t[i];a+="e"===s?"-"===t[++i]?"c":"b":"."===s?"a":"-"===s?"e":s}a+=1&a.length?"f":"ff";var u=[30];for(i=0,o=a.length;o>i;i+=2)u.push(parseInt(a.substr(i,2),16));return u},l.REAL=function(e){return u.REAL(e).length},u.NAME=u.CHARARRAY,l.NAME=l.CHARARRAY,u.STRING=u.CHARARRAY,l.STRING=l.CHARARRAY,u.UTF16=function(e){for(var t=[],n=0;n<e.length;n+=1)t.push(0),t.push(e.charCodeAt(n));return t},l.UTF16=function(e){return 2*e.length},u.INDEX=function(e){var t,n=1,r=[n],i=[],o=0;for(t=0;t<e.length;t+=1){var a=u.OBJECT(e[t]);Array.prototype.push.apply(i,a),o+=a.length,n+=a.length,r.push(n)}if(0===i.length)return[0,0];var s=[],l=1+Math.floor(Math.log(o)/Math.log(2))/8|0,c=[void 0,u.BYTE,u.USHORT,u.UINT24,u.ULONG][l];for(t=0;t<r.length;t+=1){var h=c(r[t]);Array.prototype.push.apply(s,h)}return Array.prototype.concat(u.Card16(e.length),u.OffSize(l),s,i)},l.INDEX=function(e){return u.INDEX(e).length},u.DICT=function(e){for(var t=[],n=Object.keys(e),r=n.length,i=0;r>i;i+=1){var o=parseInt(n[i],0),a=e[o];t=t.concat(u.OPERAND(a.value,a.type)),t=t.concat(u.OPERATOR(o))}return t},l.DICT=function(e){return u.DICT(e).length},u.OPERATOR=function(e){return 1200>e?[e]:[12,e-1200]},u.OPERAND=function(e,t){var n=[];if(Array.isArray(t))for(var r=0;r<t.length;r+=1)i.argument(e.length===t.length,"Not enough arguments given for type"+t),n=n.concat(u.OPERAND(e[r],t[r]));else if("SID"===t)n=n.concat(u.NUMBER(e));else if("offset"===t)n=n.concat(u.NUMBER32(e));else if("number"===t)n=n.concat(u.NUMBER(e));else{if("real"!==t)throw new Error("Unknown operand type "+t);n=n.concat(u.REAL(e))}return n},u.OP=u.BYTE,l.OP=l.BYTE;var c="function"==typeof WeakMap&&new WeakMap;u.CHARSTRING=function(e){if(c&&c.has(e))return c.get(e);for(var t=[],n=e.length,r=0;n>r;r+=1){var i=e[r];t=t.concat(u[i.type](i.value))}return c&&c.set(e,t),t},l.CHARSTRING=function(e){return u.CHARSTRING(e).length},u.OBJECT=function(e){var t=u[e.type];return i.argument(void 0!==t,"No encoding function for type "+e.type),t(e.value)},u.TABLE=function(e){for(var t=[],n=e.fields.length,r=0;n>r;r+=1){var o=e.fields[r],a=u[o.type];i.argument(void 0!==a,"No encoding function for field type "+o.type);var s=e[o.name];void 0===s&&(s=o.value);var l=a(s);t=t.concat(l)}return t},u.LITERAL=function(e){return e},l.LITERAL=function(e){return e.length},t.decode=s,t.encode=u,t.sizeOf=l},function(e,t,n){"use strict";var r=n(100),i=n(6),o=(n(245),n(250)),a=n(256),s=n(260),u=(n(3),s(function(e){return a(e)})),l="cssFloat";i.canUseDOM&&void 0===document.documentElement.style.cssFloat&&(l="styleFloat");var c={createMarkupForStyles:function(e){var t="";for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];null!=r&&(t+=u(n)+":",t+=o(n,r)+";")}return t||null},setValueForStyles:function(e,t){var n=e.style;for(var i in t)if(t.hasOwnProperty(i)){var a=o(i,t[i]);if("float"===i&&(i=l),a)n[i]=a;else{var s=r.shorthandPropertyExpansions[i];if(s)for(var u in s)n[u]="";else n[i]=""}}}};e.exports=c},function(e,t,n){"use strict";function r(){this._callbacks=null,this._contexts=null}var i=n(18),o=n(2),a=n(1);o(r.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){var e=this._callbacks,t=this._contexts;if(e){a(e.length===t.length),this._callbacks=null,this._contexts=null;for(var n=0,r=e.length;r>n;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e){return e===m.topMouseUp||e===m.topTouchEnd||e===m.topTouchCancel}function i(e){return e===m.topMouseMove||e===m.topTouchMove}function o(e){return e===m.topMouseDown||e===m.topTouchStart}function a(e,t){var n=e._dispatchListeners,r=e._dispatchIDs;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)t(e,n[i],r[i]);else n&&t(e,n,r)}function s(e,t,n){e.currentTarget=v.Mount.getNode(n);var r=t(e,n);return e.currentTarget=null,r}function u(e,t){a(e,t),e._dispatchListeners=null,e._dispatchIDs=null}function l(e){var t=e._dispatchListeners,n=e._dispatchIDs;if(Array.isArray(t)){for(var r=0;r<t.length&&!e.isPropagationStopped();r++)if(t[r](e,n[r]))return n[r]}else if(t&&t(e,n))return n;return null}function c(e){var t=l(e);return e._dispatchIDs=null,e._dispatchListeners=null,t}function h(e){var t=e._dispatchListeners,n=e._dispatchIDs;d(!Array.isArray(t));var r=t?t(e,n):null;return e._dispatchListeners=null,e._dispatchIDs=null,r}function f(e){return!!e._dispatchListeners}var p=n(11),d=n(1),v={Mount:null,injectMount:function(e){v.Mount=e}},m=p.topLevelTypes,g={isEndish:r,isMoveish:i,isStartish:o,executeDirectDispatch:h,executeDispatch:s,executeDispatchesInOrder:u,executeDispatchesInOrderStopAtTrue:c,hasDispatches:f,injection:v,useTouchEvents:!1};e.exports=g},function(e,t,n){"use strict";function r(e){l(null==e.props.checkedLink||null==e.props.valueLink)}function i(e){r(e),l(null==e.props.value&&null==e.props.onChange)}function o(e){r(e),l(null==e.props.checked&&null==e.props.onChange)}function a(e){this.props.valueLink.requestChange(e.target.value)}function s(e){this.props.checkedLink.requestChange(e.target.checked)}var u=n(109),l=n(1),c={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},h={Mixin:{propTypes:{value:function(e,t,n){return!e[t]||c[e.type]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")},checked:function(e,t,n){return!e[t]||e.onChange||e.readOnly||e.disabled?null:new Error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")},onChange:u.func}},getValue:function(e){return e.props.valueLink?(i(e),e.props.valueLink.value):e.props.value},getChecked:function(e){return e.props.checkedLink?(o(e),e.props.checkedLink.value):e.props.checked},getOnChange:function(e){return e.props.valueLink?(i(e),a):e.props.checkedLink?(o(e),s):e.props.onChange}};e.exports=h},function(e,t,n){"use strict";function r(e){e.remove()}var i=n(32),o=n(76),a=n(77),s=n(1),u={trapBubbledEvent:function(e,t){s(this.isMounted());var n=this.getDOMNode();s(n);var r=i.trapBubbledEvent(e,t,n);this._localEventListeners=o(this._localEventListeners,r)},componentWillUnmount:function(){this._localEventListeners&&a(this._localEventListeners,r)}};e.exports=u},function(e,t,n){"use strict";var r=n(104),i=n(21),o={processChildrenUpdates:r.dangerouslyProcessChildrenUpdates,replaceNodeWithMarkupByID:r.dangerouslyReplaceNodeWithMarkupByID,unmountIDFromEnvironment:function(e){i.purgeID(e)}};e.exports=o},function(e,t,n){"use strict";var r=n(1),i=!1,o={unmountIDFromEnvironment:null,replaceNodeWithMarkupByID:null,processChildrenUpdates:null,injection:{injectEnvironment:function(e){r(!i),o.unmountIDFromEnvironment=e.unmountIDFromEnvironment,o.replaceNodeWithMarkupByID=e.replaceNodeWithMarkupByID,o.processChildrenUpdates=e.processChildrenUpdates,i=!0}}};e.exports=o},function(e,t,n){"use strict";var r=n(2),i=n(55),o=(n(3),{current:i,withContext:function(e,t){var n,i=o.current;o.current=r({},i,e);try{n=t()}finally{o.current=i}return n}});e.exports=o},function(e,t,n){"use strict";function r(e){e&&(null!=e.dangerouslySetInnerHTML&&(g(null==e.children),g("object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML)),g(null==e.style||"object"==typeof e.style))}function i(e,t,n,r){var i=f.findReactContainerForID(e);if(i){var o=i.nodeType===E?i.ownerDocument:i;_(t,o)}r.getPutListenerQueue().enqueuePutListener(e,t,n)}function o(e){R.call(O,e)||(g(T.test(e)),O[e]=!0)}function a(e){o(e),this._tag=e,this._renderedChildren=null,this._previousStyleCopy=null,this._rootNodeID=null}var s=n(63),u=n(30),l=n(42),c=n(32),h=n(68),f=n(21),p=n(220),d=n(25),v=n(2),m=n(56),g=n(1),y=(n(82),n(16)),b=(n(3),c.deleteListener),_=c.listenTo,C=c.registrationNameModules,w={string:!0,number:!0},x=y({style:null}),E=1,S=null,k={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},T=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,O={},R={}.hasOwnProperty;a.displayName="ReactDOMComponent",a.Mixin={construct:function(e){this._currentElement=e},mountComponent:function(e,t,n){this._rootNodeID=e,r(this._currentElement.props);var i=k[this._tag]?"":"</"+this._tag+">";return this._createOpenTagMarkupAndPutListeners(t)+this._createContentMarkup(t,n)+i},_createOpenTagMarkupAndPutListeners:function(e){var t=this._currentElement.props,n="<"+this._tag;for(var r in t)if(t.hasOwnProperty(r)){var o=t[r];if(null!=o)if(C.hasOwnProperty(r))i(this._rootNodeID,r,o,e);else{r===x&&(o&&(o=this._previousStyleCopy=v({},t.style)),o=s.createMarkupForStyles(o));var a=l.createMarkupForProperty(r,o);a&&(n+=" "+a)}}if(e.renderToStaticMarkup)return n+">";var u=l.createMarkupForID(this._rootNodeID);return n+" "+u+">"},_createContentMarkup:function(e,t){var n="";("listing"===this._tag||"pre"===this._tag||"textarea"===this._tag)&&(n="\n");var r=this._currentElement.props,i=r.dangerouslySetInnerHTML;if(null!=i){if(null!=i.__html)return n+i.__html}else{var o=w[typeof r.children]?r.children:null,a=null!=o?null:r.children;if(null!=o)return n+m(o);if(null!=a){var s=this.mountChildren(a,e,t);return n+s.join("")}}return n},receiveComponent:function(e,t,n){var r=this._currentElement;this._currentElement=e,this.updateComponent(t,r,e,n)},updateComponent:function(e,t,n,i){r(this._currentElement.props),this._updateDOMProperties(t.props,e),this._updateDOMChildren(t.props,e,i)},_updateDOMProperties:function(e,t){var n,r,o,a=this._currentElement.props;for(n in e)if(!a.hasOwnProperty(n)&&e.hasOwnProperty(n))if(n===x){var s=this._previousStyleCopy;for(r in s)s.hasOwnProperty(r)&&(o=o||{},o[r]="");this._previousStyleCopy=null;
}else C.hasOwnProperty(n)?b(this._rootNodeID,n):(u.isStandardName[n]||u.isCustomAttribute(n))&&S.deletePropertyByID(this._rootNodeID,n);for(n in a){var l=a[n],c=n===x?this._previousStyleCopy:e[n];if(a.hasOwnProperty(n)&&l!==c)if(n===x)if(l?l=this._previousStyleCopy=v({},l):this._previousStyleCopy=null,c){for(r in c)!c.hasOwnProperty(r)||l&&l.hasOwnProperty(r)||(o=o||{},o[r]="");for(r in l)l.hasOwnProperty(r)&&c[r]!==l[r]&&(o=o||{},o[r]=l[r])}else o=l;else C.hasOwnProperty(n)?i(this._rootNodeID,n,l,t):(u.isStandardName[n]||u.isCustomAttribute(n))&&S.updatePropertyByID(this._rootNodeID,n,l)}o&&S.updateStylesByID(this._rootNodeID,o)},_updateDOMChildren:function(e,t,n){var r=this._currentElement.props,i=w[typeof e.children]?e.children:null,o=w[typeof r.children]?r.children:null,a=e.dangerouslySetInnerHTML&&e.dangerouslySetInnerHTML.__html,s=r.dangerouslySetInnerHTML&&r.dangerouslySetInnerHTML.__html,u=null!=i?null:e.children,l=null!=o?null:r.children,c=null!=i||null!=a,h=null!=o||null!=s;null!=u&&null==l?this.updateChildren(null,t,n):c&&!h&&this.updateTextContent(""),null!=o?i!==o&&this.updateTextContent(""+o):null!=s?a!==s&&S.updateInnerHTMLByID(this._rootNodeID,s):null!=l&&this.updateChildren(l,t,n)},unmountComponent:function(){this.unmountChildren(),c.deleteAllListeners(this._rootNodeID),h.unmountIDFromEnvironment(this._rootNodeID),this._rootNodeID=null}},d.measureMethods(a,"ReactDOMComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent"}),v(a.prototype,a.Mixin,p.Mixin),a.injection={injectIDOperations:function(e){a.BackendIDOperations=S=e}},e.exports=a},function(e,t,n){"use strict";function r(e){c[e]=!0}function i(e){delete c[e]}function o(e){return!!c[e]}var a,s=n(4),u=n(35),l=n(1),c={},h={injectEmptyComponent:function(e){a=s.createFactory(e)}},f=function(){};f.prototype.componentDidMount=function(){var e=u.get(this);e&&r(e._rootNodeID)},f.prototype.componentWillUnmount=function(){var e=u.get(this);e&&i(e._rootNodeID)},f.prototype.render=function(){return l(a),a()};var p=s.createElement(f),d={emptyElement:p,injection:h,isNullComponentID:o};e.exports=d},function(e,t){"use strict";var n={currentlyMountingInstance:null,currentlyUnmountingInstance:null};e.exports=n},function(e,t,n){"use strict";var r=n(47),i=r({prop:null,context:null,childContext:null});e.exports=i},function(e,t,n){"use strict";function r(e){e!==o.currentlyMountingInstance&&l.enqueueUpdate(e)}function i(e,t){h(null==a.current);var n=u.get(e);return n?n===o.currentlyUnmountingInstance?null:n:null}var o=n(73),a=n(20),s=n(4),u=n(35),l=n(13),c=n(2),h=n(1),f=(n(3),{enqueueCallback:function(e,t){h("function"==typeof t);var n=i(e);return n&&n!==o.currentlyMountingInstance?(n._pendingCallbacks?n._pendingCallbacks.push(t):n._pendingCallbacks=[t],void r(n)):null},enqueueCallbackInternal:function(e,t){h("function"==typeof t),e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t){var n=i(e,"replaceState");n&&(n._pendingStateQueue=[t],n._pendingReplaceState=!0,r(n))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){var o=n._pendingStateQueue||(n._pendingStateQueue=[]);o.push(t),r(n)}},enqueueSetProps:function(e,t){var n=i(e,"setProps");if(n){h(n._isTopLevel);var o=n._pendingElement||n._currentElement,a=c({},o.props,t);n._pendingElement=s.cloneAndReplaceProps(o,a),r(n)}},enqueueReplaceProps:function(e,t){var n=i(e,"replaceProps");if(n){h(n._isTopLevel);var o=n._pendingElement||n._currentElement;n._pendingElement=s.cloneAndReplaceProps(o,t),r(n)}},enqueueElementInternal:function(e,t){e._pendingElement=t,r(e)}});e.exports=f},function(e,t,n){"use strict";function r(e,t){if(i(null!=t),null==e)return t;var n=Array.isArray(e),r=Array.isArray(t);return n&&r?(e.push.apply(e,t),e):n?(e.push(t),e):r?[e].concat(t):[e,t]}var i=n(1);e.exports=r},function(e,t){"use strict";var n=function(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)};e.exports=n},function(e,t){"use strict";function n(e){var t,n=e.keyCode;return"charCode"in e?(t=e.charCode,0===t&&13===n&&(t=13)):t=n,t>=32||13===t?t:0}e.exports=n},function(e,t){"use strict";function n(e){var t=this,n=t.nativeEvent;if(n.getModifierState)return n.getModifierState(e);var r=i[e];return r?!!n[r]:!1}function r(e){return n}var i={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};e.exports=r},function(e,t){"use strict";function n(e){var t=e.target||e.srcElement||window;return 3===t.nodeType?t.parentNode:t}e.exports=n},function(e,t,n){"use strict";function r(e){return"function"==typeof e&&"undefined"!=typeof e.prototype&&"function"==typeof e.prototype.mountComponent&&"function"==typeof e.prototype.receiveComponent}function i(e,t){var n;if((null===e||e===!1)&&(e=a.emptyElement),"object"==typeof e){var i=e;n=t===i.type&&"string"==typeof i.type?s.createInternalComponent(i):r(i.type)?new i.type(i):new c}else"string"==typeof e||"number"==typeof e?n=s.createInstanceForText(e):l(!1);return n.construct(e),n._mountIndex=0,n._mountImage=null,n}var o=n(202),a=n(72),s=n(51),u=n(2),l=n(1),c=(n(3),function(){});u(c.prototype,o.Mixin,{_instantiateReactComponent:i}),e.exports=i},function(e,t,n){"use strict";/**
   * Checks if an event is supported in the current execution environment.
   *
   * NOTE: This will not work correctly for non-generic events such as `change`,
   * `reset`, `load`, `error`, and `select`.
   *
   * Borrows from Modernizr.
   *
   * @param {string} eventNameSuffix Event name, e.g. "click".
   * @param {?boolean} capture Check if the capture phase is supported.
   * @return {boolean} True if the event is supported.
   * @internal
   * @license Modernizr 3.0.0pre (Custom Build) | MIT
   */
function r(e,t){if(!o.canUseDOM||t&&!("addEventListener"in document))return!1;var n="on"+e,r=n in document;if(!r){var a=document.createElement("div");a.setAttribute(n,"return;"),r="function"==typeof a[n]}return!r&&i&&"wheel"===e&&(r=document.implementation.hasFeature("Events.wheel","3.0")),r}var i,o=n(6);o.canUseDOM&&(i=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0),e.exports=r},function(e,t,n){"use strict";var r=n(6),i=/^[ \r\n\t\f]/,o=/<(!--|link|noscript|meta|script|style)[ \r\n\t\f\/>]/,a=function(e,t){e.innerHTML=t};if("undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction&&(a=function(e,t){MSApp.execUnsafeLocalFunction(function(){e.innerHTML=t})}),r.canUseDOM){var s=document.createElement("div");s.innerHTML=" ",""===s.innerHTML&&(a=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),i.test(t)||"<"===t[0]&&o.test(t)){e.innerHTML="\ufeff"+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t})}e.exports=a},function(e,t,n){"use strict";function r(e,t){if(null!=e&&null!=t){var n=typeof e,r=typeof t;if("string"===n||"number"===n)return"string"===r||"number"===r;if("object"===r&&e.type===t.type&&e.key===t.key){var i=e._owner===t._owner;return i}}return!1}n(3);e.exports=r},function(e,t,n){"use strict";function r(e){var t=r._super.apply(this,arguments);t===this&&e&&e.constructor!==String&&!i.is(e)&&this.deliver(this.spec().add(this._id,"!").add(".set"),e)}var i=n(10),o=n(27);e.exports=o.extend(r,{defaults:{_oplog:Object},neutrals:{on:function(e,t,n){if("function"==typeof n&&"string"==typeof t&&t in this.constructor.defaults){var r={fn:n,key:t,self:this,_op:"set",deliver:function(e,t,n){this.key in t&&this.fn.call(this.self,e,t,n)}};n=r,t=""}o._pt._neutrals.on.call(this,e,t,n)},off:function(e,t,n){var r=this._lstn;if("function"==typeof n)for(var i=0;i<r.length;i++)if(r[i]&&r[i].fn===n&&r[i].key===t){n=r[i];break}o._pt._neutrals.off.apply(this,arguments)}},packState:function(e){},unpackState:function(e){},distillLog:function(){var e,t=[],n={},r={};for(var o in this._oplog)e=new i(o),t.push(e);t.sort();for(var a=t.length-1;a>=0;a--){e=t[a];var s=this._oplog[e],u=!1;for(var l in s)l in n?delete s[l]:u=n[l]=s[l];var c=e.source();u||r[c]&&delete this._oplog[e],r[c]=!0}return n},ops:{set:function(e,t,n){var r=e.version(),i=e.filter("!.").toString();r<this._version.substr(1)&&(this._oplog[i]=t,this.distillLog(),t=this._oplog[i]),t&&this.apply(t)}},fill:function(e){if(!this.hasOwnProperty(e))throw new Error("no such entry");var t=new i(this[e]).filter("/#");if("/#"!==t.pattern())throw new Error("incomplete spec");this[e]=this._host.get(t)},save:function(){var e,t=this.distillLog(),n={},r=this.pojo();for(e in r)this[e]!==t[e]&&(n[e]=this[e]);for(e in t)e in r||(n[e]=null);this.set(n)},validate:function(e,t){if("set"!==e.op())return"";for(var n in t)if(!o.reFieldName.test(n))return"bad field name";return""}}),e.exports.addReaction=function(e,t){var n=this.prototype;if("function"==typeof n[e])return o.addReaction.call(this,e,t);var r=function(n,r){e in r&&t.apply(this,arguments)};return r._rwrap=!0,o.addReaction.call(this,"set",r)}},function(e,t,n){"use strict";function r(e){this.async=!!e||!1,this.states={},this.tails={},this.counts={},this._host=null,this.lstn=null,this._id="some_storage"}var i=n(27);e.exports=r,r.prototype.MAX_LOG_SIZE=10,r.prototype.isRoot=!0,r.prototype.deliver=function(e,t,n){var r;switch(e.op()){case"on":r=this.on(e,t,n);break;case"off":r=this.off(e,t,n);break;case"init":if(t._version)r=this.init(e,t,n);else{var i,o=e.filter("/#"),a=[];for(i in t._tail)a.push(i);for(a.sort();i=a.pop();)r=this.anyOp(o.add(i),t._tail[i],n)}break;default:r=this.anyOp(e,t,n)}return r},r.prototype.on=function(e,t,n){function r(){if(s||l.isRoot&&(s={_version:"!0"}),u){s||(s={}),s._tail=s._tail||{};for(var t in u)s._tail[t]=u[t]}var r=o.add(e.version(),"!");s?(n.deliver(r.add(".init"),s,l),n.deliver(r.add(".reon"),i.stateVersionVector(s),l)):n.deliver(r.add(".reon"),"!0",l)}var o=e.filter("/#");if(this.lstn){var a=this.lstn[o];void 0===a?a=n:a!==n&&(a.constructor!==Array&&(a=[a]),a.push(n)),this.lstn[o]=a}var s,u,l=this;this.readState(o,function(e,t){s=t||null,void 0!==u&&r()}),this.readOps(o,function(e,t){u=t||null,void 0!==s&&r()})},r.prototype.off=function(e,t,n){if(this.lstn){var r=e.filter("/#"),i=this.lstn[r];if(i===n)delete this.lstn[r];else if(i&&i.constructor===Array){var o=i.filter(function(e){return e!==n});o.length?this.lstn[r]=o:delete this.lstn[r]}}},r.prototype.init=function(e,t,n){var r=e.filter("/#"),i=this,o=this.tails[r];this.writeState(e,t,function(e){if(e)console.error("state dump error:",e);else{var t=i.tails[r]||(i.tails[r]={});for(var n in o)t[n]=o[n]}})},r.prototype.anyOp=function(e,t,n){var r=this,i=e.filter("/#");this.writeOp(e,t,function(e){e&&this.close(e)}),r.counts[i]=r.counts[i]||0,++r.counts[i]>r.MAX_LOG_SIZE&&(delete r.counts[i],n.deliver(e.set(".reon"),"!0.init",r))},r.prototype.writeState=function(e,t,n){var r=e.filter("/#");this.states[r]=JSON.stringify(t),delete this.tails[r],n()},r.prototype.writeOp=function(e,t,n){var r=e.filter("/#"),i=e.filter("!."),o=this.tails[r]||(this.tails[r]={});o[i]&&console.error("op replay @storage"+i+(new Error).stack),o[i]=JSON.stringify(t),n()},r.prototype.readState=function(e,t){function n(){t(null,r)}var r=JSON.parse(this.states[e]||null);this.async?setTimeout(n,1):n()},r.prototype.readOps=function(e,t){var n=JSON.parse(this.tails[e]||null);t(null,n)},r.prototype.close=function(e){e&&e()},r.prototype.emit=function(e,t){var n=e.filter("/#"),r=this.lstn[n];if(r)if(r&&r.constructor===Array)for(var i=0;r&&i<r.length;i++){var o=r[i];o&&o.constructor===Function?o(e,t,this):o&&o.deliver&&o.deliver(e,t,this)}else r&&r.deliver?r.deliver(e,t,this):r&&r.constructor===Function&&r(e,t,this)}},function(e,t){"use strict";function n(){var e=[],t=function(t){var n=e.indexOf(t);n>=0&&e.splice(n,1)},n=function(n){e.push(n);var r=function(){return t(n)};return{dispose:r}},r=function(t){e.forEach(function(e){return e(t)})};return{subscribe:n,push:r,unsubscribe:t}}e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return a.default.pick(e,"_id","name","state","ms")}Object.defineProperty(t,"__esModule",{value:!0}),t.extractInternal=i;var o=n(5),a=r(o),s=n(85),u=r(s);t.default=u.default.extend("Cursor",{defaults:{name:null,state:{position:null,positionEolStart:!1,selectionActive:!1,selectionLeftChar:null,selectionRightChar:null},ms:Date.now()}})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(134),o=r(i),a=new o.default;t.default=a,e.exports=t.default},function(e,t,n){"use strict";function r(e,t){var n=t||{commands:[]};return{configurable:!0,get:function(){return"function"==typeof n&&(n=n()),n},set:function(e){n=e}}}function i(e){this.bindConstructorValues(e)}var o=n(17),a=n(175),s=n(41);i.prototype.bindConstructorValues=function(e){this.index=e.index||0,this.name=e.name||null,this.unicode=e.unicode||void 0,this.unicodes=e.unicodes||void 0!==e.unicode?[e.unicode]:[],e.xMin&&(this.xMin=e.xMin),e.yMin&&(this.yMin=e.yMin),e.xMax&&(this.xMax=e.xMax),e.yMax&&(this.yMax=e.yMax),e.advanceWidth&&(this.advanceWidth=e.advanceWidth),Object.defineProperty(this,"path",r(this,e.path))},i.prototype.addUnicode=function(e){0===this.unicodes.length&&(this.unicode=e),this.unicodes.push(e)},i.prototype.getPath=function(e,t,n){e=void 0!==e?e:0,t=void 0!==t?t:0,n=void 0!==n?n:72;for(var r=1/this.path.unitsPerEm*n,i=new s.Path,o=this.path.commands,a=0;a<o.length;a+=1){var u=o[a];"M"===u.type?i.moveTo(e+u.x*r,t+-u.y*r):"L"===u.type?i.lineTo(e+u.x*r,t+-u.y*r):"Q"===u.type?i.quadraticCurveTo(e+u.x1*r,t+-u.y1*r,e+u.x*r,t+-u.y*r):"C"===u.type?i.curveTo(e+u.x1*r,t+-u.y1*r,e+u.x2*r,t+-u.y2*r,e+u.x*r,t+-u.y*r):"Z"===u.type&&i.closePath()}return i},i.prototype.getContours=function(){if(void 0===this.points)return[];for(var e=[],t=[],n=0;n<this.points.length;n+=1){var r=this.points[n];t.push(r),r.lastPointOfContour&&(e.push(t),t=[])}return o.argument(0===t.length,"There are still points left in the current contour."),e},i.prototype.getMetrics=function(){for(var e=this.path.commands,t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];"Z"!==i.type&&(t.push(i.x),n.push(i.y)),("Q"===i.type||"C"===i.type)&&(t.push(i.x1),n.push(i.y1)),"C"===i.type&&(t.push(i.x2),n.push(i.y2))}var o={xMin:Math.min.apply(null,t),yMin:Math.min.apply(null,n),xMax:Math.max.apply(null,t),yMax:Math.max.apply(null,n),leftSideBearing:0};return o.rightSideBearing=this.advanceWidth-o.leftSideBearing-(o.xMax-o.xMin),o},i.prototype.draw=function(e,t,n,r){this.getPath(t,n,r).draw(e)},i.prototype.drawPoints=function(e,t,n,r){function i(t,n,r,i){var o=2*Math.PI;e.beginPath();for(var a=0;a<t.length;a+=1)e.moveTo(n+t[a].x*i,r+t[a].y*i),e.arc(n+t[a].x*i,r+t[a].y*i,2,0,o,!1);e.closePath(),e.fill()}t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24;for(var o=1/this.path.unitsPerEm*r,a=[],s=[],u=this.path,l=0;l<u.commands.length;l+=1){var c=u.commands[l];void 0!==c.x&&a.push({x:c.x,y:-c.y}),void 0!==c.x1&&s.push({x:c.x1,y:-c.y1}),void 0!==c.x2&&s.push({x:c.x2,y:-c.y2})}e.fillStyle="blue",i(a,t,n,o),e.fillStyle="red",i(s,t,n,o)},i.prototype.drawMetrics=function(e,t,n,r){var i;t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:24,i=1/this.path.unitsPerEm*r,e.lineWidth=1,e.strokeStyle="black",a.line(e,t,-1e4,t,1e4),a.line(e,-1e4,n,1e4,n);var o=this.xMin||0,s=this.yMin||0,u=this.xMax||0,l=this.yMax||0,c=this.advanceWidth||0;e.strokeStyle="blue",a.line(e,t+o*i,-1e4,t+o*i,1e4),a.line(e,t+u*i,-1e4,t+u*i,1e4),a.line(e,-1e4,n+-s*i,1e4,n+-s*i),a.line(e,-1e4,n+-l*i,1e4,n+-l*i),e.strokeStyle="green",a.line(e,t+c*i,-1e4,t+c*i,1e4)},t.Glyph=i},function(e,t,n){"use strict";function r(e,t){if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n+=1)if(!r(e[n],t[n]))return!1;return!0}return!1}function i(e,t,n){var r,i,o,a=[],s=[],u=D.getCard16(e,t);if(0!==u){var l=D.getByte(e,t+2);i=t+(u+1)*l+2;var c=t+3;for(r=0;u+1>r;r+=1)a.push(D.getOffset(e,c,l)),c+=l;o=i+a[u]}else o=t+2;for(r=0;r<a.length-1;r+=1){var h=D.getBytes(e,i+a[r],i+a[r+1]);n&&(h=n(h)),s.push(h)}return{objects:s,startOffset:t,endOffset:o}}function o(e){for(var t="",n=15,r=["0","1","2","3","4","5","6","7","8","9",".","E","E-",null,"-"];;){var i=e.parseByte(),o=i>>4,a=15&i;if(o===n)break;if(t+=r[o],a===n)break;t+=r[a]}return parseFloat(t)}function a(e,t){var n,r,i,a;if(28===t)return n=e.parseByte(),r=e.parseByte(),n<<8|r;if(29===t)return n=e.parseByte(),r=e.parseByte(),i=e.parseByte(),a=e.parseByte(),n<<24|r<<16|i<<8|a;if(30===t)return o(e);if(t>=32&&246>=t)return t-139;if(t>=247&&250>=t)return n=e.parseByte(),256*(t-247)+n+108;if(t>=251&&254>=t)return n=e.parseByte(),256*-(t-251)-n-108;throw new Error("Invalid b0 "+t)}function s(e){for(var t={},n=0;n<e.length;n+=1){var r,i=e[n][0],o=e[n][1];if(r=1===o.length?o[0]:o,t.hasOwnProperty(i))throw new Error("Object "+t+" already has key "+i);t[i]=r}return t}function u(e,t,n){t=void 0!==t?t:0;var r=new D.Parser(e,t),i=[],o=[];for(n=void 0!==n?n:e.length;r.relativeOffset<n;){var u=r.parseByte();21>=u?(12===u&&(u=1200+r.parseByte()),i.push([u,o]),o=[]):o.push(a(r,u))}return s(i)}function l(e,t){return t=390>=t?I.cffStandardStrings[t]:e[t-391]}function c(e,t,n){for(var r={},i=0;i<t.length;i+=1){var o=t[i],a=e[o.op];void 0===a&&(a=void 0!==o.value?o.value:null),"SID"===o.type&&(a=l(n,a)),r[o.name]=a}return r}function h(e,t){var n={};return n.formatMajor=D.getCard8(e,t),n.formatMinor=D.getCard8(e,t+1),n.size=D.getCard8(e,t+2),n.offsetSize=D.getCard8(e,t+3),n.startOffset=t,n.endOffset=t+4,n}function f(e,t){var n=u(e,0,e.byteLength);return c(n,F,t)}function p(e,t,n,r){var i=u(e,t,n);return c(i,j,r)}function d(e,t,n,r){var i,o,a,s=new D.Parser(e,t);n-=1;var u=[".notdef"],c=s.parseCard8();if(0===c)for(i=0;n>i;i+=1)o=s.parseSID(),u.push(l(r,o));else if(1===c)for(;u.length<=n;)for(o=s.parseSID(),a=s.parseCard8(),i=0;a>=i;i+=1)u.push(l(r,o)),o+=1;else{if(2!==c)throw new Error("Unknown charset format "+c);for(;u.length<=n;)for(o=s.parseSID(),a=s.parseCard16(),i=0;a>=i;i+=1)u.push(l(r,o)),o+=1}return u}function v(e,t,n){var r,i,o={},a=new D.Parser(e,t),s=a.parseCard8();if(0===s){var u=a.parseCard8();for(r=0;u>r;r+=1)i=a.parseCard8(),o[i]=r}else{if(1!==s)throw new Error("Unknown encoding format "+s);var l=a.parseCard8();for(i=1,r=0;l>r;r+=1)for(var c=a.parseCard8(),h=a.parseCard8(),f=c;c+h>=f;f+=1)o[f]=i,i+=1}return new I.CffEncoding(o,n)}function m(e,t,n){function r(e,t){v&&c.closePath(),c.moveTo(e,t),v=!0}function i(){var t;t=h.length%2!==0,t&&!p&&(d=h.shift()+e.nominalWidthX),f+=h.length>>1,h.length=0,p=!0}function o(n){for(var y,b,_,C,w,x,E,S,k,T,O,R,A=0;A<n.length;){var M=n[A];switch(A+=1,M){case 1:i();break;case 3:i();break;case 4:h.length>1&&!p&&(d=h.shift()+e.nominalWidthX,p=!0),g+=h.pop(),r(m,g);break;case 5:for(;h.length>0;)m+=h.shift(),g+=h.shift(),c.lineTo(m,g);break;case 6:for(;h.length>0&&(m+=h.shift(),c.lineTo(m,g),0!==h.length);)g+=h.shift(),c.lineTo(m,g);break;case 7:for(;h.length>0&&(g+=h.shift(),c.lineTo(m,g),0!==h.length);)m+=h.shift(),c.lineTo(m,g);break;case 8:for(;h.length>0;)a=m+h.shift(),s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),m=u+h.shift(),g=l+h.shift(),c.curveTo(a,s,u,l,m,g);break;case 10:w=h.pop()+e.subrsBias,x=e.subrs[w],x&&o(x);break;case 11:return;case 12:switch(M=n[A],A+=1,M){case 35:a=m+h.shift(),s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),E=u+h.shift(),S=l+h.shift(),k=E+h.shift(),T=S+h.shift(),O=k+h.shift(),R=T+h.shift(),m=O+h.shift(),g=R+h.shift(),h.shift(),c.curveTo(a,s,u,l,E,S),c.curveTo(k,T,O,R,m,g);break;case 34:a=m+h.shift(),s=g,u=a+h.shift(),l=s+h.shift(),E=u+h.shift(),S=l,k=E+h.shift(),T=l,O=k+h.shift(),R=g,m=O+h.shift(),c.curveTo(a,s,u,l,E,S),c.curveTo(k,T,O,R,m,g);break;case 36:a=m+h.shift(),s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),E=u+h.shift(),S=l,k=E+h.shift(),T=l,O=k+h.shift(),R=T+h.shift(),m=O+h.shift(),c.curveTo(a,s,u,l,E,S),c.curveTo(k,T,O,R,m,g);break;case 37:a=m+h.shift(),s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),E=u+h.shift(),S=l+h.shift(),k=E+h.shift(),T=S+h.shift(),O=k+h.shift(),R=T+h.shift(),Math.abs(O-m)>Math.abs(R-g)?m=O+h.shift():g=R+h.shift(),c.curveTo(a,s,u,l,E,S),c.curveTo(k,T,O,R,m,g);break;default:console.log("Glyph "+t.index+": unknown operator 1200"+M),h.length=0}break;case 14:h.length>0&&!p&&(d=h.shift()+e.nominalWidthX,p=!0),v&&(c.closePath(),v=!1);break;case 18:i();break;case 19:case 20:i(),A+=f+7>>3;break;case 21:h.length>2&&!p&&(d=h.shift()+e.nominalWidthX,p=!0),g+=h.pop(),m+=h.pop(),r(m,g);break;case 22:h.length>1&&!p&&(d=h.shift()+e.nominalWidthX,p=!0),m+=h.pop(),r(m,g);break;case 23:i();break;case 24:for(;h.length>2;)a=m+h.shift(),s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),m=u+h.shift(),g=l+h.shift(),c.curveTo(a,s,u,l,m,g);m+=h.shift(),g+=h.shift(),c.lineTo(m,g);break;case 25:for(;h.length>6;)m+=h.shift(),g+=h.shift(),c.lineTo(m,g);a=m+h.shift(),s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),m=u+h.shift(),g=l+h.shift(),c.curveTo(a,s,u,l,m,g);break;case 26:for(h.length%2&&(m+=h.shift());h.length>0;)a=m,s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),m=u,g=l+h.shift(),c.curveTo(a,s,u,l,m,g);break;case 27:for(h.length%2&&(g+=h.shift());h.length>0;)a=m+h.shift(),s=g,u=a+h.shift(),l=s+h.shift(),m=u+h.shift(),g=l,c.curveTo(a,s,u,l,m,g);break;case 28:y=n[A],b=n[A+1],h.push((y<<24|b<<16)>>16),A+=2;break;case 29:w=h.pop()+e.gsubrsBias,x=e.gsubrs[w],x&&o(x);break;case 30:for(;h.length>0&&(a=m,s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),m=u+h.shift(),g=l+(1===h.length?h.shift():0),c.curveTo(a,s,u,l,m,g),0!==h.length);)a=m+h.shift(),s=g,u=a+h.shift(),l=s+h.shift(),g=l+h.shift(),m=u+(1===h.length?h.shift():0),c.curveTo(a,s,u,l,m,g);break;case 31:for(;h.length>0&&(a=m+h.shift(),s=g,u=a+h.shift(),l=s+h.shift(),g=l+h.shift(),m=u+(1===h.length?h.shift():0),c.curveTo(a,s,u,l,m,g),0!==h.length);)a=m,s=g+h.shift(),u=a+h.shift(),l=s+h.shift(),m=u+h.shift(),g=l+(1===h.length?h.shift():0),c.curveTo(a,s,u,l,m,g);break;default:32>M?console.log("Glyph "+t.index+": unknown operator "+M):247>M?h.push(M-139):251>M?(y=n[A],A+=1,h.push(256*(M-247)+y+108)):255>M?(y=n[A],A+=1,h.push(256*-(M-251)-y-108)):(y=n[A],b=n[A+1],_=n[A+2],C=n[A+3],A+=4,h.push((y<<24|b<<16|_<<8|C)/65536))}}}var a,s,u,l,c=new L.Path,h=[],f=0,p=!1,d=e.defaultWidthX,v=!1,m=0,g=0;return o(n),t.advanceWidth=d,c}function g(e){var t;return t=e.length<1240?107:e.length<33900?1131:32768}function y(e,t,n){n.tables.cff={};var r=h(e,t),o=i(e,r.endOffset,D.bytesToString),a=i(e,o.endOffset),s=i(e,a.endOffset,D.bytesToString),u=i(e,s.endOffset);n.gsubrs=u.objects,n.gsubrsBias=g(n.gsubrs);var l=new DataView(new Uint8Array(a.objects[0]).buffer),c=f(l,s.objects);n.tables.cff.topDict=c;var y=t+c.private[1],b=p(e,y,c.private[0],s.objects);if(n.defaultWidthX=b.defaultWidthX,n.nominalWidthX=b.nominalWidthX,0!==b.subrs){var _=y+b.subrs,C=i(e,_);n.subrs=C.objects,n.subrsBias=g(n.subrs)}else n.subrs=[],n.subrsBias=0;var w=i(e,t+c.charStrings);n.nGlyphs=w.objects.length;var x=d(e,t+c.charset,n.nGlyphs,s.objects);0===c.encoding?n.cffEncoding=new I.CffEncoding(I.cffStandardEncoding,x):1===c.encoding?n.cffEncoding=new I.CffEncoding(I.cffExpertEncoding,x):n.cffEncoding=v(e,t+c.encoding,x),n.encoding=n.encoding||n.cffEncoding,n.glyphs=new P.GlyphSet(n);for(var E=0;E<n.nGlyphs;E+=1){var S=w.objects[E];n.glyphs.push(E,P.cffGlyphLoader(n,E,m,S))}}function b(e,t){var n,r=I.cffStandardStrings.indexOf(e);return r>=0&&(n=r),r=t.indexOf(e),r>=0?n=r+I.cffStandardStrings.length:(n=I.cffStandardStrings.length+t.length,t.push(e)),n}function _(){return new U.Table("Header",[{name:"major",type:"Card8",value:1},{name:"minor",type:"Card8",value:0},{name:"hdrSize",type:"Card8",value:4},{name:"major",type:"Card8",value:1}])}function C(e){var t=new U.Table("Name INDEX",[{name:"names",type:"INDEX",value:[]}]);t.names=[];for(var n=0;n<e.length;n+=1)t.names.push({name:"name_"+n,type:"NAME",value:e[n]});return t}function w(e,t,n){for(var i={},o=0;o<e.length;o+=1){var a=e[o],s=t[a.name];void 0===s||r(s,a.value)||("SID"===a.type&&(s=b(s,n)),i[a.op]={name:a.name,type:a.type,value:s})}return i}function x(e,t){var n=new U.Table("Top DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=w(F,e,t),n}function E(e){var t=new U.Table("Top DICT INDEX",[{name:"topDicts",type:"INDEX",value:[]}]);return t.topDicts=[{name:"topDict_0",type:"TABLE",value:e}],t}function S(e){var t=new U.Table("String INDEX",[{name:"strings",type:"INDEX",value:[]}]);t.strings=[];for(var n=0;n<e.length;n+=1)t.strings.push({name:"string_"+n,type:"STRING",value:e[n]});return t}function k(){return new U.Table("Global Subr INDEX",[{name:"subrs",type:"INDEX",value:[]}])}function T(e,t){for(var n=new U.Table("Charsets",[{name:"format",type:"Card8",value:0}]),r=0;r<e.length;r+=1){var i=e[r],o=b(i,t);n.fields.push({name:"glyph_"+r,type:"SID",value:o})}return n}function O(e){var t=[],n=e.path;t.push({name:"width",type:"NUMBER",value:e.advanceWidth});for(var r=0,i=0,o=0;o<n.commands.length;o+=1){var a,s,u=n.commands[o];if("Q"===u.type){var l=1/3,c=2/3;u={type:"C",x:u.x,y:u.y,x1:l*r+c*u.x1,y1:l*i+c*u.y1,x2:l*u.x+c*u.x1,y2:l*u.y+c*u.y1}}if("M"===u.type)a=Math.round(u.x-r),s=Math.round(u.y-i),t.push({name:"dx",type:"NUMBER",value:a}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rmoveto",type:"OP",value:21}),r=Math.round(u.x),i=Math.round(u.y);else if("L"===u.type)a=Math.round(u.x-r),s=Math.round(u.y-i),t.push({name:"dx",type:"NUMBER",value:a}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rlineto",type:"OP",value:5}),r=Math.round(u.x),i=Math.round(u.y);else if("C"===u.type){var h=Math.round(u.x1-r),f=Math.round(u.y1-i),p=Math.round(u.x2-u.x1),d=Math.round(u.y2-u.y1);a=Math.round(u.x-u.x2),s=Math.round(u.y-u.y2),t.push({name:"dx1",type:"NUMBER",value:h}),t.push({name:"dy1",type:"NUMBER",value:f}),t.push({name:"dx2",type:"NUMBER",value:p}),t.push({name:"dy2",type:"NUMBER",value:d}),t.push({name:"dx",type:"NUMBER",value:a}),t.push({name:"dy",type:"NUMBER",value:s}),t.push({name:"rrcurveto",type:"OP",value:8}),r=Math.round(u.x),i=Math.round(u.y)}}return t.push({name:"endchar",type:"OP",value:14}),t}function R(e){for(var t=new U.Table("CharStrings INDEX",[{name:"charStrings",type:"INDEX",value:[]}]),n=0;n<e.length;n+=1){var r=e.get(n),i=O(r);t.charStrings.push({name:r.name,type:"CHARSTRING",value:i})}return t}function A(e,t){var n=new U.Table("Private DICT",[{name:"dict",type:"DICT",value:{}}]);return n.dict=w(j,e,t),n}function M(e){var t=new U.Table("Private DICT INDEX",[{name:"privateDicts",type:"INDEX",value:[]}]);return t.privateDicts=[{name:"privateDict_0",type:"TABLE",value:e}],t}function N(e,t){for(var n,r=new U.Table("CFF ",[{name:"header",type:"TABLE"},{name:"nameIndex",type:"TABLE"},{name:"topDictIndex",type:"TABLE"},{name:"stringIndex",type:"TABLE"},{name:"globalSubrIndex",type:"TABLE"},{name:"charsets",type:"TABLE"},{name:"charStringsIndex",type:"TABLE"},{name:"privateDictIndex",type:"TABLE"}]),i=1/t.unitsPerEm,o={version:t.version,fullName:t.fullName,familyName:t.familyName,weight:t.weightName,fontMatrix:[i,0,0,i,0,0],charset:999,encoding:0,charStrings:999,"private":[0,999]},a={},s=[],u=1;u<e.length;u+=1)n=e.get(u),s.push(n.name);var l=[];r.header=_(),r.nameIndex=C([t.postScriptName]);var c=x(o,l);r.topDictIndex=E(c),r.globalSubrIndex=k(),r.charsets=T(s,l),r.charStringsIndex=R(e);var h=A(a,l);r.privateDictIndex=M(h),r.stringIndex=S(l);var f=r.header.sizeOf()+r.nameIndex.sizeOf()+r.topDictIndex.sizeOf()+r.stringIndex.sizeOf()+r.globalSubrIndex.sizeOf();return o.charset=f,o.encoding=0,o.charStrings=o.charset+r.charsets.sizeOf(),o.private[1]=o.charStrings+r.charStringsIndex.sizeOf(),c=x(o,l),r.topDictIndex=E(c),r}var I=n(49),P=n(61),D=n(7),L=n(41),U=n(14),F=[{name:"version",op:0,type:"SID"},{name:"notice",op:1,type:"SID"},{name:"copyright",op:1200,type:"SID"},{name:"fullName",op:2,type:"SID"},{name:"familyName",op:3,type:"SID"},{name:"weight",op:4,type:"SID"},{name:"isFixedPitch",op:1201,type:"number",value:0},{name:"italicAngle",op:1202,type:"number",value:0},{name:"underlinePosition",op:1203,type:"number",value:-100},{name:"underlineThickness",op:1204,type:"number",value:50},{name:"paintType",op:1205,type:"number",value:0},{name:"charstringType",op:1206,type:"number",value:2},{name:"fontMatrix",op:1207,type:["real","real","real","real","real","real"],value:[.001,0,0,.001,0,0]},{name:"uniqueId",op:13,type:"number"},{name:"fontBBox",op:5,type:["number","number","number","number"],value:[0,0,0,0]},{name:"strokeWidth",op:1208,type:"number",value:0},{name:"xuid",op:14,type:[],value:null},{name:"charset",op:15,type:"offset",value:0},{name:"encoding",op:16,type:"offset",value:0},{name:"charStrings",op:17,type:"offset",value:0},{name:"private",op:18,type:["number","offset"],value:[0,0]}],j=[{name:"subrs",op:19,type:"offset",value:0},{name:"defaultWidthX",op:20,type:"number",value:0},{name:"nominalWidthX",op:21,type:"number",value:0}];t.parse=y,t.make=N},function(e,t,n){"use strict";function r(e,t){var n,r={};r.version=u.getUShort(e,t),s.argument(0===r.version,"cmap table version should be 0."),r.numTables=u.getUShort(e,t+2);var i=-1;for(n=0;n<r.numTables;n+=1){var o=u.getUShort(e,t+4+8*n),a=u.getUShort(e,t+4+8*n+2);if(3===o&&(1===a||0===a)){i=u.getULong(e,t+4+8*n+4);break}}if(-1===i)return null;var l=new u.Parser(e,t+i);r.format=l.parseUShort(),s.argument(4===r.format,"Only format 4 cmap tables are supported."),r.length=l.parseUShort(),r.language=l.parseUShort();var c;r.segCount=c=l.parseUShort()>>1,l.skip("uShort",3),r.glyphIndexMap={};var h=new u.Parser(e,t+i+14),f=new u.Parser(e,t+i+16+2*c),p=new u.Parser(e,t+i+16+4*c),d=new u.Parser(e,t+i+16+6*c),v=t+i+16+8*c;for(n=0;c-1>n;n+=1)for(var m,g=h.parseUShort(),y=f.parseUShort(),b=p.parseShort(),_=d.parseUShort(),C=y;g>=C;C+=1)0!==_?(v=d.offset+d.relativeOffset-2,v+=_,v+=2*(C-y),m=u.getUShort(e,v),0!==m&&(m=m+b&65535)):m=C+b&65535,r.glyphIndexMap[C]=m;return r}function i(e,t,n){e.segments.push({end:t,start:t,delta:-(t-n),offset:0})}function o(e){e.segments.push({end:65535,start:65535,delta:1,offset:0})}function a(e){var t,n=new l.Table("cmap",[{name:"version",type:"USHORT",value:0},{name:"numTables",type:"USHORT",value:1},{name:"platformID",type:"USHORT",value:3},{name:"encodingID",type:"USHORT",value:1},{name:"offset",type:"ULONG",value:12},{name:"format",type:"USHORT",value:4},{name:"length",type:"USHORT",value:0},{name:"language",type:"USHORT",value:0},{name:"segCountX2",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);for(n.segments=[],t=0;t<e.length;t+=1){for(var r=e.get(t),a=0;a<r.unicodes.length;a+=1)i(n,r.unicodes[a],t);n.segments=n.segments.sort(function(e,t){return e.start-t.start})}o(n);var s;s=n.segments.length,n.segCountX2=2*s,n.searchRange=2*Math.pow(2,Math.floor(Math.log(s)/Math.log(2))),n.entrySelector=Math.log(n.searchRange/2)/Math.log(2),n.rangeShift=n.segCountX2-n.searchRange;var u=[],c=[],h=[],f=[],p=[];for(t=0;s>t;t+=1){var d=n.segments[t];u=u.concat({name:"end_"+t,type:"USHORT",value:d.end}),c=c.concat({name:"start_"+t,type:"USHORT",value:d.start}),h=h.concat({name:"idDelta_"+t,type:"SHORT",value:d.delta}),f=f.concat({name:"idRangeOffset_"+t,type:"USHORT",value:d.offset}),void 0!==d.glyphId&&(p=p.concat({name:"glyph_"+t,type:"USHORT",value:d.glyphId}))}return n.fields=n.fields.concat(u),n.fields.push({name:"reservedPad",type:"USHORT",value:0}),n.fields=n.fields.concat(c),n.fields=n.fields.concat(h),n.fields=n.fields.concat(f),n.fields=n.fields.concat(p),n.length=14+2*u.length+2+2*c.length+2*h.length+2*f.length+2*p.length,n}var s=n(17),u=n(7),l=n(14);t.parse=r,t.make=a},function(e,t,n){"use strict";function r(e,t){var n={},r=new a.Parser(e,t);return n.version=r.parseVersion(),n.fontRevision=Math.round(1e3*r.parseFixed())/1e3,n.checkSumAdjustment=r.parseULong(),n.magicNumber=r.parseULong(),o.argument(1594834165===n.magicNumber,"Font header has wrong magic number."),n.flags=r.parseUShort(),n.unitsPerEm=r.parseUShort(),n.created=r.parseLongDateTime(),n.modified=r.parseLongDateTime(),n.xMin=r.parseShort(),n.yMin=r.parseShort(),n.xMax=r.parseShort(),n.yMax=r.parseShort(),n.macStyle=r.parseUShort(),n.lowestRecPPEM=r.parseUShort(),n.fontDirectionHint=r.parseShort(),n.indexToLocFormat=r.parseShort(),n.glyphDataFormat=r.parseShort(),n}function i(e){return new s.Table("head",[{name:"version",type:"FIXED",value:65536},{name:"fontRevision",type:"FIXED",value:65536},{name:"checkSumAdjustment",type:"ULONG",value:0},{name:"magicNumber",type:"ULONG",value:1594834165},{name:"flags",type:"USHORT",value:0},{name:"unitsPerEm",type:"USHORT",value:1e3},{name:"created",type:"LONGDATETIME",value:0},{name:"modified",type:"LONGDATETIME",value:0},{name:"xMin",type:"SHORT",value:0},{name:"yMin",type:"SHORT",value:0},{name:"xMax",type:"SHORT",value:0},{name:"yMax",type:"SHORT",value:0},{name:"macStyle",type:"USHORT",value:0},{name:"lowestRecPPEM",type:"USHORT",value:0},{name:"fontDirectionHint",type:"SHORT",value:2},{name:"indexToLocFormat",type:"SHORT",value:0},{name:"glyphDataFormat",type:"SHORT",value:0}],e)}var o=n(17),a=n(7),s=n(14);t.parse=r,t.make=i},function(e,t,n){"use strict";function r(e,t){var n={},r=new o.Parser(e,t);return n.version=r.parseVersion(),n.ascender=r.parseShort(),n.descender=r.parseShort(),n.lineGap=r.parseShort(),n.advanceWidthMax=r.parseUShort(),n.minLeftSideBearing=r.parseShort(),n.minRightSideBearing=r.parseShort(),n.xMaxExtent=r.parseShort(),n.caretSlopeRise=r.parseShort(),n.caretSlopeRun=r.parseShort(),n.caretOffset=r.parseShort(),r.relativeOffset+=8,n.metricDataFormat=r.parseShort(),n.numberOfHMetrics=r.parseUShort(),n}function i(e){return new a.Table("hhea",[{name:"version",type:"FIXED",value:65536},{name:"ascender",type:"FWORD",value:0},{name:"descender",type:"FWORD",value:0},{name:"lineGap",type:"FWORD",value:0},{name:"advanceWidthMax",type:"UFWORD",value:0},{name:"minLeftSideBearing",type:"FWORD",value:0},{name:"minRightSideBearing",type:"FWORD",value:0},{name:"xMaxExtent",type:"FWORD",value:0},{name:"caretSlopeRise",type:"SHORT",value:1},{name:"caretSlopeRun",type:"SHORT",value:0},{name:"caretOffset",type:"SHORT",value:0},{name:"reserved1",type:"SHORT",value:0},{name:"reserved2",type:"SHORT",value:0},{name:"reserved3",type:"SHORT",value:0},{name:"reserved4",type:"SHORT",value:0},{name:"metricDataFormat",type:"SHORT",value:0},{name:"numberOfHMetrics",type:"USHORT",value:0}],e)}var o=n(7),a=n(14);t.parse=r,t.make=i},function(e,t,n){"use strict";function r(e,t,n,r,i){for(var a,s,u=new o.Parser(e,t),l=0;r>l;l+=1){n>l&&(a=u.parseUShort(),s=u.parseShort());var c=i.get(l);c.advanceWidth=a,c.leftSideBearing=s}}function i(e){for(var t=new a.Table("hmtx",[]),n=0;n<e.length;n+=1){var r=e.get(n),i=r.advanceWidth||0,o=r.leftSideBearing||0;t.fields.push({name:"advanceWidth_"+n,type:"USHORT",value:i}),t.fields.push({name:"leftSideBearing_"+n,type:"SHORT",value:o})}return t}var o=n(7),a=n(14);t.parse=r,t.make=i},function(e,t,n){"use strict";function r(e,t){var n={},r=new o.Parser(e,t);return n.version=r.parseVersion(),n.numGlyphs=r.parseUShort(),1===n.version&&(n.maxPoints=r.parseUShort(),n.maxContours=r.parseUShort(),n.maxCompositePoints=r.parseUShort(),n.maxCompositeContours=r.parseUShort(),n.maxZones=r.parseUShort(),n.maxTwilightPoints=r.parseUShort(),n.maxStorage=r.parseUShort(),n.maxFunctionDefs=r.parseUShort(),n.maxInstructionDefs=r.parseUShort(),n.maxStackElements=r.parseUShort(),n.maxSizeOfInstructions=r.parseUShort(),n.maxComponentElements=r.parseUShort(),n.maxComponentDepth=r.parseUShort()),n}function i(e){return new a.Table("maxp",[{name:"version",type:"FIXED",value:20480},{name:"numGlyphs",type:"USHORT",value:e}])}var o=n(7),a=n(14);t.parse=r,t.make=i},function(e,t,n){"use strict";function r(e,t){var n={},r=new l.Parser(e,t);n.format=r.parseUShort();for(var i=r.parseUShort(),o=r.offset+r.parseUShort(),a=0,s=0;i>s;s++){var u=r.parseUShort(),c=r.parseUShort(),f=r.parseUShort(),p=r.parseUShort(),d=h[p],v=r.parseUShort(),m=r.parseUShort();if(3===u&&1===c&&1033===f){for(var g=[],y=v/2,b=0;y>b;b++,m+=2)g[b]=l.getShort(e,o+m);var _=String.fromCharCode.apply(null,g);d?n[d]=_:(a++,n["unknown"+a]=_)}}return 1===n.format&&(n.langTagCount=r.parseUShort()),n}function i(e,t,n,r,i,o){return new c.Table("NameRecord",[{name:"platformID",type:"USHORT",value:e},{name:"encodingID",type:"USHORT",value:t},{name:"languageID",type:"USHORT",value:n},{name:"nameID",type:"USHORT",value:r},{name:"length",type:"USHORT",value:i},{name:"offset",type:"USHORT",value:o}])}function o(e,t,n,r){var o=u.STRING(n);return e.records.push(i(1,0,0,t,o.length,r)),e.strings.push(o),r+=o.length}function a(e,t,n,r){var o=u.UTF16(n);return e.records.push(i(3,1,1033,t,o.length,r)),e.strings.push(o),r+=o.length}function s(e){var t=new c.Table("name",[{name:"format",type:"USHORT",value:0},{name:"count",type:"USHORT",value:0},{name:"stringOffset",type:"USHORT",value:0}]);t.records=[],t.strings=[];var n,r,i=0;for(n=0;n<h.length;n+=1)void 0!==e[h[n]]&&(r=e[h[n]],i=o(t,n,r,i));for(n=0;n<h.length;n+=1)void 0!==e[h[n]]&&(r=e[h[n]],i=a(t,n,r,i));for(t.count=t.records.length,t.stringOffset=6+12*t.count,n=0;n<t.records.length;n+=1)t.fields.push({name:"record_"+n,type:"TABLE",value:t.records[n]});for(n=0;n<t.strings.length;n+=1)t.fields.push({name:"string_"+n,type:"LITERAL",value:t.strings[n]});return t}var u=n(62).encode,l=n(7),c=n(14),h=["copyright","fontFamily","fontSubfamily","uniqueID","fullName","version","postScriptName","trademark","manufacturer","designer","description","manufacturerURL","designerURL","licence","licenceURL","reserved","preferredFamily","preferredSubfamily","compatibleFullName","sampleText","postScriptFindFontName","wwsFamily","wwsSubfamily"];t.parse=r,t.make=s},function(e,t,n){"use strict";function r(e){for(var t=0;t<u.length;t+=1){var n=u[t];if(e>=n.begin&&e<n.end)return t}return-1;
}function i(e,t){var n={},r=new a.Parser(e,t);n.version=r.parseUShort(),n.xAvgCharWidth=r.parseShort(),n.usWeightClass=r.parseUShort(),n.usWidthClass=r.parseUShort(),n.fsType=r.parseUShort(),n.ySubscriptXSize=r.parseShort(),n.ySubscriptYSize=r.parseShort(),n.ySubscriptXOffset=r.parseShort(),n.ySubscriptYOffset=r.parseShort(),n.ySuperscriptXSize=r.parseShort(),n.ySuperscriptYSize=r.parseShort(),n.ySuperscriptXOffset=r.parseShort(),n.ySuperscriptYOffset=r.parseShort(),n.yStrikeoutSize=r.parseShort(),n.yStrikeoutPosition=r.parseShort(),n.sFamilyClass=r.parseShort(),n.panose=[];for(var i=0;10>i;i++)n.panose[i]=r.parseByte();return n.ulUnicodeRange1=r.parseULong(),n.ulUnicodeRange2=r.parseULong(),n.ulUnicodeRange3=r.parseULong(),n.ulUnicodeRange4=r.parseULong(),n.achVendID=String.fromCharCode(r.parseByte(),r.parseByte(),r.parseByte(),r.parseByte()),n.fsSelection=r.parseUShort(),n.usFirstCharIndex=r.parseUShort(),n.usLastCharIndex=r.parseUShort(),n.sTypoAscender=r.parseShort(),n.sTypoDescender=r.parseShort(),n.sTypoLineGap=r.parseShort(),n.usWinAscent=r.parseUShort(),n.usWinDescent=r.parseUShort(),n.version>=1&&(n.ulCodePageRange1=r.parseULong(),n.ulCodePageRange2=r.parseULong()),n.version>=2&&(n.sxHeight=r.parseShort(),n.sCapHeight=r.parseShort(),n.usDefaultChar=r.parseUShort(),n.usBreakChar=r.parseUShort(),n.usMaxContent=r.parseUShort()),n}function o(e){return new s.Table("OS/2",[{name:"version",type:"USHORT",value:3},{name:"xAvgCharWidth",type:"SHORT",value:0},{name:"usWeightClass",type:"USHORT",value:0},{name:"usWidthClass",type:"USHORT",value:0},{name:"fsType",type:"USHORT",value:0},{name:"ySubscriptXSize",type:"SHORT",value:650},{name:"ySubscriptYSize",type:"SHORT",value:699},{name:"ySubscriptXOffset",type:"SHORT",value:0},{name:"ySubscriptYOffset",type:"SHORT",value:140},{name:"ySuperscriptXSize",type:"SHORT",value:650},{name:"ySuperscriptYSize",type:"SHORT",value:699},{name:"ySuperscriptXOffset",type:"SHORT",value:0},{name:"ySuperscriptYOffset",type:"SHORT",value:479},{name:"yStrikeoutSize",type:"SHORT",value:49},{name:"yStrikeoutPosition",type:"SHORT",value:258},{name:"sFamilyClass",type:"SHORT",value:0},{name:"bFamilyType",type:"BYTE",value:0},{name:"bSerifStyle",type:"BYTE",value:0},{name:"bWeight",type:"BYTE",value:0},{name:"bProportion",type:"BYTE",value:0},{name:"bContrast",type:"BYTE",value:0},{name:"bStrokeVariation",type:"BYTE",value:0},{name:"bArmStyle",type:"BYTE",value:0},{name:"bLetterform",type:"BYTE",value:0},{name:"bMidline",type:"BYTE",value:0},{name:"bXHeight",type:"BYTE",value:0},{name:"ulUnicodeRange1",type:"ULONG",value:0},{name:"ulUnicodeRange2",type:"ULONG",value:0},{name:"ulUnicodeRange3",type:"ULONG",value:0},{name:"ulUnicodeRange4",type:"ULONG",value:0},{name:"achVendID",type:"CHARARRAY",value:"XXXX"},{name:"fsSelection",type:"USHORT",value:0},{name:"usFirstCharIndex",type:"USHORT",value:0},{name:"usLastCharIndex",type:"USHORT",value:0},{name:"sTypoAscender",type:"SHORT",value:0},{name:"sTypoDescender",type:"SHORT",value:0},{name:"sTypoLineGap",type:"SHORT",value:0},{name:"usWinAscent",type:"USHORT",value:0},{name:"usWinDescent",type:"USHORT",value:0},{name:"ulCodePageRange1",type:"ULONG",value:0},{name:"ulCodePageRange2",type:"ULONG",value:0},{name:"sxHeight",type:"SHORT",value:0},{name:"sCapHeight",type:"SHORT",value:0},{name:"usDefaultChar",type:"USHORT",value:0},{name:"usBreakChar",type:"USHORT",value:0},{name:"usMaxContext",type:"USHORT",value:0}],e)}var a=n(7),s=n(14),u=[{begin:0,end:127},{begin:128,end:255},{begin:256,end:383},{begin:384,end:591},{begin:592,end:687},{begin:688,end:767},{begin:768,end:879},{begin:880,end:1023},{begin:11392,end:11519},{begin:1024,end:1279},{begin:1328,end:1423},{begin:1424,end:1535},{begin:42240,end:42559},{begin:1536,end:1791},{begin:1984,end:2047},{begin:2304,end:2431},{begin:2432,end:2559},{begin:2560,end:2687},{begin:2688,end:2815},{begin:2816,end:2943},{begin:2944,end:3071},{begin:3072,end:3199},{begin:3200,end:3327},{begin:3328,end:3455},{begin:3584,end:3711},{begin:3712,end:3839},{begin:4256,end:4351},{begin:6912,end:7039},{begin:4352,end:4607},{begin:7680,end:7935},{begin:7936,end:8191},{begin:8192,end:8303},{begin:8304,end:8351},{begin:8352,end:8399},{begin:8400,end:8447},{begin:8448,end:8527},{begin:8528,end:8591},{begin:8592,end:8703},{begin:8704,end:8959},{begin:8960,end:9215},{begin:9216,end:9279},{begin:9280,end:9311},{begin:9312,end:9471},{begin:9472,end:9599},{begin:9600,end:9631},{begin:9632,end:9727},{begin:9728,end:9983},{begin:9984,end:10175},{begin:12288,end:12351},{begin:12352,end:12447},{begin:12448,end:12543},{begin:12544,end:12591},{begin:12592,end:12687},{begin:43072,end:43135},{begin:12800,end:13055},{begin:13056,end:13311},{begin:44032,end:55215},{begin:55296,end:57343},{begin:67840,end:67871},{begin:19968,end:40959},{begin:57344,end:63743},{begin:12736,end:12783},{begin:64256,end:64335},{begin:64336,end:65023},{begin:65056,end:65071},{begin:65040,end:65055},{begin:65104,end:65135},{begin:65136,end:65279},{begin:65280,end:65519},{begin:65520,end:65535},{begin:3840,end:4095},{begin:1792,end:1871},{begin:1920,end:1983},{begin:3456,end:3583},{begin:4096,end:4255},{begin:4608,end:4991},{begin:5024,end:5119},{begin:5120,end:5759},{begin:5760,end:5791},{begin:5792,end:5887},{begin:6016,end:6143},{begin:6144,end:6319},{begin:10240,end:10495},{begin:40960,end:42127},{begin:5888,end:5919},{begin:66304,end:66351},{begin:66352,end:66383},{begin:66560,end:66639},{begin:118784,end:119039},{begin:119808,end:120831},{begin:1044480,end:1048573},{begin:65024,end:65039},{begin:917504,end:917631},{begin:6400,end:6479},{begin:6480,end:6527},{begin:6528,end:6623},{begin:6656,end:6687},{begin:11264,end:11359},{begin:11568,end:11647},{begin:19904,end:19967},{begin:43008,end:43055},{begin:65536,end:65663},{begin:65856,end:65935},{begin:66432,end:66463},{begin:66464,end:66527},{begin:66640,end:66687},{begin:66688,end:66735},{begin:67584,end:67647},{begin:68096,end:68191},{begin:119552,end:119647},{begin:73728,end:74751},{begin:119648,end:119679},{begin:7040,end:7103},{begin:7168,end:7247},{begin:7248,end:7295},{begin:43136,end:43231},{begin:43264,end:43311},{begin:43312,end:43359},{begin:43520,end:43615},{begin:65936,end:65999},{begin:66e3,end:66047},{begin:66208,end:66271},{begin:127024,end:127135}];t.unicodeRanges=u,t.getUnicodeRange=r,t.parse=i,t.make=o},function(e,t,n){"use strict";function r(e,t){var n,r={},i=new a.Parser(e,t);switch(r.version=i.parseVersion(),r.italicAngle=i.parseFixed(),r.underlinePosition=i.parseShort(),r.underlineThickness=i.parseShort(),r.isFixedPitch=i.parseULong(),r.minMemType42=i.parseULong(),r.maxMemType42=i.parseULong(),r.minMemType1=i.parseULong(),r.maxMemType1=i.parseULong(),r.version){case 1:r.names=o.standardNames.slice();break;case 2:for(r.numberOfGlyphs=i.parseUShort(),r.glyphNameIndex=new Array(r.numberOfGlyphs),n=0;n<r.numberOfGlyphs;n++)r.glyphNameIndex[n]=i.parseUShort();for(r.names=[],n=0;n<r.numberOfGlyphs;n++)if(r.glyphNameIndex[n]>=o.standardNames.length){var s=i.parseChar();r.names.push(i.parseString(s))}break;case 2.5:for(r.numberOfGlyphs=i.parseUShort(),r.offset=new Array(r.numberOfGlyphs),n=0;n<r.numberOfGlyphs;n++)r.offset[n]=i.parseChar()}return r}function i(){return new s.Table("post",[{name:"version",type:"FIXED",value:196608},{name:"italicAngle",type:"FIXED",value:0},{name:"underlinePosition",type:"FWORD",value:0},{name:"underlineThickness",type:"FWORD",value:0},{name:"isFixedPitch",type:"ULONG",value:0},{name:"minMemType42",type:"ULONG",value:0},{name:"maxMemType42",type:"ULONG",value:0},{name:"minMemType1",type:"ULONG",value:0},{name:"maxMemType1",type:"ULONG",value:0}])}var o=n(49),a=n(7),s=n(14);t.parse=r,t.make=i},function(e,t){"use strict";function n(e,t){return e+t.charAt(0).toUpperCase()+t.substring(1)}var r={boxFlex:!0,boxFlexGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0},i=["Webkit","ms","Moz","O"];Object.keys(r).forEach(function(e){i.forEach(function(t){r[n(t,e)]=r[e]})});var o={background:{backgroundImage:!0,backgroundPosition:!0,backgroundRepeat:!0,backgroundColor:!0},border:{borderWidth:!0,borderStyle:!0,borderColor:!0},borderBottom:{borderBottomWidth:!0,borderBottomStyle:!0,borderBottomColor:!0},borderLeft:{borderLeftWidth:!0,borderLeftStyle:!0,borderLeftColor:!0},borderRight:{borderRightWidth:!0,borderRightStyle:!0,borderRightColor:!0},borderTop:{borderTopWidth:!0,borderTopStyle:!0,borderTopColor:!0},font:{fontStyle:!0,fontVariant:!0,fontWeight:!0,fontSize:!0,lineHeight:!0,fontFamily:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:o};e.exports=a},function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(a(n>-1),!l.plugins[n]){a(t.extractEvents),l.plugins[n]=t;var r=t.eventTypes;for(var o in r)a(i(r[o],t,o))}}}function i(e,t,n){a(!l.eventNameDispatchConfigs.hasOwnProperty(n)),l.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var i in r)if(r.hasOwnProperty(i)){var s=r[i];o(s,t,n)}return!0}return e.registrationName?(o(e.registrationName,t,n),!0):!1}function o(e,t,n){a(!l.registrationNameModules[e]),l.registrationNameModules[e]=t,l.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(1),s=null,u={},l={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},injectEventPluginOrder:function(e){a(!s),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var i=e[n];u.hasOwnProperty(n)&&u[n]===i||(a(!u[n]),u[n]=i,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return l.registrationNameModules[t.registrationName]||null;for(var n in t.phasedRegistrationNames)if(t.phasedRegistrationNames.hasOwnProperty(n)){var r=l.registrationNameModules[t.phasedRegistrationNames[n]];if(r)return r}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];l.plugins.length=0;var t=l.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=l.registrationNameModules;for(var i in r)r.hasOwnProperty(i)&&delete r[i]}};e.exports=l},function(e,t,n){"use strict";function r(e,t){this.forEachFunction=e,this.forEachContext=t}function i(e,t,n,r){var i=e;i.forEachFunction.call(i.forEachContext,t,r)}function o(e,t,n){if(null==e)return e;var o=r.getPooled(t,n);p(e,i,o),r.release(o)}function a(e,t,n){this.mapResult=e,this.mapFunction=t,this.mapContext=n}function s(e,t,n,r){var i=e,o=i.mapResult,a=!o.hasOwnProperty(n);if(a){var s=i.mapFunction.call(i.mapContext,t,r);o[n]=s}}function u(e,t,n){if(null==e)return e;var r={},i=a.getPooled(r,t,n);return p(e,s,i),a.release(i),f.create(r)}function l(e,t,n,r){return null}function c(e,t){return p(e,l,null)}var h=n(18),f=n(33),p=n(127),d=(n(3),h.twoArgumentPooler),v=h.threeArgumentPooler;h.addPoolingTo(r,d),h.addPoolingTo(a,v);var m={forEach:o,map:u,count:c};e.exports=m},function(e,t,n){"use strict";function r(e,t){this.props=e,this.context=t}var i=n(75),o=n(1);n(3);r.prototype.setState=function(e,t){o("object"==typeof e||"function"==typeof e||null==e),i.enqueueSetState(this,e),t&&i.enqueueCallback(this,t)},r.prototype.forceUpdate=function(e){i.enqueueForceUpdate(this),e&&i.enqueueCallback(this,e)};e.exports=r},function(e,t,n){"use strict";var r=n(63),i=n(189),o=n(42),a=n(21),s=n(25),u=n(1),l=n(83),c={dangerouslySetInnerHTML:"`dangerouslySetInnerHTML` must be set using `updateInnerHTMLByID()`.",style:"`style` must be set using `updateStylesByID()`."},h={updatePropertyByID:function(e,t,n){var r=a.getNode(e);u(!c.hasOwnProperty(t)),null!=n?o.setValueForProperty(r,t,n):o.deleteValueForProperty(r,t)},deletePropertyByID:function(e,t,n){var r=a.getNode(e);u(!c.hasOwnProperty(t)),o.deleteValueForProperty(r,t,n)},updateStylesByID:function(e,t){var n=a.getNode(e);r.setValueForStyles(n,t)},updateInnerHTMLByID:function(e,t){var n=a.getNode(e);l(n,t)},updateTextContentByID:function(e,t){var n=a.getNode(e);i.updateTextContent(n,t)},dangerouslyReplaceNodeWithMarkupByID:function(e,t){var n=a.getNode(e);i.dangerouslyReplaceNodeWithMarkup(n,t)},dangerouslyProcessChildrenUpdates:function(e,t){for(var n=0;n<e.length;n++)e[n].parentNode=a.getNode(e[n].parentID);i.processUpdates(e,t)}};s.measureMethods(h,"ReactDOMIDOperations",{updatePropertyByID:"updatePropertyByID",deletePropertyByID:"deletePropertyByID",updateStylesByID:"updateStylesByID",updateInnerHTMLByID:"updateInnerHTMLByID",updateTextContentByID:"updateTextContentByID",dangerouslyReplaceNodeWithMarkupByID:"dangerouslyReplaceNodeWithMarkupByID",dangerouslyProcessChildrenUpdates:"dangerouslyProcessChildrenUpdates"}),e.exports=h},function(e,t,n){"use strict";var r=n(42),i=n(68),o=n(71),a=n(2),s=n(56),u=function(e){};a(u.prototype,{construct:function(e){this._currentElement=e,this._stringText=""+e,this._rootNodeID=null,this._mountIndex=0},mountComponent:function(e,t,n){this._rootNodeID=e;var i=s(this._stringText);return t.renderToStaticMarkup?i:"<span "+r.createMarkupForID(e)+">"+i+"</span>"},receiveComponent:function(e,t){if(e!==this._currentElement){this._currentElement=e;var n=""+e;n!==this._stringText&&(this._stringText=n,o.BackendIDOperations.updateTextContentByID(this._rootNodeID,n))}},unmountComponent:function(){i.unmountIDFromEnvironment(this._rootNodeID)}}),e.exports=u},function(e,t,n){"use strict";function r(e){return o(document.documentElement,e)}var i=n(211),o=n(115),a=n(117),s=n(118),u={hasSelectionCapabilities:function(e){return e&&("INPUT"===e.nodeName&&"text"===e.type||"TEXTAREA"===e.nodeName||"true"===e.contentEditable)},getSelectionInformation:function(){var e=s();return{focusedElem:e,selectionRange:u.hasSelectionCapabilities(e)?u.getSelection(e):null}},restoreSelection:function(e){var t=s(),n=e.focusedElem,i=e.selectionRange;t!==n&&r(n)&&(u.hasSelectionCapabilities(n)&&u.setSelection(n,i),a(n))},getSelection:function(e){var t;if("selectionStart"in e)t={start:e.selectionStart,end:e.selectionEnd};else if(document.selection&&"INPUT"===e.nodeName){var n=document.selection.createRange();n.parentElement()===e&&(t={start:-n.moveStart("character",-e.value.length),end:-n.moveEnd("character",-e.value.length)})}else t=i.getOffsets(e);return t||{start:0,end:0}},setSelection:function(e,t){var n=t.start,r=t.end;if("undefined"==typeof r&&(r=n),"selectionStart"in e)e.selectionStart=n,e.selectionEnd=Math.min(r,e.value.length);else if(document.selection&&"INPUT"===e.nodeName){var o=e.createTextRange();o.collapse(!0),o.moveStart("character",n),o.moveEnd("character",r-n),o.select()}else i.setOffsets(e,t)}};e.exports=u},function(e,t,n){"use strict";var r=n(243),i={CHECKSUM_ATTR_NAME:"data-react-checksum",addChecksumToMarkup:function(e){var t=r(e);return e.replace(">"," "+i.CHECKSUM_ATTR_NAME+'="'+t+'">')},canReuseMarkup:function(e,t){var n=t.getAttribute(i.CHECKSUM_ATTR_NAME);n=n&&parseInt(n,10);var o=r(e);return o===n}};e.exports=i},function(e,t,n){"use strict";var r=n(47),i=r({INSERT_MARKUP:null,MOVE_EXISTING:null,REMOVE_NODE:null,TEXT_CONTENT:null});e.exports=i},function(e,t,n){"use strict";function r(e){function t(t,n,r,i,o){if(i=i||C,null==n[r]){var a=b[o];return t?new Error("Required "+a+" `"+r+"` was not specified in "+("`"+i+"`.")):null}return e(n,r,i,o)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function i(e){function t(t,n,r,i){var o=t[n],a=v(o);if(a!==e){var s=b[i],u=m(o);return new Error("Invalid "+s+" `"+n+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `"+e+"`."))}return null}return r(t)}function o(){return r(_.thatReturns(null))}function a(e){function t(t,n,r,i){var o=t[n];if(!Array.isArray(o)){var a=b[i],s=v(o);return new Error("Invalid "+a+" `"+n+"` of type "+("`"+s+"` supplied to `"+r+"`, expected an array."))}for(var u=0;u<o.length;u++){var l=e(o,u,r,i);if(l instanceof Error)return l}return null}return r(t)}function s(){function e(e,t,n,r){if(!g.isValidElement(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactElement."))}return null}return r(e)}function u(e){function t(t,n,r,i){if(!(t[n]instanceof e)){var o=b[i],a=e.name||C;return new Error("Invalid "+o+" `"+n+"` supplied to "+("`"+r+"`, expected instance of `"+a+"`."))}return null}return r(t)}function l(e){function t(t,n,r,i){for(var o=t[n],a=0;a<e.length;a++)if(o===e[a])return null;var s=b[i],u=JSON.stringify(e);return new Error("Invalid "+s+" `"+n+"` of value `"+o+"` "+("supplied to `"+r+"`, expected one of "+u+"."))}return r(t)}function c(e){function t(t,n,r,i){var o=t[n],a=v(o);if("object"!==a){var s=b[i];return new Error("Invalid "+s+" `"+n+"` of type "+("`"+a+"` supplied to `"+r+"`, expected an object."))}for(var u in o)if(o.hasOwnProperty(u)){var l=e(o,u,r,i);if(l instanceof Error)return l}return null}return r(t)}function h(e){function t(t,n,r,i){for(var o=0;o<e.length;o++){var a=e[o];if(null==a(t,n,r,i))return null}var s=b[i];return new Error("Invalid "+s+" `"+n+"` supplied to "+("`"+r+"`."))}return r(t)}function f(){function e(e,t,n,r){if(!d(e[t])){var i=b[r];return new Error("Invalid "+i+" `"+t+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return r(e)}function p(e){function t(t,n,r,i){var o=t[n],a=v(o);if("object"!==a){var s=b[i];return new Error("Invalid "+s+" `"+n+"` of type `"+a+"` "+("supplied to `"+r+"`, expected `object`."))}for(var u in e){var l=e[u];if(l){var c=l(o,u,r,i);if(c)return c}}return null}return r(t)}function d(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(d);if(null===e||g.isValidElement(e))return!0;e=y.extractIfFragment(e);for(var t in e)if(!d(e[t]))return!1;return!0;default:return!1}}function v(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":t}function m(e){var t=v(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}var g=n(4),y=n(33),b=n(52),_=n(15),C="<<anonymous>>",w=s(),x=f(),E={array:i("array"),bool:i("boolean"),func:i("function"),number:i("number"),object:i("object"),string:i("string"),any:o(),arrayOf:a,element:w,instanceOf:u,node:x,objectOf:c,oneOf:l,oneOfType:h,shape:p};e.exports=E},function(e,t,n){"use strict";function r(){this.listenersToPut=[]}var i=n(18),o=n(32),a=n(2);a(r.prototype,{enqueuePutListener:function(e,t,n){this.listenersToPut.push({rootNodeID:e,propKey:t,propValue:n})},putListeners:function(){for(var e=0;e<this.listenersToPut.length;e++){var t=this.listenersToPut[e];o.putListener(t.rootNodeID,t.propKey,t.propValue)}},reset:function(){this.listenersToPut.length=0},destructor:function(){this.reset()}}),i.addPoolingTo(r),e.exports=r},function(e,t){"use strict";var n={injectCreateReactRootIndex:function(e){r.createReactRootIndex=e}},r={createReactRootIndex:null,injection:n};e.exports=r},function(e,t,n){"use strict";var r=n(31),i=n(228),o=n(2),a=n(114),s=n(15),u=r.createClass({displayName:"ReactTransitionGroup",propTypes:{component:r.PropTypes.any,childFactory:r.PropTypes.func},getDefaultProps:function(){return{component:"span",childFactory:s.thatReturnsArgument}},getInitialState:function(){return{children:i.getChildMapping(this.props.children)}},componentWillMount:function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},componentDidMount:function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},componentWillReceiveProps:function(e){var t=i.getChildMapping(e.children),n=this.state.children;this.setState({children:i.mergeChildMappings(n,t)});var r;for(r in t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var a=t&&t.hasOwnProperty(r);!n[r]||a||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},componentDidUpdate:function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},performAppear:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillAppear?t.componentWillAppear(this._handleDoneAppearing.bind(this,e)):this._handleDoneAppearing(e)},_handleDoneAppearing:function(e){var t=this.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete this.currentlyTransitioningKeys[e];var n=i.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performEnter:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillEnter?t.componentWillEnter(this._handleDoneEntering.bind(this,e)):this._handleDoneEntering(e)},_handleDoneEntering:function(e){var t=this.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete this.currentlyTransitioningKeys[e];var n=i.getChildMapping(this.props.children);n&&n.hasOwnProperty(e)||this.performLeave(e)},performLeave:function(e){this.currentlyTransitioningKeys[e]=!0;var t=this.refs[e];t.componentWillLeave?t.componentWillLeave(this._handleDoneLeaving.bind(this,e)):this._handleDoneLeaving(e)},_handleDoneLeaving:function(e){var t=this.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete this.currentlyTransitioningKeys[e];var n=i.getChildMapping(this.props.children);if(n&&n.hasOwnProperty(e))this.performEnter(e);else{var r=o({},this.state.children);delete r[e],this.setState({children:r})}},render:function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(a(this.props.childFactory(n),{ref:t,key:t}))}return r.createElement(this.props.component,this.props,e)}});e.exports=u},function(e,t){"use strict";var n={currentScrollLeft:0,currentScrollTop:0,refreshScrollValues:function(e){n.currentScrollLeft=e.x,n.currentScrollTop=e.y}};e.exports=n},function(e,t,n){"use strict";function r(e,t){var n=o.mergeProps(t,e.props);return!n.hasOwnProperty(s)&&e.props.hasOwnProperty(s)&&(n.children=e.props.children),i.createElement(e.type,n)}var i=n(4),o=n(222),a=n(16),s=(n(3),a({children:null}));e.exports=r},function(e,t,n){function r(e,t){return e&&t?e===t?!0:i(e)?!1:i(t)?r(e,t.parentNode):e.contains?e.contains(t):e.compareDocumentPosition?!!(16&e.compareDocumentPosition(t)):!1:!1}var i=n(257);e.exports=r},function(e,t,n){"use strict";function r(e){return null==e?null:s(e)?e:i.has(e)?o.getNodeFromInstance(e):(a(null==e.render||"function"!=typeof e.render),void a(!1))}var i=(n(20),n(35)),o=n(21),a=n(1),s=n(123);n(3);e.exports=r},function(e,t){"use strict";function n(e){try{e.focus()}catch(t){}}e.exports=n},function(e,t){function n(){try{return document.activeElement||document.body}catch(e){return document.body}}e.exports=n},function(e,t,n){"use strict";function r(e){if(e.key){var t=o[e.key]||e.key;if("Unidentified"!==t)return t}if("keypress"===e.type){var n=i(e);return 13===n?"Enter":String.fromCharCode(n)}return"keydown"===e.type||"keyup"===e.type?a[e.keyCode]||"Unidentified":""}var i=n(78),o={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},a={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};e.exports=r},function(e,t){"use strict";function n(e){var t=e&&(r&&e[r]||e[i]);return"function"==typeof t?t:void 0}var r="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";e.exports=n},function(e,t,n){function r(e){return o(!!a),f.hasOwnProperty(e)||(e="*"),s.hasOwnProperty(e)||("*"===e?a.innerHTML="<link />":a.innerHTML="<"+e+"></"+e+">",s[e]=!a.firstChild),s[e]?f[e]:null}var i=n(6),o=n(1),a=i.canUseDOM?document.createElement("div"):null,s={circle:!0,clipPath:!0,defs:!0,ellipse:!0,g:!0,line:!0,linearGradient:!0,path:!0,polygon:!0,polyline:!0,radialGradient:!0,rect:!0,stop:!0,text:!0},u=[1,'<select multiple="true">',"</select>"],l=[1,"<table>","</table>"],c=[3,"<table><tbody><tr>","</tr></tbody></table>"],h=[1,"<svg>","</svg>"],f={"*":[1,"?<div>","</div>"],area:[1,"<map>","</map>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],legend:[1,"<fieldset>","</fieldset>"],param:[1,"<object>","</object>"],tr:[2,"<table><tbody>","</tbody></table>"],optgroup:u,option:u,caption:l,colgroup:l,tbody:l,tfoot:l,thead:l,td:c,th:c,circle:h,clipPath:h,defs:h,ellipse:h,g:h,line:h,linearGradient:h,path:h,polygon:h,polyline:h,radialGradient:h,rect:h,stop:h,text:h};e.exports=r},function(e,t,n){"use strict";function r(){return!o&&i.canUseDOM&&(o="textContent"in document.documentElement?"textContent":"innerText"),o}var i=n(6),o=null;e.exports=r},function(e,t){function n(e){return!(!e||!("function"==typeof Node?e instanceof Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}e.exports=n},function(e,t){"use strict";function n(e){return e&&("INPUT"===e.nodeName&&r[e.type]||"TEXTAREA"===e.nodeName)}var r={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};e.exports=n},function(e,t,n){"use strict";function r(e){return o(i.isValidElement(e)),e}var i=n(4),o=n(1);e.exports=r},function(e,t){"use strict";function n(e,t){if(e===t)return!0;var n;for(n in e)if(e.hasOwnProperty(n)&&(!t.hasOwnProperty(n)||e[n]!==t[n]))return!1;for(n in t)if(t.hasOwnProperty(n)&&!e.hasOwnProperty(n))return!1;return!0}e.exports=n},function(e,t,n){"use strict";function r(e){return m[e]}function i(e,t){return e&&null!=e.key?a(e.key):t.toString(36)}function o(e){return(""+e).replace(g,r)}function a(e){return"$"+o(e)}function s(e,t,n,r,o){var u=typeof e;if(("undefined"===u||"boolean"===u)&&(e=null),null===e||"string"===u||"number"===u||l.isValidElement(e))return r(o,e,""===t?d+i(e,0):t,n),1;var h,m,g,y=0;if(Array.isArray(e))for(var b=0;b<e.length;b++)h=e[b],m=(""!==t?t+v:d)+i(h,b),g=n+y,y+=s(h,m,g,r,o);else{var _=f(e);if(_){var C,w=_.call(e);if(_!==e.entries)for(var x=0;!(C=w.next()).done;)h=C.value,m=(""!==t?t+v:d)+i(h,x++),g=n+y,y+=s(h,m,g,r,o);else for(;!(C=w.next()).done;){var E=C.value;E&&(h=E[1],m=(""!==t?t+v:d)+a(E[0])+v+i(h,0),g=n+y,y+=s(h,m,g,r,o))}}else if("object"===u){p(1!==e.nodeType);var S=c.extract(e);for(var k in S)S.hasOwnProperty(k)&&(h=S[k],m=(""!==t?t+v:d)+a(k)+v+i(h,0),g=n+y,y+=s(h,m,g,r,o))}}return y}function u(e,t,n){return null==e?0:s(e,"",0,t,n)}var l=n(4),c=n(33),h=n(34),f=n(120),p=n(1),d=(n(3),h.SEPARATOR),v=":",m={"=":"=0",".":"=1",":":"=2"},g=/[=.:]/g;e.exports=u},function(e,t){"use strict";e.exports={onObjectEvent:function(e){this._proxy.owner=this,this._proxy.on(e)},offObjectEvent:function(e){this._proxy.off(e)},onObjectStateReady:function(e){function t(){var r=n.filter(function(e){return!e._version});if(r.length){var i=Math.random()*(r.length-1)|0;r[i].once("init",t)}else e()}var n=this;this._version?t():this.once("init",t)}}},function(e,t,n){"use strict";var r=n(10),i=function(e,t){var n=this.codeBook=t||{en:{},de:{}};if(n.en||(n.en={}),!n.de){n.de={};for(var r in n.en)n.de[n.en[r]]=r}n.lastCodes||(n.lastCodes={"/":48,"#":48,"!":48,".":48,"+":48}),this.chunks=[],this.chunkLengths=[],e&&this.append(e)};i.reQTokEn=/([/#\!\.\+])([0-\u802f]+)/g,i.reQTok=new RegExp("([/#\\.!\\*\\+])(=)".replace(/=/g,r.rT),"g"),i.rTEn="[0-\\u802f]+",i.reQTokExtEn=new RegExp("([/#\\.!\\*])((=)(?:\\+(=))?)".replace(/=/g,i.rTEn),"g"),i.prototype.toString=function(){for(var e=[],t=this.iterator();!t.end();t.next())e.push(t.decode());return e.join("")},i.prototype.length=function(){for(var e=0,t=0;t<this.chunks.length;t++)e+=this.chunkLengths[t];return e},i.prototype.charLength=function(){for(var e=0,t=0;t<this.chunks.length;t++)e+=this.chunks[t].length;return e},i.prototype.allocateCode=function(e){var t,n=e.charAt(0),r=this.codeBook,i=r.lastCodes;if(i[n]<"z".charCodeAt(0))for(var o=1;!t&&o<e.length;o++){var a=e.charAt(o),s=n+a;r.de[s]||(t=s)}for(;!t&&i[n]<32815;){var u=String.fromCharCode(i[n]++),l=n+u;r.en[l]||(t=l)}if(!t){if(e.length<=3)throw new Error("out of codes");t=e}return r.en[e]=t,r.de[t]=e,t},i.int2uni=function(e){if(0>e||e>2147483647)throw new Error("int is out of range");return String.fromCharCode(48+(e>>15),48+(32767&e))},i.uni2int=function(e){if(!/^[0-\u802f]{2}$/.test(e))throw new Error("invalid unicode number");return e.charCodeAt(0)-48<<15|e.charCodeAt(1)-48},i.Iterator=function(e,t){this.owner=e,this.skip2chunk(0),t&&(t.constructor===i.Iterator&&(t=t.index),this.skip(t))},i.Iterator.reTok=new RegExp("([/#\\.!\\*])((=)(?:\\+(=))?)?".replace(/=/g,i.rTEn),"g"),i.Iterator.prototype.encode=function(e){var t=r.reQTokExt;t.lastIndex=0;var n=t.exec(e);if(!n||n[0].length!==e.length)throw new Error("malformed token: "+e);var o,a,s,u,l,c,h=n[0],f=n[1],p=n[3],d=n[4],v=this.prevFull;v&&(o=v[0],a=v[1],s=v[3],u=v[4]?"+"+v[4]:void 0),d&&(c=this.owner.codeBook.en["+"+d]||this.owner.allocateCode("+"+d));var m,g,y,b,_=v&&f===a&&c===u,C=!1,w="";if(p.length<=4||f in i.quants2code||h in this.owner.codeBook.en)l=this.owner.codeBook.en[f+p]||this.owner.allocateCode(f+p),l=l.substr(1),_&&(w=l);else if(5===p.length){var x=r.base2int(p);l=i.int2uni(x),_&&2===s.length&&(w=i.int2uni(x-this.prevCollapsed-1))}else 7===p.length?(m=r.base2int(p.substr(0,5)),g=r.base2int(p.substr(5,2)),y=i.int2uni(m),b=i.int2uni(g).charAt(1),l=y+b,_&&3===s.length&&(w=y+i.int2uni(g-this.prevCollapsed-1).charAt(1))):10===p.length?(m=r.base2int(p.substr(0,5)),g=r.base2int(p.substr(5,5)),y=i.int2uni(m),b=i.int2uni(g),l=y+b,_&&4===s.length&&(w=y+i.int2uni(g-this.prevCollapsed-1))):(l=p,w=l);return C=w===s,C?f:f+l+(c||"")},i.quants2code={"/":1,".":1},i.Iterator.prototype.decode=function(){if(null===this.match)return void 0;var e,t,n,o,a,s,u,l,c=this.match[1],h=this.match[3],f=this.match[4],p=this.prevFull,d=c;if(p&&(e=p[0],t=p[1],n=p[3],o=p[4]),!h){if(1===n.length)h=n;else{var v=n.length-1,m=n.charCodeAt(v);h=n.substr(0,v)+String.fromCharCode(m+this.prevCollapsed+1)}f=o}switch(h.length){case 1:d+=this.owner.codeBook.de[c+h].substr(1);break;case 2:a=i.uni2int(h),u=r.int2base(a,5),d+=u;break;case 3:a=i.uni2int(h.substr(0,2)),s=i.uni2int("0"+h.charAt(2)),u=r.int2base(a,5),l=r.int2base(s,2),d+=u+l;break;case 4:a=i.uni2int(h.substr(0,2)),s=i.uni2int(h.substr(2,2)),u=r.int2base(a,5),l=r.int2base(s,5),d+=u+l;break;default:d+=h}if(f){var g=this.owner.codeBook.de["+"+f];d+=g}return d},i.Iterator.prototype.next=function(){if(!this.end()){var e=i.Iterator.reTok;e.lastIndex=this.match?this.match.index+this.match[0].length:0;var t=this.owner.chunks[this.chunk];if(t.length!==e.lastIndex||(this.chunk++,this.chunkIndex=0,this.match&&this.match[0].length>0?(this.prevFull=this.match,this.prevCollapsed=0):this.match?this.prevCollapsed++:(this.prevFull=void 0,this.prevCollapsed=0),this.match=null,this.index++,!this.end()))return this.match[0].length>1?(this.prevFull=this.match,this.prevCollapsed=0):this.prevCollapsed++,this.match=e.exec(t),this.index++,this.chunkIndex++,this.match[0]}},i.Iterator.prototype.end=function(){return null===this.match&&this.chunk===this.owner.chunks.length},i.Iterator.prototype.skip=function(e){var t=this.owner.chunkLengths,n=this.owner.chunks;e=e||1;var r=e,i=t[this.chunk]-this.chunkIndex;if(e>=i){r-=i;for(var o=this.chunk+1;r>n[o]&&o<n.length;)r-=n[++o];this.skip2chunk(o)}if(this.chunk<n.length)for(;r>0;)this.next(),r--;return e-r},i.Iterator.prototype.skip2chunk=function(e){var t=this.owner.chunks;void 0===e&&(e=t.length),this.index=0;for(var n=0;e>n;n++)this.index+=this.owner.chunkLengths[n];this.chunkIndex=0,this.chunk=e;var o=i.Iterator.reTok;if(e<t.length?(o.lastIndex=0,this.match=o.exec(t[this.chunk])):this.match=null,e>0){for(var a=t[e-1],s=0;-1!==r.quants.indexOf(a.charAt(a.length-1-s));)s++;
this.prevCollapsed=s;for(var u=0;-1===r.quants.indexOf(a.charAt(a.length-1-s-u));)u++;o.lastIndex=a.length-1-s-u,this.prevFull=o.exec(a)}else this.prevFull=void 0,this.prevCollapsed=0},i.Iterator.prototype.token=function(){return this.decode()},i.Iterator.prototype.insert=function(e){var t=this.encode(e),n=this.match&&1===this.match[0].length,r=i.Iterator.reTok,o=this.owner.chunks,a=this.owner.chunkLengths;if(this.chunk==o.length)if(o.length>0){var s=this.chunk-1;o[s]+=t,a[s]++}else o.push(t),a.push(1),this.chunk++;else{var u=o[this.chunk],l=u.substr(0,this.match.index),c=u.substr(this.match.index);if(n){var h=this.token();this.prevFull=void 0;var f=this.encode(h);o[this.chunk]=l+t+f+c.substr(1),r.lastIndex=l.length+t.length,this.match=r.exec(o[this.chunk])}else o[this.chunk]=l+t+c,this.match.index+=t.length;a[this.chunk]++,this.chunkIndex++}this.index++,t.length>1?(r.lastIndex=0,this.prevFull=r.exec(t),this.prevCollapsed=0):this.prevCollapsed++},i.Iterator.prototype.insertBlock=function(e){for(var t,n=r.reQTokExt,i=e.match(n).reverse();t=i.pop();)this.insert(t)},i.Iterator.prototype.erase=function(e){if(!this.end()){e=e||1;var t=this.owner.chunks,n=this.owner.chunkLengths,r=this.chunk,i=this.match.index,o=this.chunkIndex;e=this.skip(e);var a=this.chunk,s=this.match?this.match.index:0,u=this.match&&1===this.match[0].length;if(r===a){var l=t[this.chunk],c=l.substr(0,i),h=l.substr(s);u&&(h=this.token()+h.substr(1)),t[this.chunk]=c+h,n[this.chunk]-=e,this.chunkIndex-=e}else{0===i?r--:(t[r]=t[r].substr(0,i),n[r]=o);var f=a-r-1;f&&(t.splice(r+1,f),n.splice(r+1,f)),a<t.length&&s>0&&(t[a]=t[a].substr(this.match.index),n[a]-=this.chunkIndex,this.chunkIndex=0)}this.index-=e}},i.Iterator.prototype.clone=function(){var e=new i.Iterator(this.owner);e.chunk=this.chunk,e.match=this.match,e.index=this.index},i.prototype.iterator=function(e){return new i.Iterator(this,e)},i.prototype.end=function(){var e=new i.Iterator(this);return e.skip2chunk(this.chunks.length),e},i.prototype.insert=function(e,t){var n=t.constructor===i.Iterator?t:this.iterator(t);n.insertBlock(e)},i.prototype.tokenAt=function(e){var t=this.iterator(e);return t.token()},i.prototype.indexOf=function(e,t){var n=this.find(e,t);return n.end()?-1:n.index},i.prototype.add=function(e){var t=this.end();t.insertBlock(e)},i.prototype.append=i.prototype.add,i.prototype.find=function(e,t){for(var n=this.iterator(t);!n.end();){if(n.token()===e)return n;n.next()}return n},e.exports=i},function(e,t,n){"use strict";function r(e,t,n){var r=this;if(r.opts=n||{},!t||!e)throw new Error("new Pipe(host,stream[,opts])");if(r._id=null,r.host=e,this.isOnSent=void 0,this.reconnectDelay=r.opts.reconnectDelay||1e3,r.serializer=r.opts.serializer||JSON,r.katimer=null,r.send_timer=null,r.lastSendTS=r.lastRecvTS=r.time(),r.bundle={},r.delay=r.opts.delay||-1,"function"!=typeof t.write){var o=t.toString(),a=o.match(/(\w+):.*/);if(!a)throw new Error("invalid url "+o);var s=a[1].toLowerCase(),u=i.streams[s];if(!u)throw new Error("protocol not supported: "+s);r.url=o,t=new u(o)}r.connect(t)}var i=n(23),o=n(10);e.exports=r,r.TIMEOUT=6e4,r.prototype.connect=function(e){var t=this;t.stream=e,t.stream.on("data",function(e){e=e.toString(),i.trace&&i.log(a,e,this,this.host),t.lastRecvTS=t.time();var n=t.serializer.parse(e);try{t._id?t.parseBundle(n):t.parseHandshake(n)}catch(r){console.error("error processing message",r,r.stack),this.close()}t.reconnectDelay=t.opts.reconnectDelay||1e3}),t.stream.on("close",function(e){t.stream=null,t.close("stream closed")}),t.stream.on("error",function(e){t.close("stream error event: "+e)}),t.katimer=setInterval(t.keepAliveFn.bind(t),r.TIMEOUT/4+100*Math.random()|0)},r.prototype.keepAliveFn=function(){var e=this.time(),t=e-this.lastRecvTS,n=e-this.lastSendTS;n>r.TIMEOUT/2&&this.sendBundle(),t>r.TIMEOUT&&this.close("stream timeout")},r.prototype.parseHandshake=function(e){var t,n,r;for(r in e){t=new o(r),n=e[r];break}if(!t)throw new Error("handshake has no spec");if("Host"!==t.type()&&i.warn("non-Host handshake"),t.id()===this.host._id)throw new Error("self hs");this._id=t.id();var a=t.op(),s=t.set(this.host._id,"#");if(!(a in{on:1,reon:1,off:1,reoff:1}))throw new Error("invalid handshake");this.host.deliver(s,n,this)},r.prototype.close=function(e){if(i.log(u,e?"error: "+e:"correct",this,this.host),e&&this.host&&this.url){var t=this.url,n=this.host,r=this.opts;r.reconnectDelay=Math.min(3e4,this.reconnectDelay<<1),setTimeout(function(){n.connect(t,r)},this.reconnectDelay),this.url=null}if(this.host){if(void 0!==this.isOnSent&&this._id){var o=this.host.newEventSpec(this.isOnSent?"off":"reoff");this.host.deliver(o,"",this)}this.host=null}if(this.katimer&&(clearInterval(this.katimer),this.katimer=null),this.stream){try{this.stream.close()}catch(a){}this.stream=null}this._id=null},r.prototype.deliver=function(e,t,n){var r=this;if(t&&t.constructor===o&&(t=t.toString()),"Host"===e.type())switch(e.op()){case"reoff":setTimeout(function(){r.isOnSent=void 0,r.close()},1);break;case"off":setTimeout(function(){r.close()},5e3);break;case"on":this.isOnSent=!0;case"reon":this.isOnSent=!1}if(this.bundle[e]=void 0===t?null:t,-1===this.delay)this.sendBundle();else if(!this.send_timer){var i=this.time(),a=i-this.lastSendTS,s=a>this.delay?this.delay:this.delay-a;this.send_timer=setTimeout(this.sendBundle.bind(this),s)}},r.prototype.time=function(){return(new Date).getTime()},r.prototype.spec=function(){return this._id?new o("/Host#"+this._id):""},r.prototype.parseBundle=function(e){var t,n=[],r=this;for(t in e)t&&n.push(new o(t));for(n.sort().reverse();t=n.pop();)t=o.as(t),this.host.deliver(t,e[t],this),"Host"===t.type()&&"reoff"===t.op()&&setTimeout(function(){r.isOnSent=void 0,r.close()},1)};var a=new o("/Pipe.in"),s=new o("/Pipe.out"),u=new o("/Pipe.close");r.prototype.sendBundle=function(){var e=this.serializer.stringify(this.bundle);if(this.bundle={},!this.stream)return void(this.send_timer=null);try{i.trace&&i.log(s,e,this,this.host),this.stream.write(e),this.lastSendTS=this.time()}catch(t){i.error("stream error on write: "+t,t.stack),this._id&&this.close("stream error",t)}finally{this.send_timer=null}}},function(e,t){"use strict";function n(){this.callbacks=null,this.owner=null}n.prototype.deliver=function(e,t,n){if(null!==this.callbacks)for(var r=this.owner||n,i=0;i<this.callbacks.length;i++){var o=this.callbacks[i];o.constructor===Function?o.call(r,e,t,n):o.deliver(e,t,n)}},n.prototype.on=function(e){null===this.callbacks&&(this.callbacks=[]),this.callbacks.push(e)},n.prototype.off=function(e){if(null!==this.callbacks){var t=this.callbacks.indexOf(e);-1!==t?this.callbacks.splice(t,1):console.warn("listener unknown",e)}},e.exports=n},function(e,t,n){"use strict";var r=n(23),i=n(10),o=n(27),a=n(85),s=n(131),u=n(128);e.exports=o.extend("Set",{defaults:{_objects:Object,_oplog:Object,_proxy:s},mixins:[u],reactions:{init:function(e,t,n){this.forEach(function(e){e.on(this._proxy)},this)}},ops:{change:function(e,t,n){t=this.distillOp(e,t);var i;for(i in t)1===t[i]?this._objects[i]||(this._objects[i]=this._host.get(i),this._objects[i].on(this._proxy)):0===t[i]?this._objects[i]&&(this._objects[i].off(this._proxy),delete this._objects[i]):r.log(this.spec(),"unexpected val",JSON.stringify(t))}},validate:function(e,t,n){if("change"!==e.op())return"";for(var r in t)if("/#"!==i.pattern(r))return"invalid spec: "+r;return""},distillOp:function(e,t){if(e.version()>this._version)return t;var n=e.filter("!.");return this._oplog[n]=t,this.distillLog(),this._oplog[n]||{}},distillLog:a.prototype.distillLog,pojo:function(){var e=o._pt.pojo.apply(this,arguments);return e.entries=Object.keys(this._objects),e},addObject:function(e){var t={};t[e.spec()]=1,this.change(t)},removeObject:function(e){var t=e._id?e.spec():new i(e).filter("/#");if("/#"!==t.pattern())throw new Error("invalid spec: "+t);var n={};n[t]=0,this.change(n)},get:function(e){if(e=new i(e).filter("/#"),"/#"!==e.pattern())throw new Error("invalid spec");return this._objects[e]},list:function(e){var t=[];for(var n in this._objects)t.push(this._objects[n]);return t.sort(e),t},forEach:function(e,t){var n=0;for(var r in this._objects)e.call(t,this._objects[r],n++)},every:function(e,t){var n=0;for(var r in this._objects)if(!e.call(t,this._objects[r],n++))return!1;return!0},filter:function(e,t){var n=[];return this.forEach(function(r,i){e.call(t,r,i)&&n.push(r)}),n},map:function(e,t){var n=[];return this.forEach(function(r,i){n.push(e.call(t,r,i))}),n}})},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t,n,r,i){var o=c.uid(e._actionsRegistry,t+"."+n);e._actionsRegistry[o]=1;var a={id:o,namespace:t,name:n},s=new h(e,o,r,i,a),l=function(t){return e.dispatch(o,t,a)},f=function(){s.dispatched=!1;var e=s._dispatch.apply(s,arguments);return s.dispatched||void 0===e||u.isPromise(e)||(u.isFunction(e)?e(l):l(e)),e};f.defer=function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];setTimeout(function(){s._dispatch.apply(null,t)})},f.id=o,f.data=a;var p=e.actions[t],d=c.uid(p,n);return p[d]=f,f}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();t.default=o;var s=n(28),u=r(s),l=n(57),c=r(l),h=function(){function e(t,n,r,o,a){i(this,e),this.id=n,this._dispatch=r.bind(this),this.actions=o,this.actionDetails=a,this.alt=t}return a(e,[{key:"dispatch",value:function(e){this.dispatched=!0,this.alt.dispatch(this.id,e,this.actionDetails)}}]),e}();e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var u=Function.prototype.bind,l=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return void 0;e=l,t=o,n=a,r=!0}},c=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),h=n(139),f=n(138),p=i(f),d=n(28),v=i(d),m=n(137),g=i(m),y=n(57),b=i(y),_=n(133),C=r(_),w=function(){function e(){var t=void 0===arguments[0]?{}:arguments[0];s(this,e),this.config=t,this.serialize=t.serialize||JSON.stringify,this.deserialize=t.deserialize||JSON.parse,this.dispatcher=t.dispatcher||new h.Dispatcher,this.batchingFunction=t.batchingFunction||function(e){return e()},this.actions={global:{}},this.stores={},this.storeTransforms=t.storeTransforms||[],this.trapAsync=!1,this._actionsRegistry={},this._initSnapshot={},this._lastSnapshot={}}return c(e,[{key:"dispatch",value:function(e,t,n){var r=this;this.batchingFunction(function(){var i=Math.random().toString(18).substr(2,16);return r.dispatcher.dispatch({id:i,action:e,data:t,details:n})})}},{key:"createUnsavedStore",value:function(e){var t=e.displayName||"";g.createStoreConfig(this.config,e);for(var n=g.transformStore(this.storeTransforms,e),r=arguments.length,i=Array(r>1?r-1:0),o=1;r>o;o++)i[o-1]=arguments[o];return v.isFunction(n)?g.createStoreFromClass.apply(g,[this,n,t].concat(i)):g.createStoreFromObject(this,n,t)}},{key:"createStore",value:function(e,t){var n=t||e.displayName||e.name||"";g.createStoreConfig(this.config,e);var r=g.transformStore(this.storeTransforms,e);(this.stores[n]||!n)&&(this.stores[n]?b.warn("A store named "+n+" already exists, double check your store names or pass in your own custom identifier for each store"):b.warn("Store name was not specified"),n=b.uid(this.stores,n));for(var i=arguments.length,o=Array(i>2?i-2:0),a=2;i>a;a++)o[a-2]=arguments[a];var s=v.isFunction(r)?g.createStoreFromClass.apply(g,[this,r,n].concat(o)):g.createStoreFromObject(this,r,n);return this.stores[n]=s,p.saveInitialSnapshot(this,n),s}},{key:"generateActions",value:function(){for(var e={name:"global"},t=arguments.length,n=Array(t),r=0;t>r;r++)n[r]=arguments[r];return this.createActions(n.reduce(function(e,t){return e[t]=b.dispatchIdentity,e},e))}},{key:"createAction",value:function(e,t,n){return C.default(this,"global",e,t,n)}},{key:"createActions",value:function(e){var t=arguments,n=this,r=void 0===arguments[1]?{}:arguments[1],i={},h=b.uid(this._actionsRegistry,e.displayName||e.name||"Unknown");if(v.isFunction(e)){var f,p,d;!function(){v.assign(i,b.getInternalMethods(e,!0));var n=function(e){function t(){s(this,t);for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];l(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,n)}return a(t,e),c(t,[{key:"generateActions",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];t.forEach(function(e){i[e]=b.dispatchIdentity})}}]),t}(e);for(f=t.length,p=Array(f>2?f-2:0),d=2;f>d;d++)p[d-2]=t[d];v.assign(i,new(u.apply(n,[null].concat(o(p)))))}()}else v.assign(i,e);return this.actions[h]=this.actions[h]||{},v.eachObject(function(e,t){if(v.isFunction(t)){r[e]=C.default(n,h,e,t,r);var i=b.formatAsConstant(e);r[i]=r[e].id}},[i]),r}},{key:"takeSnapshot",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=p.snapshot(this,t);return v.assign(this._lastSnapshot,r),this.serialize(r)}},{key:"rollback",value:function(){p.setAppState(this,this.serialize(this._lastSnapshot),function(e){e.lifecycle("rollback"),e.emitChange()})}},{key:"recycle",value:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];var r=t.length?p.filterSnapshots(this,this._initSnapshot,t):this._initSnapshot;p.setAppState(this,this.serialize(r),function(e){e.lifecycle("init"),e.emitChange()})}},{key:"flush",value:function(){var e=this.serialize(p.snapshot(this));return this.recycle(),e}},{key:"bootstrap",value:function(e){p.setAppState(this,e,function(e){e.lifecycle("bootstrap"),e.emitChange()})}},{key:"prepare",value:function(e,t){var n={};if(!e.displayName)throw new ReferenceError("Store provided does not have a name");return n[e.displayName]=t,this.serialize(n)}},{key:"addActions",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];this.actions[e]=Array.isArray(t)?this.generateActions.apply(this,t):this.createActions.apply(this,[t].concat(r))}},{key:"addStore",value:function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;n>i;i++)r[i-2]=arguments[i];this.createStore.apply(this,[t,e].concat(r))}},{key:"getActions",value:function(e){return this.actions[e]}},{key:"getStore",value:function(e){return this.stores[e]}}],[{key:"debug",value:function(e,t){var n="alt.js.org";return"undefined"!=typeof window&&(window[n]=window[n]||[],window[n].push({name:e,alt:t})),t}}]),e}();t.default=w,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var a=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),s=n(28),u=i(s),l=n(87),c=r(l),h=function(){function e(t,n,r,i){var a=this;o(this,e);var s=n.lifecycleEvents;this.transmitter=c.default(),this.lifecycle=function(e,t){s[e]&&s[e].push(t)},this.state=r||n,this.preventDefault=!1,this.displayName=n.displayName,this.boundListeners=n.boundListeners,this.StoreModel=i;var l=n.output||function(e){return e};this.emitChange=function(){return a.transmitter.push(l(a.state))};var h=function(e,t){try{return e()}catch(r){if(n.handlesOwnErrors)return a.lifecycle("error",{error:r,payload:t,state:a.state}),!1;throw r}};u.assign(this,n.publicMethods),this.dispatchToken=t.dispatcher.register(function(e){a.preventDefault=!1,a.lifecycle("beforeEach",{payload:e,state:a.state});var t=n.actionListeners[e.action]||n.otherwise;if(t){var r=h(function(){return t.call(n,e.data,e.action)},e);r===!1||a.preventDefault||a.emitChange()}n.reduce&&(h(function(){n.setState(n.reduce(a.state,e))},e),a.preventDefault||a.emitChange()),a.lifecycle("afterEach",{payload:e,state:a.state})}),this.lifecycle("init")}return a(e,[{key:"listen",value:function(e){var t=this;return this.transmitter.subscribe(e),function(){return t.unlisten(e)}}},{key:"unlisten",value:function(e){this.lifecycle("unlisten"),this.transmitter.unsubscribe(e)}},{key:"getState",value:function(){return this.StoreModel.config.getState.call(this,this.state)}}]),e}();t.default=h,e.exports=t.default},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var o=n(87),a=i(o),s=n(28),u=r(s),l={waitFor:function(){for(var e=arguments.length,t=Array(e),n=0;e>n;n++)t[n]=arguments[n];if(!t.length)throw new ReferenceError("Dispatch tokens not provided");var r=t;1===t.length&&(r=Array.isArray(t[0])?t[0]:t);var i=r.map(function(e){return e.dispatchToken||e});this.dispatcher.waitFor(i)},exportAsync:function(e){this.registerAsync(e)},registerAsync:function(e){var t=this,n=0,r=u.isFunction(e)?e(this.alt):e,i=Object.keys(r).reduce(function(e,i){var o=r[i],a=u.isFunction(o)?o(t):o,s=["success","error","loading"];return s.forEach(function(e){if(a[e]&&!a[e].id)throw new Error(e+" handler must be an action function")}),e[i]=function(){for(var e=arguments.length,r=Array(e),i=0;e>i;i++)r[i]=arguments[i];var o=t.getInstance().getState(),s=a.local&&a.local.apply(a,[o].concat(r)),u=a.shouldFetch?a.shouldFetch.apply(a,[o].concat(r)):null==s,l=a.interceptResponse||function(e){return e},c=function(e,i){return function(o){var a=function(){if(n-=1,e(l(o,e,r)),i)throw o};return t.alt.trapAsync?function(){return a()}:a()}};return u?(n+=1,a.loading&&a.loading(l(null,a.loading,r)),a.remote.apply(a,[o].concat(r)).then(c(a.success),c(a.error,1))):void t.emitChange()},e},{});this.exportPublicMethods(i),this.exportPublicMethods({isLoading:function(){return n>0}})},exportPublicMethods:function(e){var t=this;u.eachObject(function(e,n){if(!u.isFunction(n))throw new TypeError("exportPublicMethods expects a function");t.publicMethods[e]=n},[e])},emitChange:function(){this.getInstance().emitChange()},on:function(e,t){"error"===e&&(this.handlesOwnErrors=!0);var n=this.lifecycleEvents[e]||a.default();return this.lifecycleEvents[e]=n,n.subscribe(t.bind(this))},bindAction:function(e,t){if(!e)throw new ReferenceError("Invalid action reference passed in");if(!u.isFunction(t))throw new TypeError("bindAction expects a function");if(t.length>1)throw new TypeError("Action handler in store "+this.displayName+" for "+((e.id||e).toString()+" was defined with ")+"two parameters. Only a single parameter is passed through the dispatcher, did you mean to pass in an Object instead?");var n=e.id?e.id:e;this.actionListeners[n]=t.bind(this),this.boundListeners.push(n)},bindActions:function(e){var t=this;u.eachObject(function(e,n){var r=/./,i=e.replace(r,function(e){return"on"+e[0].toUpperCase()}),o=null;if(t[e]&&t[i])throw new ReferenceError("You have multiple action handlers bound to an action: "+(e+" and "+i));t[e]?o=t[e]:t[i]&&(o=t[i]),o&&t.bindAction(n,o)},[e])},bindListeners:function(e){var t=this;u.eachObject(function(e,n){var r=t[e];if(!r)throw new ReferenceError(e+" defined but does not exist in "+t.displayName);Array.isArray(n)?n.forEach(function(e){t.bindAction(e,r)}):t.bindAction(n,r)},[e])}};t.default=l,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(e.__proto__=t)}function s(e,t,n){if(n){var r=t.StoreModel.config,i=y.isFunction(n)?n(t.state):n;t.state=r.setState.call(e,t.state,i),e.alt.dispatcher.isDispatching()||e.emitChange()}}function u(e,t,n,r){return e.boundListeners=[],e.lifecycleEvents={},e.actionListeners={},e.publicMethods={},e.handlesOwnErrors=!1,y.assign(e,w.default,{displayName:n,alt:t,dispatcher:t.dispatcher,preventDefault:function(){this.getInstance().preventDefault=!0}},r)}function l(e,t){t.config=y.assign({getState:function(e){return y.assign({},e)},setState:y.assign},e,t.config)}function c(e,t){return e.reduce(function(e,t){return t(e)},t)}function h(e,t,n){var r=void 0,i=u({},e,n,y.assign({getInstance:function(){return r},setState:function(e){s(this,r,e)}},t));return i.bindListeners&&w.default.bindListeners.call(i,i.bindListeners),i.observe&&w.default.bindListeners.call(i,i.observe(e)),i.lifecycle&&y.eachObject(function(e,t){w.default.on.call(i,e,t)},[i.lifecycle]),r=y.assign(new _.default(e,i,i.state||{},t),i.publicMethods,{displayName:n})}function f(e,t,n){var r=void 0,i=t.config,l=function(e){function t(){o(this,t);for(var e=arguments.length,n=Array(e),r=0;e>r;r++)n[r]=arguments[r];d(Object.getPrototypeOf(t.prototype),"constructor",this).apply(this,n)}return a(t,e),t}(t);u(l.prototype,e,n,{getInstance:function(){return r},setState:function(e){s(this,r,e)}});for(var c=arguments.length,h=Array(c>3?c-3:0),f=3;c>f;f++)h[f-3]=arguments[f];var v=new(p.apply(l,[null].concat(h)));return i.bindListeners&&v.bindListeners(i.bindListeners),i.datasource&&v.registerAsync(i.datasource),r=y.assign(new _.default(e,v,"object"==typeof v.state?v.state:null,t),m.getInternalMethods(t),i.publicMethods,{displayName:n})}Object.defineProperty(t,"__esModule",{value:!0});var p=Function.prototype.bind,d=function(e,t,n){for(var r=!0;r;){var i=e,o=t,a=n;s=l=u=void 0,r=!1,null===i&&(i=Function.prototype);var s=Object.getOwnPropertyDescriptor(i,o);if(void 0!==s){if("value"in s)return s.value;var u=s.get;return void 0===u?void 0:u.call(a)}var l=Object.getPrototypeOf(i);if(null===l)return void 0;e=l,t=o,n=a,r=!0}};t.createStoreConfig=l,t.transformStore=c,t.createStoreFromObject=h,t.createStoreFromClass=f;var v=n(57),m=i(v),g=n(28),y=i(g),b=n(135),_=r(b),C=n(136),w=r(C)},function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function i(e,t,n){var r=e.deserialize(t);l.eachObject(function(t,i){var o=e.stores[t];o&&!function(){var e=o.StoreModel.config,a=o.state;e.onDeserialize&&(r[t]=e.onDeserialize(i)||i),l.eachObject(function(e){return delete a[e]},[a]),l.assign(a,r[t]),n(o)}()},[r])}function o(e){var t=void 0===arguments[1]?[]:arguments[1],n=t.length?t:Object.keys(e.stores);return n.reduce(function(t,n){var r=n.displayName||n,i=e.stores[r],o=i.StoreModel.config;i.lifecycle("snapshot");var a=o.onSerialize&&o.onSerialize(i.state);return t[r]=a?a:i.getState(),t},{})}function a(e,t){var n=e.deserialize(e.serialize(e.stores[t].state));e._initSnapshot[t]=n,e._lastSnapshot[t]=n}function s(e,t,n){return n.reduce(function(e,n){var r=n.displayName||n;if(!t[r])throw new ReferenceError(r+" is not a valid store");return e[r]=t[r],e},{})}Object.defineProperty(t,"__esModule",{value:!0}),t.setAppState=i,t.snapshot=o,t.saveInitialSnapshot=a,t.filterSnapshots=s;var u=n(28),l=r(u)},function(e,t,n){e.exports.Dispatcher=n(140)},function(e,t,n){"use strict";function r(){this.$Dispatcher_callbacks={},this.$Dispatcher_isPending={},this.$Dispatcher_isHandled={},this.$Dispatcher_isDispatching=!1,this.$Dispatcher_pendingPayload=null}var i=n(141),o=1,a="ID_";r.prototype.register=function(e){var t=a+o++;return this.$Dispatcher_callbacks[t]=e,t},r.prototype.unregister=function(e){i(this.$Dispatcher_callbacks[e],"Dispatcher.unregister(...): `%s` does not map to a registered callback.",e),delete this.$Dispatcher_callbacks[e]},r.prototype.waitFor=function(e){i(this.$Dispatcher_isDispatching,"Dispatcher.waitFor(...): Must be invoked while dispatching.");for(var t=0;t<e.length;t++){var n=e[t];this.$Dispatcher_isPending[n]?i(this.$Dispatcher_isHandled[n],"Dispatcher.waitFor(...): Circular dependency detected while waiting for `%s`.",n):(i(this.$Dispatcher_callbacks[n],"Dispatcher.waitFor(...): `%s` does not map to a registered callback.",n),this.$Dispatcher_invokeCallback(n))}},r.prototype.dispatch=function(e){i(!this.$Dispatcher_isDispatching,"Dispatch.dispatch(...): Cannot dispatch in the middle of a dispatch."),this.$Dispatcher_startDispatching(e);try{for(var t in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[t]||this.$Dispatcher_invokeCallback(t)}finally{this.$Dispatcher_stopDispatching()}},r.prototype.isDispatching=function(){return this.$Dispatcher_isDispatching},r.prototype.$Dispatcher_invokeCallback=function(e){this.$Dispatcher_isPending[e]=!0,this.$Dispatcher_callbacks[e](this.$Dispatcher_pendingPayload),this.$Dispatcher_isHandled[e]=!0},r.prototype.$Dispatcher_startDispatching=function(e){for(var t in this.$Dispatcher_callbacks)this.$Dispatcher_isPending[t]=!1,this.$Dispatcher_isHandled[t]=!1;this.$Dispatcher_pendingPayload=e,this.$Dispatcher_isDispatching=!0},r.prototype.$Dispatcher_stopDispatching=function(){this.$Dispatcher_pendingPayload=null,this.$Dispatcher_isDispatching=!1},e.exports=r},function(e,t){"use strict";var n=function(e,t,n,r,i,o,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;u=new Error("Invariant Violation: "+t.replace(/%s/g,function(){return l[c++]}))}throw u.framesToPop=1,u}};e.exports=n},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(22),s=r(a),u=n(48),l=r(u),c=n(29),h=r(c),f=n(24),p=n(40),d=n(38),v=r(d),m=s.default.PropTypes;t.default=s.default.createClass({displayName:"Cursor",propTypes:{cursorPosition:m.object.isRequired,lineHeight:m.number.isRequired,cursorMotion:m.bool,activeAttributes:m.object,selectionActive:m.bool,focus:m.bool,remoteNameReveal:m.bool,remote:m.object,renderOptimizations:m.bool},getDefaultProps:function(){return{remoteNameReveal:!1,remote:null,renderOptimizations:!0}},shouldComponentUpdate:function(e){if(!e.renderOptimizations)return!0;var t=this.props.lineHeight===e.lineHeight&&this.props.cursorMotion===e.cursorMotion&&this.props.selectionActive===e.selectionActive&&this.props.focus===e.focus&&v.default.deepEquals(this.props.remoteNameReveal,e.remoteNameReveal)&&v.default.deepEquals(this.props.cursorPosition,e.cursorPosition)&&v.default.deepEquals(this.props.activeAttributes,e.activeAttributes)&&v.default.deepEquals(this.props.remote,e.remote,o.default.isEqual,[function(e){return e.color},function(e){return e.name},function(e){return e.state}]);return!t},componentDidUpdate:function(){if(this.caret||(this.caret=s.default.findDOMNode(this.refs.caret)),this.caret){var e=p.scrollByToVisible(this.caret,5,30);(0!==e.xDelta||0!==e.yDelta)&&window.scrollBy(e.xDelta,e.yDelta)}},_remoteCursorHover:function(e){h.default.revealRemoteCursorName(this.props.remote),e.preventDefault(),e.stopPropagation()},render:function(){var e=this.props.cursorPosition,t=this.props.remote;if(!e)return null;var n=l.default("ritzy-internal-text-cursor text-cursor","ritzy-internal-ui-unprintable",{"ritzy-internal-text-cursor-blink":!this.props.cursorMotion&&!t}),r=e.position.attributes&&e.position.attributes[f.ATTR.ITALIC]&&!t,i=this.props.activeAttributes&&this.props.activeAttributes[f.ATTR.ITALIC]&&!t,o=this.props.activeAttributes&&!this.props.activeAttributes[f.ATTR.ITALIC]&&!t,a=l.default("ritzy-internal-text-cursor-caret text-cursor-caret",{"ritzy-internal-text-cursor-italic":i||r&&!o}),u={left:e.left,top:e.top};t||!this.props.selectionActive&&this.props.focus?u.opacity=1:(u.opacity=0,u.visibility="hidden");var c=Math.round(10*this.props.lineHeight)/10;if(t){var h={backgroundColor:t.color,opacity:1},p={backgroundColor:t.color};return this.props.remoteNameReveal?(h.display="none",p.opacity=1):(p.opacity=0,p.display="none"),s.default.createElement("div",{className:n,style:u},s.default.createElement("div",{className:a,style:{borderColor:t.color,height:c},onMouseOver:this._remoteCursorHover}),s.default.createElement("div",{className:"ritzy-internal-text-cursor-top text-cursor-top",style:h,onMouseOver:this._remoteCursorHover}),s.default.createElement("div",{className:"ritzy-internal-text-cursor-name text-cursor-name",style:p},t.name))}return s.default.createElement("div",{className:n,style:u},s.default.createElement("div",{className:a,style:{borderColor:"black",height:c},ref:"caret"}),s.default.createElement("div",{className:"ritzy-internal-text-cursor-top text-cursor-top",style:{opacity:1}}),s.default.createElement("div",{className:"ritzy-internal-text-cursor-name text-cursor-name",style:{opacity:1}}))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=r(i),a=n(29),s=r(a),u=n(60),l=r(u),c=n(39),h=n(37),f=n(59),p=o.default.PropTypes;t.default=o.default.createClass({displayName:"DebugEditor",propTypes:{editorState:p.object,replica:p.object,searchLinesWithSelection:p.func,setRenderOptimizations:p.func},componentWillReceiveProps:function(e){this.edState=e.editorState,this.replica=e.replica},shouldComponentUpdate:function(){return!1},_dumpState:function(){console.debug("Current state contents (Use React Devtools 0.14+ for real-time state view/edit):"),console.dir(this.edState),s.default.focusInput()},_dumpReplica:function(){var e=this.replica.getTextRange(c.BASE_CHAR);console.debug("Current replica text: ["+e.map(function(e){return e.char}).join("")+"]"),console.debug("Current replica contents:"),console.dir(e),s.default.focusInput()},_dumpPosition:function(){this.edState.position?console.debug("Current position:",this.edState.position,"positionEolStart:",this.edState.positionEolStart):console.debug("No active position"),s.default.focusInput()},_dumpCurrentLine:function(){var e=this;f.logInGroup("Line debug",function(){e.edState.lines?!function(){var t=function(e){return console.debug(e.toString())},n=h.lineContainingChar(e.edState.lines,e.edState.position,e.edState.positionEolStart);n?(n.index>0&&f.logInGroup("Before",function(){t(e.edState.lines[n.index-1]);
}),f.logInGroup("Current",function(){console.debug("index",n.index,"endOfLine",n.endOfLine),t(n.line)}),n.index<e.edState.lines.length-1&&f.logInGroup("After",function(){t(e.edState.lines[n.index+1])})):console.log(null)}():console.debug("No lines")}),s.default.focusInput()},_dumpLines:function(){this.edState.lines?(console.debug("Lines as Objects:",this.edState.lines),this._dumpLinesFormatted("Lines",this.edState.lines)):console.debug("No lines"),s.default.focusInput()},_dumpSelection:function(){this.edState.selectionActive?(console.debug("Current selection contents (rich chunks): ["+JSON.stringify(l.default.getSelectionRich())+"]"),console.debug("Current selection contents (plain): ["+l.default.getSelectionText()+"]"),console.debug("Current selection contents (html): ["+l.default.getSelectionHtml()+"]"),console.debug("Left=",this.edState.selectionLeftChar),console.debug("Right=",this.edState.selectionRightChar),console.debug("Anchor=",this.edState.selectionAnchorChar),console.debug("Chars=",l.default.getSelection())):console.debug("No active selection"),s.default.focusInput()},_dumpLinesWithSelection:function(){var e=this.props.searchLinesWithSelection();if(e){var t=this.edState.lines.slice(e.left,e.right+1);console.debug("Lines with selection as Objects:",t),this._dumpLinesFormatted("Lines with selection",t)}else console.debug("No selected lines");s.default.focusInput()},_dumpLinesFormatted:function(e,t){f.logInGroup(e,function(){for(var e=function(e){f.logInGroup("Index "+e,function(){console.debug(t[e].toString())})},n=0;n<t.length;n++)e(n)})},_forceFlow:function(){s.default.replicaUpdated(),s.default.focusInput()},_forceRender:function(){this.forceUpdate(function(){return console.debug("Render done.")}),s.default.focusInput()},_togglePositionEolStart:function(){this.setState(function(e){var t=e.positionEolStart;return console.debug("Toggling positionEolStart from "+t+" to "+!t),{positionEolStart:!t}}),s.default.focusInput()},_testError:function(){var e=new Error("A test error from DebugEditor");s.default.registerEditorError(e)},_renderOptimizationsEnable:function(){this.props.setRenderOptimizations(!0)},_renderOptimizationsDisable:function(){this.props.setRenderOptimizations(!1)},render:function(){return o.default.createElement("div",{style:{position:"relative",zIndex:100,paddingTop:30}},o.default.createElement("p",null,"Debugging tools:"),o.default.createElement("span",null,"Dump: "),o.default.createElement("button",{onClick:this._dumpState},"State")," ",o.default.createElement("button",{onClick:this._dumpReplica},"Replica")," ",o.default.createElement("button",{onClick:this._dumpPosition},"Position")," ",o.default.createElement("button",{onClick:this._dumpCurrentLine},"Line")," ",o.default.createElement("button",{onClick:this._dumpLines},"All Lines")," ",o.default.createElement("button",{onClick:this._dumpSelection},"Selection")," ",o.default.createElement("button",{onClick:this._dumpLinesWithSelection},"Lines with Selection"),o.default.createElement("br",null),o.default.createElement("span",null,"Force: "),o.default.createElement("button",{onClick:this._forceRender},"Render")," ",o.default.createElement("button",{onClick:this._forceFlow},"Flow"),o.default.createElement("br",null),o.default.createElement("span",null,"Action: "),o.default.createElement("button",{onClick:this._togglePositionEolStart},"Toggle Position EOL Start")," ",o.default.createElement("button",{onClick:this._testError},"Raise an Error"),o.default.createElement("br",null),o.default.createElement("span",null,"Render Optimizations: "),o.default.createElement("button",{onClick:this._renderOptimizationsEnable},"Enable")," ",o.default.createElement("button",{onClick:this._renderOptimizationsDisable},"Disable"),o.default.createElement("br",null))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(22),o=r(i),a=n(48),s=(r(a),n(183)),u=r(s),l=n(5),c=r(l),h=n(29),f=r(h),p=n(60),d=r(p),v=n(145),m=r(v),g=n(142),y=r(g),b=n(143),_=r(b),C=n(39),w=n(40),x=n(149),E=r(x),S=n(151),k=r(S),T=n(148),O=r(T),R=n(150),A=r(R),M=(n(24),n(37)),N=n(38),I=r(N),P=n(155),D=n(58),L=r(D);n(267);var U=o.default.PropTypes;t.default=o.default.createClass({displayName:"Editor",propTypes:{id:U.string.isRequired,eventEmitter:U.object.isRequired,fonts:U.shape({regular:U.object,bold:U.object,boldItalic:U.object,italic:U.object}),fontSize:U.number.isRequired,minFontSize:U.number.isRequired,unitsPerEm:U.number.isRequired,width:U.number.isRequired,margin:U.shape({horizontal:U.number,vertical:U.number}).isRequired,userId:U.string.isRequired,userName:U.string,cursorColorSpace:U.arrayOf(U.string),initialFocus:U.bool,wsPort:U.number,renderOptimizations:U.bool,debugButtons:U.bool,showErrorNotification:U.bool,errorNotification:U.string},mixins:[E.default,k.default,O.default],getDefaultProps:function(){return{initialFocus:!0,cursorColorSpace:["rgb(29, 105, 20)","rgb(129, 38, 192)","rgb(42, 75, 215)","rgb(41, 208, 208)","rgb(173, 35, 35)","rgb(255, 146, 51)","rgb(129, 197, 122)","rgb(157, 175, 255)","rgb(255, 205, 243)","rgb(255, 238, 51)","rgb(129, 74, 25)"],renderOptimizations:!0,debugButtons:!1,showErrorNotification:!0,errorNotification:"There was an unexpected error. You may need to refresh the page."}},getInitialState:function(){return d.default.getState()},componentWillMount:function(){L.default.setConfig(this.props),this._createReplica(),f.default.initialize(this.props,this.replica)},componentWillReceiveProps:function(e){L.default.setConfig(this.props),f.default.initialize(e,this.replica),(this.props.fontSize!==e.fontSize||this.props.width!==e.width)&&f.default.reflow()},componentDidMount:function(){this.clickCount=0,d.default.listen(this.onStateChange)},shouldComponentUpdate:function(e,t){if(!e.renderOptimizations)return!0;var n=this.state.loaded===t.loaded&&this.state.focus===t.focus&&this.state.positionEolStart==t.positionEolStart&&this.state.selectionActive==t.selectionActive&&this.state.cursorMotion==t.cursorMotion&&this.state.error===t.error&&I.default.deepEquals(this.state.position,t.position,M.charEq)&&I.default.deepEquals(this.state.selectionLeftChar,t.selectionLeftChar,M.charEq)&&I.default.deepEquals(this.state.selectionRightChar,t.selectionRightChar,M.charEq)&&I.default.deepEquals(this.state.activeAttributes,t.activeAttributes)&&I.default.deepEquals(this.state.remoteNameReveal,t.remoteNameReveal);if(!n)return!0;var r=this.state.remoteCursors?Object.keys(this.state.remoteCursors):[],i=t.remoteCursors?Object.keys(t.remoteCursors):[];if(r.length!==i.length)return!0;for(var o=0;o<r.length;o++){var a=r[o];if(!I.default.deepEquals(this.state.remoteCursors[a],t.remoteCursors[a],c.default.isEqual,[function(e){return e.color},function(e){return e.name},function(e){return e.state}]))return!0}if(this.state.lines.length!==t.lines.length)return!0;for(var o=0;o<this.state.lines.length;o++)if(!I.default.deepEquals(this.state.lines[o],t.lines[o],M.linesEq))return!0;var s=this.props.fontSize===e.fontSize&&this.props.minFontSize===e.minFontSize&&this.props.unitsPerEm===e.unitsPerEm&&this.props.width===e.width&&this.props.margin.horizontal===e.margin.horizontal&&this.props.margin.vertical===e.margin.vertical&&this.props.userId===e.userId&&this.props.userName===e.userName&&this.props.debugButtons===e.debugButtons;return!s},componentWillUnmount:function(){d.default.unlisten(this.onStateChange)},onStateChange:function(e){this.setState(e)},_setRenderOptimizations:function(e){this.setProps({renderOptimizations:e})},_createReplica:function(){this.createTextReplica(),this.registerCb(this._replicaInitCb,this._replicaUpdateCb)},_replicaInitCb:function(e,t,n){this.replicaSource=P.sourceOf(e),f.default.replicaInitialized(),this.createSharedCursor()},_replicaUpdateCb:function(e,t,n){this.replicaSource!==P.sourceOf(e)&&f.default.replicaUpdated()},_mouseEventToCoordinates:function(e){var t=w.elementPosition(e.currentTarget);return{x:e.pageX-t.x,y:e.pageY-t.y}},_doOnSingleClick:function(e){var t=this._mouseEventToCoordinates(e);t&&(e.shiftKey?f.default.selectToCoordinates(t):f.default.navigateToCoordinates(t))},_doOnDoubleClick:function(){f.default.selectWordAtCurrentPosition()},_onMouseDown:function(e){var t=this;this.state.focus||f.default.focusInput(),this.clickReset&&(clearTimeout(this.clickReset),this.clickReset=null);var n=this.clickCount;this.clickCount+=1,this.clickReset=setTimeout(function(){t.clickCount=0},250),0===n?this._doOnSingleClick(e):1===n&&this._doOnDoubleClick(e),e.preventDefault(),e.stopPropagation()},_onMouseMove:function(e){if(1===e.buttons){this.state.focus||f.default.focusInput();var t=this._mouseEventToCoordinates(e);t&&(f.default.selectToCoordinates(t),e.preventDefault(),e.stopPropagation())}},_onMouseUp:function(e){this.state.selectionActive&&f.default.setActiveAttributes()},_dismissError:function(){f.default.dismissEditorError()},_searchLinesWithSelection:function(e){if(e||(e={selectionActive:this.state.selectionActive,selectionLeftChar:this.state.selectionLeftChar,selectionRightChar:this.state.selectionRightChar}),!this.state.lines||0===this.state.lines.length||!e.selectionActive)return null;var t=M.lineContainingChar(this.state.lines,this.replica.getCharRelativeTo(e.selectionLeftChar,1,"eof"));if(!t)return null;var n=M.lineContainingChar(this.state.lines.slice(t.index),e.selectionRightChar,null);return n?{left:t.index,right:n.index+t.index}:null},_computeSelection:function(e,t,n,r,i){var o=this;if(!n.selectionActive)return null;if(r&&(e<r.left||e>r.right))return null;var a=function(e,n){var r=Math.round(10*t)/10;return i||o.state.focus||(i="rgb(0, 0, 0)"),{left:e,width:n,height:r,color:i}},s=this.state.lines[e];if(r&&e>r.left&&e<r.right){var u=s.advance;return(s.isEof()||"\n"===s.end.char)&&(u+=L.default.advanceXForSpace(this.props.fontSize)),a(0,u)}if(s&&s.isEof()&&n.selectionRightChar===C.EOF)return a(0,L.default.advanceXForSpace(this.props.fontSize));if(!s&&M.charEq(n.selectionLeftChar,C.BASE_CHAR)&&M.charEq(n.selectionRightChar,C.EOF))return a(0,L.default.advanceXForSpace(this.props.fontSize));var l=0,c=void 0,h=void 0;if(e===r.left&&(l=L.default.advanceXForChars(this.props.fontSize,s.charsTo(n.selectionLeftChar))),e===r.right){var f=l>0?s.charsBetween(n.selectionLeftChar,n.selectionRightChar):s.charsTo(n.selectionRightChar);if(0===f.length)return null;c=L.default.advanceXForChars(this.props.fontSize,f),h="\n"===f[f.length-1].char}else c=s.advance-l,h=s.isEof()||"\n"===s.end.char;return h&&(c+=L.default.advanceXForSpace(this.props.fontSize)),a(l,c)},_renderLine:function(e,t,n,r,i){var a=this,s=r?this._computeSelection(t,n,r.selection,r.lines):null,u=i.filter(function(e){return e}).map(function(e){return a._computeSelection(t,n,e.selection,e.lines,e.color)}).filter(function(e){return e});return o.default.createElement(m.default,{key:t,line:e,lineHeight:n,fontSize:this.props.fontSize,selection:s,remoteSelections:u,renderOptimizations:this.props.renderOptimizations})},_cursorPosition:function(e,t,n){if(!t||!this.state.lines)return null;if(M.charEq(C.BASE_CHAR,t)||0===this.state.lines.length)return{position:t,positionEolStart:n,left:this.props.margin.horizontal,top:this.props.margin.vertical};var r=M.lineContainingChar(this.state.lines,t,n);if(!r)return null;var i=r.line,o=r.index,a=r.endOfLine,s=i?e*o:0,u=void 0;if(!i||a&&n&&o<this.state.lines.length-1)u=0;else{var l=i.charsTo(t);u=L.default.advanceXForChars(this.props.fontSize,l)}return{position:t,positionEolStart:n,left:this.props.margin.horizontal+u,top:this.props.margin.vertical+s}},_renderError:function(){return this.props.showErrorNotification&&this.state.error?o.default.createElement("div",{className:"ritzy-error-notification"},this.props.errorNotification,"  ",o.default.createElement("button",{className:"ritzy-error-notification-dismiss",onClick:this._dismissError},"x")):void 0},_renderInput:function(e){var t=e?e.left:0,n=e?e.top:0;return o.default.createElement(A.default,{id:this.props.id,ref:"input",coordinates:{x:t,y:n},focused:this.state.focus,renderOptimizations:this.props.renderOptimizations})},_renderCursor:function(e,t,n){if(n){var r=n._id,i=this.state.remoteNameReveal.has(r);return o.default.createElement(y.default,{key:r,cursorPosition:e,lineHeight:t,remoteNameReveal:i,remote:n,renderOptimizations:this.props.renderOptimizations})}return o.default.createElement(y.default,{key:"local",ref:"cursor",cursorPosition:e,lineHeight:t,cursorMotion:this.state.cursorMotion,activeAttributes:this.state.activeAttributes,selectionActive:this.state.selectionActive,focus:this.state.focus,renderOptimizations:this.props.renderOptimizations})},_renderRemoteCursors:function(e){var t=this;return Object.keys(this.state.remoteCursors).filter(function(e){return t.state.remoteCursors[e].state.position}).map(function(n){var r=t.state.remoteCursors[n],i=void 0;try{i=t.replica.getChar(r.state.position)}catch(o){return console.warn("Error obtaining remote position, ignoring.",o),null}if(i){var a=t._cursorPosition(e,i,r.state.positionEolStart);if(a)return t._renderCursor(a,e,r)}return null})},_renderEditorContents:function(){var e=this;if(!this.state.loaded)return o.default.createElement(u.default,{spinnerName:"three-bounce",noFadeIn:!0});var t=function(){var t=L.default.lineHeight(e.props.fontSize),n=e._cursorPosition(t,e.state.position,e.state.positionEolStart),r=function(t,n){var r={selectionActive:t.selectionActive,selectionLeftChar:t.selectionLeftChar,selectionRightChar:t.selectionRightChar},i=e._searchLinesWithSelection(r);return i?{selection:r,lines:i,color:n}:null},i=r(e.state),a=Object.keys(e.state.remoteCursors).filter(function(t){return e.state.remoteCursors[t].state.selectionActive}).map(function(t){var n=e.state.remoteCursors[t];return r(n.state,n.color)});return{v:o.default.createElement("div",null,e._renderInput(n),o.default.createElement("div",{className:"ritzy-internal-text-contents text-contents",style:{position:"relative"}},e.state.lines.length>0?e.state.lines.map(function(n,r){return e._renderLine(n,r,t,i,a)}):o.default.createElement(m.default,{lineHeight:t,fontSize:e.props.fontSize,renderOptimizations:e.props.renderOptimizations})),e._renderCursor(n,t),e._renderRemoteCursors(t))}}();return"object"==typeof t?t.v:void 0},_renderDebugButtons:function(){return this.props.debugButtons?o.default.createElement(_.default,{editorState:this.state,replica:this.replica,searchLinesWithSelection:this._searchLinesWithSelection,setRenderOptimizations:this._setRenderOptimizations}):null},render:function(){var e={width:this.props.width,padding:this.props.margin.vertical+"px "+this.props.margin.horizontal+"px"};return o.default.createElement("div",{style:{boxSizing:"content-box"}},this._renderError(),o.default.createElement("div",{className:"ritzy-internal-text-content-wrapper text-content-wrapper",style:e,onMouseDown:this._onMouseDown,onMouseUp:this._onMouseUp,onMouseMove:this._onMouseMove},this._renderEditorContents()),this._renderDebugButtons())}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=(r(i),n(22)),a=r(o),s=n(146),u=r(s),l=n(147),c=r(l),h=n(37),f=n(38),p=r(f),d=a.default.PropTypes;t.default=a.default.createClass({displayName:"EditorLine",propTypes:{line:d.object,lineHeight:d.number.isRequired,fontSize:d.number.isRequired,selection:d.object,remoteSelections:d.arrayOf(d.object),renderOptimizations:d.bool},getDefaultProps:function(){return{renderOptimizations:!0}},shouldComponentUpdate:function(e){if(!e.renderOptimizations)return!0;var t=this.props.lineHeight===e.lineHeight&&this.props.fontSize===e.fontSize&&p.default.deepEquals(this.props.selection,e.selection)&&p.default.deepEquals(this.props.remoteSelections,e.remoteSelections)&&p.default.deepEquals(this.props.line,e.line,h.linesEq);return!t},_renderSelectionOverlay:function(e){return e?a.default.createElement(c.default,{key:e&&e.color?e.color:"local",selection:e,renderOptimizations:this.props.renderOptimizations}):null},_renderRemoteSelectionOverlays:function(e){var t=this;return e?e.map(function(e){return t._renderSelectionOverlay(e)}):null},render:function(){return a.default.createElement("div",{className:"ritzy-internal-text-lineview text-lineview",style:{height:this.props.lineHeight,direction:"ltr",textAlign:"left"}},this._renderSelectionOverlay(this.props.selection),this._renderRemoteSelectionOverlays(this.props.remoteSelections),a.default.createElement(u.default,{fontSize:this.props.fontSize,line:this.props.line,renderOptimizations:this.props.renderOptimizations}))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=(r(i),n(22)),a=r(o),s=n(48),u=r(s),l=n(24),c=n(37),h=n(38),f=r(h),p=n(58),d=r(p),v=a.default.PropTypes,m=String.fromCharCode(160);t.default=a.default.createClass({displayName:"EditorLineContent",propTypes:{line:v.object,fontSize:v.number.isRequired,renderOptimizations:v.bool},getDefaultProps:function(){return{renderOptimizations:!0}},shouldComponentUpdate:function(e){if(!e.renderOptimizations)return!0;var t=this.props.fontSize===e.fontSize&&f.default.deepEquals(this.props.line,e.line,c.linesEq);return!t},_renderStyledText:function(e,t,n){var r=l.hasAttributeFor(n),i=r(l.ATTR.SUPERSCRIPT),o=r(l.ATTR.SUBSCRIPT),s=u.default({"super":i,sub:o,baseline:!(i||o)}),c=d.default.fontSizeFromAttributes(this.props.fontSize,n),h=r(l.ATTR.BOLD)?"bold":"normal",f=r(l.ATTR.ITALIC)?"italic":"normal",p=r(l.ATTR.UNDERLINE),v=r(l.ATTR.STRIKETHROUGH),m=u.default({none:!(p||v),underline:p,"line-through":v}),g={color:"#000000",backgroundColor:"transparent",fontFamily:"Open Sans",fontSize:c,fontWeight:h,fontStyle:f,fontVariant:"normal",textDecoration:m,verticalAlign:s};return a.default.createElement("span",{style:g,key:e},t)},_splitIntoChunks:function(e){var t=this;return e?e.chunks.map(function(n){var r=e.chars.slice(n.start,n.end);return t._renderStyledText(r[0].id,r.map(function(e){return" "===e.char?m:e.char}).join(""),n.attributes)}):[]},render:function(){var e=this.props.line,t=1e4,n=d.default.top(this.props.fontSize)-t;return a.default.createElement("div",{className:"ritzy-internal-text-lineview-content text-lineview-content",style:{marginLeft:0,paddingTop:0}},a.default.createElement("span",{style:{display:"inline-block",height:t}}),a.default.createElement("span",{style:{display:"inline-block",position:"relative",top:n}},a.default.createElement("span",{key:"text",className:"ritzy-internal-editor-inline-block ritzy-internal-text-lineview-text-block"},this._splitIntoChunks(e))))}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=(r(i),n(22)),a=r(o),s=n(38),u=r(s),l=a.default.PropTypes;t.default=a.default.createClass({displayName:"SelectionOverlay",propTypes:{selection:l.object,renderOptimizations:l.bool},getDefaultProps:function(){return{renderOptimizations:!0}},shouldComponentUpdate:function(e){if(!e.renderOptimizations)return!0;var t=u.default.deepEquals(this.props.selection,e.selection);return!t},render:function(){var e=this.props.selection;if(!e)return null;var t={top:0,left:e.left,width:e.width,height:e.height};return e.color&&(t.borderTopColor=e.color,t.borderBottomColor=e.color,t.backgroundColor=e.color,t.opacity=.15,t.color=e.color),a.default.createElement("div",{className:"ritzy-internal-text-selection-overlay text-selection-overlay ritzy-internal-text-htmloverlay ritzy-internal-text-htmloverlay-under-text ritzy-internal-ui-unprintable",style:t})}}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(29),o=r(i),a=n(88);t.default={createSharedCursor:function(){var e=this.swarmClient.Swarm;this.cursorId=this.props.id+"_"+this.swarmClient.id;var t=new e.CursorSet(this.props.id);this.trackedCursors={},t.on(".init",this.onCursorSetInitialize),t.on(".change",this.onCursorSetChange)},onCursorSetInitialize:function(e,t,n){var r=this,i=this.swarmClient.Swarm;this.cursorModel=new i.CursorModel(this.cursorId),this.cursorModel.set({name:this.props.userName}),n.addObject(this.cursorModel),this.swarmClient.addReonHook(function(){n.addObject(r.cursorModel)}),this.swarmClient.addUnloadHook(function(){clearInterval(r.cursorSetVerificationInterval),n.removeObject(r.cursorModel),Object.keys(r.trackedCursors).forEach(function(e){return r.unSubscribeRemoteCursor(r.trackedCursors[e])}),n.off(".init",r.onCursorSetInitialize),n.off(".change",r.onCursorSetChange)}),o.default.initializeCursorModel(n,this.cursorModel),this._foreignCursorSet(n).forEach(function(e){r.subscribeRemoteCursor(e)}),this.cursorSetVerificationInterval=setInterval(function(){var e=new Set(Object.keys(r.trackedCursors));r._foreignCursorSet(n).forEach(function(t){e.has(t._id)?e.delete(t._id):r.subscribeRemoteCursor(t)}),e.forEach(function(e){r.unSubscribeRemoteCursor(r.trackedCursors[e])})},5e3)},onCursorSetChange:function(e,t,n){var r=this;Object.keys(t).forEach(function(e){var n=t[e],i=r.swarmClient.host.get(e);i._id!==r.cursorId&&(0===n&&r.trackedCursors[i._id]?r.unSubscribeRemoteCursor(r.trackedCursors[i._id]):1===n&&r.subscribeRemoteCursor(i))})},subscribeRemoteCursor:function(e){e.on(".init",this.onRemoteCursorInit),e.on(".set",this.onRemoteCursorUpdate)},unSubscribeRemoteCursor:function(e){var t=e.swarmModel._id;e.swarmModel.off(".init",this.onRemoteCursorInit),e.swarmModel.off(".set",this.onRemoteCursorUpdate);var n=this.trackedCursors[t].internalModel;delete this.trackedCursors[t],o.default.unsetRemoteCursorPosition(n)},onRemoteCursorInit:function(e,t,n){var r=this,i=n._id,a=void 0;this.trackedCursors[i]?(a=this.trackedCursors[i],a.swarmModel.off(".set",this.onRemoteCursorUpdate),a.swarmModel=n,a.internalModel=this._internalModelFromSwarmModel(n,a.internalModel.color)):!function(){var e=new Set(Object.values(r.trackedCursors).map(function(e){return e.internalModel.color})),t=r.props.cursorColorSpace.filter(function(t){return!e.has(t)}),o=t.length>0?t[0]:e[0],s=r._internalModelFromSwarmModel(n,o);a={swarmModel:n,internalModel:s},r.trackedCursors[i]=a}(),o.default.setRemoteCursorPosition(a.internalModel)},onRemoteCursorUpdate:function(e,t,n){var r=n._id;if(r&&this.trackedCursors[r]){var i=this._internalModelFromSwarmModel(this.trackedCursors[r].swarmModel,this.trackedCursors[r].internalModel.color);o.default.setRemoteCursorPosition(i)}},_foreignCursorSet:function(e){var t=this;return e.list().filter(function(e){return e._id&&e._id!==t.cursorId})},_internalModelFromSwarmModel:function(e,t){var n=a.extractInternal(e);return n.color=t,n}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(156),o=r(i);t.default={componentWillMount:function(){var e={wsPort:this.props.wsPort};this.swarmClient=new o.default(this.props.userId,e)}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(5),o=r(i),a=n(22),s=r(a),u=n(119),l=(r(u),n(174)),c=r(l),h=n(29),f=r(h),p=n(153),d=r(p),v=n(40),m=s.default.PropTypes,g="text/plain",y="text/html",b="application/x-ritzy-rt";t.default=s.default.createClass({displayName:"TextInput",propTypes:{id:m.string.isRequired,coordinates:m.object.isRequired,focused:m.bool.isRequired,renderOptimizations:m.bool},getDefaultProps:function(){return{renderOptimizations:!0}},componentDidMount:function(){var e=this;this.input=s.default.findDOMNode(this.refs.input),this.hiddenContainer=s.default.findDOMNode(this.refs.hiddenContainer),this.ieClipboardDiv=s.default.findDOMNode(this.refs.ieClipboardDiv),this.input.addEventListener("beforepaste",function(){document.activeElement!==e.ieClipboardDiv&&e._focusIeClipboardDiv()},!0);var t=new c.default(this.input);t.bind(["up","down","left","right"],this._handleKeyArrow),t.bind(["shift+up","shift+down","shift+left","shift+right"],this._handleKeySelectionArrow),t.bind(["pageup","pagedown"],this._handleKeyNavigationPage),t.bind(["shift+pageup","shift+pagedown"],this._handleKeySelectionPage),t.bind(["mod+home","home","mod+end","end"],this._handleKeyNavigationHomeEnd),t.bind(["mod+shift+home","shift+home","mod+shift+end","shift+end"],this._handleKeySelectionHomeEnd),t.bind(["mod+left","mod+right"],this._handleKeyNavigationWord),t.bind(["shift+mod+left","shift+mod+right"],this._handleKeySelectionWord),t.bind("mod+a",this._handleKeySelectionAll),t.bind("backspace",this._handleKeyBackspace),t.bind("del",this._handleKeyDelete),t.bind("mod+backspace",this._handleKeyWordBackspace),t.bind("mod+del",this._handleKeyWordDelete),t.bind("mod+b",this._handleKeyBold),t.bind("mod+i",this._handleKeyItalics),t.bind("mod+u",this._handleKeyUnderline),t.bind("alt+shift+5",this._handleKeyStrikethrough),t.bind("mod+.",this._handleKeySuperscript),t.bind("mod+,",this._handleKeySubscript),this.props.focused&&this._focus()},shouldComponentUpdate:function(e){return e.renderOptimizations?this.props.focused!==e.focused||this.props.coordinates.x!==e.coordinates.x||this.props.coordinates.y!==e.coordinates.y:!0},componentDidUpdate:function(){this.props.focused&&this._focus()},_focus:function(){this._checkEmptyValue(),this.ieClipboardDivFocus=!1,this.focusHappening=!0;try{this.input.value=" ",this.input.focus(),this.input.select()}finally{this.focusHappening=!1}},_checkEmptyValue:function(){var e=this.input.value;e.length>0&&" "!==e&&(console.warn("The hidden input area is not empty, missed an event? Inserting now. Please report this to https://github.com/ritzyed/ritzy/issues/12. Value=",e),f.default.insertChars(e),this.input.value=" ")},_handleKeyArrow:function(e,t){return this._checkEmptyValue(),"left"===t?f.default.navigateLeft():"right"===t?f.default.navigateRight():"up"===t?f.default.navigateUp():"down"===t&&f.default.navigateDown(),!1},_handleKeySelectionArrow:function(e,t){return this._checkEmptyValue(),"shift+left"===t?f.default.selectionLeft():"shift+right"===t?f.default.selectionRight():"shift+up"===t?f.default.selectionUp():"shift+down"===t&&f.default.selectionDown(),!1},_handleKeyBackspace:function(){return this._checkEmptyValue(),f.default.eraseCharBack(),!1},_handleKeyDelete:function(){return this._checkEmptyValue(),f.default.eraseCharForward(),!1},_handleKeyWordBackspace:function(){return this._checkEmptyValue(),f.default.eraseWordBack(),!1},_handleKeyWordDelete:function(){return this._checkEmptyValue(),f.default.eraseWordForward(),!1},_handleKeyNavigationPage:function(e,t){return"pageup"===t?f.default.navigatePageUp():"pagedown"===t&&f.default.navigatePageDown(),!1},_handleKeySelectionPage:function(e,t){return"shift+pageup"===t?f.default.selectionPageUp():"shift+pagedown"===t&&f.default.selectionPageDown(),!1},_handleKeyNavigationHomeEnd:function(e,t){return"mod+home"===t?f.default.navigateStart():"home"===t?f.default.navigateStartLine():"mod+end"===t?f.default.navigateEnd():"end"===t&&f.default.navigateEndLine(),!1},_handleKeyNavigationWord:function(e,t){return this._checkEmptyValue(),"mod+left"===t?f.default.navigateWordLeft():"mod+right"===t&&f.default.navigateWordRight(),!1},_handleKeySelectionHomeEnd:function(e,t){return"mod+shift+home"===t?f.default.selectionStart():"shift+home"===t?f.default.selectionStartLine():"mod+shift+end"===t?f.default.selectionEnd():"shift+end"===t&&f.default.selectionEndLine(),!1},_handleKeySelectionWord:function(e,t){return"shift+mod+left"===t?f.default.selectionWordLeft():"shift+mod+right"===t&&f.default.selectionWordRight(),!1},_handleKeySelectionAll:function(){return f.default.selectionAll(),!1},_handleKeyBold:function(){return f.default.toggleBold(),!1},_handleKeyItalics:function(){return f.default.toggleItalics(),!1},_handleKeyUnderline:function(){return f.default.toggleUnderline(),!1},_handleKeyStrikethrough:function(){return f.default.toggleStrikethrough(),!1},_handleKeySuperscript:function(){return f.default.toggleSuperscript(),!1},_handleKeySubscript:function(){return f.default.toggleSubscript(),!1},_onInputFocusLost:function(){this.ieClipboardDivFocus||f.default.inputFocusLost()},_onInputFocusGained:function(){this.focusHappening||this.ieClipboardDivFocus||this.input!==document.activeElement||f.default.focusInput()},_onCopy:function(e){var t=window.clipboardData?o.default.partial(this._handleIeCopy):o.default.partial(this._handleNormalCopy,e);f.default.copySelection(t)},_onCut:function(e){this._onCopy(e),f.default.eraseSelection()},_handleNormalCopy:function(e,t,n,r){e.clipboardData.setData(g,t),e.clipboardData.setData(y,n),e.clipboardData.setData(b,JSON.stringify(r)),e.preventDefault(),e.stopPropagation()},_handleIeCopy:function(e,t){var n=this;window.clipboardData.setData("Text",e),this.ieClipboardDiv.innerHTML=t,this._focusIeClipboardDiv(),this._selectIeClipboardDivContents(),setTimeout(function(){v.emptyNode(n.ieClipboardDiv),n._focus()},0)},_onPaste:function(e){this._checkEmptyValue(),e.clipboardData.types?this._handleNormalPaste(e):this._handleIePaste()},_handleNormalPaste:function(e){var t=void 0;if(t=e.clipboardData.types.findIndex?e.clipboardData.types:Array.from(e.clipboardData.types),t.findIndex(function(e){return e===b})>-1){var n=e.clipboardData.getData(b);f.default.insertCharsBatch(JSON.parse(n))}else if(t.findIndex(function(e){return e===y})>-1){var n=e.clipboardData.getData(y),r=d.default(n,this.hiddenContainer);f.default.insertCharsBatch(r)}else if(t.findIndex(function(e){return e===g})>-1){var n=e.clipboardData.getData(g);f.default.insertChars(n)}else console.warn("Paste not supported yet for types: "+JSON.stringify(t));e.preventDefault(),e.stopPropagation()},_handleIePaste:function(){var e=this;setTimeout(function(){var t=e.ieClipboardDiv.innerHTML;try{var n=d.default(t,e.hiddenContainer);f.default.insertCharsBatch(n)}finally{v.emptyNode(e.ieClipboardDiv),e._focus()}},0)},_focusIeClipboardDiv:function(){this.ieClipboardDivFocus=!0,this.ieClipboardDiv.focus()},_selectIeClipboardDivContents:function(){var e=document.createRange();e.selectNodeContents(this.ieClipboardDiv);var t=window.getSelection();t.removeAllRanges(),t.addRange(e)},_onChange:function(e){var t=e.target.value;f.default.insertChars(t),e.target.value=" ",this._focus()},render:function(){var e={position:"absolute",overflow:"hidden",height:0,outline:"none",left:this.props.coordinates.x,top:this.props.coordinates.y};return s.default.createElement("div",{style:e},s.default.createElement("textarea",{key:"input",ref:"input",onChange:this._onChange,onCopy:this._onCopy,onCut:this._onCut,onPaste:this._onPaste,onBlur:this._onInputFocusLost,onFocus:this._onInputFocusGained}),s.default.createElement("div",{style:{display:"none"},ref:"hiddenContainer"}),s.default.createElement("div",{contentEditable:"true",ref:"ieClipboardDiv",onPaste:this._onPaste}))}}),e.exports=t.default},function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={createTextReplica:function(){var e=this.swarmClient.Swarm.Text;this.replica=new e(this.props.id)},registerCb:function(e,t){this.replica.on(".init",e),this.replica.on(".insert",t),this.replica.on(".remove",t),this.replica.on(".setAttributes",t)}},e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(132),o=r(i);t.default=o.default.extend("CursorSet",{}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){for(var n=document.createDocumentFragment();e.childNodes.length>0;)n.appendChild(e.childNodes[0]);t.appendChild(n)}function o(e,t){for(var n=void 0;e&&e.nodeType===Node.ELEMENT_NODE;){if("SUP"===e.nodeName)n="super";else if("SUB"===e.nodeName)n="sub";else{
var r=t?t:getComputedStyle(e,null),i=r.getPropertyValue("vertical-align");i&&i.length>0&&"baseline"!==i&&(n=i)}t=null,e=e.parentNode}return n}function a(e,t){var n=void 0;if(t.webkitTextDecorationsInEffect)return t.webkitTextDecorationsInEffect;for(;e&&e.nodeType===Node.ELEMENT_NODE;){var r=t?t:getComputedStyle(e,null);t=null;var i=r.getPropertyValue("text-decoration");if(i&&i.length>0&&"none"!==i)if(n&&n.length>0&&"none"!==n){var o=n.split(" ");o.push(i.split(" ")),n=y.default.uniq(o).join(" ")}else n=i;e=e.parentNode}return n}function s(e,t){y.default.isUndefined(t)&&(t=getComputedStyle(e,null));var n={},r=m.normalizeFontWeight(t.getPropertyValue("font-weight"));"bold"===r&&(n[v.ATTR.BOLD]=!0),"italic"===t.getPropertyValue("font-style")&&(n[v.ATTR.ITALIC]=!0);var i=o(e,t);i&&"super"===i?n[v.ATTR.SUPERSCRIPT]=!0:"sub"===i&&(n[v.ATTR.SUBSCRIPT]=!0);var s=a(e,t);return s&&s.indexOf("underline")>-1&&(n[v.ATTR.UNDERLINE]=!0),s&&s.indexOf("line-through")>-1&&(n[v.ATTR.STRIKETHROUGH]=!0),n}function u(e){return e.nodeType===Node.COMMENT_NODE||e.nodeType===Node.PROCESSING_INSTRUCTION_NODE||e.nodeType===Node.ELEMENT_NODE&&"none"===getComputedStyle(e,null).getPropertyValue("display")}function l(e){var t=!0;e:for(;t;){var n=e;r=i=o=a=void 0,t=!1;var r=getComputedStyle(n,null),i=r.getPropertyValue("display"),o=function(){for(var e=0;e<n.children.length;e++){var t=n.children[e];if(!u(t))return t}return null};if("inline"===i){var a=o();if(a&&a.nodeType===Node.ELEMENT_NODE){e=a,t=!0;continue e}return""}return"inline-block"===i||"inline-table"===i||"none"===i||"table-cell"===i||"table-column"===i||"table-column-group"===i?"":"\n"}}function c(e){var t=!0;e:for(;t;){var n=e;r=i=o=a=s=l=c=h=void 0,t=!1;var r=getComputedStyle(n,null),i=r.getPropertyValue("display"),o=function(){for(var e=n.children.length-1;e>=0;e--){var t=n.children[e];if(!u(t))return t}return null};if("inline"===i){var a=o();if(a&&a.nodeType===Node.ELEMENT_NODE){var s=[];p(a,s),e=a,t=!0;continue e}return""}if("inline-block"===i||"inline-table"===i||"none"===i||"table-column"===i||"table-column-group"===i)return"";if("table-cell"===i)return"	";var l=[];if(p(n,l),l&&l.length>0){var c=m.getPixelStyleProperty(r,"margin-bottom"),h=m.getPixelStyleProperty(r,"font-size");return c>=h/2?"\n\n":"\n"}return""}}function h(e){for(var t=e.nextSibling;t;)if(u(t)||"BR"===t.nodeName)t=t.nextSibling;else{if(t.nodeType===Node.ELEMENT_NODE)return!0;t=t.nextSibling}return!1}function f(e,t,n,r,i){y.default.isUndefined(i)&&(i=!1);var o=function(e,t){return t.indexOf(e)>-1},a=function(e,t,n){for(var r=!0;r&&t<e.length;)o(e.charAt(t),n)?t++:r=!1;return t},s=n.length>0?n[n.length-1]:null,u=e.data,l=t.getPropertyValue("white-space"),c="normal"===l||"nowrap"===l||"pre-line"===l;if(c){for(var h="normal"===l||"nowrap"===l?b:_,f=0,p="";f<u.length;){var d=u.charAt(f);h.indexOf(d)>-1?(p+=" ",f++,f=a(u,f,h)):"\n"===d?(p.length>0&&" "===p.charAt(p.length-1)&&(p=p.slice(0,p.length-1)),p+="\n",f++,f=a(u,f,h)):(p+=d,f++)}u=p}!i||0!==u.length&&o(u.charAt(0),b)||!s||(s.text+=" "),(!s||0===s.text.length||o(s.text.charAt(s.text.length-1),b))&&u.length>0&&" "===u.charAt(0)&&c&&(u=u.slice(1)),c&&u.length>0&&" "===u.charAt(u.length-1)?(u=u.slice(0,u.length-1),i=!0):i=!1;var v=t.getPropertyValue("text-transform");return"none"!==v&&"normal"!==v&&console.warn("Unsupported text-transform "+v+" during HTML parsing, ignoring."),u.length>0&&n.push({text:u,attrs:r}),i}function p(e,t,n){for(var r=s(e),i=0;i<e.childNodes.length;i++){var o=e.childNodes[i],a=u(o);if(a||o.nodeType!==Node.TEXT_NODE){if(!a&&o.nodeType===Node.ELEMENT_NODE){var d=t.length>0?t[t.length-1]:null;if(d&&d.text.length>0&&"\n"!==d.text.charAt(d.text.length-1)){var v=l(o);v&&v.length>0&&(d.text+=v,n=!1)}if(n=p(o,t,n),"BR"===o.nodeName)t.push({text:"\n",attrs:r}),n=!1;else if(h(o)){d=t.length>0?t[t.length-1]:null;var m=c(o);m&&m.length>0&&(d||(d={text:"",attrs:r},t.push(d)),d.text+=m,n=!1)}}}else{var g=getComputedStyle(e,null);"hidden"!==g.getPropertyValue("visibility")&&(n=f(o,g,t,r,n))}}return n}function d(e,t){var n=new DOMParser,r=n.parseFromString(e,"text/html"),o=[];if(!r.body)return o;i(r.body,t);try{p(t,o)}finally{m.emptyNode(t)}return o}Object.defineProperty(t,"__esModule",{value:!0}),t.default=d;var v=n(24),m=n(40),g=n(5),y=r(g),b=" 	\n\f\r",_=" 	\f\r";e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){var t=u.hasAttributeFor(e),n={},r=t(u.ATTR.SUPERSCRIPT),i=t(u.ATTR.SUBSCRIPT);(r||i)&&(n.verticalAlign=c.default({"super":r,sub:i})),t(u.ATTR.BOLD)&&(n.fontWeight="bold"),t(u.ATTR.ITALIC)&&(n.fontStyle="italic");var o=t(u.ATTR.UNDERLINE),a=t(u.ATTR.STRIKETHROUGH);return(o||a)&&(n.textDecoration=c.default({underline:o,"line-through":a})),n}function o(e,t,n){n&&(t.whiteSpace="pre-wrap");var r=f.default.createMarkupForStyles(t);e.setAttribute("style",r)}function a(e){var t=document.createDocumentFragment();e||(e=[]);var n=[],r=function(e){t.appendChild(e)},a=function(e){var t=document.createTextNode(e.text),n=document.createElement("SPAN");return n.appendChild(t),o(n,i(e.attrs),!0),n},s=function(){r(document.createElement("BR"))},u=function(){if(0!==n.length){var e=n.map(a),t=document.createDocumentFragment();e.forEach(function(e){return t.appendChild(e)}),r(t),n=[]}},l=function(){if(0!==n.length){var e=document.createElement("P");if(n.length>1){var t=n.map(a);t.forEach(function(t){return e.appendChild(t)})}else if(1===n.length){var s=document.createTextNode(n[0].text);e.appendChild(s),o(e,i(n[0].attrs),!0)}r(e),n=[]}},c=0,h=!0,f=function(e){if(c>0){if(c>=2)if(l(n),h=!1,e)for(;c>0;)s(),c--;else c-=2;for(;c>0;)u(n),s(),c--}};return e.forEach(function(e){"\n"===e.text?c++:(f(!1),n.push(e))}),f(!0),h?u(n):l(n),t}function s(e){var t=a(e),n=document.createElement("div");return n.appendChild(t),n.innerHTML}Object.defineProperty(t,"__esModule",{value:!0}),t.writeHtmlAsDom=a,t.default=s;var u=n(24),l=n(48),c=r(l),h=n(63),f=r(h)},function(e,t){"use strict";function n(e){var t=e.index;e.index=0;var n=void 0;try{n=e.source()}catch(r){n=null}var i=void 0;try{i=e.op()}catch(r){i=null}return e.index=t,{source:n,op:i}}function r(e){return n(e).source}Object.defineProperty(t,"__esModule",{value:!0}),t.parseSpec=n,t.sourceOf=r},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),a=n(280),s=r(a),u=n(157),l=r(u),c=function(){function e(t,n){var r=this;i(this,e);var o=l.default(s.default);this.Swarm=o,this.id=t;var a=window.location.hostname,u=void 0;u=n&&n.wsPort?n.wsPort:window.location.port,a=a+":"+u,this.wsServerUri="ws://"+a+"/websocket";var c=window.location.hash||"#0";this.host=o.env.localhost=new o.Host(this.id+c.replace("#","~")),this.pipe=this.host.connect(this.wsServerUri,{delay:-1}),this.reonHooks=[],this.unloadHooks=[],this.host.on("reon",function(e,t){document.body.setAttribute("connected",r.host.isUplinked());for(var n=0;n<r.reonHooks.length;n++)try{r.reonHooks[n]()}catch(i){console.warn("Swarm reon hook failed.",i)}}),this.host.on("reoff",function(e,t){document.body.setAttribute("connected",r.host.isUplinked())}),this.host.on("off",function(e,t){document.body.setAttribute("connected",r.host.isUplinked())});var h=!1,f=function(){if(!h){h=!0;for(var e=r.pipe&&r.pipe.stream&&r.pipe.stream.ws?r.pipe.stream.ws:null,t=0;t<r.unloadHooks.length;t++)try{r.unloadHooks[t]()}catch(n){console.warn("Swarm unload hook failed.",n)}r.host.close(function(){r.pipe.close(),e&&e.close()})}};window.addEventListener("beforeunload",function(){f()}),window.addEventListener("pagehide",function(){f()}),window.addEventListener("unload",function(){f()})}return o(e,[{key:"addReonHook",value:function(e){this.reonHooks.push(e)}},{key:"addUnloadHook",value:function(e){this.unloadHooks.push(e)}}]),e}();t.default=c,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}Object.defineProperty(t,"__esModule",{value:!0});var i=n(39),o=r(i),a=n(88),s=r(a),u=n(152),l=r(u),c=function(e){e.debug=!1,e.Text=o.default,e.CursorModel=s.default,e.CursorSet=l.default;var t=e.env;return t.debug=!1,t.log=function(e,t,n,r){},e};t.default=c,e.exports=t.default},function(e,t){"use strict";function n(e){var t="";return e||(e=[]),e.forEach(function(e){t+=e.text}),t}Object.defineProperty(t,"__esModule",{value:!0}),t.default=n,e.exports=t.default},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{"default":e}}function i(e){return l.test(e)}function o(e,t){var n=s.default.isArray(e)?e.join(""):e,r=void 0,o=[];t&&t.includeLeadingSpace&&!t.includeTrailingSpace&&(t.includeTrailingSpace=!1),t=s.default.merge({},u.en,t);for(var a=function(e,t,n){o.push({start:e,end:t,isWord:n})},l=0,c=void 0,h=void 0;r=t.wordRegex.exec(n);){if(c=r.index,h=c+r[0].length,t.includeLeadingSpace)for(;i(e[c-1]);)--c;if(c>l&&a(l,c,!1),t.includeTrailingSpace)for(;i(e[h]);)++h;a(c,h,!0),l=h}return l<e.length&&a(l,e.length,!1),o}Object.defineProperty(t,"__esModule",{value:!0}),t.isWhitespace=i,t.default=o;var a=n(5),s=r(a),u={en:{wordRegex:/([a-z0-9_-]+('[a-z0-9_-]+)*|\n)/gi,includeLeadingSpace:!1,includeTrailingSpace:!0}},l=/^[\t \u00A0\u1680\u180E\u2000-\u200B\u202F\u205F\u3000]+$/},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".text-content-wrapper{border:dotted #000 1px}.text-selection-overlay{background-color:#76a7fa;border-top:1px solid #76a7fa;border-bottom:1px solid #76a7fa;opacity:.5}.ritzy-error-notification{border:1px solid;margin:10px 0;padding:5px;color:#d8000c;background:#ffbaba no-repeat 10px center}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,"@media print{.ritzy-internal-ui-unprintable{display:none!important}}.ritzy-internal-text-content-wrapper{cursor:text;overflow:hidden;position:relative;white-space:normal;tap-highlight-color:initial;z-index:22;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.ritzy-internal-text-content-wrapper *,.ritzy-internal-text-content-wrapper :after,.ritzy-internal-text-content-wrapper :before{box-sizing:border-box}.ritzy-internal-text-contents,.ritzy-internal-text-lineview{position:relative}.ritzy-internal-text-lineview-content{white-space:nowrap;position:absolute;z-index:15}.ritzy-internal-text-lineview-text-block{white-space:nowrap}.ritzy-internal-text-cursor{cursor:text;position:absolute;z-index:24}.ritzy-internal-text-cursor-caret{position:absolute;width:0;border-left:2px solid;font-size:0}.ritzy-internal-text-cursor-top{position:absolute;width:6px;left:-2px;top:-2px;height:6px;font-size:0}.ritzy-internal-text-cursor-name{position:absolute;font-size:10px;color:#fff;top:-14px;left:-2px;padding:2px;white-space:nowrap}.ritzy-internal-text-cursor-italic{display:inline;-webkit-transform:rotate(13deg);transform:rotate(13deg)}.ritzy-internal-text-cursor-blink{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:ritzy-internal-text-cursor-fadeoutin;animation-name:ritzy-internal-text-cursor-fadeoutin}@-webkit-keyframes ritzy-internal-text-cursor-fadeoutin{0%{opacity:1}13%,50%{opacity:0}}@keyframes ritzy-internal-text-cursor-fadeoutin{0%,63%,to{opacity:1}13%,50%{opacity:0}63%,to{opacity:1}}.ritzy-internal-text-selection-overlay{z-index:20}.ritzy-internal-text-selection-overlay.ritzy-internal-text-htmloverlay-under-text{z-index:12}.ritzy-internal-text-htmloverlay{position:absolute;z-index:17;top:0}.ritzy-internal-editor-inline-block{position:relative;display:inline-block}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".chasing-dots{width:27px;height:27px;position:relative;-webkit-animation:rotate 2s infinite linear;animation:rotate 2s infinite linear}.dot1,.dot2{width:60%;height:60%;display:inline-block;position:absolute;top:0;background-color:#333;border-radius:100%;-webkit-animation:bounce 2s infinite ease-in-out;animation:bounce 2s infinite ease-in-out}.dot2{top:auto;bottom:0;-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes rotate{to{-webkit-transform:rotate(360deg);transform:rotate(360deg);-webkit-transform:rotate(360deg)}}@keyframes rotate{}@-webkit-keyframes bounce{0%,to{-webkit-transform:scale(0.0)}50%{-webkit-transform:scale(1.0)}}@keyframes bounce{0%,to{transform:scale(0.0);-webkit-transform:scale(0.0)}50%{transform:scale(1.0);-webkit-transform:scale(1.0)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".circle-wrapper{width:22px;height:22px;position:relative}.circle{width:100%;height:100%;position:absolute;left:0;top:0}.circle:before{content:'';display:block;margin:0 auto;width:20%;height:20%;background-color:#333;border-radius:100%;-webkit-animation:bouncedelay 1.2s infinite ease-in-out;animation:bouncedelay 1.2s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.circle2{-webkit-transform:rotate(30deg);transform:rotate(30deg)}.circle3{-webkit-transform:rotate(60deg);transform:rotate(60deg)}.circle4{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.circle5{-webkit-transform:rotate(120deg);transform:rotate(120deg)}.circle6{-webkit-transform:rotate(150deg);transform:rotate(150deg)}.circle7{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.circle8{-webkit-transform:rotate(210deg);transform:rotate(210deg)}.circle9{-webkit-transform:rotate(240deg);transform:rotate(240deg)}.circle10{-webkit-transform:rotate(270deg);transform:rotate(270deg)}.circle11{-webkit-transform:rotate(300deg);transform:rotate(300deg)}.circle12{-webkit-transform:rotate(330deg);transform:rotate(330deg)}.circle2:before{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.circle3:before{-webkit-animation-delay:-1s;animation-delay:-1s}.circle4:before{-webkit-animation-delay:-.9s;animation-delay:-.9s}.circle5:before{-webkit-animation-delay:-.8s;animation-delay:-.8s}.circle6:before{-webkit-animation-delay:-.7s;animation-delay:-.7s}.circle7:before{-webkit-animation-delay:-.6s;animation-delay:-.6s}.circle8:before{-webkit-animation-delay:-.5s;animation-delay:-.5s}.circle9:before{-webkit-animation-delay:-.4s;animation-delay:-.4s}.circle10:before{-webkit-animation-delay:-.3s;animation-delay:-.3s}.circle11:before{-webkit-animation-delay:-.2s;animation-delay:-.2s}.circle12:before{-webkit-animation-delay:-.1s;animation-delay:-.1s}@-webkit-keyframes bouncedelay{0%,80%,to{-webkit-transform:scale(0.0)}40%{-webkit-transform:scale(1.0)}}@keyframes bouncedelay{0%,80%,to{-webkit-transform:scale(0.0);transform:scale(0.0)}40%{-webkit-transform:scale(1.0);transform:scale(1.0)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".cube-grid{width:27px;height:27px}.cube{width:33%;height:33%;background:#333;float:left;-webkit-animation:scaleDelay 1.3s infinite ease-in-out;animation:scaleDelay 1.3s infinite ease-in-out}.spinner .cube:nth-child(1){-webkit-animation-delay:.2s;animation-delay:.2s}.spinner .cube:nth-child(2){-webkit-animation-delay:.3s;animation-delay:.3s}.spinner .cube:nth-child(3){-webkit-animation-delay:.4s;animation-delay:.4s}.spinner .cube:nth-child(4){-webkit-animation-delay:.1s;animation-delay:.1s}.spinner .cube:nth-child(5){-webkit-animation-delay:.2s;animation-delay:.2s}.spinner .cube:nth-child(6){-webkit-animation-delay:.3s;animation-delay:.3s}.spinner .cube:nth-child(7){-webkit-animation-delay:0s;animation-delay:0s}.spinner .cube:nth-child(8){-webkit-animation-delay:.1s;animation-delay:.1s}.spinner .cube:nth-child(9){-webkit-animation-delay:.2s;animation-delay:.2s}@-webkit-keyframes scaleDelay{0%,70%,to{-webkit-transform:scale3D(1.0, 1.0, 1.0)}35%{-webkit-transform:scale3D(0.0, 0.0, 1.0)}}@keyframes scaleDelay{0%,70%,to{transform:scale3D(1.0, 1.0, 1.0)}0%,35%,70%,to{-webkit-transform:scale3D(1.0, 1.0, 1.0)}35%{transform:scale3D(0.0, 0.0, 1.0)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".double-bounce{width:27px;height:27px;position:relative}.double-bounce1,.double-bounce2{width:100%;height:100%;border-radius:50%;background-color:#333;opacity:.6;position:absolute;top:0;left:0;-webkit-animation:bounce 2s infinite ease-in-out;animation:bounce 2s infinite ease-in-out}.double-bounce2{-webkit-animation-delay:-1s;animation-delay:-1s}@-webkit-keyframes bounce{0%,to{-webkit-transform:scale(0.0)}50%{-webkit-transform:scale(1.0)}}@keyframes bounce{0%,to{transform:scale(0.0);-webkit-transform:scale(0.0)}50%{transform:scale(1.0);-webkit-transform:scale(1.0)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,"@-webkit-keyframes fade-in{0%,50%{opacity:0}to{opacity:1}}@keyframes fade-in{0%,50%{opacity:0}to{opacity:1}}.fade-in{-webkit-animation:fade-in 2s;-moz-animation:fade-in 2s;-o-animation:fade-in 2s;-ms-animation:fade-in 2s}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".pulse{width:27px;height:27px;background-color:#333;border-radius:100%;-webkit-animation:scaleout 1s infinite ease-in-out;animation:scaleout 1s infinite ease-in-out}@-webkit-keyframes scaleout{0%{-webkit-transform:scale(0.0)}to{-webkit-transform:scale(1.0);opacity:0}}@keyframes scaleout{0%{transform:scale(0.0);-webkit-transform:scale(0.0)}to{transform:scale(1.0);-webkit-transform:scale(1.0);opacity:0}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".rotating-plane{width:27px;height:27px;background-color:#333;-webkit-animation:rotateplane 1.2s infinite ease-in-out;animation:rotateplane 1.2s infinite ease-in-out}@-webkit-keyframes rotateplane{0%{-webkit-transform:perspective(120px)}50%{-webkit-transform:perspective(120px) rotateY(180deg)}to{-webkit-transform:perspective(120px) rotateY(180deg) rotateX(180deg)}}@keyframes rotateplane{0%{transform:perspective(120px) rotateX(0deg) rotateY(0deg);-webkit-transform:perspective(120px) rotateX(0deg) rotateY(0deg)}50%{transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg);-webkit-transform:perspective(120px) rotateX(-180.1deg) rotateY(0deg)}to{transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg);-webkit-transform:perspective(120px) rotateX(-180deg) rotateY(-179.9deg)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".three-bounce>div{width:18px;height:18px;background-color:#333;border-radius:100%;display:inline-block;-webkit-animation:bouncedelay 1.4s infinite ease-in-out;animation:bouncedelay 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.three-bounce .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.three-bounce .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes bouncedelay{0%,80%,to{-webkit-transform:scale(0.0)}40%{-webkit-transform:scale(1.0)}}@keyframes bouncedelay{0%,80%,to{transform:scale(0.0);-webkit-transform:scale(0.0)}40%{transform:scale(1.0);-webkit-transform:scale(1.0)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".wandering-cubes{width:27px;height:27px;position:relative}.cube1,.cube2{background-color:#333;width:10px;height:10px;position:absolute;top:0;left:0;-webkit-animation:cubemove 1.8s infinite ease-in-out;animation:cubemove 1.8s infinite ease-in-out}.cube2{-webkit-animation-delay:-.9s;animation-delay:-.9s}@-webkit-keyframes cubemove{25%{-webkit-transform:translateX(22px) rotate(-90deg) scale(0.5)}50%{-webkit-transform:translateX(22px) translateY(22px) rotate(-180deg)}75%{-webkit-transform:translateX(0px) translateY(22px) rotate(-270deg) scale(0.5)}to{-webkit-transform:rotate(-360deg)}}@keyframes cubemove{25%{transform:translateX(42px) rotate(-90deg) scale(0.5);-webkit-transform:translateX(42px) rotate(-90deg) scale(0.5)}50%{transform:translateX(42px) translateY(42px) rotate(-179deg);-webkit-transform:translateX(42px) translateY(42px) rotate(-179deg)}50.1%{transform:translateX(42px) translateY(42px) rotate(-180deg);-webkit-transform:translateX(42px) translateY(42px) rotate(-180deg)}75%{transform:translateX(0px) translateY(42px) rotate(-270deg) scale(0.5);-webkit-transform:translateX(0px) translateY(42px) rotate(-270deg) scale(0.5)}to{transform:rotate(-360deg);-webkit-transform:rotate(-360deg)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".wave{width:50px;height:27px}.wave>div{background-color:#333;height:100%;width:6px;display:inline-block;-webkit-animation:stretchdelay 1.2s infinite ease-in-out;animation:stretchdelay 1.2s infinite ease-in-out}.wave .rect2{-webkit-animation-delay:-1.1s;animation-delay:-1.1s}.wave .rect3{-webkit-animation-delay:-1s;animation-delay:-1s}.wave .rect4{-webkit-animation-delay:-.9s;animation-delay:-.9s}.wave .rect5{-webkit-animation-delay:-.8s;animation-delay:-.8s}@-webkit-keyframes stretchdelay{0%,40%,to{-webkit-transform:scaleY(0.4)}20%{-webkit-transform:scaleY(1.0)}}@keyframes stretchdelay{0%,40%,to{transform:scaleY(0.4);-webkit-transform:scaleY(0.4)}20%{transform:scaleY(1.0);-webkit-transform:scaleY(1.0)}}",""])},function(e,t,n){t=e.exports=n(8)(),t.push([e.id,".wordpress{background:#333;width:27px;height:27px;display:inline-block;border-radius:27px;position:relative;-webkit-animation:inner-circle 1s linear infinite;animation:inner-circle 1s linear infinite}.inner-circle{display:block;background:#fff;width:8px;height:8px;position:absolute;border-radius:8px;top:5px;left:5px}@-webkit-keyframes inner-circle{0%{-webkit-transform:rotate(0)}to{-webkit-transform:rotate(360deg)}}@keyframes inner-circle{0%{transform:rotate(0);-webkit-transform:rotate(0)}to{transform:rotate(360deg);-webkit-transform:rotate(360deg)}}",""])},function(e,t,n){"use strict";function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(){}var o="function"!=typeof Object.create?"~":!1;i.prototype._events=void 0,i.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events&&this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);a>i;i++)s[i]=r[i].fn;return s},i.prototype.emit=function(e,t,n,r,i,a){var s=o?o+e:e;if(!this._events||!this._events[s])return!1;var u,l,c=this._events[s],h=arguments.length;if("function"==typeof c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),h){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(l=1,u=new Array(h-1);h>l;l++)u[l-1]=arguments[l];c.fn.apply(c.context,u)}else{var f,p=c.length;for(l=0;p>l;l++)switch(c[l].once&&this.removeListener(e,c[l].fn,void 0,!0),h){case 1:c[l].fn.call(c[l].context);break;case 2:c[l].fn.call(c[l].context,t);break;case 3:c[l].fn.call(c[l].context,t,n);break;default:if(!u)for(f=1,u=new Array(h-1);h>f;f++)u[f-1]=arguments[f];c[l].fn.apply(c[l].context,u)}}return!0},i.prototype.on=function(e,t,n){var i=new r(t,n||this),a=o?o+e:e;return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},i.prototype.once=function(e,t,n){var i=new r(t,n||this,!0),a=o?o+e:e;return this._events||(this._events=o?{}:Object.create(null)),this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],i]:this._events[a].push(i):this._events[a]=i,this},i.prototype.removeListener=function(e,t,n,r){var i=o?o+e:e;if(!this._events||!this._events[i])return this;var a=this._events[i],s=[];if(t)if(a.fn)(a.fn!==t||r&&!a.once||n&&a.context!==n)&&s.push(a);else for(var u=0,l=a.length;l>u;u++)(a[u].fn!==t||r&&!a[u].once||n&&a[u].context!==n)&&s.push(a[u]);return s.length?this._events[i]=1===s.length?s[0]:s:delete this._events[i],this},i.prototype.removeAllListeners=function(e){return this._events?(e?delete this._events[o?o+e:e]:this._events=o?{}:Object.create(null),this):this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prototype.setMaxListeners=function(){return this},i.prefixed=o,e.exports=i},function(e,t,n){var r;!function(i,o,a){function s(e,t,n){return e.addEventListener?void e.addEventListener(t,n,!1):void e.attachEvent("on"+t,n)}function u(e){if("keypress"==e.type){var t=String.fromCharCode(e.which);return e.shiftKey||(t=t.toLowerCase()),t}return C[e.which]?C[e.which]:w[e.which]?w[e.which]:String.fromCharCode(e.which).toLowerCase()}function l(e,t){return e.sort().join(",")===t.sort().join(",")}function c(e){var t=[];return e.shiftKey&&t.push("shift"),e.altKey&&t.push("alt"),e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),t}function h(e){return e.preventDefault?void e.preventDefault():void(e.returnValue=!1)}function f(e){return e.stopPropagation?void e.stopPropagation():void(e.cancelBubble=!0)}function p(e){return"shift"==e||"ctrl"==e||"alt"==e||"meta"==e}function d(){if(!_){_={};for(var e in C)e>95&&112>e||C.hasOwnProperty(e)&&(_[C[e]]=e)}return _}function v(e,t,n){return n||(n=d()[e]?"keydown":"keypress"),"keypress"==n&&t.length&&(n="keydown"),n}function m(e){return"+"===e?["+"]:(e=e.replace(/\+{2}/g,"+plus"),e.split("+"))}function g(e,t){var n,r,i,o=[];for(n=m(e),i=0;i<n.length;++i)r=n[i],E[r]&&(r=E[r]),t&&"keypress"!=t&&x[r]&&(r=x[r],o.push("shift")),p(r)&&o.push(r);return t=v(r,o,t),{key:r,modifiers:o,action:t}}function y(e,t){return null===e||e===o?!1:e===t?!0:y(e.parentNode,t)}function b(e){function t(e){e=e||{};var t,n=!1;for(t in _)e[t]?n=!0:_[t]=0;n||(x=!1)}function n(e,t,n,r,i,o){var a,s,u=[],c=n.type;if(!m._callbacks[e])return[];for("keyup"==c&&p(e)&&(t=[e]),a=0;a<m._callbacks[e].length;++a)if(s=m._callbacks[e][a],(r||!s.seq||_[s.seq]==s.level)&&c==s.action&&("keypress"==c&&!n.metaKey&&!n.ctrlKey||l(t,s.modifiers))){var h=!r&&s.combo==i,f=r&&s.seq==r&&s.level==o;(h||f)&&m._callbacks[e].splice(a,1),u.push(s)}return u}function r(e,t,n,r){m.stopCallback(t,t.target||t.srcElement,n,r)||e(t,n)===!1&&(h(t),f(t))}function i(e){"number"!=typeof e.which&&(e.which=e.keyCode);var t=u(e);if(t)return"keyup"==e.type&&C===t?void(C=!1):void m.handleKey(t,c(e),e)}function a(){clearTimeout(y),y=setTimeout(t,1e3)}function d(e,n,i,o){function s(t){return function(){x=t,++_[e],a()}}function l(n){r(i,n,e),"keyup"!==o&&(C=u(n)),setTimeout(t,10)}_[e]=0;for(var c=0;c<n.length;++c){var h=c+1===n.length,f=h?l:s(o||g(n[c+1]).action);v(n[c],f,o,e,c)}}function v(e,t,r,i,o){m._directMap[e+":"+r]=t,e=e.replace(/\s+/g," ");var a,s=e.split(" ");return s.length>1?void d(e,s,t,r):(a=g(e,r),m._callbacks[a.key]=m._callbacks[a.key]||[],n(a.key,a.modifiers,{type:a.action},i,e,o),void m._callbacks[a.key][i?"unshift":"push"]({callback:t,modifiers:a.modifiers,action:a.action,seq:i,level:o,combo:e}))}var m=this;if(e=e||o,!(m instanceof b))return new b(e);m.target=e,m._callbacks={},m._directMap={};var y,_={},C=!1,w=!1,x=!1;m._handleKey=function(e,i,o){var a,s=n(e,i,o),u={},l=0,c=!1;for(a=0;a<s.length;++a)s[a].seq&&(l=Math.max(l,s[a].level));for(a=0;a<s.length;++a)if(s[a].seq){if(s[a].level!=l)continue;c=!0,u[s[a].seq]=1,r(s[a].callback,o,s[a].combo,s[a].seq)}else c||r(s[a].callback,o,s[a].combo);var h="keypress"==o.type&&w;o.type!=x||p(e)||h||t(u),w=c&&"keydown"==o.type},m._bindMultiple=function(e,t,n){for(var r=0;r<e.length;++r)v(e[r],t,n)},s(e,"keypress",i),s(e,"keydown",i),s(e,"keyup",i)}for(var _,C={8:"backspace",9:"tab",13:"enter",16:"shift",17:"ctrl",18:"alt",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"ins",46:"del",91:"meta",93:"meta",224:"meta"},w={106:"*",107:"+",109:"-",110:".",111:"/",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'"},x={"~":"`","!":"1","@":"2","#":"3",$:"4","%":"5","^":"6","&":"7","*":"8","(":"9",")":"0",_:"-","+":"=",":":";",'"':"'","<":",",">":".","?":"/","|":"\\"},E={option:"alt",command:"meta","return":"enter",escape:"esc",plus:"+",mod:/Mac|iPod|iPhone|iPad/.test(navigator.platform)?"meta":"ctrl"},S=1;20>S;++S)C[111+S]="f"+S;for(S=0;9>=S;++S)C[S+96]=S;b.prototype.bind=function(e,t,n){var r=this;return e=e instanceof Array?e:[e],r._bindMultiple.call(r,e,t,n),r},b.prototype.unbind=function(e,t){var n=this;return n.bind.call(n,e,function(){},t)},b.prototype.trigger=function(e,t){var n=this;return n._directMap[e+":"+t]&&n._directMap[e+":"+t]({},e),n},b.prototype.reset=function(){var e=this;return e._callbacks={},e._directMap={},e},b.prototype.stopCallback=function(e,t){var n=this;return(" "+t.className+" ").indexOf(" mousetrap ")>-1?!1:y(t,n.target)?!1:"INPUT"==t.tagName||"SELECT"==t.tagName||"TEXTAREA"==t.tagName||t.isContentEditable},b.prototype.handleKey=function(){var e=this;return e._handleKey.apply(e,arguments)},b.init=function(){var e=b(o);for(var t in e)"_"!==t.charAt(0)&&(b[t]=function(t){return function(){return e[t].apply(e,arguments)}}(t))},b.init(),i.Mousetrap=b,"undefined"!=typeof e&&e.exports&&(e.exports=b),r=function(){return b}.call(t,n,t,e),!(r!==a&&(e.exports=r))}(window,document)},function(e,t){"use strict";function n(e,t,n,r,i){e.beginPath(),e.moveTo(t,n),e.lineTo(r,i),e.stroke()}t.line=n},function(e,t,n){"use strict";function r(e){e=e||{},this.familyName=e.familyName||" ",this.styleName=e.styleName||" ",this.designer=e.designer||" ",this.designerURL=e.designerURL||" ",this.manufacturer=e.manufacturer||" ",this.manufacturerURL=e.manufacturerURL||" ",this.license=e.license||" ",this.licenseURL=e.licenseURL||" ",this.version=e.version||"Version 0.1",this.description=e.description||" ",this.copyright=e.copyright||" ",this.trademark=e.trademark||" ",this.unitsPerEm=e.unitsPerEm||1e3,this.ascender=e.ascender,this.descender=e.descender,this.supported=!0,this.glyphs=new s.GlyphSet(this,e.glyphs||[]),this.encoding=new a.DefaultEncoding(this),this.tables={}}var i=n(41),o=n(182),a=n(49),s=n(61);r.prototype.hasChar=function(e){return null!==this.encoding.charToGlyphIndex(e)},r.prototype.charToGlyphIndex=function(e){return this.encoding.charToGlyphIndex(e)},r.prototype.charToGlyph=function(e){var t=this.charToGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},r.prototype.stringToGlyphs=function(e){for(var t=[],n=0;n<e.length;n+=1){var r=e[n];t.push(this.charToGlyph(r))}return t},r.prototype.nameToGlyphIndex=function(e){return this.glyphNames.nameToGlyphIndex(e)},r.prototype.nameToGlyph=function(e){var t=this.nametoGlyphIndex(e),n=this.glyphs.get(t);return n||(n=this.glyphs.get(0)),n},r.prototype.glyphIndexToName=function(e){return this.glyphNames.glyphIndexToName?this.glyphNames.glyphIndexToName(e):""},r.prototype.getKerningValue=function(e,t){e=e.index||e,t=t.index||t;var n=this.getGposKerningValue;return n?n(e,t):this.kerningPairs[e+","+t]||0},r.prototype.forEachGlyph=function(e,t,n,r,i,o){if(this.supported){t=void 0!==t?t:0,n=void 0!==n?n:0,r=void 0!==r?r:72,i=i||{};for(var a=void 0===i.kerning?!0:i.kerning,s=1/this.unitsPerEm*r,u=this.stringToGlyphs(e),l=0;l<u.length;l+=1){var c=u[l];if(o(c,t,n,r,i),c.advanceWidth&&(t+=c.advanceWidth*s),a&&l<u.length-1){var h=this.getKerningValue(c,u[l+1]);t+=h*s}}}},r.prototype.getPath=function(e,t,n,r,o){var a=new i.Path;return this.forEachGlyph(e,t,n,r,o,function(e,t,n,r){var i=e.getPath(t,n,r);a.extend(i)}),a},r.prototype.draw=function(e,t,n,r,i,o){this.getPath(t,n,r,i,o).draw(e)},r.prototype.drawPoints=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,function(t,n,r,i){t.drawPoints(e,n,r,i)})},r.prototype.drawMetrics=function(e,t,n,r,i,o){this.forEachGlyph(t,n,r,i,o,function(t,n,r,i){t.drawMetrics(e,n,r,i)})},r.prototype.validate=function(){function e(e,t){e||n.push(t)}function t(t){e(r[t]&&r[t].trim().length>0,"No "+t+" specified.")}var n=[],r=this;t("familyName"),t("weightName"),t("manufacturer"),t("copyright"),t("version"),e(this.unitsPerEm>0,"No unitsPerEm specified.")},r.prototype.toTables=function(){return o.fontToTable(this)},r.prototype.toBuffer=function(){for(var e=this.toTables(),t=e.encode(),n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i++)r[i]=t[i];
return n},r.prototype.download=function(){var e=this.familyName.replace(/\s/g,"")+"-"+this.styleName+".otf",t=this.toBuffer();window.requestFileSystem=window.requestFileSystem||window.webkitRequestFileSystem,window.requestFileSystem(window.TEMPORARY,t.byteLength,function(n){n.root.getFile(e,{create:!0},function(e){e.createWriter(function(n){var r=new DataView(t),i=new Blob([r],{type:"font/opentype"});n.write(i),n.addEventListener("writeend",function(){location.href=e.toURL()},!1)})})},function(e){throw e})},t.Font=r},function(e,t,n){"use strict";function r(e){for(var t=new ArrayBuffer(e.length),n=new Uint8Array(t),r=0;r<e.length;r+=1)n[r]=e[r];return t}function i(e,t){var i=n(289);i.readFile(e,function(e,n){return e?t(e.message):void t(null,r(n))})}function o(e,t){var n=new XMLHttpRequest;n.open("get",e,!0),n.responseType="arraybuffer",n.onload=function(){return 200!==n.status?t("Font could not be loaded: "+n.statusText):t(null,n.response)},n.send()}function a(e){var t,n,r,i,o,a,s,c=new l.Font,f=new DataView(e,0),k=h.getFixed(f,0);if(1===k)c.outlinesFormat="truetype";else{if(k=h.getTag(f,0),"OTTO"!==k)throw new Error("Unsupported OpenType version "+k);c.outlinesFormat="cff"}for(var T=h.getUShort(f,4),O=12,R=0;T>R;R+=1){var A=h.getTag(f,O),M=h.getULong(f,O+8);switch(A){case"cmap":c.tables.cmap=p.parse(f,M),c.encoding=new u.CmapEncoding(c.tables.cmap),c.encoding||(c.supported=!1);break;case"head":c.tables.head=g.parse(f,M),c.unitsPerEm=c.tables.head.unitsPerEm,t=c.tables.head.indexToLocFormat;break;case"hhea":c.tables.hhea=y.parse(f,M),c.ascender=c.tables.hhea.ascender,c.descender=c.tables.hhea.descender,c.numberOfHMetrics=c.tables.hhea.numberOfHMetrics;break;case"hmtx":n=M;break;case"maxp":c.tables.maxp=w.parse(f,M),c.numGlyphs=c.tables.maxp.numGlyphs;break;case"name":c.tables.name=x.parse(f,M),c.familyName=c.tables.name.fontFamily,c.styleName=c.tables.name.fontSubfamily;break;case"OS/2":c.tables.os2=E.parse(f,M);break;case"post":c.tables.post=S.parse(f,M),c.glyphNames=new u.GlyphNames(c.tables.post);break;case"glyf":r=M;break;case"loca":i=M;break;case"CFF ":o=M;break;case"kern":a=M;break;case"GPOS":s=M}O+=16}if(r&&i){var N=0===t,I=C.parse(f,i,c.numGlyphs,N);c.glyphs=v.parse(f,r,I,c),b.parse(f,n,c.numberOfHMetrics,c.numGlyphs,c.glyphs),u.addGlyphNames(c)}else o?(d.parse(f,o,c),u.addGlyphNames(c)):c.supported=!1;return c.supported&&(a?c.kerningPairs=_.parse(f,a):c.kerningPairs={},s&&m.parse(f,s,c)),c}function s(e,t){var n="undefined"==typeof window,r=n?i:o;r(e,function(e,n){if(e)return t(e);var r=a(n);return r.supported?t(null,r):t("Font is not supported (is this a Postscript font?)")})}var u=n(49),l=n(176),c=n(90),h=n(7),f=n(41),p=n(92),d=n(91),v=n(178),m=n(179),g=n(93),y=n(94),b=n(95),_=n(180),C=n(181),w=n(96),x=n(97),E=n(98),S=n(99);t._parse=h,t.Font=l.Font,t.Glyph=c.Glyph,t.Path=f.Path,t.parse=a,t.load=s},function(e,t,n){"use strict";function r(e,t,n,r,i){var o;return(t&r)>0?(o=e.parseByte(),0===(t&i)&&(o=-o),o=n+o):o=(t&i)>0?n:n+e.parseShort(),o}function i(e,t,n){var i=new f.Parser(t,n);e.numberOfContours=i.parseShort(),e.xMin=i.parseShort(),e.yMin=i.parseShort(),e.xMax=i.parseShort(),e.yMax=i.parseShort();var o,a;if(e.numberOfContours>0){var s,u=e.endPointIndices=[];for(s=0;s<e.numberOfContours;s+=1)u.push(i.parseUShort());for(e.instructionLength=i.parseUShort(),e.instructions=[],s=0;s<e.instructionLength;s+=1)e.instructions.push(i.parseByte());var l=u[u.length-1]+1;for(o=[],s=0;l>s;s+=1)if(a=i.parseByte(),o.push(a),(8&a)>0)for(var h=i.parseByte(),p=0;h>p;p+=1)o.push(a),s+=1;if(c.argument(o.length===l,"Bad flags."),u.length>0){var d,v=[];if(l>0){for(s=0;l>s;s+=1)a=o[s],d={},d.onCurve=!!(1&a),d.lastPointOfContour=u.indexOf(s)>=0,v.push(d);var m=0;for(s=0;l>s;s+=1)a=o[s],d=v[s],d.x=r(i,a,m,2,16),m=d.x;var g=0;for(s=0;l>s;s+=1)a=o[s],d=v[s],d.y=r(i,a,g,4,32),g=d.y}e.points=v}else e.points=[]}else if(0===e.numberOfContours)e.points=[];else{e.isComposite=!0,e.points=[],e.components=[];for(var y=!0;y;){o=i.parseUShort();var b={glyphIndex:i.parseUShort(),xScale:1,scale01:0,scale10:0,yScale:1,dx:0,dy:0};(1&o)>0?(b.dx=i.parseShort(),b.dy=i.parseShort()):(b.dx=i.parseChar(),b.dy=i.parseChar()),(8&o)>0?b.xScale=b.yScale=i.parseF2Dot14():(64&o)>0?(b.xScale=i.parseF2Dot14(),b.yScale=i.parseF2Dot14()):(128&o)>0&&(b.xScale=i.parseF2Dot14(),b.scale01=i.parseF2Dot14(),b.scale10=i.parseF2Dot14(),b.yScale=i.parseF2Dot14()),e.components.push(b),y=!!(32&o)}}}function o(e,t){for(var n=[],r=0;r<e.length;r+=1){var i=e[r],o={x:t.xScale*i.x+t.scale01*i.y+t.dx,y:t.scale10*i.x+t.yScale*i.y+t.dy,onCurve:i.onCurve,lastPointOfContour:i.lastPointOfContour};n.push(o)}return n}function a(e){for(var t=[],n=[],r=0;r<e.length;r+=1){var i=e[r];n.push(i),i.lastPointOfContour&&(t.push(n),n=[])}return c.argument(0===n.length,"There are still points left in the current contour."),t}function s(e){var t=new p.Path;if(!e)return t;for(var n=a(e),r=0;r<n.length;r+=1){var i,o,s=n[r],u=s[0],l=s[s.length-1];u.onCurve?(i=null,o=!0):(u=l.onCurve?l:{x:(u.x+l.x)/2,y:(u.y+l.y)/2},i=u,o=!1),t.moveTo(u.x,u.y);for(var c=o?1:0;c<s.length;c+=1){var h=s[c],f=0===c?u:s[c-1];if(f.onCurve&&h.onCurve)t.lineTo(h.x,h.y);else if(f.onCurve&&!h.onCurve)i=h;else if(f.onCurve||h.onCurve){if(f.onCurve||!h.onCurve)throw new Error("Invalid state.");t.quadraticCurveTo(i.x,i.y,h.x,h.y),i=null}else{var d={x:(f.x+h.x)/2,y:(f.y+h.y)/2};t.quadraticCurveTo(f.x,f.y,d.x,d.y),i=h}}u!==l&&(i?t.quadraticCurveTo(i.x,i.y,u.x,u.y):t.lineTo(u.x,u.y))}return t.closePath(),t}function u(e,t){if(t.isComposite)for(var n=0;n<t.components.length;n+=1){var r=t.components[n],i=e.get(r.glyphIndex);if(i.points){var a=o(i.points,r);t.points=t.points.concat(a)}}return s(t.points)}function l(e,t,n,r){var o,a=new h.GlyphSet(r);for(o=0;o<n.length-1;o+=1){var s=n[o],l=n[o+1];s!==l?a.push(o,h.ttfGlyphLoader(r,o,i,e,t+s,u)):a.push(o,h.glyphLoader(r,o))}return a}var c=n(17),h=n(61),f=n(7),p=n(41);t.parse=l},function(e,t,n){"use strict";function r(e,t){for(var n=new c.Parser(e,t),r=n.parseUShort(),i=[],o=0;r>o;o++)i[n.parseTag()]={offset:n.parseUShort()};return i}function i(e,t){var n=new c.Parser(e,t),r=n.parseUShort(),i=n.parseUShort();if(1===r)return n.parseUShortList(i);if(2===r){for(var o=[];i--;)for(var a=n.parseUShort(),s=n.parseUShort(),u=n.parseUShort(),l=a;s>=l;l++)o[u++]=l;return o}}function o(e,t){var n=new c.Parser(e,t),r=n.parseUShort();if(1===r){var i=n.parseUShort(),o=n.parseUShort(),a=n.parseUShortList(o);return function(e){return a[e-i]||0}}if(2===r){for(var s=n.parseUShort(),u=[],l=[],h=[],f=0;s>f;f++)u[f]=n.parseUShort(),l[f]=n.parseUShort(),h[f]=n.parseUShort();return function(e){for(var t=0,n=u.length-1;n>t;){var r=t+n+1>>1;e<u[r]?n=r-1:t=r}return u[t]<=e&&e<=l[t]?h[t]||0:0}}}function a(e,t){var n,r,a=new c.Parser(e,t),s=a.parseUShort(),u=a.parseUShort(),l=i(e,t+u),h=a.parseUShort(),f=a.parseUShort();if(4===h&&0===f){var p={};if(1===s){for(var d=a.parseUShort(),v=[],m=a.parseOffset16List(d),g=0;d>g;g++){var y=m[g],b=p[y];if(!b){b={},a.relativeOffset=y;for(var _=a.parseUShort();_--;){var C=a.parseUShort();h&&(n=a.parseShort()),f&&(r=a.parseShort()),b[C]=n}}v[l[g]]=b}return function(e,t){var n=v[e];return n?n[t]:void 0}}if(2===s){for(var w=a.parseUShort(),x=a.parseUShort(),E=a.parseUShort(),S=a.parseUShort(),k=o(e,t+w),T=o(e,t+x),O=[],R=0;E>R;R++)for(var A=O[R]=[],M=0;S>M;M++)h&&(n=a.parseShort()),f&&(r=a.parseShort()),A[M]=n;var N={};for(R=0;R<l.length;R++)N[l[R]]=1;return function(e,t){if(N[e]){var n=k(e),r=T(t),i=O[n];return i?i[r]:void 0}}}}}function s(e,t){var n=new c.Parser(e,t),r=n.parseUShort(),i=n.parseUShort(),o=16&i,s=n.parseUShort(),u=n.parseOffset16List(s),l={lookupType:r,lookupFlag:i,markFilteringSet:o?n.parseUShort():-1};if(2===r){for(var h=[],f=0;s>f;f++)h.push(a(e,t+u[f]));l.getKerningValue=function(e,t){for(var n=h.length;n--;){var r=h[n](e,t);if(void 0!==r)return r}return 0}}return l}function u(e,t,n){var i=new c.Parser(e,t),o=i.parseFixed();l.argument(1===o,"Unsupported GPOS table version."),r(e,t+i.parseUShort()),r(e,t+i.parseUShort());var a=i.parseUShort();i.relativeOffset=a;for(var u=i.parseUShort(),h=i.parseOffset16List(u),f=t+a,p=0;u>p;p++){var d=s(e,f+h[p]);2!==d.lookupType||n.getGposKerningValue||(n.getGposKerningValue=d.getKerningValue)}}var l=n(17),c=n(7);t.parse=u},function(e,t,n){"use strict";function r(e,t){var n={},r=new o.Parser(e,t),a=r.parseUShort();i.argument(0===a,"Unsupported kern table version."),r.skip("uShort",1);var s=r.parseUShort();i.argument(0===s,"Unsupported kern sub-table version."),r.skip("uShort",2);var u=r.parseUShort();r.skip("uShort",3);for(var l=0;u>l;l+=1){var c=r.parseUShort(),h=r.parseUShort(),f=r.parseShort();n[c+","+h]=f}return n}var i=n(17),o=n(7);t.parse=r},function(e,t,n){"use strict";function r(e,t,n,r){for(var o=new i.Parser(e,t),a=r?o.parseUShort:o.parseULong,s=[],u=0;n+1>u;u+=1){var l=a.call(o);r&&(l*=2),s.push(l)}return s}var i=n(7);t.parse=r},function(e,t,n){"use strict";function r(e){return Math.log(e)/Math.log(2)|0}function i(e){for(;e.length%4!==0;)e.push(0);for(var t=0,n=0;n<e.length;n+=4)t+=(e[n]<<24)+(e[n+1]<<16)+(e[n+2]<<8)+e[n+3];return t%=Math.pow(2,32)}function o(e,t,n,r){return new h.Table("Table Record",[{name:"tag",type:"TAG",value:void 0!==e?e:""},{name:"checkSum",type:"ULONG",value:void 0!==t?t:0},{name:"offset",type:"ULONG",value:void 0!==n?n:0},{name:"length",type:"ULONG",value:void 0!==r?r:0}])}function a(e){var t=new h.Table("sfnt",[{name:"version",type:"TAG",value:"OTTO"},{name:"numTables",type:"USHORT",value:0},{name:"searchRange",type:"USHORT",value:0},{name:"entrySelector",type:"USHORT",value:0},{name:"rangeShift",type:"USHORT",value:0}]);t.tables=e,t.numTables=e.length;var n=Math.pow(2,r(t.numTables));t.searchRange=16*n,t.entrySelector=r(n),t.rangeShift=16*t.numTables-t.searchRange;for(var a=[],s=[],u=t.sizeOf()+o().sizeOf()*t.numTables;u%4!==0;)u+=1,s.push({name:"padding",type:"BYTE",value:0});for(var l=0;l<e.length;l+=1){var f=e[l];c.argument(4===f.tableName.length,"Table name"+f.tableName+" is invalid.");var p=f.sizeOf(),d=o(f.tableName,i(f.encode()),u,p);for(a.push({name:d.tag+" Table Record",type:"TABLE",value:d}),s.push({name:f.tableName+" table",type:"TABLE",value:f}),u+=p,c.argument(!isNaN(u),"Something went wrong calculating the offset.");u%4!==0;)u+=1,s.push({name:"padding",type:"BYTE",value:0})}return a.sort(function(e,t){return e.value.tag>t.value.tag?1:-1}),t.fields=t.fields.concat(a),t.fields=t.fields.concat(s),t}function s(e,t,n){for(var r=0;r<t.length;r+=1){var i=e.charToGlyphIndex(t[r]);if(i>0){var o=e.glyphs.get(i);return o.getMetrics()}}return n}function u(e){for(var t=0,n=0;n<e.length;n+=1)t+=e[n];return t/e.length}function l(e){for(var t,n=[],r=[],o=[],l=[],c=[],h=[],C=[],w=0,x=0,E=0,S=0,k=0,T=0;T<e.glyphs.length;T+=1){var O=e.glyphs.get(T),R=0|O.unicode;(t>R||null===t)&&(t=R),R>w&&(w=R);var A=b.getUnicodeRange(R);if(32>A)x|=1<<A;else if(64>A)E|=1<<A-32;else if(96>A)S|=1<<A-64;else{if(!(123>A))throw new Error("Unicode ranges bits > 123 are reserved for internal usage");k|=1<<A-96}if(".notdef"!==O.name){var M=O.getMetrics();n.push(M.xMin),r.push(M.yMin),o.push(M.xMax),l.push(M.yMax),h.push(M.leftSideBearing),C.push(M.rightSideBearing),c.push(O.advanceWidth)}}var N={xMin:Math.min.apply(null,n),yMin:Math.min.apply(null,r),xMax:Math.max.apply(null,o),yMax:Math.max.apply(null,l),advanceWidthMax:Math.max.apply(null,c),advanceWidthAvg:u(c),minLeftSideBearing:Math.min.apply(null,h),maxLeftSideBearing:Math.max.apply(null,h),minRightSideBearing:Math.min.apply(null,C)};N.ascender=void 0!==e.ascender?e.ascender:N.yMax,N.descender=void 0!==e.descender?e.descender:N.yMin;var I=d.make({unitsPerEm:e.unitsPerEm,xMin:N.xMin,yMin:N.yMin,xMax:N.xMax,yMax:N.yMax}),P=v.make({ascender:N.ascender,descender:N.descender,advanceWidthMax:N.advanceWidthMax,minLeftSideBearing:N.minLeftSideBearing,minRightSideBearing:N.minRightSideBearing,xMaxExtent:N.maxLeftSideBearing+(N.xMax-N.xMin),numberOfHMetrics:e.glyphs.length}),D=g.make(e.glyphs.length),L=b.make({xAvgCharWidth:Math.round(N.advanceWidthAvg),usWeightClass:500,usWidthClass:5,usFirstCharIndex:t,usLastCharIndex:w,ulUnicodeRange1:x,ulUnicodeRange2:E,ulUnicodeRange3:S,ulUnicodeRange4:k,sTypoAscender:N.ascender,sTypoDescender:N.descender,sTypoLineGap:0,usWinAscent:N.ascender,usWinDescent:-N.descender,sxHeight:s(e,"xyvw",{yMax:0}).yMax,sCapHeight:s(e,"HIKLEFJMNTZBDPRAGOQSUVWXY",N).yMax,usBreakChar:e.hasChar(" ")?32:0}),U=m.make(e.glyphs),F=f.make(e.glyphs),j=e.familyName+" "+e.styleName,B=e.familyName.replace(/\s/g,"")+"-"+e.styleName,H=y.make({copyright:e.copyright,fontFamily:e.familyName,fontSubfamily:e.styleName,uniqueID:e.manufacturer+":"+j,fullName:j,version:e.version,postScriptName:B,trademark:e.trademark,manufacturer:e.manufacturer,designer:e.designer,description:e.description,manufacturerURL:e.manufacturerURL,designerURL:e.designerURL,license:e.license,licenseURL:e.licenseURL,preferredFamily:e.familyName,preferredSubfamily:e.styleName}),z=_.make(),W=p.make(e.glyphs,{version:e.version,fullName:j,familyName:e.familyName,weightName:e.styleName,postScriptName:B,unitsPerEm:e.unitsPerEm}),q=[I,P,D,L,H,F,z,W,U],V=a(q),G=V.encode(),K=i(G),X=V.fields,Y=!1;for(T=0;T<X.length;T+=1)if("head table"===X[T].name){X[T].value.checkSumAdjustment=2981146554-K,Y=!0;break}if(!Y)throw new Error("Could not find head table with checkSum to adjust.");return V}var c=n(17),h=n(14),f=n(92),p=n(91),d=n(93),v=n(94),m=n(95),g=n(96),y=n(97),b=n(98),_=n(99);t.computeCheckSum=i,t.make=a,t.fontToTable=l},function(e,t,n){var r,i,o;r=n(265),i=n(184),o=n(2),e.exports=r.createClass({displayName:"SpinKit",propTypes:{spinnerName:r.PropTypes.string.isRequired,noFadeIn:r.PropTypes.bool,overrideSpinnerClassName:r.PropTypes.string},getDefaultProps:function(){return{spinnerName:"three-bounce",noFadeIn:!1,overrideSpinnerClassName:""}},render:function(){var e,t;switch(e={"fade-in":!this.props.noFadeIn,spinner:""===this.props.overrideSpinnerClassName},e[this.props.overrideSpinnerClassName]=this.props.overrideSpinnerClassName,t=i(e),this.props.className&&(t=t+" "+this.props.className),this.props.noFadeIn||n(272),this.props.spinnerName){case"three-bounce":return n(275),r.createElement("div",r.__spread({},this.props,{className:"three-bounce "+t}),r.createElement("div",{className:"bounce1"}),r.createElement("div",{className:"bounce2"}),r.createElement("div",{className:"bounce3"}));case"double-bounce":return n(271),r.createElement("div",r.__spread({},this.props,{className:"double-bounce "+t}),r.createElement("div",{className:"double-bounce1"}),r.createElement("div",{className:"double-bounce2"}));case"rotating-plane":return n(274),r.createElement("div",r.__spread({},this.props,{className:t}),r.createElement("div",{className:"rotating-plane"}));case"wave":return n(277),r.createElement("div",r.__spread({},this.props,{className:"wave "+t}),r.createElement("div",{className:"rect1"}),r.createElement("div",{className:"rect2"}),r.createElement("div",{className:"rect3"}),r.createElement("div",{className:"rect4"}),r.createElement("div",{className:"rect5"}));case"wandering-cubes":return n(276),r.createElement("div",r.__spread({},this.props,{className:"wandering-cubes "+t}),r.createElement("div",{className:"cube1"}),r.createElement("div",{className:"cube2"}));case"pulse":return n(273),r.createElement("div",r.__spread({},this.props,{className:t}),r.createElement("div",{className:"pulse"}));case"chasing-dots":return n(268),r.createElement("div",r.__spread({},this.props,{className:t}),r.createElement("div",{className:"chasing-dots"},r.createElement("div",{className:"dot1"}),r.createElement("div",{className:"dot2"})));case"circle":return n(269),r.createElement("div",r.__spread({},this.props,{className:"circle-wrapper "+t}),r.createElement("div",{className:"circle1 circle"}),r.createElement("div",{className:"circle2 circle"}),r.createElement("div",{className:"circle3 circle"}),r.createElement("div",{className:"circle4 circle"}),r.createElement("div",{className:"circle5 circle"}),r.createElement("div",{className:"circle6 circle"}),r.createElement("div",{className:"circle7 circle"}),r.createElement("div",{className:"circle8 circle"}),r.createElement("div",{className:"circle9 circle"}),r.createElement("div",{className:"circle10 circle"}),r.createElement("div",{className:"circle11 circle"}),r.createElement("div",{className:"circle12 circle"}));case"cube-grid":return n(270),r.createElement("div",r.__spread({},this.props,{className:"cube-grid "+t}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}),r.createElement("div",{className:"cube"}));case"wordpress":return n(278),r.createElement("div",r.__spread({},this.props,{className:t}),r.createElement("div",{className:"wordpress"},r.createElement("span",{className:"inner-circle"})))}}})},function(e,t,n){/*!
    Copyright (c) 2015 Jed Watson.
    Licensed under the MIT License (MIT), see
    http://jedwatson.github.io/classnames
  */
function r(){for(var e,t="",n=0;n<arguments.length;n++)if(e=arguments[n])if("string"==typeof e||"number"==typeof e)t+=" "+e;else if("[object Array]"===Object.prototype.toString.call(e))t+=" "+r.apply(null,e);else if("object"==typeof e)for(var i in e)e.hasOwnProperty(i)&&e[i]&&(t+=" "+i);return t.substr(1)}var i,o;"undefined"!=typeof e&&e.exports&&(e.exports=r),i=[],o=function(){return r}.apply(t,i),!(void 0!==o&&(e.exports=o))},function(e,t,n){"use strict";function r(){var e=window.opera;return"object"==typeof e&&"function"==typeof e.version&&parseInt(e.version(),10)<=12}function i(e){return(e.ctrlKey||e.altKey||e.metaKey)&&!(e.ctrlKey&&e.altKey)}function o(e){switch(e){case O.topCompositionStart:return R.compositionStart;case O.topCompositionEnd:return R.compositionEnd;case O.topCompositionUpdate:return R.compositionUpdate}}function a(e,t){return e===O.topKeyDown&&t.keyCode===C}function s(e,t){switch(e){case O.topKeyUp:return-1!==_.indexOf(t.keyCode);case O.topKeyDown:return t.keyCode!==C;case O.topKeyPress:case O.topMouseDown:case O.topBlur:return!0;default:return!1}}function u(e){var t=e.detail;return"object"==typeof t&&"data"in t?t.data:null}function l(e,t,n,r){var i,l;if(w?i=o(e):M?s(e,r)&&(i=R.compositionEnd):a(e,r)&&(i=R.compositionStart),!i)return null;S&&(M||i!==R.compositionStart?i===R.compositionEnd&&M&&(l=M.getData()):M=m.getPooled(t));var c=g.getPooled(i,n,r);if(l)c.data=l;else{var h=u(r);null!==h&&(c.data=h)}return d.accumulateTwoPhaseDispatches(c),c}function c(e,t){switch(e){case O.topCompositionEnd:return u(t);case O.topKeyPress:var n=t.which;return n!==k?null:(A=!0,T);case O.topTextInput:var r=t.data;return r===T&&A?null:r;default:return null}}function h(e,t){if(M){if(e===O.topCompositionEnd||s(e,t)){var n=M.getData();return m.release(M),M=null,n}return null}switch(e){case O.topPaste:return null;case O.topKeyPress:return t.which&&!i(t)?String.fromCharCode(t.which):null;case O.topCompositionEnd:return S?null:t.data;default:return null}}function f(e,t,n,r){var i;if(i=E?c(e,r):h(e,r),!i)return null;var o=y.getPooled(R.beforeInput,n,r);return o.data=i,d.accumulateTwoPhaseDispatches(o),o}var p=n(11),d=n(44),v=n(6),m=n(194),g=n(236),y=n(239),b=n(16),_=[9,13,27,32],C=229,w=v.canUseDOM&&"CompositionEvent"in window,x=null;v.canUseDOM&&"documentMode"in document&&(x=document.documentMode);var E=v.canUseDOM&&"TextEvent"in window&&!x&&!r(),S=v.canUseDOM&&(!w||x&&x>8&&11>=x),k=32,T=String.fromCharCode(k),O=p.topLevelTypes,R={beforeInput:{phasedRegistrationNames:{bubbled:b({onBeforeInput:null}),captured:b({onBeforeInputCapture:null})},dependencies:[O.topCompositionEnd,O.topKeyPress,O.topTextInput,O.topPaste]},compositionEnd:{phasedRegistrationNames:{bubbled:b({onCompositionEnd:null}),captured:b({onCompositionEndCapture:null})},dependencies:[O.topBlur,O.topCompositionEnd,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionStart:{phasedRegistrationNames:{bubbled:b({onCompositionStart:null}),captured:b({onCompositionStartCapture:null})},dependencies:[O.topBlur,O.topCompositionStart,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]},compositionUpdate:{phasedRegistrationNames:{bubbled:b({onCompositionUpdate:null}),captured:b({onCompositionUpdateCapture:null})},dependencies:[O.topBlur,O.topCompositionUpdate,O.topKeyDown,O.topKeyPress,O.topKeyUp,O.topMouseDown]}},A=!1,M=null,N={eventTypes:R,extractEvents:function(e,t,n,r){return[l(e,t,n,r),f(e,t,n,r)]}};e.exports=N},function(e,t,n){var r=n(1),i={addClass:function(e,t){return r(!/\s/.test(t)),t&&(e.classList?e.classList.add(t):i.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return r(!/\s/.test(t)),t&&(e.classList?e.classList.remove(t):i.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?i.addClass:i.removeClass)(e,t)},hasClass:function(e,t){return r(!/\s/.test(t)),e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1}};e.exports=i},function(e,t,n){"use strict";function r(e){return"SELECT"===e.nodeName||"INPUT"===e.nodeName&&"file"===e.type}function i(e){var t=x.getPooled(O.change,A,e);_.accumulateTwoPhaseDispatches(t),w.batchedUpdates(o,t)}function o(e){b.enqueueEvents(e),b.processEventQueue()}function a(e,t){R=e,A=t,R.attachEvent("onchange",i)}function s(){R&&(R.detachEvent("onchange",i),R=null,A=null)}function u(e,t,n){return e===T.topChange?n:void 0}function l(e,t,n){e===T.topFocus?(s(),a(t,n)):e===T.topBlur&&s()}function c(e,t){R=e,A=t,M=e.value,N=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(R,"value",D),R.attachEvent("onpropertychange",f)}function h(){R&&(delete R.value,R.detachEvent("onpropertychange",f),R=null,A=null,M=null,N=null)}function f(e){if("value"===e.propertyName){var t=e.srcElement.value;t!==M&&(M=t,i(e))}}function p(e,t,n){return e===T.topInput?n:void 0}function d(e,t,n){e===T.topFocus?(h(),c(t,n)):e===T.topBlur&&h()}function v(e,t,n){return e!==T.topSelectionChange&&e!==T.topKeyUp&&e!==T.topKeyDown||!R||R.value===M?void 0:(M=R.value,A)}function m(e){return"INPUT"===e.nodeName&&("checkbox"===e.type||"radio"===e.type)}function g(e,t,n){return e===T.topClick?n:void 0}var y=n(11),b=n(43),_=n(44),C=n(6),w=n(13),x=n(26),E=n(82),S=n(124),k=n(16),T=y.topLevelTypes,O={change:{phasedRegistrationNames:{bubbled:k({onChange:null}),captured:k({onChangeCapture:null})},dependencies:[T.topBlur,T.topChange,T.topClick,T.topFocus,T.topInput,T.topKeyDown,T.topKeyUp,T.topSelectionChange]}},R=null,A=null,M=null,N=null,I=!1;C.canUseDOM&&(I=E("change")&&(!("documentMode"in document)||document.documentMode>8));var P=!1;C.canUseDOM&&(P=E("input")&&(!("documentMode"in document)||document.documentMode>9));var D={get:function(){return N.get.call(this)},set:function(e){M=""+e,N.set.call(this,e)}},L={eventTypes:O,extractEvents:function(e,t,n,i){var o,a;if(r(t)?I?o=u:a=l:S(t)?P?o=p:(o=v,a=d):m(t)&&(o=g),o){var s=o(e,t,n);if(s){var c=x.getPooled(O.change,s,i);return _.accumulateTwoPhaseDispatches(c),c}}a&&a(e,t,n)}};e.exports=L},function(e,t){"use strict";var n=0,r={createReactRootIndex:function(){return n++}};e.exports=r},function(e,t,n){"use strict";function r(e,t,n){e.insertBefore(t,e.childNodes[n]||null)}var i=n(190),o=n(108),a=n(262),s=n(1),u={dangerouslyReplaceNodeWithMarkup:i.dangerouslyReplaceNodeWithMarkup,updateTextContent:a,processUpdates:function(e,t){for(var n,u=null,l=null,c=0;c<e.length;c++)if(n=e[c],n.type===o.MOVE_EXISTING||n.type===o.REMOVE_NODE){var h=n.fromIndex,f=n.parentNode.childNodes[h],p=n.parentID;s(f),u=u||{},u[p]=u[p]||[],u[p][h]=f,l=l||[],l.push(f)}var d=i.dangerouslyRenderMarkup(t);if(l)for(var v=0;v<l.length;v++)l[v].parentNode.removeChild(l[v]);for(var m=0;m<e.length;m++)switch(n=e[m],n.type){case o.INSERT_MARKUP:r(n.parentNode,d[n.markupIndex],n.toIndex);break;case o.MOVE_EXISTING:r(n.parentNode,u[n.parentID][n.fromIndex],n.toIndex);break;case o.TEXT_CONTENT:a(n.parentNode,n.textContent);break;case o.REMOVE_NODE:}}};e.exports=u},function(e,t,n){"use strict";function r(e){return e.substring(1,e.indexOf(" "))}var i=n(6),o=n(248),a=n(15),s=n(121),u=n(1),l=/^(<[^ \/>]+)/,c="data-danger-index",h={dangerouslyRenderMarkup:function(e){u(i.canUseDOM);for(var t,n={},h=0;h<e.length;h++)u(e[h]),t=r(e[h]),t=s(t)?t:"*",n[t]=n[t]||[],n[t][h]=e[h];var f=[],p=0;for(t in n)if(n.hasOwnProperty(t)){var d,v=n[t];for(d in v)if(v.hasOwnProperty(d)){var m=v[d];v[d]=m.replace(l,"$1 "+c+'="'+d+'" ')}for(var g=o(v.join(""),a),y=0;y<g.length;++y){var b=g[y];b.hasAttribute&&b.hasAttribute(c)&&(d=+b.getAttribute(c),b.removeAttribute(c),u(!f.hasOwnProperty(d)),f[d]=b,p+=1)}}return u(p===f.length),u(f.length===e.length),f},dangerouslyReplaceNodeWithMarkup:function(e,t){u(i.canUseDOM),u(t),u("html"!==e.tagName.toLowerCase());var n=o(t,a)[0];e.parentNode.replaceChild(n,e)}};e.exports=h},function(e,t,n){"use strict";var r=n(16),i=[r({ResponderEventPlugin:null}),r({SimpleEventPlugin:null}),r({TapEventPlugin:null}),r({EnterLeaveEventPlugin:null}),r({ChangeEventPlugin:null}),r({SelectEventPlugin:null}),r({BeforeInputEventPlugin:null}),r({AnalyticsEventPlugin:null}),r({MobileSafariClickEventPlugin:null})];e.exports=i},function(e,t,n){"use strict";var r=n(11),i=n(44),o=n(53),a=n(21),s=n(16),u=r.topLevelTypes,l=a.getFirstReactDOM,c={mouseEnter:{registrationName:s({onMouseEnter:null}),dependencies:[u.topMouseOut,u.topMouseOver]},mouseLeave:{registrationName:s({onMouseLeave:null}),dependencies:[u.topMouseOut,u.topMouseOver]}},h=[null,null],f={eventTypes:c,extractEvents:function(e,t,n,r){if(e===u.topMouseOver&&(r.relatedTarget||r.fromElement))return null;if(e!==u.topMouseOut&&e!==u.topMouseOver)return null;var s;if(t.window===t)s=t;else{var f=t.ownerDocument;s=f?f.defaultView||f.parentWindow:window}var p,d;if(e===u.topMouseOut?(p=t,d=l(r.relatedTarget||r.toElement)||s):(p=s,d=t),p===d)return null;var v=p?a.getID(p):"",m=d?a.getID(d):"",g=o.getPooled(c.mouseLeave,v,r);g.type="mouseleave",g.target=p,g.relatedTarget=d;var y=o.getPooled(c.mouseEnter,m,r);return y.type="mouseenter",y.target=d,y.relatedTarget=p,i.accumulateEnterLeaveDispatches(g,y,v,m),h[0]=g,h[1]=y,h}};e.exports=f},function(e,t,n){var r=n(15),i={listen:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!1),{remove:function(){e.removeEventListener(t,n,!1)}}):e.attachEvent?(e.attachEvent("on"+t,n),{remove:function(){e.detachEvent("on"+t,n)}}):void 0},capture:function(e,t,n){return e.addEventListener?(e.addEventListener(t,n,!0),{remove:function(){e.removeEventListener(t,n,!0)}}):{remove:r}},registerDefault:function(){}};e.exports=i},function(e,t,n){"use strict";function r(e){this._root=e,this._startText=this.getText(),this._fallbackText=null}var i=n(18),o=n(2),a=n(122);o(r.prototype,{getText:function(){return"value"in this._root?this._root.value:this._root[a()]},getData:function(){if(this._fallbackText)return this._fallbackText;var e,t,n=this._startText,r=n.length,i=this.getText(),o=i.length;for(e=0;r>e&&n[e]===i[e];e++);var a=r-e;for(t=1;a>=t&&n[r-t]===i[o-t];t++);var s=t>1?1-t:void 0;return this._fallbackText=i.slice(e,s),this._fallbackText}}),i.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";var r,i=n(30),o=n(6),a=i.injection.MUST_USE_ATTRIBUTE,s=i.injection.MUST_USE_PROPERTY,u=i.injection.HAS_BOOLEAN_VALUE,l=i.injection.HAS_SIDE_EFFECTS,c=i.injection.HAS_NUMERIC_VALUE,h=i.injection.HAS_POSITIVE_NUMERIC_VALUE,f=i.injection.HAS_OVERLOADED_BOOLEAN_VALUE;if(o.canUseDOM){var p=document.implementation;r=p&&p.hasFeature&&p.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")}var d={isCustomAttribute:RegExp.prototype.test.bind(/^(data|aria)-[a-z_][a-z\d_.\-]*$/),Properties:{accept:null,acceptCharset:null,accessKey:null,action:null,allowFullScreen:a|u,allowTransparency:a,alt:null,async:u,autoComplete:null,autoPlay:u,cellPadding:null,cellSpacing:null,charSet:a,checked:s|u,classID:a,className:r?a:s,cols:a|h,colSpan:null,content:null,contentEditable:null,contextMenu:a,controls:s|u,coords:null,crossOrigin:null,data:null,dateTime:a,defer:u,dir:null,disabled:a|u,download:f,draggable:null,encType:null,form:a,formAction:a,formEncType:a,formMethod:a,formNoValidate:u,formTarget:a,frameBorder:a,headers:null,height:a,hidden:a|u,high:null,href:null,hrefLang:null,htmlFor:null,httpEquiv:null,icon:null,id:s,label:null,lang:null,list:a,loop:s|u,low:null,manifest:a,marginHeight:null,marginWidth:null,max:null,maxLength:a,media:a,mediaGroup:null,method:null,min:null,multiple:s|u,muted:s|u,name:null,noValidate:u,open:u,optimum:null,pattern:null,placeholder:null,poster:null,preload:null,radioGroup:null,readOnly:s|u,rel:null,required:u,role:a,rows:a|h,rowSpan:null,sandbox:null,scope:null,scoped:u,scrolling:null,seamless:a|u,selected:s|u,shape:null,size:a|h,sizes:a,span:h,spellCheck:null,src:null,srcDoc:s,srcSet:a,start:c,step:null,style:null,tabIndex:null,target:null,title:null,type:null,useMap:null,value:s|l,width:a,wmode:a,autoCapitalize:null,autoCorrect:null,itemProp:a,itemScope:a|u,itemType:a,itemID:a,itemRef:a,property:null,unselectable:a},DOMAttributeNames:{acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},DOMPropertyNames:{autoCapitalize:"autocapitalize",autoComplete:"autocomplete",autoCorrect:"autocorrect",autoFocus:"autofocus",autoPlay:"autoplay",encType:"encoding",hrefLang:"hreflang",radioGroup:"radiogroup",spellCheck:"spellcheck",srcDoc:"srcdoc",srcSet:"srcset"}};e.exports=d},function(e,t,n){"use strict";var r=n(219),i=n(227),o={linkState:function(e){return new r(this.state[e],i.createStateKeySetter(this,e))}};e.exports=o},function(e,t,n){"use strict";var r=n(11),i=n(15),o=r.topLevelTypes,a={eventTypes:null,extractEvents:function(e,t,n,r){if(e===o.topTouchStart){var a=r.target;a&&!a.onclick&&(a.onclick=i)}}};e.exports=a},function(e,t,n){"use strict";var r=n(31),i=n(2),o=r.createFactory(n(112)),a=r.createFactory(n(199)),s=r.createClass({displayName:"ReactCSSTransitionGroup",propTypes:{transitionName:r.PropTypes.string.isRequired,transitionAppear:r.PropTypes.bool,transitionEnter:r.PropTypes.bool,transitionLeave:r.PropTypes.bool},getDefaultProps:function(){return{transitionAppear:!1,transitionEnter:!0,transitionLeave:!0}},_wrapChild:function(e){return a({name:this.props.transitionName,appear:this.props.transitionAppear,enter:this.props.transitionEnter,leave:this.props.transitionLeave},e)},render:function(){return o(i({},this.props,{childFactory:this._wrapChild}))}});e.exports=s},function(e,t,n){"use strict";var r=n(31),i=n(186),o=n(229),a=n(125),s=(n(3),17),u=r.createClass({displayName:"ReactCSSTransitionGroupChild",transition:function(e,t){var n=this.getDOMNode(),r=this.props.name+"-"+e,a=r+"-active",s=function(e){e&&e.target!==n||(i.removeClass(n,r),i.removeClass(n,a),o.removeEndEventListener(n,s),t&&t())};o.addEndEventListener(n,s),i.addClass(n,r),this.queueClass(a)},queueClass:function(e){this.classNameQueue.push(e),this.timeout||(this.timeout=setTimeout(this.flushClassNameQueue,s))},flushClassNameQueue:function(){this.isMounted()&&this.classNameQueue.forEach(i.addClass.bind(i,this.getDOMNode())),this.classNameQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameQueue=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout)},componentWillAppear:function(e){this.props.appear?this.transition("appear",e):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e):e()},render:function(){return a(this.props.children)}});e.exports=u},function(e,t,n){"use strict";var r=n(36),i=n(251),o=n(81),a=n(84),s={instantiateChildren:function(e,t,n){var r=i(e);for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=o(s,null);r[a]=u}return r},updateChildren:function(e,t,n,s){var u=i(t);if(!u&&!e)return null;var l;for(l in u)if(u.hasOwnProperty(l)){var c=e&&e[l],h=c&&c._currentElement,f=u[l];if(a(h,f))r.receiveComponent(c,f,n,s),u[l]=c;else{c&&r.unmountComponent(c,l);var p=o(f,null);u[l]=p}}for(l in e)!e.hasOwnProperty(l)||u&&u.hasOwnProperty(l)||r.unmountComponent(e[l]);return u},unmountChildren:function(e){for(var t in e){var n=e[t];r.unmountComponent(n)}}};e.exports=s},function(e,t,n){"use strict";var r=n(126),i={shouldComponentUpdate:function(e,t){return!r(this.props,e)||!r(this.state,t)}};e.exports=i},function(e,t,n){"use strict";function r(e){var t=e._currentElement._owner||null;if(t){var n=t.getName();if(n)return" Check the render method of `"+n+"`."}return""}var i=n(69),o=n(70),a=n(20),s=n(4),u=(n(45),n(35)),l=n(73),c=n(51),h=n(25),f=n(74),p=(n(52),n(36)),d=n(13),v=n(2),m=n(55),g=n(1),y=n(84),b=(n(3),1),_={construct:function(e){this._currentElement=e,this._rootNodeID=null,this._instance=null,this._pendingElement=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._renderedComponent=null,this._context=null,this._mountOrder=0,this._isTopLevel=!1,this._pendingCallbacks=null},mountComponent:function(e,t,n){this._context=n,this._mountOrder=b++,this._rootNodeID=e;var r=this._processProps(this._currentElement.props),i=this._processContext(this._currentElement._context),o=c.getComponentClassForElement(this._currentElement),a=new o(r,i);a.props=r,a.context=i,a.refs=m,this._instance=a,u.set(a,this);var s=a.state;void 0===s&&(a.state=s=null),g("object"==typeof s&&!Array.isArray(s)),this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1;var h,f,d=l.currentlyMountingInstance;l.currentlyMountingInstance=this;try{a.componentWillMount&&(a.componentWillMount(),this._pendingStateQueue&&(a.state=this._processPendingState(a.props,a.context))),h=this._getValidatedChildContext(n),f=this._renderValidatedComponent(h)}finally{l.currentlyMountingInstance=d}this._renderedComponent=this._instantiateReactComponent(f,this._currentElement.type);var v=p.mountComponent(this._renderedComponent,e,t,this._mergeChildContext(n,h));return a.componentDidMount&&t.getReactMountReady().enqueue(a.componentDidMount,a),v},unmountComponent:function(){var e=this._instance;if(e.componentWillUnmount){var t=l.currentlyUnmountingInstance;l.currentlyUnmountingInstance=this;try{e.componentWillUnmount()}finally{l.currentlyUnmountingInstance=t}}p.unmountComponent(this._renderedComponent),this._renderedComponent=null,this._pendingStateQueue=null,this._pendingReplaceState=!1,this._pendingForceUpdate=!1,this._pendingCallbacks=null,this._pendingElement=null,this._context=null,this._rootNodeID=null,u.remove(e)},_setPropsInternal:function(e,t){var n=this._pendingElement||this._currentElement;this._pendingElement=s.cloneAndReplaceProps(n,v({},n.props,e)),d.enqueueUpdate(this,t)},_maskContext:function(e){var t=null;if("string"==typeof this._currentElement.type)return m;var n=this._currentElement.type.contextTypes;if(!n)return m;t={};for(var r in n)t[r]=e[r];return t},_processContext:function(e){var t=this._maskContext(e);return t},_getValidatedChildContext:function(e){var t=this._instance,n=t.getChildContext&&t.getChildContext();if(n){g("object"==typeof t.constructor.childContextTypes);for(var r in n)g(r in t.constructor.childContextTypes);return n}return null},_mergeChildContext:function(e,t){return t?v({},e,t):e},_processProps:function(e){return e},_checkPropTypes:function(e,t,n){var i=this.getName();for(var o in e)if(e.hasOwnProperty(o)){var a;try{g("function"==typeof e[o]),a=e[o](t,o,i,n)}catch(s){a=s}if(a instanceof Error){r(this);n===f.prop}}},receiveComponent:function(e,t,n){var r=this._currentElement,i=this._context;this._pendingElement=null,this.updateComponent(t,r,e,i,n)},performUpdateIfNecessary:function(e){null!=this._pendingElement&&p.receiveComponent(this,this._pendingElement||this._currentElement,e,this._context),(null!==this._pendingStateQueue||this._pendingForceUpdate)&&this.updateComponent(e,this._currentElement,this._currentElement,this._context,this._context)},_warnIfContextsDiffer:function(e,t){e=this._maskContext(e),t=this._maskContext(t);for(var n=Object.keys(t).sort(),r=(this.getName()||"ReactCompositeComponent",0);r<n.length;r++){n[r]}},updateComponent:function(e,t,n,r,i){var o=this._instance,a=o.context,s=o.props;t!==n&&(a=this._processContext(n._context),s=this._processProps(n.props),o.componentWillReceiveProps&&o.componentWillReceiveProps(s,a));var u=this._processPendingState(s,a),l=this._pendingForceUpdate||!o.shouldComponentUpdate||o.shouldComponentUpdate(s,u,a);l?(this._pendingForceUpdate=!1,this._performComponentUpdate(n,s,u,a,e,i)):(this._currentElement=n,this._context=i,o.props=s,o.state=u,o.context=a)},_processPendingState:function(e,t){var n=this._instance,r=this._pendingStateQueue,i=this._pendingReplaceState;if(this._pendingReplaceState=!1,this._pendingStateQueue=null,!r)return n.state;if(i&&1===r.length)return r[0];for(var o=v({},i?r[0]:n.state),a=i?1:0;a<r.length;a++){var s=r[a];v(o,"function"==typeof s?s.call(n,o,e,t):s)}return o},_performComponentUpdate:function(e,t,n,r,i,o){var a=this._instance,s=a.props,u=a.state,l=a.context;a.componentWillUpdate&&a.componentWillUpdate(t,n,r),this._currentElement=e,this._context=o,a.props=t,a.state=n,a.context=r,this._updateRenderedComponent(i,o),a.componentDidUpdate&&i.getReactMountReady().enqueue(a.componentDidUpdate.bind(a,s,u,l),a)},_updateRenderedComponent:function(e,t){var n=this._renderedComponent,r=n._currentElement,i=this._getValidatedChildContext(),o=this._renderValidatedComponent(i);if(y(r,o))p.receiveComponent(n,o,e,this._mergeChildContext(t,i));else{var a=this._rootNodeID,s=n._rootNodeID;p.unmountComponent(n),this._renderedComponent=this._instantiateReactComponent(o,this._currentElement.type);var u=p.mountComponent(this._renderedComponent,a,e,this._mergeChildContext(t,i));this._replaceNodeWithMarkupByID(s,u)}},_replaceNodeWithMarkupByID:function(e,t){i.replaceNodeWithMarkupByID(e,t)},_renderValidatedComponentWithoutOwnerOrContext:function(){var e=this._instance,t=e.render();return t},_renderValidatedComponent:function(e){var t,n=o.current;o.current=this._mergeChildContext(this._currentElement._context,e),a.current=this;try{t=this._renderValidatedComponentWithoutOwnerOrContext()}finally{o.current=n,a.current=null}return g(null===t||t===!1||s.isValidElement(t)),t},attachRef:function(e,t){var n=this.getPublicInstance(),r=n.refs===m?n.refs={}:n.refs;r[e]=t.getPublicInstance()},detachRef:function(e){var t=this.getPublicInstance().refs;delete t[e]},getName:function(){var e=this._currentElement.type,t=this._instance&&this._instance.constructor;return e.displayName||t&&t.displayName||e.name||t&&t.name||null},getPublicInstance:function(){return this._instance},_instantiateReactComponent:null};h.measureMethods(_,"ReactCompositeComponent",{mountComponent:"mountComponent",updateComponent:"updateComponent",_renderValidatedComponent:"_renderValidatedComponent"});var C={Mixin:_};e.exports=C},function(e,t,n){"use strict";function r(e){return i.createFactory(e)}var i=n(4),o=(n(45),n(259)),a=o({a:"a",abbr:"abbr",address:"address",area:"area",article:"article",aside:"aside",audio:"audio",b:"b",base:"base",bdi:"bdi",bdo:"bdo",big:"big",blockquote:"blockquote",body:"body",br:"br",button:"button",canvas:"canvas",caption:"caption",cite:"cite",code:"code",col:"col",colgroup:"colgroup",data:"data",datalist:"datalist",dd:"dd",del:"del",details:"details",dfn:"dfn",dialog:"dialog",div:"div",dl:"dl",dt:"dt",em:"em",embed:"embed",fieldset:"fieldset",figcaption:"figcaption",figure:"figure",footer:"footer",form:"form",h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",head:"head",header:"header",hr:"hr",html:"html",i:"i",iframe:"iframe",img:"img",input:"input",ins:"ins",kbd:"kbd",keygen:"keygen",label:"label",legend:"legend",li:"li",link:"link",main:"main",map:"map",mark:"mark",menu:"menu",menuitem:"menuitem",meta:"meta",meter:"meter",nav:"nav",noscript:"noscript",object:"object",ol:"ol",optgroup:"optgroup",option:"option",output:"output",p:"p",param:"param",picture:"picture",pre:"pre",progress:"progress",q:"q",rp:"rp",rt:"rt",ruby:"ruby",s:"s",samp:"samp",script:"script",section:"section",select:"select",small:"small",source:"source",span:"span",strong:"strong",style:"style",sub:"sub",summary:"summary",sup:"sup",table:"table",tbody:"tbody",td:"td",textarea:"textarea",tfoot:"tfoot",th:"th",thead:"thead",time:"time",title:"title",tr:"tr",track:"track",u:"u",ul:"ul","var":"var",video:"video",wbr:"wbr",circle:"circle",clipPath:"clipPath",defs:"defs",ellipse:"ellipse",g:"g",line:"line",linearGradient:"linearGradient",mask:"mask",path:"path",pattern:"pattern",polygon:"polygon",polyline:"polyline",radialGradient:"radialGradient",rect:"rect",stop:"stop",svg:"svg",text:"text",tspan:"tspan"},r);e.exports=a},function(e,t,n){"use strict";var r=n(50),i=n(19),o=n(12),a=n(4),s=n(47),u=a.createFactory("button"),l=s({onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0}),c=o.createClass({displayName:"ReactDOMButton",tagName:"BUTTON",mixins:[r,i],render:function(){var e={};for(var t in this.props)!this.props.hasOwnProperty(t)||this.props.disabled&&l[t]||(e[t]=this.props[t]);return u(e,this.props.children)}});e.exports=c},function(e,t,n){"use strict";var r=n(11),i=n(67),o=n(19),a=n(12),s=n(4),u=s.createFactory("form"),l=a.createClass({displayName:"ReactDOMForm",tagName:"FORM",mixins:[o,i],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topReset,"reset"),this.trapBubbledEvent(r.topLevelTypes.topSubmit,"submit")}});e.exports=l},function(e,t,n){"use strict";var r=n(11),i=n(67),o=n(19),a=n(12),s=n(4),u=s.createFactory("iframe"),l=a.createClass({displayName:"ReactDOMIframe",tagName:"IFRAME",mixins:[o,i],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load")}});e.exports=l},function(e,t,n){"use strict";var r=n(11),i=n(67),o=n(19),a=n(12),s=n(4),u=s.createFactory("img"),l=a.createClass({displayName:"ReactDOMImg",tagName:"IMG",mixins:[o,i],render:function(){return u(this.props)},componentDidMount:function(){this.trapBubbledEvent(r.topLevelTypes.topLoad,"load"),this.trapBubbledEvent(r.topLevelTypes.topError,"error")}});e.exports=l},function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var i=n(50),o=n(42),a=n(66),s=n(19),u=n(12),l=n(4),c=n(21),h=n(13),f=n(2),p=n(1),d=l.createFactory("input"),v={},m=u.createClass({displayName:"ReactDOMInput",tagName:"INPUT",mixins:[i,a.Mixin,s],getInitialState:function(){var e=this.props.defaultValue;return{initialChecked:this.props.defaultChecked||!1,initialValue:null!=e?e:null}},render:function(){var e=f({},this.props);e.defaultChecked=null,e.defaultValue=null;var t=a.getValue(this);e.value=null!=t?t:this.state.initialValue;var n=a.getChecked(this);return e.checked=null!=n?n:this.state.initialChecked,e.onChange=this._handleChange,d(e,this.props.children)},componentDidMount:function(){var e=c.getID(this.getDOMNode());v[e]=this},componentWillUnmount:function(){var e=this.getDOMNode(),t=c.getID(e);delete v[t]},componentDidUpdate:function(e,t,n){var r=this.getDOMNode();null!=this.props.checked&&o.setValueForProperty(r,"checked",this.props.checked||!1);var i=a.getValue(this);null!=i&&o.setValueForProperty(r,"value",""+i)},_handleChange:function(e){var t,n=a.getOnChange(this);n&&(t=n.call(this,e)),h.asap(r,this);var i=this.props.name;if("radio"===this.props.type&&null!=i){for(var o=this.getDOMNode(),s=o;s.parentNode;)s=s.parentNode;for(var u=s.querySelectorAll("input[name="+JSON.stringify(""+i)+'][type="radio"]'),l=0,f=u.length;f>l;l++){var d=u[l];if(d!==o&&d.form===o.form){var m=c.getID(d);p(m);var g=v[m];p(g),h.asap(r,g)}}}return t}});e.exports=m},function(e,t,n){"use strict";var r=n(19),i=n(12),o=n(4),a=(n(3),o.createFactory("option")),s=i.createClass({displayName:"ReactDOMOption",tagName:"OPTION",mixins:[r],componentWillMount:function(){},render:function(){return a(this.props,this.props.children)}});e.exports=s},function(e,t,n){"use strict";function r(){if(this._pendingUpdate){this._pendingUpdate=!1;var e=s.getValue(this);null!=e&&this.isMounted()&&o(this,e)}}function i(e,t,n){if(null==e[t])return null;if(e.multiple){if(!Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be an array if `multiple` is true.")}else if(Array.isArray(e[t]))return new Error("The `"+t+"` prop supplied to <select> must be a scalar value if `multiple` is false.")}function o(e,t){var n,r,i,o=e.getDOMNode().options;if(e.props.multiple){for(n={},r=0,i=t.length;i>r;r++)n[""+t[r]]=!0;for(r=0,i=o.length;i>r;r++){var a=n.hasOwnProperty(o[r].value);o[r].selected!==a&&(o[r].selected=a)}}else{for(n=""+t,r=0,i=o.length;i>r;r++)if(o[r].value===n)return void(o[r].selected=!0);o.length&&(o[0].selected=!0)}}var a=n(50),s=n(66),u=n(19),l=n(12),c=n(4),h=n(13),f=n(2),p=c.createFactory("select"),d=l.createClass({displayName:"ReactDOMSelect",tagName:"SELECT",mixins:[a,s.Mixin,u],propTypes:{defaultValue:i,value:i},render:function(){var e=f({},this.props);return e.onChange=this._handleChange,e.value=null,p(e,this.props.children)},componentWillMount:function(){this._pendingUpdate=!1},componentDidMount:function(){var e=s.getValue(this);null!=e?o(this,e):null!=this.props.defaultValue&&o(this,this.props.defaultValue)},componentDidUpdate:function(e){var t=s.getValue(this);null!=t?(this._pendingUpdate=!1,o(this,t)):!e.multiple!=!this.props.multiple&&(null!=this.props.defaultValue?o(this,this.props.defaultValue):o(this,this.props.multiple?[]:""))},_handleChange:function(e){var t,n=s.getOnChange(this);return n&&(t=n.call(this,e)),this._pendingUpdate=!0,h.asap(r,this),t}});e.exports=d},function(e,t,n){"use strict";function r(e,t,n,r){return e===n&&t===r}function i(e){var t=document.selection,n=t.createRange(),r=n.text.length,i=n.duplicate();i.moveToElementText(e),i.setEndPoint("EndToStart",n);var o=i.text.length,a=o+r;return{start:o,end:a}}function o(e){var t=window.getSelection&&window.getSelection();if(!t||0===t.rangeCount)return null;var n=t.anchorNode,i=t.anchorOffset,o=t.focusNode,a=t.focusOffset,s=t.getRangeAt(0),u=r(t.anchorNode,t.anchorOffset,t.focusNode,t.focusOffset),l=u?0:s.toString().length,c=s.cloneRange();c.selectNodeContents(e),c.setEnd(s.startContainer,s.startOffset);var h=r(c.startContainer,c.startOffset,c.endContainer,c.endOffset),f=h?0:c.toString().length,p=f+l,d=document.createRange();d.setStart(n,i),d.setEnd(o,a);var v=d.collapsed;return{start:v?p:f,end:v?f:p}}function a(e,t){var n,r,i=document.selection.createRange().duplicate();"undefined"==typeof t.end?(n=t.start,r=n):t.start>t.end?(n=t.end,r=t.start):(n=t.start,r=t.end),i.moveToElementText(e),i.moveStart("character",n),i.setEndPoint("EndToStart",i),i.moveEnd("character",r-n),i.select()}function s(e,t){if(window.getSelection){var n=window.getSelection(),r=e[c()].length,i=Math.min(t.start,r),o="undefined"==typeof t.end?i:Math.min(t.end,r);if(!n.extend&&i>o){var a=o;o=i,i=a}var s=l(e,i),u=l(e,o);if(s&&u){var h=document.createRange();h.setStart(s.node,s.offset),n.removeAllRanges(),i>o?(n.addRange(h),n.extend(u.node,u.offset)):(h.setEnd(u.node,u.offset),n.addRange(h))}}}var u=n(6),l=n(252),c=n(122),h=u.canUseDOM&&"selection"in document&&!("getSelection"in window),f={getOffsets:h?i:o,setOffsets:h?a:s};e.exports=f},function(e,t,n){"use strict";function r(){this.isMounted()&&this.forceUpdate()}var i=n(50),o=n(42),a=n(66),s=n(19),u=n(12),l=n(4),c=n(13),h=n(2),f=n(1),p=(n(3),l.createFactory("textarea")),d=u.createClass({displayName:"ReactDOMTextarea",tagName:"TEXTAREA",mixins:[i,a.Mixin,s],getInitialState:function(){var e=this.props.defaultValue,t=this.props.children;null!=t&&(f(null==e),Array.isArray(t)&&(f(t.length<=1),t=t[0]),e=""+t),null==e&&(e="");var n=a.getValue(this);return{initialValue:""+(null!=n?n:e)}},render:function(){var e=h({},this.props);return f(null==e.dangerouslySetInnerHTML),e.defaultValue=null,e.value=null,e.onChange=this._handleChange,p(e,this.state.initialValue)},componentDidUpdate:function(e,t,n){var r=a.getValue(this);if(null!=r){var i=this.getDOMNode();o.setValueForProperty(i,"value",""+r)}},_handleChange:function(e){var t,n=a.getOnChange(this);return n&&(t=n.call(this,e)),c.asap(r,this),t}});e.exports=d},function(e,t,n){"use strict";function r(){this.reinitializeTransaction()}var i=n(13),o=n(54),a=n(2),s=n(15),u={initialize:s,close:function(){f.isBatchingUpdates=!1}},l={initialize:s,close:i.flushBatchedUpdates.bind(i)},c=[l,u];a(r.prototype,o.Mixin,{getTransactionWrappers:function(){return c}});var h=new r,f={isBatchingUpdates:!1,batchedUpdates:function(e,t,n,r,i){var o=f.isBatchingUpdates;f.isBatchingUpdates=!0,o?e(t,n,r,i):h.perform(e,null,t,n,r,i)}};e.exports=f},function(e,t,n){"use strict";function r(e){return d.createClass({tagName:e.toUpperCase(),render:function(){return new O(e,null,null,null,null,this.props)}})}function i(){A.EventEmitter.injectReactEventListener(R),
A.EventPluginHub.injectEventPluginOrder(u),A.EventPluginHub.injectInstanceHandle(M),A.EventPluginHub.injectMount(N),A.EventPluginHub.injectEventPluginsByName({SimpleEventPlugin:L,EnterLeaveEventPlugin:l,ChangeEventPlugin:a,MobileSafariClickEventPlugin:f,SelectEventPlugin:P,BeforeInputEventPlugin:o}),A.NativeComponent.injectGenericComponentClass(g),A.NativeComponent.injectTextComponentClass(T),A.NativeComponent.injectAutoWrapper(r),A.Class.injectMixin(p),A.NativeComponent.injectComponentClasses({button:y,form:b,iframe:w,img:_,input:x,option:E,select:S,textarea:k,html:F("html"),head:F("head"),body:F("body")}),A.DOMProperty.injectDOMPropertyConfig(h),A.DOMProperty.injectDOMPropertyConfig(U),A.EmptyComponent.injectEmptyComponent("noscript"),A.Updates.injectReconcileTransaction(I),A.Updates.injectBatchingStrategy(m),A.RootIndex.injectCreateReactRootIndex(c.canUseDOM?s.createReactRootIndex:D.createReactRootIndex),A.Component.injectEnvironment(v),A.DOMComponent.injectIDOperations(C)}var o=n(185),a=n(187),s=n(188),u=n(191),l=n(192),c=n(6),h=n(195),f=n(197),p=n(19),d=n(12),v=n(68),m=n(213),g=n(71),y=n(204),b=n(205),_=n(207),C=n(104),w=n(206),x=n(208),E=n(209),S=n(210),k=n(212),T=n(105),O=n(4),R=n(217),A=n(218),M=n(34),N=n(21),I=n(223),P=n(232),D=n(233),L=n(234),U=n(231),F=n(247);e.exports={inject:i}},function(e,t){"use strict";var n={guard:function(e,t){return e}};e.exports=n},function(e,t,n){"use strict";function r(e){i.enqueueEvents(e),i.processEventQueue()}var i=n(43),o={handleTopLevel:function(e,t,n,o){var a=i.extractEvents(e,t,n,o);r(a)}};e.exports=o},function(e,t,n){"use strict";function r(e){var t=h.getID(e),n=c.getReactRootIDFromNodeID(t),r=h.findReactContainerForID(n),i=h.getFirstReactDOM(r);return i}function i(e,t){this.topLevelType=e,this.nativeEvent=t,this.ancestors=[]}function o(e){for(var t=h.getFirstReactDOM(d(e.nativeEvent))||window,n=t;n;)e.ancestors.push(n),n=r(n);for(var i=0,o=e.ancestors.length;o>i;i++){t=e.ancestors[i];var a=h.getID(t)||"";m._handleTopLevel(e.topLevelType,t,a,e.nativeEvent)}}function a(e){var t=v(window);e(t)}var s=n(193),u=n(6),l=n(18),c=n(34),h=n(21),f=n(13),p=n(2),d=n(80),v=n(254);p(i.prototype,{destructor:function(){this.topLevelType=null,this.nativeEvent=null,this.ancestors.length=0}}),l.addPoolingTo(i,l.twoArgumentPooler);var m={_enabled:!0,_handleTopLevel:null,WINDOW_HANDLE:u.canUseDOM?window:null,setHandleTopLevel:function(e){m._handleTopLevel=e},setEnabled:function(e){m._enabled=!!e},isEnabled:function(){return m._enabled},trapBubbledEvent:function(e,t,n){var r=n;return r?s.listen(r,t,m.dispatchEvent.bind(null,e)):null},trapCapturedEvent:function(e,t,n){var r=n;return r?s.capture(r,t,m.dispatchEvent.bind(null,e)):null},monitorScrollValue:function(e){var t=a.bind(null,e);s.listen(window,"scroll",t)},dispatchEvent:function(e,t){if(m._enabled){var n=i.getPooled(e,t);try{f.batchedUpdates(o,n)}finally{i.release(n)}}}};e.exports=m},function(e,t,n){"use strict";var r=n(30),i=n(43),o=n(69),a=n(12),s=n(72),u=n(32),l=n(51),c=n(71),h=n(25),f=n(111),p=n(13),d={Component:o.injection,Class:a.injection,DOMComponent:c.injection,DOMProperty:r.injection,EmptyComponent:s.injection,EventPluginHub:i.injection,EventEmitter:u.injection,NativeComponent:l.injection,Perf:h.injection,RootIndex:f.injection,Updates:p.injection};e.exports=d},function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function i(e){var t={value:"undefined"==typeof e?o.PropTypes.any.isRequired:e.isRequired,requestChange:o.PropTypes.func.isRequired};return o.PropTypes.shape(t)}var o=n(31);r.PropTypes={link:i},e.exports=r},function(e,t,n){"use strict";function r(e,t,n){d.push({parentID:e,parentNode:null,type:c.INSERT_MARKUP,markupIndex:v.push(t)-1,textContent:null,fromIndex:null,toIndex:n})}function i(e,t,n){d.push({parentID:e,parentNode:null,type:c.MOVE_EXISTING,markupIndex:null,textContent:null,fromIndex:t,toIndex:n})}function o(e,t){d.push({parentID:e,parentNode:null,type:c.REMOVE_NODE,markupIndex:null,textContent:null,fromIndex:t,toIndex:null})}function a(e,t){d.push({parentID:e,parentNode:null,type:c.TEXT_CONTENT,markupIndex:null,textContent:t,fromIndex:null,toIndex:null})}function s(){d.length&&(l.processChildrenUpdates(d,v),u())}function u(){d.length=0,v.length=0}var l=n(69),c=n(108),h=n(36),f=n(200),p=0,d=[],v=[],m={Mixin:{mountChildren:function(e,t,n){var r=f.instantiateChildren(e,t,n);this._renderedChildren=r;var i=[],o=0;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a],u=this._rootNodeID+a,l=h.mountComponent(s,u,t,n);s._mountIndex=o,i.push(l),o++}return i},updateTextContent:function(e){p++;var t=!0;try{var n=this._renderedChildren;f.unmountChildren(n);for(var r in n)n.hasOwnProperty(r)&&this._unmountChildByName(n[r],r);this.setTextContent(e),t=!1}finally{p--,p||(t?u():s())}},updateChildren:function(e,t,n){p++;var r=!0;try{this._updateChildren(e,t,n),r=!1}finally{p--,p||(r?u():s())}},_updateChildren:function(e,t,n){var r=this._renderedChildren,i=f.updateChildren(r,e,t,n);if(this._renderedChildren=i,i||r){var o,a=0,s=0;for(o in i)if(i.hasOwnProperty(o)){var u=r&&r[o],l=i[o];u===l?(this.moveChild(u,s,a),a=Math.max(u._mountIndex,a),u._mountIndex=s):(u&&(a=Math.max(u._mountIndex,a),this._unmountChildByName(u,o)),this._mountChildByNameAtIndex(l,o,s,t,n)),s++}for(o in r)!r.hasOwnProperty(o)||i&&i.hasOwnProperty(o)||this._unmountChildByName(r[o],o)}},unmountChildren:function(){var e=this._renderedChildren;f.unmountChildren(e),this._renderedChildren=null},moveChild:function(e,t,n){e._mountIndex<n&&i(this._rootNodeID,e._mountIndex,t)},createChild:function(e,t){r(this._rootNodeID,t,e._mountIndex)},removeChild:function(e){o(this._rootNodeID,e._mountIndex)},setTextContent:function(e){a(this._rootNodeID,e)},_mountChildByNameAtIndex:function(e,t,n,r,i){var o=this._rootNodeID+t,a=h.mountComponent(e,o,r,i);e._mountIndex=n,this.createChild(e,a)},_unmountChildByName:function(e,t){this.removeChild(e),e._mountIndex=null}}};e.exports=m},function(e,t,n){"use strict";var r=n(1),i={isValidOwner:function(e){return!(!e||"function"!=typeof e.attachRef||"function"!=typeof e.detachRef)},addComponentAsRefTo:function(e,t,n){r(i.isValidOwner(n)),n.attachRef(t,e)},removeComponentAsRefFrom:function(e,t,n){r(i.isValidOwner(n)),n.getPublicInstance().refs[t]===e.getPublicInstance()&&n.detachRef(t)}};e.exports=i},function(e,t,n){"use strict";function r(e){return function(t,n,r){t.hasOwnProperty(n)?t[n]=e(t[n],r):t[n]=r}}function i(e,t){for(var n in t)if(t.hasOwnProperty(n)){var r=l[n];r&&l.hasOwnProperty(n)?r(e,n,t[n]):e.hasOwnProperty(n)||(e[n]=t[n])}return e}var o=n(2),a=n(15),s=n(258),u=r(function(e,t){return o({},t,e)}),l={children:a,className:r(s),style:u},c={mergeProps:function(e,t){return i(o({},e),t)}};e.exports=c},function(e,t,n){"use strict";function r(){this.reinitializeTransaction(),this.renderToStaticMarkup=!1,this.reactMountReady=i.getPooled(null),this.putListenerQueue=u.getPooled()}var i=n(64),o=n(18),a=n(32),s=n(106),u=n(110),l=n(54),c=n(2),h={initialize:s.getSelectionInformation,close:s.restoreSelection},f={initialize:function(){var e=a.isEnabled();return a.setEnabled(!1),e},close:function(e){a.setEnabled(e)}},p={initialize:function(){this.reactMountReady.reset()},close:function(){this.reactMountReady.notifyAll()}},d={initialize:function(){this.putListenerQueue.reset()},close:function(){this.putListenerQueue.putListeners()}},v=[d,h,f,p],m={getTransactionWrappers:function(){return v},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){i.release(this.reactMountReady),this.reactMountReady=null,u.release(this.putListenerQueue),this.putListenerQueue=null}};c(r.prototype,l.Mixin,m),o.addPoolingTo(r),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){"function"==typeof e?e(t.getPublicInstance()):o.addComponentAsRefTo(t,e,n)}function i(e,t,n){"function"==typeof e?e(null):o.removeComponentAsRefFrom(t,e,n)}var o=n(221),a={};a.attachRefs=function(e,t){var n=t.ref;null!=n&&r(n,e,t._owner)},a.shouldUpdateRefs=function(e,t){return t._owner!==e._owner||t.ref!==e.ref},a.detachRefs=function(e,t){var n=t.ref;null!=n&&i(n,e,t._owner)},e.exports=a},function(e,t,n){"use strict";function r(e){h(o.isValidElement(e));var t;try{var n=a.createReactRootID();return t=u.getPooled(!1),t.perform(function(){var r=c(e,null),i=r.mountComponent(n,t,l);return s.addChecksumToMarkup(i)},null)}finally{u.release(t)}}function i(e){h(o.isValidElement(e));var t;try{var n=a.createReactRootID();return t=u.getPooled(!0),t.perform(function(){var r=c(e,null);return r.mountComponent(n,t,l)},null)}finally{u.release(t)}}var o=n(4),a=n(34),s=n(107),u=n(226),l=n(55),c=n(81),h=n(1);e.exports={renderToString:r,renderToStaticMarkup:i}},function(e,t,n){"use strict";function r(e){this.reinitializeTransaction(),this.renderToStaticMarkup=e,this.reactMountReady=o.getPooled(null),this.putListenerQueue=a.getPooled()}var i=n(18),o=n(64),a=n(110),s=n(54),u=n(2),l=n(15),c={initialize:function(){this.reactMountReady.reset()},close:l},h={initialize:function(){this.putListenerQueue.reset()},close:l},f=[h,c],p={getTransactionWrappers:function(){return f},getReactMountReady:function(){return this.reactMountReady},getPutListenerQueue:function(){return this.putListenerQueue},destructor:function(){o.release(this.reactMountReady),this.reactMountReady=null,a.release(this.putListenerQueue),this.putListenerQueue=null}};u(r.prototype,s.Mixin,p),i.addPoolingTo(r),e.exports=r},function(e,t){"use strict";function n(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var r={createStateSetter:function(e,t){return function(n,r,i,o,a,s){var u=t.call(e,n,r,i,o,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var r=e.__keySetters||(e.__keySetters={});return r[t]||(r[t]=n(e,t))}};r.Mixin={createStateSetter:function(e){return r.createStateSetter(this,e)},createStateKeySetter:function(e){return r.createStateKeySetter(this,e)}},e.exports=r},function(e,t,n){"use strict";var r=n(102),i=n(33),o={getChildMapping:function(e){return e?i.extract(r.map(e,function(e){return e})):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var l=r[u][a];s[r[u][a]]=n(l)}s[u]=n(u)}for(a=0;a<i.length;a++)s[i[a]]=n(i[a]);return s}};e.exports=o},function(e,t,n){"use strict";function r(){var e=document.createElement("div"),t=e.style;"AnimationEvent"in window||delete s.animationend.animation,"TransitionEvent"in window||delete s.transitionend.transition;for(var n in s){var r=s[n];for(var i in r)if(i in t){u.push(r[i]);break}}}function i(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}var a=n(6),s={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},u=[];a.canUseDOM&&r();var l={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){i(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){o(e,n,t)})}};e.exports=l},function(e,t,n){"use strict";var r=n(196),i=n(31),o=n(201),a=n(198),s=n(33),u=n(112),l=n(13),c=n(249),h=n(114),f=n(264);i.addons={CSSTransitionGroup:a,LinkedStateMixin:r,PureRenderMixin:o,TransitionGroup:u,batchedUpdates:l.batchedUpdates,classSet:c,cloneWithProps:h,createFragment:s.create,update:f},e.exports=i},function(e,t,n){"use strict";var r=n(30),i=r.injection.MUST_USE_ATTRIBUTE,o={Properties:{clipPath:i,cx:i,cy:i,d:i,dx:i,dy:i,fill:i,fillOpacity:i,fontFamily:i,fontSize:i,fx:i,fy:i,gradientTransform:i,gradientUnits:i,markerEnd:i,markerMid:i,markerStart:i,offset:i,opacity:i,patternContentUnits:i,patternUnits:i,points:i,preserveAspectRatio:i,r:i,rx:i,ry:i,spreadMethod:i,stopColor:i,stopOpacity:i,stroke:i,strokeDasharray:i,strokeLinecap:i,strokeOpacity:i,strokeWidth:i,textAnchor:i,transform:i,version:i,viewBox:i,x1:i,x2:i,x:i,y1:i,y2:i,y:i},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox"}};e.exports=o},function(e,t,n){"use strict";function r(e){if("selectionStart"in e&&s.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){var t=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t.focusOffset}}if(document.selection){var n=document.selection.createRange();return{parentElement:n.parentElement(),text:n.text,top:n.boundingTop,left:n.boundingLeft}}}function i(e){if(y||null==v||v!==l())return null;var t=r(v);if(!g||!f(g,t)){g=t;var n=u.getPooled(d.select,m,e);return n.type="select",n.target=v,a.accumulateTwoPhaseDispatches(n),n}}var o=n(11),a=n(44),s=n(106),u=n(26),l=n(118),c=n(124),h=n(16),f=n(126),p=o.topLevelTypes,d={select:{phasedRegistrationNames:{bubbled:h({onSelect:null}),captured:h({onSelectCapture:null})},dependencies:[p.topBlur,p.topContextMenu,p.topFocus,p.topKeyDown,p.topMouseDown,p.topMouseUp,p.topSelectionChange]}},v=null,m=null,g=null,y=!1,b={eventTypes:d,extractEvents:function(e,t,n,r){switch(e){case p.topFocus:(c(t)||"true"===t.contentEditable)&&(v=t,m=n,g=null);break;case p.topBlur:v=null,m=null,g=null;break;case p.topMouseDown:y=!0;break;case p.topContextMenu:case p.topMouseUp:return y=!1,i(r);case p.topSelectionChange:case p.topKeyDown:case p.topKeyUp:return i(r)}}};e.exports=b},function(e,t){"use strict";var n=Math.pow(2,53),r={createReactRootIndex:function(){return Math.ceil(Math.random()*n)}};e.exports=r},function(e,t,n){"use strict";var r=n(11),i=n(65),o=n(44),a=n(235),s=n(26),u=n(238),l=n(240),c=n(53),h=n(237),f=n(241),p=n(46),d=n(242),v=n(78),m=n(1),g=n(16),y=(n(3),r.topLevelTypes),b={blur:{phasedRegistrationNames:{bubbled:g({onBlur:!0}),captured:g({onBlurCapture:!0})}},click:{phasedRegistrationNames:{bubbled:g({onClick:!0}),captured:g({onClickCapture:!0})}},contextMenu:{phasedRegistrationNames:{bubbled:g({onContextMenu:!0}),captured:g({onContextMenuCapture:!0})}},copy:{phasedRegistrationNames:{bubbled:g({onCopy:!0}),captured:g({onCopyCapture:!0})}},cut:{phasedRegistrationNames:{bubbled:g({onCut:!0}),captured:g({onCutCapture:!0})}},doubleClick:{phasedRegistrationNames:{bubbled:g({onDoubleClick:!0}),captured:g({onDoubleClickCapture:!0})}},drag:{phasedRegistrationNames:{bubbled:g({onDrag:!0}),captured:g({onDragCapture:!0})}},dragEnd:{phasedRegistrationNames:{bubbled:g({onDragEnd:!0}),captured:g({onDragEndCapture:!0})}},dragEnter:{phasedRegistrationNames:{bubbled:g({onDragEnter:!0}),captured:g({onDragEnterCapture:!0})}},dragExit:{phasedRegistrationNames:{bubbled:g({onDragExit:!0}),captured:g({onDragExitCapture:!0})}},dragLeave:{phasedRegistrationNames:{bubbled:g({onDragLeave:!0}),captured:g({onDragLeaveCapture:!0})}},dragOver:{phasedRegistrationNames:{bubbled:g({onDragOver:!0}),captured:g({onDragOverCapture:!0})}},dragStart:{phasedRegistrationNames:{bubbled:g({onDragStart:!0}),captured:g({onDragStartCapture:!0})}},drop:{phasedRegistrationNames:{bubbled:g({onDrop:!0}),captured:g({onDropCapture:!0})}},focus:{phasedRegistrationNames:{bubbled:g({onFocus:!0}),captured:g({onFocusCapture:!0})}},input:{phasedRegistrationNames:{bubbled:g({onInput:!0}),captured:g({onInputCapture:!0})}},keyDown:{phasedRegistrationNames:{bubbled:g({onKeyDown:!0}),captured:g({onKeyDownCapture:!0})}},keyPress:{phasedRegistrationNames:{bubbled:g({onKeyPress:!0}),captured:g({onKeyPressCapture:!0})}},keyUp:{phasedRegistrationNames:{bubbled:g({onKeyUp:!0}),captured:g({onKeyUpCapture:!0})}},load:{phasedRegistrationNames:{bubbled:g({onLoad:!0}),captured:g({onLoadCapture:!0})}},error:{phasedRegistrationNames:{bubbled:g({onError:!0}),captured:g({onErrorCapture:!0})}},mouseDown:{phasedRegistrationNames:{bubbled:g({onMouseDown:!0}),captured:g({onMouseDownCapture:!0})}},mouseMove:{phasedRegistrationNames:{bubbled:g({onMouseMove:!0}),captured:g({onMouseMoveCapture:!0})}},mouseOut:{phasedRegistrationNames:{bubbled:g({onMouseOut:!0}),captured:g({onMouseOutCapture:!0})}},mouseOver:{phasedRegistrationNames:{bubbled:g({onMouseOver:!0}),captured:g({onMouseOverCapture:!0})}},mouseUp:{phasedRegistrationNames:{bubbled:g({onMouseUp:!0}),captured:g({onMouseUpCapture:!0})}},paste:{phasedRegistrationNames:{bubbled:g({onPaste:!0}),captured:g({onPasteCapture:!0})}},reset:{phasedRegistrationNames:{bubbled:g({onReset:!0}),captured:g({onResetCapture:!0})}},scroll:{phasedRegistrationNames:{bubbled:g({onScroll:!0}),captured:g({onScrollCapture:!0})}},submit:{phasedRegistrationNames:{bubbled:g({onSubmit:!0}),captured:g({onSubmitCapture:!0})}},touchCancel:{phasedRegistrationNames:{bubbled:g({onTouchCancel:!0}),captured:g({onTouchCancelCapture:!0})}},touchEnd:{phasedRegistrationNames:{bubbled:g({onTouchEnd:!0}),captured:g({onTouchEndCapture:!0})}},touchMove:{phasedRegistrationNames:{bubbled:g({onTouchMove:!0}),captured:g({onTouchMoveCapture:!0})}},touchStart:{phasedRegistrationNames:{bubbled:g({onTouchStart:!0}),captured:g({onTouchStartCapture:!0})}},wheel:{phasedRegistrationNames:{bubbled:g({onWheel:!0}),captured:g({onWheelCapture:!0})}}},_={topBlur:b.blur,topClick:b.click,topContextMenu:b.contextMenu,topCopy:b.copy,topCut:b.cut,topDoubleClick:b.doubleClick,topDrag:b.drag,topDragEnd:b.dragEnd,topDragEnter:b.dragEnter,topDragExit:b.dragExit,topDragLeave:b.dragLeave,topDragOver:b.dragOver,topDragStart:b.dragStart,topDrop:b.drop,topError:b.error,topFocus:b.focus,topInput:b.input,topKeyDown:b.keyDown,topKeyPress:b.keyPress,topKeyUp:b.keyUp,topLoad:b.load,topMouseDown:b.mouseDown,topMouseMove:b.mouseMove,topMouseOut:b.mouseOut,topMouseOver:b.mouseOver,topMouseUp:b.mouseUp,topPaste:b.paste,topReset:b.reset,topScroll:b.scroll,topSubmit:b.submit,topTouchCancel:b.touchCancel,topTouchEnd:b.touchEnd,topTouchMove:b.touchMove,topTouchStart:b.touchStart,topWheel:b.wheel};for(var C in _)_[C].dependencies=[C];var w={eventTypes:b,executeDispatch:function(e,t,n){var r=i.executeDispatch(e,t,n);r===!1&&(e.stopPropagation(),e.preventDefault())},extractEvents:function(e,t,n,r){var i=_[e];if(!i)return null;var g;switch(e){case y.topInput:case y.topLoad:case y.topError:case y.topReset:case y.topSubmit:g=s;break;case y.topKeyPress:if(0===v(r))return null;case y.topKeyDown:case y.topKeyUp:g=l;break;case y.topBlur:case y.topFocus:g=u;break;case y.topClick:if(2===r.button)return null;case y.topContextMenu:case y.topDoubleClick:case y.topMouseDown:case y.topMouseMove:case y.topMouseOut:case y.topMouseOver:case y.topMouseUp:g=c;break;case y.topDrag:case y.topDragEnd:case y.topDragEnter:case y.topDragExit:case y.topDragLeave:case y.topDragOver:case y.topDragStart:case y.topDrop:g=h;break;case y.topTouchCancel:case y.topTouchEnd:case y.topTouchMove:case y.topTouchStart:g=f;break;case y.topScroll:g=p;break;case y.topWheel:g=d;break;case y.topCopy:case y.topCut:case y.topPaste:g=a}m(g);var b=g.getPooled(i,n,r);return o.accumulateTwoPhaseDispatches(b),b}};e.exports=w},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(26),o={clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(26),o={data:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(53),o={dataTransfer:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(46),o={relatedTarget:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(26),o={data:null};i.augmentClass(r,o),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(46),o=n(78),a=n(119),s=n(79),u={key:a,location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:s,charCode:function(e){return"keypress"===e.type?o(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?o(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}};i.augmentClass(r,u),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(46),o=n(79),a={touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:o};i.augmentClass(r,a),e.exports=r},function(e,t,n){"use strict";function r(e,t,n){i.call(this,e,t,n)}var i=n(53),o={deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null};i.augmentClass(r,o),e.exports=r},function(e,t){"use strict";function n(e){for(var t=1,n=0,i=0;i<e.length;i++)t=(t+e.charCodeAt(i))%r,n=(n+t)%r;return t|n<<16}var r=65521;e.exports=n},function(e,t){function n(e){return e.replace(r,function(e,t){return t.toUpperCase()})}var r=/-(.)/g;e.exports=n},function(e,t,n){"use strict";function r(e){return i(e.replace(o,"ms-"))}var i=n(244),o=/^-ms-/;e.exports=r},function(e,t,n){function r(e){return!!e&&("object"==typeof e||"function"==typeof e)&&"length"in e&&!("setInterval"in e)&&"number"!=typeof e.nodeType&&(Array.isArray(e)||"callee"in e||"item"in e)}function i(e){return r(e)?Array.isArray(e)?e.slice():o(e):[e]}var o=n(263);e.exports=i},function(e,t,n){"use strict";function r(e){var t=o.createFactory(e),n=i.createClass({tagName:e.toUpperCase(),displayName:"ReactFullPageComponent"+e,componentWillUnmount:function(){a(!1)},render:function(){return t(this.props)}});return n}var i=n(12),o=n(4),a=n(1);e.exports=r},function(e,t,n){function r(e){var t=e.match(c);return t&&t[1].toLowerCase()}function i(e,t){var n=l;u(!!l);var i=r(e),o=i&&s(i);if(o){n.innerHTML=o[1]+e+o[2];for(var c=o[0];c--;)n=n.lastChild}else n.innerHTML=e;var h=n.getElementsByTagName("script");h.length&&(u(t),a(h).forEach(t));for(var f=a(n.childNodes);n.lastChild;)n.removeChild(n.lastChild);return f}var o=n(6),a=n(246),s=n(121),u=n(1),l=o.canUseDOM?document.createElement("div"):null,c=/^\s*<(\w+)/;e.exports=i},function(e,t,n){"use strict";function r(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).join(" "):Array.prototype.join.call(arguments," ")}n(3);e.exports=r},function(e,t,n){"use strict";function r(e,t){var n=null==t||"boolean"==typeof t||""===t;if(n)return"";var r=isNaN(t);return r||0===t||o.hasOwnProperty(e)&&o[e]?""+t:("string"==typeof t&&(t=t.trim()),t+"px")}var i=n(100),o=i.isUnitlessNumber;e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r=e,i=!r.hasOwnProperty(n);i&&null!=t&&(r[n]=t)}function i(e){if(null==e)return e;var t={};return o(e,r,t),t}var o=n(127);n(3);e.exports=i},function(e,t){"use strict";function n(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function r(e){for(;e;){if(e.nextSibling)return e.nextSibling;e=e.parentNode}}function i(e,t){for(var i=n(e),o=0,a=0;i;){if(3===i.nodeType){if(a=o+i.textContent.length,t>=o&&a>=t)return{node:i,offset:t-o};o=a}i=n(r(i))}}e.exports=i},function(e,t){"use strict";function n(e){return e?e.nodeType===r?e.documentElement:e.firstChild:null}var r=9;e.exports=n},function(e,t){"use strict";function n(e){return e===window?{x:window.pageXOffset||document.documentElement.scrollLeft,y:window.pageYOffset||document.documentElement.scrollTop}:{x:e.scrollLeft,y:e.scrollTop}}e.exports=n},function(e,t){function n(e){return e.replace(r,"-$1").toLowerCase()}var r=/([A-Z])/g;e.exports=n},function(e,t,n){"use strict";function r(e){return i(e).replace(o,"-ms-")}var i=n(255),o=/^ms-/;e.exports=r},function(e,t,n){function r(e){return i(e)&&3==e.nodeType}var i=n(123);e.exports=r},function(e,t){"use strict";function n(e){e||(e="");var t,n=arguments.length;if(n>1)for(var r=1;n>r;r++)t=arguments[r],t&&(e=(e?e+" ":"")+t);return e}e.exports=n},function(e,t){"use strict";function n(e,t,n){if(!e)return null;var i={};for(var o in e)r.call(e,o)&&(i[o]=t.call(n,e[o],o,e));return i}var r=Object.prototype.hasOwnProperty;e.exports=n},function(e,t){"use strict";function n(e){var t={};return function(n){return t.hasOwnProperty(n)||(t[n]=e.call(this,n)),t[n]}}e.exports=n},function(e,t,n){"use strict";function r(e){return'"'+i(e)+'"'}var i=n(56);e.exports=r},function(e,t,n){"use strict";var r=n(6),i=n(56),o=n(83),a=function(e,t){e.textContent=t};r.canUseDOM&&("textContent"in document.documentElement||(a=function(e,t){o(e,i(t))})),e.exports=a},function(e,t,n){function r(e){var t=e.length;if(i(!Array.isArray(e)&&("object"==typeof e||"function"==typeof e)),i("number"==typeof t),i(0===t||t-1 in e),e.hasOwnProperty)try{return Array.prototype.slice.call(e)}catch(n){}for(var r=Array(t),o=0;t>o;o++)r[o]=e[o];return r}var i=n(1);e.exports=r},function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?a(new e.constructor,e):e}function i(e,t,n){u(Array.isArray(e));var r=t[n];u(Array.isArray(r))}function o(e,t){if(u("object"==typeof t),l.call(t,p))return u(1===Object.keys(t).length),t[p];var n=r(e);if(l.call(t,d)){var s=t[d];u(s&&"object"==typeof s),u(n&&"object"==typeof n),a(n,t[d])}l.call(t,c)&&(i(e,t,c),t[c].forEach(function(e){n.push(e)})),l.call(t,h)&&(i(e,t,h),t[h].forEach(function(e){n.unshift(e)})),l.call(t,f)&&(u(Array.isArray(e)),u(Array.isArray(t[f])),t[f].forEach(function(e){u(Array.isArray(e)),n.splice.apply(n,e)})),l.call(t,v)&&(u("function"==typeof t[v]),n=t[v](n));for(var m in t)g.hasOwnProperty(m)&&g[m]||(n[m]=o(e[m],t[m]));return n}var a=n(2),s=n(16),u=n(1),l={}.hasOwnProperty,c=s({$push:null}),h=s({$unshift:null}),f=s({$splice:null}),p=s({$set:null}),d=s({$merge:null}),v=s({$apply:null}),m=[c,h,f,p,d,v],g={};m.forEach(function(e){g[e]=!0}),e.exports=o},function(e,t,n){e.exports=n(31)},function(e,t,n){var r=n(160);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(161);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(162);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(163);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(164);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(165);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(166);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(167);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(168);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(169);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(170);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(171);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(172);"string"==typeof r&&(r=[[e.id,r,""]]);n(9)(r,{});r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";function r(e,t,n){this.objects={},this.sources={},this.storage=n,this._host=this,this._lstn=[","],this._id=e,this._server=/^swarm~.*/.test(e);var r=i.clockType||u;if(this.clock=new r(this._id,t||0),this.storage&&(this.sources[this._id]=this.storage,this.storage._host=this),delete this.objects[this.spec()],!i.multihost){if(i.localhost)throw new Error("use multihost mode");i.localhost=this}}var i=n(23),o=n(10),a=n(27),s=n(130),u=n(283);r.MAX_INT=9007199254740992,r.MAX_SYNC_TIME=36e5,r.HASH_POINTS=3,r.hashDistance=function(e,t){t.constructor!==Number&&(t._id&&(t=t._id),t=i.hashfn(t)),e._id&&(e=e._id);for(var n=4294967295,o=0;o<r.HASH_POINTS;o++){var a=i.hashfn(e._id+":"+o);n=Math.min(n,a^t)}return n},e.exports=a.extend(r,{deliver:function(e,t,n){if("Host"!==e.type()){var r=e.filter("/#"),i=this.get(r);i&&i.deliver(e,t,n)}else this._super.deliver.apply(this,arguments)},init:function(e,t,n){},get:function(e,t){e&&e.constructor===Function&&e.prototype._type&&(e="/"+e.prototype._type),e=new o(e);var n=e.filter("/#");if(!n.has("/"))throw new Error("invalid spec");var r=n.has("#")&&this.objects[n];if(!r){var i=a.types[e.type()];if(!i)throw new Error("type unknown: "+e);r=new i(n,void 0,this),"function"==typeof t&&r.on(".init",t)}return r},addSource:function(e,t){var n=this.sources[t._id];n&&n.deliver(this.newEventSpec("off"),"",this),this.sources[t._id]=t,"on"===e.op()&&t.deliver(this.newEventSpec("reon"),this.clock.ms(),this);for(var r in this.objects)this.objects[r].checkUplink()},neutrals:{on:function(e,t,n){if(!t)return this.addSource(e,n);if(t.constructor===Function&&t.id?t=new o(t.id,"/"):t.constructor===String&&(t=new o(t,".")),t.has("/")&&"Host"!==t.type()){var r=new o(t);if(!r.has("#"))throw new Error("no id to listen");r=r.set(".on").set(e.version(),"!"),this.deliver(r,t,n)}else this._super._neutrals.on.call(this,e,t,n)},reon:function(e,t,n){if("Host"!==e.type())throw new Error("Host.reon(/NotHost.reon)");this.clock.adjustTime(t),this.addSource(e,n)},off:function(e,t,n){n.deliver(n.spec().add(this.time(),"!").add(".reoff"),"",this),this.removeSource(e,n)},reoff:function(e,t,n){this.removeSource(e,n)}},removeSource:function(e,t){if("Host"!==e.type())throw new Error("Host.removeSource(/NoHost)");if(this.sources[t._id]!==t)return void console.error("peer unknown",t._id);delete this.sources[t._id];for(var n in this.objects){var r=this.objects[n];r.getListenerIndex(t,!0)>-1&&(r.off(n,"",t),r.checkUplink(n))}},time:function(){var e=this.clock.issueTimestamp();return this._version=e,e},getSources:function(e){var t=this,n=[],o=4294967295,a=/^swarm~/,s=i.hashfn(e),u=null;a.test(this._id)?(o=r.hashDistance(this._id,s),u=this.storage):n.push(t.storage);for(var l in this.sources)if(a.test(l)){var c=r.hashDistance(l,s);o>c&&(u=this.sources[l],o=c)}return u&&n.push(u),n},isUplinked:function(){for(var e in this.sources)if(/^swarm~.*/.test(e))return!0;return!1},isServer:function(){return this._server},register:function(e){var t=e.spec();return t in this.objects?this.objects[t]:(this.objects[t]=e,e)},unregister:function(e){var t=e.spec();t in this.objects&&delete this.objects[t]},accept:function(e,t){new s(this,e,t)},connect:function(e,t){var n=new s(this,e,t);return n.deliver(new o("/Host#"+this._id+"!0.on"),"",this),n},disconnect:function(e){for(var t in this.sources)if((!e||t==e)&&t!==this._id){var n=this.sources[t];n.deliver(n.spec().add(this.time(),"!").add(".off"))}},close:function(e){for(var t in this.sources)t!==this._id&&this.disconnect(t);this.storage?this.storage.close(e):e&&e()},checkUplink:function(e){}})},function(e,t,n){"use strict";var r=e.exports=window.Swarm={};r.env=n(23),r.Spec=n(10),r.LongSpec=n(129),r.Syncable=n(27),r.Model=n(85),r.Set=n(132),r.Vector=n(285),r.Host=n(279),r.Pipe=n(130),r.Storage=n(86),r.SharedWebStorage=n(284),r.LevelStorage=n(281),r.WebSocketStream=n(286),r.ReactMixin=n(282),r.get=function(e){return r.env.localhost.get(e)};var i=r.env;(i.isWebKit||i.isGecko)&&(i.log=function(e,t,n,r){
!r&&n&&n._host&&(r=n._host),t&&"Spec"===t.constructor.name&&(t=t.toString()),console.log("%c%s  %c%s  %c%O  %c%s @%c%s","color: #888",i.multihost?r&&r._id:"","color: #024; font-style: italic",e.toString(),"font-style: normal; color: #042",t,"color: #88a",n&&(n.spec&&n.spec().toString()||n._id)||(n?"no id":"undef"),"color: #ccd",n&&n._host&&n._host._id)})},function(e,t,n){"use strict";function r(e,t,n){a.call(this),this.options=t,this._host=null,this.db=t.db,this._id=e,this.filename=null,this.db.constructor===Function&&(this.db=this.db(t.path||e)),this.logtails={}}var i=n(23),o=n(10),a=n(86);r.prototype=new a,e.exports=r,r.prototype.isRoot=i.isServer,r.prototype.open=function(e){this.db.open(this.options.dbOptions||{},e)},r.prototype.writeState=function(e,t,n){console.log(">STATE",t);var r=this,i=e.filter("/#");if(!r.db)return void console.warn("the storage is not open",this._host&&this._host._id);var o,a=JSON.stringify(t),s=[];if(i in this.logtails){for(;o=this.logtails[i].pop();)s.push({key:o,type:"del"});delete this.logtails[i]}console.log(">FLUSH",a,s.length),r.db.put(i,a,function(e){!e&&s.length&&r.db&&(console.log(">CLEAN",s),r.db.batch(s,function(e){e&&console.error("log trimming failed",e)})),e&&console.error("state write error",e),n(e)})},r.prototype.writeOp=function(e,t,n){var r=JSON.stringify(t),i=e.filter("/#");this.logtails[i]||(this.logtails[i]=[]),this.logtails[i].push(e),console.log(">OP",e.toString(),r),this.db.put(e.toString(),r,function(e){e&&console.error("op write error",e),n(e)})},r.prototype.readState=function(e,t){var n=this;e=e.toString(),this.db.get(e,{asBuffer:!1},function(e,r){var i=e&&/^NotFound/.test(e.message);return e&&!i?t(e):(e&&i||!r?(e=null,r={_version:"!0"}):r=JSON.parse(r),console.log("<STATE",n._host&&n._host._id,r),void t(e,r))})},r.prototype.readOps=function(e,t){var n=this,r={},i=[],a=this.db.iterator({gt:e+" ",lt:e+"0"});a.next(function s(u,l,c){if(u)t(u),a.end(function(e){});else if(l){var h=new o(l),f=h.filter("!.");r[f]=JSON.parse(c.toString()),i.push(f),a.next(s)}else console.log("<TAIL",n._host&&n._host._id,r),n.logtails[e]=e in n.logtails?n.logtails[e].concat(i):i,t(null,r),a.end(function(e){e&&console.error("can't close an iter",e)})})},r.prototype.off=function(e,t,n){var r=e.filter("/#");delete this.logtails[r],a.prototype.off.call(this,e,t,n)},r.prototype.close=function(e,t){t&&console.log("fatal IO error",t),this.db?(this.db.close(e),this.db=null):e()}},function(e,t,n){"use strict";var r=n(23),i=n(10);e.exports={deliver:function(e,t,n){var r=this.sync,i=r._version;if(this.props.listenEntries){var o="!"+e.version();i!==o&&(i=o)}this.setState({version:i})},componentWillMount:function(){var e=this.props.spec||this.props.key;if(!i.is(e)){if(!e||!this.constructor.modelType)throw new Error("not a specifier: "+e+" at "+this._rootNodeID);var t=e;e=new i(this.constructor.modelType,"/"),e=e.add(t,"#")}if(this.sync=r.localhost.get(e),this.setState({version:""}),!r.isServer){var n=this.sync;n.on("init",this),n.on(this),this.props.listenEntries&&n.onObjectEvent(this)}},componentWillUnmount:function(){if(!r.isServer){var e=this.sync;e.off(this),e.off(this),this.props.listenEntries&&e.offObjectEvent(this)}},shouldComponentUpdate:function(e,t){return this.props!==e||this.state.version!==t.version}}},function(e,t,n){"use strict";var r=n(10),i=function(e,t){if(!r.reTok.test(e))throw new Error("invalid process id: "+e);this.id=e,this.clockOffsetMs=0,this.lastTimestamp="",this.lastTimeSeen=0,this.lastSeqSeen=0,t&&(this.clockOffsetMs=t)},o=new Date("Wed, 01 Jan 2014 00:00:00 GMT");i.EPOCH=o.getTime(),i.prototype.adjustTime=function(e){var t=this.ms(),n=e-t;this.clockOffsetMs=n;var r=this.lastTimeSeen;this.lastTimeSeen=0,this.lastSeqSeen=0,this.lastTimestamp="",this.seconds()+1<r&&console.error("risky clock reset",this.lastTimestamp)},i.prototype.ms=function(){var e=(new Date).getTime();return e-=i.EPOCH},i.prototype.seconds=function(){var e=this.ms();return e+=this.clockOffsetMs,e/1e3|0},i.prototype.issueTimestamp=function(){var e=this.seconds();this.lastTimeSeen>e&&(e=this.lastTimeSeen),e>this.lastTimeSeen&&(this.lastSeqSeen=-1),this.lastTimeSeen=e;var t=++this.lastSeqSeen;if(t>=4096)throw new Error("max event freq is 4000Hz");var n=r.int2base(e,5);return t>0&&(n+=r.int2base(t,2)),this.lastTimestamp=n+"+"+this.id,this.lastTimestamp},i.prototype.parseTimestamp=function(e){var t=e.match(r.reTokExt);if(!t)throw new Error("malformed timestamp: "+e);var n=t[1],i=n.substr(0,5),o=n.substr(5);if(o&&2!==o.length)throw new Error("malformed timestamp value: "+n);return{time:r.base2int(i),seq:o?r.base2int(o):0}},i.prototype.checkTimestamp=function(e){if(e<this.lastTimestamp)return!0;var t=this.parseTimestamp(e);if(t.time<this.lastTimeSeen)return!0;var n=this.seconds();return t.time>n+1?!1:(this.lastTimeSeen=t.time,this.lastSeqSeen=t.seq,!0)},i.prototype.timestamp2date=function(e){var t=this.parseTimestamp(e),n=1e3*t.time+i.EPOCH;return new Date(n)},e.exports=i},function(e,t,n){"use strict";function r(e,t){this.options=t||{},this.lstn={},this._id=e,this.tails={},this.store=this.options.persistent?window.localStorage:window.sessionStorage,this.loadLog(),this.installListeners()}var i=n(10),o=n(86);r.prototype=new o,r.prototype.isRoot=!1,e.exports=r,r.prototype.onOp=function(e,t){var n=e.filter("/#"),r=e.filter("!.");if(r.toString()){var i=this.tails[n];if(i){if(-1!==i.indexOf(r))return}else i=this.tails[n]=[];i.push(r),this.emit(e,t)}},r.prototype.installListeners=function(){function e(e){i.is(e.key)&&e.newValue&&t.onOp(new i(e.key),JSON.parse(e.newValue))}var t=this;window.addEventListener("storage",e,!1)},r.prototype.loadLog=function(){for(var e,t=this.store,n=0;n<t.length;n++){var r=t.key(n);if(i.is(r)){var o=new i(r);if("/#!."===o.pattern()){e=o.filter("/#");var a=this.tails[e];a||(a=this.tails[e]=[]),a.push(o.filter("!."))}}}for(e in this.tails)this.tails[e].sort()},r.prototype.writeOp=function(e,t,n){var r=e.filter("/#"),i=e.filter("!."),o=this.tails[r]||(this.tails[r]=[]);o.push(i);var a=JSON.stringify(t);if(this.store.setItem(e,a),this.options.trigger){var s=this.options.persistent?window.sessionStorage:window.localStorage;s.getItem(e)||(s.setItem(e,a),s.removeItem(e,a))}},r.prototype.writeState=function(e,t,n){var r=e.filter("/#");this.store.setItem(r,JSON.stringify(t));var i=this.tails[r];if(i){for(var o=0;o<i.length;o++)this.store.removeItem(r+i[o]);delete this.tails[r]}},r.prototype.readState=function(e,t){e=new i(e);var n=e.filter("/#"),r=this.store.getItem(n);t(null,r&&JSON.parse(r)||null)},r.prototype.readOps=function(e,t){for(var n=this.tails[e],r=null,i=0;n&&i<n.length;i++){var o=n[i],a=this.store.getItem(e+o);a&&(r=r||{},r[o]=JSON.parse(a))}t(null,r)}},function(e,t,n){"use strict";var r=n(10),i=n(129),o=n(27),a=n(131),s=n(128);e.exports=o.extend("Vector",{defaults:{_oplog:Object,_objects:Array,_order:i,_proxy:a},mixins:[s],ops:{"in":function(e,t,n){t=new r(t);var i=e.tok("!"),o=t.tok("!");if(o>=i)throw new Error("timestamps are messed up");var a=t.tok("#");if(!a)throw new Error("object #id not specified");var s=t.get("/");if(!s&&this.objectType&&(s=this.objectType.prototype._type),!s)throw new Error("object /type not specified");s="/"+s;var u=this.findPositionFor(i,o?o:"!0"),l=this._host.get(s+a);this._objects.splice(u.index,0,l),this._order.insert(i,u),l.on(this._proxy)},rm:function(e,t,n){t=r.as(t);var i=t.tok("!"),o=t.has(".")?r.base2int(t.get(".")):0,a=this._order.find(i,Math.max(0,o-5));if(a.end()&&(a=this._order.find(i,0)),!a.end()){var s=this._objects[a.index];this._objects.splice(a.index,1),a.erase(1),s.off(this._proxy)}}},distillLog:function(){},reactions:{init:function(e,t,n){for(var r=this._order.iterator();!r.end();r.next()){var i=r.token()+".in",o=this._oplog[i],a=this.getObject(o);this._objects[r.index]=a,a.on(this._proxy)}}},pojo:function(){var e=o._pt.pojo.apply(this,arguments);return e.entries=Object.keys(this._objects),e},getObject:function(e){if(e=new r(e,"#"),!e.has("/")){if(!this.objectType)throw new Error("type not specified");e=e.add(this.objectType.prototype._type,"/").sort()}var t=this._host.get(e);return t},length:function(){return this._objects.length},findPositionFor:function(e,t){t||(t=this.getParentOf(e));var n;for("!0"!==t?(n=this._order.find(t),n.end()&&(n=this.findPositionFor(t)),n.next()):n=this._order.iterator();!n.end();){var r=n.token();if(e>r)break;var i=this.inSubtreeOf(r,t);if(!i||e>i)break;this.skipSubtree(n,i)}return n},getParentOf:function(e){var t=this._oplog[e+".in"];if(!t)throw new Error("operation unknown: "+e);var n=r.as(t).tok("!")||"!0";return n},inSubtreeOf:function(e,t){for(var n=e,r=n;n>t;)r=n,n=this.getParentOf(n);return n===t&&r},isDescendantOf:function(e,t){for(var n=e;n>t;)n=this.getParentOf(n);return n===t},skipSubtree:function(e,t){t=t||e.token();do e.next();while(!e.end()&&this.isDescendantOf(e.token(),t));return e},validate:function(e,t,n){},indexOf:function(e,t){return e._id||(e=this.getObject(e)),this._objects.indexOf(e,t)},normalizePos:function(e){e&&e._id&&(e=e._id);for(var t=new r(e,"#"),n=t.type(),i=t.id(),o=0;o<this._objects.length;o++){var a=this._objects[o];if(a&&a._id===i&&(!n||a._type===n))break}return o},insert:function(e,t){void 0===t&&(t=-1),t.constructor!==Number&&(t=this.normalizePos(t)),e=e&&e._id?e.spec():new r(e,"#");var n=-1===t?"!0":this._order.tokenAt(t);return this.in(e+n)},insertAfter:function(e,t){this.insert(e,t)},insertBefore:function(e,t){void 0===t&&(t=this._order.length()),t.constructor!==Number&&(t=this.normalizePos(t)),this.insert(e,t-1)},append:function(e){this.insert(e,this._order.length()-1)},remove:function(e){e.constructor!==Number&&(e=this.normalizePos(e));var t=r.int2base(e,0),n=this._order.tokenAt(e);this.rm(n+"."+t)},addObject:function(e){this.append(e)},removeObject:function(e){this.remove(e)},objectAt:function(e){return this._objects[e]},insertSorted:function(e,t){},setOrder:function(e){},forEach:function(e,t){this._objects.forEach(e,t)},every:function(e,t){return this._objects.every(e,t)},filter:function(e,t){return this._objects.filter(e,t)},map:function(e,t){return this._objects.map(e,t)}})},function(e,t,n){"use strict";function r(e){var t=this,n=this.lstn={};this.url=e;var r=this.ws=new WebSocket(e),i=this.buf=[];r.onopen=function(){for(i.reverse(),t.buf=null;i.length;)t.write(i.pop())},r.onclose=function(){n.close&&n.close()},r.onmessage=function(e){n.data&&n.data(e.data)},r.onerror=function(e){n.error&&n.error(e)}}var i=n(23);r.prototype.on=function(e,t){if(e in this.lstn){var n=this,r=this.lstn[e];this.lstn[e]=function(){r.apply(n,arguments),t.apply(n,arguments)}}else this.lstn[e]=t},r.prototype.write=function(e){this.buf?this.buf.push(e):this.ws.send(e)},i.streams.ws=i.streams.wss=r,e.exports=r},function(e,t,n){var r;!function(){function i(e,t,n){return e.call.apply(e.bind,arguments)}function o(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?i:o,a.apply(null,arguments)}function s(e,t){this.C=e,this.q=t||e,this.D=this.q.document}function u(e,t,n){e=e.D.getElementsByTagName(t)[0],e||(e=document.documentElement),e&&e.lastChild&&e.insertBefore(n,e.lastChild)}function l(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),i=0;i<t.length;i+=1){for(var o=!1,a=0;a<r.length;a+=1)if(t[i]===r[a]){o=!0;break}o||r.push(t[i])}for(t=[],i=0;i<r.length;i+=1){for(o=!1,a=0;a<n.length;a+=1)if(r[i]===n[a]){o=!0;break}o||t.push(r[i])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function c(e,t){for(var n=e.className.split(/\s+/),r=0,i=n.length;i>r;r++)if(n[r]==t)return!0;return!1}function h(e){if("string"==typeof e.ca)return e.ca;var t=e.q.location.protocol;return"about:"==t&&(t=e.C.location.protocol),"https:"==t?"https:":"http:"}function f(e,t){var n=e.createElement("link",{rel:"stylesheet",href:t,media:"all"}),r=!1;n.onload=function(){r||(r=!0)},n.onerror=function(){r||(r=!0)},u(e,"head",n)}function p(e,t,n,r){var i=e.D.getElementsByTagName("head")[0];if(i){var o=e.createElement("script",{src:t}),a=!1;return o.onload=o.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),o.onload=o.onreadystatechange=null,"HEAD"==o.parentNode.tagName&&i.removeChild(o))},i.appendChild(o),setTimeout(function(){a||(a=!0,n&&n(Error("Script load timeout")))},r||5e3),o}return null}function d(e){this.ba=e||"-"}function v(e,t){this.U=e,this.M=4,this.G="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.G=n[1],this.M=parseInt(n[2],10))}function m(e){return e.G+e.M}function g(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function y(e,t){this.a=e,this.j=e.q.document.documentElement,this.I=t,this.f="wf",this.e=new d("-"),this.Y=!1!==t.events,this.v=!1!==t.classes}function b(e){e.v&&l(e.j,[e.e.d(e.f,"loading")]),C(e,"loading")}function _(e){if(e.v){var t=c(e.j,e.e.d(e.f,"active")),n=[],r=[e.e.d(e.f,"loading")];t||n.push(e.e.d(e.f,"inactive")),l(e.j,n,r)}C(e,"inactive")}function C(e,t,n){e.Y&&e.I[t]&&(n?e.I[t](n.getName(),m(n)):e.I[t]())}function w(){this.u={}}function x(e,t,n){var r,i=[];for(r in t)if(t.hasOwnProperty(r)){var o=e.u[r];o&&i.push(o(t[r],n))}return i}function E(e,t){this.a=e,this.A=t,this.g=this.a.createElement("span",{"aria-hidden":"true"},this.A)}function S(e){u(e.a,"body",e.g)}function k(e){var t;t=[];for(var n=e.U.split(/,\s*/),r=0;r<n.length;r++){var i=n[r].replace(/['"]/g,"");-1==i.indexOf(" ")?t.push(i):t.push("'"+i+"'")}return t=t.join(","),n="normal","o"===e.G?n="oblique":"i"===e.G&&(n="italic"),"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+t+";"+("font-style:"+n+";font-weight:"+(e.M+"00")+";")}function T(e,t,n,r,i,o,a){this.N=e,this.aa=t,this.a=n,this.h=r,this.A=a||"BESbswy",this.p={},this.L=i||3e3,this.S=o||null,this.w=this.o=this.m=null,this.m=new E(this.a,this.A),this.o=new E(this.a,this.A),this.w=new E(this.a,this.A),e=new v("serif",m(this.h)),e=k(e),this.m.g.style.cssText=e,e=new v("sans-serif",m(this.h)),e=k(e),this.o.g.style.cssText=e,e=new v("monospace",m(this.h)),e=k(e),this.w.g.style.cssText=e,S(this.m),S(this.o),S(this.w)}function O(){if(null===K){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);K=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return K}function R(e,t,n){for(var r in G)if(G.hasOwnProperty(r)&&t===e.p[G[r]]&&n===e.p[G[r]])return!0;return!1}function A(e){var t,n=e.m.g.offsetWidth,r=e.o.g.offsetWidth;(t=n===e.p.serif&&r===e.p["sans-serif"])||(t=O()&&R(e,n,r)),t?V()-e.da>=e.L?O()&&R(e,n,r)&&(null===e.S||e.S.hasOwnProperty(e.h.getName()))?N(e,e.N):N(e,e.aa):M(e):N(e,e.N)}function M(e){setTimeout(a(function(){A(this)},e),50)}function N(e,t){e.m.remove(),e.o.remove(),e.w.remove(),t(e.h)}function I(e,t,n){this.a=e,this.s=t,this.J=0,this.W=this.R=!1,this.L=n}function P(e){0==--e.J&&e.R&&(e.W?(e=e.s,e.v&&l(e.j,[e.e.d(e.f,"active")],[e.e.d(e.f,"loading"),e.e.d(e.f,"inactive")]),C(e,"active")):_(e.s))}function D(e){this.C=e,this.t=new w,this.T=0,this.O=this.P=!0}function L(e,t,n,r,i){var o=0==--e.T;(e.O||e.P)&&setTimeout(function(){var e=i||null,s=r||null||{};if(0===n.length&&o)_(t.s);else{t.J+=n.length,o&&(t.R=o);var u,c=[];for(u=0;u<n.length;u++){var h=n[u],f=s[h.getName()],p=t.s,d=h;p.v&&l(p.j,[p.e.d(p.f,d.getName(),m(d).toString(),"loading")]),C(p,"fontloading",d),p=null,p=new T(a(t.Z,t),a(t.$,t),t.a,h,t.L,e,f),c.push(p)}for(u=0;u<c.length;u++)c[u].start()}},0)}function U(e,t,n){var r=[],i=n.timeout;b(t);var r=x(e.t,n,e.a),o=new I(e.a,t,i);for(e.T=r.length,t=0,n=r.length;n>t;t++)r[t].load(function(t,n,r){L(e,o,t,n,r)})}function F(e,t,n){this.H=e?e:t+X,this.k=[],this.K=[],this.X=n||""}function j(e){this.k=e,this.V=[],this.F={}}function B(e,t){this.a=e,this.c=t}function H(e,t){this.a=e,this.c=t,this.Q=[]}function z(e,t){this.a=e,this.c=t}function W(e,t){this.a=e,this.c=t}function q(e,t){this.a=e,this.c=t}var V=Date.now||function(){return+new Date};s.prototype.createElement=function(e,t,n){if(e=this.D.createElement(e),t)for(var r in t)t.hasOwnProperty(r)&&("style"==r?e.style.cssText=t[r]:e.setAttribute(r,t[r]));return n&&e.appendChild(this.D.createTextNode(n)),e},d.prototype.d=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.ba)},v.prototype.getName=function(){return this.U},E.prototype.remove=function(){var e=this.g;e.parentNode&&e.parentNode.removeChild(e)};var G={ga:"serif",fa:"sans-serif",ea:"monospace"},K=null;T.prototype.start=function(){this.p.serif=this.m.g.offsetWidth,this.p["sans-serif"]=this.o.g.offsetWidth,this.p.monospace=this.w.g.offsetWidth,this.da=V();var e=new v(this.h.getName()+",serif",m(this.h)),e=k(e);this.m.g.style.cssText=e,e=new v(this.h.getName()+",sans-serif",m(this.h)),e=k(e),this.o.g.style.cssText=e,A(this)},I.prototype.Z=function(e){var t=this.s;t.v&&l(t.j,[t.e.d(t.f,e.getName(),m(e).toString(),"active")],[t.e.d(t.f,e.getName(),m(e).toString(),"loading"),t.e.d(t.f,e.getName(),m(e).toString(),"inactive")]),C(t,"fontactive",e),this.W=!0,P(this)},I.prototype.$=function(e){var t=this.s;if(t.v){var n=c(t.j,t.e.d(t.f,e.getName(),m(e).toString(),"active")),r=[],i=[t.e.d(t.f,e.getName(),m(e).toString(),"loading")];n||r.push(t.e.d(t.f,e.getName(),m(e).toString(),"inactive")),l(t.j,r,i)}C(t,"fontinactive",e),P(this)},D.prototype.load=function(e){this.a=new s(this.C,e.context||this.C),this.P=!1!==e.events,this.O=!1!==e.classes,U(this,new y(this.a,e),e)};var X="//fonts.googleapis.com/css";F.prototype.d=function(){if(0==this.k.length)throw Error("No fonts to load!");if(-1!=this.H.indexOf("kit="))return this.H;for(var e=this.k.length,t=[],n=0;e>n;n++)t.push(this.k[n].replace(/ /g,"+"));return e=this.H+"?family="+t.join("%7C"),0<this.K.length&&(e+="&subset="+this.K.join(",")),0<this.X.length&&(e+="&text="+encodeURIComponent(this.X)),e};var Y={latin:"BESbswy",cyrillic:"&#1081;&#1103;&#1046;",greek:"&#945;&#946;&#931;",khmer:"&#x1780;&#x1781;&#x1782;",Hanuman:"&#x1780;&#x1781;&#x1782;"},$={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},Q={i:"i",italic:"i",n:"n",normal:"n"},J=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;j.prototype.parse=function(){for(var e=this.k.length,t=0;e>t;t++){var n=this.k[t].split(":"),r=n[0].replace(/\+/g," "),i=["n4"];if(2<=n.length){var o,a=n[1];if(o=[],a)for(var a=a.split(","),s=a.length,u=0;s>u;u++){var l;if(l=a[u],l.match(/^[\w-]+$/))if(l=J.exec(l.toLowerCase()),null==l)l="";else{var c;if(c=l[1],null==c||""==c)c="4";else{var h=$[c];c=h?h:isNaN(c)?"4":c.substr(0,1)}l=l[2],l=[null==l||""==l?"n":Q[l],c].join("")}else l="";l&&o.push(l)}0<o.length&&(i=o),3==n.length&&(n=n[2],o=[],n=n?n.split(","):o,0<n.length&&(n=Y[n[0]])&&(this.F[r]=n))}for(this.F[r]||(n=Y[r])&&(this.F[r]=n),n=0;n<i.length;n+=1)this.V.push(new v(r,i[n]))}};var Z={Arimo:!0,Cousine:!0,Tinos:!0};B.prototype.load=function(e){for(var t=this.a,n=new F(this.c.api,h(t),this.c.text),r=this.c.families,i=r.length,o=0;i>o;o++){var a=r[o].split(":");3==a.length&&n.K.push(a.pop());var s="";2==a.length&&""!=a[1]&&(s=":"),n.k.push(a.join(s))}r=new j(r),r.parse(),f(t,n.d()),e(r.V,r.F,Z)},H.prototype.B=function(e){var t=this.a;return h(this.a)+(this.c.api||"//f.fontdeck.com/s/css/js/")+(t.q.location.hostname||t.C.location.hostname)+"/"+e+".js"},H.prototype.load=function(e){var t=this.c.id,n=this.a.q,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var i=0,o=n.fonts.length;o>i;++i){var a=n.fonts[i];r.Q.push(new v(a.name,g("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.Q)},p(this.a,this.B(t),function(t){t&&e([])})):e([])},z.prototype.B=function(e){return(this.c.api||"https://use.typekit.net")+"/"+e+".js"},z.prototype.load=function(e){var t=this.c.id,n=this.a.q;t?p(this.a,this.B(t),function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],i=0;i<t.length;i+=2)for(var o=t[i],a=t[i+1],s=0;s<a.length;s++)r.push(new v(o,a[s]));try{n.Typekit.load({events:!1,classes:!1})}catch(u){}e(r)}},2e3):e([])},W.prototype.B=function(e,t){var n=h(this.a),r=(this.c.api||"fast.fonts.net/jsapi").replace(/^.*http(s?):(\/\/)?/,"");return n+"//"+r+"/"+e+".js"+(t?"?v="+t:"")},W.prototype.load=function(e){var t=this.c.projectId,n=this.c.version;if(t){var r=this.a.q;p(this.a,this.B(t,n),function(n){if(n)e([]);else if(r["__mti_fntLst"+t]){n=r["__mti_fntLst"+t]();var i=[];if(n)for(var o=0;o<n.length;o++)i.push(new v(n[o].fontfamily));e(i)}else e([])}).id="__MonotypeAPIScript__"+t}else e([])},q.prototype.load=function(e){var t,n,r=this.c.urls||[],i=this.c.families||[],o=this.c.testStrings||{};for(t=0,n=r.length;n>t;t++)f(this.a,r[t]);for(r=[],t=0,n=i.length;n>t;t++){var a=i[t].split(":");if(a[1])for(var s=a[1].split(","),u=0;u<s.length;u+=1)r.push(new v(a[0],s[u]));else r.push(new v(a[0]))}e(r,o)};var ee=new D(window);ee.t.u.custom=function(e,t){return new q(t,e)},ee.t.u.fontdeck=function(e,t){return new H(t,e)},ee.t.u.monotype=function(e,t){return new W(t,e)},ee.t.u.typekit=function(e,t){return new z(t,e)},ee.t.u.google=function(e,t){return new B(t,e)};var te={load:a(ee.load,ee)};r=function(){return te}.call(t,n,t,e),!(void 0!==r&&(e.exports=r))}()},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t){}]);