Team:Nottingham/react/main

!function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=663)}([function(e,t,n){"use strict";e.exports=n(662)},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,n){var r=n(278);e.exports=function(e,t,n){return t in e?r(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){var r=n(650);function i(){return e.exports=i=r||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}e.exports=i},function(e,t,n){var r; /*!

 Copyright (c) 2017 Jed Watson.
 Licensed under the MIT License (MIT), see
 http://jedwatson.github.io/classnames
  • /

/*!

 Copyright (c) 2017 Jed Watson.
 Licensed under the MIT License (MIT), see
 http://jedwatson.github.io/classnames
  • /

!function(){"use strict";var n={}.hasOwnProperty;function i(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var o=typeof r;if("string"===o||"number"===o)e.push(r);else if(Array.isArray(r)&&r.length){var a=i.apply(null,r);a&&e.push(a)}else if("object"===o)for(var s in r)n.call(r,s)&&r[s]&&e.push(s)}}return e.join(" ")}void 0!==e&&e.exports?(i.default=i,e.exports=i):void 0===(r=function(){return i}.apply(t,[]))||(e.exports=r)}()},function(e,t,n){e.exports=n(653)()},function(e,t,n){var r=n(52),i=n(1);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},function(e,t,n){var r=n(587),i=n(56)(r);e.exports=i},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(278);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),r(e,i.key,i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),e}},function(e,t,n){var r=n(623),i=n(273);function o(t){return e.exports=o=i?r:function(e){return e.__proto__||r(e)},o(t)}e.exports=o},function(e,t,n){var r=n(617),i=n(614);e.exports=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=r(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&i(e,t)}},function(e,t,n){var r=n(264),i=n(263),o=n(262),a=n(2);e.exports=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},s=o(n);"function"==typeof i&&(s=s.concat(i(n).filter(function(e){return r(n,e).enumerable}))),s.forEach(function(t){a(e,t,n[t])})}return e}},function(e,t){e.exports=function(e){return null==e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(85),i=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},o="[DEFAULT]",a=[],s=function(){function e(e,t,n){this.firebase_=n,this.isDeleted_=!1,this.services_={},this.name_=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled||!1,this.options_=r.deepCopy(e),this.INTERNAL={getUid:function(){return null},getToken:function(){return Promise.resolve(null)},addAuthTokenListener:function(e){a.push(e),setTimeout(function(){return e(null)},0)},removeAuthTokenListener:function(e){a=a.filter(function(t){return t!==e})}}}return Object.defineProperty(e.prototype,"automaticDataCollectionEnabled",{get:function(){return this.checkDestroyed_(),this._automaticDataCollectionEnabled},set:function(e){this.checkDestroyed_(),this._automaticDataCollectionEnabled=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.checkDestroyed_(),this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"options",{get:function(){return this.checkDestroyed_(),this.options_},enumerable:!0,configurable:!0}),e.prototype.delete=function(){var e=this;return new Promise(function(t){e.checkDestroyed_(),t()}).then(function(){e.firebase_.INTERNAL.removeApp(e.name_);var t=[];return Object.keys(e.services_).forEach(function(n){Object.keys(e.services_[n]).forEach(function(r){t.push(e.services_[n][r])})}),Promise.all(t.map(function(e){return e.INTERNAL.delete()}))}).then(function(){e.isDeleted_=!0,e.services_={}})},e.prototype._getService=function(e,t){if(void 0===t&&(t=o),this.checkDestroyed_(),this.services_[e]||(this.services_[e]={}),!this.services_[e][t]){var n=t!==o?t:void 0,r=this.firebase_.INTERNAL.factories[e](this,this.extendApp.bind(this),n);this.services_[e][t]=r}return this.services_[e][t]},e.prototype.extendApp=function(e){var t=this;r.deepExtend(this,e),e.INTERNAL&&e.INTERNAL.addAuthTokenListener&&(a.forEach(function(e){t.INTERNAL.addAuthTokenListener(e)}),a=[])},e.prototype.checkDestroyed_=function(){this.isDeleted_&&u("app-deleted",{name:this.name_})},e}();function u(e,t){throw c.create(e,t)}s.prototype.name&&s.prototype.options||s.prototype.delete||console.log("dc");var c=new r.ErrorFactory("app","Firebase",{"no-app":"No Firebase App '{$name}' has been created - call Firebase App.initializeApp()","bad-app-name":"Illegal App name: '{$name}","duplicate-app":"Firebase App named '{$name}' already exists","app-deleted":"Firebase App named '{$name}' already deleted","duplicate-service":"Firebase service named '{$name}' already registered","sa-not-supported":"Initializing the Firebase SDK with a service account is only allowed in a Node.js environment. On client devices, you should instead initialize the SDK with an api key and auth domain","invalid-app-argument":"firebase.{$name}() takes either no argument or a Firebase App instance."}),l=function e(){var t={},n={},a={},c={__esModule:!0,initializeApp:function(e,n){if(void 0===n&&(n={}),"object"!=typeof n||null===n){var r=n;n={name:r}}var a=n;void 0===a.name&&(a.name=o);var l=a.name;"string"==typeof l&&l||u("bad-app-name",{name:l+""}),i(t,l)&&u("duplicate-app",{name:l});var f=new s(e,a,c);return t[l]=f,h(f,"create"),f},app:l,apps:null,Promise:Promise,SDK_VERSION:"5.0.4",INTERNAL:{registerService:function(e,t,i,o,h){n[e]&&u("duplicate-service",{name:e}),n[e]=t,o&&(a[e]=o,f().forEach(function(e){o("create",e)}));var p=function(t){return void 0===t&&(t=l()),"function"!=typeof t[e]&&u("invalid-app-argument",{name:e}),t[e]()};return void 0!==i&&r.deepExtend(p,i),c[e]=p,s.prototype[e]=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return this._getService.bind(this,e).apply(this,h?t:[])},p},createFirebaseNamespace:e,extendNamespace:function(e){r.deepExtend(c,e)},createSubscribe:r.createSubscribe,ErrorFactory:r.ErrorFactory,removeApp:function(e){h(t[e],"delete"),delete t[e]},factories:n,useAsService:p,Promise:Promise,deepExtend:r.deepExtend}};function l(e){return i(t,e=e||o)||u("no-app",{name:e}),t[e]}function f(){return Object.keys(t).map(function(e){return t[e]})}function h(e,t){Object.keys(n).forEach(function(n){var r=p(e,n);null!==r&&a[r]&&a[r](t,e)})}function p(e,t){if("serverAuth"===t)return null;var n=t;return e.options,n}return r.patchProperty(c,"default",c),Object.defineProperty(c,"apps",{get:f}),r.patchProperty(l,"App",s),c}();t.firebase=l,t.default=l},function(e,t,n){var r=n(50),i=n(35),o=n(221),a=n(18);e.exports=function(e,t){return(a(e)?r:o)(e,i(t,3))}},function(e,t,n){var r=n(261),i=n(56),o=n(126),a=i(function(e,t){return o(e)?r(e,t):[]});e.exports=a},function(e,t,n){"use strict";for(var r=function(e){return null!==e&&!Array.isArray(e)&&"object"==typeof e},i={3:"Cancel",6:"Help",8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",28:"Convert",29:"NonConvert",30:"Accept",31:"ModeChange",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",41:"Select",42:"Print",43:"Execute",44:"PrintScreen",45:"Insert",46:"Delete",48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],91:"OS",93:"ContextMenu",144:"NumLock",145:"ScrollLock",181:"VolumeMute",182:"VolumeDown",183:"VolumeUp",186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"'],224:"Meta",225:"AltGraph",246:"Attn",247:"CrSel",248:"ExSel",249:"EraseEof",250:"Play",251:"ZoomOut"},o=0;o<24;o+=1)i[112+o]="F"+(o+1);for(var a=0;a<26;a+=1){var s=a+65;i[s]=[String.fromCharCode(s+32),String.fromCharCode(s)]}var u={codes:i,getCode:function(e){return r(e)?e.keyCode||e.which||this[e.key]:this[e]},getKey:function(e){var t=r(e),n=i[t?e.keyCode||e.which:e];return Array.isArray(n)&&(n=t?n[e.shiftKey?1:0]:n[0]),n},Cancel:3,Help:6,Backspace:8,Tab:9,Clear:12,Enter:13,Shift:16,Control:17,Alt:18,Pause:19,CapsLock:20,Escape:27,Convert:28,NonConvert:29,Accept:30,ModeChange:31," ":32,PageUp:33,PageDown:34,End:35,Home:36,ArrowLeft:37,ArrowUp:38,ArrowRight:39,ArrowDown:40,Select:41,Print:42,Execute:43,PrintScreen:44,Insert:45,Delete:46,0:48,")":48,1:49,"!":49,2:50,"@":50,3:51,"#":51,4:52,$:52,5:53,"%":53,6:54,"^":54,7:55,"&":55,8:56,"*":56,9:57,"(":57,a:65,A:65,b:66,B:66,c:67,C:67,d:68,D:68,e:69,E:69,f:70,F:70,g:71,G:71,h:72,H:72,i:73,I:73,j:74,J:74,k:75,K:75,l:76,L:76,m:77,M:77,n:78,N:78,o:79,O:79,p:80,P:80,q:81,Q:81,r:82,R:82,s:83,S:83,t:84,T:84,u:85,U:85,v:86,V:86,w:87,W:87,x:88,X:88,y:89,Y:89,z:90,Z:90,OS:91,ContextMenu:93,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,F13:124,F14:125,F15:126,F16:127,F17:128,F18:129,F19:130,F20:131,F21:132,F22:133,F23:134,F24:135,NumLock:144,ScrollLock:145,VolumeMute:181,VolumeDown:182,VolumeUp:183,";":186,":":186,"=":187,"+":187,",":188,"<":188,"-":189,_:189,".":190,">":190,"/":191,"?":191,"`":192,"~":192,"[":219,"{":219,"\\":220,"|":220,"]":221,"}":221,"'":222,'"':222,Meta:224,AltGraph:225,Attn:246,CrSel:247,ExSel:248,EraseEof:249,Play:250,ZoomOut:251};u.Spacebar=u[" "],u.Digit0=u[0],u.Digit1=u[1],u.Digit2=u[2],u.Digit3=u[3],u.Digit4=u[4],u.Digit5=u[5],u.Digit6=u[6],u.Digit7=u[7],u.Digit8=u[8],u.Digit9=u[9],u.Tilde=u["~"],u.GraveAccent=u["`"],u.ExclamationPoint=u["!"],u.AtSign=u["@"],u.PoundSign=u["#"],u.PercentSign=u["%"],u.Caret=u["^"],u.Ampersand=u["&"],u.PlusSign=u["+"],u.MinusSign=u["-"],u.EqualsSign=u["="],u.DivisionSign=u["/"],u.MultiplicationSign=u["*"],u.Comma=u[","],u.Decimal=u["."],u.Colon=u[":"],u.Semicolon=u[";"],u.Pipe=u["|"],u.BackSlash=u["\\"],u.QuestionMark=u["?"],u.SingleQuote=u["'"],u.DoubleQuote=u['"'],u.LeftCurlyBrace=u["{"],u.RightCurlyBrace=u["}"],u.LeftParenthesis=u["("],u.RightParenthesis=u[")"],u.LeftAngleBracket=u["<"],u.RightAngleBracket=u[">"],u.LeftSquareBracket=u["["],u.RightSquareBracket=u["]"],e.exports=u},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){var r=n(128),i=n(39),o=n(101),a=n(48),s=n(75),u=Math.max;e.exports=function(e,t,n,c){e=i(e)?e:s(e),n=n&&!c?a(n):0;var l=e.length;return n<0&&(n=u(l+n,0)),o(e)?n<=l&&e.indexOf(t,n)>-1:!!l&&r(e,t,n)>-1}},function(e,t,n){var r=n(132);e.exports=function(e,t,n){var i=null==e?void 0:r(e,t);return void 0===i?n:i}},function(e,t){e.exports={}},function(e,t,n){var r=n(533),i=n(532),o=n(521);e.exports=function(e){return r(e)||i(e)||o()}},function(e,t,n){var r=n(520),i=n(518);e.exports=function(e,t,n){return r(i,e,t,n)}},function(e,t,n){"use strict";var r=function(){};e.exports=r},function(e,t,n){"use strict";e.exports=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 c=[n,r,i,o,a,s],l=0;(u=new Error(t.replace(/%s/g,function(){return c[l++]}))).name="Invariant Violation"}throw u.framesToPop=1,u}}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){"use strict";e.exports=function(){}},function(e,t,n){var r=n(257),i=n(121),o=n(39);e.exports=function(e){return o(e)?r(e):i(e)}},function(e,t,n){var r=n(92),i=n(65),o=n(241),a=n(18);e.exports=function(e,t){return(a(e)?r:i)(e,o(t))}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,n){var r=n(544),i=n(543),o=n(539);e.exports=function(e,t){return r(e)||i(e,t)||o()}},function(e,t){e.exports=function(e){return void 0===e}},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"someByType",function(){return ne}),n.d(r,"findByType",function(){return re}),n.d(r,"isNil",function(){return ie});var i={};n.r(i),n.d(i,"COLORS",function(){return Tt}),n.d(i,"FLOATS",function(){return kt}),n.d(i,"SIZES",function(){return St}),n.d(i,"TEXT_ALIGNMENTS",function(){return At}),n.d(i,"VERTICAL_ALIGNMENTS",function(){return Nt}),n.d(i,"VISIBILITY",function(){return Ot}),n.d(i,"WIDTHS",function(){return It}),n.d(i,"DIRECTIONAL_TRANSITIONS",function(){return Pt}),n.d(i,"STATIC_TRANSITIONS",function(){return Rt}),n.d(i,"TRANSITIONS",function(){return Dt}),n.d(i,"ACCESSIBILITY",function(){return Mt}),n.d(i,"ARROWS",function(){return Lt}),n.d(i,"AUDIO_VIDEO",function(){return jt}),n.d(i,"BUSINESS",function(){return Ft}),n.d(i,"CHESS",function(){return Ut}),n.d(i,"CODE",function(){return Bt}),n.d(i,"COMMUNICATION",function(){return qt}),n.d(i,"COMPUTERS",function(){return Vt}),n.d(i,"CURRENCY",function(){return Wt}),n.d(i,"DATE_TIME",function(){return zt}),n.d(i,"DESIGN",function(){return Ht}),n.d(i,"EDITORS",function(){return Kt}),n.d(i,"FILES",function(){return Gt}),n.d(i,"GENDERS",function(){return Qt}),n.d(i,"HANDS_GESTURES",function(){return Yt}),n.d(i,"HEALTH",function(){return Xt}),n.d(i,"IMAGES",function(){return Jt}),n.d(i,"INTERFACES",function(){return $t}),n.d(i,"LOGISTICS",function(){return Zt}),n.d(i,"MAPS",function(){return en}),n.d(i,"MEDICAL",function(){return tn}),n.d(i,"OBJECTS",function(){return nn}),n.d(i,"PAYMENTS_SHOPPING",function(){return rn}),n.d(i,"SHAPES",function(){return on}),n.d(i,"SPINNERS",function(){return an}),n.d(i,"SPORTS",function(){return sn}),n.d(i,"STATUS",function(){return un}),n.d(i,"USERS_PEOPLE",function(){return cn}),n.d(i,"VEHICLES",function(){return ln}),n.d(i,"WRITING",function(){return fn}),n.d(i,"BRANDS",function(){return hn}),n.d(i,"ICONS",function(){return pn}),n.d(i,"ICON_ALIASES",function(){return dn}),n.d(i,"ICONS_AND_ALIASES",function(){return vn}),n.d(i,"COMPONENT_CONTEXT_SPECIFIC_ICONS",function(){return mn}),n.d(i,"ALL_ICONS_IN_ALL_CONTEXTS",function(){return yn});var o=n(3),a=n.n(o),s=n(8),u=n.n(s),c=n(9),l=n.n(c),f=n(6),h=n.n(f),p=n(10),d=n.n(p),v=n(11),m=n.n(v),y=n(1),g=n.n(y),b=n(2),_=n.n(b),w=n(36),E=n.n(w),x=n(7),C=n.n(x),T=(n(5),n(0)),k=n.n(T),S=n(12),A=n.n(S),N=n(104),O=n.n(N),I=n(32),P=n.n(I),R=(n(572),n(76)),D=n.n(R),M=n(46),L=n.n(M),j=n(28),F=n.n(j),U=(n(547),n(103)),B=n.n(U),q=function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t[e];if(void 0!==o)return o;if(i){var a=t[(r=e,"default".concat(r[0].toUpperCase()+r.slice(1)))];if(void 0!==a)return a;if(n){var s=n[e];if(void 0!==s)return s}}return"checked"!==e&&("value"===e?t.multiple?[]:"":void 0)},V=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n=h()(this,(e=d()(t)).call.apply(e,[this].concat(i))),_()(g()(g()(n)),"trySetState",function(e,t){var r=n.constructor.autoControlledProps,i=Object.keys(e).reduce(function(t,i){return void 0!==n.props[i]?t:-1===r.indexOf(i)?t:(t[i]=e[i],t)},{});t&&(i=A()({},i,t)),Object.keys(i).length>0&&n.setState(i)});var a=n.constructor.autoControlledProps,s=C()(g()(g()(n)),"getInitialAutoControlledState",n.props)||{},c=a.reduce(function(e,t){return e[t]=q(t,n.props,s,!0),e},{});return n.state=A()({},s,c),n}return m()(t,e),l()(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.constructor.autoControlledProps.reduce(function(n,r){var i=P()(e[r]),o=!P()(t.props[r])&&i;return i?o&&(n[r]=q(r,e)):n[r]=e[r],n},{});Object.keys(n).length>0&&this.setState(n)}}]),t}(T.Component),W=n(31),z=n.n(W),H=n(29),K=n.n(H),G=n(315),Q=n.n(G),Y=function(e){return Q()(D()(T.Children.toArray(e),T.isValidElement),"key")},X=function(e,t,n){return E()(n,e)?n[e]:t[e]},J=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={},r=function(e,t){var n={},r=[];return K()(F()(e),function(e){E()(t,e)?r.length&&(n[e]=r,r=[]):r.push(e)}),[n,r]}(e,t),i=z()(r,2),o=i[0],a=i[1];return K()(F()(t),function(r){E()(o,r)&&K()(o[r],function(r){n[r]=X(r,e,t)}),n[r]=X(r,e,t)}),K()(a,function(r){n[r]=X(r,e,t)}),n},$=n(150),Z=n.n($),ee=n(62),te=n.n(ee),ne=function(e,t){return te()(T.Children.toArray(e),{type:t})},re=function(e,t){return Z()(T.Children.toArray(e),{type:t})},ie=function(e){return null===e||void 0===e||Array.isArray(e)&&0===e.length},oe=n(52),ae=n.n(oe),se={1:"one",2:"two",3:"three",4:"four",5:"five",6:"six",7:"seven",8:"eight",9:"nine",10:"ten",11:"eleven",12:"twelve",13:"thirteen",14:"fourteen",15:"fifteen",16:"sixteen"};function ue(e){var t=ae()(e);return"string"===t||"number"===t?se[e]||e:""}var ce=function(e,t){return e&&t},le=function(e,t){return e&&!0!==e&&"".concat(e," ").concat(t)},fe=function(e,t){return e&&(!0===e?t:"".concat(e," ").concat(t))},he=function(e,t){return e&&!0!==e?e.replace("large screen","large-screen").replace(/ vertically/g,"-vertically").split(" ").map(function(e){return"".concat(e.replace("-"," ")," ").concat(t)}).join(" "):null},pe=function(e){return"justified"===e?"justified":le(e,"aligned")},de=function(e){return le(e,"aligned")},ve=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&"equal"===e)return"equal width";var n=ae()(e);return"string"!==n&&"number"!==n||!t?ue(e):"".concat(ue(e)," ").concat(t)},me=n(22),ye=n.n(me),ge=(n(314),n(313),n(312),n(311),n(153),n(310),n(309),n(207),n(152),n(308),n(307),n(206),n(205),n(37)),be=n.n(ge),_e=n(78),we=n.n(_e),Ee=(n(306),n(13)),xe=n.n(Ee),Ce="object"===("undefined"==typeof document?"undefined":ae()(document))&&null!==document,Te="object"===("undefined"==typeof window?"undefined":ae()(window))&&null!==window&&window.self===window,ke=function e(){return xe()(e.override)?Ce&&Te:e.override};ke();var Se=function(){function e(t){u()(this,e),this.handlers=new Set(t)}return l()(e,[{key:"addHandlers",value:function(t){var n=new Set(this.handlers);return t.forEach(function(e){n.delete(e),n.add(e)}),new e(n)}},{key:"dispatchEvent",value:function(e,t){t?this.handlers.forEach(function(t){t(e)}):ye()(this.handlers).pop()(e)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(t){var n=new Set(this.handlers);return t.forEach(function(e){n.delete(e)}),new e(n)}}]),e}(),Ae=function(){function e(t,n){u()(this,e),this.handlerSets=n,this.poolName=t}return l()(e,[{key:"addHandlers",value:function(t,n){var r=new Map(this.handlerSets);return r.has(t)?r.set(t,r.get(t).addHandlers(n)):r.set(t,new Se(n)),new e(this.poolName,r)}},{key:"dispatchEvent",value:function(e,t){var n=this.handlerSets.get(e);n&&n.dispatchEvent(t,"default"===this.poolName)}},{key:"hasHandlers",value:function(e){var t=this.handlerSets.get(e);return!!t&&t.hasHandlers()}},{key:"removeHandlers",value:function(t,n){var r=new Map(this.handlerSets);if(!r.has(t))return new e(this.poolName,r);var i=r.get(t).removeHandlers(n);return i.hasHandlers()?r.set(t,i):r.delete(t),new e(this.poolName,r)}}]),e}();_()(Ae,"createByType",function(e,t,n){var r=new Map;return r.set(t,new Se(n)),new Ae(e,r)});var Ne=function(){function e(t){u()(this,e),_()(this,"handlers",new Map),_()(this,"pools",new Map),_()(this,"createEmitter",function(e,t){return function(n){t.forEach(function(t){t.dispatchEvent(e,n)})}}),this.target=t}return l()(e,[{key:"addHandlers",value:function(e,t,n){this.removeTargetHandler(t),this.pools.has(e)?this.pools.set(e,this.pools.get(e).addHandlers(t,n)):this.pools.set(e,Ae.createByType(e,t,n)),this.addTargetHandler(t)}},{key:"hasHandlers",value:function(){return this.handlers.size>0}},{key:"removeHandlers",value:function(e,t,n){var r=this.pools.get(e);if(r){var i=r.removeHandlers(t,n);i.hasHandlers(t)?(this.removeTargetHandler(t),this.pools.set(e,i)):(this.removeTargetHandler(t),this.pools.delete(e)),this.pools.size>0&&this.addTargetHandler(t)}}},{key:"addTargetHandler",value:function(e){var t=this.createEmitter(e,this.pools);this.handlers.set(e,t),this.target.addEventListener(e,t)}},{key:"removeTargetHandler",value:function(e){this.handlers.has(e)&&(this.target.removeEventListener(e,this.handlers.get(e)),this.handlers.delete(e))}}]),e}(),Oe=n(18),Ie=n.n(Oe),Pe=function(e){return Ie()(e)?e:[e]},Re=function(e){return"document"===e?document:"window"===e?window:e||document},De=new(function(){function e(){var t=this;u()(this,e),_()(this,"targets",new Map),_()(this,"getTarget",function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=Re(e);if(t.targets.has(r))return t.targets.get(r);if(!n)return null;var i=new Ne(r);return t.targets.set(r,i),i}),_()(this,"removeTarget",function(e){t.targets.delete(Re(e))})}return l()(e,[{key:"sub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ke()){var r=n.target,i=void 0===r?document:r,o=n.pool,a=void 0===o?"default":o;this.getTarget(i).addHandlers(a,e,Pe(t))}}},{key:"unsub",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(ke()){var r=n.target,i=void 0===r?document:r,o=n.pool,a=void 0===o?"default":o,s=this.getTarget(i,!1);s&&(s.removeHandlers(a,e,Pe(t)),s.hasHandlers()||this.removeTarget(i))}}}]),e}()),Me=n(77),Le=n.n(Me),je=n(84),Fe=n.n(je),Ue=n(45),Be=n.n(Ue),qe=n(63),Ve=n.n(qe),We=n(101),ze=n.n(We),He=n(305),Ke=n.n(He),Ge=n(4),Qe=n.n(Ge);function Ye(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if("function"!=typeof e&&"string"!=typeof e)throw new Error("createShorthand() Component must be a string or function.");if(xe()(n)||Ke()(n))return null;var i=ze()(n),o=Ve()(n),a=Be()(n),s=Object(T.isValidElement)(n),u=Fe()(n),c=i||o||Ie()(n);if(!(a||s||u||c))return null;var l=r.defaultProps,f=void 0===l?{}:l,h=s&&n.props||u&&n||c&&t(n),p=r.overrideProps,d=void 0===p?{}:p;d=Be()(d)?d(A()({},f,h)):d;var v=A()({},f,h,d);if(f.className||d.className||h.className){var m=Qe()(f.className,d.className,h.className);v.className=Le()(m.split(" ")).join(" ")}if((f.style||d.style||h.style)&&(v.style=A()({},f.style,h.style,d.style)),xe()(v.key)){var y=v.childKey,g=r.autoGenerateKey,b=void 0===g||g;xe()(y)?b&&(i||o)&&(v.key=n):(v.key="function"==typeof y?y(v):y,delete v.childKey)}return s?Object(T.cloneElement)(n,v):c||u?k.a.createElement(e,v):a?n(e,v,v.children):void 0}function Xe(e,t){if("function"!=typeof e&&"string"!=typeof e)throw new Error("createShorthandFactory() Component must be a string or function.");return function(n,r){return Ye(e,t,n,r)}}Ye.handledProps=[];var Je=Xe("div",function(e){return{children:e}}),$e=Xe("iframe",function(e){return{src:e}}),Ze=Xe("img",function(e){return{src:e}}),et=Xe("input",function(e){return{type:e}}),tt=Xe("label",function(e){return{children:e}}),nt=Xe("p",function(e){return{children:e}}),rt=function(e,t){var n=e.handledProps,r=void 0===n?[]:n;return Object.keys(t).reduce(function(e,n){return"childKey"===n?e:(-1===r.indexOf(n)&&(e[n]=t[n]),e)},{})};var it=function(e,t,n){var r=e.defaultProps,i=void 0===r?{}:r;if(t.as&&t.as!==i.as)return t.as;if(n){var o=n();if(o)return o}return t.href?"a":i.as||"div"},ot=n(19),at=n.n(ot),st=["selected","defaultValue","defaultChecked","accept","autoCapitalize","autoComplete","autoCorrect","autoFocus","checked","disabled","form","id","list","max","maxLength","min","minLength","multiple","name","pattern","placeholder","readOnly","required","step","type","value"],ut=st.concat(["onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onClick","onContextMenu","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart"]),ct=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.htmlProps,r=void 0===n?ut:n,i=t.includeAria,o=void 0===i||i,a={},s={};return K()(e,function(e,t){var n=o&&(/^aria-.*$/.test(t)||"role"===t);(at()(r,t)||n?a:s)[t]=e}),[a,s]},lt=n(105),ft=n.n(lt),ht=n(304),pt=n.n(ht),dt=function(e,t){if(te()([t,e],xe.a))return!1;if(t.target&&(C()(t.target,"setAttribute","data-suir-click-target",!0),document.querySelector("[data-suir-click-target=true]")))return C()(t.target,"removeAttribute","data-suir-click-target"),e.contains(t.target);var n=t.clientX,r=t.clientY;if(te()([n,r],xe.a))return!1;var i=e.getClientRects();if(!(e.offsetWidth&&e.offsetHeight&&i&&i.length))return!1;var o=pt()(i),a=o.top,s=o.bottom,u=o.left,c=o.right;return!te()([a,s,u,c],xe.a)&&ft()(r,a,s+.001)&&ft()(n,u,c+.001)},vt=function(e){return{active:!1,type:"ellipsisItem",value:e}},mt=n(303),yt=n.n(mt),gt=n(15),bt=n.n(gt),_t=function(e,t,n){return bt()(yt()(e,t+1),n)},wt=function(e,t){var n=e.activePage,r=e.boundaryRange,i=e.siblingRange,o=e.totalPages,a=r,s=_t(1,a,t),u=o+1-r,c=_t(u,o,t),l=Math.min(Math.max(n-i,a+2),u-1-2*i-1),f=l+2*i,h=_t(l,f,t);return ye()(s).concat([function(e,t,n){var r=t-1;return(r!==e+1?vt:n)(r)}(a,l,t)],ye()(h),[function(e,t,n){var r=e+1;return(r!==t-1?vt:n)(r)}(f,u,t)],ye()(c)).filter(Boolean)},Et=function(e){var t,n,r,i={activePage:+(t=e).activePage,boundaryRange:+t.boundaryRange,siblingRange:+t.siblingRange,totalPages:+t.totalPages},o=i.activePage,a=i.totalPages,s=function(e){return function(t){return{active:e===t,type:"pageItem",value:t}}}(o),u=(r=(n=i).boundaryRange,3+2*n.siblingRange+2*r>=n.totalPages?_t(1,a,s):wt(i,s));return[{active:!1,type:"firstItem",value:1},function(e){return{active:!1,type:"prevItem",value:Math.max(1,e-1)}}(o)].concat(ye()(u),[function(e,t){return{active:!1,type:"nextItem",value:Math.min(e+1,t)}}(o,a),function(e){return{active:!1,type:"lastItem",value:e}}(a)])},xt=n(75),Ct=n.n(xt),Tt=["red","orange","yellow","olive","green","teal","blue","violet","purple","pink","brown","grey","black"],kt=["left","right"],St=["mini","tiny","small","medium","large","big","huge","massive"],At=["left","center","right","justified"],Nt=["bottom","middle","top"],Ot=["mobile","tablet","computer","large screen","widescreen"],It=ye()(F()(se)).concat(ye()(F()(se).map(Number)),ye()(Ct()(se))),Pt=["browse","browse right","drop","fade","fade up","fade down","fade left","fade right","fly up","fly down","fly left","fly right","horizontal flip","vertical flip","scale","slide up","slide down","slide left","slide right","swing up","swing down","swing left","swing right","zoom"],Rt=["jiggle","flash","shake","pulse","tada","bounce","glow"],Dt=Pt.concat(Rt),Mt=["american sign language interpreting","assistive listening systems","audio description","blind","braille","closed captioning","closed captioning outline","deaf","low vision","phone volume","question circle","question circle outline","sign language","tty","universal access","wheelchair"],Lt=["angle double down","angle double left","angle double right","angle double up","angle down","angle left","angle right","angle up","arrow alternate circle down","arrow alternate circle down outline","arrow alternate circle left","arrow alternate circle left outline","arrow alternate circle right","arrow alternate circle right outline","arrow alternate circle up","arrow alternate circle up outline","arrow circle down","arrow circle left","arrow circle right","arrow circle up","arrow down","arrow left","arrow right","arrow up","arrows alternate","arrows alternate horizontal","arrows alternate vertical","caret down","caret left","caret right","caret square down","caret square down outline","caret square left","caret square left outline","caret square right","caret square right outline","caret square up","caret square up outline","caret up","cart arrow down","chart line","chevron circle down","chevron circle left","chevron circle right","chevron circle up","chevron down","chevron left","chevron right","chevron up","cloud download","cloud upload","download","exchange","expand arrows alternate","external alternate","external square alternate","hand point down","hand point down outline","hand point left","hand point left outline","hand point right","hand point right outline","hand point up","hand point up outline","hand pointer","hand pointer outline","history","level down alternate","level up alternate","location arrow","long arrow alternate down","long arrow alternate left","long arrow alternate right","long arrow alternate up","mouse pointer","play","random","recycle","redo","redo alternate","reply","reply all","retweet","share","share square","share square outline","sign in alternate","sign out alternate","sort","sort alphabet down","sort alphabet up","sort amount down","sort amount up","sort down","sort numeric down","sort numeric up","sort up","sync","sync alternate","text height","text width","undo","undo alternate","upload"],jt=["audio description","backward","circle","circle outline","closed captioning","closed captioning outline","compress","eject","expand","expand arrows alternate","fast backward","fast forward","file audio","file audio outline","file video","file video outline","film","forward","headphones","microphone","microphone slash","music","pause","pause circle","pause circle outline","phone volume","play","play circle","play circle outline","podcast","random","redo","redo alternate","rss","rss square","step backward","step forward","stop","stop circle","stop circle outline","sync","sync alternate","undo","undo alternate","video","volume down","volume off","volume up"],Ft=["address book","address book outline","address card","address card outline","archive","balance scale","birthday cake","book","briefcase","building","building outline","bullhorn","bullseye","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","certificate","chart area","chart bar","chart bar outline","chart line","chart pie","clipboard","clipboard outline","coffee","columns","compass","compass outline","copy","copy outline","copyright","copyright outline","cut","edit","edit outline","envelope","envelope outline","envelope open","envelope open outline","envelope square","eraser","fax","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","globe","industry","paperclip","paste","pen square","pencil alternate","percent","phone","phone square","phone volume","registered","registered outline","save","save outline","sitemap","sticky note","sticky note outline","suitcase","table","tag","tags","tasks","thumbtack","trademark"],Ut=["chess","chess bishop","chess board","chess king","chess knight","chess pawn","chess queen","chess rook","square full"],Bt=["archive","barcode","bath","bug","code","code branch","coffee","file","file outline","file alternate","file alternate outline","file code","file code outline","filter","fire extinguisher","folder","folder outline","folder open","folder open outline","keyboard","keyboard outline","microchip","qrcode","shield alternate","sitemap","terminal","user secret","window close","window close outline","window maximize","window maximize outline","window minimize","window minimize outline","window restore","window restore outline"],qt=["address book","address book outline","address card","address card outline","american sign language interpreting","assistive listening systems","at","bell","bell outline","bell slash","bell slash outline","bullhorn","comment","comment outline","comment alternate","comment alternate outline","comments","comments outline","envelope","envelope outline","envelope open","envelope open outline","envelope square","fax","inbox","language","microphone","microphone slash","mobile","mobile alternate","paper plane","paper plane outline","phone","phone square","phone volume","rss","rss square","tty","wifi"],Vt=["desktop","download","hdd","hdd outline","headphones","keyboard","keyboard outline","laptop","microchip","mobile","mobile alternate","plug","power off","print","save","save outline","server","tablet","tablet alternate","tv","upload"],Wt=["dollar sign","euro sign","lira sign","money bill alternate","money bill alternate outline","pound sign","ruble sign","rupee sign","shekel sign","won sign","yen sign"],zt=["bell","bell outline","bell slash","bell slash outline","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","clock","clock outline","hourglass","hourglass outline","hourglass end","hourglass half","hourglass start","stopwatch"],Ht=["adjust","clone","clone outline","copy","copy outline","crop","crosshairs","cut","edit","edit outline","eraser","eye","eye dropper","eye slash","eye slash outline","object group","object group outline","object ungroup","object ungroup outline","paint brush","paste","pencil alternate","save","save outline","tint"],Kt=["align center","align justify","align left","align right","bold","clipboard","clipboard outline","clone","clone outline","columns","copy","copy outline","cut","edit","edit outline","eraser","file","file outline","file alternate","file alternate outline","font","heading","i cursor","indent","italic","linkify","list","list alternate","list alternate outline","list ol","list ul","outdent","paper plane","paper plane outline","paperclip","paragraph","paste","pencil alternate","print","quote left","quote right","redo","redo alternate","reply","reply all","share","strikethrough","subscript","superscript","sync","sync alternate","table","tasks","text height","text width","th","th large","th list","trash","trash alternate","trash alternate outline","underline","undo","undo alternate","unlink"],Gt=["archive","clone","clone outline","copy","copy outline","cut","file","file outline","file alternate","file alternate outline","file archive","file archive outline","file audio","file audio outline","file code","file code outline","file excel","file excel outline","file image","file image outline","file pdf","file pdf outline","file powerpoint","file powerpoint outline","file video","file video outline","file word","file word outline","folder","folder outline","folder open","folder open outline","paste","save","save outline","sticky note","sticky note outline"],Qt=["genderless","mars","mars double","mars stroke","mars stroke horizontal","mars stroke vertical","mercury","neuter","transgender","transgender alternate","venus","venus double","venus mars"],Yt=["hand lizard","hand lizard outline","hand paper","hand paper outline","hand peace","hand peace outline","hand point down","hand point down outline","hand point left","hand point left outline","hand point right","hand point right outline","hand point up","hand point up outline","hand pointer","hand pointer outline","hand rock","hand rock outline","hand scissors","hand scissors outline","hand spock","hand spock outline","handshake","handshake outline","thumbs down","thumbs down outline","thumbs up","thumbs up outline"],Xt=["ambulance","h square","heart","heart outline","heartbeat","hospital","hospital outline","medkit","plus square","plus square outline","stethoscope","user md","wheelchair"],Jt=["adjust","bolt","camera","camera retro","clone","clone outline","compress","expand","eye","eye dropper","eye slash","eye slash outline","file image","file image outline","film","id badge","id badge outline","id card","id card outline","image","image outline","images","images outline","sliders horizontal","tint"],$t=["ban","barcode","bars","beer","bell","bell outline","bell slash","bell slash outline","bug","bullhorn","bullseye","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","certificate","check","check circle","check circle outline","check square","check square outline","circle","circle outline","clipboard","clipboard outline","clone","clone outline","cloud","cloud download","cloud upload","coffee","cog","cogs","copy","copy outline","cut","database","dot circle","dot circle outline","download","edit","edit outline","ellipsis horizontal","ellipsis vertical","envelope","envelope outline","envelope open","envelope open outline","eraser","exclamation","exclamation circle","exclamation triangle","external alternate","external square alternate","eye","eye slash","eye slash outline","file","file outline","file alternate","file alternate outline","filter","flag","flag outline","flag checkered","folder","folder outline","folder open","folder open outline","frown","frown outline","hashtag","heart","heart outline","history","home","i cursor","info","info circle","language","magic","meh","meh outline","microphone","microphone slash","minus","minus circle","minus square","minus square outline","paste","pencil alternate","plus","plus circle","plus square","plus square outline","qrcode","question","question circle","question circle outline","quote left","quote right","redo","redo alternate","reply","reply all","rss","rss square","save","save outline","search","search minus","search plus","share","share alternate","share alternate square","share square","share square outline","shield alternate","sign in alternate","sign out alternate","signal","sitemap","sliders horizontal","smile","smile outline","sort","sort alphabet down","sort alphabet up","sort amount down","sort amount up","sort down","sort numeric down","sort numeric up","sort up","star","star outline","star half","star half outline","sync","sync alternate","thumbs down","thumbs down outline","thumbs up","thumbs up outline","times","times circle","times circle outline","toggle off","toggle on","trash","trash alternate","trash alternate outline","trophy","undo","undo alternate","upload","user","user outline","user circle","user circle outline","wifi"],Zt=["box","boxes","clipboard check","clipboard list","dolly","dolly flatbed","pallet","shipping fast","truck","warehouse"],en=["ambulance","anchor","balance scale","bath","bed","beer","bell","bell outline","bell slash","bell slash outline","bicycle","binoculars","birthday cake","blind","bomb","book","bookmark","bookmark outline","briefcase","building","building outline","car","coffee","crosshairs","dollar sign","eye","eye slash","eye slash outline","fighter jet","fire","fire extinguisher","flag","flag outline","flag checkered","flask","gamepad","gavel","gift","glass martini","globe","graduation cap","h square","heart","heart outline","heartbeat","home","hospital","hospital outline","image","image outline","images","images outline","industry","info","info circle","key","leaf","lemon","lemon outline","life ring","life ring outline","lightbulb","lightbulb outline","location arrow","low vision","magnet","male","map","map outline","map marker","map marker alternate","map pin","map signs","medkit","money bill alternate","money bill alternate outline","motorcycle","music","newspaper","newspaper outline","paw","phone","phone square","phone volume","plane","plug","plus","plus square","plus square outline","print","recycle","road","rocket","search","search minus","search plus","ship","shopping bag","shopping basket","shopping cart","shower","street view","subway","suitcase","tag","tags","taxi","thumbtack","ticket alternate","tint","train","tree","trophy","truck","tty","umbrella","university","utensil spoon","utensils","wheelchair","wifi","wrench"],tn=["ambulance","band aid","dna","first aid","heart","heart outline","heartbeat","hospital","hospital outline","hospital symbol","pills","plus","stethoscope","syringe","thermometer","user md","weight"],nn=["ambulance","anchor","archive","balance scale","bath","bed","beer","bell","bell outline","bicycle","binoculars","birthday cake","bomb","book","bookmark","bookmark outline","briefcase","bug","building","building outline","bullhorn","bullseye","bus","calculator","calendar","calendar outline","calendar alternate","calendar alternate outline","camera","camera retro","car","clipboard","clipboard outline","cloud","coffee","cog","cogs","compass","compass outline","copy","copy outline","cube","cubes","cut","envelope","envelope outline","envelope open","envelope open outline","eraser","eye","eye dropper","fax","fighter jet","file","file outline","file alternate","file alternate outline","film","fire","fire extinguisher","flag","flag outline","flag checkered","flask","futbol","futbol outline","gamepad","gavel","gem","gem outline","gift","glass martini","globe","graduation cap","hdd","hdd outline","headphones","heart","heart outline","home","hospital","hospital outline","hourglass","hourglass outline","image","image outline","images","images outline","industry","key","keyboard","keyboard outline","laptop","leaf","lemon","lemon outline","life ring","life ring outline","lightbulb","lightbulb outline","lock","lock open","magic","magnet","map","map outline","map marker","map marker alternate","map pin","map signs","medkit","microchip","microphone","mobile","mobile alternate","money bill alternate","money bill alternate outline","moon","moon outline","motorcycle","newspaper","newspaper outline","paint brush","paper plane","paper plane outline","paperclip","paste","paw","pencil alternate","phone","plane","plug","print","puzzle piece","road","rocket","save","save outline","search","shield alternate","shopping bag","shopping basket","shopping cart","shower","snowflake","snowflake outline","space shuttle","star","star outline","sticky note","sticky note outline","stopwatch","subway","suitcase","sun","sun outline","tablet","tablet alternate","tachometer alternate","tag","tags","taxi","thumbtack","ticket alternate","train","trash","trash alternate","trash alternate outline","tree","trophy","truck","tv","umbrella","university","unlock","unlock alternate","utensil spoon","utensils","wheelchair","wrench"],rn=["bell","bell outline","bookmark","bookmark outline","bullhorn","camera","camera retro","cart arrow down","cart plus","certificate","credit card","credit card outline","gem","gem outline","gift","handshake","handshake outline","heart","heart outline","key","shopping bag","shopping basket","shopping cart","star","star outline","tag","tags","thumbs down","thumbs down outline","thumbs up","thumbs up outline","trophy"],on=["bookmark","bookmark outline","calendar","calendar outline","certificate","circle","circle outline","cloud","comment","comment outline","file","file outline","folder","folder outline","heart","heart outline","map marker","play","square","square outline","star","star outline"],an=["asterisk","certificate","circle notch","cog","compass","compass outline","crosshairs","life ring","life ring outline","snowflake","snowflake outline","spinner","sun","sun outline","sync"],sn=["baseball ball","basketball ball","bowling ball","football ball","futbol","futbol outline","golf ball","hockey puck","quidditch","table tennis","volleyball ball"],un=["ban","battery empty","battery full","battery half","battery quarter","battery three quarters","bell","bell outline","bell slash","bell slash outline","calendar","calendar outline","calendar alternate","calendar alternate outline","calendar check","calendar check outline","calendar minus","calendar minus outline","calendar plus","calendar plus outline","calendar times","calendar times outline","cart arrow down","cart plus","exclamation","exclamation circle","exclamation triangle","eye","eye slash","eye slash outline","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","info","info circle","lock","lock open","minus","minus circle","minus square","minus square outline","plus","plus circle","plus square","plus square outline","question","question circle","question circle outline","shield alternate","shopping cart","sign in alternate","sign out alternate","thermometer empty","thermometer full","thermometer half","thermometer quarter","thermometer three quarters","thumbs down","thumbs down outline","thumbs up","thumbs up outline","toggle off","toggle on","unlock","unlock alternate"],cn=["address book","address book outline","address card","address card outline","bed","blind","child","female","frown","frown outline","id badge","id badge outline","id card","id card outline","male","meh","meh outline","power off","smile","smile outline","street view","user","user outline","user circle","user circle outline","user md","user plus","user secret","user times","users","wheelchair"],ln=["ambulance","bicycle","bus","car","fighter jet","motorcycle","paper plane","paper plane outline","plane","rocket","ship","shopping cart","space shuttle","subway","taxi","train","truck","wheelchair"],fn=["archive","book","bookmark","bookmark outline","edit","edit outline","envelope","envelope outline","envelope open","envelope open outline","eraser","file","file outline","file alternate","file alternate outline","folder","folder outline","folder open","folder open outline","keyboard","keyboard outline","newspaper","newspaper outline","paper plane","paper plane outline","paperclip","paragraph","pen square","pencil alternate","quote left","quote right","sticky note","sticky note outline","thumbtack"],hn=["500px","accessible","accusoft","adn","adversal","affiliatetheme","algolia","amazon","amazon pay","amilia","android","angellist","angrycreative","angular","app store","app store ios","apper","apple","apple pay","asymmetrik","audible","autoprefixer","avianex","aviato","aws","bandcamp","behance","behance square","bimobject","bitbucket","bitcoin","bity","black tie","blackberry","blogger","blogger b","bluetooth","bluetooth b","btc","buromobelexperte","buysellads","cc amazon pay","cc amex","cc apple pay","cc diners club","cc discover","cc jcb","cc mastercard","cc paypal","cc stripe","cc visa","centercode","chrome","cloudscale","cloudsmith","cloudversify","codepen","codiepie","connectdevelop","contao","cpanel","creative commons","css3","css3 alternate","cuttlefish","d and","dashcube","delicious","deploydog","deskpro","deviantart","digg","digital ocean","discord","discourse","dochub","docker","draft2digital","dribbble","dribbble square","dropbox","drupal","dyalog","earlybirds","edge","elementor","ember","empire","envira","erlang","ethereum","etsy","expeditedssl","facebook","facebook f","facebook messenger","facebook square","firefox","first order","firstdraft","flickr","flipboard","fly","font awesome","font awesome alternate","font awesome flag","fonticons","fonticons fi","fort awesome","fort awesome alternate","forumbee","foursquare","free code camp","freebsd","get pocket","gg","gg circle","git","git square","github","github alternate","github square","gitkraken","gitlab","gitter","glide","glide g","gofore","goodreads","goodreads g","google","google drive","google play","google plus","google plus g","google plus square","google wallet","gratipay","grav","gripfire","grunt","gulp","hacker news","hacker news square","hips","hire a helper","hooli","hotjar","houzz","html5","hubspot","imdb","instagram","internet explorer","ioxhost","itunes","itunes note","jenkins","joget","joomla","js","js square","jsfiddle","keycdn","kickstarter","kickstarter k","korvue","laravel","lastfm","lastfm square","leanpub","less","linechat","linkedin","linkedin in","linode","linux","lyft","magento","maxcdn","medapps","medium","medium m","medrt","meetup","microsoft","mix","mixcloud","mizuni","modx","monero","napster","nintendo switch","node","node js","npm","ns8","nutritionix","odnoklassniki","odnoklassniki square","opencart","openid","opera","optin monster","osi","page4","pagelines","palfed","patreon","paypal","periscope","phabricator","phoenix framework","php","pied piper","pied piper alternate","pied piper pp","pinterest","pinterest p","pinterest square","playstation","product hunt","pushed","python","qq","quinscape","quora","ravelry","react","rebel","redriver","reddit","reddit alien","reddit square","rendact","renren","replyd","resolving","rocketchat","rockrms","safari","sass","schlix","scribd","searchengin","sellcast","sellsy","servicestack","shirtsinbulk","simplybuilt","sistrix","skyatlas","skype","slack","slack hash","slideshare","snapchat","snapchat ghost","snapchat square","soundcloud","speakap","spotify","stack exchange","stack overflow","staylinked","steam","steam square","steam symbol","sticker mule","strava","stripe","stripe s","studiovinari","stumbleupon","stumbleupon circle","superpowers","supple","telegram","telegram plane","tencent weibo","themeisle","trello","tripadvisor","tumblr","tumblr square","twitch","twitter","twitter square","typo3","uber","uikit","uniregistry","untappd","usb","ussunnah","vaadin","viacoin","viadeo","viadeo square","viber","vimeo","vimeo square","vimeo v","vine","vk","vnv","vuejs","weibo","weixin","whatsapp","whatsapp square","whmcs","wikipedia w","windows","wordpress","wordpress simple","wpbeginner","wpexplorer","wpforms","xbox","xing","xing square","y combinator","yahoo","yandex","yandex international","yelp","yoast","youtube","youtube square"],pn=Le()(Mt.concat(Lt,jt,Ft,Ut,Bt,qt,Vt,Wt,zt,Ht,Kt,Gt,Qt,Yt,Xt,Jt,$t,Zt,en,tn,nn,rn,on,an,sn,un,cn,ln,fn,hn)),dn=["chess rock","ordered list","unordered list","user doctor","shield","puzzle","credit card amazon pay","credit card american express","credit card diners club","credit card discover","credit card jcb","credit card mastercard","credit card paypal","credit card stripe","credit card visa","add circle","add square","add to calendar","add to cart","add user","add","alarm mute","alarm","ald","als","american express card","american express","amex","announcement","area chart","area graph","arrow down cart","asexual","asl interpreting","asl","assistive listening devices","attach","attention","balance","bar","bathtub","battery four","battery high","battery low","battery medium","battery one","battery three","battery two","battery zero","birthday","block layout","bluetooth alternative","broken chain","browser","call square","call","cancel","cart","cc","chain","chat","checked calendar","checkmark","circle notched","close","cny","cocktail","commenting","computer","configure","content","deafness","delete calendar","delete","detective","diners club card","diners club","discover card","discover","discussions","doctor","dollar","dont","dribble","drivers license","dropdown","eercast","emergency","envira gallery","erase","eur","euro","eyedropper","fa","factory","favorite","feed","female homosexual","file text","find","first aid","five hundred pixels","fork","game","gay","gbp","gittip","google plus circle","google plus official","grab","graduation","grid layout","group","h","hand victory","handicap","hard of hearing","header","help circle","help","heterosexual","hide","hotel","hourglass four","hourglass full","hourglass one","hourglass three","hourglass two","idea","ils","in cart","inr","intergender","intersex","japan credit bureau card","japan credit bureau","jcb","jpy","krw","lab","law","legal","lesbian","lightning","like","line graph","linkedin square","linkify","lira","list layout","magnify","mail forward","mail square","mail","male homosexual","man","marker","mars alternate","mars horizontal","mars vertical","mastercard card","mastercard","microsoft edge","military","ms edge","mute","new pied piper","non binary transgender","numbered list","optinmonster","options","other gender horizontal","other gender vertical","other gender","payment","paypal card","pencil square","photo","picture","pie chart","pie graph","pied piper hat","pin","plus cart","pocket","point","pointing down","pointing left","pointing right","pointing up","pound","power cord","power","privacy","r circle","rain","record","refresh","remove circle","remove from calendar","remove user","remove","repeat","rmb","rouble","rub","ruble","rupee","s15","selected radio","send","setting","settings","shekel","sheqel","shipping","shop","shuffle","shutdown","sidebar","signing","signup","sliders","soccer","sort alphabet ascending","sort alphabet descending","sort ascending","sort content ascending","sort content descending","sort descending","sort numeric ascending","sort numeric descending","sound","spy","stripe card","student","talk","target","teletype","television","text cursor","text telephone","theme isle","theme","thermometer","thumb tack","time","tm","toggle down","toggle left","toggle right","toggle up","translate","travel","treatment","triangle down","triangle left","triangle right","triangle up","try","unhide","unlinkify","unmute","usd","user cancel","user close","user delete","user x","vcard","video camera","video play","visa card","visa","volume control phone","wait","warning circle","warning sign","warning","wechat","wi-fi","wikipedia","winner","wizard","woman","won","wordpress beginner","wordpress forms","world","write square","x","yc","ycombinator","yen","zip","zoom in","zoom out","zoom","bitbucket square","checkmark box","circle thin","cloud download","cloud upload","compose","conversation","credit card alternative","currency","dashboard","diamond","disk","exchange","external share","external square","external","facebook official","food","hourglass zero","level down","level up","log out","meanpath","money","move","pencil","protect","radio","remove bookmark","resize horizontal","resize vertical","sign in","sign out","spoon","star half empty","star half full","ticket","times rectangle","write","youtube play"],vn=Le()(ye()(pn).concat(dn)),mn=["left dropdown"],yn=Le()(ye()(vn).concat(mn)),gn=function(e,t){return"number"==typeof e||"string"==typeof e?e:e[t]},bn=n(149),_n=n.n(bn),wn=(n(302),n(202)),En=n.n(wn).a,xn=n(16),Cn=n.n(xn);function Tn(e){var t=e.children,n=e.className,i=e.content,o=e.size,s=Qe()(o,"icons",n),u=rt(Tn,e),c=it(Tn,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}Tn.handledProps=["as","children","className","content","size"],Tn.propTypes={},Tn.defaultProps={as:"i"};var kn=Tn,Sn=function(e){function t(){return u()(this,t),h()(this,d()(t).apply(this,arguments))}return m()(t,e),l()(t,[{key:"shouldComponentUpdate",value:function(e){return!En(this.props,e)}},{key:"getIconAriaOptions",value:function(){var e={};return this.props["aria-label"]||(e["aria-hidden"]="true"),e}},{key:"render",value:function(){var e=this.props,n=e.bordered,r=e.circular,i=e.className,o=e.color,s=e.corner,u=e.disabled,c=e.fitted,l=e.flipped,f=e.inverted,h=e.link,p=e.loading,d=e.name,v=e.rotated,m=e.size,y=Qe()(o,d,m,ce(n,"bordered"),ce(r,"circular"),ce(s,"corner"),ce(u,"disabled"),ce(c,"fitted"),ce(f,"inverted"),ce(h,"link"),ce(p,"loading"),le(l,"flipped"),le(v,"rotated"),"icon",i),g=rt(t,this.props),b=it(t,this.props),_=this.getIconAriaOptions();return k.a.createElement(b,a()({},g,_,{className:y}))}}]),t}(T.Component);_()(Sn,"defaultProps",{as:"i"}),_()(Sn,"Group",kn),_()(Sn,"handledProps",["aria-label","as","bordered","circular","className","color","corner","disabled","fitted","flipped","inverted","link","loading","name","rotated","size"]),Sn.propTypes={},Sn.create=Xe(Sn,function(e){return{name:e}});var An=Sn,Nn=n(17),On=n.n(Nn),In=n(86),Pn=n.n(In),Rn=function(e){function t(){return u()(this,t),h()(this,d()(t).apply(this,arguments))}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){var e=this.props.innerRef;e&&e(Object(In.findDOMNode)(this))}},{key:"render",value:function(){var e=this.props.children;return T.Children.only(e)}}]),t}(T.Component);_()(Rn,"handledProps",["children","innerRef"]),Rn.propTypes={};var Dn=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleDocumentClick",function(e){var t=r.props,n=t.closeOnDocumentClick,i=t.closeOnRootNodeClick;if(r.rootNode&&r.portalNode&&!dt(r.triggerNode,e)&&!dt(r.portalNode,e)){var o=dt(r.rootNode,e);(n&&!o||i&&o)&&r.close(e)}}),_()(g()(g()(r)),"handleEscape",function(e){r.props.closeOnEscape&&On.a.getCode(e)===On.a.Escape&&r.close(e)}),_()(g()(g()(r)),"handlePortalMouseLeave",function(e){var t=r.props,n=t.closeOnPortalMouseLeave,i=t.mouseLeaveDelay;n&&(r.mouseLeaveTimer=r.closeWithTimeout(e,i))}),_()(g()(g()(r)),"handlePortalMouseEnter",function(){r.props.closeOnPortalMouseLeave&&clearTimeout(r.mouseLeaveTimer)}),_()(g()(g()(r)),"handleTriggerBlur",function(e){for(var t=r.props,n=t.trigger,i=t.closeOnTriggerBlur,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];C.a.apply(void 0,[n,"props.onBlur",e].concat(a));var u=C()(g()(g()(r)),"rootNode.contains",e.relatedTarget);i&&!u&&r.close(e)}),_()(g()(g()(r)),"handleTriggerClick",function(e){for(var t=r.props,n=t.trigger,i=t.closeOnTriggerClick,o=t.openOnTriggerClick,a=r.state.open,s=arguments.length,u=new Array(s>1?s-1:0),c=1;c<s;c++)u[c-1]=arguments[c];C.a.apply(void 0,[n,"props.onClick",e].concat(u)),a&&i?r.close(e):!a&&o&&r.open(e)}),_()(g()(g()(r)),"handleTriggerFocus",function(e){for(var t=r.props,n=t.trigger,i=t.openOnTriggerFocus,o=arguments.length,a=new Array(o>1?o-1:0),s=1;s<o;s++)a[s-1]=arguments[s];C.a.apply(void 0,[n,"props.onFocus",e].concat(a)),i&&r.open(e)}),_()(g()(g()(r)),"handleTriggerMouseLeave",function(e){clearTimeout(r.mouseEnterTimer);for(var t=r.props,n=t.trigger,i=t.closeOnTriggerMouseLeave,o=t.mouseLeaveDelay,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];C.a.apply(void 0,[n,"props.onMouseLeave",e].concat(s)),i&&(r.mouseLeaveTimer=r.closeWithTimeout(e,o))}),_()(g()(g()(r)),"handleTriggerMouseEnter",function(e){clearTimeout(r.mouseLeaveTimer);for(var t=r.props,n=t.trigger,i=t.mouseEnterDelay,o=t.openOnTriggerMouseEnter,a=arguments.length,s=new Array(a>1?a-1:0),u=1;u<a;u++)s[u-1]=arguments[u];C.a.apply(void 0,[n,"props.onMouseEnter",e].concat(s)),o&&(r.mouseEnterTimer=r.openWithTimeout(e,i))}),_()(g()(g()(r)),"open",function(e){var t=r.props.onOpen;t&&t(e,r.props),r.trySetState({open:!0})}),_()(g()(g()(r)),"openWithTimeout",function(e,t){var n=A()({},e);return setTimeout(function(){return r.open(n)},t||0)}),_()(g()(g()(r)),"close",function(e){var t=r.props.onClose;t&&t(e,r.props),r.trySetState({open:!1})}),_()(g()(g()(r)),"closeWithTimeout",function(e,t){var n=A()({},e);return setTimeout(function(){return r.close(n)},t||0)}),_()(g()(g()(r)),"attachRenderSubTreeSubscribers",function(e){if(!r.rootNode)return null;r.portalNode=r.rootNode.firstElementChild,De.sub("mouseleave",r.handlePortalMouseLeave,{pool:e,target:r.portalNode}),De.sub("mouseenter",r.handlePortalMouseEnter,{pool:e,target:r.portalNode})}),_()(g()(g()(r)),"mountPortal",function(){if(ke()&&!r.rootNode){var e=r.props,t=e.eventPool,n=e.mountNode,i=void 0===n?ke()?document.body:null:n,o=e.prepend;r.rootNode=document.createElement("div"),o?i.insertBefore(r.rootNode,i.firstElementChild):i.appendChild(r.rootNode),De.sub("click",r.handleDocumentClick,{pool:t}),De.sub("keydown",r.handleEscape,{pool:t}),C()(r.props,"onMount",null,r.props)}}),_()(g()(g()(r)),"unmountPortal",function(){if(ke()&&r.rootNode){var e=r.props.eventPool;Pn.a.unmountComponentAtNode(r.rootNode),r.rootNode.parentNode.removeChild(r.rootNode),De.unsub("mouseleave",r.handlePortalMouseLeave,{pool:e,target:r.portalNode}),De.unsub("mouseenter",r.handlePortalMouseEnter,{pool:e,target:r.portalNode}),r.rootNode=null,r.portalNode=null,De.unsub("click",r.handleDocumentClick,{pool:e}),De.unsub("keydown",r.handleEscape,{pool:e}),C()(r.props,"onUnmount",null,r.props)}}),_()(g()(g()(r)),"handleRef",function(e){return r.triggerNode=e}),n))}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.renderPortal()}},{key:"componentDidUpdate",value:function(e,t){this.renderPortal(),t.open&&!this.state.open&&this.unmountPortal()}},{key:"componentWillUnmount",value:function(){this.unmountPortal(),clearTimeout(this.mouseEnterTimer),clearTimeout(this.mouseLeaveTimer)}},{key:"renderPortal",value:function(){var e=this;if(this.state.open){var t=this.props,n=t.children,r=t.className,i=t.eventPool,o=t.style;if(this.mountPortal(),!ke())return null;this.rootNode.className=r||"",this.rootNode.style=o||"",this.portalNode&&(De.unsub("mouseleave",this.handlePortalMouseLeave,{pool:i,target:this.portalNode}),De.unsub("mouseenter",this.handlePortalMouseEnter,{pool:i,target:this.portalNode})),Pn.a.unstable_renderSubtreeIntoContainer(this,T.Children.only(n),this.rootNode,function(){return e.attachRenderSubTreeSubscribers(i)})}}},{key:"render",value:function(){var e=this.props.trigger;return e?k.a.createElement(Rn,{innerRef:this.handleRef},Object(T.cloneElement)(e,{onBlur:this.handleTriggerBlur,onClick:this.handleTriggerClick,onFocus:this.handleTriggerFocus,onMouseLeave:this.handleTriggerMouseLeave,onMouseEnter:this.handleTriggerMouseEnter})):null}}]),t}(V);_()(Dn,"defaultProps",{closeOnDocumentClick:!0,closeOnEscape:!0,eventPool:"default",openOnTriggerClick:!0}),_()(Dn,"autoControlledProps",["open"]),_()(Dn,"handledProps",["children","className","closeOnDocumentClick","closeOnEscape","closeOnPortalMouseLeave","closeOnRootNodeClick","closeOnTriggerBlur","closeOnTriggerClick","closeOnTriggerMouseLeave","defaultOpen","eventPool","mountNode","mouseEnterDelay","mouseLeaveDelay","onClose","onMount","onOpen","onUnmount","open","openOnTriggerClick","openOnTriggerFocus","openOnTriggerMouseEnter","prepend","style","trigger"]),Dn.propTypes={};var Mn=Dn;function Ln(e){var t=e.blurring,n=e.className,i=e.children,o=e.content,s=e.dimmed,u=Qe()(ce(t,"blurring"),ce(s,"dimmed"),"dimmable",n),c=rt(Ln,e),l=it(Ln,e);return k.a.createElement(l,a()({},c,{className:u}),r.isNil(i)?o:i)}Ln.handledProps=["as","blurring","children","className","content","dimmed"],Ln.propTypes={};var jn=Ln,Fn=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){C()(r.props,"onClick",e,r.props),r.contentRef&&r.contentRef!==e.target&&dt(r.contentRef,e)||C()(r.props,"onClickOutside",e,r.props)}),_()(g()(g()(r)),"handleRef",function(e){return r.ref=e}),_()(g()(g()(r)),"handleContentRef",function(e){return r.contentRef=e}),n))}return m()(t,e),l()(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.active;this.props.active!==t&&this.toggleStyles(t)}},{key:"componentDidMount",value:function(){var e=this.props.active;this.toggleStyles(e)}},{key:"toggleStyles",value:function(e){this.ref&&(e?this.ref.style.setProperty("display","flex","important"):this.ref.style.removeProperty("display"))}},{key:"render",value:function(){var e=this.props,n=e.active,i=e.children,o=e.className,s=e.content,u=e.disabled,c=e.inverted,l=e.page,f=e.simple,h=e.verticalAlign,p=Qe()("ui",ce(n,"active transition visible"),ce(u,"disabled"),ce(c,"inverted"),ce(l,"page"),ce(f,"simple"),de(h),"dimmer",o),d=rt(t,this.props),v=it(t,this.props),m=r.isNil(i)?s:i;return k.a.createElement(v,a()({},d,{className:p,onClick:this.handleClick,ref:this.handleRef}),m&&k.a.createElement("div",{className:"content",ref:this.handleContentRef},m))}}]),t}(T.Component);_()(Fn,"handledProps",["active","as","children","className","content","disabled","inverted","onClick","onClickOutside","page","simple","verticalAlign"]),Fn.propTypes={};var Un=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handlePortalMount",function(){ke()&&(document.body.classList.add("dimmed"),document.body.classList.add("dimmable"))}),_()(g()(g()(r)),"handlePortalUnmount",function(){ke()&&(document.body.classList.remove("dimmed"),document.body.classList.remove("dimmable"))}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.page,i=rt(t,this.props);return r?k.a.createElement(Mn,{closeOnEscape:!1,closeOnDocumentClick:!1,onMount:this.handlePortalMount,onUnmount:this.handlePortalUnmount,open:n,openOnTriggerClick:!1},k.a.createElement(Fn,a()({},i,{active:n,page:r}))):k.a.createElement(Fn,a()({},i,{active:n,page:r}))}}]),t}(T.Component);function Bn(e){var t=e.children,n=e.className,i=e.content,o=e.size,s=Qe()("ui",o,n,"images"),u=rt(Bn,e),c=it(Bn,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}_()(Un,"Dimmable",jn),_()(Un,"Inner",Fn),_()(Un,"handledProps",["active","page"]),Un.propTypes={},Un.create=Xe(Un,function(e){return{content:e}}),Bn.handledProps=["as","children","className","content","size"],Bn.propTypes={};var qn=Bn,Vn=["alt","height","src","srcSet","width"];function Wn(e){var t=e.avatar,n=e.bordered,i=e.centered,o=e.children,s=e.circular,u=e.className,c=e.content,l=e.dimmer,f=e.disabled,h=e.floated,p=e.fluid,d=e.hidden,v=e.href,m=e.inline,y=e.label,g=e.rounded,b=e.size,_=e.spaced,w=e.verticalAlign,E=e.wrapped,x=e.ui,C=Qe()(ce(x,"ui"),b,ce(t,"avatar"),ce(n,"bordered"),ce(s,"circular"),ce(i,"centered"),ce(f,"disabled"),ce(p,"fluid"),ce(d,"hidden"),ce(m,"inline"),ce(g,"rounded"),fe(_,"spaced"),le(h,"floated"),de(w,"aligned"),"image",u),T=rt(Wn,e),S=ct(T,{htmlProps:Vn}),A=z()(S,2),N=A[0],O=A[1],I=it(Wn,e,function(){if(!(xe()(l)&&xe()(y)&&xe()(E)&&r.isNil(o)))return"div"});return r.isNil(o)?r.isNil(c)?"img"===I?k.a.createElement(I,a()({},O,N,{className:C})):k.a.createElement(I,a()({},O,{className:C,href:v}),Un.create(l,{autoGenerateKey:!1}),Yn.create(y,{autoGenerateKey:!1}),k.a.createElement("img",N)):k.a.createElement(I,a()({},T,{className:C}),c):k.a.createElement(I,a()({},T,{className:C}),o)}Wn.handledProps=["as","avatar","bordered","centered","children","circular","className","content","dimmer","disabled","floated","fluid","hidden","href","inline","label","rounded","size","spaced","ui","verticalAlign","wrapped"],Wn.Group=qn,Wn.propTypes={},Wn.defaultProps={as:"img",ui:!0},Wn.create=Xe(Wn,function(e){return{src:e}});var zn=Wn;function Hn(e){var t=e.children,n=e.className,i=e.content,o=Qe()("detail",n),s=rt(Hn,e),u=it(Hn,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Hn.handledProps=["as","children","className","content"],Hn.propTypes={},Hn.create=Xe(Hn,function(e){return{content:e}});var Kn=Hn;function Gn(e){var t=e.children,n=e.circular,i=e.className,o=e.color,s=e.content,u=e.size,c=e.tag,l=Qe()("ui",o,u,ce(n,"circular"),ce(c,"tag"),"labels",i),f=rt(Gn,e),h=it(Gn,e);return k.a.createElement(h,a()({},f,{className:l}),r.isNil(t)?s:t)}Gn.handledProps=["as","children","circular","className","color","content","size","tag"],Gn.propTypes={};var Qn=Gn,Yn=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){var t=r.props.onClick;t&&t(e,r.props)}),_()(g()(g()(r)),"handleIconOverrides",function(e){return{onClick:function(t){C()(e,"onClick",t),C()(r.props,"onRemove",t,r.props)}}}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.attached,o=e.basic,s=e.children,u=e.circular,c=e.className,l=e.color,f=e.content,h=e.corner,p=e.detail,d=e.empty,v=e.floating,m=e.horizontal,y=e.icon,g=e.image,b=e.onRemove,_=e.pointing,w=e.removeIcon,E=e.ribbon,x=e.size,C=e.tag,T=(!0===_?"pointing":("left"===_||"right"===_)&&"".concat(_," pointing"))||("above"===_||"below"===_)&&"pointing ".concat(_),S=Qe()("ui",l,T,x,ce(n,"active"),ce(o,"basic"),ce(u,"circular"),ce(d,"empty"),ce(v,"floating"),ce(m,"horizontal"),ce(!0===g,"image"),ce(C,"tag"),fe(h,"corner"),fe(E,"ribbon"),le(i,"attached"),"label",c),A=rt(t,this.props),N=it(t,this.props);if(!r.isNil(s))return k.a.createElement(N,a()({},A,{className:S,onClick:this.handleClick}),s);var O=P()(w)?"delete":w;return k.a.createElement(N,a()({className:S,onClick:this.handleClick},A),An.create(y,{autoGenerateKey:!1}),"boolean"!=typeof g&&zn.create(g,{autoGenerateKey:!1}),f,Kn.create(p,{autoGenerateKey:!1}),b&&An.create(O,{autoGenerateKey:!1,overrideProps:this.handleIconOverrides}))}}]),t}(T.Component);function Xn(e){var t=e.children,n=e.className,i=e.content,o=e.hidden,s=e.visible,u=Qe()(ce(s,"visible"),ce(o,"hidden"),"content",n),c=rt(Xn,e),l=it(Xn,e);return k.a.createElement(l,a()({},c,{className:u}),r.isNil(t)?i:t)}_()(Yn,"Detail",Kn),_()(Yn,"Group",Qn),_()(Yn,"handledProps",["active","as","attached","basic","children","circular","className","color","content","corner","detail","empty","floating","horizontal","icon","image","onClick","onRemove","pointing","removeIcon","ribbon","size","tag"]),Yn.propTypes={},Yn.create=Xe(Yn,function(e){return{content:e}}),Xn.handledProps=["as","children","className","content","hidden","visible"],Xn.propTypes={};var Jn=Xn;function $n(e){var t=e.attached,n=e.basic,i=e.buttons,o=e.children,s=e.className,u=e.color,c=e.compact,l=e.content,f=e.floated,h=e.fluid,p=e.icon,d=e.inverted,v=e.labeled,m=e.negative,y=e.positive,g=e.primary,b=e.secondary,_=e.size,w=e.toggle,E=e.vertical,x=e.widths,C=Qe()("ui",u,_,ce(n,"basic"),ce(c,"compact"),ce(h,"fluid"),ce(p,"icon"),ce(d,"inverted"),ce(v,"labeled"),ce(m,"negative"),ce(y,"positive"),ce(g,"primary"),ce(b,"secondary"),ce(w,"toggle"),ce(E,"vertical"),fe(t,"attached"),le(f,"floated"),ve(x),"buttons",s),T=rt($n,e),S=it($n,e);return xe()(i)?k.a.createElement(S,a()({},T,{className:C}),r.isNil(o)?l:o):k.a.createElement(S,a()({},T,{className:C}),bt()(i,function(e){return rr.create(e)}))}$n.handledProps=["as","attached","basic","buttons","children","className","color","compact","content","floated","fluid","icon","inverted","labeled","negative","positive","primary","secondary","size","toggle","vertical","widths"],$n.propTypes={};var Zn=$n;function er(e){var t=e.className,n=e.text,r=Qe()("or",t),i=rt(er,e),o=it(er,e);return k.a.createElement(o,a()({},i,{className:r,"data-text":n}))}er.handledProps=["as","className","text"],er.propTypes={};var tr=er,nr=function(e){function t(){var e,n,i;u()(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return h()(i,(n=i=h()(this,(e=d()(t)).call.apply(e,[this].concat(a))),_()(g()(g()(i)),"computeElementType",function(){var e=i.props,t=e.attached,n=e.label;if(!xe()(t)||!xe()(n))return"div"}),_()(g()(g()(i)),"computeTabIndex",function(e){var t=i.props,n=t.disabled,r=t.tabIndex;return xe()(r)?n?-1:"div"===e?0:void 0:r}),_()(g()(g()(i)),"focus",function(){return C()(i.ref,"focus")}),_()(g()(g()(i)),"handleClick",function(e){i.props.disabled?e.preventDefault():C()(i.props,"onClick",e,i.props)}),_()(g()(g()(i)),"handleRef",function(e){return i.ref=e}),_()(g()(g()(i)),"hasIconClass",function(){var e=i.props,t=e.labelPosition,n=e.children,o=e.content,a=e.icon;return!0===a||a&&(t||r.isNil(n)&&xe()(o))}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.animated,o=e.attached,s=e.basic,u=e.children,c=e.circular,l=e.className,f=e.color,h=e.compact,p=e.content,d=e.disabled,v=e.floated,m=e.fluid,y=e.icon,g=e.inverted,b=e.label,_=e.labelPosition,w=e.loading,E=e.negative,x=e.positive,C=e.primary,T=e.secondary,S=e.role,A=e.size,N=e.toggle,O=Qe()(f,A,ce(n,"active"),ce(s,"basic"),ce(c,"circular"),ce(h,"compact"),ce(m,"fluid"),ce(this.hasIconClass(),"icon"),ce(g,"inverted"),ce(w,"loading"),ce(E,"negative"),ce(x,"positive"),ce(C,"primary"),ce(T,"secondary"),ce(N,"toggle"),fe(i,"animated"),fe(o,"attached")),I=Qe()(fe(_||!!b,"labeled")),P=Qe()(ce(d,"disabled"),le(v,"floated")),R=rt(t,this.props),D=it(t,this.props,this.computeElementType),M=this.computeTabIndex(D);if(!xe()(b)){var L=Qe()("ui",O,"button",l),j=Qe()("ui",I,"button",l,P),F=Yn.create(b,{defaultProps:{basic:!0,pointing:"left"===_?"right":"left"},autoGenerateKey:!1});return k.a.createElement(D,a()({},R,{className:j,onClick:this.handleClick}),"left"===_&&F,k.a.createElement("button",{className:L,disabled:d,ref:this.handleRef,tabIndex:M},An.create(y,{autoGenerateKey:!1})," ",p),("right"===_||!_)&&F)}var U=Qe()("ui",O,P,I,"button",l),B=!r.isNil(u);return k.a.createElement(D,a()({},R,{className:U,disabled:d&&"button"===D||void 0,onClick:this.handleClick,ref:this.handleRef,role:S,tabIndex:M}),B&&u,!B&&An.create(y,{autoGenerateKey:!1}),!B&&p)}}]),t}(T.Component);_()(nr,"defaultProps",{as:"button",role:"button"}),_()(nr,"Content",Jn),_()(nr,"Group",Zn),_()(nr,"Or",tr),_()(nr,"handledProps",["active","animated","as","attached","basic","children","circular","className","color","compact","content","disabled","floated","fluid","icon","inverted","label","labelPosition","loading","negative","onClick","positive","primary","role","secondary","size","tabIndex","toggle"]),nr.propTypes={},nr.create=Xe(nr,function(e){return{content:e}});var rr=nr,ir=n(102),or=n.n(ir),ar=n(61),sr=n.n(ar),ur=function(e){var t=e.node;if(ke())return xe()(t)?document.body:t},cr=n(301),lr=n.n(cr),fr=n(300),hr=n.n(fr),pr=n(299),dr=n.n(pr),vr=n(298),mr=n.n(vr),yr=n(297),gr=n.n(yr),br=n(296),_r=n.n(br),wr=we()(_r.a,be()("props.className"),gr()(mr()(/\s+/)),dr()(hr.a),lr.a),Er=function(e,t){return[O()(t,e),O()(e,t)]},xr=new Map,Cr=function(e,t){var n=wr(t),r=Er(xr.get(e),n),i=z()(r,2),o=i[0],a=i[1];K()(o,function(t){return e.classList.add(t)}),K()(a,function(t){return e.classList.remove(t)}),xr.set(e,n)},Tr=new function e(){var t=this;u()(this,e),_()(this,"add",function(e,n){t.nodes.has(e)?t.nodes.get(e).add(n):t.nodes.set(e,new Set([n]))}),_()(this,"del",function(e,n){if(t.nodes.has(e)){var r=t.nodes.get(e);1!==r.size?r.delete(n):t.nodes.delete(e)}}),_()(this,"emit",function(e,n){n(e,t.nodes.get(e))}),this.nodes=new Map},kr=function(e){function t(){return u()(this,t),h()(this,d()(t).apply(this,arguments))}return m()(t,e),l()(t,[{key:"shouldComponentUpdate",value:function(e){return e.className!==this.props.className}},{key:"componentWillMount",value:function(){var e=ur(this.props);e&&(Tr.add(e,this),Tr.emit(e,Cr))}},{key:"componentDidUpdate",value:function(){var e=ur(this.props);e&&Tr.emit(e,Cr)}},{key:"componentWillUnmount",value:function(){var e=ur(this.props);e&&(Tr.del(e,this),Tr.emit(e,Cr))}},{key:"render",value:function(){return null}}]),t}(T.Component);function Sr(e){var t=e.children,n=e.className,i=e.content,o=Qe()(n,"header"),s=rt(Sr,e),u=it(Sr,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}_()(kr,"handledProps",["className","node"]),kr.propTypes={},Sr.handledProps=["as","children","className","content"],Sr.propTypes={},Sr.create=Xe(Sr,function(e){return{content:e}});var Ar=Sr;function Nr(e){var t=e.children,n=e.className,i=e.content,o=e.image,s=e.scrolling,u=Qe()(n,ce(o,"image"),ce(s,"scrolling"),"content"),c=rt(Nr,e),l=it(Nr,e);return k.a.createElement(l,a()({},c,{className:u}),r.isNil(t)?i:t)}Nr.handledProps=["as","children","className","content","image","scrolling"],Nr.propTypes={},Nr.create=Xe(Nr,function(e){return{content:e}});var Or=Nr,Ir=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleButtonOverrides",function(e){return{onClick:function(t,n){C()(e,"onClick",t,n),C()(r.props,"onActionClick",t,n)}}}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this,n=this.props,i=n.actions,o=n.children,s=n.className,u=n.content,c=Qe()("actions",s),l=rt(t,this.props),f=it(t,this.props);return r.isNil(o)?r.isNil(u)?k.a.createElement(f,a()({},l,{className:c}),bt()(i,function(t){return rr.create(t,{overrideProps:e.handleButtonOverrides})})):k.a.createElement(f,a()({},l,{className:c}),u):k.a.createElement(f,a()({},l,{className:c}),o)}}]),t}(T.Component);function Pr(e){var t=e.children,n=e.className,i=e.content,o=Qe()("description",n),s=rt(Pr,e),u=it(Pr,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}_()(Ir,"handledProps",["actions","as","children","className","content","onActionClick"]),Ir.propTypes={},Ir.create=Xe(Ir,function(e){return{actions:e}}),Pr.handledProps=["as","children","className","content"],Pr.propTypes={};var Rr=Pr,Dr=function(e){function t(){var e,n,i;u()(this,t);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return h()(i,(n=i=h()(this,(e=d()(t)).call.apply(e,[this].concat(s))),_()(g()(g()(i)),"getMountNode",function(){return ke()?i.props.mountNode||document.body:null}),_()(g()(g()(i)),"handleActionsOverrides",function(e){return{onActionClick:function(t,n){C()(e,"onActionClick",t,n),C()(i.props,"onActionClick",t,i.props),i.handleClose(t)}}}),_()(g()(g()(i)),"handleClose",function(e){C()(i.props,"onClose",e,i.props),i.trySetState({open:!1})}),_()(g()(g()(i)),"handleIconOverrides",function(e){return{onClick:function(t){C()(e,"onClick",t),i.handleClose(t)}}}),_()(g()(g()(i)),"handleOpen",function(e){C()(i.props,"onOpen",e,i.props),i.trySetState({open:!0})}),_()(g()(g()(i)),"handlePortalMount",function(e){i.setState({scrolling:!1}),i.setPositionAndClassNames(),C()(i.props,"onMount",e,i.props)}),_()(g()(g()(i)),"handlePortalUnmount",function(e){cancelAnimationFrame(i.animationRequestId),C()(i.props,"onUnmount",e,i.props)}),_()(g()(g()(i)),"handleRef",function(e){return i.ref=e}),_()(g()(g()(i)),"handlePortalRef",function(e){return i.portalRef=e}),_()(g()(g()(i)),"setRootNodeStyle",function(){i.portalRef&&i.portalRef&&i.portalRef.rootNode.style.setProperty("display","flex","important")}),_()(g()(g()(i)),"setPositionAndClassNames",function(){var e,t=i.props.dimmer;t&&(e="dimmable dimmed","blurring"===t&&(e+=" blurring"));var n={};if(i.ref){var r=i.ref.getBoundingClientRect().height>=window.innerHeight;null!==i.state.marginTop&&(n.marginTop=null),i.state.scrolling!==r&&(n.scrolling=r),r&&(e+=" scrolling")}i.state.mountClasses!==e&&(n.mountClasses=e),L()(n)||i.setState(n),i.animationRequestId=requestAnimationFrame(i.setPositionAndClassNames),i.setRootNodeStyle()}),_()(g()(g()(i)),"renderContent",function(e){var n=i.props,o=n.actions,s=n.basic,u=n.children,c=n.className,l=n.closeIcon,f=n.content,h=n.header,p=n.mountNode,d=n.size,v=n.style,m=i.state,y=m.marginTop,g=m.mountClasses,b=m.scrolling,_=Qe()("ui",d,ce(s,"basic"),ce(b,"scrolling"),"modal transition visible active",c),w=it(t,i.props),E=!0===l?"close":l,x=An.create(E,{overrideProps:i.handleIconOverrides});return r.isNil(u)?k.a.createElement(Rn,{innerRef:i.handleRef},k.a.createElement(w,a()({},e,{className:_,style:A()({marginTop:y},v)}),k.a.createElement(kr,{className:g,node:p}),x,Ar.create(h,{autoGenerateKey:!1}),Or.create(f,{autoGenerateKey:!1}),Ir.create(o,{overrideProps:i.handleActionsOverrides}))):k.a.createElement(Rn,{innerRef:i.handleRef},k.a.createElement(w,a()({},e,{className:_,style:A()({marginTop:y},v)}),k.a.createElement(kr,{className:g,node:p}),x,u))}),n))}return m()(t,e),l()(t,[{key:"componentWillUnmount",value:function(){this.handlePortalUnmount()}},{key:"render",value:function(){var e=this.state.open,n=this.props,r=n.centered,i=n.closeOnDimmerClick,o=n.closeOnDocumentClick,s=n.dimmer,u=n.eventPool,c=n.trigger,l=this.getMountNode();if(!ke())return Object(T.isValidElement)(c)?c:null;var f=rt(t,this.props),h=Mn.handledProps,p=sr()(f,function(e,t,n){return at()(h,n)||(e[n]=t),e},{}),d=or()(f,h),v=s?Qe()("ui","inverted"===s&&"inverted",!r&&"top aligned","page modals dimmer transition visible active"):null;return k.a.createElement(Mn,a()({closeOnDocumentClick:o,closeOnRootNodeClick:i},d,{trigger:c,className:v,eventPool:u,mountNode:l,open:e,onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount,ref:this.handlePortalRef}),this.renderContent(p))}}]),t}(V);_()(Dr,"defaultProps",{centered:!0,dimmer:!0,closeOnDimmerClick:!0,closeOnDocumentClick:!1,eventPool:"Modal"}),_()(Dr,"autoControlledProps",["open"]),_()(Dr,"Header",Ar),_()(Dr,"Content",Or),_()(Dr,"Description",Rr),_()(Dr,"Actions",Ir),_()(Dr,"handledProps",["actions","as","basic","centered","children","className","closeIcon","closeOnDimmerClick","closeOnDocumentClick","content","defaultOpen","dimmer","eventPool","header","mountNode","onActionClick","onClose","onMount","onOpen","onUnmount","open","size","style","trigger"]),Dr.propTypes={};var Mr=Dr,Lr=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleCancel",function(e){C()(r.props,"onCancel",e,r.props)}),_()(g()(g()(r)),"handleCancelOverrides",function(e){return{onClick:function(t,n){C()(e,"onClick",t,n),r.handleCancel(t)}}}),_()(g()(g()(r)),"handleConfirmOverrides",function(e){return{onClick:function(t,n){C()(e,"onClick",t,n),C()(r.props,"onConfirm",t,r.props)}}}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.cancelButton,r=e.confirmButton,i=e.content,o=e.header,s=e.open,u=e.size,c=rt(t,this.props),l={};return E()(this.props,"open")&&(l.open=s),k.a.createElement(Mr,a()({},c,l,{size:u,onClose:this.handleCancel}),Mr.Header.create(o,{autoGenerateKey:!1}),Mr.Content.create(i,{autoGenerateKey:!1}),k.a.createElement(Mr.Actions,null,rr.create(n,{autoGenerateKey:!1,overrideProps:this.handleCancelOverrides}),rr.create(r,{autoGenerateKey:!1,defaultProps:{primary:!0},overrideProps:this.handleConfirmOverrides})))}}]),t}(T.Component);_()(Lr,"defaultProps",{cancelButton:"Cancel",confirmButton:"OK",content:"Are you sure?",size:"small"}),_()(Lr,"handledProps",["cancelButton","confirmButton","content","header","onCancel","onConfirm","open","size"]),Lr.propTypes={};var jr=Lr;function Fr(e){var t=e.children,n=e.className,i=e.content,o=Qe()("header",n),s=rt(Fr,e),u=it(Fr,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Fr.handledProps=["as","children","className","content"],Fr.propTypes={};var Ur=Fr,Br=n(295),qr=n.n(Br),Vr=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){r.props.disabled||C()(r.props,"onClick",e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.children,o=e.className,s=e.color,u=e.content,c=e.disabled,l=e.fitted,f=e.header,h=e.icon,p=e.link,d=e.name,v=e.onClick,m=e.position,y=Qe()(s,m,ce(n,"active"),ce(c,"disabled"),ce(!0===h||h&&!(d||u),"icon"),ce(f,"header"),ce(p,"link"),fe(l,"fitted"),"item",o),g=it(t,this.props,function(){if(v)return"a"}),b=rt(t,this.props);return r.isNil(i)?k.a.createElement(g,a()({},b,{className:y,onClick:this.handleClick}),An.create(h,{autoGenerateKey:!1}),r.isNil(u)?qr()(d):u):k.a.createElement(g,a()({},b,{className:y,onClick:this.handleClick}),i)}}]),t}(T.Component);function Wr(e){var t=e.children,n=e.className,i=e.content,o=e.position,s=Qe()(o,"menu",n),u=rt(Wr,e),c=it(Wr,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}_()(Vr,"handledProps",["active","as","children","className","color","content","disabled","fitted","header","icon","index","link","name","onClick","position"]),Vr.propTypes={},Vr.create=Xe(Vr,function(e){return{content:e,name:e}}),Wr.handledProps=["as","children","className","content","position"],Wr.propTypes={};var zr=Wr,Hr=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleItemOverrides",function(e){return{onClick:function(t,n){var i=n.index;r.trySetState({activeIndex:i}),C()(e,"onClick",t,n),C()(r.props,"onItemClick",t,n)}}}),n))}return m()(t,e),l()(t,[{key:"renderItems",value:function(){var e=this,t=this.props.items,n=this.state.activeIndex;return bt()(t,function(t,r){return Vr.create(t,{defaultProps:{active:parseInt(n,10)===r,index:r},overrideProps:e.handleItemOverrides})})}},{key:"render",value:function(){var e=this.props,n=e.attached,i=e.borderless,o=e.children,s=e.className,u=e.color,c=e.compact,l=e.fixed,f=e.floated,h=e.fluid,p=e.icon,d=e.inverted,v=e.pagination,m=e.pointing,y=e.secondary,g=e.size,b=e.stackable,_=e.tabular,w=e.text,E=e.vertical,x=e.widths,C=Qe()("ui",u,g,ce(i,"borderless"),ce(c,"compact"),ce(h,"fluid"),ce(d,"inverted"),ce(v,"pagination"),ce(m,"pointing"),ce(y,"secondary"),ce(b,"stackable"),ce(w,"text"),ce(E,"vertical"),fe(n,"attached"),fe(f,"floated"),fe(p,"icon"),fe(_,"tabular"),le(l,"fixed"),ve(x,"item"),s,"menu"),T=rt(t,this.props),S=it(t,this.props);return k.a.createElement(S,a()({},T,{className:C}),r.isNil(o)?this.renderItems():o)}}]),t}(V);_()(Hr,"autoControlledProps",["activeIndex"]),_()(Hr,"Header",Ur),_()(Hr,"Item",Vr),_()(Hr,"Menu",zr),_()(Hr,"handledProps",["activeIndex","as","attached","borderless","children","className","color","compact","defaultActiveIndex","fixed","floated","fluid","icon","inverted","items","onItemClick","pagination","pointing","secondary","size","stackable","tabular","text","vertical","widths"]),Hr.propTypes={},Hr.create=Xe(Hr,function(e){return{items:e}});var Kr=Hr,Gr=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){"ellipsisItem"!==r.props.type&&C()(r.props,"onClick",e,r.props)}),_()(g()(g()(r)),"handleKeyDown",function(e){C()(r.props,"onKeyDown",e,r.props),On.a.getCode(e)===On.a.Enter&&C()(r.props,"onClick",e,r.props)}),_()(g()(g()(r)),"handleOverrides",function(){return{onClick:r.handleClick,onKeyDown:r.handleKeyDown}}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.type,r=this.props.disabled||"ellipsisItem"===n;return Vr.create(this.props,{defaultProps:{active:t,disabled:r,"aria-current":t,onClick:this.handleClick,onKeyDown:this.handleKeyDown,tabIndex:r?-1:0},overrideProps:this.handleOverrides})}}]),t}(T.Component);_()(Gr,"handledProps",["active","disabled","onClick","onKeyDown","type"]),Gr.propTypes={},Gr.create=Xe(Gr,function(e){return{content:e}});var Qr=Gr,Yr=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleItemClick",function(e,t){var n=t.value;+r.state.activePage!=+n&&(r.trySetState({activePage:n}),C()(r.props,"onPageChange",e,A()({},r.props,{activePage:n})))}),_()(g()(g()(r)),"handleItemOverrides",function(e,t,n){return function(i){return{active:e,type:t,key:"".concat(t,"-").concat(n),onClick:function(e,t){C()(i,"onClick",e,t),r.handleItemClick(e,t)}}}}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this,n=this.props,r=n["aria-label"],i=n.boundaryRange,o=n.siblingRange,s=n.totalPages,u=this.state.activePage,c=Et({activePage:u,boundaryRange:i,siblingRange:o,totalPages:s}),l=rt(t,this.props);return k.a.createElement(Kr,a()({},l,{"aria-label":r,pagination:!0,role:"navigation"}),bt()(c,function(t){var n=t.active,r=t.type,i=t.value;return Qr.create(e.props[r],{defaultProps:{content:i,value:i},overrideProps:e.handleItemOverrides(n,r,i)})}))}}]),t}(V);_()(Yr,"autoControlledProps",["activePage"]),_()(Yr,"defaultProps",{"aria-label":"Pagination Navigation",boundaryRange:1,ellipsisItem:"...",firstItem:{"aria-label":"First item",content:"«"},lastItem:{"aria-label":"Last item",content:"»"},nextItem:{"aria-label":"Next item",content:"⟩"},pageItem:{},prevItem:{"aria-label":"Previous item",content:"⟨"},siblingRange:1}),_()(Yr,"Item",Qr),_()(Yr,"handledProps",["activePage","aria-label","boundaryRange","defaultActivePage","ellipsisItem","firstItem","lastItem","nextItem","onPageChange","pageItem","prevItem","siblingRange","totalPages"]),Yr.propTypes={};var Xr=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"canToggle",function(){var e=r.props,t=e.disabled,n=e.radio,i=e.readOnly,o=r.state.checked;return!(t||i||n&&o)}),_()(g()(g()(r)),"computeTabIndex",function(){var e=r.props,t=e.disabled,n=e.tabIndex;return xe()(n)?t?-1:0:n}),_()(g()(g()(r)),"handleContainerClick",function(e){var t=r.props.id;xe()(t)&&r.handleClick(e)}),_()(g()(g()(r)),"handleInputClick",function(e){r.props.id&&r.handleClick(e)}),_()(g()(g()(r)),"handleInputRef",function(e){return r.inputRef=e}),_()(g()(g()(r)),"handleClick",function(e){var t=r.state,n=t.checked,i=t.indeterminate;r.canToggle()&&(C()(r.props,"onClick",e,A()({},r.props,{checked:!n,indeterminate:!!i})),C()(r.props,"onChange",e,A()({},r.props,{checked:!n,indeterminate:!1})),r.trySetState({checked:!n,indeterminate:!1}))}),_()(g()(g()(r)),"handleMouseDown",function(e){var t=r.state,n=t.checked,i=t.indeterminate;C()(r.props,"onMouseDown",e,A()({},r.props,{checked:!!n,indeterminate:!!i})),C()(r.inputRef,"focus"),e.preventDefault()}),_()(g()(g()(r)),"setIndeterminate",function(){var e=r.state.indeterminate;r.inputRef&&(r.inputRef.indeterminate=!!e)}),n))}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.setIndeterminate()}},{key:"componentDidUpdate",value:function(){this.setIndeterminate()}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.disabled,i=e.label,o=e.id,s=e.name,u=e.radio,c=e.readOnly,l=e.slider,f=e.toggle,h=e.type,p=e.value,d=this.state,v=d.checked,m=d.indeterminate,y=Qe()("ui",ce(v,"checked"),ce(r,"disabled"),ce(m,"indeterminate"),ce(xe()(i),"fitted"),ce(u,"radio"),ce(c,"read-only"),ce(l,"slider"),ce(f,"toggle"),"checkbox",n),g=rt(t,this.props),b=it(t,this.props),_=ct(g,{htmlProps:st}),w=z()(_,2),E=w[0],x=w[1];return k.a.createElement(b,a()({},x,{className:y,onClick:this.handleContainerClick,onChange:this.handleContainerClick,onMouseDown:this.handleMouseDown}),k.a.createElement("input",a()({},E,{checked:v,className:"hidden",disabled:r,id:o,name:s,onClick:this.handleInputClick,readOnly:!0,ref:this.handleInputRef,tabIndex:this.computeTabIndex(),type:h,value:p})),tt(i,{defaultProps:{htmlFor:o},autoGenerateKey:!1})||k.a.createElement("label",{htmlFor:o}))}}]),t}(V);function Jr(e){var t=e.slider,n=e.toggle,r=e.type,i=rt(Jr,e),o=!(t||n)||void 0;return k.a.createElement(Xr,a()({},i,{type:r,radio:o,slider:t,toggle:n}))}_()(Xr,"defaultProps",{type:"checkbox"}),_()(Xr,"autoControlledProps",["checked","indeterminate"]),_()(Xr,"handledProps",["as","checked","className","defaultChecked","defaultIndeterminate","disabled","fitted","id","indeterminate","label","name","onChange","onClick","onMouseDown","radio","readOnly","slider","tabIndex","toggle","type","value"]),Xr.propTypes={},Jr.handledProps=["slider","toggle","type"],Jr.propTypes={},Jr.defaultProps={type:"radio"};var $r=Jr,Zr=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return n=h()(this,(e=d()(t)).call.apply(e,[this].concat(i))),_()(g()(g()(n)),"fitsMaxWidth",function(){var e=n.props.maxWidth,t=n.state.width;return!!xe()(e)||t<=e}),_()(g()(g()(n)),"fitsMinWidth",function(){var e=n.props.minWidth,t=n.state.width;return!!xe()(e)||t>=e}),_()(g()(g()(n)),"setSafeState",function(){var e;return n.mounted&&(e=n).setState.apply(e,arguments)}),_()(g()(g()(n)),"isVisible",function(){return n.fitsMinWidth()&&n.fitsMaxWidth()}),_()(g()(g()(n)),"handleResize",function(e){n.ticking||(n.ticking=!0,requestAnimationFrame(function(){return n.handleUpdate(e)}))}),_()(g()(g()(n)),"handleUpdate",function(e){n.ticking=!1;var t=C()(n.props,"getWidth");n.setSafeState({width:t}),C()(n.props,"onUpdate",e,A()({},n.props,{width:t}))}),n.state={width:C()(n.props,"getWidth")},n}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){var e=this.props.fireOnMount;this.mounted=!0,De.sub("resize",this.handleResize,{target:"window"}),e&&this.handleUpdate()}},{key:"componentWillUnmount",value:function(){this.mounted=!1,De.unsub("resize",this.handleResize,{target:"window"})}},{key:"shouldComponentUpdate",value:function(e,t){return this.state.width!==t.width||!En(this.props,e)}},{key:"render",value:function(){var e=this.props.children,n=it(t,this.props),r=rt(t,this.props);return this.isVisible()?k.a.createElement(n,r,e):null}}]),t}(T.Component);_()(Zr,"defaultProps",{getWidth:function(){return ke()?window.innerWidth:0}}),_()(Zr,"onlyMobile",{minWidth:320,maxWidth:767}),_()(Zr,"onlyTablet",{minWidth:768,maxWidth:991}),_()(Zr,"onlyComputer",{minWidth:992}),_()(Zr,"onlyLargeScreen",{minWidth:1200,maxWidth:1919}),_()(Zr,"onlyWidescreen",{minWidth:1920}),_()(Zr,"handledProps",["as","children","fireOnMount","getWidth","maxWidth","minWidth","onUpdate"]),Zr.propTypes={};var ei=n(147),ti=n.n(ei),ni=n(200),ri=n.n(ni),ii=n(294),oi=n.n(ii),ai=n(201),si=n.n(ai),ui=n(293),ci=n.n(ui),li=n(148),fi=n.n(li),hi=n(292),pi=n.n(hi),di=n(204),vi=n.n(di),mi=n(203),yi=n.n(mi),gi=n(20),bi=n.n(gi);function _i(e){var t=e.className,n=Qe()("divider",t),r=rt(_i,e),i=it(_i,e);return k.a.createElement(i,a()({},r,{className:n}))}_i.handledProps=["as","className"],_i.propTypes={};var wi=_i,Ei=function(e){function t(){return u()(this,t),h()(this,d()(t).apply(this,arguments))}return m()(t,e),l()(t,[{key:"shouldComponentUpdate",value:function(e){return!En(this.props,e)}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.name,i=Qe()(r,"flag",n),o=rt(t,this.props),s=it(t,this.props);return k.a.createElement(s,a()({},o,{className:i}))}}]),t}(T.Component);_()(Ei,"defaultProps",{as:"i"}),_()(Ei,"handledProps",["as","className","name"]),Ei.propTypes={},Ei.create=Xe(Ei,function(e){return{name:e}});var xi=Ei,Ci=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){var t=r.props.onClick;t&&t(e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.children,o=e.className,s=e.content,u=e.disabled,c=e.description,l=e.flag,f=e.icon,h=e.image,p=e.label,d=e.selected,v=e.text,m=Qe()(ce(n,"active"),ce(u,"disabled"),ce(d,"selected"),"item",o),y=xe()(f)?r.someByType(i,"DropdownMenu")&&"dropdown":f,g=rt(t,this.props),b=it(t,this.props),_={role:"option","aria-disabled":u,"aria-checked":n,"aria-selected":d};if(!r.isNil(i))return k.a.createElement(b,a()({},g,_,{className:m,onClick:this.handleClick}),i);var w=xi.create(l,{autoGenerateKey:!1}),E=An.create(y,{autoGenerateKey:!1}),x=zn.create(h,{autoGenerateKey:!1}),C=Yn.create(p,{autoGenerateKey:!1}),T=Ye("span",function(e){return{children:e}},c,{defaultProps:{className:"description"},autoGenerateKey:!1}),S=Ye("span",function(e){return{children:e}},r.isNil(s)?v:s,{defaultProps:{className:"text"},autoGenerateKey:!1});return k.a.createElement(b,a()({},g,_,{className:m,onClick:this.handleClick}),x,E,w,C,T,S)}}]),t}(T.Component);_()(Ci,"handledProps",["active","as","children","className","content","description","disabled","flag","icon","image","label","onClick","selected","text","value"]),Ci.propTypes={},Ci.create=Xe(Ci,function(e){return e});var Ti=Ci;function ki(e){var t=e.children,n=e.className,i=e.content,o=e.icon,s=Qe()("header",n),u=rt(ki,e),c=it(ki,e);return r.isNil(t)?k.a.createElement(c,a()({},u,{className:s}),An.create(o,{autoGenerateKey:!1}),i):k.a.createElement(c,a()({},u,{className:s}),t)}ki.handledProps=["as","children","className","content","icon"],ki.propTypes={},ki.create=Xe(ki,function(e){return{content:e}});var Si=ki;function Ai(e){var t=e.children,n=e.className,i=e.content,o=e.direction,s=e.open,u=e.scrolling,c=Qe()(o,ce(s,"visible"),ce(u,"scrolling"),"menu transition",n),l=rt(Ai,e),f=it(Ai,e);return k.a.createElement(f,a()({},l,{className:c}),r.isNil(t)?i:t)}Ai.handledProps=["as","children","className","content","direction","open","scrolling"],Ai.propTypes={};var Ni=Ai,Oi=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleChange",function(e){var t=bi()(e,"target.value");C()(r.props,"onChange",e,A()({},r.props,{value:t}))}),_()(g()(g()(r)),"handleRef",function(e){return C()(r.props,"inputRef",e)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.autoComplete,r=e.className,i=e.tabIndex,o=e.type,s=e.value,u=Qe()("search",r),c=rt(t,this.props);return k.a.createElement("input",a()({},c,{"aria-autocomplete":"list",autoComplete:n,className:u,onChange:this.handleChange,ref:this.handleRef,tabIndex:i,type:o,value:s}))}}]),t}(T.Component);_()(Oi,"defaultProps",{autoComplete:"off",type:"text"}),_()(Oi,"handledProps",["as","autoComplete","className","inputRef","tabIndex","type","value"]),Oi.propTypes={},Oi.create=Xe(Oi,function(e){return{type:e}});var Ii=Oi,Pi=function(e,t){return xe()(e)?t:e},Ri=function(e){function t(){var e,n,i;u()(this,t);for(var o=arguments.length,s=new Array(o),c=0;c<o;c++)s[c]=arguments[c];return h()(i,(n=i=h()(this,(e=d()(t)).call.apply(e,[this].concat(s))),_()(g()(g()(i)),"handleChange",function(e,t){C()(i.props,"onChange",e,A()({},i.props,{value:t}))}),_()(g()(g()(i)),"closeOnChange",function(e){var t=i.props,n=t.closeOnChange,r=t.multiple;(P()(n)?!r:n)&&i.close(e)}),_()(g()(g()(i)),"closeOnEscape",function(e){On.a.getCode(e)===On.a.Escape&&(e.preventDefault(),i.close())}),_()(g()(g()(i)),"moveSelectionOnKeyDown",function(e){var t,n=i.props,r=n.multiple,o=n.selectOnNavigation,a=(t={},_()(t,On.a.ArrowDown,1),_()(t,On.a.ArrowUp,-1),t)[On.a.getCode(e)];void 0!==a&&(e.preventDefault(),i.moveSelectionBy(a),!r&&o&&i.makeSelectedItemActive(e))}),_()(g()(g()(i)),"openOnSpace",function(e){On.a.getCode(e)===On.a.Spacebar&&(i.state.open||(e.preventDefault(),i.open(e)))}),_()(g()(g()(i)),"openOnArrow",function(e){var t=On.a.getCode(e);at()([On.a.ArrowDown,On.a.ArrowUp],t)&&(i.state.open||(e.preventDefault(),i.open(e)))}),_()(g()(g()(i)),"makeSelectedItemActive",function(e){var t=i.state.open,n=i.props.multiple,r=i.getSelectedItem(),o=bi()(r,"value");if(!xe()(o)&&t){var a=n?yi()(i.state.value,[o]):o;i.setValue(a),i.setSelectedIndex(a),i.handleChange(e,a),r["data-additional"]&&C()(i.props,"onAddItem",e,A()({},i.props,{value:o}))}}),_()(g()(g()(i)),"selectItemOnEnter",function(e){var t=i.props.search;if(On.a.getCode(e)===On.a.Enter){e.preventDefault();var n=vi()(i.getMenuOptions());t&&0===n||(i.makeSelectedItemActive(e),i.closeOnChange(e),i.clearSearchQuery(),t&&i.searchRef&&i.searchRef.focus())}}),_()(g()(g()(i)),"removeItemOnBackspace",function(e){var t=i.props,n=t.multiple,r=t.search,o=i.state,a=o.searchQuery,s=o.value;if(On.a.getCode(e)===On.a.Backspace&&!a&&r&&n&&!L()(s)){e.preventDefault();var u=pi()(s);i.setValue(u),i.setSelectedIndex(u),i.handleChange(e,u)}}),_()(g()(g()(i)),"closeOnDocumentClick",function(e){i.props.closeOnBlur&&(i.ref&&dt(i.ref,e)||i.close())}),_()(g()(g()(i)),"attachHandlersOnOpen",function(){De.sub("keydown",[i.closeOnEscape,i.moveSelectionOnKeyDown,i.selectItemOnEnter,i.removeItemOnBackspace]),De.sub("click",i.closeOnDocumentClick),De.unsub("keydown",[i.openOnArrow,i.openOnSpace])}),_()(g()(g()(i)),"handleMouseDown",function(e){i.isMouseDown=!0,De.sub("mouseup",i.handleDocumentMouseUp),C()(i.props,"onMouseDown",e,i.props)}),_()(g()(g()(i)),"handleDocumentMouseUp",function(){i.isMouseDown=!1,De.unsub("mouseup",i.handleDocumentMouseUp)}),_()(g()(g()(i)),"handleClick",function(e){var t=i.props,n=t.minCharacters,r=t.search,o=i.state,a=o.open,s=o.searchQuery;if(C()(i.props,"onClick",e,i.props),e.stopPropagation(),!r)return i.toggle(e);a||(s.length>=n||1===n?i.open(e):i.searchRef&&i.searchRef.focus())}),_()(g()(g()(i)),"handleIconClick",function(e){C()(i.props,"onClick",e,i.props),e.stopPropagation(),i.toggle(e)}),_()(g()(g()(i)),"handleItemClick",function(e,t){var n=i.props,r=n.multiple,o=n.search,a=t.value;if(e.stopPropagation(),(r||t.disabled)&&e.nativeEvent.stopImmediatePropagation(),!t.disabled){var s=t["data-additional"],u=r?yi()(i.state.value,[a]):a;i.setValue(u),i.setSelectedIndex(a);var c=vi()(i.getMenuOptions());r&&!s&&1!==c||i.clearSearchQuery(),i.handleChange(e,u),i.closeOnChange(e),s&&C()(i.props,"onAddItem",e,A()({},i.props,{value:a})),r&&o&&i.searchRef&&i.searchRef.focus()}}),_()(g()(g()(i)),"handleFocus",function(e){i.state.focus||(C()(i.props,"onFocus",e,i.props),i.setState({focus:!0}))}),_()(g()(g()(i)),"handleBlur",function(e){var t=bi()(e,"currentTarget");if(!t||!t.contains(document.activeElement)){var n=i.props,r=n.closeOnBlur,o=n.multiple,a=n.onBlur,s=n.selectOnBlur;i.isMouseDown||(a&&a(e,i.props),s&&!o&&(i.makeSelectedItemActive(e),r&&i.close()),i.setState({focus:!1}),i.clearSearchQuery())}}),_()(g()(g()(i)),"handleSearchChange",function(e,t){var n=t.value;e.stopPropagation();var r=i.props.minCharacters,o=i.state.open,a=n;C()(i.props,"onSearchChange",e,A()({},i.props,{searchQuery:a})),i.trySetState({searchQuery:a},{selectedIndex:0}),!o&&a.length>=r?i.open():o&&1!==r&&a.length<r&&i.close()}),_()(g()(g()(i)),"getMenuOptions",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.value,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.props.options,n=i.props,r=n.additionLabel,o=n.additionPosition,a=n.allowAdditions,s=n.deburr,u=n.multiple,c=n.search,l=i.state.searchQuery,f=t;if(u&&(f=D()(f,function(t){return!at()(e,t.value)})),c&&l)if(Be()(c))f=c(f,l);else{var h=s?fi()(l):l,p=new RegExp(ci()(h),"i");f=D()(f,function(e){return p.test(s?fi()(e.text):e.text)})}if(a&&c&&l&&!te()(f,{text:l})){var d={key:"addition",text:[k.a.isValidElement(r)?k.a.cloneElement(r,{key:"addition-label"}):r||"",k.a.createElement("b",{key:"addition-query"},l)],value:l,className:"addition","data-additional":!0};"top"===o?f.unshift(d):f.push(d)}return f}),_()(g()(g()(i)),"getSelectedItem",function(){var e=i.state.selectedIndex,t=i.getMenuOptions();return bi()(t,"[".concat(e,"]"))}),_()(g()(g()(i)),"getEnabledIndices",function(e){var t=e||i.getMenuOptions();return sr()(t,function(e,t,n){return t.disabled||e.push(n),e},[])}),_()(g()(g()(i)),"getItemByValue",function(e){var t=i.props.options;return Z()(t,{value:e})}),_()(g()(g()(i)),"getMenuItemIndexByValue",function(e,t){var n=t||i.getMenuOptions();return si()(n,["value",e])}),_()(g()(g()(i)),"getDropdownAriaOptions",function(){var e=i.props,t=e.loading,n=e.disabled,r=e.search,o=e.multiple,a=i.state.open,s={role:r?"combobox":"listbox","aria-busy":t,"aria-disabled":n,"aria-expanded":!!a};return"listbox"===s.role&&(s["aria-multiselectable"]=o),s}),_()(g()(g()(i)),"clearSearchQuery",function(){i.trySetState({searchQuery:""})}),_()(g()(g()(i)),"setValue",function(e){i.trySetState({value:e})}),_()(g()(g()(i)),"setSelectedIndex",function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:i.state.value,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.props.options,r=i.props.multiple,o=i.state.selectedIndex,a=i.getMenuOptions(t,n),s=i.getEnabledIndices(a);if(!o||o<0){var u=s[0];e=r?u:i.getMenuItemIndexByValue(t,a)||s[0]}else if(r)o>=a.length-1&&(e=s[s.length-1]);else{var c=i.getMenuItemIndexByValue(t,a);e=at()(s,c)?c:void 0}(!e||e<0)&&(e=s[0]),i.setState({selectedIndex:e})}),_()(g()(g()(i)),"handleLabelClick",function(e,t){e.stopPropagation(),i.setState({selectedLabel:t.value});var n=i.props.onLabelClick;n&&n(e,t)}),_()(g()(g()(i)),"handleLabelRemove",function(e,t){e.stopPropagation();var n=i.state.value,r=Cn()(n,t.value);i.setValue(r),i.setSelectedIndex(r),i.handleChange(e,r)}),_()(g()(g()(i)),"moveSelectionBy",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:i.state.selectedIndex,n=i.getMenuOptions();if(void 0!==n&&!oi()(n,"disabled")){var r=n.length-1,o=t+e;!i.props.wrapSelection&&(o>r||o<0)?o=t:o>r?o=0:o<0&&(o=r),n[o].disabled?i.moveSelectionBy(e,o):(i.setState({selectedIndex:o}),i.scrollSelectedItemIntoView())}}),_()(g()(g()(i)),"handleIconOverrides",function(e){return{onClick:function(t){C()(e,"onClick",t,e),i.handleIconClick(t)}}}),_()(g()(g()(i)),"handleSearchRef",function(e){return i.searchRef=e}),_()(g()(g()(i)),"handleSizerRef",function(e){return i.sizerRef=e}),_()(g()(g()(i)),"handleRef",function(e){return i.ref=e}),_()(g()(g()(i)),"computeSearchInputTabIndex",function(){var e=i.props,t=e.disabled,n=e.tabIndex;return xe()(n)?t?-1:0:n}),_()(g()(g()(i)),"computeSearchInputWidth",function(){var e=i.state.searchQuery;if(i.sizerRef&&e){i.sizerRef.style.display="inline",i.sizerRef.textContent=e;var t=Math.ceil(i.sizerRef.getBoundingClientRect().width);return i.sizerRef.style.removeProperty("display"),t}}),_()(g()(g()(i)),"computeTabIndex",function(){var e=i.props,t=e.disabled,n=e.search,r=e.tabIndex;if(!n)return t?-1:xe()(r)?0:r}),_()(g()(g()(i)),"scrollSelectedItemIntoView",function(){if(i.ref){var e=i.ref.querySelector(".menu.visible");if(e){var t=e.querySelector(".item.selected");if(t){var n=t.offsetTop<e.scrollTop,r=t.offsetTop+t.clientHeight>e.scrollTop+e.clientHeight;n?e.scrollTop=t.offsetTop:r&&(e.scrollTop=t.offsetTop+t.clientHeight-e.clientHeight)}}}}),_()(g()(g()(i)),"setOpenDirection",function(){if(i.ref){var e=i.ref.querySelector(".menu.visible");if(e){var t=i.ref.getBoundingClientRect(),n=e.clientHeight,r=document.documentElement.clientHeight-t.y-t.height-n,o=t.y-n,a=r<0&&o>r;!a!=!i.state.upward&&i.trySetState({upward:a})}}}),_()(g()(g()(i)),"open",function(e){var t=i.props,n=t.disabled,r=t.onOpen,o=t.search;n||(o&&i.searchRef&&i.searchRef.focus(),r&&r(e,i.props),i.trySetState({open:!0}),i.scrollSelectedItemIntoView())}),_()(g()(g()(i)),"close",function(e){var t=i.props.onClose;t&&t(e,i.props),i.trySetState({open:!1})}),_()(g()(g()(i)),"handleClose",function(){var e=document.activeElement===i.searchRef,t=document.activeElement===i.ref,n=e||t;e||i.ref.blur(),i.setState({focus:n})}),_()(g()(g()(i)),"toggle",function(e){return i.state.open?i.close(e):i.open(e)}),_()(g()(g()(i)),"renderText",function(){var e=i.props,t=e.multiple,n=e.placeholder,r=e.search,o=e.text,a=i.state,s=a.searchQuery,u=a.value,c=a.open,l=t?!L()(u):!xe()(u)&&""!==u,f=Qe()(n&&!l&&"default","text",r&&s&&"filtered"),h=n;return s?h=null:o?h=o:c&&!t?h=bi()(i.getSelectedItem(),"text"):l&&(h=bi()(i.getItemByValue(u),"text")),k.a.createElement("div",{className:f,role:"alert","aria-live":"polite"},h)}),_()(g()(g()(i)),"renderSearchInput",function(){var e=i.props,t=e.search,n=e.searchInput,r=i.state.searchQuery;return t?Ii.create(n,{defaultProps:{inputRef:i.handleSearchRef,onChange:i.handleSearchChange,style:{width:i.computeSearchInputWidth()},tabIndex:i.computeSearchInputTabIndex(),value:r}}):null}),_()(g()(g()(i)),"renderSearchSizer",function(){var e=i.props,t=e.search,n=e.multiple;return t&&n?k.a.createElement("span",{className:"sizer",ref:i.handleSizerRef}):null}),_()(g()(g()(i)),"renderLabels",function(){var e=i.props,t=e.multiple,n=e.renderLabel,r=i.state,o=r.selectedLabel,a=r.value;if(t&&!L()(a)){var s=bt()(a,i.getItemByValue);return bt()(ri()(s),function(e,t){var r={active:e.value===o,as:"a",key:Pi(e.key,e.value),onClick:i.handleLabelClick,onRemove:i.handleLabelRemove,value:e.value};return Yn.create(n(e,t,r),{defaultProps:r})})}}),_()(g()(g()(i)),"renderOptions",function(){var e=i.props,t=e.multiple,n=e.search,r=e.noResultsMessage,o=i.state,a=o.selectedIndex,s=o.value,u=i.getMenuOptions();if(null!==r&&n&&L()(u))return k.a.createElement("div",{className:"message"},r);var c=t?function(e){return at()(s,e)}:function(e){return e===s};return bt()(u,function(e,t){return Ti.create(A()({active:c(e.value),onClick:i.handleItemClick,selected:a===t},e,{key:Pi(e.key,e.value),style:A()({},e.style,{pointerEvents:"all"})}))})}),_()(g()(g()(i)),"renderMenu",function(){var e=i.props,t=e.children,n=e.direction,o=e.header,s=i.state.open,u=i.getDropdownMenuAriaOptions();if(!r.isNil(t)){var c=T.Children.only(t),l=Qe()(n,ce(s,"visible"),c.props.className);return Object(T.cloneElement)(c,A()({className:l},u))}return k.a.createElement(Ni,a()({},u,{direction:n,open:s}),Si.create(o,{autoGenerateKey:!1}),i.renderOptions())}),n))}return m()(t,e),l()(t,[{key:"getInitialAutoControlledState",value:function(){return{searchQuery:""}}},{key:"componentWillMount",value:function(){var e=this.state,t=e.open,n=e.value;this.setValue(n),this.setSelectedIndex(n),t&&(this.open(),this.attachHandlersOnOpen())}},{key:"componentWillReceiveProps",value:function(e){ti()(d()(t.prototype),"componentWillReceiveProps",this).call(this,e),En(e.value,this.props.value)||(this.setValue(e.value),this.setSelectedIndex(e.value)),_n()(e.options,this.props.options)||this.setSelectedIndex(void 0,e.options)}},{key:"shouldComponentUpdate",value:function(e,t){return!En(e,this.props)||!En(t,this.state)}},{key:"componentDidUpdate",value:function(e,t){if(!t.focus&&this.state.focus){if(!this.isMouseDown){var n=this.props,r=n.minCharacters,i=n.openOnFocus,o=n.search,a=!o||o&&1===r&&!this.state.open;i&&a&&this.open()}this.state.open?De.sub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter]):De.sub("keydown",[this.openOnArrow,this.openOnSpace]),De.sub("keydown",this.removeItemOnBackspace)}else if(t.focus&&!this.state.focus){var s=this.props.closeOnBlur;!this.isMouseDown&&s&&this.close(),De.unsub("keydown",[this.openOnArrow,this.openOnSpace,this.moveSelectionOnKeyDown,this.selectItemOnEnter,this.removeItemOnBackspace])}!t.open&&this.state.open?(this.attachHandlersOnOpen(),this.setOpenDirection(),this.scrollSelectedItemIntoView()):t.open&&!this.state.open&&(this.handleClose(),De.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter]),De.unsub("click",this.closeOnDocumentClick),this.state.focus||De.unsub("keydown",this.removeItemOnBackspace))}},{key:"componentWillUnmount",value:function(){De.unsub("keydown",[this.openOnArrow,this.openOnSpace,this.moveSelectionOnKeyDown,this.selectItemOnEnter,this.removeItemOnBackspace,this.closeOnEscape]),De.unsub("click",this.closeOnDocumentClick)}},{key:"getDropdownMenuAriaOptions",value:function(){var e=this.props,t=e.search,n=e.multiple,r={};return t&&(r["aria-multiselectable"]=n,r.role="listbox"),r}},{key:"render",value:function(){var e=this.props,n=e.basic,r=e.button,i=e.className,o=e.compact,s=e.disabled,u=e.error,c=e.fluid,l=e.floating,f=e.icon,h=e.inline,p=e.item,d=e.labeled,v=e.loading,m=e.multiple,y=e.pointing,g=e.search,b=e.selection,_=e.scrolling,w=e.simple,E=e.trigger,x=this.state,C=x.open,T=x.upward,S=Qe()("ui",ce(C,"active visible"),ce(s,"disabled"),ce(u,"error"),ce(v,"loading"),ce(n,"basic"),ce(r,"button"),ce(o,"compact"),ce(c,"fluid"),ce(l,"floating"),ce(h,"inline"),ce(d,"labeled"),ce(p,"item"),ce(m,"multiple"),ce(g,"search"),ce(b,"selection"),ce(w,"simple"),ce(_,"scrolling"),ce(T,"upward"),fe(y,"pointing"),"dropdown",i),A=rt(t,this.props),N=it(t,this.props),O=this.getDropdownAriaOptions(N,this.props);return k.a.createElement(N,a()({},A,O,{className:S,onBlur:this.handleBlur,onClick:this.handleClick,onMouseDown:this.handleMouseDown,onFocus:this.handleFocus,onChange:this.handleChange,tabIndex:this.computeTabIndex(),ref:this.handleRef}),this.renderLabels(),this.renderSearchInput(),this.renderSearchSizer(),E||this.renderText(),An.create(f,{overrideProps:this.handleIconOverrides,autoGenerateKey:!1}),this.renderMenu())}}]),t}(V);function Di(e){return k.a.createElement(Ri,a()({},e,{selection:!0}))}_()(Ri,"defaultProps",{additionLabel:"Add ",additionPosition:"top",closeOnBlur:!0,deburr:!1,icon:"dropdown",minCharacters:1,noResultsMessage:"No results found.",openOnFocus:!0,renderLabel:function(e){return e.text},searchInput:"text",selectOnBlur:!0,selectOnNavigation:!0,wrapSelection:!0}),_()(Ri,"autoControlledProps",["open","searchQuery","selectedLabel","value","upward"]),_()(Ri,"Divider",wi),_()(Ri,"Header",Si),_()(Ri,"Item",Ti),_()(Ri,"Menu",Ni),_()(Ri,"SearchInput",Ii),_()(Ri,"handledProps",["additionLabel","additionPosition","allowAdditions","as","basic","button","children","className","closeOnBlur","closeOnChange","compact","deburr","defaultOpen","defaultSearchQuery","defaultSelectedLabel","defaultUpward","defaultValue","direction","disabled","error","floating","fluid","header","icon","inline","item","labeled","loading","minCharacters","multiple","noResultsMessage","onAddItem","onBlur","onChange","onClick","onClose","onFocus","onLabelClick","onMouseDown","onOpen","onSearchChange","open","openOnFocus","options","placeholder","pointing","renderLabel","scrolling","search","searchInput","searchQuery","selectOnBlur","selectOnNavigation","selectedLabel","selection","simple","tabIndex","text","trigger","upward","value","wrapSelection"]),Ri.propTypes={},Di.handledProps=["options"],Di.propTypes={},Di.Divider=Ri.Divider,Di.Header=Ri.Header,Di.Item=Ri.Item,Di.Menu=Ri.Menu;var Mi=Di,Li=n(199),ji=n.n(Li),Fi=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"focus",function(){return r.ref.focus()}),_()(g()(g()(r)),"handleChange",function(e){var t=bi()(e,"target.value");C()(r.props,"onChange",e,A()({},r.props,{value:t}))}),_()(g()(g()(r)),"handleInput",function(e){var t=bi()(e,"target.value");C()(r.props,"onInput",e,A()({},r.props,{value:t})),r.updateHeight()}),_()(g()(g()(r)),"handleRef",function(e){return r.ref=e}),_()(g()(g()(r)),"removeAutoHeightStyles",function(){r.ref.style.height=null,r.ref.style.resize=null}),_()(g()(g()(r)),"updateHeight",function(){var e=r.props.autoHeight;if(r.ref&&e){var t=window.getComputedStyle(r.ref),n=t.minHeight,i=t.borderBottomWidth,o=t.borderTopWidth,a=ji()([i,o].map(function(e){return parseFloat(e)}));r.ref.style.height="auto",r.ref.style.overflowY="hidden",r.ref.style.height="".concat(Math.max(parseFloat(n),Math.ceil(r.ref.scrollHeight+a)),"px"),r.ref.style.overflowY=""}}),n))}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.updateHeight()}},{key:"componentDidUpdate",value:function(e){!this.props.autoHeight&&e.autoHeight&&this.removeAutoHeightStyles(),(this.props.autoHeight&&!e.autoHeight||e.value!==this.props.value)&&this.updateHeight()}},{key:"render",value:function(){var e=this.props,n=e.autoHeight,r=e.rows,i=e.style,o=e.value,s=rt(t,this.props),u=it(t,this.props),c=n?"none":"";return k.a.createElement(u,a()({},s,{onChange:this.handleChange,onInput:this.handleInput,ref:this.handleRef,rows:r,style:A()({resize:c},i),value:o}))}}]),t}(T.Component);_()(Fi,"defaultProps",{as:"textarea",rows:3}),_()(Fi,"handledProps",["as","autoHeight","onChange","onInput","rows","style","value"]),Fi.propTypes={};var Ui=Fi,Bi=n(146),qi=n.n(Bi),Vi=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];n=h()(this,(e=d()(t)).call.apply(e,[this].concat(i))),_()(g()(g()(n)),"handleOnHide",function(e,t){var r=t.reactKey;n.setState(function(e){var t=A()({},e.children);return delete t[r],{children:t}})}),_()(g()(g()(n)),"wrapChild",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.props,i=r.animation,o=r.duration,a=e.key,s=t.visible,u=void 0===s||s,c=t.transitionOnMount,l=void 0!==c&&c;return k.a.createElement(zi,{animation:i,duration:o,key:a,onHide:n.handleOnHide,reactKey:a,transitionOnMount:l,visible:u},e)});var a=n.props.children;return n.state={children:qi()(Y(a),function(e){return n.wrapChild(e)})},n}return m()(t,e),l()(t,[{key:"componentWillReceiveProps",value:function(e){var t=this,n=this.state.children,r=Y(e.children),i=J(n,r);K()(i,function(e,o){var a=E()(n,o),s=E()(r,o),u=n[o],c=!bi()(u,"props.visible");if(!s||a&&!c)if(s||!a||c){var l=u.props,f=l.visible,h=l.transitionOnMount;i[o]=t.wrapChild(e,{transitionOnMount:h,visible:f})}else i[o]=Object(T.cloneElement)(u,{visible:!1});else i[o]=t.wrapChild(e,{transitionOnMount:!0})}),this.setState({children:i})}},{key:"render",value:function(){var e=this.state.children,n=it(t,this.props),r=rt(t,this.props);return k.a.createElement(n,r,Ct()(e))}}]),t}(k.a.Component);_()(Vi,"defaultProps",{animation:"fade",duration:500}),_()(Vi,"handledProps",["animation","as","children","duration"]),Vi.propTypes={};var Wi={ENTERING:"show",EXITING:"hide"},zi=function(e){function t(){var e,n;u()(this,t);for(var r=arguments.length,o=new Array(r),a=0;a<r;a++)o[a]=arguments[a];n=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(n)),"handleStart",function(){var e=n.props.duration,t=n.nextStatus;n.nextStatus=null,n.setSafeState({status:t,animating:!0},function(){var r=Wi[t],i=gn(e,r);C()(n.props,"onStart",null,A()({},n.props,{status:t})),setTimeout(n.handleComplete,i)})}),_()(g()(g()(n)),"handleComplete",function(){var e=n.state.status;if(C()(n.props,"onComplete",null,A()({},n.props,{status:e})),n.nextStatus)n.handleStart();else{var r=n.computeCompletedStatus(),i=e===t.ENTERING?"onShow":"onHide";n.setSafeState({status:r,animating:!1},function(){C()(n.props,i,null,A()({},n.props,{status:r}))})}}),_()(g()(g()(n)),"updateStatus",function(){var e=n.state.animating;n.nextStatus&&(n.nextStatus=n.computeNextStatus(),e||n.handleStart())}),_()(g()(g()(n)),"computeClasses",function(){var e=n.props,r=e.animation,o=e.children,a=n.state,s=a.animating,u=a.status,c=bi()(o,"props.className");return at()(i.DIRECTIONAL_TRANSITIONS,r)?Qe()(r,c,ce(s,"animating"),ce(u===t.ENTERING,"in"),ce(u===t.EXITING,"out"),ce(u===t.EXITED,"hidden"),ce(u!==t.EXITED,"visible"),"transition"):Qe()(r,c,ce(s,"animating transition"))}),_()(g()(g()(n)),"computeCompletedStatus",function(){var e=n.props.unmountOnHide;return n.state.status===t.ENTERING?t.ENTERED:e?t.UNMOUNTED:t.EXITED}),_()(g()(g()(n)),"computeInitialStatuses",function(){var e=n.props,r=e.visible,i=e.mountOnShow,o=e.transitionOnMount,a=e.unmountOnHide;return r?o?{initial:t.EXITED,next:t.ENTERING}:{initial:t.ENTERED}:i||a?{initial:t.UNMOUNTED}:{initial:t.EXITED}}),_()(g()(g()(n)),"computeNextStatus",function(){var e=n.state,r=e.animating,i=e.status;return r?i===t.ENTERING?t.EXITING:t.ENTERING:i===t.ENTERED?t.EXITING:t.ENTERING}),_()(g()(g()(n)),"computeStatuses",function(e){var r=n.state.status;return e.visible?{current:r===t.UNMOUNTED&&t.EXITED,next:r!==t.ENTERING&&r!==t.ENTERED&&t.ENTERING}:{next:(r===t.ENTERING||r===t.ENTERED)&&t.EXITING}}),_()(g()(g()(n)),"computeStyle",function(){var e=n.props,t=e.children,r=e.duration,i=n.state.status,o=bi()(t,"props.style"),a=Wi[i],s=a&&"".concat(gn(r,a),"ms");return A()({},o,{animationDuration:s})}),_()(g()(g()(n)),"setSafeState",function(){var e;return n.mounted&&(e=n).setState.apply(e,arguments)});var s=n.computeInitialStatuses(),c=s.initial,l=s.next;return n.nextStatus=l,n.state={status:c},n}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.updateStatus()}},{key:"componentWillReceiveProps",value:function(e){var t=this.computeStatuses(e),n=t.current,r=t.next;this.nextStatus=r,n&&this.setSafeState({status:n})}},{key:"componentDidUpdate",value:function(){this.updateStatus()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"render",value:function(){var e=this.props.children;return this.state.status===t.UNMOUNTED?null:Object(T.cloneElement)(e,{className:this.computeClasses(),style:this.computeStyle()})}}]),t}(T.Component);_()(zi,"defaultProps",{animation:"fade",duration:500,visible:!0,mountOnShow:!0,transitionOnMount:!1,unmountOnHide:!1}),_()(zi,"ENTERED","ENTERED"),_()(zi,"ENTERING","ENTERING"),_()(zi,"EXITED","EXITED"),_()(zi,"EXITING","EXITING"),_()(zi,"UNMOUNTED","UNMOUNTED"),_()(zi,"Group",Vi),_()(zi,"handledProps",["animation","children","duration","mountOnShow","onComplete","onHide","onShow","onStart","reactKey","transitionOnMount","unmountOnHide","visible"]),zi.propTypes={};var Hi=function(e){function t(e){var n;return u()(this,t),n=h()(this,d()(t).call(this,e)),_()(g()(g()(n)),"handlePortalClose",function(){n.setState({portalOpen:!1})}),_()(g()(g()(n)),"handlePortalOpen",function(){n.setState({portalOpen:!0})}),_()(g()(g()(n)),"handleTransitionHide",function(e,t){var r=n.state.portalOpen;n.setState({transitionVisible:!1}),C()(n.props,"onClose",null,A()({},t,{portalOpen:!1,transitionVisible:!1})),C()(n.props,"onHide",null,A()({},t,{portalOpen:r,transitionVisible:!1}))}),_()(g()(g()(n)),"handleTransitionStart",function(e,t){var r=n.state.portalOpen,i=t.status===zi.ENTERING;C()(n.props,"onStart",null,A()({},t,{portalOpen:r,transitionVisible:i})),i&&(n.setState({transitionVisible:i}),C()(n.props,"onOpen",null,A()({},t,{transitionVisible:i,portalOpen:!0})))}),n.state={portalOpen:e.open},n}return m()(t,e),l()(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.open;this.setState({portalOpen:t})}},{key:"render",value:function(){var e=this.props,n=e.children,r=e.transition,i=this.state,o=i.portalOpen,s=i.transitionVisible,u=o||s,c=rt(t,this.props);return k.a.createElement(Mn,a()({},c,{open:u,onOpen:this.handlePortalOpen,onClose:this.handlePortalClose}),k.a.createElement(zi,a()({},r,{transitionOnMount:!0,onStart:this.handleTransitionStart,onHide:this.handleTransitionHide,visible:o}),n))}}]),t}(T.Component);_()(Hi,"defaultProps",{transition:{animation:"scale",duration:400}}),_()(Hi,"handledProps",["children","onClose","onHide","onOpen","onStart","open","transition"]),Hi.propTypes={};var Ki=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"calculations",{bottomPassed:!1,bottomVisible:!1,fits:!1,passing:!1,offScreen:!1,onScreen:!1,topPassed:!1,topVisible:!1}),_()(g()(g()(r)),"firedCallbacks",[]),_()(g()(g()(r)),"fire",function(e,t){var n=e.callback,i=e.name,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2],a=r.props,s=a.continuous,u=a.once,c=r.calculations[t]!==o,l=s||r.calculations[t]!==r.oldCalculations[t];c&&l&&r.execute(n,i),u||(r.firedCallbacks=Cn()(r.firedCallbacks,i))}),_()(g()(g()(r)),"handleUpdate",function(){r.ticking||(r.ticking=!0,r.frameId=requestAnimationFrame(r.update))}),_()(g()(g()(r)),"update",function(){if(r.mounted){r.ticking=!1,r.oldCalculations=r.calculations,r.calculations=r.computeCalculations(),r.pageYOffset=window.pageYOffset;var e=r.props,t=e.onBottomPassed,n=e.onBottomPassedReverse,i=e.onBottomVisible,o=e.onBottomVisibleReverse,a=e.onPassing,s=e.onPassingReverse,u=e.onTopPassed,c=e.onTopPassedReverse,l=e.onTopVisible,f=e.onTopVisibleReverse,h=e.onOffScreen,p=e.onOnScreen,d=e.updateOn,v={bottomPassed:{callback:t,name:"onBottomPassed"},bottomVisible:{callback:i,name:"onBottomVisible"},passing:{callback:a,name:"onPassing"},offScreen:{callback:h,name:"onOffScreen"},onScreen:{callback:p,name:"onOnScreen"},topPassed:{callback:u,name:"onTopPassed"},topVisible:{callback:l,name:"onTopVisible"}},m={bottomPassed:{callback:n,name:"onBottomPassedReverse"},bottomVisible:{callback:o,name:"onBottomVisibleReverse"},passing:{callback:s,name:"onPassingReverse"},topPassed:{callback:c,name:"onTopPassedReverse"},topVisible:{callback:f,name:"onTopVisibleReverse"}};C()(r.props,"onUpdate",null,A()({},r.props,{calculations:r.calculations})),r.fireOnPassed(),K()(m,function(e,t){return r.fire(e,t,!0)}),K()(v,function(e,t){return r.fire(e,t)}),"repaint"===d&&r.handleUpdate()}}),_()(g()(g()(r)),"handleRef",function(e){return r.ref=e}),n))}return m()(t,e),l()(t,[{key:"componentWillReceiveProps",value:function(e){var t=e.continuous,n=e.once,r=e.context,i=e.updateOn;(t!==this.props.continuous||n!==this.props.once||i!==this.props.updateOn)&&(this.firedCallbacks=[]),r===this.props.context&&i===this.props.updateOn||(this.unattachHandlers(this.props.context),this.attachHandlers(r,i))}},{key:"componentDidMount",value:function(){if(this.mounted=!0,ke()){var e=this.props,t=e.context,n=e.fireOnMount,r=e.updateOn;this.pageYOffset=window.pageYOffset,this.attachHandlers(t,r),n&&this.update()}}},{key:"componentWillUnmount",value:function(){var e=this.props.context;this.unattachHandlers(e),this.mounted=!1}},{key:"attachHandlers",value:function(e,t){"events"!==t?this.handleUpdate():e&&(De.sub("resize",this.handleUpdate,{target:e}),De.sub("scroll",this.handleUpdate,{target:e}))}},{key:"unattachHandlers",value:function(e){e&&(De.unsub("resize",this.handleUpdate,{target:e}),De.unsub("scroll",this.handleUpdate,{target:e})),this.frameId&&cancelAnimationFrame(this.frameId)}},{key:"execute",value:function(e,t){var n=this.props.continuous;e&&(!n&&at()(this.firedCallbacks,t)||(e(null,A()({},this.props,{calculations:this.calculations})),this.firedCallbacks.push(t)))}},{key:"fireOnPassed",value:function(){var e=this,t=this.calculations,n=t.percentagePassed,r=t.pixelsPassed,i=this.props.onPassed;K()(i,function(t,i){var o=Number(i);if(o&&r>=o)e.execute(t,i);else{var a="".concat(i).match(/^(\d+)%$/);if(a){var s=Number(a[1])/100;n>=s&&e.execute(t,i)}}})}},{key:"computeCalculations",value:function(){var e,t=this.props.offset,n=this.ref.getBoundingClientRect(),r=n.bottom,i=n.height,o=n.top,a=n.width,s="number"==typeof(e=t)||"string"==typeof e?[e,e]:e,u=z()(s,2),c=u[0],l=u[1],f=window.pageYOffset>this.pageYOffset?"down":"up",h=o<c,p=r<l,d=p?0:Math.max(-1*o,0),v=d/i,m=r>=l&&r<=window.innerHeight,y=o>=c&&o<=window.innerHeight,g=(y||h)&&!p;return{bottomPassed:p,bottomVisible:m,direction:f,fits:y&&m,height:i,passing:h&&!p,percentagePassed:v,pixelsPassed:d,offScreen:!g,onScreen:g,topPassed:h,topVisible:y,width:a}}},{key:"render",value:function(){var e=this.props.children,n=it(t,this.props),r=rt(t,this.props);return k.a.createElement(n,a()({},r,{ref:this.handleRef}),e)}}]),t}(T.Component);function Gi(e){var t=e.children,n=e.className,i=e.content,o=e.icon,s=Qe()("divider",n),u=rt(Gi,e),c=it(Gi,e);return xe()(o)?xe()(i)?k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?"/":t):k.a.createElement(c,a()({},u,{className:s}),i):An.create(o,{defaultProps:A()({},u,{className:s}),autoGenerateKey:!1})}_()(Ki,"defaultProps",{context:ke()?window:null,continuous:!1,offset:[0,0],once:!0,updateOn:"events"}),_()(Ki,"handledProps",["as","children","context","continuous","fireOnMount","offset","onBottomPassed","onBottomPassedReverse","onBottomVisible","onBottomVisibleReverse","onOffScreen","onOnScreen","onPassed","onPassing","onPassingReverse","onTopPassed","onTopPassedReverse","onTopVisible","onTopVisibleReverse","onUpdate","once","updateOn"]),Ki.propTypes={},Gi.handledProps=["as","children","className","content","icon"],Gi.propTypes={},Gi.create=Xe(Gi,function(e){return{icon:e}});var Qi=Gi,Yi=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"computeElementType",function(){var e=r.props,t=e.link,n=e.onClick;if(t||n)return"a"}),_()(g()(g()(r)),"handleClick",function(e){return C()(r.props,"onClick",e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.children,o=e.className,s=e.content,u=e.href,c=Qe()(ce(n,"active"),"section",o),l=rt(t,this.props),f=it(t,this.props,this.computeElementType);return k.a.createElement(f,a()({},l,{className:c,href:u,onClick:this.handleClick}),r.isNil(i)?s:i)}}]),t}(T.Component);function Xi(e){var t=e.children,n=e.className,i=e.divider,o=e.icon,s=e.sections,u=e.size,c=Qe()("ui",u,"breadcrumb",n),l=rt(Xi,e),f=it(Xi,e);if(!r.isNil(t))return k.a.createElement(f,a()({},l,{className:c}),t);var h=[];return B()(s,function(e,t){var n=Yi.create(e);if(h.push(n),t!==s.length-1){var r="".concat(n.key,"_divider")||JSON.stringify(e);h.push(Qi.create({content:i,icon:o,key:r}))}}),k.a.createElement(f,a()({},l,{className:c}),h)}_()(Yi,"handledProps",["active","as","children","className","content","href","link","onClick"]),Yi.propTypes={},Yi.create=Xe(Yi,function(e){return{content:e,link:!0}}),Xi.handledProps=["as","children","className","divider","icon","sections","size"],Xi.propTypes={},Xi.Divider=Qi,Xi.Section=Yi;var Ji=Xi;function $i(e){var t=e.children,n=e.className,i=e.content,o=e.control,s=e.disabled,u=e.error,c=e.inline,l=e.label,f=e.required,h=e.type,p=e.width,d=Qe()(ce(s,"disabled"),ce(u,"error"),ce(c,"inline"),ce(f,"required"),ve(p,"wide"),"field",n),v=rt($i,e),m=it($i,e);if(xe()(o))return xe()(l)?k.a.createElement(m,a()({},v,{className:d}),r.isNil(t)?i:t):k.a.createElement(m,a()({},v,{className:d}),tt(l,{autoGenerateKey:!1}));var y=A()({},v,{content:i,children:t,disabled:s,required:f,type:h});return"input"!==o||"checkbox"!==h&&"radio"!==h?o===Xr||o===$r?k.a.createElement(m,{className:d},Object(T.createElement)(o,A()({},y,{label:l}))):k.a.createElement(m,{className:d},tt(l,{defaultProps:{htmlFor:bi()(y,"id")},autoGenerateKey:!1}),Object(T.createElement)(o,y)):k.a.createElement(m,{className:d},k.a.createElement("label",null,Object(T.createElement)(o,y)," ",l))}$i.handledProps=["as","children","className","content","control","disabled","error","inline","label","required","type","width"],$i.propTypes={};var Zi=$i;function eo(e){var t=e.control,n=rt(eo,e),r=it(eo,e);return k.a.createElement(r,a()({},n,{control:t}))}eo.handledProps=["as","control"],eo.propTypes={},eo.defaultProps={as:Zi,control:rr};var to=eo;function no(e){var t=e.control,n=rt(no,e),r=it(no,e);return k.a.createElement(r,a()({},n,{control:t}))}no.handledProps=["as","control"],no.propTypes={},no.defaultProps={as:Zi,control:Xr};var ro=no;function io(e){var t=e.control,n=rt(io,e),r=it(io,e);return k.a.createElement(r,a()({},n,{control:t}))}io.handledProps=["as","control"],io.propTypes={},io.defaultProps={as:Zi,control:Ri};var oo=io;function ao(e){var t=e.children,n=e.className,r=e.grouped,i=e.inline,o=e.unstackable,s=e.widths,u=Qe()(ce(r,"grouped"),ce(i,"inline"),ce(o,"unstackable"),ve(s,null,!0),"fields",n),c=rt(ao,e),l=it(ao,e);return k.a.createElement(l,a()({},c,{className:u}),t)}ao.handledProps=["as","children","className","grouped","inline","unstackable","widths"],ao.propTypes={};var so=ao,uo=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"computeIcon",function(){var e=r.props,t=e.loading,n=e.icon;return xe()(n)?t?"spinner":void 0:n}),_()(g()(g()(r)),"computeTabIndex",function(){var e=r.props,t=e.disabled,n=e.tabIndex;return xe()(n)?t?-1:void 0:n}),_()(g()(g()(r)),"focus",function(){return r.inputRef.focus()}),_()(g()(g()(r)),"handleChange",function(e){var t=bi()(e,"target.value");C()(r.props,"onChange",e,A()({},r.props,{value:t}))}),_()(g()(g()(r)),"handleChildOverrides",function(e,t){return A()({},t,e.props,{ref:function(t){C()(e,"ref",t),r.handleInputRef(t)}})}),_()(g()(g()(r)),"handleInputRef",function(e){return r.inputRef=e}),_()(g()(g()(r)),"partitionProps",function(){var e=r.props,n=e.disabled,i=e.type,o=r.computeTabIndex(),a=rt(t,r.props),s=ct(a),u=z()(s,2),c=u[0],l=u[1];return[A()({},c,{disabled:n,type:i,tabIndex:o,onChange:r.handleChange,ref:r.handleInputRef}),l]}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this,n=this.props,i=n.action,o=n.actionPosition,s=n.children,u=n.className,c=n.disabled,l=n.error,f=n.fluid,h=n.focus,p=n.icon,d=n.iconPosition,v=n.input,m=n.inverted,y=n.label,g=n.labelPosition,b=n.loading,_=n.size,w=n.transparent,E=n.type,x=Qe()("ui",_,ce(c,"disabled"),ce(l,"error"),ce(f,"fluid"),ce(h,"focus"),ce(m,"inverted"),ce(b,"loading"),ce(w,"transparent"),le(o,"action")||ce(i,"action"),le(d,"icon")||ce(p||b,"icon"),le(g,"labeled")||ce(y,"labeled"),"input",u),C=it(t,this.props),S=this.partitionProps(),A=z()(S,2),N=A[0],O=A[1];if(!r.isNil(s)){var I=bt()(T.Children.toArray(s),function(t){return"input"!==t.type?t:Object(T.cloneElement)(t,e.handleChildOverrides(t,N))});return k.a.createElement(C,a()({},O,{className:x}),I)}var P=rr.create(i,{autoGenerateKey:!1}),R=Yn.create(y,{defaultProps:{className:Qe()("label",at()(g,"corner")&&g)},autoGenerateKey:!1});return k.a.createElement(C,a()({},O,{className:x}),"left"===o&&P,"right"!==g&&R,et(v||E,{defaultProps:N,autoGenerateKey:!1}),"left"!==o&&P,An.create(this.computeIcon(),{autoGenerateKey:!1}),"right"===g&&R)}}]),t}(T.Component);_()(uo,"defaultProps",{type:"text"}),_()(uo,"handledProps",["action","actionPosition","as","children","className","disabled","error","fluid","focus","icon","iconPosition","input","inverted","label","labelPosition","loading","onChange","size","tabIndex","transparent","type"]),uo.propTypes={},uo.create=Xe(uo,function(e){return{type:e}});var co=uo;function lo(e){var t=e.control,n=rt(lo,e),r=it(lo,e);return k.a.createElement(r,a()({},n,{control:t}))}lo.handledProps=["as","control"],lo.propTypes={},lo.defaultProps={as:Zi,control:co};var fo=lo;function ho(e){var t=e.control,n=rt(ho,e),r=it(ho,e);return k.a.createElement(r,a()({},n,{control:t}))}ho.handledProps=["as","control"],ho.propTypes={},ho.defaultProps={as:Zi,control:$r};var po=ho;function vo(e){var t=e.control,n=e.options,r=rt(vo,e),i=it(vo,e);return k.a.createElement(i,a()({},r,{control:t,options:n}))}vo.handledProps=["as","control","options"],vo.propTypes={},vo.defaultProps={as:Zi,control:Mi};var mo=vo;function yo(e){var t=e.control,n=rt(yo,e),r=it(yo,e);return k.a.createElement(r,a()({},n,{control:t}))}yo.handledProps=["as","control"],yo.propTypes={},yo.defaultProps={as:Zi,control:Ui};var go=yo,bo=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleSubmit",function(e){"string"!=typeof r.props.action&&C()(e,"preventDefault");for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];C.a.apply(void 0,[r.props,"onSubmit",e,r.props].concat(n))}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.action,r=e.children,i=e.className,o=e.error,s=e.inverted,u=e.loading,c=e.reply,l=e.size,f=e.success,h=e.unstackable,p=e.warning,d=e.widths,v=Qe()("ui",l,ce(o,"error"),ce(s,"inverted"),ce(u,"loading"),ce(c,"reply"),ce(f,"success"),ce(h,"unstackable"),ce(p,"warning"),ve(d,null,!0),"form",i),m=rt(t,this.props),y=it(t,this.props);return k.a.createElement(y,a()({},m,{action:n,className:v,onSubmit:this.handleSubmit}),r)}}]),t}(T.Component);_()(bo,"defaultProps",{as:"form"}),_()(bo,"Field",Zi),_()(bo,"Button",to),_()(bo,"Checkbox",ro),_()(bo,"Dropdown",oo),_()(bo,"Group",so),_()(bo,"Input",fo),_()(bo,"Radio",po),_()(bo,"Select",mo),_()(bo,"TextArea",go),_()(bo,"handledProps",["action","as","children","className","error","inverted","loading","onSubmit","reply","size","success","unstackable","warning","widths"]),bo.propTypes={};var _o=bo;function wo(e){var t=e.children,n=e.className,r=e.computer,i=e.color,o=e.floated,s=e.largeScreen,u=e.mobile,c=e.only,l=e.stretched,f=e.tablet,h=e.textAlign,p=e.verticalAlign,d=e.widescreen,v=e.width,m=Qe()(i,ce(l,"stretched"),he(c,"only"),pe(h),le(o,"floated"),de(p),ve(r,"wide computer"),ve(s,"wide large screen"),ve(u,"wide mobile"),ve(f,"wide tablet"),ve(d,"wide widescreen"),ve(v,"wide"),"column",n),y=rt(wo,e),g=it(wo,e);return k.a.createElement(g,a()({},y,{className:m}),t)}wo.handledProps=["as","children","className","color","computer","floated","largeScreen","mobile","only","stretched","tablet","textAlign","verticalAlign","widescreen","width"],wo.propTypes={},wo.create=Xe(wo,function(e){return{children:e}});var Eo=wo;function xo(e){var t=e.centered,n=e.children,r=e.className,i=e.color,o=e.columns,s=e.divided,u=e.only,c=e.reversed,l=e.stretched,f=e.textAlign,h=e.verticalAlign,p=Qe()(i,ce(t,"centered"),ce(s,"divided"),ce(l,"stretched"),he(u,"only"),he(c,"reversed"),pe(f),de(h),ve(o,"column",!0),"row",r),d=rt(xo,e),v=it(xo,e);return k.a.createElement(v,a()({},d,{className:p}),n)}xo.handledProps=["as","centered","children","className","color","columns","divided","only","reversed","stretched","textAlign","verticalAlign"],xo.propTypes={};var Co=xo;function To(e){var t=e.celled,n=e.centered,r=e.children,i=e.className,o=e.columns,s=e.container,u=e.divided,c=e.doubling,l=e.inverted,f=e.padded,h=e.relaxed,p=e.reversed,d=e.stackable,v=e.stretched,m=e.textAlign,y=e.verticalAlign,g=Qe()("ui",ce(n,"centered"),ce(s,"container"),ce(c,"doubling"),ce(l,"inverted"),ce(d,"stackable"),ce(v,"stretched"),fe(t,"celled"),fe(u,"divided"),fe(f,"padded"),fe(h,"relaxed"),he(p,"reversed"),pe(m),de(y),ve(o,"column",!0),"grid",i),b=rt(To,e),_=it(To,e);return k.a.createElement(_,a()({},b,{className:g}),r)}To.handledProps=["as","celled","centered","children","className","columns","container","divided","doubling","inverted","padded","relaxed","reversed","stackable","stretched","textAlign","verticalAlign"],To.Column=Eo,To.Row=Co,To.propTypes={};var ko=To;function So(e){var t=e.children,n=e.className,i=e.content,o=Qe()("content",n),s=rt(So,e),u=it(So,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}So.handledProps=["as","children","className","content"],So.propTypes={};var Ao=So;function No(e){var t=e.children,n=e.className,i=e.content,o=Qe()("header",n),s=rt(No,e),u=it(No,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}No.handledProps=["as","children","className","content"],No.propTypes={},No.create=Xe(No,function(e){return{content:e}});var Oo=No;function Io(e){var t=e.children,n=e.className,i=e.content,o=Qe()("content",n),s=rt(Io,e),u=it(Io,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Io.handledProps=["as","children","className","content"],Io.propTypes={},Io.defaultProps={as:"li"},Io.create=Xe(Io,function(e){return{content:e}});var Po=Io;function Ro(e){var t=e.children,n=e.className,i=e.items,o=Qe()("list",n),s=rt(Ro,e),u=it(Ro,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?bt()(i,Po.create):t)}Ro.handledProps=["as","children","className","items"],Ro.propTypes={},Ro.defaultProps={as:"ul"},Ro.create=Xe(Ro,function(e){return{items:e}});var Do=Ro,Mo=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleDismiss",function(e){var t=r.props.onDismiss;t&&t(e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.attached,i=e.children,o=e.className,s=e.color,u=e.compact,c=e.content,l=e.error,f=e.floating,h=e.header,p=e.hidden,d=e.icon,v=e.info,m=e.list,y=e.negative,g=e.onDismiss,b=e.positive,_=e.size,w=e.success,E=e.visible,x=e.warning,C=Qe()("ui",s,_,ce(u,"compact"),ce(l,"error"),ce(f,"floating"),ce(p,"hidden"),ce(d,"icon"),ce(v,"info"),ce(y,"negative"),ce(b,"positive"),ce(w,"success"),ce(E,"visible"),ce(x,"warning"),fe(n,"attached"),"message",o),T=g&&k.a.createElement(An,{name:"close",onClick:this.handleDismiss}),S=rt(t,this.props),A=it(t,this.props);return r.isNil(i)?k.a.createElement(A,a()({},S,{className:C}),T,An.create(d,{autoGenerateKey:!1}),(!xe()(h)||!xe()(c)||!xe()(m))&&k.a.createElement(Ao,null,Oo.create(h,{autoGenerateKey:!1}),Do.create(m,{autoGenerateKey:!1}),nt(c,{autoGenerateKey:!1}))):k.a.createElement(A,a()({},S,{className:C}),T,i)}}]),t}(T.Component);function Lo(e){var t=e.children,n=e.className,r=Qe()(n),i=rt(Lo,e),o=it(Lo,e);return k.a.createElement(o,a()({},i,{className:r}),t)}_()(Mo,"Content",Ao),_()(Mo,"Header",Oo),_()(Mo,"List",Do),_()(Mo,"Item",Po),_()(Mo,"handledProps",["as","attached","children","className","color","compact","content","error","floating","header","hidden","icon","info","list","negative","onDismiss","positive","size","success","visible","warning"]),Mo.propTypes={},Lo.handledProps=["as","children","className"],Lo.defaultProps={as:"tbody"},Lo.propTypes={};var jo=Lo;function Fo(e){var t=e.active,n=e.children,i=e.className,o=e.collapsing,s=e.content,u=e.disabled,c=e.error,l=e.icon,f=e.negative,h=e.positive,p=e.selectable,d=e.singleLine,v=e.textAlign,m=e.verticalAlign,y=e.warning,g=e.width,b=Qe()(ce(t,"active"),ce(o,"collapsing"),ce(u,"disabled"),ce(c,"error"),ce(f,"negative"),ce(h,"positive"),ce(p,"selectable"),ce(d,"single line"),ce(y,"warning"),pe(v),de(m),ve(g,"wide"),i),_=rt(Fo,e),w=it(Fo,e);return r.isNil(n)?k.a.createElement(w,a()({},_,{className:b}),An.create(l),s):k.a.createElement(w,a()({},_,{className:b}),n)}Fo.handledProps=["active","as","children","className","collapsing","content","disabled","error","icon","negative","positive","selectable","singleLine","textAlign","verticalAlign","warning","width"],Fo.defaultProps={as:"td"},Fo.propTypes={},Fo.create=Xe(Fo,function(e){return{content:e}});var Uo=Fo;function Bo(e){var t=e.children,n=e.className,i=e.content,o=e.fullWidth,s=Qe()(ce(o,"full-width"),n),u=rt(Bo,e),c=it(Bo,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}Bo.handledProps=["as","children","className","content","fullWidth"],Bo.defaultProps={as:"thead"},Bo.propTypes={};var qo=Bo;function Vo(e){var t=e.as,n=rt(Vo,e);return k.a.createElement(qo,a()({},n,{as:t}))}Vo.handledProps=["as"],Vo.propTypes={},Vo.defaultProps={as:"tfoot"};var Wo=Vo;function zo(e){var t=e.as,n=e.className,r=e.sorted,i=Qe()(le(r,"sorted"),n),o=rt(zo,e);return k.a.createElement(Uo,a()({},o,{as:t,className:i}))}zo.handledProps=["as","className","sorted"],zo.propTypes={},zo.defaultProps={as:"th"};var Ho=zo;function Ko(e){var t=e.active,n=e.cellAs,i=e.cells,o=e.children,s=e.className,u=e.disabled,c=e.error,l=e.negative,f=e.positive,h=e.textAlign,p=e.verticalAlign,d=e.warning,v=Qe()(ce(t,"active"),ce(u,"disabled"),ce(c,"error"),ce(l,"negative"),ce(f,"positive"),ce(d,"warning"),pe(h),de(p),s),m=rt(Ko,e),y=it(Ko,e);return r.isNil(o)?k.a.createElement(y,a()({},m,{className:v}),bt()(i,function(e){return Uo.create(e,{defaultProps:{as:n}})})):k.a.createElement(y,a()({},m,{className:v}),o)}Ko.handledProps=["active","as","cellAs","cells","children","className","disabled","error","negative","positive","textAlign","verticalAlign","warning"],Ko.defaultProps={as:"tr",cellAs:"td"},Ko.propTypes={},Ko.create=Xe(Ko,function(e){return{cells:e}});var Go=Ko;function Qo(e){var t=e.attached,n=e.basic,i=e.celled,o=e.children,s=e.className,u=e.collapsing,c=e.color,l=e.columns,f=e.compact,h=e.definition,p=e.fixed,d=e.footerRow,v=e.headerRow,m=e.inverted,y=e.padded,g=e.renderBodyRow,b=e.selectable,_=e.singleLine,w=e.size,E=e.sortable,x=e.stackable,C=e.striped,T=e.structured,S=e.tableData,A=e.textAlign,N=e.unstackable,O=e.verticalAlign,I=Qe()("ui",c,w,ce(i,"celled"),ce(u,"collapsing"),ce(h,"definition"),ce(p,"fixed"),ce(m,"inverted"),ce(b,"selectable"),ce(_,"single line"),ce(E,"sortable"),ce(x,"stackable"),ce(C,"striped"),ce(T,"structured"),ce(N,"unstackable"),fe(t,"attached"),fe(n,"basic"),fe(f,"compact"),fe(y,"padded"),pe(A),de(O),ve(l,"column"),"table",s),P=rt(Qo,e),R=it(Qo,e);return r.isNil(o)?k.a.createElement(R,a()({},P,{className:I}),v&&k.a.createElement(qo,null,Go.create(v,{defaultProps:{cellAs:"th"}})),k.a.createElement(jo,null,g&&bt()(S,function(e,t){return Go.create(g(e,t))})),d&&k.a.createElement(Wo,null,Go.create(d))):k.a.createElement(R,a()({},P,{className:I}),o)}Qo.handledProps=["as","attached","basic","celled","children","className","collapsing","color","columns","compact","definition","fixed","footerRow","headerRow","inverted","padded","renderBodyRow","selectable","singleLine","size","sortable","stackable","striped","structured","tableData","textAlign","unstackable","verticalAlign"],Qo.defaultProps={as:"table"},Qo.propTypes={},Qo.Body=jo,Qo.Cell=Uo,Qo.Footer=Wo,Qo.Header=qo,Qo.HeaderCell=Ho,Qo.Row=Go;var Yo=Qo;function Xo(e){var t=e.children,n=e.className,i=e.content,o=e.fluid,s=e.text,u=e.textAlign,c=Qe()("ui",ce(s,"text"),ce(o,"fluid"),pe(u),"container",n),l=rt(Xo,e),f=it(Xo,e);return k.a.createElement(f,a()({},l,{className:c}),r.isNil(t)?i:t)}Xo.handledProps=["as","children","className","content","fluid","text","textAlign"],Xo.propTypes={};var Jo=Xo;function $o(e){var t=e.children,n=e.className,i=e.clearing,o=e.content,s=e.fitted,u=e.hidden,c=e.horizontal,l=e.inverted,f=e.section,h=e.vertical,p=Qe()("ui",ce(i,"clearing"),ce(s,"fitted"),ce(u,"hidden"),ce(c,"horizontal"),ce(l,"inverted"),ce(f,"section"),ce(h,"vertical"),"divider",n),d=rt($o,e),v=it($o,e);return k.a.createElement(v,a()({},d,{className:p}),r.isNil(t)?o:t)}$o.handledProps=["as","children","className","clearing","content","fitted","hidden","horizontal","inverted","section","vertical"],$o.propTypes={};var Zo=$o;function ea(e){var t=e.children,n=e.className,i=e.content,o=Qe()("sub header",n),s=rt(ea,e),u=it(ea,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}ea.handledProps=["as","children","className","content"],ea.propTypes={},ea.create=Xe(ea,function(e){return{content:e}});var ta=ea;function na(e){var t=e.children,n=e.className,i=e.content,o=Qe()("content",n),s=rt(na,e),u=it(na,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}na.handledProps=["as","children","className","content"],na.propTypes={};var ra=na;function ia(e){var t=e.attached,n=e.block,i=e.children,o=e.className,s=e.color,u=e.content,c=e.disabled,l=e.dividing,f=e.floated,h=e.icon,p=e.image,d=e.inverted,v=e.size,m=e.sub,y=e.subheader,g=e.textAlign,b=Qe()("ui",s,v,ce(n,"block"),ce(c,"disabled"),ce(l,"dividing"),le(f,"floated"),ce(!0===h,"icon"),ce(!0===p,"image"),ce(d,"inverted"),ce(m,"sub"),fe(t,"attached"),pe(g),"header",o),_=rt(ia,e),w=it(ia,e);if(!r.isNil(i))return k.a.createElement(w,a()({},_,{className:b}),i);var E=An.create(h,{autoGenerateKey:!1}),x=zn.create(p,{autoGenerateKey:!1}),C=ta.create(y,{autoGenerateKey:!1});return E||x?k.a.createElement(w,a()({},_,{className:b}),E||x,(u||C)&&k.a.createElement(ra,null,u,C)):k.a.createElement(w,a()({},_,{className:b}),u,C)}ia.handledProps=["as","attached","block","children","className","color","content","disabled","dividing","floated","icon","image","inverted","size","sub","subheader","textAlign"],ia.propTypes={},ia.Content=ra,ia.Subheader=ta;var oa=ia;function aa(e){var t=e.children,n=e.className,i=e.content,o=Qe()(n,"description"),s=rt(aa,e),u=it(aa,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}aa.handledProps=["as","children","className","content"],aa.propTypes={},aa.create=Xe(aa,function(e){return{content:e}});var sa=aa;function ua(e){var t=e.children,n=e.className,i=e.content,o=Qe()("header",n),s=rt(ua,e),u=it(ua,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}ua.handledProps=["as","children","className","content"],ua.propTypes={},ua.create=Xe(ua,function(e){return{content:e}});var ca=ua;function la(e){var t=e.children,n=e.className,i=e.content,o=e.description,s=e.floated,u=e.header,c=e.verticalAlign,l=Qe()(le(s,"floated"),de(c),"content",n),f=rt(la,e),h=it(la,e);return r.isNil(t)?k.a.createElement(h,a()({},f,{className:l}),ca.create(u),sa.create(o),i):k.a.createElement(h,a()({},f,{className:l}),t)}la.handledProps=["as","children","className","content","description","floated","header","verticalAlign"],la.propTypes={},la.create=Xe(la,function(e){return{content:e}});var fa=la;function ha(e){var t=e.className,n=e.verticalAlign,r=Qe()(de(n),t),i=rt(ha,e);return k.a.createElement(An,a()({},i,{className:r}))}ha.handledProps=["className","verticalAlign"],ha.propTypes={},ha.create=Xe(ha,function(e){return{name:e}});var pa=ha,da=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){r.props.disabled||C()(r.props,"onClick",e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.children,o=e.className,s=e.content,u=e.description,c=e.disabled,l=e.header,f=e.icon,h=e.image,p=e.value,d=it(t,this.props),v=Qe()(ce(n,"active"),ce(c,"disabled"),ce("li"!==d,"item"),o),m=rt(t,this.props),y="li"===d?{value:p}:{"data-value":p};if(!r.isNil(i))return k.a.createElement(d,a()({},m,y,{role:"listitem",className:v,onClick:this.handleClick}),i);var g=pa.create(f,{autoGenerateKey:!1}),b=zn.create(h,{autoGenerateKey:!1});if(!Object(T.isValidElement)(s)&&Fe()(s))return k.a.createElement(d,a()({},m,y,{role:"listitem",className:v,onClick:this.handleClick}),g||b,fa.create(s,{autoGenerateKey:!1,defaultProps:{header:l,description:u}}));var _=ca.create(l,{autoGenerateKey:!1}),w=sa.create(u,{autoGenerateKey:!1});return g||b?k.a.createElement(d,a()({},m,y,{role:"listitem",className:v,onClick:this.handleClick}),g||b,(s||_||w)&&k.a.createElement(fa,null,_,w,s)):k.a.createElement(d,a()({},m,y,{role:"listitem",className:v,onClick:this.handleClick}),_,w,s)}}]),t}(T.Component);_()(da,"handledProps",["active","as","children","className","content","description","disabled","header","icon","image","onClick","value"]),da.propTypes={},da.create=Xe(da,function(e){return{content:e}});var va=da;function ma(e){var t=e.children,n=e.className,i=e.content,o=rt(ma,e),s=it(ma,e),u=Qe()(ce("ul"!==s&&"ol"!==s,"list"),n);return k.a.createElement(s,a()({},o,{className:u}),r.isNil(t)?i:t)}ma.handledProps=["as","children","className","content"],ma.propTypes={};var ya=ma,ga=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleItemOverrides",function(e){return{onClick:function(t,n){C()(e,"onClick",t,n),C()(r.props,"onItemClick",t,n)}}}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this,n=this.props,i=n.animated,o=n.bulleted,s=n.celled,u=n.children,c=n.className,l=n.content,f=n.divided,h=n.floated,p=n.horizontal,d=n.inverted,v=n.items,m=n.link,y=n.ordered,g=n.relaxed,b=n.selection,_=n.size,w=n.verticalAlign,E=Qe()("ui",_,ce(i,"animated"),ce(o,"bulleted"),ce(s,"celled"),ce(f,"divided"),ce(p,"horizontal"),ce(d,"inverted"),ce(m,"link"),ce(y,"ordered"),ce(b,"selection"),fe(g,"relaxed"),le(h,"floated"),de(w),"list",c),x=rt(t,this.props),C=it(t,this.props);return r.isNil(u)?r.isNil(l)?k.a.createElement(C,a()({},x,{role:"list",className:E}),bt()(v,function(t){return va.create(t,{overrideProps:e.handleItemOverrides})})):k.a.createElement(C,a()({},x,{role:"list",className:E}),l):k.a.createElement(C,a()({},x,{role:"list",className:E}),u)}}]),t}(T.Component);_()(ga,"Content",fa),_()(ga,"Description",sa),_()(ga,"Header",ca),_()(ga,"Icon",pa),_()(ga,"Item",va),_()(ga,"List",ya),_()(ga,"handledProps",["animated","as","bulleted","celled","children","className","content","divided","floated","horizontal","inverted","items","link","onItemClick","ordered","relaxed","selection","size","verticalAlign"]),ga.propTypes={};var ba=ga;function _a(e){var t=e.active,n=e.children,i=e.className,o=e.content,s=e.disabled,u=e.indeterminate,c=e.inline,l=e.inverted,f=e.size,h=Qe()("ui",f,ce(t,"active"),ce(s,"disabled"),ce(u,"indeterminate"),ce(l,"inverted"),ce(n||o,"text"),fe(c,"inline"),"loader",i),p=rt(_a,e),d=it(_a,e);return k.a.createElement(d,a()({},p,{className:h}),r.isNil(n)?o:n)}_a.handledProps=["active","as","children","className","content","disabled","indeterminate","inline","inverted","size"],_a.propTypes={};var wa=_a;function Ea(e){var t=e.attached,n=e.children,i=e.className,o=e.close,s=e.content,u=e.dividing,c=e.internal,l=e.position,f=e.size,h=Qe()("ui",l,f,ce(t,"attached"),ce(u,"dividing"),ce(c,"internal"),fe(o,"close"),"rail",i),p=rt(Ea,e),d=it(Ea,e);return k.a.createElement(d,a()({},p,{className:h}),r.isNil(n)?s:n)}Ea.handledProps=["as","attached","children","className","close","content","dividing","internal","position","size"],Ea.propTypes={};var xa=Ea;function Ca(e){var t=e.children,n=e.className,i=e.content,o=e.hidden,s=e.visible,u=Qe()("ui",ce(o,"hidden"),ce(s,"visible"),"content",n),c=rt(Ca,e),l=it(Ca,e);return k.a.createElement(l,a()({},c,{className:u}),r.isNil(t)?i:t)}Ca.handledProps=["as","children","className","content","hidden","visible"],Ca.propTypes={};var Ta=Ca;function ka(e){var t=e.active,n=e.animated,i=e.children,o=e.className,s=e.content,u=e.disabled,c=e.instant,l=Qe()("ui",n,ce(t,"active"),ce(u,"disabled"),ce(c,"instant"),"reveal",o),f=rt(ka,e),h=it(ka,e);return k.a.createElement(h,a()({},f,{className:l}),r.isNil(i)?s:i)}ka.handledProps=["active","animated","as","children","className","content","disabled","instant"],ka.propTypes={},ka.Content=Ta;var Sa=ka;function Aa(e){var t=e.children,n=e.className,i=e.compact,o=e.content,s=e.horizontal,u=e.piled,c=e.raised,l=e.size,f=e.stacked,h=Qe()("ui",l,ce(i,"compact"),ce(s,"horizontal"),ce(u,"piled"),ce(c,"raised"),ce(f,"stacked"),"segments",n),p=rt(Aa,e),d=it(Aa,e);return k.a.createElement(d,a()({},p,{className:h}),r.isNil(t)?o:t)}Aa.handledProps=["as","children","className","compact","content","horizontal","piled","raised","size","stacked"],Aa.propTypes={};var Na=Aa;function Oa(e){var t=e.attached,n=e.basic,i=e.children,o=e.circular,s=e.className,u=e.clearing,c=e.color,l=e.compact,f=e.content,h=e.disabled,p=e.floated,d=e.inverted,v=e.loading,m=e.padded,y=e.piled,g=e.raised,b=e.secondary,_=e.size,w=e.stacked,E=e.tertiary,x=e.textAlign,C=e.vertical,T=Qe()("ui",c,_,ce(n,"basic"),ce(o,"circular"),ce(u,"clearing"),ce(l,"compact"),ce(h,"disabled"),ce(d,"inverted"),ce(v,"loading"),ce(y,"piled"),ce(g,"raised"),ce(b,"secondary"),ce(w,"stacked"),ce(E,"tertiary"),ce(C,"vertical"),fe(t,"attached"),fe(m,"padded"),pe(x),le(p,"floated"),"segment",s),S=rt(Oa,e),A=it(Oa,e);return k.a.createElement(A,a()({},S,{className:T}),r.isNil(i)?f:i)}Oa.handledProps=["as","attached","basic","children","circular","className","clearing","color","compact","content","disabled","floated","inverted","loading","padded","piled","raised","secondary","size","stacked","tertiary","textAlign","vertical"],Oa.Group=Na,Oa.propTypes={};var Ia=Oa;function Pa(e){var t=e.children,n=e.className,i=e.content,o=Qe()("description",n),s=rt(Pa,e),u=it(Pa,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Pa.handledProps=["as","children","className","content"],Pa.propTypes={},Pa.create=Xe(Pa,function(e){return{content:e}});var Ra=Pa;function Da(e){var t=e.children,n=e.className,i=e.content,o=Qe()("title",n),s=rt(Da,e),u=it(Da,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Da.handledProps=["as","children","className","content"],Da.propTypes={},Da.create=Xe(Da,function(e){return{content:e}});var Ma=Da;function La(e){var t=e.children,n=e.className,i=e.content,o=e.description,s=e.title,u=Qe()("content",n),c=rt(La,e),l=it(La,e);return r.isNil(t)?r.isNil(i)?k.a.createElement(l,a()({},c,{className:u}),Ma.create(s,{autoGenerateKey:!1}),Ra.create(o,{autoGenerateKey:!1})):k.a.createElement(l,a()({},c,{className:u}),i):k.a.createElement(l,a()({},c,{className:u}),t)}La.handledProps=["as","children","className","content","description","title"],La.propTypes={},La.create=Xe(La,function(e){return{content:e}});var ja=La,Fa=n(291);n.n(Fa)()(se,function(e,t){return t<=8});function Ua(e){var t=e.attached,n=e.children,i=e.className,o=e.content,s=e.fluid,u=e.items,c=e.ordered,l=e.size,f=e.stackable,h=e.unstackable,p=e.vertical,d=e.widths,v=Qe()("ui",l,ce(s,"fluid"),ce(c,"ordered"),ce(h,"unstackable"),ce(p,"vertical"),fe(t,"attached"),le(f,"stackable"),ve(d),"steps",i),m=rt(Ua,e),y=it(Ua,e);return r.isNil(n)?r.isNil(o)?k.a.createElement(y,a()({},m,{className:v}),bt()(u,function(e){return Va.create(e)})):k.a.createElement(y,a()({},m,{className:v}),o):k.a.createElement(y,a()({},m,{className:v}),n)}Ua.handledProps=["as","attached","children","className","content","fluid","items","ordered","size","stackable","unstackable","vertical","widths"],Ua.propTypes={};var Ba=Ua,qa=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"computeElementType",function(){if(r.props.onClick)return"a"}),_()(g()(g()(r)),"handleClick",function(e){r.props.disabled||C()(r.props,"onClick",e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,i=e.children,o=e.className,s=e.completed,u=e.content,c=e.description,l=e.disabled,f=e.href,h=e.icon,p=e.link,d=e.title,v=Qe()(ce(n,"active"),ce(s,"completed"),ce(l,"disabled"),ce(p,"link"),"step",o),m=rt(t,this.props),y=it(t,this.props,this.computeElementType);return r.isNil(i)?r.isNil(u)?k.a.createElement(y,a()({},m,{className:v,href:f,onClick:this.handleClick}),An.create(h,{autoGenerateKey:!1}),ja.create({description:c,title:d},{autoGenerateKey:!1})):k.a.createElement(y,a()({},m,{className:v,href:f,onClick:this.handleClick}),u):k.a.createElement(y,a()({},m,{className:v,href:f,onClick:this.handleClick}),i)}}]),t}(T.Component);_()(qa,"Content",ja),_()(qa,"Description",Ra),_()(qa,"Group",Ba),_()(qa,"Title",Ma),_()(qa,"handledProps",["active","as","children","className","completed","content","description","disabled","href","icon","link","onClick","ordered","title"]),qa.propTypes={},qa.create=Xe(qa,function(e){return{content:e}});var Va=qa;function Wa(e){var t=e.active,n=e.children,i=e.className,o=e.content,s=Qe()("content",ce(t,"active"),i),u=rt(Wa,e),c=it(Wa,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(n)?o:n)}Wa.handledProps=["active","as","children","className","content"],Wa.propTypes={},Wa.create=Xe(Wa,function(e){return{content:e}});var za=Wa,Ha=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){return C()(r.props,"onClick",e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.children,i=e.className,o=e.content,s=Qe()(ce(n,"active"),"title",i),u=rt(t,this.props),c=it(t,this.props);return xe()(o)?k.a.createElement(c,a()({},u,{className:s,onClick:this.handleClick}),r):k.a.createElement(c,a()({},u,{className:s,onClick:this.handleClick}),k.a.createElement(An,{name:"dropdown"}),o)}}]),t}(T.Component);_()(Ha,"handledProps",["active","as","children","className","content","index","onClick"]),Ha.propTypes={},Ha.create=Xe(Ha,function(e){return{content:e}});var Ka=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"computeNewIndex",function(e){var t=r.props.exclusive,n=r.state.activeIndex;return t?e===n?-1:e:at()(n,e)?Cn()(n,e):ye()(n).concat([e])}),_()(g()(g()(r)),"handleTitleOverrides",function(e){return{onClick:function(t,n){var i=n.index,o=r.computeNewIndex(i);r.trySetState({activeIndex:o}),C()(e,"onClick",t,n),C()(r.props,"onTitleClick",t,n)}}}),_()(g()(g()(r)),"isIndexActive",function(e){var t=r.props.exclusive,n=r.state.activeIndex;return t?n===e:at()(n,e)}),_()(g()(g()(r)),"renderPanels",function(){var e=[],t=r.props.panels;return B()(t,function(t,n){var i=t.content,o=t.title,a=r.isIndexActive(n);e.push(Ha.create(o,{defaultProps:{active:a,index:n},overrideProps:r.handleTitleOverrides})),e.push(za.create(i,{defaultProps:{active:a}}))}),e}),n))}return m()(t,e),l()(t,[{key:"getInitialAutoControlledState",value:function(e){return{activeIndex:e.exclusive?-1:[-1]}}},{key:"render",value:function(){var e=this.props,n=e.className,r=e.children,i=Qe()("accordion",n),o=rt(t,this.props),s=it(t,this.props);return k.a.createElement(s,a()({},o,{className:i}),xe()(r)?this.renderPanels():r)}}]),t}(V);function Ga(e){var t=e.className,n=e.fluid,r=e.inverted,i=e.styled,o=Qe()("ui",ce(n,"fluid"),ce(r,"inverted"),ce(i,"styled"),t),s=rt(Ga,e);return k.a.createElement(Ka,a()({},s,{className:o}))}_()(Ka,"defaultProps",{exclusive:!0}),_()(Ka,"autoControlledProps",["activeIndex"]),_()(Ka,"handledProps",["activeIndex","as","children","className","defaultActiveIndex","exclusive","onTitleClick","panels"]),Ka.propTypes={},Ka.create=Xe(Ka,function(e){return{content:e}}),Ga.handledProps=["className","fluid","inverted","styled"],Ga.propTypes={},Ga.Accordion=Ka,Ga.Content=za,Ga.Title=Ha;var Qa=Ga,Ya=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){var t=r.props.onClick,n=r.state.active;t&&t(e,A()({},r.props,{active:!0})),n||r.trySetState({active:!0})}),n))}return m()(t,e),l()(t,[{key:"getSrc",value:function(){var e=this.props,t=e.autoplay,n=void 0===t||t,r=e.brandedUI,i=void 0!==r&&r,o=e.color,a=void 0===o?"#444444":o,s=e.hd,u=void 0===s||s,c=e.id,l=e.source,f=e.url;return"youtube"===l?["//www.youtube.com/embed/".concat(c),"?autohide=true","&autoplay=".concat(n),"&color=".concat(encodeURIComponent(a)),"&hq=".concat(u),"&jsapi=false","&modestbranding=".concat(i),"&rel=".concat(i?0:1)].join(""):"vimeo"===l?["//player.vimeo.com/video/".concat(c),"?api=false","&autoplay=".concat(n),"&byline=false","&color=".concat(encodeURIComponent(a)),"&portrait=false","&title=false"].join(""):f}},{key:"render",value:function(){var e=this.props,n=e.aspectRatio,r=e.className,i=e.icon,o=e.placeholder,s=this.state.active,u=Qe()("ui",n,ce(s,"active"),"embed",r),c=rt(t,this.props),l=it(t,this.props),f=void 0!==i?i:"video play";return k.a.createElement(l,a()({},c,{className:u,onClick:this.handleClick}),An.create(f,{autoGenerateKey:!1}),o&&k.a.createElement("img",{className:"placeholder",src:o}),this.renderEmbed())}},{key:"renderEmbed",value:function(){var e=this.props,t=e.children,n=e.content,i=e.iframe,o=e.source;return this.state.active?r.isNil(t)?r.isNil(n)?k.a.createElement("div",{className:"embed"},$e(r.isNil(i)?this.getSrc():i,{defaultProps:{allowFullScreen:!1,frameBorder:0,height:"100%",scrolling:"no",src:this.getSrc(),title:"Embedded content from ".concat(o,"."),width:"100%"},autoGenerateKey:!1})):k.a.createElement("div",{className:"embed"},n):k.a.createElement("div",{className:"embed"},t):null}}]),t}(V);_()(Ya,"autoControlledProps",["active"]),_()(Ya,"handledProps",["active","as","aspectRatio","autoplay","brandedUI","children","className","color","content","defaultActive","hd","icon","id","iframe","onClick","placeholder","source","url"]),Ya.propTypes={};var Xa=n(290),Ja=n.n(Xa);function $a(e){var t=e.children,n=e.className,i=e.content,o=Qe()("content",n),s=rt($a,e),u=it($a,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}function Za(e){var t=e.children,n=e.className,i=e.content,o=Qe()("header",n),s=rt(Za,e),u=it(Za,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}$a.handledProps=["as","children","className","content"],$a.propTypes={},$a.create=Xe($a,function(e){return{children:e}}),Za.handledProps=["as","children","className","content"],Za.propTypes={},Za.create=Xe(Za,function(e){return{children:e}});var es=["top left","top right","bottom right","bottom left","right center","left center","top center","bottom center"],ts=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"state",{}),_()(g()(g()(r)),"hideOnScroll",function(e){r.setState({closed:!0}),De.unsub("scroll",r.hideOnScroll,{target:window}),setTimeout(function(){r.mounted&&r.setState({closed:!1})},50),r.handleClose(e)}),_()(g()(g()(r)),"handleClose",function(e){C()(r.props,"onClose",e,r.props)}),_()(g()(g()(r)),"handleOpen",function(e){r.coords=e.currentTarget.getBoundingClientRect();var t=r.props.onOpen;t&&t(e,r.props)}),_()(g()(g()(r)),"handlePortalMount",function(e){r.props.hideOnScroll&&De.sub("scroll",r.hideOnScroll,{target:window}),r.setPosition(),C()(r.props,"onMount",e,r.props)}),_()(g()(g()(r)),"handlePortalUnmount",function(e){var t=r.props.hideOnScroll;cancelAnimationFrame(r.animationRequestId),t&&De.unsub("scroll",r.hideOnScroll,{target:window}),C()(r.props,"onUnmount",e,r.props)}),_()(g()(g()(r)),"handlePopupRef",function(e){r.popupCoords=e?e.getBoundingClientRect():null,r.setPopupStyle()}),_()(g()(g()(r)),"handleTriggerRef",function(e){e&&(r.triggerRef=e)}),_()(g()(g()(r)),"setPosition",function(){r.triggerRef&&r.setPopupStyle(r.props.position),r.animationRequestId=requestAnimationFrame(r.setPosition)}),n))}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){this.mounted=!0}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"computePopupStyle",value:function(e){var t={position:"absolute"};if(!ke())return t;var n=this.props,r=n.horizontalOffset,i=n.verticalOffset,o=window,a=o.pageYOffset,s=o.pageXOffset,u=document.documentElement,c=u.clientWidth,l=u.clientHeight,f=this.coords||this.triggerRef.getBoundingClientRect();if(at()(e,"right"))t.right=Math.round(c-(f.right+s)),t.left="auto";else if(at()(e,"left"))t.left=Math.round(f.left+s),t.right="auto";else{var h=(f.width-this.popupCoords.width)/2;t.left=Math.round(f.left+h+s),t.right="auto"}if(at()(e,"top"))t.bottom=Math.round(l-(f.top+a)),t.top="auto";else if(at()(e,"bottom"))t.top=Math.round(f.bottom+a),t.bottom="auto";else{var p=(f.height+this.popupCoords.height)/2;t.top=Math.round(f.bottom+a-p),t.bottom="auto";var d=this.popupCoords.width+8;at()(e,"right")?t.right-=d:t.left-=d}return r&&(Ve()(t.right)?t.right-=r:t.left-=r),i&&(Ve()(t.top)?t.top+=i:t.bottom+=i),t}},{key:"isStyleInViewport",value:function(e){var t=window,n=t.pageYOffset,r=t.pageXOffset,i=document.documentElement,o=i.clientWidth,a=i.clientHeight,s={top:e.top,left:e.left,width:this.popupCoords.width,height:this.popupCoords.height};return Ve()(e.right)&&(s.left=o-e.right-s.width),Ve()(e.bottom)&&(s.top=a-e.bottom-s.height),!(s.top<n)&&(!(s.top+s.height>n+a)&&(!(s.left<r)&&!(s.left+s.width>r+o)))}},{key:"setPopupStyle",value:function(){if((this.coords||this.triggerRef)&&this.popupCoords){var e=this.props.position,t=this.computePopupStyle(e);if(this.props.keepInViewPort)for(var n=Cn()(es,e).concat([e]),r=0;!this.isStyleInViewport(t)&&r<n.length;r+=1)t=this.computePopupStyle(n[r]),e=n[r];t=qi()(t,function(e){return Ve()(e)?"".concat(e,"px"):e}),this.setState({style:t,position:e})}}},{key:"getPortalProps",value:function(){var e={},t=this.props,n=t.on,r=t.hoverable,i=Ie()(n)?n:[n];return r&&(e.closeOnPortalMouseLeave=!0,e.mouseLeaveDelay=300),at()(i,"click")&&(e.openOnTriggerClick=!0,e.closeOnTriggerClick=!0,e.closeOnDocumentClick=!0),at()(i,"focus")&&(e.openOnTriggerFocus=!0,e.closeOnTriggerBlur=!0),at()(i,"hover")&&(e.openOnTriggerMouseEnter=!0,e.closeOnTriggerMouseLeave=!0,e.mouseLeaveDelay=70,e.mouseEnterDelay=50),e}},{key:"render",value:function(){var e=this.props,n=e.basic,i=e.children,o=e.className,s=e.content,u=e.flowing,c=e.header,l=e.inverted,f=e.size,h=e.trigger,p=e.wide,d=this.state,v=d.position,m=d.closed,y=Ja()({},this.state.style,this.props.style),g=Qe()("ui",v,f,fe(p,"wide"),ce(n,"basic"),ce(u,"flowing"),ce(l,"inverted"),"popup transition visible",o);if(m)return h;var b=rt(t,this.props),_=Mn.handledProps,w=sr()(b,function(e,t,n){return at()(_,n)||(e[n]=t),e},{}),E=or()(b,_),x=it(t,this.props),C=k.a.createElement(x,a()({},w,{className:g,style:y,ref:this.handlePopupRef}),i,r.isNil(i)&&Za.create(c,{autoGenerateKey:!1}),r.isNil(i)&&$a.create(s,{autoGenerateKey:!1})),T=A()({},this.getPortalProps(),E);return k.a.createElement(Rn,{innerRef:this.handleTriggerRef},k.a.createElement(Mn,a()({},T,{trigger:h,onClose:this.handleClose,onMount:this.handlePortalMount,onOpen:this.handleOpen,onUnmount:this.handlePortalUnmount}),C))}}]),t}(T.Component);_()(ts,"defaultProps",{position:"top left",on:"hover",keepInViewPort:!0}),_()(ts,"Content",$a),_()(ts,"Header",Za),_()(ts,"handledProps",["as","basic","children","className","content","flowing","header","hideOnScroll","horizontalOffset","hoverable","inverted","keepInViewPort","on","onClose","onMount","onOpen","onUnmount","position","size","style","trigger","verticalOffset","wide"]),ts.propTypes={};var ns=n(289),rs=n.n(ns),is=n(288),os=n.n(is),as=function(e){function t(){var e,n,i;u()(this,t);for(var o=arguments.length,a=new Array(o),s=0;s<o;s++)a[s]=arguments[s];return h()(i,(n=i=h()(this,(e=d()(t)).call.apply(e,[this].concat(a))),_()(g()(g()(i)),"calculatePercent",function(){var e=i.props,t=e.percent,n=e.total,r=e.value;return P()(t)?P()(n)||P()(r)?void 0:r/n*100:t}),_()(g()(g()(i)),"computeValueText",function(e){var t=i.props,n=t.progress,r=t.total,o=t.value;return"value"===n?o:"ratio"===n?"".concat(o,"/").concat(r):"".concat(e,"%")}),_()(g()(g()(i)),"getPercent",function(){var e=i.props,t=e.precision,n=e.progress,r=e.total,o=e.value,a=os()(i.calculatePercent(),0,100);return P()(r)||P()(o)||"value"!==n?"value"===n?o:P()(t)?a:rs()(a,t):o/r*100}),_()(g()(g()(i)),"isAutoSuccess",function(){var e=i.props,t=e.autoSuccess,n=e.percent,r=e.total,o=e.value;return t&&(n>=100||o>=r)}),_()(g()(g()(i)),"renderLabel",function(){var e=i.props,t=e.children,n=e.content,o=e.label;return r.isNil(t)?r.isNil(n)?Je(o,{autoGenerateKey:!1,defaultProps:{className:"label"}}):k.a.createElement("div",{className:"label"},n):k.a.createElement("div",{className:"label"},t)}),_()(g()(g()(i)),"renderProgress",function(e){var t=i.props,n=t.precision;if(t.progress||!P()(n))return k.a.createElement("div",{className:"progress"},i.computeValueText(e))}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.attached,i=e.className,o=e.color,s=e.disabled,u=e.error,c=e.indicating,l=e.inverted,f=e.size,h=e.success,p=e.warning,d=Qe()("ui",o,f,ce(n||c,"active"),ce(s,"disabled"),ce(u,"error"),ce(c,"indicating"),ce(l,"inverted"),ce(h||this.isAutoSuccess(),"success"),ce(p,"warning"),le(r,"attached"),"progress",i),v=rt(t,this.props),m=it(t,this.props),y=this.getPercent()||0;return k.a.createElement(m,a()({},v,{className:d,"data-percent":Math.floor(y)}),k.a.createElement("div",{className:"bar",style:{width:"".concat(y,"%")}},this.renderProgress(y)),this.renderLabel())}}]),t}(T.Component);_()(as,"handledProps",["active","as","attached","autoSuccess","children","className","color","content","disabled","error","indicating","inverted","label","percent","precision","progress","size","success","total","value","warning"]),as.propTypes={};var ss=as,us=n(287),cs=n.n(us),ls=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){var t=r.props.onClick;t&&t(e,r.props)}),_()(g()(g()(r)),"handleKeyUp",function(e){var t=r.props,n=t.onClick,i=t.onKeyUp;if(i&&i(e,r.props),n)switch(On.a.getCode(e)){case On.a.Enter:case On.a.Spacebar:e.preventDefault(),n(e,r.props)}}),_()(g()(g()(r)),"handleMouseEnter",function(e){var t=r.props.onMouseEnter;t&&t(e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.className,i=e.selected,o=Qe()(ce(n,"active"),ce(i,"selected"),"icon",r),s=rt(t,this.props),u=it(t,this.props);return k.a.createElement(u,a()({},s,{className:o,onClick:this.handleClick,onKeyUp:this.handleKeyUp,onMouseEnter:this.handleMouseEnter,tabIndex:0,role:"radio"}))}}]),t}(T.Component);_()(ls,"defaultProps",{as:"i"}),_()(ls,"handledProps",["active","as","className","index","onClick","onKeyUp","onMouseEnter","selected"]),ls.propTypes={};var fs=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleIconClick",function(e,t){var n=t.index,i=r.props,o=i.clearable,a=i.disabled,s=i.maxRating,u=i.onRate,c=r.state.rating;if(!a){var l=n+1;"auto"===o&&1===s?l=+!c:!0===o&&l===c&&(l=0),r.trySetState({rating:l},{isSelecting:!1}),u&&u(e,A()({},r.props,{rating:l}))}}),_()(g()(g()(r)),"handleIconMouseEnter",function(e,t){var n=t.index;r.props.disabled||r.setState({selectedIndex:n,isSelecting:!0})}),_()(g()(g()(r)),"handleMouseLeave",function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];C.a.apply(void 0,[r.props,"onMouseLeave"].concat(t)),r.props.disabled||r.setState({selectedIndex:-1,isSelecting:!1})}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this,n=this.props,r=n.className,i=n.disabled,o=n.icon,s=n.maxRating,u=n.size,c=this.state,l=c.rating,f=c.selectedIndex,h=c.isSelecting,p=Qe()("ui",o,u,ce(i,"disabled"),ce(h&&!i&&f>=0,"selected"),"rating",r),d=rt(t,this.props),v=it(t,this.props);return k.a.createElement(v,a()({},d,{className:p,role:"radiogroup",onMouseLeave:this.handleMouseLeave}),cs()(s,function(t){return k.a.createElement(ls,{active:l>=t+1,"aria-checked":l===t+1,"aria-posinset":t+1,"aria-setsize":s,index:t,key:t,onClick:e.handleIconClick,onMouseEnter:e.handleIconMouseEnter,selected:f>=t&&h})}))}}]),t}(V);_()(fs,"autoControlledProps",["rating"]),_()(fs,"defaultProps",{clearable:"auto",maxRating:1}),_()(fs,"Icon",ls),_()(fs,"handledProps",["as","className","clearable","defaultRating","disabled","icon","maxRating","onRate","rating","size"]),fs.propTypes={};var hs=n(53),ps=n.n(hs),ds=n(286),vs=n.n(ds);function ms(e){var t=e.active,n=e.children,i=e.className,o=e.content,s=e.renderer,u=Qe()(ce(t,"active"),"category",i),c=rt(ms,e),l=it(ms,e);return k.a.createElement(l,a()({},c,{className:u}),k.a.createElement("div",{className:"name"},s(e)),r.isNil(n)?o:n)}ms.handledProps=["active","as","children","className","content","name","renderer","results"],ms.defaultProps={renderer:function(e){return e.name}},ms.propTypes={};var ys=ms,gs=function(e){var t=e.image,n=e.price,r=e.title,i=e.description;return[t&&k.a.createElement("div",{key:"image",className:"image"},Ze(t,{autoGenerateKey:!1})),k.a.createElement("div",{key:"content",className:"content"},n&&k.a.createElement("div",{className:"price"},n),r&&k.a.createElement("div",{className:"title"},r),i&&k.a.createElement("div",{className:"description"},i))]};gs.handledProps=[];var bs=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){var t=r.props.onClick;t&&t(e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.active,r=e.className,i=e.renderer,o=Qe()(ce(n,"active"),"result",r),s=rt(t,this.props),u=it(t,this.props);return k.a.createElement(u,a()({},s,{className:o,onClick:this.handleClick}),i(this.props))}}]),t}(T.Component);function _s(e){var t=e.children,n=e.className,i=e.content,o=Qe()("results transition",n),s=rt(_s,e),u=it(_s,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}_()(bs,"defaultProps",{renderer:gs}),_()(bs,"handledProps",["active","as","className","content","description","id","image","onClick","price","renderer","title"]),bs.propTypes={},_s.handledProps=["as","children","className","content"],_s.propTypes={};var ws=_s,Es=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),s=0;s<i;s++)o[s]=arguments[s];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleResultSelect",function(e,t){C()(r.props,"onResultSelect",e,A()({},r.props,{result:t}))}),_()(g()(g()(r)),"handleSelectionChange",function(e){var t=r.getSelectedResult();C()(r.props,"onSelectionChange",e,A()({},r.props,{result:t}))}),_()(g()(g()(r)),"closeOnEscape",function(e){On.a.getCode(e)===On.a.Escape&&(e.preventDefault(),r.close())}),_()(g()(g()(r)),"moveSelectionOnKeyDown",function(e){switch(On.a.getCode(e)){case On.a.ArrowDown:e.preventDefault(),r.moveSelectionBy(e,1);break;case On.a.ArrowUp:e.preventDefault(),r.moveSelectionBy(e,-1)}}),_()(g()(g()(r)),"selectItemOnEnter",function(e){if(On.a.getCode(e)===On.a.Enter){var t=r.getSelectedResult();t&&(e.preventDefault(),r.setValue(t.title),r.handleResultSelect(e,t),r.close())}}),_()(g()(g()(r)),"closeOnDocumentClick",function(e){r.close()}),_()(g()(g()(r)),"handleMouseDown",function(e){r.isMouseDown=!0,C()(r.props,"onMouseDown",e,r.props),De.sub("mouseup",r.handleDocumentMouseUp)}),_()(g()(g()(r)),"handleDocumentMouseUp",function(){r.isMouseDown=!1,De.unsub("mouseup",r.handleDocumentMouseUp)}),_()(g()(g()(r)),"handleInputClick",function(e){e.nativeEvent.stopImmediatePropagation(),r.tryOpen()}),_()(g()(g()(r)),"handleItemClick",function(e,t){var n=t.id,i=r.getSelectedResult(n);e.nativeEvent.stopImmediatePropagation(),r.setValue(i.title),r.handleResultSelect(e,i),r.close()}),_()(g()(g()(r)),"handleFocus",function(e){var t=r.props.onFocus;t&&t(e,r.props),r.setState({focus:!0})}),_()(g()(g()(r)),"handleBlur",function(e){var t=r.props.onBlur;t&&t(e,r.props),r.setState({focus:!1})}),_()(g()(g()(r)),"handleSearchChange",function(e){e.stopPropagation();var t=r.props.minCharacters,n=r.state.open,i=e.target.value;C()(r.props,"onSearchChange",e,A()({},r.props,{value:i})),i.length<t?r.close():n||r.tryOpen(i),r.setValue(i)}),_()(g()(g()(r)),"getFlattenedResults",function(){var e=r.props,t=e.category,n=e.results;return t?sr()(n,function(e,t){return e.concat(t.results)},[]):n}),_()(g()(g()(r)),"getSelectedResult",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.selectedIndex,t=r.getFlattenedResults();return bi()(t,e)}),_()(g()(g()(r)),"setValue",function(e){var t=r.props.selectFirstResult;r.trySetState({value:e},{selectedIndex:t?0:-1})}),_()(g()(g()(r)),"moveSelectionBy",function(e,t){var n=r.state.selectedIndex,i=r.getFlattenedResults().length-1,o=n+t;o>i?o=0:o<0&&(o=i),r.setState({selectedIndex:o}),r.scrollSelectedItemIntoView(),r.handleSelectionChange(e)}),_()(g()(g()(r)),"scrollSelectedItemIntoView",function(){if(ke()){var e=document.querySelector(".ui.search.active.visible .results.visible"),t=e.querySelector(".result.active");if(t){var n=t.offsetTop<e.scrollTop,r=t.offsetTop+t.clientHeight>e.scrollTop+e.clientHeight;n?e.scrollTop=t.offsetTop:r&&(e.scrollTop=t.offsetTop+t.clientHeight-e.clientHeight)}}}),_()(g()(g()(r)),"tryOpen",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.state.value,t=r.props.minCharacters;e.length<t||r.open()}),_()(g()(g()(r)),"open",function(){r.trySetState({open:!0})}),_()(g()(g()(r)),"close",function(){r.trySetState({open:!1})}),_()(g()(g()(r)),"renderSearchInput",function(e){var t=r.props,n=t.icon,i=t.input,o=r.state.value;return co.create(i,{autoGenerateKey:!1,defaultProps:A()({},e,{icon:n,input:{className:"prompt",tabIndex:"0",autoComplete:"off"},onChange:r.handleSearchChange,onClick:r.handleInputClick,value:o})})}),_()(g()(g()(r)),"renderNoResults",function(){var e=r.props,t=e.noResultsDescription,n=e.noResultsMessage;return k.a.createElement("div",{className:"message empty"},k.a.createElement("div",{className:"header"},n),t&&k.a.createElement("div",{className:"description"},t))}),_()(g()(g()(r)),"renderResult",function(e,t,n){var i=e.childKey,o=ps()(e,["childKey"]),s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=r.props.resultRenderer,c=r.state.selectedIndex,l=t+s;return k.a.createElement(bs,a()({key:i||o.title,active:c===l,onClick:r.handleItemClick,renderer:u},o,{id:l}))}),_()(g()(g()(r)),"renderResults",function(){var e=r.props.results;return bt()(e,r.renderResult)}),_()(g()(g()(r)),"renderCategories",function(){var e=r.props,t=e.categoryRenderer,n=e.results,i=r.state.selectedIndex,o=0;return bt()(n,function(e){var n=e.childKey,a=ps()(e,["childKey"]),s=A()({key:n||a.name,active:ft()(i,o,o+a.results.length),renderer:t},a),u=vs()(r.renderResult,o);return o+=a.results.length,k.a.createElement(ys,s,a.results.map(u))})}),_()(g()(g()(r)),"renderMenuContent",function(){var e=r.props,t=e.category,n=e.showNoResults,i=e.results;return L()(i)?n?r.renderNoResults():null:t?r.renderCategories():r.renderResults()}),_()(g()(g()(r)),"renderResultsMenu",function(){var e=r.state.open?"visible":"",t=r.renderMenuContent();if(t)return k.a.createElement(ws,{className:e},t)}),n))}return m()(t,e),l()(t,[{key:"componentWillMount",value:function(){var e=this.state,t=e.open,n=e.value;this.setValue(n),t&&this.open()}},{key:"componentWillReceiveProps",value:function(e){ti()(d()(t.prototype),"componentWillReceiveProps",this).call(this,e),En(e.value,this.props.value)||this.setValue(e.value)}},{key:"shouldComponentUpdate",value:function(e,t){return!En(e,this.props)||!En(t,this.state)}},{key:"componentDidUpdate",value:function(e,t){!t.focus&&this.state.focus?(this.isMouseDown||this.tryOpen(),this.state.open&&De.sub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter])):t.focus&&!this.state.focus&&(this.isMouseDown||this.close(),De.unsub("keydown",[this.moveSelectionOnKeyDown,this.selectItemOnEnter])),!t.open&&this.state.open?(this.open(),De.sub("click",this.closeOnDocumentClick),De.sub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter])):t.open&&!this.state.open&&(this.close(),De.unsub("click",this.closeOnDocumentClick),De.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter]))}},{key:"componentWillUnmount",value:function(){De.unsub("click",this.closeOnDocumentClick),De.unsub("keydown",[this.closeOnEscape,this.moveSelectionOnKeyDown,this.selectItemOnEnter])}},{key:"render",value:function(){var e=this.state,n=e.searchClasses,r=e.focus,i=e.open,o=this.props,s=o.aligned,u=o.category,c=o.className,l=o.fluid,f=o.loading,h=o.size,p=Qe()("ui",i&&"active visible",h,n,ce(u,"category"),ce(r,"focus"),ce(l,"fluid"),ce(f,"loading"),le(s,"aligned"),"search",c),d=rt(t,this.props),v=it(t,this.props),m=ct(d,{htmlProps:st}),y=z()(m,2),g=y[0],b=y[1];return k.a.createElement(v,a()({},b,{className:p,onBlur:this.handleBlur,onFocus:this.handleFocus,onMouseDown:this.handleMouseDown}),this.renderSearchInput(g),this.renderResultsMenu())}}]),t}(V);function xs(e){var t=e.className,n=e.children,i=e.content,o=Qe()("pushable",t),s=rt(xs,e),u=it(xs,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(n)?i:n)}_()(Es,"defaultProps",{icon:"search",input:"text",minCharacters:1,noResultsMessage:"No results found.",showNoResults:!0}),_()(Es,"autoControlledProps",["open","value"]),_()(Es,"Category",ys),_()(Es,"Result",bs),_()(Es,"Results",ws),_()(Es,"handledProps",["aligned","as","category","categoryRenderer","className","defaultOpen","defaultValue","fluid","icon","input","loading","minCharacters","noResultsDescription","noResultsMessage","onBlur","onFocus","onMouseDown","onResultSelect","onSearchChange","onSelectionChange","open","resultRenderer","results","selectFirstResult","showNoResults","size","value"]),Es.propTypes={},xs.handledProps=["as","children","className","content"],xs.propTypes={};var Cs=xs;function Ts(e){var t=e.className,n=e.dimmed,i=e.children,o=e.content,s=Qe()("pusher",ce(n,"dimmed"),t),u=rt(Ts,e),c=it(Ts,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(i)?o:i)}Ts.handledProps=["as","children","className","content","dimmed"],Ts.propTypes={};var ks=Ts,Ss=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"startAnimating",function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500;clearTimeout(r.stopAnimatingTimer),r.setState({animating:!0}),r.stopAnimatingTimer=setTimeout(function(){return r.setState({animating:!1})},e)}),n))}return m()(t,e),l()(t,[{key:"componentWillReceiveProps",value:function(e){e.visible!==this.props.visible&&this.startAnimating()}},{key:"render",value:function(){var e=this.props,n=e.animation,i=e.className,o=e.children,s=e.content,u=e.direction,c=e.visible,l=e.width,f=this.state.animating,h=Qe()("ui",n,u,l,ce(f,"animating"),ce(c,"visible"),"sidebar",i),p=rt(t,this.props),d=it(t,this.props);return k.a.createElement(d,a()({},p,{className:h}),r.isNil(o)?s:o)}}]),t}(V);_()(Ss,"defaultProps",{direction:"left"}),_()(Ss,"autoControlledProps",["visible"]),_()(Ss,"Pushable",Cs),_()(Ss,"Pusher",ks),_()(Ss,"handledProps",["animation","as","children","className","content","defaultVisible","direction","visible","width"]),Ss.propTypes={};var As=Ss,Ns=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"state",{sticky:!1}),_()(g()(g()(r)),"addListeners",function(e){var t=e.scrollContext;t&&(De.sub("resize",r.handleUpdate,{target:t}),De.sub("scroll",r.handleUpdate,{target:t}))}),_()(g()(g()(r)),"removeListeners",function(){var e=r.props.scrollContext;e&&(De.unsub("resize",r.handleUpdate,{target:e}),De.unsub("scroll",r.handleUpdate,{target:e}))}),_()(g()(g()(r)),"update",function(e){var t=r.state.pushing;if(r.ticking=!1,r.assignRects(),t)return r.didReachStartingPoint()?r.stickToContextTop(e):r.didTouchScreenBottom()?r.stickToScreenBottom(e):r.stickToContextBottom(e);if(r.isOversized()){if(r.contextRect.top>0)return r.stickToContextTop(e);if(r.contextRect.bottom<window.innerHeight)return r.stickToContextBottom(e)}return r.didTouchScreenTop()?r.didReachContextBottom()?r.stickToContextBottom(e):r.stickToScreenTop(e):r.stickToContextTop(e)}),_()(g()(g()(r)),"handleUpdate",function(e){r.ticking||(r.ticking=!0,r.frameId=requestAnimationFrame(function(){return r.update(e)}))}),_()(g()(g()(r)),"assignRects",function(){var e=r.props.context;r.triggerRect=r.triggerRef.getBoundingClientRect(),r.contextRect=(e||document.body).getBoundingClientRect(),r.stickyRect=r.stickyRef.getBoundingClientRect()}),_()(g()(g()(r)),"didReachContextBottom",function(){var e=r.props.offset;return r.stickyRect.height+e>=r.contextRect.bottom}),_()(g()(g()(r)),"didReachStartingPoint",function(){return r.stickyRect.top<=r.triggerRect.top}),_()(g()(g()(r)),"didTouchScreenTop",function(){return r.triggerRect.top<r.props.offset}),_()(g()(g()(r)),"didTouchScreenBottom",function(){var e=r.props.bottomOffset;return r.contextRect.bottom+e>window.innerHeight}),_()(g()(g()(r)),"isOversized",function(){return r.stickyRect.height>window.innerHeight}),_()(g()(g()(r)),"pushing",function(e){r.props.pushing&&r.setState({pushing:e})}),_()(g()(g()(r)),"stick",function(e){r.setState({sticky:!0}),C()(r.props,"onStick",e,r.props)}),_()(g()(g()(r)),"unstick",function(e){r.setState({sticky:!1}),C()(r.props,"onUnstick",e,r.props)}),_()(g()(g()(r)),"stickToContextBottom",function(e){var t=r.contextRect.bottom-r.stickyRect.height;C()(r.props,"onBottom",e,r.props),r.stick(e),r.setState({top:t,bottom:null}),r.pushing(!0)}),_()(g()(g()(r)),"stickToContextTop",function(e){C()(r.props,"onTop",e,r.props),r.unstick(e),r.pushing(!1)}),_()(g()(g()(r)),"stickToScreenBottom",function(e){var t=r.props.bottomOffset;r.stick(e),r.setState({bottom:t,top:null})}),_()(g()(g()(r)),"stickToScreenTop",function(e){var t=r.props.offset;r.stick(e),r.setState({top:t,bottom:null})}),_()(g()(g()(r)),"handleStickyRef",function(e){return r.stickyRef=e}),_()(g()(g()(r)),"handleTriggerRef",function(e){return r.triggerRef=e}),n))}return m()(t,e),l()(t,[{key:"componentDidMount",value:function(){ke()&&(this.props.active&&(this.handleUpdate(),this.addListeners(this.props)))}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.active,r=t.scrollContext,i=e.active,o=e.scrollContext;if(n!==i){if(i)return this.handleUpdate(),void this.addListeners(e);this.removeListeners(),this.setState({sticky:!1})}else r!==o&&(this.removeListeners(),this.addListeners(e))}},{key:"componentWillUnmount",value:function(){ke()&&(this.props.active&&(this.removeListeners(),cancelAnimationFrame(this.frameId)))}},{key:"computeStyle",value:function(){var e=this.state,t=e.bottom,n=e.sticky,r=e.top;return n?{bottom:t,top:r,position:"fixed",width:this.triggerRect.width}:{}}},{key:"render",value:function(){var e=this.props,n=e.children,r=e.className,i=rt(t,this.props),o=it(t,this.props);return k.a.createElement(o,a()({},i,{className:r}),k.a.createElement("div",{ref:this.handleTriggerRef}),k.a.createElement("div",{ref:this.handleStickyRef,style:this.computeStyle()},n))}}]),t}(T.Component);function Os(e){var t=e.active,n=e.children,i=e.className,o=e.content,s=e.loading,u=Qe()(ce(t,"active"),ce(s,"loading"),"tab",i),c=rt(Os,e),l=it(Os,e),f={};return l===Ia&&(f.attached="bottom"),k.a.createElement(l,a()({},f,c,{className:u}),r.isNil(n)?o:n)}_()(Ns,"defaultProps",{active:!0,bottomOffset:0,offset:0,scrollContext:ke()?window:null}),_()(Ns,"handledProps",["active","as","bottomOffset","children","className","context","offset","onBottom","onStick","onTop","onUnstick","pushing","scrollContext"]),Ns.propTypes={},Os.handledProps=["active","as","children","className","content","loading"],Os.defaultProps={as:Ia,active:!0},Os.propTypes={},Os.create=Xe(Os,function(e){return{content:e}});var Is=Os,Ps=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleItemClick",function(e,t){var n=t.index;C()(r.props,"onTabChange",e,A()({},r.props,{activeIndex:n})),r.trySetState({activeIndex:n})}),n))}return m()(t,e),l()(t,[{key:"getInitialAutoControlledState",value:function(){return{activeIndex:0}}},{key:"renderItems",value:function(){var e=this.props,t=e.panes,n=e.renderActiveOnly,r=this.state.activeIndex;return n?C()(bi()(t,"[".concat(r,"]")),"render",this.props):bt()(t,function(e,t){var n=e.pane;return Is.create(n,{overrideProps:{active:t===r}})})}},{key:"renderMenu",value:function(){var e=this.props,t=e.menu,n=e.panes,r=e.menuPosition,i=this.state.activeIndex;return!0===t.tabular&&"right"===r&&(t.tabular="right"),Kr.create(t,{autoGenerateKey:!1,overrideProps:{items:bt()(n,"menuItem"),onItemClick:this.handleItemClick,activeIndex:i}})}},{key:"renderVertical",value:function(e){var t=this.props,n=t.grid,r=t.menuPosition,i=n.paneWidth,o=n.tabWidth,a=ps()(n,["paneWidth","tabWidth"]),s=r||"right"===e.props.tabular&&"right"||"left";return k.a.createElement(ko,a,"left"===s&&Eo.create({width:o,children:e},{autoGenerateKey:!1}),Eo.create({width:i,children:this.renderItems(),stretched:!0},{autoGenerateKey:!1}),"right"===s&&Eo.create({width:o,children:e},{autoGenerateKey:!1}))}},{key:"render",value:function(){var e=this.renderMenu(),n=rt(t,this.props),r=it(t,this.props);return e.props.vertical?k.a.createElement(r,n,this.renderVertical(e)):k.a.createElement(r,n,"bottom"!==e.props.attached&&e,this.renderItems(),"bottom"===e.props.attached&&e)}}]),t}(V);_()(Ps,"autoControlledProps",["activeIndex"]),_()(Ps,"defaultProps",{grid:{paneWidth:12,tabWidth:4},menu:{attached:!0,tabular:!0},renderActiveOnly:!0}),_()(Ps,"Pane",Is),_()(Ps,"handledProps",["activeIndex","as","defaultActiveIndex","grid","menu","menuPosition","onTabChange","panes","renderActiveOnly"]),Ps.propTypes={};var Rs=Ps;function Ds(e){var t=e.centered,n=e.children,i=e.className,o=e.content,s=e.test,u=e.unit,c=Qe()("ui",u,ce(t,"centered"),ce(s,"test"),"ad",i),l=rt(Ds,e),f=it(Ds,e);return k.a.createElement(f,a()({},l,{className:c,"data-text":s}),r.isNil(n)?o:n)}Ds.handledProps=["as","centered","children","className","content","test","unit"],Ds.propTypes={};var Ms=Ds;function Ls(e){var t=e.children,n=e.className,i=e.content,o=e.textAlign,s=Qe()(pe(o),"description",n),u=rt(Ls,e),c=it(Ls,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}Ls.handledProps=["as","children","className","content","textAlign"],Ls.propTypes={};var js=Ls;function Fs(e){var t=e.children,n=e.className,i=e.content,o=e.textAlign,s=Qe()(pe(o),"header",n),u=rt(Fs,e),c=it(Fs,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}Fs.handledProps=["as","children","className","content","textAlign"],Fs.propTypes={};var Us=Fs;function Bs(e){var t=e.children,n=e.className,i=e.content,o=e.textAlign,s=Qe()(pe(o),"meta",n),u=rt(Bs,e),c=it(Bs,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}Bs.handledProps=["as","children","className","content","textAlign"],Bs.propTypes={};var qs=Bs;function Vs(e){var t=e.children,n=e.className,i=e.content,o=e.description,s=e.extra,u=e.header,c=e.meta,l=e.textAlign,f=Qe()(ce(s,"extra"),pe(l),"content",n),h=rt(Vs,e),p=it(Vs,e);return r.isNil(t)?r.isNil(i)?k.a.createElement(p,a()({},h,{className:f}),Ye(Us,function(e){return{content:e}},u,{autoGenerateKey:!1}),Ye(qs,function(e){return{content:e}},c,{autoGenerateKey:!1}),Ye(js,function(e){return{content:e}},o,{autoGenerateKey:!1})):k.a.createElement(p,a()({},h,{className:f}),i):k.a.createElement(p,a()({},h,{className:f}),t)}Vs.handledProps=["as","children","className","content","description","extra","header","meta","textAlign"],Vs.propTypes={};var Ws=Vs;function zs(e){var t=e.centered,n=e.children,i=e.className,o=e.content,s=e.doubling,u=e.items,c=e.itemsPerRow,l=e.stackable,f=e.textAlign,h=Qe()("ui",ce(t,"centered"),ce(s,"doubling"),ce(l,"stackable"),pe(f),ve(c),"cards",i),p=rt(zs,e),d=it(zs,e);if(!r.isNil(n))return k.a.createElement(d,a()({},p,{className:h}),n);if(!r.isNil(o))return k.a.createElement(d,a()({},p,{className:h}),o);var v=bt()(u,function(e){var t=e.key||[e.header,e.description].join("-");return k.a.createElement(Ks,a()({key:t},e))});return k.a.createElement(d,a()({},p,{className:h}),v)}zs.handledProps=["as","centered","children","className","content","doubling","items","itemsPerRow","stackable","textAlign"],zs.propTypes={};var Hs=zs,Ks=function(e){function t(){var e,n,r;u()(this,t);for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return h()(r,(n=r=h()(this,(e=d()(t)).call.apply(e,[this].concat(o))),_()(g()(g()(r)),"handleClick",function(e){var t=r.props.onClick;t&&t(e,r.props)}),n))}return m()(t,e),l()(t,[{key:"render",value:function(){var e=this.props,n=e.centered,i=e.children,o=e.className,s=e.color,u=e.content,c=e.description,l=e.extra,f=e.fluid,h=e.header,p=e.href,d=e.image,v=e.link,m=e.meta,y=e.onClick,g=e.raised,b=Qe()("ui",s,ce(n,"centered"),ce(f,"fluid"),ce(v,"link"),ce(g,"raised"),"card",o),_=rt(t,this.props),w=it(t,this.props,function(){if(y)return"a"});return r.isNil(i)?r.isNil(u)?k.a.createElement(w,a()({},_,{className:b,href:p,onClick:this.handleClick}),zn.create(d,{autoGenerateKey:!1}),(c||h||m)&&k.a.createElement(Ws,{description:c,header:h,meta:m}),l&&k.a.createElement(Ws,{extra:!0},l)):k.a.createElement(w,a()({},_,{className:b,href:p,onClick:this.handleClick}),u):k.a.createElement(w,a()({},_,{className:b,href:p,onClick:this.handleClick}),i)}}]),t}(T.Component);function Gs(e){var t=e.active,n=e.className,i=e.children,o=e.content,s=Qe()(ce(t,"active"),n),u=rt(Gs,e),c=it(Gs,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(i)?o:i)}_()(Ks,"Content",Ws),_()(Ks,"Description",js),_()(Ks,"Group",Hs),_()(Ks,"Header",Us),_()(Ks,"Meta",qs),_()(Ks,"handledProps",["as","centered","children","className","color","content","description","extra","fluid","header","href","image","link","meta","onClick","raised"]),Ks.propTypes={},Gs.handledProps=["active","as","children","className","content"],Gs.defaultProps={as:"a"},Gs.propTypes={};var Qs=Gs;function Ys(e){var t=e.className,n=e.children,i=e.content,o=Qe()("actions",t),s=rt(Ys,e),u=it(Ys,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(n)?i:n)}Ys.handledProps=["as","children","className","content"],Ys.propTypes={};var Xs=Ys;function Js(e){var t=e.className,n=e.children,i=e.content,o=Qe()("author",t),s=rt(Js,e),u=it(Js,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(n)?i:n)}Js.handledProps=["as","children","className","content"],Js.propTypes={};var $s=Js;function Zs(e){var t=e.className,n=e.src,r=Qe()("avatar",t),i=rt(Zs,e),o=it(Zs,e);return k.a.createElement(o,a()({},i,{className:r}),Ze(n,{autoGenerateKey:!1}))}Zs.handledProps=["as","className","src"],Zs.propTypes={};var eu=Zs;function tu(e){var t=e.className,n=e.children,i=e.content,o=Qe()(t,"content"),s=rt(tu,e),u=it(tu,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(n)?i:n)}tu.handledProps=["as","children","className","content"],tu.propTypes={};var nu=tu;function ru(e){var t=e.className,n=e.children,i=e.collapsed,o=e.content,s=e.minimal,u=e.size,c=e.threaded,l=Qe()("ui",u,ce(i,"collapsed"),ce(s,"minimal"),ce(c,"threaded"),"comments",t),f=rt(ru,e),h=it(ru,e);return k.a.createElement(h,a()({},f,{className:l}),r.isNil(n)?o:n)}ru.handledProps=["as","children","className","collapsed","content","minimal","size","threaded"],ru.propTypes={};var iu=ru;function ou(e){var t=e.className,n=e.children,i=e.content,o=Qe()("metadata",t),s=rt(ou,e),u=it(ou,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(n)?i:n)}ou.handledProps=["as","children","className","content"],ou.propTypes={};var au=ou;function su(e){var t=e.className,n=e.children,i=e.content,o=Qe()(t,"text"),s=rt(su,e),u=it(su,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(n)?i:n)}su.handledProps=["as","children","className","content"],su.propTypes={};var uu=su;function cu(e){var t=e.className,n=e.children,i=e.collapsed,o=e.content,s=Qe()(ce(i,"collapsed"),"comment",t),u=rt(cu,e),c=it(cu,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(n)?o:n)}cu.handledProps=["as","children","className","collapsed","content"],cu.propTypes={},cu.Author=$s,cu.Action=Qs,cu.Actions=Xs,cu.Avatar=eu,cu.Content=nu,cu.Group=iu,cu.Metadata=au,cu.Text=uu;var lu=cu;function fu(e){var t=e.children,n=e.className,i=e.content,o=Qe()("date",n),s=rt(fu,e),u=it(fu,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}fu.handledProps=["as","children","className","content"],fu.propTypes={};var hu=fu;function pu(e){var t=e.children,n=e.className,i=e.content,o=e.images,s=e.text,u=Qe()(ce(o,"images"),ce(i||s,"text"),"extra",n),c=rt(pu,e),l=it(pu,e);if(!r.isNil(t))return k.a.createElement(l,a()({},c,{className:u}),t);var f=bt()(o,function(e,t){var n=[t,e].join("-");return Ze(e,{key:n})});return k.a.createElement(l,a()({},c,{className:u}),i,f)}pu.handledProps=["as","children","className","content","images","text"],pu.propTypes={};var du=pu;function vu(e){var t=e.children,n=e.className,i=e.content,o=e.icon,s=Qe()("like",n),u=rt(vu,e),c=it(vu,e);return r.isNil(t)?k.a.createElement(c,a()({},u,{className:s}),An.create(o,{autoGenerateKey:!1}),i):k.a.createElement(c,a()({},u,{className:s}),t)}vu.handledProps=["as","children","className","content","icon"],vu.defaultProps={as:"a"},vu.propTypes={};var mu=vu;function yu(e){var t=e.children,n=e.className,i=e.content,o=e.like,s=Qe()("meta",n),u=rt(yu,e),c=it(yu,e);return r.isNil(t)?k.a.createElement(c,a()({},u,{className:s}),Ye(mu,function(e){return{content:e}},o,{autoGenerateKey:!1}),i):k.a.createElement(c,a()({},u,{className:s}),t)}yu.handledProps=["as","children","className","content","like"],yu.propTypes={};var gu=yu;function bu(e){var t=e.children,n=e.className,i=e.content,o=Qe()("user",n),s=rt(bu,e),u=it(bu,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}bu.handledProps=["as","children","className","content"],bu.propTypes={},bu.defaultProps={as:"a"};var _u=bu;function wu(e){var t=e.children,n=e.className,i=e.content,o=e.date,s=e.user,u=Qe()("summary",n),c=rt(wu,e),l=it(wu,e);return r.isNil(t)?k.a.createElement(l,a()({},c,{className:u}),Ye(_u,function(e){return{content:e}},s,{autoGenerateKey:!1}),i,Ye(hu,function(e){return{content:e}},o,{autoGenerateKey:!1})):k.a.createElement(l,a()({},c,{className:u}),t)}wu.handledProps=["as","children","className","content","date","user"],wu.propTypes={};var Eu=wu;function xu(e){var t=e.children,n=e.className,i=e.content,o=e.extraImages,s=e.extraText,u=e.date,c=e.meta,l=e.summary,f=Qe()("content",n),h=rt(xu,e),p=it(xu,e);return r.isNil(t)?k.a.createElement(p,a()({},h,{className:f}),Ye(hu,function(e){return{content:e}},u,{autoGenerateKey:!1}),Ye(Eu,function(e){return{content:e}},l,{autoGenerateKey:!1}),i,Ye(du,function(e){return{text:!0,content:e}},s,{autoGenerateKey:!1}),Ye(du,function(e){return{images:e}},o,{autoGenerateKey:!1}),Ye(gu,function(e){return{content:e}},c,{autoGenerateKey:!1})):k.a.createElement(p,a()({},h,{className:f}),t)}xu.handledProps=["as","children","className","content","date","extraImages","extraText","meta","summary"],xu.propTypes={};var Cu=xu;function Tu(e){var t=e.children,n=e.className,i=e.content,o=e.icon,s=e.image,u=Qe()("label",n),c=rt(Tu,e),l=it(Tu,e);return r.isNil(t)?k.a.createElement(l,a()({},c,{className:u}),i,An.create(o,{autoGenerateKey:!1}),Ze(s)):k.a.createElement(l,a()({},c,{className:u}),t)}Tu.handledProps=["as","children","className","content","icon","image"],Tu.propTypes={};var ku=Tu;function Su(e){var t=e.content,n=e.children,r=e.className,i=e.date,o=e.extraImages,s=e.extraText,u=e.image,c=e.icon,l=e.meta,f=e.summary,h=Qe()("event",r),p=rt(Su,e),d=it(Su,e),v=t||i||o||s||l||f,m={content:t,date:i,extraImages:o,extraText:s,meta:l,summary:f};return k.a.createElement(d,a()({},p,{className:h}),Ye(ku,function(e){return{icon:e}},c,{autoGenerateKey:!1}),Ye(ku,function(e){return{image:e}},u,{autoGenerateKey:!1}),v&&k.a.createElement(Cu,m),n)}Su.handledProps=["as","children","className","content","date","extraImages","extraText","icon","image","meta","summary"],Su.propTypes={};var Au=Su;function Nu(e){var t=e.children,n=e.className,i=e.events,o=e.size,s=Qe()("ui",o,"feed",n),u=rt(Nu,e),c=it(Nu,e);if(!r.isNil(t))return k.a.createElement(c,a()({},u,{className:s}),t);var l=bt()(i,function(e){var t=e.childKey,n=e.date,r=e.meta,i=e.summary,o=ps()(e,["childKey","date","meta","summary"]),s=t||[n,r,i].join("-");return k.a.createElement(Au,a()({date:n,key:s,meta:r,summary:i},o))});return k.a.createElement(c,a()({},u,{className:s}),l)}Nu.handledProps=["as","children","className","events","size"],Nu.propTypes={},Nu.Content=Cu,Nu.Date=hu,Nu.Event=Au,Nu.Extra=du,Nu.Label=ku,Nu.Like=mu,Nu.Meta=gu,Nu.Summary=Eu,Nu.User=_u;var Ou=Nu;function Iu(e){var t=e.children,n=e.className,i=e.content,o=Qe()("header",n),s=rt(Iu,e),u=it(Iu,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Iu.handledProps=["as","children","className","content"],Iu.propTypes={},Iu.create=Xe(Iu,function(e){return{content:e}});var Pu=Iu;function Ru(e){var t=e.children,n=e.className,i=e.content,o=Qe()("description",n),s=rt(Ru,e),u=it(Ru,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Ru.handledProps=["as","children","className","content"],Ru.propTypes={},Ru.create=Xe(Ru,function(e){return{content:e}});var Du=Ru;function Mu(e){var t=e.children,n=e.className,i=e.content,o=Qe()("extra",n),s=rt(Mu,e),u=it(Mu,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Mu.handledProps=["as","children","className","content"],Mu.propTypes={},Mu.create=Xe(Mu,function(e){return{content:e}});var Lu=Mu;function ju(e){var t=e.children,n=e.className,i=e.content,o=Qe()("meta",n),s=rt(ju,e),u=it(ju,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}ju.handledProps=["as","children","className","content"],ju.propTypes={},ju.create=Xe(ju,function(e){return{content:e}});var Fu=ju;function Uu(e){var t=e.children,n=e.className,i=e.content,o=e.description,s=e.extra,u=e.header,c=e.meta,l=e.verticalAlign,f=Qe()(de(l),"content",n),h=rt(Uu,e),p=it(Uu,e);return r.isNil(t)?k.a.createElement(p,a()({},h,{className:f}),Pu.create(u,{autoGenerateKey:!1}),Fu.create(c,{autoGenerateKey:!1}),Du.create(o,{autoGenerateKey:!1}),Lu.create(s,{autoGenerateKey:!1}),i):k.a.createElement(p,a()({},h,{className:f}),t)}Uu.handledProps=["as","children","className","content","description","extra","header","meta","verticalAlign"],Uu.propTypes={};var Bu=Uu;function qu(e){var t=e.children,n=e.className,i=e.content,o=e.divided,s=e.items,u=e.link,c=e.relaxed,l=e.unstackable,f=Qe()("ui",ce(o,"divided"),ce(u,"link"),ce(l,"unstackable"),fe(c,"relaxed"),"items",n),h=rt(qu,e),p=it(qu,e);if(!r.isNil(t))return k.a.createElement(p,a()({},h,{className:f}),t);if(!r.isNil(i))return k.a.createElement(p,a()({},h,{className:f}),i);var d=bt()(s,function(e){var t=e.childKey,n=ps()(e,["childKey"]),r=t||[n.content,n.description,n.header,n.meta].join("-");return k.a.createElement(Ku,a()({},n,{key:r}))});return k.a.createElement(p,a()({},h,{className:f}),d)}qu.handledProps=["as","children","className","content","divided","items","link","relaxed","unstackable"],qu.propTypes={};var Vu=qu;function Wu(e){var t=e.size,n=rt(Wu,e);return k.a.createElement(zn,a()({},n,{size:t,ui:!!t,wrapped:!0}))}Wu.handledProps=["size"],Wu.propTypes={},Wu.create=Xe(Wu,function(e){return{src:e}});var zu=Wu;function Hu(e){var t=e.children,n=e.className,i=e.content,o=e.description,s=e.extra,u=e.header,c=e.image,l=e.meta,f=Qe()("item",n),h=rt(Hu,e),p=it(Hu,e);return r.isNil(t)?k.a.createElement(p,a()({},h,{className:f}),zu.create(c,{autoGenerateKey:!1}),k.a.createElement(Bu,{content:i,description:o,extra:s,header:u,meta:l})):k.a.createElement(p,a()({},h,{className:f}),t)}Hu.handledProps=["as","children","className","content","description","extra","header","image","meta"],Hu.Content=Bu,Hu.Description=Du,Hu.Extra=Lu,Hu.Group=Vu,Hu.Header=Pu,Hu.Image=zu,Hu.Meta=Fu,Hu.propTypes={};var Ku=Hu;function Gu(e){var t=e.children,n=e.className,i=e.color,o=e.content,s=e.horizontal,u=e.inverted,c=e.items,l=e.size,f=e.widths,h=Qe()("ui",i,l,ce(s,"horizontal"),ce(u,"inverted"),ve(f),"statistics",n),p=rt(Gu,e),d=it(Gu,e);return r.isNil(t)?r.isNil(o)?k.a.createElement(d,a()({},p,{className:h}),bt()(c,function(e){return ec.create(e)})):k.a.createElement(d,a()({},p,{className:h}),o):k.a.createElement(d,a()({},p,{className:h}),t)}Gu.handledProps=["as","children","className","color","content","horizontal","inverted","items","size","widths"],Gu.propTypes={};var Qu=Gu;function Yu(e){var t=e.children,n=e.className,i=e.content,o=Qe()("label",n),s=rt(Yu,e),u=it(Yu,e);return k.a.createElement(u,a()({},s,{className:o}),r.isNil(t)?i:t)}Yu.handledProps=["as","children","className","content"],Yu.propTypes={},Yu.create=Xe(Yu,function(e){return{content:e}});var Xu=Yu;function Ju(e){var t=e.children,n=e.className,i=e.content,o=e.text,s=Qe()(ce(o,"text"),"value",n),u=rt(Ju,e),c=it(Ju,e);return k.a.createElement(c,a()({},u,{className:s}),r.isNil(t)?i:t)}Ju.handledProps=["as","children","className","content","text"],Ju.propTypes={},Ju.create=Xe(Ju,function(e){return{content:e}});var $u=Ju;function Zu(e){var t=e.children,n=e.className,i=e.color,o=e.content,s=e.floated,u=e.horizontal,c=e.inverted,l=e.label,f=e.size,h=e.text,p=e.value,d=Qe()("ui",i,f,le(s,"floated"),ce(u,"horizontal"),ce(c,"inverted"),"statistic",n),v=rt(Zu,e),m=it(Zu,e);return r.isNil(t)?r.isNil(o)?k.a.createElement(m,a()({},v,{className:d}),$u.create(p,{defaultProps:{text:h},autoGenerateKey:!1}),Xu.create(l,{autoGenerateKey:!1})):k.a.createElement(m,a()({},v,{className:d}),o):k.a.createElement(m,a()({},v,{className:d}),t)}Zu.handledProps=["as","children","className","color","content","floated","horizontal","inverted","label","size","text","value"],Zu.propTypes={},Zu.Group=Qu,Zu.Label=Xu,Zu.Value=$u,Zu.create=Xe(Zu,function(e){return{content:e}});var ec=Zu;n.d(t,"Confirm",function(){return jr}),n.d(t,"MountNode",function(){return kr}),n.d(t,"Pagination",function(){return Yr}),n.d(t,"PaginationItem",function(){return Qr}),n.d(t,"Portal",function(){return Mn}),n.d(t,"Radio",function(){return $r}),n.d(t,"Ref",function(){return Rn}),n.d(t,"Responsive",function(){return Zr}),n.d(t,"Select",function(){return Mi}),n.d(t,"TextArea",function(){return Ui}),n.d(t,"TransitionablePortal",function(){return Hi}),n.d(t,"Visibility",function(){return Ki}),n.d(t,"Breadcrumb",function(){return Ji}),n.d(t,"BreadcrumbDivider",function(){return Qi}),n.d(t,"BreadcrumbSection",function(){return Yi}),n.d(t,"Form",function(){return _o}),n.d(t,"FormButton",function(){return to}),n.d(t,"FormCheckbox",function(){return ro}),n.d(t,"FormDropdown",function(){return oo}),n.d(t,"FormField",function(){return Zi}),n.d(t,"FormGroup",function(){return so}),n.d(t,"FormInput",function(){return fo}),n.d(t,"FormRadio",function(){return po}),n.d(t,"FormSelect",function(){return mo}),n.d(t,"FormTextArea",function(){return go}),n.d(t,"Grid",function(){return ko}),n.d(t,"GridColumn",function(){return Eo}),n.d(t,"GridRow",function(){return Co}),n.d(t,"Menu",function(){return Kr}),n.d(t,"MenuHeader",function(){return Ur}),n.d(t,"MenuItem",function(){return Vr}),n.d(t,"MenuMenu",function(){return zr}),n.d(t,"Message",function(){return Mo}),n.d(t,"MessageContent",function(){return Ao}),n.d(t,"MessageHeader",function(){return Oo}),n.d(t,"MessageItem",function(){return Po}),n.d(t,"MessageList",function(){return Do}),n.d(t,"Table",function(){return Yo}),n.d(t,"TableBody",function(){return jo}),n.d(t,"TableCell",function(){return Uo}),n.d(t,"TableFooter",function(){return Wo}),n.d(t,"TableHeader",function(){return qo}),n.d(t,"TableHeaderCell",function(){return Ho}),n.d(t,"TableRow",function(){return Go}),n.d(t,"Button",function(){return rr}),n.d(t,"ButtonContent",function(){return Jn}),n.d(t,"ButtonGroup",function(){return Zn}),n.d(t,"ButtonOr",function(){return tr}),n.d(t,"Container",function(){return Jo}),n.d(t,"Divider",function(){return Zo}),n.d(t,"Flag",function(){return xi}),n.d(t,"Header",function(){return oa}),n.d(t,"HeaderContent",function(){return ra}),n.d(t,"HeaderSubheader",function(){return ta}),n.d(t,"Icon",function(){return An}),n.d(t,"IconGroup",function(){return kn}),n.d(t,"Image",function(){return zn}),n.d(t,"ImageGroup",function(){return qn}),n.d(t,"Input",function(){return co}),n.d(t,"Label",function(){return Yn}),n.d(t,"LabelDetail",function(){return Kn}),n.d(t,"LabelGroup",function(){return Qn}),n.d(t,"List",function(){return ba}),n.d(t,"ListContent",function(){return fa}),n.d(t,"ListDescription",function(){return sa}),n.d(t,"ListHeader",function(){return ca}),n.d(t,"ListIcon",function(){return pa}),n.d(t,"ListItem",function(){return va}),n.d(t,"ListList",function(){return ya}),n.d(t,"Loader",function(){return wa}),n.d(t,"Rail",function(){return xa}),n.d(t,"Reveal",function(){return Sa}),n.d(t,"RevealContent",function(){return Ta}),n.d(t,"Segment",function(){return Ia}),n.d(t,"SegmentGroup",function(){return Na}),n.d(t,"Step",function(){return Va}),n.d(t,"StepContent",function(){return ja}),n.d(t,"StepDescription",function(){return Ra}),n.d(t,"StepGroup",function(){return Ba}),n.d(t,"StepTitle",function(){return Ma}),n.d(t,"Accordion",function(){return Qa}),n.d(t,"AccordionAccordion",function(){return Ka}),n.d(t,"AccordionContent",function(){return za}),n.d(t,"AccordionTitle",function(){return Ha}),n.d(t,"Checkbox",function(){return Xr}),n.d(t,"Dimmer",function(){return Un}),n.d(t,"DimmerDimmable",function(){return jn}),n.d(t,"DimmerInner",function(){return Fn}),n.d(t,"Dropdown",function(){return Ri}),n.d(t,"DropdownDivider",function(){return wi}),n.d(t,"DropdownHeader",function(){return Si}),n.d(t,"DropdownItem",function(){return Ti}),n.d(t,"DropdownMenu",function(){return Ni}),n.d(t,"DropdownSearchInput",function(){return Ii}),n.d(t,"Embed",function(){return Ya}),n.d(t,"Modal",function(){return Mr}),n.d(t,"ModalActions",function(){return Ir}),n.d(t,"ModalContent",function(){return Or}),n.d(t,"ModalDescription",function(){return Rr}),n.d(t,"ModalHeader",function(){return Ar}),n.d(t,"Popup",function(){return ts}),n.d(t,"PopupContent",function(){return $a}),n.d(t,"PopupHeader",function(){return Za}),n.d(t,"Progress",function(){return ss}),n.d(t,"Rating",function(){return fs}),n.d(t,"RatingIcon",function(){return ls}),n.d(t,"Search",function(){return Es}),n.d(t,"SearchCategory",function(){return ys}),n.d(t,"SearchResult",function(){return bs}),n.d(t,"SearchResults",function(){return ws}),n.d(t,"Sidebar",function(){return As}),n.d(t,"SidebarPushable",function(){return Cs}),n.d(t,"SidebarPusher",function(){return ks}),n.d(t,"Sticky",function(){return Ns}),n.d(t,"Tab",function(){return Rs}),n.d(t,"TabPane",function(){return Is}),n.d(t,"Transition",function(){return zi}),n.d(t,"TransitionGroup",function(){return Vi}),n.d(t,"Advertisement",function(){return Ms}),n.d(t,"Card",function(){return Ks}),n.d(t,"CardContent",function(){return Ws}),n.d(t,"CardDescription",function(){return js}),n.d(t,"CardGroup",function(){return Hs}),n.d(t,"CardHeader",function(){return Us}),n.d(t,"CardMeta",function(){return qs}),n.d(t,"Comment",function(){return lu}),n.d(t,"CommentAction",function(){return Qs}),n.d(t,"CommentActions",function(){return Xs}),n.d(t,"CommentAuthor",function(){return $s}),n.d(t,"CommentAvatar",function(){return eu}),n.d(t,"CommentContent",function(){return nu}),n.d(t,"CommentGroup",function(){return iu}),n.d(t,"CommentMetadata",function(){return au}),n.d(t,"CommentText",function(){return uu}),n.d(t,"Feed",function(){return Ou}),n.d(t,"FeedContent",function(){return Cu}),n.d(t,"FeedDate",function(){return hu}),n.d(t,"FeedEvent",function(){return Au}),n.d(t,"FeedExtra",function(){return du}),n.d(t,"FeedLabel",function(){return ku}),n.d(t,"FeedLike",function(){return mu}),n.d(t,"FeedMeta",function(){return gu}),n.d(t,"FeedSummary",function(){return Eu}),n.d(t,"FeedUser",function(){return _u}),n.d(t,"Item",function(){return Ku}),n.d(t,"ItemContent",function(){return Bu}),n.d(t,"ItemDescription",function(){return Du}),n.d(t,"ItemExtra",function(){return Lu}),n.d(t,"ItemGroup",function(){return Vu}),n.d(t,"ItemHeader",function(){return Pu}),n.d(t,"ItemImage",function(){return zu}),n.d(t,"ItemMeta",function(){return Fu}),n.d(t,"Statistic",function(){return ec}),n.d(t,"StatisticGroup",function(){return Qu}),n.d(t,"StatisticLabel",function(){return Xu}),n.d(t,"StatisticValue",function(){return $u})},function(e,t,n){var r=n(271),i="object"==typeof self&&self&&self.Object===Object&&self,o=r||i||Function("return this")();e.exports=o},function(e,t,n){var r=n(564),i=n(551),o=n(49),a=n(18),s=n(549);e.exports=function(e){return"function"==typeof e?e:null==e?o:"object"==typeof e?a(e)?i(e[0],e[1]):r(e):s(e)}},function(e,t,n){var r=n(613),i=n(272);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t,n){var r=n(23)("map",n(15));r.placeholder=n(21),e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\s/},function(e,t,n){var r=n(45),i=n(177);e.exports=function(e){return null!=e&&i(e.length)&&!r(e)}},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports={cap:!1,curry:!1,fixed:!1,immutable:!1,rearg:!1}},function(e,t,n){var r=n(70),i=n(612),o=n(611),a="[object Null]",s="[object Undefined]",u=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?s:a:u&&u in Object(e)?i(e):o(e)}},function(e,t,n){var r=n(190)("wks"),i=n(144),o=n(60).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){var r=n(135);e.exports=function(e){return null==e?"":r(e)}},function(e,t,n){var r=n(42),i=n(40),o="[object AsyncFunction]",a="[object Function]",s="[object GeneratorFunction]",u="[object Proxy]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==a||t==s||t==o||t==u}},function(e,t,n){var r=n(121),i=n(55),o=n(134),a=n(18),s=n(39),u=n(94),c=n(93),l=n(123),f="[object Map]",h="[object Set]",p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||u(e)||l(e)||o(e)))return!e.length;var t=i(e);if(t==f||t==h)return!e.size;if(c(e))return!r(e).length;for(var n in e)if(p.call(e,n))return!1;return!0}},function(e,t){e.exports=function(){for(var e={},t=0;t<arguments.length;t++){var r=arguments[t];for(var i in r)n.call(r,i)&&(e[i]=r[i])}return e};var n=Object.prototype.hasOwnProperty},function(e,t,n){var r=n(173);e.exports=function(e){var t=r(e),n=t%1;return t==t?n?t-n:t:0}},function(e,t){e.exports=function(e){return e}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}},function(e,t,n){var r=n(60),i=n(26),o=n(196),a=n(83),s=n(57),u=function(e,t,n){var c,l,f,h=e&u.F,p=e&u.G,d=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,g=p?i:i[t]||(i[t]={}),b=g.prototype,_=p?r:d?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(l=!h&&_&&void 0!==_[c])&&s(g,c)||(f=l?_[c]:n[c],g[c]=p&&"function"!=typeof _[c]?n[c]:m&&l?o(f,r):y&&_[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((g.virtual||(g.virtual={}))[c]=f,e&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t,n){var r=n(641),i=n(632);function o(e){return(o="function"==typeof i&&"symbol"==typeof r?function(e){return typeof e}:function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":typeof e})(e)}function a(t){return"function"==typeof i&&"symbol"===o(r)?e.exports=a=function(e){return o(e)}:e.exports=a=function(e){return e&&"function"==typeof i&&e.constructor===i&&e!==i.prototype?"symbol":o(e)},a(t)}e.exports=a},function(e,t,n){var r=n(263),i=n(262);e.exports=function(e,t){if(null==e)return{};var n,o,a={},s=i(e);for(o=0;o<s.length;o++)n=s[o],t.indexOf(n)>=0||(a[n]=e[n]);if(r){var u=r(e);for(o=0;o<u.length;o++)n=u[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=u(i),a=(u(n(4)),u(n(160)),u(n(217))),s=n(33);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){return o.default.createElement("div",{style:this.props.style,className:a.default[this.props.color+"PageCard"]},o.default.createElement(s.Container,{style:this.props.containerStyle,className:a.default.container},this.props.children))}}]),t}();t.default=c},function(e,t,n){var r=n(554),i=n(178),o=n(553),a=n(247),s=n(246),u=n(42),c=n(268),l=c(r),f=c(i),h=c(o),p=c(a),d=c(s),v=u;(r&&"[object DataView]"!=v(new r(new ArrayBuffer(1)))||i&&"[object Map]"!=v(new i)||o&&"[object Promise]"!=v(o.resolve())||a&&"[object Set]"!=v(new a)||s&&"[object WeakMap]"!=v(new s))&&(v=function(e){var t=u(e),n="[object Object]"==t?e.constructor:void 0,r=n?c(n):"";if(r)switch(r){case l:return"[object DataView]";case f:return"[object Map]";case h:return"[object Promise]";case p:return"[object Set]";case d:return"[object WeakMap]"}return t}),e.exports=v},function(e,t,n){var r=n(49),i=n(267),o=n(176);e.exports=function(e,t){return o(i(e,t,r),e+"")}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(74);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){var r=n(58),i=n(283),o=n(195),a=Object.defineProperty;t.f=n(73)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(219),i=n(65),o=n(35),a=n(454),s=n(18);e.exports=function(e,t,n){var u=s(e)?r:a,c=arguments.length<3;return u(e,o(t,4),n,c,i)}},function(e,t,n){var r=n(253),i=n(35),o=n(534),a=n(18),s=n(80);e.exports=function(e,t,n){var u=a(e)?r:o;return n&&s(e,t,n)&&(t=void 0),u(e,i(t,3))}},function(e,t,n){var r=n(42),i=n(30),o="[object Number]";e.exports=function(e){return"number"==typeof e||i(e)&&r(e)==o}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=u(i),a=(u(n(4)),u(n(160)),u(n(217))),s=n(33);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){return o.default.createElement(s.Container,{text:!0},o.default.createElement(s.Header,{inverted:!0,as:"h1",className:a.default.pageHeader},this.props.header),o.default.createElement(s.Header,{inverted:!0,as:"h1",className:a.default.pageSubHeader},this.props.subheader),o.default.createElement("div",{class:a.default.footer},o.default.createElement(s.Button,{className:a.default.pageDown,circular:!0,onClick:this.props.scrollTarget},"Scroll Down")))}}]),t}();t.default=c},function(e,t,n){var r=n(172),i=n(565)(r);e.exports=i},function(e,t){e.exports=function(e){return function(t){return e(t)}}},function(e,t,n){var r=n(71),i=1/0;e.exports=function(e){if("string"==typeof e||r(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}},function(e,t,n){var r=n(606),i=n(603);e.exports=function(e,t){var n=i(e,t);return r(n)?n:void 0}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(34).Symbol;e.exports=r},function(e,t,n){var r=n(42),i=n(30),o="[object Symbol]";e.exports=function(e){return"symbol"==typeof e||i(e)&&r(e)==o}},function(e,t,n){var r=n(280),i=n(193);e.exports=function(e){return r(i(e))}},function(e,t,n){e.exports=!n(82)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(459),i=n(28);e.exports=function(e){return null==e?[]:r(e,i(e))}},function(e,t,n){var r=n(258),i=n(571),o=n(35),a=n(18);e.exports=function(e,t){return(a(e)?r:i)(e,o(t,3))}},function(e,t,n){var r=n(220);e.exports=function(e){return e&&e.length?r(e):[]}},function(e,t,n){var r=n(23)("flow",n(462));r.placeholder=n(21),e.exports=r},function(e,t){(t=e.exports=function(e){return e.replace(/^\s*|\s*$/g,"")}).left=function(e){return e.replace(/^\s*/,"")},t.right=function(e){return e.replace(/\s*$/,"")}},function(e,t,n){var r=n(137),i=n(39),o=n(96),a=n(40);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return!!("number"==s?i(n)&&o(t,n.length):"string"==s&&t in n)&&r(n[t],e)}},function(e,t){e.exports={}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(59),i=n(100);e.exports=n(73)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(42),i=n(114),o=n(30),a="[object Object]",s=Function.prototype,u=Object.prototype,c=s.toString,l=u.hasOwnProperty,f=c.call(Object);e.exports=function(e){if(!o(e)||r(e)!=a)return!1;var t=i(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(421),i={NODE_CLIENT:!1,NODE_ADMIN:!1,SDK_VERSION:"${JSCORE_VERSION}"},o=function(e,t){if(!e)throw a(t)},a=function(e){return new Error("Firebase Database ("+i.SDK_VERSION+") INTERNAL ASSERT FAILED: "+e)},s=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},u={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray:function(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();for(var n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[],i=0;i<e.length;i+=3){var o=e[i],a=i+1<e.length,s=a?e[i+1]:0,u=i+2<e.length,c=u?e[i+2]:0,l=o>>2,f=(3&o)<<4|s>>4,h=(15&s)<<2|c>>6,p=63&c;u||(p=64,a||(h=64)),r.push(n[l],n[f],n[h],n[p])}return r.join("")},encodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(s(e),t)},decodeString:function(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){for(var t=[],n=0,r=0;n<e.length;){var i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){var o=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&o)}else if(i>239&&i<365){var a=((7&i)<<18|(63&(o=e[n++]))<<12|(63&(s=e[n++]))<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{o=e[n++];var s=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&o)<<6|63&s)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray:function(e,t){this.init_();for(var n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[],i=0;i<e.length;){var o=n[e.charAt(i++)],a=i<e.length?n[e.charAt(i)]:0,s=++i<e.length?n[e.charAt(i)]:64,u=++i<e.length?n[e.charAt(i)]:64;if(++i,null==o||null==a||null==s||null==u)throw Error();var c=o<<2|a>>4;if(r.push(c),64!=s){var l=a<<4&240|s>>2;if(r.push(l),64!=u){var f=s<<6&192|u;r.push(f)}}}return r},init_:function(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(var e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},c=function(e){try{return u.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};function l(e,t){if(!(t instanceof Object))return t;switch(t.constructor){case Date:return new Date(t.getTime());case Object:void 0===e&&(e={});break;case Array:e=[];break;default:return t}for(var n in t)t.hasOwnProperty(n)&&(e[n]=l(e[n],t[n]));return e}var f=function(){function e(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return e.prototype.wrapCallback=function(e){var t=this;return function(n,r){n?t.reject(n):t.resolve(r),"function"==typeof e&&(t.promise.catch(function(){}),1===e.length?e(n):e(n,r))}},e}(),h=function(){return"undefined"!=typeof navigator&&"string"==typeof navigator.userAgent?navigator.userAgent:""},p="FirebaseError",d=Error.captureStackTrace;var v=function(){return function(e,t){if(this.code=e,this.message=t,d)d(this,m.prototype.create);else try{throw Error.apply(this,arguments)}catch(e){this.name=p,Object.defineProperty(this,"stack",{get:function(){return e.stack}})}}}();v.prototype=Object.create(Error.prototype),v.prototype.constructor=v,v.prototype.name=p;var m=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n,this.pattern=/\{\$([^}]+)}/g}return e.prototype.create=function(e,t){void 0===t&&(t={});var n,r=this.errors[e],i=this.service+"/"+e;n=void 0===r?"Error":r.replace(this.pattern,function(e,n){var r=t[n];return void 0!==r?r.toString():"<"+n+"?>"}),n=this.serviceName+": "+n+" ("+i+").";var o=new v(i,n);for(var a in t)t.hasOwnProperty(a)&&"_"!==a.slice(-1)&&(o[a]=t[a]);return o},e}();function y(e){return JSON.parse(e)}var g=function(e){var t={},n={},r={},i="";try{var o=e.split(".");t=y(c(o[0])||""),n=y(c(o[1])||""),i=o[2],r=n.d||{},delete n.d}catch(e){}return{header:t,claims:n,data:r,signature:i}},b=function(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])},_=function(e,t){return b(t,function(t,n){e[t]=n}),e},w=function(e,t,n){for(var r in e)if(t.call(n,e[r],r,e))return r},E=function(e){function t(){var t=e.call(this)||this;t.chain_=[],t.buf_=[],t.W_=[],t.pad_=[],t.inbuf_=0,t.total_=0,t.blockSize=64,t.pad_[0]=128;for(var n=1;n<t.blockSize;++n)t.pad_[n]=0;return t.reset(),t}return r.__extends(t,e),t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0==o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++r,++o==this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++r,++o==this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},t.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e},t}(function(){return function(){this.blockSize=-1}}());var x=function(){function e(e,t){var n=this;this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(function(){e(n)}).catch(function(e){n.error(e)})}return e.prototype.next=function(e){this.forEachObserver(function(t){t.next(e)})},e.prototype.error=function(e){this.forEachObserver(function(t){t.error(e)}),this.close(e)},e.prototype.complete=function(){this.forEachObserver(function(e){e.complete()}),this.close()},e.prototype.subscribe=function(e,t,n){var r,i=this;if(void 0===e&&void 0===t&&void 0===n)throw new Error("Missing Observer.");void 0===(r=function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=0,r=t;n<r.length;n++){var i=r[n];if(i in e&&"function"==typeof e[i])return!0}return!1}(e,["next","error","complete"])?e:{next:e,error:t,complete:n}).next&&(r.next=C),void 0===r.error&&(r.error=C),void 0===r.complete&&(r.complete=C);var o=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(function(){try{i.finalError?r.error(i.finalError):r.complete()}catch(e){}}),this.observers.push(r),o},e.prototype.unsubscribeOne=function(e){void 0!==this.observers&&void 0!==this.observers[e]&&(delete this.observers[e],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))},e.prototype.forEachObserver=function(e){if(!this.finalized)for(var t=0;t<this.observers.length;t++)this.sendOne(t,e)},e.prototype.sendOne=function(e,t){var n=this;this.task.then(function(){if(void 0!==n.observers&&void 0!==n.observers[e])try{t(n.observers[e])}catch(e){"undefined"!=typeof console&&console.error&&console.error(e)}})},e.prototype.close=function(e){var t=this;this.finalized||(this.finalized=!0,void 0!==e&&(this.finalError=e),this.task.then(function(){t.observers=void 0,t.onNoObservers=void 0}))},e}();function C(){}function T(e,t,n){var r="";switch(t){case 1:r=n?"first":"First";break;case 2:r=n?"second":"Second";break;case 3:r=n?"third":"Third";break;case 4:r=n?"fourth":"Fourth";break;default:throw new Error("errorPrefix called with argumentNumber > 4. Need to update it?")}var i=e+" failed: ";return i+=r+" argument "}t.assert=o,t.assertionError=a,t.base64=u,t.base64Decode=c,t.base64Encode=function(e){var t=s(e);return u.encodeByteArray(t,!0)},t.CONSTANTS=i,t.deepCopy=function(e){return l(void 0,e)},t.deepExtend=l,t.patchProperty=function(e,t,n){e[t]=n},t.Deferred=f,t.getUA=h,t.isMobileCordova=function(){return"undefined"!=typeof window&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(h())},t.isNodeSdk=function(){return!0===i.NODE_CLIENT||!0===i.NODE_ADMIN},t.isReactNative=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product},t.ErrorFactory=m,t.FirebaseError=v,t.patchCapture=function(e){var t=d;return d=e,t},t.jsonEval=y,t.stringify=function(e){return JSON.stringify(e)},t.decode=g,t.isAdmin=function(e){var t=g(e).claims;return"object"==typeof t&&!0===t.admin},t.issuedAtTime=function(e){var t=g(e).claims;return"object"==typeof t&&t.hasOwnProperty("iat")?t.iat:null},t.isValidFormat=function(e){var t=g(e),n=t.claims;return!!t.signature&&!!n&&"object"==typeof n&&n.hasOwnProperty("iat")},t.isValidTimestamp=function(e){var t,n,r=g(e).claims,i=Math.floor((new Date).getTime()/1e3);return"object"==typeof r&&(r.hasOwnProperty("nbf")?t=r.nbf:r.hasOwnProperty("iat")&&(t=r.iat),n=r.hasOwnProperty("exp")?r.exp:t+86400),i&&t&&n&&i>=t&&i<=n},t.clone=function(e){return _({},e)},t.contains=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.every=function(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&!t(n,e[n]))return!1;return!0},t.extend=_,t.findKey=w,t.findValue=function(e,t,n){var r=w(e,t,n);return r&&e[r]},t.forEach=b,t.getAnyKey=function(e){for(var t in e)return t},t.getCount=function(e){var t=0;for(var n in e)t++;return t},t.getValues=function(e){var t=[],n=0;for(var r in e)t[n++]=e[r];return t},t.isEmpty=function(e){for(var t in e)return!1;return!0},t.isNonNullObject=function(e){return"object"==typeof e&&null!==e},t.map=function(e,t,n){var r={};for(var i in e)r[i]=t.call(n,e[i],i,e);return r},t.safeGet=function(e,t){if(Object.prototype.hasOwnProperty.call(e,t))return e[t]},t.querystring=function(e){var t=[];return b(e,function(e,n){Array.isArray(n)?n.forEach(function(n){t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(n))}),t.length?"&"+t.join("&"):""},t.querystringDecode=function(e){var t={};return e.replace(/^\?/,"").split("&").forEach(function(e){if(e){var n=e.split("=");t[n[0]]=n[1]}}),t},t.Sha1=E,t.async=function(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];Promise.resolve(!0).then(function(){e.apply(void 0,n)}).catch(function(e){t&&t(e)})}},t.createSubscribe=function(e,t){var n=new x(e,t);return n.subscribe.bind(n)},t.errorPrefix=T,t.validateArgCount=function(e,t,n,r){var i;if(r<t?i="at least "+t:r>n&&(i=0===n?"none":"no more than "+n),i)throw new Error(e+" failed: Was called with "+r+(1===r?" argument.":" arguments.")+" Expects "+i+".")},t.validateCallback=function(e,t,n,r){if((!r||n)&&"function"!=typeof n)throw new Error(T(e,t,r)+"must be a valid function.")},t.validateContextObject=function(e,t,n,r){if((!r||n)&&("object"!=typeof n||null===n))throw new Error(T(e,t,r)+"must be a valid context object.")},t.validateNamespace=function(e,t,n,r){if((!r||n)&&"string"!=typeof n)throw new Error(T(e,t,r)+"must be a valid firebase namespace.")},t.stringLength=function(e){for(var t=0,n=0;n<e.length;n++){var r=e.charCodeAt(n);r<128?t++:r<2048?t+=2:r>=55296&&r<=56319?(t+=4,n++):t+=3}return t},t.stringToByteArray=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);if(i>=55296&&i<=56319){var a=i-55296;o(++r<e.length,"Surrogate pair missing trail surrogate."),i=65536+(a<<10)+(e.charCodeAt(r)-56320)}i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):i<65536?(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t}},function(e,t,n){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=n(661)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=u(i),a=u(n(329)),s=n(33);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){return o.default.createElement("div",{style:this.props.style,className:a.default[this.props.color+"Jumbotron"]},o.default.createElement(s.Container,null,this.props.children))}}]),t}();t.default=c},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,f=-1;function h(){l&&u&&(l=!1,u.length?c=u.concat(c):f=-1,c.length&&p())}function p(){if(!l){var e=s(h);l=!0;for(var t=c.length;t;){for(u=c,c=[];++f<t;)u&&u[f].run();f=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function d(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new d(e,t)),1!==c.length||l||s(p)},d.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){var r=n(115),i=n(119);e.exports=function(e,t,n,o){var a=!n;n||(n={});for(var s=-1,u=t.length;++s<u;){var c=t[s],l=o?o(n[c],e[c],c,n,e):void 0;void 0===l&&(l=e[c]),a?i(n,c,l):r(n,c,l)}return n}},function(e,t){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},function(e,t,n){var r=n(40),i=Object.create,o=function(){function e(){}return function(t){if(!r(t))return{};if(i)return i(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();e.exports=o},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}},function(e,t){var n=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||n)}},function(e,t,n){(function(e){var r=n(34),i=n(568),o="object"==typeof t&&t&&!t.nodeType&&t,a=o&&"object"==typeof e&&e&&!e.nodeType&&e,s=a&&a.exports===o?r.Buffer:void 0,u=(s?s.isBuffer:void 0)||i;e.exports=u}).call(this,n(124)(e))},function(e,t,n){var r=n(174),i=n(573);e.exports=function e(t,n,o,a,s){var u=-1,c=t.length;for(o||(o=i),s||(s=[]);++u<c;){var l=t[u];n>0&&o(l)?n>1?e(l,n-1,o,a,s):r(s,l):a||(s[s.length]=l)}return s}},function(e,t){var n=9007199254740991,r=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var i=typeof e;return!!(t=null==t?n:t)&&("number"==i||"symbol"!=i&&r.test(e))&&e>-1&&e%1==0&&e<t}},function(e,t,n){var r=n(18),i=n(180),o=n(270),a=n(44);e.exports=function(e,t){return r(e)?e:i(e,t)?[e]:o(a(e))}},function(e,t,n){var r=n(193);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(281),i=n(189);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(42),i=n(18),o=n(30),a="[object String]";e.exports=function(e){return"string"==typeof e||!i(e)&&o(e)&&r(e)==a}},function(e,t,n){var r=n(474),i=n(162)(function(e,t){return null==e?{}:r(e,t)});e.exports=i},function(e,t,n){e.exports=n(29)},function(e,t,n){var r=n(261),i=n(95),o=n(56),a=n(126),s=o(function(e,t){return a(e)?r(e,i(t,1,a,!0)):[]});e.exports=s},function(e,t,n){var r=n(458),i=n(173),o=n(125);e.exports=function(e,t,n){return t=i(t),void 0===n?(n=t,t=0):n=i(n),e=o(e),r(e,t,n)}},function(e,t,n){"use strict";n.r(t);var r=n(24),i=n.n(r),o=n(0),a=n.n(o),s=n(5),u=n.n(s),c=n(27),l=n.n(c),f=n(25),h=n.n(f);function p(e){return"/"===e.charAt(0)}function d(e,t){for(var n=t,r=n+1,i=e.length;r<i;n+=1,r+=1)e[n]=e[r];e.pop()}var v=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],r=t&&t.split("/")||[],i=e&&p(e),o=t&&p(t),a=i||o;if(e&&p(e)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var c=0,l=r.length;l>=0;l--){var f=r[l];"."===f?d(r,l):".."===f?(d(r,l),c++):c&&(d(r,l),c--)}if(!a)for(;c--;c)r.unshift("..");!a||""===r[0]||r[0]&&p(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h},m="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var y=function e(t,n){if(t===n)return!0;if(null==t||null==n)return!1;if(Array.isArray(t))return Array.isArray(n)&&t.length===n.length&&t.every(function(t,r){return e(t,n[r])});var r=void 0===t?"undefined":m(t);if(r!==(void 0===n?"undefined":m(n)))return!1;if("object"===r){var i=t.valueOf(),o=n.valueOf();if(i!==t||o!==n)return e(i,o);var a=Object.keys(t),s=Object.keys(n);return a.length===s.length&&a.every(function(r){return e(t[r],n[r])})}return!1},g=function(e){return"/"===e.charAt(0)?e:"/"+e},b=function(e){return"/"===e.charAt(0)?e.substr(1):e},_=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},w=function(e,t){return _(e,t)?e.substr(t.length):e},E=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},x=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T=function(e,t,n,r){var i=void 0;"string"==typeof e?(i=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}}(e)).state=t:(void 0===(i=C({},e)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==t&&void 0===i.state&&(i.state=t));try{i.pathname=decodeURI(i.pathname)}catch(e){throw e instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):e}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=v(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},k=function(e,t){return e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&e.key===t.key&&y(e.state,t.state)},S=function(){var e=null,t=[];return{setPrompt:function(t){return l()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var o="function"==typeof e?e(t,n):e;"string"==typeof o?"function"==typeof r?r(o,i):(l()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==o)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r<e;r++)n[r]=arguments[r];t.forEach(function(e){return e.apply(void 0,n)})}}},A=!("undefined"==typeof window||!window.document||!window.document.createElement),N=function(e,t,n){return e.addEventListener?e.addEventListener(t,n,!1):e.attachEvent("on"+t,n)},O=function(e,t,n){return e.removeEventListener?e.removeEventListener(t,n,!1):e.detachEvent("on"+t,n)},I=function(e,t){return t(window.confirm(e))},P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},D=function(){try{return window.history.state||{}}catch(e){return{}}},M=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h()(A,"Browser history needs a DOM");var t,n=window.history,r=(-1===(t=window.navigator.userAgent).indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&window.history&&"pushState"in window.history,i=!(-1===window.navigator.userAgent.indexOf("Trident")),o=e.forceRefresh,a=void 0!==o&&o,s=e.getUserConfirmation,u=void 0===s?I:s,c=e.keyLength,f=void 0===c?6:c,p=e.basename?E(g(e.basename)):"",d=function(e){var t=e||{},n=t.key,r=t.state,i=window.location,o=i.pathname+i.search+i.hash;return l()(!p||_(o,p),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+p+'".'),p&&(o=w(o,p)),T(o,r,n)},v=function(){return Math.random().toString(36).substr(2,f)},m=S(),y=function(e){R(z,e),z.length=n.length,m.notifyListeners(z.location,z.action)},b=function(e){(function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")})(e)||M(d(e.state))},C=function(){M(d(D()))},k=!1,M=function(e){k?(k=!1,y()):m.confirmTransitionTo(e,"POP",u,function(t){t?y({action:"POP",location:e}):L(e)})},L=function(e){var t=z.location,n=F.indexOf(t.key);-1===n&&(n=0);var r=F.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(k=!0,B(i))},j=d(D()),F=[j.key],U=function(e){return p+x(e)},B=function(e){n.go(e)},q=0,V=function(e){1===(q+=e)?(N(window,"popstate",b),i&&N(window,"hashchange",C)):0===q&&(O(window,"popstate",b),i&&O(window,"hashchange",C))},W=!1,z={length:n.length,action:"POP",location:j,createHref:U,push:function(e,t){l()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=T(e,t,v(),z.location);m.confirmTransitionTo(i,"PUSH",u,function(e){if(e){var t=U(i),o=i.key,s=i.state;if(r)if(n.pushState({key:o,state:s},null,t),a)window.location.href=t;else{var u=F.indexOf(z.location.key),c=F.slice(0,-1===u?0:u+1);c.push(i.key),F=c,y({action:"PUSH",location:i})}else l()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=t}})},replace:function(e,t){l()(!("object"===(void 0===e?"undefined":P(e))&&void 0!==e.state&&void 0!==t),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=T(e,t,v(),z.location);m.confirmTransitionTo(i,"REPLACE",u,function(e){if(e){var t=U(i),o=i.key,s=i.state;if(r)if(n.replaceState({key:o,state:s},null,t),a)window.location.replace(t);else{var u=F.indexOf(z.location.key);-1!==u&&(F[u]=i.key),y({action:"REPLACE",location:i})}else l()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(t)}})},go:B,goBack:function(){return B(-1)},goForward:function(){return B(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=m.setPrompt(e);return W||(V(1),W=!0),function(){return W&&(W=!1,V(-1)),t()}},listen:function(e){var t=m.appendListener(e);return V(1),function(){V(-1),t()}}};return z},L=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},j={hashbang:{encodePath:function(e){return"!"===e.charAt(0)?e:"!/"+b(e)},decodePath:function(e){return"!"===e.charAt(0)?e.substr(1):e}},noslash:{encodePath:b,decodePath:g},slash:{encodePath:g,decodePath:g}},F=function(){var e=window.location.href,t=e.indexOf("#");return-1===t?"":e.substring(t+1)},U=function(e){var t=window.location.href.indexOf("#");window.location.replace(window.location.href.slice(0,t>=0?t:0)+"#"+e)},B=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};h()(A,"Hash history needs a DOM");var t=window.history,n=-1===window.navigator.userAgent.indexOf("Firefox"),r=e.getUserConfirmation,i=void 0===r?I:r,o=e.hashType,a=void 0===o?"slash":o,s=e.basename?E(g(e.basename)):"",u=j[a],c=u.encodePath,f=u.decodePath,p=function(){var e=f(F());return l()(!s||_(e,s),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+s+'".'),s&&(e=w(e,s)),T(e)},d=S(),v=function(e){L(H,e),H.length=t.length,d.notifyListeners(H.location,H.action)},m=!1,y=null,b=function(){var e=F(),t=c(e);if(e!==t)U(t);else{var n=p(),r=H.location;if(!m&&k(r,n))return;if(y===x(n))return;y=null,C(n)}},C=function(e){m?(m=!1,v()):d.confirmTransitionTo(e,"POP",i,function(t){t?v({action:"POP",location:e}):P(e)})},P=function(e){var t=H.location,n=B.lastIndexOf(x(t));-1===n&&(n=0);var r=B.lastIndexOf(x(e));-1===r&&(r=0);var i=n-r;i&&(m=!0,q(i))},R=F(),D=c(R);R!==D&&U(D);var M=p(),B=[x(M)],q=function(e){l()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},V=0,W=function(e){1===(V+=e)?N(window,"hashchange",b):0===V&&O(window,"hashchange",b)},z=!1,H={length:t.length,action:"POP",location:M,createHref:function(e){return"#"+c(s+x(e))},push:function(e,t){l()(void 0===t,"Hash history cannot push state; it is ignored");var n=T(e,void 0,void 0,H.location);d.confirmTransitionTo(n,"PUSH",i,function(e){if(e){var t=x(n),r=c(s+t);if(F()!==r){y=t,function(e){window.location.hash=e}(r);var i=B.lastIndexOf(x(H.location)),o=B.slice(0,-1===i?0:i+1);o.push(t),B=o,v({action:"PUSH",location:n})}else l()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),v()}})},replace:function(e,t){l()(void 0===t,"Hash history cannot replace state; it is ignored");var n=T(e,void 0,void 0,H.location);d.confirmTransitionTo(n,"REPLACE",i,function(e){if(e){var t=x(n),r=c(s+t);F()!==r&&(y=t,U(r));var i=B.indexOf(x(H.location));-1!==i&&(B[i]=t),v({action:"REPLACE",location:n})}})},go:q,goBack:function(){return q(-1)},goForward:function(){return q(1)},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=d.setPrompt(e);return z||(W(1),z=!0),function(){return z&&(z=!1,W(-1)),t()}},listen:function(e){var t=d.appendListener(e);return W(1),function(){W(-1),t()}}};return H},q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},W=function(e,t,n){return Math.min(Math.max(e,t),n)},z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,i=e.initialIndex,o=void 0===i?0:i,a=e.keyLength,s=void 0===a?6:a,u=S(),c=function(e){V(m,e),m.length=m.entries.length,u.notifyListeners(m.location,m.action)},f=function(){return Math.random().toString(36).substr(2,s)},h=W(o,0,r.length-1),p=r.map(function(e){return T(e,void 0,"string"==typeof e?f():e.key||f())}),d=x,v=function(e){var n=W(m.index+e,0,m.entries.length-1),r=m.entries[n];u.confirmTransitionTo(r,"POP",t,function(e){e?c({action:"POP",location:r,index:n}):c()})},m={length:p.length,action:"POP",location:p[h],index:h,entries:p,createHref:d,push:function(e,n){l()(!("object"===(void 0===e?"undefined":q(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r=T(e,n,f(),m.location);u.confirmTransitionTo(r,"PUSH",t,function(e){if(e){var t=m.index+1,n=m.entries.slice(0);n.length>t?n.splice(t,n.length-t,r):n.push(r),c({action:"PUSH",location:r,index:t,entries:n})}})},replace:function(e,n){l()(!("object"===(void 0===e?"undefined":q(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r=T(e,n,f(),m.location);u.confirmTransitionTo(r,"REPLACE",t,function(e){e&&(m.entries[m.index]=r,c({action:"REPLACE",location:r}))})},go:v,goBack:function(){return v(-1)},goForward:function(){return v(1)},canGo:function(e){var t=m.index+e;return t>=0&&t<m.entries.length},block:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return u.setPrompt(e)},listen:function(e){return u.appendListener(e)}};return m},H=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function K(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var G=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=K(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props.history.location.pathname)},K(r,n)}return function(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)}(t,e),t.prototype.getChildContext=function(){return{router:H({},this.context.router,{history:this.props.history,route:{location:this.props.history.location,match:this.state.match}})}},t.prototype.computeMatch=function(e){return{path:"/",url:"/",params:{},isExact:"/"===e}},t.prototype.componentWillMount=function(){var e=this,t=this.props,n=t.children,r=t.history;h()(null==n||1===a.a.Children.count(n),"A <Router> may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){i()(this.props.history===e.history,"You cannot change <Router history>")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?a.a.Children.only(e):null},t}(a.a.Component);G.propTypes={history:u.a.object.isRequired,children:u.a.node},G.contextTypes={router:u.a.object},G.childContextTypes={router:u.a.object.isRequired};var Q=G,Y=Q;function X(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var J=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=X(this,e.call.apply(e,[this].concat(o))),r.history=M(r.props),X(r,n)}return function(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)}(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<BrowserRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { BrowserRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(Y,{history:this.history,children:this.props.children})},t}(a.a.Component);J.propTypes={basename:u.a.string,forceRefresh:u.a.bool,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var $=J;function Z(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ee=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=Z(this,e.call.apply(e,[this].concat(o))),r.history=B(r.props),Z(r,n)}return function(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)}(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<HashRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { HashRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(Y,{history:this.history,children:this.props.children})},t}(a.a.Component);ee.propTypes={basename:u.a.string,getUserConfirmation:u.a.func,hashType:u.a.oneOf(["hashbang","noslash","slash"]),children:u.a.node};var te=ee,ne=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function re(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ie=function(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)},oe=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=re(this,e.call.apply(e,[this].concat(o))),r.handleClick=function(e){if(r.props.onClick&&r.props.onClick(e),!e.defaultPrevented&&0===e.button&&!r.props.target&&!ie(e)){e.preventDefault();var t=r.context.router.history,n=r.props,i=n.replace,o=n.to;i?t.replace(o):t.push(o)}},re(r,n)}return function(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)}(t,e),t.prototype.render=function(){var e=this.props,t=(e.replace,e.to),n=e.innerRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["replace","to","innerRef"]);h()(this.context.router,"You should not use <Link> outside a <Router>"),h()(void 0!==t,'You must specify the "to" property');var i=this.context.router.history,o="string"==typeof t?T(t,null,null,i.location):t,s=i.createHref(o);return a.a.createElement("a",ne({},r,{onClick:this.handleClick,href:s,ref:n}))},t}(a.a.Component);oe.propTypes={onClick:u.a.func,target:u.a.string,replace:u.a.bool,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired,innerRef:u.a.oneOfType([u.a.string,u.a.func])},oe.defaultProps={replace:!1},oe.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired,createHref:u.a.func.isRequired}).isRequired}).isRequired};var ae=oe;function se(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ue=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=se(this,e.call.apply(e,[this].concat(o))),r.history=z(r.props),se(r,n)}return function(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)}(t,e),t.prototype.componentWillMount=function(){i()(!this.props.history,"<MemoryRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { MemoryRouter as Router }`.")},t.prototype.render=function(){return a.a.createElement(Q,{history:this.history,children:this.props.children})},t}(a.a.Component);ue.propTypes={initialEntries:u.a.array,initialIndex:u.a.number,getUserConfirmation:u.a.func,keyLength:u.a.number,children:u.a.node};var ce=ue,le=n(151),fe=n.n(le),he={},pe=0,de=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments[2];"string"==typeof t&&(t={path:t});var r=t,i=r.path,o=r.exact,a=void 0!==o&&o,s=r.strict,u=void 0!==s&&s,c=r.sensitive,l=void 0!==c&&c;if(null==i)return n;var f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=he[n]||(he[n]={});if(r[e])return r[e];var i=[],o={re:fe()(e,i,t),keys:i};return pe<1e4&&(r[e]=o,pe++),o}(i,{end:a,strict:u,sensitive:l}),h=f.re,p=f.keys,d=h.exec(e);if(!d)return null;var v=d[0],m=d.slice(1),y=e===v;return a&&!y?null:{path:i,url:"/"===i&&""===v?"/":v,isExact:y,params:p.reduce(function(e,t,n){return e[t.name]=m[n],e},{})}},ve=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function me(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var ye=function(e){return 0===a.a.Children.count(e)},ge=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=me(this,e.call.apply(e,[this].concat(o))),r.state={match:r.computeMatch(r.props,r.context.router)},me(r,n)}return function(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)}(t,e),t.prototype.getChildContext=function(){return{router:ve({},this.context.router,{route:{location:this.props.location||this.context.router.route.location,match:this.state.match}})}},t.prototype.computeMatch=function(e,t){var n=e.computedMatch,r=e.location,i=e.path,o=e.strict,a=e.exact,s=e.sensitive;if(n)return n;h()(t,"You should not use <Route> or withRouter() outside a <Router>");var u=t.route,c=(r||u.location).pathname;return de(c,{path:i,strict:o,exact:a,sensitive:s},u.match)},t.prototype.componentWillMount=function(){i()(!(this.props.component&&this.props.render),"You should not use <Route component> and <Route render> in the same route; <Route render> will be ignored"),i()(!(this.props.component&&this.props.children&&!ye(this.props.children)),"You should not use <Route component> and <Route children> in the same route; <Route children> will be ignored"),i()(!(this.props.render&&this.props.children&&!ye(this.props.children)),"You should not use <Route render> and <Route children> in the same route; <Route children> will be ignored")},t.prototype.componentWillReceiveProps=function(e,t){i()(!(e.location&&!this.props.location),'<Route> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),i()(!(!e.location&&this.props.location),'<Route> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.'),this.setState({match:this.computeMatch(e,t.router)})},t.prototype.render=function(){var e=this.state.match,t=this.props,n=t.children,r=t.component,i=t.render,o=this.context.router,s=o.history,u=o.route,c=o.staticContext,l={match:e,location:this.props.location||u.location,history:s,staticContext:c};return r?e?a.a.createElement(r,l):null:i?e?i(l):null:"function"==typeof n?n(l):n&&!ye(n)?a.a.Children.only(n):null},t}(a.a.Component);ge.propTypes={computedMatch:u.a.object,path:u.a.string,exact:u.a.bool,strict:u.a.bool,sensitive:u.a.bool,component:u.a.func,render:u.a.func,children:u.a.oneOfType([u.a.func,u.a.node]),location:u.a.object},ge.contextTypes={router:u.a.shape({history:u.a.object.isRequired,route:u.a.object.isRequired,staticContext:u.a.object})},ge.childContextTypes={router:u.a.object.isRequired};var be=ge,_e=be,we=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ee="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};var xe=function(e){var t=e.to,n=e.exact,r=e.strict,i=e.location,o=e.activeClassName,s=e.className,u=e.activeStyle,c=e.style,l=e.isActive,f=e["aria-current"],h=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["to","exact","strict","location","activeClassName","className","activeStyle","style","isActive","aria-current"]),p="object"===(void 0===t?"undefined":Ee(t))?t.pathname:t,d=p&&p.replace(/([.+*?=^!:${}()[\]|/\\])/g,"\\$1");return a.a.createElement(_e,{path:d,exact:n,strict:r,location:i,children:function(e){var n=e.location,r=e.match,i=!!(l?l(r,n):r);return a.a.createElement(ae,we({to:t,className:i?[s,o].filter(function(e){return e}).join(" "):s,style:i?we({},c,u):c,"aria-current":i&&f||null},h))}})};xe.propTypes={to:ae.propTypes.to,exact:u.a.bool,strict:u.a.bool,location:u.a.object,activeClassName:u.a.string,className:u.a.string,activeStyle:u.a.object,style:u.a.object,isActive:u.a.func,"aria-current":u.a.oneOf(["page","step","location","date","time","true"])},xe.defaultProps={activeClassName:"active","aria-current":"page"};var Ce=xe;var Te=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(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)}(t,e),t.prototype.enable=function(e){this.unblock&&this.unblock(),this.unblock=this.context.router.history.block(e)},t.prototype.disable=function(){this.unblock&&(this.unblock(),this.unblock=null)},t.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Prompt> outside a <Router>"),this.props.when&&this.enable(this.props.message)},t.prototype.componentWillReceiveProps=function(e){e.when?this.props.when&&this.props.message===e.message||this.enable(e.message):this.disable()},t.prototype.componentWillUnmount=function(){this.disable()},t.prototype.render=function(){return null},t}(a.a.Component);Te.propTypes={when:u.a.bool,message:u.a.oneOfType([u.a.func,u.a.string]).isRequired},Te.defaultProps={when:!0},Te.contextTypes={router:u.a.shape({history:u.a.shape({block:u.a.func.isRequired}).isRequired}).isRequired};var ke=Te,Se={},Ae=0,Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"/"===e?e:function(e){var t=e,n=Se[t]||(Se[t]={});if(n[e])return n[e];var r=fe.a.compile(e);return Ae<1e4&&(n[e]=r,Ae++),r}(e)(t,{pretty:!0})},Oe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ie=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(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)}(t,e),t.prototype.isStatic=function(){return this.context.router&&this.context.router.staticContext},t.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Redirect> outside a <Router>"),this.isStatic()&&this.perform()},t.prototype.componentDidMount=function(){this.isStatic()||this.perform()},t.prototype.componentDidUpdate=function(e){var t=T(e.to),n=T(this.props.to);k(t,n)?i()(!1,"You tried to redirect to the same route you're currently on: \""+n.pathname+n.search+'"'):this.perform()},t.prototype.computeTo=function(e){var t=e.computedMatch,n=e.to;return t?"string"==typeof n?Ne(n,t.params):Oe({},n,{pathname:Ne(n.pathname,t.params)}):n},t.prototype.perform=function(){var e=this.context.router.history,t=this.props.push,n=this.computeTo(this.props);t?e.push(n):e.replace(n)},t.prototype.render=function(){return null},t}(a.a.Component);Ie.propTypes={computedMatch:u.a.object,push:u.a.bool,from:u.a.string,to:u.a.oneOfType([u.a.string,u.a.object]).isRequired},Ie.defaultProps={push:!1},Ie.contextTypes={router:u.a.shape({history:u.a.shape({push:u.a.func.isRequired,replace:u.a.func.isRequired}).isRequired,staticContext:u.a.object}).isRequired};var Pe=Ie,Re=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};function De(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var Me=function(e){return"/"===e.charAt(0)?e:"/"+e},Le=function(e,t){return e?Re({},t,{pathname:Me(e)+t.pathname}):t},je=function(e){return"string"==typeof e?e:x(e)},Fe=function(e){return function(){h()(!1,"You cannot %s with <StaticRouter>",e)}},Ue=function(){},Be=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var i=arguments.length,o=Array(i),a=0;a<i;a++)o[a]=arguments[a];return n=r=De(this,e.call.apply(e,[this].concat(o))),r.createHref=function(e){return Me(r.props.basename+je(e))},r.handlePush=function(e){var t=r.props,n=t.basename,i=t.context;i.action="PUSH",i.location=Le(n,T(e)),i.url=je(i.location)},r.handleReplace=function(e){var t=r.props,n=t.basename,i=t.context;i.action="REPLACE",i.location=Le(n,T(e)),i.url=je(i.location)},r.handleListen=function(){return Ue},r.handleBlock=function(){return Ue},De(r,n)}return function(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)}(t,e),t.prototype.getChildContext=function(){return{router:{staticContext:this.props.context}}},t.prototype.componentWillMount=function(){i()(!this.props.history,"<StaticRouter> ignores the history prop. To use a custom history, use `import { Router }` instead of `import { StaticRouter as Router }`.")},t.prototype.render=function(){var e=this.props,t=e.basename,n=(e.context,e.location),r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["basename","context","location"]),i={createHref:this.createHref,action:"POP",location:function(e,t){if(!e)return t;var n=Me(e);return 0!==t.pathname.indexOf(n)?t:Re({},t,{pathname:t.pathname.substr(n.length)})}(t,T(n)),push:this.handlePush,replace:this.handleReplace,go:Fe("go"),goBack:Fe("goBack"),goForward:Fe("goForward"),listen:this.handleListen,block:this.handleBlock};return a.a.createElement(Q,Re({},r,{history:i}))},t}(a.a.Component);Be.propTypes={basename:u.a.string,context:u.a.object.isRequired,location:u.a.oneOfType([u.a.string,u.a.object])},Be.defaultProps={basename:"",location:"/"},Be.childContextTypes={router:u.a.object.isRequired};var qe=Be;var Ve=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(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)}(t,e),t.prototype.componentWillMount=function(){h()(this.context.router,"You should not use <Switch> outside a <Router>")},t.prototype.componentWillReceiveProps=function(e){i()(!(e.location&&!this.props.location),'<Switch> elements should not change from uncontrolled to controlled (or vice versa). You initially used no "location" prop and then provided one on a subsequent render.'),i()(!(!e.location&&this.props.location),'<Switch> elements should not change from controlled to uncontrolled (or vice versa). You provided a "location" prop initially but omitted it on a subsequent render.')},t.prototype.render=function(){var e=this.context.router.route,t=this.props.children,n=this.props.location||e.location,r=void 0,i=void 0;return a.a.Children.forEach(t,function(t){if(null==r&&a.a.isValidElement(t)){var o=t.props,s=o.path,u=o.exact,c=o.strict,l=o.sensitive,f=o.from,h=s||f;i=t,r=de(n.pathname,{path:h,exact:u,strict:c,sensitive:l},e.match)}}),r?a.a.cloneElement(i,{location:n,computedMatch:r}):null},t}(a.a.Component);Ve.contextTypes={router:u.a.shape({route:u.a.object.isRequired}).isRequired},Ve.propTypes={children:u.a.node,location:u.a.object};var We=Ve,ze=Ne,He=de,Ke=n(316),Ge=n.n(Ke),Qe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};var Ye=function(e){var t=function(t){var n=t.wrappedComponentRef,r=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["wrappedComponentRef"]);return a.a.createElement(be,{children:function(t){return a.a.createElement(e,Qe({},r,t,{ref:n}))}})};return t.displayName="withRouter("+(e.displayName||e.name)+")",t.WrappedComponent=e,t.propTypes={wrappedComponentRef:u.a.func},Ge()(t,e)};n.d(t,"BrowserRouter",function(){return $}),n.d(t,"HashRouter",function(){return te}),n.d(t,"Link",function(){return ae}),n.d(t,"MemoryRouter",function(){return ce}),n.d(t,"NavLink",function(){return Ce}),n.d(t,"Prompt",function(){return ke}),n.d(t,"Redirect",function(){return Pe}),n.d(t,"Route",function(){return _e}),n.d(t,"Router",function(){return Y}),n.d(t,"StaticRouter",function(){return qe}),n.d(t,"Switch",function(){return We}),n.d(t,"generatePath",function(){return ze}),n.d(t,"matchPath",function(){return He}),n.d(t,"withRouter",function(){return Ye})},function(e,t,n){var r;"undefined"!=typeof self&&self,e.exports=(r=n(0),function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,t),i.l=!0,i.exports}var n={};return t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=60)}([function(e,t){e.exports=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e,t,n){return e||console.error("theme has not been set"),c(e)(t,n)};var i=n(64),o=n(65),a=function(e){return e&&e.__esModule?e:{default:e}}(o),s=n(66),u=function(e){var t=function(e){return{backgroundColor:e.base00,ellipsisColor:e.base09,braceColor:e.base07,expandedIcon:e.base0D,collapsedIcon:e.base0E,keyColor:e.base07,arrayKeyColor:e.base0C,objectSize:e.base04,copyToClipboard:e.base0F,copyToClipboardCheck:e.base0D,objectBorder:e.base02,dataTypes:{boolean:e.base0E,date:e.base0D,float:e.base0B,function:e.base0D,integer:e.base0F,string:e.base09,nan:e.base08,null:e.base0A,undefined:e.base05,regexp:e.base0A,background:e.base02},editVariable:{editIcon:e.base0E,cancelIcon:e.base09,removeIcon:e.base09,addIcon:e.base0E,checkIcon:e.base0E,background:e.base01,color:e.base0A,border:e.base07},addKeyModal:{background:e.base05,border:e.base04,color:e.base0A,labelColor:e.base01},validationFailure:{background:e.base09,iconColor:e.base01,fontColor:e.base01}}}(e);return{"app-container":{fontFamily:a.default.globalFontFamily,cursor:a.default.globalCursor,backgroundColor:t.backgroundColor,position:"relative"},ellipsis:{display:"inline-block",color:t.ellipsisColor,fontSize:a.default.ellipsisFontSize,lineHeight:a.default.ellipsisLineHeight,cursor:a.default.ellipsisCursor},"brace-row":{display:"inline-block",cursor:"pointer"},brace:{display:"inline-block",cursor:a.default.braceCursor,fontWeight:a.default.braceFontWeight,color:t.braceColor},"expanded-icon":{color:t.expandedIcon},"collapsed-icon":{color:t.collapsedIcon},colon:{display:"inline-block",margin:a.default.keyMargin,color:t.keyColor,verticalAlign:"top"},objectKeyVal:function(e,n){return{style:r({paddingTop:a.default.keyValPaddingTop,paddingRight:a.default.keyValPaddingRight,paddingBottom:a.default.keyValPaddingBottom,borderLeft:a.default.keyValBorderLeft+" "+t.objectBorder,":hover":{paddingLeft:n.paddingLeft-1+"px",borderLeft:a.default.keyValBorderHover+" "+t.objectBorder}},n)}},"object-key-val-no-border":{padding:a.default.keyValPadding},"pushed-content":{marginLeft:a.default.pushedContentMarginLeft},variableValue:function(e,t){return{style:r({display:"inline-block",paddingRight:a.default.variableValuePaddingRight,position:"relative"},t)}},"object-name":{display:"inline-block",color:t.keyColor,letterSpacing:a.default.keyLetterSpacing,fontStyle:a.default.keyFontStyle,verticalAlign:a.default.keyVerticalAlign,opacity:a.default.keyOpacity,":hover":{opacity:a.default.keyOpacityHover}},"array-key":{display:"inline-block",color:t.arrayKeyColor,letterSpacing:a.default.keyLetterSpacing,fontStyle:a.default.keyFontStyle,verticalAlign:a.default.keyVerticalAlign,opacity:a.default.keyOpacity,":hover":{opacity:a.default.keyOpacityHover}},"object-size":{color:t.objectSize,borderRadius:a.default.objectSizeBorderRadius,fontStyle:a.default.objectSizeFontStyle,margin:a.default.objectSizeMargin,cursor:"default"},"data-type-label":{fontSize:a.default.dataTypeFontSize,marginRight:a.default.dataTypeMarginRight,opacity:a.default.datatypeOpacity},boolean:{display:"inline-block",color:t.dataTypes.boolean},date:{display:"inline-block",color:t.dataTypes.date},"date-value":{marginLeft:a.default.dateValueMarginLeft},float:{display:"inline-block",color:t.dataTypes.float},function:{display:"inline-block",color:t.dataTypes.function,cursor:"pointer",whiteSpace:"pre-line"},"function-value":{fontStyle:"italic"},integer:{display:"inline-block",color:t.dataTypes.integer},string:{display:"inline-block",color:t.dataTypes.string},nan:{display:"inline-block",color:t.dataTypes.nan,fontSize:a.default.nanFontSize,fontWeight:a.default.nanFontWeight,backgroundColor:t.dataTypes.background,padding:a.default.nanPadding,borderRadius:a.default.nanBorderRadius},null:{display:"inline-block",color:t.dataTypes.null,fontSize:a.default.nullFontSize,fontWeight:a.default.nullFontWeight,backgroundColor:t.dataTypes.background,padding:a.default.nullPadding,borderRadius:a.default.nullBorderRadius},undefined:{display:"inline-block",color:t.dataTypes.undefined,fontSize:a.default.undefinedFontSize,padding:a.default.undefinedPadding,borderRadius:a.default.undefinedBorderRadius,backgroundColor:t.dataTypes.background},regexp:{display:"inline-block",color:t.dataTypes.regexp},"copy-to-clipboard":{cursor:a.default.clipboardCursor},"copy-icon":{color:t.copyToClipboard,fontSize:a.default.iconFontSize,marginRight:a.default.iconMarginRight,verticalAlign:"top"},"copy-icon-copied":{color:t.copyToClipboardCheck,marginLeft:a.default.clipboardCheckMarginLeft},"array-group-meta-data":{display:"inline-block",padding:a.default.arrayGroupMetaPadding},"object-meta-data":{display:"inline-block",padding:a.default.metaDataPadding},"icon-container":{display:"inline-block",width:a.default.iconContainerWidth},tooltip:{padding:a.default.tooltipPadding},removeVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.removeIcon,cursor:a.default.iconCursor,fontSize:a.default.iconFontSize,marginRight:a.default.iconMarginRight},addVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.addIcon,cursor:a.default.iconCursor,fontSize:a.default.iconFontSize,marginRight:a.default.iconMarginRight},editVarIcon:{verticalAlign:"top",display:"inline-block",color:t.editVariable.editIcon,cursor:a.default.iconCursor,fontSize:a.default.iconFontSize,marginRight:a.default.iconMarginRight},"edit-icon-container":{display:"inline-block",verticalAlign:"top"},"check-icon":{display:"inline-block",cursor:a.default.iconCursor,color:t.editVariable.checkIcon,fontSize:a.default.iconFontSize,paddingRight:a.default.iconPaddingRight},"cancel-icon":{display:"inline-block",cursor:a.default.iconCursor,color:t.editVariable.cancelIcon,fontSize:a.default.iconFontSize,paddingRight:a.default.iconPaddingRight},"edit-input":{display:"inline-block",minHeight:a.default.editInputHeight,minWidth:a.default.editInputMinWidth,borderRadius:a.default.editInputBorderRadius,backgroundColor:t.editVariable.background,color:t.editVariable.color,padding:a.default.editInputPadding,marginRight:a.default.editInputMarginRight,fontFamily:a.default.editInputFontFamily},"detected-row":{paddingTop:a.default.detectedRowPaddingTop},"key-modal-request":{position:a.default.addKeyCoverPosition,top:a.default.addKeyCoverPositionPx,left:a.default.addKeyCoverPositionPx,right:a.default.addKeyCoverPositionPx,bottom:a.default.addKeyCoverPositionPx,backgroundColor:a.default.addKeyCoverBackground},"key-modal":{width:a.default.addKeyModalWidth,backgroundColor:t.addKeyModal.background,marginLeft:a.default.addKeyModalMargin,marginRight:a.default.addKeyModalMargin,padding:a.default.addKeyModalPadding,borderRadius:a.default.addKeyModalRadius,marginTop:"15px",position:"relative"},"key-modal-label":{color:t.addKeyModal.labelColor,marginLeft:"2px",marginBottom:"5px",fontSize:"11px"},"key-modal-input-container":{overflow:"hidden"},"key-modal-input":{width:"100%",padding:"3px 6px",fontFamily:"monospace",color:t.addKeyModal.color,border:"none",boxSizing:"border-box",borderRadius:"2px"},"key-modal-cancel":{backgroundColor:t.editVariable.removeIcon,position:"absolute",top:"0px",right:"0px",borderRadius:"0px 3px 0px 3px",cursor:"pointer"},"key-modal-cancel-icon":{color:t.addKeyModal.labelColor,fontSize:a.default.iconFontSize,transform:"rotate(45deg)"},"key-modal-submit":{color:t.editVariable.addIcon,fontSize:a.default.iconFontSize,position:"absolute",right:"2px",top:"3px",cursor:"pointer"},"function-ellipsis":{display:"inline-block",color:t.ellipsisColor,fontSize:a.default.ellipsisFontSize,lineHeight:a.default.ellipsisLineHeight,cursor:a.default.ellipsisCursor},"validation-failure":{float:"right",padding:"3px 6px",borderRadius:"2px",cursor:"pointer",color:t.validationFailure.fontColor,backgroundColor:t.validationFailure.background},"validation-failure-label":{marginRight:"6px"},"validation-failure-clear":{position:"relative",verticalAlign:"top",cursor:"pointer",color:t.validationFailure.iconColor,fontSize:a.default.iconFontSize,transform:"rotate(45deg)"}}},c=function(e){var t=i.rjv_default;return!1!==e&&"none"!==e||(t=i.rjv_grey),(0,s.createStyling)(u,{defaultBase16:t})(e)}},function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},function(e,t,n){var r=n(32)("wks"),i=n(23),o=n(5).Symbol,a="function"==typeof o;(e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))}).store=r},function(e,t,n){"use strict";function r(e){var t=function(e){return{}.toString.call(e).match(/\s([a-zA-Z]+)/)[1].toLowerCase()}(e);return"number"===t&&(t=isNaN(e)?"nan":(0|e)!=e?"float":"integer"),t}Object.defineProperty(t,"__esModule",{value:!0}),t.toType=r,t.isTheme=function(e){var t=["base00","base01","base02","base03","base04","base05","base06","base07","base08","base09","base0A","base0B","base0C","base0D","base0E","base0F"];if("object"===r(e)){for(var n=0;n<t.length;n++)if(!(t[n]in e))return!1;return!0}return!1}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(1),c=r(u),l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=(e.rjvId,e.type_name),n=e.displayDataTypes,r=e.theme;return n?s.default.createElement("span",i({className:"data-type-label"},(0,c.default)(r,"data-type-label")),t):null}}]),t}(s.default.PureComponent);t.default=l},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(9),i=n(22);e.exports=n(10)?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var r=n(16),i=n(44),o=n(29),a=Object.defineProperty;t.f=n(10)?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(11)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(49),i=n(28);e.exports=function(e){return r(i(e))}},function(e,t,n){"use strict";function r(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 i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(161),s=n(14),u=function(e){return e&&e.__esModule?e:{default:e}}(s),c=n(4),l=function(e){function t(){var e,n,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var s=arguments.length,u=Array(s),l=0;l<s;l++)u[l]=arguments[l];return n=a=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),a.objects={},a.set=function(e,t,n,r){void 0===a.objects[e]&&(a.objects[e]={}),void 0===a.objects[e][t]&&(a.objects[e][t]={}),a.objects[e][t][n]=r},a.get=function(e,t,n,r){return void 0===a.objects[e]||void 0===a.objects[e][t]||void 0==a.objects[e][t][n]?r:a.objects[e][t][n]},a.handleAction=function(e){var t=e.rjvId,n=e.data;switch(e.name){case"RESET":a.emit("reset-"+t);break;case"VARIABLE_UPDATED":e.data.updated_src=a.updateSrc(t,n),a.set(t,"action","variable-update",o({},n,{type:"variable-edited"})),a.emit("variable-update-"+t);break;case"VARIABLE_REMOVED":e.data.updated_src=a.updateSrc(t,n),a.set(t,"action","variable-update",o({},n,{type:"variable-removed"})),a.emit("variable-update-"+t);break;case"VARIABLE_ADDED":e.data.updated_src=a.updateSrc(t,n),a.set(t,"action","variable-update",o({},n,{type:"variable-added"})),a.emit("variable-update-"+t);break;case"ADD_VARIABLE_KEY_REQUEST":a.set(t,"action","new-key-request",n),a.emit("add-key-request-"+t)}},a.updateSrc=function(e,t){var n=t.name,i=t.namespace,o=t.new_value,s=(t.existing_value,t.variable_removed);i.shift();var u=a.get(e,"global","src"),l=a.deepCopy(u,[].concat(r(i))),f=l,h=!0,p=!1,d=void 0;try{for(var v,m=i[Symbol.iterator]();!(h=(v=m.next()).done);h=!0)f=f[v.value]}catch(e){p=!0,d=e}finally{try{!h&&m.return&&m.return()}finally{if(p)throw d}}return s?"array"==(0,c.toType)(f)?f.splice(n,1):delete f[n]:null!==n?f[n]=o:l=o,a.set(e,"global","src",l),l},a.deepCopy=function(e,t){var n=(0,c.toType)(e),i=void 0,s=t.shift();return"array"==n?i=[].concat(r(e)):"object"==n&&(i=o({},e)),void 0!==s&&(i[s]=a.deepCopy(e[s],t)),i},i(a,n)}return function(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)}(t,e),t}(a.EventEmitter),f=new l;u.default.register(f.handleAction.bind(f)),t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(162),i=new r.Dispatcher;t.default=i},function(e,t,n){"use strict";function r(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}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&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e){return e||(e={}),{style:u({verticalAlign:"middle"},e,{color:e.color?e.color:h,height:"1em",width:"1em"})}}Object.defineProperty(t,"__esModule",{value:!0}),t.CheckCircle=t.Edit=t.Add=t.AddCircle=t.RemoveCircle=t.Clippy=t.ArrowDown=t.ArrowRight=t.SquarePlus=t.SquareMinus=t.CirclePlus=t.CircleMinus=void 0;var u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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}}(),l=n(0),f=function(e){return e&&e.__esModule?e:{default:e}}(l),h="#000000";t.CircleMinus=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M7,13H17V11H7"})))}}]),t}(f.default.PureComponent),t.CirclePlus=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 24 24",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("path",{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M13,7H11V11H7V13H11V17H13V13H17V11H13V7Z"})))}}]),t}(f.default.PureComponent),t.SquareMinus=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]),i=s(t).style;return f.default.createElement("span",n,f.default.createElement("svg",{fill:i.color,width:i.height,height:i.width,style:i,viewBox:"0 0 1792 1792"},f.default.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-832q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h832q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),t}(f.default.PureComponent),t.SquarePlus=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]),i=s(t).style;return f.default.createElement("span",n,f.default.createElement("svg",{fill:i.color,width:i.height,height:i.width,style:i,viewBox:"0 0 1792 1792"},f.default.createElement("path",{d:"M1344 800v64q0 14-9 23t-23 9h-352v352q0 14-9 23t-23 9h-64q-14 0-23-9t-9-23v-352h-352q-14 0-23-9t-9-23v-64q0-14 9-23t23-9h352v-352q0-14 9-23t23-9h64q14 0 23 9t9 23v352h352q14 0 23 9t9 23zm128 448v-832q0-66-47-113t-113-47h-832q-66 0-113 47t-47 113v832q0 66 47 113t113 47h832q66 0 113-47t47-113zm128-832v832q0 119-84.5 203.5t-203.5 84.5h-832q-119 0-203.5-84.5t-84.5-203.5v-832q0-119 84.5-203.5t203.5-84.5h832q119 0 203.5 84.5t84.5 203.5z"})))}}]),t}(f.default.PureComponent),t.ArrowRight=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",{style:u({},s(t).style,{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},f.default.createElement("path",{d:"M0 14l6-6-6-6z"})))}}]),t}(f.default.PureComponent),t.ArrowDown=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",{style:u({},s(t).style,{paddingLeft:"2px",verticalAlign:"top"}),viewBox:"0 0 15 15",fill:"currentColor"},f.default.createElement("path",{d:"M0 5l6 6 6-6z"})))}}]),t}(f.default.PureComponent),t.Clippy=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("g",null,f.default.createElement("path",{d:"m30 35h-25v-22.5h25v7.5h2.5v-12.5c0-1.4-1.1-2.5-2.5-2.5h-7.5c0-2.8-2.2-5-5-5s-5 2.2-5 5h-7.5c-1.4 0-2.5 1.1-2.5 2.5v27.5c0 1.4 1.1 2.5 2.5 2.5h25c1.4 0 2.5-1.1 2.5-2.5v-5h-2.5v5z m-20-27.5h2.5s2.5-1.1 2.5-2.5 1.1-2.5 2.5-2.5 2.5 1.1 2.5 2.5 1.3 2.5 2.5 2.5h2.5s2.5 1.1 2.5 2.5h-20c0-1.5 1.1-2.5 2.5-2.5z m-2.5 20h5v-2.5h-5v2.5z m17.5-5v-5l-10 7.5 10 7.5v-5h12.5v-5h-12.5z m-17.5 10h7.5v-2.5h-7.5v2.5z m12.5-17.5h-12.5v2.5h12.5v-2.5z m-7.5 5h-5v2.5h5v-2.5z"}))))}}]),t}(f.default.PureComponent),t.RemoveCircle=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("g",null,f.default.createElement("path",{d:"m28.6 25q0-0.5-0.4-1l-4-4 4-4q0.4-0.5 0.4-1 0-0.6-0.4-1.1l-2-2q-0.4-0.4-1-0.4-0.6 0-1 0.4l-4.1 4.1-4-4.1q-0.4-0.4-1-0.4-0.6 0-1 0.4l-2 2q-0.5 0.5-0.5 1.1 0 0.5 0.5 1l4 4-4 4q-0.5 0.5-0.5 1 0 0.7 0.5 1.1l2 2q0.4 0.4 1 0.4 0.6 0 1-0.4l4-4.1 4.1 4.1q0.4 0.4 1 0.4 0.6 0 1-0.4l2-2q0.4-0.4 0.4-1z m8.7-5q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),t}(f.default.PureComponent),t.AddCircle=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("g",null,f.default.createElement("path",{d:"m30.1 21.4v-2.8q0-0.6-0.4-1t-1-0.5h-5.7v-5.7q0-0.6-0.4-1t-1-0.4h-2.9q-0.6 0-1 0.4t-0.4 1v5.7h-5.7q-0.6 0-1 0.5t-0.5 1v2.8q0 0.6 0.5 1t1 0.5h5.7v5.7q0 0.5 0.4 1t1 0.4h2.9q0.6 0 1-0.4t0.4-1v-5.7h5.7q0.6 0 1-0.5t0.4-1z m7.2-1.4q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),t}(f.default.PureComponent),t.Add=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("g",null,f.default.createElement("path",{d:"m31.6 21.6h-10v10h-3.2v-10h-10v-3.2h10v-10h3.2v10h10v3.2z"}))))}}]),t}(f.default.PureComponent),t.Edit=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("g",null,f.default.createElement("path",{d:"m19.8 26.4l2.6-2.6-3.4-3.4-2.6 2.6v1.3h2.2v2.1h1.2z m9.8-16q-0.3-0.4-0.7 0l-7.8 7.8q-0.4 0.4 0 0.7t0.7 0l7.8-7.8q0.4-0.4 0-0.7z m1.8 13.2v4.3q0 2.6-1.9 4.5t-4.5 1.9h-18.6q-2.6 0-4.5-1.9t-1.9-4.5v-18.6q0-2.7 1.9-4.6t4.5-1.8h18.6q1.4 0 2.6 0.5 0.3 0.2 0.4 0.5 0.1 0.4-0.2 0.7l-1.1 1.1q-0.3 0.3-0.7 0.1-0.5-0.1-1-0.1h-18.6q-1.4 0-2.5 1.1t-1 2.5v18.6q0 1.4 1 2.5t2.5 1h18.6q1.5 0 2.5-1t1.1-2.5v-2.9q0-0.2 0.2-0.4l1.4-1.5q0.3-0.3 0.8-0.1t0.4 0.6z m-2.1-16.5l6.4 6.5-15 15h-6.4v-6.5z m9.9 3l-2.1 2-6.4-6.4 2.1-2q0.6-0.7 1.5-0.7t1.5 0.7l3.4 3.4q0.6 0.6 0.6 1.5t-0.6 1.5z"}))))}}]),t}(f.default.PureComponent),t.CheckCircle=function(e){function t(){return i(this,t),o(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return a(t,e),c(t,[{key:"render",value:function(){var e=this.props,t=e.style,n=r(e,["style"]);return f.default.createElement("span",n,f.default.createElement("svg",u({},s(t),{viewBox:"0 0 40 40",fill:"currentColor",preserveAspectRatio:"xMidYMid meet"}),f.default.createElement("g",null,f.default.createElement("path",{d:"m31.7 16.4q0-0.6-0.4-1l-2.1-2.1q-0.4-0.4-1-0.4t-1 0.4l-9.1 9.1-5-5q-0.5-0.4-1-0.4t-1 0.4l-2.1 2q-0.4 0.4-0.4 1 0 0.6 0.4 1l8.1 8.1q0.4 0.4 1 0.4 0.6 0 1-0.4l12.2-12.1q0.4-0.4 0.4-1z m5.6 3.6q0 4.7-2.3 8.6t-6.3 6.2-8.6 2.3-8.6-2.3-6.2-6.2-2.3-8.6 2.3-8.6 6.2-6.2 8.6-2.3 8.6 2.3 6.3 6.2 2.3 8.6z"}))))}}]),t}(f.default.PureComponent)},function(e,t,n){var r=n(17);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports={}},function(e,t,n){var r=n(48),i=n(33);e.exports=Object.keys||function(e){return r(e,i)}},function(e,t){e.exports=!0},function(e,t,n){var r=n(5),i=n(2),o=n(71),a=n(8),s=n(7),u=function(e,t,n){var c,l,f,h=e&u.F,p=e&u.G,d=e&u.S,v=e&u.P,m=e&u.B,y=e&u.W,g=p?i:i[t]||(i[t]={}),b=g.prototype,_=p?r:d?r[t]:(r[t]||{}).prototype;for(c in p&&(n=t),n)(l=!h&&_&&void 0!==_[c])&&s(g,c)||(f=l?_[c]:n[c],g[c]=p&&"function"!=typeof _[c]?n[c]:m&&l?o(f,r):y&&_[c]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(f):v&&"function"==typeof f?o(Function.call,f):f,v&&((g.virtual||(g.virtual={}))[c]=f,e&u.R&&b&&!b[c]&&a(b,c,f)))};u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){t.f={}.propertyIsEnumerable},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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),u=r(s),c=n(41),l=n(4),f=n(42),h=n(171),p=r(h),d=n(56),v=r(d),m=n(57),y=r(m),g=n(58),b=r(g),_=n(13),w=r(_),E=n(59),x=n(1),C=r(x),T=function(e){function t(e){i(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));k.call(n);var r=t.getState(e);return n.state=o({},r,{prevProps:{}}),n}return function(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)}(t,e),a(t,[{key:"getBraceStart",value:function(e,t){var n=this,r=this.props,i=r.src,a=r.theme,s=r.iconStyle;if("array_group"===r.parent_type)return u.default.createElement("span",null,u.default.createElement("span",(0,C.default)(a,"brace"),"array"===e?"[":"{"),t?this.getObjectMetaData(i):null);var c=t?E.ExpandedIcon:E.CollapsedIcon;return u.default.createElement("span",null,u.default.createElement("span",o({onClick:function(e){n.toggleCollapsed()}},(0,C.default)(a,"brace-row")),u.default.createElement("div",o({className:"icon-container"},(0,C.default)(a,"icon-container")),u.default.createElement(c,{theme:a,iconStyle:s})),u.default.createElement(b.default,this.props),u.default.createElement("span",(0,C.default)(a,"brace"),"array"===e?"[":"{")),t?this.getObjectMetaData(i):null)}},{key:"render",value:function(){var e=this.props,t=e.depth,n=e.src,r=(e.namespace,e.name,e.type,e.parent_type),i=e.theme,a=e.jsvRoot,s=e.iconStyle,c=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["depth","src","namespace","name","type","parent_type","theme","jsvRoot","iconStyle"]),l=this.state,f=l.object_type,h=l.expanded,p={};return a||"array_group"===r?"array_group"===r&&(p.borderLeft=0,p.display="inline"):p.paddingLeft=5*this.props.indentWidth,u.default.createElement("div",o({className:"object-key-val"},(0,C.default)(i,a?"jsv-root":"objectKeyVal",p)),this.getBraceStart(f,h),h?this.getObjectContent(t,n,o({theme:i,iconStyle:s},c)):this.getEllipsis(),u.default.createElement("span",{className:"brace-row"},u.default.createElement("span",{style:o({},(0,C.default)(i,"brace").style,{paddingLeft:h?"3px":"0px"})},"array"===f?"]":"}"),h?null:this.getObjectMetaData(n)))}}],[{key:"getDerivedStateFromProps",value:function(e,n){var r=n.prevProps;if(e.src!==r.src||e.collapsed!==r.collapsed||e.name!==r.name||e.namespace!==r.namespace||e.rjvId!==r.rjvId){var i=t.getState(e);return o({},i,{prevProps:e})}return null}}]),t}(u.default.PureComponent);T.getState=function(e){var t=Object.keys(e.src).length,n=(!1===e.collapsed||!0!==e.collapsed&&e.collapsed>e.depth)&&(!e.shouldCollapse||!1===e.shouldCollapse({name:e.name,src:e.src,type:(0,l.toType)(e.src),namespace:e.namespace}))&&0!==t;return{expanded:w.default.get(e.rjvId,e.namespace,"expanded",n),object_type:"array"===e.type?"array":"object",parent_type:"array"===e.type?"array":"object",size:t}};var k=function(){var e=this;this.toggleCollapsed=function(){e.setState({expanded:!e.state.expanded},function(){w.default.set(e.props.rjvId,e.props.namespace,"expanded",e.state.expanded)})},this.getObjectContent=function(t,n,r){return u.default.createElement("div",{className:"pushed-content object-container"},u.default.createElement("div",o({className:"object-content"},(0,C.default)(e.props.theme,"pushed-content")),e.renderObjectContents(n,r)))},this.getEllipsis=function(){return 0===e.state.size?null:u.default.createElement("div",o({},(0,C.default)(e.props.theme,"ellipsis"),{className:"node-ellipsis",onClick:e.toggleCollapsed}),"...")},this.getObjectMetaData=function(t){var n=e.props,r=(n.rjvId,n.theme,e.state.size);return u.default.createElement(v.default,o({size:r},e.props))},this.renderObjectContents=function(t,n){var r=e.props,i=r.depth,a=r.parent_type,s=r.index_offset,c=r.groupArraysAfterLength,l=r.namespace,h=e.state.object_type,d=(n.theme,[]),v=void 0,m=Object.keys(t||{});return e.props.sortKeys&&(m=m.sort()),m.forEach(function(r){if(v=new S(r,t[r]),"array_group"===a&&s&&(v.name=parseInt(v.name)+s),t.hasOwnProperty(r))if("object"===v.type)d.push(u.default.createElement(f.JsonObject,o({key:v.name,depth:i+1,name:v.name,src:v.value,namespace:l.concat(v.name),parent_type:h},n)));else if("array"===v.type){var m=f.JsonObject;c&&v.value.length>c&&(m=y.default),d.push(u.default.createElement(m,o({key:v.name,depth:i+1,name:v.name,src:v.value,namespace:l.concat(v.name),type:"array",parent_type:h},n)))}else d.push(u.default.createElement(p.default,o({key:v.name+"_"+l,variable:v,singleIndent:5,namespace:l,type:e.props.type},n)))}),d}},S=function e(t,n){i(this,e),this.name=t,this.value=n,this.type=(0,l.toType)(n)};(0,c.polyfill)(T),t.default=T},function(e,t,n){"use strict";var r=n(70)(!0);n(43)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(17);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(32)("keys"),i=n(23);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(2),i=n(5),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(20)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(9).f,i=n(7),o=n(3)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(28);e.exports=function(e){return Object(r(e))}},function(e,t,n){n(80);for(var r=n(5),i=n(8),o=n(18),a=n(3)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(e,t,n){t.f=n(3)},function(e,t,n){var r=n(5),i=n(2),o=n(20),a=n(37),s=n(9).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports=function(e,t,n){return Math.min(Math.max(e,t),n)}},function(e,t,n){"use strict";function r(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!==e&&void 0!==e&&this.setState(e)}function i(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!==n&&void 0!==n?n:null}.bind(this))}function o(e,t){try{var n=this.props,r=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,r)}finally{this.props=n,this.state=r}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,a=null,s=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?s="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(s="UNSAFE_componentWillUpdate"),null!==n||null!==a||null!==s){var u=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+u+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n "+n:"")+(null!==a?"\n "+a:"")+(null!==s?"\n "+s:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=r,t.componentWillReceiveProps=i),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=o;var l=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var r=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;l.call(this,e,t,r)}}return e}Object.defineProperty(t,"__esModule",{value:!0}),n.d(t,"polyfill",function(){return a}),r.__suppressDeprecationWarning=!0,i.__suppressDeprecationWarning=!0,o.__suppressDeprecationWarning=!0},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(63);Object.defineProperty(t,"JsonBoolean",{enumerable:!0,get:function(){return r(i).default}});var o=n(158);Object.defineProperty(t,"JsonDate",{enumerable:!0,get:function(){return r(o).default}});var a=n(159);Object.defineProperty(t,"JsonFloat",{enumerable:!0,get:function(){return r(a).default}});var s=n(160);Object.defineProperty(t,"JsonFunction",{enumerable:!0,get:function(){return r(s).default}});var u=n(165);Object.defineProperty(t,"JsonNan",{enumerable:!0,get:function(){return r(u).default}});var c=n(166);Object.defineProperty(t,"JsonNull",{enumerable:!0,get:function(){return r(c).default}});var l=n(167);Object.defineProperty(t,"JsonInteger",{enumerable:!0,get:function(){return r(l).default}});var f=n(25);Object.defineProperty(t,"JsonObject",{enumerable:!0,get:function(){return r(f).default}});var h=n(168);Object.defineProperty(t,"JsonRegexp",{enumerable:!0,get:function(){return r(h).default}});var p=n(169);Object.defineProperty(t,"JsonString",{enumerable:!0,get:function(){return r(p).default}});var d=n(170);Object.defineProperty(t,"JsonUndefined",{enumerable:!0,get:function(){return r(d).default}})},function(e,t,n){"use strict";var r=n(20),i=n(21),o=n(46),a=n(8),s=n(18),u=n(73),c=n(34),l=n(79),f=n(3)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,d,v,m,y){u(n,t,d);var g,b,_,w=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",x="values"==v,C=!1,T=e.prototype,k=T[f]||T["@@iterator"]||v&&T[v],S=k||w(v),A=v?x?w("entries"):S:void 0,N="Array"==t&&T.entries||k;if(N&&(_=l(N.call(new e)))!==Object.prototype&&_.next&&(c(_,E,!0),r||"function"==typeof _[f]||a(_,f,p)),x&&k&&"values"!==k.name&&(C=!0,S=function(){return k.call(this)}),r&&!y||!h&&!C&&T[f]||a(T,f,S),s[t]=S,s[E]=p,v)if(g={values:x?S:w("values"),keys:m?S:w("keys"),entries:A},y)for(b in g)b in T||o(T,b,g[b]);else i(i.P+i.F*(h||C),t,g);return g}},function(e,t,n){e.exports=!n(10)&&!n(11)(function(){return 7!=Object.defineProperty(n(45)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(17),i=n(5).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=n(8)},function(e,t,n){var r=n(16),i=n(74),o=n(33),a=n(31)("IE_PROTO"),s=function(){},u=function(){var e,t=n(45)("iframe"),r=o.length;for(t.style.display="none",n(78).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t,n){var r=n(7),i=n(12),o=n(75)(!1),a=n(31)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(48),i=n(33).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){var r=n(30),i=n(3)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=/-?\d+(\.\d+)?%?/g;e.exports=function(e){return e.match(n)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4);t.default=function(e){var t=(0,r.toType)(e),n=void 0;switch(t){case"undefined":n="undefined";break;case"nan":n="NaN";break;case"string":n=e;break;case"date":case"function":case"regexp":n=e.toString();break;default:try{n=JSON.stringify(e,null," ")}catch(e){n=""}}return 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=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(4),c=n(54),l=(r(c),n(15)),f=n(1),h=r(f),p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.copiedTimer=null,n.handleCopy=function(){var e=document.createElement("textarea"),t=n.props,r=t.clickCallback,i=t.src,o=t.namespace;e.innerHTML=JSON.stringify(n.clipboardValue(i),null," "),document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e),n.copiedTimer=setTimeout(function(){n.setState({copied:!1})},5500),n.setState({copied:!0},function(){"function"==typeof r&&r({src:i,namespace:o,name:o[o.length-1]})})},n.getClippyIcon=function(){var e=n.props.theme;return n.state.copied?s.default.createElement("span",null,s.default.createElement(l.Clippy,i({className:"copy-icon"},(0,h.default)(e,"copy-icon"))),s.default.createElement("span",(0,h.default)(e,"copy-icon-copied"),"✔")):s.default.createElement(l.Clippy,i({className:"copy-icon"},(0,h.default)(e,"copy-icon")))},n.clipboardValue=function(e){switch((0,u.toType)(e)){case"function":case"regexp":return e.toString();default:return e}},n.state={copied:!1},n}return function(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)}(t,e),o(t,[{key:"componentWillUnmount",value:function(){this.copiedTimer&&(clearTimeout(this.copiedTimer),this.copiedTimer=null)}},{key:"render",value:function(){var e=this.props,t=(e.src,e.theme),n=e.hidden,r=(0,h.default)(t,"copy-to-clipboard").style,o="inline";return n&&(o="none"),s.default.createElement("span",{className:"copy-to-clipboard-container"},s.default.createElement("span",{style:i({},r,{display:o}),onClick:this.handleCopy},this.getClippyIcon()))}}]),t}(s.default.PureComponent);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),s=r(a),u=n(14),c=r(u),l=n(55),f=r(l),h=n(4),p=n(15),d=n(1),v=r(d),m=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.getObjectSize=function(){var e=r.props,t=e.size,n=e.theme;if(e.displayObjectSize)return s.default.createElement("span",o({className:"object-size"},(0,v.default)(n,"object-size")),t," item",1===t?"":"s")},r.getAddAttribute=function(){var e=r.props,t=e.theme,n=e.namespace,i=e.name,a=e.src,u=e.rjvId,l=e.depth;return s.default.createElement("span",{className:"click-to-add",style:{verticalAlign:"top"}},s.default.createElement(p.AddCircle,o({className:"click-to-add-icon"},(0,v.default)(t,"addVarIcon"),{onClick:function(){var e={name:l>0?i:null,namespace:n.splice(0,n.length-1),existing_value:a,variable_removed:!1,key_name:null};"object"===(0,h.toType)(a)?c.default.dispatch({name:"ADD_VARIABLE_KEY_REQUEST",rjvId:u,data:e}):c.default.dispatch({name:"VARIABLE_ADDED",rjvId:u,data:o({},e,{new_value:[].concat(function(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)}(a),[null])})})}})))},r.getRemoveObject=function(){var e=r.props,t=e.theme,n=(e.hover,e.namespace),i=e.name,a=e.src,u=e.rjvId;if(1!==n.length)return s.default.createElement("span",{className:"click-to-remove"},s.default.createElement(p.RemoveCircle,o({className:"click-to-remove-icon"},(0,v.default)(t,"removeVarIcon"),{onClick:function(){c.default.dispatch({name:"VARIABLE_REMOVED",rjvId:u,data:{name:i,namespace:n.splice(0,n.length-1),existing_value:a,variable_removed:!0}})}})))},r.render=function(){var e=r.props,t=e.theme,n=e.onDelete,i=e.onAdd,a=e.enableClipboard,u=e.src,c=e.namespace;return s.default.createElement("div",o({},(0,v.default)(t,"object-meta-data"),{className:"object-meta-data",onClick:function(e){e.stopPropagation()}}),r.getObjectSize(),a?s.default.createElement(f.default,o({clickCallback:a},{src:u,theme:t,namespace:c})):null,!1!==i?r.getAddAttribute():null,!1!==n?r.getRemoveObject():null)},i(r,n)}return function(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)}(t,e),t}(s.default.PureComponent);t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(1),c=r(u),l=n(56),f=r(l),h=n(58),p=r(h),d=n(25),v=r(d),m=n(59),y=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggleCollapsed=function(e){var t=[];for(var r in n.state.expanded)t.push(n.state.expanded[r]);t[e]=!t[e],n.setState({expanded:t})},n.state={expanded:[]},n}return function(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)}(t,e),o(t,[{key:"getExpandedIcon",value:function(e){var t=this.props,n=t.theme,r=t.iconStyle;return this.state.expanded[e]?s.default.createElement(m.ExpandedIcon,{theme:n,iconStyle:r}):s.default.createElement(m.CollapsedIcon,{theme:n,iconStyle:r})}},{key:"render",value:function(){var e=this,t=this.props,n=t.src,r=t.groupArraysAfterLength,o=(t.depth,t.name),a=t.theme,u=t.jsvRoot,l=t.namespace,h=(t.parent_type,function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(t,["src","groupArraysAfterLength","depth","name","theme","jsvRoot","namespace","parent_type"])),d=0,m=5*this.props.indentWidth;u||(d=5*this.props.indentWidth);var y=r,g=Math.ceil(n.length/y);return s.default.createElement("div",i({className:"object-key-val"},(0,c.default)(a,u?"jsv-root":"objectKeyVal",{paddingLeft:d})),s.default.createElement(p.default,this.props),s.default.createElement("span",null,s.default.createElement(f.default,i({size:n.length},this.props))),[].concat(function(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)}(Array(g))).map(function(t,r){return s.default.createElement("div",i({key:r,className:"object-key-val array-group"},(0,c.default)(a,"objectKeyVal",{marginLeft:6,paddingLeft:m})),s.default.createElement("span",(0,c.default)(a,"brace-row"),s.default.createElement("div",i({className:"icon-container"},(0,c.default)(a,"icon-container"),{onClick:function(t){e.toggleCollapsed(r)}}),e.getExpandedIcon(r)),e.state.expanded[r]?s.default.createElement(v.default,i({key:o+r,depth:0,name:!1,collapsed:!1,groupArraysAfterLength:y,index_offset:r*y,src:n.slice(r*y,r*y+y),namespace:l,type:"array",parent_type:"array_group",theme:a},h)):s.default.createElement("span",i({},(0,c.default)(a,"brace"),{onClick:function(t){e.toggleCollapsed(r)},className:"array-group-brace"}),"[",s.default.createElement("div",i({},(0,c.default)(a,"array-group-meta-data"),{className:"array-group-meta-data"}),s.default.createElement("span",i({className:"object-size"},(0,c.default)(a,"object-size")),r*y," - ",r*y+y>n.length?n.length:r*y+y)),"]")))}))}}]),t}(s.default.PureComponent);t.default=y},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.default=function(e){var t=e.parent_type,n=e.namespace,r=e.theme,o=e.jsvRoot,s=e.name,c=e.name?e.name:"";return!o||!1!==s&&null!==s?"array"==t?a.default.createElement("span",i({},(0,u.default)(r,"array-key"),{key:n}),a.default.createElement("span",{className:"array-key"},c),a.default.createElement("span",(0,u.default)(r,"colon"),":")):a.default.createElement("span",i({},(0,u.default)(r,"object-name"),{key:n}),a.default.createElement("span",{className:"object-key"},a.default.createElement("span",{style:{verticalAlign:"top"}},'"'),a.default.createElement("span",null,c),a.default.createElement("span",{style:{verticalAlign:"top"}},'"')),a.default.createElement("span",(0,u.default)(r,"colon"),":")):a.default.createElement("span",null)};var o=n(0),a=r(o),s=n(1),u=r(s)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};t.ExpandedIcon=function(e){var t=e.theme;switch(e.iconStyle){case"triangle":return a.default.createElement(c.ArrowDown,i({},(0,u.default)(t,"expanded-icon"),{className:"expanded-icon"}));case"square":return a.default.createElement(c.SquareMinus,i({},(0,u.default)(t,"expanded-icon"),{className:"expanded-icon"}));default:return a.default.createElement(c.CircleMinus,i({},(0,u.default)(t,"expanded-icon"),{className:"expanded-icon"}))}},t.CollapsedIcon=function(e){var t=e.theme;switch(e.iconStyle){case"triangle":return a.default.createElement(c.ArrowRight,i({},(0,u.default)(t,"collapsed-icon"),{className:"collapsed-icon"}));case"square":return a.default.createElement(c.SquarePlus,i({},(0,u.default)(t,"collapsed-icon"),{className:"collapsed-icon"}));default:return a.default.createElement(c.CirclePlus,i({},(0,u.default)(t,"collapsed-icon"),{className:"collapsed-icon"}))}};var o=n(0),a=r(o),s=n(1),u=r(s),c=n(15)},function(e,t,n){e.exports=n(61)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(41),c=n(62),l=r(c),f=n(177),h=r(f),p=n(179),d=r(p),v=n(4),m=n(13),y=r(m),g=n(1),b=r(g);n(180);var _=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.rjvId=Date.now().toString(),n.getListeners=function(){return{reset:n.resetState,"variable-update":n.updateSrc,"add-key-request":n.addKeyRequest}},n.updateSrc=function(){var e=y.default.get(n.rjvId,"action","variable-update"),t=e.name,r=e.namespace,i=e.new_value,o=e.existing_value,a=(e.variable_removed,e.updated_src),s=e.type,u=n.props,c=u.onEdit,l=u.onDelete,f=u.onAdd,h=n.state.src,p=void 0,d={existing_src:h,new_value:i,updated_src:a,name:t,namespace:r,existing_value:o};switch(s){case"variable-added":p=f(d);break;case"variable-edited":p=c(d);break;case"variable-removed":p=l(d)}!1!==p?(y.default.set(n.rjvId,"global","src",a),n.setState({src:a})):n.setState({validationFailure:!0})},n.addKeyRequest=function(){n.setState({addKeyRequest:!0})},n.resetState=function(){n.setState({validationFailure:!1})},n.state={addKeyRequest:!1,editKeyRequest:!1,validationFailure:!1,src:t.defaultProps.src,name:t.defaultProps.name,theme:t.defaultProps.theme,prevSrc:t.defaultProps.src,prevName:t.defaultProps.name,prevTheme:t.defaultProps.theme},n}return function(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)}(t,e),o(t,[{key:"componentDidMount",value:function(){y.default.set(this.rjvId,"global","src",this.state.src);var e=this.getListeners();for(var t in e)y.default.on(t+"-"+this.rjvId,e[t]);this.setState({addKeyRequest:!1,editKeyRequest:!1})}},{key:"componentDidUpdate",value:function(e,t){!1!==t.addKeyRequest&&this.setState({addKeyRequest:!1}),!1!==t.editKeyRequest&&this.setState({editKeyRequest:!1})}},{key:"componentWillUnmount",value:function(){var e=this.getListeners();for(var t in e)y.default.removeListener(t+"-"+this.rjvId,e[t])}},{key:"render",value:function(){var e=this.state,t=e.validationFailure,n=e.validationMessage,r=e.addKeyRequest,o=e.theme,a=e.src,u=e.name,c=this.props.style;return s.default.createElement("div",{className:"react-json-view",style:i({},(0,b.default)(o,"app-container").style,c)},s.default.createElement(d.default,{message:n,active:t,theme:o,rjvId:this.rjvId}),s.default.createElement(l.default,i({},this.props,{src:a,name:u,theme:o,type:(0,v.toType)(a),rjvId:this.rjvId})),s.default.createElement(h.default,{active:r,theme:o,rjvId:this.rjvId}))}}],[{key:"getDerivedStateFromProps",value:function(e,n){if(e.src!==n.prevSrc||e.name!==n.prevName||e.theme!==n.prevTheme){var r={src:e.src,name:e.name,theme:e.theme,prevSrc:e.src,prevName:e.name,prevTheme:e.theme};return t.validateState(r)}return null}}]),t}(s.default.PureComponent);_.defaultProps={src:{},name:"root",theme:"rjv-default",collapsed:!1,collapseStringsAfterLength:!1,shouldCollapse:!1,sortKeys:!1,groupArraysAfterLength:100,indentWidth:4,enableClipboard:!0,displayObjectSize:!0,displayDataTypes:!0,onEdit:!1,onDelete:!1,onAdd:!1,onSelect:!1,iconStyle:"triangle",style:{},validationMessage:"Validation Error"},_.validateState=function(e){var t={};return"object"!==(0,v.toType)(e.theme)||(0,v.isTheme)(e.theme)||(console.error("react-json-view error:","theme prop must be a theme name or valid base-16 theme object.",'defaulting to "rjv-default" theme'),t.theme="rjv-default"),"object"!==(0,v.toType)(e.src)&&"array"!==(0,v.toType)(e.src)&&(console.error("react-json-view error:","src property must be a valid json object"),t.name="ERROR",t.src={message:"src property must be a valid json object"}),i({},e,t)},(0,u.polyfill)(_),t.default=_},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a=n(0),s=r(a),u=n(25),c=r(u),l=n(57),f=r(l),h=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,u=Array(a),l=0;l<a;l++)u[l]=arguments[l];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(u))),r.render=function(){var e=r,t=e.props,n=[t.name],i=c.default;return t.groupArraysAfterLength&&t.src.length>t.groupArraysAfterLength&&(i=f.default),s.default.createElement("div",{className:"pretty-json-container object-container"},s.default.createElement("div",{className:"object-content"},s.default.createElement(i,o({namespace:n,depth:0,jsvRoot:!0},t))))},i(r,n)}return function(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)}(t,e),t}(s.default.PureComponent);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(1),f=r(l),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props;return s.default.createElement("div",(0,f.default)(e.theme,"boolean"),s.default.createElement(c.default,i({type_name:"bool"},e)),e.value?"true":"false")}}]),t}(s.default.PureComponent);t.default=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rjv_default={scheme:"rjv-default",author:"mac gainor",base00:"rgba(0, 0, 0, 0)",base01:"rgb(245, 245, 245)",base02:"rgb(235, 235, 235)",base03:"#93a1a1",base04:"rgba(0, 0, 0, 0.3)",base05:"#586e75",base06:"#073642",base07:"#002b36",base08:"#d33682",base09:"#cb4b16",base0A:"#dc322f",base0B:"#859900",base0C:"#6c71c4",base0D:"#586e75",base0E:"#2aa198",base0F:"#268bd2"},t.rjv_grey={scheme:"rjv-grey",author:"mac gainor",base00:"rgba(1, 1, 1, 0)",base01:"rgba(1, 1, 1, 0.1)",base02:"rgba(0, 0, 0, 0.2)",base03:"rgba(1, 1, 1, 0.3)",base04:"rgba(0, 0, 0, 0.4)",base05:"rgba(1, 1, 1, 0.5)",base06:"rgba(1, 1, 1, 0.6)",base07:"rgba(1, 1, 1, 0.7)",base08:"rgba(1, 1, 1, 0.8)",base09:"rgba(1, 1, 1, 0.8)",base0A:"rgba(1, 1, 1, 0.8)",base0B:"rgba(1, 1, 1, 0.8)",base0C:"rgba(1, 1, 1, 0.8)",base0D:"rgba(1, 1, 1, 0.8)",base0E:"rgba(1, 1, 1, 0.8)",base0F:"rgba(1, 1, 1, 0.8)"}},function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i;Object.defineProperty(t,"__esModule",{value:!0}),t.default=(r(i={white:"#fff",black:"#000",transparent:"rgba(1, 1, 1, 0)",globalFontFamily:"monospace",globalCursor:"default",indentBlockWidth:"5px",braceFontWeight:"bold",braceCursor:"pointer",ellipsisFontSize:"18px",ellipsisLineHeight:"10px",ellipsisCursor:"pointer",keyMargin:"0px 5px",keyLetterSpacing:"0.5px",keyFontStyle:"none",keyBorderRadius:"3px",keyColonWeight:"bold",keyVerticalAlign:"top",keyOpacity:"0.85",keyOpacityHover:"1",keyValPaddingTop:"3px",keyValPaddingBottom:"3px",keyValPaddingRight:"5px",keyValBorderLeft:"1px solid",keyValBorderHover:"2px solid",keyValPaddingHover:"3px 5px 3px 4px",pushedContentMarginLeft:"6px",variableValuePaddingRight:"6px",nullFontSize:"11px",nullFontWeight:"bold",nullPadding:"1px 2px",nullBorderRadius:"3px",nanFontSize:"11px",nanFontWeight:"bold",nanPadding:"1px 2px",nanBorderRadius:"3px",undefinedFontSize:"11px",undefinedFontWeight:"bold",undefinedPadding:"1px 2px",undefinedBorderRadius:"3px"},"nullFontSize","11px"),r(i,"nullFontWeight","bold"),r(i,"nullPadding","1px 2px"),r(i,"nullBorderRadius","3px"),r(i,"dataTypeFontSize","11px"),r(i,"dataTypeMarginRight","4px"),r(i,"datatypeOpacity","0.8"),r(i,"objectSizeBorderRadius","3px"),r(i,"objectSizeFontStyle","italic"),r(i,"objectSizeMargin","0px 6px 0px 0px"),r(i,"clipboardCursor","pointer"),r(i,"clipboardCheckMarginLeft","-12px"),r(i,"metaDataPadding","0px 0px 0px 10px"),r(i,"arrayGroupMetaPadding","0px 0px 0px 4px"),r(i,"iconContainerWidth","17px"),r(i,"tooltipPadding","4px"),r(i,"editInputHeight","25px"),r(i,"editInputMinWidth","130px"),r(i,"editInputBorderRadius","2px"),r(i,"editInputPadding","5px"),r(i,"editInputMarginRight","4px"),r(i,"editInputFontFamily","monospace"),r(i,"iconCursor","pointer"),r(i,"iconFontSize","15px"),r(i,"iconPaddingRight","1px"),r(i,"dateValueMarginLeft","2px"),r(i,"iconMarginRight","3px"),r(i,"detectedRowPaddingTop","3px"),r(i,"addKeyCoverBackground","rgba(255, 255, 255, 0.3)"),r(i,"addKeyCoverPosition","absolute"),r(i,"addKeyCoverPositionPx","0px"),r(i,"addKeyModalWidth","200px"),r(i,"addKeyModalMargin","auto"),r(i,"addKeyModalPadding","10px"),r(i,"addKeyModalRadius","3px"),i)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.getBase16Theme=t.createStyling=t.invertTheme=void 0;var i=n(67),o=r(i),a=n(94),s=r(a),u=n(99),c=r(u),l=n(107),f=r(l),h=n(111),p=r(h),d=n(112),v=function(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}(d),m=n(150),y=r(m),g=n(151),b=r(g),_=n(156),w=r(_),E=n(157),x=v.default,C=(0,f.default)(x),T=(0,w.default)(b.default,E.rgb2yuv,function(e){var t=(0,c.default)(e,3),n=t[0],r=t[1],i=t[2];return[function(e){return e<.25?1:e<.5?.9-e:1.1-e}(n),r,i]},E.yuv2rgb,y.default),k=function(e){return function(t){return{className:[t.className,e.className].filter(Boolean).join(" "),style:(0,s.default)({},t.style||{},e.style||{})}}},S=function(e,t){var n=(0,f.default)(t);for(var r in e)-1===n.indexOf(r)&&n.push(r);return n.reduce(function(n,r){return n[r]=function(e,t){if(void 0===e)return t;if(void 0===t)return e;var n=void 0===e?"undefined":(0,o.default)(e),r=void 0===t?"undefined":(0,o.default)(t);switch(n){case"string":switch(r){case"string":return[t,e].filter(Boolean).join(" ");case"object":return k({className:e,style:t});case"function":return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return k({className:e})(t.apply(void 0,[n].concat(i)))}}case"object":switch(r){case"string":return k({className:t,style:e});case"object":return(0,s.default)({},t,e);case"function":return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return k({style:e})(t.apply(void 0,[n].concat(i)))}}case"function":switch(r){case"string":return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.apply(void 0,[k(n)({className:t})].concat(i))};case"object":return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.apply(void 0,[k(n)({style:t})].concat(i))};case"function":return function(n){for(var r=arguments.length,i=Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return e.apply(void 0,[t.apply(void 0,[n].concat(i))].concat(i))}}}}(e[r],t[r]),n},{})},A=function(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];if(null===t)return e;Array.isArray(t)||(t=[t]);var a=t.map(function(t){return e[t]}).filter(Boolean),u=a.reduce(function(e,t){return"string"==typeof t?e.className=[e.className,t].filter(Boolean).join(" "):"object"===(void 0===t?"undefined":(0,o.default)(t))?e.style=(0,s.default)({},e.style,t):"function"==typeof t&&(e=(0,s.default)({},e,t.apply(void 0,[e].concat(r)))),e},{className:"",style:{}});return u.className||delete u.className,0===(0,f.default)(u.style).length&&delete u.style,u},N=t.invertTheme=function(e){return(0,f.default)(e).reduce(function(t,n){return t[n]=/^base/.test(n)?T(e[n]):"scheme"===n?e[n]+":inverted":e[n],t},{})},O=(t.createStyling=(0,p.default)(function(e){for(var t=arguments.length,n=Array(t>3?t-3:0),r=3;r<t;r++)n[r-3]=arguments[r];var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=i.defaultBase16,u=void 0===a?x:a,c=i.base16Themes,l=void 0===c?null:c,h=O(o,l);h&&(o=(0,s.default)({},h,o));var d=C.reduce(function(e,t){return e[t]=o[t]||u[t],e},{}),v=(0,f.default)(o).reduce(function(e,t){return-1===C.indexOf(t)?(e[t]=o[t],e):e},{}),m=e(d),y=S(v,m);return(0,p.default)(A,2).apply(void 0,[y].concat(n))},3),t.getBase16Theme=function(e,t){if(e&&e.extend&&(e=e.extend),"string"==typeof e){var n=e.split(":"),r=(0,c.default)(n,2),i=r[0],o=r[1];e=(t||{})[i]||v[i],"inverted"===o&&(e=N(e))}return e&&e.hasOwnProperty("base00")?e:void 0})},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(68),o=r(i),a=n(83),s=r(a),u="function"==typeof s.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":typeof e};t.default="function"==typeof s.default&&"symbol"===u(o.default)?function(e){return void 0===e?"undefined":u(e)}:function(e){return e&&"function"==typeof s.default&&e.constructor===s.default&&e!==s.default.prototype?"symbol":void 0===e?"undefined":u(e)}},function(e,t,n){e.exports={default:n(69),__esModule:!0}},function(e,t,n){n(26),n(36),e.exports=n(37).f("iterator")},function(e,t,n){var r=n(27),i=n(28);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){var r=n(72);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var r=n(47),i=n(22),o=n(34),a={};n(8)(a,n(3)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(9),i=n(16),o=n(19);e.exports=n(10)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){var r=n(12),i=n(76),o=n(77);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(27),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(27),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(5).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(7),i=n(35),o=n(31)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){"use strict";var r=n(81),i=n(82),o=n(18),a=n(12);e.exports=n(43)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){e.exports={default:n(84),__esModule:!0}},function(e,t,n){n(85),n(91),n(92),n(93),e.exports=n(2).Symbol},function(e,t,n){"use strict";var r=n(5),i=n(7),o=n(10),a=n(21),s=n(46),u=n(86).KEY,c=n(11),l=n(32),f=n(34),h=n(23),p=n(3),d=n(37),v=n(38),m=n(87),y=n(88),g=n(16),b=n(17),_=n(12),w=n(29),E=n(22),x=n(47),C=n(89),T=n(90),k=n(9),S=n(19),A=T.f,N=k.f,O=C.f,I=r.Symbol,P=r.JSON,R=P&&P.stringify,D=p("_hidden"),M=p("toPrimitive"),L={}.propertyIsEnumerable,j=l("symbol-registry"),F=l("symbols"),U=l("op-symbols"),B=Object.prototype,q="function"==typeof I,V=r.QObject,W=!V||!V.prototype||!V.prototype.findChild,z=o&&c(function(){return 7!=x(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(B,t);r&&delete B[t],N(e,t,n),r&&e!==B&&N(B,t,r)}:N,H=function(e){var t=F[e]=x(I.prototype);return t._k=e,t},K=q&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,n){return e===B&&G(U,t,n),g(e),t=w(t,!0),g(n),i(F,t)?(n.enumerable?(i(e,D)&&e[D][t]&&(e[D][t]=!1),n=x(n,{enumerable:E(0,!1)})):(i(e,D)||N(e,D,E(1,{})),e[D][t]=!0),z(e,t,n)):N(e,t,n)},Q=function(e,t){g(e);for(var n,r=m(t=_(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},Y=function(e){var t=L.call(this,e=w(e,!0));return!(this===B&&i(F,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,D)&&this[D][e])||t)},X=function(e,t){if(e=_(e),t=w(t,!0),e!==B||!i(F,t)||i(U,t)){var n=A(e,t);return!n||!i(F,t)||i(e,D)&&e[D][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=O(_(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==D||t==u||r.push(t);return r},$=function(e){for(var t,n=e===B,r=O(n?U:_(e)),o=[],a=0;r.length>a;)!i(F,t=r[a++])||n&&!i(B,t)||o.push(F[t]);return o};q||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(U,n),i(this,D)&&i(this[D],e)&&(this[D][e]=!1),z(this,e,E(1,n))};return o&&W&&z(B,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),T.f=X,k.f=G,n(50).f=C.f=J,n(24).f=Y,n(39).f=$,o&&!n(20)&&s(B,"propertyIsEnumerable",Y,!0),d.f=function(e){return H(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)p(Z[ee++]);for(var te=S(p.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?x(e):Q(x(e),t)},defineProperty:G,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:$}),P&&a(a.S+a.F*(!q||c(function(){var e=I();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,R.apply(P,r)}}),I.prototype[M]||n(8)(I.prototype,M,I.prototype.valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){var r=n(23)("meta"),i=n(17),o=n(7),a=n(9).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(11)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){var r=n(19),i=n(39),o=n(24);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(30);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(12),i=n(50).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(24),i=n(22),o=n(12),a=n(29),s=n(7),u=n(44),c=Object.getOwnPropertyDescriptor;t.f=n(10)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(38)("asyncIterator")},function(e,t,n){n(38)("observable")},function(e,t,n){"use strict";t.__esModule=!0;var r=n(95),i=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=i.default||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}},function(e,t,n){e.exports={default:n(96),__esModule:!0}},function(e,t,n){n(97),e.exports=n(2).Object.assign},function(e,t,n){var r=n(21);r(r.S+r.F,"Object",{assign:n(98)})},function(e,t,n){"use strict";var r=n(19),i=n(39),o=n(24),a=n(35),s=n(49),u=Object.assign;e.exports=!u||n(11)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,l=i.f,f=o.f;u>c;)for(var h,p=s(arguments[c++]),d=l?r(p).concat(l(p)):r(p),v=d.length,m=0;v>m;)f.call(p,h=d[m++])&&(n[h]=p[h]);return n}:u},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var i=n(100),o=r(i),a=n(103),s=r(a);t.default=function(e,t){if(Array.isArray(e))return e;if((0,o.default)(Object(e)))return function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=(0,s.default)(e);!(r=(a=u.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,o=e}finally{try{!r&&u.return&&u.return()}finally{if(i)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){e.exports={default:n(101),__esModule:!0}},function(e,t,n){n(36),n(26),e.exports=n(102)},function(e,t,n){var r=n(51),i=n(3)("iterator"),o=n(18);e.exports=n(2).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){e.exports={default:n(104),__esModule:!0}},function(e,t,n){n(36),n(26),e.exports=n(105)},function(e,t,n){var r=n(16),i=n(106);e.exports=n(2).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){var r=n(51),i=n(3)("iterator"),o=n(18);e.exports=n(2).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){e.exports={default:n(108),__esModule:!0}},function(e,t,n){n(109),e.exports=n(2).Object.keys},function(e,t,n){var r=n(35),i=n(19);n(110)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){var r=n(21),i=n(2),o=n(11);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){(function(t){function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function r(e,t){return!(!e||!e.length)&&function(e,t,n){if(t!=t)return function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}(e,i,n);for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,0)>-1}function i(e){return e!=e}function o(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==E||(e[n]=E,o[i++]=n)}return o}function a(e){return!(!g(e)||function(e){return!!ne&&ne in e}(e))&&(function(e){var t=g(e)?oe.call(e):"";return t==j||t==F}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?ae:K).test(function(e){if(null!=e){try{return re.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(e))}function s(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=function(e){return g(e)?se(e):{}}(e.prototype),r=e.apply(n,t);return g(r)?r:n}}function u(e,t,r){var i=s(e);return function a(){for(var s=arguments.length,u=Array(s),l=s,h=p(a);l--;)u[l]=arguments[l];var d=s<3&&u[0]!==h&&u[s-1]!==h?[]:o(u,h);return(s-=d.length)<r?f(e,t,c,a.placeholder,void 0,u,d,void 0,void 0,r-s):n(this&&this!==$&&this instanceof a?i:e,this,u)}}function c(e,t,n,r,i,a,u,l,h,d){var v=t&O,y=t&x,g=t&C,b=t&(k|S),_=t&I,w=g?void 0:s(e);return function E(){for(var x=arguments.length,C=Array(x),T=x;T--;)C[T]=arguments[T];if(b)var k=p(E),S=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&r++;return r}(C,k);if(r&&(C=function(e,t,n,r){for(var i=-1,o=e.length,a=n.length,s=-1,u=t.length,c=ue(o-a,0),l=Array(u+c),f=!r;++s<u;)l[s]=t[s];for(;++i<a;)(f||i<o)&&(l[n[i]]=e[i]);for(;c--;)l[s++]=e[i++];return l}(C,r,i,b)),a&&(C=function(e,t,n,r){for(var i=-1,o=e.length,a=-1,s=n.length,u=-1,c=t.length,l=ue(o-s,0),f=Array(l+c),h=!r;++i<l;)f[i]=e[i];for(var p=i;++u<c;)f[p+u]=t[u];for(;++a<s;)(h||i<o)&&(f[p+n[a]]=e[i++]);return f}(C,a,u,b)),x-=S,b&&x<d){var A=o(C,k);return f(e,t,c,E.placeholder,n,C,A,l,h,d-x)}var N=y?n:this,O=g?N[e]:e;return x=C.length,l?C=m(C,l):_&&x>1&&C.reverse(),v&&h<x&&(C.length=h),this&&this!==$&&this instanceof E&&(O=w||s(O)),O.apply(N,C)}}function l(e,t,r,i){var o=t&x,a=s(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=Array(l+u),h=this&&this!==$&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return n(h,o?r:this,f)}}function f(e,t,n,r,i,o,a,s,u,c){var l=t&k,f=l?a:void 0,h=l?void 0:a,p=l?o:void 0,d=l?void 0:o;t|=l?A:N,(t&=~(l?N:A))&T||(t&=~(x|C));var v=n(e,t,i,p,f,d,h,s,u,c);return v.placeholder=r,fe(v,e,t)}function h(e,t,n,r,i,o,a,f){var h=t&C;if(!h&&"function"!=typeof e)throw new TypeError(w);var p=r?r.length:0;if(p||(t&=~(A|N),r=i=void 0),a=void 0===a?a:ue(_(a),0),f=void 0===f?f:_(f),p-=i?i.length:0,t&N){var d=r,v=i;r=i=void 0}var m=[e,t,n,r,i,d,v,o,a,f];if(e=m[0],t=m[1],n=m[2],r=m[3],i=m[4],!(f=m[9]=null==m[9]?h?0:e.length:ue(m[9]-p,0))&&t&(k|S)&&(t&=~(k|S)),t&&t!=x)y=t==k||t==S?u(e,t,f):t!=A&&t!=(x|A)||i.length?c.apply(void 0,m):l(e,t,n,r);else var y=function(e,t,n){var r=t&x,i=s(e);return function t(){return(this&&this!==$&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return fe(y,e,t)}function p(e){return e.placeholder}function d(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return a(n)?n:void 0}function v(e,t){return!!(t=null==t?R:t)&&("number"==typeof e||Q.test(e))&&e>-1&&e%1==0&&e<t}function m(e,t){for(var n=e.length,r=ce(t.length,n),i=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}(e);r--;){var o=t[r];e[r]=v(o,n)?i[o]:void 0}return e}function y(e,t,n){var r=h(e,k,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return r.placeholder=y.placeholder,r}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){return e?(e=function(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&oe.call(e)==U}(e))return M;if(g(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=g(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(B,"");var n=H.test(e);return n||G.test(e)?Y(e.slice(2),n?2:8):z.test(e)?M:+e}(e))===P||e===-P?(e<0?-1:1)*D:e==e?e:0:0===e?e:0}function _(e){var t=b(e),n=t%1;return t==t?n?t-n:t:0}var w="Expected a function",E="__lodash_placeholder__",x=1,C=2,T=4,k=8,S=16,A=32,N=64,O=128,I=512,P=1/0,R=9007199254740991,D=1.7976931348623157e308,M=NaN,L=[["ary",O],["bind",x],["bindKey",C],["curry",k],["curryRight",S],["flip",I],["partial",A],["partialRight",N],["rearg",256]],j="[object Function]",F="[object GeneratorFunction]",U="[object Symbol]",B=/^\s+|\s+$/g,q=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,V=/\{\n\/\* \[wrapped with (.+)\] \*/,W=/,? & /,z=/^[-+]0x[0-9a-f]+$/i,H=/^0b[01]+$/i,K=/^\[object .+?Constructor\]$/,G=/^0o[0-7]+$/i,Q=/^(?:0|[1-9]\d*)$/,Y=parseInt,X="object"==typeof t&&t&&t.Object===Object&&t,J="object"==typeof self&&self&&self.Object===Object&&self,$=X||J||Function("return this")(),Z=Function.prototype,ee=Object.prototype,te=$["__core-js_shared__"],ne=function(){var e=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),re=Z.toString,ie=ee.hasOwnProperty,oe=ee.toString,ae=RegExp("^"+re.call(ie).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),se=Object.create,ue=Math.max,ce=Math.min,le=function(){var e=d(Object,"defineProperty"),t=d.name;return t&&t.length>2?e:void 0}(),fe=le?function(e,t,n){var i=t+"";return le(e,"toString",{configurable:!0,enumerable:!1,value:function(e){return function(){return e}}(function(e,t){var n=t.length,r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(q,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(L,function(n){var i="_."+n[0];t&n[1]&&!r(e,i)&&e.push(i)}),e.sort()}(function(e){var t=e.match(V);return t?t[1].split(W):[]}(i),n)))})}:function(e){return e};y.placeholder={},e.exports=y}).call(t,n(52))},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e.default:e}t.__esModule=!0;var i=n(113);t.threezerotwofour=r(i);var o=n(114);t.apathy=r(o);var a=n(115);t.ashes=r(a);var s=n(116);t.atelierDune=r(s);var u=n(117);t.atelierForest=r(u);var c=n(118);t.atelierHeath=r(c);var l=n(119);t.atelierLakeside=r(l);var f=n(120);t.atelierSeaside=r(f);var h=n(121);t.bespin=r(h);var p=n(122);t.brewer=r(p);var d=n(123);t.bright=r(d);var v=n(124);t.chalk=r(v);var m=n(125);t.codeschool=r(m);var y=n(126);t.colors=r(y);var g=n(127);t.default=r(g);var b=n(128);t.eighties=r(b);var _=n(129);t.embers=r(_);var w=n(130);t.flat=r(w);var E=n(131);t.google=r(E);var x=n(132);t.grayscale=r(x);var C=n(133);t.greenscreen=r(C);var T=n(134);t.harmonic=r(T);var k=n(135);t.hopscotch=r(k);var S=n(136);t.isotope=r(S);var A=n(137);t.marrakesh=r(A);var N=n(138);t.mocha=r(N);var O=n(139);t.monokai=r(O);var I=n(140);t.ocean=r(I);var P=n(141);t.paraiso=r(P);var R=n(142);t.pop=r(R);var D=n(143);t.railscasts=r(D);var M=n(144);t.shapeshifter=r(M);var L=n(145);t.solarized=r(L);var j=n(146);t.summerfruit=r(j);var F=n(147);t.tomorrow=r(F);var U=n(148);t.tube=r(U);var B=n(149);t.twilight=r(B)},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"threezerotwofour",author:"jan t. sott (http://github.com/idleberg)",base00:"#090300",base01:"#3a3432",base02:"#4a4543",base03:"#5c5855",base04:"#807d7c",base05:"#a5a2a2",base06:"#d6d5d4",base07:"#f7f7f7",base08:"#db2d20",base09:"#e8bbd0",base0A:"#fded02",base0B:"#01a252",base0C:"#b5e4f4",base0D:"#01a0e4",base0E:"#a16a94",base0F:"#cdab53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"apathy",author:"jannik siebert (https://github.com/janniks)",base00:"#031A16",base01:"#0B342D",base02:"#184E45",base03:"#2B685E",base04:"#5F9C92",base05:"#81B5AC",base06:"#A7CEC8",base07:"#D2E7E4",base08:"#3E9688",base09:"#3E7996",base0A:"#3E4C96",base0B:"#883E96",base0C:"#963E4C",base0D:"#96883E",base0E:"#4C963E",base0F:"#3E965B"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ashes",author:"jannik siebert (https://github.com/janniks)",base00:"#1C2023",base01:"#393F45",base02:"#565E65",base03:"#747C84",base04:"#ADB3BA",base05:"#C7CCD1",base06:"#DFE2E5",base07:"#F3F4F5",base08:"#C7AE95",base09:"#C7C795",base0A:"#AEC795",base0B:"#95C7AE",base0C:"#95AEC7",base0D:"#AE95C7",base0E:"#C795AE",base0F:"#C79595"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier dune",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/dune)",base00:"#20201d",base01:"#292824",base02:"#6e6b5e",base03:"#7d7a68",base04:"#999580",base05:"#a6a28c",base06:"#e8e4cf",base07:"#fefbec",base08:"#d73737",base09:"#b65611",base0A:"#cfb017",base0B:"#60ac39",base0C:"#1fad83",base0D:"#6684e1",base0E:"#b854d4",base0F:"#d43552"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier forest",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/forest)",base00:"#1b1918",base01:"#2c2421",base02:"#68615e",base03:"#766e6b",base04:"#9c9491",base05:"#a8a19f",base06:"#e6e2e0",base07:"#f1efee",base08:"#f22c40",base09:"#df5320",base0A:"#d5911a",base0B:"#5ab738",base0C:"#00ad9c",base0D:"#407ee7",base0E:"#6666ea",base0F:"#c33ff3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier heath",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/heath)",base00:"#1b181b",base01:"#292329",base02:"#695d69",base03:"#776977",base04:"#9e8f9e",base05:"#ab9bab",base06:"#d8cad8",base07:"#f7f3f7",base08:"#ca402b",base09:"#a65926",base0A:"#bb8a35",base0B:"#379a37",base0C:"#159393",base0D:"#516aec",base0E:"#7b59c0",base0F:"#cc33cc"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier lakeside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/lakeside/)",base00:"#161b1d",base01:"#1f292e",base02:"#516d7b",base03:"#5a7b8c",base04:"#7195a8",base05:"#7ea2b4",base06:"#c1e4f6",base07:"#ebf8ff",base08:"#d22d72",base09:"#935c25",base0A:"#8a8a0f",base0B:"#568c3b",base0C:"#2d8f6f",base0D:"#257fad",base0E:"#5d5db1",base0F:"#b72dd2"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"atelier seaside",author:"bram de haan (http://atelierbram.github.io/syntax-highlighting/atelier-schemes/seaside/)",base00:"#131513",base01:"#242924",base02:"#5e6e5e",base03:"#687d68",base04:"#809980",base05:"#8ca68c",base06:"#cfe8cf",base07:"#f0fff0",base08:"#e6193c",base09:"#87711d",base0A:"#c3c322",base0B:"#29a329",base0C:"#1999b3",base0D:"#3d62f5",base0E:"#ad2bee",base0F:"#e619c3"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bespin",author:"jan t. sott",base00:"#28211c",base01:"#36312e",base02:"#5e5d5c",base03:"#666666",base04:"#797977",base05:"#8a8986",base06:"#9d9b97",base07:"#baae9e",base08:"#cf6a4c",base09:"#cf7d34",base0A:"#f9ee98",base0B:"#54be0d",base0C:"#afc4db",base0D:"#5ea6ea",base0E:"#9b859d",base0F:"#937121"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"brewer",author:"timothée poisot (http://github.com/tpoisot)",base00:"#0c0d0e",base01:"#2e2f30",base02:"#515253",base03:"#737475",base04:"#959697",base05:"#b7b8b9",base06:"#dadbdc",base07:"#fcfdfe",base08:"#e31a1c",base09:"#e6550d",base0A:"#dca060",base0B:"#31a354",base0C:"#80b1d3",base0D:"#3182bd",base0E:"#756bb1",base0F:"#b15928"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"bright",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#303030",base02:"#505050",base03:"#b0b0b0",base04:"#d0d0d0",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ffffff",base08:"#fb0120",base09:"#fc6d24",base0A:"#fda331",base0B:"#a1c659",base0C:"#76c7b7",base0D:"#6fb3d2",base0E:"#d381c3",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"chalk",author:"chris kempson (http://chriskempson.com)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#f5f5f5",base08:"#fb9fb1",base09:"#eda987",base0A:"#ddb26f",base0B:"#acc267",base0C:"#12cfc0",base0D:"#6fc2ef",base0E:"#e1a3ee",base0F:"#deaf8f"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"codeschool",author:"brettof86",base00:"#232c31",base01:"#1c3657",base02:"#2a343a",base03:"#3f4944",base04:"#84898c",base05:"#9ea7a6",base06:"#a7cfa3",base07:"#b5d8f6",base08:"#2a5491",base09:"#43820d",base0A:"#a03b1e",base0B:"#237986",base0C:"#b02f30",base0D:"#484d79",base0E:"#c59820",base0F:"#c98344"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"colors",author:"mrmrs (http://clrs.cc)",base00:"#111111",base01:"#333333",base02:"#555555",base03:"#777777",base04:"#999999",base05:"#bbbbbb",base06:"#dddddd",base07:"#ffffff",base08:"#ff4136",base09:"#ff851b",base0A:"#ffdc00",base0B:"#2ecc40",base0C:"#7fdbff",base0D:"#0074d9",base0E:"#b10dc9",base0F:"#85144b"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"default",author:"chris kempson (http://chriskempson.com)",base00:"#181818",base01:"#282828",base02:"#383838",base03:"#585858",base04:"#b8b8b8",base05:"#d8d8d8",base06:"#e8e8e8",base07:"#f8f8f8",base08:"#ab4642",base09:"#dc9656",base0A:"#f7ca88",base0B:"#a1b56c",base0C:"#86c1b9",base0D:"#7cafc2",base0E:"#ba8baf",base0F:"#a16946"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"eighties",author:"chris kempson (http://chriskempson.com)",base00:"#2d2d2d",base01:"#393939",base02:"#515151",base03:"#747369",base04:"#a09f93",base05:"#d3d0c8",base06:"#e8e6df",base07:"#f2f0ec",base08:"#f2777a",base09:"#f99157",base0A:"#ffcc66",base0B:"#99cc99",base0C:"#66cccc",base0D:"#6699cc",base0E:"#cc99cc",base0F:"#d27b53"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"embers",author:"jannik siebert (https://github.com/janniks)",base00:"#16130F",base01:"#2C2620",base02:"#433B32",base03:"#5A5047",base04:"#8A8075",base05:"#A39A90",base06:"#BEB6AE",base07:"#DBD6D1",base08:"#826D57",base09:"#828257",base0A:"#6D8257",base0B:"#57826D",base0C:"#576D82",base0D:"#6D5782",base0E:"#82576D",base0F:"#825757"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"flat",author:"chris kempson (http://chriskempson.com)",base00:"#2C3E50",base01:"#34495E",base02:"#7F8C8D",base03:"#95A5A6",base04:"#BDC3C7",base05:"#e0e0e0",base06:"#f5f5f5",base07:"#ECF0F1",base08:"#E74C3C",base09:"#E67E22",base0A:"#F1C40F",base0B:"#2ECC71",base0C:"#1ABC9C",base0D:"#3498DB",base0E:"#9B59B6",base0F:"#be643c"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"google",author:"seth wright (http://sethawright.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#CC342B",base09:"#F96A38",base0A:"#FBA922",base0B:"#198844",base0C:"#3971ED",base0D:"#3971ED",base0E:"#A36AC7",base0F:"#3971ED"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"grayscale",author:"alexandre gavioli (https://github.com/alexx2/)",base00:"#101010",base01:"#252525",base02:"#464646",base03:"#525252",base04:"#ababab",base05:"#b9b9b9",base06:"#e3e3e3",base07:"#f7f7f7",base08:"#7c7c7c",base09:"#999999",base0A:"#a0a0a0",base0B:"#8e8e8e",base0C:"#868686",base0D:"#686868",base0E:"#747474",base0F:"#5e5e5e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"green screen",author:"chris kempson (http://chriskempson.com)",base00:"#001100",base01:"#003300",base02:"#005500",base03:"#007700",base04:"#009900",base05:"#00bb00",base06:"#00dd00",base07:"#00ff00",base08:"#007700",base09:"#009900",base0A:"#007700",base0B:"#00bb00",base0C:"#005500",base0D:"#009900",base0E:"#00bb00",base0F:"#005500"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"harmonic16",author:"jannik siebert (https://github.com/janniks)",base00:"#0b1c2c",base01:"#223b54",base02:"#405c79",base03:"#627e99",base04:"#aabcce",base05:"#cbd6e2",base06:"#e5ebf1",base07:"#f7f9fb",base08:"#bf8b56",base09:"#bfbf56",base0A:"#8bbf56",base0B:"#56bf8b",base0C:"#568bbf",base0D:"#8b56bf",base0E:"#bf568b",base0F:"#bf5656"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"hopscotch",author:"jan t. sott",base00:"#322931",base01:"#433b42",base02:"#5c545b",base03:"#797379",base04:"#989498",base05:"#b9b5b8",base06:"#d5d3d5",base07:"#ffffff",base08:"#dd464c",base09:"#fd8b19",base0A:"#fdcc59",base0B:"#8fc13e",base0C:"#149b93",base0D:"#1290bf",base0E:"#c85e7c",base0F:"#b33508"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"isotope",author:"jan t. sott",base00:"#000000",base01:"#404040",base02:"#606060",base03:"#808080",base04:"#c0c0c0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#ff0000",base09:"#ff9900",base0A:"#ff0099",base0B:"#33ff00",base0C:"#00ffff",base0D:"#0066ff",base0E:"#cc00ff",base0F:"#3300ff"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"marrakesh",author:"alexandre gavioli (http://github.com/alexx2/)",base00:"#201602",base01:"#302e00",base02:"#5f5b17",base03:"#6c6823",base04:"#86813b",base05:"#948e48",base06:"#ccc37a",base07:"#faf0a5",base08:"#c35359",base09:"#b36144",base0A:"#a88339",base0B:"#18974e",base0C:"#75a738",base0D:"#477ca1",base0E:"#8868b3",base0F:"#b3588e"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"mocha",author:"chris kempson (http://chriskempson.com)",base00:"#3B3228",base01:"#534636",base02:"#645240",base03:"#7e705a",base04:"#b8afad",base05:"#d0c8c6",base06:"#e9e1dd",base07:"#f5eeeb",base08:"#cb6077",base09:"#d28b71",base0A:"#f4bc87",base0B:"#beb55b",base0C:"#7bbda4",base0D:"#8ab3b5",base0E:"#a89bb9",base0F:"#bb9584"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"monokai",author:"wimer hazenberg (http://www.monokai.nl)",base00:"#272822",base01:"#383830",base02:"#49483e",base03:"#75715e",base04:"#a59f85",base05:"#f8f8f2",base06:"#f5f4f1",base07:"#f9f8f5",base08:"#f92672",base09:"#fd971f",base0A:"#f4bf75",base0B:"#a6e22e",base0C:"#a1efe4",base0D:"#66d9ef",base0E:"#ae81ff",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"ocean",author:"chris kempson (http://chriskempson.com)",base00:"#2b303b",base01:"#343d46",base02:"#4f5b66",base03:"#65737e",base04:"#a7adba",base05:"#c0c5ce",base06:"#dfe1e8",base07:"#eff1f5",base08:"#bf616a",base09:"#d08770",base0A:"#ebcb8b",base0B:"#a3be8c",base0C:"#96b5b4",base0D:"#8fa1b3",base0E:"#b48ead",base0F:"#ab7967"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"paraiso",author:"jan t. sott",base00:"#2f1e2e",base01:"#41323f",base02:"#4f424c",base03:"#776e71",base04:"#8d8687",base05:"#a39e9b",base06:"#b9b6b0",base07:"#e7e9db",base08:"#ef6155",base09:"#f99b15",base0A:"#fec418",base0B:"#48b685",base0C:"#5bc4bf",base0D:"#06b6ef",base0E:"#815ba4",base0F:"#e96ba8"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"pop",author:"chris kempson (http://chriskempson.com)",base00:"#000000",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#b0b0b0",base05:"#d0d0d0",base06:"#e0e0e0",base07:"#ffffff",base08:"#eb008a",base09:"#f29333",base0A:"#f8ca12",base0B:"#37b349",base0C:"#00aabb",base0D:"#0e5a94",base0E:"#b31e8d",base0F:"#7a2d00"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"railscasts",author:"ryan bates (http://railscasts.com)",base00:"#2b2b2b",base01:"#272935",base02:"#3a4055",base03:"#5a647e",base04:"#d4cfc9",base05:"#e6e1dc",base06:"#f4f1ed",base07:"#f9f7f3",base08:"#da4939",base09:"#cc7833",base0A:"#ffc66d",base0B:"#a5c261",base0C:"#519f50",base0D:"#6d9cbe",base0E:"#b6b3eb",base0F:"#bc9458"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"shapeshifter",author:"tyler benziger (http://tybenz.com)",base00:"#000000",base01:"#040404",base02:"#102015",base03:"#343434",base04:"#555555",base05:"#ababab",base06:"#e0e0e0",base07:"#f9f9f9",base08:"#e92f2f",base09:"#e09448",base0A:"#dddd13",base0B:"#0ed839",base0C:"#23edda",base0D:"#3b48e3",base0E:"#f996e2",base0F:"#69542d"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"solarized",author:"ethan schoonover (http://ethanschoonover.com/solarized)",base00:"#002b36",base01:"#073642",base02:"#586e75",base03:"#657b83",base04:"#839496",base05:"#93a1a1",base06:"#eee8d5",base07:"#fdf6e3",base08:"#dc322f",base09:"#cb4b16",base0A:"#b58900",base0B:"#859900",base0C:"#2aa198",base0D:"#268bd2",base0E:"#6c71c4",base0F:"#d33682"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"summerfruit",author:"christopher corley (http://cscorley.github.io/)",base00:"#151515",base01:"#202020",base02:"#303030",base03:"#505050",base04:"#B0B0B0",base05:"#D0D0D0",base06:"#E0E0E0",base07:"#FFFFFF",base08:"#FF0086",base09:"#FD8900",base0A:"#ABA800",base0B:"#00C918",base0C:"#1faaaa",base0D:"#3777E6",base0E:"#AD00A1",base0F:"#cc6633"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"tomorrow",author:"chris kempson (http://chriskempson.com)",base00:"#1d1f21",base01:"#282a2e",base02:"#373b41",base03:"#969896",base04:"#b4b7b4",base05:"#c5c8c6",base06:"#e0e0e0",base07:"#ffffff",base08:"#cc6666",base09:"#de935f",base0A:"#f0c674",base0B:"#b5bd68",base0C:"#8abeb7",base0D:"#81a2be",base0E:"#b294bb",base0F:"#a3685a"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"london tube",author:"jan t. sott",base00:"#231f20",base01:"#1c3f95",base02:"#5a5758",base03:"#737171",base04:"#959ca1",base05:"#d9d8d8",base06:"#e7e7e8",base07:"#ffffff",base08:"#ee2e24",base09:"#f386a1",base0A:"#ffd204",base0B:"#00853e",base0C:"#85cebc",base0D:"#009ddc",base0E:"#98005d",base0F:"#b06110"},e.exports=t.default},function(e,t,n){"use strict";t.__esModule=!0,t.default={scheme:"twilight",author:"david hart (http://hart-dev.com)",base00:"#1e1e1e",base01:"#323537",base02:"#464b50",base03:"#5f5a60",base04:"#838184",base05:"#a7a7a7",base06:"#c3c3c3",base07:"#ffffff",base08:"#cf6a4c",base09:"#cda869",base0A:"#f9ee98",base0B:"#8f9d6a",base0C:"#afc4db",base0D:"#7587a6",base0E:"#9b859d",base0F:"#9b703f"},e.exports=t.default},function(e,t,n){function r(e){var t=Math.round(i(e,0,255)),n=t.toString(16);return 1==n.length?"0"+n:n}var i=n(40);e.exports=function(e){var t=4===e.length?r(255*e[3]):"";return"#"+r(e[0])+r(e[1])+r(e[2])+t}},function(e,t,n){function r(e){for(var t in u)if(0===e.indexOf(t))return u[t](e)}var i=n(152),o=n(153),a=n(154),s=n(155),u={"#":o,hsl:function(e){var t=i(e),n=s(t);return 4===t.length&&n.push(t[3]),n},rgb:a};r.rgb=a,r.hsl=i,r.hex=o,e.exports=r},function(e,t,n){function r(e,t){switch(e=parseFloat(e),t){case 0:return o(e,0,360);case 1:case 2:return o(e,0,100);case 3:return o(e,0,1)}}var i=n(53),o=n(40);e.exports=function(e){return i(e).map(r)}},function(e,t){e.exports=function(e){4!==e.length&&5!==e.length||(e=function(e){for(var t="#",n=1;n<e.length;n++){var r=e.charAt(n);t+=r+r}return t}(e));var t=[parseInt(e.substring(1,3),16),parseInt(e.substring(3,5),16),parseInt(e.substring(5,7),16)];if(9===e.length){var n=parseFloat((parseInt(e.substring(7,9),16)/255).toFixed(2));t.push(n)}return t}},function(e,t,n){function r(e,t){return t<3?-1!=e.indexOf("%")?Math.round(255*o(parseInt(e,10),0,100)/100):o(parseInt(e,10),0,255):o(parseFloat(e),0,1)}var i=n(53),o=n(40);e.exports=function(e){return i(e).map(r)}},function(e,t){e.exports=function(e){var t,n,r,i,o,a=e[0]/360,s=e[1]/100,u=e[2]/100;if(0==s)return[o=255*u,o,o];t=2*u-(n=u<.5?u*(1+s):u+s-u*s),i=[0,0,0];for(var c=0;c<3;c++)(r=a+1/3*-(c-1))<0&&r++,r>1&&r--,o=6*r<1?t+6*(n-t)*r:2*r<1?n:3*r<2?t+(n-t)*(2/3-r)*6:t,i[c]=255*o;return i}},function(e,t,n){(function(t){function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function r(e){return g(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&function(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!function(e){var t=function(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}(e)?p.call(e):"";return t==a||t==s}(e)}(e)}(e)&&h.call(e,"callee")&&(!v.call(e,"callee")||p.call(e)==o)}(e)||!!(m&&e&&e[m])}var i=9007199254740991,o="[object Arguments]",a="[object Function]",s="[object GeneratorFunction]",u="object"==typeof t&&t&&t.Object===Object&&t,c="object"==typeof self&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Object.prototype,h=f.hasOwnProperty,p=f.toString,d=l.Symbol,v=f.propertyIsEnumerable,m=d?d.isConcatSpreadable:void 0,y=Math.max,g=Array.isArray,b=function(e,t){return t=y(void 0===t?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=y(n.length-t,0),o=Array(i);++r<i;)o[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=o,function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}(e,this,a)}}(function(e){for(var t=(e=function e(t,i,o,a,s){var u=-1,c=t.length;for(o||(o=r),s||(s=[]);++u<c;){var l=t[u];i>0&&o(l)?i>1?e(l,i-1,o,a,s):n(s,l):a||(s[s.length]=l)}return s}(e,1)).length,i=t;i--;)if("function"!=typeof e[i])throw new TypeError("Expected a function");return function(){for(var n=0,r=t?e[n].apply(this,arguments):arguments[0];++n<t;)r=e[n].call(this,r);return r}});e.exports=b}).call(t,n(52))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.yuv2rgb=function(e){var t,n,r,i=e[0],o=e[1],a=e[2];return t=1*i+0*o+1.13983*a,n=1*i+-.39465*o+-.5806*a,r=1*i+2.02311*o+0*a,t=Math.min(Math.max(0,t),1),n=Math.min(Math.max(0,n),1),r=Math.min(Math.max(0,r),1),[255*t,255*n,255*r]},t.rgb2yuv=function(e){var t=e[0]/255,n=e[1]/255,r=e[2]/255;return[.299*t+.587*n+.114*r,-.14713*t+-.28886*n+.436*r,.615*t+-.51499*n+-.10001*r]}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(1),f=r(l),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props;return s.default.createElement("div",(0,f.default)(e.theme,"date"),s.default.createElement(c.default,i({type_name:"date"},e)),s.default.createElement("span",i({className:"date-value"},(0,f.default)(e.theme,"date-value")),e.value.toLocaleTimeString("en-us",{weekday:"short",year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"})))}}]),t}(s.default.PureComponent);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(1),f=r(l),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props;return s.default.createElement("div",(0,f.default)(e.theme,"float"),s.default.createElement(c.default,i({type_name:"float"},e)),this.props.value)}}]),t}(s.default.PureComponent);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(1),f=r(l),h=n(13),p=r(h),d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return v.call(n),n.state={collapsed:p.default.get(e.rjvId,e.namespace,"collapsed",!0)},n}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=this.state.collapsed;return s.default.createElement("div",(0,f.default)(e.theme,"function"),s.default.createElement(c.default,i({type_name:"function"},e)),s.default.createElement("span",i({},(0,f.default)(e.theme,"function-value"),{className:"rjv-function-container",onClick:this.toggleCollapsed}),this.getFunctionDisplay(t)))}}]),t}(s.default.PureComponent),v=function(){var e=this;this.toggleCollapsed=function(){e.setState({collapsed:!e.state.collapsed},function(){p.default.set(e.props.rjvId,e.props.namespace,"collapsed",e.state.collapsed)})},this.getFunctionDisplay=function(t){var n=e.props;return t?s.default.createElement("span",null,e.props.value.toString().slice(9,-1).replace(/\{[\s\S]+/,""),s.default.createElement("span",{className:"function-collapsed",style:{fontWeight:"bold"}},s.default.createElement("span",null,"{"),s.default.createElement("span",(0,f.default)(n.theme,"ellipsis"),"..."),s.default.createElement("span",null,"}"))):e.props.value.toString().slice(9,-1)}};t.default=d},function(e,t){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(e){return"function"==typeof e}function i(e){return"object"==typeof e&&null!==e}function o(e){return void 0===e}e.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(e){if(!function(e){return"number"==typeof e}(e)||e<0||isNaN(e))throw TypeError("n must be a positive number");return this._maxListeners=e,this},n.prototype.emit=function(e){var t,n,a,s,u,c;if(this._events||(this._events={}),"error"===e&&(!this._events.error||i(this._events.error)&&!this._events.error.length)){if((t=arguments[1])instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}if(o(n=this._events[e]))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:s=Array.prototype.slice.call(arguments,1),n.apply(this,s)}else if(i(n))for(s=Array.prototype.slice.call(arguments,1),c=n.slice(),a=c.length,u=0;u<a;u++)c[u].apply(this,s);return!0},n.prototype.addListener=function(e,t){var a;if(!r(t))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",e,r(t.listener)?t.listener:t),this._events[e]?i(this._events[e])?this._events[e].push(t):this._events[e]=[this._events[e],t]:this._events[e]=t,i(this._events[e])&&!this._events[e].warned&&(a=o(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&a>0&&this._events[e].length>a&&(this._events[e].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[e].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(e,t){function n(){this.removeListener(e,n),i||(i=!0,t.apply(this,arguments))}if(!r(t))throw TypeError("listener must be a function");var i=!1;return n.listener=t,this.on(e,n),this},n.prototype.removeListener=function(e,t){var n,o,a,s;if(!r(t))throw TypeError("listener must be a function");if(!this._events||!this._events[e])return this;if(n=this._events[e],a=n.length,o=-1,n===t||r(n.listener)&&n.listener===t)delete this._events[e],this._events.removeListener&&this.emit("removeListener",e,t);else if(i(n)){for(s=a;s-- >0;)if(n[s]===t||n[s].listener&&n[s].listener===t){o=s;break}if(o<0)return this;1===n.length?(n.length=0,delete this._events[e]):n.splice(o,1),this._events.removeListener&&this.emit("removeListener",e,t)}return this},n.prototype.removeAllListeners=function(e){var t,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[e]&&delete this._events[e],this;if(0===arguments.length){for(t in this._events)"removeListener"!==t&&this.removeAllListeners(t);return this.removeAllListeners("removeListener"),this._events={},this}if(r(n=this._events[e]))this.removeListener(e,n);else if(n)for(;n.length;)this.removeListener(e,n[n.length-1]);return delete this._events[e],this},n.prototype.listeners=function(e){return this._events&&this._events[e]?r(this._events[e])?[this._events[e]]:this._events[e].slice():[]},n.prototype.listenerCount=function(e){if(this._events){var t=this._events[e];if(r(t))return 1;if(t)return t.length}return 0},n.listenerCount=function(e,t){return e.listenerCount(t)}},function(e,t,n){e.exports.Dispatcher=n(163)},function(e,t,n){"use strict";t.__esModule=!0;var r=n(164),i=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this._callbacks={},this._isDispatching=!1,this._isHandled={},this._isPending={},this._lastID=1}return e.prototype.register=function(e){var t="ID_"+this._lastID++;return this._callbacks[t]=e,t},e.prototype.unregister=function(e){this._callbacks[e]||r(!1),delete this._callbacks[e]},e.prototype.waitFor=function(e){this._isDispatching||r(!1);for(var t=0;t<e.length;t++){var n=e[t];this._isPending[n]?this._isHandled[n]||r(!1):(this._callbacks[n]||r(!1),this._invokeCallback(n))}},e.prototype.dispatch=function(e){this._isDispatching&&r(!1),this._startDispatching(e);try{for(var t in this._callbacks)this._isPending[t]||this._invokeCallback(t)}finally{this._stopDispatching()}},e.prototype.isDispatching=function(){return this._isDispatching},e.prototype._invokeCallback=function(e){this._isPending[e]=!0,this._callbacks[e](this._pendingPayload),this._isHandled[e]=!0},e.prototype._startDispatching=function(e){for(var t in this._callbacks)this._isPending[t]=!1,this._isHandled[t]=!1;this._pendingPayload=e,this._isDispatching=!0},e.prototype._stopDispatching=function(){delete this._pendingPayload,this._isDispatching=!1},e}();e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,u){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),o=n(0),a=r(o),s=n(1),u=r(s),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",(0,u.default)(this.props.theme,"nan"),"NaN")}}]),t}(a.default.PureComponent);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),o=n(0),a=r(o),s=n(1),u=r(s),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",(0,u.default)(this.props.theme,"null"),"NULL")}}]),t}(a.default.PureComponent);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(1),f=r(l),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props;return s.default.createElement("div",(0,f.default)(e.theme,"integer"),s.default.createElement(c.default,i({type_name:"int"},e)),this.props.value)}}]),t}(s.default.PureComponent);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(1),f=r(l),h=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props;return s.default.createElement("div",(0,f.default)(e.theme,"regexp"),s.default.createElement(c.default,i({type_name:"regexp"},e)),this.props.value.toString())}}]),t}(s.default.PureComponent);t.default=h},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(6),c=r(u),l=n(4),f=n(1),h=r(f),p=n(13),d=r(p),v=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.toggleCollapsed=function(){n.setState({collapsed:!n.state.collapsed},function(){d.default.set(n.props.rjvId,n.props.namespace,"collapsed",n.state.collapsed)})},n.state={collapsed:d.default.get(e.rjvId,e.namespace,"collapsed",!0)},n}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=(this.state.collapsed,this.props),t=e.collapseStringsAfterLength,n=e.theme,r=e.value,o="integer"===(0,l.toType)(t),a={style:{cursor:"default"}};return o&&r.length>t&&(a.style.cursor="pointer",this.state.collapsed&&(r=s.default.createElement("span",null,r.substring(0,t),s.default.createElement("span",(0,h.default)(n,"ellipsis")," ...")))),s.default.createElement("div",(0,h.default)(n,"string"),s.default.createElement(c.default,i({type_name:"string"},e)),s.default.createElement("span",i({className:"string-value"},a,{onClick:this.toggleCollapsed}),'"',r,'"'))}}]),t}(s.default.PureComponent);t.default=v},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=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}}(),o=n(0),a=r(o),s=n(1),u=r(s),c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),i(t,[{key:"render",value:function(){return a.default.createElement("div",(0,u.default)(this.props.theme,"undefined"),"undefined")}}]),t}(a.default.PureComponent);t.default=c},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(172),c=r(u),l=(n(4),n(14)),f=r(l),h=n(176),p=r(h),d=n(54),v=r(d),m=n(55),y=r(m),g=n(42),b=n(15),_=n(1),w=r(_),E=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return x.call(n),n.state={editMode:!1,editValue:"",renameKey:!1,parsedInput:{type:!1,value:null}},n}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.variable,r=(t.src,t.singleIndent),o=t.type,a=t.theme,u=t.namespace,c=t.indentWidth,l=t.enableClipboard,f=t.onEdit,h=t.onDelete,p=t.onSelect,d=(t.rjvId,this.state.editMode);return s.default.createElement("div",i({},(0,w.default)(a,"objectKeyVal",{paddingLeft:c*r}),{className:"variable-row",key:n.name}),"array"==o?s.default.createElement("span",i({},(0,w.default)(a,"array-key"),{key:n.name+"_"+u}),n.name,s.default.createElement("div",(0,w.default)(a,"colon"),":")):s.default.createElement("span",null,s.default.createElement("span",i({},(0,w.default)(a,"object-name"),{className:"object-key",key:n.name+"_"+u}),s.default.createElement("span",{style:{verticalAlign:"top"}},'"'),s.default.createElement("span",{style:{display:"inline-block"}},n.name),s.default.createElement("span",{style:{verticalAlign:"top"}},'"')),s.default.createElement("span",(0,w.default)(a,"colon"),":")),s.default.createElement("div",i({className:"variable-value",onClick:!1===p&&!1===f?null:function(t){var r=[].concat(function(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)}(u));(t.ctrlKey||t.metaKey)&&!1!==f?e.prepopInput(n):!1!==p&&(r.shift(),p(i({},n,{namespace:r})))}},(0,w.default)(a,"variableValue",{cursor:!1===p?"default":"pointer"})),this.getValue(n,d)),l?s.default.createElement(y.default,i({hidden:d,src:n.value,clickCallback:l},{theme:a,namespace:u})):null,!1!==f&&0==d?this.getEditIcon():null,!1!==h&&0==d?this.getRemoveIcon():null)}}]),t}(s.default.PureComponent),x=function(){var e=this;this.getEditIcon=function(){var t=e.props,n=t.variable,r=t.theme;return s.default.createElement("div",{className:"click-to-edit",style:{verticalAlign:"top"}},s.default.createElement(b.Edit,i({className:"click-to-edit-icon"},(0,w.default)(r,"editVarIcon"),{onClick:function(){e.prepopInput(n)}})))},this.prepopInput=function(t){if(!1!==e.props.onEdit){var n=(0,v.default)(t.value),r=(0,p.default)(n);e.setState({editMode:!0,editValue:n,parsedInput:{type:r.type,value:r.value}})}},this.getRemoveIcon=function(){var t=e.props,n=t.variable,r=t.namespace,o=t.theme,a=t.rjvId;return s.default.createElement("div",{className:"click-to-remove",style:{verticalAlign:"top"}},s.default.createElement(b.RemoveCircle,i({className:"click-to-remove-icon"},(0,w.default)(o,"removeVarIcon"),{onClick:function(){f.default.dispatch({name:"VARIABLE_REMOVED",rjvId:a,data:{name:n.name,namespace:r,existing_value:n.value,variable_removed:!0}})}})))},this.getValue=function(t,n){var r=!n&&t.type,o=e.props;switch(r){case!1:return e.getEditInput();case"string":return s.default.createElement(g.JsonString,i({value:t.value},o));case"integer":return s.default.createElement(g.JsonInteger,i({value:t.value},o));case"float":return s.default.createElement(g.JsonFloat,i({value:t.value},o));case"boolean":return s.default.createElement(g.JsonBoolean,i({value:t.value},o));case"function":return s.default.createElement(g.JsonFunction,i({value:t.value},o));case"null":return s.default.createElement(g.JsonNull,o);case"nan":return s.default.createElement(g.JsonNan,o);case"undefined":return s.default.createElement(g.JsonUndefined,o);case"date":return s.default.createElement(g.JsonDate,i({value:t.value},o));case"regexp":return s.default.createElement(g.JsonRegexp,i({value:t.value},o));default:return s.default.createElement("div",{className:"object-value"},JSON.stringify(t.value))}},this.getEditInput=function(){var t=e.props.theme,n=e.state.editValue;return s.default.createElement("div",null,s.default.createElement(c.default,i({type:"text",inputRef:function(e){return e&&e.focus()},value:n,className:"variable-editor",onChange:function(t){var n=t.target.value,r=(0,p.default)(n);e.setState({editValue:n,parsedInput:{type:r.type,value:r.value}})},onKeyDown:function(t){switch(t.key){case"Escape":e.setState({editMode:!1,editValue:""});break;case"Enter":(t.ctrlKey||t.metaKey)&&e.submitEdit(!0)}t.stopPropagation()},placeholder:"update this value"},(0,w.default)(t,"edit-input"))),s.default.createElement("div",(0,w.default)(t,"edit-icon-container"),s.default.createElement(b.RemoveCircle,i({className:"edit-cancel"},(0,w.default)(t,"cancel-icon"),{onClick:function(){e.setState({editMode:!1,editValue:""})}})),s.default.createElement(b.CheckCircle,i({className:"edit-check string-value"},(0,w.default)(t,"check-icon"),{onClick:function(){e.submitEdit()}})),s.default.createElement("div",null,e.showDetected())))},this.submitEdit=function(t){var n=e.props,r=n.variable,i=n.namespace,o=n.rjvId,a=e.state,s=a.editValue,u=a.parsedInput,c=s;t&&u.type&&(c=u.value),e.setState({editMode:!1}),f.default.dispatch({name:"VARIABLE_UPDATED",rjvId:o,data:{name:r.name,namespace:i,existing_value:r.value,new_value:c,variable_removed:!1}})},this.showDetected=function(){var t=e.props,n=t.theme,r=(t.variable,t.namespace,t.rjvId,e.state.parsedInput),o=(r.type,r.value,e.getDetectedInput());if(o)return s.default.createElement("div",null,s.default.createElement("div",(0,w.default)(n,"detected-row"),o,s.default.createElement(b.CheckCircle,{className:"edit-check detected",style:i({verticalAlign:"top",paddingLeft:"3px"},(0,w.default)(n,"check-icon").style),onClick:function(){e.submitEdit(!0)}})))},this.getDetectedInput=function(){var t=e.state.parsedInput,n=t.type,r=t.value,o=e.props,a=o.theme;if(!1!==n)switch(n.toLowerCase()){case"object":return s.default.createElement("span",null,s.default.createElement("span",{style:i({},(0,w.default)(a,"brace").style,{cursor:"default"})},"{"),s.default.createElement("span",{style:i({},(0,w.default)(a,"ellipsis").style,{cursor:"default"})},"..."),s.default.createElement("span",{style:i({},(0,w.default)(a,"brace").style,{cursor:"default"})},"}"));case"array":return s.default.createElement("span",null,s.default.createElement("span",{style:i({},(0,w.default)(a,"brace").style,{cursor:"default"})},"["),s.default.createElement("span",{style:i({},(0,w.default)(a,"ellipsis").style,{cursor:"default"})},"..."),s.default.createElement("span",{style:i({},(0,w.default)(a,"brace").style,{cursor:"default"})},"]"));case"string":return s.default.createElement(g.JsonString,i({value:r},o));case"integer":return s.default.createElement(g.JsonInteger,i({value:r},o));case"float":return s.default.createElement(g.JsonFloat,i({value:r},o));case"boolean":return s.default.createElement(g.JsonBoolean,i({value:r},o));case"function":return s.default.createElement(g.JsonFunction,i({value:r},o));case"null":return s.default.createElement(g.JsonNull,o);case"nan":return s.default.createElement(g.JsonNan,o);case"undefined":return s.default.createElement(g.JsonUndefined,o);case"date":return s.default.createElement(g.JsonDate,i({value:new Date(r)},o))}}};t.default=E},function(e,t,n){"use strict";function r(){return(r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function i(e,t,n,r,i){void 0===n&&(n=!1),void 0===r&&(r=null),void 0===i&&(i=null),null===v.parentNode&&document.body.appendChild(v);var a=o(e,t,n);if(null===a)return null;var s=a.paddingSize,u=a.borderSize,c=a.boxSizing,l=a.sizingStyle;Object.keys(l).forEach(function(e){v.style[e]=l[e]}),m(v),v.value=e.value||e.placeholder||"x";var f=-1/0,h=1/0,p=v.scrollHeight;"border-box"===c?p+=u:"content-box"===c&&(p-=s),v.value="x";var d=v.scrollHeight-s;return null===r&&null===i||(null!==r&&(f=d*r,"border-box"===c&&(f=f+s+u),p=Math.max(f,p)),null!==i&&(h=d*i,"border-box"===c&&(h=h+s+u),p=Math.min(h,p))),{height:p,minHeight:f,maxHeight:h,rowCount:Math.floor(p/d)}}function o(e,t,n){if(void 0===n&&(n=!1),n&&d[t])return d[t];var r=window.getComputedStyle(e);if(null===r)return null;var i=p.reduce(function(e,t){return e[t]=r.getPropertyValue(t),e},{}),o=i["box-sizing"];if(""===o)return null;f&&"border-box"===o&&(i.width=parseFloat(i.width)+parseFloat(r["border-right-width"])+parseFloat(r["border-left-width"])+parseFloat(r["padding-right"])+parseFloat(r["padding-left"])+"px");var a=parseFloat(i["padding-bottom"])+parseFloat(i["padding-top"]),s=parseFloat(i["border-bottom-width"])+parseFloat(i["border-top-width"]),u={sizingStyle:i,paddingSize:a,borderSize:s,boxSizing:o};return n&&(d[t]=u),u}Object.defineProperty(t,"__esModule",{value:!0});var a=n(0),s=n.n(a),u=n(173),c=n.n(u),l=(Object.setPrototypeOf,"object"==typeof Reflect&&Reflect.construct,"undefined"!=typeof window&&"undefined"!=typeof document),f=!!l&&!!document.documentElement.currentStyle,h={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},p=["letter-spacing","line-height","font-family","font-weight","font-size","font-style","tab-size","text-rendering","text-transform","width","text-indent","padding-top","padding-right","padding-bottom","padding-left","border-top-width","border-right-width","border-bottom-width","border-left-width","box-sizing"],d={},v=l&&document.createElement("textarea"),m=function(e){Object.keys(h).forEach(function(t){e.style.setProperty(t,h[t],"important")})};l&&m(v);var y=function(e){return void 0===e&&(e=0),function(){return++e}}(),g=function(){},b=l&&window.requestAnimationFrame?[window.requestAnimationFrame,window.cancelAnimationFrame]:[setTimeout,clearTimeout],_=b[0],w=b[1],E=function(e){function t(t){var n;return(n=e.call(this,t)||this)._resizeLock=!1,n._onRootDOMNode=function(e){n._rootDOMNode=e,n.props.inputRef(e)},n._onChange=function(e){n._controlled||n._resizeComponent(),n.props.onChange(e)},n._resizeComponent=function(e){if(void 0===e&&(e=g),void 0!==n._rootDOMNode){var t=i(n._rootDOMNode,n._uid,n.props.useCacheForDOMMeasurements,n.props.minRows,n.props.maxRows);if(null!==t){var r=t.height,o=t.minHeight,a=t.maxHeight,s=t.rowCount;n.rowCount=s,n.state.height===r&&n.state.minHeight===o&&n.state.maxHeight===a?e():n.setState({height:r,minHeight:o,maxHeight:a},e)}else e()}else e()},n.state={height:t.style&&t.style.height||0,minHeight:-1/0,maxHeight:1/0},n._uid=y(),n._controlled="string"==typeof t.value,n}!function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e);var n=t.prototype;return n.render=function(){var e=this.props,t=(e.inputRef,e.maxRows,e.minRows,e.onHeightChange,e.useCacheForDOMMeasurements,function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}(e,["inputRef","maxRows","minRows","onHeightChange","useCacheForDOMMeasurements"]));return t.style=r({},t.style,{height:this.state.height}),Math.max(t.style.maxHeight||1/0,this.state.maxHeight)<this.state.height&&(t.style.overflow="hidden"),s.a.createElement("textarea",r({},t,{onChange:this._onChange,ref:this._onRootDOMNode}))},n.componentDidMount=function(){var e=this;this._resizeComponent(),this._resizeListener=function(){e._resizeLock||(e._resizeLock=!0,e._resizeComponent(function(){return e._resizeLock=!1}))},window.addEventListener("resize",this._resizeListener)},n.componentDidUpdate=function(e,t){var n=this;e!==this.props&&(this._clearNextFrame(),this._onNextFrameActionId=_(function(){return n._resizeComponent()})),this.state.height!==t.height&&this.props.onHeightChange(this.state.height,this)},n.componentWillUnmount=function(){var e;this._clearNextFrame(),window.removeEventListener("resize",this._resizeListener),e=this._uid,delete d[e]},n._clearNextFrame=function(){w(this._onNextFrameActionId)},t}(s.a.Component);E.propTypes={inputRef:c.a.func,maxRows:c.a.number,minRows:c.a.number,onChange:c.a.func,onHeightChange:c.a.func,useCacheForDOMMeasurements:c.a.bool,value:c.a.string},E.defaultProps={inputRef:g,onChange:g,onHeightChange:g,useCacheForDOMMeasurements:!1},t.default=E},function(e,t,n){e.exports=n(174)()},function(e,t,n){"use strict";function r(){}var i=n(175);e.exports=function(){function e(e,t,n,r,o,a){if(a!==i){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";function r(e,t){return{type:e,value:t}}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){e=e.trim();try{if("["===(e=JSON.stringify(JSON.parse(e)))[0])return r("array",JSON.parse(e));if("{"===e[0])return r("object",JSON.parse(e));if(e.match(/\-?\d+\.\d+/)&&e.match(/\-?\d+\.\d+/)[0]===e)return r("float",parseFloat(e));if(e.match(/\-?\d+/)&&e.match(/\-?\d+/)[0]===e)return r("integer",parseInt(e))}catch(e){}switch(e=e.toLowerCase()){case"undefined":return r("undefined",void 0);case"nan":return r("nan",NaN);case"null":return r("null",null);case"true":return r("boolean",!0);case"false":return r("boolean",!1);default:if(e=Date.parse(e))return r("date",new Date(e))}return r(!1,null)}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),u=r(s),c=n(14),l=r(c),f=n(13),h=r(f),p=n(178),d=r(p),v=n(1),m=(r(v),function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var a=arguments.length,s=Array(a),u=0;u<a;u++)s[u]=arguments[u];return n=r=i(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),r.isValid=function(e){var t=r.props.rjvId,n=h.default.get(t,"action","new-key-request");return""!=e&&-1===Object.keys(n.existing_value).indexOf(e)},r.submit=function(e){var t=r.props.rjvId,n=h.default.get(t,"action","new-key-request");n.new_value=o({},n.existing_value),n.new_value[e]=null,l.default.dispatch({name:"VARIABLE_ADDED",rjvId:t,data:n})},i(r,n)}return function(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)}(t,e),a(t,[{key:"render",value:function(){var e=this.props,t=e.active,n=e.theme,r=e.rjvId;return t?u.default.createElement(d.default,{rjvId:r,theme:n,isValid:this.isValid,submit:this.submit}):null}}]),t}(u.default.PureComponent));t.default=m},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(14),c=r(u),l=n(15),f=n(1),h=r(f),p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.closeModal=function(){c.default.dispatch({rjvId:n.props.rjvId,name:"RESET"})},n.submit=function(){n.props.submit(n.state.input)},n.state={input:e.input?e.input:""},n}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.theme,r=t.rjvId,o=t.isValid,a=this.state.input,u=o(a);return s.default.createElement("div",i({className:"key-modal-request"},(0,h.default)(n,"key-modal-request"),{onClick:this.closeModal}),s.default.createElement("div",i({},(0,h.default)(n,"key-modal"),{onClick:function(e){e.stopPropagation()}}),s.default.createElement("div",(0,h.default)(n,"key-modal-label"),"Key Name:"),s.default.createElement("div",{style:{position:"relative"}},s.default.createElement("input",i({},(0,h.default)(n,"key-modal-input"),{className:"key-modal-input",ref:function(e){return e&&e.focus()},spellCheck:!1,value:a,placeholder:"...",onChange:function(t){e.setState({input:t.target.value})},onKeyPress:function(t){u&&"Enter"===t.key?e.submit():"Escape"===t.key&&e.closeModal()}})),u?s.default.createElement(l.CheckCircle,i({},(0,h.default)(n,"key-modal-submit"),{className:"key-modal-submit",onClick:function(t){return e.submit()}})):null),s.default.createElement("span",(0,h.default)(n,"key-modal-cancel"),s.default.createElement(l.Add,i({},(0,h.default)(n,"key-modal-cancel-icon"),{className:"key-modal-cancel",onClick:function(){c.default.dispatch({rjvId:r,name:"RESET"})}})))))}}]),t}(s.default.PureComponent);t.default=p},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},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(0),s=r(a),u=n(14),c=r(u),l=n(13),f=(r(l),n(15)),h=n(1),p=r(h),d=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,e),o(t,[{key:"render",value:function(){var e=this.props,t=e.message,n=e.active,r=e.theme,o=e.rjvId;return n?s.default.createElement("div",i({className:"validation-failure"},(0,p.default)(r,"validation-failure"),{onClick:function(){c.default.dispatch({rjvId:o,name:"RESET"})}}),s.default.createElement("span",(0,p.default)(r,"validation-failure-label"),t),s.default.createElement(f.Add,(0,p.default)(r,"validation-failure-clear"))):null}}]),t}(s.default.PureComponent);t.default=d},function(e,t,n){var r=n(181);"string"==typeof r&&(r=e.i,r,"");var i={transform:void 0};n(183)(r,i),r.locals&&(e.exports=r.locals)},function(e,t,n){(e.exports=n(182)(!1)).push([e.i,".react-json-view .copy-to-clipboard-container{vertical-align:top;display:none}.react-json-view .click-to-add,.react-json-view .click-to-edit,.react-json-view .click-to-remove{display:none}.react-json-view .object-content .variable-row:hover .click-to-edit,.react-json-view .object-content .variable-row:hover .click-to-remove,.react-json-view .object-key-val:hover>span>.object-meta-data>.click-to-add,.react-json-view .object-key-val:hover>span>.object-meta-data>.click-to-remove,.react-json-view .object-key-val:hover>span>.object-meta-data>.copy-to-clipboard-container,.react-json-view .variable-row:hover .copy-to-clipboard-container{display:inline-block}",""])},function(e,t){function n(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r);return[n].concat(r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"})).concat([i]).join("\n")}return[n].join("\n")}e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var r=n(t,e);return t[2]?"@media "+t[2]+"{"+r+"}":r}).join("")},t.i=function(e,n){"string"==typeof e&&(e=null,e,"");for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},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(l(r.parts[o],t))}else{for(var a=[],o=0;o<r.parts.length;o++)a.push(l(r.parts[o],t));h[r.id]={id:r.id,refs:1,parts:a}}}}function i(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s=o[1],u=o[2],c=o[3],l={css:s,media:u,sourceMap:c};r[a]?r[a].parts.push(l):n.push(r[a]={id:a,parts:[l]})}return n}function o(e,t){var n=d(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=y[y.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),y.push(t);else{if("bottom"!==e.insertAt)throw new Error("Invalid value for parameter 'insertAt'. Must be 'top' or 'bottom'.");n.appendChild(t)}}function a(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=y.indexOf(e);t>=0&&y.splice(t,1)}function s(e){var t=document.createElement("style");return e.attrs.type="text/css",c(t,e.attrs),o(e,t),t}function u(e){var t=document.createElement("link");return e.attrs.type="text/css",e.attrs.rel="stylesheet",c(t,e.attrs),o(e,t),t}function c(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function l(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var c=m++;n=v||(v=s(t)),r=f.bind(null,n,c,!1),i=f.bind(null,n,c,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=u(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=g(r)),i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){a(n),n.href&&URL.revokeObjectURL(n.href)}):(n=s(t),r=function(e,t){var n=t.css,r=t.media;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))}}.bind(null,n),i=function(){a(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 f(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=b(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)}}var h={},p=function(e){var t;return function(){return void 0===t&&(t=function(){return window&&document&&document.all&&!window.atob}.apply(this,arguments)),t}}(),d=function(e){var t={};return function(e){return void 0===t[e]&&(t[e]=function(e){return document.querySelector(e)}.call(this,e)),t[e]}}(),v=null,m=0,y=[],g=n(184);e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||(t.singleton=p()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=i(e,t);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)}e&&r(i(e,t),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 b=function(){var e=[];return function(t,n){return e[t]=n,e.filter(Boolean).join("\n")}}()},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}}]))},function(e,t,n){"use strict";e.exports=s;var r=n(373),i=!0,o="skip",a=!1;function s(e,t,n,s){function u(e,c,l){var f;return c=c||(l?0:null),t&&e.type!==t&&!r(t,e,c,l||null)||(f=n(e,c,l||null)),f===a?f:e.children&&f!==o&&function(e,t){var n,r,o=s?-1:1,c=(s?e.length:-1)+o;for(;c>-1&&c<e.length;){if(n=e[c],(r=n&&u(n,c,t))===a)return r;c="number"==typeof r?r:c+o}return i}(e.children,e)===a?a:f}"function"==typeof t&&"function"!=typeof n&&(s=n,n=t,t=null),u(e)}s.CONTINUE=i,s.SKIP=o,s.EXIT=a},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=48&&t<=57}},function(e,t,n){var r,i,o={},a=(r=function(){return window&&document&&document.all&&!window.atob},function(){return void 0===i&&(i=r.apply(this,arguments)),i}),s=function(e){var t={};return function(e){if("function"==typeof e)return e();if(void 0===t[e]){var n=function(e){return document.querySelector(e)}.call(this,e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}}(),u=null,c=0,l=[],f=n(410);function h(e,t){for(var n=0;n<e.length;n++){var r=e[n],i=o[r.id];if(i){i.refs++;for(var a=0;a<i.parts.length;a++)i.parts[a](r.parts[a]);for(;a<r.parts.length;a++)i.parts.push(g(r.parts[a],t))}else{var s=[];for(a=0;a<r.parts.length;a++)s.push(g(r.parts[a],t));o[r.id]={id:r.id,refs:1,parts:s}}}}function p(e,t){for(var n=[],r={},i=0;i<e.length;i++){var o=e[i],a=t.base?o[0]+t.base:o[0],s={css:o[1],media:o[2],sourceMap:o[3]};r[a]?r[a].parts.push(s):n.push(r[a]={id:a,parts:[s]})}return n}function d(e,t){var n=s(e.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var r=l[l.length-1];if("top"===e.insertAt)r?r.nextSibling?n.insertBefore(t,r.nextSibling):n.appendChild(t):n.insertBefore(t,n.firstChild),l.push(t);else if("bottom"===e.insertAt)n.appendChild(t);else{if("object"!=typeof e.insertAt||!e.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");var i=s(e.insertInto+" "+e.insertAt.before);n.insertBefore(t,i)}}function v(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e);var t=l.indexOf(e);t>=0&&l.splice(t,1)}function m(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),y(t,e.attrs),d(e,t),t}function y(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function g(e,t){var n,r,i,o;if(t.transform&&e.css){if(!(o=t.transform(e.css)))return function(){};e.css=o}if(t.singleton){var a=c++;n=u||(u=m(t)),r=w.bind(null,n,a,!1),i=w.bind(null,n,a,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",y(t,e.attrs),d(e,t),t}(t),r=function(e,t,n){var r=n.css,i=n.sourceMap,o=void 0===t.convertToAbsoluteUrls&&i;(t.convertToAbsoluteUrls||o)&&(r=f(r));i&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */");var a=new Blob([r],{type:"text/css"}),s=e.href;e.href=URL.createObjectURL(a),s&&URL.revokeObjectURL(s)}.bind(null,n,t),i=function(){v(n),n.href&&URL.revokeObjectURL(n.href)}):(n=m(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),i=function(){v(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()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=a()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=p(e,t);return h(n,t),function(e){for(var r=[],i=0;i<n.length;i++){var a=n[i];(s=o[a.id]).refs--,r.push(s)}e&&h(p(e,t),t);for(i=0;i<r.length;i++){var s;if(0===(s=r[i]).refs){for(var u=0;u<s.parts.length;u++)s.parts[u]();delete o[s.id]}}}};var b,_=(b=[],function(e,t){return b[e]=t,b.filter(Boolean).join("\n")});function w(e,t,n,r){var i=n?"":r.css;if(e.styleSheet)e.styleSheet.cssText=_(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(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var i=(a=r,"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(a))))+" */"),o=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(o).concat([i]).join("\n")}var a;return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=null,e,"");for(var r={},i=0;i<this.length;i++){var o=this[i][0];"number"==typeof o&&(r[o]=!0)}for(i=0;i<e.length;i++){var a=e[i];"number"==typeof a[0]&&r[a[0]]||(n&&!a[2]?a[2]=n:n&&(a[2]="("+a[2]+") and ("+n+")"),t.push(a))}},t}},function(e,t){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return n.test(e)}},function(e,t,n){var r=n(476),i=n(112),o=n(475);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(255)(Object.getPrototypeOf,Object);e.exports=r},function(e,t,n){var r=n(119),i=n(137),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];o.call(e,t)&&i(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},function(e,t){var n="__lodash_placeholder__";e.exports=function(e,t){for(var r=-1,i=e.length,o=0,a=[];++r<i;){var s=e[r];s!==t&&s!==n||(e[r]=n,a[o++]=r)}return a}},function(e,t,n){var r=n(91),i=n(40);e.exports=function(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=r(e.prototype),o=e.apply(n,t);return i(o)?o:n}}},function(e,t,n){var r=n(238),i=n(516),o=n(515),a=n(236),s=n(506),u=n(166),c=n(505),l=n(229),f=n(228),h=n(48),p="Expected a function",d=1,v=2,m=8,y=16,g=32,b=64,_=Math.max;e.exports=function(e,t,n,w,E,x,C,T){var k=t&v;if(!k&&"function"!=typeof e)throw new TypeError(p);var S=w?w.length:0;if(S||(t&=~(g|b),w=E=void 0),C=void 0===C?C:_(h(C),0),T=void 0===T?T:h(T),S-=E?E.length:0,t&b){var A=w,N=E;w=E=void 0}var O=k?void 0:u(e),I=[e,t,n,w,E,A,N,x,C,T];if(O&&c(I,O),e=I[0],t=I[1],n=I[2],w=I[3],E=I[4],!(T=I[9]=void 0===I[9]?k?0:e.length:_(I[9]-S,0))&&t&(m|y)&&(t&=~(m|y)),t&&t!=d)P=t==m||t==y?o(e,t,T):t!=g&&t!=(d|g)||E.length?a.apply(void 0,I):s(e,t,n,w);else var P=i(e,t,n);return f((O?r:l)(P,I),e,t)}},function(e,t,n){var r=n(266);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},function(e,t,n){var r=n(93),i=n(566),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=[];for(var n in Object(e))o.call(e,n)&&"constructor"!=n&&t.push(n);return t}},function(e,t,n){(function(e){var r=n(271),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i&&r.process,s=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s}).call(this,n(124)(e))},function(e,t,n){var r=n(567),i=n(66),o=n(122),a=o&&o.isTypedArray,s=a?i(a):r;e.exports=s},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t,n){var r=n(40),i=n(71),o=NaN,a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return o;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?o:+e}},function(e,t,n){var r=n(39),i=n(30);e.exports=function(e){return i(e)&&r(e)}},function(e,t){e.exports=function(e,t){return e.has(t)}},function(e,t,n){var r=n(260),i=n(575),o=n(574);e.exports=function(e,t,n){return t==t?o(e,t,n):r(e,i,n)}},function(e,t,n){var r=n(128);e.exports=function(e,t){return!(null==e||!e.length)&&r(e,t,0)>-1}},function(e,t,n){var r=n(179),i=n(577),o=n(576);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=i,a.prototype.has=o,e.exports=a},function(e,t){e.exports=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}},function(e,t,n){var r=n(97),i=n(67);e.exports=function(e,t){for(var n=0,o=(t=r(t,e)).length;null!=e&&n<o;)e=e[i(t[n++])];return n&&n==o?e:void 0}},function(e,t){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},function(e,t,n){var r=n(588),i=n(30),o=Object.prototype,a=o.hasOwnProperty,s=o.propertyIsEnumerable,u=r(function(){return arguments}())?r:function(e){return i(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=u},function(e,t,n){var r=n(70),i=n(50),o=n(18),a=n(71),s=1/0,u=r?r.prototype:void 0,c=u?u.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(o(t))return i(t,e)+"";if(a(t))return c?c.call(t):"";var n=t+"";return"0"==n&&1/t==-s?"-0":n}},function(e,t,n){var r=n(592);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},function(e,t){e.exports=function(e,t){return e===t||e!=e&&t!=t}},function(e,t,n){var r=n(137);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},function(e,t,n){var r=n(598),i=n(597),o=n(596),a=n(595),s=n(594);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(68)(Object,"create");e.exports=r},function(e,t,n){var r=n(143),i=n(100),o=n(72),a=n(195),s=n(57),u=n(283),c=Object.getOwnPropertyDescriptor;t.f=n(73)?c:function(e,t){if(e=o(e),t=a(t,!0),u)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},function(e,t,n){"use strict";var r=n(639)(!0);n(277)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},function(e,t){e.exports=!0},function(e,t,n){var r=n(119),i=n(172),o=n(35);e.exports=function(e,t){var n={};return t=o(t,3),i(e,function(e,i,o){r(n,i,t(e,i,o))}),n}},function(e,t,n){var r=n(264),i=n(438),o=(n(10),n(435));function a(t,n,s){return"undefined"!=typeof Reflect&&i?e.exports=a=i:e.exports=a=function(e,t,n){var i=o(e,t);if(i){var a=r(i,t);return a.get?a.get.call(n):a.value}},a(t,n,s||t)}e.exports=a},function(e,t,n){var r=n(446),i=n(44),o=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=i(e))&&e.replace(o,r).replace(a,"")}},function(e,t,n){var r=n(170);e.exports=function(e,t){return r(e,t)}},function(e,t,n){var r=n(535)(n(201));e.exports=r},function(e,t,n){var r=n(651);e.exports=p,e.exports.parse=o,e.exports.compile=function(e,t){return s(o(e,t))},e.exports.tokensToFunction=s,e.exports.tokensToRegExp=h;var i=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function o(e,t){for(var n,r=[],o=0,a=0,s="",l=t&&t.delimiter||"/";null!=(n=i.exec(e));){var f=n[0],h=n[1],p=n.index;if(s+=e.slice(a,p),a=p+f.length,h)s+=h[1];else{var d=e[a],v=n[2],m=n[3],y=n[4],g=n[5],b=n[6],_=n[7];s&&(r.push(s),s="");var w=null!=v&&null!=d&&d!==v,E="+"===b||"*"===b,x="?"===b||"*"===b,C=n[2]||l,T=y||g;r.push({name:m||o++,prefix:v||"",delimiter:C,optional:x,repeat:E,partial:w,asterisk:!!_,pattern:T?c(T):_?".*":"[^"+u(C)+"]+?"})}}return a<e.length&&(s+=e.substr(a)),s&&r.push(s),r}function a(e){return encodeURI(e).replace(/[\/?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})}function s(e){for(var t=new Array(e.length),n=0;n<e.length;n++)"object"==typeof e[n]&&(t[n]=new RegExp("^(?:"+e[n].pattern+")$"));return function(n,i){for(var o="",s=n||{},u=(i||{}).pretty?a:encodeURIComponent,c=0;c<e.length;c++){var l=e[c];if("string"!=typeof l){var f,h=s[l.name];if(null==h){if(l.optional){l.partial&&(o+=l.prefix);continue}throw new TypeError('Expected "'+l.name+'" to be defined')}if(r(h)){if(!l.repeat)throw new TypeError('Expected "'+l.name+'" to not repeat, but received `'+JSON.stringify(h)+"`");if(0===h.length){if(l.optional)continue;throw new TypeError('Expected "'+l.name+'" to not be empty')}for(var p=0;p<h.length;p++){if(f=u(h[p]),!t[c].test(f))throw new TypeError('Expected all "'+l.name+'" to match "'+l.pattern+'", but received `'+JSON.stringify(f)+"`");o+=(0===p?l.prefix:l.delimiter)+f}}else{if(f=l.asterisk?encodeURI(h).replace(/[?#]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}):u(h),!t[c].test(f))throw new TypeError('Expected "'+l.name+'" to match "'+l.pattern+'", but received "'+f+'"');o+=l.prefix+f}}else o+=l}return o}}function u(e){return e.replace(/([.+*?=^!:${}()[\]|\/\\])/g,"\\$1")}function c(e){return e.replace(/([=!:$\/()])/g,"\\$1")}function l(e,t){return e.keys=t,e}function f(e){return e.sensitive?"":"i"}function h(e,t,n){r(t)||(n=t||n,t=[]);for(var i=(n=n||{}).strict,o=!1!==n.end,a="",s=0;s<e.length;s++){var c=e[s];if("string"==typeof c)a+=u(c);else{var h=u(c.prefix),p="(?:"+c.pattern+")";t.push(c),c.repeat&&(p+="(?:"+h+p+")*"),a+=p=c.optional?c.partial?h+"("+p+")?":"(?:"+h+"("+p+"))?":h+"("+p+")"}}var d=u(n.delimiter||"/"),v=a.slice(-d.length)===d;return i||(a=(v?a.slice(0,-d.length):a)+"(?:"+d+"(?=$))?"),a+=o?"$":i&&v?"":"(?="+d+"|$)",l(new RegExp("^"+a,f(n)),t)}function p(e,t,n){return r(t)||(n=t||n,t=[]),n=n||{},e instanceof RegExp?function(e,t){var n=e.source.match(/\((?!\?)/g);if(n)for(var r=0;r<n.length;r++)t.push({name:r,prefix:null,delimiter:null,optional:!1,repeat:!1,partial:!1,asterisk:!1,pattern:null});return l(e,t)}(e,t):r(e)?function(e,t,n){for(var r=[],i=0;i<e.length;i++)r.push(p(e[i],t,n).source);return l(new RegExp("(?:"+r.join("|")+")",f(n)),t)}(e,t,n):function(e,t,n){return h(o(e,n),t,n)}(e,t,n)}},function(e,t,n){var r=n(23)("isNil",n(13),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("keys",n(28),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){"use strict";var r=n(361);e.exports=function(e){return r(e).toLowerCase()}},function(e,t,n){"use strict";e.exports=function(e,t,n,r){var i,o,a,s,u,c,l=["pedantic","commonmark"],f=l.length,h=e.length,p=-1;for(;++p<h;){for(i=e[p],o=i[1]||{},a=i[0],s=-1,c=!1;++s<f;)if(void 0!==o[u=l[s]]&&o[u]!==n.options[u]){c=!0;break}if(!c&&t[a].apply(n,r))return!0}return!1}},function(e,t,n){"use strict";e.exports=function(e){var t=String(e),n=t.length;for(;t.charAt(--n)===r;);return t.slice(0,n+1)};var r="\n"},function(e,t,n){"use strict"; /*!

* repeat-string <https://github.com/jonschlinkert/repeat-string>
*
* Copyright (c) 2014-2015, Jon Schlinkert.
* Licensed under the MIT License.
*/var r,i="";e.exports=function(e,t){if("string"!=typeof e)throw new TypeError("expected a string");if(1===t)return e;if(2===t)return e+e;var n=e.length*t;if(r!==e||void 0===r)r=e,i="";else if(i.length>=n)return i.substr(0,n);for(;n>i.length&&t>1;)1&t&&(i+=e),t>>=1,e+=e;return i=(i+=e).substr(0,n)}},function(e,t,n){"use strict";var r=n(384),i=n(383),o=n(382),a=n(109),s=n(381),u=n(380);e.exports=function(e,t){var n,a,s={};t||(t={});for(a in h)n=t[a],s[a]=null===n||void 0===n?h[a]:n;(s.position.indent||s.position.start)&&(s.indent=s.position.indent||[],s.position=s.position.start);return function(e,t){var n,a,s,h,S,A,N,O,I,P,R,D,M,L,j,F,U,B,q=t.additional,V=t.nonTerminated,W=t.text,z=t.reference,H=t.warning,K=t.textContext,G=t.referenceContext,Q=t.warningContext,Y=t.position,X=t.indent||[],J=e.length,$=0,Z=-1,ee=Y.column||1,te=Y.line||1,ne="",re=[];j=oe(),N=H?function(e,t){var n=oe();n.column+=t,n.offset+=t,H.call(Q,T[e],n,e)}:f,$--,J++;for(;++$<J;)if("\n"===h&&(ee=X[Z]||1),"&"!==(h=ae($)))"\n"===h&&(te++,Z++,ee=0),h?(ne+=h,ee++):se();else{if("\t"===(A=ae($+1))||"\n"===A||"\f"===A||" "===A||"<"===A||"&"===A||""===A||q&&A===q){ne+=h,ee++;continue}for(R=D=$+1,B=D,"#"!==A?M=p:(B=++R,"x"===(A=ae(B))||"X"===A?(M=d,B=++R):M=v),n="",P="",s="",L=y[M],B--;++B<J&&(A=ae(B),L(A));)s+=A,M===p&&c.call(i,s)&&(n=s,P=i[s]);(a=";"===ae(B))&&(B++,M===p&&c.call(r,s)&&(n=s,P=r[s])),U=1+B-D,(a||V)&&(s?M===p?(a&&!P?N(E,1):(n!==s&&(B=R+n.length,U=1+B-R,a=!1),a||(O=n?g:_,t.attribute?"="===(A=ae(B))?(N(O,U),P=null):u(A)?P=null:N(O,U):N(O,U))),S=P):(a||N(b,U),S=parseInt(s,m[M]),(ie=S)>=55296&&ie<=57343||ie>1114111?(N(C,U),S="�"):S in o?(N(x,U),S=o[S]):(I="",k(S)&&N(x,U),S>65535&&(I+=l((S-=65536)>>>10|55296),S=56320|1023&S),S=I+l(S))):M!==p&&N(w,U)),S?(se(),j=oe(),$=B-1,ee+=B-D+1,re.push(S),(F=oe()).offset++,z&&z.call(G,S,{start:j,end:F},e.slice(D-1,B)),j=F):(s=e.slice(D-1,B),ne+=s,ee+=s.length,$=B-1)}var ie;return re.join("");function oe(){return{line:te,column:ee,offset:$+(Y.offset||0)}}function ae(t){return e.charAt(t)}function se(){ne&&(re.push(ne),W&&W.call(K,ne,{start:j,end:oe()}),ne="")}}(e,s)};var c={}.hasOwnProperty,l=String.fromCharCode,f=Function.prototype,h={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},p="named",d="hexadecimal",v="decimal",m={};m[d]=16,m[v]=10;var y={};y[p]=u,y[v]=a,y[d]=s;var g=1,b=2,_=3,w=4,E=5,x=6,C=7,T={};function k(e){return e>=1&&e<=8||11===e||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||65535==(65535&e)||65534==(65535&e)}T[g]="Named character references must be terminated by a semicolon",T[b]="Numeric character references must be terminated by a semicolon",T[_]="Named character references cannot be empty",T[w]="Numeric character references cannot be empty",T[E]="Named character references must be known",T[x]="Numeric character references cannot be disallowed",T[C]="Numeric character references cannot be outside the permissible Unicode range"},function(e,t,n){"use strict";var r=n(47),i=n(404),o=n(392),a=n(5),s=n(337),u=n(336),c=n(335),l=n(334),f=n(333),h=n(332),p=n(331),d=Object.keys(p),v=function(e){var t=e.source||e.children||"";if(e.allowedTypes&&e.disallowedTypes)throw new Error("Only one of `allowedTypes` and `disallowedTypes` should be defined");var n=r(p,e.renderers),a=[o].concat(e.plugins||[]).reduce(m,i()).parse(t),h=r(e,{renderers:n,definitions:f(a)}),v=function(e){var t=[l],n=e.disallowedTypes;e.allowedTypes&&(n=d.filter(function(t){return"root"!==t&&-1===e.allowedTypes.indexOf(t)}));var r=e.unwrapDisallowed?"unwrap":"remove";n&&n.length>0&&t.push(u.ofType(n,r));e.allowNode&&t.push(u.ifNotMatch(e.allowNode,r));e.escapeHtml||e.skipHtml||t.push(s);return e.astPlugins?t.concat(e.astPlugins):t}(e).reduce(function(e,t){return t(e,h)},a);return c(v,h)};function m(e,t){return Array.isArray(t)?e.use.apply(e,function(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)}(t)):e.use(t)}v.defaultProps={renderers:{},escapeHtml:!0,skipHtml:!1,sourcePos:!1,rawSourcePos:!1,transformLinkUri:h,astPlugins:[],plugins:[]},v.propTypes={className:a.string,source:a.string,children:a.string,sourcePos:a.bool,rawSourcePos:a.bool,escapeHtml:a.bool,skipHtml:a.bool,allowNode:a.func,allowedTypes:a.arrayOf(a.oneOf(d)),disallowedTypes:a.arrayOf(a.oneOf(d)),transformLinkUri:a.oneOfType([a.func,a.bool]),transformImageUri:a.func,astPlugins:a.arrayOf(a.func),unwrapDisallowed:a.bool,renderers:a.object,plugins:a.array},v.types=d,v.renderers=p,v.uriTransformer=h,e.exports=v},function(e,t,n){(function(e,r){var i;

/**

* @license
* Lodash <https://lodash.com/>
* Copyright JS Foundation and other contributors <https://js.foundation/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/(function(){var o,a=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="__lodash_hash_undefined__",l=500,f="__lodash_placeholder__",h=1,p=2,d=4,v=1,m=2,y=1,g=2,b=4,_=8,w=16,E=32,x=64,C=128,T=256,k=512,S=30,A="...",N=800,O=16,I=1,P=2,R=1/0,D=9007199254740991,M=1.7976931348623157e308,L=NaN,j=4294967295,F=j-1,U=j>>>1,B=[["ary",C],["bind",y],["bindKey",g],["curry",_],["curryRight",w],["flip",k],["partial",E],["partialRight",x],["rearg",T]],q="[object Arguments]",V="[object Array]",W="[object AsyncFunction]",z="[object Boolean]",H="[object Date]",K="[object DOMException]",G="[object Error]",Q="[object Function]",Y="[object GeneratorFunction]",X="[object Map]",J="[object Number]",$="[object Null]",Z="[object Object]",ee="[object Proxy]",te="[object RegExp]",ne="[object Set]",re="[object String]",ie="[object Symbol]",oe="[object Undefined]",ae="[object WeakMap]",se="[object WeakSet]",ue="[object ArrayBuffer]",ce="[object DataView]",le="[object Float32Array]",fe="[object Float64Array]",he="[object Int8Array]",pe="[object Int16Array]",de="[object Int32Array]",ve="[object Uint8Array]",me="[object Uint8ClampedArray]",ye="[object Uint16Array]",ge="[object Uint32Array]",be=/\b__p \+= ;/g,_e=/\b(__p \+=)  \+/g,we=/(__e\(.*?\)|\b__t\)) \+\n;/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,xe=/[&<>"']/g,Ce=RegExp(Ee.source),Te=RegExp(xe.source),ke=/<%-([\s\S]+?)%>/g,Se=/<%([\s\S]+?)%>/g,Ae=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Oe=/^\w*$/,Ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Pe=/[\\^$.*+?()[\]{}|]/g,Re=RegExp(Pe.source),De=/^\s+|\s+$/g,Me=/^\s+/,Le=/\s+$/,je=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fe=/\{\n\/\* \[wrapped with (.+)\] \*/,Ue=/,? & /,Be=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,qe=/\\(\\)?/g,Ve=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,We=/\w*$/,ze=/^[-+]0x[0-9a-f]+$/i,He=/^0b[01]+$/i,Ke=/^\[object .+?Constructor\]$/,Ge=/^0o[0-7]+$/i,Qe=/^(?:0|[1-9]\d*)$/,Ye=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Xe=/($^)/,Je=/['\n\r\u2028\u2029\\]/g,$e="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Ze="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",et="[\\ud800-\\udfff]",tt="["+Ze+"]",nt="["+$e+"]",rt="\\d+",it="[\\u2700-\\u27bf]",ot="[a-z\\xdf-\\xf6\\xf8-\\xff]",at="[^\\ud800-\\udfff"+Ze+rt+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",st="\\ud83c[\\udffb-\\udfff]",ut="[^\\ud800-\\udfff]",ct="(?:\\ud83c[\\udde6-\\uddff]){2}",lt="[\\ud800-\\udbff][\\udc00-\\udfff]",ft="[A-Z\\xc0-\\xd6\\xd8-\\xde]",ht="(?:"+ot+"|"+at+")",pt="(?:"+ft+"|"+at+")",dt="(?:"+nt+"|"+st+")"+"?",vt="[\\ufe0e\\ufe0f]?"+dt+("(?:\\u200d(?:"+[ut,ct,lt].join("|")+")[\\ufe0e\\ufe0f]?"+dt+")*"),mt="(?:"+[it,ct,lt].join("|")+")"+vt,yt="(?:"+[ut+nt+"?",nt,ct,lt,et].join("|")+")",gt=RegExp("['’]","g"),bt=RegExp(nt,"g"),_t=RegExp(st+"(?="+st+")|"+yt+vt,"g"),wt=RegExp([ft+"?"+ot+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[tt,ft,"$"].join("|")+")",pt+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[tt,ft+ht,"$"].join("|")+")",ft+"?"+ht+"+(?:['’](?:d|ll|m|re|s|t|ve))?",ft+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",rt,mt].join("|"),"g"),Et=RegExp("[\\u200d\\ud800-\\udfff"+$e+"\\ufe0e\\ufe0f]"),xt=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ct=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],Tt=-1,kt={};kt[le]=kt[fe]=kt[he]=kt[pe]=kt[de]=kt[ve]=kt[me]=kt[ye]=kt[ge]=!0,kt[q]=kt[V]=kt[ue]=kt[z]=kt[ce]=kt[H]=kt[G]=kt[Q]=kt[X]=kt[J]=kt[Z]=kt[te]=kt[ne]=kt[re]=kt[ae]=!1;var St={};St[q]=St[V]=St[ue]=St[ce]=St[z]=St[H]=St[le]=St[fe]=St[he]=St[pe]=St[de]=St[X]=St[J]=St[Z]=St[te]=St[ne]=St[re]=St[ie]=St[ve]=St[me]=St[ye]=St[ge]=!0,St[G]=St[Q]=St[ae]=!1;var At={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Nt=parseFloat,Ot=parseInt,It="object"==typeof e&&e&&e.Object===Object&&e,Pt="object"==typeof self&&self&&self.Object===Object&&self,Rt=It||Pt||Function("return this")(),Dt="object"==typeof t&&t&&!t.nodeType&&t,Mt=Dt&&"object"==typeof r&&r&&!r.nodeType&&r,Lt=Mt&&Mt.exports===Dt,jt=Lt&&It.process,Ft=function(){try{var e=Mt&&Mt.require&&Mt.require("util").types;return e||jt&&jt.binding&&jt.binding("util")}catch(e){}}(),Ut=Ft&&Ft.isArrayBuffer,Bt=Ft&&Ft.isDate,qt=Ft&&Ft.isMap,Vt=Ft&&Ft.isRegExp,Wt=Ft&&Ft.isSet,zt=Ft&&Ft.isTypedArray;function Ht(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Kt(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}function Gt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Qt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Yt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function Xt(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}function Jt(e,t){return!!(null==e?0:e.length)&&un(e,t,0)>-1}function $t(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function Zt(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function en(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function tn(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}function nn(e,t,n,r){var i=null==e?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function rn(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var on=hn("length");function an(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function sn(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}function un(e,t,n){return t==t?function(e,t,n){var r=n-1,i=e.length;for(;++r<i;)if(e[r]===t)return r;return-1}(e,t,n):sn(e,ln,n)}function cn(e,t,n,r){for(var i=n-1,o=e.length;++i<o;)if(r(e[i],t))return i;return-1}function ln(e){return e!=e}function fn(e,t){var n=null==e?0:e.length;return n?vn(e,t)/n:L}function hn(e){return function(t){return null==t?o:t[e]}}function pn(e){return function(t){return null==e?o:e[t]}}function dn(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}function vn(e,t){for(var n,r=-1,i=e.length;++r<i;){var a=t(e[r]);a!==o&&(n=n===o?a:n+a)}return n}function mn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function yn(e){return function(t){return e(t)}}function gn(e,t){return Zt(t,function(t){return e[t]})}function bn(e,t){return e.has(t)}function _n(e,t){for(var n=-1,r=e.length;++n<r&&un(t,e[n],0)>-1;);return n}function wn(e,t){for(var n=e.length;n--&&un(t,e[n],0)>-1;);return n}var En=pn({"À":"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","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),xn=pn({"&":"&","<":"<",">":">",'"':""","'":"'"});function Cn(e){return"\\"+At[e]}function Tn(e){return Et.test(e)}function kn(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function Sn(e,t){return function(n){return e(t(n))}}function An(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n];a!==t&&a!==f||(e[n]=f,o[i++]=n)}return o}function Nn(e,t){return"__proto__"==t?o:e[t]}function On(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function In(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function Pn(e){return Tn(e)?function(e){var t=_t.lastIndex=0;for(;_t.test(e);)++t;return t}(e):on(e)}function Rn(e){return Tn(e)?function(e){return e.match(_t)||[]}(e):function(e){return e.split("")}(e)}var Dn=pn({"&":"&","<":"<",">":">",""":'"',"'":"'"});var Mn=function e(t){var n,r=(t=null==t?Rt:Mn.defaults(Rt.Object(),t,Mn.pick(Rt,Ct))).Array,i=t.Date,$e=t.Error,Ze=t.Function,et=t.Math,tt=t.Object,nt=t.RegExp,rt=t.String,it=t.TypeError,ot=r.prototype,at=Ze.prototype,st=tt.prototype,ut=t["__core-js_shared__"],ct=at.toString,lt=st.hasOwnProperty,ft=0,ht=(n=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"",pt=st.toString,dt=ct.call(tt),vt=Rt._,mt=nt("^"+ct.call(lt).replace(Pe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),yt=Lt?t.Buffer:o,_t=t.Symbol,Et=t.Uint8Array,At=yt?yt.allocUnsafe:o,It=Sn(tt.getPrototypeOf,tt),Pt=tt.create,Dt=st.propertyIsEnumerable,Mt=ot.splice,jt=_t?_t.isConcatSpreadable:o,Ft=_t?_t.iterator:o,on=_t?_t.toStringTag:o,pn=function(){try{var e=Bo(tt,"defineProperty");return e({},"",{}),e}catch(e){}}(),Ln=t.clearTimeout!==Rt.clearTimeout&&t.clearTimeout,jn=i&&i.now!==Rt.Date.now&&i.now,Fn=t.setTimeout!==Rt.setTimeout&&t.setTimeout,Un=et.ceil,Bn=et.floor,qn=tt.getOwnPropertySymbols,Vn=yt?yt.isBuffer:o,Wn=t.isFinite,zn=ot.join,Hn=Sn(tt.keys,tt),Kn=et.max,Gn=et.min,Qn=i.now,Yn=t.parseInt,Xn=et.random,Jn=ot.reverse,$n=Bo(t,"DataView"),Zn=Bo(t,"Map"),er=Bo(t,"Promise"),tr=Bo(t,"Set"),nr=Bo(t,"WeakMap"),rr=Bo(tt,"create"),ir=nr&&new nr,or={},ar=fa($n),sr=fa(Zn),ur=fa(er),cr=fa(tr),lr=fa(nr),fr=_t?_t.prototype:o,hr=fr?fr.valueOf:o,pr=fr?fr.toString:o;function dr(e){if(As(e)&&!ys(e)&&!(e instanceof gr)){if(e instanceof yr)return e;if(lt.call(e,"__wrapped__"))return ha(e)}return new yr(e)}var vr=function(){function e(){}return function(t){if(!Ss(t))return{};if(Pt)return Pt(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function mr(){}function yr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function gr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=j,this.__views__=[]}function br(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _r(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function wr(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Er(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new wr;++t<n;)this.add(e[t])}function xr(e){var t=this.__data__=new _r(e);this.size=t.size}function Cr(e,t){var n=ys(e),r=!n&&ms(e),i=!n&&!r&&ws(e),o=!n&&!r&&!i&&Ls(e),a=n||r||i||o,s=a?mn(e.length,rt):[],u=s.length;for(var c in e)!t&&!lt.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Go(c,u))||s.push(c);return s}function Tr(e){var t=e.length;return t?e[Ei(0,t-1)]:o}function kr(e,t){return ua(ro(e),Mr(t,0,e.length))}function Sr(e){return ua(ro(e))}function Ar(e,t,n){(n===o||ps(e[t],n))&&(n!==o||t in e)||Rr(e,t,n)}function Nr(e,t,n){var r=e[t];lt.call(e,t)&&ps(r,n)&&(n!==o||t in e)||Rr(e,t,n)}function Or(e,t){for(var n=e.length;n--;)if(ps(e[n][0],t))return n;return-1}function Ir(e,t,n,r){return Br(e,function(e,i,o){t(r,e,n(e),o)}),r}function Pr(e,t){return e&&io(t,iu(t),e)}function Rr(e,t,n){"__proto__"==t&&pn?pn(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function Dr(e,t){for(var n=-1,i=t.length,a=r(i),s=null==e;++n<i;)a[n]=s?o:Zs(e,t[n]);return a}function Mr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function Lr(e,t,n,r,i,a){var s,u=t&h,c=t&p,l=t&d;if(n&&(s=i?n(e,r,i,a):n(e)),s!==o)return s;if(!Ss(e))return e;var f=ys(e);if(f){if(s=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&lt.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!u)return ro(e,s)}else{var v=Wo(e),m=v==Q||v==Y;if(ws(e))return Ji(e,u);if(v==Z||v==q||m&&!i){if(s=c||m?{}:Ho(e),!u)return c?function(e,t){return io(e,Vo(e),t)}(e,function(e,t){return e&&io(t,ou(t),e)}(s,e)):function(e,t){return io(e,qo(e),t)}(e,Pr(s,e))}else{if(!St[v])return i?e:{};s=function(e,t,n){var r,i,o,a=e.constructor;switch(t){case ue:return $i(e);case z:case H:return new a(+e);case ce:return function(e,t){var n=t?$i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case le:case fe:case he:case pe:case de:case ve:case me:case ye:case ge:return Zi(e,n);case X:return new a;case J:case re:return new a(e);case te:return(o=new(i=e).constructor(i.source,We.exec(i))).lastIndex=i.lastIndex,o;case ne:return new a;case ie:return r=e,hr?tt(hr.call(r)):{}}}(e,v,u)}}a||(a=new xr);var y=a.get(e);if(y)return y;if(a.set(e,s),Rs(e))return e.forEach(function(r){s.add(Lr(r,t,n,r,e,a))}),s;if(Ns(e))return e.forEach(function(r,i){s.set(i,Lr(r,t,n,i,e,a))}),s;var g=f?o:(l?c?Ro:Po:c?ou:iu)(e);return Gt(g||e,function(r,i){g&&(r=e[i=r]),Nr(s,i,Lr(r,t,n,i,e,a))}),s}function jr(e,t,n){var r=n.length;if(null==e)return!r;for(e=tt(e);r--;){var i=n[r],a=t[i],s=e[i];if(s===o&&!(i in e)||!a(s))return!1}return!0}function Fr(e,t,n){if("function"!=typeof e)throw new it(u);return ia(function(){e.apply(o,n)},t)}function Ur(e,t,n,r){var i=-1,o=Jt,s=!0,u=e.length,c=[],l=t.length;if(!u)return c;n&&(t=Zt(t,yn(n))),r?(o=$t,s=!1):t.length>=a&&(o=bn,s=!1,t=new Er(t));e:for(;++i<u;){var f=e[i],h=null==n?f:n(f);if(f=r||0!==f?f:0,s&&h==h){for(var p=l;p--;)if(t[p]===h)continue e;c.push(f)}else o(t,h,r)||c.push(f)}return c}dr.templateSettings={escape:ke,evaluate:Se,interpolate:Ae,variable:"",imports:{_:dr}},dr.prototype=mr.prototype,dr.prototype.constructor=dr,yr.prototype=vr(mr.prototype),yr.prototype.constructor=yr,gr.prototype=vr(mr.prototype),gr.prototype.constructor=gr,br.prototype.clear=function(){this.__data__=rr?rr(null):{},this.size=0},br.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},br.prototype.get=function(e){var t=this.__data__;if(rr){var n=t[e];return n===c?o:n}return lt.call(t,e)?t[e]:o},br.prototype.has=function(e){var t=this.__data__;return rr?t[e]!==o:lt.call(t,e)},br.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=rr&&t===o?c:t,this},_r.prototype.clear=function(){this.__data__=[],this.size=0},_r.prototype.delete=function(e){var t=this.__data__,n=Or(t,e);return!(n<0||(n==t.length-1?t.pop():Mt.call(t,n,1),--this.size,0))},_r.prototype.get=function(e){var t=this.__data__,n=Or(t,e);return n<0?o:t[n][1]},_r.prototype.has=function(e){return Or(this.__data__,e)>-1},_r.prototype.set=function(e,t){var n=this.__data__,r=Or(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},wr.prototype.clear=function(){this.size=0,this.__data__={hash:new br,map:new(Zn||_r),string:new br}},wr.prototype.delete=function(e){var t=Fo(this,e).delete(e);return this.size-=t?1:0,t},wr.prototype.get=function(e){return Fo(this,e).get(e)},wr.prototype.has=function(e){return Fo(this,e).has(e)},wr.prototype.set=function(e,t){var n=Fo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Er.prototype.add=Er.prototype.push=function(e){return this.__data__.set(e,c),this},Er.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.clear=function(){this.__data__=new _r,this.size=0},xr.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},xr.prototype.get=function(e){return this.__data__.get(e)},xr.prototype.has=function(e){return this.__data__.has(e)},xr.prototype.set=function(e,t){var n=this.__data__;if(n instanceof _r){var r=n.__data__;if(!Zn||r.length<a-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new wr(r)}return n.set(e,t),this.size=n.size,this};var Br=so(Qr),qr=so(Yr,!0);function Vr(e,t){var n=!0;return Br(e,function(e,r,i){return n=!!t(e,r,i)}),n}function Wr(e,t,n){for(var r=-1,i=e.length;++r<i;){var a=e[r],s=t(a);if(null!=s&&(u===o?s==s&&!Ms(s):n(s,u)))var u=s,c=a}return c}function zr(e,t){var n=[];return Br(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Hr(e,t,n,r,i){var o=-1,a=e.length;for(n||(n=Ko),i||(i=[]);++o<a;){var s=e[o];t>0&&n(s)?t>1?Hr(s,t-1,n,r,i):en(i,s):r||(i[i.length]=s)}return i}var Kr=uo(),Gr=uo(!0);function Qr(e,t){return e&&Kr(e,t,iu)}function Yr(e,t){return e&&Gr(e,t,iu)}function Xr(e,t){return Xt(t,function(t){return Cs(e[t])})}function Jr(e,t){for(var n=0,r=(t=Gi(t,e)).length;null!=e&&n<r;)e=e[la(t[n++])];return n&&n==r?e:o}function $r(e,t,n){var r=t(e);return ys(e)?r:en(r,n(e))}function Zr(e){return null==e?e===o?oe:$:on&&on in tt(e)?function(e){var t=lt.call(e,on),n=e[on];try{e[on]=o;var r=!0}catch(e){}var i=pt.call(e);return r&&(t?e[on]=n:delete e[on]),i}(e):function(e){return pt.call(e)}(e)}function ei(e,t){return e>t}function ti(e,t){return null!=e&&lt.call(e,t)}function ni(e,t){return null!=e&&t in tt(e)}function ri(e,t,n){for(var i=n?$t:Jt,a=e[0].length,s=e.length,u=s,c=r(s),l=1/0,f=[];u--;){var h=e[u];u&&t&&(h=Zt(h,yn(t))),l=Gn(h.length,l),c[u]=!n&&(t||a>=120&&h.length>=120)?new Er(u&&h):o}h=e[0];var p=-1,d=c[0];e:for(;++p<a&&f.length<l;){var v=h[p],m=t?t(v):v;if(v=n||0!==v?v:0,!(d?bn(d,m):i(f,m,n))){for(u=s;--u;){var y=c[u];if(!(y?bn(y,m):i(e[u],m,n)))continue e}d&&d.push(m),f.push(v)}}return f}function ii(e,t,n){var r=null==(e=na(e,t=Gi(t,e)))?e:e[la(xa(t))];return null==r?o:Ht(r,e,n)}function oi(e){return As(e)&&Zr(e)==q}function ai(e,t,n,r,i){return e===t||(null==e||null==t||!As(e)&&!As(t)?e!=e&&t!=t:function(e,t,n,r,i,a){var s=ys(e),u=ys(t),c=s?V:Wo(e),l=u?V:Wo(t),f=(c=c==q?Z:c)==Z,h=(l=l==q?Z:l)==Z,p=c==l;if(p&&ws(e)){if(!ws(t))return!1;s=!0,f=!1}if(p&&!f)return a||(a=new xr),s||Ls(e)?Oo(e,t,n,r,i,a):function(e,t,n,r,i,o,a){switch(n){case ce:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case ue:return!(e.byteLength!=t.byteLength||!o(new Et(e),new Et(t)));case z:case H:case J:return ps(+e,+t);case G:return e.name==t.name&&e.message==t.message;case te:case re:return e==t+"";case X:var s=kn;case ne:var u=r&v;if(s||(s=On),e.size!=t.size&&!u)return!1;var c=a.get(e);if(c)return c==t;r|=m,a.set(e,t);var l=Oo(s(e),s(t),r,i,o,a);return a.delete(e),l;case ie:if(hr)return hr.call(e)==hr.call(t)}return!1}(e,t,c,n,r,i,a);if(!(n&v)){var d=f&&lt.call(e,"__wrapped__"),y=h&&lt.call(t,"__wrapped__");if(d||y){var g=d?e.value():e,b=y?t.value():t;return a||(a=new xr),i(g,b,n,r,a)}}return!!p&&(a||(a=new xr),function(e,t,n,r,i,a){var s=n&v,u=Po(e),c=u.length,l=Po(t).length;if(c!=l&&!s)return!1;for(var f=c;f--;){var h=u[f];if(!(s?h in t:lt.call(t,h)))return!1}var p=a.get(e);if(p&&a.get(t))return p==t;var d=!0;a.set(e,t),a.set(t,e);for(var m=s;++f<c;){h=u[f];var y=e[h],g=t[h];if(r)var b=s?r(g,y,h,t,e,a):r(y,g,h,e,t,a);if(!(b===o?y===g||i(y,g,n,r,a):b)){d=!1;break}m||(m="constructor"==h)}if(d&&!m){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(d=!1)}return a.delete(e),a.delete(t),d}(e,t,n,r,i,a))}(e,t,n,r,ai,i))}function si(e,t,n,r){var i=n.length,a=i,s=!r;if(null==e)return!a;for(e=tt(e);i--;){var u=n[i];if(s&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i<a;){var c=(u=n[i])[0],l=e[c],f=u[1];if(s&&u[2]){if(l===o&&!(c in e))return!1}else{var h=new xr;if(r)var p=r(l,f,c,e,t,h);if(!(p===o?ai(f,l,v|m,r,h):p))return!1}}return!0}function ui(e){return!(!Ss(e)||ht&&ht in e)&&(Cs(e)?mt:Ke).test(fa(e))}function ci(e){return"function"==typeof e?e:null==e?Ou:"object"==typeof e?ys(e)?vi(e[0],e[1]):di(e):Uu(e)}function li(e){if(!$o(e))return Hn(e);var t=[];for(var n in tt(e))lt.call(e,n)&&"constructor"!=n&&t.push(n);return t}function fi(e){if(!Ss(e))return function(e){var t=[];if(null!=e)for(var n in tt(e))t.push(n);return t}(e);var t=$o(e),n=[];for(var r in e)("constructor"!=r||!t&&lt.call(e,r))&&n.push(r);return n}function hi(e,t){return e<t}function pi(e,t){var n=-1,i=bs(e)?r(e.length):[];return Br(e,function(e,r,o){i[++n]=t(e,r,o)}),i}function di(e){var t=Uo(e);return 1==t.length&&t[0][2]?ea(t[0][0],t[0][1]):function(n){return n===e||si(n,e,t)}}function vi(e,t){return Yo(e)&&Zo(t)?ea(la(e),t):function(n){var r=Zs(n,e);return r===o&&r===t?eu(n,e):ai(t,r,v|m)}}function mi(e,t,n,r,i){e!==t&&Kr(t,function(a,s){if(Ss(a))i||(i=new xr),function(e,t,n,r,i,a,s){var u=Nn(e,n),c=Nn(t,n),l=s.get(c);if(l)Ar(e,n,l);else{var f=a?a(u,c,n+"",e,t,s):o,h=f===o;if(h){var p=ys(c),d=!p&&ws(c),v=!p&&!d&&Ls(c);f=c,p||d||v?ys(u)?f=u:_s(u)?f=ro(u):d?(h=!1,f=Ji(c,!0)):v?(h=!1,f=Zi(c,!0)):f=[]:Is(c)||ms(c)?(f=u,ms(u)?f=zs(u):(!Ss(u)||r&&Cs(u))&&(f=Ho(c))):h=!1}h&&(s.set(c,f),i(f,c,r,a,s),s.delete(c)),Ar(e,n,f)}}(e,t,s,n,mi,r,i);else{var u=r?r(Nn(e,s),a,s+"",e,t,i):o;u===o&&(u=a),Ar(e,s,u)}},ou)}function yi(e,t){var n=e.length;if(n)return Go(t+=t<0?n:0,n)?e[t]:o}function gi(e,t,n){var r=-1;return t=Zt(t.length?t:[Ou],yn(jo())),function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(pi(e,function(e,n,i){return{criteria:Zt(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return function(e,t,n){for(var r=-1,i=e.criteria,o=t.criteria,a=i.length,s=n.length;++r<a;){var u=eo(i[r],o[r]);if(u){if(r>=s)return u;var c=n[r];return u*("desc"==c?-1:1)}}return e.index-t.index}(e,t,n)})}function bi(e,t,n){for(var r=-1,i=t.length,o={};++r<i;){var a=t[r],s=Jr(e,a);n(s,a)&&Si(o,Gi(a,e),s)}return o}function _i(e,t,n,r){var i=r?cn:un,o=-1,a=t.length,s=e;for(e===t&&(t=ro(t)),n&&(s=Zt(e,yn(n)));++o<a;)for(var u=0,c=t[o],l=n?n(c):c;(u=i(s,l,u,r))>-1;)s!==e&&Mt.call(s,u,1),Mt.call(e,u,1);return e}function wi(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==o){var o=i;Go(i)?Mt.call(e,i,1):Ui(e,i)}}return e}function Ei(e,t){return e+Bn(Xn()*(t-e+1))}function xi(e,t){var n="";if(!e||t<1||t>D)return n;do{t%2&&(n+=e),(t=Bn(t/2))&&(e+=e)}while(t);return n}function Ci(e,t){return oa(ta(e,t,Ou),e+"")}function Ti(e){return Tr(pu(e))}function ki(e,t){var n=pu(e);return ua(n,Mr(t,0,n.length))}function Si(e,t,n,r){if(!Ss(e))return e;for(var i=-1,a=(t=Gi(t,e)).length,s=a-1,u=e;null!=u&&++i<a;){var c=la(t[i]),l=n;if(i!=s){var f=u[c];(l=r?r(f,c,u):o)===o&&(l=Ss(f)?f:Go(t[i+1])?[]:{})}Nr(u,c,l),u=u[c]}return e}var Ai=ir?function(e,t){return ir.set(e,t),e}:Ou,Ni=pn?function(e,t){return pn(e,"toString",{configurable:!0,enumerable:!1,value:Su(t),writable:!0})}:Ou;function Oi(e){return ua(pu(e))}function Ii(e,t,n){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var a=r(o);++i<o;)a[i]=e[i+t];return a}function Pi(e,t){var n;return Br(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}function Ri(e,t,n){var r=0,i=null==e?r:e.length;if("number"==typeof t&&t==t&&i<=U){for(;r<i;){var o=r+i>>>1,a=e[o];null!==a&&!Ms(a)&&(n?a<=t:a<t)?r=o+1:i=o}return i}return Di(e,t,Ou,n)}function Di(e,t,n,r){t=n(t);for(var i=0,a=null==e?0:e.length,s=t!=t,u=null===t,c=Ms(t),l=t===o;i<a;){var f=Bn((i+a)/2),h=n(e[f]),p=h!==o,d=null===h,v=h==h,m=Ms(h);if(s)var y=r||v;else y=l?v&&(r||p):u?v&&p&&(r||!d):c?v&&p&&!d&&(r||!m):!d&&!m&&(r?h<=t:h<t);y?i=f+1:a=f}return Gn(a,F)}function Mi(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var a=e[n],s=t?t(a):a;if(!n||!ps(s,u)){var u=s;o[i++]=0===a?0:a}}return o}function Li(e){return"number"==typeof e?e:Ms(e)?L:+e}function ji(e){if("string"==typeof e)return e;if(ys(e))return Zt(e,ji)+"";if(Ms(e))return pr?pr.call(e):"";var t=e+"";return"0"==t&&1/e==-R?"-0":t}function Fi(e,t,n){var r=-1,i=Jt,o=e.length,s=!0,u=[],c=u;if(n)s=!1,i=$t;else if(o>=a){var l=t?null:Co(e);if(l)return On(l);s=!1,i=bn,c=new Er}else c=t?[]:u;e:for(;++r<o;){var f=e[r],h=t?t(f):f;if(f=n||0!==f?f:0,s&&h==h){for(var p=c.length;p--;)if(c[p]===h)continue e;t&&c.push(h),u.push(f)}else i(c,h,n)||(c!==u&&c.push(h),u.push(f))}return u}function Ui(e,t){return null==(e=na(e,t=Gi(t,e)))||delete e[la(xa(t))]}function Bi(e,t,n,r){return Si(e,t,n(Jr(e,t)),r)}function qi(e,t,n,r){for(var i=e.length,o=r?i:-1;(r?o--:++o<i)&&t(e[o],o,e););return n?Ii(e,r?0:o,r?o+1:i):Ii(e,r?o+1:0,r?i:o)}function Vi(e,t){var n=e;return n instanceof gr&&(n=n.value()),tn(t,function(e,t){return t.func.apply(t.thisArg,en([e],t.args))},n)}function Wi(e,t,n){var i=e.length;if(i<2)return i?Fi(e[0]):[];for(var o=-1,a=r(i);++o<i;)for(var s=e[o],u=-1;++u<i;)u!=o&&(a[o]=Ur(a[o]||s,e[u],t,n));return Fi(Hr(a,1),t,n)}function zi(e,t,n){for(var r=-1,i=e.length,a=t.length,s={};++r<i;){var u=r<a?t[r]:o;n(s,e[r],u)}return s}function Hi(e){return _s(e)?e:[]}function Ki(e){return"function"==typeof e?e:Ou}function Gi(e,t){return ys(e)?e:Yo(e,t)?[e]:ca(Hs(e))}var Qi=Ci;function Yi(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:Ii(e,t,n)}var Xi=Ln||function(e){return Rt.clearTimeout(e)};function Ji(e,t){if(t)return e.slice();var n=e.length,r=At?At(n):new e.constructor(n);return e.copy(r),r}function $i(e){var t=new e.constructor(e.byteLength);return new Et(t).set(new Et(e)),t}function Zi(e,t){var n=t?$i(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function eo(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,a=Ms(e),s=t!==o,u=null===t,c=t==t,l=Ms(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||r&&s&&c||!n&&c||!i)return 1;if(!r&&!a&&!l&&e<t||l&&n&&i&&!r&&!a||u&&n&&i||!s&&i||!c)return-1}return 0}function to(e,t,n,i){for(var o=-1,a=e.length,s=n.length,u=-1,c=t.length,l=Kn(a-s,0),f=r(c+l),h=!i;++u<c;)f[u]=t[u];for(;++o<s;)(h||o<a)&&(f[n[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}function no(e,t,n,i){for(var o=-1,a=e.length,s=-1,u=n.length,c=-1,l=t.length,f=Kn(a-u,0),h=r(f+l),p=!i;++o<f;)h[o]=e[o];for(var d=o;++c<l;)h[d+c]=t[c];for(;++s<u;)(p||o<a)&&(h[d+n[s]]=e[o++]);return h}function ro(e,t){var n=-1,i=e.length;for(t||(t=r(i));++n<i;)t[n]=e[n];return t}function io(e,t,n,r){var i=!n;n||(n={});for(var a=-1,s=t.length;++a<s;){var u=t[a],c=r?r(n[u],e[u],u,n,e):o;c===o&&(c=e[u]),i?Rr(n,u,c):Nr(n,u,c)}return n}function oo(e,t){return function(n,r){var i=ys(n)?Kt:Ir,o=t?t():{};return i(n,e,jo(r,2),o)}}function ao(e){return Ci(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:o,s=i>2?n[2]:o;for(a=e.length>3&&"function"==typeof a?(i--,a):o,s&&Qo(n[0],n[1],s)&&(a=i<3?o:a,i=1),t=tt(t);++r<i;){var u=n[r];u&&e(t,u,r,a)}return t})}function so(e,t){return function(n,r){if(null==n)return n;if(!bs(n))return e(n,r);for(var i=n.length,o=t?i:-1,a=tt(n);(t?o--:++o<i)&&!1!==r(a[o],o,a););return n}}function uo(e){return function(t,n,r){for(var i=-1,o=tt(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}function co(e){return function(t){var n=Tn(t=Hs(t))?Rn(t):o,r=n?n[0]:t.charAt(0),i=n?Yi(n,1).join(""):t.slice(1);return r[e]()+i}}function lo(e){return function(t){return tn(Cu(mu(t).replace(gt,"")),e,"")}}function fo(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=vr(e.prototype),r=e.apply(n,t);return Ss(r)?r:n}}function ho(e){return function(t,n,r){var i=tt(t);if(!bs(t)){var a=jo(n,3);t=iu(t),n=function(e){return a(i[e],e,i)}}var s=e(t,n,r);return s>-1?i[a?t[s]:s]:o}}function po(e){return Io(function(t){var n=t.length,r=n,i=yr.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new it(u);if(i&&!s&&"wrapper"==Mo(a))var s=new yr([],!0)}for(r=s?r:n;++r<n;){var c=Mo(a=t[r]),l="wrapper"==c?Do(a):o;s=l&&Xo(l[0])&&l[1]==(C|_|E|T)&&!l[4].length&&1==l[9]?s[Mo(l[0])].apply(s,l[3]):1==a.length&&Xo(a)?s[c]():s.thru(a)}return function(){var e=arguments,r=e[0];if(s&&1==e.length&&ys(r))return s.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}function vo(e,t,n,i,a,s,u,c,l,f){var h=t&C,p=t&y,d=t&g,v=t&(_|w),m=t&k,b=d?o:fo(e);return function y(){for(var g=arguments.length,_=r(g),w=g;w--;)_[w]=arguments[w];if(v)var E=Lo(y),x=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(_,E);if(i&&(_=to(_,i,a,v)),s&&(_=no(_,s,u,v)),g-=x,v&&g<f){var C=An(_,E);return Eo(e,t,vo,y.placeholder,n,_,C,c,l,f-g)}var T=p?n:this,k=d?T[e]:e;return g=_.length,c?_=function(e,t){for(var n=e.length,r=Gn(t.length,n),i=ro(e);r--;){var a=t[r];e[r]=Go(a,n)?i[a]:o}return e}(_,c):m&&g>1&&_.reverse(),h&&l<g&&(_.length=l),this&&this!==Rt&&this instanceof y&&(k=b||fo(k)),k.apply(T,_)}}function mo(e,t){return function(n,r){return function(e,t,n,r){return Qr(e,function(e,i,o){t(r,n(e),i,o)}),r}(n,e,t(r),{})}}function yo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;"string"==typeof n||"string"==typeof r?(n=ji(n),r=ji(r)):(n=Li(n),r=Li(r)),i=e(n,r)}return i}}function go(e){return Io(function(t){return t=Zt(t,yn(jo())),Ci(function(n){var r=this;return e(t,function(e){return Ht(e,r,n)})})})}function bo(e,t){var n=(t=t===o?" ":ji(t)).length;if(n<2)return n?xi(t,e):t;var r=xi(t,Un(e/Pn(t)));return Tn(t)?Yi(Rn(r),0,e).join(""):r.slice(0,e)}function _o(e){return function(t,n,i){return i&&"number"!=typeof i&&Qo(t,n,i)&&(n=i=o),t=Bs(t),n===o?(n=t,t=0):n=Bs(n),function(e,t,n,i){for(var o=-1,a=Kn(Un((t-e)/(n||1)),0),s=r(a);a--;)s[i?a:++o]=e,e+=n;return s}(t,n,i=i===o?t<n?1:-1:Bs(i),e)}}function wo(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=Ws(t),n=Ws(n)),e(t,n)}}function Eo(e,t,n,r,i,a,s,u,c,l){var f=t&_;t|=f?E:x,(t&=~(f?x:E))&b||(t&=~(y|g));var h=[e,t,i,f?a:o,f?s:o,f?o:a,f?o:s,u,c,l],p=n.apply(o,h);return Xo(e)&&ra(p,h),p.placeholder=r,aa(p,e,t)}function xo(e){var t=et[e];return function(e,n){if(e=Ws(e),n=null==n?0:Gn(qs(n),292)){var r=(Hs(e)+"e").split("e");return+((r=(Hs(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Co=tr&&1/On(new tr([,-0]))[1]==R?function(e){return new tr(e)}:Mu;function To(e){return function(t){var n=Wo(t);return n==X?kn(t):n==ne?In(t):function(e,t){return Zt(t,function(t){return[t,e[t]]})}(t,e(t))}}function ko(e,t,n,i,a,s,c,l){var h=t&g;if(!h&&"function"!=typeof e)throw new it(u);var p=i?i.length:0;if(p||(t&=~(E|x),i=a=o),c=c===o?c:Kn(qs(c),0),l=l===o?l:qs(l),p-=a?a.length:0,t&x){var d=i,v=a;i=a=o}var m=h?o:Do(e),k=[e,t,n,i,a,d,v,s,c,l];if(m&&function(e,t){var n=e[1],r=t[1],i=n|r,o=i<(y|g|C),a=r==C&&n==_||r==C&&n==T&&e[7].length<=t[8]||r==(C|T)&&t[7].length<=t[8]&&n==_;if(!o&&!a)return e;r&y&&(e[2]=t[2],i|=n&y?0:b);var s=t[3];if(s){var u=e[3];e[3]=u?to(u,s,t[4]):s,e[4]=u?An(e[3],f):t[4]}(s=t[5])&&(u=e[5],e[5]=u?no(u,s,t[6]):s,e[6]=u?An(e[5],f):t[6]),(s=t[7])&&(e[7]=s),r&C&&(e[8]=null==e[8]?t[8]:Gn(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=i}(k,m),e=k[0],t=k[1],n=k[2],i=k[3],a=k[4],!(l=k[9]=k[9]===o?h?0:e.length:Kn(k[9]-p,0))&&t&(_|w)&&(t&=~(_|w)),t&&t!=y)S=t==_||t==w?function(e,t,n){var i=fo(e);return function a(){for(var s=arguments.length,u=r(s),c=s,l=Lo(a);c--;)u[c]=arguments[c];var f=s<3&&u[0]!==l&&u[s-1]!==l?[]:An(u,l);return(s-=f.length)<n?Eo(e,t,vo,a.placeholder,o,u,f,o,o,n-s):Ht(this&&this!==Rt&&this instanceof a?i:e,this,u)}}(e,t,l):t!=E&&t!=(y|E)||a.length?vo.apply(o,k):function(e,t,n,i){var o=t&y,a=fo(e);return function t(){for(var s=-1,u=arguments.length,c=-1,l=i.length,f=r(l+u),h=this&&this!==Rt&&this instanceof t?a:e;++c<l;)f[c]=i[c];for(;u--;)f[c++]=arguments[++s];return Ht(h,o?n:this,f)}}(e,t,n,i);else var S=function(e,t,n){var r=t&y,i=fo(e);return function t(){return(this&&this!==Rt&&this instanceof t?i:e).apply(r?n:this,arguments)}}(e,t,n);return aa((m?Ai:ra)(S,k),e,t)}function So(e,t,n,r){return e===o||ps(e,st[n])&&!lt.call(r,n)?t:e}function Ao(e,t,n,r,i,a){return Ss(e)&&Ss(t)&&(a.set(t,e),mi(e,t,o,Ao,a),a.delete(t)),e}function No(e){return Is(e)?o:e}function Oo(e,t,n,r,i,a){var s=n&v,u=e.length,c=t.length;if(u!=c&&!(s&&c>u))return!1;var l=a.get(e);if(l&&a.get(t))return l==t;var f=-1,h=!0,p=n&m?new Er:o;for(a.set(e,t),a.set(t,e);++f<u;){var d=e[f],y=t[f];if(r)var g=s?r(y,d,f,t,e,a):r(d,y,f,e,t,a);if(g!==o){if(g)continue;h=!1;break}if(p){if(!rn(t,function(e,t){if(!bn(p,t)&&(d===e||i(d,e,n,r,a)))return p.push(t)})){h=!1;break}}else if(d!==y&&!i(d,y,n,r,a)){h=!1;break}}return a.delete(e),a.delete(t),h}function Io(e){return oa(ta(e,o,ga),e+"")}function Po(e){return $r(e,iu,qo)}function Ro(e){return $r(e,ou,Vo)}var Do=ir?function(e){return ir.get(e)}:Mu;function Mo(e){for(var t=e.name+"",n=or[t],r=lt.call(or,t)?n.length:0;r--;){var i=n[r],o=i.func;if(null==o||o==e)return i.name}return t}function Lo(e){return(lt.call(dr,"placeholder")?dr:e).placeholder}function jo(){var e=dr.iteratee||Iu;return e=e===Iu?ci:e,arguments.length?e(arguments[0],arguments[1]):e}function Fo(e,t){var n,r,i=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?i["string"==typeof t?"string":"hash"]:i.map}function Uo(e){for(var t=iu(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,Zo(i)]}return t}function Bo(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return ui(n)?n:o}var qo=qn?function(e){return null==e?[]:(e=tt(e),Xt(qn(e),function(t){return Dt.call(e,t)}))}:Vu,Vo=qn?function(e){for(var t=[];e;)en(t,qo(e)),e=It(e);return t}:Vu,Wo=Zr;function zo(e,t,n){for(var r=-1,i=(t=Gi(t,e)).length,o=!1;++r<i;){var a=la(t[r]);if(!(o=null!=e&&n(e,a)))break;e=e[a]}return o||++r!=i?o:!!(i=null==e?0:e.length)&&ks(i)&&Go(a,i)&&(ys(e)||ms(e))}function Ho(e){return"function"!=typeof e.constructor||$o(e)?{}:vr(It(e))}function Ko(e){return ys(e)||ms(e)||!!(jt&&e&&e[jt])}function Go(e,t){var n=typeof e;return!!(t=null==t?D:t)&&("number"==n||"symbol"!=n&&Qe.test(e))&&e>-1&&e%1==0&&e<t}function Qo(e,t,n){if(!Ss(n))return!1;var r=typeof t;return!!("number"==r?bs(n)&&Go(t,n.length):"string"==r&&t in n)&&ps(n[t],e)}function Yo(e,t){if(ys(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!Ms(e))||Oe.test(e)||!Ne.test(e)||null!=t&&e in tt(t)}function Xo(e){var t=Mo(e),n=dr[t];if("function"!=typeof n||!(t in gr.prototype))return!1;if(e===n)return!0;var r=Do(n);return!!r&&e===r[0]}($n&&Wo(new $n(new ArrayBuffer(1)))!=ce||Zn&&Wo(new Zn)!=X||er&&"[object Promise]"!=Wo(er.resolve())||tr&&Wo(new tr)!=ne||nr&&Wo(new nr)!=ae)&&(Wo=function(e){var t=Zr(e),n=t==Z?e.constructor:o,r=n?fa(n):"";if(r)switch(r){case ar:return ce;case sr:return X;case ur:return"[object Promise]";case cr:return ne;case lr:return ae}return t});var Jo=ut?Cs:Wu;function $o(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||st)}function Zo(e){return e==e&&!Ss(e)}function ea(e,t){return function(n){return null!=n&&n[e]===t&&(t!==o||e in tt(n))}}function ta(e,t,n){return t=Kn(t===o?e.length-1:t,0),function(){for(var i=arguments,o=-1,a=Kn(i.length-t,0),s=r(a);++o<a;)s[o]=i[t+o];o=-1;for(var u=r(t+1);++o<t;)u[o]=i[o];return u[t]=n(s),Ht(e,this,u)}}function na(e,t){return t.length<2?e:Jr(e,Ii(t,0,-1))}var ra=sa(Ai),ia=Fn||function(e,t){return Rt.setTimeout(e,t)},oa=sa(Ni);function aa(e,t,n){var r=t+"";return oa(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(je,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Gt(B,function(n){var r="_."+n[0];t&n[1]&&!Jt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(Fe);return t?t[1].split(Ue):[]}(r),n)))}function sa(e){var t=0,n=0;return function(){var r=Qn(),i=O-(r-n);if(n=r,i>0){if(++t>=N)return arguments[0]}else t=0;return e.apply(o,arguments)}}function ua(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var a=Ei(n,i),s=e[a];e[a]=e[n],e[n]=s}return e.length=t,e}var ca=function(e){var t=ss(e,function(e){return n.size===l&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(Ie,function(e,n,r,i){t.push(r?i.replace(qe,"$1"):n||e)}),t});function la(e){if("string"==typeof e||Ms(e))return e;var t=e+"";return"0"==t&&1/e==-R?"-0":t}function fa(e){if(null!=e){try{return ct.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function ha(e){if(e instanceof gr)return e.clone();var t=new yr(e.__wrapped__,e.__chain__);return t.__actions__=ro(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var pa=Ci(function(e,t){return _s(e)?Ur(e,Hr(t,1,_s,!0)):[]}),da=Ci(function(e,t){var n=xa(t);return _s(n)&&(n=o),_s(e)?Ur(e,Hr(t,1,_s,!0),jo(n,2)):[]}),va=Ci(function(e,t){var n=xa(t);return _s(n)&&(n=o),_s(e)?Ur(e,Hr(t,1,_s,!0),o,n):[]});function ma(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qs(n);return i<0&&(i=Kn(r+i,0)),sn(e,jo(t,3),i)}function ya(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=qs(n),i=n<0?Kn(r+i,0):Gn(i,r-1)),sn(e,jo(t,3),i,!0)}function ga(e){return null!=e&&e.length?Hr(e,1):[]}function ba(e){return e&&e.length?e[0]:o}var _a=Ci(function(e){var t=Zt(e,Hi);return t.length&&t[0]===e[0]?ri(t):[]}),wa=Ci(function(e){var t=xa(e),n=Zt(e,Hi);return t===xa(n)?t=o:n.pop(),n.length&&n[0]===e[0]?ri(n,jo(t,2)):[]}),Ea=Ci(function(e){var t=xa(e),n=Zt(e,Hi);return(t="function"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?ri(n,o,t):[]});function xa(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Ca=Ci(Ta);function Ta(e,t){return e&&e.length&&t&&t.length?_i(e,t):e}var ka=Io(function(e,t){var n=null==e?0:e.length,r=Dr(e,t);return wi(e,Zt(t,function(e){return Go(e,n)?+e:e}).sort(eo)),r});function Sa(e){return null==e?e:Jn.call(e)}var Aa=Ci(function(e){return Fi(Hr(e,1,_s,!0))}),Na=Ci(function(e){var t=xa(e);return _s(t)&&(t=o),Fi(Hr(e,1,_s,!0),jo(t,2))}),Oa=Ci(function(e){var t=xa(e);return t="function"==typeof t?t:o,Fi(Hr(e,1,_s,!0),o,t)});function Ia(e){if(!e||!e.length)return[];var t=0;return e=Xt(e,function(e){if(_s(e))return t=Kn(e.length,t),!0}),mn(t,function(t){return Zt(e,hn(t))})}function Pa(e,t){if(!e||!e.length)return[];var n=Ia(e);return null==t?n:Zt(n,function(e){return Ht(t,o,e)})}var Ra=Ci(function(e,t){return _s(e)?Ur(e,t):[]}),Da=Ci(function(e){return Wi(Xt(e,_s))}),Ma=Ci(function(e){var t=xa(e);return _s(t)&&(t=o),Wi(Xt(e,_s),jo(t,2))}),La=Ci(function(e){var t=xa(e);return t="function"==typeof t?t:o,Wi(Xt(e,_s),o,t)}),ja=Ci(Ia);var Fa=Ci(function(e){var t=e.length,n=t>1?e[t-1]:o;return Pa(e,n="function"==typeof n?(e.pop(),n):o)});function Ua(e){var t=dr(e);return t.__chain__=!0,t}function Ba(e,t){return t(e)}var qa=Io(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return Dr(t,e)};return!(t>1||this.__actions__.length)&&r instanceof gr&&Go(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:Ba,args:[i],thisArg:o}),new yr(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var Va=oo(function(e,t,n){lt.call(e,n)?++e[n]:Rr(e,n,1)});var Wa=ho(ma),za=ho(ya);function Ha(e,t){return(ys(e)?Gt:Br)(e,jo(t,3))}function Ka(e,t){return(ys(e)?Qt:qr)(e,jo(t,3))}var Ga=oo(function(e,t,n){lt.call(e,n)?e[n].push(t):Rr(e,n,[t])});var Qa=Ci(function(e,t,n){var i=-1,o="function"==typeof t,a=bs(e)?r(e.length):[];return Br(e,function(e){a[++i]=o?Ht(t,e,n):ii(e,t,n)}),a}),Ya=oo(function(e,t,n){Rr(e,n,t)});function Xa(e,t){return(ys(e)?Zt:pi)(e,jo(t,3))}var Ja=oo(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var $a=Ci(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Qo(e,t[0],t[1])?t=[]:n>2&&Qo(t[0],t[1],t[2])&&(t=[t[0]]),gi(e,Hr(t,1),[])}),Za=jn||function(){return Rt.Date.now()};function es(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,ko(e,C,o,o,o,o,t)}function ts(e,t){var n;if("function"!=typeof t)throw new it(u);return e=qs(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var ns=Ci(function(e,t,n){var r=y;if(n.length){var i=An(n,Lo(ns));r|=E}return ko(e,r,t,n,i)}),rs=Ci(function(e,t,n){var r=y|g;if(n.length){var i=An(n,Lo(rs));r|=E}return ko(t,r,e,n,i)});function is(e,t,n){var r,i,a,s,c,l,f=0,h=!1,p=!1,d=!0;if("function"!=typeof e)throw new it(u);function v(t){var n=r,a=i;return r=i=o,f=t,s=e.apply(a,n)}function m(e){var n=e-l;return l===o||n>=t||n<0||p&&e-f>=a}function y(){var e=Za();if(m(e))return g(e);c=ia(y,function(e){var n=t-(e-l);return p?Gn(n,a-(e-f)):n}(e))}function g(e){return c=o,d&&r?v(e):(r=i=o,s)}function b(){var e=Za(),n=m(e);if(r=arguments,i=this,l=e,n){if(c===o)return function(e){return f=e,c=ia(y,t),h?v(e):s}(l);if(p)return c=ia(y,t),v(l)}return c===o&&(c=ia(y,t)),s}return t=Ws(t)||0,Ss(n)&&(h=!!n.leading,a=(p="maxWait"in n)?Kn(Ws(n.maxWait)||0,t):a,d="trailing"in n?!!n.trailing:d),b.cancel=function(){c!==o&&Xi(c),f=0,r=l=i=c=o},b.flush=function(){return c===o?s:g(Za())},b}var os=Ci(function(e,t){return Fr(e,1,t)}),as=Ci(function(e,t,n){return Fr(e,Ws(t)||0,n)});function ss(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new it(u);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)||o,a};return n.cache=new(ss.Cache||wr),n}function us(e){if("function"!=typeof e)throw new it(u);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}ss.Cache=wr;var cs=Qi(function(e,t){var n=(t=1==t.length&&ys(t[0])?Zt(t[0],yn(jo())):Zt(Hr(t,1),yn(jo()))).length;return Ci(function(r){for(var i=-1,o=Gn(r.length,n);++i<o;)r[i]=t[i].call(this,r[i]);return Ht(e,this,r)})}),ls=Ci(function(e,t){var n=An(t,Lo(ls));return ko(e,E,o,t,n)}),fs=Ci(function(e,t){var n=An(t,Lo(fs));return ko(e,x,o,t,n)}),hs=Io(function(e,t){return ko(e,T,o,o,o,t)});function ps(e,t){return e===t||e!=e&&t!=t}var ds=wo(ei),vs=wo(function(e,t){return e>=t}),ms=oi(function(){return arguments}())?oi:function(e){return As(e)&&lt.call(e,"callee")&&!Dt.call(e,"callee")},ys=r.isArray,gs=Ut?yn(Ut):function(e){return As(e)&&Zr(e)==ue};function bs(e){return null!=e&&ks(e.length)&&!Cs(e)}function _s(e){return As(e)&&bs(e)}var ws=Vn||Wu,Es=Bt?yn(Bt):function(e){return As(e)&&Zr(e)==H};function xs(e){if(!As(e))return!1;var t=Zr(e);return t==G||t==K||"string"==typeof e.message&&"string"==typeof e.name&&!Is(e)}function Cs(e){if(!Ss(e))return!1;var t=Zr(e);return t==Q||t==Y||t==W||t==ee}function Ts(e){return"number"==typeof e&&e==qs(e)}function ks(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=D}function Ss(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function As(e){return null!=e&&"object"==typeof e}var Ns=qt?yn(qt):function(e){return As(e)&&Wo(e)==X};function Os(e){return"number"==typeof e||As(e)&&Zr(e)==J}function Is(e){if(!As(e)||Zr(e)!=Z)return!1;var t=It(e);if(null===t)return!0;var n=lt.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&ct.call(n)==dt}var Ps=Vt?yn(Vt):function(e){return As(e)&&Zr(e)==te};var Rs=Wt?yn(Wt):function(e){return As(e)&&Wo(e)==ne};function Ds(e){return"string"==typeof e||!ys(e)&&As(e)&&Zr(e)==re}function Ms(e){return"symbol"==typeof e||As(e)&&Zr(e)==ie}var Ls=zt?yn(zt):function(e){return As(e)&&ks(e.length)&&!!kt[Zr(e)]};var js=wo(hi),Fs=wo(function(e,t){return e<=t});function Us(e){if(!e)return[];if(bs(e))return Ds(e)?Rn(e):ro(e);if(Ft&&e[Ft])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ft]());var t=Wo(e);return(t==X?kn:t==ne?On:pu)(e)}function Bs(e){return e?(e=Ws(e))===R||e===-R?(e<0?-1:1)*M:e==e?e:0:0===e?e:0}function qs(e){var t=Bs(e),n=t%1;return t==t?n?t-n:t:0}function Vs(e){return e?Mr(qs(e),0,j):0}function Ws(e){if("number"==typeof e)return e;if(Ms(e))return L;if(Ss(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=Ss(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(De,"");var n=He.test(e);return n||Ge.test(e)?Ot(e.slice(2),n?2:8):ze.test(e)?L:+e}function zs(e){return io(e,ou(e))}function Hs(e){return null==e?"":ji(e)}var Ks=ao(function(e,t){if($o(t)||bs(t))io(t,iu(t),e);else for(var n in t)lt.call(t,n)&&Nr(e,n,t[n])}),Gs=ao(function(e,t){io(t,ou(t),e)}),Qs=ao(function(e,t,n,r){io(t,ou(t),e,r)}),Ys=ao(function(e,t,n,r){io(t,iu(t),e,r)}),Xs=Io(Dr);var Js=Ci(function(e,t){e=tt(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Qo(t[0],t[1],i)&&(r=1);++n<r;)for(var a=t[n],s=ou(a),u=-1,c=s.length;++u<c;){var l=s[u],f=e[l];(f===o||ps(f,st[l])&&!lt.call(e,l))&&(e[l]=a[l])}return e}),$s=Ci(function(e){return e.push(o,Ao),Ht(su,o,e)});function Zs(e,t,n){var r=null==e?o:Jr(e,t);return r===o?n:r}function eu(e,t){return null!=e&&zo(e,t,ni)}var tu=mo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),e[t]=n},Su(Ou)),nu=mo(function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=pt.call(t)),lt.call(e,t)?e[t].push(n):e[t]=[n]},jo),ru=Ci(ii);function iu(e){return bs(e)?Cr(e):li(e)}function ou(e){return bs(e)?Cr(e,!0):fi(e)}var au=ao(function(e,t,n){mi(e,t,n)}),su=ao(function(e,t,n,r){mi(e,t,n,r)}),uu=Io(function(e,t){var n={};if(null==e)return n;var r=!1;t=Zt(t,function(t){return t=Gi(t,e),r||(r=t.length>1),t}),io(e,Ro(e),n),r&&(n=Lr(n,h|p|d,No));for(var i=t.length;i--;)Ui(n,t[i]);return n});var cu=Io(function(e,t){return null==e?{}:function(e,t){return bi(e,t,function(t,n){return eu(e,n)})}(e,t)});function lu(e,t){if(null==e)return{};var n=Zt(Ro(e),function(e){return[e]});return t=jo(t),bi(e,n,function(e,n){return t(e,n[0])})}var fu=To(iu),hu=To(ou);function pu(e){return null==e?[]:gn(e,iu(e))}var du=lo(function(e,t,n){return t=t.toLowerCase(),e+(n?vu(t):t)});function vu(e){return xu(Hs(e).toLowerCase())}function mu(e){return(e=Hs(e))&&e.replace(Ye,En).replace(bt,"")}var yu=lo(function(e,t,n){return e+(n?"-":"")+t.toLowerCase()}),gu=lo(function(e,t,n){return e+(n?" ":"")+t.toLowerCase()}),bu=co("toLowerCase");var _u=lo(function(e,t,n){return e+(n?"_":"")+t.toLowerCase()});var wu=lo(function(e,t,n){return e+(n?" ":"")+xu(t)});var Eu=lo(function(e,t,n){return e+(n?" ":"")+t.toUpperCase()}),xu=co("toUpperCase");function Cu(e,t,n){return e=Hs(e),(t=n?o:t)===o?function(e){return xt.test(e)}(e)?function(e){return e.match(wt)||[]}(e):function(e){return e.match(Be)||[]}(e):e.match(t)||[]}var Tu=Ci(function(e,t){try{return Ht(e,o,t)}catch(e){return xs(e)?e:new $e(e)}}),ku=Io(function(e,t){return Gt(t,function(t){t=la(t),Rr(e,t,ns(e[t],e))}),e});function Su(e){return function(){return e}}var Au=po(),Nu=po(!0);function Ou(e){return e}function Iu(e){return ci("function"==typeof e?e:Lr(e,h))}var Pu=Ci(function(e,t){return function(n){return ii(n,e,t)}}),Ru=Ci(function(e,t){return function(n){return ii(e,n,t)}});function Du(e,t,n){var r=iu(t),i=Xr(t,r);null!=n||Ss(t)&&(i.length||!r.length)||(n=t,t=e,e=this,i=Xr(t,iu(t)));var o=!(Ss(n)&&"chain"in n&&!n.chain),a=Cs(e);return Gt(i,function(n){var r=t[n];e[n]=r,a&&(e.prototype[n]=function(){var t=this.__chain__;if(o||t){var n=e(this.__wrapped__);return(n.__actions__=ro(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,en([this.value()],arguments))})}),e}function Mu(){}var Lu=go(Zt),ju=go(Yt),Fu=go(rn);function Uu(e){return Yo(e)?hn(la(e)):function(e){return function(t){return Jr(t,e)}}(e)}var Bu=_o(),qu=_o(!0);function Vu(){return[]}function Wu(){return!1}var zu=yo(function(e,t){return e+t},0),Hu=xo("ceil"),Ku=yo(function(e,t){return e/t},1),Gu=xo("floor");var Qu,Yu=yo(function(e,t){return e*t},1),Xu=xo("round"),Ju=yo(function(e,t){return e-t},0);return dr.after=function(e,t){if("function"!=typeof t)throw new it(u);return e=qs(e),function(){if(--e<1)return t.apply(this,arguments)}},dr.ary=es,dr.assign=Ks,dr.assignIn=Gs,dr.assignInWith=Qs,dr.assignWith=Ys,dr.at=Xs,dr.before=ts,dr.bind=ns,dr.bindAll=ku,dr.bindKey=rs,dr.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return ys(e)?e:[e]},dr.chain=Ua,dr.chunk=function(e,t,n){t=(n?Qo(e,t,n):t===o)?1:Kn(qs(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var a=0,s=0,u=r(Un(i/t));a<i;)u[s++]=Ii(e,a,a+=t);return u},dr.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i},dr.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],i=e;i--;)t[i-1]=arguments[i];return en(ys(n)?ro(n):[n],Hr(t,1))},dr.cond=function(e){var t=null==e?0:e.length,n=jo();return e=t?Zt(e,function(e){if("function"!=typeof e[1])throw new it(u);return[n(e[0]),e[1]]}):[],Ci(function(n){for(var r=-1;++r<t;){var i=e[r];if(Ht(i[0],this,n))return Ht(i[1],this,n)}})},dr.conforms=function(e){return function(e){var t=iu(e);return function(n){return jr(n,e,t)}}(Lr(e,h))},dr.constant=Su,dr.countBy=Va,dr.create=function(e,t){var n=vr(e);return null==t?n:Pr(n,t)},dr.curry=function e(t,n,r){var i=ko(t,_,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},dr.curryRight=function e(t,n,r){var i=ko(t,w,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},dr.debounce=is,dr.defaults=Js,dr.defaultsDeep=$s,dr.defer=os,dr.delay=as,dr.difference=pa,dr.differenceBy=da,dr.differenceWith=va,dr.drop=function(e,t,n){var r=null==e?0:e.length;return r?Ii(e,(t=n||t===o?1:qs(t))<0?0:t,r):[]},dr.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?Ii(e,0,(t=r-(t=n||t===o?1:qs(t)))<0?0:t):[]},dr.dropRightWhile=function(e,t){return e&&e.length?qi(e,jo(t,3),!0,!0):[]},dr.dropWhile=function(e,t){return e&&e.length?qi(e,jo(t,3),!0):[]},dr.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Qo(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=qs(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:qs(r))<0&&(r+=i),r=n>r?0:Vs(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},dr.filter=function(e,t){return(ys(e)?Xt:zr)(e,jo(t,3))},dr.flatMap=function(e,t){return Hr(Xa(e,t),1)},dr.flatMapDeep=function(e,t){return Hr(Xa(e,t),R)},dr.flatMapDepth=function(e,t,n){return n=n===o?1:qs(n),Hr(Xa(e,t),n)},dr.flatten=ga,dr.flattenDeep=function(e){return null!=e&&e.length?Hr(e,R):[]},dr.flattenDepth=function(e,t){return null!=e&&e.length?Hr(e,t=t===o?1:qs(t)):[]},dr.flip=function(e){return ko(e,k)},dr.flow=Au,dr.flowRight=Nu,dr.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var i=e[t];r[i[0]]=i[1]}return r},dr.functions=function(e){return null==e?[]:Xr(e,iu(e))},dr.functionsIn=function(e){return null==e?[]:Xr(e,ou(e))},dr.groupBy=Ga,dr.initial=function(e){return null!=e&&e.length?Ii(e,0,-1):[]},dr.intersection=_a,dr.intersectionBy=wa,dr.intersectionWith=Ea,dr.invert=tu,dr.invertBy=nu,dr.invokeMap=Qa,dr.iteratee=Iu,dr.keyBy=Ya,dr.keys=iu,dr.keysIn=ou,dr.map=Xa,dr.mapKeys=function(e,t){var n={};return t=jo(t,3),Qr(e,function(e,r,i){Rr(n,t(e,r,i),e)}),n},dr.mapValues=function(e,t){var n={};return t=jo(t,3),Qr(e,function(e,r,i){Rr(n,r,t(e,r,i))}),n},dr.matches=function(e){return di(Lr(e,h))},dr.matchesProperty=function(e,t){return vi(e,Lr(t,h))},dr.memoize=ss,dr.merge=au,dr.mergeWith=su,dr.method=Pu,dr.methodOf=Ru,dr.mixin=Du,dr.negate=us,dr.nthArg=function(e){return e=qs(e),Ci(function(t){return yi(t,e)})},dr.omit=uu,dr.omitBy=function(e,t){return lu(e,us(jo(t)))},dr.once=function(e){return ts(2,e)},dr.orderBy=function(e,t,n,r){return null==e?[]:(ys(t)||(t=null==t?[]:[t]),ys(n=r?o:n)||(n=null==n?[]:[n]),gi(e,t,n))},dr.over=Lu,dr.overArgs=cs,dr.overEvery=ju,dr.overSome=Fu,dr.partial=ls,dr.partialRight=fs,dr.partition=Ja,dr.pick=cu,dr.pickBy=lu,dr.property=Uu,dr.propertyOf=function(e){return function(t){return null==e?o:Jr(e,t)}},dr.pull=Ca,dr.pullAll=Ta,dr.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?_i(e,t,jo(n,2)):e},dr.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?_i(e,t,o,n):e},dr.pullAt=ka,dr.range=Bu,dr.rangeRight=qu,dr.rearg=hs,dr.reject=function(e,t){return(ys(e)?Xt:zr)(e,us(jo(t,3)))},dr.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,i=[],o=e.length;for(t=jo(t,3);++r<o;){var a=e[r];t(a,r,e)&&(n.push(a),i.push(r))}return wi(e,i),n},dr.rest=function(e,t){if("function"!=typeof e)throw new it(u);return Ci(e,t=t===o?t:qs(t))},dr.reverse=Sa,dr.sampleSize=function(e,t,n){return t=(n?Qo(e,t,n):t===o)?1:qs(t),(ys(e)?kr:ki)(e,t)},dr.set=function(e,t,n){return null==e?e:Si(e,t,n)},dr.setWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Si(e,t,n,r)},dr.shuffle=function(e){return(ys(e)?Sr:Oi)(e)},dr.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&"number"!=typeof n&&Qo(e,t,n)?(t=0,n=r):(t=null==t?0:qs(t),n=n===o?r:qs(n)),Ii(e,t,n)):[]},dr.sortBy=$a,dr.sortedUniq=function(e){return e&&e.length?Mi(e):[]},dr.sortedUniqBy=function(e,t){return e&&e.length?Mi(e,jo(t,2)):[]},dr.split=function(e,t,n){return n&&"number"!=typeof n&&Qo(e,t,n)&&(t=n=o),(n=n===o?j:n>>>0)?(e=Hs(e))&&("string"==typeof t||null!=t&&!Ps(t))&&!(t=ji(t))&&Tn(e)?Yi(Rn(e),0,n):e.split(t,n):[]},dr.spread=function(e,t){if("function"!=typeof e)throw new it(u);return t=null==t?0:Kn(qs(t),0),Ci(function(n){var r=n[t],i=Yi(n,0,t);return r&&en(i,r),Ht(e,this,i)})},dr.tail=function(e){var t=null==e?0:e.length;return t?Ii(e,1,t):[]},dr.take=function(e,t,n){return e&&e.length?Ii(e,0,(t=n||t===o?1:qs(t))<0?0:t):[]},dr.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?Ii(e,(t=r-(t=n||t===o?1:qs(t)))<0?0:t,r):[]},dr.takeRightWhile=function(e,t){return e&&e.length?qi(e,jo(t,3),!1,!0):[]},dr.takeWhile=function(e,t){return e&&e.length?qi(e,jo(t,3)):[]},dr.tap=function(e,t){return t(e),e},dr.throttle=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new it(u);return Ss(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),is(e,t,{leading:r,maxWait:t,trailing:i})},dr.thru=Ba,dr.toArray=Us,dr.toPairs=fu,dr.toPairsIn=hu,dr.toPath=function(e){return ys(e)?Zt(e,la):Ms(e)?[e]:ro(ca(Hs(e)))},dr.toPlainObject=zs,dr.transform=function(e,t,n){var r=ys(e),i=r||ws(e)||Ls(e);if(t=jo(t,4),null==n){var o=e&&e.constructor;n=i?r?new o:[]:Ss(e)&&Cs(o)?vr(It(e)):{}}return(i?Gt:Qr)(e,function(e,r,i){return t(n,e,r,i)}),n},dr.unary=function(e){return es(e,1)},dr.union=Aa,dr.unionBy=Na,dr.unionWith=Oa,dr.uniq=function(e){return e&&e.length?Fi(e):[]},dr.uniqBy=function(e,t){return e&&e.length?Fi(e,jo(t,2)):[]},dr.uniqWith=function(e,t){return t="function"==typeof t?t:o,e&&e.length?Fi(e,o,t):[]},dr.unset=function(e,t){return null==e||Ui(e,t)},dr.unzip=Ia,dr.unzipWith=Pa,dr.update=function(e,t,n){return null==e?e:Bi(e,t,Ki(n))},dr.updateWith=function(e,t,n,r){return r="function"==typeof r?r:o,null==e?e:Bi(e,t,Ki(n),r)},dr.values=pu,dr.valuesIn=function(e){return null==e?[]:gn(e,ou(e))},dr.without=Ra,dr.words=Cu,dr.wrap=function(e,t){return ls(Ki(t),e)},dr.xor=Da,dr.xorBy=Ma,dr.xorWith=La,dr.zip=ja,dr.zipObject=function(e,t){return zi(e||[],t||[],Nr)},dr.zipObjectDeep=function(e,t){return zi(e||[],t||[],Si)},dr.zipWith=Fa,dr.entries=fu,dr.entriesIn=hu,dr.extend=Gs,dr.extendWith=Qs,Du(dr,dr),dr.add=zu,dr.attempt=Tu,dr.camelCase=du,dr.capitalize=vu,dr.ceil=Hu,dr.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=Ws(n))==n?n:0),t!==o&&(t=(t=Ws(t))==t?t:0),Mr(Ws(e),t,n)},dr.clone=function(e){return Lr(e,d)},dr.cloneDeep=function(e){return Lr(e,h|d)},dr.cloneDeepWith=function(e,t){return Lr(e,h|d,t="function"==typeof t?t:o)},dr.cloneWith=function(e,t){return Lr(e,d,t="function"==typeof t?t:o)},dr.conformsTo=function(e,t){return null==t||jr(e,t,iu(t))},dr.deburr=mu,dr.defaultTo=function(e,t){return null==e||e!=e?t:e},dr.divide=Ku,dr.endsWith=function(e,t,n){e=Hs(e),t=ji(t);var r=e.length,i=n=n===o?r:Mr(qs(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},dr.eq=ps,dr.escape=function(e){return(e=Hs(e))&&Te.test(e)?e.replace(xe,xn):e},dr.escapeRegExp=function(e){return(e=Hs(e))&&Re.test(e)?e.replace(Pe,"\\$&"):e},dr.every=function(e,t,n){var r=ys(e)?Yt:Vr;return n&&Qo(e,t,n)&&(t=o),r(e,jo(t,3))},dr.find=Wa,dr.findIndex=ma,dr.findKey=function(e,t){return an(e,jo(t,3),Qr)},dr.findLast=za,dr.findLastIndex=ya,dr.findLastKey=function(e,t){return an(e,jo(t,3),Yr)},dr.floor=Gu,dr.forEach=Ha,dr.forEachRight=Ka,dr.forIn=function(e,t){return null==e?e:Kr(e,jo(t,3),ou)},dr.forInRight=function(e,t){return null==e?e:Gr(e,jo(t,3),ou)},dr.forOwn=function(e,t){return e&&Qr(e,jo(t,3))},dr.forOwnRight=function(e,t){return e&&Yr(e,jo(t,3))},dr.get=Zs,dr.gt=ds,dr.gte=vs,dr.has=function(e,t){return null!=e&&zo(e,t,ti)},dr.hasIn=eu,dr.head=ba,dr.identity=Ou,dr.includes=function(e,t,n,r){e=bs(e)?e:pu(e),n=n&&!r?qs(n):0;var i=e.length;return n<0&&(n=Kn(i+n,0)),Ds(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&un(e,t,n)>-1},dr.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=null==n?0:qs(n);return i<0&&(i=Kn(r+i,0)),un(e,t,i)},dr.inRange=function(e,t,n){return t=Bs(t),n===o?(n=t,t=0):n=Bs(n),function(e,t,n){return e>=Gn(t,n)&&e<Kn(t,n)}(e=Ws(e),t,n)},dr.invoke=ru,dr.isArguments=ms,dr.isArray=ys,dr.isArrayBuffer=gs,dr.isArrayLike=bs,dr.isArrayLikeObject=_s,dr.isBoolean=function(e){return!0===e||!1===e||As(e)&&Zr(e)==z},dr.isBuffer=ws,dr.isDate=Es,dr.isElement=function(e){return As(e)&&1===e.nodeType&&!Is(e)},dr.isEmpty=function(e){if(null==e)return!0;if(bs(e)&&(ys(e)||"string"==typeof e||"function"==typeof e.splice||ws(e)||Ls(e)||ms(e)))return!e.length;var t=Wo(e);if(t==X||t==ne)return!e.size;if($o(e))return!li(e).length;for(var n in e)if(lt.call(e,n))return!1;return!0},dr.isEqual=function(e,t){return ai(e,t)},dr.isEqualWith=function(e,t,n){var r=(n="function"==typeof n?n:o)?n(e,t):o;return r===o?ai(e,t,o,n):!!r},dr.isError=xs,dr.isFinite=function(e){return"number"==typeof e&&Wn(e)},dr.isFunction=Cs,dr.isInteger=Ts,dr.isLength=ks,dr.isMap=Ns,dr.isMatch=function(e,t){return e===t||si(e,t,Uo(t))},dr.isMatchWith=function(e,t,n){return n="function"==typeof n?n:o,si(e,t,Uo(t),n)},dr.isNaN=function(e){return Os(e)&&e!=+e},dr.isNative=function(e){if(Jo(e))throw new $e(s);return ui(e)},dr.isNil=function(e){return null==e},dr.isNull=function(e){return null===e},dr.isNumber=Os,dr.isObject=Ss,dr.isObjectLike=As,dr.isPlainObject=Is,dr.isRegExp=Ps,dr.isSafeInteger=function(e){return Ts(e)&&e>=-D&&e<=D},dr.isSet=Rs,dr.isString=Ds,dr.isSymbol=Ms,dr.isTypedArray=Ls,dr.isUndefined=function(e){return e===o},dr.isWeakMap=function(e){return As(e)&&Wo(e)==ae},dr.isWeakSet=function(e){return As(e)&&Zr(e)==se},dr.join=function(e,t){return null==e?"":zn.call(e,t)},dr.kebabCase=yu,dr.last=xa,dr.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=qs(n))<0?Kn(r+i,0):Gn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):sn(e,ln,i,!0)},dr.lowerCase=gu,dr.lowerFirst=bu,dr.lt=js,dr.lte=Fs,dr.max=function(e){return e&&e.length?Wr(e,Ou,ei):o},dr.maxBy=function(e,t){return e&&e.length?Wr(e,jo(t,2),ei):o},dr.mean=function(e){return fn(e,Ou)},dr.meanBy=function(e,t){return fn(e,jo(t,2))},dr.min=function(e){return e&&e.length?Wr(e,Ou,hi):o},dr.minBy=function(e,t){return e&&e.length?Wr(e,jo(t,2),hi):o},dr.stubArray=Vu,dr.stubFalse=Wu,dr.stubObject=function(){return{}},dr.stubString=function(){return""},dr.stubTrue=function(){return!0},dr.multiply=Yu,dr.nth=function(e,t){return e&&e.length?yi(e,qs(t)):o},dr.noConflict=function(){return Rt._===this&&(Rt._=vt),this},dr.noop=Mu,dr.now=Za,dr.pad=function(e,t,n){e=Hs(e);var r=(t=qs(t))?Pn(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return bo(Bn(i),n)+e+bo(Un(i),n)},dr.padEnd=function(e,t,n){e=Hs(e);var r=(t=qs(t))?Pn(e):0;return t&&r<t?e+bo(t-r,n):e},dr.padStart=function(e,t,n){e=Hs(e);var r=(t=qs(t))?Pn(e):0;return t&&r<t?bo(t-r,n)+e:e},dr.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Yn(Hs(e).replace(Me,""),t||0)},dr.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Qo(e,t,n)&&(t=n=o),n===o&&("boolean"==typeof t?(n=t,t=o):"boolean"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=Bs(e),t===o?(t=e,e=0):t=Bs(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=Xn();return Gn(e+i*(t-e+Nt("1e-"+((i+"").length-1))),t)}return Ei(e,t)},dr.reduce=function(e,t,n){var r=ys(e)?tn:dn,i=arguments.length<3;return r(e,jo(t,4),n,i,Br)},dr.reduceRight=function(e,t,n){var r=ys(e)?nn:dn,i=arguments.length<3;return r(e,jo(t,4),n,i,qr)},dr.repeat=function(e,t,n){return t=(n?Qo(e,t,n):t===o)?1:qs(t),xi(Hs(e),t)},dr.replace=function(){var e=arguments,t=Hs(e[0]);return e.length<3?t:t.replace(e[1],e[2])},dr.result=function(e,t,n){var r=-1,i=(t=Gi(t,e)).length;for(i||(i=1,e=o);++r<i;){var a=null==e?o:e[la(t[r])];a===o&&(r=i,a=n),e=Cs(a)?a.call(e):a}return e},dr.round=Xu,dr.runInContext=e,dr.sample=function(e){return(ys(e)?Tr:Ti)(e)},dr.size=function(e){if(null==e)return 0;if(bs(e))return Ds(e)?Pn(e):e.length;var t=Wo(e);return t==X||t==ne?e.size:li(e).length},dr.snakeCase=_u,dr.some=function(e,t,n){var r=ys(e)?rn:Pi;return n&&Qo(e,t,n)&&(t=o),r(e,jo(t,3))},dr.sortedIndex=function(e,t){return Ri(e,t)},dr.sortedIndexBy=function(e,t,n){return Di(e,t,jo(n,2))},dr.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=Ri(e,t);if(r<n&&ps(e[r],t))return r}return-1},dr.sortedLastIndex=function(e,t){return Ri(e,t,!0)},dr.sortedLastIndexBy=function(e,t,n){return Di(e,t,jo(n,2),!0)},dr.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=Ri(e,t,!0)-1;if(ps(e[n],t))return n}return-1},dr.startCase=wu,dr.startsWith=function(e,t,n){return e=Hs(e),n=null==n?0:Mr(qs(n),0,e.length),t=ji(t),e.slice(n,n+t.length)==t},dr.subtract=Ju,dr.sum=function(e){return e&&e.length?vn(e,Ou):0},dr.sumBy=function(e,t){return e&&e.length?vn(e,jo(t,2)):0},dr.template=function(e,t,n){var r=dr.templateSettings;n&&Qo(e,t,n)&&(t=o),e=Hs(e),t=Qs({},t,r,So);var i,a,s=Qs({},t.imports,r.imports,So),u=iu(s),c=gn(s,u),l=0,f=t.interpolate||Xe,h="__p += '",p=nt((t.escape||Xe).source+"|"+f.source+"|"+(f===Ae?Ve:Xe).source+"|"+(t.evaluate||Xe).source+"|$","g"),d="//# sourceURL="+("sourceURL"in t?t.sourceURL:"lodash.templateSources["+ ++Tt+"]")+"\n";e.replace(p,function(t,n,r,o,s,u){return r||(r=o),h+=e.slice(l,u).replace(Je,Cn),n&&(i=!0,h+="' +\n__e("+n+") +\n'"),s&&(a=!0,h+="';\n"+s+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ?  : __t) +\n'"),l=u+t.length,t}),h+="';\n";var v=t.variable;v||(h="with (obj) {\n"+h+"\n}\n"),h=(a?h.replace(be,""):h).replace(_e,"$1").replace(we,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = "+(i?", __e = _.escape":"")+(a?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, ) }\n":";\n")+h+"return __p\n}";var m=Tu(function(){return Ze(u,d+"return "+h).apply(o,c)});if(m.source=h,xs(m))throw m;return m},dr.times=function(e,t){if((e=qs(e))<1||e>D)return[];var n=j,r=Gn(e,j);t=jo(t),e-=j;for(var i=mn(r,t);++n<e;)t(n);return i},dr.toFinite=Bs,dr.toInteger=qs,dr.toLength=Vs,dr.toLower=function(e){return Hs(e).toLowerCase()},dr.toNumber=Ws,dr.toSafeInteger=function(e){return e?Mr(qs(e),-D,D):0===e?e:0},dr.toString=Hs,dr.toUpper=function(e){return Hs(e).toUpperCase()},dr.trim=function(e,t,n){if((e=Hs(e))&&(n||t===o))return e.replace(De,"");if(!e||!(t=ji(t)))return e;var r=Rn(e),i=Rn(t);return Yi(r,_n(r,i),wn(r,i)+1).join("")},dr.trimEnd=function(e,t,n){if((e=Hs(e))&&(n||t===o))return e.replace(Le,"");if(!e||!(t=ji(t)))return e;var r=Rn(e);return Yi(r,0,wn(r,Rn(t))+1).join("")},dr.trimStart=function(e,t,n){if((e=Hs(e))&&(n||t===o))return e.replace(Me,"");if(!e||!(t=ji(t)))return e;var r=Rn(e);return Yi(r,_n(r,Rn(t))).join("")},dr.truncate=function(e,t){var n=S,r=A;if(Ss(t)){var i="separator"in t?t.separator:i;n="length"in t?qs(t.length):n,r="omission"in t?ji(t.omission):r}var a=(e=Hs(e)).length;if(Tn(e)){var s=Rn(e);a=s.length}if(n>=a)return e;var u=n-Pn(r);if(u<1)return r;var c=s?Yi(s,0,u).join(""):e.slice(0,u);if(i===o)return c+r;if(s&&(u+=c.length-u),Ps(i)){if(e.slice(u).search(i)){var l,f=c;for(i.global||(i=nt(i.source,Hs(We.exec(i))+"g")),i.lastIndex=0;l=i.exec(f);)var h=l.index;c=c.slice(0,h===o?u:h)}}else if(e.indexOf(ji(i),u)!=u){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+r},dr.unescape=function(e){return(e=Hs(e))&&Ce.test(e)?e.replace(Ee,Dn):e},dr.uniqueId=function(e){var t=++ft;return Hs(e)+t},dr.upperCase=Eu,dr.upperFirst=xu,dr.each=Ha,dr.eachRight=Ka,dr.first=ba,Du(dr,(Qu={},Qr(dr,function(e,t){lt.call(dr.prototype,t)||(Qu[t]=e)}),Qu),{chain:!1}),dr.VERSION="4.17.10",Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(e){dr[e].placeholder=dr}),Gt(["drop","take"],function(e,t){gr.prototype[e]=function(n){n=n===o?1:Kn(qs(n),0);var r=this.__filtered__&&!t?new gr(this):this.clone();return r.__filtered__?r.__takeCount__=Gn(n,r.__takeCount__):r.__views__.push({size:Gn(n,j),type:e+(r.__dir__<0?"Right":"")}),r},gr.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}}),Gt(["filter","map","takeWhile"],function(e,t){var n=t+1,r=n==I||3==n;gr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:jo(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Gt(["head","last"],function(e,t){var n="take"+(t?"Right":"");gr.prototype[e]=function(){return this[n](1).value()[0]}}),Gt(["initial","tail"],function(e,t){var n="drop"+(t?"":"Right");gr.prototype[e]=function(){return this.__filtered__?new gr(this):this[n](1)}}),gr.prototype.compact=function(){return this.filter(Ou)},gr.prototype.find=function(e){return this.filter(e).head()},gr.prototype.findLast=function(e){return this.reverse().find(e)},gr.prototype.invokeMap=Ci(function(e,t){return"function"==typeof e?new gr(this):this.map(function(n){return ii(n,e,t)})}),gr.prototype.reject=function(e){return this.filter(us(jo(e)))},gr.prototype.slice=function(e,t){e=qs(e);var n=this;return n.__filtered__&&(e>0||t<0)?new gr(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=qs(t))<0?n.dropRight(-t):n.take(t-e)),n)},gr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},gr.prototype.toArray=function(){return this.take(j)},Qr(gr.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=dr[r?"take"+("last"==t?"Right":""):t],a=r||/^find/.test(t);i&&(dr.prototype[t]=function(){var t=this.__wrapped__,s=r?[1]:arguments,u=t instanceof gr,c=s[0],l=u||ys(t),f=function(e){var t=i.apply(dr,en([e],s));return r&&h?t[0]:t};l&&n&&"function"==typeof c&&1!=c.length&&(u=l=!1);var h=this.__chain__,p=!!this.__actions__.length,d=a&&!h,v=u&&!p;if(!a&&l){t=v?t:new gr(this);var m=e.apply(t,s);return m.__actions__.push({func:Ba,args:[f],thisArg:o}),new yr(m,h)}return d&&v?e.apply(this,s):(m=this.thru(f),d?r?m.value()[0]:m.value():m)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(e){var t=ot[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);dr.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(ys(i)?i:[],e)}return this[n](function(n){return t.apply(ys(n)?n:[],e)})}}),Qr(gr.prototype,function(e,t){var n=dr[t];if(n){var r=n.name+"";(or[r]||(or[r]=[])).push({name:t,func:n})}}),or[vo(o,g).name]=[{name:"wrapper",func:o}],gr.prototype.clone=function(){var e=new gr(this.__wrapped__);return e.__actions__=ro(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=ro(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=ro(this.__views__),e},gr.prototype.reverse=function(){if(this.__filtered__){var e=new gr(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},gr.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=ys(e),r=t<0,i=n?e.length:0,o=function(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=Gn(t,e+a);break;case"takeRight":e=Kn(e,t-a)}}return{start:e,end:t}}(0,i,this.__views__),a=o.start,s=o.end,u=s-a,c=r?s:a-1,l=this.__iteratees__,f=l.length,h=0,p=Gn(u,this.__takeCount__);if(!n||!r&&i==u&&p==u)return Vi(e,this.__actions__);var d=[];e:for(;u--&&h<p;){for(var v=-1,m=e[c+=t];++v<f;){var y=l[v],g=y.iteratee,b=y.type,_=g(m);if(b==P)m=_;else if(!_){if(b==I)continue e;break e}}d[h++]=m}return d},dr.prototype.at=qa,dr.prototype.chain=function(){return Ua(this)},dr.prototype.commit=function(){return new yr(this.value(),this.__chain__)},dr.prototype.next=function(){this.__values__===o&&(this.__values__=Us(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},dr.prototype.plant=function(e){for(var t,n=this;n instanceof mr;){var r=ha(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},dr.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof gr){var t=e;return this.__actions__.length&&(t=new gr(this)),(t=t.reverse()).__actions__.push({func:Ba,args:[Sa],thisArg:o}),new yr(t,this.__chain__)}return this.thru(Sa)},dr.prototype.toJSON=dr.prototype.valueOf=dr.prototype.value=function(){return Vi(this.__wrapped__,this.__actions__)},dr.prototype.first=dr.prototype.head,Ft&&(dr.prototype[Ft]=function(){return this}),dr}();Rt._=Mn,(i=function(){return Mn}.call(t,n,t,r))===o||(r.exports=i)}).call(this)}).call(this,n(69),n(124)(e))},function(e,t,n){var r=n(131);e.exports=function(e,t,n){var i=e.length;return n=void 0===n?i:n,!t&&n>=i?e:r(e,t,n)}},function(e,t,n){var r=n(481),i=n(267),o=n(176);e.exports=function(e){return o(i(e,void 0,r),e+"")}},function(e,t,n){var r=n(252);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},function(e,t){e.exports=function(e){return e.placeholder}},function(e,t,n){var r=n(91),i=n(167);function o(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}o.prototype=r(i.prototype),o.prototype.constructor=o,e.exports=o},function(e,t,n){var r=n(237),i=n(231),o=r?function(e){return r.get(e)}:i;e.exports=o},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(91),i=n(167),o=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=o,this.__views__=[]}a.prototype=r(i.prototype),a.prototype.constructor=a,e.exports=a},function(e,t,n){var r=n(258),i=n(248),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return o.call(e,t)}))}:i;e.exports=s},function(e,t,n){var r=n(557),i=n(30);e.exports=function e(t,n,o,a,s){return t===n||(null==t||null==n||!i(t)&&!i(n)?t!=t&&n!=n:r(t,n,o,a,e,s))}},function(e,t,n){var r=n(139),i=n(562),o=n(561),a=n(560),s=n(559),u=n(558);function c(e){var t=this.__data__=new r(e);this.size=t.size}c.prototype.clear=i,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=s,c.prototype.set=u,e.exports=c},function(e,t,n){var r=n(570),i=n(28);e.exports=function(e,t){return e&&r(e,t,i)}},function(e,t,n){var r=n(125),i=1/0,o=1.7976931348623157e308;e.exports=function(e){return e?(e=r(e))===i||e===-i?(e<0?-1:1)*o:e==e?e:0:0===e?e:0}},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}},function(e,t){e.exports=function(e,t,n){for(var r=-1,i=null==e?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}},function(e,t,n){var r=n(584),i=n(265)(r);e.exports=i},function(e,t){var n=9007199254740991;e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=n}},function(e,t,n){var r=n(68)(n(34),"Map");e.exports=r},function(e,t,n){var r=n(609),i=n(593),o=n(591),a=n(590),s=n(589);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(18),i=n(71),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(r(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!i(e))||a.test(e)||!o.test(e)||null!=t&&e in Object(t)}},function(e,t,n){var r=n(51),i=n(26),o=n(82);e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},function(e,t,n){var r=n(60),i=n(26),o=n(145),a=n(183),s=n(59).f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t,n){t.f=n(43)},function(e,t,n){n(635);for(var r=n(60),i=n(83),o=n(81),a=n(43)("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),u=0;u<s.length;u++){var c=s[u],l=r[c],f=l&&l.prototype;f&&!f[a]&&i(f,a,c),o[c]=o.Array}},function(e,t,n){var r=n(57),i=n(98),o=n(191)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var r=n(59).f,i=n(57),o=n(43)("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},function(e,t,n){var r=n(58),i=n(637),o=n(189),a=n(191)("IE_PROTO"),s=function(){},u=function(){var e,t=n(282)("iframe"),r=o.length;for(t.style.display="none",n(636).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),u=e.F;r--;)delete u.prototype[o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=r(e),n=new s,s.prototype=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var r=n(26),i=n(60),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(e.exports=function(e,t){return o[e]||(o[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(145)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var r=n(190)("keys"),i=n(144);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(74);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},function(e,t,n){var r=n(647);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},function(e,t,n){"use strict";function r(e){return function(){return e}}var i=function(){};i.thatReturns=r,i.thatReturnsFalse=r(!1),i.thatReturnsTrue=r(!0),i.thatReturnsNull=r(null),i.thatReturnsThis=function(){return this},i.thatReturnsArgument=function(e){return e},e.exports=i},function(e,t,n){"use strict";var r=function(e){};e.exports=function(e,t,n,i,o,a,s,u){if(r(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,i,o,a,s,u],f=0;(c=new Error(t.replace(/%s/g,function(){return l[f++]}))).name="Invariant Violation"}throw c.framesToPop=1,c}}},function(e,t,n){var r=n(466),i=n(49);e.exports=function(e){return e&&e.length?r(e,i):0}},function(e,t){e.exports=function(e){for(var t=-1,n=null==e?0:e.length,r=0,i=[];++t<n;){var o=e[t];o&&(i[r++]=o)}return i}},function(e,t,n){var r=n(260),i=n(35),o=n(48),a=Math.max;e.exports=function(e,t,n){var s=null==e?0:e.length;if(!s)return-1;var u=null==n?0:o(n);return u<0&&(u=a(s+u,0)),r(e,i(t,3),u)}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty;function i(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}e.exports=function(e,t){if(i(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!r.call(t,n[a])||!i(e[n[a]],t[n[a]]))return!1;return!0}},function(e,t,n){var r=n(95),i=n(56),o=n(220),a=n(126),s=i(function(e){return o(r(e,1,a,!0))});e.exports=s},function(e,t,n){var r=n(121),i=n(55),o=n(39),a=n(101),s=n(432),u="[object Map]",c="[object Set]";e.exports=function(e){if(null==e)return 0;if(o(e))return a(e)?s(e):e.length;var t=i(e);return t==u||t==c?e.size:r(e).length}},function(e,t,n){var r=n(23)("min",n(465),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("sum",n(199),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("compact",n(200),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){"use strict";n.r(t);var r=function(e,t){return e<t?-1:e>t?1:e>=t?0:NaN},i=function(e){var t;return 1===e.length&&(t=e,e=function(e,n){return r(t(e),n)}),{left:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)<0?r=o+1:i=o}return r},right:function(t,n,r,i){for(null==r&&(r=0),null==i&&(i=t.length);r<i;){var o=r+i>>>1;e(t[o],n)>0?i=o:r=o+1}return r}}};var o=i(r),a=o.right,s=o.left,u=a,c=function(e,t){null==t&&(t=l);for(var n=0,r=e.length-1,i=e[0],o=new Array(r<0?0:r);n<r;)o[n]=t(i,i=e[++n]);return o};function l(e,t){return[e,t]}var f=function(e,t,n){var r,i,o,a,s=e.length,u=t.length,c=new Array(s*u);for(null==n&&(n=l),r=o=0;r<s;++r)for(a=e[r],i=0;i<u;++i,++o)c[o]=n(a,t[i]);return c},h=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},p=function(e){return null===e?NaN:+e},d=function(e,t){var n,r,i=e.length,o=0,a=-1,s=0,u=0;if(null==t)for(;++a<i;)isNaN(n=p(e[a]))||(u+=(r=n-s)*(n-(s+=r/++o)));else for(;++a<i;)isNaN(n=p(t(e[a],a,e)))||(u+=(r=n-s)*(n-(s+=r/++o)));if(o>1)return u/(o-1)},v=function(e,t){var n=d(e,t);return n?Math.sqrt(n):n},m=function(e,t){var n,r,i,o=e.length,a=-1;if(null==t){for(;++a<o;)if(null!=(n=e[a])&&n>=n)for(r=i=n;++a<o;)null!=(n=e[a])&&(r>n&&(r=n),i<n&&(i=n))}else for(;++a<o;)if(null!=(n=t(e[a],a,e))&&n>=n)for(r=i=n;++a<o;)null!=(n=t(e[a],a,e))&&(r>n&&(r=n),i<n&&(i=n));return[r,i]},y=Array.prototype,g=y.slice,b=y.map,_=function(e){return function(){return e}},w=function(e){return e},E=function(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),o=new Array(i);++r<i;)o[r]=e+r*n;return o},x=Math.sqrt(50),C=Math.sqrt(10),T=Math.sqrt(2),k=function(e,t,n){var r,i,o,a,s=-1;if(n=+n,(e=+e)===(t=+t)&&n>0)return[e];if((r=t<e)&&(i=e,e=t,t=i),0===(a=S(e,t,n))||!isFinite(a))return[];if(a>0)for(e=Math.ceil(e/a),t=Math.floor(t/a),o=new Array(i=Math.ceil(t-e+1));++s<i;)o[s]=(e+s)*a;else for(e=Math.floor(e*a),t=Math.ceil(t*a),o=new Array(i=Math.ceil(e-t+1));++s<i;)o[s]=(e-s)/a;return r&&o.reverse(),o};function S(e,t,n){var r=(t-e)/Math.max(0,n),i=Math.floor(Math.log(r)/Math.LN10),o=r/Math.pow(10,i);return i>=0?(o>=x?10:o>=C?5:o>=T?2:1)*Math.pow(10,i):-Math.pow(10,-i)/(o>=x?10:o>=C?5:o>=T?2:1)}function A(e,t,n){var r=Math.abs(t-e)/Math.max(0,n),i=Math.pow(10,Math.floor(Math.log(r)/Math.LN10)),o=r/i;return o>=x?i*=10:o>=C?i*=5:o>=T&&(i*=2),t<e?-i:i}var N=function(e){return Math.ceil(Math.log(e.length)/Math.LN2)+1},O=function(){var e=w,t=m,n=N;function r(r){var i,o,a=r.length,s=new Array(a);for(i=0;i<a;++i)s[i]=e(r[i],i,r);var c=t(s),l=c[0],f=c[1],h=n(s,l,f);Array.isArray(h)||(h=A(l,f,h),h=E(Math.ceil(l/h)*h,Math.floor(f/h)*h,h));for(var p=h.length;h[0]<=l;)h.shift(),--p;for(;h[p-1]>f;)h.pop(),--p;var d,v=new Array(p+1);for(i=0;i<=p;++i)(d=v[i]=[]).x0=i>0?h[i-1]:l,d.x1=i<p?h[i]:f;for(i=0;i<a;++i)l<=(o=s[i])&&o<=f&&v[u(h,o,0,p)].push(r[i]);return v}return r.value=function(t){return arguments.length?(e="function"==typeof t?t:_(t),r):e},r.domain=function(e){return arguments.length?(t="function"==typeof e?e:_([e[0],e[1]]),r):t},r.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?_(g.call(e)):_(e),r):n},r},I=function(e,t,n){if(null==n&&(n=p),r=e.length){if((t=+t)<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,i=(r-1)*t,o=Math.floor(i),a=+n(e[o],o,e);return a+(+n(e[o+1],o+1,e)-a)*(i-o)}},P=function(e,t,n){return e=b.call(e,p).sort(r),Math.ceil((n-t)/(2*(I(e,.75)-I(e,.25))*Math.pow(e.length,-1/3)))},R=function(e,t,n){return Math.ceil((n-t)/(3.5*v(e)*Math.pow(e.length,-1/3)))},D=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&n>r&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&n>r&&(r=n);return r},M=function(e,t){var n,r=e.length,i=r,o=-1,a=0;if(null==t)for(;++o<r;)isNaN(n=p(e[o]))?--i:a+=n;else for(;++o<r;)isNaN(n=p(t(e[o],o,e)))?--i:a+=n;if(i)return a/i},L=function(e,t){var n,i=e.length,o=-1,a=[];if(null==t)for(;++o<i;)isNaN(n=p(e[o]))||a.push(n);else for(;++o<i;)isNaN(n=p(t(e[o],o,e)))||a.push(n);return I(a.sort(r),.5)},j=function(e){for(var t,n,r,i=e.length,o=-1,a=0;++o<i;)a+=e[o].length;for(n=new Array(a);--i>=0;)for(t=(r=e[i]).length;--t>=0;)n[--a]=r[t];return n},F=function(e,t){var n,r,i=e.length,o=-1;if(null==t){for(;++o<i;)if(null!=(n=e[o])&&n>=n)for(r=n;++o<i;)null!=(n=e[o])&&r>n&&(r=n)}else for(;++o<i;)if(null!=(n=t(e[o],o,e))&&n>=n)for(r=n;++o<i;)null!=(n=t(e[o],o,e))&&r>n&&(r=n);return r},U=function(e,t){for(var n=t.length,r=new Array(n);n--;)r[n]=e[t[n]];return r},B=function(e,t){if(n=e.length){var n,i,o=0,a=0,s=e[a];for(null==t&&(t=r);++o<n;)(t(i=e[o],s)<0||0!==t(s,s))&&(s=i,a=o);return 0===t(s,s)?a:void 0}},q=function(e,t,n){for(var r,i,o=(null==n?e.length:n)-(t=null==t?0:+t);o;)i=Math.random()*o--|0,r=e[o+t],e[o+t]=e[i+t],e[i+t]=r;return e},V=function(e,t){var n,r=e.length,i=-1,o=0;if(null==t)for(;++i<r;)(n=+e[i])&&(o+=n);else for(;++i<r;)(n=+t(e[i],i,e))&&(o+=n);return o},W=function(e){if(!(i=e.length))return[];for(var t=-1,n=F(e,z),r=new Array(n);++t<n;)for(var i,o=-1,a=r[t]=new Array(i);++o<i;)a[o]=e[o][t];return r};function z(e){return e.length}var H=function(){return W(arguments)},K=Array.prototype.slice,G=function(e){return e},Q=1,Y=2,X=3,J=4,$=1e-6;function Z(e){return"translate("+(e+.5)+",0)"}function ee(e){return"translate(0,"+(e+.5)+")"}function te(){return!this.__axis}function ne(e,t){var n=[],r=null,i=null,o=6,a=6,s=3,u=e===Q||e===J?-1:1,c=e===J||e===Y?"x":"y",l=e===Q||e===X?Z:ee;function f(f){var h=null==r?t.ticks?t.ticks.apply(t,n):t.domain():r,p=null==i?t.tickFormat?t.tickFormat.apply(t,n):G:i,d=Math.max(o,0)+s,v=t.range(),m=+v[0]+.5,y=+v[v.length-1]+.5,g=(t.bandwidth?function(e){var t=Math.max(0,e.bandwidth()-1)/2;return e.round()&&(t=Math.round(t)),function(n){return+e(n)+t}}:function(e){return function(t){return+e(t)}})(t.copy()),b=f.selection?f.selection():f,_=b.selectAll(".domain").data([null]),w=b.selectAll(".tick").data(h,t).order(),E=w.exit(),x=w.enter().append("g").attr("class","tick"),C=w.select("line"),T=w.select("text");_=_.merge(_.enter().insert("path",".tick").attr("class","domain").attr("stroke","#000")),w=w.merge(x),C=C.merge(x.append("line").attr("stroke","#000").attr(c+"2",u*o)),T=T.merge(x.append("text").attr("fill","#000").attr(c,u*d).attr("dy",e===Q?"0em":e===X?"0.71em":"0.32em")),f!==b&&(_=_.transition(f),w=w.transition(f),C=C.transition(f),T=T.transition(f),E=E.transition(f).attr("opacity",$).attr("transform",function(e){return isFinite(e=g(e))?l(e):this.getAttribute("transform")}),x.attr("opacity",$).attr("transform",function(e){var t=this.parentNode.__axis;return l(t&&isFinite(t=t(e))?t:g(e))})),E.remove(),_.attr("d",e===J||e==Y?"M"+u*a+","+m+"H0.5V"+y+"H"+u*a:"M"+m+","+u*a+"V0.5H"+y+"V"+u*a),w.attr("opacity",1).attr("transform",function(e){return l(g(e))}),C.attr(c+"2",u*o),T.attr(c,u*d).text(p),b.filter(te).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",e===Y?"start":e===J?"end":"middle"),b.each(function(){this.__axis=g})}return f.scale=function(e){return arguments.length?(t=e,f):t},f.ticks=function(){return n=K.call(arguments),f},f.tickArguments=function(e){return arguments.length?(n=null==e?[]:K.call(e),f):n.slice()},f.tickValues=function(e){return arguments.length?(r=null==e?null:K.call(e),f):r&&r.slice()},f.tickFormat=function(e){return arguments.length?(i=e,f):i},f.tickSize=function(e){return arguments.length?(o=a=+e,f):o},f.tickSizeInner=function(e){return arguments.length?(o=+e,f):o},f.tickSizeOuter=function(e){return arguments.length?(a=+e,f):a},f.tickPadding=function(e){return arguments.length?(s=+e,f):s},f}function re(e){return ne(Q,e)}function ie(e){return ne(Y,e)}function oe(e){return ne(X,e)}function ae(e){return ne(J,e)}var se={value:function(){}};function ue(){for(var e,t=0,n=arguments.length,r={};t<n;++t){if(!(e=arguments[t]+"")||e in r)throw new Error("illegal type: "+e);r[e]=[]}return new ce(r)}function ce(e){this._=e}function le(e,t){for(var n,r=0,i=e.length;r<i;++r)if((n=e[r]).name===t)return n.value}function fe(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=se,e=e.slice(0,r).concat(e.slice(r+1));break}return null!=n&&e.push({name:t,value:n}),e}ce.prototype=ue.prototype={constructor:ce,on:function(e,t){var n,r,i=this._,o=(r=i,(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!r.hasOwnProperty(e))throw new Error("unknown type: "+e);return{type:e,name:t}})),a=-1,s=o.length;if(!(arguments.length<2)){if(null!=t&&"function"!=typeof t)throw new Error("invalid callback: "+t);for(;++a<s;)if(n=(e=o[a]).type)i[n]=fe(i[n],e.name,t);else if(null==t)for(n in i)i[n]=fe(i[n],e.name,null);return this}for(;++a<s;)if((n=(e=o[a]).type)&&(n=le(i[n],e.name)))return n},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new ce(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,r,i=new Array(n),o=0;o<n;++o)i[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(o=0,n=(r=this._[e]).length;o<n;++o)r[o].value.apply(t,i)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var r=this._[e],i=0,o=r.length;i<o;++i)r[i].value.apply(t,n)}};var he=ue,pe="http://www.w3.org/1999/xhtml",de={svg:"http://www.w3.org/2000/svg",xhtml:pe,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},ve=function(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),de.hasOwnProperty(t)?{space:de[t],local:e}:e};var me=function(e){var t=ve(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===pe&&t.documentElement.namespaceURI===pe?t.createElement(e):t.createElementNS(n,e)}})(t)};function ye(){}var ge=function(e){return null==e?ye:function(){return this.querySelector(e)}};function be(){return[]}var _e=function(e){return null==e?be:function(){return this.querySelectorAll(e)}},we=function(e){return function(){return this.matches(e)}};if("undefined"!=typeof document){var Ee=document.documentElement;if(!Ee.matches){var xe=Ee.webkitMatchesSelector||Ee.msMatchesSelector||Ee.mozMatchesSelector||Ee.oMatchesSelector;we=function(e){return function(){return xe.call(this,e)}}}}var Ce=we,Te=function(e){return new Array(e.length)};function ke(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ke.prototype={constructor:ke,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};var Se="$";function Ae(e,t,n,r,i,o){for(var a,s=0,u=t.length,c=o.length;s<c;++s)(a=t[s])?(a.__data__=o[s],r[s]=a):n[s]=new ke(e,o[s]);for(;s<u;++s)(a=t[s])&&(i[s]=a)}function Ne(e,t,n,r,i,o,a){var s,u,c,l={},f=t.length,h=o.length,p=new Array(f);for(s=0;s<f;++s)(u=t[s])&&(p[s]=c=Se+a.call(u,u.__data__,s,t),c in l?i[s]=u:l[c]=u);for(s=0;s<h;++s)(u=l[c=Se+a.call(e,o[s],s,o)])?(r[s]=u,u.__data__=o[s],l[c]=null):n[s]=new ke(e,o[s]);for(s=0;s<f;++s)(u=t[s])&&l[p[s]]===u&&(i[s]=u)}function Oe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var Ie=function(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView};function Pe(e,t){return e.style.getPropertyValue(t)||Ie(e).getComputedStyle(e,null).getPropertyValue(t)}function Re(e){return e.trim().split(/^|\s+/)}function De(e){return e.classList||new Me(e)}function Me(e){this._node=e,this._names=Re(e.getAttribute("class")||"")}function Le(e,t){for(var n=De(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function je(e,t){for(var n=De(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}Me.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Fe(){this.textContent=""}function Ue(){this.innerHTML=""}function Be(){this.nextSibling&&this.parentNode.appendChild(this)}function qe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function Ve(){return null}function We(){var e=this.parentNode;e&&e.removeChild(this)}function ze(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}function He(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}var Ke={},Ge=null;"undefined"!=typeof document&&("onmouseenter"in document.documentElement||(Ke={mouseenter:"mouseover",mouseleave:"mouseout"}));function Qe(e,t,n){return e=Ye(e,t,n),function(t){var n=t.relatedTarget;n&&(n===this||8&n.compareDocumentPosition(this))||e.call(this,t)}}function Ye(e,t,n){return function(r){var i=Ge;Ge=r;try{e.call(this,this.__data__,t,n)}finally{Ge=i}}}function Xe(e){return function(){var t=this.__on;if(t){for(var n,r=0,i=-1,o=t.length;r<o;++r)n=t[r],e.type&&n.type!==e.type||n.name!==e.name?t[++i]=n:this.removeEventListener(n.type,n.listener,n.capture);++i?t.length=i:delete this.__on}}}function Je(e,t,n){var r=Ke.hasOwnProperty(e.type)?Qe:Ye;return function(i,o,a){var s,u=this.__on,c=r(t,o,a);if(u)for(var l=0,f=u.length;l<f;++l)if((s=u[l]).type===e.type&&s.name===e.name)return this.removeEventListener(s.type,s.listener,s.capture),this.addEventListener(s.type,s.listener=c,s.capture=n),void(s.value=t);this.addEventListener(e.type,c,n),s={type:e.type,name:e.name,value:t,listener:c,capture:n},u?u.push(s):this.__on=[s]}}function $e(e,t,n,r){var i=Ge;e.sourceEvent=Ge,Ge=e;try{return t.apply(n,r)}finally{Ge=i}}function Ze(e,t,n){var r=Ie(e),i=r.CustomEvent;"function"==typeof i?i=new i(t,n):(i=r.document.createEvent("Event"),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}var et=[null];function tt(e,t){this._groups=e,this._parents=t}function nt(){return new tt(document.documentElement,et)}tt.prototype=nt.prototype={constructor:tt,select:function(e){"function"!=typeof e&&(e=ge(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a,s=t[i],u=s.length,c=r[i]=new Array(u),l=0;l<u;++l)(o=s[l])&&(a=e.call(o,o.__data__,l,s))&&("__data__"in o&&(a.__data__=o.__data__),c[l]=a);return new tt(r,this._parents)},selectAll:function(e){"function"!=typeof e&&(e=_e(e));for(var t=this._groups,n=t.length,r=[],i=[],o=0;o<n;++o)for(var a,s=t[o],u=s.length,c=0;c<u;++c)(a=s[c])&&(r.push(e.call(a,a.__data__,c,s)),i.push(a));return new tt(r,i)},filter:function(e){"function"!=typeof e&&(e=Ce(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new tt(r,this._parents)},data:function(e,t){if(!e)return d=new Array(this.size()),l=-1,this.each(function(e){d[++l]=e}),d;var n,r=t?Ne:Ae,i=this._parents,o=this._groups;"function"!=typeof e&&(n=e,e=function(){return n});for(var a=o.length,s=new Array(a),u=new Array(a),c=new Array(a),l=0;l<a;++l){var f=i[l],h=o[l],p=h.length,d=e.call(f,f&&f.__data__,l,i),v=d.length,m=u[l]=new Array(v),y=s[l]=new Array(v);r(f,h,m,y,c[l]=new Array(p),d,t);for(var g,b,_=0,w=0;_<v;++_)if(g=m[_]){for(_>=w&&(w=_+1);!(b=y[w])&&++w<v;);g._next=b||null}}return(s=new tt(s,i))._enter=u,s._exit=c,s},enter:function(){return new tt(this._enter||this._groups.map(Te),this._parents)},exit:function(){return new tt(this._exit||this._groups.map(Te),this._parents)},merge:function(e){for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=t[s],l=n[s],f=c.length,h=a[s]=new Array(f),p=0;p<f;++p)(u=c[p]||l[p])&&(h[p]=u);for(;s<r;++s)a[s]=t[s];return new tt(a,this._parents)},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r,i=e[t],o=i.length-1,a=i[o];--o>=0;)(r=i[o])&&(a&&a!==r.nextSibling&&a.parentNode.insertBefore(r,a),a=r);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=Oe);for(var n=this._groups,r=n.length,i=new Array(r),o=0;o<r;++o){for(var a,s=n[o],u=s.length,c=i[o]=new Array(u),l=0;l<u;++l)(a=s[l])&&(c[l]=a);c.sort(t)}return new tt(i,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){var e=new Array(this.size()),t=-1;return this.each(function(){e[++t]=this}),e},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,o=r.length;i<o;++i){var a=r[i];if(a)return a}return null},size:function(){var e=0;return this.each(function(){++e}),e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i,o=t[n],a=0,s=o.length;a<s;++a)(i=o[a])&&e.call(i,i.__data__,a,o);return this},attr:function(e,t){var n=ve(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var r=t.apply(this,arguments);null==r?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,null==n?"":n)):Pe(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=Re(e+"");if(arguments.length<2){for(var r=De(this.node()),i=-1,o=n.length;++i<o;)if(!r.contains(n[i]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?Le:je)(this,e)}}:t?function(e){return function(){Le(this,e)}}:function(e){return function(){je(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?Fe:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=null==t?"":t}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?Ue:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=null==t?"":t}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(Be)},lower:function(){return this.each(qe)},append:function(e){var t="function"==typeof e?e:me(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:me(e),r=null==t?Ve:"function"==typeof t?t:ge(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})},remove:function(){return this.each(We)},clone:function(e){return this.select(e?He:ze)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var r,i,o=function(e){return e.trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}(e+""),a=o.length;if(!(arguments.length<2)){for(s=t?Je:Xe,null==n&&(n=!1),r=0;r<a;++r)this.each(s(o[r],t,n));return this}var s=this.node().__on;if(s)for(var u,c=0,l=s.length;c<l;++c)for(r=0,u=s[c];r<a;++r)if((i=o[r]).type===u.type&&i.name===u.name)return u.value},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return Ze(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return Ze(this,e,t)}})(e,t))}};var rt=nt,it=function(e){return"string"==typeof e?new tt(document.querySelector(e),[document.documentElement]):new tt(e,et)},ot=function(e){return it(me(e).call(document.documentElement))},at=0;function st(){return new ut}function ut(){this._="@"+(++at).toString(36)}ut.prototype=st.prototype={constructor:ut,get:function(e){for(var t=this._;!(t in e);)if(!(e=e.parentNode))return;return e[t]},set:function(e,t){return e[this._]=t},remove:function(e){return this._ in e&&delete e[this._]},toString:function(){return this._}};var ct=function(){for(var e,t=Ge;e=t.sourceEvent;)t=e;return t},lt=function(e,t){var n=e.ownerSVGElement||e;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=t.clientX,r.y=t.clientY,[(r=r.matrixTransform(e.getScreenCTM().inverse())).x,r.y]}var i=e.getBoundingClientRect();return[t.clientX-i.left-e.clientLeft,t.clientY-i.top-e.clientTop]},ft=function(e){var t=ct();return t.changedTouches&&(t=t.changedTouches[0]),lt(e,t)},ht=function(e){return"string"==typeof e?new tt([document.querySelectorAll(e)],[document.documentElement]):new tt([null==e?[]:e],et)},pt=function(e,t,n){arguments.length<3&&(n=t,t=ct().changedTouches);for(var r,i=0,o=t?t.length:0;i<o;++i)if((r=t[i]).identifier===n)return lt(e,r);return null},dt=function(e,t){null==t&&(t=ct().touches);for(var n=0,r=t?t.length:0,i=new Array(r);n<r;++n)i[n]=lt(e,t[n]);return i};function vt(){Ge.stopImmediatePropagation()}var mt=function(){Ge.preventDefault(),Ge.stopImmediatePropagation()},yt=function(e){var t=e.document.documentElement,n=it(e).on("dragstart.drag",mt,!0);"onselectstart"in t?n.on("selectstart.drag",mt,!0):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")};function gt(e,t){var n=e.document.documentElement,r=it(e).on("dragstart.drag",null);t&&(r.on("click.drag",mt,!0),setTimeout(function(){r.on("click.drag",null)},0)),"onselectstart"in n?r.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var bt=function(e){return function(){return e}};function _t(e,t,n,r,i,o,a,s,u,c){this.target=e,this.type=t,this.subject=n,this.identifier=r,this.active=i,this.x=o,this.y=a,this.dx=s,this.dy=u,this._=c}function wt(){return!Ge.button}function Et(){return this.parentNode}function xt(e){return null==e?{x:Ge.x,y:Ge.y}:e}function Ct(){return"ontouchstart"in this}_t.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var Tt=function(){var e,t,n,r,i=wt,o=Et,a=xt,s=Ct,u={},c=he("start","drag","end"),l=0,f=0;function h(e){e.on("mousedown.drag",p).filter(s).on("touchstart.drag",m).on("touchmove.drag",y).on("touchend.drag touchcancel.drag",g).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function p(){if(!r&&i.apply(this,arguments)){var a=b("mouse",o.apply(this,arguments),ft,this,arguments);a&&(it(Ge.view).on("mousemove.drag",d,!0).on("mouseup.drag",v,!0),yt(Ge.view),vt(),n=!1,e=Ge.clientX,t=Ge.clientY,a("start"))}}function d(){if(mt(),!n){var r=Ge.clientX-e,i=Ge.clientY-t;n=r*r+i*i>f}u.mouse("drag")}function v(){it(Ge.view).on("mousemove.drag mouseup.drag",null),gt(Ge.view,n),mt(),u.mouse("end")}function m(){if(i.apply(this,arguments)){var e,t,n=Ge.changedTouches,r=o.apply(this,arguments),a=n.length;for(e=0;e<a;++e)(t=b(n[e].identifier,r,pt,this,arguments))&&(vt(),t("start"))}}function y(){var e,t,n=Ge.changedTouches,r=n.length;for(e=0;e<r;++e)(t=u[n[e].identifier])&&(mt(),t("drag"))}function g(){var e,t,n=Ge.changedTouches,i=n.length;for(r&&clearTimeout(r),r=setTimeout(function(){r=null},500),e=0;e<i;++e)(t=u[n[e].identifier])&&(vt(),t("end"))}function b(e,t,n,r,i){var o,s,f,p=n(t,e),d=c.copy();if($e(new _t(h,"beforestart",o,e,l,p[0],p[1],0,0,d),function(){return null!=(Ge.subject=o=a.apply(r,i))&&(s=o.x-p[0]||0,f=o.y-p[1]||0,!0)}))return function a(c){var v,m=p;switch(c){case"start":u[e]=a,v=l++;break;case"end":delete u[e],--l;case"drag":p=n(t,e),v=l}$e(new _t(h,c,o,e,v,p[0]+s,p[1]+f,p[0]-m[0],p[1]-m[1],d),d.apply,d,[c,r,i])}}return h.filter=function(e){return arguments.length?(i="function"==typeof e?e:bt(!!e),h):i},h.container=function(e){return arguments.length?(o="function"==typeof e?e:bt(e),h):o},h.subject=function(e){return arguments.length?(a="function"==typeof e?e:bt(e),h):a},h.touchable=function(e){return arguments.length?(s="function"==typeof e?e:bt(!!e),h):s},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(f=(e=+e)*e,h):Math.sqrt(f)},h},kt=function(e,t,n){e.prototype=t.prototype=n,n.constructor=e};function St(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function At(){}var Nt="\\s*([+-]?\\d+)\\s*",Ot="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*",It="\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Pt=/^#([0-9a-f]{3})$/,Rt=/^#([0-9a-f]{6})$/,Dt=new RegExp("^rgb\\("+[Nt,Nt,Nt]+"\\)$"),Mt=new RegExp("^rgb\\("+[It,It,It]+"\\)$"),Lt=new RegExp("^rgba\\("+[Nt,Nt,Nt,Ot]+"\\)$"),jt=new RegExp("^rgba\\("+[It,It,It,Ot]+"\\)$"),Ft=new RegExp("^hsl\\("+[Ot,It,It]+"\\)$"),Ut=new RegExp("^hsla\\("+[Ot,It,It,Ot]+"\\)$"),Bt={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function qt(e){var t;return e=(e+"").trim().toLowerCase(),(t=Pt.exec(e))?new Kt((t=parseInt(t[1],16))>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):(t=Rt.exec(e))?Vt(parseInt(t[1],16)):(t=Dt.exec(e))?new Kt(t[1],t[2],t[3],1):(t=Mt.exec(e))?new Kt(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Lt.exec(e))?Wt(t[1],t[2],t[3],t[4]):(t=jt.exec(e))?Wt(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ft.exec(e))?Qt(t[1],t[2]/100,t[3]/100,1):(t=Ut.exec(e))?Qt(t[1],t[2]/100,t[3]/100,t[4]):Bt.hasOwnProperty(e)?Vt(Bt[e]):"transparent"===e?new Kt(NaN,NaN,NaN,0):null}function Vt(e){return new Kt(e>>16&255,e>>8&255,255&e,1)}function Wt(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kt(e,t,n,r)}function zt(e){return e instanceof At||(e=qt(e)),e?new Kt((e=e.rgb()).r,e.g,e.b,e.opacity):new Kt}function Ht(e,t,n,r){return 1===arguments.length?zt(e):new Kt(e,t,n,null==r?1:r)}function Kt(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Gt(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?"0":"")+e.toString(16)}function Qt(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Xt(e,t,n,r)}function Yt(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Xt)return new Xt(e.h,e.s,e.l,e.opacity);if(e instanceof At||(e=qt(e)),!e)return new Xt;if(e instanceof Xt)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),a=NaN,s=o-i,u=(o+i)/2;return s?(a=t===o?(n-r)/s+6*(n<r):n===o?(r-t)/s+2:(t-n)/s+4,s/=u<.5?o+i:2-o-i,a*=60):s=u>0&&u<1?0:a,new Xt(a,s,u,e.opacity)}(e):new Xt(e,t,n,null==r?1:r)}function Xt(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Jt(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}kt(At,qt,{displayable:function(){return this.rgb().displayable()},hex:function(){return this.rgb().hex()},toString:function(){return this.rgb()+""}}),kt(Kt,Ht,St(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Kt(this.r*e,this.g*e,this.b*e,this.opacity)},rgb:function(){return this},displayable:function(){return 0<=this.r&&this.r<=255&&0<=this.g&&this.g<=255&&0<=this.b&&this.b<=255&&0<=this.opacity&&this.opacity<=1},hex:function(){return"#"+Gt(this.r)+Gt(this.g)+Gt(this.b)},toString:function(){var e=this.opacity;return(1===(e=isNaN(e)?1:Math.max(0,Math.min(1,e)))?"rgb(":"rgba(")+Math.max(0,Math.min(255,Math.round(this.r)||0))+", "+Math.max(0,Math.min(255,Math.round(this.g)||0))+", "+Math.max(0,Math.min(255,Math.round(this.b)||0))+(1===e?")":", "+e+")")}})),kt(Xt,Yt,St(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Xt(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Xt(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=this.h%360+360*(this.h<0),t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new Kt(Jt(e>=240?e-240:e+120,i,r),Jt(e,i,r),Jt(e<120?e+240:e-120,i,r),this.opacity)},displayable:function(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1}}));var $t=Math.PI/180,Zt=180/Math.PI,en=.96422,tn=1,nn=.82521,rn=4/29,on=6/29,an=3*on*on,sn=on*on*on;function un(e){if(e instanceof fn)return new fn(e.l,e.a,e.b,e.opacity);if(e instanceof bn){if(isNaN(e.h))return new fn(e.l,0,0,e.opacity);var t=e.h*$t;return new fn(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}e instanceof Kt||(e=zt(e));var n,r,i=vn(e.r),o=vn(e.g),a=vn(e.b),s=hn((.2225045*i+.7168786*o+.0606169*a)/tn);return i===o&&o===a?n=r=s:(n=hn((.4360747*i+.3850649*o+.1430804*a)/en),r=hn((.0139322*i+.0971045*o+.7141733*a)/nn)),new fn(116*s-16,500*(n-s),200*(s-r),e.opacity)}function cn(e,t){return new fn(e,0,0,null==t?1:t)}function ln(e,t,n,r){return 1===arguments.length?un(e):new fn(e,t,n,null==r?1:r)}function fn(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function hn(e){return e>sn?Math.pow(e,1/3):e/an+rn}function pn(e){return e>on?e*e*e:an*(e-rn)}function dn(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function vn(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function mn(e){if(e instanceof bn)return new bn(e.h,e.c,e.l,e.opacity);if(e instanceof fn||(e=un(e)),0===e.a&&0===e.b)return new bn(NaN,0,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zt;return new bn(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function yn(e,t,n,r){return 1===arguments.length?mn(e):new bn(n,t,e,null==r?1:r)}function gn(e,t,n,r){return 1===arguments.length?mn(e):new bn(e,t,n,null==r?1:r)}function bn(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}kt(fn,ln,St(At,{brighter:function(e){return new fn(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker:function(e){return new fn(this.l-18*(null==e?1:e),this.a,this.b,this.opacity)},rgb:function(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return new Kt(dn(3.1338561*(t=en*pn(t))-1.6168667*(e=tn*pn(e))-.4906146*(n=nn*pn(n))),dn(-.9787684*t+1.9161415*e+.033454*n),dn(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),kt(bn,gn,St(At,{brighter:function(e){return new bn(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker:function(e){return new bn(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb:function(){return un(this).rgb()}}));var _n=-.29227,wn=-.90649,En=1.97294,xn=En*wn,Cn=1.78277*En,Tn=1.78277*_n- -.14861*wn;function kn(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Sn)return new Sn(e.h,e.s,e.l,e.opacity);e instanceof Kt||(e=zt(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(Tn*r+xn*t-Cn*n)/(Tn+xn-Cn),o=r-i,a=(En*(n-i)-_n*o)/wn,s=Math.sqrt(a*a+o*o)/(En*i*(1-i)),u=s?Math.atan2(a,o)*Zt-120:NaN;return new Sn(u<0?u+360:u,s,i,e.opacity)}(e):new Sn(e,t,n,null==r?1:r)}function Sn(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function An(e,t,n,r,i){var o=e*e,a=o*e;return((1-3*e+3*o-a)*t+(4-6*o+3*a)*n+(1+3*e+3*o-3*a)*r+a*i)/6}kt(Sn,kn,St(At,{brighter:function(e){return e=null==e?1/.7:Math.pow(1/.7,e),new Sn(this.h,this.s,this.l*e,this.opacity)},darker:function(e){return e=null==e?.7:Math.pow(.7,e),new Sn(this.h,this.s,this.l*e,this.opacity)},rgb:function(){var e=isNaN(this.h)?0:(this.h+120)*$t,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new Kt(255*(t+n*(-.14861*r+1.78277*i)),255*(t+n*(_n*r+wn*i)),255*(t+n*(En*r)),this.opacity)}}));var Nn=function(e){var t=e.length-1;return function(n){var r=n<=0?n=0:n>=1?(n=1,t-1):Math.floor(n*t),i=e[r],o=e[r+1],a=r>0?e[r-1]:2*i-o,s=r<t-1?e[r+2]:2*o-i;return An((n-r/t)*t,a,i,o,s)}},On=function(e){var t=e.length;return function(n){var r=Math.floor(((n%=1)<0?++n:n)*t),i=e[(r+t-1)%t],o=e[r%t],a=e[(r+1)%t],s=e[(r+2)%t];return An((n-r/t)*t,i,o,a,s)}},In=function(e){return function(){return e}};function Pn(e,t){return function(n){return e+n*t}}function Rn(e,t){var n=t-e;return n?Pn(e,n>180||n<-180?n-360*Math.round(n/360):n):In(isNaN(e)?t:e)}function Dn(e){return 1==(e=+e)?Mn:function(t,n){return n-t?function(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}(t,n,e):In(isNaN(t)?n:t)}}function Mn(e,t){var n=t-e;return n?Pn(e,n):In(isNaN(e)?t:e)}var Ln=function e(t){var n=Dn(t);function r(e,t){var r=n((e=Ht(e)).r,(t=Ht(t)).r),i=n(e.g,t.g),o=n(e.b,t.b),a=Mn(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=o(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);function jn(e){return function(t){var n,r,i=t.length,o=new Array(i),a=new Array(i),s=new Array(i);for(n=0;n<i;++n)r=Ht(t[n]),o[n]=r.r||0,a[n]=r.g||0,s[n]=r.b||0;return o=e(o),a=e(a),s=e(s),r.opacity=1,function(e){return r.r=o(e),r.g=a(e),r.b=s(e),r+""}}}var Fn=jn(Nn),Un=jn(On),Bn=function(e,t){var n,r=t?t.length:0,i=e?Math.min(r,e.length):0,o=new Array(i),a=new Array(r);for(n=0;n<i;++n)o[n]=Jn(e[n],t[n]);for(;n<r;++n)a[n]=t[n];return function(e){for(n=0;n<i;++n)a[n]=o[n](e);return a}},qn=function(e,t){var n=new Date;return t-=e=+e,function(r){return n.setTime(e+t*r),n}},Vn=function(e,t){return t-=e=+e,function(n){return e+t*n}},Wn=function(e,t){var n,r={},i={};for(n in null!==e&&"object"==typeof e||(e={}),null!==t&&"object"==typeof t||(t={}),t)n in e?r[n]=Jn(e[n],t[n]):i[n]=t[n];return function(e){for(n in r)i[n]=r[n](e);return i}},zn=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Hn=new RegExp(zn.source,"g");var Kn,Gn,Qn,Yn,Xn=function(e,t){var n,r,i,o=zn.lastIndex=Hn.lastIndex=0,a=-1,s=[],u=[];for(e+="",t+="";(n=zn.exec(e))&&(r=Hn.exec(t));)(i=r.index)>o&&(i=t.slice(o,i),s[a]?s[a]+=i:s[++a]=i),(n=n[0])===(r=r[0])?s[a]?s[a]+=r:s[++a]=r:(s[++a]=null,u.push({i:a,x:Vn(n,r)})),o=Hn.lastIndex;return o<t.length&&(i=t.slice(o),s[a]?s[a]+=i:s[++a]=i),s.length<2?u[0]?function(e){return function(t){return e(t)+""}}(u[0].x):function(e){return function(){return e}}(t):(t=u.length,function(e){for(var n,r=0;r<t;++r)s[(n=u[r]).i]=n.x(e);return s.join("")})},Jn=function(e,t){var n,r=typeof t;return null==t||"boolean"===r?In(t):("number"===r?Vn:"string"===r?(n=qt(t))?(t=n,Ln):Xn:t instanceof qt?Ln:t instanceof Date?qn:Array.isArray(t)?Bn:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?Wn:Vn)(e,t)},$n=function(e,t){return t-=e=+e,function(n){return Math.round(e+t*n)}},Zn=180/Math.PI,er={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},tr=function(e,t,n,r,i,o){var a,s,u;return(a=Math.sqrt(e*e+t*t))&&(e/=a,t/=a),(u=e*n+t*r)&&(n-=e*u,r-=t*u),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,u/=s),e*r<t*n&&(e=-e,t=-t,u=-u,a=-a),{translateX:i,translateY:o,rotate:Math.atan2(t,e)*Zn,skewX:Math.atan(u)*Zn,scaleX:a,scaleY:s}};function nr(e,t,n,r){function i(e){return e.length?e.pop()+" ":""}return function(o,a){var s=[],u=[];return o=e(o),a=e(a),function(e,r,i,o,a,s){if(e!==i||r!==o){var u=a.push("translate(",null,t,null,n);s.push({i:u-4,x:Vn(e,i)},{i:u-2,x:Vn(r,o)})}else(i||o)&&a.push("translate("+i+t+o+n)}(o.translateX,o.translateY,a.translateX,a.translateY,s,u),function(e,t,n,o){e!==t?(e-t>180?t+=360:t-e>180&&(e+=360),o.push({i:n.push(i(n)+"rotate(",null,r)-2,x:Vn(e,t)})):t&&n.push(i(n)+"rotate("+t+r)}(o.rotate,a.rotate,s,u),function(e,t,n,o){e!==t?o.push({i:n.push(i(n)+"skewX(",null,r)-2,x:Vn(e,t)}):t&&n.push(i(n)+"skewX("+t+r)}(o.skewX,a.skewX,s,u),function(e,t,n,r,o,a){if(e!==n||t!==r){var s=o.push(i(o)+"scale(",null,",",null,")");a.push({i:s-4,x:Vn(e,n)},{i:s-2,x:Vn(t,r)})}else 1===n&&1===r||o.push(i(o)+"scale("+n+","+r+")")}(o.scaleX,o.scaleY,a.scaleX,a.scaleY,s,u),o=a=null,function(e){for(var t,n=-1,r=u.length;++n<r;)s[(t=u[n]).i]=t.x(e);return s.join("")}}}var rr=nr(function(e){return"none"===e?er:(Kn||(Kn=document.createElement("DIV"),Gn=document.documentElement,Qn=document.defaultView),Kn.style.transform=e,e=Qn.getComputedStyle(Gn.appendChild(Kn),null).getPropertyValue("transform"),Gn.removeChild(Kn),e=e.slice(7,-1).split(","),tr(+e[0],+e[1],+e[2],+e[3],+e[4],+e[5]))},"px, ","px)","deg)"),ir=nr(function(e){return null==e?er:(Yn||(Yn=document.createElementNS("http://www.w3.org/2000/svg","g")),Yn.setAttribute("transform",e),(e=Yn.transform.baseVal.consolidate())?(e=e.matrix,tr(e.a,e.b,e.c,e.d,e.e,e.f)):er)},", ",")",")"),or=Math.SQRT2;function ar(e){return((e=Math.exp(e))+1/e)/2}var sr=function(e,t){var n,r,i=e[0],o=e[1],a=e[2],s=t[0],u=t[1],c=t[2],l=s-i,f=u-o,h=l*l+f*f;if(h<1e-12)r=Math.log(c/a)/or,n=function(e){return[i+e*l,o+e*f,a*Math.exp(or*e*r)]};else{var p=Math.sqrt(h),d=(c*c-a*a+4*h)/(2*a*2*p),v=(c*c-a*a-4*h)/(2*c*2*p),m=Math.log(Math.sqrt(d*d+1)-d),y=Math.log(Math.sqrt(v*v+1)-v);r=(y-m)/or,n=function(e){var t,n=e*r,s=ar(m),u=a/(2*p)*(s*(t=or*n+m,((t=Math.exp(2*t))-1)/(t+1))-function(e){return((e=Math.exp(e))-1/e)/2}(m));return[i+u*l,o+u*f,a*s/ar(or*n+m)]}}return n.duration=1e3*r,n};function ur(e){return function(t,n){var r=e((t=Yt(t)).h,(n=Yt(n)).h),i=Mn(t.s,n.s),o=Mn(t.l,n.l),a=Mn(t.opacity,n.opacity);return function(e){return t.h=r(e),t.s=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var cr=ur(Rn),lr=ur(Mn);function fr(e,t){var n=Mn((e=ln(e)).l,(t=ln(t)).l),r=Mn(e.a,t.a),i=Mn(e.b,t.b),o=Mn(e.opacity,t.opacity);return function(t){return e.l=n(t),e.a=r(t),e.b=i(t),e.opacity=o(t),e+""}}function hr(e){return function(t,n){var r=e((t=gn(t)).h,(n=gn(n)).h),i=Mn(t.c,n.c),o=Mn(t.l,n.l),a=Mn(t.opacity,n.opacity);return function(e){return t.h=r(e),t.c=i(e),t.l=o(e),t.opacity=a(e),t+""}}}var pr=hr(Rn),dr=hr(Mn);function vr(e){return function t(n){function r(t,r){var i=e((t=kn(t)).h,(r=kn(r)).h),o=Mn(t.s,r.s),a=Mn(t.l,r.l),s=Mn(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=o(e),t.l=a(Math.pow(e,n)),t.opacity=s(e),t+""}}return n=+n,r.gamma=t,r}(1)}var mr=vr(Rn),yr=vr(Mn);function gr(e,t){for(var n=0,r=t.length-1,i=t[0],o=new Array(r<0?0:r);n<r;)o[n]=e(i,i=t[++n]);return function(e){var t=Math.max(0,Math.min(r-1,Math.floor(e*=r)));return o[t](e-t)}}var br,_r,wr=function(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e(r/(t-1));return n},Er=0,xr=0,Cr=0,Tr=1e3,kr=0,Sr=0,Ar=0,Nr="object"==typeof performance&&performance.now?performance:Date,Or="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ir(){return Sr||(Or(Pr),Sr=Nr.now()+Ar)}function Pr(){Sr=0}function Rr(){this._call=this._time=this._next=null}function Dr(e,t,n){var r=new Rr;return r.restart(e,t,n),r}function Mr(){Ir(),++Er;for(var e,t=br;t;)(e=Sr-t._time)>=0&&t._call.call(null,e),t=t._next;--Er}function Lr(){Sr=(kr=Nr.now())+Ar,Er=xr=0;try{Mr()}finally{Er=0,function(){var e,t,n=br,r=1/0;for(;n;)n._call?(r>n._time&&(r=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:br=t);_r=e,Fr(r)}(),Sr=0}}function jr(){var e=Nr.now(),t=e-kr;t>Tr&&(Ar-=t,kr=e)}function Fr(e){Er||(xr&&(xr=clearTimeout(xr)),e-Sr>24?(e<1/0&&(xr=setTimeout(Lr,e-Nr.now()-Ar)),Cr&&(Cr=clearInterval(Cr))):(Cr||(kr=Nr.now(),Cr=setInterval(jr,Tr)),Er=1,Or(Lr)))}Rr.prototype=Dr.prototype={constructor:Rr,restart:function(e,t,n){if("function"!=typeof e)throw new TypeError("callback is not a function");n=(null==n?Ir():+n)+(null==t?0:+t),this._next||_r===this||(_r?_r._next=this:br=this,_r=this),this._call=e,this._time=n,Fr()},stop:function(){this._call&&(this._call=null,this._time=1/0,Fr())}};var Ur=function(e,t,n){var r=new Rr;return t=null==t?0:+t,r.restart(function(n){r.stop(),e(n+t)},t,n),r},Br=function(e,t,n){var r=new Rr,i=t;return null==t?(r.restart(e,t,n),r):(t=+t,n=null==n?Ir():+n,r.restart(function o(a){a+=i,r.restart(o,i+=t,n),e(a)},t,n),r)},qr=he("start","end","interrupt"),Vr=[],Wr=0,zr=1,Hr=2,Kr=3,Gr=4,Qr=5,Yr=6,Xr=function(e,t,n,r,i,o){var a=e.__transition;if(a){if(n in a)return}else e.__transition={};!function(e,t,n){var r,i=e.__transition;function o(u){var c,l,f,h;if(n.state!==zr)return s();for(c in i)if((h=i[c]).name===n.name){if(h.state===Kr)return Ur(o);h.state===Gr?(h.state=Yr,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete i[c]):+c<t&&(h.state=Yr,h.timer.stop(),delete i[c])}if(Ur(function(){n.state===Kr&&(n.state=Gr,n.timer.restart(a,n.delay,n.time),a(u))}),n.state=Hr,n.on.call("start",e,e.__data__,n.index,n.group),n.state===Hr){for(n.state=Kr,r=new Array(f=n.tween.length),c=0,l=-1;c<f;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(r[++l]=h);r.length=l+1}}function a(t){for(var i=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(s),n.state=Qr,1),o=-1,a=r.length;++o<a;)r[o].call(null,i);n.state===Qr&&(n.on.call("end",e,e.__data__,n.index,n.group),s())}function s(){for(var r in n.state=Yr,n.timer.stop(),delete i[t],i)return;delete e.__transition}i[t]=n,n.timer=Dr(function(e){n.state=zr,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:r,group:i,on:qr,tween:Vr,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:Wr})};function Jr(e,t){var n=Zr(e,t);if(n.state>Wr)throw new Error("too late; already scheduled");return n}function $r(e,t){var n=Zr(e,t);if(n.state>Hr)throw new Error("too late; already started");return n}function Zr(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}var ei=function(e,t){var n,r,i,o=e.__transition,a=!0;if(o){for(i in t=null==t?null:t+"",o)(n=o[i]).name===t?(r=n.state>Hr&&n.state<Qr,n.state=Yr,n.timer.stop(),r&&n.on.call("interrupt",e,e.__data__,n.index,n.group),delete o[i]):a=!1;a&&delete e.__transition}};function ti(e,t,n){var r=e._id;return e.each(function(){var e=$r(this,r);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return Zr(e,r).value[t]}}var ni=function(e,t){var n;return("number"==typeof t?Vn:t instanceof qt?Ln:(n=qt(t))?(t=n,Ln):Xn)(e,t)};var ri=rt.prototype.constructor;var ii=0;function oi(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function ai(e){return rt().transition(e)}function si(){return++ii}var ui=rt.prototype;function ci(e){return+e}function li(e){return e*e}function fi(e){return e*(2-e)}function hi(e){return((e*=2)<=1?e*e:--e*(2-e)+1)/2}function pi(e){return e*e*e}function di(e){return--e*e*e+1}function vi(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}oi.prototype=ai.prototype={constructor:oi,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=ge(e));for(var r=this._groups,i=r.length,o=new Array(i),a=0;a<i;++a)for(var s,u,c=r[a],l=c.length,f=o[a]=new Array(l),h=0;h<l;++h)(s=c[h])&&(u=e.call(s,s.__data__,h,c))&&("__data__"in s&&(u.__data__=s.__data__),f[h]=u,Xr(f[h],t,n,h,f,Zr(s,n)));return new oi(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=_e(e));for(var r=this._groups,i=r.length,o=[],a=[],s=0;s<i;++s)for(var u,c=r[s],l=c.length,f=0;f<l;++f)if(u=c[f]){for(var h,p=e.call(u,u.__data__,f,c),d=Zr(u,n),v=0,m=p.length;v<m;++v)(h=p[v])&&Xr(h,t,n,v,p,d);o.push(p),a.push(u)}return new oi(o,a,t,n)},filter:function(e){"function"!=typeof e&&(e=Ce(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i<n;++i)for(var o,a=t[i],s=a.length,u=r[i]=[],c=0;c<s;++c)(o=a[c])&&e.call(o,o.__data__,c,a)&&u.push(o);return new oi(r,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,n=e._groups,r=t.length,i=n.length,o=Math.min(r,i),a=new Array(r),s=0;s<o;++s)for(var u,c=t[s],l=n[s],f=c.length,h=a[s]=new Array(f),p=0;p<f;++p)(u=c[p]||l[p])&&(h[p]=u);for(;s<r;++s)a[s]=t[s];return new oi(a,this._parents,this._name,this._id)},selection:function(){return new ri(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=si(),r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)if(a=s[c]){var l=Zr(a,t);Xr(a,e,n,c,s,{time:l.time+l.delay+l.duration,delay:0,duration:l.duration,ease:l.ease})}return new oi(r,this._parents,e,n)},call:ui.call,nodes:ui.nodes,node:ui.node,size:ui.size,empty:ui.empty,each:ui.each,on:function(e,t){var n=this._id;return arguments.length<2?Zr(this.node(),n).on.on(e):this.each(function(e,t,n){var r,i,o=function(e){return(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})}(t)?Jr:$r;return function(){var a=o(this,e),s=a.on;s!==r&&(i=(r=s).copy()).on(t,n),a.on=i}}(n,e,t))},attr:function(e,t){var n=ve(e),r="transform"===n?ir:ni;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var r,i,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttributeNS(e.space,e.local))===s?null:a===r&&s===i?o:o=t(r=a,i=s);this.removeAttributeNS(e.space,e.local)}}:function(e,t,n){var r,i,o;return function(){var a,s=n(this);if(null!=s)return(a=this.getAttribute(e))===s?null:a===r&&s===i?o:o=t(r=a,i=s);this.removeAttribute(e)}})(n,r,ti(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var r,i;return function(){var o=this.getAttributeNS(e.space,e.local);return o===n?null:o===r?i:i=t(r=o,n)}}:function(e,t,n){var r,i;return function(){var o=this.getAttribute(e);return o===n?null:o===r?i:i=t(r=o,n)}})(n,r,t+""))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw new Error;var r=ve(e);return this.tween(n,(r.local?function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttributeNS(e.space,e.local,r(t))}}return n._value=t,n}:function(e,t){function n(){var n=this,r=t.apply(n,arguments);return r&&function(t){n.setAttribute(e,r(t))}}return n._value=t,n})(r,t))},style:function(e,t,n){var r="transform"==(e+="")?rr:ni;return null==t?this.styleTween(e,function(e,t){var n,r,i;return function(){var o=Pe(this,e),a=(this.style.removeProperty(e),Pe(this,e));return o===a?null:o===n&&a===r?i:i=t(n=o,r=a)}}(e,r)).on("end.style."+e,function(e){return function(){this.style.removeProperty(e)}}(e)):this.styleTween(e,"function"==typeof t?function(e,t,n){var r,i,o;return function(){var a=Pe(this,e),s=n(this);return null==s&&(this.style.removeProperty(e),s=Pe(this,e)),a===s?null:a===r&&s===i?o:o=t(r=a,i=s)}}(e,r,ti(this,"style."+e,t)):function(e,t,n){var r,i;return function(){var o=Pe(this,e);return o===n?null:o===r?i:i=t(r=o,n)}}(e,r,t+""),n)},styleTween:function(e,t,n){var r="style."+(e+="");if(arguments.length<2)return(r=this.tween(r))&&r._value;if(null==t)return this.tween(r,null);if("function"!=typeof t)throw new Error;return this.tween(r,function(e,t,n){function r(){var r=this,i=t.apply(r,arguments);return i&&function(t){r.style.setProperty(e,i(t),n)}}return r._value=t,r}(e,t,null==n?"":n))},text:function(e){return this.tween("text","function"==typeof e?function(e){return function(){var t=e(this);this.textContent=null==t?"":t}}(ti(this,"text",e)):function(e){return function(){this.textContent=e}}(null==e?"":e+""))},remove:function(){return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}));var e},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var r,i=Zr(this.node(),n).tween,o=0,a=i.length;o<a;++o)if((r=i[o]).name===e)return r.value;return null}return this.each((null==t?function(e,t){var n,r;return function(){var i=$r(this,e),o=i.tween;if(o!==n)for(var a=0,s=(r=n=o).length;a<s;++a)if(r[a].name===t){(r=r.slice()).splice(a,1);break}i.tween=r}}:function(e,t,n){var r,i;if("function"!=typeof n)throw new Error;return function(){var o=$r(this,e),a=o.tween;if(a!==r){i=(r=a).slice();for(var s={name:t,value:n},u=0,c=i.length;u<c;++u)if(i[u].name===t){i[u]=s;break}u===c&&i.push(s)}o.tween=i}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){Jr(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){Jr(this,e).delay=t}})(t,e)):Zr(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){$r(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){$r(this,e).duration=t}})(t,e)):Zr(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw new Error;return function(){$r(this,e).ease=t}}(t,e)):Zr(this.node(),t).ease}};var mi=function e(t){function n(e){return Math.pow(e,t)}return t=+t,n.exponent=e,n}(3),yi=function e(t){function n(e){return 1-Math.pow(1-e,t)}return t=+t,n.exponent=e,n}(3),gi=function e(t){function n(e){return((e*=2)<=1?Math.pow(e,t):2-Math.pow(2-e,t))/2}return t=+t,n.exponent=e,n}(3),bi=Math.PI,_i=bi/2;function wi(e){return 1-Math.cos(e*_i)}function Ei(e){return Math.sin(e*_i)}function xi(e){return(1-Math.cos(bi*e))/2}function Ci(e){return Math.pow(2,10*e-10)}function Ti(e){return 1-Math.pow(2,-10*e)}function ki(e){return((e*=2)<=1?Math.pow(2,10*e-10):2-Math.pow(2,10-10*e))/2}function Si(e){return 1-Math.sqrt(1-e*e)}function Ai(e){return Math.sqrt(1- --e*e)}function Ni(e){return((e*=2)<=1?1-Math.sqrt(1-e*e):Math.sqrt(1-(e-=2)*e)+1)/2}var Oi=4/11,Ii=6/11,Pi=8/11,Ri=.75,Di=9/11,Mi=10/11,Li=.9375,ji=21/22,Fi=63/64,Ui=1/Oi/Oi;function Bi(e){return 1-qi(1-e)}function qi(e){return(e=+e)<Oi?Ui*e*e:e<Pi?Ui*(e-=Ii)*e+Ri:e<Mi?Ui*(e-=Di)*e+Li:Ui*(e-=ji)*e+Fi}function Vi(e){return((e*=2)<=1?1-qi(1-e):qi(e-1)+1)/2}var Wi=function e(t){function n(e){return e*e*((t+1)*e-t)}return t=+t,n.overshoot=e,n}(1.70158),zi=function e(t){function n(e){return--e*e*((t+1)*e+t)+1}return t=+t,n.overshoot=e,n}(1.70158),Hi=function e(t){function n(e){return((e*=2)<1?e*e*((t+1)*e-t):(e-=2)*e*((t+1)*e+t)+2)/2}return t=+t,n.overshoot=e,n}(1.70158),Ki=2*Math.PI,Gi=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ki);function i(e){return t*Math.pow(2,10*--e)*Math.sin((r-e)/n)}return i.amplitude=function(t){return e(t,n*Ki)},i.period=function(n){return e(t,n)},i}(1,.3),Qi=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ki);function i(e){return 1-t*Math.pow(2,-10*(e=+e))*Math.sin((e+r)/n)}return i.amplitude=function(t){return e(t,n*Ki)},i.period=function(n){return e(t,n)},i}(1,.3),Yi=function e(t,n){var r=Math.asin(1/(t=Math.max(1,t)))*(n/=Ki);function i(e){return((e=2*e-1)<0?t*Math.pow(2,10*e)*Math.sin((r-e)/n):2-t*Math.pow(2,-10*e)*Math.sin((r+e)/n))/2}return i.amplitude=function(t){return e(t,n*Ki)},i.period=function(n){return e(t,n)},i}(1,.3),Xi={time:null,delay:0,duration:250,ease:vi};function Ji(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))return Xi.time=Ir(),Xi;return n}rt.prototype.interrupt=function(e){return this.each(function(){ei(this,e)})},rt.prototype.transition=function(e){var t,n;e instanceof oi?(t=e._id,e=e._name):(t=si(),(n=Xi).time=Ir(),e=null==e?null:e+"");for(var r=this._groups,i=r.length,o=0;o<i;++o)for(var a,s=r[o],u=s.length,c=0;c<u;++c)(a=s[c])&&Xr(a,e,t,c,s,n||Ji(a,t));return new oi(r,this._parents,e,t)};var $i=[null],Zi=function(e,t){var n,r,i=e.__transition;if(i)for(r in t=null==t?null:t+"",i)if((n=i[r]).state>zr&&n.name===t)return new oi(e,$i,t,+r);return null},eo=function(e){return function(){return e}},to=function(e,t,n){this.target=e,this.type=t,this.selection=n};function no(){Ge.stopImmediatePropagation()}var ro=function(){Ge.preventDefault(),Ge.stopImmediatePropagation()},io={name:"drag"},oo={name:"space"},ao={name:"handle"},so={name:"center"},uo={name:"x",handles:["e","w"].map(yo),input:function(e,t){return e&&[[e[0],t[0][1]],[e[1],t[1][1]]]},output:function(e){return e&&[e[0][0],e[1][0]]}},co={name:"y",handles:["n","s"].map(yo),input:function(e,t){return e&&[[t[0][0],e[0]],[t[1][0],e[1]]]},output:function(e){return e&&[e[0][1],e[1][1]]}},lo={name:"xy",handles:["n","e","s","w","nw","ne","se","sw"].map(yo),input:function(e){return e},output:function(e){return e}},fo={overlay:"crosshair",selection:"move",n:"ns-resize",e:"ew-resize",s:"ns-resize",w:"ew-resize",nw:"nwse-resize",ne:"nesw-resize",se:"nwse-resize",sw:"nesw-resize"},ho={e:"w",w:"e",nw:"ne",ne:"nw",se:"sw",sw:"se"},po={n:"s",s:"n",nw:"sw",ne:"se",se:"ne",sw:"nw"},vo={overlay:1,selection:1,n:null,e:1,s:null,w:-1,nw:-1,ne:1,se:1,sw:-1},mo={overlay:1,selection:1,n:-1,e:null,s:1,w:null,nw:-1,ne:-1,se:1,sw:1};function yo(e){return{type:e}}function go(){return!Ge.button}function bo(){var e=this.ownerSVGElement||this;return[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]}function _o(e){for(;!e.__brush;)if(!(e=e.parentNode))return;return e.__brush}function wo(e){return e[0][0]===e[1][0]||e[0][1]===e[1][1]}function Eo(e){var t=e.__brush;return t?t.dim.output(t.selection):null}function xo(){return ko(uo)}function Co(){return ko(co)}var To=function(){return ko(lo)};function ko(e){var t,n=bo,r=go,i=he(a,"start","brush","end"),o=6;function a(t){var n=t.property("__brush",f).selectAll(".overlay").data([yo("overlay")]);n.enter().append("rect").attr("class","overlay").attr("pointer-events","all").attr("cursor",fo.overlay).merge(n).each(function(){var e=_o(this).extent;it(this).attr("x",e[0][0]).attr("y",e[0][1]).attr("width",e[1][0]-e[0][0]).attr("height",e[1][1]-e[0][1])}),t.selectAll(".selection").data([yo("selection")]).enter().append("rect").attr("class","selection").attr("cursor",fo.selection).attr("fill","#777").attr("fill-opacity",.3).attr("stroke","#fff").attr("shape-rendering","crispEdges");var r=t.selectAll(".handle").data(e.handles,function(e){return e.type});r.exit().remove(),r.enter().append("rect").attr("class",function(e){return"handle handle--"+e.type}).attr("cursor",function(e){return fo[e.type]}),t.each(s).attr("fill","none").attr("pointer-events","all").style("-webkit-tap-highlight-color","rgba(0,0,0,0)").on("mousedown.brush touchstart.brush",l)}function s(){var e=it(this),t=_o(this).selection;t?(e.selectAll(".selection").style("display",null).attr("x",t[0][0]).attr("y",t[0][1]).attr("width",t[1][0]-t[0][0]).attr("height",t[1][1]-t[0][1]),e.selectAll(".handle").style("display",null).attr("x",function(e){return"e"===e.type[e.type.length-1]?t[1][0]-o/2:t[0][0]-o/2}).attr("y",function(e){return"s"===e.type[0]?t[1][1]-o/2:t[0][1]-o/2}).attr("width",function(e){return"n"===e.type||"s"===e.type?t[1][0]-t[0][0]+o:o}).attr("height",function(e){return"e"===e.type||"w"===e.type?t[1][1]-t[0][1]+o:o})):e.selectAll(".selection,.handle").style("display","none").attr("x",null).attr("y",null).attr("width",null).attr("height",null)}function u(e,t){return e.__brush.emitter||new c(e,t)}function c(e,t){this.that=e,this.args=t,this.state=e.__brush,this.active=0}function l(){if(Ge.touches){if(Ge.changedTouches.length<Ge.touches.length)return ro()}else if(t)return;if(r.apply(this,arguments)){var n,i,o,a,c,l,f,h,p,d,v,m,y,g=this,b=Ge.target.__data__.type,_="selection"===(Ge.metaKey?b="overlay":b)?io:Ge.altKey?so:ao,w=e===co?null:vo[b],E=e===uo?null:mo[b],x=_o(g),C=x.extent,T=x.selection,k=C[0][0],S=C[0][1],A=C[1][0],N=C[1][1],O=w&&E&&Ge.shiftKey,I=ft(g),P=I,R=u(g,arguments).beforestart();"overlay"===b?x.selection=T=[[n=e===co?k:I[0],o=e===uo?S:I[1]],[c=e===co?A:n,f=e===uo?N:o]]:(n=T[0][0],o=T[0][1],c=T[1][0],f=T[1][1]),i=n,a=o,l=c,h=f;var D=it(g).attr("pointer-events","none"),M=D.selectAll(".overlay").attr("cursor",fo[b]);if(Ge.touches)D.on("touchmove.brush",j,!0).on("touchend.brush touchcancel.brush",U,!0);else{var L=it(Ge.view).on("keydown.brush",function(){switch(Ge.keyCode){case 16:O=w&&E;break;case 18:_===ao&&(w&&(c=l-p*w,n=i+p*w),E&&(f=h-d*E,o=a+d*E),_=so,F());break;case 32:_!==ao&&_!==so||(w<0?c=l-p:w>0&&(n=i-p),E<0?f=h-d:E>0&&(o=a-d),_=oo,M.attr("cursor",fo.selection),F());break;default:return}ro()},!0).on("keyup.brush",function(){switch(Ge.keyCode){case 16:O&&(m=y=O=!1,F());break;case 18:_===so&&(w<0?c=l:w>0&&(n=i),E<0?f=h:E>0&&(o=a),_=ao,F());break;case 32:_===oo&&(Ge.altKey?(w&&(c=l-p*w,n=i+p*w),E&&(f=h-d*E,o=a+d*E),_=so):(w<0?c=l:w>0&&(n=i),E<0?f=h:E>0&&(o=a),_=ao),M.attr("cursor",fo[b]),F());break;default:return}ro()},!0).on("mousemove.brush",j,!0).on("mouseup.brush",U,!0);yt(Ge.view)}no(),ei(g),s.call(g),R.start()}function j(){var e=ft(g);!O||m||y||(Math.abs(e[0]-P[0])>Math.abs(e[1]-P[1])?y=!0:m=!0),P=e,v=!0,ro(),F()}function F(){var e;switch(p=P[0]-I[0],d=P[1]-I[1],_){case oo:case io:w&&(p=Math.max(k-n,Math.min(A-c,p)),i=n+p,l=c+p),E&&(d=Math.max(S-o,Math.min(N-f,d)),a=o+d,h=f+d);break;case ao:w<0?(p=Math.max(k-n,Math.min(A-n,p)),i=n+p,l=c):w>0&&(p=Math.max(k-c,Math.min(A-c,p)),i=n,l=c+p),E<0?(d=Math.max(S-o,Math.min(N-o,d)),a=o+d,h=f):E>0&&(d=Math.max(S-f,Math.min(N-f,d)),a=o,h=f+d);break;case so:w&&(i=Math.max(k,Math.min(A,n-p*w)),l=Math.max(k,Math.min(A,c+p*w))),E&&(a=Math.max(S,Math.min(N,o-d*E)),h=Math.max(S,Math.min(N,f+d*E)))}l<i&&(w*=-1,e=n,n=c,c=e,e=i,i=l,l=e,b in ho&&M.attr("cursor",fo[b=ho[b]])),h<a&&(E*=-1,e=o,o=f,f=e,e=a,a=h,h=e,b in po&&M.attr("cursor",fo[b=po[b]])),x.selection&&(T=x.selection),m&&(i=T[0][0],l=T[1][0]),y&&(a=T[0][1],h=T[1][1]),T[0][0]===i&&T[0][1]===a&&T[1][0]===l&&T[1][1]===h||(x.selection=[[i,a],[l,h]],s.call(g),R.brush())}function U(){if(no(),Ge.touches){if(Ge.touches.length)return;t&&clearTimeout(t),t=setTimeout(function(){t=null},500),D.on("touchmove.brush touchend.brush touchcancel.brush",null)}else gt(Ge.view,v),L.on("keydown.brush keyup.brush mousemove.brush mouseup.brush",null);D.attr("pointer-events","all"),M.attr("cursor",fo.overlay),x.selection&&(T=x.selection),wo(T)&&(x.selection=null,s.call(g)),R.end()}}function f(){var t=this.__brush||{selection:null};return t.extent=n.apply(this,arguments),t.dim=e,t}return a.move=function(t,n){t.selection?t.on("start.brush",function(){u(this,arguments).beforestart().start()}).on("interrupt.brush end.brush",function(){u(this,arguments).end()}).tween("brush",function(){var t=this,r=t.__brush,i=u(t,arguments),o=r.selection,a=e.input("function"==typeof n?n.apply(this,arguments):n,r.extent),c=Jn(o,a);function l(e){r.selection=1===e&&wo(a)?null:c(e),s.call(t),i.brush()}return o&&a?l:l(1)}):t.each(function(){var t=arguments,r=this.__brush,i=e.input("function"==typeof n?n.apply(this,t):n,r.extent),o=u(this,t).beforestart();ei(this),r.selection=null==i||wo(i)?null:i,s.call(this),o.start().brush().end()})},c.prototype={beforestart:function(){return 1==++this.active&&(this.state.emitter=this,this.starting=!0),this},start:function(){return this.starting&&(this.starting=!1,this.emit("start")),this},brush:function(){return this.emit("brush"),this},end:function(){return 0==--this.active&&(delete this.state.emitter,this.emit("end")),this},emit:function(t){$e(new to(a,t,e.output(this.state.selection)),i.apply,i,[t,this.that,this.args])}},a.extent=function(e){return arguments.length?(n="function"==typeof e?e:eo([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),a):n},a.filter=function(e){return arguments.length?(r="function"==typeof e?e:eo(!!e),a):r},a.handleSize=function(e){return arguments.length?(o=+e,a):o},a.on=function(){var e=i.on.apply(i,arguments);return e===i?a:e},a}var So=Math.cos,Ao=Math.sin,No=Math.PI,Oo=No/2,Io=2*No,Po=Math.max;var Ro=function(){var e=0,t=null,n=null,r=null;function i(i){var o,a,s,u,c,l,f=i.length,h=[],p=E(f),d=[],v=[],m=v.groups=new Array(f),y=new Array(f*f);for(o=0,c=-1;++c<f;){for(a=0,l=-1;++l<f;)a+=i[c][l];h.push(a),d.push(E(f)),o+=a}for(t&&p.sort(function(e,n){return t(h[e],h[n])}),n&&d.forEach(function(e,t){e.sort(function(e,r){return n(i[t][e],i[t][r])})}),u=(o=Po(0,Io-e*f)/o)?e:Io/f,a=0,c=-1;++c<f;){for(s=a,l=-1;++l<f;){var g=p[c],b=d[g][l],_=i[g][b],w=a,x=a+=_*o;y[b*f+g]={index:g,subindex:b,startAngle:w,endAngle:x,value:_}}m[g]={index:g,startAngle:s,endAngle:a,value:h[g]},a+=u}for(c=-1;++c<f;)for(l=c-1;++l<f;){var C=y[l*f+c],T=y[c*f+l];(C.value||T.value)&&v.push(C.value<T.value?{source:T,target:C}:{source:C,target:T})}return r?v.sort(r):v}return i.padAngle=function(t){return arguments.length?(e=Po(0,t),i):e},i.sortGroups=function(e){return arguments.length?(t=e,i):t},i.sortSubgroups=function(e){return arguments.length?(n=e,i):n},i.sortChords=function(e){return arguments.length?(null==e?r=null:(t=e,r=function(e,n){return t(e.source.value+e.target.value,n.source.value+n.target.value)})._=e,i):r&&r._;var t},i},Do=Array.prototype.slice,Mo=function(e){return function(){return e}},Lo=Math.PI,jo=2*Lo,Fo=jo-1e-6;function Uo(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Bo(){return new Uo}Uo.prototype=Bo.prototype={constructor:Uo,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){null!==this._x1&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,a=this._y1,s=n-e,u=r-t,c=o-e,l=a-t,f=c*c+l*l;if(i<0)throw new Error("negative radius: "+i);if(null===this._x1)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(f>1e-6)if(Math.abs(l*s-u*c)>1e-6&&i){var h=n-o,p=r-a,d=s*s+u*u,v=h*h+p*p,m=Math.sqrt(d),y=Math.sqrt(f),g=i*Math.tan((Lo-Math.acos((d+f-v)/(2*m*y)))/2),b=g/y,_=g/m;Math.abs(b-1)>1e-6&&(this._+="L"+(e+b*c)+","+(t+b*l)),this._+="A"+i+","+i+",0,0,"+ +(l*h>c*p)+","+(this._x1=e+_*s)+","+(this._y1=t+_*u)}else this._+="L"+(this._x1=e)+","+(this._y1=t);else;},arc:function(e,t,n,r,i,o){e=+e,t=+t;var a=(n=+n)*Math.cos(r),s=n*Math.sin(r),u=e+a,c=t+s,l=1^o,f=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);null===this._x1?this._+="M"+u+","+c:(Math.abs(this._x1-u)>1e-6||Math.abs(this._y1-c)>1e-6)&&(this._+="L"+u+","+c),n&&(f<0&&(f=f%jo+jo),f>Fo?this._+="A"+n+","+n+",0,1,"+l+","+(e-a)+","+(t-s)+"A"+n+","+n+",0,1,"+l+","+(this._x1=u)+","+(this._y1=c):f>1e-6&&(this._+="A"+n+","+n+",0,"+ +(f>=Lo)+","+l+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};var qo=Bo;function Vo(e){return e.source}function Wo(e){return e.target}function zo(e){return e.radius}function Ho(e){return e.startAngle}function Ko(e){return e.endAngle}var Go=function(){var e=Vo,t=Wo,n=zo,r=Ho,i=Ko,o=null;function a(){var a,s=Do.call(arguments),u=e.apply(this,s),c=t.apply(this,s),l=+n.apply(this,(s[0]=u,s)),f=r.apply(this,s)-Oo,h=i.apply(this,s)-Oo,p=l*So(f),d=l*Ao(f),v=+n.apply(this,(s[0]=c,s)),m=r.apply(this,s)-Oo,y=i.apply(this,s)-Oo;if(o||(o=a=qo()),o.moveTo(p,d),o.arc(0,0,l,f,h),f===m&&h===y||(o.quadraticCurveTo(0,0,v*So(m),v*Ao(m)),o.arc(0,0,v,m,y)),o.quadraticCurveTo(0,0,p,d),o.closePath(),a)return o=null,a+""||null}return a.radius=function(e){return arguments.length?(n="function"==typeof e?e:Mo(+e),a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:Mo(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:Mo(+e),a):i},a.source=function(t){return arguments.length?(e=t,a):e},a.target=function(e){return arguments.length?(t=e,a):t},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a};function Qo(){}function Yo(e,t){var n=new Qo;if(e instanceof Qo)e.each(function(e,t){n.set(t,e)});else if(Array.isArray(e)){var r,i=-1,o=e.length;if(null==t)for(;++i<o;)n.set(i,e[i]);else for(;++i<o;)n.set(t(r=e[i],i,e),r)}else if(e)for(var a in e)n.set(a,e[a]);return n}Qo.prototype=Yo.prototype={constructor:Qo,has:function(e){return"$"+e in this},get:function(e){return this["$"+e]},set:function(e,t){return this["$"+e]=t,this},remove:function(e){var t="$"+e;return t in this&&delete this[t]},clear:function(){for(var e in this)"$"===e[0]&&delete this[e]},keys:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(t.slice(1));return e},values:function(){var e=[];for(var t in this)"$"===t[0]&&e.push(this[t]);return e},entries:function(){var e=[];for(var t in this)"$"===t[0]&&e.push({key:t.slice(1),value:this[t]});return e},size:function(){var e=0;for(var t in this)"$"===t[0]&&++e;return e},empty:function(){for(var e in this)if("$"===e[0])return!1;return!0},each:function(e){for(var t in this)"$"===t[0]&&e(this[t],t.slice(1),this)}};var Xo=Yo,Jo=function(){var e,t,n,r=[],i=[];function o(n,i,a,s){if(i>=r.length)return null!=e&&n.sort(e),null!=t?t(n):n;for(var u,c,l,f=-1,h=n.length,p=r[i++],d=Xo(),v=a();++f<h;)(l=d.get(u=p(c=n[f])+""))?l.push(c):d.set(u,[c]);return d.each(function(e,t){s(v,t,o(e,i,a,s))}),v}return n={object:function(e){return o(e,0,$o,Zo)},map:function(e){return o(e,0,ea,ta)},entries:function(e){return function e(n,o){if(++o>r.length)return n;var a,s=i[o-1];return null!=t&&o>=r.length?a=n.entries():(a=[],n.each(function(t,n){a.push({key:n,values:e(t,o)})})),null!=s?a.sort(function(e,t){return s(e.key,t.key)}):a}(o(e,0,ea,ta),0)},key:function(e){return r.push(e),n},sortKeys:function(e){return i[r.length-1]=e,n},sortValues:function(t){return e=t,n},rollup:function(e){return t=e,n}}};function $o(){return{}}function Zo(e,t,n){e[t]=n}function ea(){return Xo()}function ta(e,t,n){e.set(t,n)}function na(){}var ra=Xo.prototype;function ia(e,t){var n=new na;if(e instanceof na)e.each(function(e){n.add(e)});else if(e){var r=-1,i=e.length;if(null==t)for(;++r<i;)n.add(e[r]);else for(;++r<i;)n.add(t(e[r],r,e))}return n}na.prototype=ia.prototype={constructor:na,has:ra.has,add:function(e){return this["$"+(e+="")]=e,this},remove:ra.remove,clear:ra.clear,values:ra.keys,size:ra.size,empty:ra.empty,each:ra.each};var oa=ia,aa=function(e){var t=[];for(var n in e)t.push(n);return t},sa=function(e){var t=[];for(var n in e)t.push(e[n]);return t},ua=function(e){var t=[];for(var n in e)t.push({key:n,value:e[n]});return t},ca=Array.prototype.slice,la=function(e,t){return e-t},fa=function(e){for(var t=0,n=e.length,r=e[n-1][1]*e[0][0]-e[n-1][0]*e[0][1];++t<n;)r+=e[t-1][1]*e[t][0]-e[t-1][0]*e[t][1];return r},ha=function(e){return function(){return e}},pa=function(e,t){for(var n,r=-1,i=t.length;++r<i;)if(n=da(e,t[r]))return n;return 0};function da(e,t){for(var n=t[0],r=t[1],i=-1,o=0,a=e.length,s=a-1;o<a;s=o++){var u=e[o],c=u[0],l=u[1],f=e[s],h=f[0],p=f[1];if(va(u,f,t))return 0;l>r!=p>r&&n<(h-c)*(r-l)/(p-l)+c&&(i=-i)}return i}function va(e,t,n){var r,i,o,a;return function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])==(n[0]-e[0])*(t[1]-e[1])}(e,t,n)&&(i=e[r=+(e[0]===t[0])],o=n[r],a=t[r],i<=o&&o<=a||a<=o&&o<=i)}var ma=function(){},ya=[[],[[[1,1.5],[.5,1]]],[[[1.5,1],[1,1.5]]],[[[1.5,1],[.5,1]]],[[[1,.5],[1.5,1]]],[[[1,1.5],[.5,1]],[[1,.5],[1.5,1]]],[[[1,.5],[1,1.5]]],[[[1,.5],[.5,1]]],[[[.5,1],[1,.5]]],[[[1,1.5],[1,.5]]],[[[.5,1],[1,.5]],[[1.5,1],[1,1.5]]],[[[1.5,1],[1,.5]]],[[[.5,1],[1.5,1]]],[[[1,1.5],[1.5,1]]],[[[.5,1],[1,1.5]]],[]],ga=function(){var e=1,t=1,n=N,r=s;function i(e){var t=n(e);if(Array.isArray(t))t=t.slice().sort(la);else{var r=m(e),i=r[0],a=r[1];t=A(i,a,t),t=E(Math.floor(i/t)*t,Math.floor(a/t)*t,t)}return t.map(function(t){return o(e,t)})}function o(n,i){var o=[],s=[];return function(n,r,i){var o,s,u,c,l,f,h=new Array,p=new Array;o=s=-1,c=n[0]>=r,ya[c<<1].forEach(d);for(;++o<e-1;)u=c,c=n[o+1]>=r,ya[u|c<<1].forEach(d);ya[c<<0].forEach(d);for(;++s<t-1;){for(o=-1,c=n[s*e+e]>=r,l=n[s*e]>=r,ya[c<<1|l<<2].forEach(d);++o<e-1;)u=c,c=n[s*e+e+o+1]>=r,f=l,l=n[s*e+o+1]>=r,ya[u|c<<1|l<<2|f<<3].forEach(d);ya[c|l<<3].forEach(d)}o=-1,l=n[s*e]>=r,ya[l<<2].forEach(d);for(;++o<e-1;)f=l,l=n[s*e+o+1]>=r,ya[l<<2|f<<3].forEach(d);function d(e){var t,n,r=[e[0][0]+o,e[0][1]+s],u=[e[1][0]+o,e[1][1]+s],c=a(r),l=a(u);(t=p[c])?(n=h[l])?(delete p[t.end],delete h[n.start],t===n?(t.ring.push(u),i(t.ring)):h[t.start]=p[n.end]={start:t.start,end:n.end,ring:t.ring.concat(n.ring)}):(delete p[t.end],t.ring.push(u),p[t.end=l]=t):(t=h[l])?(n=p[c])?(delete h[t.start],delete p[n.end],t===n?(t.ring.push(u),i(t.ring)):h[n.start]=p[t.end]={start:n.start,end:t.end,ring:n.ring.concat(t.ring)}):(delete h[t.start],t.ring.unshift(r),h[t.start=c]=t):h[c]=p[l]={start:c,end:l,ring:[r,u]}}ya[l<<3].forEach(d)}(n,i,function(e){r(e,n,i),fa(e)>0?o.push([e]):s.push(e)}),s.forEach(function(e){for(var t,n=0,r=o.length;n<r;++n)if(-1!==pa((t=o[n])[0],e))return void t.push(e)}),{type:"MultiPolygon",value:i,coordinates:o}}function a(t){return 2*t[0]+t[1]*(e+1)*4}function s(n,r,i){n.forEach(function(n){var o,a=n[0],s=n[1],u=0|a,c=0|s,l=r[c*e+u];a>0&&a<e&&u===a&&(o=r[c*e+u-1],n[0]=a+(i-o)/(l-o)-.5),s>0&&s<t&&c===s&&(o=r[(c-1)*e+u],n[1]=s+(i-o)/(l-o)-.5)})}return i.contour=o,i.size=function(n){if(!arguments.length)return[e,t];var r=Math.ceil(n[0]),o=Math.ceil(n[1]);if(!(r>0&&o>0))throw new Error("invalid size");return e=r,t=o,i},i.thresholds=function(e){return arguments.length?(n="function"==typeof e?e:Array.isArray(e)?ha(ca.call(e)):ha(e),i):n},i.smooth=function(e){return arguments.length?(r=e?s:ma,i):r===s},i};function ba(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<i;++a)for(var s=0,u=0;s<r+n;++s)s<r&&(u+=e.data[s+a*r]),s>=n&&(s>=o&&(u-=e.data[s-o+a*r]),t.data[s-n+a*r]=u/Math.min(s+1,r-1+o-s,o))}function _a(e,t,n){for(var r=e.width,i=e.height,o=1+(n<<1),a=0;a<r;++a)for(var s=0,u=0;s<i+n;++s)s<i&&(u+=e.data[a+s*r]),s>=n&&(s>=o&&(u-=e.data[a+(s-o)*r]),t.data[a+(s-n)*r]=u/Math.min(s+1,i-1+o-s,o))}function wa(e){return e[0]}function Ea(e){return e[1]}var xa=function(){var e=wa,t=Ea,n=960,r=500,i=20,o=2,a=3*i,s=n+2*a>>o,u=r+2*a>>o,c=ha(20);function l(n){var r=new Float32Array(s*u),l=new Float32Array(s*u);n.forEach(function(n,i,c){var l=e(n,i,c)+a>>o,f=t(n,i,c)+a>>o;l>=0&&l<s&&f>=0&&f<u&&++r[l+f*s]}),ba({width:s,height:u,data:r},{width:s,height:u,data:l},i>>o),_a({width:s,height:u,data:l},{width:s,height:u,data:r},i>>o),ba({width:s,height:u,data:r},{width:s,height:u,data:l},i>>o),_a({width:s,height:u,data:l},{width:s,height:u,data:r},i>>o),ba({width:s,height:u,data:r},{width:s,height:u,data:l},i>>o),_a({width:s,height:u,data:l},{width:s,height:u,data:r},i>>o);var h=c(r);if(!Array.isArray(h)){var p=D(r);h=A(0,p,h),(h=E(0,Math.floor(p/h)*h,h)).shift()}return ga().thresholds(h).size([s,u])(r).map(f)}function f(e){return e.value*=Math.pow(2,-2*o),e.coordinates.forEach(h),e}function h(e){e.forEach(p)}function p(e){e.forEach(d)}function d(e){e[0]=e[0]*Math.pow(2,o)-a,e[1]=e[1]*Math.pow(2,o)-a}function v(){return s=n+2*(a=3*i)>>o,u=r+2*a>>o,l}return l.x=function(t){return arguments.length?(e="function"==typeof t?t:ha(+t),l):e},l.y=function(e){return arguments.length?(t="function"==typeof e?e:ha(+e),l):t},l.size=function(e){if(!arguments.length)return[n,r];var t=Math.ceil(e[0]),i=Math.ceil(e[1]);if(!(t>=0||t>=0))throw new Error("invalid size");return n=t,r=i,v()},l.cellSize=function(e){if(!arguments.length)return 1<<o;if(!((e=+e)>=1))throw new Error("invalid cell size");return o=Math.floor(Math.log(e)/Math.LN2),v()},l.thresholds=function(e){return arguments.length?(c="function"==typeof e?e:Array.isArray(e)?ha(ca.call(e)):ha(e),l):c},l.bandwidth=function(e){if(!arguments.length)return Math.sqrt(i*(i+1));if(!((e=+e)>=0))throw new Error("invalid bandwidth");return i=Math.round((Math.sqrt(4*e*e+1)-1)/2),v()},l},Ca={},Ta={},ka=34,Sa=10,Aa=13;function Na(e){return new Function("d","return {"+e.map(function(e,t){return JSON.stringify(e)+": d["+t+"]"}).join(",")+"}")}var Oa=function(e){var t=new RegExp('["'+e+"\n\r]"),n=e.charCodeAt(0);function r(e,t){var r,i=[],o=e.length,a=0,s=0,u=o<=0,c=!1;function l(){if(u)return Ta;if(c)return c=!1,Ca;var t,r,i=a;if(e.charCodeAt(i)===ka){for(;a++<o&&e.charCodeAt(a)!==ka||e.charCodeAt(++a)===ka;);return(t=a)>=o?u=!0:(r=e.charCodeAt(a++))===Sa?c=!0:r===Aa&&(c=!0,e.charCodeAt(a)===Sa&&++a),e.slice(i+1,t-1).replace(/""/g,'"')}for(;a<o;){if((r=e.charCodeAt(t=a++))===Sa)c=!0;else if(r===Aa)c=!0,e.charCodeAt(a)===Sa&&++a;else if(r!==n)continue;return e.slice(i,t)}return u=!0,e.slice(i,o)}for(e.charCodeAt(o-1)===Sa&&--o,e.charCodeAt(o-1)===Aa&&--o;(r=l())!==Ta;){for(var f=[];r!==Ca&&r!==Ta;)f.push(r),r=l();t&&null==(f=t(f,s++))||i.push(f)}return i}function i(t){return t.map(o).join(e)}function o(e){return null==e?"":t.test(e+="")?'"'+e.replace(/"/g,'""')+'"':e}return{parse:function(e,t){var n,i,o=r(e,function(e,r){if(n)return n(e,r-1);i=e,n=t?function(e,t){var n=Na(e);return function(r,i){return t(n(r),i,e)}}(e,t):Na(e)});return o.columns=i||[],o},parseRows:r,format:function(t,n){return null==n&&(n=function(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}(t)),[n.map(o).join(e)].concat(t.map(function(t){return n.map(function(e){return o(t[e])}).join(e)})).join("\n")},formatRows:function(e){return e.map(i).join("\n")}}},Ia=Oa(","),Pa=Ia.parse,Ra=Ia.parseRows,Da=Ia.format,Ma=Ia.formatRows,La=Oa("\t"),ja=La.parse,Fa=La.parseRows,Ua=La.format,Ba=La.formatRows;function qa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.blob()}var Va=function(e,t){return fetch(e,t).then(qa)};function Wa(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.arrayBuffer()}var za=function(e,t){return fetch(e,t).then(Wa)};function Ha(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.text()}var Ka=function(e,t){return fetch(e,t).then(Ha)};function Ga(e){return function(t,n,r){return 2===arguments.length&&"function"==typeof n&&(r=n,n=void 0),Ka(t,n).then(function(t){return e(t,r)})}}function Qa(e,t,n,r){3===arguments.length&&"function"==typeof n&&(r=n,n=void 0);var i=Oa(e);return Ka(t,n).then(function(e){return i.parse(e,r)})}var Ya=Ga(Pa),Xa=Ga(ja),Ja=function(e,t){return new Promise(function(n,r){var i=new Image;for(var o in t)i[o]=t[o];i.onerror=r,i.onload=function(){n(i)},i.src=e})};function $a(e){if(!e.ok)throw new Error(e.status+" "+e.statusText);return e.json()}var Za=function(e,t){return fetch(e,t).then($a)};function es(e){return function(t,n){return Ka(t,n).then(function(t){return(new DOMParser).parseFromString(t,e)})}}var ts=es("application/xml"),ns=es("text/html"),rs=es("image/svg+xml"),is=function(e,t){var n;function r(){var r,i,o=n.length,a=0,s=0;for(r=0;r<o;++r)a+=(i=n[r]).x,s+=i.y;for(a=a/o-e,s=s/o-t,r=0;r<o;++r)(i=n[r]).x-=a,i.y-=s}return null==e&&(e=0),null==t&&(t=0),r.initialize=function(e){n=e},r.x=function(t){return arguments.length?(e=+t,r):e},r.y=function(e){return arguments.length?(t=+e,r):t},r},os=function(e){return function(){return e}},as=function(){return 1e-6*(Math.random()-.5)};function ss(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,o,a,s,u,c,l,f,h,p=e._root,d={data:r},v=e._x0,m=e._y0,y=e._x1,g=e._y1;if(!p)return e._root=d,e;for(;p.length;)if((c=t>=(o=(v+y)/2))?v=o:y=o,(l=n>=(a=(m+g)/2))?m=a:g=a,i=p,!(p=p[f=l<<1|c]))return i[f]=d,e;if(s=+e._x.call(null,p.data),u=+e._y.call(null,p.data),t===s&&n===u)return d.next=p,i?i[f]=d:e._root=d,e;do{i=i?i[f]=new Array(4):e._root=new Array(4),(c=t>=(o=(v+y)/2))?v=o:y=o,(l=n>=(a=(m+g)/2))?m=a:g=a}while((f=l<<1|c)==(h=(u>=a)<<1|s>=o));return i[h]=p,i[f]=d,e}var us=function(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i};function cs(e){return e[0]}function ls(e){return e[1]}function fs(e,t,n){var r=new hs(null==t?cs:t,null==n?ls:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function hs(e,t,n,r,i,o){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=o,this._root=void 0}function ps(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}var ds=fs.prototype=hs.prototype;function vs(e){return e.x+e.vx}function ms(e){return e.y+e.vy}ds.copy=function(){var e,t,n=new hs(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=ps(r),n;for(e=[{source:r,target:n._root=new Array(4)}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=new Array(4)}):r.target[i]=ps(t));return n},ds.add=function(e){var t=+this._x.call(null,e),n=+this._y.call(null,e);return ss(this.cover(t,n),t,n,e)},ds.addAll=function(e){var t,n,r,i,o=e.length,a=new Array(o),s=new Array(o),u=1/0,c=1/0,l=-1/0,f=-1/0;for(n=0;n<o;++n)isNaN(r=+this._x.call(null,t=e[n]))||isNaN(i=+this._y.call(null,t))||(a[n]=r,s[n]=i,r<u&&(u=r),r>l&&(l=r),i<c&&(c=i),i>f&&(f=i));for(l<u&&(u=this._x0,l=this._x1),f<c&&(c=this._y0,f=this._y1),this.cover(u,c).cover(l,f),n=0;n<o;++n)ss(this,a[n],s[n],e[n]);return this},ds.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,o=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,o=(r=Math.floor(t))+1;else{if(!(n>e||e>i||r>t||t>o))return this;var a,s,u=i-n,c=this._root;switch(s=(t<(r+o)/2)<<1|e<(n+i)/2){case 0:do{(a=new Array(4))[s]=c,c=a}while(o=r+(u*=2),e>(i=n+u)||t>o);break;case 1:do{(a=new Array(4))[s]=c,c=a}while(o=r+(u*=2),(n=i-u)>e||t>o);break;case 2:do{(a=new Array(4))[s]=c,c=a}while(r=o-(u*=2),e>(i=n+u)||r>t);break;case 3:do{(a=new Array(4))[s]=c,c=a}while(r=o-(u*=2),(n=i-u)>e||r>t)}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=o,this},ds.data=function(){var e=[];return this.visit(function(t){if(!t.length)do{e.push(t.data)}while(t=t.next)}),e},ds.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},ds.find=function(e,t,n){var r,i,o,a,s,u,c,l=this._x0,f=this._y0,h=this._x1,p=this._y1,d=[],v=this._root;for(v&&d.push(new us(v,l,f,h,p)),null==n?n=1/0:(l=e-n,f=t-n,h=e+n,p=t+n,n*=n);u=d.pop();)if(!(!(v=u.node)||(i=u.x0)>h||(o=u.y0)>p||(a=u.x1)<l||(s=u.y1)<f))if(v.length){var m=(i+a)/2,y=(o+s)/2;d.push(new us(v[3],m,y,a,s),new us(v[2],i,y,m,s),new us(v[1],m,o,a,y),new us(v[0],i,o,m,y)),(c=(t>=y)<<1|e>=m)&&(u=d[d.length-1],d[d.length-1]=d[d.length-1-c],d[d.length-1-c]=u)}else{var g=e-+this._x.call(null,v.data),b=t-+this._y.call(null,v.data),_=g*g+b*b;if(_<n){var w=Math.sqrt(n=_);l=e-w,f=t-w,h=e+w,p=t+w,r=v.data}}return r},ds.remove=function(e){if(isNaN(o=+this._x.call(null,e))||isNaN(a=+this._y.call(null,e)))return this;var t,n,r,i,o,a,s,u,c,l,f,h,p=this._root,d=this._x0,v=this._y0,m=this._x1,y=this._y1;if(!p)return this;if(p.length)for(;;){if((c=o>=(s=(d+m)/2))?d=s:m=s,(l=a>=(u=(v+y)/2))?v=u:y=u,t=p,!(p=p[f=l<<1|c]))return this;if(!p.length)break;(t[f+1&3]||t[f+2&3]||t[f+3&3])&&(n=t,h=f)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return(i=p.next)&&delete p.next,r?(i?r.next=i:delete r.next,this):t?(i?t[f]=i:delete t[f],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p),this):(this._root=i,this)},ds.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},ds.root=function(){return this._root},ds.size=function(){var e=0;return this.visit(function(t){if(!t.length)do{++e}while(t=t.next)}),e},ds.visit=function(e){var t,n,r,i,o,a,s=[],u=this._root;for(u&&s.push(new us(u,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(u=t.node,r=t.x0,i=t.y0,o=t.x1,a=t.y1)&&u.length){var c=(r+o)/2,l=(i+a)/2;(n=u[3])&&s.push(new us(n,c,l,o,a)),(n=u[2])&&s.push(new us(n,r,l,c,a)),(n=u[1])&&s.push(new us(n,c,i,o,l)),(n=u[0])&&s.push(new us(n,r,i,c,l))}return this},ds.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new us(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var i=t.node;if(i.length){var o,a=t.x0,s=t.y0,u=t.x1,c=t.y1,l=(a+u)/2,f=(s+c)/2;(o=i[0])&&n.push(new us(o,a,s,l,f)),(o=i[1])&&n.push(new us(o,l,s,u,f)),(o=i[2])&&n.push(new us(o,a,f,l,c)),(o=i[3])&&n.push(new us(o,l,f,u,c))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},ds.x=function(e){return arguments.length?(this._x=e,this):this._x},ds.y=function(e){return arguments.length?(this._y=e,this):this._y};var ys=function(e){var t,n,r=1,i=1;function o(){for(var e,o,s,u,c,l,f,h=t.length,p=0;p<i;++p)for(o=fs(t,vs,ms).visitAfter(a),e=0;e<h;++e)s=t[e],l=n[s.index],f=l*l,u=s.x+s.vx,c=s.y+s.vy,o.visit(d);function d(e,t,n,i,o){var a=e.data,h=e.r,p=l+h;if(!a)return t>u+p||i<u-p||n>c+p||o<c-p;if(a.index>s.index){var d=u-a.x-a.vx,v=c-a.y-a.vy,m=d*d+v*v;m<p*p&&(0===d&&(m+=(d=as())*d),0===v&&(m+=(v=as())*v),m=(p-(m=Math.sqrt(m)))/m*r,s.vx+=(d*=m)*(p=(h*=h)/(f+h)),s.vy+=(v*=m)*p,a.vx-=d*(p=1-p),a.vy-=v*p)}}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function s(){if(t){var r,i,o=t.length;for(n=new Array(o),r=0;r<o;++r)i=t[r],n[i.index]=+e(i,r,t)}}return"function"!=typeof e&&(e=os(null==e?1:+e)),o.initialize=function(e){t=e,s()},o.iterations=function(e){return arguments.length?(i=+e,o):i},o.strength=function(e){return arguments.length?(r=+e,o):r},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),s(),o):e},o};function gs(e){return e.index}function bs(e,t){var n=e.get(t);if(!n)throw new Error("missing: "+t);return n}var _s=function(e){var t,n,r,i,o,a=gs,s=function(e){return 1/Math.min(i[e.source.index],i[e.target.index])},u=os(30),c=1;function l(r){for(var i=0,a=e.length;i<c;++i)for(var s,u,l,f,h,p,d,v=0;v<a;++v)u=(s=e[v]).source,f=(l=s.target).x+l.vx-u.x-u.vx||as(),h=l.y+l.vy-u.y-u.vy||as(),f*=p=((p=Math.sqrt(f*f+h*h))-n[v])/p*r*t[v],h*=p,l.vx-=f*(d=o[v]),l.vy-=h*d,u.vx+=f*(d=1-d),u.vy+=h*d}function f(){if(r){var s,u,c=r.length,l=e.length,f=Xo(r,a);for(s=0,i=new Array(c);s<l;++s)(u=e[s]).index=s,"object"!=typeof u.source&&(u.source=bs(f,u.source)),"object"!=typeof u.target&&(u.target=bs(f,u.target)),i[u.source.index]=(i[u.source.index]||0)+1,i[u.target.index]=(i[u.target.index]||0)+1;for(s=0,o=new Array(l);s<l;++s)u=e[s],o[s]=i[u.source.index]/(i[u.source.index]+i[u.target.index]);t=new Array(l),h(),n=new Array(l),p()}}function h(){if(r)for(var n=0,i=e.length;n<i;++n)t[n]=+s(e[n],n,e)}function p(){if(r)for(var t=0,i=e.length;t<i;++t)n[t]=+u(e[t],t,e)}return null==e&&(e=[]),l.initialize=function(e){r=e,f()},l.links=function(t){return arguments.length?(e=t,f(),l):e},l.id=function(e){return arguments.length?(a=e,l):a},l.iterations=function(e){return arguments.length?(c=+e,l):c},l.strength=function(e){return arguments.length?(s="function"==typeof e?e:os(+e),h(),l):s},l.distance=function(e){return arguments.length?(u="function"==typeof e?e:os(+e),p(),l):u},l};function ws(e){return e.x}function Es(e){return e.y}var xs=10,Cs=Math.PI*(3-Math.sqrt(5)),Ts=function(e){var t,n=1,r=.001,i=1-Math.pow(r,1/300),o=0,a=.6,s=Xo(),u=Dr(l),c=he("tick","end");function l(){f(),c.call("tick",t),n<r&&(u.stop(),c.call("end",t))}function f(){var t,r,u=e.length;for(n+=(o-n)*i,s.each(function(e){e(n)}),t=0;t<u;++t)null==(r=e[t]).fx?r.x+=r.vx*=a:(r.x=r.fx,r.vx=0),null==r.fy?r.y+=r.vy*=a:(r.y=r.fy,r.vy=0)}function h(){for(var t,n=0,r=e.length;n<r;++n){if((t=e[n]).index=n,isNaN(t.x)||isNaN(t.y)){var i=xs*Math.sqrt(n),o=n*Cs;t.x=i*Math.cos(o),t.y=i*Math.sin(o)}(isNaN(t.vx)||isNaN(t.vy))&&(t.vx=t.vy=0)}}function p(t){return t.initialize&&t.initialize(e),t}return null==e&&(e=[]),h(),t={tick:f,restart:function(){return u.restart(l),t},stop:function(){return u.stop(),t},nodes:function(n){return arguments.length?(e=n,h(),s.each(p),t):e},alpha:function(e){return arguments.length?(n=+e,t):n},alphaMin:function(e){return arguments.length?(r=+e,t):r},alphaDecay:function(e){return arguments.length?(i=+e,t):+i},alphaTarget:function(e){return arguments.length?(o=+e,t):o},velocityDecay:function(e){return arguments.length?(a=1-e,t):1-a},force:function(e,n){return arguments.length>1?(null==n?s.remove(e):s.set(e,p(n)),t):s.get(e)},find:function(t,n,r){var i,o,a,s,u,c=0,l=e.length;for(null==r?r=1/0:r*=r,c=0;c<l;++c)(a=(i=t-(s=e[c]).x)*i+(o=n-s.y)*o)<r&&(u=s,r=a);return u},on:function(e,n){return arguments.length>1?(c.on(e,n),t):c.on(e)}}},ks=function(){var e,t,n,r,i=os(-30),o=1,a=1/0,s=.81;function u(r){var i,o=e.length,a=fs(e,ws,Es).visitAfter(l);for(n=r,i=0;i<o;++i)t=e[i],a.visit(f)}function c(){if(e){var t,n,o=e.length;for(r=new Array(o),t=0;t<o;++t)n=e[t],r[n.index]=+i(n,t,e)}}function l(e){var t,n,i,o,a,s=0,u=0;if(e.length){for(i=o=a=0;a<4;++a)(t=e[a])&&(n=Math.abs(t.value))&&(s+=t.value,u+=n,i+=n*t.x,o+=n*t.y);e.x=i/u,e.y=o/u}else{(t=e).x=t.data.x,t.y=t.data.y;do{s+=r[t.data.index]}while(t=t.next)}e.value=s}function f(e,i,u,c){if(!e.value)return!0;var l=e.x-t.x,f=e.y-t.y,h=c-i,p=l*l+f*f;if(h*h/s<p)return p<a&&(0===l&&(p+=(l=as())*l),0===f&&(p+=(f=as())*f),p<o&&(p=Math.sqrt(o*p)),t.vx+=l*e.value*n/p,t.vy+=f*e.value*n/p),!0;if(!(e.length||p>=a)){(e.data!==t||e.next)&&(0===l&&(p+=(l=as())*l),0===f&&(p+=(f=as())*f),p<o&&(p=Math.sqrt(o*p)));do{e.data!==t&&(h=r[e.data.index]*n/p,t.vx+=l*h,t.vy+=f*h)}while(e=e.next)}}return u.initialize=function(t){e=t,c()},u.strength=function(e){return arguments.length?(i="function"==typeof e?e:os(+e),c(),u):i},u.distanceMin=function(e){return arguments.length?(o=e*e,u):Math.sqrt(o)},u.distanceMax=function(e){return arguments.length?(a=e*e,u):Math.sqrt(a)},u.theta=function(e){return arguments.length?(s=e*e,u):Math.sqrt(s)},u},Ss=function(e,t,n){var r,i,o,a=os(.1);function s(e){for(var a=0,s=r.length;a<s;++a){var u=r[a],c=u.x-t||1e-6,l=u.y-n||1e-6,f=Math.sqrt(c*c+l*l),h=(o[a]-f)*i[a]*e/f;u.vx+=c*h,u.vy+=l*h}}function u(){if(r){var t,n=r.length;for(i=new Array(n),o=new Array(n),t=0;t<n;++t)o[t]=+e(r[t],t,r),i[t]=isNaN(o[t])?0:+a(r[t],t,r)}}return"function"!=typeof e&&(e=os(+e)),null==t&&(t=0),null==n&&(n=0),s.initialize=function(e){r=e,u()},s.strength=function(e){return arguments.length?(a="function"==typeof e?e:os(+e),u(),s):a},s.radius=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),u(),s):e},s.x=function(e){return arguments.length?(t=+e,s):t},s.y=function(e){return arguments.length?(n=+e,s):n},s},As=function(e){var t,n,r,i=os(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vx+=(r[o]-i.x)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=os(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:os(+e),a(),o):i},o.x=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),a(),o):e},o},Ns=function(e){var t,n,r,i=os(.1);function o(e){for(var i,o=0,a=t.length;o<a;++o)(i=t[o]).vy+=(r[o]-i.y)*n[o]*e}function a(){if(t){var o,a=t.length;for(n=new Array(a),r=new Array(a),o=0;o<a;++o)n[o]=isNaN(r[o]=+e(t[o],o,t))?0:+i(t[o],o,t)}}return"function"!=typeof e&&(e=os(null==e?0:+e)),o.initialize=function(e){t=e,a()},o.strength=function(e){return arguments.length?(i="function"==typeof e?e:os(+e),a(),o):i},o.y=function(t){return arguments.length?(e="function"==typeof t?t:os(+t),a(),o):e},o},Os=function(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]},Is=function(e){return(e=Os(Math.abs(e)))?e[1]:NaN},Ps=/^(?:(.)?([<>=^]))?([+\-\( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rs(e){return new Ds(e)}function Ds(e){if(!(t=Ps.exec(e)))throw new Error("invalid format: "+e);var t;this.fill=t[1]||" ",this.align=t[2]||">",this.sign=t[3]||"-",this.symbol=t[4]||"",this.zero=!!t[5],this.width=t[6]&&+t[6],this.comma=!!t[7],this.precision=t[8]&&+t[8].slice(1),this.trim=!!t[9],this.type=t[10]||""}Rs.prototype=Ds.prototype,Ds.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(null==this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(null==this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var Ms,Ls,js,Fs,Us=function(e){e:for(var t,n=e.length,r=1,i=-1;r<n;++r)switch(e[r]){case".":i=t=r;break;case"0":0===i&&(i=r),t=r;break;default:if(i>0){if(!+e[r])break e;i=0}}return i>0?e.slice(0,i)+e.slice(t+1):e},Bs=function(e,t){var n=Os(e,t);if(!n)return e+"";var r=n[0],i=n[1];return i<0?"0."+new Array(-i).join("0")+r:r.length>i+1?r.slice(0,i+1)+"."+r.slice(i+1):r+new Array(i-r.length+2).join("0")},qs={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:function(e){return Math.round(e).toString(10)},e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return Bs(100*e,t)},r:Bs,s:function(e,t){var n=Os(e,t);if(!n)return e+"";var r=n[0],i=n[1],o=i-(Ms=3*Math.max(-8,Math.min(8,Math.floor(i/3))))+1,a=r.length;return o===a?r:o>a?r+new Array(o-a+1).join("0"):o>0?r.slice(0,o)+"."+r.slice(o):"0."+new Array(1-o).join("0")+Os(e,Math.max(0,t+o-1))[0]},X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}},Vs=function(e){return e},Ws=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"],zs=function(e){var t,n,r=e.grouping&&e.thousands?(t=e.grouping,n=e.thousands,function(e,r){for(var i=e.length,o=[],a=0,s=t[0],u=0;i>0&&s>0&&(u+s+1>r&&(s=Math.max(1,r-u)),o.push(e.substring(i-=s,i+s)),!((u+=s+1)>r));)s=t[a=(a+1)%t.length];return o.reverse().join(n)}):Vs,i=e.currency,o=e.decimal,a=e.numerals?function(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}(e.numerals):Vs,s=e.percent||"%";function u(e){var t=(e=Rs(e)).fill,n=e.align,u=e.sign,c=e.symbol,l=e.zero,f=e.width,h=e.comma,p=e.precision,d=e.trim,v=e.type;"n"===v?(h=!0,v="g"):qs[v]||(null==p&&(p=12),d=!0,v="g"),(l||"0"===t&&"="===n)&&(l=!0,t="0",n="=");var m="$"===c?i[0]:"#"===c&&/[boxX]/.test(v)?"0"+v.toLowerCase():"",y="$"===c?i[1]:/[%p]/.test(v)?s:"",g=qs[v],b=/[defgprs%]/.test(v);function _(e){var i,s,c,_=m,w=y;if("c"===v)w=g(e)+w,e="";else{var E=(e=+e)<0;if(e=g(Math.abs(e),p),d&&(e=Us(e)),E&&0==+e&&(E=!1),_=(E?"("===u?u:"-":"-"===u||"("===u?"":u)+_,w=("s"===v?Ws[8+Ms/3]:"")+w+(E&&"("===u?")":""),b)for(i=-1,s=e.length;++i<s;)if(48>(c=e.charCodeAt(i))||c>57){w=(46===c?o+e.slice(i+1):e.slice(i))+w,e=e.slice(0,i);break}}h&&!l&&(e=r(e,1/0));var x=_.length+e.length+w.length,C=x<f?new Array(f-x+1).join(t):"";switch(h&&l&&(e=r(C+e,C.length?f-w.length:1/0),C=""),n){case"<":e=_+e+w+C;break;case"=":e=_+C+e+w;break;case"^":e=C.slice(0,x=C.length>>1)+_+e+w+C.slice(x);break;default:e=C+_+e+w}return a(e)}return p=null==p?6:/[gprs]/.test(v)?Math.max(1,Math.min(21,p)):Math.max(0,Math.min(20,p)),_.toString=function(){return e+""},_}return{format:u,formatPrefix:function(e,t){var n=u(((e=Rs(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(Is(t)/3))),i=Math.pow(10,-r),o=Ws[8+r/3];return function(e){return n(i*e)+o}}}};function Hs(e){return Ls=zs(e),js=Ls.format,Fs=Ls.formatPrefix,Ls}Hs({decimal:".",thousands:",",grouping:[3],currency:["$",""]});var Ks=function(e){return Math.max(0,-Is(Math.abs(e)))},Gs=function(e,t){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Is(t)/3)))-Is(Math.abs(e)))},Qs=function(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Is(t)-Is(e))+1},Ys=function(){return new Xs};function Xs(){this.reset()}Xs.prototype={constructor:Xs,reset:function(){this.s=this.t=0},add:function(e){$s(Js,e,this.t),$s(this,Js.s,this.s),this.s?this.t+=Js.t:this.s=Js.t},valueOf:function(){return this.s}};var Js=new Xs;function $s(e,t,n){var r=e.s=t+n,i=r-t,o=r-i;e.t=t-o+(n-i)}var Zs=1e-6,eu=Math.PI,tu=eu/2,nu=eu/4,ru=2*eu,iu=180/eu,ou=eu/180,au=Math.abs,su=Math.atan,uu=Math.atan2,cu=Math.cos,lu=Math.ceil,fu=Math.exp,hu=(Math.floor,Math.log),pu=Math.pow,du=Math.sin,vu=Math.sign||function(e){return e>0?1:e<0?-1:0},mu=Math.sqrt,yu=Math.tan;function gu(e){return e>1?0:e<-1?eu:Math.acos(e)}function bu(e){return e>1?tu:e<-1?-tu:Math.asin(e)}function _u(e){return(e=du(e/2))*e}function wu(){}function Eu(e,t){e&&Cu.hasOwnProperty(e.type)&&Cu[e.type](e,t)}var xu={Feature:function(e,t){Eu(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)Eu(n[r].geometry,t)}},Cu={Sphere:function(e,t){t.sphere()},Point:function(e,t){e=e.coordinates,t.point(e[0],e[1],e[2])},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)e=n[r],t.point(e[0],e[1],e[2])},LineString:function(e,t){Tu(e.coordinates,t,0)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)Tu(n[r],t,0)},Polygon:function(e,t){ku(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)ku(n[r],t)},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)Eu(n[r],t)}};function Tu(e,t,n){var r,i=-1,o=e.length-n;for(t.lineStart();++i<o;)r=e[i],t.point(r[0],r[1],r[2]);t.lineEnd()}function ku(e,t){var n=-1,r=e.length;for(t.polygonStart();++n<r;)Tu(e[n],t,1);t.polygonEnd()}var Su,Au,Nu,Ou,Iu,Pu=function(e,t){e&&xu.hasOwnProperty(e.type)?xu[e.type](e,t):Eu(e,t)},Ru=Ys(),Du=Ys(),Mu={point:wu,lineStart:wu,lineEnd:wu,polygonStart:function(){Ru.reset(),Mu.lineStart=Lu,Mu.lineEnd=ju},polygonEnd:function(){var e=+Ru;Du.add(e<0?ru+e:e),this.lineStart=this.lineEnd=this.point=wu},sphere:function(){Du.add(ru)}};function Lu(){Mu.point=Fu}function ju(){Uu(Su,Au)}function Fu(e,t){Mu.point=Uu,Su=e,Au=t,Nu=e*=ou,Ou=cu(t=(t*=ou)/2+nu),Iu=du(t)}function Uu(e,t){t=(t*=ou)/2+nu;var n=(e*=ou)-Nu,r=n>=0?1:-1,i=r*n,o=cu(t),a=du(t),s=Iu*a,u=Ou*o+s*cu(i),c=s*r*du(i);Ru.add(uu(c,u)),Nu=e,Ou=o,Iu=a}var Bu=function(e){return Du.reset(),Pu(e,Mu),2*Du};function qu(e){return[uu(e[1],e[0]),bu(e[2])]}function Vu(e){var t=e[0],n=e[1],r=cu(n);return[r*cu(t),r*du(t),du(n)]}function Wu(e,t){return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]}function zu(e,t){return[e[1]*t[2]-e[2]*t[1],e[2]*t[0]-e[0]*t[2],e[0]*t[1]-e[1]*t[0]]}function Hu(e,t){e[0]+=t[0],e[1]+=t[1],e[2]+=t[2]}function Ku(e,t){return[e[0]*t,e[1]*t,e[2]*t]}function Gu(e){var t=mu(e[0]*e[0]+e[1]*e[1]+e[2]*e[2]);e[0]/=t,e[1]/=t,e[2]/=t}var Qu,Yu,Xu,Ju,$u,Zu,ec,tc,nc,rc,ic=Ys(),oc={point:ac,lineStart:uc,lineEnd:cc,polygonStart:function(){oc.point=lc,oc.lineStart=fc,oc.lineEnd=hc,ic.reset(),Mu.polygonStart()},polygonEnd:function(){Mu.polygonEnd(),oc.point=ac,oc.lineStart=uc,oc.lineEnd=cc,Ru<0?(Qu=-(Xu=180),Yu=-(Ju=90)):ic>Zs?Ju=90:ic<-Zs&&(Yu=-90),rc[0]=Qu,rc[1]=Xu}};function ac(e,t){nc.push(rc=[Qu=e,Xu=e]),t<Yu&&(Yu=t),t>Ju&&(Ju=t)}function sc(e,t){var n=Vu([e*ou,t*ou]);if(tc){var r=zu(tc,n),i=zu([r[1],-r[0],0],r);Gu(i),i=qu(i);var o,a=e-$u,s=a>0?1:-1,u=i[0]*iu*s,c=au(a)>180;c^(s*$u<u&&u<s*e)?(o=i[1]*iu)>Ju&&(Ju=o):c^(s*$u<(u=(u+360)%360-180)&&u<s*e)?(o=-i[1]*iu)<Yu&&(Yu=o):(t<Yu&&(Yu=t),t>Ju&&(Ju=t)),c?e<$u?pc(Qu,e)>pc(Qu,Xu)&&(Xu=e):pc(e,Xu)>pc(Qu,Xu)&&(Qu=e):Xu>=Qu?(e<Qu&&(Qu=e),e>Xu&&(Xu=e)):e>$u?pc(Qu,e)>pc(Qu,Xu)&&(Xu=e):pc(e,Xu)>pc(Qu,Xu)&&(Qu=e)}else nc.push(rc=[Qu=e,Xu=e]);t<Yu&&(Yu=t),t>Ju&&(Ju=t),tc=n,$u=e}function uc(){oc.point=sc}function cc(){rc[0]=Qu,rc[1]=Xu,oc.point=ac,tc=null}function lc(e,t){if(tc){var n=e-$u;ic.add(au(n)>180?n+(n>0?360:-360):n)}else Zu=e,ec=t;Mu.point(e,t),sc(e,t)}function fc(){Mu.lineStart()}function hc(){lc(Zu,ec),Mu.lineEnd(),au(ic)>Zs&&(Qu=-(Xu=180)),rc[0]=Qu,rc[1]=Xu,tc=null}function pc(e,t){return(t-=e)<0?t+360:t}function dc(e,t){return e[0]-t[0]}function vc(e,t){return e[0]<=e[1]?e[0]<=t&&t<=e[1]:t<e[0]||e[1]<t}var mc,yc,gc,bc,_c,wc,Ec,xc,Cc,Tc,kc,Sc,Ac,Nc,Oc,Ic,Pc=function(e){var t,n,r,i,o,a,s;if(Ju=Xu=-(Qu=Yu=1/0),nc=[],Pu(e,oc),n=nc.length){for(nc.sort(dc),t=1,o=[r=nc[0]];t<n;++t)vc(r,(i=nc[t])[0])||vc(r,i[1])?(pc(r[0],i[1])>pc(r[0],r[1])&&(r[1]=i[1]),pc(i[0],r[1])>pc(r[0],r[1])&&(r[0]=i[0])):o.push(r=i);for(a=-1/0,t=0,r=o[n=o.length-1];t<=n;r=i,++t)i=o[t],(s=pc(r[1],i[0]))>a&&(a=s,Qu=i[0],Xu=r[1])}return nc=rc=null,Qu===1/0||Yu===1/0?[[NaN,NaN],[NaN,NaN]]:[[Qu,Yu],[Xu,Ju]]},Rc={sphere:wu,point:Dc,lineStart:Lc,lineEnd:Uc,polygonStart:function(){Rc.lineStart=Bc,Rc.lineEnd=qc},polygonEnd:function(){Rc.lineStart=Lc,Rc.lineEnd=Uc}};function Dc(e,t){e*=ou;var n=cu(t*=ou);Mc(n*cu(e),n*du(e),du(t))}function Mc(e,t,n){gc+=(e-gc)/++mc,bc+=(t-bc)/mc,_c+=(n-_c)/mc}function Lc(){Rc.point=jc}function jc(e,t){e*=ou;var n=cu(t*=ou);Nc=n*cu(e),Oc=n*du(e),Ic=du(t),Rc.point=Fc,Mc(Nc,Oc,Ic)}function Fc(e,t){e*=ou;var n=cu(t*=ou),r=n*cu(e),i=n*du(e),o=du(t),a=uu(mu((a=Oc*o-Ic*i)*a+(a=Ic*r-Nc*o)*a+(a=Nc*i-Oc*r)*a),Nc*r+Oc*i+Ic*o);yc+=a,wc+=a*(Nc+(Nc=r)),Ec+=a*(Oc+(Oc=i)),xc+=a*(Ic+(Ic=o)),Mc(Nc,Oc,Ic)}function Uc(){Rc.point=Dc}function Bc(){Rc.point=Vc}function qc(){Wc(Sc,Ac),Rc.point=Dc}function Vc(e,t){Sc=e,Ac=t,e*=ou,t*=ou,Rc.point=Wc;var n=cu(t);Nc=n*cu(e),Oc=n*du(e),Ic=du(t),Mc(Nc,Oc,Ic)}function Wc(e,t){e*=ou;var n=cu(t*=ou),r=n*cu(e),i=n*du(e),o=du(t),a=Oc*o-Ic*i,s=Ic*r-Nc*o,u=Nc*i-Oc*r,c=mu(a*a+s*s+u*u),l=bu(c),f=c&&-l/c;Cc+=f*a,Tc+=f*s,kc+=f*u,yc+=l,wc+=l*(Nc+(Nc=r)),Ec+=l*(Oc+(Oc=i)),xc+=l*(Ic+(Ic=o)),Mc(Nc,Oc,Ic)}var zc=function(e){mc=yc=gc=bc=_c=wc=Ec=xc=Cc=Tc=kc=0,Pu(e,Rc);var t=Cc,n=Tc,r=kc,i=t*t+n*n+r*r;return i<1e-12&&(t=wc,n=Ec,r=xc,yc<Zs&&(t=gc,n=bc,r=_c),(i=t*t+n*n+r*r)<1e-12)?[NaN,NaN]:[uu(n,t)*iu,bu(r/mu(i))*iu]},Hc=function(e){return function(){return e}},Kc=function(e,t){function n(n,r){return n=e(n,r),t(n[0],n[1])}return e.invert&&t.invert&&(n.invert=function(n,r){return(n=t.invert(n,r))&&e.invert(n[0],n[1])}),n};function Gc(e,t){return[e>eu?e-ru:e<-eu?e+ru:e,t]}function Qc(e,t,n){return(e%=ru)?t||n?Kc(Xc(e),Jc(t,n)):Xc(e):t||n?Jc(t,n):Gc}function Yc(e){return function(t,n){return[(t+=e)>eu?t-ru:t<-eu?t+ru:t,n]}}function Xc(e){var t=Yc(e);return t.invert=Yc(-e),t}function Jc(e,t){var n=cu(e),r=du(e),i=cu(t),o=du(t);function a(e,t){var a=cu(t),s=cu(e)*a,u=du(e)*a,c=du(t),l=c*n+s*r;return[uu(u*i-l*o,s*n-c*r),bu(l*i+u*o)]}return a.invert=function(e,t){var a=cu(t),s=cu(e)*a,u=du(e)*a,c=du(t),l=c*i-u*o;return[uu(u*i+c*o,s*n+l*r),bu(l*n-s*r)]},a}Gc.invert=Gc;var $c=function(e){function t(t){return(t=e(t[0]*ou,t[1]*ou))[0]*=iu,t[1]*=iu,t}return e=Qc(e[0]*ou,e[1]*ou,e.length>2?e[2]*ou:0),t.invert=function(t){return(t=e.invert(t[0]*ou,t[1]*ou))[0]*=iu,t[1]*=iu,t},t};function Zc(e,t,n,r,i,o){if(n){var a=cu(t),s=du(t),u=r*n;null==i?(i=t+r*ru,o=t-u/2):(i=el(a,i),o=el(a,o),(r>0?i<o:i>o)&&(i+=r*ru));for(var c,l=i;r>0?l>o:l<o;l-=u)c=qu([a,-s*cu(l),-s*du(l)]),e.point(c[0],c[1])}}function el(e,t){(t=Vu(t))[0]-=e,Gu(t);var n=gu(-t[1]);return((-t[2]<0?-n:n)+ru-Zs)%ru}var tl=function(){var e,t,n=Hc([0,0]),r=Hc(90),i=Hc(6),o={point:function(n,r){e.push(n=t(n,r)),n[0]*=iu,n[1]*=iu}};function a(){var a=n.apply(this,arguments),s=r.apply(this,arguments)*ou,u=i.apply(this,arguments)*ou;return e=[],t=Qc(-a[0]*ou,-a[1]*ou,0).invert,Zc(o,s,u,1),a={type:"Polygon",coordinates:[e]},e=t=null,a}return a.center=function(e){return arguments.length?(n="function"==typeof e?e:Hc([+e[0],+e[1]]),a):n},a.radius=function(e){return arguments.length?(r="function"==typeof e?e:Hc(+e),a):r},a.precision=function(e){return arguments.length?(i="function"==typeof e?e:Hc(+e),a):i},a},nl=function(){var e,t=[];return{point:function(t,n){e.push([t,n])},lineStart:function(){t.push(e=[])},lineEnd:wu,rejoin:function(){t.length>1&&t.push(t.pop().concat(t.shift()))},result:function(){var n=t;return t=[],e=null,n}}},rl=function(e,t){return au(e[0]-t[0])<Zs&&au(e[1]-t[1])<Zs};function il(e,t,n,r){this.x=e,this.z=t,this.o=n,this.e=r,this.v=!1,this.n=this.p=null}var ol=function(e,t,n,r,i){var o,a,s=[],u=[];if(e.forEach(function(e){if(!((t=e.length-1)<=0)){var t,n,r=e[0],a=e[t];if(rl(r,a)){for(i.lineStart(),o=0;o<t;++o)i.point((r=e[o])[0],r[1]);i.lineEnd()}else s.push(n=new il(r,e,null,!0)),u.push(n.o=new il(r,null,n,!1)),s.push(n=new il(a,e,null,!1)),u.push(n.o=new il(a,null,n,!0))}}),s.length){for(u.sort(t),al(s),al(u),o=0,a=u.length;o<a;++o)u[o].e=n=!n;for(var c,l,f=s[0];;){for(var h=f,p=!0;h.v;)if((h=h.n)===f)return;c=h.z,i.lineStart();do{if(h.v=h.o.v=!0,h.e){if(p)for(o=0,a=c.length;o<a;++o)i.point((l=c[o])[0],l[1]);else r(h.x,h.n.x,1,i);h=h.n}else{if(p)for(c=h.p.z,o=c.length-1;o>=0;--o)i.point((l=c[o])[0],l[1]);else r(h.x,h.p.x,-1,i);h=h.p}c=(h=h.o).z,p=!p}while(!h.v);i.lineEnd()}}};function al(e){if(t=e.length){for(var t,n,r=0,i=e[0];++r<t;)i.n=n=e[r],n.p=i,i=n;i.n=n=e[0],n.p=i}}var sl=Ys(),ul=function(e,t){var n=t[0],r=t[1],i=du(r),o=[du(n),-cu(n),0],a=0,s=0;sl.reset(),1===i?r=tu+Zs:-1===i&&(r=-tu-Zs);for(var u=0,c=e.length;u<c;++u)if(f=(l=e[u]).length)for(var l,f,h=l[f-1],p=h[0],d=h[1]/2+nu,v=du(d),m=cu(d),y=0;y<f;++y,p=b,v=w,m=E,h=g){var g=l[y],b=g[0],_=g[1]/2+nu,w=du(_),E=cu(_),x=b-p,C=x>=0?1:-1,T=C*x,k=T>eu,S=v*w;if(sl.add(uu(S*C*du(T),m*E+S*cu(T))),a+=k?x+C*ru:x,k^p>=n^b>=n){var A=zu(Vu(h),Vu(g));Gu(A);var N=zu(o,A);Gu(N);var O=(k^x>=0?-1:1)*bu(N[2]);(r>O||r===O&&(A[0]||A[1]))&&(s+=k^x>=0?1:-1)}}return(a<-Zs||a<Zs&&sl<-Zs)^1&s},cl=function(e,t,n,r){return function(i){var o,a,s,u=t(i),c=nl(),l=t(c),f=!1,h={point:p,lineStart:v,lineEnd:m,polygonStart:function(){h.point=y,h.lineStart=g,h.lineEnd=b,a=[],o=[]},polygonEnd:function(){h.point=p,h.lineStart=v,h.lineEnd=m,a=j(a);var e=ul(o,r);a.length?(f||(i.polygonStart(),f=!0),ol(a,fl,e,n,i)):e&&(f||(i.polygonStart(),f=!0),i.lineStart(),n(null,null,1,i),i.lineEnd()),f&&(i.polygonEnd(),f=!1),a=o=null},sphere:function(){i.polygonStart(),i.lineStart(),n(null,null,1,i),i.lineEnd(),i.polygonEnd()}};function p(t,n){e(t,n)&&i.point(t,n)}function d(e,t){u.point(e,t)}function v(){h.point=d,u.lineStart()}function m(){h.point=p,u.lineEnd()}function y(e,t){s.push([e,t]),l.point(e,t)}function g(){l.lineStart(),s=[]}function b(){y(s[0][0],s[0][1]),l.lineEnd();var e,t,n,r,u=l.clean(),h=c.result(),p=h.length;if(s.pop(),o.push(s),s=null,p)if(1&u){if((t=(n=h[0]).length-1)>0){for(f||(i.polygonStart(),f=!0),i.lineStart(),e=0;e<t;++e)i.point((r=n[e])[0],r[1]);i.lineEnd()}}else p>1&&2&u&&h.push(h.pop().concat(h.shift())),a.push(h.filter(ll))}return h}};function ll(e){return e.length>1}function fl(e,t){return((e=e.x)[0]<0?e[1]-tu-Zs:tu-e[1])-((t=t.x)[0]<0?t[1]-tu-Zs:tu-t[1])}var hl=cl(function(){return!0},function(e){var t,n=NaN,r=NaN,i=NaN;return{lineStart:function(){e.lineStart(),t=1},point:function(o,a){var s=o>0?eu:-eu,u=au(o-n);au(u-eu)<Zs?(e.point(n,r=(r+a)/2>0?tu:-tu),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),e.point(o,r),t=0):i!==s&&u>=eu&&(au(n-i)<Zs&&(n-=i*Zs),au(o-s)<Zs&&(o-=s*Zs),r=function(e,t,n,r){var i,o,a=du(e-n);return au(a)>Zs?su((du(t)*(o=cu(r))*du(n)-du(r)*(i=cu(t))*du(e))/(i*o*a)):(t+r)/2}(n,r,o,a),e.point(i,r),e.lineEnd(),e.lineStart(),e.point(s,r),t=0),e.point(n=o,r=a),i=s},lineEnd:function(){e.lineEnd(),n=r=NaN},clean:function(){return 2-t}}},function(e,t,n,r){var i;if(null==e)i=n*tu,r.point(-eu,i),r.point(0,i),r.point(eu,i),r.point(eu,0),r.point(eu,-i),r.point(0,-i),r.point(-eu,-i),r.point(-eu,0),r.point(-eu,i);else if(au(e[0]-t[0])>Zs){var o=e[0]<t[0]?eu:-eu;i=n*o/2,r.point(-o,i),r.point(0,i),r.point(o,i)}else r.point(t[0],t[1])},[-eu,-tu]);var pl=function(e){var t=cu(e),n=6*ou,r=t>0,i=au(t)>Zs;function o(e,n){return cu(e)*cu(n)>t}function a(e,n,r){var i=[1,0,0],o=zu(Vu(e),Vu(n)),a=Wu(o,o),s=o[0],u=a-s*s;if(!u)return!r&&e;var c=t*a/u,l=-t*s/u,f=zu(i,o),h=Ku(i,c);Hu(h,Ku(o,l));var p=f,d=Wu(h,p),v=Wu(p,p),m=d*d-v*(Wu(h,h)-1);if(!(m<0)){var y=mu(m),g=Ku(p,(-d-y)/v);if(Hu(g,h),g=qu(g),!r)return g;var b,_=e[0],w=n[0],E=e[1],x=n[1];w<_&&(b=_,_=w,w=b);var C=w-_,T=au(C-eu)<Zs;if(!T&&x<E&&(b=E,E=x,x=b),T||C<Zs?T?E+x>0^g[1]<(au(g[0]-_)<Zs?E:x):E<=g[1]&&g[1]<=x:C>eu^(_<=g[0]&&g[0]<=w)){var k=Ku(p,(-d+y)/v);return Hu(k,h),[g,qu(k)]}}}function s(t,n){var i=r?e:eu-e,o=0;return t<-i?o|=1:t>i&&(o|=2),n<-i?o|=4:n>i&&(o|=8),o}return cl(o,function(e){var t,n,u,c,l;return{lineStart:function(){c=u=!1,l=1},point:function(f,h){var p,d=[f,h],v=o(f,h),m=r?v?0:s(f,h):v?s(f+(f<0?eu:-eu),h):0;if(!t&&(c=u=v)&&e.lineStart(),v!==u&&(!(p=a(t,d))||rl(t,p)||rl(d,p))&&(d[0]+=Zs,d[1]+=Zs,v=o(d[0],d[1])),v!==u)l=0,v?(e.lineStart(),p=a(d,t),e.point(p[0],p[1])):(p=a(t,d),e.point(p[0],p[1]),e.lineEnd()),t=p;else if(i&&t&&r^v){var y;m&n||!(y=a(d,t,!0))||(l=0,r?(e.lineStart(),e.point(y[0][0],y[0][1]),e.point(y[1][0],y[1][1]),e.lineEnd()):(e.point(y[1][0],y[1][1]),e.lineEnd(),e.lineStart(),e.point(y[0][0],y[0][1])))}!v||t&&rl(t,d)||e.point(d[0],d[1]),t=d,u=v,n=m},lineEnd:function(){u&&e.lineEnd(),t=null},clean:function(){return l|(c&&u)<<1}}},function(t,r,i,o){Zc(o,e,n,i,t,r)},r?[0,-e]:[-eu,e-eu])},dl=function(e,t,n,r,i,o){var a,s=e[0],u=e[1],c=0,l=1,f=t[0]-s,h=t[1]-u;if(a=n-s,f||!(a>0)){if(a/=f,f<0){if(a<c)return;a<l&&(l=a)}else if(f>0){if(a>l)return;a>c&&(c=a)}if(a=i-s,f||!(a<0)){if(a/=f,f<0){if(a>l)return;a>c&&(c=a)}else if(f>0){if(a<c)return;a<l&&(l=a)}if(a=r-u,h||!(a>0)){if(a/=h,h<0){if(a<c)return;a<l&&(l=a)}else if(h>0){if(a>l)return;a>c&&(c=a)}if(a=o-u,h||!(a<0)){if(a/=h,h<0){if(a>l)return;a>c&&(c=a)}else if(h>0){if(a<c)return;a<l&&(l=a)}return c>0&&(e[0]=s+c*f,e[1]=u+c*h),l<1&&(t[0]=s+l*f,t[1]=u+l*h),!0}}}}},vl=1e9,ml=-vl;function yl(e,t,n,r){function i(i,o){return e<=i&&i<=n&&t<=o&&o<=r}function o(i,o,s,c){var l=0,f=0;if(null==i||(l=a(i,s))!==(f=a(o,s))||u(i,o)<0^s>0)do{c.point(0===l||3===l?e:n,l>1?r:t)}while((l=(l+s+4)%4)!==f);else c.point(o[0],o[1])}function a(r,i){return au(r[0]-e)<Zs?i>0?0:3:au(r[0]-n)<Zs?i>0?2:1:au(r[1]-t)<Zs?i>0?1:0:i>0?3:2}function s(e,t){return u(e.x,t.x)}function u(e,t){var n=a(e,1),r=a(t,1);return n!==r?n-r:0===n?t[1]-e[1]:1===n?e[0]-t[0]:2===n?e[1]-t[1]:t[0]-e[0]}return function(a){var u,c,l,f,h,p,d,v,m,y,g,b=a,_=nl(),w={point:E,lineStart:function(){w.point=x,c&&c.push(l=[]);y=!0,m=!1,d=v=NaN},lineEnd:function(){u&&(x(f,h),p&&m&&_.rejoin(),u.push(_.result()));w.point=E,m&&b.lineEnd()},polygonStart:function(){b=_,u=[],c=[],g=!0},polygonEnd:function(){var t=function(){for(var t=0,n=0,i=c.length;n<i;++n)for(var o,a,s=c[n],u=1,l=s.length,f=s[0],h=f[0],p=f[1];u<l;++u)o=h,a=p,f=s[u],h=f[0],p=f[1],a<=r?p>r&&(h-o)*(r-a)>(p-a)*(e-o)&&++t:p<=r&&(h-o)*(r-a)<(p-a)*(e-o)&&--t;return t}(),n=g&&t,i=(u=j(u)).length;(n||i)&&(a.polygonStart(),n&&(a.lineStart(),o(null,null,1,a),a.lineEnd()),i&&ol(u,s,t,o,a),a.polygonEnd());b=a,u=c=l=null}};function E(e,t){i(e,t)&&b.point(e,t)}function x(o,a){var s=i(o,a);if(c&&l.push([o,a]),y)f=o,h=a,p=s,y=!1,s&&(b.lineStart(),b.point(o,a));else if(s&&m)b.point(o,a);else{var u=[d=Math.max(ml,Math.min(vl,d)),v=Math.max(ml,Math.min(vl,v))],_=[o=Math.max(ml,Math.min(vl,o)),a=Math.max(ml,Math.min(vl,a))];dl(u,_,e,t,n,r)?(m||(b.lineStart(),b.point(u[0],u[1])),b.point(_[0],_[1]),s||b.lineEnd(),g=!1):s&&(b.lineStart(),b.point(o,a),g=!1)}d=o,v=a,m=s}return w}}var gl,bl,_l,wl=function(){var e,t,n,r=0,i=0,o=960,a=500;return n={stream:function(n){return e&&t===n?e:e=yl(r,i,o,a)(t=n)},extent:function(s){return arguments.length?(r=+s[0][0],i=+s[0][1],o=+s[1][0],a=+s[1][1],e=t=null,n):[[r,i],[o,a]]}}},El=Ys(),xl={sphere:wu,point:wu,lineStart:function(){xl.point=Tl,xl.lineEnd=Cl},lineEnd:wu,polygonStart:wu,polygonEnd:wu};function Cl(){xl.point=xl.lineEnd=wu}function Tl(e,t){gl=e*=ou,bl=du(t*=ou),_l=cu(t),xl.point=kl}function kl(e,t){e*=ou;var n=du(t*=ou),r=cu(t),i=au(e-gl),o=cu(i),a=r*du(i),s=_l*n-bl*r*o,u=bl*n+_l*r*o;El.add(uu(mu(a*a+s*s),u)),gl=e,bl=n,_l=r}var Sl=function(e){return El.reset(),Pu(e,xl),+El},Al=[null,null],Nl={type:"LineString",coordinates:Al},Ol=function(e,t){return Al[0]=e,Al[1]=t,Sl(Nl)},Il={Feature:function(e,t){return Rl(e.geometry,t)},FeatureCollection:function(e,t){for(var n=e.features,r=-1,i=n.length;++r<i;)if(Rl(n[r].geometry,t))return!0;return!1}},Pl={Sphere:function(){return!0},Point:function(e,t){return Dl(e.coordinates,t)},MultiPoint:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Dl(n[r],t))return!0;return!1},LineString:function(e,t){return Ml(e.coordinates,t)},MultiLineString:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Ml(n[r],t))return!0;return!1},Polygon:function(e,t){return Ll(e.coordinates,t)},MultiPolygon:function(e,t){for(var n=e.coordinates,r=-1,i=n.length;++r<i;)if(Ll(n[r],t))return!0;return!1},GeometryCollection:function(e,t){for(var n=e.geometries,r=-1,i=n.length;++r<i;)if(Rl(n[r],t))return!0;return!1}};function Rl(e,t){return!(!e||!Pl.hasOwnProperty(e.type))&&Pl[e.type](e,t)}function Dl(e,t){return 0===Ol(e,t)}function Ml(e,t){var n=Ol(e[0],e[1]);return Ol(e[0],t)+Ol(t,e[1])<=n+Zs}function Ll(e,t){return!!ul(e.map(jl),Fl(t))}function jl(e){return(e=e.map(Fl)).pop(),e}function Fl(e){return[e[0]*ou,e[1]*ou]}var Ul=function(e,t){return(e&&Il.hasOwnProperty(e.type)?Il[e.type]:Rl)(e,t)};function Bl(e,t,n){var r=E(e,t-Zs,n).concat(t);return function(e){return r.map(function(t){return[e,t]})}}function ql(e,t,n){var r=E(e,t-Zs,n).concat(t);return function(e){return r.map(function(t){return[t,e]})}}function Vl(){var e,t,n,r,i,o,a,s,u,c,l,f,h=10,p=h,d=90,v=360,m=2.5;function y(){return{type:"MultiLineString",coordinates:g()}}function g(){return E(lu(r/d)*d,n,d).map(l).concat(E(lu(s/v)*v,a,v).map(f)).concat(E(lu(t/h)*h,e,h).filter(function(e){return au(e%d)>Zs}).map(u)).concat(E(lu(o/p)*p,i,p).filter(function(e){return au(e%v)>Zs}).map(c))}return y.lines=function(){return g().map(function(e){return{type:"LineString",coordinates:e}})},y.outline=function(){return{type:"Polygon",coordinates:[l(r).concat(f(a).slice(1),l(n).reverse().slice(1),f(s).reverse().slice(1))]}},y.extent=function(e){return arguments.length?y.extentMajor(e).extentMinor(e):y.extentMinor()},y.extentMajor=function(e){return arguments.length?(r=+e[0][0],n=+e[1][0],s=+e[0][1],a=+e[1][1],r>n&&(e=r,r=n,n=e),s>a&&(e=s,s=a,a=e),y.precision(m)):[[r,s],[n,a]]},y.extentMinor=function(n){return arguments.length?(t=+n[0][0],e=+n[1][0],o=+n[0][1],i=+n[1][1],t>e&&(n=t,t=e,e=n),o>i&&(n=o,o=i,i=n),y.precision(m)):[[t,o],[e,i]]},y.step=function(e){return arguments.length?y.stepMajor(e).stepMinor(e):y.stepMinor()},y.stepMajor=function(e){return arguments.length?(d=+e[0],v=+e[1],y):[d,v]},y.stepMinor=function(e){return arguments.length?(h=+e[0],p=+e[1],y):[h,p]},y.precision=function(h){return arguments.length?(m=+h,u=Bl(o,i,90),c=ql(t,e,m),l=Bl(s,a,90),f=ql(r,n,m),y):m},y.extentMajor([[-180,-90+Zs],[180,90-Zs]]).extentMinor([[-180,-80-Zs],[180,80+Zs]])}function Wl(){return Vl()()}var zl,Hl,Kl,Gl,Ql=function(e,t){var n=e[0]*ou,r=e[1]*ou,i=t[0]*ou,o=t[1]*ou,a=cu(r),s=du(r),u=cu(o),c=du(o),l=a*cu(n),f=a*du(n),h=u*cu(i),p=u*du(i),d=2*bu(mu(_u(o-r)+a*u*_u(i-n))),v=du(d),m=d?function(e){var t=du(e*=d)/v,n=du(d-e)/v,r=n*l+t*h,i=n*f+t*p,o=n*s+t*c;return[uu(i,r)*iu,uu(o,mu(r*r+i*i))*iu]}:function(){return[n*iu,r*iu]};return m.distance=d,m},Yl=function(e){return e},Xl=Ys(),Jl=Ys(),$l={point:wu,lineStart:wu,lineEnd:wu,polygonStart:function(){$l.lineStart=Zl,$l.lineEnd=nf},polygonEnd:function(){$l.lineStart=$l.lineEnd=$l.point=wu,Xl.add(au(Jl)),Jl.reset()},result:function(){var e=Xl/2;return Xl.reset(),e}};function Zl(){$l.point=ef}function ef(e,t){$l.point=tf,zl=Kl=e,Hl=Gl=t}function tf(e,t){Jl.add(Gl*e-Kl*t),Kl=e,Gl=t}function nf(){tf(zl,Hl)}var rf=$l,of=1/0,af=of,sf=-of,uf=sf;var cf,lf,ff,hf,pf={point:function(e,t){e<of&&(of=e);e>sf&&(sf=e);t<af&&(af=t);t>uf&&(uf=t)},lineStart:wu,lineEnd:wu,polygonStart:wu,polygonEnd:wu,result:function(){var e=[[of,af],[sf,uf]];return sf=uf=-(af=of=1/0),e}},df=0,vf=0,mf=0,yf=0,gf=0,bf=0,_f=0,wf=0,Ef=0,xf={point:Cf,lineStart:Tf,lineEnd:Af,polygonStart:function(){xf.lineStart=Nf,xf.lineEnd=Of},polygonEnd:function(){xf.point=Cf,xf.lineStart=Tf,xf.lineEnd=Af},result:function(){var e=Ef?[_f/Ef,wf/Ef]:bf?[yf/bf,gf/bf]:mf?[df/mf,vf/mf]:[NaN,NaN];return df=vf=mf=yf=gf=bf=_f=wf=Ef=0,e}};function Cf(e,t){df+=e,vf+=t,++mf}function Tf(){xf.point=kf}function kf(e,t){xf.point=Sf,Cf(ff=e,hf=t)}function Sf(e,t){var n=e-ff,r=t-hf,i=mu(n*n+r*r);yf+=i*(ff+e)/2,gf+=i*(hf+t)/2,bf+=i,Cf(ff=e,hf=t)}function Af(){xf.point=Cf}function Nf(){xf.point=If}function Of(){Pf(cf,lf)}function If(e,t){xf.point=Pf,Cf(cf=ff=e,lf=hf=t)}function Pf(e,t){var n=e-ff,r=t-hf,i=mu(n*n+r*r);yf+=i*(ff+e)/2,gf+=i*(hf+t)/2,bf+=i,_f+=(i=hf*e-ff*t)*(ff+e),wf+=i*(hf+t),Ef+=3*i,Cf(ff=e,hf=t)}var Rf=xf;function Df(e){this._context=e}Df.prototype={_radius:4.5,pointRadius:function(e){return this._radius=e,this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._context.closePath(),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._context.moveTo(e,t),this._point=1;break;case 1:this._context.lineTo(e,t);break;default:this._context.moveTo(e+this._radius,t),this._context.arc(e,t,this._radius,0,ru)}},result:wu};var Mf,Lf,jf,Ff,Uf,Bf=Ys(),qf={point:wu,lineStart:function(){qf.point=Vf},lineEnd:function(){Mf&&Wf(Lf,jf),qf.point=wu},polygonStart:function(){Mf=!0},polygonEnd:function(){Mf=null},result:function(){var e=+Bf;return Bf.reset(),e}};function Vf(e,t){qf.point=Wf,Lf=Ff=e,jf=Uf=t}function Wf(e,t){Ff-=e,Uf-=t,Bf.add(mu(Ff*Ff+Uf*Uf)),Ff=e,Uf=t}var zf=qf;function Hf(){this._string=[]}function Kf(e){return"m0,"+e+"a"+e+","+e+" 0 1,1 0,"+-2*e+"a"+e+","+e+" 0 1,1 0,"+2*e+"z"}Hf.prototype={_radius:4.5,_circle:Kf(4.5),pointRadius:function(e){return(e=+e)!==this._radius&&(this._radius=e,this._circle=null),this},polygonStart:function(){this._line=0},polygonEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){0===this._line&&this._string.push("Z"),this._point=NaN},point:function(e,t){switch(this._point){case 0:this._string.push("M",e,",",t),this._point=1;break;case 1:this._string.push("L",e,",",t);break;default:null==this._circle&&(this._circle=Kf(this._radius)),this._string.push("M",e,",",t,this._circle)}},result:function(){if(this._string.length){var e=this._string.join("");return this._string=[],e}return null}};var Gf=function(e,t){var n,r,i=4.5;function o(e){return e&&("function"==typeof i&&r.pointRadius(+i.apply(this,arguments)),Pu(e,n(r))),r.result()}return o.area=function(e){return Pu(e,n(rf)),rf.result()},o.measure=function(e){return Pu(e,n(zf)),zf.result()},o.bounds=function(e){return Pu(e,n(pf)),pf.result()},o.centroid=function(e){return Pu(e,n(Rf)),Rf.result()},o.projection=function(t){return arguments.length?(n=null==t?(e=null,Yl):(e=t).stream,o):e},o.context=function(e){return arguments.length?(r=null==e?(t=null,new Hf):new Df(t=e),"function"!=typeof i&&r.pointRadius(i),o):t},o.pointRadius=function(e){return arguments.length?(i="function"==typeof e?e:(r.pointRadius(+e),+e),o):i},o.projection(e).context(t)},Qf=function(e){return{stream:Yf(e)}};function Yf(e){return function(t){var n=new Xf;for(var r in e)n[r]=e[r];return n.stream=t,n}}function Xf(){}function Jf(e,t,n){var r=e.clipExtent&&e.clipExtent();return e.scale(150).translate([0,0]),null!=r&&e.clipExtent(null),Pu(n,e.stream(pf)),t(pf.result()),null!=r&&e.clipExtent(r),e}function $f(e,t,n){return Jf(e,function(n){var r=t[1][0]-t[0][0],i=t[1][1]-t[0][1],o=Math.min(r/(n[1][0]-n[0][0]),i/(n[1][1]-n[0][1])),a=+t[0][0]+(r-o*(n[1][0]+n[0][0]))/2,s=+t[0][1]+(i-o*(n[1][1]+n[0][1]))/2;e.scale(150*o).translate([a,s])},n)}function Zf(e,t,n){return $f(e,[[0,0],t],n)}function eh(e,t,n){return Jf(e,function(n){var r=+t,i=r/(n[1][0]-n[0][0]),o=(r-i*(n[1][0]+n[0][0]))/2,a=-i*n[0][1];e.scale(150*i).translate([o,a])},n)}function th(e,t,n){return Jf(e,function(n){var r=+t,i=r/(n[1][1]-n[0][1]),o=-i*n[0][0],a=(r-i*(n[1][1]+n[0][1]))/2;e.scale(150*i).translate([o,a])},n)}Xf.prototype={constructor:Xf,point:function(e,t){this.stream.point(e,t)},sphere:function(){this.stream.sphere()},lineStart:function(){this.stream.lineStart()},lineEnd:function(){this.stream.lineEnd()},polygonStart:function(){this.stream.polygonStart()},polygonEnd:function(){this.stream.polygonEnd()}};var nh=16,rh=cu(30*ou),ih=function(e,t){return+t?function(e,t){function n(r,i,o,a,s,u,c,l,f,h,p,d,v,m){var y=c-r,g=l-i,b=y*y+g*g;if(b>4*t&&v--){var _=a+h,w=s+p,E=u+d,x=mu(_*_+w*w+E*E),C=bu(E/=x),T=au(au(E)-1)<Zs||au(o-f)<Zs?(o+f)/2:uu(w,_),k=e(T,C),S=k[0],A=k[1],N=S-r,O=A-i,I=g*N-y*O;(I*I/b>t||au((y*N+g*O)/b-.5)>.3||a*h+s*p+u*d<rh)&&(n(r,i,o,a,s,u,S,A,T,_/=x,w/=x,E,v,m),m.point(S,A),n(S,A,T,_,w,E,c,l,f,h,p,d,v,m))}}return function(t){var r,i,o,a,s,u,c,l,f,h,p,d,v={point:m,lineStart:y,lineEnd:b,polygonStart:function(){t.polygonStart(),v.lineStart=_},polygonEnd:function(){t.polygonEnd(),v.lineStart=y}};function m(n,r){n=e(n,r),t.point(n[0],n[1])}function y(){l=NaN,v.point=g,t.lineStart()}function g(r,i){var o=Vu([r,i]),a=e(r,i);n(l,f,c,h,p,d,l=a[0],f=a[1],c=r,h=o[0],p=o[1],d=o[2],nh,t),t.point(l,f)}function b(){v.point=m,t.lineEnd()}function _(){y(),v.point=w,v.lineEnd=E}function w(e,t){g(r=e,t),i=l,o=f,a=h,s=p,u=d,v.point=g}function E(){n(l,f,c,h,p,d,i,o,r,a,s,u,nh,t),v.lineEnd=b,b()}return v}}(e,t):function(e){return Yf({point:function(t,n){t=e(t,n),this.stream.point(t[0],t[1])}})}(e)};var oh=Yf({point:function(e,t){this.stream.point(e*ou,t*ou)}});function ah(e,t,n,r){var i=cu(r),o=du(r),a=i*e,s=o*e,u=i/e,c=o/e,l=(o*n-i*t)/e,f=(o*t+i*n)/e;function h(e,r){return[a*e-s*r+t,n-s*e-a*r]}return h.invert=function(e,t){return[u*e-c*t+l,f-c*e-u*t]},h}function sh(e){return uh(function(){return e})()}function uh(e){var t,n,r,i,o,a,s,u,c,l,f=150,h=480,p=250,d=0,v=0,m=0,y=0,g=0,b=0,_=null,w=hl,E=null,x=Yl,C=.5;function T(e){return u(e[0]*ou,e[1]*ou)}function k(e){return(e=u.invert(e[0],e[1]))&&[e[0]*iu,e[1]*iu]}function S(){var e=ah(f,0,0,b).apply(null,t(d,v)),r=(b?ah:function(e,t,n){function r(r,i){return[t+e*r,n-e*i]}return r.invert=function(r,i){return[(r-t)/e,(n-i)/e]},r})(f,h-e[0],p-e[1],b);return n=Qc(m,y,g),s=Kc(t,r),u=Kc(n,s),a=ih(s,C),A()}function A(){return c=l=null,T}return T.stream=function(e){return c&&l===e?c:c=oh(function(e){return Yf({point:function(t,n){var r=e(t,n);return this.stream.point(r[0],r[1])}})}(n)(w(a(x(l=e)))))},T.preclip=function(e){return arguments.length?(w=e,_=void 0,A()):w},T.postclip=function(e){return arguments.length?(x=e,E=r=i=o=null,A()):x},T.clipAngle=function(e){return arguments.length?(w=+e?pl(_=e*ou):(_=null,hl),A()):_*iu},T.clipExtent=function(e){return arguments.length?(x=null==e?(E=r=i=o=null,Yl):yl(E=+e[0][0],r=+e[0][1],i=+e[1][0],o=+e[1][1]),A()):null==E?null:[[E,r],[i,o]]},T.scale=function(e){return arguments.length?(f=+e,S()):f},T.translate=function(e){return arguments.length?(h=+e[0],p=+e[1],S()):[h,p]},T.center=function(e){return arguments.length?(d=e[0]%360*ou,v=e[1]%360*ou,S()):[d*iu,v*iu]},T.rotate=function(e){return arguments.length?(m=e[0]%360*ou,y=e[1]%360*ou,g=e.length>2?e[2]%360*ou:0,S()):[m*iu,y*iu,g*iu]},T.angle=function(e){return arguments.length?(b=e%360*ou,S()):b*iu},T.precision=function(e){return arguments.length?(a=ih(s,C=e*e),A()):mu(C)},T.fitExtent=function(e,t){return $f(T,e,t)},T.fitSize=function(e,t){return Zf(T,e,t)},T.fitWidth=function(e,t){return eh(T,e,t)},T.fitHeight=function(e,t){return th(T,e,t)},function(){return t=e.apply(this,arguments),T.invert=t.invert&&k,S()}}function ch(e){var t=0,n=eu/3,r=uh(e),i=r(t,n);return i.parallels=function(e){return arguments.length?r(t=e[0]*ou,n=e[1]*ou):[t*iu,n*iu]},i}function lh(e,t){var n=du(e),r=(n+du(t))/2;if(au(r)<Zs)return function(e){var t=cu(e);function n(e,n){return[e*t,du(n)/t]}return n.invert=function(e,n){return[e/t,bu(n*t)]},n}(e);var i=1+n*(2*r-n),o=mu(i)/r;function a(e,t){var n=mu(i-2*r*du(t))/r;return[n*du(e*=r),o-n*cu(e)]}return a.invert=function(e,t){var n=o-t;return[uu(e,au(n))/r*vu(n),bu((i-(e*e+n*n)*r*r)/(2*r))]},a}var fh=function(){return ch(lh).scale(155.424).center([0,33.6442])},hh=function(){return fh().parallels([29.5,45.5]).scale(1070).translate([480,250]).rotate([96,0]).center([-.6,38.7])};var ph=function(){var e,t,n,r,i,o,a=hh(),s=fh().rotate([154,0]).center([-2,58.5]).parallels([55,65]),u=fh().rotate([157,0]).center([-3,19.9]).parallels([8,18]),c={point:function(e,t){o=[e,t]}};function l(e){var t=e[0],a=e[1];return o=null,n.point(t,a),o||(r.point(t,a),o)||(i.point(t,a),o)}function f(){return e=t=null,l}return l.invert=function(e){var t=a.scale(),n=a.translate(),r=(e[0]-n[0])/t,i=(e[1]-n[1])/t;return(i>=.12&&i<.234&&r>=-.425&&r<-.214?s:i>=.166&&i<.234&&r>=-.214&&r<-.115?u:a).invert(e)},l.stream=function(n){return e&&t===n?e:(r=[a.stream(t=n),s.stream(n),u.stream(n)],i=r.length,e={point:function(e,t){for(var n=-1;++n<i;)r[n].point(e,t)},sphere:function(){for(var e=-1;++e<i;)r[e].sphere()},lineStart:function(){for(var e=-1;++e<i;)r[e].lineStart()},lineEnd:function(){for(var e=-1;++e<i;)r[e].lineEnd()},polygonStart:function(){for(var e=-1;++e<i;)r[e].polygonStart()},polygonEnd:function(){for(var e=-1;++e<i;)r[e].polygonEnd()}});var r,i},l.precision=function(e){return arguments.length?(a.precision(e),s.precision(e),u.precision(e),f()):a.precision()},l.scale=function(e){return arguments.length?(a.scale(e),s.scale(.35*e),u.scale(e),l.translate(a.translate())):a.scale()},l.translate=function(e){if(!arguments.length)return a.translate();var t=a.scale(),o=+e[0],l=+e[1];return n=a.translate(e).clipExtent([[o-.455*t,l-.238*t],[o+.455*t,l+.238*t]]).stream(c),r=s.translate([o-.307*t,l+.201*t]).clipExtent([[o-.425*t+Zs,l+.12*t+Zs],[o-.214*t-Zs,l+.234*t-Zs]]).stream(c),i=u.translate([o-.205*t,l+.212*t]).clipExtent([[o-.214*t+Zs,l+.166*t+Zs],[o-.115*t-Zs,l+.234*t-Zs]]).stream(c),f()},l.fitExtent=function(e,t){return $f(l,e,t)},l.fitSize=function(e,t){return Zf(l,e,t)},l.fitWidth=function(e,t){return eh(l,e,t)},l.fitHeight=function(e,t){return th(l,e,t)},l.scale(1070)};function dh(e){return function(t,n){var r=cu(t),i=cu(n),o=e(r*i);return[o*i*du(t),o*du(n)]}}function vh(e){return function(t,n){var r=mu(t*t+n*n),i=e(r),o=du(i),a=cu(i);return[uu(t*o,r*a),bu(r&&n*o/r)]}}var mh=dh(function(e){return mu(2/(1+e))});mh.invert=vh(function(e){return 2*bu(e/2)});var yh=function(){return sh(mh).scale(124.75).clipAngle(179.999)},gh=dh(function(e){return(e=gu(e))&&e/du(e)});gh.invert=vh(function(e){return e});var bh=function(){return sh(gh).scale(79.4188).clipAngle(179.999)};function _h(e,t){return[e,hu(yu((tu+t)/2))]}_h.invert=function(e,t){return[e,2*su(fu(t))-tu]};var wh=function(){return Eh(_h).scale(961/ru)};function Eh(e){var t,n,r,i=sh(e),o=i.center,a=i.scale,s=i.translate,u=i.clipExtent,c=null;function l(){var o=eu*a(),s=i($c(i.rotate()).invert([0,0]));return u(null==c?[[s[0]-o,s[1]-o],[s[0]+o,s[1]+o]]:e===_h?[[Math.max(s[0]-o,c),t],[Math.min(s[0]+o,n),r]]:[[c,Math.max(s[1]-o,t)],[n,Math.min(s[1]+o,r)]])}return i.scale=function(e){return arguments.length?(a(e),l()):a()},i.translate=function(e){return arguments.length?(s(e),l()):s()},i.center=function(e){return arguments.length?(o(e),l()):o()},i.clipExtent=function(e){return arguments.length?(null==e?c=t=n=r=null:(c=+e[0][0],t=+e[0][1],n=+e[1][0],r=+e[1][1]),l()):null==c?null:[[c,t],[n,r]]},l()}function xh(e){return yu((tu+e)/2)}function Ch(e,t){var n=cu(e),r=e===t?du(e):hu(n/cu(t))/hu(xh(t)/xh(e)),i=n*pu(xh(e),r)/r;if(!r)return _h;function o(e,t){i>0?t<-tu+Zs&&(t=-tu+Zs):t>tu-Zs&&(t=tu-Zs);var n=i/pu(xh(t),r);return[n*du(r*e),i-n*cu(r*e)]}return o.invert=function(e,t){var n=i-t,o=vu(r)*mu(e*e+n*n);return[uu(e,au(n))/r*vu(n),2*su(pu(i/o,1/r))-tu]},o}var Th=function(){return ch(Ch).scale(109.5).parallels([30,30])};function kh(e,t){return[e,t]}kh.invert=kh;var Sh=function(){return sh(kh).scale(152.63)};function Ah(e,t){var n=cu(e),r=e===t?du(e):(n-cu(t))/(t-e),i=n/r+e;if(au(r)<Zs)return kh;function o(e,t){var n=i-t,o=r*e;return[n*du(o),i-n*cu(o)]}return o.invert=function(e,t){var n=i-t;return[uu(e,au(n))/r*vu(n),i-vu(r)*mu(e*e+n*n)]},o}var Nh=function(){return ch(Ah).scale(131.154).center([0,13.9389])};function Oh(e,t){var n=cu(t),r=cu(e)*n;return[n*du(e)/r,du(t)/r]}Oh.invert=vh(su);var Ih=function(){return sh(Oh).scale(144.049).clipAngle(60)};function Ph(e,t,n,r){return 1===e&&1===t&&0===n&&0===r?Yl:Yf({point:function(i,o){this.stream.point(i*e+n,o*t+r)}})}var Rh=function(){var e,t,n,r,i,o,a=1,s=0,u=0,c=1,l=1,f=Yl,h=null,p=Yl;function d(){return r=i=null,o}return o={stream:function(e){return r&&i===e?r:r=f(p(i=e))},postclip:function(r){return arguments.length?(p=r,h=e=t=n=null,d()):p},clipExtent:function(r){return arguments.length?(p=null==r?(h=e=t=n=null,Yl):yl(h=+r[0][0],e=+r[0][1],t=+r[1][0],n=+r[1][1]),d()):null==h?null:[[h,e],[t,n]]},scale:function(e){return arguments.length?(f=Ph((a=+e)*c,a*l,s,u),d()):a},translate:function(e){return arguments.length?(f=Ph(a*c,a*l,s=+e[0],u=+e[1]),d()):[s,u]},reflectX:function(e){return arguments.length?(f=Ph(a*(c=e?-1:1),a*l,s,u),d()):c<0},reflectY:function(e){return arguments.length?(f=Ph(a*c,a*(l=e?-1:1),s,u),d()):l<0},fitExtent:function(e,t){return $f(o,e,t)},fitSize:function(e,t){return Zf(o,e,t)},fitWidth:function(e,t){return eh(o,e,t)},fitHeight:function(e,t){return th(o,e,t)}}};function Dh(e,t){var n=t*t,r=n*n;return[e*(.8707-.131979*n+r*(r*(.003971*n-.001529*r)-.013791)),t*(1.007226+n*(.015085+r*(.028874*n-.044475-.005916*r)))]}Dh.invert=function(e,t){var n,r=t,i=25;do{var o=r*r,a=o*o;r-=n=(r*(1.007226+o*(.015085+a*(.028874*o-.044475-.005916*a)))-t)/(1.007226+o*(.045255+a*(.259866*o-.311325-.005916*11*a)))}while(au(n)>Zs&&--i>0);return[e/(.8707+(o=r*r)*(o*(o*o*o*(.003971-.001529*o)-.013791)-.131979)),r]};var Mh=function(){return sh(Dh).scale(175.295)};function Lh(e,t){return[cu(t)*du(e),du(t)]}Lh.invert=vh(bu);var jh=function(){return sh(Lh).scale(249.5).clipAngle(90+Zs)};function Fh(e,t){var n=cu(t),r=1+cu(e)*n;return[n*du(e)/r,du(t)/r]}Fh.invert=vh(function(e){return 2*su(e)});var Uh=function(){return sh(Fh).scale(250).clipAngle(142)};function Bh(e,t){return[hu(yu((tu+t)/2)),-e]}Bh.invert=function(e,t){return[-t,2*su(fu(e))-tu]};var qh=function(){var e=Eh(Bh),t=e.center,n=e.rotate;return e.center=function(e){return arguments.length?t([-e[1],e[0]]):[(e=t())[1],-e[0]]},e.rotate=function(e){return arguments.length?n([e[0],e[1],e.length>2?e[2]+90:90]):[(e=n())[0],e[1],e[2]-90]},n([0,0,90]).scale(159.155)};function Vh(e,t){return e.parent===t.parent?1:2}function Wh(e,t){return e+t.x}function zh(e,t){return Math.max(e,t.y)}var Hh=function(){var e=Vh,t=1,n=1,r=!1;function i(i){var o,a=0;i.eachAfter(function(t){var n=t.children;n?(t.x=function(e){return e.reduce(Wh,0)/e.length}(n),t.y=function(e){return 1+e.reduce(zh,0)}(n)):(t.x=o?a+=e(t,o):0,t.y=0,o=t)});var s=function(e){for(var t;t=e.children;)e=t[0];return e}(i),u=function(e){for(var t;t=e.children;)e=t[t.length-1];return e}(i),c=s.x-e(s,u)/2,l=u.x+e(u,s)/2;return i.eachAfter(r?function(e){e.x=(e.x-i.x)*t,e.y=(i.y-e.y)*n}:function(e){e.x=(e.x-c)/(l-c)*t,e.y=(1-(i.y?e.y/i.y:1))*n})}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i};function Kh(e){var t=0,n=e.children,r=n&&n.length;if(r)for(;--r>=0;)t+=n[r].value;else t=1;e.value=t}function Gh(e,t){var n,r,i,o,a,s=new Jh(e),u=+e.value&&(s.value=e.value),c=[s];for(null==t&&(t=Qh);n=c.pop();)if(u&&(n.value=+n.data.value),(i=t(n.data))&&(a=i.length))for(n.children=new Array(a),o=a-1;o>=0;--o)c.push(r=n.children[o]=new Jh(i[o])),r.parent=n,r.depth=n.depth+1;return s.eachBefore(Xh)}function Qh(e){return e.children}function Yh(e){e.data=e.data.data}function Xh(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Jh(e){this.data=e,this.depth=this.height=0,this.parent=null}Jh.prototype=Gh.prototype={constructor:Jh,count:function(){return this.eachAfter(Kh)},each:function(e){var t,n,r,i,o=this,a=[o];do{for(t=a.reverse(),a=[];o=t.pop();)if(e(o),n=o.children)for(r=0,i=n.length;r<i;++r)a.push(n[r])}while(a.length);return this},eachAfter:function(e){for(var t,n,r,i=this,o=[i],a=[];i=o.pop();)if(a.push(i),t=i.children)for(n=0,r=t.length;n<r;++n)o.push(t[n]);for(;i=a.pop();)e(i);return this},eachBefore:function(e){for(var t,n,r=this,i=[r];r=i.pop();)if(e(r),t=r.children)for(n=t.length-1;n>=0;--n)i.push(t[n]);return this},sum:function(e){return this.eachAfter(function(t){for(var n=+e(t.data)||0,r=t.children,i=r&&r.length;--i>=0;)n+=r[i].value;t.value=n})},sort:function(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})},path:function(e){for(var t=this,n=function(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r},ancestors:function(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t},descendants:function(){var e=[];return this.each(function(t){e.push(t)}),e},leaves:function(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e},links:function(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t},copy:function(){return Gh(this).eachBefore(Yh)}};var $h=Array.prototype.slice;var Zh=function(e){for(var t,n,r=0,i=(e=function(e){for(var t,n,r=e.length;r;)n=Math.random()*r--|0,t=e[r],e[r]=e[n],e[n]=t;return e}($h.call(e))).length,o=[];r<i;)t=e[r],n&&np(n,t)?++r:(n=ip(o=ep(o,t)),r=0);return n};function ep(e,t){var n,r;if(rp(t,e))return[t];for(n=0;n<e.length;++n)if(tp(t,e[n])&&rp(op(e[n],t),e))return[e[n],t];for(n=0;n<e.length-1;++n)for(r=n+1;r<e.length;++r)if(tp(op(e[n],e[r]),t)&&tp(op(e[n],t),e[r])&&tp(op(e[r],t),e[n])&&rp(ap(e[n],e[r],t),e))return[e[n],e[r],t];throw new Error}function tp(e,t){var n=e.r-t.r,r=t.x-e.x,i=t.y-e.y;return n<0||n*n<r*r+i*i}function np(e,t){var n=e.r-t.r+1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function rp(e,t){for(var n=0;n<t.length;++n)if(!np(e,t[n]))return!1;return!0}function ip(e){switch(e.length){case 1:return{x:(t=e[0]).x,y:t.y,r:t.r};case 2:return op(e[0],e[1]);case 3:return ap(e[0],e[1],e[2])}var t}function op(e,t){var n=e.x,r=e.y,i=e.r,o=t.x,a=t.y,s=t.r,u=o-n,c=a-r,l=s-i,f=Math.sqrt(u*u+c*c);return{x:(n+o+u/f*l)/2,y:(r+a+c/f*l)/2,r:(f+i+s)/2}}function ap(e,t,n){var r=e.x,i=e.y,o=e.r,a=t.x,s=t.y,u=t.r,c=n.x,l=n.y,f=n.r,h=r-a,p=r-c,d=i-s,v=i-l,m=u-o,y=f-o,g=r*r+i*i-o*o,b=g-a*a-s*s+u*u,_=g-c*c-l*l+f*f,w=p*d-h*v,E=(d*_-v*b)/(2*w)-r,x=(v*m-d*y)/w,C=(p*b-h*_)/(2*w)-i,T=(h*y-p*m)/w,k=x*x+T*T-1,S=2*(o+E*x+C*T),A=E*E+C*C-o*o,N=-(k?(S+Math.sqrt(S*S-4*k*A))/(2*k):A/S);return{x:r+E+x*N,y:i+C+T*N,r:N}}function sp(e,t,n){var r,i,o,a,s=e.x-t.x,u=e.y-t.y,c=s*s+u*u;c?(i=t.r+n.r,i*=i,a=e.r+n.r,i>(a*=a)?(r=(c+a-i)/(2*c),o=Math.sqrt(Math.max(0,a/c-r*r)),n.x=e.x-r*s-o*u,n.y=e.y-r*u+o*s):(r=(c+i-a)/(2*c),o=Math.sqrt(Math.max(0,i/c-r*r)),n.x=t.x+r*s-o*u,n.y=t.y+r*u+o*s)):(n.x=t.x+n.r,n.y=t.y)}function up(e,t){var n=e.r+t.r-1e-6,r=t.x-e.x,i=t.y-e.y;return n>0&&n*n>r*r+i*i}function cp(e){var t=e._,n=e.next._,r=t.r+n.r,i=(t.x*n.r+n.x*t.r)/r,o=(t.y*n.r+n.y*t.r)/r;return i*i+o*o}function lp(e){this._=e,this.next=null,this.previous=null}function fp(e){if(!(i=e.length))return 0;var t,n,r,i,o,a,s,u,c,l,f;if((t=e[0]).x=0,t.y=0,!(i>1))return t.r;if(n=e[1],t.x=-n.r,n.x=t.r,n.y=0,!(i>2))return t.r+n.r;sp(n,t,r=e[2]),t=new lp(t),n=new lp(n),r=new lp(r),t.next=r.previous=n,n.next=t.previous=r,r.next=n.previous=t;e:for(s=3;s<i;++s){sp(t._,n._,r=e[s]),r=new lp(r),u=n.next,c=t.previous,l=n._.r,f=t._.r;do{if(l<=f){if(up(u._,r._)){n=u,t.next=n,n.previous=t,--s;continue e}l+=u._.r,u=u.next}else{if(up(c._,r._)){(t=c).next=n,n.previous=t,--s;continue e}f+=c._.r,c=c.previous}}while(u!==c.next);for(r.previous=t,r.next=n,t.next=n.previous=n=r,o=cp(t);(r=r.next)!==n;)(a=cp(r))<o&&(t=r,o=a);n=t.next}for(t=[n._],r=n;(r=r.next)!==n;)t.push(r._);for(r=Zh(t),s=0;s<i;++s)(t=e[s]).x-=r.x,t.y-=r.y;return r.r}var hp=function(e){return fp(e),e};function pp(e){if("function"!=typeof e)throw new Error;return e}function dp(){return 0}var vp=function(e){return function(){return e}};function mp(e){return Math.sqrt(e.value)}var yp=function(){var e=null,t=1,n=1,r=dp;function i(i){return i.x=t/2,i.y=n/2,e?i.eachBefore(gp(e)).eachAfter(bp(r,.5)).eachBefore(_p(1)):i.eachBefore(gp(mp)).eachAfter(bp(dp,1)).eachAfter(bp(r,i.r/Math.min(t,n))).eachBefore(_p(Math.min(t,n)/(2*i.r))),i}return i.radius=function(t){return arguments.length?(e=null==(n=t)?null:pp(n),i):e;var n},i.size=function(e){return arguments.length?(t=+e[0],n=+e[1],i):[t,n]},i.padding=function(e){return arguments.length?(r="function"==typeof e?e:vp(+e),i):r},i};function gp(e){return function(t){t.children||(t.r=Math.max(0,+e(t)||0))}}function bp(e,t){return function(n){if(r=n.children){var r,i,o,a=r.length,s=e(n)*t||0;if(s)for(i=0;i<a;++i)r[i].r+=s;if(o=fp(r),s)for(i=0;i<a;++i)r[i].r-=s;n.r=o+s}}}function _p(e){return function(t){var n=t.parent;t.r*=e,n&&(t.x=n.x+e*t.x,t.y=n.y+e*t.y)}}var wp=function(e){e.x0=Math.round(e.x0),e.y0=Math.round(e.y0),e.x1=Math.round(e.x1),e.y1=Math.round(e.y1)},Ep=function(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(r-t)/e.value;++s<u;)(o=a[s]).y0=n,o.y1=i,o.x0=t,o.x1=t+=o.value*c},xp=function(){var e=1,t=1,n=0,r=!1;function i(i){var o=i.height+1;return i.x0=i.y0=n,i.x1=e,i.y1=t/o,i.eachBefore(function(e,t){return function(r){r.children&&Ep(r,r.x0,e*(r.depth+1)/t,r.x1,e*(r.depth+2)/t);var i=r.x0,o=r.y0,a=r.x1-n,s=r.y1-n;a<i&&(i=a=(i+a)/2),s<o&&(o=s=(o+s)/2),r.x0=i,r.y0=o,r.x1=a,r.y1=s}}(t,o)),r&&i.eachBefore(wp),i}return i.round=function(e){return arguments.length?(r=!!e,i):r},i.size=function(n){return arguments.length?(e=+n[0],t=+n[1],i):[e,t]},i.padding=function(e){return arguments.length?(n=+e,i):n},i},Cp="$",Tp={depth:-1},kp={};function Sp(e){return e.id}function Ap(e){return e.parentId}var Np=function(){var e=Sp,t=Ap;function n(n){var r,i,o,a,s,u,c,l=n.length,f=new Array(l),h={};for(i=0;i<l;++i)r=n[i],s=f[i]=new Jh(r),null!=(u=e(r,i,n))&&(u+="")&&(h[c=Cp+(s.id=u)]=c in h?kp:s);for(i=0;i<l;++i)if(s=f[i],null!=(u=t(n[i],i,n))&&(u+="")){if(!(a=h[Cp+u]))throw new Error("missing: "+u);if(a===kp)throw new Error("ambiguous: "+u);a.children?a.children.push(s):a.children=[s],s.parent=a}else{if(o)throw new Error("multiple roots");o=s}if(!o)throw new Error("no root");if(o.parent=Tp,o.eachBefore(function(e){e.depth=e.parent.depth+1,--l}).eachBefore(Xh),o.parent=null,l>0)throw new Error("cycle");return o}return n.id=function(t){return arguments.length?(e=pp(t),n):e},n.parentId=function(e){return arguments.length?(t=pp(e),n):t},n};function Op(e,t){return e.parent===t.parent?1:2}function Ip(e){var t=e.children;return t?t[0]:e.t}function Pp(e){var t=e.children;return t?t[t.length-1]:e.t}function Rp(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function Dp(e,t,n){return e.a.parent===t.parent?e.a:n}function Mp(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}Mp.prototype=Object.create(Jh.prototype);var Lp=function(){var e=Op,t=1,n=1,r=null;function i(i){var u=function(e){for(var t,n,r,i,o,a=new Mp(e,0),s=[a];t=s.pop();)if(r=t._.children)for(t.children=new Array(o=r.length),i=o-1;i>=0;--i)s.push(n=t.children[i]=new Mp(r[i],i)),n.parent=t;return(a.parent=new Mp(null,0)).children=[a],a}(i);if(u.eachAfter(o),u.parent.m=-u.z,u.eachBefore(a),r)i.eachBefore(s);else{var c=i,l=i,f=i;i.eachBefore(function(e){e.x<c.x&&(c=e),e.x>l.x&&(l=e),e.depth>f.depth&&(f=e)});var h=c===l?1:e(c,l)/2,p=h-c.x,d=t/(l.x+h+p),v=n/(f.depth||1);i.eachBefore(function(e){e.x=(e.x+p)*d,e.y=e.depth*v})}return i}function o(t){var n=t.children,r=t.parent.children,i=t.i?r[t.i-1]:null;if(n){!function(e){for(var t,n=0,r=0,i=e.children,o=i.length;--o>=0;)(t=i[o]).z+=n,t.m+=n,n+=t.s+(r+=t.c)}(t);var o=(n[0].z+n[n.length-1].z)/2;i?(t.z=i.z+e(t._,i._),t.m=t.z-o):t.z=o}else i&&(t.z=i.z+e(t._,i._));t.parent.A=function(t,n,r){if(n){for(var i,o=t,a=t,s=n,u=o.parent.children[0],c=o.m,l=a.m,f=s.m,h=u.m;s=Pp(s),o=Ip(o),s&&o;)u=Ip(u),(a=Pp(a)).a=t,(i=s.z+f-o.z-c+e(s._,o._))>0&&(Rp(Dp(s,t,r),t,i),c+=i,l+=i),f+=s.m,c+=o.m,h+=u.m,l+=a.m;s&&!Pp(a)&&(a.t=s,a.m+=f-l),o&&!Ip(u)&&(u.t=o,u.m+=c-h,r=t)}return r}(t,i,t.parent.A||r[0])}function a(e){e._.x=e.z+e.parent.m,e.m+=e.parent.m}function s(e){e.x*=t,e.y=e.depth*n}return i.separation=function(t){return arguments.length?(e=t,i):e},i.size=function(e){return arguments.length?(r=!1,t=+e[0],n=+e[1],i):r?null:[t,n]},i.nodeSize=function(e){return arguments.length?(r=!0,t=+e[0],n=+e[1],i):r?[t,n]:null},i},jp=function(e,t,n,r,i){for(var o,a=e.children,s=-1,u=a.length,c=e.value&&(i-n)/e.value;++s<u;)(o=a[s]).x0=t,o.x1=r,o.y0=n,o.y1=n+=o.value*c},Fp=(1+Math.sqrt(5))/2;function Up(e,t,n,r,i,o){for(var a,s,u,c,l,f,h,p,d,v,m,y=[],g=t.children,b=0,_=0,w=g.length,E=t.value;b<w;){u=i-n,c=o-r;do{l=g[_++].value}while(!l&&_<w);for(f=h=l,m=l*l*(v=Math.max(c/u,u/c)/(E*e)),d=Math.max(h/m,m/f);_<w;++_){if(l+=s=g[_].value,s<f&&(f=s),s>h&&(h=s),m=l*l*v,(p=Math.max(h/m,m/f))>d){l-=s;break}d=p}y.push(a={value:l,dice:u<c,children:g.slice(b,_)}),a.dice?Ep(a,n,r,i,E?r+=c*l/E:o):jp(a,n,r,E?n+=u*l/E:i,o),E-=l,b=_}return y}var Bp=function e(t){function n(e,n,r,i,o){Up(t,e,n,r,i,o)}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Fp),qp=function(){var e=Bp,t=!1,n=1,r=1,i=[0],o=dp,a=dp,s=dp,u=dp,c=dp;function l(e){return e.x0=e.y0=0,e.x1=n,e.y1=r,e.eachBefore(f),i=[0],t&&e.eachBefore(wp),e}function f(t){var n=i[t.depth],r=t.x0+n,l=t.y0+n,f=t.x1-n,h=t.y1-n;f<r&&(r=f=(r+f)/2),h<l&&(l=h=(l+h)/2),t.x0=r,t.y0=l,t.x1=f,t.y1=h,t.children&&(n=i[t.depth+1]=o(t)/2,r+=c(t)-n,l+=a(t)-n,f-=s(t)-n,h-=u(t)-n,f<r&&(r=f=(r+f)/2),h<l&&(l=h=(l+h)/2),e(t,r,l,f,h))}return l.round=function(e){return arguments.length?(t=!!e,l):t},l.size=function(e){return arguments.length?(n=+e[0],r=+e[1],l):[n,r]},l.tile=function(t){return arguments.length?(e=pp(t),l):e},l.padding=function(e){return arguments.length?l.paddingInner(e).paddingOuter(e):l.paddingInner()},l.paddingInner=function(e){return arguments.length?(o="function"==typeof e?e:vp(+e),l):o},l.paddingOuter=function(e){return arguments.length?l.paddingTop(e).paddingRight(e).paddingBottom(e).paddingLeft(e):l.paddingTop()},l.paddingTop=function(e){return arguments.length?(a="function"==typeof e?e:vp(+e),l):a},l.paddingRight=function(e){return arguments.length?(s="function"==typeof e?e:vp(+e),l):s},l.paddingBottom=function(e){return arguments.length?(u="function"==typeof e?e:vp(+e),l):u},l.paddingLeft=function(e){return arguments.length?(c="function"==typeof e?e:vp(+e),l):c},l},Vp=function(e,t,n,r,i){var o,a,s=e.children,u=s.length,c=new Array(u+1);for(c[0]=a=o=0;o<u;++o)c[o+1]=a+=s[o].value;!function e(t,n,r,i,o,a,u){if(t>=n-1){var l=s[t];return l.x0=i,l.y0=o,l.x1=a,void(l.y1=u)}var f=c[t],h=r/2+f,p=t+1,d=n-1;for(;p<d;){var v=p+d>>>1;c[v]<h?p=v+1:d=v}h-c[p-1]<c[p]-h&&t+1<p&&--p;var m=c[p]-f,y=r-m;if(a-i>u-o){var g=(i*y+a*m)/r;e(t,p,m,i,o,g,u),e(p,n,y,g,o,a,u)}else{var b=(o*y+u*m)/r;e(t,p,m,i,o,a,b),e(p,n,y,i,b,a,u)}}(0,u,e.value,t,n,r,i)},Wp=function(e,t,n,r,i){(1&e.depth?jp:Ep)(e,t,n,r,i)},zp=function e(t){function n(e,n,r,i,o){if((a=e._squarify)&&a.ratio===t)for(var a,s,u,c,l,f=-1,h=a.length,p=e.value;++f<h;){for(u=(s=a[f]).children,c=s.value=0,l=u.length;c<l;++c)s.value+=u[c].value;s.dice?Ep(s,n,r,i,r+=(o-r)*s.value/p):jp(s,n,r,n+=(i-n)*s.value/p,o),p-=s.value}else e._squarify=a=Up(t,e,n,r,i,o),a.ratio=t}return n.ratio=function(t){return e((t=+t)>1?t:1)},n}(Fp),Hp=function(e){for(var t,n=-1,r=e.length,i=e[r-1],o=0;++n<r;)t=i,i=e[n],o+=t[1]*i[0]-t[0]*i[1];return o/2},Kp=function(e){for(var t,n,r=-1,i=e.length,o=0,a=0,s=e[i-1],u=0;++r<i;)t=s,s=e[r],u+=n=t[0]*s[1]-s[0]*t[1],o+=(t[0]+s[0])*n,a+=(t[1]+s[1])*n;return[o/(u*=3),a/u]},Gp=function(e,t,n){return(t[0]-e[0])*(n[1]-e[1])-(t[1]-e[1])*(n[0]-e[0])};function Qp(e,t){return e[0]-t[0]||e[1]-t[1]}function Yp(e){for(var t=e.length,n=[0,1],r=2,i=2;i<t;++i){for(;r>1&&Gp(e[n[r-2]],e[n[r-1]],e[i])<=0;)--r;n[r++]=i}return n.slice(0,r)}var Xp=function(e){if((n=e.length)<3)return null;var t,n,r=new Array(n),i=new Array(n);for(t=0;t<n;++t)r[t]=[+e[t][0],+e[t][1],t];for(r.sort(Qp),t=0;t<n;++t)i[t]=[r[t][0],-r[t][1]];var o=Yp(r),a=Yp(i),s=a[0]===o[0],u=a[a.length-1]===o[o.length-1],c=[];for(t=o.length-1;t>=0;--t)c.push(e[r[o[t]][2]]);for(t=+s;t<a.length-u;++t)c.push(e[r[a[t]][2]]);return c},Jp=function(e,t){for(var n,r,i=e.length,o=e[i-1],a=t[0],s=t[1],u=o[0],c=o[1],l=!1,f=0;f<i;++f)n=(o=e[f])[0],(r=o[1])>s!=c>s&&a<(u-n)*(s-r)/(c-r)+n&&(l=!l),u=n,c=r;return l},$p=function(e){for(var t,n,r=-1,i=e.length,o=e[i-1],a=o[0],s=o[1],u=0;++r<i;)t=a,n=s,t-=a=(o=e[r])[0],n-=s=o[1],u+=Math.sqrt(t*t+n*n);return u},Zp=function(){return Math.random()},ed=function e(t){function n(e,n){return e=null==e?0:+e,n=null==n?1:+n,1===arguments.length?(n=e,e=0):n-=e,function(){return t()*n+e}}return n.source=e,n}(Zp),td=function e(t){function n(e,n){var r,i;return e=null==e?0:+e,n=null==n?1:+n,function(){var o;if(null!=r)o=r,r=null;else do{r=2*t()-1,o=2*t()-1,i=r*r+o*o}while(!i||i>1);return e+n*o*Math.sqrt(-2*Math.log(i)/i)}}return n.source=e,n}(Zp),nd=function e(t){function n(){var e=td.source(t).apply(this,arguments);return function(){return Math.exp(e())}}return n.source=e,n}(Zp),rd=function e(t){function n(e){return function(){for(var n=0,r=0;r<e;++r)n+=t();return n}}return n.source=e,n}(Zp),id=function e(t){function n(e){var n=rd.source(t)(e);return function(){return n()/e}}return n.source=e,n}(Zp),od=function e(t){function n(e){return function(){return-Math.log(1-t())/e}}return n.source=e,n}(Zp),ad=Array.prototype,sd=ad.map,ud=ad.slice,cd={name:"implicit"};function ld(e){var t=Xo(),n=[],r=cd;function i(i){var o=i+"",a=t.get(o);if(!a){if(r!==cd)return r;t.set(o,a=n.push(i))}return e[(a-1)%e.length]}return e=null==e?[]:ud.call(e),i.domain=function(e){if(!arguments.length)return n.slice();n=[],t=Xo();for(var r,o,a=-1,s=e.length;++a<s;)t.has(o=(r=e[a])+"")||t.set(o,n.push(r));return i},i.range=function(t){return arguments.length?(e=ud.call(t),i):e.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return ld().domain(n).range(e).unknown(r)},i}function fd(){var e,t,n=ld().unknown(void 0),r=n.domain,i=n.range,o=[0,1],a=!1,s=0,u=0,c=.5;function l(){var n=r().length,l=o[1]<o[0],f=o[l-0],h=o[1-l];e=(h-f)/Math.max(1,n-s+2*u),a&&(e=Math.floor(e)),f+=(h-f-e*(n-s))*c,t=e*(1-s),a&&(f=Math.round(f),t=Math.round(t));var p=E(n).map(function(t){return f+e*t});return i(l?p.reverse():p)}return delete n.unknown,n.domain=function(e){return arguments.length?(r(e),l()):r()},n.range=function(e){return arguments.length?(o=[+e[0],+e[1]],l()):o.slice()},n.rangeRound=function(e){return o=[+e[0],+e[1]],a=!0,l()},n.bandwidth=function(){return t},n.step=function(){return e},n.round=function(e){return arguments.length?(a=!!e,l()):a},n.padding=function(e){return arguments.length?(s=u=Math.max(0,Math.min(1,e)),l()):s},n.paddingInner=function(e){return arguments.length?(s=Math.max(0,Math.min(1,e)),l()):s},n.paddingOuter=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),l()):u},n.align=function(e){return arguments.length?(c=Math.max(0,Math.min(1,e)),l()):c},n.copy=function(){return fd().domain(r()).range(o).round(a).paddingInner(s).paddingOuter(u).align(c)},l()}function hd(){return function e(t){var n=t.copy;return t.padding=t.paddingOuter,delete t.paddingInner,delete t.paddingOuter,t.copy=function(){return e(n())},t}(fd().paddingInner(1))}var pd=function(e){return function(){return e}},dd=function(e){return+e},vd=[0,1];function md(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:pd(t)}function yd(e,t,n,r){var i=e[0],o=e[1],a=t[0],s=t[1];return o<i?(i=n(o,i),a=r(s,a)):(i=n(i,o),a=r(a,s)),function(e){return a(i(e))}}function gd(e,t,n,r){var i=Math.min(e.length,t.length)-1,o=new Array(i),a=new Array(i),s=-1;for(e[i]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<i;)o[s]=n(e[s],e[s+1]),a[s]=r(t[s],t[s+1]);return function(t){var n=u(e,t,1,i)-1;return a[n](o[n](t))}}function bd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp())}function _d(e,t){var n,r,i,o=vd,a=vd,s=Jn,u=!1;function c(){return n=Math.min(o.length,a.length)>2?gd:yd,r=i=null,l}function l(t){return(r||(r=n(o,a,u?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=t?0:e>=n?1:r(e)}}}(e):e,s)))(+t)}return l.invert=function(e){return(i||(i=n(a,o,md,u?function(e){return function(t,n){var r=e(t=+t,n=+n);return function(e){return e<=0?t:e>=1?n:r(e)}}}(t):t)))(+e)},l.domain=function(e){return arguments.length?(o=sd.call(e,dd),c()):o.slice()},l.range=function(e){return arguments.length?(a=ud.call(e),c()):a.slice()},l.rangeRound=function(e){return a=ud.call(e),s=$n,c()},l.clamp=function(e){return arguments.length?(u=!!e,c()):u},l.interpolate=function(e){return arguments.length?(s=e,c()):s},c()}var wd=function(e,t,n){var r,i=e[0],o=e[e.length-1],a=A(i,o,null==t?10:t);switch((n=Rs(null==n?",f":n)).type){case"s":var s=Math.max(Math.abs(i),Math.abs(o));return null!=n.precision||isNaN(r=Gs(a,s))||(n.precision=r),Fs(n,s);case"":case"e":case"g":case"p":case"r":null!=n.precision||isNaN(r=Qs(a,Math.max(Math.abs(i),Math.abs(o))))||(n.precision=r-("e"===n.type));break;case"f":case"%":null!=n.precision||isNaN(r=Ks(a))||(n.precision=r-2*("%"===n.type))}return js(n)};function Ed(e){var t=e.domain;return e.ticks=function(e){var n=t();return k(n[0],n[n.length-1],null==e?10:e)},e.tickFormat=function(e,n){return wd(t(),e,n)},e.nice=function(n){null==n&&(n=10);var r,i=t(),o=0,a=i.length-1,s=i[o],u=i[a];return u<s&&(r=s,s=u,u=r,r=o,o=a,a=r),(r=S(s,u,n))>0?r=S(s=Math.floor(s/r)*r,u=Math.ceil(u/r)*r,n):r<0&&(r=S(s=Math.ceil(s*r)/r,u=Math.floor(u*r)/r,n)),r>0?(i[o]=Math.floor(s/r)*r,i[a]=Math.ceil(u/r)*r,t(i)):r<0&&(i[o]=Math.ceil(s*r)/r,i[a]=Math.floor(u*r)/r,t(i)),e},e}function xd(){var e=_d(md,Vn);return e.copy=function(){return bd(e,xd())},Ed(e)}function Cd(){var e=[0,1];function t(e){return+e}return t.invert=t,t.domain=t.range=function(n){return arguments.length?(e=sd.call(n,dd),t):e.slice()},t.copy=function(){return Cd().domain(e)},Ed(t)}var Td=function(e,t){var n,r=0,i=(e=e.slice()).length-1,o=e[r],a=e[i];return a<o&&(n=r,r=i,i=n,n=o,o=a,a=n),e[r]=t.floor(o),e[i]=t.ceil(a),e};function kd(e,t){return(t=Math.log(t/e))?function(n){return Math.log(n/e)/t}:pd(t)}function Sd(e,t){return e<0?function(n){return-Math.pow(-t,n)*Math.pow(-e,1-n)}:function(n){return Math.pow(t,n)*Math.pow(e,1-n)}}function Ad(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Nd(e){return 10===e?Ad:e===Math.E?Math.exp:function(t){return Math.pow(e,t)}}function Od(e){return e===Math.E?Math.log:10===e&&Math.log10||2===e&&Math.log2||(e=Math.log(e),function(t){return Math.log(t)/e})}function Id(e){return function(t){return-e(-t)}}function Pd(){var e=_d(kd,Sd).domain([1,10]),t=e.domain,n=10,r=Od(10),i=Nd(10);function o(){return r=Od(n),i=Nd(n),t()[0]<0&&(r=Id(r),i=Id(i)),e}return e.base=function(e){return arguments.length?(n=+e,o()):n},e.domain=function(e){return arguments.length?(t(e),o()):t()},e.ticks=function(e){var o,a=t(),s=a[0],u=a[a.length-1];(o=u<s)&&(h=s,s=u,u=h);var c,l,f,h=r(s),p=r(u),d=null==e?10:+e,v=[];if(!(n%1)&&p-h<d){if(h=Math.round(h)-1,p=Math.round(p)+1,s>0){for(;h<p;++h)for(l=1,c=i(h);l<n;++l)if(!((f=c*l)<s)){if(f>u)break;v.push(f)}}else for(;h<p;++h)for(l=n-1,c=i(h);l>=1;--l)if(!((f=c*l)<s)){if(f>u)break;v.push(f)}}else v=k(h,p,Math.min(p-h,d)).map(i);return o?v.reverse():v},e.tickFormat=function(t,o){if(null==o&&(o=10===n?".0e":","),"function"!=typeof o&&(o=js(o)),t===1/0)return o;null==t&&(t=10);var a=Math.max(1,n*t/e.ticks().length);return function(e){var t=e/i(Math.round(r(e)));return t*n<n-.5&&(t*=n),t<=a?o(e):""}},e.nice=function(){return t(Td(t(),{floor:function(e){return i(Math.floor(r(e)))},ceil:function(e){return i(Math.ceil(r(e)))}}))},e.copy=function(){return bd(e,Pd().base(n))},e}function Rd(e,t){return e<0?-Math.pow(-e,t):Math.pow(e,t)}function Dd(){var e=1,t=_d(function(t,n){return(n=Rd(n,e)-(t=Rd(t,e)))?function(r){return(Rd(r,e)-t)/n}:pd(n)},function(t,n){return n=Rd(n,e)-(t=Rd(t,e)),function(r){return Rd(t+n*r,1/e)}}),n=t.domain;return t.exponent=function(t){return arguments.length?(e=+t,n(n())):e},t.copy=function(){return bd(t,Dd().exponent(e))},Ed(t)}function Md(){return Dd().exponent(.5)}function Ld(){var e=[],t=[],n=[];function i(){var r=0,i=Math.max(1,t.length);for(n=new Array(i-1);++r<i;)n[r-1]=I(e,r/i);return o}function o(e){if(!isNaN(e=+e))return t[u(n,e)]}return o.invertExtent=function(r){var i=t.indexOf(r);return i<0?[NaN,NaN]:[i>0?n[i-1]:e[0],i<n.length?n[i]:e[e.length-1]]},o.domain=function(t){if(!arguments.length)return e.slice();e=[];for(var n,o=0,a=t.length;o<a;++o)null==(n=t[o])||isNaN(n=+n)||e.push(n);return e.sort(r),i()},o.range=function(e){return arguments.length?(t=ud.call(e),i()):t.slice()},o.quantiles=function(){return n.slice()},o.copy=function(){return Ld().domain(e).range(t)},o}function jd(){var e=0,t=1,n=1,r=[.5],i=[0,1];function o(e){if(e<=e)return i[u(r,e,0,n)]}function a(){var i=-1;for(r=new Array(n);++i<n;)r[i]=((i+1)*t-(i-n)*e)/(n+1);return o}return o.domain=function(n){return arguments.length?(e=+n[0],t=+n[1],a()):[e,t]},o.range=function(e){return arguments.length?(n=(i=ud.call(e)).length-1,a()):i.slice()},o.invertExtent=function(o){var a=i.indexOf(o);return a<0?[NaN,NaN]:a<1?[e,r[0]]:a>=n?[r[n-1],t]:[r[a-1],r[a]]},o.copy=function(){return jd().domain([e,t]).range(i)},Ed(o)}function Fd(){var e=[.5],t=[0,1],n=1;function r(r){if(r<=r)return t[u(e,r,0,n)]}return r.domain=function(i){return arguments.length?(e=ud.call(i),n=Math.min(e.length,t.length-1),r):e.slice()},r.range=function(i){return arguments.length?(t=ud.call(i),n=Math.min(e.length,t.length-1),r):t.slice()},r.invertExtent=function(n){var r=t.indexOf(n);return[e[r-1],e[r]]},r.copy=function(){return Fd().domain(e).range(t)},r}var Ud=new Date,Bd=new Date;function qd(e,t,n,r){function i(t){return e(t=new Date(+t)),t}return i.floor=i,i.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},i.round=function(e){var t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},i.range=function(n,r,o){var a,s=[];if(n=i.ceil(n),o=null==o?1:Math.floor(o),!(n<r&&o>0))return s;do{s.push(a=new Date(+n)),t(n,o),e(n)}while(a<n&&n<r);return s},i.filter=function(n){return qd(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(i.count=function(t,r){return Ud.setTime(+t),Bd.setTime(+r),e(Ud),e(Bd),Math.floor(n(Ud,Bd))},i.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?i.filter(r?function(t){return r(t)%e==0}:function(t){return i.count(0,t)%e==0}):i:null}),i}var Vd=qd(function(){},function(e,t){e.setTime(+e+t)},function(e,t){return t-e});Vd.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?qd(function(t){t.setTime(Math.floor(t/e)*e)},function(t,n){t.setTime(+t+n*e)},function(t,n){return(n-t)/e}):Vd:null};var Wd=Vd,zd=Vd.range,Hd=6e4,Kd=6048e5,Gd=qd(function(e){e.setTime(1e3*Math.floor(e/1e3))},function(e,t){e.setTime(+e+1e3*t)},function(e,t){return(t-e)/1e3},function(e){return e.getUTCSeconds()}),Qd=Gd,Yd=Gd.range,Xd=qd(function(e){e.setTime(Math.floor(e/Hd)*Hd)},function(e,t){e.setTime(+e+t*Hd)},function(e,t){return(t-e)/Hd},function(e){return e.getMinutes()}),Jd=Xd,$d=Xd.range,Zd=qd(function(e){var t=e.getTimezoneOffset()*Hd%36e5;t<0&&(t+=36e5),e.setTime(36e5*Math.floor((+e-t)/36e5)+t)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getHours()}),ev=Zd,tv=Zd.range,nv=qd(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hd)/864e5},function(e){return e.getDate()-1}),rv=nv,iv=nv.range;function ov(e){return qd(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Hd)/Kd})}var av=ov(0),sv=ov(1),uv=ov(2),cv=ov(3),lv=ov(4),fv=ov(5),hv=ov(6),pv=av.range,dv=sv.range,vv=uv.range,mv=cv.range,yv=lv.range,gv=fv.range,bv=hv.range,_v=qd(function(e){e.setDate(1),e.setHours(0,0,0,0)},function(e,t){e.setMonth(e.getMonth()+t)},function(e,t){return t.getMonth()-e.getMonth()+12*(t.getFullYear()-e.getFullYear())},function(e){return e.getMonth()}),wv=_v,Ev=_v.range,xv=qd(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});xv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?qd(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null};var Cv=xv,Tv=xv.range,kv=qd(function(e){e.setUTCSeconds(0,0)},function(e,t){e.setTime(+e+t*Hd)},function(e,t){return(t-e)/Hd},function(e){return e.getUTCMinutes()}),Sv=kv,Av=kv.range,Nv=qd(function(e){e.setUTCMinutes(0,0,0)},function(e,t){e.setTime(+e+36e5*t)},function(e,t){return(t-e)/36e5},function(e){return e.getUTCHours()}),Ov=Nv,Iv=Nv.range,Pv=qd(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/864e5},function(e){return e.getUTCDate()-1}),Rv=Pv,Dv=Pv.range;function Mv(e){return qd(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/Kd})}var Lv=Mv(0),jv=Mv(1),Fv=Mv(2),Uv=Mv(3),Bv=Mv(4),qv=Mv(5),Vv=Mv(6),Wv=Lv.range,zv=jv.range,Hv=Fv.range,Kv=Uv.range,Gv=Bv.range,Qv=qv.range,Yv=Vv.range,Xv=qd(function(e){e.setUTCDate(1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCMonth(e.getUTCMonth()+t)},function(e,t){return t.getUTCMonth()-e.getUTCMonth()+12*(t.getUTCFullYear()-e.getUTCFullYear())},function(e){return e.getUTCMonth()}),Jv=Xv,$v=Xv.range,Zv=qd(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});Zv.every=function(e){return isFinite(e=Math.floor(e))&&e>0?qd(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null};var em=Zv,tm=Zv.range;function nm(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function rm(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function im(e){return{y:e,m:0,d:1,H:0,M:0,S:0,L:0}}function om(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,o=e.days,a=e.shortDays,s=e.months,u=e.shortMonths,c=ym(i),l=gm(i),f=ym(o),h=gm(o),p=ym(a),d=gm(a),v=ym(s),m=gm(s),y=ym(u),g=gm(u),b={a:function(e){return a[e.getDay()]},A:function(e){return o[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return s[e.getMonth()]},c:null,d:Fm,e:Fm,f:Wm,H:Um,I:Bm,j:qm,L:Vm,m:zm,M:Hm,p:function(e){return i[+(e.getHours()>=12)]},Q:by,s:_y,S:Km,u:Gm,U:Qm,V:Ym,w:Xm,W:Jm,x:null,X:null,y:$m,Y:Zm,Z:ey,"%":gy},_={a:function(e){return a[e.getUTCDay()]},A:function(e){return o[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return s[e.getUTCMonth()]},c:null,d:ty,e:ty,f:ay,H:ny,I:ry,j:iy,L:oy,m:sy,M:uy,p:function(e){return i[+(e.getUTCHours()>=12)]},Q:by,s:_y,S:cy,u:ly,U:fy,V:hy,w:py,W:dy,x:null,X:null,y:vy,Y:my,Z:yy,"%":gy},w={a:function(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=f.exec(t.slice(n));return r?(e.w=h[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=y.exec(t.slice(n));return r?(e.m=g[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=v.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return C(e,t,n,r)},d:Am,e:Am,f:Dm,H:Om,I:Om,j:Nm,L:Rm,m:Sm,M:Im,p:function(e,t,n){var r=c.exec(t.slice(n));return r?(e.p=l[r[0].toLowerCase()],n+r[0].length):-1},Q:Lm,s:jm,S:Pm,u:_m,U:wm,V:Em,w:bm,W:xm,x:function(e,t,r){return C(e,n,t,r)},X:function(e,t,n){return C(e,r,t,n)},y:Tm,Y:Cm,Z:km,"%":Mm};function E(e,t){return function(n){var r,i,o,a=[],s=-1,u=0,c=e.length;for(n instanceof Date||(n=new Date(+n));++s<c;)37===e.charCodeAt(s)&&(a.push(e.slice(u,s)),null!=(i=fm[r=e.charAt(++s)])?r=e.charAt(++s):i="e"===r?" ":"0",(o=t[r])&&(r=o(n,i)),a.push(r),u=s+1);return a.push(e.slice(u,s)),a.join("")}}function x(e,t){return function(n){var r,i,o=im(1900);if(C(o,e,n+="",0)!=n.length)return null;if("Q"in o)return new Date(o.Q);if("p"in o&&(o.H=o.H%12+12*o.p),"V"in o){if(o.V<1||o.V>53)return null;"w"in o||(o.w=1),"Z"in o?(r=(i=(r=rm(im(o.y))).getUTCDay())>4||0===i?jv.ceil(r):jv(r),r=Rv.offset(r,7*(o.V-1)),o.y=r.getUTCFullYear(),o.m=r.getUTCMonth(),o.d=r.getUTCDate()+(o.w+6)%7):(r=(i=(r=t(im(o.y))).getDay())>4||0===i?sv.ceil(r):sv(r),r=rv.offset(r,7*(o.V-1)),o.y=r.getFullYear(),o.m=r.getMonth(),o.d=r.getDate()+(o.w+6)%7)}else("W"in o||"U"in o)&&("w"in o||(o.w="u"in o?o.u%7:"W"in o?1:0),i="Z"in o?rm(im(o.y)).getUTCDay():t(im(o.y)).getDay(),o.m=0,o.d="W"in o?(o.w+6)%7+7*o.W-(i+5)%7:o.w+7*o.U-(i+6)%7);return"Z"in o?(o.H+=o.Z/100|0,o.M+=o.Z%100,rm(o)):t(o)}}function C(e,t,n,r){for(var i,o,a=0,s=t.length,u=n.length;a<s;){if(r>=u)return-1;if(37===(i=t.charCodeAt(a++))){if(i=t.charAt(a++),!(o=w[i in fm?t.charAt(a++):i])||(r=o(e,n,r))<0)return-1}else if(i!=n.charCodeAt(r++))return-1}return r}return b.x=E(n,b),b.X=E(r,b),b.c=E(t,b),_.x=E(n,_),_.X=E(r,_),_.c=E(t,_),{format:function(e){var t=E(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=x(e+="",nm);return t.toString=function(){return e},t},utcFormat:function(e){var t=E(e+="",_);return t.toString=function(){return e},t},utcParse:function(e){var t=x(e,rm);return t.toString=function(){return e},t}}}var am,sm,um,cm,lm,fm={"-":"",_:" ",0:"0"},hm=/^\s*\d+/,pm=/^%/,dm=/[\\^$*+?|[\]().{}]/g;function vm(e,t,n){var r=e<0?"-":"",i=(r?-e:e)+"",o=i.length;return r+(o<n?new Array(n-o+1).join(t)+i:i)}function mm(e){return e.replace(dm,"\\$&")}function ym(e){return new RegExp("^(?:"+e.map(mm).join("|")+")","i")}function gm(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function bm(e,t,n){var r=hm.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function _m(e,t,n){var r=hm.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function wm(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Em(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function xm(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function Cm(e,t,n){var r=hm.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function Tm(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function km(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Sm(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function Am(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Nm(e,t,n){var r=hm.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function Om(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Im(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Pm(e,t,n){var r=hm.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function Rm(e,t,n){var r=hm.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function Dm(e,t,n){var r=hm.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function Mm(e,t,n){var r=pm.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function Lm(e,t,n){var r=hm.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function jm(e,t,n){var r=hm.exec(t.slice(n));return r?(e.Q=1e3*+r[0],n+r[0].length):-1}function Fm(e,t){return vm(e.getDate(),t,2)}function Um(e,t){return vm(e.getHours(),t,2)}function Bm(e,t){return vm(e.getHours()%12||12,t,2)}function qm(e,t){return vm(1+rv.count(Cv(e),e),t,3)}function Vm(e,t){return vm(e.getMilliseconds(),t,3)}function Wm(e,t){return Vm(e,t)+"000"}function zm(e,t){return vm(e.getMonth()+1,t,2)}function Hm(e,t){return vm(e.getMinutes(),t,2)}function Km(e,t){return vm(e.getSeconds(),t,2)}function Gm(e){var t=e.getDay();return 0===t?7:t}function Qm(e,t){return vm(av.count(Cv(e),e),t,2)}function Ym(e,t){var n=e.getDay();return e=n>=4||0===n?lv(e):lv.ceil(e),vm(lv.count(Cv(e),e)+(4===Cv(e).getDay()),t,2)}function Xm(e){return e.getDay()}function Jm(e,t){return vm(sv.count(Cv(e),e),t,2)}function $m(e,t){return vm(e.getFullYear()%100,t,2)}function Zm(e,t){return vm(e.getFullYear()%1e4,t,4)}function ey(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+vm(t/60|0,"0",2)+vm(t%60,"0",2)}function ty(e,t){return vm(e.getUTCDate(),t,2)}function ny(e,t){return vm(e.getUTCHours(),t,2)}function ry(e,t){return vm(e.getUTCHours()%12||12,t,2)}function iy(e,t){return vm(1+Rv.count(em(e),e),t,3)}function oy(e,t){return vm(e.getUTCMilliseconds(),t,3)}function ay(e,t){return oy(e,t)+"000"}function sy(e,t){return vm(e.getUTCMonth()+1,t,2)}function uy(e,t){return vm(e.getUTCMinutes(),t,2)}function cy(e,t){return vm(e.getUTCSeconds(),t,2)}function ly(e){var t=e.getUTCDay();return 0===t?7:t}function fy(e,t){return vm(Lv.count(em(e),e),t,2)}function hy(e,t){var n=e.getUTCDay();return e=n>=4||0===n?Bv(e):Bv.ceil(e),vm(Bv.count(em(e),e)+(4===em(e).getUTCDay()),t,2)}function py(e){return e.getUTCDay()}function dy(e,t){return vm(jv.count(em(e),e),t,2)}function vy(e,t){return vm(e.getUTCFullYear()%100,t,2)}function my(e,t){return vm(e.getUTCFullYear()%1e4,t,4)}function yy(){return"+0000"}function gy(){return"%"}function by(e){return+e}function _y(e){return Math.floor(+e/1e3)}function wy(e){return am=om(e),sm=am.format,um=am.parse,cm=am.utcFormat,lm=am.utcParse,am}wy({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var Ey=Date.prototype.toISOString?function(e){return e.toISOString()}:cm("%Y-%m-%dT%H:%M:%S.%LZ");var xy=+new Date("2000-01-01T00:00:00.000Z")?function(e){var t=new Date(e);return isNaN(t)?null:t}:lm("%Y-%m-%dT%H:%M:%S.%LZ"),Cy=1e3,Ty=60*Cy,ky=60*Ty,Sy=24*ky,Ay=7*Sy,Ny=30*Sy,Oy=365*Sy;function Iy(e){return new Date(e)}function Py(e){return e instanceof Date?+e:+new Date(+e)}function Ry(e,t,n,r,o,a,s,u,c){var l=_d(md,Vn),f=l.invert,h=l.domain,p=c(".%L"),d=c(":%S"),v=c("%I:%M"),m=c("%I %p"),y=c("%a %d"),g=c("%b %d"),b=c("%B"),_=c("%Y"),w=[[s,1,Cy],[s,5,5*Cy],[s,15,15*Cy],[s,30,30*Cy],[a,1,Ty],[a,5,5*Ty],[a,15,15*Ty],[a,30,30*Ty],[o,1,ky],[o,3,3*ky],[o,6,6*ky],[o,12,12*ky],[r,1,Sy],[r,2,2*Sy],[n,1,Ay],[t,1,Ny],[t,3,3*Ny],[e,1,Oy]];function E(i){return(s(i)<i?p:a(i)<i?d:o(i)<i?v:r(i)<i?m:t(i)<i?n(i)<i?y:g:e(i)<i?b:_)(i)}function x(t,n,r,o){if(null==t&&(t=10),"number"==typeof t){var a=Math.abs(r-n)/t,s=i(function(e){return e[2]}).right(w,a);s===w.length?(o=A(n/Oy,r/Oy,t),t=e):s?(o=(s=w[a/w[s-1][2]<w[s][2]/a?s-1:s])[1],t=s[0]):(o=Math.max(A(n,r,t),1),t=u)}return null==o?t:t.every(o)}return l.invert=function(e){return new Date(f(e))},l.domain=function(e){return arguments.length?h(sd.call(e,Py)):h().map(Iy)},l.ticks=function(e,t){var n,r=h(),i=r[0],o=r[r.length-1],a=o<i;return a&&(n=i,i=o,o=n),n=(n=x(e,i,o,t))?n.range(i,o+1):[],a?n.reverse():n},l.tickFormat=function(e,t){return null==t?E:c(t)},l.nice=function(e,t){var n=h();return(e=x(e,n[0],n[n.length-1],t))?h(Td(n,e)):l},l.copy=function(){return bd(l,Ry(e,t,n,r,o,a,s,u,c))},l}var Dy=function(){return Ry(Cv,wv,av,rv,ev,Jd,Qd,Wd,sm).domain([new Date(2e3,0,1),new Date(2e3,0,2)])},My=function(){return Ry(em,Jv,Lv,Rv,Ov,Sv,Qd,Wd,cm).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)])};function Ly(e){var t=0,n=1,r=1,i=!1;function o(n){var o=(n-t)*r;return e(i?Math.max(0,Math.min(1,o)):o)}return o.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],r=t===n?0:1/(n-t),o):[t,n]},o.clamp=function(e){return arguments.length?(i=!!e,o):i},o.interpolator=function(t){return arguments.length?(e=t,o):e},o.copy=function(){return Ly(e).domain([t,n]).clamp(i)},Ed(o)}function jy(e){var t=0,n=.5,r=1,i=1,o=1,a=!1;function s(t){var r=.5+((t=+t)-n)*(t<n?i:o);return e(a?Math.max(0,Math.min(1,r)):r)}return s.domain=function(e){return arguments.length?(t=+e[0],n=+e[1],r=+e[2],i=t===n?0:.5/(n-t),o=n===r?0:.5/(r-n),s):[t,n,r]},s.clamp=function(e){return arguments.length?(a=!!e,s):a},s.interpolator=function(t){return arguments.length?(e=t,s):e},s.copy=function(){return jy(e).domain([t,n,r]).clamp(a)},Ed(s)}var Fy=function(e){for(var t=e.length/6|0,n=new Array(t),r=0;r<t;)n[r]="#"+e.slice(6*r,6*++r);return n},Uy=Fy("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf"),By=Fy("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666"),qy=Fy("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666"),Vy=Fy("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928"),Wy=Fy("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2"),zy=Fy("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc"),Hy=Fy("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999"),Ky=Fy("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3"),Gy=Fy("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f"),Qy=function(e){return Fn(e[e.length-1])},Yy=new Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e","8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(Fy),Xy=Qy(Yy),Jy=new Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837","40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(Fy),$y=Qy(Jy),Zy=new Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419","8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(Fy),eg=Qy(Zy),tg=new Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(Fy),ng=Qy(tg),rg=new Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(Fy),ig=Qy(rg),og=new Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040","ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(Fy),ag=Qy(og),sg=new Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4","d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(Fy),ug=Qy(sg),cg=new Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850","d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(Fy),lg=Qy(cg),fg=new Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd","9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(Fy),hg=Qy(fg),pg=new Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(Fy),dg=Qy(pg),vg=new Array(3).concat("e0ecf49ebcda8856a7","edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(Fy),mg=Qy(vg),yg=new Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(Fy),gg=Qy(yg),bg=new Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(Fy),_g=Qy(bg),wg=new Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(Fy),Eg=Qy(wg),xg=new Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(Fy),Cg=Qy(xg),Tg=new Array(3).concat("e7e1efc994c7dd1c77","f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(Fy),kg=Qy(Tg),Sg=new Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(Fy),Ag=Qy(Sg),Ng=new Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(Fy),Og=Qy(Ng),Ig=new Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837","ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(Fy),Pg=Qy(Ig),Rg=new Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(Fy),Dg=Qy(Rg),Mg=new Array(3).concat("ffeda0feb24cf03b20","ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(Fy),Lg=Qy(Mg),jg=new Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(Fy),Fg=Qy(jg),Ug=new Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(Fy),Bg=Qy(Ug),qg=new Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525","f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(Fy),Vg=Qy(qg),Wg=new Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(Fy),zg=Qy(Wg),Hg=new Array(3).concat("fee0d2fc9272de2d26","fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(Fy),Kg=Qy(Hg),Gg=new Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(Fy),Qg=Qy(Gg),Yg=yr(kn(300,.5,0),kn(-240,.5,1)),Xg=yr(kn(-100,.75,.35),kn(80,1.5,.8)),Jg=yr(kn(260,.75,.35),kn(80,1.5,.8)),$g=kn(),Zg=function(e){(e<0||e>1)&&(e-=Math.floor(e));var t=Math.abs(e-.5);return $g.h=360*e-100,$g.s=1.5-1.5*t,$g.l=.8-.9*t,$g+""},eb=Ht(),tb=Math.PI/3,nb=2*Math.PI/3,rb=function(e){var t;return e=(.5-e)*Math.PI,eb.r=255*(t=Math.sin(e))*t,eb.g=255*(t=Math.sin(e+tb))*t,eb.b=255*(t=Math.sin(e+nb))*t,eb+""};function ib(e){var t=e.length;return function(n){return e[Math.max(0,Math.min(t-1,Math.floor(n*t)))]}}var ob=ib(Fy("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725")),ab=ib(Fy("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf")),sb=ib(Fy("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4")),ub=ib(Fy("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921")),cb=function(e){return function(){return e}},lb=Math.abs,fb=Math.atan2,hb=Math.cos,pb=Math.max,db=Math.min,vb=Math.sin,mb=Math.sqrt,yb=1e-12,gb=Math.PI,bb=gb/2,_b=2*gb;function wb(e){return e>=1?bb:e<=-1?-bb:Math.asin(e)}function Eb(e){return e.innerRadius}function xb(e){return e.outerRadius}function Cb(e){return e.startAngle}function Tb(e){return e.endAngle}function kb(e){return e&&e.padAngle}function Sb(e,t,n,r,i,o,a){var s=e-n,u=t-r,c=(a?o:-o)/mb(s*s+u*u),l=c*u,f=-c*s,h=e+l,p=t+f,d=n+l,v=r+f,m=(h+d)/2,y=(p+v)/2,g=d-h,b=v-p,_=g*g+b*b,w=i-o,E=h*v-d*p,x=(b<0?-1:1)*mb(pb(0,w*w*_-E*E)),C=(E*b-g*x)/_,T=(-E*g-b*x)/_,k=(E*b+g*x)/_,S=(-E*g+b*x)/_,A=C-m,N=T-y,O=k-m,I=S-y;return A*A+N*N>O*O+I*I&&(C=k,T=S),{cx:C,cy:T,x01:-l,y01:-f,x11:C*(i/w-1),y11:T*(i/w-1)}}var Ab=function(){var e=Eb,t=xb,n=cb(0),r=null,i=Cb,o=Tb,a=kb,s=null;function u(){var u,c,l,f=+e.apply(this,arguments),h=+t.apply(this,arguments),p=i.apply(this,arguments)-bb,d=o.apply(this,arguments)-bb,v=lb(d-p),m=d>p;if(s||(s=u=qo()),h<f&&(c=h,h=f,f=c),h>yb)if(v>_b-yb)s.moveTo(h*hb(p),h*vb(p)),s.arc(0,0,h,p,d,!m),f>yb&&(s.moveTo(f*hb(d),f*vb(d)),s.arc(0,0,f,d,p,m));else{var y,g,b=p,_=d,w=p,E=d,x=v,C=v,T=a.apply(this,arguments)/2,k=T>yb&&(r?+r.apply(this,arguments):mb(f*f+h*h)),S=db(lb(h-f)/2,+n.apply(this,arguments)),A=S,N=S;if(k>yb){var O=wb(k/f*vb(T)),I=wb(k/h*vb(T));(x-=2*O)>yb?(w+=O*=m?1:-1,E-=O):(x=0,w=E=(p+d)/2),(C-=2*I)>yb?(b+=I*=m?1:-1,_-=I):(C=0,b=_=(p+d)/2)}var P=h*hb(b),R=h*vb(b),D=f*hb(E),M=f*vb(E);if(S>yb){var L=h*hb(_),j=h*vb(_),F=f*hb(w),U=f*vb(w);if(v<gb){var B=x>yb?function(e,t,n,r,i,o,a,s){var u=n-e,c=r-t,l=a-i,f=s-o,h=(l*(t-o)-f*(e-i))/(f*u-l*c);return[e+h*u,t+h*c]}(P,R,F,U,L,j,D,M):[D,M],q=P-B[0],V=R-B[1],W=L-B[0],z=j-B[1],H=1/vb(((l=(q*W+V*z)/(mb(q*q+V*V)*mb(W*W+z*z)))>1?0:l<-1?gb:Math.acos(l))/2),K=mb(B[0]*B[0]+B[1]*B[1]);A=db(S,(f-K)/(H-1)),N=db(S,(h-K)/(H+1))}}C>yb?N>yb?(y=Sb(F,U,P,R,h,N,m),g=Sb(L,j,D,M,h,N,m),s.moveTo(y.cx+y.x01,y.cy+y.y01),N<S?s.arc(y.cx,y.cy,N,fb(y.y01,y.x01),fb(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,N,fb(y.y01,y.x01),fb(y.y11,y.x11),!m),s.arc(0,0,h,fb(y.cy+y.y11,y.cx+y.x11),fb(g.cy+g.y11,g.cx+g.x11),!m),s.arc(g.cx,g.cy,N,fb(g.y11,g.x11),fb(g.y01,g.x01),!m))):(s.moveTo(P,R),s.arc(0,0,h,b,_,!m)):s.moveTo(P,R),f>yb&&x>yb?A>yb?(y=Sb(D,M,L,j,f,-A,m),g=Sb(P,R,F,U,f,-A,m),s.lineTo(y.cx+y.x01,y.cy+y.y01),A<S?s.arc(y.cx,y.cy,A,fb(y.y01,y.x01),fb(g.y01,g.x01),!m):(s.arc(y.cx,y.cy,A,fb(y.y01,y.x01),fb(y.y11,y.x11),!m),s.arc(0,0,f,fb(y.cy+y.y11,y.cx+y.x11),fb(g.cy+g.y11,g.cx+g.x11),m),s.arc(g.cx,g.cy,A,fb(g.y11,g.x11),fb(g.y01,g.x01),!m))):s.arc(0,0,f,E,w,m):s.lineTo(D,M)}else s.moveTo(0,0);if(s.closePath(),u)return s=null,u+""||null}return u.centroid=function(){var n=(+e.apply(this,arguments)+ +t.apply(this,arguments))/2,r=(+i.apply(this,arguments)+ +o.apply(this,arguments))/2-gb/2;return[hb(r)*n,vb(r)*n]},u.innerRadius=function(t){return arguments.length?(e="function"==typeof t?t:cb(+t),u):e},u.outerRadius=function(e){return arguments.length?(t="function"==typeof e?e:cb(+e),u):t},u.cornerRadius=function(e){return arguments.length?(n="function"==typeof e?e:cb(+e),u):n},u.padRadius=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:cb(+e),u):r},u.startAngle=function(e){return arguments.length?(i="function"==typeof e?e:cb(+e),u):i},u.endAngle=function(e){return arguments.length?(o="function"==typeof e?e:cb(+e),u):o},u.padAngle=function(e){return arguments.length?(a="function"==typeof e?e:cb(+e),u):a},u.context=function(e){return arguments.length?(s=null==e?null:e,u):s},u};function Nb(e){this._context=e}Nb.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};var Ob=function(e){return new Nb(e)};function Ib(e){return e[0]}function Pb(e){return e[1]}var Rb=function(){var e=Ib,t=Pb,n=cb(!0),r=null,i=Ob,o=null;function a(a){var s,u,c,l=a.length,f=!1;for(null==r&&(o=i(c=qo())),s=0;s<=l;++s)!(s<l&&n(u=a[s],s,a))===f&&((f=!f)?o.lineStart():o.lineEnd()),f&&o.point(+e(u,s,a),+t(u,s,a));if(c)return o=null,c+""||null}return a.x=function(t){return arguments.length?(e="function"==typeof t?t:cb(+t),a):e},a.y=function(e){return arguments.length?(t="function"==typeof e?e:cb(+e),a):t},a.defined=function(e){return arguments.length?(n="function"==typeof e?e:cb(!!e),a):n},a.curve=function(e){return arguments.length?(i=e,null!=r&&(o=i(r)),a):i},a.context=function(e){return arguments.length?(null==e?r=o=null:o=i(r=e),a):r},a},Db=function(){var e=Ib,t=null,n=cb(0),r=Pb,i=cb(!0),o=null,a=Ob,s=null;function u(u){var c,l,f,h,p,d=u.length,v=!1,m=new Array(d),y=new Array(d);for(null==o&&(s=a(p=qo())),c=0;c<=d;++c){if(!(c<d&&i(h=u[c],c,u))===v)if(v=!v)l=c,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),f=c-1;f>=l;--f)s.point(m[f],y[f]);s.lineEnd(),s.areaEnd()}v&&(m[c]=+e(h,c,u),y[c]=+n(h,c,u),s.point(t?+t(h,c,u):m[c],r?+r(h,c,u):y[c]))}if(p)return s=null,p+""||null}function c(){return Rb().defined(i).curve(a).context(o)}return u.x=function(n){return arguments.length?(e="function"==typeof n?n:cb(+n),t=null,u):e},u.x0=function(t){return arguments.length?(e="function"==typeof t?t:cb(+t),u):e},u.x1=function(e){return arguments.length?(t=null==e?null:"function"==typeof e?e:cb(+e),u):t},u.y=function(e){return arguments.length?(n="function"==typeof e?e:cb(+e),r=null,u):n},u.y0=function(e){return arguments.length?(n="function"==typeof e?e:cb(+e),u):n},u.y1=function(e){return arguments.length?(r=null==e?null:"function"==typeof e?e:cb(+e),u):r},u.lineX0=u.lineY0=function(){return c().x(e).y(n)},u.lineY1=function(){return c().x(e).y(r)},u.lineX1=function(){return c().x(t).y(n)},u.defined=function(e){return arguments.length?(i="function"==typeof e?e:cb(!!e),u):i},u.curve=function(e){return arguments.length?(a=e,null!=o&&(s=a(o)),u):a},u.context=function(e){return arguments.length?(null==e?o=s=null:s=a(o=e),u):o},u},Mb=function(e,t){return t<e?-1:t>e?1:t>=e?0:NaN},Lb=function(e){return e},jb=function(){var e=Lb,t=Mb,n=null,r=cb(0),i=cb(_b),o=cb(0);function a(a){var s,u,c,l,f,h=a.length,p=0,d=new Array(h),v=new Array(h),m=+r.apply(this,arguments),y=Math.min(_b,Math.max(-_b,i.apply(this,arguments)-m)),g=Math.min(Math.abs(y)/h,o.apply(this,arguments)),b=g*(y<0?-1:1);for(s=0;s<h;++s)(f=v[d[s]=s]=+e(a[s],s,a))>0&&(p+=f);for(null!=t?d.sort(function(e,n){return t(v[e],v[n])}):null!=n&&d.sort(function(e,t){return n(a[e],a[t])}),s=0,c=p?(y-h*b)/p:0;s<h;++s,m=l)u=d[s],l=m+((f=v[u])>0?f*c:0)+b,v[u]={data:a[u],index:s,value:f,startAngle:m,endAngle:l,padAngle:g};return v}return a.value=function(t){return arguments.length?(e="function"==typeof t?t:cb(+t),a):e},a.sortValues=function(e){return arguments.length?(t=e,n=null,a):t},a.sort=function(e){return arguments.length?(n=e,t=null,a):n},a.startAngle=function(e){return arguments.length?(r="function"==typeof e?e:cb(+e),a):r},a.endAngle=function(e){return arguments.length?(i="function"==typeof e?e:cb(+e),a):i},a.padAngle=function(e){return arguments.length?(o="function"==typeof e?e:cb(+e),a):o},a},Fb=Bb(Ob);function Ub(e){this._curve=e}function Bb(e){function t(t){return new Ub(e(t))}return t._curve=e,t}function qb(e){var t=e.curve;return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e.curve=function(e){return arguments.length?t(Bb(e)):t()._curve},e}Ub.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};var Vb=function(){return qb(Rb().curve(Fb))},Wb=function(){var e=Db().curve(Fb),t=e.curve,n=e.lineX0,r=e.lineX1,i=e.lineY0,o=e.lineY1;return e.angle=e.x,delete e.x,e.startAngle=e.x0,delete e.x0,e.endAngle=e.x1,delete e.x1,e.radius=e.y,delete e.y,e.innerRadius=e.y0,delete e.y0,e.outerRadius=e.y1,delete e.y1,e.lineStartAngle=function(){return qb(n())},delete e.lineX0,e.lineEndAngle=function(){return qb(r())},delete e.lineX1,e.lineInnerRadius=function(){return qb(i())},delete e.lineY0,e.lineOuterRadius=function(){return qb(o())},delete e.lineY1,e.curve=function(e){return arguments.length?t(Bb(e)):t()._curve},e},zb=function(e,t){return[(t=+t)*Math.cos(e-=Math.PI/2),t*Math.sin(e)]},Hb=Array.prototype.slice;function Kb(e){return e.source}function Gb(e){return e.target}function Qb(e){var t=Kb,n=Gb,r=Ib,i=Pb,o=null;function a(){var a,s=Hb.call(arguments),u=t.apply(this,s),c=n.apply(this,s);if(o||(o=a=qo()),e(o,+r.apply(this,(s[0]=u,s)),+i.apply(this,s),+r.apply(this,(s[0]=c,s)),+i.apply(this,s)),a)return o=null,a+""||null}return a.source=function(e){return arguments.length?(t=e,a):t},a.target=function(e){return arguments.length?(n=e,a):n},a.x=function(e){return arguments.length?(r="function"==typeof e?e:cb(+e),a):r},a.y=function(e){return arguments.length?(i="function"==typeof e?e:cb(+e),a):i},a.context=function(e){return arguments.length?(o=null==e?null:e,a):o},a}function Yb(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function Xb(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function Jb(e,t,n,r,i){var o=zb(t,n),a=zb(t,n=(n+i)/2),s=zb(r,n),u=zb(r,i);e.moveTo(o[0],o[1]),e.bezierCurveTo(a[0],a[1],s[0],s[1],u[0],u[1])}function $b(){return Qb(Yb)}function Zb(){return Qb(Xb)}function e_(){var e=Qb(Jb);return e.angle=e.x,delete e.x,e.radius=e.y,delete e.y,e}var t_={draw:function(e,t){var n=Math.sqrt(t/gb);e.moveTo(n,0),e.arc(0,0,n,0,_b)}},n_={draw:function(e,t){var n=Math.sqrt(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},r_=Math.sqrt(1/3),i_=2*r_,o_={draw:function(e,t){var n=Math.sqrt(t/i_),r=n*r_;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},a_=Math.sin(gb/10)/Math.sin(7*gb/10),s_=Math.sin(_b/10)*a_,u_=-Math.cos(_b/10)*a_,c_={draw:function(e,t){var n=Math.sqrt(.8908130915292852*t),r=s_*n,i=u_*n;e.moveTo(0,-n),e.lineTo(r,i);for(var o=1;o<5;++o){var a=_b*o/5,s=Math.cos(a),u=Math.sin(a);e.lineTo(u*n,-s*n),e.lineTo(s*r-u*i,u*r+s*i)}e.closePath()}},l_={draw:function(e,t){var n=Math.sqrt(t),r=-n/2;e.rect(r,r,n,n)}},f_=Math.sqrt(3),h_={draw:function(e,t){var n=-Math.sqrt(t/(3*f_));e.moveTo(0,2*n),e.lineTo(-f_*n,-n),e.lineTo(f_*n,-n),e.closePath()}},p_=Math.sqrt(3)/2,d_=1/Math.sqrt(12),v_=3*(d_/2+1),m_={draw:function(e,t){var n=Math.sqrt(t/v_),r=n/2,i=n*d_,o=r,a=n*d_+n,s=-o,u=a;e.moveTo(r,i),e.lineTo(o,a),e.lineTo(s,u),e.lineTo(-.5*r-p_*i,p_*r+-.5*i),e.lineTo(-.5*o-p_*a,p_*o+-.5*a),e.lineTo(-.5*s-p_*u,p_*s+-.5*u),e.lineTo(-.5*r+p_*i,-.5*i-p_*r),e.lineTo(-.5*o+p_*a,-.5*a-p_*o),e.lineTo(-.5*s+p_*u,-.5*u-p_*s),e.closePath()}},y_=[t_,n_,o_,l_,c_,h_,m_],g_=function(){var e=cb(t_),t=cb(64),n=null;function r(){var r;if(n||(n=r=qo()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),r)return n=null,r+""||null}return r.type=function(t){return arguments.length?(e="function"==typeof t?t:cb(t),r):e},r.size=function(e){return arguments.length?(t="function"==typeof e?e:cb(+e),r):t},r.context=function(e){return arguments.length?(n=null==e?null:e,r):n},r},b_=function(){};function __(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function w_(e){this._context=e}w_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:__(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:__(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var E_=function(e){return new w_(e)};function x_(e){this._context=e}x_.prototype={areaStart:b_,areaEnd:b_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x2,this._y2),this._context.closePath();break;case 2:this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break;case 3:this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:__(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var C_=function(e){return new x_(e)};function T_(e){this._context=e}T_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:__(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};var k_=function(e){return new T_(e)};function S_(e,t){this._basis=new w_(e),this._beta=t}S_.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r,i=e[0],o=t[0],a=e[n]-i,s=t[n]-o,u=-1;++u<=n;)r=u/n,this._basis.point(this._beta*e[u]+(1-this._beta)*(i+r*a),this._beta*t[u]+(1-this._beta)*(o+r*s));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var A_=function e(t){function n(e){return 1===t?new w_(e):new S_(e,t)}return n.beta=function(t){return e(+t)},n}(.85);function N_(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function O_(e,t){this._context=e,this._k=(1-t)/6}O_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:N_(this,this._x1,this._y1)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:N_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var I_=function e(t){function n(e){return new O_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function P_(e,t){this._context=e,this._k=(1-t)/6}P_.prototype={areaStart:b_,areaEnd:b_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:N_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var R_=function e(t){function n(e){return new P_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function D_(e,t){this._context=e,this._k=(1-t)/6}D_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:N_(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var M_=function e(t){function n(e){return new D_(e,t)}return n.tension=function(t){return e(+t)},n}(0);function L_(e,t,n){var r=e._x1,i=e._y1,o=e._x2,a=e._y2;if(e._l01_a>yb){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,u=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/u,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/u}if(e._l23_a>yb){var c=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,l=3*e._l23_a*(e._l23_a+e._l12_a);o=(o*c+e._x1*e._l23_2a-t*e._l12_2a)/l,a=(a*c+e._y1*e._l23_2a-n*e._l12_2a)/l}e._context.bezierCurveTo(r,i,o,a,e._x2,e._y2)}function j_(e,t){this._context=e,this._alpha=t}j_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:L_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var F_=function e(t){function n(e){return t?new j_(e,t):new O_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function U_(e,t){this._context=e,this._alpha=t}U_.prototype={areaStart:b_,areaEnd:b_,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:L_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var B_=function e(t){function n(e){return t?new U_(e,t):new P_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function q_(e,t){this._context=e,this._alpha=t}q_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||0!==this._line&&3===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(n*n+r*r,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:L_(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var V_=function e(t){function n(e){return t?new q_(e,t):new D_(e,0)}return n.alpha=function(t){return e(+t)},n}(.5);function W_(e){this._context=e}W_.prototype={areaStart:b_,areaEnd:b_,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};var z_=function(e){return new W_(e)};function H_(e){return e<0?-1:1}function K_(e,t,n){var r=e._x1-e._x0,i=t-e._x1,o=(e._y1-e._y0)/(r||i<0&&-0),a=(n-e._y1)/(i||r<0&&-0),s=(o*i+a*r)/(r+i);return(H_(o)+H_(a))*Math.min(Math.abs(o),Math.abs(a),.5*Math.abs(s))||0}function G_(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Q_(e,t,n){var r=e._x0,i=e._y0,o=e._x1,a=e._y1,s=(o-r)/3;e._context.bezierCurveTo(r+s,i+s*t,o-s,a-s*n,o,a)}function Y_(e){this._context=e}function X_(e){this._context=new J_(e)}function J_(e){this._context=e}function $_(e){return new Y_(e)}function Z_(e){return new X_(e)}function ew(e){this._context=e}function tw(e){var t,n,r=e.length-1,i=new Array(r),o=new Array(r),a=new Array(r);for(i[0]=0,o[0]=2,a[0]=e[0]+2*e[1],t=1;t<r-1;++t)i[t]=1,o[t]=4,a[t]=4*e[t]+2*e[t+1];for(i[r-1]=2,o[r-1]=7,a[r-1]=8*e[r-1]+e[r],t=1;t<r;++t)n=i[t]/o[t-1],o[t]-=n,a[t]-=n*a[t-1];for(i[r-1]=a[r-1]/o[r-1],t=r-2;t>=0;--t)i[t]=(a[t]-i[t+1])/o[t];for(o[r-1]=(e[r]+i[r-1])/2,t=0;t<r-1;++t)o[t]=2*e[t+1]-i[t+1];return[i,o]}Y_.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Q_(this,this._t0,G_(this,this._t0))}(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(t=+t,(e=+e)!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Q_(this,G_(this,n=K_(this,e,t)),n);break;default:Q_(this,this._t0,n=K_(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},(X_.prototype=Object.create(Y_.prototype)).point=function(e,t){Y_.prototype.point.call(this,t,e)},J_.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,i,o){this._context.bezierCurveTo(t,e,r,n,o,i)}},ew.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),2===n)this._context.lineTo(e[1],t[1]);else for(var r=tw(e),i=tw(t),o=0,a=1;a<n;++o,++a)this._context.bezierCurveTo(r[0][o],i[0][o],r[1][o],i[1][o],e[a],t[a]);(this._line||0!==this._line&&1===n)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};var nw=function(e){return new ew(e)};function rw(e,t){this._context=e,this._t=t}rw.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&2===this._point&&this._context.lineTo(this._x,this._y),(this._line||0!==this._line&&1===this._point)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}}this._x=e,this._y=t}};var iw=function(e){return new rw(e,.5)};function ow(e){return new rw(e,0)}function aw(e){return new rw(e,1)}var sw=function(e,t){if((i=e.length)>1)for(var n,r,i,o=1,a=e[t[0]],s=a.length;o<i;++o)for(r=a,a=e[t[o]],n=0;n<s;++n)a[n][1]+=a[n][0]=isNaN(r[n][1])?r[n][0]:r[n][1]},uw=function(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n};function cw(e,t){return e[t]}var lw=function(){var e=cb([]),t=uw,n=sw,r=cw;function i(i){var o,a,s=e.apply(this,arguments),u=i.length,c=s.length,l=new Array(c);for(o=0;o<c;++o){for(var f,h=s[o],p=l[o]=new Array(u),d=0;d<u;++d)p[d]=f=[0,+r(i[d],h,d,i)],f.data=i[d];p.key=h}for(o=0,a=t(l);o<c;++o)l[a[o]].index=o;return n(l,a),l}return i.keys=function(t){return arguments.length?(e="function"==typeof t?t:cb(Hb.call(t)),i):e},i.value=function(e){return arguments.length?(r="function"==typeof e?e:cb(+e),i):r},i.order=function(e){return arguments.length?(t=null==e?uw:"function"==typeof e?e:cb(Hb.call(e)),i):t},i.offset=function(e){return arguments.length?(n=null==e?sw:e,i):n},i},fw=function(e,t){if((r=e.length)>0){for(var n,r,i,o=0,a=e[0].length;o<a;++o){for(i=n=0;n<r;++n)i+=e[n][o][1]||0;if(i)for(n=0;n<r;++n)e[n][o][1]/=i}sw(e,t)}},hw=function(e,t){if((s=e.length)>1)for(var n,r,i,o,a,s,u=0,c=e[t[0]].length;u<c;++u)for(o=a=0,n=0;n<s;++n)(i=(r=e[t[n]][u])[1]-r[0])>=0?(r[0]=o,r[1]=o+=i):i<0?(r[1]=a,r[0]=a+=i):r[0]=o},pw=function(e,t){if((n=e.length)>0){for(var n,r=0,i=e[t[0]],o=i.length;r<o;++r){for(var a=0,s=0;a<n;++a)s+=e[a][r][1]||0;i[r][1]+=i[r][0]=-s/2}sw(e,t)}},dw=function(e,t){if((i=e.length)>0&&(r=(n=e[t[0]]).length)>0){for(var n,r,i,o=0,a=1;a<r;++a){for(var s=0,u=0,c=0;s<i;++s){for(var l=e[t[s]],f=l[a][1]||0,h=(f-(l[a-1][1]||0))/2,p=0;p<s;++p){var d=e[t[p]];h+=(d[a][1]||0)-(d[a-1][1]||0)}u+=f,c+=h*f}n[a-1][1]+=n[a-1][0]=o,u&&(o-=c/u)}n[a-1][1]+=n[a-1][0]=o,sw(e,t)}},vw=function(e){var t=e.map(mw);return uw(e).sort(function(e,n){return t[e]-t[n]})};function mw(e){for(var t,n=0,r=-1,i=e.length;++r<i;)(t=+e[r][1])&&(n+=t);return n}var yw=function(e){return vw(e).reverse()},gw=function(e){var t,n,r=e.length,i=e.map(mw),o=uw(e).sort(function(e,t){return i[t]-i[e]}),a=0,s=0,u=[],c=[];for(t=0;t<r;++t)n=o[t],a<s?(a+=i[n],u.push(n)):(s+=i[n],c.push(n));return c.reverse().concat(u)},bw=function(e){return uw(e).reverse()},_w=function(e){return function(){return e}};function ww(e){return e[0]}function Ew(e){return e[1]}function xw(){this._=null}function Cw(e){e.U=e.C=e.L=e.R=e.P=e.N=null}function Tw(e,t){var n=t,r=t.R,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.R=r.L,n.R&&(n.R.U=n),r.L=n}function kw(e,t){var n=t,r=t.L,i=n.U;i?i.L===n?i.L=r:i.R=r:e._=r,r.U=i,n.U=r,n.L=r.R,n.L&&(n.L.U=n),r.R=n}function Sw(e){for(;e.L;)e=e.L;return e}xw.prototype={constructor:xw,insert:function(e,t){var n,r,i;if(e){if(t.P=e,t.N=e.N,e.N&&(e.N.P=t),e.N=t,e.R){for(e=e.R;e.L;)e=e.L;e.L=t}else e.R=t;n=e}else this._?(e=Sw(this._),t.P=null,t.N=e,e.P=e.L=t,n=e):(t.P=t.N=null,this._=t,n=null);for(t.L=t.R=null,t.U=n,t.C=!0,e=t;n&&n.C;)n===(r=n.U).L?(i=r.R)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.R&&(Tw(this,n),n=(e=n).U),n.C=!1,r.C=!0,kw(this,r)):(i=r.L)&&i.C?(n.C=i.C=!1,r.C=!0,e=r):(e===n.L&&(kw(this,n),n=(e=n).U),n.C=!1,r.C=!0,Tw(this,r)),n=e.U;this._.C=!1},remove:function(e){e.N&&(e.N.P=e.P),e.P&&(e.P.N=e.N),e.N=e.P=null;var t,n,r,i=e.U,o=e.L,a=e.R;if(n=o?a?Sw(a):o:a,i?i.L===e?i.L=n:i.R=n:this._=n,o&&a?(r=n.C,n.C=e.C,n.L=o,o.U=n,n!==a?(i=n.U,n.U=e.U,e=n.R,i.L=e,n.R=a,a.U=n):(n.U=i,i=n,e=n.R)):(r=e.C,e=n),e&&(e.U=i),!r)if(e&&e.C)e.C=!1;else{do{if(e===this._)break;if(e===i.L){if((t=i.R).C&&(t.C=!1,i.C=!0,Tw(this,i),t=i.R),t.L&&t.L.C||t.R&&t.R.C){t.R&&t.R.C||(t.L.C=!1,t.C=!0,kw(this,t),t=i.R),t.C=i.C,i.C=t.R.C=!1,Tw(this,i),e=this._;break}}else if((t=i.L).C&&(t.C=!1,i.C=!0,kw(this,i),t=i.L),t.L&&t.L.C||t.R&&t.R.C){t.L&&t.L.C||(t.R.C=!1,t.C=!0,Tw(this,t),t=i.L),t.C=i.C,i.C=t.L.C=!1,kw(this,i),e=this._;break}t.C=!0,e=i,i=i.U}while(!e.C);e&&(e.C=!1)}}};var Aw=xw;function Nw(e,t,n,r){var i=[null,null],o=Jw.push(i)-1;return i.left=e,i.right=t,n&&Iw(i,e,t,n),r&&Iw(i,t,e,r),Yw[e.index].halfedges.push(o),Yw[t.index].halfedges.push(o),i}function Ow(e,t,n){var r=[t,n];return r.left=e,r}function Iw(e,t,n,r){e[0]||e[1]?e.left===n?e[1]=r:e[0]=r:(e[0]=r,e.left=t,e.right=n)}function Pw(e,t,n,r,i){var o,a=e[0],s=e[1],u=a[0],c=a[1],l=0,f=1,h=s[0]-u,p=s[1]-c;if(o=t-u,h||!(o>0)){if(o/=h,h<0){if(o<l)return;o<f&&(f=o)}else if(h>0){if(o>f)return;o>l&&(l=o)}if(o=r-u,h||!(o<0)){if(o/=h,h<0){if(o>f)return;o>l&&(l=o)}else if(h>0){if(o<l)return;o<f&&(f=o)}if(o=n-c,p||!(o>0)){if(o/=p,p<0){if(o<l)return;o<f&&(f=o)}else if(p>0){if(o>f)return;o>l&&(l=o)}if(o=i-c,p||!(o<0)){if(o/=p,p<0){if(o>f)return;o>l&&(l=o)}else if(p>0){if(o<l)return;o<f&&(f=o)}return!(l>0||f<1)||(l>0&&(e[0]=[u+l*h,c+l*p]),f<1&&(e[1]=[u+f*h,c+f*p]),!0)}}}}}function Rw(e,t,n,r,i){var o=e[1];if(o)return!0;var a,s,u=e[0],c=e.left,l=e.right,f=c[0],h=c[1],p=l[0],d=l[1],v=(f+p)/2,m=(h+d)/2;if(d===h){if(v<t||v>=r)return;if(f>p){if(u){if(u[1]>=i)return}else u=[v,n];o=[v,i]}else{if(u){if(u[1]<n)return}else u=[v,i];o=[v,n]}}else if(s=m-(a=(f-p)/(d-h))*v,a<-1||a>1)if(f>p){if(u){if(u[1]>=i)return}else u=[(n-s)/a,n];o=[(i-s)/a,i]}else{if(u){if(u[1]<n)return}else u=[(i-s)/a,i];o=[(n-s)/a,n]}else if(h<d){if(u){if(u[0]>=r)return}else u=[t,a*t+s];o=[r,a*r+s]}else{if(u){if(u[0]<t)return}else u=[r,a*r+s];o=[t,a*t+s]}return e[0]=u,e[1]=o,!0}function Dw(e,t){var n=e.site,r=t.left,i=t.right;return n===i&&(i=r,r=n),i?Math.atan2(i[1]-r[1],i[0]-r[0]):(n===r?(r=t[1],i=t[0]):(r=t[0],i=t[1]),Math.atan2(r[0]-i[0],i[1]-r[1]))}function Mw(e,t){return t[+(t.left!==e.site)]}function Lw(e,t){return t[+(t.left===e.site)]}var jw,Fw=[];function Uw(e){var t=e.P,n=e.N;if(t&&n){var r=t.site,i=e.site,o=n.site;if(r!==o){var a=i[0],s=i[1],u=r[0]-a,c=r[1]-s,l=o[0]-a,f=o[1]-s,h=2*(u*f-c*l);if(!(h>=-Zw)){var p=u*u+c*c,d=l*l+f*f,v=(f*p-c*d)/h,m=(u*d-l*p)/h,y=Fw.pop()||new function(){Cw(this),this.x=this.y=this.arc=this.site=this.cy=null};y.arc=e,y.site=i,y.x=v+a,y.y=(y.cy=m+s)+Math.sqrt(v*v+m*m),e.circle=y;for(var g=null,b=Xw._;b;)if(y.y<b.y||y.y===b.y&&y.x<=b.x){if(!b.L){g=b.P;break}b=b.L}else{if(!b.R){g=b;break}b=b.R}Xw.insert(g,y),g||(jw=y)}}}}function Bw(e){var t=e.circle;t&&(t.P||(jw=t.N),Xw.remove(t),Fw.push(t),Cw(t),e.circle=null)}var qw=[];function Vw(e){var t=qw.pop()||new function(){Cw(this),this.edge=this.site=this.circle=null};return t.site=e,t}function Ww(e){Bw(e),Qw.remove(e),qw.push(e),Cw(e)}function zw(e){var t=e.circle,n=t.x,r=t.cy,i=[n,r],o=e.P,a=e.N,s=[e];Ww(e);for(var u=o;u.circle&&Math.abs(n-u.circle.x)<$w&&Math.abs(r-u.circle.cy)<$w;)o=u.P,s.unshift(u),Ww(u),u=o;s.unshift(u),Bw(u);for(var c=a;c.circle&&Math.abs(n-c.circle.x)<$w&&Math.abs(r-c.circle.cy)<$w;)a=c.N,s.push(c),Ww(c),c=a;s.push(c),Bw(c);var l,f=s.length;for(l=1;l<f;++l)c=s[l],u=s[l-1],Iw(c.edge,u.site,c.site,i);u=s[0],(c=s[f-1]).edge=Nw(u.site,c.site,null,i),Uw(u),Uw(c)}function Hw(e){for(var t,n,r,i,o=e[0],a=e[1],s=Qw._;s;)if((r=Kw(s,a)-o)>$w)s=s.L;else{if(!((i=o-Gw(s,a))>$w)){r>-$w?(t=s.P,n=s):i>-$w?(t=s,n=s.N):t=n=s;break}if(!s.R){t=s;break}s=s.R}!function(e){Yw[e.index]={site:e,halfedges:[]}}(e);var u=Vw(e);if(Qw.insert(t,u),t||n){if(t===n)return Bw(t),n=Vw(t.site),Qw.insert(u,n),u.edge=n.edge=Nw(t.site,u.site),Uw(t),void Uw(n);if(n){Bw(t),Bw(n);var c=t.site,l=c[0],f=c[1],h=e[0]-l,p=e[1]-f,d=n.site,v=d[0]-l,m=d[1]-f,y=2*(h*m-p*v),g=h*h+p*p,b=v*v+m*m,_=[(m*g-p*b)/y+l,(h*b-v*g)/y+f];Iw(n.edge,c,d,_),u.edge=Nw(c,e,null,_),n.edge=Nw(e,d,null,_),Uw(t),Uw(n)}else u.edge=Nw(t.site,u.site)}}function Kw(e,t){var n=e.site,r=n[0],i=n[1],o=i-t;if(!o)return r;var a=e.P;if(!a)return-1/0;var s=(n=a.site)[0],u=n[1],c=u-t;if(!c)return s;var l=s-r,f=1/o-1/c,h=l/c;return f?(-h+Math.sqrt(h*h-2*f*(l*l/(-2*c)-u+c/2+i-o/2)))/f+r:(r+s)/2}function Gw(e,t){var n=e.N;if(n)return Kw(n,t);var r=e.site;return r[1]===t?r[0]:1/0}var Qw,Yw,Xw,Jw,$w=1e-6,Zw=1e-12;function eE(e,t){return t[1]-e[1]||t[0]-e[0]}function tE(e,t){var n,r,i,o=e.sort(eE).pop();for(Jw=[],Yw=new Array(e.length),Qw=new Aw,Xw=new Aw;;)if(i=jw,o&&(!i||o[1]<i.y||o[1]===i.y&&o[0]<i.x))o[0]===n&&o[1]===r||(Hw(o),n=o[0],r=o[1]),o=e.pop();else{if(!i)break;zw(i.arc)}if(function(){for(var e,t,n,r,i=0,o=Yw.length;i<o;++i)if((e=Yw[i])&&(r=(t=e.halfedges).length)){var a=new Array(r),s=new Array(r);for(n=0;n<r;++n)a[n]=n,s[n]=Dw(e,Jw[t[n]]);for(a.sort(function(e,t){return s[t]-s[e]}),n=0;n<r;++n)s[n]=t[a[n]];for(n=0;n<r;++n)t[n]=s[n]}}(),t){var a=+t[0][0],s=+t[0][1],u=+t[1][0],c=+t[1][1];!function(e,t,n,r){for(var i,o=Jw.length;o--;)Rw(i=Jw[o],e,t,n,r)&&Pw(i,e,t,n,r)&&(Math.abs(i[0][0]-i[1][0])>$w||Math.abs(i[0][1]-i[1][1])>$w)||delete Jw[o]}(a,s,u,c),function(e,t,n,r){var i,o,a,s,u,c,l,f,h,p,d,v,m=Yw.length,y=!0;for(i=0;i<m;++i)if(o=Yw[i]){for(a=o.site,s=(u=o.halfedges).length;s--;)Jw[u[s]]||u.splice(s,1);for(s=0,c=u.length;s<c;)d=(p=Lw(o,Jw[u[s]]))[0],v=p[1],f=(l=Mw(o,Jw[u[++s%c]]))[0],h=l[1],(Math.abs(d-f)>$w||Math.abs(v-h)>$w)&&(u.splice(s,0,Jw.push(Ow(a,p,Math.abs(d-e)<$w&&r-v>$w?[e,Math.abs(f-e)<$w?h:r]:Math.abs(v-r)<$w&&n-d>$w?[Math.abs(h-r)<$w?f:n,r]:Math.abs(d-n)<$w&&v-t>$w?[n,Math.abs(f-n)<$w?h:t]:Math.abs(v-t)<$w&&d-e>$w?[Math.abs(h-t)<$w?f:e,t]:null))-1),++c);c&&(y=!1)}if(y){var g,b,_,w=1/0;for(i=0,y=null;i<m;++i)(o=Yw[i])&&(_=(g=(a=o.site)[0]-e)*g+(b=a[1]-t)*b)<w&&(w=_,y=o);if(y){var E=[e,t],x=[e,r],C=[n,r],T=[n,t];y.halfedges.push(Jw.push(Ow(a=y.site,E,x))-1,Jw.push(Ow(a,x,C))-1,Jw.push(Ow(a,C,T))-1,Jw.push(Ow(a,T,E))-1)}}for(i=0;i<m;++i)(o=Yw[i])&&(o.halfedges.length||delete Yw[i])}(a,s,u,c)}this.edges=Jw,this.cells=Yw,Qw=Xw=Jw=Yw=null}tE.prototype={constructor:tE,polygons:function(){var e=this.edges;return this.cells.map(function(t){var n=t.halfedges.map(function(n){return Mw(t,e[n])});return n.data=t.site.data,n})},triangles:function(){var e=[],t=this.edges;return this.cells.forEach(function(n,r){if(o=(i=n.halfedges).length)for(var i,o,a,s,u,c,l=n.site,f=-1,h=t[i[o-1]],p=h.left===l?h.right:h.left;++f<o;)a=p,p=(h=t[i[f]]).left===l?h.right:h.left,a&&p&&r<a.index&&r<p.index&&(u=a,c=p,((s=l)[0]-c[0])*(u[1]-s[1])-(s[0]-u[0])*(c[1]-s[1])<0)&&e.push([l.data,a.data,p.data])}),e},links:function(){return this.edges.filter(function(e){return e.right}).map(function(e){return{source:e.left.data,target:e.right.data}})},find:function(e,t,n){for(var r,i,o=this,a=o._found||0,s=o.cells.length;!(i=o.cells[a]);)if(++a>=s)return null;var u=e-i.site[0],c=t-i.site[1],l=u*u+c*c;do{i=o.cells[r=a],a=null,i.halfedges.forEach(function(n){var r=o.edges[n],s=r.left;if(s!==i.site&&s||(s=r.right)){var u=e-s[0],c=t-s[1],f=u*u+c*c;f<l&&(l=f,a=s.index)}})}while(null!==a);return o._found=r,null==n||l<=n*n?i.site:null}};var nE=function(){var e=ww,t=Ew,n=null;function r(r){return new tE(r.map(function(n,i){var o=[Math.round(e(n,i,r)/$w)*$w,Math.round(t(n,i,r)/$w)*$w];return o.index=i,o.data=n,o}),n)}return r.polygons=function(e){return r(e).polygons()},r.links=function(e){return r(e).links()},r.triangles=function(e){return r(e).triangles()},r.x=function(t){return arguments.length?(e="function"==typeof t?t:_w(+t),r):e},r.y=function(e){return arguments.length?(t="function"==typeof e?e:_w(+e),r):t},r.extent=function(e){return arguments.length?(n=null==e?null:[[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]],r):n&&[[n[0][0],n[0][1]],[n[1][0],n[1][1]]]},r.size=function(e){return arguments.length?(n=null==e?null:[[0,0],[+e[0],+e[1]]],r):n&&[n[1][0]-n[0][0],n[1][1]-n[0][1]]},r},rE=function(e){return function(){return e}};function iE(e,t,n){this.k=e,this.x=t,this.y=n}iE.prototype={constructor:iE,scale:function(e){return 1===e?this:new iE(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new iE(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var oE=new iE(1,0,0);function aE(e){return e.__zoom||oE}function sE(){Ge.stopImmediatePropagation()}aE.prototype=iE.prototype;var uE=function(){Ge.preventDefault(),Ge.stopImmediatePropagation()};function cE(){return!Ge.button}function lE(){var e,t,n=this;return n instanceof SVGElement?(e=(n=n.ownerSVGElement||n).width.baseVal.value,t=n.height.baseVal.value):(e=n.clientWidth,t=n.clientHeight),[[0,0],[e,t]]}function fE(){return this.__zoom||oE}function hE(){return-Ge.deltaY*(Ge.deltaMode?120:1)/500}function pE(){return"ontouchstart"in this}function dE(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],a=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),a>o?(o+a)/2:Math.min(0,o)||Math.max(0,a))}var vE=function(){var e,t,n=cE,r=lE,i=dE,o=hE,a=pE,s=[0,1/0],u=[[-1/0,-1/0],[1/0,1/0]],c=250,l=sr,f=[],h=he("start","zoom","end"),p=500,d=150,v=0;function m(e){e.property("__zoom",fE).on("wheel.zoom",x).on("mousedown.zoom",C).on("dblclick.zoom",T).filter(a).on("touchstart.zoom",k).on("touchmove.zoom",S).on("touchend.zoom touchcancel.zoom",A).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function y(e,t){return(t=Math.max(s[0],Math.min(s[1],t)))===e.k?e:new iE(t,e.x,e.y)}function g(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new iE(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function _(e,t,n){e.on("start.zoom",function(){w(this,arguments).start()}).on("interrupt.zoom end.zoom",function(){w(this,arguments).end()}).tween("zoom",function(){var e=arguments,i=w(this,e),o=r.apply(this,e),a=n||b(o),s=Math.max(o[1][0]-o[0][0],o[1][1]-o[0][1]),u=this.__zoom,c="function"==typeof t?t.apply(this,e):t,f=l(u.invert(a).concat(s/u.k),c.invert(a).concat(s/c.k));return function(e){if(1===e)e=c;else{var t=f(e),n=s/t[2];e=new iE(n,a[0]-t[0]*n,a[1]-t[1]*n)}i.zoom(null,e)}})}function w(e,t){for(var n,r=0,i=f.length;r<i;++r)if((n=f[r]).that===e)return n;return new E(e,t)}function E(e,t){this.that=e,this.args=t,this.index=-1,this.active=0,this.extent=r.apply(e,t)}function x(){if(n.apply(this,arguments)){var e=w(this,arguments),t=this.__zoom,r=Math.max(s[0],Math.min(s[1],t.k*Math.pow(2,o.apply(this,arguments)))),a=ft(this);if(e.wheel)e.mouse[0][0]===a[0]&&e.mouse[0][1]===a[1]||(e.mouse[1]=t.invert(e.mouse[0]=a)),clearTimeout(e.wheel);else{if(t.k===r)return;e.mouse=[a,t.invert(a)],ei(this),e.start()}uE(),e.wheel=setTimeout(function(){e.wheel=null,e.end()},d),e.zoom("mouse",i(g(y(t,r),e.mouse[0],e.mouse[1]),e.extent,u))}}function C(){if(!t&&n.apply(this,arguments)){var e=w(this,arguments),r=it(Ge.view).on("mousemove.zoom",function(){if(uE(),!e.moved){var t=Ge.clientX-a,n=Ge.clientY-s;e.moved=t*t+n*n>v}e.zoom("mouse",i(g(e.that.__zoom,e.mouse[0]=ft(e.that),e.mouse[1]),e.extent,u))},!0).on("mouseup.zoom",function(){r.on("mousemove.zoom mouseup.zoom",null),gt(Ge.view,e.moved),uE(),e.end()},!0),o=ft(this),a=Ge.clientX,s=Ge.clientY;yt(Ge.view),sE(),e.mouse=[o,this.__zoom.invert(o)],ei(this),e.start()}}function T(){if(n.apply(this,arguments)){var e=this.__zoom,t=ft(this),o=e.invert(t),a=e.k*(Ge.shiftKey?.5:2),s=i(g(y(e,a),t,o),r.apply(this,arguments),u);uE(),c>0?it(this).transition().duration(c).call(_,s,t):it(this).call(m.transform,s)}}function k(){if(n.apply(this,arguments)){var t,r,i,o,a=w(this,arguments),s=Ge.changedTouches,u=s.length;for(sE(),r=0;r<u;++r)i=s[r],o=[o=pt(this,s,i.identifier),this.__zoom.invert(o),i.identifier],a.touch0?a.touch1||(a.touch1=o):(a.touch0=o,t=!0);if(e&&(e=clearTimeout(e),!a.touch1))return a.end(),void((o=it(this).on("dblclick.zoom"))&&o.apply(this,arguments));t&&(e=setTimeout(function(){e=null},p),ei(this),a.start())}}function S(){var t,n,r,o,a=w(this,arguments),s=Ge.changedTouches,c=s.length;for(uE(),e&&(e=clearTimeout(e)),t=0;t<c;++t)n=s[t],r=pt(this,s,n.identifier),a.touch0&&a.touch0[2]===n.identifier?a.touch0[0]=r:a.touch1&&a.touch1[2]===n.identifier&&(a.touch1[0]=r);if(n=a.that.__zoom,a.touch1){var l=a.touch0[0],f=a.touch0[1],h=a.touch1[0],p=a.touch1[1],d=(d=h[0]-l[0])*d+(d=h[1]-l[1])*d,v=(v=p[0]-f[0])*v+(v=p[1]-f[1])*v;n=y(n,Math.sqrt(d/v)),r=[(l[0]+h[0])/2,(l[1]+h[1])/2],o=[(f[0]+p[0])/2,(f[1]+p[1])/2]}else{if(!a.touch0)return;r=a.touch0[0],o=a.touch0[1]}a.zoom("touch",i(g(n,r,o),a.extent,u))}function A(){var e,n,r=w(this,arguments),i=Ge.changedTouches,o=i.length;for(sE(),t&&clearTimeout(t),t=setTimeout(function(){t=null},p),e=0;e<o;++e)n=i[e],r.touch0&&r.touch0[2]===n.identifier?delete r.touch0:r.touch1&&r.touch1[2]===n.identifier&&delete r.touch1;r.touch1&&!r.touch0&&(r.touch0=r.touch1,delete r.touch1),r.touch0?r.touch0[1]=this.__zoom.invert(r.touch0[0]):r.end()}return m.transform=function(e,t){var n=e.selection?e.selection():e;n.property("__zoom",fE),e!==n?_(e,t):n.interrupt().each(function(){w(this,arguments).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},m.scaleBy=function(e,t){m.scaleTo(e,function(){return this.__zoom.k*("function"==typeof t?t.apply(this,arguments):t)})},m.scaleTo=function(e,t){m.transform(e,function(){var e=r.apply(this,arguments),n=this.__zoom,o=b(e),a=n.invert(o),s="function"==typeof t?t.apply(this,arguments):t;return i(g(y(n,s),o,a),e,u)})},m.translateBy=function(e,t,n){m.transform(e,function(){return i(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),r.apply(this,arguments),u)})},m.translateTo=function(e,t,n){m.transform(e,function(){var e=r.apply(this,arguments),o=this.__zoom,a=b(e);return i(oE.translate(a[0],a[1]).scale(o.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,u)})},E.prototype={start:function(){return 1==++this.active&&(this.index=f.push(this)-1,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(f.splice(this.index,1),this.index=-1,this.emit("end")),this},emit:function(e){$e(new function(e,t,n){this.target=e,this.type=t,this.transform=n}(m,e,this.that.__zoom),h.apply,h,[e,this.that,this.args])}},m.wheelDelta=function(e){return arguments.length?(o="function"==typeof e?e:rE(+e),m):o},m.filter=function(e){return arguments.length?(n="function"==typeof e?e:rE(!!e),m):n},m.touchable=function(e){return arguments.length?(a="function"==typeof e?e:rE(!!e),m):a},m.extent=function(e){return arguments.length?(r="function"==typeof e?e:rE([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),m):r},m.scaleExtent=function(e){return arguments.length?(s[0]=+e[0],s[1]=+e[1],m):[s[0],s[1]]},m.translateExtent=function(e){return arguments.length?(u[0][0]=+e[0][0],u[1][0]=+e[1][0],u[0][1]=+e[0][1],u[1][1]=+e[1][1],m):[[u[0][0],u[0][1]],[u[1][0],u[1][1]]]},m.constrain=function(e){return arguments.length?(i=e,m):i},m.duration=function(e){return arguments.length?(c=+e,m):c},m.interpolate=function(e){return arguments.length?(l=e,m):l},m.on=function(){var e=h.on.apply(h,arguments);return e===h?m:e},m.clickDistance=function(e){return arguments.length?(v=(e=+e)*e,m):Math.sqrt(v)},m};n.d(t,"version",function(){return"5.5.0"}),n.d(t,"bisect",function(){return u}),n.d(t,"bisectRight",function(){return a}),n.d(t,"bisectLeft",function(){return s}),n.d(t,"ascending",function(){return r}),n.d(t,"bisector",function(){return i}),n.d(t,"cross",function(){return f}),n.d(t,"descending",function(){return h}),n.d(t,"deviation",function(){return v}),n.d(t,"extent",function(){return m}),n.d(t,"histogram",function(){return O}),n.d(t,"thresholdFreedmanDiaconis",function(){return P}),n.d(t,"thresholdScott",function(){return R}),n.d(t,"thresholdSturges",function(){return N}),n.d(t,"max",function(){return D}),n.d(t,"mean",function(){return M}),n.d(t,"median",function(){return L}),n.d(t,"merge",function(){return j}),n.d(t,"min",function(){return F}),n.d(t,"pairs",function(){return c}),n.d(t,"permute",function(){return U}),n.d(t,"quantile",function(){return I}),n.d(t,"range",function(){return E}),n.d(t,"scan",function(){return B}),n.d(t,"shuffle",function(){return q}),n.d(t,"sum",function(){return V}),n.d(t,"ticks",function(){return k}),n.d(t,"tickIncrement",function(){return S}),n.d(t,"tickStep",function(){return A}),n.d(t,"transpose",function(){return W}),n.d(t,"variance",function(){return d}),n.d(t,"zip",function(){return H}),n.d(t,"axisTop",function(){return re}),n.d(t,"axisRight",function(){return ie}),n.d(t,"axisBottom",function(){return oe}),n.d(t,"axisLeft",function(){return ae}),n.d(t,"brush",function(){return To}),n.d(t,"brushX",function(){return xo}),n.d(t,"brushY",function(){return Co}),n.d(t,"brushSelection",function(){return Eo}),n.d(t,"chord",function(){return Ro}),n.d(t,"ribbon",function(){return Go}),n.d(t,"nest",function(){return Jo}),n.d(t,"set",function(){return oa}),n.d(t,"map",function(){return Xo}),n.d(t,"keys",function(){return aa}),n.d(t,"values",function(){return sa}),n.d(t,"entries",function(){return ua}),n.d(t,"color",function(){return qt}),n.d(t,"rgb",function(){return Ht}),n.d(t,"hsl",function(){return Yt}),n.d(t,"lab",function(){return ln}),n.d(t,"hcl",function(){return gn}),n.d(t,"lch",function(){return yn}),n.d(t,"gray",function(){return cn}),n.d(t,"cubehelix",function(){return kn}),n.d(t,"contours",function(){return ga}),n.d(t,"contourDensity",function(){return xa}),n.d(t,"dispatch",function(){return he}),n.d(t,"drag",function(){return Tt}),n.d(t,"dragDisable",function(){return yt}),n.d(t,"dragEnable",function(){return gt}),n.d(t,"dsvFormat",function(){return Oa}),n.d(t,"csvParse",function(){return Pa}),n.d(t,"csvParseRows",function(){return Ra}),n.d(t,"csvFormat",function(){return Da}),n.d(t,"csvFormatRows",function(){return Ma}),n.d(t,"tsvParse",function(){return ja}),n.d(t,"tsvParseRows",function(){return Fa}),n.d(t,"tsvFormat",function(){return Ua}),n.d(t,"tsvFormatRows",function(){return Ba}),n.d(t,"easeLinear",function(){return ci}),n.d(t,"easeQuad",function(){return hi}),n.d(t,"easeQuadIn",function(){return li}),n.d(t,"easeQuadOut",function(){return fi}),n.d(t,"easeQuadInOut",function(){return hi}),n.d(t,"easeCubic",function(){return vi}),n.d(t,"easeCubicIn",function(){return pi}),n.d(t,"easeCubicOut",function(){return di}),n.d(t,"easeCubicInOut",function(){return vi}),n.d(t,"easePoly",function(){return gi}),n.d(t,"easePolyIn",function(){return mi}),n.d(t,"easePolyOut",function(){return yi}),n.d(t,"easePolyInOut",function(){return gi}),n.d(t,"easeSin",function(){return xi}),n.d(t,"easeSinIn",function(){return wi}),n.d(t,"easeSinOut",function(){return Ei}),n.d(t,"easeSinInOut",function(){return xi}),n.d(t,"easeExp",function(){return ki}),n.d(t,"easeExpIn",function(){return Ci}),n.d(t,"easeExpOut",function(){return Ti}),n.d(t,"easeExpInOut",function(){return ki}),n.d(t,"easeCircle",function(){return Ni}),n.d(t,"easeCircleIn",function(){return Si}),n.d(t,"easeCircleOut",function(){return Ai}),n.d(t,"easeCircleInOut",function(){return Ni}),n.d(t,"easeBounce",function(){return qi}),n.d(t,"easeBounceIn",function(){return Bi}),n.d(t,"easeBounceOut",function(){return qi}),n.d(t,"easeBounceInOut",function(){return Vi}),n.d(t,"easeBack",function(){return Hi}),n.d(t,"easeBackIn",function(){return Wi}),n.d(t,"easeBackOut",function(){return zi}),n.d(t,"easeBackInOut",function(){return Hi}),n.d(t,"easeElastic",function(){return Qi}),n.d(t,"easeElasticIn",function(){return Gi}),n.d(t,"easeElasticOut",function(){return Qi}),n.d(t,"easeElasticInOut",function(){return Yi}),n.d(t,"blob",function(){return Va}),n.d(t,"buffer",function(){return za}),n.d(t,"dsv",function(){return Qa}),n.d(t,"csv",function(){return Ya}),n.d(t,"tsv",function(){return Xa}),n.d(t,"image",function(){return Ja}),n.d(t,"json",function(){return Za}),n.d(t,"text",function(){return Ka}),n.d(t,"xml",function(){return ts}),n.d(t,"html",function(){return ns}),n.d(t,"svg",function(){return rs}),n.d(t,"forceCenter",function(){return is}),n.d(t,"forceCollide",function(){return ys}),n.d(t,"forceLink",function(){return _s}),n.d(t,"forceManyBody",function(){return ks}),n.d(t,"forceRadial",function(){return Ss}),n.d(t,"forceSimulation",function(){return Ts}),n.d(t,"forceX",function(){return As}),n.d(t,"forceY",function(){return Ns}),n.d(t,"formatDefaultLocale",function(){return Hs}),n.d(t,"format",function(){return js}),n.d(t,"formatPrefix",function(){return Fs}),n.d(t,"formatLocale",function(){return zs}),n.d(t,"formatSpecifier",function(){return Rs}),n.d(t,"precisionFixed",function(){return Ks}),n.d(t,"precisionPrefix",function(){return Gs}),n.d(t,"precisionRound",function(){return Qs}),n.d(t,"geoArea",function(){return Bu}),n.d(t,"geoBounds",function(){return Pc}),n.d(t,"geoCentroid",function(){return zc}),n.d(t,"geoCircle",function(){return tl}),n.d(t,"geoClipAntimeridian",function(){return hl}),n.d(t,"geoClipCircle",function(){return pl}),n.d(t,"geoClipExtent",function(){return wl}),n.d(t,"geoClipRectangle",function(){return yl}),n.d(t,"geoContains",function(){return Ul}),n.d(t,"geoDistance",function(){return Ol}),n.d(t,"geoGraticule",function(){return Vl}),n.d(t,"geoGraticule10",function(){return Wl}),n.d(t,"geoInterpolate",function(){return Ql}),n.d(t,"geoLength",function(){return Sl}),n.d(t,"geoPath",function(){return Gf}),n.d(t,"geoAlbers",function(){return hh}),n.d(t,"geoAlbersUsa",function(){return ph}),n.d(t,"geoAzimuthalEqualArea",function(){return yh}),n.d(t,"geoAzimuthalEqualAreaRaw",function(){return mh}),n.d(t,"geoAzimuthalEquidistant",function(){return bh}),n.d(t,"geoAzimuthalEquidistantRaw",function(){return gh}),n.d(t,"geoConicConformal",function(){return Th}),n.d(t,"geoConicConformalRaw",function(){return Ch}),n.d(t,"geoConicEqualArea",function(){return fh}),n.d(t,"geoConicEqualAreaRaw",function(){return lh}),n.d(t,"geoConicEquidistant",function(){return Nh}),n.d(t,"geoConicEquidistantRaw",function(){return Ah}),n.d(t,"geoEquirectangular",function(){return Sh}),n.d(t,"geoEquirectangularRaw",function(){return kh}),n.d(t,"geoGnomonic",function(){return Ih}),n.d(t,"geoGnomonicRaw",function(){return Oh}),n.d(t,"geoIdentity",function(){return Rh}),n.d(t,"geoProjection",function(){return sh}),n.d(t,"geoProjectionMutator",function(){return uh}),n.d(t,"geoMercator",function(){return wh}),n.d(t,"geoMercatorRaw",function(){return _h}),n.d(t,"geoNaturalEarth1",function(){return Mh}),n.d(t,"geoNaturalEarth1Raw",function(){return Dh}),n.d(t,"geoOrthographic",function(){return jh}),n.d(t,"geoOrthographicRaw",function(){return Lh}),n.d(t,"geoStereographic",function(){return Uh}),n.d(t,"geoStereographicRaw",function(){return Fh}),n.d(t,"geoTransverseMercator",function(){return qh}),n.d(t,"geoTransverseMercatorRaw",function(){return Bh}),n.d(t,"geoRotation",function(){return $c}),n.d(t,"geoStream",function(){return Pu}),n.d(t,"geoTransform",function(){return Qf}),n.d(t,"cluster",function(){return Hh}),n.d(t,"hierarchy",function(){return Gh}),n.d(t,"pack",function(){return yp}),n.d(t,"packSiblings",function(){return hp}),n.d(t,"packEnclose",function(){return Zh}),n.d(t,"partition",function(){return xp}),n.d(t,"stratify",function(){return Np}),n.d(t,"tree",function(){return Lp}),n.d(t,"treemap",function(){return qp}),n.d(t,"treemapBinary",function(){return Vp}),n.d(t,"treemapDice",function(){return Ep}),n.d(t,"treemapSlice",function(){return jp}),n.d(t,"treemapSliceDice",function(){return Wp}),n.d(t,"treemapSquarify",function(){return Bp}),n.d(t,"treemapResquarify",function(){return zp}),n.d(t,"interpolate",function(){return Jn}),n.d(t,"interpolateArray",function(){return Bn}),n.d(t,"interpolateBasis",function(){return Nn}),n.d(t,"interpolateBasisClosed",function(){return On}),n.d(t,"interpolateDate",function(){return qn}),n.d(t,"interpolateNumber",function(){return Vn}),n.d(t,"interpolateObject",function(){return Wn}),n.d(t,"interpolateRound",function(){return $n}),n.d(t,"interpolateString",function(){return Xn}),n.d(t,"interpolateTransformCss",function(){return rr}),n.d(t,"interpolateTransformSvg",function(){return ir}),n.d(t,"interpolateZoom",function(){return sr}),n.d(t,"interpolateRgb",function(){return Ln}),n.d(t,"interpolateRgbBasis",function(){return Fn}),n.d(t,"interpolateRgbBasisClosed",function(){return Un}),n.d(t,"interpolateHsl",function(){return cr}),n.d(t,"interpolateHslLong",function(){return lr}),n.d(t,"interpolateLab",function(){return fr}),n.d(t,"interpolateHcl",function(){return pr}),n.d(t,"interpolateHclLong",function(){return dr}),n.d(t,"interpolateCubehelix",function(){return mr}),n.d(t,"interpolateCubehelixLong",function(){return yr}),n.d(t,"piecewise",function(){return gr}),n.d(t,"quantize",function(){return wr}),n.d(t,"path",function(){return qo}),n.d(t,"polygonArea",function(){return Hp}),n.d(t,"polygonCentroid",function(){return Kp}),n.d(t,"polygonHull",function(){return Xp}),n.d(t,"polygonContains",function(){return Jp}),n.d(t,"polygonLength",function(){return $p}),n.d(t,"quadtree",function(){return fs}),n.d(t,"randomUniform",function(){return ed}),n.d(t,"randomNormal",function(){return td}),n.d(t,"randomLogNormal",function(){return nd}),n.d(t,"randomBates",function(){return id}),n.d(t,"randomIrwinHall",function(){return rd}),n.d(t,"randomExponential",function(){return od}),n.d(t,"scaleBand",function(){return fd}),n.d(t,"scalePoint",function(){return hd}),n.d(t,"scaleIdentity",function(){return Cd}),n.d(t,"scaleLinear",function(){return xd}),n.d(t,"scaleLog",function(){return Pd}),n.d(t,"scaleOrdinal",function(){return ld}),n.d(t,"scaleImplicit",function(){return cd}),n.d(t,"scalePow",function(){return Dd}),n.d(t,"scaleSqrt",function(){return Md}),n.d(t,"scaleQuantile",function(){return Ld}),n.d(t,"scaleQuantize",function(){return jd}),n.d(t,"scaleThreshold",function(){return Fd}),n.d(t,"scaleTime",function(){return Dy}),n.d(t,"scaleUtc",function(){return My}),n.d(t,"scaleSequential",function(){return Ly}),n.d(t,"scaleDiverging",function(){return jy}),n.d(t,"schemeCategory10",function(){return Uy}),n.d(t,"schemeAccent",function(){return By}),n.d(t,"schemeDark2",function(){return qy}),n.d(t,"schemePaired",function(){return Vy}),n.d(t,"schemePastel1",function(){return Wy}),n.d(t,"schemePastel2",function(){return zy}),n.d(t,"schemeSet1",function(){return Hy}),n.d(t,"schemeSet2",function(){return Ky}),n.d(t,"schemeSet3",function(){return Gy}),n.d(t,"interpolateBrBG",function(){return Xy}),n.d(t,"schemeBrBG",function(){return Yy}),n.d(t,"interpolatePRGn",function(){return $y}),n.d(t,"schemePRGn",function(){return Jy}),n.d(t,"interpolatePiYG",function(){return eg}),n.d(t,"schemePiYG",function(){return Zy}),n.d(t,"interpolatePuOr",function(){return ng}),n.d(t,"schemePuOr",function(){return tg}),n.d(t,"interpolateRdBu",function(){return ig}),n.d(t,"schemeRdBu",function(){return rg}),n.d(t,"interpolateRdGy",function(){return ag}),n.d(t,"schemeRdGy",function(){return og}),n.d(t,"interpolateRdYlBu",function(){return ug}),n.d(t,"schemeRdYlBu",function(){return sg}),n.d(t,"interpolateRdYlGn",function(){return lg}),n.d(t,"schemeRdYlGn",function(){return cg}),n.d(t,"interpolateSpectral",function(){return hg}),n.d(t,"schemeSpectral",function(){return fg}),n.d(t,"interpolateBuGn",function(){return dg}),n.d(t,"schemeBuGn",function(){return pg}),n.d(t,"interpolateBuPu",function(){return mg}),n.d(t,"schemeBuPu",function(){return vg}),n.d(t,"interpolateGnBu",function(){return gg}),n.d(t,"schemeGnBu",function(){return yg}),n.d(t,"interpolateOrRd",function(){return _g}),n.d(t,"schemeOrRd",function(){return bg}),n.d(t,"interpolatePuBuGn",function(){return Eg}),n.d(t,"schemePuBuGn",function(){return wg}),n.d(t,"interpolatePuBu",function(){return Cg}),n.d(t,"schemePuBu",function(){return xg}),n.d(t,"interpolatePuRd",function(){return kg}),n.d(t,"schemePuRd",function(){return Tg}),n.d(t,"interpolateRdPu",function(){return Ag}),n.d(t,"schemeRdPu",function(){return Sg}),n.d(t,"interpolateYlGnBu",function(){return Og}),n.d(t,"schemeYlGnBu",function(){return Ng}),n.d(t,"interpolateYlGn",function(){return Pg}),n.d(t,"schemeYlGn",function(){return Ig}),n.d(t,"interpolateYlOrBr",function(){return Dg}),n.d(t,"schemeYlOrBr",function(){return Rg}),n.d(t,"interpolateYlOrRd",function(){return Lg}),n.d(t,"schemeYlOrRd",function(){return Mg}),n.d(t,"interpolateBlues",function(){return Fg}),n.d(t,"schemeBlues",function(){return jg}),n.d(t,"interpolateGreens",function(){return Bg}),n.d(t,"schemeGreens",function(){return Ug}),n.d(t,"interpolateGreys",function(){return Vg}),n.d(t,"schemeGreys",function(){return qg}),n.d(t,"interpolatePurples",function(){return zg}),n.d(t,"schemePurples",function(){return Wg}),n.d(t,"interpolateReds",function(){return Kg}),n.d(t,"schemeReds",function(){return Hg}),n.d(t,"interpolateOranges",function(){return Qg}),n.d(t,"schemeOranges",function(){return Gg}),n.d(t,"interpolateCubehelixDefault",function(){return Yg}),n.d(t,"interpolateRainbow",function(){return Zg}),n.d(t,"interpolateWarm",function(){return Xg}),n.d(t,"interpolateCool",function(){return Jg}),n.d(t,"interpolateSinebow",function(){return rb}),n.d(t,"interpolateViridis",function(){return ob}),n.d(t,"interpolateMagma",function(){return ab}),n.d(t,"interpolateInferno",function(){return sb}),n.d(t,"interpolatePlasma",function(){return ub}),n.d(t,"create",function(){return ot}),n.d(t,"creator",function(){return me}),n.d(t,"local",function(){return st}),n.d(t,"matcher",function(){return Ce}),n.d(t,"mouse",function(){return ft}),n.d(t,"namespace",function(){return ve}),n.d(t,"namespaces",function(){return de}),n.d(t,"clientPoint",function(){return lt}),n.d(t,"select",function(){return it}),n.d(t,"selectAll",function(){return ht}),n.d(t,"selection",function(){return rt}),n.d(t,"selector",function(){return ge}),n.d(t,"selectorAll",function(){return _e}),n.d(t,"style",function(){return Pe}),n.d(t,"touch",function(){return pt}),n.d(t,"touches",function(){return dt}),n.d(t,"window",function(){return Ie}),n.d(t,"event",function(){return Ge}),n.d(t,"customEvent",function(){return $e}),n.d(t,"arc",function(){return Ab}),n.d(t,"area",function(){return Db}),n.d(t,"line",function(){return Rb}),n.d(t,"pie",function(){return jb}),n.d(t,"areaRadial",function(){return Wb}),n.d(t,"radialArea",function(){return Wb}),n.d(t,"lineRadial",function(){return Vb}),n.d(t,"radialLine",function(){return Vb}),n.d(t,"pointRadial",function(){return zb}),n.d(t,"linkHorizontal",function(){return $b}),n.d(t,"linkVertical",function(){return Zb}),n.d(t,"linkRadial",function(){return e_}),n.d(t,"symbol",function(){return g_}),n.d(t,"symbols",function(){return y_}),n.d(t,"symbolCircle",function(){return t_}),n.d(t,"symbolCross",function(){return n_}),n.d(t,"symbolDiamond",function(){return o_}),n.d(t,"symbolSquare",function(){return l_}),n.d(t,"symbolStar",function(){return c_}),n.d(t,"symbolTriangle",function(){return h_}),n.d(t,"symbolWye",function(){return m_}),n.d(t,"curveBasisClosed",function(){return C_}),n.d(t,"curveBasisOpen",function(){return k_}),n.d(t,"curveBasis",function(){return E_}),n.d(t,"curveBundle",function(){return A_}),n.d(t,"curveCardinalClosed",function(){return R_}),n.d(t,"curveCardinalOpen",function(){return M_}),n.d(t,"curveCardinal",function(){return I_}),n.d(t,"curveCatmullRomClosed",function(){return B_}),n.d(t,"curveCatmullRomOpen",function(){return V_}),n.d(t,"curveCatmullRom",function(){return F_}),n.d(t,"curveLinearClosed",function(){return z_}),n.d(t,"curveLinear",function(){return Ob}),n.d(t,"curveMonotoneX",function(){return $_}),n.d(t,"curveMonotoneY",function(){return Z_}),n.d(t,"curveNatural",function(){return nw}),n.d(t,"curveStep",function(){return iw}),n.d(t,"curveStepAfter",function(){return aw}),n.d(t,"curveStepBefore",function(){return ow}),n.d(t,"stack",function(){return lw}),n.d(t,"stackOffsetExpand",function(){return fw}),n.d(t,"stackOffsetDiverging",function(){return hw}),n.d(t,"stackOffsetNone",function(){return sw}),n.d(t,"stackOffsetSilhouette",function(){return pw}),n.d(t,"stackOffsetWiggle",function(){return dw}),n.d(t,"stackOrderAscending",function(){return vw}),n.d(t,"stackOrderDescending",function(){return yw}),n.d(t,"stackOrderInsideOut",function(){return gw}),n.d(t,"stackOrderNone",function(){return uw}),n.d(t,"stackOrderReverse",function(){return bw}),n.d(t,"timeInterval",function(){return qd}),n.d(t,"timeMillisecond",function(){return Wd}),n.d(t,"timeMilliseconds",function(){return zd}),n.d(t,"utcMillisecond",function(){return Wd}),n.d(t,"utcMilliseconds",function(){return zd}),n.d(t,"timeSecond",function(){return Qd}),n.d(t,"timeSeconds",function(){return Yd}),n.d(t,"utcSecond",function(){return Qd}),n.d(t,"utcSeconds",function(){return Yd}),n.d(t,"timeMinute",function(){return Jd}),n.d(t,"timeMinutes",function(){return $d}),n.d(t,"timeHour",function(){return ev}),n.d(t,"timeHours",function(){return tv}),n.d(t,"timeDay",function(){return rv}),n.d(t,"timeDays",function(){return iv}),n.d(t,"timeWeek",function(){return av}),n.d(t,"timeWeeks",function(){return pv}),n.d(t,"timeSunday",function(){return av}),n.d(t,"timeSundays",function(){return pv}),n.d(t,"timeMonday",function(){return sv}),n.d(t,"timeMondays",function(){return dv}),n.d(t,"timeTuesday",function(){return uv}),n.d(t,"timeTuesdays",function(){return vv}),n.d(t,"timeWednesday",function(){return cv}),n.d(t,"timeWednesdays",function(){return mv}),n.d(t,"timeThursday",function(){return lv}),n.d(t,"timeThursdays",function(){return yv}),n.d(t,"timeFriday",function(){return fv}),n.d(t,"timeFridays",function(){return gv}),n.d(t,"timeSaturday",function(){return hv}),n.d(t,"timeSaturdays",function(){return bv}),n.d(t,"timeMonth",function(){return wv}),n.d(t,"timeMonths",function(){return Ev}),n.d(t,"timeYear",function(){return Cv}),n.d(t,"timeYears",function(){return Tv}),n.d(t,"utcMinute",function(){return Sv}),n.d(t,"utcMinutes",function(){return Av}),n.d(t,"utcHour",function(){return Ov}),n.d(t,"utcHours",function(){return Iv}),n.d(t,"utcDay",function(){return Rv}),n.d(t,"utcDays",function(){return Dv}),n.d(t,"utcWeek",function(){return Lv}),n.d(t,"utcWeeks",function(){return Wv}),n.d(t,"utcSunday",function(){return Lv}),n.d(t,"utcSundays",function(){return Wv}),n.d(t,"utcMonday",function(){return jv}),n.d(t,"utcMondays",function(){return zv}),n.d(t,"utcTuesday",function(){return Fv}),n.d(t,"utcTuesdays",function(){return Hv}),n.d(t,"utcWednesday",function(){return Uv}),n.d(t,"utcWednesdays",function(){return Kv}),n.d(t,"utcThursday",function(){return Bv}),n.d(t,"utcThursdays",function(){return Gv}),n.d(t,"utcFriday",function(){return qv}),n.d(t,"utcFridays",function(){return Qv}),n.d(t,"utcSaturday",function(){return Vv}),n.d(t,"utcSaturdays",function(){return Yv}),n.d(t,"utcMonth",function(){return Jv}),n.d(t,"utcMonths",function(){return $v}),n.d(t,"utcYear",function(){return em}),n.d(t,"utcYears",function(){return tm}),n.d(t,"timeFormatDefaultLocale",function(){return wy}),n.d(t,"timeFormat",function(){return sm}),n.d(t,"timeParse",function(){return um}),n.d(t,"utcFormat",function(){return cm}),n.d(t,"utcParse",function(){return lm}),n.d(t,"timeFormatLocale",function(){return om}),n.d(t,"isoFormat",function(){return Ey}),n.d(t,"isoParse",function(){return xy}),n.d(t,"now",function(){return Ir}),n.d(t,"timer",function(){return Dr}),n.d(t,"timerFlush",function(){return Mr}),n.d(t,"timeout",function(){return Ur}),n.d(t,"interval",function(){return Br}),n.d(t,"transition",function(){return ai}),n.d(t,"active",function(){return Zi}),n.d(t,"interrupt",function(){return ei}),n.d(t,"voronoi",function(){return nE}),n.d(t,"zoom",function(){return vE}),n.d(t,"zoomTransform",function(){return aE}),n.d(t,"zoomIdentity",function(){return oE})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={content:{contactInfo:{email:"",phoneNumber:""},workWithUsSegment:{subtitle:"We would love to collaborate with other iGem teams. To get in contact, use the details below.",title:"Work with us!",contactDetails:{email:"nottinghamigem@outlook.com",phone:"(+44) 0115 846 8001"}}},href:"/Outreach",title:"Outreach"}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("[",t),r=e.indexOf("![",t);if(-1===r)return n;return n<r?n:r}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("<",t)}},function(e,t,n){"use strict";var r="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\u0000-\\u0020]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",i="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>";t.openCloseTag=new RegExp("^(?:"+r+"|"+i+")"),t.tag=new RegExp("^(?:"+r+"|"+i+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|<[?].*?[?]>|<![A-Za-z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)")},function(e,t,n){"use strict";e.exports=function(e){var t,n=0,i=0,o=e.charAt(n),a={};for(;o in r;)t=r[o],i+=t,t>1&&(i=Math.floor(i/t)*t),a[i]=n,o=e.charAt(++n);return{indent:i,stops:a}};var r={" ":1,"\t":4}},function(e,t,n){"use strict";e.exports={position:!0,gfm:!0,commonmark:!1,footnotes:!1,pedantic:!1,blocks:n(376)}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}},function(e,t,n){(function(e){function n(e,t){for(var n=0,r=e.length-1;r>=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}var r=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,i=function(e){return r.exec(e).slice(1)};function o(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r<e.length;r++)t(e[r],r,e)&&n.push(e[r]);return n}t.resolve=function(){for(var t="",r=!1,i=arguments.length-1;i>=-1&&!r;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!=typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(o(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),i="/"===a(e,-1);return(e=n(o(e.split("/"),function(e){return!!e}),!r).join("/"))||r||(e="."),e&&i&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(o(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t<e.length&&""===e[t];t++);for(var n=e.length-1;n>=0&&""===e[n];n--);return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,u=0;u<a;u++)if(i[u]!==o[u]){s=u;break}var c=[];for(u=s;u<i.length;u++)c.push("..");return(c=c.concat(o.slice(s))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=i(e),n=t[0],r=t[1];return n||r?(r&&(r=r.substr(0,r.length-1)),n+r):"."},t.basename=function(e,t){var n=i(e)[2];return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){return i(e)[3]};var a="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n(88))},function(e,t,n){var r=n(411);"string"==typeof r&&(r=e.i,r,"");var i={hmr:!0,transform:void 0,insertInto:void 0};n(110)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";n.r(t),n.d(t,"setLogLevel",function(){return u}),n.d(t,"Logger",function(){return s}),n.d(t,"LogLevel",function(){return r});var r,i=[];!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(r||(r={}));var o=r.INFO,a=function(e,t){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];if(!(t<e.logLevel)){var o=(new Date).toISOString();switch(t){case r.DEBUG:case r.VERBOSE:console.log.apply(console,["["+o+"]  "+e.name+":"].concat(n));break;case r.INFO:console.info.apply(console,["["+o+"]  "+e.name+":"].concat(n));break;case r.WARN:console.warn.apply(console,["["+o+"]  "+e.name+":"].concat(n));break;case r.ERROR:console.error.apply(console,["["+o+"]  "+e.name+":"].concat(n));break;default:throw new Error("Attempted to log a message with an invalid logType (value: "+t+")")}}},s=function(){function e(e){this.name=e,this._logLevel=o,this._logHandler=a,i.push(this)}return Object.defineProperty(e.prototype,"logLevel",{get:function(){return this._logLevel},set:function(e){if(!(e in r))throw new TypeError("Invalid value assigned to `logLevel`");this._logLevel=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"logHandler",{get:function(){return this._logHandler},set:function(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e},enumerable:!0,configurable:!0}),e.prototype.debug=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,r.DEBUG].concat(e))},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,r.VERBOSE].concat(e))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,r.INFO].concat(e))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,r.WARN].concat(e))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logHandler.apply(this,[this,r.ERROR].concat(e))},e}();function u(e){i.forEach(function(t){t.logLevel=e})}},function(e,t){e.exports=function(e,t,n,r){var i=-1,o=null==e?0:e.length;for(r&&o&&(n=e[++i]);++i<o;)n=t(n,e[i],i,e);return n}},function(e,t,n){var r=n(130),i=n(129),o=n(175),a=n(127),s=n(460),u=n(120),c=200;e.exports=function(e,t,n){var l=-1,f=i,h=e.length,p=!0,d=[],v=d;if(n)p=!1,f=o;else if(h>=c){var m=t?null:s(e);if(m)return u(m);p=!1,f=a,v=new r}else v=t?[]:d;e:for(;++l<h;){var y=e[l],g=t?t(y):y;if(y=n||0!==y?y:0,p&&g==g){for(var b=v.length;b--;)if(v[b]===g)continue e;t&&v.push(g),d.push(y)}else f(v,g,n)||(v!==d&&v.push(g),d.push(y))}return d}},function(e,t,n){var r=n(65),i=n(39);e.exports=function(e,t){var n=-1,o=i(e)?Array(e.length):[];return r(e,function(e,r,i){o[++n]=t(e,r,i)}),o}},function(e,t,n){var r=n(132),i=n(473),o=n(97);e.exports=function(e,t,n){for(var a=-1,s=t.length,u={};++a<s;){var c=t[a],l=r(e,c);n(l,c)&&i(u,o(c,e),l)}return u}},function(e,t,n){var r=n(249),i=n(224),o=n(225);e.exports=function(e){return r(e,o,i)}},function(e,t,n){var r=n(174),i=n(114),o=n(169),a=n(248),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,o(e)),e=i(e);return t}:a;e.exports=s},function(e,t,n){var r=n(257),i=n(502),o=n(39);e.exports=function(e){return o(e)?r(e,!0):i(e)}},function(e,t,n){var r=n(171),i=n(92),o=n(115),a=n(227),s=n(503),u=n(500),c=n(90),l=n(499),f=n(498),h=n(250),p=n(223),d=n(55),v=n(497),m=n(496),y=n(491),g=n(18),b=n(94),_=n(490),w=n(40),E=n(488),x=n(28),C=1,T=2,k=4,S="[object Arguments]",A="[object Function]",N="[object GeneratorFunction]",O="[object Object]",I={};I[S]=I["[object Array]"]=I["[object ArrayBuffer]"]=I["[object DataView]"]=I["[object Boolean]"]=I["[object Date]"]=I["[object Float32Array]"]=I["[object Float64Array]"]=I["[object Int8Array]"]=I["[object Int16Array]"]=I["[object Int32Array]"]=I["[object Map]"]=I["[object Number]"]=I[O]=I["[object RegExp]"]=I["[object Set]"]=I["[object String]"]=I["[object Symbol]"]=I["[object Uint8Array]"]=I["[object Uint8ClampedArray]"]=I["[object Uint16Array]"]=I["[object Uint32Array]"]=!0,I["[object Error]"]=I[A]=I["[object WeakMap]"]=!1,e.exports=function e(t,n,P,R,D,M){var L,j=n&C,F=n&T,U=n&k;if(P&&(L=D?P(t,R,D,M):P(t)),void 0!==L)return L;if(!w(t))return t;var B=g(t);if(B){if(L=v(t),!j)return c(t,L)}else{var q=d(t),V=q==A||q==N;if(b(t))return u(t,j);if(q==O||q==S||V&&!D){if(L=F||V?{}:y(t),!j)return F?f(t,s(L,t)):l(t,a(L,t))}else{if(!I[q])return D?t:{};L=m(t,q,j)}}M||(M=new r);var W=M.get(t);if(W)return W;if(M.set(t,L),E(t))return t.forEach(function(r){L.add(e(r,n,P,r,t,M))}),L;if(_(t))return t.forEach(function(r,i){L.set(i,e(r,n,P,i,t,M))}),L;var z=U?F?p:h:F?keysIn:x,H=B?void 0:z(t);return i(H||t,function(r,i){H&&(r=t[i=r]),o(L,i,e(r,n,P,i,t,M))}),L}},function(e,t,n){var r=n(89),i=n(28);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(510),i=n(509),o=n(176),a=n(508);e.exports=function(e,t,n){var s=t+"";return o(e,i(s,a(r(s),n)))}},function(e,t,n){var r=n(238),i=n(265)(r);e.exports=i},function(e,t,n){var r=n(513),i=Object.prototype.hasOwnProperty;e.exports=function(e){for(var t=e.name+"",n=r[t],o=i.call(r,t)?n.length:0;o--;){var a=n[o],s=a.func;if(null==s||s==e)return a.name}return t}},function(e,t){e.exports=function(){}},function(e,t,n){var r=n(168),i=n(166),o=n(230),a=n(512);e.exports=function(e){var t=o(e),n=a[t];if("function"!=typeof n||!(t in r.prototype))return!1;if(e===n)return!0;var s=i(n);return!!s&&e===s[0]}},function(e,t,n){var r=n(232),i=n(229),o=n(228),a=1,s=2,u=4,c=8,l=32,f=64;e.exports=function(e,t,n,h,p,d,v,m,y,g){var b=t&c;t|=b?l:f,(t&=~(b?f:l))&u||(t&=~(a|s));var _=[e,t,p,b?d:void 0,b?v:void 0,b?void 0:d,b?void 0:v,m,y,g],w=n.apply(void 0,_);return r(e)&&i(w,_),w.placeholder=h,o(w,e,t)}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=-1,u=r.length,c=-1,l=t.length,f=n(a-u,0),h=Array(f+l),p=!i;++o<f;)h[o]=e[o];for(var d=o;++c<l;)h[d+c]=t[c];for(;++s<u;)(p||o<a)&&(h[d+r[s]]=e[o++]);return h}},function(e,t){var n=Math.max;e.exports=function(e,t,r,i){for(var o=-1,a=e.length,s=r.length,u=-1,c=t.length,l=n(a-s,0),f=Array(c+l),h=!i;++u<c;)f[u]=t[u];for(;++o<s;)(h||o<a)&&(f[r[o]]=e[o]);for(;l--;)f[u++]=e[o++];return f}},function(e,t,n){var r=n(235),i=n(234),o=n(514),a=n(117),s=n(233),u=n(164),c=n(507),l=n(116),f=n(34),h=1,p=2,d=8,v=16,m=128,y=512;e.exports=function e(t,n,g,b,_,w,E,x,C,T){var k=n&m,S=n&h,A=n&p,N=n&(d|v),O=n&y,I=A?void 0:a(t);return function h(){for(var p=arguments.length,d=Array(p),v=p;v--;)d[v]=arguments[v];if(N)var m=u(h),y=o(d,m);if(b&&(d=r(d,b,_,N)),w&&(d=i(d,w,E,N)),p-=y,N&&p<T){var P=l(d,m);return s(t,n,e,h.placeholder,g,d,P,x,C,T-p)}var R=S?g:this,D=A?R[t]:t;return p=d.length,x?d=c(d,x):O&&p>1&&d.reverse(),k&&C<p&&(d.length=C),this&&this!==f&&this instanceof h&&(D=I||a(D)),D.apply(R,d)}}},function(e,t,n){var r=n(246),i=r&&new r;e.exports=i},function(e,t,n){var r=n(49),i=n(237),o=i?function(e,t){return i.set(e,t),e}:r;e.exports=o},function(e,t,n){var r=n(194),i=n(43)("toStringTag"),o="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),i))?n:o?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},function(e,t,n){var r=n(239),i=n(43)("iterator"),o=n(81);e.exports=n(26).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){var r=n(49);e.exports=function(e){return"function"==typeof e?e:r}},function(e,t){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},function(e,t,n){var r=n(550),i=n(272);e.exports=function(e,t){return null!=e&&i(e,t,r)}},function(e,t){e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},function(e,t,n){var r=n(40);e.exports=function(e){return e==e&&!r(e)}},function(e,t,n){var r=n(68)(n(34),"WeakMap");e.exports=r},function(e,t,n){var r=n(68)(n(34),"Set");e.exports=r},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(174),i=n(18);e.exports=function(e,t,n){var o=t(e);return i(e)?o:r(o,n(e))}},function(e,t,n){var r=n(249),i=n(169),o=n(28);e.exports=function(e){return r(e,o,i)}},function(e,t){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},function(e,t,n){var r=n(34).Uint8Array;e.exports=r},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},function(e,t,n){var r=n(130),i=n(253),o=n(127),a=1,s=2;e.exports=function(e,t,n,u,c,l){var f=n&a,h=e.length,p=t.length;if(h!=p&&!(f&&p>h))return!1;var d=l.get(e);if(d&&l.get(t))return d==t;var v=-1,m=!0,y=n&s?new r:void 0;for(l.set(e,t),l.set(t,e);++v<h;){var g=e[v],b=t[v];if(u)var _=f?u(b,g,v,t,e,l):u(g,b,v,e,t,l);if(void 0!==_){if(_)continue;m=!1;break}if(y){if(!i(t,function(e,t){if(!o(y,t)&&(g===e||c(g,e,n,u,l)))return y.push(t)})){m=!1;break}}else if(g!==b&&!c(g,b,n,u,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},function(e,t,n){var r=n(256),i=n(134),o=n(18),a=n(94),s=n(96),u=n(123),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=o(e),l=!n&&i(e),f=!n&&!l&&a(e),h=!n&&!l&&!f&&u(e),p=n||l||f||h,d=p?r(e.length,String):[],v=d.length;for(var m in e)!t&&!c.call(e,m)||p&&("length"==m||f&&("offset"==m||"parent"==m)||h&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||s(m,v))||d.push(m);return d}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}},function(e,t){e.exports=function(e,t,n){return e==e&&(void 0!==n&&(e=e<=n?e:n),void 0!==t&&(e=e>=t?e:t)),e}},function(e,t){e.exports=function(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}},function(e,t,n){var r=n(130),i=n(129),o=n(175),a=n(50),s=n(66),u=n(127),c=200;e.exports=function(e,t,n,l){var f=-1,h=i,p=!0,d=e.length,v=[],m=t.length;if(!d)return v;n&&(t=a(t,s(n))),l?(h=o,p=!1):t.length>=c&&(h=u,p=!1,t=new r(t));e:for(;++f<d;){var y=e[f],g=null==n?y:n(y);if(y=l||0!==y?y:0,p&&g==g){for(var b=m;b--;)if(t[b]===g)continue e;v.push(y)}else h(t,g,l)||v.push(y)}return v}},function(e,t,n){e.exports=n(579)},function(e,t,n){e.exports=n(580)},function(e,t,n){e.exports=n(582)},function(e,t){var n=800,r=16,i=Date.now;e.exports=function(e){var t=0,o=0;return function(){var a=i(),s=r-(a-o);if(o=a,s>0){if(++t>=n)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}},function(e,t,n){var r=n(68),i=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=i},function(e,t,n){var r=n(133),i=Math.max;e.exports=function(e,t,n){return t=i(void 0===t?e.length-1:t,0),function(){for(var o=arguments,a=-1,s=i(o.length-t,0),u=Array(s);++a<s;)u[a]=o[t+a];a=-1;for(var c=Array(t+1);++a<t;)c[a]=o[a];return c[t]=n(u),r(e,this,c)}}},function(e,t){var n=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return n.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},function(e,t,n){var r=n(179),i="Expected a function";function o(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError(i);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)||o,a};return n.cache=new(o.Cache||r),n}o.Cache=r,e.exports=o},function(e,t,n){var r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g,o=n(610)(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,r,o){t.push(r?o.replace(i,"$1"):n||e)}),t});e.exports=o},function(e,t,n){(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.exports=n}).call(this,n(69))},function(e,t,n){var r=n(97),i=n(134),o=n(18),a=n(96),s=n(177),u=n(67);e.exports=function(e,t,n){for(var c=-1,l=(t=r(t,e)).length,f=!1;++c<l;){var h=u(t[c]);if(!(f=null!=e&&n(e,h)))break;e=e[h]}return f||++c!=l?f:!!(l=null==e?0:e.length)&&s(l)&&a(h,l)&&(o(e)||i(e))}},function(e,t,n){e.exports=n(620)},function(e,t,n){var r=n(281),i=n(189).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},function(e,t,n){"use strict";var r=n(60),i=n(57),o=n(73),a=n(51),s=n(276),u=n(630).KEY,c=n(82),l=n(190),f=n(186),h=n(144),p=n(43),d=n(183),v=n(182),m=n(629),y=n(628),g=n(58),b=n(74),_=n(72),w=n(195),E=n(100),x=n(187),C=n(627),T=n(141),k=n(59),S=n(99),A=T.f,N=k.f,O=C.f,I=r.Symbol,P=r.JSON,R=P&&P.stringify,D=p("_hidden"),M=p("toPrimitive"),L={}.propertyIsEnumerable,j=l("symbol-registry"),F=l("symbols"),U=l("op-symbols"),B=Object.prototype,q="function"==typeof I,V=r.QObject,W=!V||!V.prototype||!V.prototype.findChild,z=o&&c(function(){return 7!=x(N({},"a",{get:function(){return N(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=A(B,t);r&&delete B[t],N(e,t,n),r&&e!==B&&N(B,t,r)}:N,H=function(e){var t=F[e]=x(I.prototype);return t._k=e,t},K=q&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,n){return e===B&&G(U,t,n),g(e),t=w(t,!0),g(n),i(F,t)?(n.enumerable?(i(e,D)&&e[D][t]&&(e[D][t]=!1),n=x(n,{enumerable:E(0,!1)})):(i(e,D)||N(e,D,E(1,{})),e[D][t]=!0),z(e,t,n)):N(e,t,n)},Q=function(e,t){g(e);for(var n,r=m(t=_(t)),i=0,o=r.length;o>i;)G(e,n=r[i++],t[n]);return e},Y=function(e){var t=L.call(this,e=w(e,!0));return!(this===B&&i(F,e)&&!i(U,e))&&(!(t||!i(this,e)||!i(F,e)||i(this,D)&&this[D][e])||t)},X=function(e,t){if(e=_(e),t=w(t,!0),e!==B||!i(F,t)||i(U,t)){var n=A(e,t);return!n||!i(F,t)||i(e,D)&&e[D][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=O(_(e)),r=[],o=0;n.length>o;)i(F,t=n[o++])||t==D||t==u||r.push(t);return r},$=function(e){for(var t,n=e===B,r=O(n?U:_(e)),o=[],a=0;r.length>a;)!i(F,t=r[a++])||n&&!i(B,t)||o.push(F[t]);return o};q||(s((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===B&&t.call(U,n),i(this,D)&&i(this[D],e)&&(this[D][e]=!1),z(this,e,E(1,n))};return o&&W&&z(B,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),T.f=X,k.f=G,n(274).f=C.f=J,n(143).f=Y,n(188).f=$,o&&!n(145)&&s(B,"propertyIsEnumerable",Y,!0),d.f=function(e){return H(p(e))}),a(a.G+a.W+a.F*!q,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)p(Z[ee++]);for(var te=S(p.store),ne=0;te.length>ne;)v(te[ne++]);a(a.S+a.F*!q,"Symbol",{for:function(e){return i(j,e+="")?j[e]:j[e]=I(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),a(a.S+a.F*!q,"Object",{create:function(e,t){return void 0===t?x(e):Q(x(e),t)},defineProperty:G,defineProperties:Q,getOwnPropertyDescriptor:X,getOwnPropertyNames:J,getOwnPropertySymbols:$}),P&&a(a.S+a.F*(!q||c(function(){var e=I();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return y(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,R.apply(P,r)}}),I.prototype[M]||n(83)(I.prototype,M,I.prototype.valueOf),f(I,"Symbol"),f(Math,"Math",!0),f(r.JSON,"JSON",!0)},function(e,t,n){e.exports=n(83)},function(e,t,n){"use strict";var r=n(145),i=n(51),o=n(276),a=n(83),s=n(81),u=n(638),c=n(186),l=n(185),f=n(43)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,d,v,m,y){u(n,t,d);var g,b,_,w=function(e){if(!h&&e in T)return T[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},E=t+" Iterator",x="values"==v,C=!1,T=e.prototype,k=T[f]||T["@@iterator"]||v&&T[v],S=k||w(v),A=v?x?w("entries"):S:void 0,N="Array"==t&&T.entries||k;if(N&&(_=l(N.call(new e)))!==Object.prototype&&_.next&&(c(_,E,!0),r||"function"==typeof _[f]||a(_,f,p)),x&&k&&"values"!==k.name&&(C=!0,S=function(){return k.call(this)}),r&&!y||!h&&!C&&T[f]||a(T,f,S),s[t]=S,s[E]=p,v)if(g={values:x?S:w("values"),keys:m?S:w("keys"),entries:A},y)for(b in g)b in T||o(T,b,g[b]);else i(i.P+i.F*(h||C),t,g);return g}},function(e,t,n){e.exports=n(643)},function(e,t,n){var r=n(192),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},function(e,t,n){var r=n(194);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(57),i=n(72),o=n(645)(!1),a=n(191)("IE_PROTO");e.exports=function(e,t){var n,s=i(e),u=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(74),i=n(60).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){e.exports=!n(73)&&!n(82)(function(){return 7!=Object.defineProperty(n(282)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";e.exports={}},function(e,t,n){"use strict";

/* object-assign (c) Sindre Sorhus @license MIT

  • /var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,s=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),u=1;u<arguments.length;u++){for(var c in n=Object(arguments[u]))i.call(n,c)&&(s[c]=n[c]);if(r){a=r(n);for(var l=0;l<a.length;l++)o.call(n,a[l])&&(s[a[l]]=n[a[l]])}}return s}},function(e,t,n){var r=n(56),i=n(118),o=n(164),a=n(116),s=r(function(e,t){var n=a(t,o(s));return i(e,64,void 0,t,n)});s.placeholder={},e.exports=s},function(e,t,n){var r=n(256),i=n(241),o=n(48),a=9007199254740991,s=4294967295,u=Math.min;e.exports=function(e,t){if((e=o(e))<1||e>a)return[];var n=s,c=u(e,s);t=i(t),e-=s;for(var l=r(c,t);++n<e;)t(n);return l}},function(e,t,n){var r=n(259),i=n(125);e.exports=function(e,t,n){return void 0===n&&(n=t,t=void 0),void 0!==n&&(n=(n=i(n))==n?n:0),void 0!==t&&(t=(t=i(t))==t?t:0),r(i(e),t,n)}},function(e,t,n){var r=n(428)("round");e.exports=r},function(e,t,n){var r=n(115),i=n(89),o=n(429),a=n(39),s=n(93),u=n(28),c=Object.prototype.hasOwnProperty,l=o(function(e,t){if(s(t)||a(t))i(t,u(t),e);else for(var n in t)c.call(t,n)&&r(e,n,t[n])});e.exports=l},function(e,t,n){var r=n(50),i=n(35),o=n(222),a=n(223);e.exports=function(e,t){if(null==e)return{};var n=r(a(e),function(e){return[e]});return t=i(t),o(e,n,function(e,n){return t(e,n[0])})}},function(e,t,n){var r=n(131),i=n(48);e.exports=function(e,t,n){var o=null==e?0:e.length;return o?(t=n||void 0===t?1:i(t),r(e,0,(t=o-t)<0?0:t)):[]}},function(e,t,n){var r=n(44),i=/[\\^$.*+?()[\]{}|]/g,o=RegExp(i.source);e.exports=function(e){return(e=r(e))&&o.test(e)?e.replace(i,"\\$&"):e}},function(e,t,n){var r=n(434),i=n(433),o=n(35),a=n(18),s=n(80);e.exports=function(e,t,n){var u=a(e)?r:i;return n&&s(e,t,n)&&(t=void 0),u(e,o(t,3))}},function(e,t,n){var r=n(447),i=n(440),o=r(function(e,t,n){return e+(n?" ":"")+i(t)});e.exports=o},function(e,t,n){var r=n(23)("toArray",n(449),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("flatMap",n(450));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("split",n(453));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("filter",n(76));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("identity",n(49),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("uniq",n(77),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(92),i=n(91),o=n(172),a=n(35),s=n(114),u=n(18),c=n(94),l=n(45),f=n(40),h=n(123);e.exports=function(e,t,n){var p=u(e),d=p||c(e)||h(e);if(t=a(t,4),null==n){var v=e&&e.constructor;n=d?p?new v:[]:f(e)&&l(v)?i(s(e)):{}}return(d?r:o)(e,function(e,r,i){return t(n,e,r,i)}),n}},function(e,t,n){var r=n(456)();e.exports=r},function(e,t,n){e.exports=n(457)},function(e,t,n){var r=n(42),i=n(30),o="[object Boolean]";e.exports=function(e){return!0===e||!1===e||i(e)&&r(e)==o}},function(e,t,n){var r=n(23)("memoize",n(269));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("sortBy",n(471));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("take",n(472));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("isFunction",n(45),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("isPlainObject",n(84),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("pick",n(102));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("isObject",n(40),n(41));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("trim",n(479));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(23)("difference",n(104));r.placeholder=n(21),e.exports=r},function(e,t,n){var r=n(119),i=n(538)(function(e,t,n){r(e,n,t)});e.exports=i},function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,u=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,l=c&&c(Object);e.exports=function e(t,n,f){if("string"!=typeof n){if(l){var h=c(n);h&&h!==l&&e(t,h,f)}var p=a(n);s&&(p=p.concat(s(n)));for(var d=0;d<p.length;++d){var v=p[d];if(!(r[v]||i[v]||f&&f[v])){var m=u(n,v);try{o(t,v,m)}catch(e){}}}return t}return t}},function(e,t,n){"use strict";n.r(t);var r=n(85),i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};

/*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

                                                                                                                                                          • */function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function s(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var c=n(14),l=n.n(c);n.d(t,"registerMessaging",function(){return L}),n.d(t,"isSupported",function(){return j});var f,h,p,d={AVAILABLE_IN_WINDOW:"only-available-in-window",AVAILABLE_IN_SW:"only-available-in-sw",SHOULD_BE_INHERITED:"should-be-overriden",BAD_SENDER_ID:"bad-sender-id",INCORRECT_GCM_SENDER_ID:"incorrect-gcm-sender-id",PERMISSION_DEFAULT:"permission-default",PERMISSION_BLOCKED:"permission-blocked",UNSUPPORTED_BROWSER:"unsupported-browser",NOTIFICATIONS_BLOCKED:"notifications-blocked",FAILED_DEFAULT_REGISTRATION:"failed-serviceworker-registration",SW_REGISTRATION_EXPECTED:"sw-registration-expected",GET_SUBSCRIPTION_FAILED:"get-subscription-failed",INVALID_SAVED_TOKEN:"invalid-saved-token",SW_REG_REDUNDANT:"sw-reg-redundant",TOKEN_SUBSCRIBE_FAILED:"token-subscribe-failed",TOKEN_SUBSCRIBE_NO_TOKEN:"token-subscribe-no-token",TOKEN_SUBSCRIBE_NO_PUSH_SET:"token-subscribe-no-push-set",TOKEN_UNSUBSCRIBE_FAILED:"token-unsubscribe-failed",TOKEN_UPDATE_FAILED:"token-update-failed",TOKEN_UPDATE_NO_TOKEN:"token-update-no-token",USE_SW_BEFORE_GET_TOKEN:"use-sw-before-get-token",INVALID_DELETE_TOKEN:"invalid-delete-token",DELETE_TOKEN_NOT_FOUND:"delete-token-not-found",DELETE_SCOPE_NOT_FOUND:"delete-scope-not-found",BG_HANDLER_FUNCTION_EXPECTED:"bg-handler-function-expected",NO_WINDOW_CLIENT_TO_MSG:"no-window-client-to-msg",UNABLE_TO_RESUBSCRIBE:"unable-to-resubscribe",NO_FCM_TOKEN_FOR_RESUBSCRIBE:"no-fcm-token-for-resubscribe",FAILED_TO_DELETE_TOKEN:"failed-to-delete-token",NO_SW_IN_REG:"no-sw-in-reg",BAD_SCOPE:"bad-scope",BAD_VAPID_KEY:"bad-vapid-key",BAD_SUBSCRIPTION:"bad-subscription",BAD_TOKEN:"bad-token",BAD_PUSH_SET:"bad-push-set",FAILED_DELETE_VAPID_KEY:"failed-delete-vapid-key",INVALID_PUBLIC_VAPID_KEY:"invalid-public-vapid-key",USE_PUBLIC_KEY_BEFORE_GET_TOKEN:"use-public-key-before-get-token",PUBLIC_KEY_DECRYPTION_FAILED:"public-vapid-key-decryption-failed"},v=((f={})[d.AVAILABLE_IN_WINDOW]="This method is available in a Window context.",f[d.AVAILABLE_IN_SW]="This method is available in a service worker context.",f[d.SHOULD_BE_INHERITED]="This method should be overriden by extended classes.",f[d.BAD_SENDER_ID]="Please ensure that 'messagingSenderId' is set correctly in the options passed into firebase.initializeApp().",f[d.PERMISSION_DEFAULT]="The required permissions were not granted and dismissed instead.",f[d.PERMISSION_BLOCKED]="The required permissions were not granted and blocked instead.",f[d.UNSUPPORTED_BROWSER]="This browser doesn't support the API's required to use the firebase SDK.",f[d.NOTIFICATIONS_BLOCKED]="Notifications have been blocked.",f[d.FAILED_DEFAULT_REGISTRATION]="We are unable to register the default service worker. {$browserErrorMessage}",f[d.SW_REGISTRATION_EXPECTED]="A service worker registration was the expected input.",f[d.GET_SUBSCRIPTION_FAILED]="There was an error when trying to get any existing Push Subscriptions.",f[d.INVALID_SAVED_TOKEN]="Unable to access details of the saved token.",f[d.SW_REG_REDUNDANT]="The service worker being used for push was made redundant.",f[d.TOKEN_SUBSCRIBE_FAILED]="A problem occured while subscribing the user to FCM: {$message}",f[d.TOKEN_SUBSCRIBE_NO_TOKEN]="FCM returned no token when subscribing the user to push.",f[d.TOKEN_SUBSCRIBE_NO_PUSH_SET]="FCM returned an invalid response when getting an FCM token.",f[d.TOKEN_UNSUBSCRIBE_FAILED]="A problem occured while unsubscribing the user from FCM: {$message}",f[d.TOKEN_UPDATE_FAILED]="A problem occured while updating the user from FCM: {$message}",f[d.TOKEN_UPDATE_NO_TOKEN]="FCM returned no token when updating the user to push.",f[d.USE_SW_BEFORE_GET_TOKEN]="The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.",f[d.INVALID_DELETE_TOKEN]="You must pass a valid token into deleteToken(), i.e. the token from getToken().",f[d.DELETE_TOKEN_NOT_FOUND]="The deletion attempt for token could not be performed as the token was not found.",f[d.DELETE_SCOPE_NOT_FOUND]="The deletion attempt for service worker scope could not be performed as the scope was not found.",f[d.BG_HANDLER_FUNCTION_EXPECTED]="The input to setBackgroundMessageHandler() must be a function.",f[d.NO_WINDOW_CLIENT_TO_MSG]="An attempt was made to message a non-existant window client.",f[d.UNABLE_TO_RESUBSCRIBE]="There was an error while re-subscribing the FCM token for push messaging. Will have to resubscribe the user on next visit. {$message}",f[d.NO_FCM_TOKEN_FOR_RESUBSCRIBE]="Could not find an FCM token and as a result, unable to resubscribe. Will have to resubscribe the user on next visit.",f[d.FAILED_TO_DELETE_TOKEN]="Unable to delete the currently saved token.",f[d.NO_SW_IN_REG]="Even though the service worker registration was successful, there was a problem accessing the service worker itself.",f[d.INCORRECT_GCM_SENDER_ID]="Please change your web app manifest's 'gcm_sender_id' value to '103953800507' to use Firebase messaging.",f[d.BAD_SCOPE]="The service worker scope must be a string with at least one character.",f[d.BAD_VAPID_KEY]="The public VAPID key is not a Uint8Array with 65 bytes.",f[d.BAD_SUBSCRIPTION]="The subscription must be a valid PushSubscription.",f[d.BAD_TOKEN]="The FCM Token used for storage / lookup was not a valid token string.",f[d.BAD_PUSH_SET]="The FCM push set used for storage / lookup was not not a valid push set string.",f[d.FAILED_DELETE_VAPID_KEY]="The VAPID key could not be deleted.",f[d.INVALID_PUBLIC_VAPID_KEY]="The public VAPID key must be a string.",f[d.PUBLIC_KEY_DECRYPTION_FAILED]="The public VAPID key did not equal 65 bytes when decrypted.",f),m=new r.ErrorFactory("messaging","Messaging",v),y=new Uint8Array([4,51,148,247,223,161,235,177,220,3,162,94,21,113,219,72,211,46,237,237,178,52,219,183,71,58,12,143,196,204,225,111,60,140,132,223,171,182,102,62,242,12,212,139,254,227,249,118,47,20,28,99,8,106,111,45,177,26,149,176,206,55,192,156,110]),g="https://fcm.googleapis.com";function b(e,t){if(null==e||null==t)return!1;if(e===t)return!0;if(e.byteLength!==t.byteLength)return!1;for(var n=new DataView(e),r=new DataView(t),i=0;i<e.byteLength;i++)if(n.getUint8(i)!==r.getUint8(i))return!1;return!0}function _(e){return function(e){var t=new Uint8Array(e);return btoa(String.fromCharCode.apply(null,t))}(e).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}!function(e){e.TYPE_OF_MSG="firebase-messaging-msg-type",e.DATA="firebase-messaging-msg-data"}(h||(h={})),function(e){e.PUSH_MSG_RECEIVED="push-msg-received",e.NOTIFICATION_CLICKED="notification-clicked"}(p||(p={}));var w=function(){function e(){}return e.prototype.getToken=function(e,t,n){return s(this,void 0,void 0,function(){var r,i,o,a,s,c,l,f;return u(this,function(u){switch(u.label){case 0:r=_(t.getKey("p256dh")),i=_(t.getKey("auth")),o="authorized_entity="+e+"&endpoint="+t.endpoint+"&encryption_key="+r+"&encryption_auth="+i,b(n.buffer,y.buffer)||(a=_(n),o+="&application_pub_key="+a),(s=new Headers).append("Content-Type","application/x-www-form-urlencoded"),c={method:"POST",headers:s,body:o},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch(g+"/fcm/connect/subscribe",c)];case 2:return[4,u.sent().json()];case 3:return l=u.sent(),[3,5];case 4:throw u.sent(),m.create(d.TOKEN_SUBSCRIBE_FAILED);case 5:if(l.error)throw f=l.error.message,m.create(d.TOKEN_SUBSCRIBE_FAILED,{message:f});if(!l.token)throw m.create(d.TOKEN_SUBSCRIBE_NO_TOKEN);if(!l.pushSet)throw m.create(d.TOKEN_SUBSCRIBE_NO_PUSH_SET);return[2,{token:l.token,pushSet:l.pushSet}]}})})},e.prototype.updateToken=function(e,t,n,r,i){return s(this,void 0,void 0,function(){var o,a,s,c,l,f,h,p;return u(this,function(u){switch(u.label){case 0:o=_(r.getKey("p256dh")),a=_(r.getKey("auth")),s="push_set="+n+"&token="+t+"&authorized_entity="+e+"&endpoint="+r.endpoint+"&encryption_key="+o+"&encryption_auth="+a,b(i.buffer,y.buffer)||(c=_(i),s+="&application_pub_key="+c),(l=new Headers).append("Content-Type","application/x-www-form-urlencoded"),f={method:"POST",headers:l,body:s},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch(g+"/fcm/connect/subscribe",f)];case 2:return[4,u.sent().json()];case 3:return h=u.sent(),[3,5];case 4:throw u.sent(),m.create(d.TOKEN_UPDATE_FAILED);case 5:if(h.error)throw p=h.error.message,m.create(d.TOKEN_UPDATE_FAILED,{message:p});if(!h.token)throw m.create(d.TOKEN_UPDATE_NO_TOKEN);return[2,h.token]}})})},e.prototype.deleteToken=function(e,t,n){return s(this,void 0,void 0,function(){var r,i,o,a,s;return u(this,function(u){switch(u.label){case 0:r="authorized_entity="+e+"&token="+t+"&pushSet="+n,(i=new Headers).append("Content-Type","application/x-www-form-urlencoded"),o={method:"POST",headers:i,body:r},u.label=1;case 1:return u.trys.push([1,4,,5]),[4,fetch(g+"/fcm/connect/unsubscribe",o)];case 2:return[4,u.sent().json()];case 3:if((a=u.sent()).error)throw s=a.error.message,m.create(d.TOKEN_UNSUBSCRIBE_FAILED,{message:s});return[3,5];case 4:throw u.sent(),m.create(d.TOKEN_UNSUBSCRIBE_FAILED);case 5:return[2]}})})},e}();function E(e){for(var t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length),i=0;i<n.length;++i)r[i]=n.charCodeAt(i);return r}var x="undefined",C="fcm_token_object_Store";function T(){var e=indexedDB.open(x);e.onerror=function(e){},e.onsuccess=function(t){!function(e){if(e.objectStoreNames.contains(C)){var t=e.transaction(C).objectStore(C),n=new w,r=t.openCursor();r.onerror=function(e){console.warn("Unable to cleanup old IDB.",e)},r.onsuccess=function(){var t=r.result;if(t){var i=t.value;n.deleteToken(i.fcmSenderId,i.fcmToken,i.fcmPushSet),t.continue()}else e.close(),indexedDB.deleteDatabase(x)}}}(e.result)}}var k=function(){function e(){this.dbPromise=null}return e.prototype.get=function(e){return this.createTransaction(function(t){return t.get(e)})},e.prototype.getIndex=function(e,t){return this.createTransaction(function(n){return n.index(e).get(t)})},e.prototype.put=function(e){return this.createTransaction(function(t){return t.put(e)},"readwrite")},e.prototype.delete=function(e){return this.createTransaction(function(t){return t.delete(e)},"readwrite")},e.prototype.closeDatabase=function(){return s(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return this.dbPromise?[4,this.dbPromise]:[3,2];case 1:e.sent().close(),this.dbPromise=null,e.label=2;case 2:return[2]}})})},e.prototype.createTransaction=function(e,t){return void 0===t&&(t="readonly"),s(this,void 0,void 0,function(){var n,r,i,o;return u(this,function(a){switch(a.label){case 0:return[4,this.getDb()];case 1:return n=a.sent(),r=n.transaction(this.objectStoreName,t),i=r.objectStore(this.objectStoreName),[4,function(e){return new Promise(function(t,n){e.onsuccess=function(){t(e.result)},e.onerror=function(){n(e.error)}})}(e(i))];case 2:return o=a.sent(),[2,new Promise(function(e,t){r.oncomplete=function(){e(o)},r.onerror=function(){t(r.error)}})]}})})},e.prototype.getDb=function(){var e=this;return this.dbPromise||(this.dbPromise=new Promise(function(t,n){var r=indexedDB.open(e.dbName,e.dbVersion);r.onsuccess=function(){t(r.result)},r.onerror=function(){e.dbPromise=null,n(r.error)},r.onupgradeneeded=function(t){return e.onDbUpgrade(r,t)}})),this.dbPromise},e}();var S=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dbName="fcm_token_details_db",t.dbVersion=3,t.objectStoreName="fcm_token_object_Store",t}return o(t,e),t.prototype.onDbUpgrade=function(e,t){var n=e.result;switch(t.oldVersion){case 0:(r=n.createObjectStore(this.objectStoreName,{keyPath:"swScope"})).createIndex("fcmSenderId","fcmSenderId",{unique:!1}),r.createIndex("fcmToken","fcmToken",{unique:!0});case 1:T();case 2:var r,i=(r=e.transaction.objectStore(this.objectStoreName)).openCursor();i.onsuccess=function(){var e=i.result;if(e){var t=e.value,n=a({},t);t.createTime||(n.createTime=Date.now()),"string"==typeof t.vapidKey&&(n.vapidKey=E(t.vapidKey)),"string"==typeof t.auth&&(n.auth=E(t.auth).buffer),"string"==typeof t.auth&&(n.p256dh=E(t.p256dh).buffer),e.update(n),e.continue()}}}},t.prototype.getTokenDetailsFromToken=function(e){return s(this,void 0,void 0,function(){return u(this,function(t){if(!e)throw m.create(d.BAD_TOKEN);return A({fcmToken:e}),[2,this.getIndex("fcmToken",e)]})})},t.prototype.getTokenDetailsFromSWScope=function(e){return s(this,void 0,void 0,function(){return u(this,function(t){if(!e)throw m.create(d.BAD_SCOPE);return A({swScope:e}),[2,this.get(e)]})})},t.prototype.saveTokenDetails=function(e){return s(this,void 0,void 0,function(){return u(this,function(t){if(!e.swScope)throw m.create(d.BAD_SCOPE);if(!e.vapidKey)throw m.create(d.BAD_VAPID_KEY);if(!e.endpoint||!e.auth||!e.p256dh)throw m.create(d.BAD_SUBSCRIPTION);if(!e.fcmSenderId)throw m.create(d.BAD_SENDER_ID);if(!e.fcmToken)throw m.create(d.BAD_TOKEN);if(!e.fcmPushSet)throw m.create(d.BAD_PUSH_SET);return A(e),[2,this.put(e)]})})},t.prototype.deleteToken=function(e){return s(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return"string"!=typeof e||0===e.length?[2,Promise.reject(m.create(d.INVALID_DELETE_TOKEN))]:[4,this.getTokenDetailsFromToken(e)];case 1:if(!(t=n.sent()))throw m.create(d.DELETE_TOKEN_NOT_FOUND);return[4,this.delete(t.swScope)];case 2:return n.sent(),[2,t]}})})},t}(k);function A(e){if(e.fcmToken&&("string"!=typeof e.fcmToken||0===e.fcmToken.length))throw m.create(d.BAD_TOKEN);if(e.swScope&&("string"!=typeof e.swScope||0===e.swScope.length))throw m.create(d.BAD_SCOPE);if(e.vapidKey&&(!(e.vapidKey instanceof Uint8Array)||65!==e.vapidKey.length))throw m.create(d.BAD_VAPID_KEY);if(e.endpoint&&("string"!=typeof e.endpoint||0===e.endpoint.length))throw m.create(d.BAD_SUBSCRIPTION);if(e.auth&&!(e.auth instanceof ArrayBuffer))throw m.create(d.BAD_SUBSCRIPTION);if(e.p256dh&&!(e.p256dh instanceof ArrayBuffer))throw m.create(d.BAD_SUBSCRIPTION);if(e.fcmSenderId&&("string"!=typeof e.fcmSenderId||0===e.fcmSenderId.length))throw m.create(d.BAD_SENDER_ID);if(e.fcmPushSet&&("string"!=typeof e.fcmPushSet||0===e.fcmPushSet.length))throw m.create(d.BAD_PUSH_SET)}var N=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.dbName="fcm_vapid_details_db",t.dbVersion=1,t.objectStoreName="fcm_vapid_object_Store",t}return o(t,e),t.prototype.onDbUpgrade=function(e){e.result.createObjectStore(this.objectStoreName,{keyPath:"swScope"})},t.prototype.getVapidFromSWScope=function(e){return s(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:if("string"!=typeof e||0===e.length)throw m.create(d.BAD_SCOPE);return[4,this.get(e)];case 1:return[2,(t=n.sent())?t.vapidKey:void 0]}})})},t.prototype.saveVapidDetails=function(e,t){return s(this,void 0,void 0,function(){var n;return u(this,function(r){if("string"!=typeof e||0===e.length)throw m.create(d.BAD_SCOPE);if(null===t||65!==t.length)throw m.create(d.BAD_VAPID_KEY);return n={swScope:e,vapidKey:t},[2,this.put(n)]})})},t.prototype.deleteVapidDetails=function(e){return s(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.getVapidFromSWScope(e)];case 1:if(!(t=n.sent()))throw m.create(d.DELETE_SCOPE_NOT_FOUND);return[4,this.delete(e)];case 2:return n.sent(),[2,t]}})})},t}(k),O="messagingSenderId",I=function(){function e(e){var t=this;if(!e.options[O]||"string"!=typeof e.options[O])throw m.create(d.BAD_SENDER_ID);this.messagingSenderId=e.options[O],this.tokenDetailsModel=new S,this.vapidDetailsModel=new N,this.iidModel=new w,this.app=e,this.INTERNAL={delete:function(){return t.delete()}}}return e.prototype.getToken=function(){return s(this,void 0,void 0,function(){var e,t,n,r,i;return u(this,function(o){switch(o.label){case 0:if("denied"===(e=this.getNotificationPermission_()))throw m.create(d.NOTIFICATIONS_BLOCKED);return"granted"!==e?[2,null]:[4,this.getSWRegistration_()];case 1:return t=o.sent(),[4,this.getPublicVapidKey_()];case 2:return n=o.sent(),[4,this.getPushSubscription(t,n)];case 3:return r=o.sent(),[4,this.tokenDetailsModel.getTokenDetailsFromSWScope(t.scope)];case 4:return(i=o.sent())?[2,this.manageExistingToken(t,r,n,i)]:[2,this.getNewToken(t,r,n)]}})})},e.prototype.manageExistingToken=function(e,t,n,r){return s(this,void 0,void 0,function(){return u(this,function(i){switch(i.label){case 0:return function(e,t,n){if(!n.vapidKey||!b(t.buffer,n.vapidKey.buffer))return!1;var r=e.endpoint===n.endpoint,i=b(e.getKey("auth"),n.auth),o=b(e.getKey("p256dh"),n.p256dh);return r&&i&&o}(t,n,r)?Date.now()<r.createTime+6048e5?[2,r.fcmToken]:[2,this.updateToken(e,t,n,r)]:[4,this.deleteTokenFromDB(r.fcmToken)];case 1:return i.sent(),[2,this.getNewToken(e,t,n)]}})})},e.prototype.updateToken=function(e,t,n,r){return s(this,void 0,void 0,function(){var i,o,a;return u(this,function(s){switch(s.label){case 0:return s.trys.push([0,4,,6]),[4,this.iidModel.updateToken(this.messagingSenderId,r.fcmToken,r.fcmPushSet,t,n)];case 1:return i=s.sent(),o={swScope:e.scope,vapidKey:n,fcmSenderId:this.messagingSenderId,fcmToken:i,fcmPushSet:r.fcmPushSet,createTime:Date.now(),endpoint:t.endpoint,auth:t.getKey("auth"),p256dh:t.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(o)];case 2:return s.sent(),[4,this.vapidDetailsModel.saveVapidDetails(e.scope,n)];case 3:return s.sent(),[2,i];case 4:return a=s.sent(),[4,this.deleteToken(r.fcmToken)];case 5:throw s.sent(),a;case 6:return[2]}})})},e.prototype.getNewToken=function(e,t,n){return s(this,void 0,void 0,function(){var r,i;return u(this,function(o){switch(o.label){case 0:return[4,this.iidModel.getToken(this.messagingSenderId,t,n)];case 1:return r=o.sent(),i={swScope:e.scope,vapidKey:n,fcmSenderId:this.messagingSenderId,fcmToken:r.token,fcmPushSet:r.pushSet,createTime:Date.now(),endpoint:t.endpoint,auth:t.getKey("auth"),p256dh:t.getKey("p256dh")},[4,this.tokenDetailsModel.saveTokenDetails(i)];case 2:return o.sent(),[4,this.vapidDetailsModel.saveVapidDetails(e.scope,n)];case 3:return o.sent(),[2,r.token]}})})},e.prototype.deleteToken=function(e){return s(this,void 0,void 0,function(){var t,n;return u(this,function(r){switch(r.label){case 0:return[4,this.deleteTokenFromDB(e)];case 1:return r.sent(),[4,this.getSWRegistration_()];case 2:return(t=r.sent())?[4,t.pushManager.getSubscription()]:[3,4];case 3:if(n=r.sent())return[2,n.unsubscribe()];r.label=4;case 4:return[2,!0]}})})},e.prototype.deleteTokenFromDB=function(e){return s(this,void 0,void 0,function(){var t;return u(this,function(n){switch(n.label){case 0:return[4,this.tokenDetailsModel.deleteToken(e)];case 1:return t=n.sent(),[4,this.iidModel.deleteToken(t.fcmSenderId,t.fcmToken,t.fcmPushSet)];case 2:return n.sent(),[2]}})})},e.prototype.getPushSubscription=function(e,t){return e.pushManager.getSubscription().then(function(n){return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:t})})},e.prototype.requestPermission=function(){throw m.create(d.AVAILABLE_IN_WINDOW)},e.prototype.useServiceWorker=function(e){throw m.create(d.AVAILABLE_IN_WINDOW)},e.prototype.usePublicVapidKey=function(e){throw m.create(d.AVAILABLE_IN_WINDOW)},e.prototype.onMessage=function(e,t,n){throw m.create(d.AVAILABLE_IN_WINDOW)},e.prototype.onTokenRefresh=function(e,t,n){throw m.create(d.AVAILABLE_IN_WINDOW)},e.prototype.setBackgroundMessageHandler=function(e){throw m.create(d.AVAILABLE_IN_SW)},e.prototype.delete=function(){return s(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.tokenDetailsModel.closeDatabase(),this.vapidDetailsModel.closeDatabase()])];case 1:return e.sent(),[2]}})})},e.prototype.getNotificationPermission_=function(){return Notification.permission},e.prototype.getTokenDetailsModel=function(){return this.tokenDetailsModel},e.prototype.getVapidDetailsModel=function(){return this.vapidDetailsModel},e.prototype.getIidModel=function(){return this.iidModel},e}();var P=function(e){function t(t){var n=e.call(this,t)||this;return n.bgMessageHandler=null,self.addEventListener("push",function(e){n.onPush(e)}),self.addEventListener("pushsubscriptionchange",function(e){n.onSubChange(e)}),self.addEventListener("notificationclick",function(e){n.onNotificationClick(e)}),n}return o(t,e),t.prototype.onPush=function(e){e.waitUntil(this.onPush_(e))},t.prototype.onSubChange=function(e){e.waitUntil(this.onSubChange_(e))},t.prototype.onNotificationClick=function(e){e.waitUntil(this.onNotificationClick_(e))},t.prototype.onPush_=function(e){return s(this,void 0,void 0,function(){var t,n,r,i,o,a;return u(this,function(s){switch(s.label){case 0:if(!e.data)return[2];try{t=e.data.json()}catch(e){return[2]}return[4,this.hasVisibleClients_()];case 1:return s.sent()?[2,this.sendMessageToWindowClients_(t)]:(n=this.getNotificationData_(t))?(r=n.title||"",[4,this.getSWRegistration_()]):[3,3];case 2:return i=s.sent(),o=n.actions,a=Notification.maxActions,o&&a&&o.length>a&&console.warn("This browser only supports "+a+" actions.The remaining actions will not be displayed."),[2,i.showNotification(r,n)];case 3:return this.bgMessageHandler?[4,this.bgMessageHandler(t)]:[3,5];case 4:return s.sent(),[2];case 5:return[2]}})})},t.prototype.onSubChange_=function(e){return s(this,void 0,void 0,function(){var e,t,n,r;return u(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.getSWRegistration_()];case 1:return e=i.sent(),[3,3];case 2:throw t=i.sent(),m.create(d.UNABLE_TO_RESUBSCRIBE,{message:t});case 3:return i.trys.push([3,5,,8]),[4,e.pushManager.getSubscription()];case 4:return i.sent(),[3,8];case 5:return n=i.sent(),[4,this.getTokenDetailsModel().getTokenDetailsFromSWScope(e.scope)];case 6:if(!(r=i.sent()))throw n;return[4,this.deleteToken(r.fcmToken)];case 7:throw i.sent(),n;case 8:return[2]}})})},t.prototype.onNotificationClick_=function(e){return s(this,void 0,void 0,function(){var t,n,r,i;return u(this,function(o){switch(o.label){case 0:return e.notification&&e.notification.data&&e.notification.data.FCM_MSG?e.action?[2]:(e.stopImmediatePropagation(),e.notification.close(),(t=e.notification.data.FCM_MSG).notification&&(n=t.fcmOptions&&t.fcmOptions.link||t.notification.click_action)?[4,this.getWindowClient_(n)]:[2]):[2];case 1:return(r=o.sent())?[3,3]:[4,self.clients.openWindow(n)];case 2:return r=o.sent(),[3,5];case 3:return[4,r.focus()];case 4:r=o.sent(),o.label=5;case 5:return r?(delete t.notification,delete t.fcmOptions,i=D(p.NOTIFICATION_CLICKED,t),[2,this.attemptToMessageClient_(r,i)]):[2]}})})},t.prototype.getNotificationData_=function(e){if(e&&"object"==typeof e.notification){var t,n=a({},e.notification);return n.data=a({},e.notification.data,((t={}).FCM_MSG=e,t)),n}},t.prototype.setBackgroundMessageHandler=function(e){if(!e||"function"!=typeof e)throw m.create(d.BG_HANDLER_FUNCTION_EXPECTED);this.bgMessageHandler=e},t.prototype.getWindowClient_=function(e){return s(this,void 0,void 0,function(){var t,n,r,i;return u(this,function(o){switch(o.label){case 0:return t=new URL(e,self.location.href).href,[4,R()];case 1:for(n=o.sent(),r=null,i=0;i<n.length;i++)if(new URL(n[i].url,self.location.href).href===t){r=n[i];break}return[2,r]}})})},t.prototype.attemptToMessageClient_=function(e,t){return s(this,void 0,void 0,function(){return u(this,function(n){if(!e)throw m.create(d.NO_WINDOW_CLIENT_TO_MSG);return e.postMessage(t),[2]})})},t.prototype.hasVisibleClients_=function(){return s(this,void 0,void 0,function(){return u(this,function(e){switch(e.label){case 0:return[4,R()];case 1:return[2,e.sent().some(function(e){return"visible"===e.visibilityState})]}})})},t.prototype.sendMessageToWindowClients_=function(e){return s(this,void 0,void 0,function(){var t,n,r=this;return u(this,function(i){switch(i.label){case 0:return[4,R()];case 1:return t=i.sent(),n=D(p.PUSH_MSG_RECEIVED,e),[4,Promise.all(t.map(function(e){return r.attemptToMessageClient_(e,n)}))];case 2:return i.sent(),[2]}})})},t.prototype.getSWRegistration_=function(){return s(this,void 0,void 0,function(){return u(this,function(e){return[2,self.registration]})})},t.prototype.getPublicVapidKey_=function(){return s(this,void 0,void 0,function(){var e,t;return u(this,function(n){switch(n.label){case 0:return[4,this.getSWRegistration_()];case 1:if(!(e=n.sent()))throw m.create(d.SW_REGISTRATION_EXPECTED);return[4,this.getVapidDetailsModel().getVapidFromSWScope(e.scope)];case 2:return null==(t=n.sent())?[2,y]:[2,t]}})})},t}(I);function R(){return self.clients.matchAll({type:"window",includeUncontrolled:!0})}function D(e,t){return(n={})[h.TYPE_OF_MSG]=e,n[h.DATA]=t,n;var n}var M=function(e){function t(t){var n=e.call(this,t)||this;return n.registrationToUse=null,n.publicVapidKeyToUse=null,n.manifestCheckPromise=null,n.messageObserver=null,n.tokenRefreshObserver=null,n.onMessageInternal=Object(r.createSubscribe)(function(e){n.messageObserver=e}),n.onTokenRefreshInternal=Object(r.createSubscribe)(function(e){n.tokenRefreshObserver=e}),n.setupSWMessageListener_(),n}return o(t,e),t.prototype.getToken=function(){return s(this,void 0,void 0,function(){return u(this,function(t){switch(t.label){case 0:return this.manifestCheckPromise||(this.manifestCheckPromise=function(){return s(this,void 0,void 0,function(){var e,t;return u(this,function(n){switch(n.label){case 0:if(!(e=document.querySelector('link[rel="manifest"]')))return[2];n.label=1;case 1:return n.trys.push([1,4,,5]),[4,fetch(e.href)];case 2:return[4,n.sent().json()];case 3:return t=n.sent(),[3,5];case 4:return n.sent(),[2];case 5:if(!t||!t.gcm_sender_id)return[2];if("103953800507"!==t.gcm_sender_id)throw m.create(d.INCORRECT_GCM_SENDER_ID);return[2]}})})}()),[4,this.manifestCheckPromise];case 1:return t.sent(),[2,e.prototype.getToken.call(this)]}})})},t.prototype.requestPermission=function(){return s(this,void 0,void 0,function(){var e;return u(this,function(t){switch(t.label){case 0:return"granted"===this.getNotificationPermission_()?[2]:[4,Notification.requestPermission()];case 1:if("granted"===(e=t.sent()))return[2];throw"denied"===e?m.create(d.PERMISSION_BLOCKED):m.create(d.PERMISSION_DEFAULT)}})})},t.prototype.useServiceWorker=function(e){if(!(e instanceof ServiceWorkerRegistration))throw m.create(d.SW_REGISTRATION_EXPECTED);if(null!=this.registrationToUse)throw m.create(d.USE_SW_BEFORE_GET_TOKEN);this.registrationToUse=e},t.prototype.usePublicVapidKey=function(e){if("string"!=typeof e)throw m.create(d.INVALID_PUBLIC_VAPID_KEY);if(null!=this.publicVapidKeyToUse)throw m.create(d.USE_PUBLIC_KEY_BEFORE_GET_TOKEN);var t=E(e);if(65!==t.length)throw m.create(d.PUBLIC_KEY_DECRYPTION_FAILED);this.publicVapidKeyToUse=t},t.prototype.onMessage=function(e,t,n){return"function"==typeof e?this.onMessageInternal(e,t,n):this.onMessageInternal(e)},t.prototype.onTokenRefresh=function(e,t,n){return"function"==typeof e?this.onTokenRefreshInternal(e,t,n):this.onTokenRefreshInternal(e)},t.prototype.waitForRegistrationToActivate_=function(e){var t=e.installing||e.waiting||e.active;return new Promise(function(n,r){if(t)if("activated"!==t.state)if("redundant"!==t.state){var i=function(){if("activated"===t.state)n(e);else{if("redundant"!==t.state)return;r(m.create(d.SW_REG_REDUNDANT))}t.removeEventListener("statechange",i)};t.addEventListener("statechange",i)}else r(m.create(d.SW_REG_REDUNDANT));else n(e);else r(m.create(d.NO_SW_IN_REG))})},t.prototype.getSWRegistration_=function(){var e=this;return this.registrationToUse?this.waitForRegistrationToActivate_(this.registrationToUse):(this.registrationToUse=null,navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}).catch(function(e){throw m.create(d.FAILED_DEFAULT_REGISTRATION,{browserErrorMessage:e.message})}).then(function(t){return e.waitForRegistrationToActivate_(t).then(function(){return e.registrationToUse=t,t.update(),t})}))},t.prototype.getPublicVapidKey_=function(){return s(this,void 0,void 0,function(){return u(this,function(e){return this.publicVapidKeyToUse?[2,this.publicVapidKeyToUse]:[2,y]})})},t.prototype.setupSWMessageListener_=function(){var e=this;navigator.serviceWorker.addEventListener("message",function(t){if(t.data&&t.data[h.TYPE_OF_MSG]){var n=t.data;switch(n[h.TYPE_OF_MSG]){case p.PUSH_MSG_RECEIVED:case p.NOTIFICATION_CLICKED:var r=n[h.DATA];e.messageObserver&&e.messageObserver.next(r)}}},!1)},t}(I);function L(e){var t={isSupported:j};e.INTERNAL.registerService("messaging",function(e){if(!j())throw m.create(d.UNSUPPORTED_BROWSER);return self&&"ServiceWorkerGlobalScope"in self?new P(e):new M(e)},t)}function j(){return self&&"ServiceWorkerGlobalScope"in self?"PushManager"in self&&"Notification"in self&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey"):navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}L(l.a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=c(i),a=c(n(54)),s=c(n(87)),u=(c(n(64)),n(33));function c(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeItem:"Title one. Yay :)"},n.handleItemClick=function(e,t){var r=t.name;n.setState({activeItem:r})},n}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){var e=this.state.activeItem;return o.default.createElement("div",null,o.default.createElement(s.default,{color:"navy",style:{height:"30vh"}},o.default.createElement(u.Header,{style:{fontSize:"4em",margin:"0px",padding:"0px"},as:"h1",inverted:!0},"Sidebar example")),o.default.createElement(a.default,{color:"grey",style:{paddingBottom:"30px"}},o.default.createElement(u.Grid,{columns:2,textAlign:"left",stackable:!0},o.default.createElement(u.Grid.Column,{width:13},o.default.createElement(u.Segment,{style:{padding:"30px"}},o.default.createElement(u.Header,{style:{marginBottom:"30px"}},"Title one. Yay :)"),o.default.createElement(u.Image,{style:{width:"100%"},className:"ui wireframe image",src:"paragraph.png"}),o.default.createElement("p",null),o.default.createElement(u.Divider,null),o.default.createElement(u.Header,{style:{marginBottom:"30px"}},"Second title"),o.default.createElement(u.Image,{style:{width:"100%"},className:"ui wireframe image",src:"paragraph.png"}),o.default.createElement("p",null),o.default.createElement(u.Divider,null),o.default.createElement(u.Header,{style:{marginBottom:"30px"}},"Finally, third title"),o.default.createElement(u.Image,{style:{width:"100%"},className:"ui wireframe image",src:"paragraph.png"}),o.default.createElement("p",null))),o.default.createElement(u.Grid.Column,{width:3,textAlign:"center"},o.default.createElement(u.Menu,{vertical:!0,fluid:!0},o.default.createElement(u.Menu.Item,{name:"Title one. Yay :)",active:"Title one. Yay :)"===e,onClick:this.handleItemClick}),o.default.createElement(u.Menu.Item,{name:"Second title",active:"Second title"===e,onClick:this.handleItemClick}),o.default.createElement(u.Menu.Item,{name:"Finally, third title",active:"Finally, third title"===e,onClick:this.handleItemClick}))))))}}]),t}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=l(i),a=l(n(54)),s=l(n(87)),u=(l(n(64)),n(33)),c=l(n(209));l(n(159)),l(n(107));function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={outreachData:c.default},n}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(s.default,{color:"orange",style:{height:"inherit"}},o.default.createElement(u.Header,{style:{fontSize:"4em",margin:"0px",padding:"0px",textAlgin:"left"},as:"h1",inverted:!0},"Discovery Day- 16th June 2018")),o.default.createElement(a.default,{color:"white",containerStyle:{padding:"30px 0px",textAlign:"left"}},o.default.createElement(u.Grid,{stackable:!0,padded:!0,style:{textAlgin:"left"}},o.default.createElement(u.Grid.Column,{width:10},o.default.createElement(u.Segment,{basic:!0},o.default.createElement("p",null,"Nottingham iGEM took part in Discovery Day 2018 at the University of Nottingham! We put on a range of fun activities for kids aged 4-10 to learn more about synthetic biology and bacteria microbes!"),o.default.createElement("p",null,"First, the children got the opportunity to make their own plasticine microbes and put them in petri dishes! They used inspiration from our fun cuddly toy bacterium friends and produced some amazing results."),o.default.createElement("p",null,"After that, both kids and adults had a go at guessing which mode of transport had the most bacteria- bus, train or plane. The answer- bus surprised a lot of people- including the adults!"),o.default.createElement("p",null,"Finally, everyone had a go at seeing how much bacteria was on their hands by using a special gel, then showing their hands under UV light to see how dirty their hands were. It seems that the kids had cleaner hands than most of us university students!"),o.default.createElement("p",null,"Overall it was an amazing day where we educated kids all about synthetic biology! The parents feedback to our team was incredibly posititve and the kids loved the activites. This was our first outreach activity and we think it was a massive success at engaging kids with iGEM and synthetic biology at such a young age"))),o.default.createElement(u.Grid.Column,{width:6},o.default.createElement(u.Segment,{basic:!0},o.default.createElement(u.Grid,{columns:"two"},o.default.createElement(u.Grid.Column,null,o.default.createElement("a",{href:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36515545_990951534389256_824145404525281280_n.jpg?alt=media&token=a7b51158-c4c1-4e83-b988-bf56e308470d"},o.default.createElement(u.Image,{bordered:!0,inverted:!0,style:{objectFit:"cover",width:"170px",height:"170px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36515545_990951534389256_824145404525281280_n.jpg?alt=media&token=a7b51158-c4c1-4e83-b988-bf56e308470d"}))),o.default.createElement(u.Grid.Column,null,o.default.createElement("a",{href:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36530598_990951941055882_7715617329437999104_n.jpg?alt=media&token=30998117-9d85-4625-9eea-41f7707ecc92"},o.default.createElement(u.Image,{bordered:!0,inverted:!0,style:{objectFit:"cover",width:"170px",height:"170px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36530598_990951941055882_7715617329437999104_n.jpg?alt=media&token=30998117-9d85-4625-9eea-41f7707ecc92"}))),o.default.createElement(u.Grid.Column,null,o.default.createElement("a",{href:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36612593_990952057722537_1218975868236333056_n.jpg?alt=media&token=11a732e6-4b5e-4617-a7cf-3a6bd8567179"},o.default.createElement(u.Image,{bordered:!0,inverted:!0,style:{objectFit:"cover",width:"170px",height:"170px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36612593_990952057722537_1218975868236333056_n.jpg?alt=media&token=11a732e6-4b5e-4617-a7cf-3a6bd8567179"}))),o.default.createElement(u.Grid.Column,null,o.default.createElement("a",{href:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36652134_990951707722572_1436464409286279168_n.jpg?alt=media&token=9b292dcb-3253-4986-a994-7d4409b68a7e"},o.default.createElement(u.Image,{bordered:!0,inverted:!0,style:{objectFit:"cover",width:"170px",height:"170px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/36652134_990951707722572_1436464409286279168_n.jpg?alt=media&token=9b292dcb-3253-4986-a994-7d4409b68a7e"})))))))))}}]),t}();t.default=f},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=f(i),a=f(n(54)),s=f(n(87)),u=(f(n(64)),n(33)),c=f(n(209)),l=(f(n(159)),f(n(107)));function f(e){return e&&e.__esModule?e:{default:e}}function h(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={outreachData:c.default},n}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){var e,t=this;return o.default.createElement("div",null,o.default.createElement(s.default,{color:"navy",style:{height:"inherit"}},o.default.createElement(u.Header,{inverted:!0,style:{fontSize:"3.5em",margin:"0px",padding:"0px"},as:"h1"},this.state.outreachData.title)),o.default.createElement(a.default,{color:"grey"},o.default.createElement(u.Container,{text:!0},o.default.createElement(u.Grid,(h(e={stackable:!0,style:{paddingBottom:"2.5em"},compact:!0,verticalAlign:"middle",columns:1},"style",{padding:"40px 0px 80px 0px"}),h(e,"inverted",!0),e),o.default.createElement(u.Grid.Row,null,o.default.createElement(u.Grid.Column,null,o.default.createElement(u.Header,null,this.state.outreachData.content.workWithUsSegment.title),o.default.createElement("p",null,this.state.outreachData.content.workWithUsSegment.subtitle)),o.default.createElement(u.Grid.Column,{verticalAlign:"center"},o.default.createElement(u.Segment,{style:{marginTop:"1em"}},o.default.createElement(u.List,null,o.default.createElement(u.List.Item,null,"Email: ",o.default.createElement("a",{href:"#"},this.state.outreachData.content.workWithUsSegment.contactDetails.email)),o.default.createElement(u.List.Item,null,"Phone: ",this.state.outreachData.content.workWithUsSegment.contactDetails.phone),o.default.createElement(u.List.Item,{style:{marginTop:"1em"}},o.default.createElement("strong",null,"Address: "),o.default.createElement(u.List,null,o.default.createElement(u.List.Item,null,"Centre for Biomolecular Sciences"),o.default.createElement(u.List.Item,null,"University of Nottingham"),o.default.createElement(u.List.Item,null,"Nottingham"),o.default.createElement(u.List.Item,null,"NG7 2RD")))))))))),o.default.createElement(u.Modal,{size:"large",trigger:o.default.createElement(u.Button,{fluid:!0,color:"purple",style:{borderRadius:"0px",display:"none"}},"Edit page")},o.default.createElement(u.Modal.Header,null,"Edit Page - Outreach"),o.default.createElement(u.Modal.Content,null,o.default.createElement(l.default,{style:{fontFamily:"inherit"},src:this.state.outreachData,displayDataTypes:!1,enableClipboard:!1,displayObjectSize:!1,onEdit:function(e){return t.setState({homeData:e.updated_src})}})),o.default.createElement(u.Modal.Actions,null,o.default.createElement(u.Button,null,"Submit"))))}}]),t}();t.default=p},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=u(i),a=(u(n(4)),u(n(160)),u(n(54))),s=n(33);function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){return o.default.createElement(a.default,{color:"white",style:{paddingBottom:"30px",backgroundColor:"white"}},o.default.createElement(s.Grid,{verticalAlign:"middle",columns:7,inverted:!0,doubling:!0},o.default.createElement(s.Grid.Row,null,o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"logo.png"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/SynBio.png?alt=media&token=30fb2ec3-18ca-45d0-a9f1-a5a30a28f334"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/BBSRC%20.jpg?alt=media&token=4bf35f00-9185-4693-b9c4-bdf4182a48a2"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/wellcome-logo-black.png?alt=media&token=5b2921f8-a279-4cfb-b6ff-10b6fc8d2212"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/DW%20Logo.jpg?alt=media&token=84bd9fe3-59c9-4c0c-a6b5-7db2117fe24a"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/Lanzatech_Logo_Larger.jpg?alt=media&token=f82e1f1d-5a2e-4165-9151-639935fa4310"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/seres_logo_final_color_rgb_r_300x110.png?alt=media&token=3286dcf0-6be4-436c-b2f8-e73b5194fb2d"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/Qiagen.png?alt=media&token=0d3417a9-f532-4ae0-b209-0f9cdbf5e40f"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/MERCK_MSIG_RPurple_RGB.JPG?alt=media&token=74eb53f0-c8a2-42db-9860-36a6b7aa3838"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/Promega_Logo.jpg?alt=media&token=6e537c3f-6bae-4a6d-9ea9-e1c744e78517"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/Eppendorf.png?alt=media&token=5fc72b9d-bbca-4c3d-bdf2-536638c40615"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/NEB.png?alt=media&token=c8504b3a-e60d-42d7-bcc0-d17921822bd6"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/Labfolder.png?alt=media&token=3dde8225-2853-4f7b-8b1d-51c3813b9174"})),o.default.createElement(s.Grid.Column,null,o.default.createElement(s.Image,{style:{margin:"auto",maxHeight:"100px"},src:"https://firebasestorage.googleapis.com/v0/b/igem-7f6f6.appspot.com/o/Snapgene%20logo.png?alt=media&token=8bd2b021-05a4-4952-b29c-7c6388d2010e"})))))}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=l(i),a=l(n(54)),s=l(n(87)),u=(l(n(64)),n(33)),c=n(106);function l(e){return e&&e.__esModule?e:{default:e}}var f=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(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)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){window.scrollTo(0,0)}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(s.default,{color:"blue",style:{height:"30vh"}},o.default.createElement(c.Link,{to:"/Team"},o.default.createElement("div",{style:{color:"white",position:"absolute",right:"20px",top:"15px",fontSize:"2.5em",cursor:"pointer"}},"×")),o.default.createElement(u.Header,{style:{fontSize:"4em",margin:"0px",padding:"0px"},as:"h1",inverted:!0},unescape(window.location.hash.split("?name=")[1]))),o.default.createElement(a.default,{color:"white",style:{height:"100vh"}}),o.default.createElement("style",null,".ui.menu {display:none}"))}}]),t}();t.default=f},function(e,t,n){(t=e.exports=n(111)(!0)).push([e.i,".Team_unpaddedContent_1bKO-6G8ZHNv9SFgaI3bUp{padding:0!important}.Team_profileName_1XfIKGYChuTmXuK_SxlpeJ{position:absolute;top:3em;padding-left:.5em;background-color:#ffffff6b;padding:.5em;margin-left:.5em}.Team_profileHeader_jKt8NKsZO4GZdTCQaIkPF{height:10em}.Team_profilePicture_20LK8DeEyHHschQzoZXrdm{width:10em;margin-top:2.5em;float:right;border-radius:50%;margin-right:2.5em}.Team_profileDescription_1D4LaYdA_XMjJC5P7A98yT{padding:2em}","",{version:3,sources:["/Users/hassan-alubeidi/igem/src/components/Team/Team.css"],names:[],mappings:"AAAA,6CACC,mBAAuB,CACvB,AACD,yCACI,kBAAmB,AACnB,QAAW,AACX,kBAAoB,AACpB,2BAA4B,AAC5B,aAAqB,AACrB,gBAAmB,CACtB,AACD,0CACC,WAAY,CACZ,AACD,4CACI,WAAY,AACZ,iBAAkB,AAClB,YAAa,AACb,kBAAmB,AACnB,kBAAoB,CACvB,AACD,gDACC,WAAW,CACX",file:"Team.css",sourcesContent:[".unpaddedContent {\n\tpadding:0px !important;\n}\n.profileName {\n position: absolute;\n top: 3.0em;\n padding-left: 0.5em;\n background-color: #ffffff6b;\n padding: 0.5em 0.5em;\n margin-left: 0.5em;\n}\n.profileHeader { \n\theight:10em;\n}\n.profilePicture {\n width: 10em;\n margin-top: 2.5em;\n float: right;\n border-radius: 50%;\n margin-right: 2.5em;\n}\n.profileDescription {\n\tpadding:2em\n}"],sourceRoot:""}]),t.locals={unpaddedContent:"Team_unpaddedContent_1bKO-6G8ZHNv9SFgaI3bUp",profileName:"Team_profileName_1XfIKGYChuTmXuK_SxlpeJ",profileHeader:"Team_profileHeader_jKt8NKsZO4GZdTCQaIkPF",profilePicture:"Team_profilePicture_20LK8DeEyHHschQzoZXrdm",profileDescription:"Team_profileDescription_1D4LaYdA_XMjJC5P7A98yT"}},function(e,t,n){var r=n(323);"string"==typeof r&&(r=e.i,r,"");var i={hmr:!0,transform:void 0,insertInto:void 0};n(110)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=[{name:"Hassan Al-ubeidi",role:"Wiki / Modeller",paragraph:"I study Computer Science and I work within the lab to help out with the modelling and create the Wiki. I found iGem appealing because I wanted to do something interdisciplenary, and enjoyed Biology and Chemistry at A level/ Highschool.\n An interesting fact about me is that I have flappy hands and can clap with one hand.",hierarchy:"student",profilePicture:"blank-profile-picture-973460_1280.png",coverPicture:"Screen_Shot_2018_06_25_at_10_41_58.png"},{name:"Daniel Partridge",role:"Web Lab",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Fatima Taha",role:"Team Leader / Wet Lab",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Lucy Allen",role:"Wet lab",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Nemira Žilinskaitė",role:"Wet lab/ Outreach",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Varun Lobo",role:"Outreach",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Ruth Bentley",role:"Modeller",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Eun Cho",role:"Wet lab",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Sofya Berestova",role:"Wet lab",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Lukas Hoen",role:"Wet lab",paragraph:"",hierarchy:"student",profilePicture:"",coverPicture:""},{name:"Chris Humphreys",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""},{name:"Daphne Groothius",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""},{name:"Craig Woods",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""},{name:"Louise",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""},{name:"Phillipe",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""},{name:"Nigel",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""},{name:"Carmen",role:"Supervisor",paragraph:"",hierarchy:"supervisor",profilePicture:"",coverPicture:""}]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,n,i,o=960,a=200,s=96,u=50,c=50,l="role",f="name",h="views",p=-400,d="hearts",v=!1,m=!1;function y(y){var g=y.datum();y;var b=y,_=b.selectAll("svg");_.attr("width",o).attr("height",a),g.forEach(function(e){_.append("defs").append("pattern").attr("id",e.name.split(" ")[0]).attr("height","100%").attr("width","100%").append("image").attr("height","80").attr("width","80").attr("preserveAspectRatio","none").attr("xlink:href","dist/images/"+e.name.split(" ")[0]+" Square.jpg")}),i=_;var w=y.append("div").style("position","absolute").style("visibility","hidden").style("color","black").style("padding","8px").style("background-color","#e9ecef").style("border-radius","6px").style("text-align","center").style("width","200px").text("");r.forceSimulation(g).force("charge",r.forceManyBody().strength([p])).force("x",r.forceX()).force("y",r.forceY()).on("tick",function(e){C.attr("transform",function(e){return"translate("+[e.x+o/2,e.y+(a+s)/2]+")"})});v?r.scaleOrdinal().domain(n).range(t):r.scaleOrdinal(r.schemeCategory10);var E=r.min(g,function(e){return+e[h]}),x=r.max(g,function(e){return+e[h]}),C=(r.scaleLinear().domain([E,x]).range([u,c]),_.selectAll("circle").data(g).enter().append("g").attr("transform","translate("+[o/2,a/2]+")").style("opacity",1));_.append("circle").attr("id","petri-dish").attr("r","350").attr("cx",400).attr("cy",420).style("fill","none").style("stroke","#e4e4e4").style("stroke-width",30),_.append("circle").attr("id","petri-dish").attr("r","320").attr("cx",400).attr("cy",420).style("fill","none").style("stroke","#b9b9b9").style("stroke-width",30),C.append("circle").attr("id",function(e,t){return t}).attr("r",40).attr("fill",function(e){return"url(#"+e.name.split(" ")[0]+")"}).style("stroke",function(e){return"student"==e.hierarchy?"#00547f":"#ffd300"}).style("stroke-width",3).on("mouseover",function(e){return w.html(e[f]+"
                                                                                                                                                            "+e[l]+"
                                                                                                                                                            "),w.style("visibility","visible")}).on("mousemove",function(){return r.select(this).style("stroke-width",6),r.select(this).style("cursor","pointer"),w.style("top",r.event.pageY-10+"px").style("left",r.event.pageX+10+"px")}).on("mouseout",function(){return r.select(this).style("stroke-width",3),r.select(this).style("cursor","default"),w.style("visibility","hidden")}).on("click",function(t){console.log(t),e(t.name,t.paragraph,t.role,t.profilePicture,t.coverPicture)}),C.append("clipPath").attr("id",function(e,t){return"clip-"+t}).append("use").attr("xlink:href",function(e,t){return"#"+t}),m&&C.append("text").attr("clip-path",function(e,t){return"url(#clip-"+t+")"}).attr("text-anchor","middle").append("tspan").attr("x",function(e){return 0}).attr("y",function(e){return".3em"}).text(function(e){return e[f]}).on("mouseover",function(e){return w.html(e[f]+"
                                                                                                                                                            "+e[l]+"
                                                                                                                                                            "+e[h]+" "+d),w.style("visibility","visible")}).on("mousemove",function(){return w.style("top",r.event.pageY-10+"px").style("left",r.event.pageX+10+"px")}).on("mouseout",function(){return w.style("visibility","hidden")})}return y.width=function(e){return arguments.length?(o=e,y):o},y.height=function(e){return arguments.length?(s=.05*(a=e),y):a},y.columnForColors=function(e){return arguments.length?(l=e,y):l},y.columnForRadius=function(e){return arguments.length?(h=e,y):h},y.columnForTitle=function(e){return arguments.length?(f=e,y):f},y.minRadius=function(e){return arguments.length?(u=e,y):u},y.maxRadius=function(e){return arguments.length?(c=e,y):c},y.forceApart=function(e){return arguments.length?(p=e,y):p},y.unitName=function(e){return arguments.length?(d=e,y):d},y.customColors=function(e,r){return v=!0,n=e,t=r,y},y.showTitleOnCircle=function(e){return arguments.length?(m=e,y):m},y.title=function(e){return arguments.length?(title=e,y):title},y.remove=function(e){return i.selectAll("text").style("opacity",1).transition().duration(500).style("opacity","0").remove(),arguments.length?i.selectAll("g").style("opacity",1).duration(500).style("opacity","0").remove().on("end",e):i.selectAll("g").style("opacity",1).transition().duration(500).style("opacity","0").remove(),y},y};var r=function(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}(n(208))},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=f(i),a=function(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}(n(208)),s=f(n(326)),u=f(n(325)),c=n(33),l=f(n(107));function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={teamData:u.default},n}return function(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)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){var e=this.state.teamData,t=(0,s.default)(this.props.toggle).width(800).height(800);a.select("#chart").datum(e).call(t)}},{key:"render",value:function(){var e=this;return o.default.createElement("div",null,o.default.createElement("div",{class:"chart-example",id:"chart"},o.default.createElement("svg",null)),o.default.createElement(c.Modal,{size:"large",trigger:o.default.createElement(c.Button,{fluid:!0,color:"purple",style:{borderRadius:"0px"}},"Edit page")},o.default.createElement(c.Modal.Header,null,"Edit Page - Outreach"),o.default.createElement(c.Modal.Content,null,o.default.createElement(l.default,{style:{fontFamily:"inherit"},src:this.state.teamData,displayDataTypes:!1,enableClipboard:!1,displayObjectSize:!1,onEdit:function(t){e.setState({homeData:t.updated_src}),e.forceUpdate()}})),o.default.createElement(c.Modal.Actions,null,o.default.createElement(c.Button,null,"Submit"))))}}]),t}();t.default=h},function(e,t,n){(t=e.exports=n(111)(!0)).push([e.i,".Jumbotron_orangeJumbotron_21_fvgX1vMXpPv5FiOTkV9{color:#fff;height:400px;padding:5.5em 0;min-width:100vw;background-color:#f25d53;text-align:center}.Jumbotron_redJumbotron_3Aj8AIktZahBfU3Eu2LyRy{color:#fff;height:400px;padding:5.5em 0;min-width:100vw;background-color:#c23616;text-align:center}.Jumbotron_yellowJumbotron_3VEoe9DDu5KSrL2JxzTNbL{color:#fff;height:400px;padding:5.5em 0;min-width:100vw;background-color:#e1b12c;text-align:center}.Jumbotron_blueJumbotron_1ic3ruLGsHN5eI38hsM3id{color:#fff;height:400px;padding:5.5em 0;min-width:100vw;background-color:#0097e6;text-align:center}.Jumbotron_navyJumbotron_2yakTOJIamJrMvn3pN9fxF{color:#fff;height:400px;padding:5.5em 0;min-width:100vw;background-color:#192a56;text-align:center}.Jumbotron_darkJumbotron_1rxNtYD0Yt85NSBx7n3YdG{color:#fff;height:400px;padding:5.5em 0;min-width:100vw;background-color:#2f3640;text-align:center}.Jumbotron_whiteJumbotron_1KJxz8f2yCGcTiv9Dci9qQ{height:400px;padding:5.5em 0;min-width:100vw;background-color:#f5f6fa;text-align:center}","",{version:3,sources:["/Users/hassan-alubeidi/igem/src/components/Jumbotron/Jumbotron.css"],names:[],mappings:"AAAA,kDACC,WAAY,AACZ,aAAc,AACd,gBAAmB,AACnB,gBAAiB,AACjB,yBAA0B,AAC1B,iBAAkB,CAClB,AACD,+CACC,WAAY,AACZ,aAAc,AACd,gBAAmB,AACnB,gBAAgB,AAChB,yBAA0B,AAC1B,iBAAkB,CAClB,AACD,kDACC,WAAY,AACZ,aAAc,AACd,gBAAmB,AACnB,gBAAgB,AAChB,yBAA0B,AAC1B,iBAAkB,CAClB,AACD,gDACC,WAAY,AACZ,aAAc,AACd,gBAAmB,AACnB,gBAAgB,AAChB,yBAA0B,AAC1B,iBAAkB,CAClB,AACD,gDACC,WAAY,AACZ,aAAc,AACd,gBAAmB,AACnB,gBAAgB,AAChB,yBAA0B,AAC1B,iBAAkB,CAClB,AACD,gDACC,WAAY,AACZ,aAAc,AACd,gBAAmB,AACnB,gBAAgB,AAChB,yBAA0B,AAC1B,iBAAkB,CAClB,AACD,iDACC,aAAc,AACd,gBAAmB,AACnB,gBAAgB,AAChB,yBAA0B,AAC1B,iBAAkB,CAClB",file:"Jumbotron.css",sourcesContent:[".orangeJumbotron {\n\tcolor:white;\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width: 100vw;\n\tbackground-color: #F25D53;\n\ttext-align:center;\n}\n.redJumbotron {\n\tcolor:white;\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width:100vw;\n\tbackground-color: #c23616;\n\ttext-align:center;\n}\n.yellowJumbotron {\n\tcolor:white;\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width:100vw;\n\tbackground-color: #e1b12c;\n\ttext-align:center;\n}\n.blueJumbotron {\n\tcolor:white;\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width:100vw;\n\tbackground-color: #0097e6;\n\ttext-align:center;\n}\n.navyJumbotron {\n\tcolor:white;\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width:100vw;\n\tbackground-color: #192a56;\n\ttext-align:center;\n}\n.darkJumbotron {\n\tcolor:white;\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width:100vw;\n\tbackground-color: #2f3640;\n\ttext-align:center;\n}\n.whiteJumbotron {\n\theight: 400px;\n\tpadding: 5.5em 0px;\n\tmin-width:100vw;\n\tbackground-color: #f5f6fa;\n\ttext-align:center;\n}"],sourceRoot:""}]),t.locals={orangeJumbotron:"Jumbotron_orangeJumbotron_21_fvgX1vMXpPv5FiOTkV9",redJumbotron:"Jumbotron_redJumbotron_3Aj8AIktZahBfU3Eu2LyRy",yellowJumbotron:"Jumbotron_yellowJumbotron_3VEoe9DDu5KSrL2JxzTNbL",blueJumbotron:"Jumbotron_blueJumbotron_1ic3ruLGsHN5eI38hsM3id",navyJumbotron:"Jumbotron_navyJumbotron_2yakTOJIamJrMvn3pN9fxF",darkJumbotron:"Jumbotron_darkJumbotron_1rxNtYD0Yt85NSBx7n3YdG",whiteJumbotron:"Jumbotron_whiteJumbotron_1KJxz8f2yCGcTiv9Dci9qQ"}},function(e,t,n){var r=n(328);"string"==typeof r&&(r=e.i,r,"");var i={hmr:!0,transform:void 0,insertInto:void 0};n(110)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=f(i),a=f(n(54)),s=f(n(87)),u=(f(n(64)),f(n(327))),c=n(33),l=f(n(324));n(106);function f(e){return e&&e.__esModule?e:{default:e}}var h=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={showModal:!1,userInfo:{name:null,paragraph:null,profilePicture:null,role:null,profileCover:null}},n}return function(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)}(t,i.Component),r(t,[{key:"toggleProfile",value:function(e,t,n,r,i){this.setState({showModal:!0,userInfo:{name:e,paragraph:t,profilePicture:r,role:n,profileCover:i}})}},{key:"closeModal",value:function(){this.setState({showModal:!1})}},{key:"render",value:function(){return o.default.createElement("div",null,o.default.createElement(s.default,{color:"red",style:{height:"30vh"}},o.default.createElement(c.Header,{style:{fontSize:"4em",margin:"0px",padding:"0px"},as:"h1",inverted:!0},"Meet the team!")),o.default.createElement(a.default,{color:"white",style:{height:"130vh"}},o.default.createElement(u.default,{toggle:this.toggleProfile.bind(this)})),o.default.createElement(c.Modal,{size:"small",open:this.state.showModal,closeOnRootNodeClick:!0},o.default.createElement(c.Modal.Content,{className:l.default.unpaddedContent},o.default.createElement("div",{className:l.default.profileHeader,style:{backgroundImage:"url('"+this.state.userInfo.profileCover+"')",backgroundSize:"cover"}},o.default.createElement("h2",{className:l.default.profileName},this.state.userInfo.name),o.default.createElement("img",{src:this.state.userInfo.profilePicture,className:l.default.profilePicture}),o.default.createElement(c.Icon,{onClick:this.closeModal.bind(this),circular:!0,inverted:!0,color:"blue",link:!0,name:"delete",style:{position:"absolute",right:"-1.125em",top:"-1.125em",fontSize:"1.5em",opacity:1}})),o.default.createElement(c.Modal.Description,{className:l.default.profileDescription},o.default.createElement(c.Header,null,this.state.userInfo.role),o.default.createElement("p",null,this.state.userInfo.paragraph)))))}}]),t}();t.default=h},function(e,t,n){"use strict";var r=n(47),i=n(0).createElement;function o(e,t){return i(e,a(t),t.children)}function a(e){return e["data-sourcepos"]?{"data-sourcepos":e["data-sourcepos"]}:{}}e.exports={root:"div",break:"br",paragraph:"p",emphasis:"em",strong:"strong",thematicBreak:"hr",blockquote:"blockquote",delete:"del",link:"a",image:"img",linkReference:"a",imageReference:"img",table:o.bind(null,"table"),tableHead:o.bind(null,"thead"),tableBody:o.bind(null,"tbody"),tableRow:o.bind(null,"tr"),tableCell:function(e){var t=e.align?{textAlign:e.align}:void 0,n=a(e);return i(e.isHeader?"th":"td",t?r({style:t},n):n,e.children)},list:function(e){var t=a(e);null!==e.start&&1!==e.start&&(t.start=e.start.toString());return i(e.ordered?"ol":"ul",t,e.children)},listItem:function(e){var t=null;if(null!==e.checked){var n=e.checked;t=i("input",{type:"checkbox",checked:n,readOnly:!0})}return i("li",a(e),t,e.children)},definition:function(){return null},heading:function(e){return i("h"+e.level,a(e),e.children)},inlineCode:function(e){return i("code",a(e),e.children)},code:function(e){var t=e.language&&"language-"+e.language,n=i("code",t?{className:t}:null,e.value);return i("pre",a(e),n)},html:function(e){if(e.skipHtml)return null;var t=e.isBlock?"div":"span";if(e.escapeHtml)return i(t,null,e.value);var n={dangerouslySetInnerHTML:{__html:e.value}};return i(t,n)},virtualHtml:function(e){return i(e.tag,a(e),e.children)}}},function(e,t,n){"use strict";var r=["http","https","mailto","tel"];e.exports=function(e){var t=(e||"").trim(),n=t.charAt(0);if("#"===n||"/"===n)return t;var i=t.indexOf(":");if(-1===i)return t;for(var o=r.length,a=-1;++a<o;){var s=r[a];if(i===s.length&&t.slice(0,s.length)===s)return t}return-1!==(a=t.indexOf("?"))&&i>a?t:-1!==(a=t.indexOf("#"))&&i>a?t:"javascript:void(0)"}},function(e,t,n){"use strict";e.exports=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(t.children||[]).reduce(function(t,n){return"definition"===n.type&&(t[n.identifier]={href:n.url,title:n.title}),e(n,t)},n)}},function(e,t,n){"use strict";var r=n(108);function i(e){var t=e.children;e.children=[{type:"tableHead",align:e.align,children:[t[0]],position:t[0].position}],t.length>1&&e.children.push({type:"tableBody",align:e.align,children:t.slice(1),position:{start:t[1].position.start,end:t[t.length-1].position.end}})}e.exports=function(e){return r(e,"table",i),e}},function(e,t,n){"use strict";var r=n(0),i=n(47);function o(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=t.renderers[e.type],c=e.position.start,l=[e.type,c.line,c.column].join("-");if("text"===e.type)return u?u(e.value,l):e.value;if("function"!=typeof u&&"string"!=typeof u&&!function(e){return r.Fragment&&r.Fragment===e}(u))throw new Error("Renderer for type `"+e.type+"` not defined or is not renderable");var f=function(e,t,n,r,s,u){var c={key:t},l="string"==typeof r;n.sourcePos&&e.position&&(c["data-sourcepos"]=[(f=e.position).start.line,":",f.start.column,"-",f.end.line,":",f.end.column].map(String).join(""));var f;n.rawSourcePos&&!l&&(c.sourcePosition=e.position);var h=null!==e.identifier&&void 0!==e.identifier?n.definitions[e.identifier]||{}:null;switch(e.type){case"root":a(c,{className:n.className});break;case"heading":c.level=e.depth;break;case"list":c.start=e.start,c.ordered=e.ordered,c.tight=!e.loose;break;case"listItem":c.checked=e.checked,c.tight=!e.loose,c.children=(c.tight?function(e){return e.children.reduce(function(e,t){return e.concat("paragraph"===t.type?t.children||[]:[t])},[])}(e):e.children).map(function(t,r){return o(t,n,{node:e,props:c},r)});break;case"definition":a(c,{identifier:e.identifier,title:e.title,url:e.url});break;case"code":a(c,{language:e.lang&&e.lang.split(/\s/,1)[0]});break;case"inlineCode":c.children=e.value,c.inline=!0;break;case"link":a(c,{title:e.title||void 0,href:n.transformLinkUri?n.transformLinkUri(e.url,e.children,e.title):e.url});break;case"image":a(c,{alt:e.alt||void 0,title:e.title||void 0,src:n.transformImageUri?n.transformImageUri(e.url,e.children,e.title,e.alt):e.url});break;case"linkReference":a(c,i(h,{href:n.transformLinkUri?n.transformLinkUri(h.href):h.href}));break;case"imageReference":a(c,{src:n.transformImageUri&&h.href?n.transformImageUri(h.href,e.children,h.title,e.alt):h.href,title:h.title||void 0,alt:e.alt||void 0});break;case"table":case"tableHead":case"tableBody":c.columnAlignment=e.align;break;case"tableRow":c.isHeader="tableHead"===s.node.type,c.columnAlignment=s.props.columnAlignment;break;case"tableCell":a(c,{isHeader:s.props.isHeader,align:s.props.columnAlignment[u]});break;case"virtualHtml":c.tag=e.tag;break;case"html":c.isBlock=e.position.start.line!==e.position.end.line,c.escapeHtml=n.escapeHtml,c.skipHtml=n.skipHtml;break;default:a(c,i(e,{type:void 0,position:void 0,children:void 0}))}!l&&e.value&&(c.value=e.value);return c}(e,l,t,u,n,s);return r.createElement(u,f,f.children||e.children&&e.children.map(function(n,r){return o(n,t,{node:e,props:f},r)})||void 0)}function a(e,t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}e.exports=o},function(e,t,n){"use strict";var r=n(108);function i(e,t,n,r){if("remove"===r)n.children.splice(t,1);else if("unwrap"===r){var i=[t,1];e.children&&(i=i.concat(e.children)),Array.prototype.splice.apply(n.children,i)}}t.ofType=function(e,t){return function(t){return e.forEach(function(e){return r(t,e,n,!0)}),t};function n(e,n,r){r&&i(e,n,r,t)}},t.ifNotMatch=function(e,t){return function(e){return r(e,n,!0),e};function n(n,r,o){o&&!e(n,r,o)&&i(n,r,o,t)}}},function(e,t,n){"use strict";var r=n(108),i="virtualHtml",o=/^<(area|base|br|col|embed|hr|img|input|keygen|link|meta|param|source|track|wbr)\s*\/?>$/i,a=/^<(\/?)([a-z]+)\s*>$/;e.exports=function(e){var t=void 0,n=void 0;return r(e,"html",function(e,r,s){n!==s&&(t=[],n=s);var u=function(e){var t=e.value.match(o);return!!t&&t[1]}(e);if(u)return s.children.splice(r,1,{type:i,tag:u,position:e.position}),!0;var c=function(e,t){var n=e.value.match(a);return!!n&&{tag:n[2],opening:!n[1],node:e}}(e);if(!c)return!0;var l=function(e,t){var n=e.length;for(;n--;)if(e[n].tag===t)return e.splice(n,1)[0];return!1}(t,c.tag);return l?s.children.splice(r,0,function(e,t,n){var r=n.children.indexOf(e.node),o=n.children.indexOf(t.node),a=n.children.splice(r,o-r+1).slice(1,-1);return{type:i,children:a,tag:e.tag,position:{start:e.node.position.start,end:t.node.position.end,indent:[]}}}(c,l,s)):c.opening||t.push(c),!0},!0),e}},function(e,t,n){"use strict";e.exports=function(e,t,n){var r,i,o,a,s,u,c,l,f,h;if(n)return!0;r=this.inlineMethods,a=r.length,i=this.inlineTokenizers,o=-1,f=t.length;for(;++o<a;)"text"!==(l=r[o])&&i[l]&&((c=i[l].locator)||e.file.fail("Missing locator: `"+l+"`"),-1!==(u=c.call(this,t,1))&&u<f&&(f=u));s=t.slice(0,f),h=e.now(),this.decode(s,h,function(t,n,r){e(r||t)({type:"text",value:t})})}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("\n",t);for(;n>t&&" "===e.charAt(n-1);)n--;return n}},function(e,t,n){"use strict";var r=n(339);e.exports=o,o.locator=r;var i=2;function o(e,t,n){for(var r,o=t.length,a=-1,s="";++a<o;){if("\n"===(r=t.charAt(a))){if(a<i)return;return!!n||e(s+=r)({type:"break"})}if(" "!==r)return;s+=r}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("`",t)}},function(e,t,n){"use strict";var r=n(38),i=n(341);e.exports=a,a.locator=i;var o="`";function a(e,t,n){for(var i,a,s,u,c,l,f,h,p=t.length,d=0,v="",m="";d<p&&t.charAt(d)===o;)v+=o,d++;if(v){for(c=v,u=d,v="",h=t.charAt(d),s=0;d<p;){if(l=h,h=t.charAt(d+1),l===o?(s++,m+=l):(s=0,v+=l),s&&h!==o){if(s===u){c+=v+m,f=!0;break}v+=m,m=""}d++}if(!f){if(u%2!=0)return;v=""}if(n)return!0;for(i="",a="",p=v.length,d=-1;++d<p;)l=v.charAt(d),r(l)?a+=l:(a&&(i&&(i+=a),a=""),i+=l);return e(c)({type:"inlineCode",value:i})}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("~~",t)}},function(e,t,n){"use strict";var r=n(38),i=n(343);e.exports=s,s.locator=i;var o="~",a="~~";function s(e,t,n){var i,s,u,c="",l="",f="",h="";if(this.options.gfm&&t.charAt(0)===o&&t.charAt(1)===o&&!r(t.charAt(2)))for(i=1,s=t.length,(u=e.now()).column+=2,u.offset+=2;++i<s;){if(!((c=t.charAt(i))!==o||l!==o||f&&r(f)))return!!n||e(a+h+a)({type:"delete",children:this.tokenizeInline(h,u)});h+=l,f=l,l=c}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("*",t),r=e.indexOf("_",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";e.exports=function(e){return i.test("number"==typeof e?r(e):e.charAt(0))};var r=String.fromCharCode,i=/\w/},function(e,t,n){"use strict";var r=n(79),i=n(346),o=n(38),a=n(345);e.exports=c,c.locator=a;var s="*",u="_";function c(e,t,n){var a,c,l,f,h,p,d,v=0,m=t.charAt(v);if(!(m!==s&&m!==u||(c=this.options.pedantic,h=m,l=m,p=t.length,v++,f="",m="",c&&o(t.charAt(v)))))for(;v<p;){if(d=m,!((m=t.charAt(v))!==l||c&&o(d))){if((m=t.charAt(++v))!==l){if(!r(f)||d===l)return;if(!c&&l===u&&i(m)){f+=l;continue}return!!n||((a=e.now()).column++,a.offset++,e(h+f+l)({type:"emphasis",children:this.tokenizeInline(f,a)}))}f+=l}c||"\\"!==m||(f+=m,m=t.charAt(++v)),f+=m,v++}}},function(e,t,n){"use strict";e.exports=function(e,t){var n=e.indexOf("**",t),r=e.indexOf("__",t);if(-1===r)return n;if(-1===n)return r;return r<n?r:n}},function(e,t,n){"use strict";var r=n(79),i=n(38),o=n(348);e.exports=u,u.locator=o;var a="*",s="_";function u(e,t,n){var o,u,c,l,f,h,p,d=0,v=t.charAt(d);if(!(v!==a&&v!==s||t.charAt(++d)!==v||(u=this.options.pedantic,f=(c=v)+c,h=t.length,d++,l="",v="",u&&i(t.charAt(d)))))for(;d<h;){if(p=v,!((v=t.charAt(d))!==c||t.charAt(d+1)!==c||u&&i(p))&&(v=t.charAt(d+2))!==c){if(!r(l))return;return!!n||((o=e.now()).column+=2,o.offset+=2,e(f+l+f)({type:"strong",children:this.tokenizeInline(l,o)}))}u||"\\"!==v||(l+=v,v=t.charAt(++d)),l+=v,d++}}},function(e,t,n){"use strict";var r=n(38),i=n(210),o=n(154);e.exports=m,m.locator=i;var a="link",s="image",u="footnote",c="shortcut",l="collapsed",f="full",h="^",p="\\",d="[",v="]";function m(e,t,n){var i,m,y,g,b,_,w,E,x=t.charAt(0),C=0,T=t.length,k="",S="",A=a,N=c;if("!"===x&&(A=s,S=x,x=t.charAt(++C)),x===d){if(C++,S+=x,_="",this.options.footnotes&&t.charAt(C)===h){if(A===s)return;S+=h,C++,A=u}for(E=0;C<T;){if((x=t.charAt(C))===d)w=!0,E++;else if(x===v){if(!E)break;E--}x===p&&(_+=p,x=t.charAt(++C)),_+=x,C++}if(k=_,i=_,(x=t.charAt(C))===v){for(C++,k+=x,_="";C<T&&(x=t.charAt(C),r(x));)_+=x,C++;if(x=t.charAt(C),A!==u&&x===d){for(m="",_+=x,C++;C<T&&(x=t.charAt(C))!==d&&x!==v;)x===p&&(m+=p,x=t.charAt(++C)),m+=x,C++;(x=t.charAt(C))===v?(N=m?f:l,_+=m+x,C++):m="",k+=_,_=""}else{if(!i)return;m=i}if(N===f||!w)return k=S+k,A===a&&this.inLink?null:!!n||(A===u&&-1!==i.indexOf(" ")?e(k)({type:"footnote",children:this.tokenizeInline(i,e.now())}):((y=e.now()).column+=S.length,y.offset+=S.length,g={type:A+"Reference",identifier:o(m=N===f?m:i)},A!==a&&A!==s||(g.referenceType=N),A===a?(b=this.enterLink(),g.children=this.tokenizeInline(i,y),b()):A===s&&(g.alt=this.decode.raw(this.unescape(i),y)||null),e(k)(g)))}}}},function(e,t,n){"use strict";var r=n(38),i=n(210);e.exports=m,m.locator=i;var o={}.hasOwnProperty,a="\\",s="[",u="]",c="(",l=")",f="<",h=">",p="`",d={'"':'"',"'":"'"},v={};function m(e,t,n){var i,m,y,g,b,_,w,E,x,C,T,k,S,A,N,O,I,P,R,D="",M=0,L=t.charAt(0),j=this.options.pedantic,F=this.options.commonmark,U=this.options.gfm;if("!"===L&&(x=!0,D=L,L=t.charAt(++M)),L===s&&(x||!this.inLink)){for(D+=L,N="",M++,k=t.length,A=0,(I=e.now()).column+=M,I.offset+=M;M<k;){if(_=L=t.charAt(M),L===p){for(m=1;t.charAt(M+1)===p;)_+=L,M++,m++;y?m>=y&&(y=0):y=m}else if(L===a)M++,_+=t.charAt(M);else if(y&&!U||L!==s){if((!y||U)&&L===u){if(!A){if(!j)for(;M<k&&(L=t.charAt(M+1),r(L));)_+=L,M++;if(t.charAt(M+1)!==c)return;_+=c,i=!0,M++;break}A--}}else A++;N+=_,_="",M++}if(i){for(C=N,D+=N+_,M++;M<k&&(L=t.charAt(M),r(L));)D+=L,M++;if(L=t.charAt(M),E=F?v:d,N="",g=D,L===f){for(M++,g+=f;M<k&&(L=t.charAt(M))!==h;){if(F&&"\n"===L)return;N+=L,M++}if(t.charAt(M)!==h)return;D+=f+N+h,O=N,M++}else{for(L=null,_="";M<k&&(L=t.charAt(M),!_||!o.call(E,L));){if(r(L)){if(!j)break;_+=L}else{if(L===c)A++;else if(L===l){if(0===A)break;A--}N+=_,_="",L===a&&(N+=a,L=t.charAt(++M)),N+=L}M++}O=N,M=(D+=N).length}for(N="";M<k&&(L=t.charAt(M),r(L));)N+=L,M++;if(L=t.charAt(M),D+=N,N&&o.call(E,L))if(M++,D+=L,N="",T=E[L],b=D,F){for(;M<k&&(L=t.charAt(M))!==T;)L===a&&(N+=a,L=t.charAt(++M)),M++,N+=L;if((L=t.charAt(M))!==T)return;for(S=N,D+=N+L,M++;M<k&&(L=t.charAt(M),r(L));)D+=L,M++}else for(_="";M<k;){if((L=t.charAt(M))===T)w&&(N+=T+_,_=""),w=!0;else if(w){if(L===l){D+=N+T+_,S=N;break}r(L)?_+=L:(N+=T+_+L,_="",w=!1)}else N+=L;M++}if(t.charAt(M)===l)return!!n||(D+=l,O=this.decode.raw(this.unescape(O),e(g).test().end,{nonTerminated:!1}),S&&(b=e(b).test().end,S=this.decode.raw(this.unescape(S),b)),R={type:x?"image":"link",title:S||null,url:O},x?R.alt=this.decode.raw(this.unescape(C),I)||null:(P=this.enterLink(),R.children=this.tokenizeInline(C,I),P()),e(D)(R))}}}v['"']='"',v["'"]="'",v[c]=l},function(e,t,n){"use strict";var r=n(215),i=n(211),o=n(212).tag;e.exports=u,u.locator=i;var a=/^<a /i,s=/^<\/a>/i;function u(e,t,n){var i,u,c=t.length;if(!("<"!==t.charAt(0)||c<3)&&(i=t.charAt(1),(r(i)||"?"===i||"!"===i||"/"===i)&&(u=t.match(o))))return!!n||(u=u[0],!this.inLink&&a.test(u)?this.inLink=!0:this.inLink&&s.test(u)&&(this.inLink=!1),e(u)({type:"html",value:u}))}},function(e,t,n){"use strict";e.exports=function(e,t){var n,i=r.length,o=-1,a=-1;if(!this.options.gfm)return-1;for(;++o<i;)-1!==(n=e.indexOf(r[o],t))&&(n<a||-1===a)&&(a=n);return a};var r=["https://","http://","mailto:"]},function(e,t,n){"use strict";var r=n(158),i=n(38),o=n(353);e.exports=v,v.locator=o,v.notInLink=!0;var a="[",s="]",u="(",c=")",l="<",f="@",h="mailto:",p=["http://","https://",h],d=p.length;function v(e,t,n){var o,v,m,y,g,b,_,w,E,x,C,T;if(this.options.gfm){for(o="",y=-1,w=d;++y<w;)if(b=p[y],(_=t.slice(0,b.length)).toLowerCase()===b){o=_;break}if(o){for(y=o.length,w=t.length,E="",x=0;y<w&&(m=t.charAt(y),!i(m)&&m!==l)&&("."!==m&&","!==m&&":"!==m&&";"!==m&&'"'!==m&&"'"!==m&&")"!==m&&"]"!==m||(C=t.charAt(y+1))&&!i(C))&&(m!==u&&m!==a||x++,m!==c&&m!==s||!(--x<0));)E+=m,y++;if(E){if(v=o+=E,b===h){if(-1===(g=E.indexOf(f))||g===w-1)return;v=v.substr(h.length)}return!!n||(T=this.enterLink(),v=this.tokenizeInline(v,e.now()),T(),e(o)({type:"link",title:null,url:r(o,{nonTerminated:!1}),children:v}))}}}}},function(e,t,n){"use strict";var r=n(38),i=n(158),o=n(211);e.exports=h,h.locator=o,h.notInLink=!0;var a="<",s=">",u="@",c="/",l="mailto:",f=l.length;function h(e,t,n){var o,h,p,d,v,m,y,g,b,_,w;if(t.charAt(0)===a){for(this,o="",h=t.length,p=0,d="",m=!1,y="",p++,o=a;p<h&&(v=t.charAt(p),!(r(v)||v===s||v===u||":"===v&&t.charAt(p+1)===c));)d+=v,p++;if(d){if(y+=d,d="",y+=v=t.charAt(p),p++,v===u)m=!0;else{if(":"!==v||t.charAt(p+1)!==c)return;y+=c,p++}for(;p<h&&(v=t.charAt(p),!r(v)&&v!==s);)d+=v,p++;if(v=t.charAt(p),d&&v===s)return!!n||(b=y+=d,o+=y+v,(g=e.now()).column++,g.offset++,m&&(y.slice(0,f).toLowerCase()===l?(b=b.substr(f),g.column+=f,g.offset+=f):y=l+y),_=this.inlineTokenizers,this.inlineTokenizers={text:_.text},w=this.enterLink(),b=this.tokenizeInline(b,g),this.inlineTokenizers=_,w(),e(o)({type:"link",title:null,url:i(y,{nonTerminated:!1}),children:b}))}}}},function(e,t,n){"use strict";e.exports=function(e,t){return e.indexOf("\\",t)}},function(e,t,n){"use strict";var r=n(356);function i(e,t,n){var r,i;if("\\"===t.charAt(0)&&(r=t.charAt(1),-1!==this.escape.indexOf(r)))return!!n||(i="\n"===r?{type:"break"}:{type:"text",value:r},e("\\"+r)(i))}e.exports=i,i.locator=r},function(e,t,n){"use strict";var r=n(79),i=n(109),o=n(156),a=n(155);e.exports=function(e,t,n){var f,h,p,d,v,m=this.options,y=m.commonmark,g=m.gfm,b=this.blockTokenizers,_=this.interruptParagraph,w=t.indexOf(s),E=t.length;for(;w<E;){if(-1===w){w=E;break}if(t.charAt(w+1)===s)break;if(y){for(d=0,f=w+1;f<E;){if((p=t.charAt(f))===u){d=l;break}if(p!==c)break;d++,f++}if(d>=l){w=t.indexOf(s,w+1);continue}}if(h=t.slice(w+1),a(_,b,this,[e,h,!0]))break;if(b.list.call(this,e,h,!0)&&(this.inList||y||g&&!i(r.left(h).charAt(0))))break;if(f=w,-1!==(w=t.indexOf(s,w+1))&&""===r(t.slice(f,w))){w=f;break}}if(h=t.slice(0,w),""===r(h))return e(h),null;if(n)return!0;return v=e.now(),h=o(h),e(h)({type:"paragraph",children:this.tokenizeInline(h,v)})};var s="\n",u="\t",c=" ",l=4},function(e,t,n){"use strict";var r=n(38);e.exports=function(e,t,n){var g,b,_,w,E,x,C,T,k,S,A,N,O,I,P,R,D,M,L,j,F,U,B,q;if(!this.options.gfm)return;g=0,M=0,x=t.length+1,C=[];for(;g<x;){if(U=t.indexOf(l,g),B=t.indexOf(s,g+1),-1===U&&(U=t.length),-1===B||B>U){if(M<p)return;break}C.push(t.slice(g,U)),M++,g=U+1}w=C.join(l),b=C.splice(1,1)[0]||[],g=0,x=b.length,M--,_=!1,A=[];for(;g<x;){if((k=b.charAt(g))===s){if(S=null,!1===_){if(!1===q)return}else A.push(_),_=!1;q=!1}else if(k===a)S=!0,_=_||y;else if(k===u)_=_===d?v:S&&_===y?m:d;else if(!r(k))return;g++}!1!==_&&A.push(_);if(A.length<h)return;if(n)return!0;D=-1,j=[],F=e(w).reset({type:"table",align:A,children:j});for(;++D<M;){for(L=C[D],E={type:"tableRow",children:[]},D&&e(l),e(L).reset(E,F),x=L.length+1,g=0,T="",N="",O=!0,I=null,P=null;g<x;)if((k=L.charAt(g))!==f&&k!==c){if(""===k||k===s)if(O)e(k);else{if(k&&P){T+=k,g++;continue}!N&&!k||O||(w=N,T.length>1&&(k?(w+=T.slice(0,T.length-1),T=T.charAt(T.length-1)):(w+=T,T="")),R=e.now(),e(w)({type:"tableCell",children:this.tokenizeInline(N,R)},E)),e(T+k),T="",N=""}else if(T&&(N+=T,T=""),N+=k,k===i&&g!==x-2&&(N+=L.charAt(g+1),g++),k===o){for(I=1;L.charAt(g+1)===k;)N+=k,g++,I++;P?I>=P&&(P=0):P=I}O=!1,g++}else N?T+=k:e(k),g++;D||e(l+b)}return F};var i="\\",o="`",a="-",s="|",u=":",c=" ",l="\n",f="\t",h=1,p=2,d="left",v="center",m="right",y=null},function(e,t,n){"use strict";var r=n(38),i=n(154);e.exports=g,g.notInList=!0,g.notInBlock=!0;var o='"',a="'",s="\\",u="\n",c="\t",l=" ",f="[",h="]",p="(",d=")",v=":",m="<",y=">";function g(e,t,n){for(var r,y,g,w,E,x,C,T,k=this.options.commonmark,S=0,A=t.length,N="";S<A&&((w=t.charAt(S))===l||w===c);)N+=w,S++;if((w=t.charAt(S))===f){for(S++,N+=w,g="";S<A&&(w=t.charAt(S))!==h;)w===s&&(g+=w,S++,w=t.charAt(S)),g+=w,S++;if(g&&t.charAt(S)===h&&t.charAt(S+1)===v){for(x=g,S=(N+=g+h+v).length,g="";S<A&&((w=t.charAt(S))===c||w===l||w===u);)N+=w,S++;if(g="",r=N,(w=t.charAt(S))===m){for(S++;S<A&&b(w=t.charAt(S));)g+=w,S++;if((w=t.charAt(S))===b.delimiter)N+=m+g+w,S++;else{if(k)return;S-=g.length+1,g=""}}if(!g){for(;S<A&&_(w=t.charAt(S));)g+=w,S++;N+=g}if(g){for(C=g,g="";S<A&&((w=t.charAt(S))===c||w===l||w===u);)g+=w,S++;if(E=null,(w=t.charAt(S))===o?E=o:w===a?E=a:w===p&&(E=d),E){if(!g)return;for(S=(N+=g+w).length,g="";S<A&&(w=t.charAt(S))!==E;){if(w===u){if(S++,(w=t.charAt(S))===u||w===E)return;g+=u}g+=w,S++}if((w=t.charAt(S))!==E)return;y=N,N+=g+w,S++,T=g,g=""}else g="",S=N.length;for(;S<A&&((w=t.charAt(S))===c||w===l);)N+=w,S++;return(w=t.charAt(S))&&w!==u?void 0:!!n||(r=e(r).test().end,C=this.decode.raw(this.unescape(C),r,{nonTerminated:!1}),T&&(y=e(y).test().end,T=this.decode.raw(this.unescape(T),y)),e(N)({type:"definition",identifier:i(x),title:T||null,url:C}))}}}}function b(e){return e!==y&&e!==f&&e!==h}function _(e){return e!==f&&e!==h&&!r(e)}b.delimiter=y},function(e,t,n){"use strict";e.exports=function(e){return String(e).replace(/\s+/g," ")}},function(e,t,n){"use strict";var r=n(38),i=n(154);e.exports=d,d.notInList=!0,d.notInBlock=!0;var o="\\",a="\n",s="\t",u=" ",c="[",l="]",f="^",h=":",p=/^( {4}|\t)?/gm;function d(e,t,n){var d,v,m,y,g,b,_,w,E,x,C,T,k=this.offset;if(this.options.footnotes){for(d=0,v=t.length,m="",y=e.now(),g=y.line;d<v&&(E=t.charAt(d),r(E));)m+=E,d++;if(t.charAt(d)===c&&t.charAt(d+1)===f){for(d=(m+=c+f).length,_="";d<v&&(E=t.charAt(d))!==l;)E===o&&(_+=E,d++,E=t.charAt(d)),_+=E,d++;if(_&&t.charAt(d)===l&&t.charAt(d+1)===h){if(n)return!0;for(x=i(_),d=(m+=_+l+h).length;d<v&&((E=t.charAt(d))===s||E===u);)m+=E,d++;for(y.column+=m.length,y.offset+=m.length,_="",b="",w="";d<v;){if((E=t.charAt(d))===a){for(w=E,d++;d<v&&(E=t.charAt(d))===a;)w+=E,d++;for(_+=w,w="";d<v&&(E=t.charAt(d))===u;)w+=E,d++;if(0===w.length)break;_+=w}_&&(b+=_,_=""),b+=E,d++}return m+=b,b=b.replace(p,function(e){return k[g]=(k[g]||0)+e.length,g++,""}),C=e(m),T=this.enterBlock(),b=this.tokenizeBlock(b,y),T(),C({type:"footnoteDefinition",identifier:x,children:b})}}}}},function(e,t,n){"use strict";var r=n(212).openCloseTag;e.exports=function(e,t,n){var u,c,l,f,h,p,d,v=this.options.blocks,m=t.length,y=0,g=[[/^<(script|pre|style)(?=(\s|>|$))/i,/<\/(script|pre|style)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Za-z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+v.join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(r.source+"\\s*$"),/^$/,!1]];for(;y<m&&((f=t.charAt(y))===i||f===o);)y++;if(t.charAt(y)!==s)return;u=-1===(u=t.indexOf(a,y+1))?m:u,c=t.slice(y,u),l=-1,h=g.length;for(;++l<h;)if(g[l][0].test(c)){p=g[l];break}if(!p)return;if(n)return p[2];if(y=u,!p[1].test(c))for(;y<m;){if(u=-1===(u=t.indexOf(a,y+1))?m:u,c=t.slice(y+1,u),p[1].test(c)){c&&(y=u);break}y=u}return d=t.slice(0,y),e(d)({type:"html",value:d})};var i="\t",o=" ",a="\n",s="<"},function(e,t,n){"use strict";e.exports=function(e,t,n){var u,c,l,f,h,p=e.now(),d=t.length,v=-1,m="";for(;++v<d;){if((l=t.charAt(v))!==o||v>=a){v--;break}m+=l}u="",c="";for(;++v<d;){if((l=t.charAt(v))===r){v--;break}l===o||l===i?c+=l:(u+=c+l,c="")}if(p.column+=m.length,p.offset+=m.length,m+=u+c,l=t.charAt(++v),f=t.charAt(++v),l!==r||!s[f])return;m+=l,c=f,h=s[f];for(;++v<d;){if((l=t.charAt(v))!==f){if(l!==r)return;v--;break}c+=l}if(n)return!0;return e(m+c)({type:"heading",depth:h,children:this.tokenizeInline(u,p)})};var r="\n",i="\t",o=" ",a=3,s={};s["="]=1,s["-"]=2},function(e,t,n){"use strict";var r=n(79),i=n(157),o=n(213);e.exports=function(e,t){var n,c,l,f,h=e.split(s),p=h.length+1,d=1/0,v=[];h.unshift(i(a,t)+"!");for(;p--;)if(c=o(h[p]),v[p]=c.stops,0!==r(h[p]).length){if(!c.indent){d=1/0;break}c.indent>0&&c.indent<d&&(d=c.indent)}if(d!==1/0)for(p=h.length;p--;){for(l=v[p],n=d;n&&!(n in l);)n--;f=0!==r(h[p]).length&&d&&n!==d?u:"",h[p]=f+h[p].slice(n in l?l[n]+1:0)}return h.shift(),h.join(s)};var a=" ",s="\n",u="\t"},function(e,t,n){"use strict";var r=n(79),i=n(157),o=n(109),a=n(213),s=n(365),u=n(155);e.exports=function(e,t,n){var i,a,s,v,y,g,b,_,w,k,S,A,N,O,I,P,R,D,M,L,j,F,U,B,q=this.options.commonmark,V=this.options.pedantic,W=this.blockTokenizers,z=this.interruptList,H=0,K=t.length,G=null,Q=0;for(;H<K;){if((v=t.charAt(H))===d)Q+=m-Q%m;else{if(v!==h)break;Q++}H++}if(Q>=m)return;if(v=t.charAt(H),i=q?C:x,!0===E[v])y=v,s=!1;else{for(s=!0,a="";H<K&&(v=t.charAt(H),o(v));)a+=v,H++;if(v=t.charAt(H),!a||!0!==i[v])return;G=parseInt(a,10),y=v}if((v=t.charAt(++H))!==h&&v!==d)return;if(n)return!0;H=0,O=[],I=[],P=[];for(;H<K;){for(g=t.indexOf(p,H),b=H,_=!1,B=!1,-1===g&&(g=K),U=H+m,Q=0;H<K;){if((v=t.charAt(H))===d)Q+=m-Q%m;else{if(v!==h)break;Q++}H++}if(Q>=m&&(B=!0),R&&Q>=R.indent&&(B=!0),v=t.charAt(H),w=null,!B){if(!0===E[v])w=v,H++,Q++;else{for(a="";H<K&&(v=t.charAt(H),o(v));)a+=v,H++;v=t.charAt(H),H++,a&&!0===i[v]&&(w=v,Q+=a.length+1)}if(w)if((v=t.charAt(H))===d)Q+=m-Q%m,H++;else if(v===h){for(U=H+m;H<U&&t.charAt(H)===h;)H++,Q++;H===U&&t.charAt(H)===h&&(H-=m-1,Q-=m-1)}else v!==p&&""!==v&&(w=null)}if(w){if(!V&&y!==w)break;_=!0}else q||B||t.charAt(b)!==h?q&&R&&(B=Q>=R.indent||Q>m):B=!0,_=!1,H=b;if(S=t.slice(b,g),k=b===H?S:t.slice(H,g),(w===c||w===l||w===f)&&W.thematicBreak.call(this,e,S,!0))break;if(A=N,N=!r(k).length,B&&R)R.value=R.value.concat(P,S),I=I.concat(P,S),P=[];else if(_)0!==P.length&&(R.value.push(""),R.trail=P.concat()),R={value:[S],indent:Q,trail:[]},O.push(R),I=I.concat(P,S),P=[];else if(N){if(A)break;P.push(S)}else{if(A)break;if(u(z,W,this,[e,S,!0]))break;R.value=R.value.concat(P,S),I=I.concat(P,S),P=[]}H=g+1}j=e(I.join(p)).reset({type:"list",ordered:s,start:G,loose:null,children:[]}),D=this.enterList(),M=this.enterBlock(),L=!1,H=-1,K=O.length;for(;++H<K;)R=O[H].value.join(p),F=e.now(),(R=e(R)(T(this,R,F),j)).loose&&(L=!0),R=O[H].trail.join(p),H!==K-1&&(R+=p),e(R);return D(),M(),j.loose=L,j};var c="*",l="_",f="-",h=" ",p="\n",d="\t",v="x",m=4,y=/\n\n(?!\s*$)/,g=/^\[([ \t]|x|X)][ \t]/,b=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,_=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,w=/^( {1,4}|\t)?/gm,E={};E[c]=!0,E["+"]=!0,E[f]=!0;var x={".":!0},C={};function T(e,t,n){var r,i,o=e.offset,a=null;return t=(e.options.pedantic?k:S).apply(null,arguments),e.options.gfm&&(r=t.match(g))&&(i=r[0].length,a=r[1].toLowerCase()===v,o[n.line]+=i,t=t.slice(i)),{type:"listItem",loose:y.test(t)||t.charAt(t.length-1)===p,checked:a,children:e.tokenizeBlock(t,n)}}function k(e,t,n){var r=e.offset,i=n.line;return t=t.replace(_,o),i=n.line,t.replace(w,o);function o(e){return r[i]=(r[i]||0)+e.length,i++,""}}function S(e,t,n){var r,o,u,c,l,f,d,v=e.offset,m=n.line;for(c=(t=t.replace(b,function(e,t,n,a,s){o=t+n+a,u=s,Number(n)<10&&o.length%2==1&&(n=h+n);return(r=t+i(h,n.length)+a)+u})).split(p),(l=s(t,a(r).indent).split(p))[0]=u,v[m]=(v[m]||0)+o.length,m++,f=0,d=c.length;++f<d;)v[m]=(v[m]||0)+c[f].length-l[f].length,m++;return l.join(p)}C["."]=!0,C[")"]=!0},function(e,t,n){"use strict";e.exports=function(e,t,n){var l,f,h,p,d=-1,v=t.length+1,m="";for(;++d<v&&((l=t.charAt(d))===i||l===o);)m+=l;if(l!==a&&l!==u&&l!==s)return;f=l,m+=l,h=1,p="";for(;++d<v;)if((l=t.charAt(d))===f)h++,m+=p+f,p="";else{if(l!==o)return h>=c&&(!l||l===r)?(m+=p,!!n||e(m)({type:"thematicBreak"})):void 0;p+=l}};var r="\n",i="\t",o=" ",a="*",s="_",u="-",c=3},function(e,t,n){"use strict";e.exports=function(e,t,n){var u,c,l,f=this.options,h=t.length+1,p=-1,d=e.now(),v="",m="";for(;++p<h;){if((u=t.charAt(p))!==o&&u!==i){p--;break}v+=u}l=0;for(;++p<=h;){if((u=t.charAt(p))!==a){p--;break}v+=u,l++}if(l>s)return;if(!l||!f.pedantic&&t.charAt(p+1)===a)return;h=t.length+1,c="";for(;++p<h;){if((u=t.charAt(p))!==o&&u!==i){p--;break}c+=u}if(!f.pedantic&&0===c.length&&u&&u!==r)return;if(n)return!0;v+=c,c="",m="";for(;++p<h&&(u=t.charAt(p))&&u!==r;)if(u===o||u===i||u===a){for(;u===o||u===i;)c+=u,u=t.charAt(++p);for(;u===a;)c+=u,u=t.charAt(++p);for(;u===o||u===i;)c+=u,u=t.charAt(++p);p--}else m+=c+u,c="";return d.column+=v.length,d.offset+=v.length,e(v+=m+c)({type:"heading",depth:l,children:this.tokenizeInline(m,d)})};var r="\n",i="\t",o=" ",a="#",s=6},function(e,t,n){"use strict";var r=n(79),i=n(155);e.exports=function(e,t,n){var c,l,f,h,p,d,v,m,y,g=this.offset,b=this.blockTokenizers,_=this.interruptBlockquote,w=e.now(),E=w.line,x=t.length,C=[],T=[],k=[],S=0;for(;S<x&&((l=t.charAt(S))===s||l===a);)S++;if(t.charAt(S)!==u)return;if(n)return!0;S=0;for(;S<x;){for(h=t.indexOf(o,S),v=S,m=!1,-1===h&&(h=x);S<x&&((l=t.charAt(S))===s||l===a);)S++;if(t.charAt(S)===u?(S++,m=!0,t.charAt(S)===s&&S++):S=v,p=t.slice(S,h),!m&&!r(p)){S=v;break}if(!m&&(f=t.slice(S),i(_,b,this,[e,f,!0])))break;d=v===S?p:t.slice(v,h),k.push(S-v),C.push(d),T.push(p),S=h+1}S=-1,x=k.length,c=e(C.join(o));for(;++S<x;)g[E]=(g[E]||0)+k[S],E++;return y=this.enterBlock(),T=this.tokenizeBlock(T.join(o),w),y(),c({type:"blockquote",children:T})};var o="\n",a="\t",s=" ",u=">"},function(e,t,n){"use strict";var r=n(156);e.exports=function(e,t,n){var f,h,p,d,v,m,y,g,b,_,w,E=this.options,x=t.length+1,C=0,T="";if(!E.gfm)return;for(;C<x&&((p=t.charAt(C))===a||p===o);)T+=p,C++;if(_=C,(p=t.charAt(C))!==s&&p!==u)return;C++,h=p,f=1,T+=p;for(;C<x&&(p=t.charAt(C))===h;)T+=p,f++,C++;if(f<c)return;for(;C<x&&((p=t.charAt(C))===a||p===o);)T+=p,C++;d="",v="";for(;C<x&&(p=t.charAt(C))!==i&&p!==s&&p!==u;)p===a||p===o?v+=p:(d+=v+p,v=""),C++;if((p=t.charAt(C))&&p!==i)return;if(n)return!0;(w=e.now()).column+=T.length,w.offset+=T.length,T+=d,d=this.decode.raw(this.unescape(d),w),v&&(T+=v);v="",g="",b="",m="",y="";for(;C<x;)if(p=t.charAt(C),m+=g,y+=b,g="",b="",p===i){for(m?(g+=p,b+=p):T+=p,v="",C++;C<x&&(p=t.charAt(C))===a;)v+=p,C++;if(g+=v,b+=v.slice(_),!(v.length>=l)){for(v="";C<x&&(p=t.charAt(C))===h;)v+=p,C++;if(g+=v,b+=v,!(v.length<f)){for(v="";C<x&&((p=t.charAt(C))===a||p===o);)g+=p,b+=p,C++;if(!p||p===i)break}}}else m+=p,b+=p,C++;return e(T+=m+g)({type:"code",lang:d||null,value:r(y)})};var i="\n",o="\t",a=" ",s="~",u="`",c=3,l=4},function(e,t,n){"use strict";var r=n(157),i=n(156);e.exports=function(e,t,n){var r,c,l,f=-1,h=t.length,p="",d="",v="",m="";for(;++f<h;)if(r=t.charAt(f),l)if(l=!1,p+=v,d+=m,v="",m="",r===o)v=r,m=r;else for(p+=r,d+=r;++f<h;){if(!(r=t.charAt(f))||r===o){m=r,v=r;break}p+=r,d+=r}else if(r===s&&t.charAt(f+1)===r&&t.charAt(f+2)===r&&t.charAt(f+3)===r)v+=u,f+=3,l=!0;else if(r===a)v+=r,l=!0;else{for(c="";r===a||r===s;)c+=r,r=t.charAt(++f);if(r!==o)break;v+=c+r,m+=r}if(d)return!!n||e(p)({type:"code",lang:null,value:i(d)})};var o="\n",a="\t",s=" ",u=r(s,4)},function(e,t,n){"use strict";var r=n(38);e.exports=function(e,t,n){var i,o,a,s,u=t.charAt(0);if("\n"!==u)return;if(n)return!0;s=1,i=t.length,o=u,a="";for(;s<i&&(u=t.charAt(s),r(u));)a+=u,"\n"===u&&(o+=a,a=""),s++;e(o)}},function(e,t,n){"use strict";function r(e){if("string"==typeof e)return function(e){return function(t){return Boolean(t&&t.type===e)}}(e);if(null===e||void 0===e)return i;if("object"==typeof e)return("length"in e?function(e){var t=function(e){var t=[],n=e.length,i=-1;for(;++i<n;)t[i]=r(e[i]);return t}(e),n=t.length;return function(){var e=-1;for(;++e<n;)if(t[e].apply(this,arguments))return!0;return!1}}:function(e){return function(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}})(e);if("function"==typeof e)return e;throw new Error("Expected function, string, or object as test")}function i(){return!0}e.exports=function e(t,n,i,o,a){var s=null!==o&&void 0!==o;var u=null!==i&&void 0!==i;var c=r(t);if(u&&("number"!=typeof i||i<0||i===1/0))throw new Error("Expected positive finite index or child node");if(s&&(!e(null,o)||!o.children))throw new Error("Expected parent node");if(!n||!n.type||"string"!=typeof n.type)return!1;if(s!==u)throw new Error("Expected both parent and index");return Boolean(c.call(a,n,i,o))}},function(e,t,n){"use strict";var r=n(108);function i(e){delete e.position}function o(e){e.position=void 0}e.exports=function(e,t){return r(e,t?i:o),e}},function(e,t,n){"use strict";var r=n(47),i=n(374);e.exports=function(){var e,t=String(this.file),n={line:1,column:1,offset:0},s=r(n);65279===(t=t.replace(a,o)).charCodeAt(0)&&(t=t.slice(1),s.column++,s.offset++);e={type:"root",children:this.tokenizeBlock(t,s),position:{start:n,end:this.eof||r(n)}},this.options.position||i(e,!0);return e};var o="\n",a=/\r\n|\r/g},function(e){e.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]},function(e,t,n){"use strict";e.exports=a;var r=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],i=r.concat(["~","|"]),o=i.concat(["\n",'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);function a(e){var t=e||{};return t.commonmark?o:t.gfm?i:r}a.default=r,a.gfm=i,a.commonmark=o},function(e,t,n){"use strict";var r=n(47),i=n(377),o=n(214);e.exports=function(e){var t,n,a=this.options;if(null==e)e={};else{if("object"!=typeof e)throw new Error("Invalid value `"+e+"` for setting `options`");e=r(e)}for(t in o){if(null==(n=e[t])&&(n=a[t]),"blocks"!==t&&"boolean"!=typeof n||"blocks"===t&&"object"!=typeof n)throw new Error("Invalid value `"+n+"` for setting `options."+t+"`");e[t]=n}return this.options=e,this.escape=i(e),this}},function(e,t,n){"use strict";e.exports=function(e){return function(t,n){var o,a,s,u,c,l,f=this,h=f.offset,p=[],d=f[e+"Methods"],v=f[e+"Tokenizers"],m=n.line,y=n.column;if(!t)return p;w.now=b,w.file=f.file,g("");for(;t;){for(o=-1,a=d.length,c=!1;++o<a&&(u=d[o],!(s=v[u])||s.onlyAtStart&&!f.atStart||s.notInList&&f.inList||s.notInBlock&&f.inBlock||s.notInLink&&f.inLink||(l=t.length,s.apply(f,[w,t]),!(c=l!==t.length))););c||f.file.fail(new Error("Infinite loop"),w.now())}return f.eof=b(),p;function g(e){for(var t=-1,n=e.indexOf("\n");-1!==n;)m++,t=n,n=e.indexOf("\n",n+1);-1===t?y+=e.length:y=e.length-t,m in h&&(-1!==t?y+=h[m]:y<=h[m]&&(y=h[m]+1))}function b(){var e={line:m,column:y};return e.offset=f.toOffset(e),e}function _(){var e=b();return function(t,n){var r=t.position,i=r?r.start:e,o=[],a=r&&r.end.line,s=e.line;if(t.position=new function(e){this.start=e,this.end=b()}(i),r&&n&&r.indent){if(o=r.indent,a<s){for(;++a<s;)o.push((h[a]||0)+1);o.push(e.column)}n=o.concat(n)}return t.position.indent=n||[],t}}function w(e){var n=function(){var e=[],t=m+1;return function(){for(var n=m+1;t<n;)e.push((h[t]||0)+1),t++;return e}}(),o=_(),a=b();return function(e){t.substring(0,e.length)!==e&&f.file.fail(new Error("Incorrectly eaten value: please report this warning on http://git.io/vg5Ft"),b())}(e),s.reset=u,u.test=c,s.test=c,t=t.substring(e.length),g(e),n=n(),s;function s(e,t){return o(function(e,t){var n=t?t.children:p,o=n[n.length-1];o&&e.type===o.type&&e.type in r&&i(o)&&i(e)&&(e=r[e.type].call(f,o,e));e!==o&&n.push(e);f.atStart&&0!==p.length&&f.exitStart();return e}(o(e),t),n)}function u(){var n=s.apply(null,arguments);return m=a.line,y=a.column,t=e+t,n}function c(){var n=o({});return m=a.line,y=a.column,t=e+t,n.position}}}};var r={text:function(e,t){return e.value+=t.value,e},blockquote:function(e,t){if(this.options.commonmark)return t;return e.children=e.children.concat(t.children),e}};function i(e){var t,n;return"text"!==e.type||!e.position||(t=e.position.start,n=e.position.end,t.line!==n.line||n.column-t.column===e.value.length)}},function(e,t,n){"use strict";var r=n(215),i=n(109);e.exports=function(e){return r(e)||i(e)}},function(e,t,n){"use strict";e.exports=function(e){var t="string"==typeof e?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}},function(e){e.exports={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"}},function(e){e.exports={AElig:"Æ",AMP:"&",Aacute:"Á",Acirc:"Â",Agrave:"À",Aring:"Å",Atilde:"Ã",Auml:"Ä",COPY:"©",Ccedil:"Ç",ETH:"Ð",Eacute:"É",Ecirc:"Ê",Egrave:"È",Euml:"Ë",GT:">",Iacute:"Í",Icirc:"Î",Igrave:"Ì",Iuml:"Ï",LT:"<",Ntilde:"Ñ",Oacute:"Ó",Ocirc:"Ô",Ograve:"Ò",Oslash:"Ø",Otilde:"Õ",Ouml:"Ö",QUOT:'"',REG:"®",THORN:"Þ",Uacute:"Ú",Ucirc:"Û",Ugrave:"Ù",Uuml:"Ü",Yacute:"Ý",aacute:"á",acirc:"â",acute:"´",aelig:"æ",agrave:"à",amp:"&",aring:"å",atilde:"ã",auml:"ä",brvbar:"¦",ccedil:"ç",cedil:"¸",cent:"¢",copy:"©",curren:"¤",deg:"°",divide:"÷",eacute:"é",ecirc:"ê",egrave:"è",eth:"ð",euml:"ë",frac12:"½",frac14:"¼",frac34:"¾",gt:">",iacute:"í",icirc:"î",iexcl:"¡",igrave:"ì",iquest:"¿",iuml:"ï",laquo:"«",lt:"<",macr:"¯",micro:"µ",middot:"·",nbsp:" ",not:"¬",ntilde:"ñ",oacute:"ó",ocirc:"ô",ograve:"ò",ordf:"ª",ordm:"º",oslash:"ø",otilde:"õ",ouml:"ö",para:"¶",plusmn:"±",pound:"£",quot:'"',raquo:"»",reg:"®",sect:"§",shy:"­",sup1:"¹",sup2:"²",sup3:"³",szlig:"ß",thorn:"þ",times:"×",uacute:"ú",ucirc:"û",ugrave:"ù",uml:"¨",uuml:"ü",yacute:"ý",yen:"¥",yuml:"ÿ"}},function(e){e.exports={AEli:"Æ",AElig:"Æ",AM:"&",AMP:"&",Aacut:"Á",Aacute:"Á",Abreve:"Ă",Acir:"Â",Acirc:"Â",Acy:"А",Afr:"𝔄",Agrav:"À",Agrave:"À",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"𝔸",ApplyFunction:"⁡",Arin:"Å",Aring:"Å",Ascr:"𝒜",Assign:"≔",Atild:"Ã",Atilde:"Ã",Aum:"Ä",Auml:"Ä",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"𝔅",Bopf:"𝔹",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COP:"©",COPY:"©",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedi:"Ç",Ccedil:"Ç",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"¸",CenterDot:"·",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"𝒞",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"𝔇",DiacriticalAcute:"´",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"𝔻",Dot:"¨",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"¨",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"𝒟",Dstrok:"Đ",ENG:"Ŋ",ET:"Ð",ETH:"Ð",Eacut:"É",Eacute:"É",Ecaron:"Ě",Ecir:"Ê",Ecirc:"Ê",Ecy:"Э",Edot:"Ė",Efr:"𝔈",Egrav:"È",Egrave:"È",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"𝔼",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Eum:"Ë",Euml:"Ë",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"𝔉",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"𝔽",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",G:">",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"𝔊",Gg:"⋙",Gopf:"𝔾",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"𝒢",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacut:"Í",Iacute:"Í",Icir:"Î",Icirc:"Î",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrav:"Ì",Igrave:"Ì",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"⁣",InvisibleTimes:"⁢",Iogon:"Į",Iopf:"𝕀",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Ium:"Ï",Iuml:"Ï",Jcirc:"Ĵ",Jcy:"Й",Jfr:"𝔍",Jopf:"𝕁",Jscr:"𝒥",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"𝔎",Kopf:"𝕂",Kscr:"𝒦",LJcy:"Љ",L:"<",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"𝔏",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"𝕃",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"𝔐",MinusPlus:"∓",Mopf:"𝕄",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"​",NegativeThickSpace:"​",NegativeThinSpace:"​",NegativeVeryThinSpace:"​",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"𝔑",NoBreak:"⁠",NonBreakingSpace:" ",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"𝒩",Ntild:"Ñ",Ntilde:"Ñ",Nu:"Ν",OElig:"Œ",Oacut:"Ó",Oacute:"Ó",Ocir:"Ô",Ocirc:"Ô",Ocy:"О",Odblac:"Ő",Ofr:"𝔒",Ograv:"Ò",Ograve:"Ò",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"𝕆",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"𝒪",Oslas:"Ø",Oslash:"Ø",Otild:"Õ",Otilde:"Õ",Otimes:"⨷",Oum:"Ö",Ouml:"Ö",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"𝔓",Phi:"Φ",Pi:"Π",PlusMinus:"±",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"𝒫",Psi:"Ψ",QUO:'"',QUOT:'"',Qfr:"𝔔",Qopf:"ℚ",Qscr:"𝒬",RBarr:"⤐",RE:"®",REG:"®",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"𝔖",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"𝕊",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"𝒮",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THOR:"Þ",THORN:"Þ",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:"\t",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"𝔗",Therefore:"∴",Theta:"Θ",ThickSpace:"  ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"𝕋",TripleDot:"⃛",Tscr:"𝒯",Tstrok:"Ŧ",Uacut:"Ú",Uacute:"Ú",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucir:"Û",Ucirc:"Û",Ucy:"У",Udblac:"Ű",Ufr:"𝔘",Ugrav:"Ù",Ugrave:"Ù",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"𝕌",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"𝒰",Utilde:"Ũ",Uum:"Ü",Uuml:"Ü",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"𝔙",Vopf:"𝕍",Vscr:"𝒱",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"𝔚",Wopf:"𝕎",Wscr:"𝒲",Xfr:"𝔛",Xi:"Ξ",Xopf:"𝕏",Xscr:"𝒳",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacut:"Ý",Yacute:"Ý",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"𝔜",Yopf:"𝕐",Yscr:"𝒴",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"​",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"𝒵",aacut:"á",aacute:"á",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acir:"â",acirc:"â",acut:"´",acute:"´",acy:"а",aeli:"æ",aelig:"æ",af:"⁡",afr:"𝔞",agrav:"à",agrave:"à",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",am:"&",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"Å",angzarr:"⍼",aogon:"ą",aopf:"𝕒",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",arin:"å",aring:"å",ascr:"𝒶",ast:"*",asymp:"≈",asympeq:"≍",atild:"ã",atilde:"ã",aum:"ä",auml:"ä",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"𝔟",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"𝕓",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvba:"¦",brvbar:"¦",bscr:"𝒷",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedi:"ç",ccedil:"ç",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedi:"¸",cedil:"¸",cemptyv:"⦲",cen:"¢",cent:"¢",centerdot:"·",cfr:"𝔠",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"®",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"𝕔",coprod:"∐",cop:"©",copy:"©",copysr:"℗",crarr:"↵",cross:"✗",cscr:"𝒸",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curre:"¤",curren:"¤",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",de:"°",deg:"°",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"𝔡",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"¨",digamma:"ϝ",disin:"⋲",div:"÷",divid:"÷",divide:"÷",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"𝕕",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"𝒹",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacut:"é",eacute:"é",easter:"⩮",ecaron:"ě",ecir:"ê",ecirc:"ê",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"𝔢",eg:"⪚",egrav:"è",egrave:"è",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"𝕖",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",et:"ð",eth:"ð",eum:"ë",euml:"ë",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"𝔣",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"𝕗",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac1:"¼",frac12:"½",frac13:"⅓",frac14:"¼",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac3:"¾",frac34:"¾",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"𝒻",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"𝔤",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"𝕘",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",g:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"½",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"𝔥",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"𝕙",horbar:"―",hscr:"𝒽",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacut:"í",iacute:"í",ic:"⁣",icir:"î",icirc:"î",icy:"и",iecy:"е",iexc:"¡",iexcl:"¡",iff:"⇔",ifr:"𝔦",igrav:"ì",igrave:"ì",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"𝕚",iota:"ι",iprod:"⨼",iques:"¿",iquest:"¿",iscr:"𝒾",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"⁢",itilde:"ĩ",iukcy:"і",ium:"ï",iuml:"ï",jcirc:"ĵ",jcy:"й",jfr:"𝔧",jmath:"ȷ",jopf:"𝕛",jscr:"𝒿",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"𝔨",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"𝕜",kscr:"𝓀",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laqu:"«",laquo:"«",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"𝔩",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"𝕝",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"‎",lrtri:"⊿",lsaquo:"‹",lscr:"𝓁",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",l:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",mac:"¯",macr:"¯",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"𝔪",mho:"℧",micr:"µ",micro:"µ",mid:"∣",midast:"*",midcir:"⫰",middo:"·",middot:"·",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"𝕞",mp:"∓",mscr:"𝓂",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbs:" ",nbsp:" ",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"𝔫",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"𝕟",no:"¬",not:"¬",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"𝓃",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntild:"ñ",ntilde:"ñ",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacut:"ó",oacute:"ó",oast:"⊛",ocir:"ô",ocirc:"ô",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"𝔬",ogon:"˛",ograv:"ò",ograve:"ò",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"𝕠",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"º",order:"ℴ",orderof:"ℴ",ordf:"ª",ordm:"º",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslas:"ø",oslash:"ø",osol:"⊘",otild:"õ",otilde:"õ",otimes:"⊗",otimesas:"⨶",oum:"ö",ouml:"ö",ovbar:"⌽",par:"¶",para:"¶",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"𝔭",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusm:"±",plusmn:"±",plussim:"⨦",plustwo:"⨧",pm:"±",pointint:"⨕",popf:"𝕡",poun:"£",pound:"£",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"𝓅",psi:"ψ",puncsp:" ",qfr:"𝔮",qint:"⨌",qopf:"𝕢",qprime:"⁗",qscr:"𝓆",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quo:'"',quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raqu:"»",raquo:"»",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",re:"®",reg:"®",rfisht:"⥽",rfloor:"⌋",rfr:"𝔯",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"‏",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"𝕣",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"𝓇",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sec:"§",sect:"§",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"𝔰",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",sh:"­",shy:"­",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"𝕤",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"𝓈",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"¯",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szli:"ß",szlig:"ß",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"𝔱",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thor:"þ",thorn:"þ",tilde:"˜",time:"×",times:"×",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"𝕥",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"𝓉",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacut:"ú",uacute:"ú",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucir:"û",ucirc:"û",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"𝔲",ugrav:"ù",ugrave:"ù",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",um:"¨",uml:"¨",uogon:"ų",uopf:"𝕦",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"𝓊",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uum:"ü",uuml:"ü",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"𝔳",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"𝕧",vprop:"∝",vrtri:"⊳",vscr:"𝓋",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"𝔴",wopf:"𝕨",wp:"℘",wr:"≀",wreath:"≀",wscr:"𝓌",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"𝔵",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"𝕩",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"𝓍",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacut:"ý",yacute:"ý",yacy:"я",ycirc:"ŷ",ycy:"ы",ye:"¥",yen:"¥",yfr:"𝔶",yicy:"ї",yopf:"𝕪",yscr:"𝓎",yucy:"ю",yum:"ÿ",yuml:"ÿ",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"𝔷",zhcy:"ж",zigrarr:"⇝",zopf:"𝕫",zscr:"𝓏",zwj:"‍",zwnj:"‌"}},function(e,t,n){"use strict";var r=n(47),i=n(158);e.exports=function(e){return o.raw=function(e,o,a){return i(e,r(a,{position:t(o),warning:n}))},o;function t(t){for(var n=e.offset,r=t.line,i=[];++r&&r in n;)i.push((n[r]||0)+1);return{start:t,indent:i}}function n(t,n,r){3!==r&&e.file.message(t,n)}function o(r,o,a){i(r,{position:t(o),warning:n,text:a,reference:a,textContext:e,referenceContext:e})}}},function(e,t,n){"use strict";e.exports=function(e,t){return function(n){var r,i=0,o=n.indexOf("\\"),a=e[t],s=[];for(;-1!==o;)s.push(n.slice(i,o)),i=o+1,(r=n.charAt(i))&&-1!==a.indexOf(r)||s.push("\\"),o=n.indexOf("\\",i);return s.push(n.slice(i)),s.join("")}}},function(e,t,n){"use strict";e.exports=function(e){var t=function(e){var t=[],n=e.indexOf("\n");for(;-1!==n;)t.push(n+1),n=e.indexOf("\n",n+1);return t.push(e.length+1),t}(String(e));return{toPosition:function(e){return function(t){var n=-1,r=e.length;if(t<0)return{};for(;++n<r;)if(e[n]>t)return{line:n+1,column:t-(e[n-1]||0)+1,offset:t};return{}}}(t),toOffset:function(e){return function(t){var n=t&&t.line,r=t&&t.column;if(!isNaN(n)&&!isNaN(r)&&n-1 in e)return(e[n-2]||0)+r-1||0;return-1}}(t)}}},function(e,t,n){"use strict";e.exports=function(e,t,n){return function(){var r=n||this,i=r[e];return r[e]=!t,function(){r[e]=i}}}},function(e,t,n){"use strict";var r=n(47),i=n(388),o=n(387),a=n(386),s=n(385),u=n(379);function c(e,t){this.file=t,this.offset={},this.options=r(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=o(t).toOffset,this.unescape=a(this,"escape"),this.decode=s(this)}e.exports=c;var l=c.prototype;function f(e){var t,n=[];for(t in e)n.push(t);return n}l.setOptions=n(378),l.parse=n(375),l.options=n(214),l.exitStart=i("atStart",!0),l.enterList=i("inList",!1),l.enterLink=i("inLink",!1),l.enterBlock=i("inBlock",!1),l.interruptParagraph=[["thematicBreak"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}],["footnote",{commonmark:!1}]],l.blockTokenizers={newline:n(372),indentedCode:n(371),fencedCode:n(370),blockquote:n(369),atxHeading:n(368),thematicBreak:n(367),list:n(366),setextHeading:n(364),html:n(363),footnote:n(362),definition:n(360),table:n(359),paragraph:n(358)},l.inlineTokenizers={escape:n(357),autoLink:n(355),url:n(354),html:n(352),link:n(351),reference:n(350),strong:n(349),emphasis:n(347),deletion:n(344),code:n(342),break:n(340),text:n(338)},l.blockMethods=f(l.blockTokenizers),l.inlineMethods=f(l.inlineTokenizers),l.tokenizeBlock=u("block"),l.tokenizeInline=u("inline"),l.tokenizeFactory=u},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){"use strict";var r=n(47),i=n(390);e.exports=function(e){var t,n,o;for(n in i(s,e),i(a,s),t=s.prototype)(o=t[n])&&"object"==typeof o&&(t[n]="concat"in o?o.concat():r(o));return s;function a(t){return e.apply(this,t)}function s(){return this instanceof s?e.apply(this,arguments):new a(arguments)}}},function(e,t,n){"use strict";var r=n(391),i=n(47),o=n(389);function a(e){var t=r(o);t.prototype.options=i(t.prototype.options,this.data("settings"),e),this.Parser=t}e.exports=a,a.Parser=o},function(e,t,n){"use strict";var r=Object.prototype.toString;e.exports=function(e){var t;return"[object Object]"===r.call(e)&&(null===(t=Object.getPrototypeOf(e))||t===Object.getPrototypeOf({}))}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return"[object String]"===n.call(e)}},function(e,t,n){"use strict";e.exports=function(){var e=[],t={};return t.run=function(){var t=-1,n=r.call(arguments,0,-1),i=arguments[arguments.length-1];if("function"!=typeof i)throw new Error("Expected function as last argument, not "+i);(function o(a){var s=e[++t],u=r.call(arguments,0),c=u.slice(1),l=n.length,f=-1;if(a)i(a);else{for(;++f<l;)null!==c[f]&&void 0!==c[f]||(c[f]=n[f]);n=c,s?function(e,t){var n;return function(){var t,a=r.call(arguments,0),s=e.length>a.length;s&&a.push(i);try{t=e.apply(null,a)}catch(e){if(s&&n)throw e;return i(e)}s||(t&&"function"==typeof t.then?t.then(o,i):t instanceof Error?i(t):o(t))};function i(){n||(n=!0,t.apply(null,arguments))}function o(e){i(null,e)}}(s,o).apply(null,n):i.apply(null,[null].concat(n))}}).apply(null,[null].concat(n))},t.use=function(n){if("function"!=typeof n)throw new Error("Expected `fn` to be a function, not "+n);return e.push(n),t},t};var r=[].slice},function(e,t){function n(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}

/*!

* Determine if an object is a Buffer
*
* @author   Feross Aboukhadijeh <https://feross.org>
* @license  MIT
*/

e.exports=function(e){return null!=e&&(n(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&n(e.slice(0,0))}(e)||!!e._isBuffer)}},function(e,t,n){"use strict";var r=n(216);e.exports=function(e,t){if("string"!=typeof e)return e;if(0===e.length)return e;var n=r.basename(e,r.extname(e))+t;return r.join(r.dirname(e),n)}},function(e,t,n){"use strict";(function(t){var r=n(216),i=n(397),o=n(396);e.exports=c;var a={}.hasOwnProperty,s=c.prototype;s.toString=function(e){var t=this.contents||"";return o(t)?t.toString(e):String(t)};var u=["history","path","basename","stem","extname","dirname"];function c(e){var n,r,i;if(e){if("string"==typeof e||o(e))e={contents:e};else if("message"in e&&"messages"in e)return e}else e={};if(!(this instanceof c))return new c(e);for(this.data={},this.messages=[],this.history=[],this.cwd=t.cwd(),r=-1,i=u.length;++r<i;)n=u[r],a.call(e,n)&&(this[n]=e[n]);for(n in e)-1===u.indexOf(n)&&(this[n]=e[n])}function l(e,t){if(-1!==e.indexOf(r.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+r.sep+"`")}function f(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function h(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}Object.defineProperty(s,"path",{get:function(){return this.history[this.history.length-1]},set:function(e){f(e,"path"),e!==this.path&&this.history.push(e)}}),Object.defineProperty(s,"dirname",{get:function(){return"string"==typeof this.path?r.dirname(this.path):void 0},set:function(e){h(this.path,"dirname"),this.path=r.join(e||"",this.basename)}}),Object.defineProperty(s,"basename",{get:function(){return"string"==typeof this.path?r.basename(this.path):void 0},set:function(e){f(e,"basename"),l(e,"basename"),this.path=r.join(this.dirname||"",e)}}),Object.defineProperty(s,"extname",{get:function(){return"string"==typeof this.path?r.extname(this.path):void 0},set:function(e){var t=e||"";if(l(t,"extname"),h(this.path,"extname"),t){if("."!==t.charAt(0))throw new Error("`extname` must start with `.`");if(-1!==t.indexOf(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=i(this.path,t)}}),Object.defineProperty(s,"stem",{get:function(){return"string"==typeof this.path?r.basename(this.path,this.extname):void 0},set:function(e){f(e,"stem"),l(e,"stem"),this.path=r.join(this.dirname||"",e+(this.extname||""))}})}).call(this,n(88))},function(e,t,n){"use strict";var r={}.hasOwnProperty;function i(e){return e&&"object"==typeof e||(e={}),a(e.line)+":"+a(e.column)}function o(e){return e&&"object"==typeof e||(e={}),i(e.start)+"-"+i(e.end)}function a(e){return e&&"number"==typeof e?e:1}e.exports=function(e){if(!e||"object"!=typeof e)return null;if(r.call(e,"position")||r.call(e,"type"))return o(e.position);if(r.call(e,"start")||r.call(e,"end"))return o(e);if(r.call(e,"line")||r.call(e,"column"))return i(e);return null}},function(e,t,n){"use strict";var r=n(399);function i(){}e.exports=a,i.prototype=Error.prototype,a.prototype=new i;var o=a.prototype;function a(e,t,n){var i,o,a;"string"==typeof t&&(n=t,t=null),i=function(e){var t,n=[null,null];"string"==typeof e&&(-1===(t=e.indexOf(":"))?n[1]=e:(n[0]=e.slice(0,t),n[1]=e.slice(t+1)));return n}(n),o=r(t)||"1:1",a={start:{line:null,column:null},end:{line:null,column:null}},t&&t.position&&(t=t.position),t&&(t.start?(a=t,t=t.start):a.start=t),e.stack&&(this.stack=e.stack,e=e.message),this.message=e,this.name=o,this.reason=e,this.line=t?t.line:null,this.column=t?t.column:null,this.location=a,this.source=i[0],this.ruleId=i[1]}o.file="",o.name="",o.reason="",o.message="",o.stack="",o.fatal=null,o.column=null,o.line=null},function(e,t,n){"use strict";var r=n(400),i=n(398);e.exports=i;var o=i.prototype;function a(e,t,n){var i=this.path,o=new r(e,t,n);return i&&(o.name=i+":"+o.name,o.file=i),o.fatal=!1,this.messages.push(o),o}o.message=a,o.info=function(){var e=this.message.apply(this,arguments);return e.fatal=null,e},o.fail=function(){var e=this.message.apply(this,arguments);throw e.fatal=!0,e},o.warn=a},function(e,t,n){"use strict";e.exports=function(e){if(e)throw e}},function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===i.call(e)},a=function(e){if(!e||"[object Object]"!==i.call(e))return!1;var t,n=r.call(e,"constructor"),o=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!o)return!1;for(t in e);return void 0===t||r.call(e,t)};e.exports=function e(){var t,n,r,i,s,u,c=arguments[0],l=1,f=arguments.length,h=!1;for("boolean"==typeof c&&(h=c,c=arguments[1]||{},l=2),(null==c||"object"!=typeof c&&"function"!=typeof c)&&(c={});l<f;++l)if(null!=(t=arguments[l]))for(n in t)r=c[n],c!==(i=t[n])&&(h&&i&&(a(i)||(s=o(i)))?(s?(s=!1,u=r&&o(r)?r:[]):u=r&&a(r)?r:{},c[n]=e(h,u,i)):void 0!==i&&(c[n]=i));return c}},function(e,t,n){"use strict";var r=n(403),i=n(402),o=n(401),a=n(395),s=n(394),u=n(393);e.exports=function e(){var t=[];var n=a();var g={};var b=!1;var _=-1;w.data=function(e,t){if(s(e))return 2===arguments.length?(v("data",b),g[e]=t,w):l.call(g,e)&&g[e]||null;if(e)return v("data",b),g=e,w;return g};w.freeze=E;w.attachers=t;w.use=function(e){var n;if(v("use",b),null===e||void 0===e);else if("function"==typeof e)s.apply(null,arguments);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?a(e):i(e)}n&&(g.settings=r(g.settings||{},n));return w;function i(e){a(e.plugins),e.settings&&(n=r(n||{},e.settings))}function o(e){if("function"==typeof e)s(e);else{if("object"!=typeof e)throw new Error("Expected usable value, not `"+e+"`");"length"in e?s.apply(null,e):i(e)}}function a(e){var t,n;if(null===e||void 0===e);else{if(!("object"==typeof e&&"length"in e))throw new Error("Expected a list of plugins, not `"+e+"`");for(t=e.length,n=-1;++n<t;)o(e[n])}}function s(e,n){var i=function(e){var n,r=t.length,i=-1;for(;++i<r;)if((n=t[i])[0]===e)return n}(e);i?(u(i[1])&&u(n)&&(n=r(i[1],n)),i[1]=n):t.push(c.call(arguments))}};w.parse=function(e){var t,n=o(e);if(E(),p("parse",t=w.Parser),h(t))return new t(String(n),n).parse();return t(String(n),n)};w.stringify=function(e,t){var n,r=o(t);if(E(),d("stringify",n=w.Compiler),m(e),h(n))return new n(e,r).compile();return n(e,r)};w.run=x;w.runSync=function(e,t){var n,r=!1;return x(e,t,function(e,t){r=!0,i(e),n=t}),y("runSync","run",r),n};w.process=C;w.processSync=function(e){var t,n=!1;return E(),p("processSync",w.Parser),d("processSync",w.Compiler),C(t=o(e),function(e){n=!0,i(e)}),y("processSync","process",n),t};return w;function w(){for(var n=e(),i=t.length,o=-1;++o<i;)n.use.apply(null,t[o]);return n.data(r(!0,{},g)),n}function E(){var e,r,i,o;if(b)return w;for(;++_<t.length;)e=t[_],r=e[0],i=e[1],o=null,!1!==i&&(!0===i&&(e[1]=void 0),"function"==typeof(o=r.apply(w,e.slice(1)))&&n.use(o));return b=!0,_=1/0,w}function x(e,t,r){if(m(e),E(),r||"function"!=typeof t||(r=t,t=null),!r)return new Promise(i);function i(i,a){n.run(e,o(t),function(t,n,o){n=n||e,t?a(t):i?i(n):r(null,n,o)})}i(null,r)}function C(e,t){if(E(),p("process",w.Parser),d("process",w.Compiler),!t)return new Promise(n);function n(n,r){var i=o(e);f.run(w,{file:i},function(e){e?r(e):n?n(i):t(null,i)})}n(null,t)}}().freeze();var c=[].slice,l={}.hasOwnProperty,f=a().use(function(e,t){t.tree=e.parse(t.file)}).use(function(e,t,n){e.run(t.tree,t.file,function(e,r,i){e?n(e):(t.tree=r,t.file=i,n())})}).use(function(e,t){t.file.contents=e.stringify(t.tree,t.file)});function h(e){return"function"==typeof e&&function(e){var t;for(t in e)return!0;return!1}(e.prototype)}function p(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Parser`")}function d(e,t){if("function"!=typeof t)throw new Error("Cannot `"+e+"` without `Compiler`")}function v(e,t){if(t)throw new Error(["Cannot invoke `"+e+"` on a frozen processor.\nCreate a new ","processor first, by invoking it: use `processor()` instead of ","`processor`."].join(""))}function m(e){if(!e||!s(e.type))throw new Error("Expected node, got `"+e+"`")}function y(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={content:{abstractSegment:"",statisticSegment:{title:"Amount spent treating *C. Diff.* by the NHS",value:"£103,990,800"},threePanelGrid:{panel1:{content:"*Clostridium difficile* infection is the most common cause of antibiotic-associated diarrhoea in the Western World and is a big problem in hospitals and care-facilities. The disease symptoms are caused by two major toxins, TcdA and TcdB. The use of broad-spectrum antibiotics causes a reduction in the natural diversity of the gut microbiota allowing *C. difficile* to take advantage. It is thought that non-toxigenic *C. difficile* present in the gut microbiota could act as a possible probiotic, out-competing toxigenic *C. difficile*.",title:"What is *C. difficile* infection?"},panel2:{content:"A consequence of antibiotic misuse and the capability of bacteria to readily evolve has allowed antibiotic resistance to become a worldwide major dilemma. Each year in the US alone 2 million people are subject to infection from antibiotic resistant bacteria. Currently *C. difficile* is only treatable with a handful of antibiotics which is problematic when antibiotic use is a major risk factor for the infection and in the view of the global concern over antibiotic resistance. The use of bacteriophages has been proposed as a major alternative treatment for many diseases including *C. difficile* infection.",title:"What is the problem?"},panel3:{content:"The goal of our project is to engineer a phage which will infect *C. difficile* and express genetic constructs designed to suppress toxin production. We will pursue two strategies to achieve this: asRNA and dCas9, both of which will target the toxin genes,tcdA and tcdB. Ultimately we aim to produce a highly specific phage therapeutic which will reduce toxigenicity of resident strains of *C. difficile* without significantly affecting the native gut microbiota.",title:"What are we going to do?"}}},href:"/",subtitle:"Engineering bacteriophage to silence toxin expression in *Clostridium difficile*",title:"Team Nottingham"}},function(e,t,n){(t=e.exports=n(111)(!0)).push([e.i,".Home_pageHeader_B_ekbgPPnqW8er8XvLnwf{margin-top:2em;text-align:left;padding:1em}","",{version:3,sources:["/Users/hassan-alubeidi/igem/src/components/Home/Home.css"],names:[],mappings:"AAAA,uCACC,eAAe,AACf,gBAAgB,AAChB,WAAY,CACZ",file:"Home.css",sourcesContent:[".pageHeader {\n\tmargin-top:2em;\n\ttext-align:left;\n\tpadding:1em;\n}"],sourceRoot:""}]),t.locals={pageHeader:"Home_pageHeader_B_ekbgPPnqW8er8XvLnwf"}},function(e,t,n){var r=n(406);"string"==typeof r&&(r=e.i,r,"");var i={hmr:!0,transform:void 0,insertInto:void 0};n(110)(r,i);r.locals&&(e.exports=r.locals)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=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}}(),o=n(0),a=(r=o)&&r.__esModule?r:{default:r},s=n(33);var u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={value:n.props.value},n.handleChange=function(e){n.setState({value:e.target.value})},n}return function(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)}(t,o.Component),i(t,[{key:"render",value:function(){var e=this;return a.default.createElement("div",null,a.default.createElement(s.Modal,{size:"small",trigger:this.props.trigger,closeIcon:!0},a.default.createElement(s.Modal.Header,null,"Edit - ",this.props.name),a.default.createElement(s.Modal.Content,null,a.default.createElement(s.Form,null,a.default.createElement(s.Form.Field,null,a.default.createElement("label",null,this.props.name),a.default.createElement("input",{value:this.state.value,onChange:this.handleChange})))),a.default.createElement(s.Modal.Actions,null,a.default.createElement(s.Button,null,"Cancel"),a.default.createElement(s.Button,{color:"blue",onClick:function(){return e.props.update(e.state.value)}},a.default.createElement(s.Icon,{name:"checkmark"})," Submit"))))}}]),t}();t.default=u},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=h(i),a=h(n(54)),s=h(n(64)),u=(h(n(408)),n(33)),c=(h(n(407)),h(n(405))),l=h(n(159)),f=h(n(107));function h(e){return e&&e.__esModule?e:{default:e}}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={editModal:null,showEditModal:!1,homeData:c.default},n.editElement=function(e,t){e.stopPropagation(),e.shiftKey&&n.setState({editModal:t,showEditModal:!0})},n}return function(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)}(t,i.Component),r(t,[{key:"componentDidMount",value:function(){this.setState({homedata:c.default})}},{key:"scrollToElementRef",value:function(e){this[e].scrollIntoView()}},{key:"render",value:function(){var e,t=this;return o.default.createElement("div",null,this.state.editModal,o.default.createElement(a.default,{color:"navy"},o.default.createElement(s.default,{header:o.default.createElement("div",{onClick:function(e){return t.editElement(e)}},o.default.createElement("div",null,o.default.createElement(l.default,{source:this.state.homeData.title}))),subheader:o.default.createElement(l.default,{source:this.state.homeData.subtitle}),scrollTarget:function(){return t.scrollToElementRef("whatWhyHow")}})),o.default.createElement("a",{ref:function(e){return t.whatWhyHow=e}}),o.default.createElement(a.default,{color:"white",containerStyle:{padding:"50px",paddingBottom:"65px"}},o.default.createElement(u.Grid,{stackable:!0,columns:3,divided:!0},o.default.createElement(u.Grid.Row,{style:{marginTop:"2em"}},o.default.createElement(u.Grid.Column,null,o.default.createElement(u.Header,null,o.default.createElement(l.default,{source:this.state.homeData.content.threePanelGrid.panel1.title})),o.default.createElement("p",{style:{textAlign:"left",padding:"2em"}},o.default.createElement(l.default,{source:this.state.homeData.content.threePanelGrid.panel1.content}))),o.default.createElement(u.Grid.Column,null,o.default.createElement(u.Header,null,o.default.createElement(l.default,{source:this.state.homeData.content.threePanelGrid.panel2.title})),o.default.createElement("p",{style:{textAlign:"left",padding:"2em"}},o.default.createElement(l.default,{source:this.state.homeData.content.threePanelGrid.panel2.content}))),o.default.createElement(u.Grid.Column,null,o.default.createElement(u.Header,null,o.default.createElement(l.default,{source:this.state.homeData.content.threePanelGrid.panel3.title})),o.default.createElement("p",{style:{textAlign:"left",padding:"2em"}},o.default.createElement(l.default,{source:this.state.homeData.content.threePanelGrid.panel3.content})))))),o.default.createElement(a.default,{color:"dark",id:"what-why-how"},o.default.createElement(u.Grid,(p(e={stackable:!0,style:{paddingBottom:"2.5em"},compact:!0,verticalAlign:"middle",columns:1},"style",{padding:"40px 0px 80px 0px"}),p(e,"inverted",!0),e),o.default.createElement(u.Grid.Row,null,o.default.createElement(u.Grid.Column,null,o.default.createElement(u.Statistic,{inverted:!0},o.default.createElement(u.Statistic.Value,null,o.default.createElement(l.default,{source:this.state.homeData.content.statisticSegment.value})),o.default.createElement(u.Statistic.Label,{style:{marginTop:"1em",color:"#9db4da"}},o.default.createElement(l.default,{source:this.state.homeData.content.statisticSegment.title}))))))),o.default.createElement(u.Modal,{size:"large",trigger:o.default.createElement(u.Button,{fluid:!0,color:"purple",style:{borderRadius:"0px",display:"none"}},"Edit page")},o.default.createElement(u.Modal.Header,null,"Edit Page - Home"),o.default.createElement(u.Modal.Content,null,o.default.createElement(f.default,{style:{fontFamily:"inherit"},src:this.state.homeData,displayDataTypes:!1,enableClipboard:!1,displayObjectSize:!1,onEdit:function(e){t.setState({homeData:e.updated_src}),fetch("http://localhost:5000/",{method:"POST",headers:{"user-agent":"Mozilla/4.0 MDN Example","content-type":"application/json"},body:JSON.stringify(e.updated_src)}).then(function(e){return console.log(e)})}}))))}}]),t}();t.default=d},function(e,t){e.exports=function(e){var t="undefined"!=typeof window&&window.location;if(!t)throw new Error("fixUrls requires window.location");if(!e||"string"!=typeof e)return e;var n=t.protocol+"//"+t.host,r=n+t.pathname.replace(/\/[^\/]*$/,"/");return e.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(e,t){var i,o=t.trim().replace(/^"(.*)"$/,function(e,t){return t}).replace(/^'(.*)'$/,function(e,t){return t});return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(o)?e:(i=0===o.indexOf("//")?o:0===o.indexOf("/")?n+o:r+o.replace(/^\.\//,""),"url("+JSON.stringify(i)+")")})}},function(e,t,n){(t=e.exports=n(111)(!0)).push([e.i,".PageCard_orangePageCard_2Sr8WGHsk0ceS6U8gK2mUS{color:#fff;min-width:100vw;background-color:#f25d53}.PageCard_redPageCard_SMaxG91MHRyuY9YDewJRT{color:#fff;min-width:100vw;background-color:#c23616}.PageCard_yellowPageCard_4AcGSIS3z3c1yjVGQI_Jf{color:#fff;min-width:100vw;background-color:#e1b12c}.PageCard_bluePageCard_1s7upKE6DVXL5_Cct455oF{color:#fff;min-width:100vw;background-color:#0097e6}.PageCard_navyPageCard_3yXn1Tq7P7WX6QdWlG-n36{color:#fff;min-width:100vw;background-color:#192a56}.PageCard_greyPageCard_3kHRNDSY5C4lHR_KTlYzd2{min-width:100vw;background-color:#dcdde1;color:#464e67}.PageCard_darkPageCard_2dJ_YdOsd9hhJHRg89V1_w{color:#fff;min-width:100vw;background-color:#2f3640}.PageCard_whitePageCard_1FDkni-1zySRhoo8DsFZnG{min-width:100vw;background-color:#f5f6fa}.PageCard_container_1ok2Drx5q2skrrX8ItRY6X{text-align:center;padding-top:30px}.PageCard_pageHeader_1hPaIH8Im0_xFY9eJHy0m0{font-size:4rem!important;font-weight:400!important;margin-bottom:0!important;padding-top:25%!important;text-align:center}.PageCard_pageSubHeader_3mkAWv51FNYAj99Yqr_mds{font-size:1.7rem!important;font-weight:400!important;margin-top:1.5rem!important;text-align:center}.PageCard_pageDown_oHQuAa3AvckqK3vgxCT68{margin-top:30%!important}.PageCard_footer_1aaHIPN4H4iCi2PegG278N{padding:2.5em}","",{version:3,sources:["/Users/hassan-alubeidi/igem/src/components/PageCard/PageCard.css"],names:[],mappings:"AAAA,gDACC,WAAY,AACZ,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,4CACC,WAAY,AACZ,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,+CACC,WAAY,AACZ,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,8CACC,WAAY,AACZ,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,8CACC,WAAY,AACZ,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,8CAEC,gBAAiB,AACd,yBAA0B,AAC1B,aAAe,CAClB,AACD,8CACC,WAAY,AACZ,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,+CACC,gBAAiB,AACjB,wBAA0B,CAC1B,AACD,2CACC,kBAAkB,AAClB,gBAAiB,CACjB,AACD,4CACC,yBAA2B,AACxB,0BAA+B,AAC/B,0BAA8B,AAC9B,0BAA4B,AAC5B,iBAAkB,CACrB,AACD,+CACC,2BAA6B,AAC1B,0BAA+B,AAC/B,4BAA8B,AAC9B,iBAAkB,CACrB,AACD,yCACC,wBAA0B,CAC1B,AACD,wCACC,aAAc,CACd",file:"PageCard.css",sourcesContent:[".orangePageCard {\n\tcolor:white;\n\tmin-width: 100vw;\n\tbackground-color: #F25D53;\n}\n.redPageCard {\n\tcolor:white;\n\tmin-width: 100vw;\n\tbackground-color: #c23616;\n}\n.yellowPageCard {\n\tcolor:white;\n\tmin-width: 100vw;\n\tbackground-color: #e1b12c;\n}\n.bluePageCard {\n\tcolor:white;\n\tmin-width: 100vw;\n\tbackground-color: #0097e6;\n}\n.navyPageCard {\n\tcolor:white;\n\tmin-width: 100vw;\n\tbackground-color: #192a56;\n}\n.greyPageCard {\n\n\tmin-width: 100vw;\n background-color: #dcdde1;\n color: #464e67;\n}\n.darkPageCard {\n\tcolor:white;\n\tmin-width: 100vw;\n\tbackground-color: #2f3640;\n}\n.whitePageCard {\n\tmin-width: 100vw;\n\tbackground-color: #f5f6fa;\n}\n.container {\n\ttext-align:center;\n\tpadding-top:30px;\n}\n.pageHeader {\n\tfont-size: 4rem !important;\n font-weight: normal !important;\n margin-bottom: 0px !important;\n padding-top: 25% !important;\n text-align:center;\n}\n.pageSubHeader {\n\tfont-size: 1.7rem !important;\n font-weight: normal !important;\n margin-top: 1.5rem !important;\n text-align:center;\n}\n.pageDown {\n\tmargin-top:30% !important;\n}\n.footer {\n\tpadding:2.5em;\n}"],sourceRoot:""}]),t.locals={orangePageCard:"PageCard_orangePageCard_2Sr8WGHsk0ceS6U8gK2mUS",redPageCard:"PageCard_redPageCard_SMaxG91MHRyuY9YDewJRT",yellowPageCard:"PageCard_yellowPageCard_4AcGSIS3z3c1yjVGQI_Jf",bluePageCard:"PageCard_bluePageCard_1s7upKE6DVXL5_Cct455oF",navyPageCard:"PageCard_navyPageCard_3yXn1Tq7P7WX6QdWlG-n36",greyPageCard:"PageCard_greyPageCard_3kHRNDSY5C4lHR_KTlYzd2",darkPageCard:"PageCard_darkPageCard_2dJ_YdOsd9hhJHRg89V1_w",whitePageCard:"PageCard_whitePageCard_1FDkni-1zySRhoo8DsFZnG",container:"PageCard_container_1ok2Drx5q2skrrX8ItRY6X",pageHeader:"PageCard_pageHeader_1hPaIH8Im0_xFY9eJHy0m0",pageSubHeader:"PageCard_pageSubHeader_3mkAWv51FNYAj99Yqr_mds",pageDown:"PageCard_pageDown_oHQuAa3AvckqK3vgxCT68",footer:"PageCard_footer_1aaHIPN4H4iCi2PegG278N"}},function(e,t,n){"use strict";n.r(t),n.d(t,"registerStorage",function(){return Ke});var r=n(14),i=n.n(r),o="https://firebasestorage.googleapis.com",a="https://firebasestorage.googleapis.com",s="/v0",u="/v0",c=12e4,l=6e4,f=-9007199254740991,h=function(){function e(e,t){this.code_=d(e),this.message_="Firebase Storage: "+t,this.serverResponse_=null,this.name_="FirebaseError"}return e.prototype.codeProp=function(){return this.code},e.prototype.codeEquals=function(e){return d(e)===this.codeProp()},e.prototype.serverResponseProp=function(){return this.serverResponse_},e.prototype.setServerResponseProp=function(e){this.serverResponse_=e},Object.defineProperty(e.prototype,"name",{get:function(){return this.name_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"code",{get:function(){return this.code_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"message",{get:function(){return this.message_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"serverResponse",{get:function(){return this.serverResponse_},enumerable:!0,configurable:!0}),e}(),p={UNKNOWN:"unknown",OBJECT_NOT_FOUND:"object-not-found",BUCKET_NOT_FOUND:"bucket-not-found",PROJECT_NOT_FOUND:"project-not-found",QUOTA_EXCEEDED:"quota-exceeded",UNAUTHENTICATED:"unauthenticated",UNAUTHORIZED:"unauthorized",RETRY_LIMIT_EXCEEDED:"retry-limit-exceeded",INVALID_CHECKSUM:"invalid-checksum",CANCELED:"canceled",INVALID_EVENT_NAME:"invalid-event-name",INVALID_URL:"invalid-url",INVALID_DEFAULT_BUCKET:"invalid-default-bucket",NO_DEFAULT_BUCKET:"no-default-bucket",CANNOT_SLICE_BLOB:"cannot-slice-blob",SERVER_FILE_WRONG_SIZE:"server-file-wrong-size",NO_DOWNLOAD_URL:"no-download-url",INVALID_ARGUMENT:"invalid-argument",INVALID_ARGUMENT_COUNT:"invalid-argument-count",APP_DELETED:"app-deleted",INVALID_ROOT_OPERATION:"invalid-root-operation",INVALID_FORMAT:"invalid-format",INTERNAL_ERROR:"internal-error"};function d(e){return"storage/"+e}function v(){return new h(p.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function m(){return new h(p.CANCELED,"User canceled the upload/download.")}function y(){return new h(p.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function g(e,t,n){return new h(p.INVALID_ARGUMENT,"Invalid argument in `"+t+"` at index "+e+": "+n)}function b(){return new h(p.APP_DELETED,"The Firebase app was deleted.")}function _(e,t){return new h(p.INVALID_FORMAT,"String does not match format '"+e+"': "+t)}function w(e){throw new h(p.INTERNAL_ERROR,"Internal error: "+e)}var E={RAW:"raw",BASE64:"base64",BASE64URL:"base64url",DATA_URL:"data_url"};function x(e){switch(e){case E.RAW:case E.BASE64:case E.BASE64URL:case E.DATA_URL:return;default:throw"Expected one of the event types: ["+E.RAW+", "+E.BASE64+", "+E.BASE64URL+", "+E.DATA_URL+"]."}}var C=function(){return function(e,t){this.data=e,this.contentType=t||null}}();function T(e,t){switch(e){case E.RAW:return new C(k(t));case E.BASE64:case E.BASE64URL:return new C(S(e,t));case E.DATA_URL:return new C(function(e){var t=new A(e);return t.base64?S(E.BASE64,t.rest):function(e){var t;try{t=decodeURIComponent(e)}catch(e){throw _(E.DATA_URL,"Malformed data URL.")}return k(t)}(t.rest)}(t),function(e){return new A(e).contentType}(t))}throw v()}function k(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(r);else if(r<=2047)t.push(192|r>>6,128|63&r);else if(55296==(64512&r))if(n<e.length-1&&56320==(64512&e.charCodeAt(n+1)))r=65536|(1023&r)<<10|1023&e.charCodeAt(++n),t.push(240|r>>18,128|r>>12&63,128|r>>6&63,128|63&r);else t.push(239,191,189);else 56320==(64512&r)?t.push(239,191,189):t.push(224|r>>12,128|r>>6&63,128|63&r)}return new Uint8Array(t)}function S(e,t){switch(e){case E.BASE64:var n=-1!==t.indexOf("-"),r=-1!==t.indexOf("_");if(n||r)throw _(e,"Invalid character '"+(n?"-":"_")+"' found: is it base64url encoded?");break;case E.BASE64URL:var i=-1!==t.indexOf("+"),o=-1!==t.indexOf("/");if(i||o)throw _(e,"Invalid character '"+(i?"+":"/")+"' found: is it base64 encoded?");t=t.replace(/-/g,"+").replace(/_/g,"/")}var a;try{a=atob(t)}catch(t){throw _(e,"Invalid character found")}for(var s=new Uint8Array(a.length),u=0;u<a.length;u++)s[u]=a.charCodeAt(u);return s}var A=function(){return function(e){this.base64=!1,this.contentType=null;var t=e.match(/^data:([^,]+)?,/);if(null===t)throw _(E.DATA_URL,"Must be formatted 'data:[<mediatype>][;base64],");var n=t[1]||null;null!=n&&(this.base64=(r=n,i=";base64",r.length>=i.length&&r.substring(r.length-i.length)===i),this.contentType=this.base64?n.substring(0,n.length-";base64".length):n),this.rest=e.substring(e.indexOf(",")+1);var r,i}}();var N,O={STATE_CHANGED:"state_changed"},I={RUNNING:"running",PAUSING:"pausing",PAUSED:"paused",SUCCESS:"success",CANCELING:"canceling",CANCELED:"canceled",ERROR:"error"},P={RUNNING:"running",PAUSED:"paused",SUCCESS:"success",CANCELED:"canceled",ERROR:"error"};function R(e){switch(e){case I.RUNNING:case I.PAUSING:case I.CANCELING:return P.RUNNING;case I.PAUSED:return P.PAUSED;case I.SUCCESS:return P.SUCCESS;case I.CANCELED:return P.CANCELED;case I.ERROR:default:return P.ERROR}}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function M(e,t){for(var n in e)D(e,n)&&t(n,e[n])}function L(e){if(null==e)return{};var t={};return M(e,function(e,n){t[e]=n}),t}function j(e){return new Promise(e)}function F(e){return Promise.resolve(e)}function U(e){return null!=e}function B(e){return void 0!==e}function q(e){return"function"==typeof e}function V(e){return"object"==typeof e}function W(e){return V(e)&&null!==e}function z(e){return"string"==typeof e||e instanceof String}function H(e){return K()&&e instanceof Blob}function K(){return"undefined"!=typeof Blob}!function(e){e[e.NO_ERROR=0]="NO_ERROR",e[e.NETWORK_ERROR=1]="NETWORK_ERROR",e[e.ABORT=2]="ABORT"}(N||(N={}));var G=function(){function e(){var e=this;this.sent_=!1,this.xhr_=new XMLHttpRequest,this.errorCode_=N.NO_ERROR,this.sendPromise_=j(function(t,n){e.xhr_.addEventListener("abort",function(n){e.errorCode_=N.ABORT,t(e)}),e.xhr_.addEventListener("error",function(n){e.errorCode_=N.NETWORK_ERROR,t(e)}),e.xhr_.addEventListener("load",function(n){t(e)})})}return e.prototype.send=function(e,t,n,r){var i=this;if(this.sent_)throw w("cannot .send() more than once");(this.sent_=!0,this.xhr_.open(t,e,!0),U(r))&&M(r,function(e,t){i.xhr_.setRequestHeader(e,t.toString())});return U(n)?this.xhr_.send(n):this.xhr_.send(),this.sendPromise_},e.prototype.getErrorCode=function(){if(!this.sent_)throw w("cannot .getErrorCode() before sending");return this.errorCode_},e.prototype.getStatus=function(){if(!this.sent_)throw w("cannot .getStatus() before sending");try{return this.xhr_.status}catch(e){return-1}},e.prototype.getResponseText=function(){if(!this.sent_)throw w("cannot .getResponseText() before sending");return this.xhr_.responseText},e.prototype.abort=function(){this.xhr_.abort()},e.prototype.getResponseHeader=function(e){return this.xhr_.getResponseHeader(e)},e.prototype.addUploadProgressListener=function(e){U(this.xhr_.upload)&&this.xhr_.upload.addEventListener("progress",e)},e.prototype.removeUploadProgressListener=function(e){U(this.xhr_.upload)&&this.xhr_.upload.removeEventListener("progress",e)},e}(),Q=function(){function e(){}return e.prototype.createXhrIo=function(){return new G},e}();function Y(e){var t,n;try{t=JSON.parse(e)}catch(e){return null}return V(n=t)&&!Array.isArray(n)?t:null}var X=function(){function e(e,t){this.bucket=e,this.path_=t}return Object.defineProperty(e.prototype,"path",{get:function(){return this.path_},enumerable:!0,configurable:!0}),e.prototype.fullServerUrl=function(){var e=encodeURIComponent;return"/b/"+e(this.bucket)+"/o/"+e(this.path)},e.prototype.bucketOnlyServerUrl=function(){return"/b/"+encodeURIComponent(this.bucket)+"/o"},e.makeFromBucketSpec=function(t){var n,r;try{n=e.makeFromUrl(t)}catch(n){return new e(t,"")}if(""===n.path)return n;throw r=t,new h(p.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+r+"'.")},e.makeFromUrl=function(t){var n=null;for(var r=[{regex:new RegExp("^gs://([A-Za-z0-9.\\-]+)(/(.*))?$","i"),indices:{bucket:1,path:3},postModify:function(e){"/"===e.path.charAt(e.path.length-1)&&(e.path_=e.path_.slice(0,-1))}},{regex:new RegExp("^https?://firebasestorage\\.googleapis\\.com/v[A-Za-z0-9_]+/b/([A-Za-z0-9.\\-]+)/o(/([^?#]*).*)?$","i"),indices:{bucket:1,path:3},postModify:function(e){e.path_=decodeURIComponent(e.path)}}],i=0;i<r.length;i++){var o=r[i],a=o.regex.exec(t);if(a){var s=a[o.indices.bucket],u=a[o.indices.path];u||(u=""),n=new e(s,u),o.postModify(n);break}}if(null==n)throw function(e){return new h(p.INVALID_URL,"Invalid URL '"+e+"'.")}(t);return n},e}();function J(e){var t=e.lastIndexOf("/",e.length-2);return-1===t?e:e.slice(t+1)}function $(e){return o+s+e}function Z(e){return o+u+e}function ee(e){var t=encodeURIComponent,n="?";return M(e,function(e,r){var i=t(e)+"="+t(r);n=n+i+"&"}),n=n.slice(0,-1)}function te(e,t){return t}var ne=function(){return function(e,t,n,r){this.server=e,this.local=t||e,this.writable=!!n,this.xform=r||te}}(),re=null;function ie(){if(re)return re;var e=[];e.push(new ne("bucket")),e.push(new ne("generation")),e.push(new ne("metageneration")),e.push(new ne("name","fullPath",!0));var t=new ne("name");t.xform=function(e,t){return function(e){return!z(e)||e.length<2?e:J(e=e)}(t)},e.push(t);var n=new ne("size");return n.xform=function(e,t){return U(t)?+t:t},e.push(n),e.push(new ne("timeCreated")),e.push(new ne("updated")),e.push(new ne("md5Hash",null,!0)),e.push(new ne("cacheControl",null,!0)),e.push(new ne("contentDisposition",null,!0)),e.push(new ne("contentEncoding",null,!0)),e.push(new ne("contentLanguage",null,!0)),e.push(new ne("contentType",null,!0)),e.push(new ne("metadata","customMetadata",!0)),re=e}function oe(e,t,n){for(var r={type:"file"},i=n.length,o=0;o<i;o++){var a=n[o];r[a.local]=a.xform(r,t[a.server])}return function(e,t){Object.defineProperty(e,"ref",{get:function(){var n=e.bucket,r=e.fullPath,i=new X(n,r);return t.makeStorageReference(i)}})}(r,e),r}function ae(e,t,n){var r=Y(t);return null===r?null:oe(e,r,n)}function se(e,t){var n=Y(t);if(null===n)return null;if(!z(n.downloadTokens))return null;var r=n.downloadTokens;if(0===r.length)return null;var i=encodeURIComponent;return r.split(",").map(function(t){var n=e.bucket,r=e.fullPath;return function(e){return a+s+e}("/b/"+i(n)+"/o/"+i(r))+ee({alt:"media",token:t})})[0]}function ue(e,t){for(var n={},r=t.length,i=0;i<r;i++){var o=t[i];o.writable&&(n[o.server]=e[o.local])}return JSON.stringify(n)}function ce(e){if(!(e&&V(e)))throw"Expected Metadata object.";for(var t in e){var n=e[t];if("customMetadata"===t){if(!V(n))throw"Expected object for 'customMetadata' mapping."}else if(W(n))throw"Mapping for '"+t+"' cannot be an object."}}function le(e,t,n){for(var r=t.length,i=t.length,o=0;o<t.length;o++)if(t[o].optional){r=o;break}var a,s,u,c,l,f;if(!(r<=n.length&&n.length<=i))throw a=r,s=i,u=e,c=n.length,a===s?(l=a,f=1===a?"argument":"arguments"):(l="between "+a+" and "+s,f="arguments"),new h(p.INVALID_ARGUMENT_COUNT,"Invalid argument count in `"+u+"`: Expected "+l+" "+f+", received "+c+".");for(o=0;o<n.length;o++)try{t[o].validator(n[o])}catch(t){throw t instanceof Error?g(o,e,t.message):g(o,e,t)}}var fe=function(){return function(e,t){var n=this;this.validator=function(t){n.optional&&!B(t)||e(t)},this.optional=!!t}}();function he(e,t){function n(e){if(!z(e))throw"Expected string."}var r,i,o;return e?(i=n,o=e,r=function(e){i(e),o(e)}):r=n,new fe(r,t)}function pe(e){return new fe(ce,e)}function de(){return new fe(function(e){if(!(function(e){return"number"==typeof e||e instanceof Number}(e)&&e>=0))throw"Expected a number 0 or greater."})}function ve(e,t){return new fe(function(t){if(!(null===t||U(t)&&t instanceof Object))throw"Expected an Object.";void 0!==e&&null!==e&&e(t)},t)}function me(e){return new fe(function(e){if(null!==e&&!q(e))throw"Expected a Function."},e)}function ye(){return"undefined"!=typeof BlobBuilder?BlobBuilder:"undefined"!=typeof WebKitBlobBuilder?WebKitBlobBuilder:void 0}var ge=function(){function e(e,t){var n=0,r="";H(e)?(this.data_=e,n=e.size,r=e.type):e instanceof ArrayBuffer?(t?this.data_=new Uint8Array(e):(this.data_=new Uint8Array(e.byteLength),this.data_.set(new Uint8Array(e))),n=this.data_.length):e instanceof Uint8Array&&(t?this.data_=e:(this.data_=new Uint8Array(e.length),this.data_.set(e)),n=e.length),this.size_=n,this.type_=r}return e.prototype.size=function(){return this.size_},e.prototype.type=function(){return this.type_},e.prototype.slice=function(t,n){if(H(this.data_)){var r=this.data_,i=(a=t,s=n,(o=r).webkitSlice?o.webkitSlice(a,s):o.mozSlice?o.mozSlice(a,s):o.slice?o.slice(a,s):null);return null===i?null:new e(i)}var o,a,s;return new e(new Uint8Array(this.data_.buffer,t,n-t),!0)},e.getBlob=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(K()){var r=t.map(function(t){return t instanceof e?t.data_:t});return new e(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=ye();if(void 0!==n){for(var r=new n,i=0;i<e.length;i++)r.append(e[i]);return r.getBlob()}if(K())return new Blob(e);throw Error("This browser doesn't seem to support creating Blobs")}.apply(null,r))}var i=t.map(function(e){return z(e)?T(E.RAW,e).data:e.data_}),o=0;i.forEach(function(e){o+=e.byteLength});var a=new Uint8Array(o),s=0;return i.forEach(function(e){for(var t=0;t<e.length;t++)a[s++]=e[t]}),new e(a,!0)},e.prototype.uploadData=function(){return this.data_},e}();function be(e,t){return-1!==e.indexOf(t)}var _e=function(){return function(e,t,n,r){this.url=e,this.method=t,this.handler=n,this.timeout=r,this.urlParams={},this.headers={},this.body=null,this.errorHandler=null,this.progressCallback=null,this.successCodes=[200],this.additionalRetryCodes=[]}}();function we(e){if(!e)throw v()}function Ee(e,t){return function(n,r){var i=ae(e,r,t);return we(null!==i),i}}function xe(e){return function(t,n){var r,i,o;return 401===t.getStatus()?r=new h(p.UNAUTHENTICATED,"User is not authenticated, please authenticate using Firebase Authentication and try again."):402===t.getStatus()?(o=e.bucket,r=new h(p.QUOTA_EXCEEDED,"Quota for bucket '"+o+"' exceeded, please view quota on https://firebase.google.com/pricing/.")):403===t.getStatus()?(i=e.path,r=new h(p.UNAUTHORIZED,"User does not have permission to access '"+i+"'.")):r=n,r.setServerResponseProp(n.serverResponseProp()),r}}function Ce(e){var t=xe(e);return function(n,r){var i,o=t(n,r);return 404===n.getStatus()&&(i=e.path,o=new h(p.OBJECT_NOT_FOUND,"Object '"+i+"' does not exist.")),o.setServerResponseProp(r.serverResponseProp()),o}}function Te(e,t,n){var r=$(t.fullServerUrl()),i=e.maxOperationRetryTime(),o=new _e(r,"GET",Ee(e,n),i);return o.errorHandler=Ce(t),o}function ke(e,t,n){var r=$(t.fullServerUrl()),i=e.maxOperationRetryTime(),o=new _e(r,"GET",function(e,t){return function(n,r){var i=ae(e,r,t);return we(null!==i),se(i,r)}}(e,n),i);return o.errorHandler=Ce(t),o}function Se(e,t,n){var r=L(n);return r.fullPath=e.path,r.size=t.size(),r.contentType||(r.contentType=function(e,t){return e&&e.contentType||t&&t.type()||"application/octet-stream"}(null,t)),r}var Ae=function(){return function(e,t,n,r){this.current=e,this.total=t,this.finalized=!!n,this.metadata=r||null}}();function Ne(e,t){var n;try{n=e.getResponseHeader("X-Goog-Upload-Status")}catch(e){we(!1)}return we(be(t||["active"],n)),n}function Oe(e,t,n,r,i,o,a,s){var u=new Ae(0,0);if(a?(u.current=a.current,u.total=a.total):(u.current=0,u.total=r.size()),r.size()!==u.total)throw new h(p.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.");var c=u.total-u.current,l=c;i>0&&(l=Math.min(l,i));var f=u.current,d=f+l,v={"X-Goog-Upload-Command":l===c?"upload, finalize":"upload","X-Goog-Upload-Offset":u.current},m=r.slice(f,d);if(null===m)throw y();var g=t.maxUploadRetryTime(),b=new _e(n,"POST",function(e,n){var i,a=Ne(e,["active","final"]),s=u.current+l,c=r.size();return i="final"===a?Ee(t,o)(e,n):null,new Ae(s,c,"final"===a,i)},g);return b.headers=v,b.body=m.uploadData(),b.progressCallback=s||null,b.errorHandler=xe(e),b}var Ie=function(){return function(e,t,n){if(q(e)||U(t)||U(n))this.next=e,this.error=t||null,this.complete=n||null;else{var r=e;this.next=r.next||null,this.error=r.error||null,this.complete=r.complete||null}}}(),Pe=function(){return function(e,t,n,r,i,o){this.bytesTransferred=e,this.totalBytes=t,this.state=n,this.metadata=r,this.task=i,this.ref=o}}();function Re(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];F(!0).then(function(){e.apply(null,t)})}}var De=function(){function e(e,t,n,r,i,o){void 0===o&&(o=null);var a=this;this.transferred_=0,this.needToFetchStatus_=!1,this.needToFetchMetadata_=!1,this.observers_=[],this.error_=null,this.uploadUrl_=null,this.request_=null,this.chunkMultiplier_=1,this.resolve_=null,this.reject_=null,this.ref_=e,this.authWrapper_=t,this.location_=n,this.blob_=i,this.metadata_=o,this.mappings_=r,this.resumable_=this.shouldDoResumable_(this.blob_),this.state_=I.RUNNING,this.errorHandler_=function(e){a.request_=null,a.chunkMultiplier_=1,e.codeEquals(p.CANCELED)?(a.needToFetchStatus_=!0,a.completeTransitions_()):(a.error_=e,a.transition_(I.ERROR))},this.metadataErrorHandler_=function(e){a.request_=null,e.codeEquals(p.CANCELED)?a.completeTransitions_():(a.error_=e,a.transition_(I.ERROR))},this.promise_=j(function(e,t){a.resolve_=e,a.reject_=t,a.start_()}),this.promise_.then(null,function(){})}return e.prototype.makeProgressCallback_=function(){var e=this,t=this.transferred_;return function(n,r){e.updateProgress_(t+n)}},e.prototype.shouldDoResumable_=function(e){return e.size()>262144},e.prototype.start_=function(){this.state_===I.RUNNING&&null===this.request_&&(this.resumable_?null===this.uploadUrl_?this.createResumable_():this.needToFetchStatus_?this.fetchStatus_():this.needToFetchMetadata_?this.fetchMetadata_():this.continueUpload_():this.oneShotUpload_())},e.prototype.resolveToken_=function(e){var t=this;this.authWrapper_.getAuthToken().then(function(n){switch(t.state_){case I.RUNNING:e(n);break;case I.CANCELING:t.transition_(I.CANCELED);break;case I.PAUSING:t.transition_(I.PAUSED)}})},e.prototype.createResumable_=function(){var e=this;this.resolveToken_(function(t){var n=function(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a=Se(t,r,i),s={name:a.fullPath},u=Z(o),c={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":r.size(),"X-Goog-Upload-Header-Content-Type":a.contentType,"Content-Type":"application/json; charset=utf-8"},l=ue(a,n),f=e.maxUploadRetryTime(),h=new _e(u,"POST",function(e,t){var n;Ne(e);try{n=e.getResponseHeader("X-Goog-Upload-URL")}catch(e){we(!1)}return we(z(n)),n},f);return h.urlParams=s,h.headers=c,h.body=l,h.errorHandler=xe(t),h}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.uploadUrl_=t,e.needToFetchStatus_=!1,e.completeTransitions_()},e.errorHandler_)})},e.prototype.fetchStatus_=function(){var e=this,t=this.uploadUrl_;this.resolveToken_(function(n){var r=function(e,t,n,r){var i=e.maxUploadRetryTime(),o=new _e(n,"POST",function(e,t){var n,i=Ne(e,["active","final"]);try{n=e.getResponseHeader("X-Goog-Upload-Size-Received")}catch(e){we(!1)}var o=parseInt(n,10);return we(!isNaN(o)),new Ae(o,r.size(),"final"===i)},i);return o.headers={"X-Goog-Upload-Command":"query"},o.errorHandler=xe(t),o}(e.authWrapper_,e.location_,t,e.blob_),i=e.authWrapper_.makeRequest(r,n);e.request_=i,i.getPromise().then(function(t){t=t,e.request_=null,e.updateProgress_(t.current),e.needToFetchStatus_=!1,t.finalized&&(e.needToFetchMetadata_=!0),e.completeTransitions_()},e.errorHandler_)})},e.prototype.continueUpload_=function(){var e=this,t=262144*this.chunkMultiplier_,n=new Ae(this.transferred_,this.blob_.size()),r=this.uploadUrl_;this.resolveToken_(function(i){var o;try{o=Oe(e.location_,e.authWrapper_,r,e.blob_,t,e.mappings_,n,e.makeProgressCallback_())}catch(t){return e.error_=t,void e.transition_(I.ERROR)}var a=e.authWrapper_.makeRequest(o,i);e.request_=a,a.getPromise().then(function(t){e.increaseMultiplier_(),e.request_=null,e.updateProgress_(t.current),t.finalized?(e.metadata_=t.metadata,e.transition_(I.SUCCESS)):e.completeTransitions_()},e.errorHandler_)})},e.prototype.increaseMultiplier_=function(){262144*this.chunkMultiplier_<33554432&&(this.chunkMultiplier_*=2)},e.prototype.fetchMetadata_=function(){var e=this;this.resolveToken_(function(t){var n=Te(e.authWrapper_,e.location_,e.mappings_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.transition_(I.SUCCESS)},e.metadataErrorHandler_)})},e.prototype.oneShotUpload_=function(){var e=this;this.resolveToken_(function(t){var n=function(e,t,n,r,i){var o=t.bucketOnlyServerUrl(),a={"X-Goog-Upload-Protocol":"multipart"},s=function(){for(var e="",t=0;t<2;t++)e+=Math.random().toString().slice(2);return e}();a["Content-Type"]="multipart/related; boundary="+s;var u=Se(t,r,i),c="--"+s+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+ue(u,n)+"\r\n--"+s+"\r\nContent-Type: "+u.contentType+"\r\n\r\n",l="\r\n--"+s+"--",f=ge.getBlob(c,r,l);if(null===f)throw y();var h={name:u.fullPath},p=Z(o),d=e.maxUploadRetryTime(),v=new _e(p,"POST",Ee(e,n),d);return v.urlParams=h,v.headers=a,v.body=f.uploadData(),v.errorHandler=xe(t),v}(e.authWrapper_,e.location_,e.mappings_,e.blob_,e.metadata_),r=e.authWrapper_.makeRequest(n,t);e.request_=r,r.getPromise().then(function(t){e.request_=null,e.metadata_=t,e.updateProgress_(e.blob_.size()),e.transition_(I.SUCCESS)},e.errorHandler_)})},e.prototype.updateProgress_=function(e){var t=this.transferred_;this.transferred_=e,this.transferred_!==t&&this.notifyObservers_()},e.prototype.transition_=function(e){if(this.state_!==e)switch(e){case I.CANCELING:case I.PAUSING:this.state_=e,null!==this.request_&&this.request_.cancel();break;case I.RUNNING:var t=this.state_===I.PAUSED;this.state_=e,t&&(this.notifyObservers_(),this.start_());break;case I.PAUSED:this.state_=e,this.notifyObservers_();break;case I.CANCELED:this.error_=m(),this.state_=e,this.notifyObservers_();break;case I.ERROR:case I.SUCCESS:this.state_=e,this.notifyObservers_()}},e.prototype.completeTransitions_=function(){switch(this.state_){case I.PAUSING:this.transition_(I.PAUSED);break;case I.CANCELING:this.transition_(I.CANCELED);break;case I.RUNNING:this.start_()}},Object.defineProperty(e.prototype,"snapshot",{get:function(){var e=R(this.state_);return new Pe(this.transferred_,this.blob_.size(),e,this.metadata_,this,this.ref_)},enumerable:!0,configurable:!0}),e.prototype.on=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=void 0),void 0===r&&(r=void 0);var i="Expected a function or an Object with one of `next`, `error`, `complete` properties.",o=me(!0).validator,a=ve(null,!0).validator;function s(e){try{return void o(e)}catch(e){}try{if(a(e),!(B(e.next)||B(e.error)||B(e.complete)))throw"";return}catch(e){throw i}}le("on",[he(function(t){if(e!==O.STATE_CHANGED)throw"Expected one of the event types: ["+O.STATE_CHANGED+"]."}),ve(s,!0),me(!0),me(!0)],arguments);var u=this;function c(e){return function(t,n,i){null!==e&&le("on",e,arguments);var o=new Ie(t,n,r);return u.addObserver_(o),function(){u.removeObserver_(o)}}}var l=[ve(function(e){if(null===e)throw i;s(e)}),me(!0),me(!0)];return!(B(t)||B(n)||B(r))?c(l):c(null)(t,n,r)},e.prototype.then=function(e,t){return this.promise_.then(e,t)},e.prototype.catch=function(e){return this.then(null,e)},e.prototype.addObserver_=function(e){this.observers_.push(e),this.notifyObserver_(e)},e.prototype.removeObserver_=function(e){var t,n,r;t=this.observers_,n=e,-1!==(r=t.indexOf(n))&&t.splice(r,1)},e.prototype.notifyObservers_=function(){var e,t=this;this.finishPromise_(),(e=this.observers_,Array.prototype.slice.call(e)).forEach(function(e){t.notifyObserver_(e)})},e.prototype.finishPromise_=function(){if(null!==this.resolve_){var e=!0;switch(R(this.state_)){case P.SUCCESS:Re(this.resolve_.bind(null,this.snapshot))();break;case P.CANCELED:case P.ERROR:Re(this.reject_.bind(null,this.error_))();break;default:e=!1}e&&(this.resolve_=null,this.reject_=null)}},e.prototype.notifyObserver_=function(e){switch(R(this.state_)){case P.RUNNING:case P.PAUSED:null!==e.next&&Re(e.next.bind(e,this.snapshot))();break;case P.SUCCESS:null!==e.complete&&Re(e.complete.bind(e))();break;case P.CANCELED:case P.ERROR:null!==e.error&&Re(e.error.bind(e,this.error_))();break;default:null!==e.error&&Re(e.error.bind(e,this.error_))()}},e.prototype.resume=function(){le("resume",[],arguments);var e=this.state_===I.PAUSED||this.state_===I.PAUSING;return e&&this.transition_(I.RUNNING),e},e.prototype.pause=function(){le("pause",[],arguments);var e=this.state_===I.RUNNING;return e&&this.transition_(I.PAUSING),e},e.prototype.cancel=function(){le("cancel",[],arguments);var e=this.state_===I.RUNNING||this.state_===I.PAUSING;return e&&this.transition_(I.CANCELING),e},e}(),Me=function(){function e(e,t){this.authWrapper=e,this.location=t instanceof X?t:X.makeFromUrl(t)}return e.prototype.toString=function(){return le("toString",[],arguments),"gs://"+this.location.bucket+"/"+this.location.path},e.prototype.newRef=function(t,n){return new e(t,n)},e.prototype.mappings=function(){return ie()},e.prototype.child=function(e){le("child",[he()],arguments);var t=function(e,t){var n=t.split("/").filter(function(e){return e.length>0}).join("/");return 0===e.length?n:e+"/"+n}(this.location.path,e),n=new X(this.location.bucket,t);return this.newRef(this.authWrapper,n)},Object.defineProperty(e.prototype,"parent",{get:function(){var e=function(e){if(0==e.length)return null;var t=e.lastIndexOf("/");return-1===t?"":e.slice(0,t)}(this.location.path);if(null===e)return null;var t=new X(this.location.bucket,e);return this.newRef(this.authWrapper,t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"root",{get:function(){var e=new X(this.location.bucket,"");return this.newRef(this.authWrapper,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bucket",{get:function(){return this.location.bucket},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"fullPath",{get:function(){return this.location.path},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return J(this.location.path)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"storage",{get:function(){return this.authWrapper.service()},enumerable:!0,configurable:!0}),e.prototype.put=function(e,t){return void 0===t&&(t=null),le("put",[new fe(function(e){if(!(e instanceof Uint8Array||e instanceof ArrayBuffer||K()&&e instanceof Blob))throw"Expected Blob or File."}),pe(!0)],arguments),this.throwIfRoot_("put"),new De(this,this.authWrapper,this.location,this.mappings(),new ge(e),t)},e.prototype.putString=function(e,t,n){void 0===t&&(t=E.RAW),le("putString",[he(),he(x,!0),pe(!0)],arguments),this.throwIfRoot_("putString");var r=T(t,e),i=L(n);return!U(i.contentType)&&U(r.contentType)&&(i.contentType=r.contentType),new De(this,this.authWrapper,this.location,this.mappings(),new ge(r.data,!0),i)},e.prototype.delete=function(){le("delete",[],arguments),this.throwIfRoot_("delete");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=function(e,t){var n=$(t.fullServerUrl()),r=e.maxOperationRetryTime(),i=new _e(n,"DELETE",function(e,t){},r);return i.successCodes=[200,204],i.errorHandler=Ce(t),i}(e.authWrapper,e.location);return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.getMetadata=function(){le("getMetadata",[],arguments),this.throwIfRoot_("getMetadata");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=Te(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise()})},e.prototype.updateMetadata=function(e){le("updateMetadata",[pe()],arguments),this.throwIfRoot_("updateMetadata");var t=this;return this.authWrapper.getAuthToken().then(function(n){var r=function(e,t,n,r){var i=$(t.fullServerUrl()),o=ue(n,r),a=e.maxOperationRetryTime(),s=new _e(i,"PATCH",Ee(e,r),a);return s.headers={"Content-Type":"application/json; charset=utf-8"},s.body=o,s.errorHandler=Ce(t),s}(t.authWrapper,t.location,e,t.mappings());return t.authWrapper.makeRequest(r,n).getPromise()})},e.prototype.getDownloadURL=function(){le("getDownloadURL",[],arguments),this.throwIfRoot_("getDownloadURL");var e=this;return this.authWrapper.getAuthToken().then(function(t){var n=ke(e.authWrapper,e.location,e.mappings());return e.authWrapper.makeRequest(n,t).getPromise().then(function(e){if(null===e)throw new h(p.NO_DOWNLOAD_URL,"The given file does not have any download URLs.");return e})})},e.prototype.throwIfRoot_=function(e){if(""===this.location.path)throw function(e){return new h(p.INVALID_ROOT_OPERATION,"The operation '"+e+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(e)},e}(),Le=function(){function e(e){this.promise_=function(e){return Promise.reject(e)}(e)}return e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){void 0===e&&(e=!1)},e}(),je=function(){function e(){this.map_={},this.id_=f}return e.prototype.addRequest=function(e){var t=this.id_;this.id_++,this.map_[t]=e;var n=this;function r(){delete n.map_[t]}e.getPromise().then(r,r)},e.prototype.clear=function(){M(this.map_,function(e,t){t&&t.cancel(!0)}),this.map_={}},e}(),Fe=function(){function e(t,n,r,i,o){if(this.bucket_=null,this.deleted_=!1,this.app_=t,null!==this.app_){var a=this.app_.options;U(a)&&(this.bucket_=e.extractBucket_(a))}this.storageRefMaker_=n,this.requestMaker_=r,this.pool_=o,this.service_=i,this.maxOperationRetryTime_=c,this.maxUploadRetryTime_=l,this.requestMap_=new je}return e.extractBucket_=function(e){var t=e.storageBucket||null;return null==t?null:X.makeFromBucketSpec(t).bucket},e.prototype.getAuthToken=function(){return null!==this.app_&&U(this.app_.INTERNAL)&&U(this.app_.INTERNAL.getToken)?this.app_.INTERNAL.getToken().then(function(e){return null!==e?e.accessToken:null},function(e){return null}):F(null)},e.prototype.bucket=function(){if(this.deleted_)throw b();return this.bucket_},e.prototype.service=function(){return this.service_},e.prototype.makeStorageReference=function(e){return this.storageRefMaker_(this,e)},e.prototype.makeRequest=function(e,t){if(this.deleted_)return new Le(b());var n=this.requestMaker_(e,t,this.pool_);return this.requestMap_.addRequest(n),n},e.prototype.deleteApp=function(){this.deleted_=!0,this.app_=null,this.requestMap_.clear()},e.prototype.maxUploadRetryTime=function(){return this.maxUploadRetryTime_},e.prototype.setMaxUploadRetryTime=function(e){this.maxUploadRetryTime_=e},e.prototype.maxOperationRetryTime=function(){return this.maxOperationRetryTime_},e.prototype.setMaxOperationRetryTime=function(e){this.maxOperationRetryTime_=e},e}();var Ue=function(){function e(e,t,n,r,i,o,a,s,u,c,l){this.pendingXhr_=null,this.backoffId_=null,this.resolve_=null,this.reject_=null,this.canceled_=!1,this.appDelete_=!1,this.url_=e,this.method_=t,this.headers_=n,this.body_=r,this.successCodes_=i.slice(),this.additionalRetryCodes_=o.slice(),this.callback_=a,this.errorCallback_=s,this.progressCallback_=c,this.timeout_=u,this.pool_=l;var f=this;this.promise_=j(function(e,t){f.resolve_=e,f.reject_=t,f.start_()})}return e.prototype.start_=function(){var e=this;function t(t,n){var r,i=e.resolve_,o=e.reject_,a=n.xhr;if(n.wasSuccessCode)try{var s=e.callback_(a,a.getResponseText());B(s)?i(s):i()}catch(e){o(e)}else null!==a?((r=v()).setServerResponseProp(a.getResponseText()),e.errorCallback_?o(e.errorCallback_(a,r)):o(r)):n.canceled?o(r=e.appDelete_?b():m()):o(r=new h(p.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again."))}this.canceled_?t(0,new Be(!1,null,!0)):this.backoffId_=function(e,t,n){var r=1,i=null,o=!1,a=0;function s(){return 2===a}var u=!1;function c(){u||(u=!0,t.apply(null,arguments))}function l(t){i=setTimeout(function(){i=null,e(f,s())},t)}function f(e){for(var t,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];u||(e?c.apply(null,arguments):s()||o?c.apply(null,arguments):(r<64&&(r*=2),1===a?(a=2,t=0):t=1e3*(r+Math.random()),l(t)))}var h=!1;function p(e){h||(h=!0,u||(null!==i?(e||(a=2),clearTimeout(i),l(0)):e||(a=1)))}return l(0),setTimeout(function(){o=!0,p(!0)},n),p}(function(t,n){if(n)t(!1,new Be(!1,null,!0));else{var r=e.pool_.createXhrIo();e.pendingXhr_=r,null!==e.progressCallback_&&r.addUploadProgressListener(i),r.send(e.url_,e.method_,e.body_,e.headers_).then(function(n){null!==e.progressCallback_&&n.removeUploadProgressListener(i),e.pendingXhr_=null;var r=(n=n).getErrorCode()===N.NO_ERROR,o=n.getStatus();if(r&&!e.isRetryStatusCode_(o)){var a=be(e.successCodes_,o);t(!0,new Be(a,n))}else{var s=n.getErrorCode()===N.ABORT;t(!1,new Be(!1,null,s))}})}function i(t){var n=t.loaded,r=t.lengthComputable?t.total:-1;null!==e.progressCallback_&&e.progressCallback_(n,r)}},t,this.timeout_)},e.prototype.getPromise=function(){return this.promise_},e.prototype.cancel=function(e){this.canceled_=!0,this.appDelete_=e||!1,null!==this.backoffId_&&(0,this.backoffId_)(!1),null!==this.pendingXhr_&&this.pendingXhr_.abort()},e.prototype.isRetryStatusCode_=function(e){var t=e>=500&&e<600,n=be([408,429],e),r=be(this.additionalRetryCodes_,e);return t||n||r},e}(),Be=function(){return function(e,t,n){this.wasSuccessCode=e,this.xhr=t,this.canceled=!!n}}();function qe(e,t,n){var r=ee(e.urlParams),o=e.url+r,a=L(e.headers);return function(e,t){null!==t&&t.length>0&&(e.Authorization="Firebase "+t)}(a,t),function(e){var t=void 0!==i.a?i.a.SDK_VERSION:"AppManager";e["X-Firebase-Storage-Version"]="webjs/"+t}(a),new Ue(o,e.method,a,e.body,e.successCodes,e.additionalRetryCodes,e.handler,e.errorHandler,e.timeout,e.progressCallback,n)}var Ve=function(){function e(e,t,n){if(this.bucket_=null,this.authWrapper_=new Fe(e,function(e,t){return new Me(e,t)},qe,this,t),this.app_=e,null!=n)this.bucket_=X.makeFromBucketSpec(n);else{var r=this.authWrapper_.bucket();null!=r&&(this.bucket_=new X(r,""))}this.internals_=new We(this)}return e.prototype.ref=function(e){if(le("ref",[he(function(e){if(/^[A-Za-z]+:\/\//.test(e))throw"Expected child path but got a URL, use refFromURL instead."},!0)],arguments),null==this.bucket_)throw new Error("No Storage Bucket defined in Firebase Options.");var t=new Me(this.authWrapper_,this.bucket_);return null!=e?t.child(e):t},e.prototype.refFromURL=function(e){return le("refFromURL",[he(function(e){if(!/^[A-Za-z]+:\/\//.test(e))throw"Expected full URL but got a child path, use ref instead.";try{X.makeFromUrl(e)}catch(e){throw"Expected valid full URL but got an invalid one."}},!1)],arguments),new Me(this.authWrapper_,e)},Object.defineProperty(e.prototype,"maxUploadRetryTime",{get:function(){return this.authWrapper_.maxUploadRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxUploadRetryTime=function(e){le("setMaxUploadRetryTime",[de()],arguments),this.authWrapper_.setMaxUploadRetryTime(e)},Object.defineProperty(e.prototype,"maxOperationRetryTime",{get:function(){return this.authWrapper_.maxOperationRetryTime()},enumerable:!0,configurable:!0}),e.prototype.setMaxOperationRetryTime=function(e){le("setMaxOperationRetryTime",[de()],arguments),this.authWrapper_.setMaxOperationRetryTime(e)},Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"INTERNAL",{get:function(){return this.internals_},enumerable:!0,configurable:!0}),e}(),We=function(){function e(e){this.service_=e}return e.prototype.delete=function(){return this.service_.authWrapper_.deleteApp(),F(void 0)},e}(),ze="storage";function He(e,t,n){return new Ve(e,new Q,n)}function Ke(e){var t={TaskState:P,TaskEvent:O,StringFormat:E,Storage:Ve,Reference:Me};e.INTERNAL.registerService(ze,He,t,void 0,!0)}Ke(i.a)},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return h}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return g}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

                                                                                                                                                          • */

var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:i?i(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):p(e)}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(413),o=(r=n(14))&&"object"==typeof r&&"default"in r?r.default:r,a={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},s=function(e){function t(n,r,i){var o=e.call(this,r)||this;return Object.setPrototypeOf(o,t.prototype),o.code=n,o.details=i,o}return i.__extends(t,e),t}(Error);var u=function(){function e(e){this.app=e}return e.prototype.getAuthToken=function(){return i.__awaiter(this,void 0,void 0,function(){var e;return i.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),[4,this.app.INTERNAL.getToken()];case 1:return(e=t.sent())?[2,e.accessToken]:[2,void 0];case 2:return t.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getInstanceIdToken=function(){return i.__awaiter(this,void 0,void 0,function(){var e;return i.__generator(this,function(t){switch(t.label){case 0:return t.trys.push([0,2,,3]),this.app.messaging?[4,this.app.messaging().getToken()]:[2,void 0];case 1:return(e=t.sent())?[2,e]:[2,void 0];case 2:return t.sent(),[2,void 0];case 3:return[2]}})})},e.prototype.getContext=function(){return i.__awaiter(this,void 0,void 0,function(){var e,t;return i.__generator(this,function(n){switch(n.label){case 0:return[4,this.getAuthToken()];case 1:return e=n.sent(),[4,this.getInstanceIdToken()];case 2:return t=n.sent(),[2,{authToken:e,instanceIdToken:t}]}})})},e}();function c(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}var l=function(){function e(){}return e.prototype.encode=function(e){var t=this;if(null===e||void 0===e)return null;if(e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&isFinite(e))return e;if(!0===e||!1===e)return e;if("[object String]"===Object.prototype.toString.call(e))return e;if(Array.isArray(e))return e.map(function(e){return t.encode(e)});if("function"==typeof e||"object"==typeof e)return c(e,function(e){return t.encode(e)});throw new Error("Data cannot be encoded in JSON: "+e)},e.prototype.decode=function(e){var t=this;if(null===e)return e;if(e["@type"])switch(e["@type"]){case"type.googleapis.com/google.protobuf.Int64Value":case"type.googleapis.com/google.protobuf.UInt64Value":var n=parseFloat(e.value);if(isNaN(n))throw new Error("Data cannot be decoded from JSON: "+e);return n;default:throw new Error("Data cannot be decoded from JSON: "+e)}return Array.isArray(e)?e.map(function(e){return t.decode(e)}):"function"==typeof e||"object"==typeof e?c(e,function(e){return t.decode(e)}):e},e}(),f=function(){function e(e,t){void 0===t&&(t="us-central1"),this.app_=e,this.region_=t,this.serializer=new l,this.contextProvider=new u(e)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.app_},enumerable:!0,configurable:!0}),e.prototype._url=function(e){var t=this.app_.options.projectId;return"https://"+this.region_+"-"+t+".cloudfunctions.net/"+e},e.prototype.httpsCallable=function(e){var t=this;return function(n){return t.call(e,n)}},e.prototype.postJSON=function(e,t,n){return i.__awaiter(this,void 0,void 0,function(){var r,o;return i.__generator(this,function(i){switch(i.label){case 0:n.append("Content-Type","application/json"),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,fetch(e,{method:"POST",body:JSON.stringify(t),headers:n})];case 2:return r=i.sent(),[3,4];case 3:return i.sent(),[2,{status:0,json:null}];case 4:o=null,i.label=5;case 5:return i.trys.push([5,7,,8]),[4,r.json()];case 6:return o=i.sent(),[3,8];case 7:return i.sent(),[3,8];case 8:return[2,{status:r.status,json:o}]}})})},e.prototype.call=function(e,t){return i.__awaiter(this,void 0,void 0,function(){var n,r,o,u,c,l,f;return i.__generator(this,function(i){switch(i.label){case 0:return n=this._url(e),t=this.serializer.encode(t),r={data:t},o=new Headers,[4,this.contextProvider.getContext()];case 1:return(u=i.sent()).authToken&&o.append("Authorization","Bearer "+u.authToken),u.instanceIdToken&&o.append("Firebase-Instance-ID-Token",u.instanceIdToken),[4,this.postJSON(n,r,o)];case 2:if(c=i.sent(),l=function(e,t,n){var r=function(e){if(e>=200&&e<300)return"ok";switch(e){case 0:return"internal";case 400:return"invalid-argument";case 401:return"unauthenticated";case 403:return"permission-denied";case 404:return"not-found";case 409:return"aborted";case 429:return"resource-exhausted";case 499:return"cancelled";case 500:return"internal";case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline-exceeded"}return"unknown"}(e),i=r,o=void 0;try{var u=t.error;if(u){var c=u.status;if("string"==typeof c){if(!a[c])return new s("internal","internal");r=a[c]}i=c;var l=u.message;"string"==typeof l&&(i=l),void 0!==(o=u.details)&&(o=n.decode(o))}}catch(e){}return"ok"===r?null:new s(r,i,o)}(c.status,c.json,this.serializer))throw l;if(!c.json)throw new s("internal","Response is not valid JSON object.");if(void 0===(f=c.json.data)&&(f=c.json.result),void 0===f)throw new s("internal","Response is missing data field.");return[2,{data:this.serializer.decode(f)}]}})})},e}(),h="functions";function p(e,t,n){return new f(e,n)}function d(e){var t={Functions:f};e.INTERNAL.registerService(h,p,t,void 0,!0)}d(o),t.registerFunctions=d},function(module,exports,__webpack_require__){(function(global){(function(){var g,goog=goog||{},k=this;function l(e){return"string"==typeof e}function n(e,t){e=e.split("."),t=t||k;for(var n=0;n<e.length;n++)if(null==(t=t[e[n]]))return null;return t}function aa(){}function ba(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function p(e){return"array"==ba(e)}function ca(e){var t=ba(e);return"array"==t||"object"==t&&"number"==typeof e.length}function da(e){return"function"==ba(e)}function ea(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var q="closure_uid_"+(1e9*Math.random()>>>0),fa=0;function ha(e,t,n){return e.call.apply(e.bind,arguments)}function ia(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 r(e,t,n){return(r=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?ha:ia).apply(null,arguments)}function ja(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var t=Date.now||function(){return+new Date};function u(e,t){function n(){}n.prototype=t.prototype,e.H=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Ib=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function ka(e){if(Error.captureStackTrace)Error.captureStackTrace(this,ka);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function la(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");ka.call(this,n+e[r])}function ma(e,t){throw new la("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function w(){0!=na&&(pa[this[q]||(this[q]=++fa)]=this),this.i=this.i,this.m=this.m}u(ka,Error),ka.prototype.name="CustomError",u(la,ka),la.prototype.name="AssertionError";var na=0,pa={};w.prototype.i=!1,w.prototype.$=function(){if(!this.i&&(this.i=!0,this.w(),0!=na)){var e=this[q]||(this[q]=++fa);if(0!=na&&this.m&&0<this.m.length)throw Error(this+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete pa[e]}},w.prototype.w=function(){if(this.m)for(;this.m.length;)this.m.shift()()};var qa=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(l(e))return l(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},ra=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,i=l(e)?e.split(""):e,o=0;o<r;o++)o in i&&t.call(n,i[o],o,e)};function sa(e){e:{for(var t=ta,n=e.length,r=l(e)?e.split(""):e,i=0;i<n;i++)if(i in r&&t.call(void 0,r[i],i,e)){t=i;break e}t=-1}return 0>t?null:l(e)?e.charAt(t):e[t]}function ua(e){if(!p(e))for(var t=e.length-1;0<=t;t--)delete e[t];e.length=0}function va(e){return Array.prototype.concat.apply([],arguments)}function wa(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function xa(e){return/^[\s\xa0]*$/.test(e)}var ya=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]},x;function za(e,t){return e<t?-1:e>t?1:0}e:{var Aa=k.navigator;if(Aa){var Ba=Aa.userAgent;if(Ba){x=Ba;break e}}x=""}function y(e){return-1!=x.indexOf(e)}function Ca(e,t,n){for(var r in e)t.call(n,e[r],r,e)}function Da(e){var t,n=[],r=0;for(t in e)n[r++]=e[t];return n}function Ea(e){var t,n=[],r=0;for(t in e)n[r++]=t;return n}function Fa(e){var t,n={};for(t in e)n[t]=e[t];return n}var Ga="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function Ha(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<Ga.length;o++)n=Ga[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function Ia(e){return Ia[" "](e),e}function Ja(e,t){var n=Ka;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}Ia[" "]=aa;var La=y("Opera"),z=y("Trident")||y("MSIE"),Ma=y("Edge"),Na=Ma||z,Oa=y("Gecko")&&!(-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"))&&!(y("Trident")||y("MSIE"))&&!y("Edge"),Pa=-1!=x.toLowerCase().indexOf("webkit")&&!y("Edge"),Ra,a;function Qa(){var e=k.document;return e?e.documentMode:void 0}e:{var Sa="",Ta=(a=x,Oa?/rv:([^\);]+)(\)|;)/.exec(a):Ma?/Edge\/([\d\.]+)/.exec(a):z?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(a):Pa?/WebKit\/(\S+)/.exec(a):La?/(?:Version)[ \/]?(\S+)/.exec(a):void 0);if(Ta&&(Sa=Ta?Ta[1]:""),z){var Ua=Qa();if(null!=Ua&&Ua>parseFloat(Sa)){Ra=String(Ua);break e}}Ra=Sa}var Ka={},Wa;function Va(e){return Ja(e,function(){for(var t=0,n=ya(String(Ra)).split("."),r=ya(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=za(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||za(0==a[2].length,0==s[2].length)||za(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t})}var Xa=k.document;Wa=Xa&&z?Qa()||("CSS1Compat"==Xa.compatMode?parseInt(Ra,10):5):void 0;var Ya=Object.freeze||function(e){return e},Za=!z||9<=Number(Wa),$a=z&&!Va("9"),ab=function(){if(!k.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});return k.addEventListener("test",aa,t),k.removeEventListener("test",aa,t),e}();function A(e,t){this.type=e,this.a=this.target=t,this.Ra=!0}function bb(e,t){if(A.call(this,e?e.type:""),this.relatedTarget=this.a=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.c=null,e){var n=this.type=e.type,r=e.changedTouches?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.a=t,t=e.relatedTarget){if(Oa){e:{try{Ia(t.nodeName);var i=!0;break e}catch(e){}i=!1}i||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,null===r?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=l(e.pointerType)?e.pointerType:cb[e.pointerType]||"",this.c=e,e.defaultPrevented&&this.b()}}A.prototype.b=function(){this.Ra=!1},u(bb,A);var cb=Ya({2:"touch",3:"pen",4:"mouse"});bb.prototype.b=function(){bb.H.b.call(this);var e=this.c;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,$a)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}};var db="closure_listenable_"+(1e6*Math.random()|0),eb=0;function fb(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ga=i,this.key=++eb,this.Z=this.ba=!1}function gb(e){e.Z=!0,e.listener=null,e.proxy=null,e.src=null,e.ga=null}function hb(e){this.src=e,this.a={},this.b=0}function jb(e,t){var n=t.type;if(n in e.a){var r,i=e.a[n],o=qa(i,t);(r=0<=o)&&Array.prototype.splice.call(i,o,1),r&&(gb(t),0==e.a[n].length&&(delete e.a[n],e.b--))}}function ib(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.Z&&o.listener==t&&o.capture==!!n&&o.ga==r)return i}return-1}hb.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=ib(e,t,r,i);return-1<a?(t=e[a],n||(t.ba=!1)):((t=new fb(t,this.src,o,!!r,i)).ba=n,e.push(t)),t};var kb="closure_lm_"+(1e6*Math.random()|0),lb={},mb=0;function nb(e,t,n,r,i){if(r&&r.once)return ob(e,t,n,r,i);if(p(t)){for(var o=0;o<t.length;o++)nb(e,t[o],n,r,i);return null}return n=pb(n),e&&e[db]?e.Ia(t,n,ea(r)?!!r.capture:!!r,i):qb(e,t,n,!1,r,i)}function qb(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=ea(i)?!!i.capture:!!i,s=rb(e);if(s||(e[kb]=s=new hb(e)),(n=s.add(t,n,r,a,o)).proxy)return n;if(r=sb(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ab||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(tb(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}return mb++,n}function sb(){var e=ub,t=Za?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}function ob(e,t,n,r,i){if(p(t)){for(var o=0;o<t.length;o++)ob(e,t[o],n,r,i);return null}return n=pb(n),e&&e[db]?e.Ja(t,n,ea(r)?!!r.capture:!!r,i):qb(e,t,n,!0,r,i)}function vb(e,t,n,r,i){if(p(t))for(var o=0;o<t.length;o++)vb(e,t[o],n,r,i);else r=ea(r)?!!r.capture:!!r,n=pb(n),e&&e[db]?(e=e.f,(t=String(t).toString())in e.a&&(-1<(n=ib(o=e.a[t],n,r,i))&&(gb(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=rb(e))&&(t=e.a[t.toString()],e=-1,t&&(e=ib(t,n,r,i)),(n=-1<e?t[e]:null)&&wb(n))}function wb(e){if("number"!=typeof e&&e&&!e.Z){var t=e.src;if(t&&t[db])jb(t.f,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(tb(n),r):t.addListener&&t.removeListener&&t.removeListener(r),mb--,(n=rb(t))?(jb(n,e),0==n.b&&(n.src=null,t[kb]=null)):gb(e)}}}function tb(e){return e in lb?lb[e]:lb[e]="on"+e}function xb(e,t,n,r){var i=!0;if((e=rb(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.Z&&(o=yb(o,r),i=i&&!1!==o)}return i}function yb(e,t){var n=e.listener,r=e.ga||e.src;return e.ba&&wb(e),n.call(r,t)}function ub(e,t){if(e.Z)return!0;if(!Za){var r=t||n("window.event");t=new bb(r,this);var i=!0;if(!(0>r.keyCode||void 0!=r.returnValue)){e:{var o=!1;if(0==r.keyCode)try{r.keyCode=-1;break e}catch(e){o=!0}(o||void 0==r.returnValue)&&(r.returnValue=!0)}for(r=[],o=t.a;o;o=o.parentNode)r.push(o);for(e=e.type,o=r.length-1;0<=o;o--){t.a=r[o];var a=xb(r[o],e,!0,t);i=i&&a}for(o=0;o<r.length;o++)t.a=r[o],a=xb(r[o],e,!1,t),i=i&&a}return i}return yb(e,new bb(t,this))}function rb(e){return(e=e[kb])instanceof hb?e:null}var zb="__closure_events_fn_"+(1e9*Math.random()>>>0);function pb(e){return da(e)?e:(e[zb]||(e[zb]=function(t){return e.handleEvent(t)}),e[zb])}function B(){w.call(this),this.f=new hb(this),this.N=this,this.J=null}function Ab(e,t,n,r){if(!(t=e.f.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.Z&&a.capture==n){var s=a.listener,u=a.ga||a.src;a.ba&&jb(e.f,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.Ra}function Bb(e){return!/^\s*$/.test(e)&&/^[\],:{}\s\u2028\u2029]*$/.test(e.replace(/\\["\\\/bfnrtu]/g,"@").replace(/(?:"[^"\\\n\r\u2028\u2029\x00-\x08\x0a-\x1f]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?)[\s\u2028\u2029]*(?=:|,|]|}|$)/g,"]").replace(/(?:^|:|,)(?:[\s\u2028\u2029]*\[)+/g,""))}function Cb(a){if(a=String(a),Bb(a))try{return eval("("+a+")")}catch(e){}throw Error("Invalid JSON string: "+a)}function Db(e){var t=[];return Eb(new Fb,e,t),t.join("")}function Fb(){}function Eb(e,t,n){if(null==t)n.push("null");else{if("object"==typeof t){if(p(t)){var r=t;t=r.length,n.push("[");for(var i="",o=0;o<t;o++)n.push(i),Eb(e,r[o],n),i=",";return void n.push("]")}if(!(t instanceof String||t instanceof Number||t instanceof Boolean)){for(r in n.push("{"),i="",t)Object.prototype.hasOwnProperty.call(t,r)&&("function"!=typeof(o=t[r])&&(n.push(i),Gb(r,n),n.push(":"),Eb(e,o,n),i=","));return void n.push("}")}t=t.valueOf()}switch(typeof t){case"string":Gb(t,n);break;case"number":n.push(isFinite(t)&&!isNaN(t)?String(t):"null");break;case"boolean":n.push(String(t));break;case"function":n.push("null");break;default:throw Error("Unknown type: "+typeof t)}}}u(B,w),B.prototype[db]=!0,g=B.prototype,g.addEventListener=function(e,t,n,r){nb(this,e,t,n,r)},g.removeEventListener=function(e,t,n,r){vb(this,e,t,n,r)},g.dispatchEvent=function(e){var t,n=this.J;if(n)for(t=[];n;n=n.J)t.push(n);n=this.N;var r=e.type||e;if(l(e))e=new A(e,n);else if(e instanceof A)e.target=e.target||n;else{var i=e;Ha(e=new A(r,n),i)}if(i=!0,t)for(var o=t.length-1;0<=o;o--){var a=e.a=t[o];i=Ab(a,r,!0,e)&&i}if(i=Ab(a=e.a=n,r,!0,e)&&i,i=Ab(a,r,!1,e)&&i,t)for(o=0;o<t.length;o++)i=Ab(a=e.a=t[o],r,!1,e)&&i;return i},g.w=function(){if(B.H.w.call(this),this.f){var e,t=this.f;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)0,gb(n[r]);delete t.a[e],t.b--}}this.J=null},g.Ia=function(e,t,n,r){return this.f.add(String(e),t,!1,n,r)},g.Ja=function(e,t,n,r){return this.f.add(String(e),t,!0,n,r)};var Hb={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Ib=/\uffff/.test("�")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Gb(e,t){t.push('"',e.replace(Ib,function(e){var t=Hb[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),Hb[e]=t),t}),'"')}function Jb(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function Kb(){this.b=this.a=null}Jb.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var Nb=new Jb(function(){return new Lb},function(e){e.reset()}),Rb,Tb;function Ob(){var e=Pb,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function Lb(){this.next=this.b=this.a=null}function Qb(e){k.setTimeout(function(){throw e},0)}function Sb(){var e=k.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!y("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",e.src="",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(""),e.close();var n="callImmediate"+Math.random(),i="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=r(function(e){"*"!=i&&e.origin!=i||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,i)}}}),void 0!==e&&!y("Trident")&&!y("MSIE")){var t=new e,n={},i=n;return t.port1.onmessage=function(){if(void 0!==n.next){var e=(n=n.next).za;n.za=null,e()}},function(e){i.next={za:e},i=i.next,t.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){k.setTimeout(e,0)}}function Ub(){if(-1!=String(k.Promise).indexOf("[native code]")){var e=k.Promise.resolve(void 0);Tb=function(){e.then(Vb)}}else Tb=function(){var e=Vb;!da(k.setImmediate)||k.Window&&k.Window.prototype&&!y("Edge")&&k.Window.prototype.setImmediate==k.setImmediate?(Rb||(Rb=Sb()),Rb(e)):k.setImmediate(e)}}Kb.prototype.add=function(e,t){var n=Nb.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},Lb.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},Lb.prototype.reset=function(){this.next=this.b=this.a=null};var Wb=!1,Pb=new Kb;function Vb(){for(var e;e=Ob();){try{e.a.call(e.b)}catch(e){Qb(e)}var t=Nb;t.f(e),100>t.b&&(t.b++,e.next=t.a,t.a=e)}Wb=!1}function Xb(e,n){B.call(this),this.b=e||1,this.a=n||k,this.c=r(this.qb,this),this.g=t()}function Yb(e){e.ea=!1,e.O&&(e.a.clearTimeout(e.O),e.O=null)}function Zb(e,t,n){if(da(e))n&&(e=r(e,n));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=r(e.handleEvent,e)}return 2147483647<Number(t)?-1:k.setTimeout(e,t||0)}function $b(e,t,n){w.call(this),this.f=null!=n?r(e,n):e,this.c=t,this.b=r(this.kb,this),this.a=[]}function ac(e){e.Y=Zb(e.b,e.c),e.f.apply(null,e.a)}function bc(e){w.call(this),this.b=e,this.a={}}u(Xb,B),g=Xb.prototype,g.ea=!1,g.O=null,g.qb=function(){if(this.ea){var e=t()-this.g;0<e&&e<.8*this.b?this.O=this.a.setTimeout(this.c,this.b-e):(this.O&&(this.a.clearTimeout(this.O),this.O=null),this.dispatchEvent("tick"),this.ea&&(this.O=this.a.setTimeout(this.c,this.b),this.g=t()))}},g.start=function(){this.ea=!0,this.O||(this.O=this.a.setTimeout(this.c,this.b),this.g=t())},g.w=function(){Xb.H.w.call(this),Yb(this),delete this.a},u($b,w),g=$b.prototype,g.ha=!1,g.Y=null,g.cb=function(e){this.a=arguments,this.Y?this.ha=!0:ac(this)},g.w=function(){$b.H.w.call(this),this.Y&&(k.clearTimeout(this.Y),this.Y=null,this.ha=!1,this.a=[])},g.kb=function(){this.Y=null,this.ha&&(this.ha=!1,ac(this))},u(bc,w);var cc=[];function dc(e,t,n,r){p(n)||(n&&(cc[0]=n.toString()),n=cc);for(var i=0;i<n.length;i++){var o=nb(t,n[i],r||e.handleEvent,!1,e.b||e);if(!o)break;e.a[o.key]=o}}function ec(e){Ca(e.a,function(e,t){this.a.hasOwnProperty(t)&&wb(e)},e),e.a={}}function fc(e,t,n){this.reset(e,t,n,void 0,void 0)}bc.prototype.w=function(){bc.H.w.call(this),ec(this)},bc.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")},fc.prototype.a=null;var gc=0;function hc(e){this.f=e,this.b=this.c=this.a=null}function C(e,t){this.name=e,this.value=t}fc.prototype.reset=function(e,n,r,i,o){"number"==typeof o||gc++,i||t(),delete this.a},C.prototype.toString=function(){return this.name};var ic=new C("SEVERE",1e3),jc=new C("WARNING",900),kc=new C("INFO",800),lc=new C("CONFIG",700),mc=new C("FINE",500);function nc(e){return e.c?e.c:e.a?nc(e.a):(ma("Root logger has no level set."),null)}hc.prototype.log=function(e,t,n){if(e.value>=nc(this).value)for(da(t)&&(t=t()),e=new fc(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var oc={},pc=null;function qc(e){var t;if(pc||(pc=new hc(""),oc[""]=pc,pc.c=lc),!(t=oc[e])){t=new hc(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=qc(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,oc[e]=t}return t}function D(e,t){e&&e.log(jc,t,void 0)}function rc(e,t){e&&e.log(kc,t,void 0)}function E(e,t){e&&e.log(mc,t,void 0)}function sc(){this.a=qc("goog.labs.net.webChannel.WebChannelDebug"),this.b=!0}function tc(e,t,n,r,i,o){F(e,function(){if(e.b)if(o)for(var a="",s=o.split("&"),u=0;u<s.length;u++){var c=s[u].split("=");if(1<c.length){var l=c[0];c=c[1];var f=l.split("_");a=2<=f.length&&"type"==f[1]?a+(l+"=")+c+"&":a+(l+"=redacted&")}}else a=null;else a=o;return"XMLHTTP REQ ("+r+") [attempt "+i+"]: "+t+"\n"+n+"\n"+a})}function uc(e,t,n,r,i,o,a){F(e,function(){return"XMLHTTP RESP ("+r+") [ attempt "+i+"]: "+t+"\n"+n+"\n"+o+" "+a})}function G(e,t,n,r){F(e,function(){return"XMLHTTP TEXT ("+t+"): "+vc(e,n)+(r?" "+r:"")})}function wc(e,t){F(e,function(){return"TIMEOUT: "+t})}function H(e,t){E(e.a,t)}function xc(e,t,n){(e=e.a)&&e.log(ic,n||"Exception",t)}function F(e,t){rc(e.a,t)}function J(e,t){(e=e.a)&&e.log(ic,t,void 0)}function vc(e,t){if(!e.b)return t;if(!t)return null;try{var n=JSON.parse(t);if(n)for(var r=0;r<n.length;r++)if(p(n[r])){var i=n[r];if(!(2>i.length)){var o=i[1];if(p(o)&&!(1>o.length)){var a=o[0];if("noop"!=a&&"stop"!=a&&"close"!=a)for(var s=1;s<o.length;s++)o[s]=""}}}return Db(n)}catch(n){return H(e,"Exception parsing expected JS array - probably was not JS"),t}}sc.prototype.Fa=function(){this.b=!1};var yc=new B;function zc(e){A.call(this,"serverreachability",e)}function Ac(e){yc.dispatchEvent(new zc(yc,e))}function Bc(e){A.call(this,"statevent",e)}function K(e){yc.dispatchEvent(new Bc(yc,e))}function Cc(e){A.call(this,"timingevent",e)}function Dc(e,t,n){yc.dispatchEvent(new Cc(yc,e,t,n))}function Ec(e,t){if(!da(e))throw Error("Fn must not be null and must be a function");return k.setTimeout(function(){e()},t)}u(zc,A),u(Bc,A),u(Cc,A);var Fc={NO_ERROR:0,rb:1,yb:2,xb:3,ub:4,wb:5,zb:6,Ua:7,TIMEOUT:8,Cb:9},Gc={tb:"complete",Gb:"success",Va:"error",Ua:"abort",Eb:"ready",Fb:"readystatechange",TIMEOUT:"timeout",Ab:"incrementaldata",Db:"progress",vb:"downloadprogress",Hb:"uploadprogress"};function Hc(){}function Ic(e){var t;return(t=e.a)||(t={},Jc(e)&&(t[0]=!0,t[1]=!0),t=e.a=t),t}function Kc(){}Hc.prototype.a=null;var Lc={OPEN:"a",sb:"b",Va:"c",Bb:"d"},Oc;function Mc(){A.call(this,"d")}function Nc(){A.call(this,"c")}function Pc(){}function Qc(e){return(e=Jc(e))?new ActiveXObject(e):new XMLHttpRequest}function Jc(e){if(!e.b&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.b=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.b}function L(e,t,n,r){this.i=e,this.b=t,this.c=n,this.T=r||1,this.L=new bc(this),this.R=Rc,e=Na?125:void 0,this.S=new Xb(e),this.j=null,this.f=!1,this.l=this.g=this.h=this.J=this.D=this.U=this.s=null,this.u=[],this.a=null,this.G=0,this.m=this.o=null,this.C=-1,this.B=!1,this.N=0,this.I=null,this.v=this.X=this.K=!1}u(Mc,A),u(Nc,A),u(Pc,Hc),Oc=new Pc;var Rc=45e3;function Sc(e,t){switch(e){case 0:return"Non-200 return code ("+t+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}}var Tc={},Uc={};function Vc(e,t,n){e.J=1,e.h=Wc(M(t)),e.l=n,e.K=!0,Xc(e,null)}function Yc(e,t,n,r){e.J=1,e.h=Wc(M(t)),e.l=null,e.K=n,Xc(e,r)}function Xc(e,n){e.D=t(),Zc(e),e.g=M(e.h),$c(e.g,"t",e.T),e.G=0,e.a=e.i.ca(e.i.ia()?n:null),0<e.N&&(e.I=new $b(r(e.Sa,e,e.a),e.N)),dc(e.L,e.a,"readystatechange",e.nb),n=e.j?Fa(e.j):{},e.l?(e.o||(e.o="POST"),n["Content-Type"]="application/x-www-form-urlencoded",e.a.fa(e.g,e.o,e.l,n)):(e.o="GET",e.a.fa(e.g,e.o,null,n)),Ac(1),tc(e.b,e.o,e.g,e.c,e.T,e.l)}function ad(e){var t=N(e.a),n=e.a.Ga(),r=e.a.W();if(!(3>t||3==t&&!Na&&!e.a.V())){e.B||4!=t||7==n||Ac(8==n||0>=r?3:2),bd(e);var i=e.a.W();e.C=i,(n=e.a.V())||H(e.b,function(){return"No response text for uri "+e.g+" status "+i}),e.f=200==i,uc(e.b,e.o,e.g,e.c,e.T,t,i),e.f?((r=cd(e))&&(G(e.b,e.c,r,"Initial handshake response via X-HTTP-Initial-Response"),e.v=!0,dd(e,r)),e.K?(ed(e,t,n),Na&&e.f&&3==t&&fd(e)):(G(e.b,e.c,n,null),dd(e,n)),4==t&&gd(e),e.f&&!e.B&&(4==t?e.i.ta(e):(e.f=!1,Zc(e)))):(400==i&&0<n.indexOf("Unknown SID")?(e.m=3,K(12),D(e.b.a,"XMLHTTP Unknown SID ("+e.c+")")):(e.m=0,K(13),D(e.b.a,"XMLHTTP Bad status "+i+" ("+e.c+")")),gd(e),hd(e))}}function cd(e){return!e.X||e.v?null:e.a&&(e=id(e.a,"X-HTTP-Initial-Response"))&&!xa(e)?e:null}function ed(e,t,n){for(var r=!0;!e.B&&e.G<n.length;){var i=jd(e,n);if(i==Uc){4==t&&(e.m=4,K(14),r=!1),G(e.b,e.c,null,"[Incomplete Response]");break}if(i==Tc){e.m=4,K(15),G(e.b,e.c,n,"[Invalid Chunk]"),r=!1;break}G(e.b,e.c,i,null),dd(e,i)}4==t&&0==n.length&&(e.m=1,K(16),r=!1),e.f=e.f&&r,r||(G(e.b,e.c,n,"[Invalid Chunked Response]"),gd(e),hd(e))}function fd(e){dc(e.L,e.S,"tick",e.mb),e.S.start()}function jd(e,t){var n=e.G,r=t.indexOf("\n",n);return-1==r?Uc:(n=Number(t.substring(n,r)),isNaN(n)?Tc:(r+=1)+n>t.length?Uc:(t=t.substr(r,n),e.G=r+n,t))}function Zc(e){e.U=t()+e.R,kd(e,e.R)}function kd(e,t){if(null!=e.s)throw Error("WatchDog timer not null");e.s=Ec(r(e.lb,e),t)}function bd(e){e.s&&(k.clearTimeout(e.s),e.s=null)}function hd(e){e.i.La()||e.B||e.i.ta(e)}function gd(e){bd(e);var t=e.I;t&&"function"==typeof t.$&&t.$(),e.I=null,Yb(e.S),ec(e.L),e.a&&(t=e.a,e.a=null,t.abort(),t.$())}function dd(e,t){try{e.i.Oa(e,t),Ac(4)}catch(t){xc(e.b,t,"Error in httprequest callback")}}function ld(e){if(e.A&&"function"==typeof e.A)return e.A();if(l(e))return e.split("");if(ca(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}return Da(e)}function md(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(ca(e)||l(e))ra(e,t,void 0);else{if(e.M&&"function"==typeof e.M)var n=e.M();else if(e.A&&"function"==typeof e.A)n=void 0;else if(ca(e)||l(e)){n=[];for(var r=e.length,i=0;i<r;i++)n.push(i)}else n=Ea(e);i=(r=ld(e)).length;for(var o=0;o<i;o++)t.call(void 0,r[o],n&&n[o],e)}}function O(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof O)for(n=e.M(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function od(e){e.b={},e.a.length=0,e.c=0}function pd(e,t){return!!P(e.b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&nd(e),!0)}function nd(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];P(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)P(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function P(e,t){return Object.prototype.hasOwnProperty.call(e,t)}g=L.prototype,g.setTimeout=function(e){this.R=e},g.nb=function(e){e=e.target;var t=this.I;t&&3==N(e)?(H(this.b,"Throttling readystatechange."),t.cb()):this.Sa(e)},g.Sa=function(e){try{e==this.a?ad(this):D(this.b.a,"Called back with an unexpected xmlhttp")}catch(e){if(H(this.b,"Failed call to OnXmlHttpReadyStateChanged_"),this.a&&this.a.V()){var t=this;xc(this.b,e,function(){return"ResponseText: "+t.a.V()})}else xc(this.b,e,"No response text")}},g.mb=function(){if(this.a){var e=N(this.a),t=this.a.V();this.G<t.length&&(bd(this),ed(this,e,t),this.f&&4!=e&&Zc(this))}},g.cancel=function(){this.B=!0,gd(this)},g.lb=function(){this.s=null;var e=t();0<=e-this.U?(this.f&&J(this.b,"Received watchdog timeout even though request loaded successfully"),wc(this.b,this.g),2!=this.J&&(Ac(3),K(17)),gd(this),this.m=2,hd(this)):(D(this.b.a,"WatchDog timer called too early"),kd(this,this.U-e))},g=O.prototype,g.A=function(){nd(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},g.M=function(){return nd(this),this.a.concat()},g.get=function(e,t){return P(this.b,e)?this.b[e]:t},g.set=function(e,t){P(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},g.forEach=function(e,t){for(var n=this.M(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var qd=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function rd(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}function Q(e,t){var n;this.b=this.j=this.f="",this.i=null,this.g=this.a="",this.h=!1,e instanceof Q?(this.h=void 0!==t?t:e.h,sd(this,e.f),this.j=e.j,td(this,e.b),ud(this,e.i),this.a=e.a,vd(this,wd(e.c)),this.g=e.g):e&&(n=String(e).match(qd))?(this.h=!!t,sd(this,n[1]||"",!0),this.j=xd(n[2]||""),td(this,n[3]||"",!0),ud(this,n[4]),this.a=xd(n[5]||"",!0),vd(this,n[6]||"",!0),this.g=xd(n[7]||"")):(this.h=!!t,this.c=new yd(null,this.h))}function M(e){return new Q(e)}function sd(e,t,n){e.f=n?xd(t,!0):t,e.f&&(e.f=e.f.replace(/:$/,""))}function td(e,t,n){e.b=n?xd(t,!0):t}function ud(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function vd(e,t,n){t instanceof yd?(e.c=t,Ed(e.c,e.h)):(n||(t=zd(t,Fd)),e.c=new yd(t,e.h))}function R(e,t,n){e.c.set(t,n)}function $c(e,t,n){p(n)||(n=[String(n)]),Gd(e.c,t,n)}function Wc(e){return R(e,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^t()).toString(36)),e}function Hd(e){return e instanceof Q?M(e):new Q(e,void 0)}function Id(e,t,n,r){var i=new Q(null,void 0);return e&&sd(i,e),t&&td(i,t),n&&ud(i,n),r&&(i.a=r),i}function xd(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function zd(e,t,n){return l(e)?(e=encodeURI(e).replace(t,Jd),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Jd(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}Q.prototype.toString=function(){var e=[],t=this.f;t&&e.push(zd(t,Ad,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.j)&&e.push(zd(t,Ad,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.a)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(zd(n,"/"==n.charAt(0)?Bd:Cd,!0))),(n=this.c.toString())&&e.push("?",n),(n=this.g)&&e.push("#",zd(n,Dd)),e.join("")},Q.prototype.resolve=function(e){var t=M(this),n=!!e.f;n?sd(t,e.f):n=!!e.j,n?t.j=e.j:n=!!e.b,n?td(t,e.b):n=null!=e.i;var r=e.a;if(n)ud(t,e.i);else if(n=!!e.a){if("/"!=r.charAt(0))if(this.b&&!this.a)r="/"+r;else{var i=t.a.lastIndexOf("/");-1!=i&&(r=t.a.substr(0,i+1)+r)}if(".."==(i=r)||"."==i)r="";else if(-1!=i.indexOf("./")||-1!=i.indexOf("/.")){r=0==i.lastIndexOf("/",0),i=i.split("/");for(var o=[],a=0;a<i.length;){var s=i[a++];"."==s?r&&a==i.length&&o.push(""):".."==s?((1<o.length||1==o.length&&""!=o[0])&&o.pop(),r&&a==i.length&&o.push("")):(o.push(s),r=!0)}r=o.join("/")}else r=i}return n?t.a=r:n=""!==e.c.toString(),n?vd(t,wd(e.c)):n=!!e.g,n&&(t.g=e.g),t};var Ad=/[#\/\?@]/g,Cd=/[#\?:]/g,Bd=/[#\?]/g,Fd=/[#\?@]/g,Dd=/#/g;function yd(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function S(e){e.a||(e.a=new O,e.b=0,e.c&&rd(e.c,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function Ld(e,t){S(e),t=Kd(e,t),P(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,pd(e.a,t))}function Md(e,t){return S(e),t=Kd(e,t),P(e.a.b,t)}function Gd(e,t,n){Ld(e,t),0<n.length&&(e.c=null,e.a.set(Kd(e,t),wa(n)),e.b+=n.length)}function wd(e){var t=new yd;return t.c=e.c,e.a&&(t.a=new O(e.a),t.b=e.b),t}function Kd(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}function Ed(e,t){t&&!e.f&&(S(e),e.c=null,e.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(Ld(this,t),Gd(this,n,e))},e)),e.f=t}function Nd(){this.a=t()}g=yd.prototype,g.add=function(e,t){S(this),this.c=null,e=Kd(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},g.forEach=function(e,t){S(this),this.a.forEach(function(n,r){ra(n,function(n){e.call(t,n,r,this)},this)},this)},g.M=function(){S(this);for(var e=this.a.A(),t=this.a.M(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},g.A=function(e){S(this);var t=[];if(l(e))Md(this,e)&&(t=va(t,this.a.get(Kd(this,e))));else{e=this.a.A();for(var n=0;n<e.length;n++)t=va(t,e[n])}return t},g.set=function(e,t){return S(this),this.c=null,Md(this,e=Kd(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},g.get=function(e,t){return 0<(e=e?this.A(e):[]).length?String(e[0]):t},g.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.M(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.A(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var Od=null;function Pd(){Od||(Od=new Nd)}function Qd(){Od||(Od=new Nd)}function Rd(e,t){this.a=e,this.b=t,this.c=this.i=null,this.h=!1,this.m=null,this.f=-1,this.l=this.g=null}function Sd(e){H(e.b,"TestConnection: starting stage 2");var t=e.a.I.a;if(null!=t)H(e.b,function(){return"Buffered"}),K(4),t?(K(10),Td(e.a,e,!1)):(K(11),Td(e.a,e,!0));else{e.c=new L(e,e.b,void 0,void 0),e.c.j=e.i;var n=Ud(e.a,e.g,e.m);K(4),$c(n,"TYPE","xmlhttp");var r=e.a.j,i=e.a.K;r&&i&&R(n,r,i),Yc(e.c,n,!1,e.g)}}function Wd(){this.a=this.b=null}function Xd(){this.a=new O}function Yd(e){var t=typeof e;return"object"==t&&e||"function"==t?"o"+(e[q]||(e[q]=++fa)):t.charAt(0)+e}function Zd(e,t){this.a=e,this.b=t}function $d(e){this.g=e||ae,k.PerformanceNavigationTiming?e=0<(e=k.performance.getEntriesByType("navigation")).length&&("hq"==e[0].nextHopProtocol||"h2"==e[0].nextHopProtocol):e=!!(k.oa&&k.oa.Ma&&k.oa.Ma()&&k.oa.Ma().Jb),this.f=e?this.g:1,this.a=null,1<this.f&&(this.a=new Xd),this.b=null,this.c=[]}Nd.prototype.set=function(e){this.a=e},Nd.prototype.reset=function(){this.set(t())},Nd.prototype.get=function(){return this.a},u(Qd,Pd),g=Rd.prototype,g.P=null,g.ca=function(e){return this.a.ca(e)},g.abort=function(){this.c&&(this.c.cancel(),this.c=null),this.f=-1},g.La=function(){return!1},g.Oa=function(e,t){if(this.f=e.C,0==this.P){if(H(this.b,"TestConnection: Got data for stage 1"),!this.a.o&&(e=e.a)){var n=id(e,"X-Client-Wire-Protocol");this.l=n||null,this.a.j&&((e=id(e,"X-HTTP-Session-Id"))?this.a.K=e:D(this.b.a,"Missing X_HTTP_SESSION_ID in the handshake response"))}if(t){try{var r=this.a.la.a.parse(t)}catch(e){return xc(this.b,e),void Vd(this.a,this)}this.g=r[0]}else H(this.b,"TestConnection: Null responseText"),Vd(this.a,this)}else 1==this.P&&(this.h?K(6):"11111"==t?(K(5),this.h=!0,(!z||10<=Number(Wa))&&(this.f=200,this.c.cancel(),H(this.b,"Test connection succeeded; using streaming connection"),K(11),Td(this.a,this,!0))):(K(7),this.h=!1))},g.ta=function(){this.f=this.c.C,this.c.f?0==this.P?(this.P=1,H(this.b,"TestConnection: request complete for initial check"),Sd(this)):1==this.P&&(H(this.b,"TestConnection: request complete for stage 2"),this.h?(H(this.b,"Test connection succeeded; using streaming connection"),K(11),Td(this.a,this,!0)):(H(this.b,"Test connection failed; not using streaming"),K(10),Td(this.a,this,!1))):(H(this.b,"TestConnection: request failed, in state "+this.P),0==this.P?K(8):1==this.P&&K(9),Vd(this.a,this))},g.ia=function(){return this.a.ia()},g.qa=function(){return this.a.qa()},Xd.prototype.add=function(e){this.a.set(Yd(e),e)},Xd.prototype.A=function(){return this.a.A()};var ae=10;function be(e,t){e.a||-1==t.indexOf("spdy")&&-1==t.indexOf("quic")&&-1==t.indexOf("h2")||(e.f=e.g,e.a=new Xd,e.b&&(ce(e,e.b),e.b=null))}function de(e){return!!e.b||!!e.a&&e.a.a.c>=e.f}function ee(e,t){return e.b?e=e.b==t:e.a?(t=Yd(t),e=P(e.a.a.b,t)):e=!1,e}function ce(e,t){e.a?e.a.add(t):e.b=t}function fe(e,t){var n;e.b&&e.b==t?e.b=null:((n=e.a)&&(n=Yd(t),n=P(e.a.a.b,n)),n&&pd(e.a.a,Yd(t)))}function ge(e){if(null!=e.b)return e.c.concat(e.b.u);if(null!=e.a&&0!=e.a.a.c){var t=e.c;return ra(e.a.A(),function(e){t=t.concat(e.u)}),t}return wa(e.c)}function he(e,t){e.c=e.c.concat(t)}function ie(){}function je(){this.a=new ie}function ke(e,t,n){var r=n||"";try{md(e,function(e,n){var i=e;ea(e)&&(i=Db(e)),t.push(r+n+"="+encodeURIComponent(i))})}catch(e){throw t.push(r+"type="+encodeURIComponent("_badmap")),e}}function le(e,t){var n=new sc;H(n,"TestLoadImage: loading "+e);var r=new Image;r.onload=ja(me,n,r,"TestLoadImage: loaded",!0,t),r.onerror=ja(me,n,r,"TestLoadImage: error",!1,t),r.onabort=ja(me,n,r,"TestLoadImage: abort",!1,t),r.ontimeout=ja(me,n,r,"TestLoadImage: timeout",!1,t),k.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}function me(e,t,n,r,i){try{H(e,n),t.onload=null,t.onerror=null,t.onabort=null,t.ontimeout=null,i(r)}catch(t){xc(e,t)}}function T(e){B.call(this),this.headers=new O,this.s=e||null,this.c=!1,this.D=this.a=null,this.K=this.B="",this.j=0,this.g="",this.h=this.I=this.u=this.G=!1,this.l=0,this.C=null,this.L=ne,this.v=this.o=!1}$d.prototype.cancel=function(){this.c=ge(this),this.b?(this.b.cancel(),this.b=null):this.a&&0!=this.a.a.c&&(ra(this.a.A(),function(e){e.cancel()}),od(this.a.a))},ie.prototype.stringify=function(e){return k.JSON.stringify(e,void 0)},ie.prototype.parse=function(e){return k.JSON.parse(e,void 0)},u(T,B);var ne="";T.prototype.b=qc("goog.net.XhrIo");var oe=/^https?$/i,pe=["POST","PUT"];function se(e){return z&&Va(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}function ta(e){return"content-type"==e.toLowerCase()}function qe(e,t){e.c=!1,e.a&&(e.h=!0,e.a.abort(),e.h=!1),e.g=t,e.j=5,te(e),ue(e)}function te(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function ve(e){if(e.c&&void 0!==goog)if(e.D[1]&&4==N(e)&&2==e.W())E(e.b,U(e,"Local request error detected and ignored"));else if(e.u&&4==N(e))Zb(e.Na,0,e);else if(e.dispatchEvent("readystatechange"),4==N(e)){E(e.b,U(e,"Request complete")),e.c=!1;try{var t,n=e.W();e:switch(n){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var r=!0;break e;default:r=!1}if(!(t=r)){var i;if(i=0===n){var o=String(e.B).match(qd)[1]||null;if(!o&&k.self&&k.self.location){var a=k.self.location.protocol;o=a.substr(0,a.length-1)}i=!oe.test(o?o.toLowerCase():"")}t=i}t?(e.dispatchEvent("complete"),e.dispatchEvent("success")):(e.j=6,e.g=e.Ha()+" ["+e.W()+"]",te(e))}finally{ue(e)}}}function ue(e,t){if(e.a){re(e);var n=e.a,r=e.D[0]?aa:null;e.a=null,e.D=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){(e=e.b)&&e.log(ic,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function re(e){e.a&&e.v&&(e.a.ontimeout=null),e.C&&(k.clearTimeout(e.C),e.C=null)}function N(e){return e.a?e.a.readyState:0}function id(e,t){return e.a?e.a.getResponseHeader(t):null}function U(e,t){return t+" ["+e.K+" "+e.B+" "+e.W()+"]"}function we(e){var t="";return Ca(e,function(e,n){t+=n,t+=":",t+=e,t+="\r\n"}),t}function xe(e,t,n){e:{for(r in n){var r=!1;break e}r=!0}if(r)return e;if(n=we(n),l(e)){if(t=encodeURIComponent(String(t)),t+=n=null!=n?"="+encodeURIComponent(String(n)):""){if(0>(n=e.indexOf("#"))&&(n=e.length),0>(r=e.indexOf("?"))||r>n){r=n;var i=""}else i=e.substring(r+1,n);n=(e=[e.substr(0,r),i,e.substr(n)])[1],e[1]=t?n?n+"&"+t:t:n,e=e[0]+(e[1]?"?"+e[1]:"")+e[2]}return e}return R(e,t,n),e}function ye(e){this.ya=0,this.g=[],this.a=new sc,this.I=new Wd,this.X=this.ua=this.D=this.ja=this.b=this.K=this.j=this.U=this.h=this.L=this.i=null,this.Za=this.R=0,this.Xa=!!n("internalChannelParams.failFast",e),this.ka=this.C=this.s=this.l=this.m=this.f=null,this.u=this.xa=this.N=-1,this.T=this.B=this.v=0,this.Wa=n("internalChannelParams.baseRetryDelayMs",e)||5e3,this.$a=n("internalChannelParams.retryDelaySeedMs",e)||1e4,this.Ya=n("internalChannelParams.forwardChannelMaxRetries",e)||2,this.wa=n("internalChannelParams.forwardChannelRequestTimeoutMs",e)||2e4,this.Ta=e&&e.Kb||void 0,this.G=void 0,this.S=e&&e.supportsCrossDomainXhr||!1,this.J="",this.c=new $d(e&&e.concurrentRequestLimit),this.la=new je,this.o=!e||void 0===e.backgroundChannelTest||e.backgroundChannelTest,(this.va=e&&e.fastHandshake||!1)&&!this.o&&(D(this.a.a,"Force backgroundChannelTest when fastHandshake is enabled."),this.o=!0),e&&e.Fa&&this.a.Fa()}function ze(e){if(H(e.a,"disconnect()"),Ae(e),3==e.F){var n=e.R++,r=M(e.D);R(r,"SID",e.J),R(r,"RID",n),R(r,"TYPE","terminate"),Be(e,r),(n=new L(e,e.a,n,void 0)).J=2,n.h=Wc(M(r)),r=!1,k.navigator&&k.navigator.sendBeacon&&(r=k.navigator.sendBeacon(n.h.toString(),"")),!r&&k.Image&&((new Image).src=n.h,r=!0),r||(n.a=n.i.ca(null),n.a.fa(n.h)),n.D=t(),Zc(n)}Ce(e)}function Ae(e){e.C&&(e.C.abort(),e.C=null),e.b&&(e.b.cancel(),e.b=null),e.l&&(k.clearTimeout(e.l),e.l=null),De(e),e.c.cancel(),e.m&&(k.clearTimeout(e.m),e.m=null)}function Ee(e,t){1e3==e.g.length&&J(e.a,function(){return"Already have 1000 queued maps upon queueing "+Db(t)}),e.g.push(new Zd(e.Za++,t)),3==e.F&&Fe(e)}function Fe(e){de(e.c)||e.m||(e.m=Ec(r(e.Qa,e),0),e.v=0)}function Ge(e,t){var n=e.c;return(n.b?1:n.a?n.a.a.c:0)>=e.c.f-(e.m?1:0)?(J(e.a,"Unexpected retry request is scheduled."),!1):e.m?(H(e.a,"Use the retry request that is already scheduled."),e.g=t.u.concat(e.g),!0):!(1==e.F||2==e.F||e.v>=(e.Xa?0:e.Ya))&&(H(e.a,"Going to retry POST"),e.m=Ec(r(e.Qa,e,t),He(e,e.v)),e.v++,!0)}function Je(e,t){var n;n=t?t.c:e.R++;var r=M(e.D);R(r,"SID",e.J),R(r,"RID",n),R(r,"AID",e.N),Be(e,r),e.h&&e.i&&xe(r,e.h,e.i),n=new L(e,e.a,n,e.v+1),null===e.h&&(n.j=e.i),t&&(e.g=t.u.concat(e.g)),t=Ie(e,n),n.setTimeout(Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random())),ce(e.c,n),Vc(n,r,t)}function Be(e,t){e.f&&md({},function(e,n){R(t,n,e)})}function Ie(e,t){var n=Math.min(e.g.length,1e3),i=e.f?r(e.f.ab,e.f,e):null;e:for(var o=e.g,a=-1;;){var s=["count="+n];-1==a?0<n?(a=o[0].a,s.push("ofs="+a)):a=0:s.push("ofs="+a);for(var u=!0,c=0;c<n;c++){var l=o[c].a,f=o[c].b;if(0>(l-=a))a=Math.max(0,o[c].a-100),u=!1;else try{ke(f,s,"req"+l+"_")}catch(e){i&&i(f)}}if(u){i=s.join("&");break e}}return e=e.g.splice(0,n),t.u=e,i}function Ke(e){if(!e.b&&!e.l){e.T=1;var t=e.Pa;Tb||Ub(),Wb||(Tb(),Wb=!0),Pb.add(t,e),e.B=0}}function Le(e){return e.b||e.l?(J(e.a,"Request already in progress"),!1):!(3<=e.B)&&(H(e.a,"Going to retry GET"),e.T++,e.l=Ec(r(e.Pa,e),He(e,e.B)),e.B++,!0)}function Td(e,t,n){H(e.a,"Test Connection Finished");var r=t.l;r&&be(e.c,r),e.ka=n,e.u=t.f,H(e.a,"connectChannel_()"),e.D=Me(e,e.ja),Fe(e)}function Vd(e,t){H(e.a,"Test Connection Failed"),e.u=t.f,V(e,2)}function De(e){null!=e.s&&(k.clearTimeout(e.s),e.s=null)}function He(e,t){var n=e.Wa+Math.floor(Math.random()*e.$a);return e.qa()||(H(e.a,"Inactive channel"),n*=2),n*t}function V(e,t){if(F(e.a,"Error code "+t),2==t){var n=null;e.f&&(n=null);var i=r(e.pb,e);n||(n=new Q("//www.google.com/images/cleardot.gif"),k.location&&"http"==k.location.protocol||sd(n,"https"),Wc(n)),le(n.toString(),i)}else K(2);H(e.a,"HttpChannel: error - "+t),e.F=0,e.f&&e.f.Ba(t),Ce(e),Ae(e)}function Ce(e){if(e.F=0,e.u=-1,e.f){var t=ge(e.c);0==t.length&&0==e.g.length||(H(e.a,function(){return"Number of undelivered maps, pending: "+t.length+", outgoing: "+e.g.length}),e.c.c.length=0,wa(e.g),e.g.length=0),e.f.Aa()}}function Me(e,t){return t=Ne(e,null,t),H(e.a,"GetForwardChannelUri: "+t),t}function Ud(e,t,n){return t=Ne(e,e.ia()?t:null,n),H(e.a,"GetBackChannelUri: "+t),t}function Ne(e,t,n){var r=Hd(n);if(""!=r.b)t&&td(r,t+"."+r.b),ud(r,r.i);else{var i,o=k.location;i=t?t+"."+o.hostname:o.hostname,r=Id(o.protocol,i,o.port,n)}return e.U&&Ca(e.U,function(e,t){R(r,t,e)}),t=e.j,n=e.K,t&&n&&R(r,t,n),R(r,"VER",e.na),Be(e,r),r}function Oe(){}function Pe(e){for(var t=arguments[0],n=1;n<arguments.length;n++){var r,i=arguments[n];if(0==i.lastIndexOf("/",0))t=i;else(r=""==t)||(r=0<=(r=t.length-1)&&t.indexOf("/",r)==r),t+=r?i:"/"+i}return t}function Qe(){if(z&&!(10<=Number(Wa)))throw Error("Environmental error: no available transport.")}function W(e,t){B.call(this),this.a=new ye(t),this.b=e,this.o=t&&t.testUrl?t.testUrl:Pe(this.b,"test"),this.c=qc("goog.labs.net.webChannel.WebChannelBaseTransport"),this.g=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e["X-Client-Protocol"]="webchannel":e={"X-Client-Protocol":"webchannel"}),this.a.i=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e["X-WebChannel-Content-Type"]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.Ea&&(e?e["X-WebChannel-Client-Profile"]=t.Ea:e={"X-WebChannel-Client-Profile":t.Ea}),this.a.L=e,(e=t&&t.httpHeadersOverwriteParam)&&!xa(e)&&(this.a.h=e),this.l=t&&t.supportsCrossDomainXhr||!1,this.j=t&&t.sendRawJson||!1,(t=t&&t.httpSessionIdParam)&&!xa(t)&&(this.a.j=t,null!==(e=this.g)&&t in e&&(t in(e=this.g)&&delete e[t],D(this.c,"Ignore httpSessionIdParam also specified with messageUrlParams: "+t))),this.h=new Re(this)}function Se(e){Mc.call(this);var t=e.__sm__;if(t){e:{for(var n in t){e=n;break e}e=void 0}(this.c=e)?(e=this.c,this.data=null!==t&&e in t?t[e]:void 0):this.data=t}else this.data=e}function Te(){Nc.call(this),this.status=1}function Re(e){this.a=e}g=T.prototype,g.fa=function(e,t,n,i){if(this.a)throw Error("[goog.net.XhrIo] Object is active with another request="+this.B+"; newUri="+e);t=t?t.toUpperCase():"GET",this.B=e,this.g="",this.j=0,this.K=t,this.G=!1,this.c=!0,this.a=this.s?Qc(this.s):Qc(Oc),this.D=this.s?Ic(this.s):Ic(Oc),this.a.onreadystatechange=r(this.Na,this);try{E(this.b,U(this,"Opening Xhr")),this.I=!0,this.a.open(t,String(e),!0),this.I=!1}catch(e){return E(this.b,U(this,"Error opening Xhr: "+e.message)),void qe(this,e)}e=n||"";var o=new O(this.headers);i&&md(i,function(e,t){o.set(t,e)}),i=sa(o.M()),n=k.FormData&&e instanceof k.FormData,!(0<=qa(pe,t))||i||n||o.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),o.forEach(function(e,t){this.a.setRequestHeader(t,e)},this),this.L&&(this.a.responseType=this.L),"withCredentials"in this.a&&this.a.withCredentials!==this.o&&(this.a.withCredentials=this.o);try{re(this),0<this.l&&(this.v=se(this.a),E(this.b,U(this,"Will abort after "+this.l+"ms if incomplete, xhr2 "+this.v)),this.v?(this.a.timeout=this.l,this.a.ontimeout=r(this.Ka,this)):this.C=Zb(this.Ka,this.l,this)),E(this.b,U(this,"Sending request")),this.u=!0,this.a.send(e),this.u=!1}catch(e){E(this.b,U(this,"Send error: "+e.message)),qe(this,e)}},g.Ka=function(){void 0!==goog&&this.a&&(this.g="Timed out after "+this.l+"ms, aborting",this.j=8,E(this.b,U(this,this.g)),this.dispatchEvent("timeout"),this.abort(8))},g.abort=function(e){this.a&&this.c&&(E(this.b,U(this,"Aborting")),this.c=!1,this.h=!0,this.a.abort(),this.h=!1,this.j=e||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),ue(this))},g.w=function(){this.a&&(this.c&&(this.c=!1,this.h=!0,this.a.abort(),this.h=!1),ue(this,!0)),T.H.w.call(this)},g.Na=function(){this.i||(this.I||this.u||this.h?ve(this):this.jb())},g.jb=function(){ve(this)},g.W=function(){try{return 2<N(this)?this.a.status:-1}catch(e){return-1}},g.Ha=function(){try{return 2<N(this)?this.a.statusText:""}catch(e){return E(this.b,"Can not get status: "+e.message),""}},g.V=function(){try{return this.a?this.a.responseText:""}catch(e){return E(this.b,"Can not get responseText: "+e.message),""}},g.eb=function(e){if(this.a){var t=this.a.responseText;e&&0==t.indexOf(e)&&(t=t.substring(e.length));e:{if(e=t,k.JSON)try{var n=k.JSON.parse(e);break e}catch(e){}n=Cb(e)}return n}},g.Ga=function(){return this.j},g.hb=function(){return l(this.g)?this.g:String(this.g)},g=ye.prototype,g.na=8,g.F=1,g.La=function(){return 0==this.F},g.Qa=function(e){if(this.m=null,H(this.a,"startForwardChannel_"),1==this.F)if(e)J(this.a,"Not supposed to retry the open");else{H(this.a,"open_()"),this.R=Math.floor(1e5*Math.random()),e=this.R++;var t=new L(this,this.a,e,void 0),n=this.i;this.L&&(n?Ha(n=Fa(n),this.L):n=this.L),null===this.h&&(t.j=n);var r=Ie(this,t),i=M(this.D);R(i,"RID",e),R(i,"CVER",22),this.o&&this.j&&R(i,"X-HTTP-Session-Id",this.j),Be(this,i),this.h&&n&&xe(i,this.h,n),ce(this.c,t),this.va?(R(i,"$req",r),R(i,"SID","null"),t.X=!0,Vc(t,i,null)):Vc(t,i,r),this.F=2}else 3==this.F&&(e?Je(this,e):0==this.g.length?H(this.a,"startForwardChannel_ returned: nothing to send"):de(this.c)?J(this.a,"startForwardChannel_ returned: connection already in progress"):(Je(this),H(this.a,"startForwardChannel_ finished, sent request")))},g.Pa=function(){this.l=null,H(this.a,"Creating new HttpRequest"),this.b=new L(this,this.a,"rpc",this.T),null===this.h&&(this.b.j=this.i),this.b.N=0;var e=M(this.ua);R(e,"RID","rpc"),R(e,"SID",this.J),R(e,"CI",this.ka?"0":"1"),R(e,"AID",this.N),Be(this,e),R(e,"TYPE","xmlhttp"),this.h&&this.i&&xe(e,this.h,this.i),this.G&&this.b.setTimeout(this.G),Yc(this.b,e,!0,this.X),H(this.a,"New Request created")},g.Oa=function(e,t){if(0!=this.F&&(this.b==e||ee(this.c,e)))if(this.u=e.C,!e.v&&ee(this.c,e)&&3==this.F){try{var n=this.la.a.parse(t)}catch(e){n=null}if(p(n)&&3==n.length)if(0==(t=n)[0])e:if(H(this.a,"Server claims our backchannel is missing."),this.l)H(this.a,"But we are currently starting the request.");else{if(this.b){if(!(this.b.D+3e3<e.D))break e;De(this),this.b.cancel(),this.b=null}else D(this.a.a,"We do not have a BackChannel established");Le(this),K(18)}else this.xa=t[1],0<(e=this.xa-this.N)&&(t=t[2],H(this.a,t+" bytes (in "+e+" arrays) are outstanding on the BackChannel"),37500>t&&this.ka&&0==this.B&&!this.s&&(this.s=Ec(r(this.ib,this),6e3)));else H(this.a,"Bad POST response data returned"),V(this,11)}else if((e.v||this.b==e)&&De(this),!xa(t))for(t=n=this.la.a.parse(t),n=0;n<t.length;n++){var i=t[n];if(this.N=i[0],i=i[1],2==this.F)if("c"==i[0]){this.J=i[1],this.X=i[2];var o=i[3];null!=o&&(this.na=o,F(this.a,"VER="+this.na)),null!=(o=i[4])&&(this.ya=o,F(this.a,"SVER="+this.ya)),null!=(i=i[5])&&"number"==typeof i&&0<i&&(this.G=i*=1.5,F(this.a,"backChannelRequestTimeoutMs_="+i)),this.o&&(i=e.a)&&((o=id(i,"X-Client-Wire-Protocol"))&&be(this.c,o),this.j&&((i=id(i,"X-HTTP-Session-Id"))?(this.K=i,R(this.D,this.j,i)):D(this.a.a,"Missing X_HTTP_SESSION_ID in the handshake response"))),this.F=3,this.f&&this.f.Da(),i=e,this.ua=Ud(this,this.X,this.ja),i.v?(H(this.a,"Upgrade the handshake request to a backchannel."),fe(this.c,i),(o=this.G)&&i.setTimeout(o),i.s&&(bd(i),Zc(i)),this.b=i):Ke(this)}else"stop"!=i[0]&&"close"!=i[0]||V(this,7);else 3==this.F&&("stop"==i[0]||"close"==i[0]?"stop"==i[0]?V(this,7):ze(this):"noop"!=i[0]&&this.f&&this.f.Ca(i),this.B=0)}},g.ib=function(){null!=this.s&&(this.s=null,this.b.cancel(),this.b=null,Le(this),K(19))},g.ta=function(e){H(this.a,"Request complete");var n=null;if(this.b==e){De(this),this.b=null;var r=2}else{if(!ee(this.c,e))return;n=e.u,fe(this.c,e),r=1}if(this.u=e.C,0!=this.F)if(e.f)1==r?(Dc(e.l?e.l.length:0,t()-e.D,this.v),Fe(this)):Ke(this);else{var i=e.m;if(3==i||0==i&&0<this.u)H(this.a,"Not retrying due to error type");else{var o=this;if(H(this.a,function(){return"Maybe retrying, last error: "+Sc(i,o.u)}),1==r&&Ge(this,e)||2==r&&Le(this))return;H(this.a,"Exceeded max number of retries")}switch(n&&0<n.length&&he(this.c,n),H(this.a,"Error: HTTP request failed"),i){case 1:V(this,5);break;case 4:V(this,10);break;case 3:V(this,6);break;default:V(this,2)}}},g.pb=function(e){e?(F(this.a,"Successfully pinged google.com"),K(2)):(F(this.a,"Failed to ping google.com"),K(1))},g.ca=function(e){if(e&&!this.S)throw Error("Can't create secondary domain capable XhrIo object.");return(e=new T(this.Ta)).o=this.S,e},g.qa=function(){return!!this.f&&!0},g.ia=function(){return this.S},new Qd,g=Oe.prototype,g.Da=function(){},g.Ca=function(){},g.Ba=function(){},g.Aa=function(){},g.ab=function(){},Qe.prototype.a=function(e,t){return new W(e,t)},u(W,B),g=W.prototype,g.addEventListener=function(e,t,n,r){W.H.addEventListener.call(this,e,t,n,r)},g.removeEventListener=function(e,t,n,r){W.H.removeEventListener.call(this,e,t,n,r)},g.fb=function(){this.a.f=this.h,this.l&&(this.a.S=!0);var e=this.a,t=this.o,n=this.b,r=this.g||void 0;H(e.a,"connect()"),K(0),e.ja=n,e.U=r||{},e.o&&(H(e.a,"connect() bypassed channel-test."),e.I.b=[],e.I.a=!1),H(e.a,"connectTest_()"),e.C=new Rd(e,e.a),null===e.h&&(e.C.i=e.i),n=t,e.h&&e.i&&(n=xe(t,e.h,e.i)),(e=e.C).m=n,t=Me(e.a,e.m),K(3),null!=(n=e.a.I.b)?(e.g=n[0],e.P=1,Sd(e)):($c(t,"MODE","init"),!e.a.o&&e.a.j&&$c(t,"X-HTTP-Session-Id",e.a.j),e.c=new L(e,e.b,void 0,void 0),e.c.j=e.i,Yc(e.c,t,!1,null),e.P=0)},g.close=function(){ze(this.a)},g.gb=function(e){if(l(e)){var t={};t.__data__=e,Ee(this.a,t)}else this.j?((t={}).__data__=Db(e),Ee(this.a,t)):Ee(this.a,e)},g.w=function(){this.a.f=null,delete this.h,ze(this.a),delete this.a,W.H.w.call(this)},u(Se,Mc),u(Te,Nc),u(Re,Oe),Re.prototype.Da=function(){rc(this.a.c,"WebChannel opened on "+this.a.b),this.a.dispatchEvent("a")},Re.prototype.Ca=function(e){this.a.dispatchEvent(new Se(e))},Re.prototype.Ba=function(e){rc(this.a.c,"WebChannel aborted on "+this.a.b+" due to channel error: "+e),this.a.dispatchEvent(new Te(e))},Re.prototype.Aa=function(){rc(this.a.c,"WebChannel closed on "+this.a.b),this.a.dispatchEvent("b")};var Ue=ja(function(e,t){function n(){}n.prototype=e.prototype;var r=new n;return e.apply(r,Array.prototype.slice.call(arguments,1)),r},Qe);function Ve(){this.b=[],this.a=[]}function We(e){return 0==e.b.length&&(e.b=e.a,e.b.reverse(),e.a=[]),e.b.pop()}function Xe(e){return e.b.length+e.a.length}function Ye(e,t){if(w.call(this),this.h=e||0,this.c=t||10,this.h>this.c)throw Error(Ze);this.a=new Ve,this.b=new Xd,this.g=null,this.aa()}Ve.prototype.A=function(){for(var e=[],t=this.b.length-1;0<=t;--t)e.push(this.b[t]);var n=this.a.length;for(t=0;t<n;++t)e.push(this.a[t]);return e},u(Ye,w);var Ze="[goog.structs.Pool] Min can not be greater than max";function af(e){if("function"==typeof e.$)e.$();else for(var t in e)e[t]=null}function $e(e){return Xe(e.a)+e.b.a.c}function bf(e,t){this.a=e,this.b=t}function cf(e){if(this.a=[],e)e:{if(e instanceof cf){var t=e.M();if(e=e.A(),0>=this.a.length){for(var n=this.a,r=0;r<t.length;r++)n.push(new bf(t[r],e[r]));break e}}else t=Ea(e),e=Da(e);for(r=0;r<t.length;r++)df(this,t[r],e[r])}}function df(e,t,n){var r=e.a;for(r.push(new bf(t,n)),t=r.length-1,n=(e=e.a)[t];0<t&&e[r=t-1>>1].a>n.a;)e[t]=e[r],t=r;e[t]=n}function ef(){cf.call(this)}function Y(e,t){this.f=new ef,Ye.call(this,e,t)}function Z(e,t,n,r){this.l=e,this.j=!!r,Y.call(this,t,n)}g=Ye.prototype,g.da=function(){var e=t();if(!(null!=this.g&&0>e-this.g)){for(var n;0<Xe(this.a)&&(n=We(this.a),!this.sa(n));)this.aa();return!n&&$e(this)<this.c&&(n=this.pa()),n&&(this.g=e,this.b.add(n)),n}},g.ob=function(e){return!!pd(this.b.a,Yd(e))&&(this.ma(e),!0)},g.ma=function(e){pd(this.b.a,Yd(e)),this.sa(e)&&$e(this)<this.c?this.a.a.push(e):af(e)},g.aa=function(){for(var e=this.a;$e(this)<this.h;){var t=this.pa();e.a.push(t)}for(;$e(this)>this.c&&0<Xe(this.a);)af(We(e))},g.pa=function(){return{}},g.sa=function(e){return"function"!=typeof e.bb||e.bb()},g.w=function(){if(Ye.H.w.call(this),0<this.b.a.c)throw Error("[goog.structs.Pool] Objects not released");delete this.b;for(var e=this.a;0!=e.b.length||0!=e.a.length;)af(We(e));delete this.a},cf.prototype.A=function(){for(var e=this.a,t=[],n=e.length,r=0;r<n;r++)t.push(e[r].b);return t},cf.prototype.M=function(){for(var e=this.a,t=[],n=e.length,r=0;r<n;r++)t.push(e[r].a);return t},u(ef,cf),u(Y,Ye),g=Y.prototype,g.da=function(e,t){if(!e)return Y.H.da.call(this);df(this.f,void 0!==t?t:100,e),this.ra()},g.ra=function(){for(var e=this.f;0<e.a.length;){var t=this.da();if(!t)break;var n=e,r=n.a,i=r.length,o=r[0];if(0>=i)o=void 0;else{if(1==i)ua(r);else{r[0]=r.pop(),r=0,i=(n=n.a).length;for(var a=n[r];r>1;){var s=2*r+1,u=2*r+2;if(n[s=u<i&&n[u].a<n[s].a?u:s].a>a.a)break;n[r]=n[s],r=s}n[r]=a}o=o.b}o.apply(this,[t])}},g.ma=function(e){Y.H.ma.call(this,e),this.ra()},g.aa=function(){Y.H.aa.call(this),this.ra()},g.w=function(){Y.H.w.call(this),k.clearTimeout(void 0),ua(this.f.a),this.f=null},u(Z,Y),Z.prototype.pa=function(){var e=new T,t=this.l;return t&&t.forEach(function(t,n){e.headers.set(n,t)}),this.j&&(e.o=!0),e},Z.prototype.sa=function(e){return!e.i&&!e.a},Qe.prototype.createWebChannel=Qe.prototype.a,W.prototype.send=W.prototype.gb,W.prototype.open=W.prototype.fb,W.prototype.close=W.prototype.close,Fc.NO_ERROR=0,Fc.TIMEOUT=8,Fc.HTTP_ERROR=6,Gc.COMPLETE="complete",Kc.EventType=Lc,Lc.OPEN="a",Lc.CLOSE="b",Lc.ERROR="c",Lc.MESSAGE="d",B.prototype.listen=B.prototype.Ia,Z.prototype.getObject=Z.prototype.da,Z.prototype.releaseObject=Z.prototype.ob,T.prototype.listenOnce=T.prototype.Ja,T.prototype.getLastError=T.prototype.hb,T.prototype.getLastErrorCode=T.prototype.Ga,T.prototype.getStatus=T.prototype.W,T.prototype.getStatusText=T.prototype.Ha,T.prototype.getResponseJson=T.prototype.eb,T.prototype.getResponseText=T.prototype.V,T.prototype.getResponseText=T.prototype.V,T.prototype.send=T.prototype.fa,module.exports={createWebChannelTransport:Ue,ErrorCode:Fc,EventType:Gc,WebChannel:Kc,XhrIoPool:Z}}).call(void 0!==global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}).call(this,__webpack_require__(69))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return h}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return g}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

                                                                                                                                                          • */

var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:i?i(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):p(e)}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";(function(e){Object.defineProperty(t,"__esModule",{value:!0});var r,i,o=(r=n(14))&&"object"==typeof r&&"default"in r?r.default:r,a=n(218),s=n(416),u=n(415),c=o.SDK_VERSION,l=new a.Logger("@firebase/firestore");function f(){return l.logLevel===a.LogLevel.DEBUG?i.DEBUG:l.logLevel===a.LogLevel.SILENT?i.SILENT:i.ERROR}function h(e){switch(e){case i.DEBUG:l.logLevel=a.LogLevel.DEBUG;break;case i.ERROR:l.logLevel=a.LogLevel.ERROR;break;case i.SILENT:l.logLevel=a.LogLevel.SILENT;break;default:l.error("Firestore ("+c+"): Invalid value passed to `setLogLevel`")}}function p(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(l.logLevel<=a.LogLevel.DEBUG){var i=n.map(v);l.debug.apply(l,["Firestore ("+c+") ["+e+"]: "+t].concat(i))}}function d(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(l.logLevel<=a.LogLevel.ERROR){var r=t.map(v);l.error.apply(l,["Firestore ("+c+"): "+e].concat(r))}}function v(e){if("string"==typeof e)return e;var t=g.getPlatform();try{return t.formatJSON(e)}catch(t){return e}}function m(e){var t="FIRESTORE ("+c+") INTERNAL ASSERTION FAILED: "+e;throw d(t),new Error(t)}function y(e,t){e||m(t)}!function(e){e[e.DEBUG=0]="DEBUG",e[e.ERROR=1]="ERROR",e[e.SILENT=2]="SILENT"}(i||(i={}));var g=function(){function e(){}return e.setPlatform=function(t){e.platform&&m("Platform already defined"),e.platform=t},e.getPlatform=function(){return e.platform||m("Platform not set"),e.platform},e}();function b(){return g.getPlatform().emptyByteString}var _={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"},w=function(e){function t(t,n){var r=e.call(this,n)||this;return r.code=t,r.message=n,r.name="FirebaseError",r.toString=function(){return r.name+": [code="+r.code+"]: "+r.message},r}return s.__extends(t,e),t}(Error);function E(e,t){function n(){var e="This constructor is private.";throw t&&(e+=" ",e+=t),new w(_.INVALID_ARGUMENT,e)}for(var r in n.prototype=e.prototype,e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function x(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function C(e,t){return void 0!==e?e:t}function T(e,t){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var r=Number(n);isNaN(r)||t(r,e[n])}}function k(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function S(e){for(var t in y(null!=e&&"object"==typeof e,"isEmpty() expects object parameter."),e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function A(e,t,n){if(t.length!==n)throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires "+z(n,"argument")+", but was called with "+z(t.length,"argument")+".")}function N(e,t,n){if(t.length<n)throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires at least "+z(n,"argument")+", but was called with "+z(t.length,"argument")+".")}function O(e,t,n,r){if(t.length<n||t.length>r)throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires between "+n+" and "+r+" arguments, but was called with "+z(t.length,"argument")+".")}function I(e,t,n,r){j(e,t,W(n)+" argument",r)}function P(e,t,n,r){void 0!==r&&I(e,t,n,r)}function R(e,t,n,r){j(e,t,n+" option",r)}function D(e,t,n,r){void 0!==r&&R(e,t,n,r)}function M(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){if(!(r instanceof Array))throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires its "+t+" option to be an array, but it was: "+U(r));for(var o=0;o<r.length;++o)if(!i(r[o]))throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires all "+t+" elements to be "+n+", but the value at index "+o+" was: "+U(r[o]))}(e,t,n,r,i)}function L(e,t,n,r,i){void 0!==r&&function(e,t,n,r,i){for(var o=[],a=0,s=i;a<s.length;a++){var u=s[a];if(u===r)return;o.push(U(u))}var c=U(r);throw new w(_.INVALID_ARGUMENT,"Invalid value "+c+" provided to function "+e+'() for option "'+n+'". Acceptable values: '+o.join(", "))}(e,0,n,r,i)}function j(e,t,n,r){if(typeof r!==t||"object"===t&&!F(r)){var i=U(r);throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" to be of type "+t+", but it was: "+i)}}function F(e){return"object"==typeof e&&null!==e&&(Object.getPrototypeOf(e)===Object.prototype||null===Object.getPrototypeOf(e))}function U(e){if(void 0===e)return"undefined";if(null===e)return"null";if("string"==typeof e)return e.length>20&&(e=e.substring(0,20)+"..."),JSON.stringify(e);if("number"==typeof e||"boolean"==typeof e)return""+e;if("object"==typeof e){if(e instanceof Array)return"an array";var t=function(e){if(e.constructor){var t=/function\s+([^\s(]+)\s*\(/.exec(e.constructor.toString());if(t&&t.length>1)return t[1]}return null}(e);return t?"a custom "+t+" object":"an object"}return"function"==typeof e?"a function":m("Unknown wrong type: "+typeof e)}function B(e,t,n){if(void 0===n)throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires a valid "+W(t)+" argument, but it was undefined.")}function q(e,t,n){k(t,function(t,r){if(n.indexOf(t)<0)throw new w(_.INVALID_ARGUMENT,"Unknown option '"+t+"' passed to function "+e+"(). Available options: "+n.join(", "))})}function V(e,t,n,r){var i=U(r);return new w(_.INVALID_ARGUMENT,"Function "+e+"() requires its "+W(n)+" argument to be a "+t+", but it was: "+i)}function W(e){switch(e){case 1:return"first";case 2:return"second";case 3:return"third";default:return e+"th"}}function z(e,t){return e+" "+t+(1===e?"":"s")}var H=function(){function e(){}return e.newId=function(){for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t="",n=0;n<20;n++)t+=e.charAt(Math.floor(Math.random()*e.length));return y(20===t.length,"Invalid auto ID: "+t),t},e}();function K(e,t){return e<t?-1:e>t?1:0}function G(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!e[n].isEqual(t[n]))return!1;return!0}function Q(){if("undefined"==typeof Uint8Array)throw new w(_.UNIMPLEMENTED,"Uint8Arrays are not available in this environment.")}function Y(){if(!g.getPlatform().base64Available)throw new w(_.UNIMPLEMENTED,"Blobs are unavailable in Firestore in this environment.")}var X,J,$=function(){function e(e){Y(),this._binaryString=e}return e.fromBase64String=function(t){A("Blob.fromBase64String",arguments,1),I("Blob.fromBase64String","string",1,t),Y();try{return new e(g.getPlatform().atob(t))}catch(e){throw new w(_.INVALID_ARGUMENT,"Failed to construct Blob from Base64 string: "+e)}},e.fromUint8Array=function(t){if(A("Blob.fromUint8Array",arguments,1),Q(),!(t instanceof Uint8Array))throw V("Blob.fromUint8Array","Uint8Array",1,t);return new e(Array.prototype.map.call(t,function(e){return String.fromCharCode(e)}).join(""))},e.prototype.toBase64=function(){return A("Blob.toBase64",arguments,0),Y(),g.getPlatform().btoa(this._binaryString)},e.prototype.toUint8Array=function(){A("Blob.toUint8Array",arguments,0),Q();for(var e=new Uint8Array(this._binaryString.length),t=0;t<this._binaryString.length;t++)e[t]=this._binaryString.charCodeAt(t);return e},e.prototype.toString=function(){return"Blob(base64: "+this.toBase64()+")"},e.prototype.isEqual=function(e){return this._binaryString===e._binaryString},e.prototype._compareTo=function(e){return K(this._binaryString,e._binaryString)},e}(),Z=E($,"Use Blob.fromUint8Array() or Blob.fromBase64String() instead."),ee=function(){function e(e,t){if(A("GeoPoint",arguments,2),I("GeoPoint","number",1,e),I("GeoPoint","number",2,t),!isFinite(e)||e<-90||e>90)throw new w(_.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(t)||t<-180||t>180)throw new w(_.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+t);this._lat=e,this._long=t}return Object.defineProperty(e.prototype,"latitude",{get:function(){return this._lat},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"longitude",{get:function(){return this._long},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(e){return this._lat===e._lat&&this._long===e._long},e.prototype._compareTo=function(e){return K(this._lat,e._lat)||K(this._long,e._long)},e}(),te=function(){function e(e,t){if(this.seconds=e,this.nanoseconds=t,t<0)throw new w(_.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(t>=1e9)throw new w(_.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+t);if(e<-62135596800)throw new w(_.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new w(_.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}return e.now=function(){return e.fromMillis(Date.now())},e.fromDate=function(t){return e.fromMillis(t.getTime())},e.fromMillis=function(t){var n=Math.floor(t/1e3);return new e(n,1e6*(t-1e3*n))},e.prototype.toDate=function(){return new Date(this.toMillis())},e.prototype.toMillis=function(){return 1e3*this.seconds+this.nanoseconds/1e6},e.prototype._compareTo=function(e){return this.seconds===e.seconds?K(this.nanoseconds,e.nanoseconds):K(this.seconds,e.seconds)},e.prototype.isEqual=function(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds},e.prototype.toString=function(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"},e}(),ne=function(){return function(e,t,n,r){this.databaseId=e,this.persistenceKey=t,this.host=n,this.ssl=r}}(),re="(default)",ie=function(){function e(e,t){this.projectId=e,this.database=t||re}return Object.defineProperty(e.prototype,"isDefaultDatabase",{get:function(){return this.database===re},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database},e.prototype.compareTo=function(e){return K(this.projectId,e.projectId)||K(this.database,e.database)},e}(),oe=function(){function e(e,t,n){this.init(e,t,n)}return e.prototype.init=function(e,t,n){void 0===t?t=0:t>e.length&&m("offset "+t+" out of range "+e.length),void 0===n?n=e.length-t:n>e.length-t&&m("length "+n+" out of range "+(e.length-t)),this.segments=e,this.offset=t,this.len=n},e.prototype.construct=function(e,t,n){var r=Object.create(Object.getPrototypeOf(this));return r.init(e,t,n),r},Object.defineProperty(e.prototype,"length",{get:function(){return this.len},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){return 0===e.comparator(this,t)},e.prototype.child=function(t){var n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach(function(e){n.push(e)}):"string"==typeof t?n.push(t):m("Unknown parameter type for Path.child(): "+t),this.construct(n)},e.prototype.limit=function(){return this.offset+this.length},e.prototype.popFirst=function(e){return e=void 0===e?1:e,y(this.length>=e,"Can't call popFirst() with less segments"),this.construct(this.segments,this.offset+e,this.length-e)},e.prototype.popLast=function(){return y(!this.isEmpty(),"Can't call popLast() on empty path"),this.construct(this.segments,this.offset,this.length-1)},e.prototype.firstSegment=function(){return y(!this.isEmpty(),"Can't call firstSegment() on empty path"),this.segments[this.offset]},e.prototype.lastSegment=function(){return y(!this.isEmpty(),"Can't call lastSegment() on empty path"),this.segments[this.limit()-1]},e.prototype.get=function(e){return y(e<this.length,"Index out of range"),this.segments[this.offset+e]},e.prototype.isEmpty=function(){return 0===this.length},e.prototype.isPrefixOf=function(e){if(e.length<this.length)return!1;for(var t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0},e.prototype.forEach=function(e){for(var t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])},e.prototype.toArray=function(){return this.segments.slice(this.offset,this.limit())},e.comparator=function(e,t){for(var n=Math.min(e.length,t.length),r=0;r<n;r++){var i=e.get(r),o=t.get(r);if(i<o)return-1;if(i>o)return 1}return e.length<t.length?-1:e.length>t.length?1:0},e}(),ae=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.prototype.canonicalString=function(){return this.toArray().join("/")},t.prototype.toString=function(){return this.canonicalString()},t.fromString=function(e){if(e.indexOf("//")>=0)throw new w(_.INVALID_ARGUMENT,"Invalid path ("+e+"). Paths must not contain // in them.");return new t(e.split("/").filter(function(e){return e.length>0}))},t.EMPTY_PATH=new t([]),t}(oe),se=/^[_a-zA-Z][_a-zA-Z0-9]*$/,ue=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return s.__extends(t,e),t.isValidIdentifier=function(e){return se.test(e)},t.prototype.canonicalString=function(){return this.toArray().map(function(e){return e=e.replace("\\","\\\\").replace("`","\\`"),t.isValidIdentifier(e)||(e="`"+e+"`"),e}).join(".")},t.prototype.toString=function(){return this.canonicalString()},t.prototype.isKeyField=function(){return 1===this.length&&"__name__"===this.get(0)},t.keyField=function(){return new t(["__name__"])},t.fromServerFormat=function(e){for(var n=[],r="",i=0,o=function(){if(0===r.length)throw new w(_.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'");n.push(r),r=""},a=!1;i<e.length;){var s=e[i];if("\\"===s){if(i+1===e.length)throw new w(_.INVALID_ARGUMENT,"Path has trailing escape character: "+e);var u=e[i+1];if("\\"!==u&&"."!==u&&"`"!==u)throw new w(_.INVALID_ARGUMENT,"Path has invalid escape sequence: "+e);r+=u,i+=2}else"`"===s?(a=!a,i++):"."!==s||a?(r+=s,i++):(o(),i++)}if(o(),a)throw new w(_.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new t(n)},t.EMPTY_PATH=new t([]),t}(oe),ce=function(){function e(t){this.path=t,y(e.isDocumentKey(t),"Invalid DocumentKey with an odd number of segments: "+t.toArray().join("/"))}return e.prototype.isEqual=function(e){return null!==e&&0===ae.comparator(this.path,e.path)},e.prototype.toString=function(){return this.path.toString()},e.comparator=function(e,t){return ae.comparator(e.path,t.path)},e.isDocumentKey=function(e){return e.length%2==0},e.fromSegments=function(t){return new e(new ae(t.slice()))},e.fromPathString=function(t){return new e(ae.fromString(t))},e.EMPTY=new e(new ae([])),e}(),le=function(){function e(e,t,n,r){this.key=e,this.version=t,this.data=n,this.hasLocalMutations=r.hasLocalMutations}return e.prototype.field=function(e){return this.data.field(e)},e.prototype.fieldValue=function(e){var t=this.field(e);return t?t.value():void 0},e.prototype.value=function(){return this.data.value()},e.prototype.isEqual=function(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.data.isEqual(t.data)&&this.hasLocalMutations===t.hasLocalMutations},e.prototype.toString=function(){return"Document("+this.key+", "+this.version+", "+this.data.toString()+", {hasLocalMutations: "+this.hasLocalMutations+"})"},e.compareByKey=function(e,t){return ce.comparator(e.key,t.key)},e.compareByField=function(e,t,n){var r=t.field(e),i=n.field(e);return void 0!==r&&void 0!==i?r.compareTo(i):m("Trying to compare documents on fields that don't exist")},e}(),fe=function(){function e(e,t){this.key=e,this.version=t}return e.prototype.toString=function(){return"NoDocument("+this.key+", "+this.version+")"},e.prototype.isEqual=function(e){return e&&e.version.isEqual(this.version)&&e.key.isEqual(this.key)},e.compareByKey=function(e,t){return ce.comparator(e.key,t.key)},e}(),he=function(){function e(e,t){this.comparator=e,this.root=t||de.EMPTY}return e.prototype.insert=function(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,de.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,de.BLACK,null,null))},e.prototype.get=function(e){for(var t=this.root;!t.isEmpty();){var n=this.comparator(e,t.key);if(0===n)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null},e.prototype.indexOf=function(e){for(var t=0,n=this.root;!n.isEmpty();){var r=this.comparator(e,n.key);if(0===r)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1},e.prototype.isEmpty=function(){return this.root.isEmpty()},Object.defineProperty(e.prototype,"size",{get:function(){return this.root.size},enumerable:!0,configurable:!0}),e.prototype.minKey=function(){return this.root.minKey()},e.prototype.maxKey=function(){return this.root.maxKey()},e.prototype.inorderTraversal=function(e){return this.root.inorderTraversal(e)},e.prototype.forEach=function(e){this.inorderTraversal(function(t,n){return e(t,n),!1})},e.prototype.reverseTraversal=function(e){return this.root.reverseTraversal(e)},e.prototype.getIterator=function(){return new pe(this.root,null,this.comparator,!1)},e.prototype.getIteratorFrom=function(e){return new pe(this.root,e,this.comparator,!1)},e.prototype.getReverseIterator=function(){return new pe(this.root,null,this.comparator,!0)},e.prototype.getReverseIteratorFrom=function(e){return new pe(this.root,e,this.comparator,!0)},e}(),pe=function(){function e(e,t,n,r){this.isReverse=r,this.nodeStack=[];for(var i=1;!e.isEmpty();)if(i=t?n(e.key,t):1,r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(0===i){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}return e.prototype.getNext=function(){y(this.nodeStack.length>0,"getNext() called on iterator when hasNext() is false.");var e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t},e.prototype.hasNext=function(){return this.nodeStack.length>0},e.prototype.peek=function(){if(0===this.nodeStack.length)return null;var e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}},e}(),de=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:e.EMPTY,this.right=null!=o?o:e.EMPTY,this.size=this.left.size+1+this.right.size}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min=function(){return this.left.isEmpty()?this:this.left.min()},e.prototype.minKey=function(){return this.min().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r=this,i=n(e,r.key);return(r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):0===i?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n))).fixUp()},e.prototype.removeMin=function(){if(this.left.isEmpty())return e.EMPTY;var t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),(t=t.copy(null,null,null,t.left.removeMin(),null)).fixUp()},e.prototype.remove=function(t,n){var r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),0===n(t,i.key)){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()},e.prototype.isRed=function(){return this.color},e.prototype.fixUp=function(){var e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e},e.prototype.moveRedLeft=function(){var e=this.colorFlip();return e.right.left.isRed()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight())).rotateLeft()).colorFlip()),e},e.prototype.moveRedRight=function(){var e=this.colorFlip();return e.left.left.isRed()&&(e=(e=e.rotateRight()).colorFlip()),e},e.prototype.rotateLeft=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth=function(){var e=this.check();return Math.pow(2,e)<=this.size+1},e.prototype.check=function(){if(this.isRed()&&this.left.isRed())throw m("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed())throw m("Right child of ("+this.key+","+this.value+") is red");var e=this.left.check();if(e!==this.right.check())throw m("Black depths differ");return e+(this.isRed()?0:1)},e.EMPTY=null,e.RED=!0,e.BLACK=!1,e}(),ve=function(){function e(){this.size=0}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new de(e,t)},e.prototype.remove=function(e,t){return this},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.isRed=function(){return!1},e.prototype.checkMaxDepth=function(){return!0},e.prototype.check=function(){return 0},e}();de.EMPTY=new ve,function(e){e[e.NullValue=0]="NullValue",e[e.BooleanValue=1]="BooleanValue",e[e.NumberValue=2]="NumberValue",e[e.TimestampValue=3]="TimestampValue",e[e.StringValue=4]="StringValue",e[e.BlobValue=5]="BlobValue",e[e.RefValue=6]="RefValue",e[e.GeoPointValue=7]="GeoPointValue",e[e.ArrayValue=8]="ArrayValue",e[e.ObjectValue=9]="ObjectValue"}(X||(X={})),function(e){e[e.Default=0]="Default",e[e.Estimate=1]="Estimate",e[e.Previous=2]="Previous"}(J||(J={}));var me=function(){function e(e,t){this.serverTimestampBehavior=e,this.timestampsInSnapshots=t}return e.fromSnapshotOptions=function(t,n){switch(t.serverTimestamps){case"estimate":return new e(J.Estimate,n);case"previous":return new e(J.Previous,n);case"none":case void 0:return new e(J.Default,n);default:return m("fromSnapshotOptions() called with invalid options.")}},e}(),ye=function(){function e(){}return e.prototype.toString=function(){var e=this.value();return null===e?"null":e.toString()},e.prototype.defaultCompareTo=function(e){return y(this.typeOrder!==e.typeOrder,"Default compareTo should not be used for values of same type."),K(this.typeOrder,e.typeOrder)},e}(),ge=function(e){function t(){var t=e.call(this)||this;return t.typeOrder=X.NullValue,t.internalValue=null,t}return s.__extends(t,e),t.prototype.value=function(e){return null},t.prototype.isEqual=function(e){return e instanceof t},t.prototype.compareTo=function(e){return e instanceof t?0:this.defaultCompareTo(e)},t.INSTANCE=new t,t}(ye),be=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.BooleanValue,n}return s.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?K(this,e):this.defaultCompareTo(e)},t.of=function(e){return e?t.TRUE:t.FALSE},t.TRUE=new t(!0),t.FALSE=new t(!1),t}(ye),_e=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.NumberValue,n}return s.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.compareTo=function(e){return e instanceof t?(n=this.internalValue,r=e.internalValue,n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1):this.defaultCompareTo(e);var n,r},t}(ye);function we(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var Ee=function(e){function t(t){return e.call(this,t)||this}return s.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&we(this.internalValue,e.internalValue)},t}(_e),xe=function(e){function t(t){var n=e.call(this,t)||this;return n.internalValue=t,n}return s.__extends(t,e),t.prototype.isEqual=function(e){return e instanceof t&&we(this.internalValue,e.internalValue)},t.NAN=new t(NaN),t.POSITIVE_INFINITY=new t(1/0),t.NEGATIVE_INFINITY=new t(-1/0),t}(_e),Ce=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.StringValue,n}return s.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue===e.internalValue},t.prototype.compareTo=function(e){return e instanceof t?K(this.internalValue,e.internalValue):this.defaultCompareTo(e)},t}(ye),Te=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.TimestampValue,n}return s.__extends(t,e),t.prototype.value=function(e){return e&&e.timestampsInSnapshots?this.internalValue:this.internalValue.toDate()},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):e instanceof ke?-1:this.defaultCompareTo(e)},t}(ye),ke=function(e){function t(t,n){var r=e.call(this)||this;return r.localWriteTime=t,r.previousValue=n,r.typeOrder=X.TimestampValue,r}return s.__extends(t,e),t.prototype.value=function(e){return e&&e.serverTimestampBehavior===J.Estimate?new Te(this.localWriteTime).value(e):e&&e.serverTimestampBehavior===J.Previous&&this.previousValue?this.previousValue.value(e):null},t.prototype.isEqual=function(e){return e instanceof t&&this.localWriteTime.isEqual(e.localWriteTime)},t.prototype.compareTo=function(e){return e instanceof t?this.localWriteTime._compareTo(e.localWriteTime):e instanceof Te?1:this.defaultCompareTo(e)},t.prototype.toString=function(){return"<ServerTimestamp localTime="+this.localWriteTime.toString()+">"},t}(ye),Se=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.BlobValue,n}return s.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t}(ye),Ae=function(e){function t(t,n){var r=e.call(this)||this;return r.databaseId=t,r.key=n,r.typeOrder=X.RefValue,r}return s.__extends(t,e),t.prototype.value=function(e){return this.key},t.prototype.isEqual=function(e){return e instanceof t&&(this.key.isEqual(e.key)&&this.databaseId.isEqual(e.databaseId))},t.prototype.compareTo=function(e){if(e instanceof t){var n=this.databaseId.compareTo(e.databaseId);return 0!==n?n:ce.comparator(this.key,e.key)}return this.defaultCompareTo(e)},t}(ye),Ne=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.GeoPointValue,n}return s.__extends(t,e),t.prototype.value=function(e){return this.internalValue},t.prototype.isEqual=function(e){return e instanceof t&&this.internalValue.isEqual(e.internalValue)},t.prototype.compareTo=function(e){return e instanceof t?this.internalValue._compareTo(e.internalValue):this.defaultCompareTo(e)},t}(ye),Oe=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.ObjectValue,n}return s.__extends(t,e),t.prototype.value=function(e){var t={};return this.internalValue.inorderTraversal(function(n,r){t[n]=r.value(e)}),t},t.prototype.forEach=function(e){this.internalValue.inorderTraversal(e)},t.prototype.isEqual=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),r=e.internalValue.getIterator();n.hasNext()&&r.hasNext();){var i=n.getNext(),o=r.getNext();if(i.key!==o.key||!i.value.isEqual(o.value))return!1}return!n.hasNext()&&!r.hasNext()}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=this.internalValue.getIterator(),r=e.internalValue.getIterator();n.hasNext()&&r.hasNext();){var i=n.getNext(),o=r.getNext(),a=K(i.key,o.key)||i.value.compareTo(o.value);if(a)return a}return K(n.hasNext(),r.hasNext())}return this.defaultCompareTo(e)},t.prototype.set=function(e,n){if(y(!e.isEmpty(),"Cannot set field for empty path on ObjectValue"),1===e.length)return this.setChild(e.firstSegment(),n);var r=this.child(e.firstSegment());r instanceof t||(r=t.EMPTY);var i=r.set(e.popFirst(),n);return this.setChild(e.firstSegment(),i)},t.prototype.delete=function(e){if(y(!e.isEmpty(),"Cannot delete field for empty path on ObjectValue"),1===e.length)return new t(this.internalValue.remove(e.firstSegment()));var n=this.child(e.firstSegment());if(n instanceof t){var r=n.delete(e.popFirst());return new t(this.internalValue.insert(e.firstSegment(),r))}return this},t.prototype.contains=function(e){return void 0!==this.field(e)},t.prototype.field=function(e){y(!e.isEmpty(),"Can't get field of empty path");var n=this;return e.forEach(function(e){n=n instanceof t&&n.internalValue.get(e)||void 0}),n},t.prototype.toString=function(){return JSON.stringify(this.value())},t.prototype.child=function(e){return this.internalValue.get(e)||void 0},t.prototype.setChild=function(e,n){return new t(this.internalValue.insert(e,n))},t.EMPTY=new t(new he(K)),t}(ye),Ie=function(e){function t(t){var n=e.call(this)||this;return n.internalValue=t,n.typeOrder=X.ArrayValue,n}return s.__extends(t,e),t.prototype.value=function(e){return this.internalValue.map(function(t){return t.value(e)})},t.prototype.forEach=function(e){this.internalValue.forEach(e)},t.prototype.isEqual=function(e){if(e instanceof t){if(this.internalValue.length!==e.internalValue.length)return!1;for(var n=0;n<this.internalValue.length;n++)if(!this.internalValue[n].isEqual(e.internalValue[n]))return!1;return!0}return!1},t.prototype.compareTo=function(e){if(e instanceof t){for(var n=Math.min(this.internalValue.length,e.internalValue.length),r=0;r<n;r++){var i=this.internalValue[r].compareTo(e.internalValue[r]);if(i)return i}return K(this.internalValue.length,e.internalValue.length)}return this.defaultCompareTo(e)},t.prototype.toString=function(){return JSON.stringify(this.value())},t}(ye),Pe=Number,Re=Pe.MIN_SAFE_INTEGER||-(Math.pow(2,53)-1),De=Pe.MAX_SAFE_INTEGER||Math.pow(2,53)-1,Me=Pe.isInteger||function(e){return"number"==typeof e&&isFinite(e)&&Math.floor(e)===e};function Le(e){return null===e||void 0===e}var je=function(){function e(e,t,n,r,i,o){void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===r&&(r=null),void 0===i&&(i=null),void 0===o&&(o=null),this.path=e,this.explicitOrderBy=t,this.filters=n,this.limit=r,this.startAt=i,this.endAt=o,this.memoizedCanonicalId=null,this.memoizedOrderBy=null,this.startAt&&this.assertValidBound(this.startAt),this.endAt&&this.assertValidBound(this.endAt)}return e.atPath=function(t){return new e(t)},Object.defineProperty(e.prototype,"orderBy",{get:function(){if(null===this.memoizedOrderBy){var e=this.getInequalityFilterField(),t=this.getFirstOrderByField();if(null!==e&&null===t)e.isKeyField()?this.memoizedOrderBy=[Ke]:this.memoizedOrderBy=[new He(e),Ke];else{y(null===e||null!==t&&e.isEqual(t),"First orderBy should match inequality field."),this.memoizedOrderBy=[];for(var n=!1,r=0,i=this.explicitOrderBy;r<i.length;r++){var o=i[r];this.memoizedOrderBy.push(o),o.field.isKeyField()&&(n=!0)}if(!n){var a=this.explicitOrderBy.length>0?this.explicitOrderBy[this.explicitOrderBy.length-1].dir:We.ASCENDING;this.memoizedOrderBy.push(a===We.ASCENDING?Ke:Ge)}}}return this.memoizedOrderBy},enumerable:!0,configurable:!0}),e.prototype.addFilter=function(t){y(null==this.getInequalityFilterField()||!(t instanceof Ue)||!t.isInequality()||t.field.isEqual(this.getInequalityFilterField()),"Query must only have one inequality field."),y(!ce.isDocumentKey(this.path),"No filtering allowed for document query");var n=this.filters.concat([t]);return new e(this.path,this.explicitOrderBy.slice(),n,this.limit,this.startAt,this.endAt)},e.prototype.addOrderBy=function(t){y(!ce.isDocumentKey(this.path),"No ordering allowed for document query"),y(!this.startAt&&!this.endAt,"Bounds must be set after orderBy");var n=this.explicitOrderBy.concat([t]);return new e(this.path,n,this.filters.slice(),this.limit,this.startAt,this.endAt)},e.prototype.withLimit=function(t){return new e(this.path,this.explicitOrderBy.slice(),this.filters.slice(),t,this.startAt,this.endAt)},e.prototype.withStartAt=function(t){return new e(this.path,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,t,this.endAt)},e.prototype.withEndAt=function(t){return new e(this.path,this.explicitOrderBy.slice(),this.filters.slice(),this.limit,this.startAt,t)},e.prototype.canonicalId=function(){if(null===this.memoizedCanonicalId){var e=this.path.canonicalString();e+="|f:";for(var t=0,n=this.filters;t<n.length;t++){e+=n[t].canonicalId(),e+=","}e+="|ob:";for(var r=0,i=this.orderBy;r<i.length;r++){e+=i[r].canonicalId(),e+=","}Le(this.limit)||(e+="|l:",e+=this.limit),this.startAt&&(e+="|lb:",e+=this.startAt.canonicalId()),this.endAt&&(e+="|ub:",e+=this.endAt.canonicalId()),this.memoizedCanonicalId=e}return this.memoizedCanonicalId},e.prototype.toString=function(){var e="Query("+this.path.canonicalString();return this.filters.length>0&&(e+=", filters: ["+this.filters.join(", ")+"]"),Le(this.limit)||(e+=", limit: "+this.limit),this.explicitOrderBy.length>0&&(e+=", orderBy: ["+this.explicitOrderBy.join(", ")+"]"),this.startAt&&(e+=", startAt: "+this.startAt.canonicalId()),this.endAt&&(e+=", endAt: "+this.endAt.canonicalId()),e+")"},e.prototype.isEqual=function(e){if(this.limit!==e.limit)return!1;if(this.orderBy.length!==e.orderBy.length)return!1;for(var t=0;t<this.orderBy.length;t++)if(!this.orderBy[t].isEqual(e.orderBy[t]))return!1;if(this.filters.length!==e.filters.length)return!1;for(t=0;t<this.filters.length;t++)if(!this.filters[t].isEqual(e.filters[t]))return!1;return!!this.path.isEqual(e.path)&&(!(null!==this.startAt?!this.startAt.isEqual(e.startAt):null!==e.startAt)&&(null!==this.endAt?this.endAt.isEqual(e.endAt):null===e.endAt))},e.prototype.docComparator=function(e,t){for(var n=!1,r=0,i=this.orderBy;r<i.length;r++){var o=i[r],a=o.compare(e,t);if(0!==a)return a;n=n||o.field.isKeyField()}return y(n,"orderBy used that doesn't compare on key field"),0},e.prototype.matches=function(e){return this.matchesAncestor(e)&&this.matchesOrderBy(e)&&this.matchesFilters(e)&&this.matchesBounds(e)},e.prototype.hasLimit=function(){return!Le(this.limit)},e.prototype.getFirstOrderByField=function(){return this.explicitOrderBy.length>0?this.explicitOrderBy[0].field:null},e.prototype.getInequalityFilterField=function(){for(var e=0,t=this.filters;e<t.length;e++){var n=t[e];if(n instanceof Ue&&n.isInequality())return n.field}return null},e.prototype.hasArrayContainsFilter=function(){return void 0!==this.filters.find(function(e){return e instanceof Ue&&e.op===Fe.ARRAY_CONTAINS})},e.prototype.isDocumentQuery=function(){return ce.isDocumentKey(this.path)&&0===this.filters.length},e.prototype.matchesAncestor=function(e){var t=e.key.path;return ce.isDocumentKey(this.path)?this.path.isEqual(t):this.path.isPrefixOf(t)&&this.path.length===t.length-1},e.prototype.matchesOrderBy=function(e){for(var t=0,n=this.explicitOrderBy;t<n.length;t++){var r=n[t];if(!r.field.isKeyField()&&void 0===e.field(r.field))return!1}return!0},e.prototype.matchesFilters=function(e){for(var t=0,n=this.filters;t<n.length;t++){if(!n[t].matches(e))return!1}return!0},e.prototype.matchesBounds=function(e){return!(this.startAt&&!this.startAt.sortsBeforeDocument(this.orderBy,e))&&(!this.endAt||!this.endAt.sortsBeforeDocument(this.orderBy,e))},e.prototype.assertValidBound=function(e){y(e.position.length<=this.orderBy.length,"Bound is longer than orderBy")},e}(),Fe=function(){function e(e){this.name=e}return e.fromString=function(t){switch(t){case"<":return e.LESS_THAN;case"<=":return e.LESS_THAN_OR_EQUAL;case"==":return e.EQUAL;case">=":return e.GREATER_THAN_OR_EQUAL;case">":return e.GREATER_THAN;case"array-contains":return e.ARRAY_CONTAINS;default:return m("Unknown relation: "+t)}},e.prototype.toString=function(){return this.name},e.prototype.isEqual=function(e){return this.name===e.name},e.LESS_THAN=new e("<"),e.LESS_THAN_OR_EQUAL=new e("<="),e.EQUAL=new e("=="),e.GREATER_THAN=new e(">"),e.GREATER_THAN_OR_EQUAL=new e(">="),e.ARRAY_CONTAINS=new e("array-contains"),e}(),Ue=function(){function e(e,t,n){this.field=e,this.op=t,this.value=n}return e.prototype.matches=function(e){if(this.field.isKeyField()){y(this.value instanceof Ae,"Comparing on key, but filter value not a RefValue"),y(this.op!==Fe.ARRAY_CONTAINS,"array-contains queries don't make sense on document keys.");var t=this.value,n=ce.comparator(e.key,t.key);return this.matchesComparison(n)}var r=e.field(this.field);return void 0!==r&&this.matchesValue(r)},e.prototype.matchesValue=function(e){var t=this;return this.op===Fe.ARRAY_CONTAINS?e instanceof Ie&&void 0!==e.internalValue.find(function(e){return e.isEqual(t.value)}):this.value.typeOrder===e.typeOrder&&this.matchesComparison(e.compareTo(this.value))},e.prototype.matchesComparison=function(e){switch(this.op){case Fe.LESS_THAN:return e<0;case Fe.LESS_THAN_OR_EQUAL:return e<=0;case Fe.EQUAL:return 0===e;case Fe.GREATER_THAN:return e>0;case Fe.GREATER_THAN_OR_EQUAL:return e>=0;default:return m("Unknown relation op"+this.op)}},e.prototype.isInequality=function(){return this.op!==Fe.EQUAL&&this.op!==Fe.ARRAY_CONTAINS},e.prototype.canonicalId=function(){return this.field.canonicalString()+this.op.toString()+this.value.toString()},e.prototype.isEqual=function(t){return t instanceof e&&(this.op.isEqual(t.op)&&this.field.isEqual(t.field)&&this.value.isEqual(t.value))},e.prototype.toString=function(){return this.field.canonicalString()+" "+this.op+" "+this.value.value()},e}(),Be=function(){function e(e){this.field=e}return e.prototype.matches=function(e){var t=e.field(this.field);return void 0!==t&&null===t.value()},e.prototype.canonicalId=function(){return this.field.canonicalString()+" IS null"},e.prototype.toString=function(){return this.field.canonicalString()+" IS null"},e.prototype.isEqual=function(t){return t instanceof e&&this.field.isEqual(t.field)},e}(),qe=function(){function e(e){this.field=e}return e.prototype.matches=function(e){var t=e.field(this.field).value();return"number"==typeof t&&isNaN(t)},e.prototype.canonicalId=function(){return this.field.canonicalString()+" IS NaN"},e.prototype.toString=function(){return this.field.canonicalString()+" IS NaN"},e.prototype.isEqual=function(t){return t instanceof e&&this.field.isEqual(t.field)},e}();var Ve,We=function(){function e(e){this.name=e}return e.prototype.toString=function(){return this.name},e.ASCENDING=new e("asc"),e.DESCENDING=new e("desc"),e}(),ze=function(){function e(e,t){this.position=e,this.before=t}return e.prototype.canonicalId=function(){for(var e=this.before?"b:":"a:",t=0,n=this.position;t<n.length;t++){e+=n[t].toString()}return e},e.prototype.sortsBeforeDocument=function(e,t){y(this.position.length<=e.length,"Bound has more components than query's orderBy");for(var n=0,r=0;r<this.position.length;r++){var i=e[r],o=this.position[r];if(i.field.isKeyField())y(o instanceof Ae,"Bound has a non-key value where the key path is being used."),n=ce.comparator(o.key,t.key);else{var a=t.field(i.field);y(void 0!==a,"Field should exist since document matched the orderBy already."),n=o.compareTo(a)}if(i.dir===We.DESCENDING&&(n*=-1),0!==n)break}return this.before?n<=0:n<0},e.prototype.isEqual=function(e){if(null===e)return!1;if(this.before!==e.before||this.position.length!==e.position.length)return!1;for(var t=0;t<this.position.length;t++){var n=this.position[t],r=e.position[t];return n.isEqual(r)}return!0},e}(),He=function(){function e(e,t){this.field=e,void 0===t&&(t=We.ASCENDING),this.dir=t,this.isKeyOrderBy=e.isKeyField()}return e.prototype.compare=function(e,t){var n=this.isKeyOrderBy?le.compareByKey(e,t):le.compareByField(this.field,e,t);switch(this.dir){case We.ASCENDING:return n;case We.DESCENDING:return-1*n;default:return m("Unknown direction: "+this.dir)}},e.prototype.canonicalId=function(){return this.field.canonicalString()+this.dir.toString()},e.prototype.toString=function(){return this.field.canonicalString()+" ("+this.dir+")"},e.prototype.isEqual=function(e){return this.dir===e.dir&&this.field.isEqual(e.field)},e}(),Ke=new He(ue.keyField(),We.ASCENDING),Ge=new He(ue.keyField(),We.DESCENDING),Qe=function(){function e(e){this.timestamp=e}return e.fromMicroseconds=function(t){var n=Math.floor(t/1e6);return new e(new te(n,t%1e6*1e3))},e.fromTimestamp=function(t){return new e(t)},e.forDeletedDoc=function(){return e.MIN},e.prototype.compareTo=function(e){return this.timestamp._compareTo(e.timestamp)},e.prototype.isEqual=function(e){return this.timestamp.isEqual(e.timestamp)},e.prototype.toMicroseconds=function(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3},e.prototype.toString=function(){return"SnapshotVersion("+this.timestamp.toString()+")"},e.prototype.toTimestamp=function(){return this.timestamp},e.MIN=new e(new te(0,0)),e}();!function(e){e[e.Listen=0]="Listen",e[e.ExistenceFilterMismatch=1]="ExistenceFilterMismatch",e[e.LimboResolution=2]="LimboResolution"}(Ve||(Ve={}));var Ye,Xe=function(){function e(e,t,n,r,i){void 0===r&&(r=Qe.MIN),void 0===i&&(i=b()),this.query=e,this.targetId=t,this.purpose=n,this.snapshotVersion=r,this.resumeToken=i}return e.prototype.update=function(t){return new e(this.query,this.targetId,this.purpose,t.snapshotVersion,t.resumeToken)},e.prototype.isEqual=function(e){return this.targetId===e.targetId&&this.purpose===e.purpose&&this.snapshotVersion.isEqual(e.snapshotVersion)&&this.resumeToken===e.resumeToken&&this.query.isEqual(e.query)},e}(),Je=function(){function e(e){this.fields=e}return e.prototype.covers=function(e){for(var t=0,n=this.fields;t<n.length;t++){if(n[t].isPrefixOf(e))return!0}return!1},e.prototype.isEqual=function(e){return G(this.fields,e.fields)},e}(),$e=function(){function e(e,t){this.field=e,this.transform=t}return e.prototype.isEqual=function(e){return this.field.isEqual(e.field)&&this.transform.isEqual(e.transform)},e}(),Ze=function(){return function(e,t){this.version=e,this.transformResults=t}}();!function(e){e[e.Set=0]="Set",e[e.Patch=1]="Patch",e[e.Transform=2]="Transform",e[e.Delete=3]="Delete"}(Ye||(Ye={}));var et,tt=function(){function e(e,t){this.updateTime=e,this.exists=t,y(void 0===e||void 0===t,'Precondition can specify "exists" or "updateTime" but not both')}return e.exists=function(t){return new e(void 0,t)},e.updateTime=function(t){return new e(t)},Object.defineProperty(e.prototype,"isNone",{get:function(){return void 0===this.updateTime&&void 0===this.exists},enumerable:!0,configurable:!0}),e.prototype.isValidFor=function(e){return void 0!==this.updateTime?e instanceof le&&e.version.isEqual(this.updateTime):void 0!==this.exists?this.exists?e instanceof le:null===e||e instanceof fe:(y(this.isNone,"Precondition should be empty"),!0)},e.prototype.isEqual=function(e){return t=this.updateTime,n=e.updateTime,(null!==t&&void 0!==t?!(!n||!t.isEqual(n)):t===n)&&this.exists===e.exists;var t,n},e.NONE=new e,e}(),nt=function(){function e(){}return e.prototype.verifyKeyMatches=function(e){null!=e&&y(e.key.isEqual(this.key),"Can only apply a mutation to a document with the same key")},e.getPostMutationVersion=function(e){return e instanceof le?e.version:Qe.MIN},e}(),rt=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.value=n,i.precondition=r,i.type=Ye.Set,i}return s.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){this.verifyKeyMatches(e),y(null==t.transformResults,"Transform results received by SetMutation.");var n=nt.getPostMutationVersion(e);return new le(this.key,n,this.value,{hasLocalMutations:!1})},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var r=nt.getPostMutationVersion(e);return new le(this.key,r,this.value,{hasLocalMutations:!0})},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.value.isEqual(e.value)&&this.precondition.isEqual(e.precondition)},t}(nt),it=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.key=t,o.data=n,o.fieldMask=r,o.precondition=i,o.type=Ye.Patch,o}return s.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),y(null==t.transformResults,"Transform results received by PatchMutation."),!this.precondition.isValidFor(e))return e;var n=nt.getPostMutationVersion(e),r=this.patchDocument(e);return new le(this.key,n,r,{hasLocalMutations:!1})},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var r=nt.getPostMutationVersion(e),i=this.patchDocument(e);return new le(this.key,r,i,{hasLocalMutations:!0})},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.fieldMask.isEqual(e.fieldMask)&&this.precondition.isEqual(e.precondition)},t.prototype.patchDocument=function(e){var t;return t=e instanceof le?e.data:Oe.EMPTY,this.patchObject(t)},t.prototype.patchObject=function(e){for(var t=0,n=this.fieldMask.fields;t<n.length;t++){var r=n[t],i=this.data.field(r);e=void 0!==i?e.set(r,i):e.delete(r)}return e},t}(nt),ot=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.fieldTransforms=n,r.type=Ye.Transform,r.precondition=tt.exists(!0),r}return s.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){if(this.verifyKeyMatches(e),y(null!=t.transformResults,"Transform results missing for TransformMutation."),!this.precondition.isValidFor(e))return e;var n=this.requireDocument(e),r=this.serverTransformResults(e,t.transformResults),i=this.transformObject(n.data,r);return new le(this.key,n.version,i,{hasLocalMutations:!1})},t.prototype.applyToLocalView=function(e,t,n){if(this.verifyKeyMatches(e),!this.precondition.isValidFor(e))return e;var r=this.requireDocument(e),i=this.localTransformResults(n,t),o=this.transformObject(r.data,i);return new le(this.key,r.version,o,{hasLocalMutations:!0})},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&G(this.fieldTransforms,e.fieldTransforms)&&this.precondition.isEqual(e.precondition)},t.prototype.requireDocument=function(e){y(e instanceof le,"Unknown MaybeDocument type "+e);var t=e;return y(t.key.isEqual(this.key),"Can only transform a document with the same key"),t},t.prototype.serverTransformResults=function(e,t){var n=[];y(this.fieldTransforms.length===t.length,"server transform result count ("+t.length+") should match field transform count ("+this.fieldTransforms.length+")");for(var r=0;r<t.length;r++){var i=this.fieldTransforms[r],o=i.transform,a=null;e instanceof le&&(a=e.field(i.field)||null),n.push(o.applyToRemoteDocument(a,t[r]))}return n},t.prototype.localTransformResults=function(e,t){for(var n=[],r=0,i=this.fieldTransforms;r<i.length;r++){var o=i[r],a=o.transform,s=null;t instanceof le&&(s=t.field(o.field)||null),n.push(a.applyToLocalView(s,e))}return n},t.prototype.transformObject=function(e,t){y(t.length===this.fieldTransforms.length,"TransformResults length mismatch.");for(var n=0;n<this.fieldTransforms.length;n++){var r=this.fieldTransforms[n].field;e=e.set(r,t[n])}return e},t}(nt),at=function(e){function t(t,n){var r=e.call(this)||this;return r.key=t,r.precondition=n,r.type=Ye.Delete,r}return s.__extends(t,e),t.prototype.applyToRemoteDocument=function(e,t){return this.verifyKeyMatches(e),y(null==t.transformResults,"Transform results received by DeleteMutation."),new fe(this.key,Qe.MIN)},t.prototype.applyToLocalView=function(e,t,n){return this.verifyKeyMatches(e),this.precondition.isValidFor(e)?(e&&y(e.key.isEqual(this.key),"Can only apply mutation to document with same key"),new fe(this.key,Qe.forDeletedDoc())):e},t.prototype.isEqual=function(e){return e instanceof t&&this.key.isEqual(e.key)&&this.precondition.isEqual(e.precondition)},t}(nt),st=function(){function e(e){this.count=e}return e.prototype.isEqual=function(e){return e&&e.count===this.count},e}();function ut(e){switch(e){case _.OK:return m("Treated status OK as error");case _.CANCELLED:case _.UNKNOWN:case _.DEADLINE_EXCEEDED:case _.RESOURCE_EXHAUSTED:case _.INTERNAL:case _.UNAVAILABLE:case _.UNAUTHENTICATED:return!1;case _.INVALID_ARGUMENT:case _.NOT_FOUND:case _.ALREADY_EXISTS:case _.PERMISSION_DENIED:case _.FAILED_PRECONDITION:case _.ABORTED:case _.OUT_OF_RANGE:case _.UNIMPLEMENTED:case _.DATA_LOSS:return!0;default:return m("Unknown status code: "+e)}}function ct(e){if(void 0===e)return d("GRPC error has no .code"),_.UNKNOWN;switch(e){case et.OK:return _.OK;case et.CANCELLED:return _.CANCELLED;case et.UNKNOWN:return _.UNKNOWN;case et.DEADLINE_EXCEEDED:return _.DEADLINE_EXCEEDED;case et.RESOURCE_EXHAUSTED:return _.RESOURCE_EXHAUSTED;case et.INTERNAL:return _.INTERNAL;case et.UNAVAILABLE:return _.UNAVAILABLE;case et.UNAUTHENTICATED:return _.UNAUTHENTICATED;case et.INVALID_ARGUMENT:return _.INVALID_ARGUMENT;case et.NOT_FOUND:return _.NOT_FOUND;case et.ALREADY_EXISTS:return _.ALREADY_EXISTS;case et.PERMISSION_DENIED:return _.PERMISSION_DENIED;case et.FAILED_PRECONDITION:return _.FAILED_PRECONDITION;case et.ABORTED:return _.ABORTED;case et.OUT_OF_RANGE:return _.OUT_OF_RANGE;case et.UNIMPLEMENTED:return _.UNIMPLEMENTED;case et.DATA_LOSS:return _.DATA_LOSS;default:return m("Unknown status code: "+e)}}!function(e){e[e.OK=0]="OK",e[e.CANCELLED=1]="CANCELLED",e[e.UNKNOWN=2]="UNKNOWN",e[e.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",e[e.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",e[e.NOT_FOUND=5]="NOT_FOUND",e[e.ALREADY_EXISTS=6]="ALREADY_EXISTS",e[e.PERMISSION_DENIED=7]="PERMISSION_DENIED",e[e.UNAUTHENTICATED=16]="UNAUTHENTICATED",e[e.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",e[e.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",e[e.ABORTED=10]="ABORTED",e[e.OUT_OF_RANGE=11]="OUT_OF_RANGE",e[e.UNIMPLEMENTED=12]="UNIMPLEMENTED",e[e.INTERNAL=13]="INTERNAL",e[e.UNAVAILABLE=14]="UNAVAILABLE",e[e.DATA_LOSS=15]="DATA_LOSS"}(et||(et={}));var lt=function(){function e(e){this.comparator=e,this.data=new he(this.comparator)}return e.fromMapKeys=function(t){var n=new e(t.comparator);return t.forEach(function(e){n=n.add(e)}),n},e.prototype.has=function(e){return null!==this.data.get(e)},e.prototype.first=function(){return this.data.minKey()},e.prototype.last=function(){return this.data.maxKey()},Object.defineProperty(e.prototype,"size",{get:function(){return this.data.size},enumerable:!0,configurable:!0}),e.prototype.indexOf=function(e){return this.data.indexOf(e)},e.prototype.forEach=function(e){this.data.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.forEachInRange=function(e,t){for(var n=this.data.getIteratorFrom(e[0]);n.hasNext();){var r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}},e.prototype.forEachWhile=function(e,t){var n;for(n=void 0!==t?this.data.getIteratorFrom(t):this.data.getIterator();n.hasNext();){if(!e(n.getNext().key))return}},e.prototype.firstAfterOrEqual=function(e){var t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null},e.prototype.add=function(e){return this.copy(this.data.remove(e).insert(e,!0))},e.prototype.delete=function(e){return this.has(e)?this.copy(this.data.remove(e)):this},e.prototype.isEmpty=function(){return this.data.isEmpty()},e.prototype.unionWith=function(e){var t=this;return e.forEach(function(e){t=t.add(e)}),t},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.data.getIterator(),r=t.data.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(0!==this.comparator(i,o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach(function(t){return e.push(t)}),"SortedSet("+e.toString()+")"},e.prototype.copy=function(t){var n=new e(this.comparator);return n.data=t,n},e}(),ft=new he(ce.comparator);function ht(){return ft}var pt=new he(ce.comparator);function dt(){return pt}var vt=new he(ce.comparator);function mt(){return vt}var yt=new lt(ce.comparator);function gt(){return yt}var bt,_t,wt=function(){return function(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}}(),Et=function(){return function(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}}();!function(e){e[e.Added=0]="Added",e[e.Removed=1]="Removed",e[e.Modified=2]="Modified",e[e.Metadata=3]="Metadata"}(bt||(bt={})),function(e){e[e.Local=0]="Local",e[e.Synced=1]="Synced"}(_t||(_t={}));var xt,Ct=function(){function e(){this.changeMap=new he(ce.comparator)}return e.prototype.track=function(e){var t=e.doc.key,n=this.changeMap.get(t);n?e.type!==bt.Added&&n.type===bt.Metadata?this.changeMap=this.changeMap.insert(t,e):e.type===bt.Metadata&&n.type!==bt.Removed?this.changeMap=this.changeMap.insert(t,{type:n.type,doc:e.doc}):e.type===bt.Modified&&n.type===bt.Modified?this.changeMap=this.changeMap.insert(t,{type:bt.Modified,doc:e.doc}):e.type===bt.Modified&&n.type===bt.Added?this.changeMap=this.changeMap.insert(t,{type:bt.Added,doc:e.doc}):e.type===bt.Removed&&n.type===bt.Added?this.changeMap=this.changeMap.remove(t):e.type===bt.Removed&&n.type===bt.Modified?this.changeMap=this.changeMap.insert(t,{type:bt.Removed,doc:n.doc}):e.type===bt.Added&&n.type===bt.Removed?this.changeMap=this.changeMap.insert(t,{type:bt.Modified,doc:e.doc}):m("unsupported combination of changes: "+JSON.stringify(e)+" after "+JSON.stringify(n)):this.changeMap=this.changeMap.insert(t,e)},e.prototype.getChanges=function(){var e=[];return this.changeMap.inorderTraversal(function(t,n){e.push(n)}),e},e}(),Tt=function(){function e(e,t,n,r,i,o,a,s){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.fromCache=i,this.hasPendingWrites=o,this.syncStateChanged=a,this.excludesMetadataChanges=s}return e.prototype.isEqual=function(e){if(this.fromCache!==e.fromCache||this.hasPendingWrites!==e.hasPendingWrites||this.syncStateChanged!==e.syncStateChanged||!this.query.isEqual(e.query)||!this.docs.isEqual(e.docs)||!this.oldDocs.isEqual(e.oldDocs))return!1;var t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(var r=0;r<t.length;r++)if(t[r].type!==n[r].type||!t[r].doc.isEqual(n[r].doc))return!1;return!0},e}(),kt=function(){return function(e,t,n,r){this.updatedTargetIds=e,this.removedTargetIds=t,this.key=n,this.newDoc=r}}(),St=function(){return function(e,t){this.targetId=e,this.existenceFilter=t}}();!function(e){e[e.NoChange=0]="NoChange",e[e.Added=1]="Added",e[e.Removed=2]="Removed",e[e.Current=3]="Current",e[e.Reset=4]="Reset"}(xt||(xt={}));var At=function(){return function(e,t,n,r){void 0===n&&(n=b()),void 0===r&&(r=null),this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}}(),Nt=function(){function e(){this.pendingResponses=0,this.documentChanges=Pt(),this._resumeToken=b(),this._current=!1,this._hasPendingChanges=!0}return Object.defineProperty(e.prototype,"current",{get:function(){return this._current},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"resumeToken",{get:function(){return this._resumeToken},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isPending",{get:function(){return 0!==this.pendingResponses},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hasPendingChanges",{get:function(){return this._hasPendingChanges},enumerable:!0,configurable:!0}),e.prototype.updateResumeToken=function(e){e.length>0&&(this._hasPendingChanges=!0,this._resumeToken=e)},e.prototype.toTargetChange=function(){var e=gt(),t=gt(),n=gt();return this.documentChanges.forEach(function(r,i){switch(i){case bt.Added:e=e.add(r);break;case bt.Modified:t=t.add(r);break;case bt.Removed:n=n.add(r);break;default:m("Encountered invalid change type: "+i)}}),new Et(this._resumeToken,this._current,e,t,n)},e.prototype.clearPendingChanges=function(){this._hasPendingChanges=!1,this.documentChanges=Pt()},e.prototype.addDocumentChange=function(e,t){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.insert(e,t)},e.prototype.removeDocumentChange=function(e){this._hasPendingChanges=!0,this.documentChanges=this.documentChanges.remove(e)},e.prototype.recordPendingTargetRequest=function(){this.pendingResponses+=1},e.prototype.recordTargetResponse=function(){this.pendingResponses-=1},e.prototype.markCurrent=function(){this._hasPendingChanges=!0,this._current=!0},e}(),Ot=function(){function e(e){this.metadataProvider=e,this.targetStates={},this.pendingDocumentUpdates=ht(),this.pendingDocumentTargetMapping=It(),this.pendingTargetResets=new lt(K)}return e.prototype.handleDocumentChange=function(e){for(var t=0,n=e.updatedTargetIds;t<n.length;t++){var r=n[t];e.newDoc instanceof le?this.addDocumentToTarget(r,e.newDoc):e.newDoc instanceof fe&&this.removeDocumentFromTarget(r,e.key,e.newDoc)}for(var i=0,o=e.removedTargetIds;i<o.length;i++){r=o[i];this.removeDocumentFromTarget(r,e.key,e.newDoc)}},e.prototype.handleTargetChange=function(e){var t=this;e.targetIds.forEach(function(n){var r=t.ensureTargetState(n);switch(e.state){case xt.NoChange:t.isActiveTarget(n)&&r.updateResumeToken(e.resumeToken);break;case xt.Added:r.recordTargetResponse(),r.isPending||r.clearPendingChanges(),r.updateResumeToken(e.resumeToken);break;case xt.Removed:r.recordTargetResponse(),r.isPending||t.removeTarget(n),y(!e.cause,"WatchChangeAggregator does not handle errored targets");break;case xt.Current:t.isActiveTarget(n)&&(r.markCurrent(),r.updateResumeToken(e.resumeToken));break;case xt.Reset:t.isActiveTarget(n)&&(t.resetTarget(n),r.updateResumeToken(e.resumeToken));break;default:m("Unknown target watch change state: "+e.state)}})},e.prototype.handleExistenceFilter=function(e){var t=e.targetId,n=e.existenceFilter.count,r=this.queryDataForActiveTarget(t);if(r){var i=r.query;if(i.isDocumentQuery())if(0===n){var o=new ce(i.path);this.removeDocumentFromTarget(t,o,new fe(o,Qe.forDeletedDoc()))}else y(1===n,"Single document existence filter with count: "+n);else this.getCurrentDocumentCountForTarget(t)!==n&&(this.resetTarget(t),this.pendingTargetResets=this.pendingTargetResets.add(t))}},e.prototype.createRemoteEvent=function(e){var t=this,n={};T(this.targetStates,function(r,i){var o=t.queryDataForActiveTarget(r);if(o){if(i.current&&o.query.isDocumentQuery()){var a=new ce(o.query.path);null!==t.pendingDocumentUpdates.get(a)||t.targetContainsDocument(r,a)||t.removeDocumentFromTarget(r,a,new fe(a,e))}i.hasPendingChanges&&(n[r]=i.toTargetChange(),i.clearPendingChanges())}});var r=gt();this.pendingDocumentTargetMapping.forEach(function(e,n){var i=!0;n.forEachWhile(function(e){var n=t.queryDataForActiveTarget(e);return!n||n.purpose===Ve.LimboResolution||(i=!1,!1)}),i&&(r=r.add(e))});var i=new wt(e,n,this.pendingTargetResets,this.pendingDocumentUpdates,r);return this.pendingDocumentUpdates=ht(),this.pendingDocumentTargetMapping=It(),this.pendingTargetResets=new lt(K),i},e.prototype.addDocumentToTarget=function(e,t){if(this.isActiveTarget(e)){var n=this.targetContainsDocument(e,t.key)?bt.Modified:bt.Added;this.ensureTargetState(e).addDocumentChange(t.key,n),this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t.key,t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t.key,this.ensureDocumentTargetMapping(t.key).add(e))}},e.prototype.removeDocumentFromTarget=function(e,t,n){if(this.isActiveTarget(e)){var r=this.ensureTargetState(e);this.targetContainsDocument(e,t)?r.addDocumentChange(t,bt.Removed):r.removeDocumentChange(t),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(t,this.ensureDocumentTargetMapping(t).delete(e)),n&&(this.pendingDocumentUpdates=this.pendingDocumentUpdates.insert(t,n))}},e.prototype.removeTarget=function(e){delete this.targetStates[e]},e.prototype.getCurrentDocumentCountForTarget=function(e){var t=this.ensureTargetState(e).toTargetChange();return this.metadataProvider.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size},e.prototype.recordPendingTargetRequest=function(e){this.ensureTargetState(e).recordPendingTargetRequest()},e.prototype.ensureTargetState=function(e){return this.targetStates[e]||(this.targetStates[e]=new Nt),this.targetStates[e]},e.prototype.ensureDocumentTargetMapping=function(e){var t=this.pendingDocumentTargetMapping.get(e);return t||(t=new lt(K),this.pendingDocumentTargetMapping=this.pendingDocumentTargetMapping.insert(e,t)),t},e.prototype.isActiveTarget=function(e){return null!==this.queryDataForActiveTarget(e)},e.prototype.queryDataForActiveTarget=function(e){var t=this.targetStates[e];return t&&t.isPending?null:this.metadataProvider.getQueryDataForTarget(e)},e.prototype.resetTarget=function(e){var t=this;y(!this.targetStates[e].isPending,"Should only reset active targets"),this.targetStates[e]=new Nt,this.metadataProvider.getRemoteKeysForTarget(e).forEach(function(n){t.removeDocumentFromTarget(e,n)})},e.prototype.targetContainsDocument=function(e,t){return this.metadataProvider.getRemoteKeysForTarget(e).has(t)},e}();function It(){return new he(ce.comparator)}function Pt(){return new he(ce.comparator)}var Rt=function(){function e(){}return e.prototype.applyToLocalView=function(e,t){return new ke(t,e)},e.prototype.applyToRemoteDocument=function(e,t){return t},e.prototype.isEqual=function(t){return t instanceof e},e.instance=new e,e}(),Dt=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=Lt(e),n=function(e){t.find(function(t){return t.isEqual(e)})||t.push(e)},r=0,i=this.elements;r<i.length;r++){n(i[r])}return new Ie(t)},e.prototype.isEqual=function(t){return t instanceof e&&G(t.elements,this.elements)},e}(),Mt=function(){function e(e){this.elements=e}return e.prototype.applyToLocalView=function(e,t){return this.apply(e)},e.prototype.applyToRemoteDocument=function(e,t){return this.apply(e)},e.prototype.apply=function(e){for(var t=Lt(e),n=function(e){t=t.filter(function(t){return!t.isEqual(e)})},r=0,i=this.elements;r<i.length;r++){n(i[r])}return new Ie(t)},e.prototype.isEqual=function(t){return t instanceof e&&G(t.elements,this.elements)},e}();function Lt(e){return e instanceof Ie?e.internalValue.slice():[]}var jt,Ft,Ut=((jt={})[We.ASCENDING.name]="ASCENDING",jt[We.DESCENDING.name]="DESCENDING",jt),Bt=((Ft={})[Fe.LESS_THAN.name]="LESS_THAN",Ft[Fe.LESS_THAN_OR_EQUAL.name]="LESS_THAN_OR_EQUAL",Ft[Fe.GREATER_THAN.name]="GREATER_THAN",Ft[Fe.GREATER_THAN_OR_EQUAL.name]="GREATER_THAN_OR_EQUAL",Ft[Fe.EQUAL.name]="EQUAL",Ft[Fe.ARRAY_CONTAINS.name]="ARRAY_CONTAINS",Ft),qt=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Vt(e,t){y(!Le(e),t+" is missing")}function Wt(e){return"number"==typeof e?e:"string"==typeof e?Number(e):m("can't parse "+e)}var zt=function(){function e(e,t){this.databaseId=e,this.options=t}return e.prototype.emptyByteString=function(){return this.options.useProto3Json?"":new Uint8Array(0)},e.prototype.unsafeCastProtoByteString=function(e){return e},e.prototype.fromRpcStatus=function(e){var t=void 0===e.code?_.UNKNOWN:ct(e.code);return new w(t,e.message||"")},e.prototype.toInt32Value=function(e){return Le(e)?void 0:{value:e}},e.prototype.fromInt32Value=function(e){var t;return Le(t="object"==typeof e?e.value:e)?null:t},e.prototype.toTimestamp=function(e){return{seconds:e.seconds,nanos:e.nanoseconds}},e.prototype.fromTimestamp=function(e){if("string"==typeof e)return this.fromIso8601String(e);y(!!e,"Cannot deserialize null or undefined timestamp.");var t=Wt(e.seconds||"0"),n=e.nanos||0;return new te(t,n)},e.prototype.fromIso8601String=function(e){var t=0,n=qt.exec(e);if(y(!!n,"invalid timestamp: "+e),n[1]){var r=n[1];r=(r+"000000000").substr(0,9),t=Number(r)}var i=new Date(e),o=Math.floor(i.getTime()/1e3);return new te(o,t)},e.prototype.toBytes=function(e){return this.options.useProto3Json?e.toBase64():this.unsafeCastProtoByteString(e.toUint8Array())},e.prototype.fromBlob=function(e){return"string"==typeof e?(y(this.options.useProto3Json,"Expected bytes to be passed in as Uint8Array, but got a string instead."),$.fromBase64String(e)):(y(!this.options.useProto3Json,"Expected bytes to be passed in as string, but got something else instead."),$.fromUint8Array(e))},e.prototype.toVersion=function(e){return this.toTimestamp(e.toTimestamp())},e.prototype.fromVersion=function(e){return y(!!e,"Trying to deserialize version that isn't set"),Qe.fromTimestamp(this.fromTimestamp(e))},e.prototype.toResourceName=function(e,t){return this.fullyQualifiedPrefixPath(e).child("documents").child(t).canonicalString()},e.prototype.fromResourceName=function(e){var t=ae.fromString(e);return y(this.isValidResourceName(t),"Tried to deserialize invalid key "+t.toString()),t},e.prototype.toName=function(e){return this.toResourceName(this.databaseId,e.path)},e.prototype.fromName=function(e){var t=this.fromResourceName(e);return y(t.get(1)===this.databaseId.projectId,"Tried to deserialize key from different project: "+t.get(1)+" vs "+this.databaseId.projectId),y(!t.get(3)&&!this.databaseId.database||t.get(3)===this.databaseId.database,"Tried to deserialize key from different database: "+t.get(3)+" vs "+this.databaseId.database),new ce(this.extractLocalPathFromResourceName(t))},e.prototype.toQueryPath=function(e){return 0===e.length?this.encodedDatabaseId:this.toResourceName(this.databaseId,e)},e.prototype.fromQueryPath=function(e){var t=this.fromResourceName(e);return 4===t.length?ae.EMPTY_PATH:this.extractLocalPathFromResourceName(t)},Object.defineProperty(e.prototype,"encodedDatabaseId",{get:function(){return new ae(["projects",this.databaseId.projectId,"databases",this.databaseId.database]).canonicalString()},enumerable:!0,configurable:!0}),e.prototype.fullyQualifiedPrefixPath=function(e){return new ae(["projects",e.projectId,"databases",e.database])},e.prototype.extractLocalPathFromResourceName=function(e){return y(e.length>4&&"documents"===e.get(4),"tried to deserialize invalid key "+e.toString()),e.popFirst(5)},e.prototype.isValidResourceName=function(e){return e.length>=4&&"projects"===e.get(0)&&"databases"===e.get(2)},e.prototype.toValue=function(e){if(e instanceof ge)return{nullValue:"NULL_VALUE"};if(e instanceof be)return{booleanValue:e.value()};if(e instanceof Ee)return{integerValue:""+e.value()};if(e instanceof xe){var t=e.value();if(this.options.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:e.value()}}return e instanceof Ce?{stringValue:e.value()}:e instanceof Oe?{mapValue:this.toMapValue(e)}:e instanceof Ie?{arrayValue:this.toArrayValue(e)}:e instanceof Te?{timestampValue:this.toTimestamp(e.internalValue)}:e instanceof Ne?{geoPointValue:{latitude:e.value().latitude,longitude:e.value().longitude}}:e instanceof Se?{bytesValue:this.toBytes(e.value())}:e instanceof Ae?{referenceValue:this.toResourceName(e.databaseId,e.key.path)}:m("Unknown FieldValue "+JSON.stringify(e))},e.prototype.fromValue=function(e){var t=this,n=e.value_type;if(Ht(e,n,"nullValue"))return ge.INSTANCE;if(Ht(e,n,"booleanValue"))return be.of(e.booleanValue);if(Ht(e,n,"integerValue"))return new Ee(Wt(e.integerValue));if(Ht(e,n,"doubleValue")){if(this.options.useProto3Json){if("NaN"===e.doubleValue)return xe.NAN;if("Infinity"===e.doubleValue)return xe.POSITIVE_INFINITY;if("-Infinity"===e.doubleValue)return xe.NEGATIVE_INFINITY}return new xe(e.doubleValue)}if(Ht(e,n,"stringValue"))return new Ce(e.stringValue);if(Ht(e,n,"mapValue"))return this.fromFields(e.mapValue.fields||{});if(Ht(e,n,"arrayValue")){Vt(e.arrayValue,"arrayValue");var r=e.arrayValue.values||[];return new Ie(r.map(function(e){return t.fromValue(e)}))}if(Ht(e,n,"timestampValue"))return Vt(e.timestampValue,"timestampValue"),new Te(this.fromTimestamp(e.timestampValue));if(Ht(e,n,"geoPointValue")){Vt(e.geoPointValue,"geoPointValue");var i=e.geoPointValue.latitude||0,o=e.geoPointValue.longitude||0;return new Ne(new ee(i,o))}if(Ht(e,n,"bytesValue")){Vt(e.bytesValue,"bytesValue");var a=this.fromBlob(e.bytesValue);return new Se(a)}if(Ht(e,n,"referenceValue")){Vt(e.referenceValue,"referenceValue");var s=this.fromResourceName(e.referenceValue),u=new ie(s.get(1),s.get(3)),c=new ce(this.extractLocalPathFromResourceName(s));return new Ae(u,c)}return m("Unknown Value proto "+JSON.stringify(e))},e.prototype.toMutationDocument=function(e,t){return{name:this.toName(e),fields:this.toFields(t)}},e.prototype.toDocument=function(e){return y(!e.hasLocalMutations,"Can't serialize documents with mutations."),{name:this.toName(e.key),fields:this.toFields(e.data),updateTime:this.toTimestamp(e.version.toTimestamp())}},e.prototype.fromDocument=function(e){return new le(this.fromName(e.name),this.fromVersion(e.updateTime),this.fromFields(e.fields||{}),{hasLocalMutations:!1})},e.prototype.toFields=function(e){var t=this,n={};return e.forEach(function(e,r){n[e]=t.toValue(r)}),n},e.prototype.fromFields=function(e){var t=this,n=e,r=Oe.EMPTY;return k(n,function(e,n){r=r.set(new ue([e]),t.fromValue(n))}),r},e.prototype.toMapValue=function(e){return{fields:this.toFields(e)}},e.prototype.toArrayValue=function(e){var t=this,n=[];return e.forEach(function(e){n.push(t.toValue(e))}),{values:n}},e.prototype.fromFound=function(e){y(!!e.found,"Tried to deserialize a found document from a missing document."),Vt(e.found.name,"doc.found.name"),Vt(e.found.updateTime,"doc.found.updateTime");var t=this.fromName(e.found.name),n=this.fromVersion(e.found.updateTime),r=this.fromFields(e.found.fields||{});return new le(t,n,r,{hasLocalMutations:!1})},e.prototype.fromMissing=function(e){y(!!e.missing,"Tried to deserialize a missing document from a found document."),y(!!e.readTime,"Tried to deserialize a missing document without a read time.");var t=this.fromName(e.missing),n=this.fromVersion(e.readTime);return new fe(t,n)},e.prototype.fromMaybeDocument=function(e){var t=e.result;return Ht(e,t,"found")?this.fromFound(e):Ht(e,t,"missing")?this.fromMissing(e):m("invalid batch get response: "+JSON.stringify(e))},e.prototype.toWatchTargetChangeState=function(e){switch(e){case xt.Added:return"ADD";case xt.Current:return"CURRENT";case xt.NoChange:return"NO_CHANGE";case xt.Removed:return"REMOVE";case xt.Reset:return"RESET";default:return m("Unknown WatchTargetChangeState: "+e)}},e.prototype.toTestWatchChange=function(e){if(e instanceof St)return{filter:{count:e.existenceFilter.count,targetId:e.targetId}};if(e instanceof kt){if(e.newDoc instanceof le){var t=e.newDoc;return{documentChange:{document:{name:this.toName(t.key),fields:this.toFields(t.data),updateTime:this.toVersion(t.version)},targetIds:e.updatedTargetIds,removedTargetIds:e.removedTargetIds}}}if(e.newDoc instanceof fe){t=e.newDoc;return{documentDelete:{document:this.toName(t.key),readTime:this.toVersion(t.version),removedTargetIds:e.removedTargetIds}}}if(null===e.newDoc)return{documentRemove:{document:this.toName(e.key),removedTargetIds:e.removedTargetIds}}}if(e instanceof At){var n=void 0;return e.cause&&(n={code:function(e){if(void 0===e)return et.OK;switch(e){case _.OK:return et.OK;case _.CANCELLED:return et.CANCELLED;case _.UNKNOWN:return et.UNKNOWN;case _.DEADLINE_EXCEEDED:return et.DEADLINE_EXCEEDED;case _.RESOURCE_EXHAUSTED:return et.RESOURCE_EXHAUSTED;case _.INTERNAL:return et.INTERNAL;case _.UNAVAILABLE:return et.UNAVAILABLE;case _.UNAUTHENTICATED:return et.UNAUTHENTICATED;case _.INVALID_ARGUMENT:return et.INVALID_ARGUMENT;case _.NOT_FOUND:return et.NOT_FOUND;case _.ALREADY_EXISTS:return et.ALREADY_EXISTS;case _.PERMISSION_DENIED:return et.PERMISSION_DENIED;case _.FAILED_PRECONDITION:return et.FAILED_PRECONDITION;case _.ABORTED:return et.ABORTED;case _.OUT_OF_RANGE:return et.OUT_OF_RANGE;case _.UNIMPLEMENTED:return et.UNIMPLEMENTED;case _.DATA_LOSS:return et.DATA_LOSS;default:return m("Unknown status code: "+e)}}(e.cause.code),message:e.cause.message}),{targetChange:{targetChangeType:this.toWatchTargetChangeState(e.state),targetIds:e.targetIds,resumeToken:this.unsafeCastProtoByteString(e.resumeToken),cause:n}}}return m("Unrecognized watch change: "+JSON.stringify(e))},e.prototype.fromWatchChange=function(e){var t,n=e.response_type;if(Ht(e,n,"targetChange")){Vt(e.targetChange,"targetChange");var r=this.fromWatchTargetChangeState(e.targetChange.targetChangeType||"NO_CHANGE"),i=e.targetChange.targetIds||[],o=e.targetChange.resumeToken||this.emptyByteString(),a=e.targetChange.cause,s=a&&this.fromRpcStatus(a);t=new At(r,i,o,s||null)}else if(Ht(e,n,"documentChange")){Vt(e.documentChange,"documentChange"),Vt(e.documentChange.document,"documentChange.name"),Vt(e.documentChange.document.name,"documentChange.document.name"),Vt(e.documentChange.document.updateTime,"documentChange.document.updateTime");var u=e.documentChange,c=this.fromName(u.document.name),l=this.fromVersion(u.document.updateTime),f=this.fromFields(u.document.fields||{}),h=new le(c,l,f,{hasLocalMutations:!1}),p=u.targetIds||[],d=u.removedTargetIds||[];t=new kt(p,d,h.key,h)}else if(Ht(e,n,"documentDelete")){Vt(e.documentDelete,"documentDelete"),Vt(e.documentDelete.document,"documentDelete.document");var v=e.documentDelete;c=this.fromName(v.document),l=v.readTime?this.fromVersion(v.readTime):Qe.forDeletedDoc(),h=new fe(c,l),d=v.removedTargetIds||[];t=new kt([],d,h.key,h)}else if(Ht(e,n,"documentRemove")){Vt(e.documentRemove,"documentRemove"),Vt(e.documentRemove.document,"documentRemove");var y=e.documentRemove;c=this.fromName(y.document),d=y.removedTargetIds||[];t=new kt([],d,c,null)}else{if(!Ht(e,n,"filter"))return m("Unknown change type "+JSON.stringify(e));Vt(e.filter,"filter"),Vt(e.filter.targetId,"filter.targetId");var g=e.filter,b=g.count||0,_=new st(b),w=g.targetId;t=new St(w,_)}return t},e.prototype.fromWatchTargetChangeState=function(e){return"NO_CHANGE"===e?xt.NoChange:"ADD"===e?xt.Added:"REMOVE"===e?xt.Removed:"CURRENT"===e?xt.Current:"RESET"===e?xt.Reset:m("Got unexpected TargetChange.state: "+e)},e.prototype.versionFromListenResponse=function(e){if(!Ht(e,e.response_type,"targetChange"))return Qe.MIN;var t=e.targetChange;return t.targetIds&&t.targetIds.length?Qe.MIN:t.readTime?this.fromVersion(t.readTime):Qe.MIN},e.prototype.toMutation=function(e){var t,n=this;if(e instanceof rt)t={update:this.toMutationDocument(e.key,e.value)};else if(e instanceof at)t={delete:this.toName(e.key)};else if(e instanceof it)t={update:this.toMutationDocument(e.key,e.data),updateMask:this.toDocumentMask(e.fieldMask)};else{if(!(e instanceof ot))return m("Unknown mutation type "+e.type);t={transform:{document:this.toName(e.key),fieldTransforms:e.fieldTransforms.map(function(e){return n.toFieldTransform(e)})}}}return e.precondition.isNone||(t.currentDocument=this.toPrecondition(e.precondition)),t},e.prototype.fromMutation=function(e){var t=this,n=e.currentDocument?this.fromPrecondition(e.currentDocument):tt.NONE;if(e.update){Vt(e.update.name,"name");var r=this.fromName(e.update.name),i=this.fromFields(e.update.fields||{});if(e.updateMask){var o=this.fromDocumentMask(e.updateMask);return new it(r,i,o,n)}return new rt(r,i,n)}if(e.delete){r=this.fromName(e.delete);return new at(r,n)}if(e.transform){r=this.fromName(e.transform.document);var a=e.transform.fieldTransforms.map(function(e){return t.fromFieldTransform(e)});return y(!0===n.exists,'Transforms only support precondition "exists == true"'),new ot(r,a)}return m("unknown mutation proto: "+JSON.stringify(e))},e.prototype.toPrecondition=function(e){return y(!e.isNone,"Can't serialize an empty precondition"),void 0!==e.updateTime?{updateTime:this.toVersion(e.updateTime)}:void 0!==e.exists?{exists:e.exists}:m("Unknown precondition")},e.prototype.fromPrecondition=function(e){return void 0!==e.updateTime?tt.updateTime(this.fromVersion(e.updateTime)):void 0!==e.exists?tt.exists(e.exists):tt.NONE},e.prototype.fromWriteResult=function(e){var t=this,n=e.updateTime?this.fromVersion(e.updateTime):null,r=null;return e.transformResults&&e.transformResults.length>0&&(r=e.transformResults.map(function(e){return t.fromValue(e)})),new Ze(n,r)},e.prototype.fromWriteResults=function(e){var t=this;return(e||[]).map(function(e){return t.fromWriteResult(e)})},e.prototype.toFieldTransform=function(e){var t=this,n=e.transform;return n instanceof Rt?{fieldPath:e.field.canonicalString(),setToServerValue:"REQUEST_TIME"}:n instanceof Dt?{fieldPath:e.field.canonicalString(),appendMissingElements:{values:n.elements.map(function(e){return t.toValue(e)})}}:n instanceof Mt?{fieldPath:e.field.canonicalString(),removeAllFromArray:{values:n.elements.map(function(e){return t.toValue(e)})}}:void m("Unknown transform: "+e.transform)},e.prototype.fromFieldTransform=function(e){var t=this,n=e.transform_type,r=null;if(Ht(e,n,"setToServerValue"))y("REQUEST_TIME"===e.setToServerValue,"Unknown server value transform proto: "+JSON.stringify(e)),r=Rt.instance;else if(Ht(e,n,"appendMissingElements")){var i=e.appendMissingElements.values||[];r=new Dt(i.map(function(e){return t.fromValue(e)}))}else if(Ht(e,n,"removeAllFromArray")){i=e.removeAllFromArray.values||[];r=new Mt(i.map(function(e){return t.fromValue(e)}))}else m("Unknown transform proto: "+JSON.stringify(e));var o=ue.fromServerFormat(e.fieldPath);return new $e(o,r)},e.prototype.toDocumentsTarget=function(e){return{documents:[this.toQueryPath(e.path)]}},e.prototype.fromDocumentsTarget=function(e){var t=e.documents.length;y(1===t,"DocumentsTarget contained other than 1 document: "+t);var n=e.documents[0];return je.atPath(this.fromQueryPath(n))},e.prototype.toQueryTarget=function(e){var t={structuredQuery:{}};if(e.path.isEmpty())t.parent=this.toQueryPath(ae.EMPTY_PATH);else{var n=e.path;y(n.length%2!=0,"Document queries with filters are not supported."),t.parent=this.toQueryPath(n.popLast()),t.structuredQuery.from=[{collectionId:n.lastSegment()}]}var r=this.toFilter(e.filters);r&&(t.structuredQuery.where=r);var i=this.toOrder(e.orderBy);i&&(t.structuredQuery.orderBy=i);var o=this.toInt32Value(e.limit);return void 0!==o&&(t.structuredQuery.limit=o),e.startAt&&(t.structuredQuery.startAt=this.toCursor(e.startAt)),e.endAt&&(t.structuredQuery.endAt=this.toCursor(e.endAt)),t},e.prototype.fromQueryTarget=function(e){var t=this.fromQueryPath(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0;if(r>0){y(1===r,"StructuredQuery.from with more than one collection is not supported.");var i=n.from[0];t=t.child(i.collectionId)}var o=[];n.where&&(o=this.fromFilter(n.where));var a=[];n.orderBy&&(a=this.fromOrder(n.orderBy));var s=null;n.limit&&(s=this.fromInt32Value(n.limit));var u=null;n.startAt&&(u=this.fromCursor(n.startAt));var c=null;return n.endAt&&(c=this.fromCursor(n.endAt)),new je(t,a,o,s,u,c)},e.prototype.toListenRequestLabels=function(e){var t=this.toLabel(e.purpose);return null==t?null:{"goog-listen-tags":t}},e.prototype.toLabel=function(e){switch(e){case Ve.Listen:return null;case Ve.ExistenceFilterMismatch:return"existence-filter-mismatch";case Ve.LimboResolution:return"limbo-document";default:return m("Unrecognized query purpose: "+e)}},e.prototype.toTarget=function(e){var t,n=e.query;return(t=n.isDocumentQuery()?{documents:this.toDocumentsTarget(n)}:{query:this.toQueryTarget(n)}).targetId=e.targetId,e.resumeToken.length>0&&(t.resumeToken=this.unsafeCastProtoByteString(e.resumeToken)),t},e.prototype.toFilter=function(e){var t=this;if(0!==e.length){var n=e.map(function(e){return e instanceof Ue?t.toRelationFilter(e):t.toUnaryFilter(e)});return 1===n.length?n[0]:{compositeFilter:{op:"AND",filters:n}}}},e.prototype.fromFilter=function(e){var t=this;return e?void 0!==e.unaryFilter?[this.fromUnaryFilter(e)]:void 0!==e.fieldFilter?[this.fromRelationFilter(e)]:void 0!==e.compositeFilter?e.compositeFilter.filters.map(function(e){return t.fromFilter(e)}).reduce(function(e,t){return e.concat(t)}):m("Unknown filter: "+JSON.stringify(e)):[]},e.prototype.toOrder=function(e){var t=this;if(0!==e.length)return e.map(function(e){return t.toPropertyOrder(e)})},e.prototype.fromOrder=function(e){var t=this;return e.map(function(e){return t.fromPropertyOrder(e)})},e.prototype.toCursor=function(e){var t=this;return{before:e.before,values:e.position.map(function(e){return t.toValue(e)})}},e.prototype.fromCursor=function(e){var t=this,n=!!e.before,r=e.values.map(function(e){return t.fromValue(e)});return new ze(r,n)},e.prototype.toDirection=function(e){return Ut[e.name]},e.prototype.fromDirection=function(e){switch(e){case"ASCENDING":return We.ASCENDING;case"DESCENDING":return We.DESCENDING;default:return}},e.prototype.toOperatorName=function(e){return Bt[e.name]},e.prototype.fromOperatorName=function(e){switch(e){case"EQUAL":return Fe.EQUAL;case"GREATER_THAN":return Fe.GREATER_THAN;case"GREATER_THAN_OR_EQUAL":return Fe.GREATER_THAN_OR_EQUAL;case"LESS_THAN":return Fe.LESS_THAN;case"LESS_THAN_OR_EQUAL":return Fe.LESS_THAN_OR_EQUAL;case"ARRAY_CONTAINS":return Fe.ARRAY_CONTAINS;case"OPERATOR_UNSPECIFIED":return m("Unspecified relation");default:return m("Unknown relation")}},e.prototype.toFieldPathReference=function(e){return{fieldPath:e.canonicalString()}},e.prototype.fromFieldPathReference=function(e){return ue.fromServerFormat(e.fieldPath)},e.prototype.toPropertyOrder=function(e){return{field:this.toFieldPathReference(e.field),direction:this.toDirection(e.dir)}},e.prototype.fromPropertyOrder=function(e){return new He(this.fromFieldPathReference(e.field),this.fromDirection(e.direction))},e.prototype.toRelationFilter=function(e){return e instanceof Ue?{fieldFilter:{field:this.toFieldPathReference(e.field),op:this.toOperatorName(e.op),value:this.toValue(e.value)}}:m("Unrecognized filter: "+JSON.stringify(e))},e.prototype.fromRelationFilter=function(e){return new Ue(this.fromFieldPathReference(e.fieldFilter.field),this.fromOperatorName(e.fieldFilter.op),this.fromValue(e.fieldFilter.value))},e.prototype.toUnaryFilter=function(e){return e instanceof qe?{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NAN"}}:e instanceof Be?{unaryFilter:{field:this.toFieldPathReference(e.field),op:"IS_NULL"}}:m("Unrecognized filter: "+JSON.stringify(e))},e.prototype.fromUnaryFilter=function(e){switch(e.unaryFilter.op){case"IS_NAN":var t=this.fromFieldPathReference(e.unaryFilter.field);return new qe(t);case"IS_NULL":var n=this.fromFieldPathReference(e.unaryFilter.field);return new Be(n);case"OPERATOR_UNSPECIFIED":return m("Unspecified filter");default:return m("Unknown filter")}},e.prototype.toDocumentMask=function(e){return{fieldPaths:e.fields.map(function(e){return e.canonicalString()})}},e.prototype.fromDocumentMask=function(e){var t=(e.fieldPaths||[]).map(function(e){return ue.fromServerFormat(e)});return new Je(t)},e}();function Ht(e,t,n){return t===n||!t&&n in e}var Kt="FirebaseError",Gt=Error.captureStackTrace,Qt=function(){return function(e,t){if(this.code=e,this.message=t,Gt)Gt(this,Yt.prototype.create);else try{throw Error.apply(this,arguments)}catch(e){this.name=Kt,Object.defineProperty(this,"stack",{get:function(){return e.stack}})}}}();Qt.prototype=Object.create(Error.prototype),Qt.prototype.constructor=Qt,Qt.prototype.name=Kt;var Yt=function(){function e(e,t,n){this.service=e,this.serviceName=t,this.errors=n,this.pattern=/\{\$([^}]+)}/g}return e.prototype.create=function(e,t){void 0===t&&(t={});var n,r=this.errors[e],i=this.service+"/"+e;n=void 0===r?"Error":r.replace(this.pattern,function(e,n){var r=t[n];return void 0!==r?r.toString():"<"+n+"?>"}),n=this.serviceName+": "+n+" ("+i+").";var o=new Qt(i,n);for(var a in t)t.hasOwnProperty(a)&&"_"!==a.slice(-1)&&(o[a]=t[a]);return o},e}(),Xt=(function(e){function t(){var t=e.call(this)||this;t.chain_=[],t.buf_=[],t.W_=[],t.pad_=[],t.inbuf_=0,t.total_=0,t.blockSize=64,t.pad_[0]=128;for(var n=1;n<t.blockSize;++n)t.pad_[n]=0;return t.reset(),t}s.__extends(t,e),t.prototype.reset=function(){this.chain_[0]=1732584193,this.chain_[1]=4023233417,this.chain_[2]=2562383102,this.chain_[3]=271733878,this.chain_[4]=3285377520,this.inbuf_=0,this.total_=0},t.prototype.compress_=function(e,t){t||(t=0);var n=this.W_;if("string"==typeof e)for(var r=0;r<16;r++)n[r]=e.charCodeAt(t)<<24|e.charCodeAt(t+1)<<16|e.charCodeAt(t+2)<<8|e.charCodeAt(t+3),t+=4;else for(r=0;r<16;r++)n[r]=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3],t+=4;for(r=16;r<80;r++){var i=n[r-3]^n[r-8]^n[r-14]^n[r-16];n[r]=4294967295&(i<<1|i>>>31)}var o,a,s=this.chain_[0],u=this.chain_[1],c=this.chain_[2],l=this.chain_[3],f=this.chain_[4];for(r=0;r<80;r++){r<40?r<20?(o=l^u&(c^l),a=1518500249):(o=u^c^l,a=1859775393):r<60?(o=u&c|l&(u|c),a=2400959708):(o=u^c^l,a=3395469782);i=(s<<5|s>>>27)+o+f+a+n[r]&4294967295;f=l,l=c,c=4294967295&(u<<30|u>>>2),u=s,s=i}this.chain_[0]=this.chain_[0]+s&4294967295,this.chain_[1]=this.chain_[1]+u&4294967295,this.chain_[2]=this.chain_[2]+c&4294967295,this.chain_[3]=this.chain_[3]+l&4294967295,this.chain_[4]=this.chain_[4]+f&4294967295},t.prototype.update=function(e,t){if(null!=e){void 0===t&&(t=e.length);for(var n=t-this.blockSize,r=0,i=this.buf_,o=this.inbuf_;r<t;){if(0==o)for(;r<=n;)this.compress_(e,r),r+=this.blockSize;if("string"==typeof e){for(;r<t;)if(i[o]=e.charCodeAt(r),++r,++o==this.blockSize){this.compress_(i),o=0;break}}else for(;r<t;)if(i[o]=e[r],++r,++o==this.blockSize){this.compress_(i),o=0;break}}this.inbuf_=o,this.total_+=t}},t.prototype.digest=function(){var e=[],t=8*this.total_;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var n=this.blockSize-1;n>=56;n--)this.buf_[n]=255&t,t/=256;this.compress_(this.buf_);var r=0;for(n=0;n<5;n++)for(var i=24;i>=0;i-=8)e[r]=this.chain_[n]>>i&255,++r;return e}}(function(){return function(){this.blockSize=-1}}()),function(){function e(e){this.sendFn=e.sendFn,this.closeFn=e.closeFn}return e.prototype.onOpen=function(e){y(!this.wrappedOnOpen,"Called onOpen on stream twice!"),this.wrappedOnOpen=e},e.prototype.onClose=function(e){y(!this.wrappedOnClose,"Called onClose on stream twice!"),this.wrappedOnClose=e},e.prototype.onMessage=function(e){y(!this.wrappedOnMessage,"Called onMessage on stream twice!"),this.wrappedOnMessage=e},e.prototype.close=function(){this.closeFn()},e.prototype.send=function(e){this.sendFn(e)},e.prototype.callOnOpen=function(){y(void 0!==this.wrappedOnOpen,"Cannot call onOpen because no callback was set"),this.wrappedOnOpen()},e.prototype.callOnClose=function(e){y(void 0!==this.wrappedOnClose,"Cannot call onClose because no callback was set"),this.wrappedOnClose(e)},e.prototype.callOnMessage=function(e){y(void 0!==this.wrappedOnMessage,"Cannot call onMessage because no callback was set"),this.wrappedOnMessage(e)},e}()),Jt="Connection",$t={BatchGetDocuments:"batchGet",Commit:"commit"},Zt="gl-js/ fire/"+c,en=function(){function e(e){this.databaseId=e.databaseId,this.pool=new u.XhrIoPool;var t=e.ssl?"https":"http";this.baseUrl=t+"://"+e.host}return e.prototype.modifyHeadersForRequest=function(e,t){if(t)for(var n in t.authHeaders)t.authHeaders.hasOwnProperty(n)&&(e[n]=t.authHeaders[n]);e["X-Goog-Api-Client"]=Zt},e.prototype.invokeRPC=function(e,t,n){var r=this,i=this.makeUrl(e);return new Promise(function(o,a){r.pool.getObject(function(s){s.listenOnce(u.EventType.COMPLETE,function(){try{switch(s.getLastErrorCode()){case u.ErrorCode.NO_ERROR:var t=s.getResponseJson();p(Jt,"XHR received:",JSON.stringify(t)),o(t);break;case u.ErrorCode.TIMEOUT:p(Jt,'RPC "'+e+'" timed out'),a(new w(_.DEADLINE_EXCEEDED,"Request time out"));break;case u.ErrorCode.HTTP_ERROR:var n=s.getStatus();p(Jt,'RPC "'+e+'" failed with status:',n,"response text:",s.getResponseText()),n>0?a(new w(function(e){switch(e){case 200:return _.OK;case 400:return _.INVALID_ARGUMENT;case 401:return _.UNAUTHENTICATED;case 403:return _.PERMISSION_DENIED;case 404:return _.NOT_FOUND;case 409:return _.ABORTED;case 416:return _.OUT_OF_RANGE;case 429:return _.RESOURCE_EXHAUSTED;case 499:return _.CANCELLED;case 500:return _.UNKNOWN;case 501:return _.UNIMPLEMENTED;case 503:return _.UNAVAILABLE;case 504:return _.DEADLINE_EXCEEDED;default:return e>=200&&e<300?_.OK:e>=400&&e<500?_.FAILED_PRECONDITION:e>=500&&e<600?_.INTERNAL:_.UNKNOWN}}(n),"Server responded with status "+s.getStatusText())):(p(Jt,'RPC "'+e+'" failed'),a(new w(_.UNAVAILABLE,"Connection failed.")));break;default:m('RPC "'+e+'" failed with unanticipated webchannel error '+s.getLastErrorCode()+": "+s.getLastError()+", giving up.")}}finally{p(Jt,'RPC "'+e+'" completed.'),r.pool.releaseObject(s)}});var c=JSON.stringify(t);p(Jt,"XHR sending: ",i+" "+c);var l={"Content-Type":"text/plain"};r.modifyHeadersForRequest(l,n),s.send(i,"POST",c,l,15)})})},e.prototype.invokeStreamingRPC=function(e,t,n){return this.invokeRPC(e,t,n)},e.prototype.openStream=function(e,t){var n=[this.baseUrl,"/","google.firestore.v1beta1.Firestore","/",e,"/channel"],r=u.createWebChannelTransport(),i={backgroundChannelTest:!0,httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:"projects/"+this.databaseId.projectId+"/databases/"+this.databaseId.database},sendRawJson:!0,supportsCrossDomainXhr:!0};this.modifyHeadersForRequest(i.initMessageHeaders,t),"object"==typeof navigator&&"ReactNative"===navigator.product||(i.httpHeadersOverwriteParam="$httpHeaders");var o=n.join("");p(Jt,"Creating WebChannel: "+o+" "+i);var a=r.createWebChannel(o,i),s=!1,c=!1,l=new Xt({sendFn:function(e){c?p(Jt,"Not sending because WebChannel is closed:",e):(s||(p(Jt,"Opening WebChannel transport."),a.open(),s=!0),p(Jt,"WebChannel sending:",e),a.send(e))},closeFn:function(){return a.close()}}),f=function(e,t){a.listen(e,function(e){try{t(e)}catch(e){setTimeout(function(){throw e},0)}})};return f(u.WebChannel.EventType.OPEN,function(){c||p(Jt,"WebChannel transport opened.")}),f(u.WebChannel.EventType.CLOSE,function(){c||(c=!0,p(Jt,"WebChannel transport closed"),l.callOnClose())}),f(u.WebChannel.EventType.ERROR,function(e){c||(c=!0,p(Jt,"WebChannel transport errored:",e),l.callOnClose(new w(_.UNAVAILABLE,"The operation could not be completed")))}),f(u.WebChannel.EventType.MESSAGE,function(e){if(!c){var t=e.data[0];y(!!t,"Got a webchannel message without data.");var n=t.error||t[0]&&t[0].error;if(n){p(Jt,"WebChannel received error:",n);var r=n.status,i=function(e){var t=et[e];if(void 0!==t)return ct(t)}(r),o=n.message;void 0===i&&(i=_.INTERNAL,o="Unknown error status: "+r+" with message "+n.message),c=!0,l.callOnClose(new w(i,o)),a.close()}else p(Jt,"WebChannel received:",t),l.callOnMessage(t)}}),setTimeout(function(){l.callOnOpen()},0),l},e.prototype.makeUrl=function(e){var t=$t[e];y(void 0!==t,"Unknown REST mapping for: "+e);var n=[this.baseUrl,"/","v1beta1"];return n.push("/projects/"),n.push(this.databaseId.projectId),n.push("/databases/"),n.push(this.databaseId.database),n.push("/documents"),n.push(":"),n.push(t),n.join("")},e}(),tn=function(){function e(){this.emptyByteString="",this.base64Available="undefined"!=typeof atob}return e.prototype.loadConnection=function(e){return Promise.resolve(new en(e))},e.prototype.newSerializer=function(e){return new zt(e,{useProto3Json:!0})},e.prototype.formatJSON=function(e){return JSON.stringify(e)},e.prototype.atob=function(e){return atob(e)},e.prototype.btoa=function(e){return btoa(e)},e}();g.setPlatform(new tn);var nn,rn=function(){function e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];!function(e,t,n,r){if(!(t instanceof Array)||t.length<r)throw new w(_.INVALID_ARGUMENT,"Function "+e+"() requires its "+n+" argument to be an array with at least "+z(r,"element")+".")}("FieldPath",e,"fieldNames",1);for(var n=0;n<e.length;++n)if(I("FieldPath","string",n,e[n]),0===e[n].length)throw new w(_.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new ue(e)}return e.documentId=function(){return e._DOCUMENT_ID},e.prototype.isEqual=function(t){if(!(t instanceof e))throw V("isEqual","FieldPath",1,t);return this._internalPath.isEqual(t._internalPath)},e._DOCUMENT_ID=new e(ue.keyField().canonicalString()),e}(),on=new RegExp("[~\\*/\\[\\]]");!function(e){e[e.Unknown=0]="Unknown",e[e.Online=1]="Online",e[e.Offline=2]="Offline"}(nn||(nn={}));var an,sn=function(){function e(e){this.comparator=e?function(t,n){return e(t,n)||ce.comparator(t.key,n.key)}:function(e,t){return ce.comparator(e.key,t.key)},this.keyedMap=dt(),this.sortedSet=new he(this.comparator)}return e.emptySet=function(t){return new e(t.comparator)},e.prototype.has=function(e){return null!=this.keyedMap.get(e)},e.prototype.get=function(e){return this.keyedMap.get(e)},e.prototype.first=function(){return this.sortedSet.minKey()},e.prototype.last=function(){return this.sortedSet.maxKey()},e.prototype.isEmpty=function(){return this.sortedSet.isEmpty()},e.prototype.indexOf=function(e){var t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1},Object.defineProperty(e.prototype,"size",{get:function(){return this.sortedSet.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e){this.sortedSet.inorderTraversal(function(t,n){return e(t),!1})},e.prototype.add=function(e){var t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))},e.prototype.delete=function(e){var t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this},e.prototype.isEqual=function(t){if(!(t instanceof e))return!1;if(this.size!==t.size)return!1;for(var n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();n.hasNext();){var i=n.getNext().key,o=r.getNext().key;if(!i.isEqual(o))return!1}return!0},e.prototype.toString=function(){var e=[];return this.forEach(function(t){e.push(t.toString())}),0===e.length?"DocumentSet ()":"DocumentSet (\n "+e.join(" \n")+"\n)"},e.prototype.copy=function(t,n){var r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r},e}(),un=function(){function e(e){this.mapKeyFn=e,this.inner={}}return e.prototype.get=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0!==n)for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];if(a.isEqual(e))return s}},e.prototype.has=function(e){return void 0!==this.get(e)},e.prototype.set=function(e,t){var n=this.mapKeyFn(e),r=this.inner[n];if(void 0!==r){for(var i=0;i<r.length;i++)if(r[i][0].isEqual(e))return void(r[i]=[e,t]);r.push([e,t])}else this.inner[n]=e,t},e.prototype.delete=function(e){var t=this.mapKeyFn(e),n=this.inner[t];if(void 0===n)return!1;for(var r=0;r<n.length;r++)if(n[r][0].isEqual(e))return 1===n.length?delete this.inner[t]:n.splice(r,1),!0;return!1},e.prototype.forEach=function(e){k(this.inner,function(t,n){for(var r=0,i=n;r<i.length;r++){var o=i[r],a=o[0],s=o[1];e(a,s)}})},e.prototype.isEmpty=function(){return S(this.inner)},e}(),cn=function(){return function(){this.listeners=[]}}(),ln=function(){function e(e){this.syncEngine=e,this.queries=new un(function(e){return e.canonicalId()}),this.onlineState=nn.Unknown,this.syncEngine.subscribe(this.onChange.bind(this),this.onError.bind(this))}return e.prototype.listen=function(e){var t=e.query,n=!1,r=this.queries.get(t);return r||(n=!0,r=new cn,this.queries.set(t,r)),r.listeners.push(e),e.applyOnlineStateChange(this.onlineState),r.viewSnap&&e.onViewSnapshot(r.viewSnap),n?this.syncEngine.listen(t).then(function(e){return r.targetId=e,e}):Promise.resolve(r.targetId)},e.prototype.unlisten=function(e){return s.__awaiter(this,void 0,void 0,function(){var t,n,r,i;return s.__generator(this,function(o){return t=e.query,n=!1,(r=this.queries.get(t))&&(i=r.listeners.indexOf(e))>=0&&(r.listeners.splice(i,1),n=0===r.listeners.length),n?(this.queries.delete(t),[2,this.syncEngine.unlisten(t)]):[2]})})},e.prototype.onChange=function(e){for(var t=0,n=e;t<n.length;t++){var r=n[t],i=r.query,o=this.queries.get(i);if(o){for(var a=0,s=o.listeners;a<s.length;a++){s[a].onViewSnapshot(r)}o.viewSnap=r}}},e.prototype.onError=function(e,t){var n=this.queries.get(e);if(n)for(var r=0,i=n.listeners;r<i.length;r++){i[r].onError(t)}this.queries.delete(e)},e.prototype.applyOnlineStateChange=function(e){this.onlineState=e,this.queries.forEach(function(t,n){for(var r=0,i=n.listeners;r<i.length;r++){i[r].applyOnlineStateChange(e)}})},e}(),fn=function(){function e(e,t,n){this.query=e,this.queryObserver=t,this.raisedInitialEvent=!1,this.onlineState=nn.Unknown,this.options=n||{}}return e.prototype.onViewSnapshot=function(e){if(y(e.docChanges.length>0||e.syncStateChanged,"We got a new snapshot with no changes?"),!this.options.includeMetadataChanges){for(var t=[],n=0,r=e.docChanges;n<r.length;n++){var i=r[n];i.type!==bt.Metadata&&t.push(i)}e=new Tt(e.query,e.docs,e.oldDocs,t,e.fromCache,e.hasPendingWrites,e.syncStateChanged,!0)}this.raisedInitialEvent?this.shouldRaiseEvent(e)&&this.queryObserver.next(e):this.shouldRaiseInitialEvent(e,this.onlineState)&&this.raiseInitialEvent(e),this.snap=e},e.prototype.onError=function(e){this.queryObserver.error(e)},e.prototype.applyOnlineStateChange=function(e){this.onlineState=e,this.snap&&!this.raisedInitialEvent&&this.shouldRaiseInitialEvent(this.snap,e)&&this.raiseInitialEvent(this.snap)},e.prototype.shouldRaiseInitialEvent=function(e,t){if(y(!this.raisedInitialEvent,"Determining whether to raise first event but already had first event"),!e.fromCache)return!0;var n=t!==nn.Offline;return this.options.waitForSyncWhenOnline&&n?(y(e.fromCache,"Waiting for sync, but snapshot is not from cache"),!1):!e.docs.isEmpty()||t===nn.Offline},e.prototype.shouldRaiseEvent=function(e){if(e.docChanges.length>0)return!0;var t=this.snap&&this.snap.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges},e.prototype.raiseInitialEvent=function(t){y(!this.raisedInitialEvent,"Trying to raise initial events for second time"),t=new Tt(t.query,t.docs,sn.emptySet(t.docs),e.getInitialViewChanges(t),t.fromCache,t.hasPendingWrites,!0,!1),this.raisedInitialEvent=!0,this.queryObserver.next(t)},e.getInitialViewChanges=function(e){var t=[];return e.docs.forEach(function(e){t.push({type:bt.Added,doc:e})}),t},e}(),hn=function(){function e(e){var t=this;this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e(function(e){t.isDone=!0,t.result=e,t.nextCallback&&t.nextCallback(e)},function(e){t.isDone=!0,t.error=e,t.catchCallback&&t.catchCallback(e)})}return e.prototype.catch=function(e){return this.next(void 0,e)},e.prototype.next=function(t,n){var r=this;return this.callbackAttached&&m("Called next() or catch() twice for PersistencePromise"),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e(function(e,i){r.nextCallback=function(n){r.wrapSuccess(t,n).next(e,i)},r.catchCallback=function(t){r.wrapFailure(n,t).next(e,i)}})},e.prototype.toPromise=function(){var e=this;return new Promise(function(t,n){e.next(t,n)})},e.prototype.wrapUserFunction=function(t){try{var n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}},e.prototype.wrapSuccess=function(t,n){return t?this.wrapUserFunction(function(){return t(n)}):e.resolve(n)},e.prototype.wrapFailure=function(t,n){return t?this.wrapUserFunction(function(){return t(n)}):e.reject(n)},e.resolve=function(t){return new e(function(e,n){e(t)})},e.reject=function(t){return new e(function(e,n){n(t)})},e.waitFor=function(t){var n=t.length;if(0===n)return e.resolve();var r=0;return new e(function(e,i){for(var o=0,a=t;o<a.length;o++){a[o].next(function(){++r===n&&e()},function(e){return i(e)})}})},e.map=function(t){for(var n=[],r=[],i=function(e){r[e]=t[e].next(function(t){n[e]=t})},o=0;o<t.length;++o)i(o);return e.waitFor(r).next(function(){return n})},e}(),pn=function(){function e(){this.isEager=!0,this.sources=[],this.potentialGarbage=gt()}return e.prototype.addGarbageSource=function(e){this.sources.push(e),e.setGarbageCollector(this)},e.prototype.removeGarbageSource=function(e){this.sources.splice(this.sources.indexOf(e),1),e.setGarbageCollector(null)},e.prototype.addPotentialGarbageKey=function(e){this.potentialGarbage=this.potentialGarbage.add(e)},e.prototype.collectGarbage=function(e){var t=this,n=[],r=gt();return this.potentialGarbage.forEach(function(i){var o=t.documentHasAnyReferences(e,i);n.push(o.next(function(e){return e||(r=r.add(i)),hn.resolve()}))}),this.potentialGarbage=gt(),hn.waitFor(n).next(function(){return r})},e.prototype.documentHasAnyReferences=function(e,t){var n=hn.resolve(!1);return this.sources.map(function(n){return function(){return n.containsKey(e,t)}}).reduce(function(e,t){return e.next(function(e){return e?hn.resolve(!0):t()})},n)},e}(),dn=function(){function e(e,t,n){this.query=e,this.addedKeys=t,this.removedKeys=n}return e.fromSnapshot=function(t){for(var n=gt(),r=gt(),i=0,o=t.docChanges;i<o.length;i++){var a=o[i];switch(a.type){case bt.Added:n=n.add(a.doc.key);break;case bt.Removed:r=r.add(a.doc.key)}}return new e(t.query,n,r)},e}(),vn=function(){function e(){this.refsByKey=new lt(mn.compareByKey),this.refsByTarget=new lt(mn.compareByTargetId),this.garbageCollector=null}return e.prototype.isEmpty=function(){return this.refsByKey.isEmpty()},e.prototype.addReference=function(e,t){var n=new mn(e,t);this.refsByKey=this.refsByKey.add(n),this.refsByTarget=this.refsByTarget.add(n)},e.prototype.addReferences=function(e,t){var n=this;e.forEach(function(e){return n.addReference(e,t)})},e.prototype.removeReference=function(e,t){this.removeRef(new mn(e,t))},e.prototype.removeReferences=function(e,t){var n=this;e.forEach(function(e){return n.removeReference(e,t)})},e.prototype.removeReferencesForId=function(e){var t=this,n=ce.EMPTY,r=new mn(n,e),i=new mn(n,e+1);this.refsByTarget.forEachInRange([r,i],function(e){t.removeRef(e)})},e.prototype.removeAllReferences=function(){var e=this;this.refsByKey.forEach(function(t){return e.removeRef(t)})},e.prototype.removeRef=function(e){this.refsByKey=this.refsByKey.delete(e),this.refsByTarget=this.refsByTarget.delete(e),null!==this.garbageCollector&&this.garbageCollector.addPotentialGarbageKey(e.key)},e.prototype.referencesForId=function(e){var t=ce.EMPTY,n=new mn(t,e),r=new mn(t,e+1),i=gt();return this.refsByTarget.forEachInRange([n,r],function(e){i=i.add(e.key)}),i},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){var n=new mn(t,0),r=this.refsByKey.firstAfterOrEqual(n);return hn.resolve(null!==r&&t.isEqual(r.key))},e}(),mn=function(){function e(e,t){this.key=e,this.targetOrBatchId=t}return e.compareByKey=function(e,t){return ce.comparator(e.key,t.key)||K(e.targetOrBatchId,t.targetOrBatchId)},e.compareByTargetId=function(e,t){return K(e.targetOrBatchId,t.targetOrBatchId)||ce.comparator(e.key,t.key)},e}(),yn=1;!function(e){e[e.LocalStore=0]="LocalStore",e[e.SyncEngine=1]="SyncEngine"}(an||(an={}));var gn=function(){function e(e,t){void 0===t&&(t=0),this.generatorId=e;var n=t>>yn<<yn,r=t-n;this.previousId=r>=e?n|this.generatorId:(n|this.generatorId)-(1<<yn)}return e.prototype.next=function(){return this.previousId+=1<<yn,this.previousId},e.forLocalStore=function(t){return void 0===t&&(t=0),new e(an.LocalStore,t)},e.forSyncEngine=function(){return new e(an.SyncEngine)},e}(),bn=function(){return function(e){this.key=e}}(),_n=function(){return function(e){this.key=e}}(),wn=function(){function e(e,t){this.query=e,this._syncedDocuments=t,this.syncState=null,this.current=!1,this.limboDocuments=gt(),this.mutatedKeys=gt(),this.documentSet=new sn(e.docComparator.bind(e))}return Object.defineProperty(e.prototype,"syncedDocuments",{get:function(){return this._syncedDocuments},enumerable:!0,configurable:!0}),e.prototype.computeDocChanges=function(e,t){var n=this,r=t?t.changeSet:new Ct,i=t?t.documentSet:this.documentSet,o=t?t.mutatedKeys:this.mutatedKeys,a=i,s=!1,u=this.query.hasLimit()&&i.size===this.query.limit?i.last():null;if(e.inorderTraversal(function(e,t){var c=i.get(e),l=t instanceof le?t:null;if(l&&(y(e.isEqual(l.key),"Mismatching keys found in document changes: "+e+" != "+l.key),l=n.query.matches(l)?l:null),l?(a=a.add(l),o=l.hasLocalMutations?o.add(e):o.delete(e)):(a=a.delete(e),o=o.delete(e)),c&&l){var f=c.data.isEqual(l.data);f&&c.hasLocalMutations===l.hasLocalMutations||(f?r.track({type:bt.Metadata,doc:l}):r.track({type:bt.Modified,doc:l}),u&&n.query.docComparator(l,u)>0&&(s=!0))}else!c&&l?r.track({type:bt.Added,doc:l}):c&&!l&&(r.track({type:bt.Removed,doc:c}),u&&(s=!0))}),this.query.hasLimit())for(;a.size>this.query.limit;){var c=a.last();a=a.delete(c.key),r.track({type:bt.Removed,doc:c})}return y(!s||!t,"View was refilled using docs that themselves needed refilling."),{documentSet:a,changeSet:r,needsRefill:s,mutatedKeys:o}},e.prototype.applyChanges=function(e,t){var n=this;y(!e.needsRefill,"Cannot apply changes that need a refill");var r=this.documentSet;this.documentSet=e.documentSet,this.mutatedKeys=e.mutatedKeys;var i=e.changeSet.getChanges();i.sort(function(e,t){return function(e,t){var n=function(e){switch(e){case bt.Added:return 1;case bt.Modified:case bt.Metadata:return 2;case bt.Removed:return 0;default:return m("Unknown ChangeType: "+e)}};return n(e)-n(t)}(e.type,t.type)||n.query.docComparator(e.doc,t.doc)}),this.applyTargetChange(t);var o=this.updateLimboDocuments(),a=0===this.limboDocuments.size&&this.current?_t.Synced:_t.Local,s=a!==this.syncState;return this.syncState=a,0!==i.length||s?{snapshot:new Tt(this.query,e.documentSet,r,i,a===_t.Local,!e.mutatedKeys.isEmpty(),s,!1),limboChanges:o}:{limboChanges:o}},e.prototype.applyOnlineStateChange=function(e){return this.current&&e===nn.Offline?(this.current=!1,this.applyChanges({documentSet:this.documentSet,changeSet:new Ct,mutatedKeys:this.mutatedKeys,needsRefill:!1})):{limboChanges:[]}},e.prototype.shouldBeInLimbo=function(e){return!this._syncedDocuments.has(e)&&(!!this.documentSet.has(e)&&!this.documentSet.get(e).hasLocalMutations)},e.prototype.applyTargetChange=function(e){var t=this;e&&(e.addedDocuments.forEach(function(e){return t._syncedDocuments=t._syncedDocuments.add(e)}),e.modifiedDocuments.forEach(function(e){return y(t._syncedDocuments.has(e),"Modified document "+e+" not found in view.")}),e.removedDocuments.forEach(function(e){return t._syncedDocuments=t._syncedDocuments.delete(e)}),this.current=e.current)},e.prototype.updateLimboDocuments=function(){var e=this;if(!this.current)return[];var t=this.limboDocuments;this.limboDocuments=gt(),this.documentSet.forEach(function(t){e.shouldBeInLimbo(t.key)&&(e.limboDocuments=e.limboDocuments.add(t.key))});var n=[];return t.forEach(function(t){e.limboDocuments.has(t)||n.push(new _n(t))}),this.limboDocuments.forEach(function(e){t.has(e)||n.push(new bn(e))}),n},e}();var En=function(){return function(e,t,n,r){this.query=e,this.targetId=t,this.resumeToken=n,this.view=r}}(),xn=function(){function e(e,t,n){this.localStore=e,this.remoteStore=t,this.currentUser=n,this.viewHandler=null,this.errorHandler=null,this.queryViewsByQuery=new un(function(e){return e.canonicalId()}),this.queryViewsByTarget={},this.limboTargetsByKey=new he(ce.comparator),this.limboKeysByTarget={},this.limboDocumentRefs=new vn,this.limboCollector=new pn,this.mutationUserCallbacks={},this.targetIdGenerator=gn.forSyncEngine()}return e.prototype.subscribe=function(e,t){y(null!==e&&null!==t,"View and error handlers cannot be null"),y(null===this.viewHandler&&null===this.errorHandler,"SyncEngine already has a subscriber."),this.viewHandler=e,this.errorHandler=t,this.limboCollector.addGarbageSource(this.limboDocumentRefs)},e.prototype.listen=function(e){var t=this;return this.assertSubscribed("listen()"),y(!this.queryViewsByQuery.has(e),"We already listen to the query: "+e),this.localStore.allocateQuery(e).then(function(n){return t.localStore.executeQuery(e).then(function(r){return t.localStore.remoteDocumentKeys(n.targetId).then(function(i){var o=new wn(e,i),a=o.computeDocChanges(r),s=o.applyChanges(a);y(0===s.limboChanges.length,"View returned limbo docs before target ack from the server."),y(!!s.snapshot,"applyChanges for new view should always return a snapshot");var u=new En(e,n.targetId,n.resumeToken,o);t.queryViewsByQuery.set(e,u),t.queryViewsByTarget[n.targetId]=u,t.viewHandler([s.snapshot]),t.remoteStore.listen(n)})}).then(function(){return n.targetId})})},e.prototype.unlisten=function(e){var t=this;this.assertSubscribed("unlisten()");var n=this.queryViewsByQuery.get(e);return y(!!n,"Trying to unlisten on query not found:"+e),this.localStore.releaseQuery(e).then(function(){return t.remoteStore.unlisten(n.targetId),t.removeAndCleanupQuery(n).then(function(){return t.localStore.collectGarbage()})})},e.prototype.write=function(e,t){var n=this;return this.assertSubscribed("write()"),this.localStore.localWrite(e).then(function(e){return n.addMutationCallback(e.batchId,t),n.emitNewSnapsAndNotifyLocalStore(e.changes)}).then(function(){return n.remoteStore.fillWritePipeline()})},e.prototype.wrapUpdateFunctionError=function(e){return e},e.prototype.runTransaction=function(e,t){var n=this;void 0===t&&(t=5),y(t>=0,"Got negative number of retries for transaction.");var r=this.remoteStore.createTransaction();return function(){try{var t=e(r);return!Le(t)&&t.catch&&t.then?t.catch(function(e){return Promise.reject(n.wrapUpdateFunctionError(e))}):Promise.reject(Error("Transaction callback must return a Promise"))}catch(e){return Promise.reject(n.wrapUpdateFunctionError(e))}}().then(function(i){return r.commit().then(function(){return i}).catch(function(r){return 0===t?Promise.reject(r):n.runTransaction(e,t-1)})})},e.prototype.applyRemoteEvent=function(e){var t=this;return this.assertSubscribed("applyRemoteEvent()"),this.localStore.applyRemoteEvent(e).then(function(n){return t.emitNewSnapsAndNotifyLocalStore(n,e)})},e.prototype.applyOnlineStateChange=function(e){var t=[];this.queryViewsByQuery.forEach(function(n,r){var i=r.view.applyOnlineStateChange(e);y(0===i.limboChanges.length,"OnlineState should not affect limbo documents."),i.snapshot&&t.push(i.snapshot)}),this.viewHandler(t)},e.prototype.rejectListen=function(e,t){var n=this;this.assertSubscribed("rejectListens()");var r=this.limboKeysByTarget[e];if(r){this.limboTargetsByKey=this.limboTargetsByKey.remove(r),delete this.limboKeysByTarget[e];var i=new he(ce.comparator);i=i.insert(r,new fe(r,Qe.forDeletedDoc()));var o=gt().add(r),a=new wt(Qe.MIN,{},new lt(K),i,o);return this.applyRemoteEvent(a)}var s=this.queryViewsByTarget[e];return y(!!s,"Unknown targetId: "+e),this.localStore.releaseQuery(s.query).then(function(){return n.removeAndCleanupQuery(s).then(function(){n.errorHandler(s.query,t)})})},e.prototype.applySuccessfulWrite=function(e){var t=this;return this.assertSubscribed("applySuccessfulWrite()"),this.processUserCallback(e.batch.batchId,null),this.localStore.acknowledgeBatch(e).then(function(e){return t.emitNewSnapsAndNotifyLocalStore(e)})},e.prototype.rejectFailedWrite=function(e,t){var n=this;return this.assertSubscribed("rejectFailedWrite()"),this.processUserCallback(e,t),this.localStore.rejectBatch(e).then(function(e){return n.emitNewSnapsAndNotifyLocalStore(e)})},e.prototype.addMutationCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];n||(n=new he(K)),n=n.insert(e,t),this.mutationUserCallbacks[this.currentUser.toKey()]=n},e.prototype.processUserCallback=function(e,t){var n=this.mutationUserCallbacks[this.currentUser.toKey()];if(n){var r=n.get(e);r&&(y(e===n.minKey(),"Mutation callbacks processed out-of-order?"),t?r.reject(t):r.resolve(),n=n.remove(e)),this.mutationUserCallbacks[this.currentUser.toKey()]=n}},e.prototype.removeAndCleanupQuery=function(e){return this.queryViewsByQuery.delete(e.query),delete this.queryViewsByTarget[e.targetId],this.limboDocumentRefs.removeReferencesForId(e.targetId),this.gcLimboDocuments()},e.prototype.updateTrackedLimbos=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];i instanceof bn?(this.limboDocumentRefs.addReference(i.key,e),this.trackLimboChange(i)):i instanceof _n?(p("SyncEngine","Document no longer in limbo: "+i.key),this.limboDocumentRefs.removeReference(i.key,e)):m("Unknown limbo change: "+JSON.stringify(i))}return this.gcLimboDocuments()},e.prototype.trackLimboChange=function(e){var t=e.key;if(!this.limboTargetsByKey.get(t)){p("SyncEngine","New document in limbo: "+t);var n=this.targetIdGenerator.next(),r=je.atPath(t.path);this.limboKeysByTarget[n]=t,this.remoteStore.listen(new Xe(r,n,Ve.LimboResolution)),this.limboTargetsByKey=this.limboTargetsByKey.insert(t,n)}},e.prototype.gcLimboDocuments=function(){var e=this;return this.limboCollector.collectGarbage(null).next(function(t){t.forEach(function(t){var n=e.limboTargetsByKey.get(t);null!==n&&(e.remoteStore.unlisten(n),e.limboTargetsByKey=e.limboTargetsByKey.remove(t),delete e.limboKeysByTarget[n])})}).toPromise()},e.prototype.currentLimboDocs=function(){return this.limboTargetsByKey},e.prototype.emitNewSnapsAndNotifyLocalStore=function(e,t){var n=this,r=[],i=[],o=[];return this.queryViewsByQuery.forEach(function(a,s){o.push(Promise.resolve().then(function(){var t=s.view.computeDocChanges(e);return t.needsRefill?n.localStore.executeQuery(s.query).then(function(e){return s.view.computeDocChanges(e,t)}):t}).then(function(e){var o=t&&t.targetChanges[s.targetId],a=s.view.applyChanges(e,o);return n.updateTrackedLimbos(s.targetId,a.limboChanges).then(function(){if(a.snapshot){r.push(a.snapshot);var e=dn.fromSnapshot(a.snapshot);i.push(e)}})}))}),Promise.all(o).then(function(){return n.viewHandler(r),n.localStore.notifyLocalViewChanges(i)}).then(function(){return n.localStore.collectGarbage()})},e.prototype.assertSubscribed=function(e){y(null!==this.viewHandler&&null!==this.errorHandler,"Trying to call "+e+" before calling subscribe().")},e.prototype.handleUserChange=function(e){var t=this;return this.currentUser=e,this.localStore.handleUserChange(e).then(function(e){return t.emitNewSnapsAndNotifyLocalStore(e)}).then(function(){return t.remoteStore.handleUserChange(e)})},e.prototype.getRemoteKeysForTarget=function(e){return this.queryViewsByTarget[e]?this.queryViewsByTarget[e].view.syncedDocuments:gt()},e}(),Cn=-1,Tn=function(){function e(e,t,n){this.batchId=e,this.localWriteTime=t,this.mutations=n}return e.prototype.applyToRemoteDocument=function(e,t,n){t&&y(t.key.isEqual(e),"applyToRemoteDocument: key "+e+" should match maybeDoc key\n "+t.key);var r=n.mutationResults;y(r.length===this.mutations.length,"Mismatch between mutations length\n ("+this.mutations.length+") and mutation results length\n ("+r.length+").");for(var i=0;i<this.mutations.length;i++){var o=this.mutations[i];if(o.key.isEqual(e)){var a=r[i];t=o.applyToRemoteDocument(t,a)}}return t},e.prototype.applyToLocalView=function(e,t){t&&y(t.key.isEqual(e),"applyToLocalDocument: key "+e+" should match maybeDoc key\n "+t.key);for(var n=t,r=0;r<this.mutations.length;r++){var i=this.mutations[r];i.key.isEqual(e)&&(t=i.applyToLocalView(t,n,this.localWriteTime))}return t},e.prototype.keys=function(){for(var e=gt(),t=0,n=this.mutations;t<n.length;t++){var r=n[t];e=e.add(r.key)}return e},e.prototype.isEqual=function(e){return this.batchId===e.batchId&&G(this.mutations,e.mutations)},e.prototype.isTombstone=function(){return 0===this.mutations.length},e.prototype.toTombstone=function(){return new e(this.batchId,this.localWriteTime,[])},e}(),kn=function(){function e(e,t,n,r,i){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.streamToken=r,this.docVersions=i}return e.from=function(t,n,r,i){y(t.mutations.length===r.length,"Mutations sent "+t.mutations.length+" must equal results received "+r.length);for(var o=mt(),a=t.mutations,s=0;s<a.length;s++){var u=r[s].version;null===u&&(u=n),o=o.insert(a[s].key,u)}return new e(t,n,r,i,o)},e}(),Sn="�",An="�",Nn="�",On="�";function In(e){for(var t="",n=0;n<e.length;n++)t.length>0&&(t=Rn(t)),t=Pn(e.get(n),t);return Rn(t)}function Pn(e,t){for(var n=t,r=e.length,i=0;i<r;i++){var o=e.charAt(i);switch(o){case"\0":n+=Sn+Nn;break;case Sn:n+=Sn+On;break;default:n+=o}}return n}function Rn(e){return e+Sn+An}function Dn(e){var t=e.length;if(y(t>=2,"Invalid path "+e),2===t)return y(e.charAt(0)===Sn&&e.charAt(1)===An,"Non-empty path "+e+" had length 2"),ae.EMPTY_PATH;for(var n=t-2,r=[],i="",o=0;o<t;){var a=e.indexOf(Sn,o);switch((a<0||a>n)&&m('Invalid encoded resource path: "'+e+'"'),e.charAt(a+1)){case An:var s=e.substring(o,a),u=void 0;0===i.length?u=s:(u=i+=s,i=""),r.push(u);break;case Nn:i+=e.substring(o,a),i+="\0";break;case On:i+=e.substring(o,a+1);break;default:m('Invalid encoded resource path: "'+e+'"')}o=a+2}return new ae(r)}function Mn(e,t,n,r){y(n<r&&n>=0&&r<=2,"Unexpected schema upgrade from v${fromVersion} to v{toVersion}."),n<1&&r>=1&&(function(e){e.createObjectStore(jn.store)}(e),function(e){e.createObjectStore(Fn.store,{keyPath:Fn.keyPath}),e.createObjectStore(Un.store,{keyPath:Un.keyPath}),e.createObjectStore(Bn.store)}(e),function(e){e.createObjectStore(zn.store,{keyPath:zn.keyPath}).createIndex(zn.documentTargetsIndex,zn.documentTargetsKeyPath,{unique:!0}),e.createObjectStore(Wn.store,{keyPath:Wn.keyPath}).createIndex(Wn.queryTargetsIndexName,Wn.queryTargetsKeyPath,{unique:!0}),e.createObjectStore(Hn.store)}(e),function(e){e.createObjectStore(Vn.store)}(e));var i=hn.resolve();return n<2&&r>=2&&(i=function(e){var t=e.store(Hn.store);return t.get(Hn.key).next(function(e){return null!=e?hn.resolve(e):(e=new Hn(0,0,Qe.MIN.toTimestamp(),0),t.put(Hn.key,e).next(function(){return e}))})}(t).next(function(e){return function(e,t){var n=e.store(Hn.store);return e.store(Wn.store).count().next(function(e){return t.targetCount=e,n.put(Hn.key,t)})}(t,e)})),i}var Ln=function(){return function(e,t){this.seconds=e,this.nanoseconds=t}}(),jn=function(){function e(e,t){this.ownerId=e,this.leaseTimestampMs=t}return e.store="owner",e}();var Fn=function(){function e(e,t,n){this.userId=e,this.lastAcknowledgedBatchId=t,this.lastStreamToken=n}return e.store="mutationQueues",e.keyPath="userId",e}(),Un=function(){function e(e,t,n,r){this.userId=e,this.batchId=t,this.localWriteTimeMs=n,this.mutations=r}return e.store="mutations",e.keyPath=["userId","batchId"],e}();var Bn=function(){function e(){}return e.prefixForUser=function(e){return[e]},e.prefixForPath=function(e,t){return[e,In(t)]},e.key=function(e,t,n){return[e,In(t),n]},e.store="documentMutations",e.PLACEHOLDER=new e,e}();var qn=function(){return function(e,t){this.path=e,this.readTime=t}}(),Vn=function(){function e(e,t){this.noDocument=e,this.document=t}return e.store="remoteDocuments",e}(),Wn=function(){function e(e,t,n,r,i,o){this.targetId=e,this.canonicalId=t,this.readTime=n,this.resumeToken=r,this.lastListenSequenceNumber=i,this.query=o}return e.store="targets",e.keyPath="targetId",e.queryTargetsIndexName="queryTargetsIndex",e.queryTargetsKeyPath=["canonicalId","targetId"],e}(),zn=function(){function e(e,t){this.targetId=e,this.path=t}return e.store="targetDocuments",e.keyPath=["targetId","path"],e.documentTargetsIndex="documentTargetsIndex",e.documentTargetsKeyPath=["path","targetId"],e}(),Hn=function(){function e(e,t,n,r){this.highestTargetId=e,this.highestListenSequenceNumber=t,this.lastRemoteSnapshotVersion=n,this.targetCount=r}return e.key="targetGlobalKey",e.store="targetGlobal",e}();var Kn=[Fn.store,Un.store,Bn.store,Vn.store,Wn.store,jn.store,Hn.store,zn.store],Gn=function(){return function(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}}(),Qn=function(){function t(e){this.db=e}return t.openOrCreate=function(e,n,r){return y(t.isAvailable(),"IndexedDB not supported in current environment."),p("SimpleDb","Opening database:",e),new hn(function(i,o){var a=window.indexedDB.open(e,n);a.onsuccess=function(e){var n=e.target.result;i(new t(n))},a.onerror=function(e){o(e.target.error)},a.onupgradeneeded=function(t){p("SimpleDb",'Database "'+e+'" requires upgrade from version:',t.oldVersion);var n=t.target.result,i=new Xn(a.transaction);r(n,i,t.oldVersion,2).next(function(){p("SimpleDb","Database upgrade to version 2 complete")})}}).toPromise()},t.delete=function(e){return p("SimpleDb","Removing database:",e),$n(window.indexedDB.deleteDatabase(e)).toPromise()},t.isAvailable=function(){if("undefined"==typeof window||null==window.indexedDB)return!1;if(void 0===window.navigator)return"YES"===e.env.USE_MOCK_PERSISTENCE;var t=window.navigator.userAgent;return!(t.indexOf("MSIE ")>0||t.indexOf("Trident/")>0||t.indexOf("Edge/")>0)},t.getStore=function(e,t){return e instanceof Xn?e.store(t):m("Invalid transaction object provided!")},t.prototype.runTransaction=function(e,t,n){var r=Xn.open(this.db,e,t),i=n(r).catch(function(e){r.abort(e)}).toPromise();return r.completionPromise.then(function(){return i})},t.prototype.close=function(){this.db.close()},t}(),Yn=function(){function e(e){this.dbCursor=e,this.shouldStop=!1,this.nextKey=null}return Object.defineProperty(e.prototype,"isDone",{get:function(){return this.shouldStop},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"skipToKey",{get:function(){return this.nextKey},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"cursor",{set:function(e){this.dbCursor=e},enumerable:!0,configurable:!0}),e.prototype.done=function(){this.shouldStop=!0},e.prototype.skip=function(e){this.nextKey=e},e.prototype.delete=function(){return $n(this.dbCursor.delete())},e}(),Xn=function(){function e(e){var t=this;this.transaction=e,this.aborted=!1,this.completionDeferred=new Gn,this.transaction.oncomplete=function(){t.completionDeferred.resolve()},this.transaction.onabort=function(){e.error?t.completionDeferred.reject(e.error):t.completionDeferred.resolve()},this.transaction.onerror=function(e){t.completionDeferred.reject(e.target.error)}}return e.open=function(t,n,r){return new e(t.transaction(r,n))},Object.defineProperty(e.prototype,"completionPromise",{get:function(){return this.completionDeferred.promise},enumerable:!0,configurable:!0}),e.prototype.abort=function(e){e&&this.completionDeferred.reject(e),this.aborted||(p("SimpleDb","Aborting transaction: %s",e?e.message:"Client-initiated abort"),this.aborted=!0,this.transaction.abort())},e.prototype.store=function(e){var t=this.transaction.objectStore(e);return y(!!t,"Object store not part of transaction: "+e),new Jn(t)},e}(),Jn=function(){function e(e){this.store=e}return e.prototype.put=function(e,t){var n;return void 0!==t?(p("SimpleDb","PUT",this.store.name,e,t),n=this.store.put(t,e)):(p("SimpleDb","PUT",this.store.name,"<auto-key>",e),n=this.store.put(e)),$n(n)},e.prototype.get=function(e){var t=this;return $n(this.store.get(e)).next(function(n){return void 0===n&&(n=null),p("SimpleDb","GET",t.store.name,e,n),n})},e.prototype.delete=function(e){return p("SimpleDb","DELETE",this.store.name,e),$n(this.store.delete(e))},e.prototype.count=function(){return p("SimpleDb","COUNT",this.store.name),$n(this.store.count())},e.prototype.loadAll=function(e,t){var n=this.cursor(this.options(e,t)),r=[];return this.iterateCursor(n,function(e,t){r.push(t)}).next(function(){return r})},e.prototype.deleteAll=function(e,t){p("SimpleDb","DELETE ALL",this.store.name);var n=this.options(e,t);n.keysOnly=!1;var r=this.cursor(n);return this.iterateCursor(r,function(e,t,n){return n.delete()})},e.prototype.iterate=function(e,t){var n;t?n=e:(n={},t=e);var r=this.cursor(n);return this.iterateCursor(r,t)},e.prototype.iterateCursor=function(e,t){var n=[];return new hn(function(r,i){e.onerror=function(e){i(e.target.error)},e.onsuccess=function(e){var i=e.target.result;if(i){var o=new Yn(i),a=t(i.primaryKey,i.value,o);a instanceof hn&&n.push(a),o.isDone?r():null===o.skipToKey?i.continue():i.continue(o.skipToKey)}else r()}}).next(function(){return hn.waitFor(n)})},e.prototype.options=function(e,t){var n=void 0;return void 0!==e&&("string"==typeof e?n=e:(y(void 0===t,"3rd argument must not be defined if 2nd is a range."),t=e)),{index:n,range:t}},e.prototype.cursor=function(e){var t="next";if(e.reverse&&(t="prev"),e.index){var n=this.store.index(e.index);return e.keysOnly?n.openKeyCursor(e.range,t):n.openCursor(e.range,t)}return this.store.openCursor(e.range,t)},e}();function $n(e){return new hn(function(t,n){e.onsuccess=function(e){var n=e.target.result;t(n)},e.onerror=function(e){n(e.target.error)}})}var Zn=function(){function e(e,t){this.userId=e,this.serializer=t,this.garbageCollector=null}return e.forUser=function(t,n){return y(""!==t.uid,"UserID must not be an empty string."),new e(t.isAuthenticated()?t.uid:"",n)},e.prototype.start=function(t){var n=this;return e.loadNextBatchIdFromDb(t).next(function(e){return n.nextBatchId=e,rr(t).get(n.userId)}).next(function(e){return e||(e=new Fn(n.userId,Cn,"")),n.metadata=e,n.metadata.lastAcknowledgedBatchId>=n.nextBatchId?n.checkEmpty(t).next(function(e){return y(e,"Reset nextBatchID is only possible when the queue is empty"),n.metadata.lastAcknowledgedBatchId=Cn,rr(t).put(n.metadata)}):hn.resolve()})},e.loadNextBatchIdFromDb=function(e){var t=Cn;return tr(e).iterate({reverse:!0},function(e,n,r){var i,o,a=e[0];if(e[1]>t&&(t=n.batchId),""===a)r.done();else{var s=(o=(i=a).length-1,0===i.length?"":"\0"===i.charAt(o)?i.substring(0,o):i.substring(0,o)+String.fromCharCode(i.charCodeAt(o)-1));r.skip([s])}}).next(function(){return t+1})},e.prototype.checkEmpty=function(e){var t=!0,n=IDBKeyRange.bound(this.keyForBatchId(Number.NEGATIVE_INFINITY),this.keyForBatchId(Number.POSITIVE_INFINITY));return tr(e).iterate({range:n},function(e,n,r){t=!1,r.done()}).next(function(){return t})},e.prototype.getNextBatchId=function(e){return hn.resolve(this.nextBatchId)},e.prototype.getHighestAcknowledgedBatchId=function(e){return hn.resolve(this.metadata.lastAcknowledgedBatchId)},e.prototype.acknowledgeBatch=function(e,t,n){var r=t.batchId;return y(r>this.metadata.lastAcknowledgedBatchId,"Mutation batchIDs must be acknowledged in order"),this.metadata.lastAcknowledgedBatchId=r,this.metadata.lastStreamToken=er(n),rr(e).put(this.metadata)},e.prototype.getLastStreamToken=function(e){return hn.resolve(this.metadata.lastStreamToken)},e.prototype.setLastStreamToken=function(e,t){return this.metadata.lastStreamToken=er(t),rr(e).put(this.metadata)},e.prototype.addMutationBatch=function(e,t,n){var r=this,i=this.nextBatchId;this.nextBatchId++;var o=new Tn(i,t,n),a=this.serializer.toDbMutationBatch(this.userId,o);return tr(e).put(a).next(function(){for(var t=[],o=0,a=n;o<a.length;o++){var s=a[o],u=Bn.key(r.userId,s.key.path,i);t.push(nr(e).put(u,Bn.PLACEHOLDER))}return hn.waitFor(t)}).next(function(){return o})},e.prototype.lookupMutationBatch=function(e,t){var n=this;return tr(e).get(this.keyForBatchId(t)).next(function(e){return e?n.serializer.fromDbMutationBatch(e):null})},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){var n=this,r=Math.max(t,this.metadata.lastAcknowledgedBatchId)+1,i=IDBKeyRange.lowerBound(this.keyForBatchId(r)),o=null;return tr(e).iterate({range:i},function(e,t,i){t.userId===n.userId&&(y(t.batchId>=r,"Should have found mutation after "+r),o=n.serializer.fromDbMutationBatch(t)),i.done()}).next(function(){return o})},e.prototype.getAllMutationBatches=function(e){var t=this,n=IDBKeyRange.bound(this.keyForBatchId(Cn),this.keyForBatchId(Number.POSITIVE_INFINITY));return tr(e).loadAll(n).next(function(e){return e.map(function(e){return t.serializer.fromDbMutationBatch(e)})})},e.prototype.getAllMutationBatchesThroughBatchId=function(e,t){var n=this,r=IDBKeyRange.bound(this.keyForBatchId(Cn),this.keyForBatchId(t));return tr(e).loadAll(r).next(function(e){return e.map(function(e){return n.serializer.fromDbMutationBatch(e)})})},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=Bn.prefixForPath(this.userId,t.path),i=IDBKeyRange.lowerBound(r),o=[];return nr(e).iterate({range:i},function(r,i,a){var s=r[0],u=r[1],c=r[2],l=Dn(u);if(s===n.userId&&t.path.isEqual(l)){var f=n.keyForBatchId(c);return tr(e).get(f).next(function(e){null===e&&m("Dangling document-mutation reference found: "+r+" which points to "+f),o.push(n.serializer.fromDbMutationBatch(e))})}a.done()}).next(function(){return o})},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this;y(!t.isDocumentQuery(),"Document queries shouldn't go down this path");var r=t.path,i=r.length+1,o=Bn.prefixForPath(this.userId,r),a=IDBKeyRange.lowerBound(o),s=new lt(K);return nr(e).iterate({range:a},function(e,t,o){var a=e[0],u=e[1],c=e[2],l=Dn(u);a===n.userId&&r.isPrefixOf(l)?l.length===i&&(s=s.add(c)):o.done()}).next(function(){var t=[],r=[];return s.forEach(function(i){var o=n.keyForBatchId(i);r.push(tr(e).get(o).next(function(e){null===e&&m("Dangling document-mutation reference found, which points to "+o),t.push(n.serializer.fromDbMutationBatch(e))}))}),hn.waitFor(r).next(function(){return t})})},e.prototype.removeMutationBatches=function(e,t){for(var n=tr(e),r=nr(e),i=[],o=function(e){var t=IDBKeyRange.only(a.keyForBatchId(e.batchId)),o=0,s=n.iterate({range:t},function(e,t,n){return o++,n.delete()});i.push(s.next(function(){y(1===o,"Dangling document-mutation reference found: Missing batch "+e.batchId)}));for(var u=0,c=e.mutations;u<c.length;u++){var l=c[u],f=Bn.key(a.userId,l.key.path,e.batchId);i.push(r.delete(f)),null!==a.garbageCollector&&a.garbageCollector.addPotentialGarbageKey(l.key)}},a=this,s=0,u=t;s<u.length;s++){o(u[s])}return hn.waitFor(i)},e.prototype.performConsistencyCheck=function(e){var t=this;return this.checkEmpty(e).next(function(n){if(!n)return hn.resolve();var r=IDBKeyRange.lowerBound(Bn.prefixForUser(t.userId)),i=[];return nr(e).iterate({range:r},function(e,n,r){if(e[0]===t.userId){var o=Dn(e[1]);i.push(o)}else r.done()}).next(function(){y(0===i.length,"Document leak -- detected dangling mutation references when queue is empty. Dangling keys: "+i.map(function(e){return e.canonicalString()}))})})},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){var n=this,r=Bn.prefixForPath(this.userId,t.path),i=r[1],o=IDBKeyRange.lowerBound(r),a=!1;return nr(e).iterate({range:o,keysOnly:!0},function(e,t,r){var o=e[0],s=e[1];e[2];o===n.userId&&s===i&&(a=!0),r.done()}).next(function(){return a})},e.prototype.keyForBatchId=function(e){return[this.userId,e]},e}();function er(t){return t instanceof Uint8Array?(y("YES"===e.env.USE_MOCK_PERSISTENCE,"Persisting non-string stream tokens is only supported with mock persistence ."),t.toString()):t}function tr(e){return Qn.getStore(e,Un.store)}function nr(e){return Qn.getStore(e,Bn.store)}function rr(e){return Qn.getStore(e,Fn.store)}var ir=function(){function e(e){this.serializer=e,this.lastRemoteSnapshotVersion=Qe.MIN,this.metadata=null,this.garbageCollector=null}return e.prototype.start=function(e){var t=this;return ar(e).get(Hn.key).next(function(e){y(null!==e,"Missing metadata row that should be added by schema migration."),t.metadata=e;var n=e.lastRemoteSnapshotVersion;return t.lastRemoteSnapshotVersion=Qe.fromTimestamp(new te(n.seconds,n.nanoseconds)),hn.resolve()})},e.prototype.getHighestTargetId=function(){return this.metadata.highestTargetId},e.prototype.getLastRemoteSnapshotVersion=function(){return this.lastRemoteSnapshotVersion},e.prototype.setLastRemoteSnapshotVersion=function(e,t){return this.lastRemoteSnapshotVersion=t,this.metadata.lastRemoteSnapshotVersion=t.toTimestamp(),ar(e).put(Hn.key,this.metadata)},e.prototype.addQueryData=function(e,t){var n=this;return this.saveQueryData(e,t).next(function(){return n.metadata.targetCount+=1,n.updateMetadataFromQueryData(t),n.saveMetadata(e)})},e.prototype.updateQueryData=function(e,t){var n=this;return this.saveQueryData(e,t).next(function(){return n.updateMetadataFromQueryData(t)?n.saveMetadata(e):hn.resolve()})},e.prototype.removeQueryData=function(e,t){var n=this;return y(this.metadata.targetCount>0,"Removing from an empty query cache"),this.removeMatchingKeysForTargetId(e,t.targetId).next(function(){return or(e).delete(t.targetId)}).next(function(){return n.metadata.targetCount-=1,n.saveMetadata(e)})},e.prototype.saveMetadata=function(e){return ar(e).put(Hn.key,this.metadata)},e.prototype.saveQueryData=function(e,t){return or(e).put(this.serializer.toDbTarget(t))},e.prototype.updateMetadataFromQueryData=function(e){var t=!1;return e.targetId>this.metadata.highestTargetId&&(this.metadata.highestTargetId=e.targetId,t=!0),t},Object.defineProperty(e.prototype,"count",{get:function(){return this.metadata.targetCount},enumerable:!0,configurable:!0}),e.prototype.getQueryData=function(e,t){var n=this,r=t.canonicalId(),i=IDBKeyRange.bound([r,Number.NEGATIVE_INFINITY],[r,Number.POSITIVE_INFINITY]),o=null;return or(e).iterate({range:i,index:Wn.queryTargetsIndexName},function(e,r,i){var a=n.serializer.fromDbTarget(r);t.isEqual(a.query)&&(o=a,i.done())}).next(function(){return o})},e.prototype.addMatchingKeys=function(e,t,n){var r=[],i=sr(e);return t.forEach(function(e){var t=In(e.path);r.push(i.put(new zn(n,t)))}),hn.waitFor(r)},e.prototype.removeMatchingKeys=function(e,t,n){var r=this,i=[],o=sr(e);return t.forEach(function(e){var t=In(e.path);i.push(o.delete([n,t])),null!==r.garbageCollector&&r.garbageCollector.addPotentialGarbageKey(e)}),hn.waitFor(i)},e.prototype.removeMatchingKeysForTargetId=function(e,t){var n=sr(e),r=IDBKeyRange.bound([t],[t+1],!1,!0);return this.notifyGCForRemovedKeys(e,r).next(function(){return n.delete(r)})},e.prototype.notifyGCForRemovedKeys=function(e,t){var n=this,r=sr(e);return null!==this.garbageCollector&&this.garbageCollector.isEager?r.iterate({range:t,keysOnly:!0},function(e,t,r){var i=Dn(e[1]),o=new ce(i);y(null!==n.garbageCollector,"GarbageCollector for query cache set to null during key removal."),n.garbageCollector.addPotentialGarbageKey(o)}):hn.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=IDBKeyRange.bound([t],[t+1],!1,!0),r=sr(e),i=gt();return r.iterate({range:n,keysOnly:!0},function(e,t,n){var r=Dn(e[1]),o=new ce(r);i=i.add(o)}).next(function(){return i})},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){y(null!==e,"Persistence Transaction cannot be null for query cache containsKey");var n,r=In(t.path),i=IDBKeyRange.bound([r],[(n=r,n+"\0")],!1,!0),o=0;return sr(e).iterate({index:zn.documentTargetsIndex,keysOnly:!0,range:i},function(e,t,n){o++,n.done()}).next(function(){return o>0})},e}();function or(e){return Qn.getStore(e,Wn.store)}function ar(e){return Qn.getStore(e,Hn.store)}function sr(e){return Qn.getStore(e,zn.store)}var ur=function(){function e(e){this.serializer=e}return e.prototype.addEntry=function(e,t){return cr(e).put(lr(t.key),this.serializer.toDbRemoteDocument(t))},e.prototype.removeEntry=function(e,t){return cr(e).delete(lr(t))},e.prototype.getEntry=function(e,t){var n=this;return cr(e).get(lr(t)).next(function(e){return e?n.serializer.fromDbRemoteDocument(e):null})},e.prototype.getDocumentsMatchingQuery=function(e,t){var n=this,r=dt(),i=t.path.toArray(),o=IDBKeyRange.lowerBound(i);return cr(e).iterate({range:o},function(e,i,o){var a=n.serializer.fromDbRemoteDocument(i);t.path.isPrefixOf(a.key.path)?a instanceof le&&t.matches(a)&&(r=r.insert(a.key,a)):o.done()}).next(function(){return r})},e}();function cr(e){return Qn.getStore(e,Vn.store)}function lr(e){return e.path.toArray()}var fr=function(){function t(e){this.remoteSerializer=e}return t.prototype.fromDbRemoteDocument=function(e){if(e.document)return this.remoteSerializer.fromDocument(e.document);if(e.noDocument){var t=ce.fromSegments(e.noDocument.path),n=e.noDocument.readTime,r=new te(n.seconds,n.nanoseconds);return new fe(t,Qe.fromTimestamp(r))}return m("Unexpected DbRemoteDocument")},t.prototype.toDbRemoteDocument=function(e){if(e instanceof le){var t=this.remoteSerializer.toDocument(e);return new Vn(null,t)}var n=e.key.path.toArray(),r=e.version.toTimestamp(),i=new Ln(r.seconds,r.nanoseconds);return new Vn(new qn(n,i),null)},t.prototype.toDbMutationBatch=function(e,t){var n=this,r=t.mutations.map(function(e){return n.remoteSerializer.toMutation(e)});return new Un(e,t.batchId,t.localWriteTime.toMillis(),r)},t.prototype.fromDbMutationBatch=function(e){var t=this,n=e.mutations.map(function(e){return t.remoteSerializer.fromMutation(e)}),r=te.fromMillis(e.localWriteTimeMs);return new Tn(e.batchId,r,n)},t.prototype.fromDbTarget=function(e){var t,n=new te(e.readTime.seconds,e.readTime.nanoseconds),r=Qe.fromTimestamp(n);return t=void 0!==e.query.documents?this.remoteSerializer.fromDocumentsTarget(e.query):this.remoteSerializer.fromQueryTarget(e.query),new Xe(t,e.targetId,Ve.Listen,r,e.resumeToken)},t.prototype.toDbTarget=function(t){y(Ve.Listen===t.purpose,"Only queries with purpose "+Ve.Listen+" may be stored, got "+t.purpose);var n,r,i=t.snapshotVersion.toTimestamp(),o=new Ln(i.seconds,i.nanoseconds);return n=t.query.isDocumentQuery()?this.remoteSerializer.toDocumentsTarget(t.query):this.remoteSerializer.toQueryTarget(t.query),t.resumeToken instanceof Uint8Array?(y("YES"===e.env.USE_MOCK_PERSISTENCE,"Persisting non-string stream tokens is only supported with mock persistence ."),r=t.resumeToken.toString()):r=t.resumeToken,new Wn(t.targetId,t.query.canonicalId(),o,r,0,n)},t}();var hr,pr="IndexedDbPersistence",dr="There is another tab open with offline persistence enabled. Only one such tab is allowed at a time. The other tab must be closed or persistence must be disabled.",vr=function(){function e(t,n){this.ownerId=this.generateOwnerId(),this.dbName=t+e.MAIN_DATABASE,this.serializer=new fr(n),this.localStoragePrefix=t}return e.prototype.start=function(){var t=this;return e.isAvailable()?(y(!this.started,"IndexedDbPersistence double-started!"),this.started=!0,Qn.openOrCreate(this.dbName,2,Mn).then(function(e){t.simpleDb=e}).then(function(){return t.tryAcquireOwnerLease()}).then(function(){t.scheduleOwnerLeaseRefreshes(),t.attachWindowUnloadHook()})):(this.persistenceError=new w(_.UNIMPLEMENTED,"This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled."),Promise.reject(this.persistenceError))},e.prototype.shutdown=function(e){var t=this;return y(this.started,"IndexedDbPersistence shutdown without start!"),this.started=!1,this.detachWindowUnloadHook(),this.stopOwnerLeaseRefreshes(),this.releaseOwnerLease().then(function(){if(t.simpleDb.close(),e)return Qn.delete(t.dbName)})},e.prototype.getMutationQueue=function(e){return Zn.forUser(e,this.serializer)},e.prototype.getQueryCache=function(){return new ir(this.serializer)},e.prototype.getRemoteDocumentCache=function(){return new ur(this.serializer)},e.prototype.runTransaction=function(e,t){var n=this;return this.persistenceError?Promise.reject(this.persistenceError):(p(pr,"Starting transaction:",e),this.simpleDb.runTransaction("readwrite",Kn,function(e){return n.ensureOwnerLease(e).next(function(){return t(e)})}))},e.isAvailable=function(){return Qn.isAvailable()},e.buildStoragePrefix=function(e){var t=e.databaseId.projectId;return e.databaseId.isDefaultDatabase||(t+="."+e.databaseId.database),"firestore/"+e.persistenceKey+"/"+t+"/"},e.prototype.tryAcquireOwnerLease=function(){var e=this;return this.simpleDb.runTransaction("readwrite",[jn.store],function(t){var n=t.store(jn.store);return n.get("owner").next(function(t){if(e.validOwner(t))return p(pr,"Valid owner already. Failing. Current owner:",t),e.persistenceError=new w(_.FAILED_PRECONDITION,dr),hn.reject(e.persistenceError);var r=new jn(e.ownerId,Date.now());return p(pr,"No valid owner. Acquiring owner lease. Current owner:",t,"New owner:",r),n.put("owner",r)})})},e.prototype.releaseOwnerLease=function(){var e=this;return this.simpleDb.runTransaction("readwrite",[jn.store],function(t){var n=t.store(jn.store);return n.get("owner").next(function(t){return null!==t&&t.ownerId===e.ownerId?(p(pr,"Releasing owner lease."),n.delete("owner")):hn.resolve()})})},e.prototype.ensureOwnerLease=function(e){var t=this;return e.store(jn.store).get("owner").next(function(e){return null===e||e.ownerId!==t.ownerId?(t.persistenceError=new w(_.FAILED_PRECONDITION,dr),hn.reject(t.persistenceError)):hn.resolve()})},e.prototype.validOwner=function(e){var t=Date.now(),n=t-5e3,r=t;return null!==e&&(!(e.leaseTimestampMs<n)&&(e.leaseTimestampMs>r?(d("Persistence owner-lease is in the future. Discarding.",e),!1):e.ownerId!==this.getZombiedOwnerId()))},e.prototype.scheduleOwnerLeaseRefreshes=function(){var e=this;this.ownerLeaseRefreshHandle=setInterval(function(){e.runTransaction("Refresh owner timestamp",function(t){return t.store(jn.store).put("owner",new jn(e.ownerId,Date.now()))}).catch(function(t){d(t),e.stopOwnerLeaseRefreshes()})},4e3)},e.prototype.stopOwnerLeaseRefreshes=function(){this.ownerLeaseRefreshHandle&&(clearInterval(this.ownerLeaseRefreshHandle),this.ownerLeaseRefreshHandle=null)},e.prototype.attachWindowUnloadHook=function(){var e=this;"object"==typeof window&&"function"==typeof window.addEventListener&&(this.windowUnloadHandler=function(){e.setZombiedOwnerId(e.ownerId),e.shutdown()},window.addEventListener("unload",this.windowUnloadHandler))},e.prototype.detachWindowUnloadHook=function(){this.windowUnloadHandler&&(y("object"==typeof window&&"function"==typeof window.removeEventListener,"Expected 'window.removeEventListener' to be a function"),window.removeEventListener("unload",this.windowUnloadHandler),this.windowUnloadHandler=null)},e.prototype.getZombiedOwnerId=function(){try{var e=window.localStorage.getItem(this.zombiedOwnerLocalStorageKey());return p(pr,"Zombied ownerID from LocalStorage:",e),e}catch(e){return d("Failed to get zombie owner id.",e),null}},e.prototype.setZombiedOwnerId=function(e){try{null===e?window.localStorage.removeItem(this.zombiedOwnerLocalStorageKey()):window.localStorage.setItem(this.zombiedOwnerLocalStorageKey(),e)}catch(e){d("Failed to set zombie owner id.",e)}},e.prototype.zombiedOwnerLocalStorageKey=function(){return this.localStoragePrefix+"zombiedOwnerId"},e.prototype.generateOwnerId=function(){return H.newId()},e.MAIN_DATABASE="main",e}(),mr=function(){function e(e,t){this.remoteDocumentCache=e,this.mutationQueue=t}return e.prototype.getDocument=function(e,t){var n=this;return this.remoteDocumentCache.getEntry(e,t).next(function(r){return n.computeLocalDocument(e,t,r)})},e.prototype.getDocuments=function(e,t){var n=this,r=[],i=ht();return t.forEach(function(t){r.push(n.getDocument(e,t).next(function(e){e||(e=new fe(t,Qe.forDeletedDoc())),i=i.insert(t,e)}))}),hn.waitFor(r).next(function(){return i})},e.prototype.getDocumentsMatchingQuery=function(e,t){return ce.isDocumentKey(t.path)?this.getDocumentsMatchingDocumentQuery(e,t.path):this.getDocumentsMatchingCollectionQuery(e,t)},e.prototype.getDocumentsMatchingDocumentQuery=function(e,t){return this.getDocument(e,new ce(t)).next(function(e){var t=dt();return e instanceof le&&(t=t.insert(e.key,e)),t})},e.prototype.getDocumentsMatchingCollectionQuery=function(e,t){var n,r=this;return this.remoteDocumentCache.getDocumentsMatchingQuery(e,t).next(function(t){return r.computeLocalDocuments(e,t)}).next(function(i){return n=i,r.mutationQueue.getAllMutationBatchesAffectingQuery(e,t)}).next(function(t){for(var i=gt(),o=0,a=t;o<a.length;o++)for(var s=0,u=a[o].mutations;s<u.length;s++){var c=u[s];n.get(c.key)||(i=i.add(c.key))}var l=[];return i.forEach(function(t){l.push(r.getDocument(e,t).next(function(e){e instanceof le&&(n=n.insert(e.key,e))}))}),hn.waitFor(l)}).next(function(){return n.forEach(function(e,r){t.matches(r)||(n=n.remove(e))}),n})},e.prototype.computeLocalDocument=function(e,t,n){return this.mutationQueue.getAllMutationBatchesAffectingDocumentKey(e,t).next(function(e){for(var r=0,i=e;r<i.length;r++){var o=i[r];n=o.applyToLocalView(t,n)}return n})},e.prototype.computeLocalDocuments=function(e,t){var n=this,r=[];return t.forEach(function(i,o){r.push(n.computeLocalDocument(e,i,o).next(function(e){e instanceof le?t=t.insert(e.key,e):e instanceof fe?t=t.remove(e.key):m("Unknown MaybeDocument: "+e)}))}),hn.waitFor(r).next(function(){return t})},e}(),yr=function(){function e(e){this.remoteDocumentCache=e,this.changes=ht()}return e.prototype.addEntry=function(e){var t=this.assertChanges();this.changes=t.insert(e.key,e)},e.prototype.getEntry=function(e,t){var n=this.assertChanges().get(t);return n?hn.resolve(n):this.remoteDocumentCache.getEntry(e,t)},e.prototype.apply=function(e){var t=this,n=[];return this.assertChanges().forEach(function(r,i){n.push(t.remoteDocumentCache.addEntry(e,i))}),this.changes=null,hn.waitFor(n)},e.prototype.assertChanges=function(){return y(null!==this.changes,"Changes have already been applied."),this.changes},e}(),gr=function(){function e(e,t,n){this.persistence=e,this.garbageCollector=n,this.localViewReferences=new vn,this.targetIds={},this.targetIdGenerator=gn.forLocalStore(),this.heldBatchResults=[],this.mutationQueue=e.getMutationQueue(t),this.remoteDocuments=e.getRemoteDocumentCache(),this.queryCache=e.getQueryCache(),this.localDocuments=new mr(this.remoteDocuments,this.mutationQueue),this.garbageCollector.addGarbageSource(this.localViewReferences),this.garbageCollector.addGarbageSource(this.queryCache),this.garbageCollector.addGarbageSource(this.mutationQueue)}return e.prototype.start=function(){var e=this;return this.persistence.runTransaction("Start LocalStore",function(t){return e.startMutationQueue(t).next(function(){return e.startQueryCache(t)})})},e.prototype.handleUserChange=function(e){var t=this;return this.persistence.runTransaction("Handle user change",function(n){var r;return t.mutationQueue.getAllMutationBatches(n).next(function(i){return r=i,t.garbageCollector.removeGarbageSource(t.mutationQueue),t.mutationQueue=t.persistence.getMutationQueue(e),t.garbageCollector.addGarbageSource(t.mutationQueue),t.startMutationQueue(n)}).next(function(){return t.localDocuments=new mr(t.remoteDocuments,t.mutationQueue),t.mutationQueue.getAllMutationBatches(n)}).next(function(e){for(var i=gt(),o=0,a=[r,e];o<a.length;o++)for(var s=0,u=a[o];s<u.length;s++)for(var c=0,l=u[s].mutations;c<l.length;c++){var f=l[c];i=i.add(f.key)}return t.localDocuments.getDocuments(n,i)})})},e.prototype.startQueryCache=function(e){var t=this;return this.queryCache.start(e).next(function(){var e=t.queryCache.getHighestTargetId();t.targetIdGenerator=gn.forLocalStore(e)})},e.prototype.startMutationQueue=function(e){var t=this;return this.mutationQueue.start(e).next(function(){return t.heldBatchResults=[],t.mutationQueue.getHighestAcknowledgedBatchId(e)}).next(function(n){return n!==Cn?t.mutationQueue.getAllMutationBatchesThroughBatchId(e,n):hn.resolve([])}).next(function(n){return n.length>0?t.mutationQueue.removeMutationBatches(e,n):hn.resolve()})},e.prototype.localWrite=function(e){var t=this;return this.persistence.runTransaction("Locally write mutations",function(n){var r,i=te.now();return t.mutationQueue.addMutationBatch(n,i,e).next(function(e){var i=(r=e).keys();return t.localDocuments.getDocuments(n,i)}).next(function(e){return{batchId:r.batchId,changes:e}})})},e.prototype.acknowledgeBatch=function(e){var t=this;return this.persistence.runTransaction("Acknowledge batch",function(n){var r;return t.mutationQueue.acknowledgeBatch(n,e.batch,e.streamToken).next(function(){if(t.shouldHoldBatchResult(e.commitVersion))return t.heldBatchResults.push(e),r=gt(),hn.resolve();var i=new yr(t.remoteDocuments);return t.releaseBatchResults(n,[e],i).next(function(e){return r=e,i.apply(n)})}).next(function(){return t.mutationQueue.performConsistencyCheck(n)}).next(function(){return t.localDocuments.getDocuments(n,r)})})},e.prototype.rejectBatch=function(e){var t=this;return this.persistence.runTransaction("Reject batch",function(n){var r,i;return t.mutationQueue.lookupMutationBatch(n,e).next(function(i){return y(null!=i,"Attempt to reject nonexistent batch!"),r=i,t.mutationQueue.getHighestAcknowledgedBatchId(n).next(function(t){return y(e>t,"Acknowledged batches can't be rejected."),r})}).next(function(){return t.removeMutationBatch(n,r)}).next(function(e){return i=e,t.mutationQueue.performConsistencyCheck(n)}).next(function(){return t.localDocuments.getDocuments(n,i)})})},e.prototype.getLastStreamToken=function(){var e=this;return this.persistence.runTransaction("Get last stream token",function(t){return e.mutationQueue.getLastStreamToken(t)})},e.prototype.setLastStreamToken=function(e){var t=this;return this.persistence.runTransaction("Set last stream token",function(n){return t.mutationQueue.setLastStreamToken(n,e)})},e.prototype.getLastRemoteSnapshotVersion=function(){return this.queryCache.getLastRemoteSnapshotVersion()},e.prototype.applyRemoteEvent=function(e){var t=this,n=new yr(this.remoteDocuments);return this.persistence.runTransaction("Apply remote event",function(r){var i=[];T(e.targetChanges,function(n,o){var a=t.targetIds[n];if(a){i.push(t.queryCache.removeMatchingKeys(r,o.removedDocuments,n).next(function(){return t.queryCache.addMatchingKeys(r,o.addedDocuments,n)}));var s=o.resumeToken;s.length>0&&(a=a.update({resumeToken:s,snapshotVersion:e.snapshotVersion}),t.targetIds[n]=a,i.push(t.queryCache.updateQueryData(r,a)))}});var o=gt();e.documentUpdates.forEach(function(e,a){o=o.add(e),i.push(n.getEntry(r,e).next(function(r){null==r||a.version.isEqual(Qe.MIN)||a.version.compareTo(r.version)>=0?n.addEntry(a):p("LocalStore","Ignoring outdated watch update for ",e,". Current version:",r.version," Watch version:",a.version),t.garbageCollector.addPotentialGarbageKey(e)}))});var a,s=t.queryCache.getLastRemoteSnapshotVersion(),u=e.snapshotVersion;return u.isEqual(Qe.MIN)||(y(u.compareTo(s)>=0,"Watch stream reverted to previous snapshot?? "+u+" < "+s),i.push(t.queryCache.setLastRemoteSnapshotVersion(r,u))),hn.waitFor(i).next(function(){return t.releaseHeldBatchResults(r,n)}).next(function(e){return a=e,n.apply(r)}).next(function(){return t.localDocuments.getDocuments(r,o.unionWith(a))})})},e.prototype.notifyLocalViewChanges=function(e){var t=this;return this.persistence.runTransaction("Notify local view changes",function(n){for(var r=[],i=function(e){r.push(t.queryCache.getQueryData(n,e.query).next(function(n){y(null!==n,"Local view changes contain unallocated query.");var r=n.targetId;t.localViewReferences.addReferences(e.addedKeys,r),t.localViewReferences.removeReferences(e.removedKeys,r)}))},o=0,a=e;o<a.length;o++){i(a[o])}return hn.waitFor(r)})},e.prototype.nextMutationBatch=function(e){var t=this;return this.persistence.runTransaction("Get next mutation batch",function(n){return void 0===e&&(e=Cn),t.mutationQueue.getNextMutationBatchAfterBatchId(n,e)})},e.prototype.readDocument=function(e){var t=this;return this.persistence.runTransaction("read document",function(n){return t.localDocuments.getDocument(n,e)})},e.prototype.allocateQuery=function(e){var t=this;return this.persistence.runTransaction("Allocate query",function(n){var r;return t.queryCache.getQueryData(n,e).next(function(i){if(i)return r=i,hn.resolve();var o=t.targetIdGenerator.next();return r=new Xe(e,o,Ve.Listen),t.queryCache.addQueryData(n,r)}).next(function(){return y(!t.targetIds[r.targetId],"Tried to allocate an already allocated query: "+e),t.targetIds[r.targetId]=r,r})})},e.prototype.releaseQuery=function(e){var t=this;return this.persistence.runTransaction("Release query",function(n){return t.queryCache.getQueryData(n,e).next(function(r){return y(null!=r,"Tried to release nonexistent query: "+e),t.localViewReferences.removeReferencesForId(r.targetId),delete t.targetIds[r.targetId],t.garbageCollector.isEager?t.queryCache.removeQueryData(n,r):hn.resolve()}).next(function(){if(S(t.targetIds)){var e=new yr(t.remoteDocuments);return t.releaseHeldBatchResults(n,e).next(function(){e.apply(n)})}return hn.resolve()})})},e.prototype.executeQuery=function(e){var t=this;return this.persistence.runTransaction("Execute query",function(n){return t.localDocuments.getDocumentsMatchingQuery(n,e)})},e.prototype.remoteDocumentKeys=function(e){var t=this;return this.persistence.runTransaction("Remote document keys",function(n){return t.queryCache.getMatchingKeysForTargetId(n,e)})},e.prototype.collectGarbage=function(){var e=this;return this.persistence.runTransaction("Garbage collection",function(t){return e.garbageCollector.collectGarbage(t).next(function(n){var r=[];return n.forEach(function(n){r.push(e.remoteDocuments.removeEntry(t,n))}),hn.waitFor(r)})})},e.prototype.releaseHeldBatchResults=function(e,t){for(var n=[],r=0,i=this.heldBatchResults;r<i.length;r++){var o=i[r];if(!this.isRemoteUpToVersion(o.commitVersion))break;n.push(o)}return 0===n.length?hn.resolve(gt()):(this.heldBatchResults.splice(0,n.length),this.releaseBatchResults(e,n,t))},e.prototype.isRemoteUpToVersion=function(e){var t=this.queryCache.getLastRemoteSnapshotVersion();return e.compareTo(t)<=0||S(this.targetIds)},e.prototype.shouldHoldBatchResult=function(e){return!this.isRemoteUpToVersion(e)||this.heldBatchResults.length>0},e.prototype.releaseBatchResults=function(e,t,n){for(var r=this,i=hn.resolve(),o=function(t){i=i.next(function(){return r.applyWriteToRemoteDocuments(e,t,n)})},a=0,s=t;a<s.length;a++){o(s[a])}return i.next(function(){return r.removeMutationBatches(e,t.map(function(e){return e.batch}))})},e.prototype.removeMutationBatch=function(e,t){return this.removeMutationBatches(e,[t])},e.prototype.removeMutationBatches=function(e,t){for(var n=gt(),r=0,i=t;r<i.length;r++)for(var o=0,a=i[r].mutations;o<a.length;o++){var s=a[o].key;n=n.add(s)}return this.mutationQueue.removeMutationBatches(e,t).next(function(){return n})},e.prototype.applyWriteToRemoteDocuments=function(e,t,n){var r=t.batch,i=r.keys(),o=hn.resolve();return i.forEach(function(i){o=o.next(function(){return n.getEntry(e,i)}).next(function(e){var o=e,a=t.docVersions.get(i);y(null!==a,"ackVersions should contain every doc in the write."),(!o||o.version.compareTo(a)<0)&&((o=r.applyToRemoteDocument(i,o,t))?n.addEntry(o):y(!e,"Mutation batch "+r+" applied to document "+e+" resulted in null"))})}),o},e}(),br=function(){function e(){this.mutationQueue=[],this.nextBatchId=1,this.highestAcknowledgedBatchId=Cn,this.lastStreamToken=b(),this.garbageCollector=null,this.batchesByDocumentKey=new lt(mn.compareByKey)}return e.prototype.start=function(e){return 0===this.mutationQueue.length&&(this.nextBatchId=1,this.highestAcknowledgedBatchId=Cn),y(this.highestAcknowledgedBatchId<this.nextBatchId,"highestAcknowledgedBatchId must be less than the nextBatchId"),hn.resolve()},e.prototype.checkEmpty=function(e){return hn.resolve(0===this.mutationQueue.length)},e.prototype.getNextBatchId=function(e){return hn.resolve(this.nextBatchId)},e.prototype.getHighestAcknowledgedBatchId=function(e){return hn.resolve(this.highestAcknowledgedBatchId)},e.prototype.acknowledgeBatch=function(e,t,n){var r=t.batchId;y(r>this.highestAcknowledgedBatchId,"Mutation batchIDs must be acknowledged in order");var i=this.indexOfExistingBatchId(r,"acknowledged"),o=this.mutationQueue[i];return y(r===o.batchId,"Queue ordering failure: expected batch "+r+", got batch "+o.batchId),y(!o.isTombstone(),"Can't acknowledge a previously removed batch"),this.highestAcknowledgedBatchId=r,this.lastStreamToken=n,hn.resolve()},e.prototype.getLastStreamToken=function(e){return hn.resolve(this.lastStreamToken)},e.prototype.setLastStreamToken=function(e,t){return this.lastStreamToken=t,hn.resolve()},e.prototype.addMutationBatch=function(e,t,n){y(0!==n.length,"Mutation batches should not be empty");var r=this.nextBatchId;(this.nextBatchId++,this.mutationQueue.length>0)&&y(this.mutationQueue[this.mutationQueue.length-1].batchId<r,"Mutation batchIDs must be monotonically increasing order");var i=new Tn(r,t,n);this.mutationQueue.push(i);for(var o=0,a=n;o<a.length;o++){var s=a[o];this.batchesByDocumentKey=this.batchesByDocumentKey.add(new mn(s.key,r))}return hn.resolve(i)},e.prototype.lookupMutationBatch=function(e,t){return hn.resolve(this.findMutationBatch(t))},e.prototype.getNextMutationBatchAfterBatchId=function(e,t){for(var n=this.mutationQueue.length,r=Math.max(t,this.highestAcknowledgedBatchId)+1,i=this.indexOfBatchId(r),o=i<0?0:i;o<n;o++){var a=this.mutationQueue[o];if(!a.isTombstone())return hn.resolve(a)}return hn.resolve(null)},e.prototype.getAllMutationBatches=function(e){return hn.resolve(this.getAllLiveMutationBatchesBeforeIndex(this.mutationQueue.length))},e.prototype.getAllMutationBatchesThroughBatchId=function(e,t){var n=this.mutationQueue.length,r=this.indexOfBatchId(t);return r<0?r=0:r>=n?r=n:r++,hn.resolve(this.getAllLiveMutationBatchesBeforeIndex(r))},e.prototype.getAllMutationBatchesAffectingDocumentKey=function(e,t){var n=this,r=new mn(t,0),i=new mn(t,Number.POSITIVE_INFINITY),o=[];return this.batchesByDocumentKey.forEachInRange([r,i],function(e){y(t.isEqual(e.key),"Should only iterate over a single key's batches");var r=n.findMutationBatch(e.targetOrBatchId);y(null!==r,"Batches in the index must exist in the main table"),o.push(r)}),hn.resolve(o)},e.prototype.getAllMutationBatchesAffectingQuery=function(e,t){var n=this,r=t.path,i=r.length+1,o=r;ce.isDocumentKey(o)||(o=o.child(""));var a=new mn(new ce(o),0),s=new lt(K);this.batchesByDocumentKey.forEachWhile(function(e){var t=e.key.path;return!!r.isPrefixOf(t)&&(t.length===i&&(s=s.add(e.targetOrBatchId)),!0)},a);var u=[];return s.forEach(function(e){var t=n.findMutationBatch(e);null!==t&&u.push(t)}),hn.resolve(u)},e.prototype.removeMutationBatches=function(e,t){var n=t.length;y(n>0,"Should not remove mutations when none exist.");var r=t[0].batchId,i=this.mutationQueue.length,o=this.indexOfExistingBatchId(r,"removed");y(this.mutationQueue[o].batchId===r,"Removed batches must exist in the queue");for(var a=1,s=o+1;a<n&&s<i;){(p=this.mutationQueue[s]).isTombstone()?s++:(y(p.batchId===t[a].batchId,"Removed batches must be contiguous in the queue"),a++,s++)}if(0===o){for(;s<i;s++){if(!(p=this.mutationQueue[s]).isTombstone())break}var u=s-o;this.mutationQueue.splice(o,u)}else for(var c=o;c<s;c++)this.mutationQueue[c]=this.mutationQueue[c].toTombstone();for(var l=this.batchesByDocumentKey,f=0,h=t;f<h.length;f++)for(var p,d=(p=h[f]).batchId,v=0,m=p.mutations;v<m.length;v++){var g=m[v].key;null!==this.garbageCollector&&this.garbageCollector.addPotentialGarbageKey(g);var b=new mn(g,d);l=l.delete(b)}return this.batchesByDocumentKey=l,hn.resolve()},e.prototype.setGarbageCollector=function(e){this.garbageCollector=e},e.prototype.containsKey=function(e,t){var n=new mn(t,0),r=this.batchesByDocumentKey.firstAfterOrEqual(n);return hn.resolve(t.isEqual(r&&r.key))},e.prototype.performConsistencyCheck=function(e){return 0===this.mutationQueue.length&&y(this.batchesByDocumentKey.isEmpty(),"Document leak -- detected dangling mutation references when queue is empty."),hn.resolve()},e.prototype.getAllLiveMutationBatchesBeforeIndex=function(e){for(var t=[],n=0;n<e;n++){var r=this.mutationQueue[n];r.isTombstone()||t.push(r)}return t},e.prototype.indexOfExistingBatchId=function(e,t){var n=this.indexOfBatchId(e);return y(n>=0&&n<this.mutationQueue.length,"Batches must exist to be "+t),n},e.prototype.indexOfBatchId=function(e){return 0===this.mutationQueue.length?0:e-this.mutationQueue[0].batchId},e.prototype.findMutationBatch=function(e){var t=this.indexOfBatchId(e);if(t<0||t>=this.mutationQueue.length)return null;var n=this.mutationQueue[t];return y(n.batchId===e,"If found batch must match"),n.isTombstone()?null:n},e}(),_r=function(){function e(){this.queries=new un(function(e){return e.canonicalId()}),this.lastRemoteSnapshotVersion=Qe.MIN,this.highestTargetId=0,this.references=new vn,this.targetCount=0}return e.prototype.start=function(e){return hn.resolve()},e.prototype.getLastRemoteSnapshotVersion=function(){return this.lastRemoteSnapshotVersion},e.prototype.getHighestTargetId=function(){return this.highestTargetId},e.prototype.setLastRemoteSnapshotVersion=function(e,t){return this.lastRemoteSnapshotVersion=t,hn.resolve()},e.prototype.saveQueryData=function(e){this.queries.set(e.query,e);var t=e.targetId;t>this.highestTargetId&&(this.highestTargetId=t)},e.prototype.addQueryData=function(e,t){return y(!this.queries.has(t.query),"Adding a query that already exists"),this.saveQueryData(t),this.targetCount+=1,hn.resolve()},e.prototype.updateQueryData=function(e,t){return y(this.queries.has(t.query),"Updating a non-existent query"),this.saveQueryData(t),hn.resolve()},e.prototype.removeQueryData=function(e,t){return y(this.targetCount>0,"Removing a target from an empty cache"),y(this.queries.has(t.query),"Removing a non-existent target from the cache"),this.queries.delete(t.query),this.references.removeReferencesForId(t.targetId),this.targetCount-=1,hn.resolve()},Object.defineProperty(e.prototype,"count",{get:function(){return this.targetCount},enumerable:!0,configurable:!0}),e.prototype.getQueryData=function(e,t){var n=this.queries.get(t)||null;return hn.resolve(n)},e.prototype.addMatchingKeys=function(e,t,n){return this.references.addReferences(t,n),hn.resolve()},e.prototype.removeMatchingKeys=function(e,t,n){return this.references.removeReferences(t,n),hn.resolve()},e.prototype.removeMatchingKeysForTargetId=function(e,t){return this.references.removeReferencesForId(t),hn.resolve()},e.prototype.getMatchingKeysForTargetId=function(e,t){var n=this.references.referencesForId(t);return hn.resolve(n)},e.prototype.setGarbageCollector=function(e){this.references.setGarbageCollector(e)},e.prototype.containsKey=function(e,t){return this.references.containsKey(e,t)},e}(),wr=function(){function e(){this.docs=ht()}return e.prototype.addEntry=function(e,t){return this.docs=this.docs.insert(t.key,t),hn.resolve()},e.prototype.removeEntry=function(e,t){return this.docs=this.docs.remove(t),hn.resolve()},e.prototype.getEntry=function(e,t){return hn.resolve(this.docs.get(t))},e.prototype.getDocumentsMatchingQuery=function(e,t){for(var n=dt(),r=new ce(t.path.child("")),i=this.docs.getIteratorFrom(r);i.hasNext();){var o=i.getNext(),a=o.key,s=o.value;if(!t.path.isPrefixOf(a.path))break;s instanceof le&&t.matches(s)&&(n=n.insert(s.key,s))}return hn.resolve(n)},e}(),Er=function(){function e(){this.mutationQueues={},this.remoteDocumentCache=new wr,this.queryCache=new _r,this.started=!1}return e.prototype.start=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return y(!this.started,"MemoryPersistence double-started!"),this.started=!0,[2]})})},e.prototype.shutdown=function(e){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return y(this.started,"MemoryPersistence shutdown without start!"),this.started=!1,[2]})})},e.prototype.getMutationQueue=function(e){var t=this.mutationQueues[e.toKey()];return t||(t=new br,this.mutationQueues[e.toKey()]=t),t},e.prototype.getQueryCache=function(){return this.queryCache},e.prototype.getRemoteDocumentCache=function(){return this.remoteDocumentCache},e.prototype.runTransaction=function(e,t){return p("MemoryPersistence","Starting transaction:",e),t(new xr).toPromise()},e}(),xr=function(){return function(){}}(),Cr=function(){function e(){this.isEager=!1}return e.prototype.addGarbageSource=function(e){},e.prototype.removeGarbageSource=function(e){},e.prototype.addPotentialGarbageKey=function(e){},e.prototype.collectGarbage=function(e){return hn.resolve(gt())},e}();!function(e){e.All="all",e.ListenStreamIdle="listen_stream_idle",e.ListenStreamConnectionBackoff="listen_stream_connection_backoff",e.WriteStreamIdle="write_stream_idle",e.WriteStreamConnectionBackoff="write_stream_connection_backoff",e.OnlineStateTimeout="online_state_timeout"}(hr||(hr={}));var Tr,kr=function(){function e(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new Gn,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.catch=this.deferred.promise.catch.bind(this.deferred.promise),this.deferred.promise.catch(function(e){})}return e.createAndSchedule=function(t,n,r,i,o){var a=new e(t,n,Date.now()+r,i,o);return a.start(r),a},e.prototype.start=function(e){var t=this;this.timerHandle=setTimeout(function(){return t.handleDelayElapsed()},e)},e.prototype.skipDelay=function(){return this.handleDelayElapsed()},e.prototype.cancel=function(e){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new w(_.CANCELLED,"Operation cancelled"+(e?": "+e:""))))},e.prototype.handleDelayElapsed=function(){var e=this;this.asyncQueue.enqueue(function(){return null!==e.timerHandle?(e.clearTimeout(),e.op().then(function(t){return e.deferred.resolve(t)})):Promise.resolve()})},e.prototype.clearTimeout=function(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)},e}(),Sr=function(){function e(){this.tail=Promise.resolve(),this.delayedOperations=[],this.operationInProgress=!1}return e.prototype.enqueue=function(e){var t=this;this.verifyNotFailed();var n=this.tail.then(function(){return t.operationInProgress=!0,e().catch(function(e){t.failure=e,t.operationInProgress=!1;var n=e.stack||e.message||"";throw d("INTERNAL UNHANDLED ERROR: ",n),n.indexOf("Firestore Test Simulated Error")<0&&setTimeout(function(){throw e},0),e}).then(function(e){return t.operationInProgress=!1,e})});return this.tail=n,n},e.prototype.enqueueAfterDelay=function(e,t,n){var r=this;this.verifyNotFailed(),y(!this.containsDelayedOperation(e),"Attempted to schedule multiple operations with timer id "+e+".");var i=kr.createAndSchedule(this,e,t,n,function(e){return r.removeDelayedOperation(e)});return this.delayedOperations.push(i),i},e.prototype.verifyNotFailed=function(){this.failure&&m("AsyncQueue is already failed: "+(this.failure.stack||this.failure.message))},e.prototype.verifyOperationInProgress=function(){y(this.operationInProgress,"verifyOpInProgress() called when no op in progress on this queue.")},e.prototype.drain=function(){return this.enqueue(function(){return Promise.resolve()})},e.prototype.containsDelayedOperation=function(e){return this.delayedOperations.findIndex(function(t){return t.timerId===e})>=0},e.prototype.runDelayedOperationsEarly=function(e){var t=this;return this.drain().then(function(){y(e===hr.All||t.containsDelayedOperation(e),"Attempted to drain to missing operation "+e),t.delayedOperations.sort(function(e,t){return e.targetTimeMs-t.targetTimeMs});for(var n=0,r=t.delayedOperations;n<r.length;n++){var i=r[n];if(i.skipDelay(),e!==hr.All&&i.timerId===e)break}return t.drain()})},e.prototype.removeDelayedOperation=function(e){var t=this.delayedOperations.indexOf(e);y(t>=0,"Delayed operation not found."),this.delayedOperations.splice(t,1)},e}(),Ar=function(){function e(e,t,n,r,i){this.queue=e,this.timerId=t,this.initialDelayMs=n,this.backoffFactor=r,this.maxDelayMs=i,this.timerPromise=null,this.reset()}return e.prototype.reset=function(){this.currentBaseMs=0},e.prototype.resetToMax=function(){this.currentBaseMs=this.maxDelayMs},e.prototype.backoffAndRun=function(e){this.cancel();var t=this.currentBaseMs+this.jitterDelayMs();this.currentBaseMs>0&&p("ExponentialBackoff","Backing off for "+t+" ms (base delay: "+this.currentBaseMs+" ms)"),this.timerPromise=this.queue.enqueueAfterDelay(this.timerId,t,e),this.currentBaseMs*=this.backoffFactor,this.currentBaseMs<this.initialDelayMs&&(this.currentBaseMs=this.initialDelayMs),this.currentBaseMs>this.maxDelayMs&&(this.currentBaseMs=this.maxDelayMs)},e.prototype.cancel=function(){null!==this.timerPromise&&(this.timerPromise.cancel(),this.timerPromise=null)},e.prototype.jitterDelayMs=function(){return(Math.random()-.5)*this.currentBaseMs},e}();!function(e){e[e.Initial=0]="Initial",e[e.Auth=1]="Auth",e[e.Open=2]="Open",e[e.Error=3]="Error",e[e.Backoff=4]="Backoff",e[e.Stopped=5]="Stopped"}(Tr||(Tr={}));var Nr=1e3,Or=6e4,Ir=1.5,Pr=function(){function e(e,t,n,r,i){this.queue=e,this.idleTimerId=n,this.connection=r,this.credentialsProvider=i,this.inactivityTimerPromise=null,this.stream=null,this.listener=null,this.backoff=new Ar(e,t,Nr,Ir,Or),this.state=Tr.Initial}return e.prototype.isStarted=function(){return this.state===Tr.Backoff||this.state===Tr.Auth||this.state===Tr.Open},e.prototype.isOpen=function(){return this.state===Tr.Open},e.prototype.start=function(e){this.state!==Tr.Error?(y(this.state===Tr.Initial,"Already started"),this.listener=e,this.auth()):this.performBackoff(e)},e.prototype.stop=function(){this.isStarted()&&this.close(Tr.Stopped)},e.prototype.inhibitBackoff=function(){y(!this.isStarted(),"Can only inhibit backoff in a stopped state"),this.state=Tr.Initial,this.backoff.reset()},e.prototype.markIdle=function(){var e=this;this.isOpen()&&null===this.inactivityTimerPromise&&(this.inactivityTimerPromise=this.queue.enqueueAfterDelay(this.idleTimerId,6e4,function(){return e.handleIdleCloseTimer()}))},e.prototype.sendRequest=function(e){this.cancelIdleCheck(),this.stream.send(e)},e.prototype.handleIdleCloseTimer=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return this.isOpen()?[2,this.close(Tr.Initial)]:[2]})})},e.prototype.cancelIdleCheck=function(){this.inactivityTimerPromise&&(this.inactivityTimerPromise.cancel(),this.inactivityTimerPromise=null)},e.prototype.close=function(e,t){return s.__awaiter(this,void 0,void 0,function(){var n;return s.__generator(this,function(r){return y(e===Tr.Error||Le(t),"Can't provide an error when not in an error state."),this.cancelIdleCheck(),this.backoff.cancel(),e!==Tr.Error?this.backoff.reset():t&&t.code===_.RESOURCE_EXHAUSTED&&(d(t.toString()),d("Using maximum backoff delay to prevent overloading the backend."),this.backoff.resetToMax()),null!==this.stream&&(this.tearDown(),this.stream.close(),this.stream=null),this.state=e,n=this.listener,this.listener=null,e!==Tr.Stopped?[2,n.onClose(t)]:[2]})})},e.prototype.tearDown=function(){},e.prototype.auth=function(){var e=this;y(this.state===Tr.Initial,"Must be in initial state to auth"),this.state=Tr.Auth,this.credentialsProvider.getToken(!1).then(function(t){e.startStream(t)},function(t){e.queue.enqueue(function(){return s.__awaiter(e,void 0,void 0,function(){var e;return s.__generator(this,function(n){return this.state!==Tr.Stopped?(e=new w(_.UNKNOWN,"Fetching auth token failed: "+t.message),[2,this.handleStreamClose(e)]):[2]})})})})},e.prototype.startStream=function(e){var t=this;if(this.state!==Tr.Stopped){y(this.state===Tr.Auth,"Trying to start stream in a non-auth state");var n=function(e,n){t.queue.enqueue(function(){return s.__awaiter(t,void 0,void 0,function(){return s.__generator(this,function(t){return this.stream===e?[2,n()]:[2]})})})};if(null!==this.listener){var r=this.startRpc(e);this.stream=r,this.stream.onOpen(function(){n(r,function(){return y(t.state===Tr.Auth,"Expected stream to be in state auth, but was "+t.state),t.state=Tr.Open,t.listener.onOpen()})}),this.stream.onClose(function(e){n(r,function(){return t.handleStreamClose(e)})}),this.stream.onMessage(function(e){n(r,function(){return t.onMessage(e)})})}}},e.prototype.performBackoff=function(e){var t=this;y(this.state===Tr.Error,"Should only perform backoff in an error case"),this.state=Tr.Backoff,this.backoff.backoffAndRun(function(){return s.__awaiter(t,void 0,void 0,function(){return s.__generator(this,function(t){return this.state===Tr.Stopped?[2]:(this.state=Tr.Initial,this.start(e),y(this.isStarted(),"PersistentStream should have started"),[2])})})})},e.prototype.handleStreamClose=function(e){return y(this.isStarted(),"Can't handle server close on non-started stream"),p("PersistentStream","close with error: "+e),this.stream=null,this.close(Tr.Error,e)},e}(),Rr=function(e){function t(t,n,r,i){var o=e.call(this,t,hr.ListenStreamConnectionBackoff,hr.ListenStreamIdle,n,r)||this;return o.serializer=i,o}return s.__extends(t,e),t.prototype.startRpc=function(e){return this.connection.openStream("Listen",e)},t.prototype.onMessage=function(e){this.backoff.reset();var t=this.serializer.fromWatchChange(e),n=this.serializer.versionFromListenResponse(e);return this.listener.onWatchChange(t,n)},t.prototype.watch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.addTarget=this.serializer.toTarget(e);var n=this.serializer.toListenRequestLabels(e);n&&(t.labels=n),this.sendRequest(t)},t.prototype.unwatch=function(e){var t={};t.database=this.serializer.encodedDatabaseId,t.removeTarget=e,this.sendRequest(t)},t}(Pr),Dr=function(e){function t(t,n,r,i){var o=e.call(this,t,hr.WriteStreamConnectionBackoff,hr.WriteStreamIdle,n,r)||this;return o.serializer=i,o.handshakeComplete_=!1,o}return s.__extends(t,e),Object.defineProperty(t.prototype,"handshakeComplete",{get:function(){return this.handshakeComplete_},enumerable:!0,configurable:!0}),t.prototype.start=function(t){this.handshakeComplete_=!1,e.prototype.start.call(this,t)},t.prototype.tearDown=function(){this.handshakeComplete_&&this.writeMutations([])},t.prototype.startRpc=function(e){return this.connection.openStream("Write",e)},t.prototype.onMessage=function(e){if(y(!!e.streamToken,"Got a write response without a stream token"),this.lastStreamToken=e.streamToken,this.handshakeComplete_){this.backoff.reset();var t=this.serializer.fromWriteResults(e.writeResults),n=this.serializer.fromVersion(e.commitTime);return this.listener.onMutationResult(n,t)}return y(!e.writeResults||0===e.writeResults.length,"Got mutation results for handshake"),this.handshakeComplete_=!0,this.listener.onHandshakeComplete()},t.prototype.writeHandshake=function(){y(this.isOpen(),"Writing handshake requires an opened stream"),y(!this.handshakeComplete_,"Handshake already completed");var e={};e.database=this.serializer.encodedDatabaseId,this.sendRequest(e)},t.prototype.writeMutations=function(e){var t=this;y(this.isOpen(),"Writing mutations requires an opened stream"),y(this.handshakeComplete_,"Handshake must be complete before writing mutations"),y(this.lastStreamToken.length>0,"Trying to write mutation without a token");var n={streamToken:this.lastStreamToken,writes:e.map(function(e){return t.serializer.toMutation(e)})};this.sendRequest(n)},t}(Pr),Mr=function(){function e(e,t,n,r){this.queue=e,this.connection=t,this.credentials=n,this.serializer=r}return e.prototype.newPersistentWriteStream=function(){return new Dr(this.queue,this.connection,this.credentials,this.serializer)},e.prototype.newPersistentWatchStream=function(){return new Rr(this.queue,this.connection,this.credentials,this.serializer)},e.prototype.commit=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,writes:e.map(function(e){return t.serializer.toMutation(e)})};return this.invokeRPC("Commit",n).then(function(e){return t.serializer.fromWriteResults(e.writeResults)})},e.prototype.lookup=function(e){var t=this,n={database:this.serializer.encodedDatabaseId,documents:e.map(function(e){return t.serializer.toName(e)})};return this.invokeStreamingRPC("BatchGetDocuments",n).then(function(n){var r=ht();n.forEach(function(e){var n=t.serializer.fromMaybeDocument(e);r=r.insert(n.key,n)});var i=[];return e.forEach(function(e){var t=r.get(e);y(!!t,"Missing entity in write response for "+e),i.push(t)}),i})},e.prototype.invokeRPC=function(e,t){var n=this;return this.credentials.getToken(!1).then(function(r){return n.connection.invokeRPC(e,t,r)})},e.prototype.invokeStreamingRPC=function(e,t){var n=this;return this.credentials.getToken(!1).then(function(r){return n.connection.invokeStreamingRPC(e,t,r)})},e}(),Lr=function(){function e(e){this.datastore=e,this.readVersions=mt(),this.mutations=[],this.committed=!1}return e.prototype.recordVersion=function(e){var t=e.version;e instanceof fe&&(t=Qe.forDeletedDoc());var n=this.readVersions.get(e.key);if(null!==n){if(!t.isEqual(n))throw new w(_.ABORTED,"Document version changed between two reads.")}else this.readVersions=this.readVersions.insert(e.key,t)},e.prototype.lookup=function(e){var t=this;return this.committed?Promise.reject("Transaction has already completed."):this.mutations.length>0?Promise.reject("Transactions lookups are invalid after writes."):this.datastore.lookup(e).then(function(e){return e.forEach(function(e){return t.recordVersion(e)}),e})},e.prototype.write=function(e){if(this.committed)throw new w(_.FAILED_PRECONDITION,"Transaction has already completed.");this.mutations=this.mutations.concat(e)},e.prototype.precondition=function(e){var t=this.readVersions.get(e);return t?tt.updateTime(t):tt.NONE},e.prototype.preconditionForUpdate=function(e){var t=this.readVersions.get(e);if(t&&t.isEqual(Qe.forDeletedDoc()))throw new w(_.FAILED_PRECONDITION,"Can't update a document that doesn't exist.");return t?tt.updateTime(t):tt.exists(!0)},e.prototype.set=function(e,t){this.write(t.toMutations(e,this.precondition(e)))},e.prototype.update=function(e,t){this.write(t.toMutations(e,this.preconditionForUpdate(e)))},e.prototype.delete=function(e){this.write([new at(e,this.precondition(e))]),this.readVersions=this.readVersions.insert(e,Qe.forDeletedDoc())},e.prototype.commit=function(){var e=this,t=this.readVersions;return this.mutations.forEach(function(e){t=t.remove(e.key)}),t.isEmpty()?this.datastore.commit(this.mutations).then(function(){e.committed=!0}):Promise.reject(Error("Every document read in a transaction must also be written."))},e}(),jr=function(){function e(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state=nn.Unknown,this.watchStreamFailures=0,this.onlineStateTimer=null,this.shouldWarnClientIsOffline=!0}return e.prototype.handleWatchStreamStart=function(){var e=this;0===this.watchStreamFailures&&(this.setAndBroadcast(nn.Unknown),y(null===this.onlineStateTimer,"onlineStateTimer shouldn't be started yet"),this.onlineStateTimer=this.asyncQueue.enqueueAfterDelay(hr.OnlineStateTimeout,1e4,function(){return e.onlineStateTimer=null,y(e.state===nn.Unknown,"Timer should be canceled if we transitioned to a different state."),e.logClientOfflineWarningIfNecessary("Backend didn't respond within 10 seconds."),e.setAndBroadcast(nn.Offline),Promise.resolve()}))},e.prototype.handleWatchStreamFailure=function(e){this.state===nn.Online?(this.setAndBroadcast(nn.Unknown),y(0===this.watchStreamFailures,"watchStreamFailures must be 0"),y(null===this.onlineStateTimer,"onlineStateTimer must be null")):(this.watchStreamFailures++,this.watchStreamFailures>=2&&(this.clearOnlineStateTimer(),this.logClientOfflineWarningIfNecessary("Connection failed 2 times. Most recent error: "+e.toString()),this.setAndBroadcast(nn.Offline)))},e.prototype.set=function(e){this.clearOnlineStateTimer(),this.watchStreamFailures=0,e===nn.Online&&(this.shouldWarnClientIsOffline=!1),this.setAndBroadcast(e)},e.prototype.setAndBroadcast=function(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))},e.prototype.logClientOfflineWarningIfNecessary=function(e){var t="Could not reach Cloud Firestore backend. "+e+"\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.";this.shouldWarnClientIsOffline?(d(t),this.shouldWarnClientIsOffline=!1):p("OnlineStateTracker",t)},e.prototype.clearOnlineStateTimer=function(){null!==this.onlineStateTimer&&(this.onlineStateTimer.cancel(),this.onlineStateTimer=null)},e}(),Fr=function(){function e(e,t,n,r){this.localStore=e,this.datastore=t,this.pendingWrites=[],this.lastBatchSeen=Cn,this.listenTargets={},this.watchStream=null,this.writeStream=null,this.watchChangeAggregator=null,this.onlineStateTracker=new jr(n,r)}return e.prototype.start=function(){return this.enableNetwork()},e.prototype.isNetworkEnabled=function(){return y(null==this.watchStream==(null==this.writeStream),"WatchStream and WriteStream should both be null or non-null"),null!=this.watchStream},e.prototype.enableNetwork=function(){var e=this;return this.isNetworkEnabled()?Promise.resolve():(this.watchStream=this.datastore.newPersistentWatchStream(),this.writeStream=this.datastore.newPersistentWriteStream(),this.localStore.getLastStreamToken().then(function(t){return e.writeStream.lastStreamToken=t,e.shouldStartWatchStream()?e.startWatchStream():e.onlineStateTracker.set(nn.Unknown),e.fillWritePipeline()}))},e.prototype.disableNetwork=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return this.disableNetworkInternal(),this.onlineStateTracker.set(nn.Offline),[2]})})},e.prototype.disableNetworkInternal=function(){this.isNetworkEnabled()&&(this.watchStream.stop(),this.writeStream.stop(),this.cleanUpWatchStreamState(),this.cleanUpWriteStreamState(),this.writeStream=null,this.watchStream=null)},e.prototype.shutdown=function(){return p("RemoteStore","RemoteStore shutting down."),this.disableNetworkInternal(),this.onlineStateTracker.set(nn.Unknown),Promise.resolve()},e.prototype.listen=function(e){y(!x(this.listenTargets,e.targetId),"listen called with duplicate targetId!"),this.listenTargets[e.targetId]=e,this.shouldStartWatchStream()?this.startWatchStream():this.isNetworkEnabled()&&this.watchStream.isOpen()&&this.sendWatchRequest(e)},e.prototype.unlisten=function(e){y(x(this.listenTargets,e),"unlisten called without assigned target ID!"),delete this.listenTargets[e],this.isNetworkEnabled()&&this.watchStream.isOpen()&&(this.sendUnwatchRequest(e),S(this.listenTargets)&&this.watchStream.markIdle())},e.prototype.getQueryDataForTarget=function(e){return this.listenTargets[e]||null},e.prototype.getRemoteKeysForTarget=function(e){return this.syncEngine.getRemoteKeysForTarget(e)},e.prototype.sendWatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e.targetId),this.watchStream.watch(e)},e.prototype.sendUnwatchRequest=function(e){this.watchChangeAggregator.recordPendingTargetRequest(e),this.watchStream.unwatch(e)},e.prototype.startWatchStream=function(){y(this.shouldStartWatchStream(),"startWriteStream() called when shouldStartWatchStream() is false."),this.watchChangeAggregator=new Ot(this),this.watchStream.start({onOpen:this.onWatchStreamOpen.bind(this),onClose:this.onWatchStreamClose.bind(this),onWatchChange:this.onWatchStreamChange.bind(this)}),this.onlineStateTracker.handleWatchStreamStart()},e.prototype.shouldStartWatchStream=function(){return this.isNetworkEnabled()&&!this.watchStream.isStarted()&&!S(this.listenTargets)},e.prototype.cleanUpWatchStreamState=function(){this.watchChangeAggregator=null},e.prototype.onWatchStreamOpen=function(){return s.__awaiter(this,void 0,void 0,function(){var e=this;return s.__generator(this,function(t){return T(this.listenTargets,function(t,n){e.sendWatchRequest(n)}),[2]})})},e.prototype.onWatchStreamClose=function(e){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(t){return y(this.isNetworkEnabled(),"onWatchStreamClose() should only be called when the network is enabled"),this.cleanUpWatchStreamState(),this.shouldStartWatchStream()?(e&&this.onlineStateTracker.handleWatchStreamFailure(e),this.startWatchStream()):this.onlineStateTracker.set(nn.Unknown),[2]})})},e.prototype.onWatchStreamChange=function(e,t){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(n){switch(n.label){case 0:return this.onlineStateTracker.set(nn.Online),e instanceof At&&e.state===xt.Removed&&e.cause?[2,this.handleTargetError(e)]:(e instanceof kt?this.watchChangeAggregator.handleDocumentChange(e):e instanceof St?this.watchChangeAggregator.handleExistenceFilter(e):(y(e instanceof At,"Expected watchChange to be an instance of WatchTargetChange"),this.watchChangeAggregator.handleTargetChange(e)),!t.isEqual(Qe.MIN)&&t.compareTo(this.localStore.getLastRemoteSnapshotVersion())>=0?[4,this.raiseWatchSnapshot(t)]:[3,2]);case 1:n.sent(),n.label=2;case 2:return[2]}})})},e.prototype.raiseWatchSnapshot=function(e){var t=this;y(!e.isEqual(Qe.MIN),"Can't raise event for unknown SnapshotVersion");var n=this.watchChangeAggregator.createRemoteEvent(e);return T(n.targetChanges,function(n,r){if(r.resumeToken.length>0){var i=t.listenTargets[n];i&&(t.listenTargets[n]=i.update({resumeToken:r.resumeToken,snapshotVersion:e}))}}),n.targetMismatches.forEach(function(e){var n=t.listenTargets[e];if(n){n.resumeToken=b(),t.sendUnwatchRequest(e);var r=new Xe(n.query,e,Ve.ExistenceFilterMismatch);t.sendWatchRequest(r)}}),this.syncEngine.applyRemoteEvent(n)},e.prototype.handleTargetError=function(e){var t=this;y(!!e.cause,"Handling target error without a cause");var n=e.cause,r=Promise.resolve();return e.targetIds.forEach(function(e){r=r.then(function(){return s.__awaiter(t,void 0,void 0,function(){return s.__generator(this,function(t){return x(this.listenTargets,e)?(delete this.listenTargets[e],this.watchChangeAggregator.removeTarget(e),[2,this.syncEngine.rejectListen(e,n)]):[2]})})})}),r},e.prototype.cleanUpWriteStreamState=function(){this.lastBatchSeen=Cn,p("RemoteStore","Stopping write stream with "+this.pendingWrites.length+" pending writes"),this.pendingWrites=[]},e.prototype.fillWritePipeline=function(){return s.__awaiter(this,void 0,void 0,function(){var e=this;return s.__generator(this,function(t){return this.canWriteMutations()?[2,this.localStore.nextMutationBatch(this.lastBatchSeen).then(function(t){if(null!==t)return e.commit(t),e.fillWritePipeline();0===e.pendingWrites.length&&e.writeStream.markIdle()})]:[2]})})},e.prototype.canWriteMutations=function(){return this.isNetworkEnabled()&&this.pendingWrites.length<10},e.prototype.outstandingWrites=function(){return this.pendingWrites.length},e.prototype.commit=function(e){y(this.canWriteMutations(),"commit called when batches can't be written"),this.lastBatchSeen=e.batchId,this.pendingWrites.push(e),this.shouldStartWriteStream()?this.startWriteStream():this.isNetworkEnabled()&&this.writeStream.handshakeComplete&&this.writeStream.writeMutations(e.mutations)},e.prototype.shouldStartWriteStream=function(){return this.isNetworkEnabled()&&!this.writeStream.isStarted()&&this.pendingWrites.length>0},e.prototype.startWriteStream=function(){y(this.shouldStartWriteStream(),"startWriteStream() called when shouldStartWriteStream() is false."),this.writeStream.start({onOpen:this.onWriteStreamOpen.bind(this),onClose:this.onWriteStreamClose.bind(this),onHandshakeComplete:this.onWriteHandshakeComplete.bind(this),onMutationResult:this.onMutationResult.bind(this)})},e.prototype.onWriteStreamOpen=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return this.writeStream.writeHandshake(),[2]})})},e.prototype.onWriteHandshakeComplete=function(){var e=this;return this.localStore.setLastStreamToken(this.writeStream.lastStreamToken).then(function(){for(var t=0,n=e.pendingWrites;t<n.length;t++){var r=n[t];e.writeStream.writeMutations(r.mutations)}})},e.prototype.onMutationResult=function(e,t){var n=this;y(this.pendingWrites.length>0,"Got result for empty pending writes");var r=this.pendingWrites.shift(),i=kn.from(r,e,t,this.writeStream.lastStreamToken);return this.syncEngine.applySuccessfulWrite(i).then(function(){return n.fillWritePipeline()})},e.prototype.onWriteStreamClose=function(e){return s.__awaiter(this,void 0,void 0,function(){var t=this;return s.__generator(this,function(n){return y(this.isNetworkEnabled(),"onWriteStreamClose() should only be called when the network is enabled"),e&&this.pendingWrites.length>0?(y(!!e,"We have pending writes, but the write stream closed without an error"),void 0,[2,(this.writeStream.handshakeComplete?this.handleWriteError(e):this.handleHandshakeError(e)).then(function(){t.shouldStartWriteStream()&&t.startWriteStream()})]):[2]})})},e.prototype.handleHandshakeError=function(e){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(t){return ut(e.code)||e.code===_.ABORTED?(p("RemoteStore","RemoteStore error before completed handshake; resetting stream token: ",this.writeStream.lastStreamToken),this.writeStream.lastStreamToken=b(),[2,this.localStore.setLastStreamToken(b())]):[2]})})},e.prototype.handleWriteError=function(e){return s.__awaiter(this,void 0,void 0,function(){var t,n=this;return s.__generator(this,function(r){return ut(e.code)?(t=this.pendingWrites.shift(),this.writeStream.inhibitBackoff(),[2,this.syncEngine.rejectFailedWrite(t.batchId,e).then(function(){return n.fillWritePipeline()})]):[2]})})},e.prototype.createTransaction=function(){return new Lr(this.datastore)},e.prototype.handleUserChange=function(e){if(p("RemoteStore","RemoteStore changing users: uid=",e.uid),this.isNetworkEnabled())return this.disableNetworkInternal(),this.onlineStateTracker.set(nn.Unknown),this.enableNetwork()},e}(),Ur=function(){function e(e,t,n,r){this.platform=e,this.databaseInfo=t,this.credentials=n,this.asyncQueue=r}return e.prototype.start=function(e){var t=this,n=new Gn,r=new Gn,i=!1;return this.credentials.setUserChangeListener(function(o){i?t.asyncQueue.enqueue(function(){return t.handleUserChange(o)}):(i=!0,t.initializePersistence(e,r).then(function(){return t.initializeRest(o)}).then(n.resolve,n.reject))}),this.asyncQueue.enqueue(function(){return n.promise}),r.promise},e.prototype.enableNetwork=function(){var e=this;return this.asyncQueue.enqueue(function(){return e.remoteStore.enableNetwork()})},e.prototype.initializePersistence=function(e,t){var n=this;return e?this.startIndexedDbPersistence().then(t.resolve).catch(function(e){return t.reject(e),n.canFallback(e)?(console.warn("Error enabling offline storage. Falling back to storage disabled: "+e),n.startMemoryPersistence()):Promise.reject(e)}):(t.resolve(),this.startMemoryPersistence())},e.prototype.canFallback=function(e){return e instanceof w?e.code===_.FAILED_PRECONDITION||e.code===_.UNIMPLEMENTED:!("undefined"!=typeof DOMException&&e instanceof DOMException)||(22===e.code||20===e.code)},e.prototype.startIndexedDbPersistence=function(){this.garbageCollector=new Cr;var e=vr.buildStoragePrefix(this.databaseInfo),t=new zt(this.databaseInfo.databaseId,{useProto3Json:!0});return this.persistence=new vr(e,t),this.persistence.start()},e.prototype.startMemoryPersistence=function(){return this.garbageCollector=new pn,this.persistence=new Er,this.persistence.start()},e.prototype.initializeRest=function(e){var t=this;return this.platform.loadConnection(this.databaseInfo).then(function(n){t.localStore=new gr(t.persistence,e,t.garbageCollector);var r=t.platform.newSerializer(t.databaseInfo.databaseId),i=new Mr(t.asyncQueue,n,t.credentials,r);return t.remoteStore=new Fr(t.localStore,i,t.asyncQueue,function(e){t.syncEngine.applyOnlineStateChange(e),t.eventMgr.applyOnlineStateChange(e)}),t.syncEngine=new xn(t.localStore,t.remoteStore,e),t.remoteStore.syncEngine=t.syncEngine,t.eventMgr=new ln(t.syncEngine),t.localStore.start()}).then(function(){return t.remoteStore.start()})},e.prototype.handleUserChange=function(e){return this.asyncQueue.verifyOperationInProgress(),p("FirestoreClient","User Changed: "+e.uid),this.syncEngine.handleUserChange(e)},e.prototype.disableNetwork=function(){var e=this;return this.asyncQueue.enqueue(function(){return e.remoteStore.disableNetwork()})},e.prototype.shutdown=function(e){var t=this;return this.asyncQueue.enqueue(function(){return t.credentials.removeUserChangeListener(),t.remoteStore.shutdown()}).then(function(){return t.persistence.shutdown(e&&e.purgePersistenceWithDataLoss)})},e.prototype.listen=function(e,t,n){var r=this,i=new fn(e,t,n);return this.asyncQueue.enqueue(function(){return r.eventMgr.listen(i)}),i},e.prototype.unlisten=function(e){var t=this;this.asyncQueue.enqueue(function(){return t.eventMgr.unlisten(e)})},e.prototype.getDocumentFromLocalCache=function(e){var t=this;return this.asyncQueue.enqueue(function(){return t.localStore.readDocument(e)}).then(function(e){if(e instanceof le)return e;throw new w(_.UNAVAILABLE,"Failed to get document from cache. (However, this document may exist on the server. Run again without setting 'source' in the GetOptions to attempt to retrieve the document from the server.)")})},e.prototype.getDocumentsFromLocalCache=function(e){var t=this;return this.asyncQueue.enqueue(function(){return t.localStore.executeQuery(e)}).then(function(t){var n=gt(),r=new wn(e,n),i=r.computeDocChanges(t);return r.applyChanges(i).snapshot})},e.prototype.write=function(e){var t=this,n=new Gn;return this.asyncQueue.enqueue(function(){return t.syncEngine.write(e,n)}),n.promise},e.prototype.databaseId=function(){return this.databaseInfo.databaseId},e.prototype.transaction=function(e){var t=this;return this.asyncQueue.enqueue(function(){return s.__awaiter(t,void 0,void 0,function(){return s.__generator(this,function(e){return[2]})})}).then(function(){return t.syncEngine.runTransaction(e)})},e}(),Br=function(){function e(e){this.observer=e,this.muted=!1}return e.prototype.next=function(e){this.scheduleEvent(this.observer.next,e)},e.prototype.error=function(e){this.scheduleEvent(this.observer.error,e)},e.prototype.mute=function(){this.muted=!0},e.prototype.scheduleEvent=function(e,t){var n=this;this.muted||setTimeout(function(){n.muted||e(t)},0)},e}(),qr=function(){function e(e){this.uid=e}return e.prototype.isAuthenticated=function(){return null!=this.uid},e.prototype.toKey=function(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"},e.prototype.isEqual=function(e){return e.uid===this.uid},e.UNAUTHENTICATED=new e(null),e.GOOGLE_CREDENTIALS=new e("google-credentials-uid"),e.FIRST_PARTY=new e("first-party-uid"),e}(),Vr=function(){return function(e,t){this.user=t,this.type="OAuth",this.authHeaders={Authorization:"Bearer "+e}}}(),Wr=function(){function e(){this.userListener=null}return e.prototype.getToken=function(e){return Promise.resolve(null)},e.prototype.setUserChangeListener=function(e){y(!this.userListener,"Can only call setUserChangeListener() once."),this.userListener=e,e(qr.UNAUTHENTICATED)},e.prototype.removeUserChangeListener=function(){y(null!==this.userListener,"removeUserChangeListener() when no listener registered"),this.userListener=null},e}(),zr=function(){function e(e){var t=this;this.app=e,this.tokenListener=null,this.userCounter=0,this.userListener=null,this.tokenListener=function(){var e=t.getUser();t.currentUser&&e.isEqual(t.currentUser)||(t.currentUser=e,t.userCounter++,t.userListener&&t.userListener(t.currentUser))},this.userCounter=0,this.app.INTERNAL.addAuthTokenListener(this.tokenListener)}return e.prototype.getToken=function(e){var t=this;y(null!=this.tokenListener,"getToken cannot be called after listener removed.");var n=this.userCounter;return this.app.INTERNAL.getToken(e).then(function(e){if(t.userCounter!==n)throw new w(_.ABORTED,"getToken aborted due to uid change.");return e?(y("string"==typeof e.accessToken,"Invalid tokenData returned from getToken():"+e),new Vr(e.accessToken,t.currentUser)):null})},e.prototype.setUserChangeListener=function(e){y(!this.userListener,"Can only call setUserChangeListener() once."),this.userListener=e,this.currentUser&&e(this.currentUser)},e.prototype.removeUserChangeListener=function(){y(null!=this.tokenListener,"removeUserChangeListener() called twice"),y(null!==this.userListener,"removeUserChangeListener() called when no listener registered"),this.app.INTERNAL.removeAuthTokenListener(this.tokenListener),this.tokenListener=null,this.userListener=null},e.prototype.getUser=function(){"function"!=typeof this.app.INTERNAL.getUid&&m("This version of the Firestore SDK requires at least version 3.7.0 of firebase.js.");var e=this.app.INTERNAL.getUid();return y(null===e||"string"==typeof e,"Received invalid UID: "+e),new qr(e)},e}(),Hr=function(){function e(e,t){this.gapi=e,this.sessionIndex=t,this.type="FirstParty",this.user=qr.FIRST_PARTY,y(this.gapi&&this.gapi.auth&&this.gapi.auth.getAuthHeaderValueForFirstParty,"unexpected gapi interface")}return Object.defineProperty(e.prototype,"authHeaders",{get:function(){return{Authorization:this.gapi.auth.getAuthHeaderValueForFirstParty([]),"X-Goog-AuthUser":this.sessionIndex}},enumerable:!0,configurable:!0}),e}(),Kr=function(){function e(e,t){this.gapi=e,this.sessionIndex=t,y(this.gapi&&this.gapi.auth&&this.gapi.auth.getAuthHeaderValueForFirstParty,"unexpected gapi interface")}return e.prototype.getToken=function(e){return Promise.resolve(new Hr(this.gapi,this.sessionIndex))},e.prototype.setUserChangeListener=function(e){e(qr.FIRST_PARTY)},e.prototype.removeUserChangeListener=function(){},e}();function Gr(e){return function(e,t){if("object"!=typeof e||null===e)return!1;for(var n=e,r=0,i=t;r<i.length;r++){var o=i[r];if(o in n&&"function"==typeof n[o])return!0}return!1}(e,["next","error","complete"])}var Qr,Yr=function(){function e(e){this.methodName=e}return e.delete=function(){return Xr.instance},e.serverTimestamp=function(){return Jr.instance},e._arrayUnion=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N("FieldValue.arrayUnion",arguments,1),new $r(e)},e._arrayRemove=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return N("FieldValue.arrayRemove",arguments,1),new Zr(e)},e.prototype.isEqual=function(e){return this===e},e}(),Xr=function(e){function t(){return e.call(this,"FieldValue.delete")||this}return s.__extends(t,e),t.instance=new t,t}(Yr),Jr=function(e){function t(){return e.call(this,"FieldValue.serverTimestamp")||this}return s.__extends(t,e),t.instance=new t,t}(Yr),$r=function(e){function t(t){var n=e.call(this,"FieldValue.arrayUnion")||this;return n._elements=t,n}return s.__extends(t,e),t}(Yr),Zr=function(e){function t(t){var n=e.call(this,"FieldValue.arrayRemove")||this;return n._elements=t,n}return s.__extends(t,e),t}(Yr),ei=E(Yr,"Use FieldValue.<field>() instead."),ti=/^__.*__$/,ni=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[];return null!==this.fieldMask?n.push(new it(e,this.data,this.fieldMask,t)):n.push(new rt(e,this.data,t)),this.fieldTransforms.length>0&&n.push(new ot(e,this.fieldTransforms)),n},e}(),ri=function(){function e(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}return e.prototype.toMutations=function(e,t){var n=[new it(e,this.data,this.fieldMask,t)];return this.fieldTransforms.length>0&&n.push(new ot(e,this.fieldTransforms)),n},e}();function ii(e){switch(e){case Qr.Set:case Qr.MergeSet:case Qr.Update:return!0;case Qr.Argument:return!1;default:throw m("Unexpected case for UserDataSource: "+e)}}!function(e){e[e.Set=0]="Set",e[e.Update=1]="Update",e[e.MergeSet=2]="MergeSet",e[e.Argument=3]="Argument"}(Qr||(Qr={}));var oi=function(){function e(e,t,n,r,i,o){this.dataSource=e,this.methodName=t,this.path=n,this.arrayElement=r,void 0===i&&this.validatePath(),this.arrayElement=void 0!==r&&r,this.fieldTransforms=i||[],this.fieldMask=o||[]}return e.prototype.childContextForField=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return r.validatePathSegment(t),r},e.prototype.childContextForFieldPath=function(t){var n=null==this.path?null:this.path.child(t),r=new e(this.dataSource,this.methodName,n,!1,this.fieldTransforms,this.fieldMask);return r.validatePath(),r},e.prototype.childContextForArray=function(t){return new e(this.dataSource,this.methodName,null,!0,this.fieldTransforms,this.fieldMask)},e.prototype.createError=function(e){var t=null===this.path||this.path.isEmpty()?"":" (found in field "+this.path.toString()+")";return new w(_.INVALID_ARGUMENT,"Function "+this.methodName+"() called with invalid data. "+e+t)},e.prototype.contains=function(e){return void 0!==this.fieldMask.find(function(t){return e.isPrefixOf(t)})||void 0!==this.fieldTransforms.find(function(t){return e.isPrefixOf(t.field)})},e.prototype.validatePath=function(){if(null!==this.path)for(var e=0;e<this.path.length;e++)this.validatePathSegment(this.path.get(e))},e.prototype.validatePathSegment=function(e){if(ii(this.dataSource)&&ti.test(e))throw this.createError("Document fields cannot begin and end with __")},e}(),ai=function(){return function(e,t){this.databaseId=e,this.key=t}}(),si=function(){function e(e){this.preConverter=e}return e.prototype.parseSetData=function(e,t){var n=new oi(Qr.Set,e,ue.EMPTY_PATH);ci("Data must be an object, but it was:",n,t);var r=this.parseData(t,n);return new ni(r,null,n.fieldTransforms)},e.prototype.parseMergeData=function(e,t,n){var r=new oi(Qr.MergeSet,e,ue.EMPTY_PATH);ci("Data must be an object, but it was:",r,t);var i,o,a=this.parseData(t,r);if(n){for(var s=[],u=0,c=n;u<c.length;u++){var l=c[u],f=void 0;if(l instanceof rn?f=l:"string"==typeof l?f=fi(e,l):m("Expected stringOrFieldPath to be a string or a FieldPath"),!r.contains(f))throw new w(_.INVALID_ARGUMENT,"Field '"+f+"' is specified in your field mask but missing from your input data.");s.push(f)}i=new Je(s),o=r.fieldTransforms.filter(function(e){return i.covers(e.field)})}else i=new Je(r.fieldMask),o=r.fieldTransforms;return new ni(a,i,o)},e.prototype.parseUpdateData=function(e,t){var n=this,r=new oi(Qr.Update,e,ue.EMPTY_PATH);ci("Data must be an object, but it was:",r,t);var i=[],o=Oe.EMPTY;k(t,function(t,a){var s=fi(e,t),u=r.childContextForFieldPath(s);if((a=n.runPreConverter(a,u))instanceof Xr)i.push(s);else{var c=n.parseData(a,u);null!=c&&(i.push(s),o=o.set(s,c))}});var a=new Je(i);return new ri(o,a,r.fieldTransforms)},e.prototype.parseUpdateVarargs=function(e,t,n,r){var i=new oi(Qr.Update,e,ue.EMPTY_PATH),o=[li(e,t)],a=[n];if(r.length%2!=0)throw new w(_.INVALID_ARGUMENT,"Function "+e+"() needs to be called with an even number of arguments that alternate between field names and values.");for(var s=0;s<r.length;s+=2)o.push(li(e,r[s])),a.push(r[s+1]);var u=[],c=Oe.EMPTY;for(s=0;s<o.length;++s){var l=o[s],f=i.childContextForFieldPath(l),h=this.runPreConverter(a[s],f);if(h instanceof Xr)u.push(l);else{var p=this.parseData(h,f);null!=p&&(u.push(l),c=c.set(l,p))}}var d=new Je(u);return new ri(c,d,i.fieldTransforms)},e.prototype.parseQueryValue=function(e,t){var n=new oi(Qr.Argument,e,ue.EMPTY_PATH),r=this.parseData(t,n);return y(null!=r,"Parsed data should not be null."),y(0===n.fieldTransforms.length,"Field transforms should have been disallowed."),r},e.prototype.runPreConverter=function(e,t){try{return this.preConverter(e)}catch(e){var n=hi(e);throw t.createError(n)}},e.prototype.parseData=function(e,t){if(ui(e=this.runPreConverter(e,t)))return ci("Unsupported field value:",t,e),this.parseObject(e,t);if(e instanceof Yr)return this.parseSentinelFieldValue(e,t),null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.arrayElement)throw t.createError("Nested arrays are not supported");return this.parseArray(e,t)}return this.parseScalarValue(e,t)},e.prototype.parseObject=function(e,t){var n=this,r=new he(K);return k(e,function(e,i){var o=n.parseData(i,t.childContextForField(e));null!=o&&(r=r.insert(e,o))}),new Oe(r)},e.prototype.parseArray=function(e,t){for(var n=[],r=0,i=0,o=e;i<o.length;i++){var a=o[i],s=this.parseData(a,t.childContextForArray(r));null==s&&(s=ge.INSTANCE),n.push(s),r++}return new Ie(n)},e.prototype.parseSentinelFieldValue=function(e,t){if(!ii(t.dataSource))throw t.createError(e.methodName+"() can only be used with update() and set()");if(null===t.path)throw t.createError(e.methodName+"() is not currently supported inside arrays");if(e instanceof Xr){if(t.dataSource!==Qr.MergeSet)throw t.dataSource===Qr.Update?(y(t.path.length>0,"FieldValue.delete() at the top level should have already been handled."),t.createError("FieldValue.delete() can only appear at the top level of your update data")):t.createError("FieldValue.delete() cannot be used with set() unless you pass {merge:true}");t.fieldMask.push(t.path)}else if(e instanceof Jr)t.fieldTransforms.push(new $e(t.path,Rt.instance));else if(e instanceof $r){var n=this.parseArrayTransformElements(e.methodName,e._elements),r=new Dt(n);t.fieldTransforms.push(new $e(t.path,r))}else if(e instanceof Zr){n=this.parseArrayTransformElements(e.methodName,e._elements);var i=new Mt(n);t.fieldTransforms.push(new $e(t.path,i))}else m("Unknown FieldValue type: "+e)},e.prototype.parseScalarValue=function(e,t){if(null===e)return ge.INSTANCE;if("number"==typeof e)return function(e){return Me(e)&&e<=De&&e>=Re}(e)?new Ee(e):new xe(e);if("boolean"==typeof e)return be.of(e);if("string"==typeof e)return new Ce(e);if(e instanceof Date)return new Te(te.fromDate(e));if(e instanceof te)return new Te(new te(e.seconds,1e3*Math.floor(e.nanoseconds/1e3)));if(e instanceof ee)return new Ne(e);if(e instanceof $)return new Se(e);if(e instanceof ai)return new Ae(e.databaseId,e.key);throw t.createError("Unsupported field value: "+U(e))},e.prototype.parseArrayTransformElements=function(e,t){var n=this;return t.map(function(t,r){var i=new oi(Qr.Argument,e,ue.EMPTY_PATH);return n.parseData(t,i.childContextForArray(r))})},e}();function ui(e){return!("object"!=typeof e||null===e||e instanceof Array||e instanceof Date||e instanceof te||e instanceof ee||e instanceof $||e instanceof ai||e instanceof Yr)}function ci(e,t,n){if(!ui(n)||!F(n)){var r=U(n);throw"an object"===r?t.createError(e+" a custom object"):t.createError(e+" "+r)}}function li(e,t){if(t instanceof rn)return t._internalPath;if("string"==typeof t)return fi(e,t);throw new w(_.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. Field path arguments must be of type string or FieldPath.")}function fi(e,t){try{return function(e){if(e.search(on)>=0)throw new w(_.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not contain '~', '*', '/', '[', or ']'");try{return new(rn.bind.apply(rn,[void 0].concat(e.split("."))))}catch(t){throw new w(_.INVALID_ARGUMENT,"Invalid field path ("+e+"). Paths must not be empty, begin with '.', end with '.', or contain '..'")}}(t)._internalPath}catch(t){var n=hi(t);throw new w(_.INVALID_ARGUMENT,"Function "+e+"() called with invalid data. "+n)}}function hi(e){return e instanceof Error?e.message:e.toString()}var pi="firestore.googleapis.com",di=!0,vi=!1,mi=function(){function e(e){if(void 0===e.host){if(void 0!==e.ssl)throw new w(_.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=pi,this.ssl=di}else R("settings","string","host",e.host),this.host=e.host,D("settings","boolean","ssl",e.ssl),this.ssl=C(e.ssl,di);q("settings",e,["host","ssl","credentials","timestampsInSnapshots"]),D("settings","object","credentials",e.credentials),this.credentials=e.credentials,D("settings","boolean","timestampsInSnapshots",e.timestampsInSnapshots),this.timestampsInSnapshots=C(e.timestampsInSnapshots,vi)}return e.prototype.isEqual=function(e){return this.host===e.host&&this.ssl===e.ssl&&this.timestampsInSnapshots===e.timestampsInSnapshots&&this.credentials===e.credentials},e}(),yi=function(){return function(){}}(),gi=function(){function e(t){var n=this;this._queue=new Sr,this.INTERNAL={delete:function(e){return s.__awaiter(n,void 0,void 0,function(){return s.__generator(this,function(t){return this._firestoreClient?[2,this._firestoreClient.shutdown(e)]:[2]})})}};var r=new yi;if("object"==typeof t.options){var i=t;r.firebaseApp=i,r.databaseId=e.databaseIdFromApp(i),r.persistenceKey=r.firebaseApp.name,r.credentials=new zr(i)}else{var o=t;if(!o.projectId)throw new w(_.INVALID_ARGUMENT,"Must provide projectId");r.databaseId=new ie(o.projectId,o.database),r.persistenceKey="[DEFAULT]",r.credentials=new Wr}r.settings=new mi({}),this._config=r,this._databaseId=r.databaseId}return e.prototype.settings=function(e){if(A("Firestore.settings",arguments,1),I("Firestore.settings","object",1,e),x(e,"persistence"))throw new w(_.INVALID_ARGUMENT,'"persistence" is now specified with a separate call to firestore.enablePersistence().');var t=new mi(e);if(this._firestoreClient&&!this._config.settings.isEqual(t))throw new w(_.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only call settings() before calling any other methods on a Firestore object.");this._config.settings=t,void 0!==t.credentials&&(this._config.credentials=function(e){if(!e)return new Wr;switch(e.type){case"gapi":return new Kr(e.client,e.sessionIndex||"0");case"provider":return e.client;default:throw new w(_.INVALID_ARGUMENT,"makeCredentialsProvider failed due to invalid credential type")}}(t.credentials))},e.prototype.enableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.enableNetwork()},e.prototype.disableNetwork=function(){return this.ensureClientConfigured(),this._firestoreClient.disableNetwork()},e.prototype.enablePersistence=function(){if(this._firestoreClient)throw new w(_.FAILED_PRECONDITION,"Firestore has already been started and persistence can no longer be enabled. You can only call enablePersistence() before calling any other methods on a Firestore object.");return this.configureClient(!0)},e.prototype.ensureClientConfigured=function(){return this._firestoreClient||this.configureClient(!1),this._firestoreClient},e.prototype.configureClient=function(e){var t=this;y(!!this._config.settings.host,"FirestoreSettings.host cannot be falsey"),this._config.settings.timestampsInSnapshots||d("\nThe behavior for Date objects stored in Firestore is going to change\nAND YOUR APP MAY BREAK.\nTo hide this warning and ensure your app does not break, you need to add the\nfollowing code to your app before calling any other Cloud Firestore methods:\n\n const firestore = firebase.firestore();\n const settings = {/* your settings... */ timestampsInSnapshots: true};\n firestore.settings(settings);\n\nWith this change, timestamps stored in Cloud Firestore will be read back as\nFirebase Timestamp objects instead of as system Date objects. So you will also\nneed to update code expecting a Date to instead expect a Timestamp. For example:\n\n // Old:\n const date = snapshot.get('created_at');\n // New:\n const timestamp = snapshot.get('created_at');\n const date = timestamp.toDate();\n\nPlease audit all existing usages of Date when you enable the new behavior. In a\nfuture release, the behavior will change to the new behavior, so if you do not\nfollow these steps, YOUR APP MAY BREAK."),y(!this._firestoreClient,"configureClient() called multiple times");var n=new ne(this._config.databaseId,this._config.persistenceKey,this._config.settings.host,this._config.settings.ssl);return this._dataConverter=new si(function(e){if(e instanceof wi){var n=t._config.databaseId,r=e.firestore._config.databaseId;if(!r.isEqual(n))throw new w(_.INVALID_ARGUMENT,"Document reference is for database "+r.projectId+"/"+r.database+" but should be for database "+n.projectId+"/"+n.database);return new ai(t._config.databaseId,e._key)}return e}),this._firestoreClient=new Ur(g.getPlatform(),n,this._config.credentials,this._queue),this._firestoreClient.start(e)},e.databaseIdFromApp=function(e){var t=e.options;if(!x(t,"projectId")){if(x(t,"firestoreId"))throw new w(_.INVALID_ARGUMENT,'"firestoreId" is now specified as "projectId" in firebase.initializeApp.');throw new w(_.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.')}if(x(t,"firestoreOptions"))throw new w(_.INVALID_ARGUMENT,'"firestoreOptions" values are now specified with Firestore.settings()');var n=t.projectId;if(!n||"string"!=typeof n)throw new w(_.INVALID_ARGUMENT,"projectId must be a string in FirebaseApp.options");return new ie(n)},Object.defineProperty(e.prototype,"app",{get:function(){if(!this._config.firebaseApp)throw new w(_.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._config.firebaseApp},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(A("Firestore.collection",arguments,1),I("Firestore.collection","string",1,e),!e)throw new w(_.INVALID_ARGUMENT,"Must provide a non-empty collection path to collection()");return this.ensureClientConfigured(),new Si(ae.fromString(e),this)},e.prototype.doc=function(e){if(A("Firestore.doc",arguments,1),I("Firestore.doc","string",1,e),!e)throw new w(_.INVALID_ARGUMENT,"Must provide a non-empty document path to doc()");return this.ensureClientConfigured(),wi.forPath(ae.fromString(e),this)},e.prototype.runTransaction=function(e){var t=this;return A("Firestore.runTransaction",arguments,1),I("Firestore.runTransaction","function",1,e),this.ensureClientConfigured().transaction(function(n){return e(new bi(t,n))})},e.prototype.batch=function(){return this.ensureClientConfigured(),new _i(this)},Object.defineProperty(e,"logLevel",{get:function(){switch(f()){case i.DEBUG:return"debug";case i.ERROR:return"error";case i.SILENT:return"silent";default:return m("Unknown log level: "+f())}},enumerable:!0,configurable:!0}),e.setLogLevel=function(e){switch(A("Firestore.setLogLevel",arguments,1),I("Firestore.setLogLevel","string",1,e),e){case"debug":h(i.DEBUG);break;case"error":h(i.ERROR);break;case"silent":h(i.SILENT);break;default:throw new w(_.INVALID_ARGUMENT,"Invalid log level: "+e)}},e.prototype._areTimestampsInSnapshotsEnabled=function(){return this._config.settings.timestampsInSnapshots},e}(),bi=function(){function e(e,t){this._firestore=e,this._transaction=t}return e.prototype.get=function(e){var t=this;A("Transaction.get",arguments,1);var n=Oi("Transaction.get",e,this._firestore);return this._transaction.lookup([n._key]).then(function(e){if(!e||1!==e.length)return m("Mismatch in docs returned from document lookup.");var r=e[0];return new xi(t._firestore,n._key,r instanceof fe?null:r,!1)})},e.prototype.set=function(e,t,n){O("Transaction.set",arguments,2,3);var r=Oi("Transaction.set",e,this._firestore),i=(n=Ai("Transaction.set",n)).merge||n.mergeFields?this._firestore._dataConverter.parseMergeData("Transaction.set",t,n.mergeFields):this._firestore._dataConverter.parseSetData("Transaction.set",t);return this._transaction.set(r._key,i),this},e.prototype.update=function(e,t,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return"string"==typeof t||t instanceof rn?(N("Transaction.update",arguments,3),r=Oi("Transaction.update",e,this._firestore),i=this._firestore._dataConverter.parseUpdateVarargs("Transaction.update",t,n,o)):(A("Transaction.update",arguments,2),r=Oi("Transaction.update",e,this._firestore),i=this._firestore._dataConverter.parseUpdateData("Transaction.update",t)),this._transaction.update(r._key,i),this},e.prototype.delete=function(e){A("Transaction.delete",arguments,1);var t=Oi("Transaction.delete",e,this._firestore);return this._transaction.delete(t._key),this},e}(),_i=function(){function e(e){this._firestore=e,this._mutations=[],this._committed=!1}return e.prototype.set=function(e,t,n){O("WriteBatch.set",arguments,2,3),this.verifyNotCommitted();var r=Oi("WriteBatch.set",e,this._firestore),i=(n=Ai("WriteBatch.set",n)).merge||n.mergeFields?this._firestore._dataConverter.parseMergeData("WriteBatch.set",t,n.mergeFields):this._firestore._dataConverter.parseSetData("WriteBatch.set",t);return this._mutations=this._mutations.concat(i.toMutations(r._key,tt.NONE)),this},e.prototype.update=function(e,t,n){for(var r,i,o=[],a=3;a<arguments.length;a++)o[a-3]=arguments[a];return this.verifyNotCommitted(),"string"==typeof t||t instanceof rn?(N("WriteBatch.update",arguments,3),r=Oi("WriteBatch.update",e,this._firestore),i=this._firestore._dataConverter.parseUpdateVarargs("WriteBatch.update",t,n,o)):(A("WriteBatch.update",arguments,2),r=Oi("WriteBatch.update",e,this._firestore),i=this._firestore._dataConverter.parseUpdateData("WriteBatch.update",t)),this._mutations=this._mutations.concat(i.toMutations(r._key,tt.exists(!0))),this},e.prototype.delete=function(e){A("WriteBatch.delete",arguments,1),this.verifyNotCommitted();var t=Oi("WriteBatch.delete",e,this._firestore);return this._mutations=this._mutations.concat(new at(t._key,tt.NONE)),this},e.prototype.commit=function(){return s.__awaiter(this,void 0,void 0,function(){return s.__generator(this,function(e){return this.verifyNotCommitted(),this._committed=!0,this._mutations.length>0?[2,this._firestore.ensureClientConfigured().write(this._mutations)]:[2]})})},e.prototype.verifyNotCommitted=function(){if(this._committed)throw new w(_.FAILED_PRECONDITION,"A write batch can no longer be used after commit() has been called.")},e}(),wi=function(){function e(e,t){this._key=e,this.firestore=t,this._firestoreClient=this.firestore.ensureClientConfigured()}return e.forPath=function(t,n){if(t.length%2!=0)throw new w(_.INVALID_ARGUMENT,"Invalid document reference. Document references must have an even number of segments, but "+t.canonicalString()+" has "+t.length);return new e(new ce(t),n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return new Si(this._key.path.popLast(),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._key.path.canonicalString()},enumerable:!0,configurable:!0}),e.prototype.collection=function(e){if(A("DocumentReference.collection",arguments,1),I("DocumentReference.collection","string",1,e),!e)throw new w(_.INVALID_ARGUMENT,"Must provide a non-empty collection name to collection()");var t=ae.fromString(e);return new Si(this._key.path.child(t),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw V("isEqual","DocumentReference",1,t);return this.firestore===t.firestore&&this._key.isEqual(t._key)},e.prototype.set=function(e,t){O("DocumentReference.set",arguments,1,2);var n=(t=Ai("DocumentReference.set",t)).merge||t.mergeFields?this.firestore._dataConverter.parseMergeData("DocumentReference.set",e,t.mergeFields):this.firestore._dataConverter.parseSetData("DocumentReference.set",e);return this._firestoreClient.write(n.toMutations(this._key,tt.NONE))},e.prototype.update=function(e,t){for(var n,r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return"string"==typeof e||e instanceof rn?(N("DocumentReference.update",arguments,2),n=this.firestore._dataConverter.parseUpdateVarargs("DocumentReference.update",e,t,r)):(A("DocumentReference.update",arguments,1),n=this.firestore._dataConverter.parseUpdateData("DocumentReference.update",e)),this._firestoreClient.write(n.toMutations(this._key,tt.exists(!0)))},e.prototype.delete=function(){return A("DocumentReference.delete",arguments,0),this._firestoreClient.write([new at(this._key,tt.NONE)])},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];O("DocumentReference.onSnapshot",arguments,1,4);var n,r={includeMetadataChanges:!1},i=0;"object"!=typeof e[i]||Gr(e[i])||(q("DocumentReference.onSnapshot",r=e[i],["includeMetadataChanges"]),D("DocumentReference.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++);var o={includeMetadataChanges:r.includeMetadataChanges};return Gr(e[i])?n=e[i]:(I("DocumentReference.onSnapshot","function",i,e[i]),P("DocumentReference.onSnapshot","function",i+1,e[i+1]),P("DocumentReference.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.onSnapshotInternal(o,n)},e.prototype.onSnapshotInternal=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Br({next:function(e){if(t.next){y(e.docs.size<=1,"Too many documents returned on a document query");var r=e.docs.get(n._key);t.next(new xi(n.firestore,n._key,r,e.fromCache))}},error:r}),o=this._firestoreClient.listen(je.atPath(this._key.path),i,e);return function(){i.mute(),n._firestoreClient.unlisten(o)}},e.prototype.get=function(e){var t=this;return q("DocumentReference.get",e,["source"]),e&&L("DocumentReference.get",0,"source",e.source,["default","server","cache"]),new Promise(function(n,r){e&&"cache"===e.source?t.firestore.ensureClientConfigured().getDocumentFromLocalCache(t._key).then(function(e){n(new xi(t.firestore,t._key,e,!0))},r):t.getViaSnapshotListener(n,r,e)})},e.prototype.getViaSnapshotListener=function(e,t,n){var r=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(i){r(),!i.exists&&i.metadata.fromCache?t(new w(_.UNAVAILABLE,"Failed to get document because the client is offline.")):i.exists&&i.metadata.fromCache&&n&&"server"===n.source?t(new w(_.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):e(i)},error:t})},e}(),Ei=function(){function e(e,t){this.hasPendingWrites=e,this.fromCache=t}return e.prototype.isEqual=function(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache},e}(),xi=function(){function e(e,t,n,r){this._firestore=e,this._key=t,this._document=n,this._fromCache=r}return e.prototype.data=function(e){return O("DocumentSnapshot.data",arguments,0,1),e=Ni("DocumentSnapshot.data",e),this._document?this.convertObject(this._document.data,me.fromSnapshotOptions(e,this._firestore._areTimestampsInSnapshotsEnabled())):void 0},e.prototype.get=function(e,t){if(O("DocumentSnapshot.get",arguments,1,2),t=Ni("DocumentSnapshot.get",t),this._document){var n=this._document.data.field(li("DocumentSnapshot.get",e));if(void 0!==n)return this.convertValue(n,me.fromSnapshotOptions(t,this._firestore._areTimestampsInSnapshotsEnabled()))}},Object.defineProperty(e.prototype,"id",{get:function(){return this._key.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ref",{get:function(){return new wi(this._key,this._firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"exists",{get:function(){return null!==this._document},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"metadata",{get:function(){return new Ei(null!==this._document&&this._document.hasLocalMutations,this._fromCache)},enumerable:!0,configurable:!0}),e.prototype.isEqual=function(t){if(!(t instanceof e))throw V("isEqual","DocumentSnapshot",1,t);return this._firestore===t._firestore&&this._fromCache===t._fromCache&&this._key.isEqual(t._key)&&(null===this._document?null===t._document:this._document.isEqual(t._document))},e.prototype.convertObject=function(e,t){var n=this,r={};return e.forEach(function(e,i){r[e]=n.convertValue(i,t)}),r},e.prototype.convertValue=function(e,t){if(e instanceof Oe)return this.convertObject(e,t);if(e instanceof Ie)return this.convertArray(e,t);if(e instanceof Ae){var n=e.value(t),r=this._firestore.ensureClientConfigured().databaseId();return e.databaseId.isEqual(r)||d("Document "+this._key.path+" contains a document reference within a different database ("+e.databaseId.projectId+"/"+e.databaseId.database+") which is not supported. It will be treated as a reference in the current database ("+r.projectId+"/"+r.database+") instead."),new wi(n,this._firestore)}return e.value(t)},e.prototype.convertArray=function(e,t){var n=this;return e.internalValue.map(function(e){return n.convertValue(e,t)})},e}(),Ci=function(e){function t(t,n,r,i){return e.call(this,t,n,r,i)||this}return s.__extends(t,e),t.prototype.data=function(t){var n=e.prototype.data.call(this,t);return y("object"==typeof n,"Document in a QueryDocumentSnapshot should exist"),n},t}(xi),Ti=function(){function e(e,t){this._query=e,this.firestore=t}return e.prototype.where=function(t,n,r){var i;A("Query.where",arguments,3),I("Query.where","string",2,n),B("Query.where",3,r);var o=li("Query.where",t),a=Fe.fromString(n);if(o.isKeyField()){if(a===Fe.ARRAY_CONTAINS)throw new w(_.INVALID_ARGUMENT,"Invalid Query. You can't perform array-contains queries on FieldPath.documentId() since document IDs are not arrays.");if("string"==typeof r){if(-1!==r.indexOf("/"))throw new w(_.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a valid document ID if the first parameter is FieldPath.documentId(), but it contains a slash.");if(""===r)throw new w(_.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a valid document ID if the first parameter is FieldPath.documentId(), but it was an empty string.");var s=this._query.path.child(new ae([r]));y(s.length%2==0,"Path should be a document key"),i=new Ae(this.firestore._databaseId,new ce(s))}else{if(!(r instanceof wi))throw new w(_.INVALID_ARGUMENT,"Function Query.where() requires its third parameter to be a string or a DocumentReference if the first parameter is FieldPath.documentId(), but it was: "+U(r)+".");var u=r;i=new Ae(this.firestore._databaseId,u._key)}}else i=this.firestore._dataConverter.parseQueryValue("Query.where",r);var c=function(e,t,n){if(n.isEqual(ge.INSTANCE)){if(t!==Fe.EQUAL)throw new w(_.INVALID_ARGUMENT,"Invalid query. You can only perform equals comparisons on null.");return new Be(e)}if(n.isEqual(xe.NAN)){if(t!==Fe.EQUAL)throw new w(_.INVALID_ARGUMENT,"Invalid query. You can only perform equals comparisons on NaN.");return new qe(e)}return new Ue(e,t,n)}(o,a,i);return this.validateNewFilter(c),new e(this._query.addFilter(c),this.firestore)},e.prototype.orderBy=function(t,n){var r;if(O("Query.orderBy",arguments,1,2),P("Query.orderBy","string",2,n),void 0===n||"asc"===n)r=We.ASCENDING;else{if("desc"!==n)throw new w(_.INVALID_ARGUMENT,"Function Query.orderBy() has unknown direction '"+n+"', expected 'asc' or 'desc'.");r=We.DESCENDING}if(null!==this._query.startAt)throw new w(_.INVALID_ARGUMENT,"Invalid query. You must not call Query.startAt() or Query.startAfter() before calling Query.orderBy().");if(null!==this._query.endAt)throw new w(_.INVALID_ARGUMENT,"Invalid query. You must not call Query.endAt() or Query.endBefore() before calling Query.orderBy().");var i=li("Query.orderBy",t),o=new He(i,r);return this.validateNewOrderBy(o),new e(this._query.addOrderBy(o),this.firestore)},e.prototype.limit=function(t){if(A("Query.limit",arguments,1),I("Query.limit","number",1,t),t<=0)throw new w(_.INVALID_ARGUMENT,"Invalid Query. Query limit ("+t+") is invalid. Limit must be positive.");return new e(this._query.withLimit(t),this.firestore)},e.prototype.startAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];N("Query.startAt",arguments,1);var i=this.boundFromDocOrFields("Query.startAt",t,n,!0);return new e(this._query.withStartAt(i),this.firestore)},e.prototype.startAfter=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];N("Query.startAfter",arguments,1);var i=this.boundFromDocOrFields("Query.startAfter",t,n,!1);return new e(this._query.withStartAt(i),this.firestore)},e.prototype.endBefore=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];N("Query.endBefore",arguments,1);var i=this.boundFromDocOrFields("Query.endBefore",t,n,!0);return new e(this._query.withEndAt(i),this.firestore)},e.prototype.endAt=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];N("Query.endAt",arguments,1);var i=this.boundFromDocOrFields("Query.endAt",t,n,!1);return new e(this._query.withEndAt(i),this.firestore)},e.prototype.isEqual=function(t){if(!(t instanceof e))throw V("isEqual","Query",1,t);return this.firestore===t.firestore&&this._query.isEqual(t._query)},e.prototype.boundFromDocOrFields=function(e,t,n,r){if(B(e,1,t),t instanceof xi){if(n.length>0)throw new w(_.INVALID_ARGUMENT,"Too many arguments provided to "+e+"().");var i=t;if(!i.exists)throw new w(_.NOT_FOUND,"Can't use a DocumentSnapshot that doesn't exist for "+e+"().");return this.boundFromDocument(e,i._document,r)}var o=[t].concat(n);return this.boundFromFields(e,o,r)},e.prototype.boundFromDocument=function(e,t,n){for(var r=[],i=0,o=this._query.orderBy;i<o.length;i++){var a=o[i];if(a.field.isKeyField())r.push(new Ae(this.firestore._databaseId,t.key));else{var s=t.field(a.field);if(void 0===s){var u=a.field.canonicalString();throw new w(_.INVALID_ARGUMENT,"Invalid query. You are trying to start or end a query using a document for which the field '"+u+"' (used as the orderBy) does not exist.")}r.push(s)}}return new ze(r,n)},e.prototype.boundFromFields=function(e,t,n){var r=this._query.explicitOrderBy;if(t.length>r.length)throw new w(_.INVALID_ARGUMENT,"Too many arguments provided to "+e+"(). The number of arguments must be less than or equal to the number of Query.orderBy() clauses");for(var i=[],o=0;o<t.length;o++){var a=t[o];if(r[o].field.isKeyField()){if("string"!=typeof a)throw new w(_.INVALID_ARGUMENT,"Invalid query. Expected a string for document ID in "+e+"(), but got a "+typeof a);if(-1!==a.indexOf("/"))throw new w(_.INVALID_ARGUMENT,"Invalid query. Document ID '"+a+"' contains a slash in "+e+"()");var s=new ce(this._query.path.child(a));i.push(new Ae(this.firestore._databaseId,s))}else{var u=this.firestore._dataConverter.parseQueryValue(e,a);i.push(u)}}return new ze(i,n)},e.prototype.onSnapshot=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];O("Query.onSnapshot",arguments,1,4);var n,r={},i=0;return"object"!=typeof e[i]||Gr(e[i])||(q("Query.onSnapshot",r=e[i],["includeMetadataChanges"]),D("Query.onSnapshot","boolean","includeMetadataChanges",r.includeMetadataChanges),i++),Gr(e[i])?n=e[i]:(I("Query.onSnapshot","function",i,e[i]),P("Query.onSnapshot","function",i+1,e[i+1]),P("Query.onSnapshot","function",i+2,e[i+2]),n={next:e[i],error:e[i+1],complete:e[i+2]}),this.onSnapshotInternal(r,n)},e.prototype.onSnapshotInternal=function(e,t){var n=this,r=function(e){console.error("Uncaught Error in onSnapshot:",e)};t.error&&(r=t.error.bind(t));var i=new Br({next:function(e){t.next&&t.next(new ki(n.firestore,n._query,e))},error:r}),o=this.firestore.ensureClientConfigured(),a=o.listen(this._query,i,e);return function(){i.mute(),o.unlisten(a)}},e.prototype.get=function(e){var t=this;return O("Query.get",arguments,0,1),new Promise(function(n,r){e&&"cache"===e.source?t.firestore.ensureClientConfigured().getDocumentsFromLocalCache(t._query).then(function(e){n(new ki(t.firestore,t._query,e))},r):t.getViaSnapshotListener(n,r,e)})},e.prototype.getViaSnapshotListener=function(e,t,n){var r=this.onSnapshotInternal({includeMetadataChanges:!0,waitForSyncWhenOnline:!0},{next:function(i){r(),i.metadata.fromCache&&n&&"server"===n.source?t(new w(_.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):e(i)},error:t})},e.prototype.validateNewFilter=function(e){if(e instanceof Ue)if(e.isInequality()){var t=this._query.getInequalityFilterField();if(null!==t&&!t.isEqual(e.field))throw new w(_.INVALID_ARGUMENT,"Invalid query. All where filters with an inequality (<, <=, >, or >=) must be on the same field. But you have inequality filters on '"+t.toString()+"' and '"+e.field.toString()+"'");var n=this._query.getFirstOrderByField();null!==n&&this.validateOrderByAndInequalityMatch(e.field,n)}else if(e.op===Fe.ARRAY_CONTAINS&&this._query.hasArrayContainsFilter())throw new w(_.INVALID_ARGUMENT,"Invalid query. Queries only support a single array-contains filter.")},e.prototype.validateNewOrderBy=function(e){if(null===this._query.getFirstOrderByField()){var t=this._query.getInequalityFilterField();null!==t&&this.validateOrderByAndInequalityMatch(t,e.field)}},e.prototype.validateOrderByAndInequalityMatch=function(e,t){if(!t.isEqual(e))throw new w(_.INVALID_ARGUMENT,"Invalid query. You have a where filter with an inequality (<, <=, >, or >=) on field '"+e.toString()+"' and so you must also use '"+e.toString()+"' as your first Query.orderBy(), but your first Query.orderBy() is on field '"+t.toString()+"' instead.")},e}(),ki=function(){function e(e,t,n){this._firestore=e,this._originalQuery=t,this._snapshot=n,this._cachedChanges=null,this._cachedChangesIncludeMetadataChanges=null,this.metadata=new Ei(n.hasPendingWrites,n.fromCache)}return Object.defineProperty(e.prototype,"docs",{get:function(){var e=[];return this.forEach(function(t){return e.push(t)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return this._snapshot.docs.isEmpty()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"size",{get:function(){return this._snapshot.docs.size},enumerable:!0,configurable:!0}),e.prototype.forEach=function(e,t){var n=this;O("QuerySnapshot.forEach",arguments,1,2),I("QuerySnapshot.forEach","function",1,e),this._snapshot.docs.forEach(function(r){e.call(t,n.convertToDocumentImpl(r))})},Object.defineProperty(e.prototype,"query",{get:function(){return new Ti(this._originalQuery,this._firestore)},enumerable:!0,configurable:!0}),e.prototype.docChanges=function(e){q("QuerySnapshot.docChanges",e,["includeMetadataChanges"]),e&&D("QuerySnapshot.docChanges","boolean","includeMetadataChanges",e.includeMetadataChanges);var t=e&&e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new w(_.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t,n){if(n.oldDocs.isEmpty()){var r,i=0;return n.docChanges.map(function(t){var o=new Ci(e,t.doc.key,t.doc,n.fromCache);return y(t.type===bt.Added,"Invalid event type for first snapshot"),y(!r||n.query.docComparator(r,t.doc)<0,"Got added events in wrong order"),r=t.doc,{type:"added",doc:o,oldIndex:-1,newIndex:i++}})}var o=n.oldDocs;return n.docChanges.filter(function(e){return t||e.type!==bt.Metadata}).map(function(t){var r=new Ci(e,t.doc.key,t.doc,n.fromCache),i=-1,a=-1;return t.type!==bt.Added&&(y((i=o.indexOf(t.doc.key))>=0,"Index for document not found"),o=o.delete(t.doc.key)),t.type!==bt.Removed&&(o=o.add(t.doc),a=o.indexOf(t.doc.key)),{type:function(e){switch(e){case bt.Added:return"added";case bt.Modified:case bt.Metadata:return"modified";case bt.Removed:return"removed";default:return m("Unknown change type: "+e)}}(t.type),doc:r,oldIndex:i,newIndex:a}})}(this._firestore,t,this._snapshot),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges},e.prototype.isEqual=function(t){if(!(t instanceof e))throw V("isEqual","QuerySnapshot",1,t);return this._firestore===t._firestore&&this._originalQuery.isEqual(t._originalQuery)&&this._snapshot.isEqual(t._snapshot)},e.prototype.convertToDocumentImpl=function(e){return new Ci(this._firestore,e.key,e,this.metadata.fromCache)},e}();["length","forEach","map"].concat("undefined"!=typeof Symbol?[Symbol.iterator]:[]).forEach(function(e){try{Object.defineProperty(ki.prototype.docChanges,e,{get:function(){return function(){throw new w(_.INVALID_ARGUMENT,'QuerySnapshot.docChanges has been changed from a property into a method, so usages like "querySnapshot.docChanges" should become "querySnapshot.docChanges()"')}()}})}catch(e){}});var Si=function(e){function t(t,n){var r=e.call(this,je.atPath(t),n)||this;if(t.length%2!=1)throw new w(_.INVALID_ARGUMENT,"Invalid collection reference. Collection references must have an odd number of segments, but "+t.canonicalString()+" has "+t.length);return r}return s.__extends(t,e),Object.defineProperty(t.prototype,"id",{get:function(){return this._query.path.lastSegment()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){var e=this._query.path.popLast();return e.isEmpty()?null:new wi(new ce(e),this.firestore)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return this._query.path.canonicalString()},enumerable:!0,configurable:!0}),t.prototype.doc=function(e){if(O("CollectionReference.doc",arguments,0,1),0===arguments.length&&(e=H.newId()),I("CollectionReference.doc","string",1,e),""===e)throw new w(_.INVALID_ARGUMENT,"Document path must be a non-empty string");var t=ae.fromString(e);return wi.forPath(this._query.path.child(t),this.firestore)},t.prototype.add=function(e){A("CollectionReference.add",arguments,1),I("CollectionReference.add","object",1,e);var t=this.doc();return t.set(e).then(function(){return t})},t}(Ti);function Ai(e,t){if(void 0===t)return{merge:!1};if(q(e,t,["merge","mergeFields"]),D(e,"boolean","merge",t.merge),M(e,"mergeFields","a string or a FieldPath",t.mergeFields,function(e){return"string"==typeof e||e instanceof rn}),void 0!==t.mergeFields&&void 0!==t.merge)throw new w(_.INVALID_ARGUMENT,"Invalid options passed to function "+e+'(): You cannot specify both "merge" and "mergeFields".');return t}function Ni(e,t){return void 0===t?{}:(q(e,t,["serverTimestamps"]),L(e,0,"serverTimestamps",t.serverTimestamps,["estimate","previous","none"]),t)}function Oi(e,t,n){if(t instanceof wi){if(t.firestore!==n)throw new w(_.INVALID_ARGUMENT,"Provided document reference is from a different Firestore instance.");return t}throw V(e,"DocumentReference",1,t)}var Ii=E(gi,"Use firebase.firestore() instead."),Pi=E(bi,"Use firebase.firestore().runTransaction() instead."),Ri=E(_i,"Use firebase.firestore().batch() instead."),Di=E(wi,"Use firebase.firestore().doc() instead."),Mi=E(xi),Li=E(Ci),ji=E(Ti),Fi=E(ki),Ui=E(Si,"Use firebase.firestore().collection() instead."),Bi={Firestore:Ii,GeoPoint:ee,Timestamp:te,Blob:Z,Transaction:Pi,WriteBatch:Ri,DocumentReference:Di,DocumentSnapshot:Mi,Query:ji,QueryDocumentSnapshot:Li,QuerySnapshot:Fi,CollectionReference:Ui,FieldPath:rn,FieldValue:ei,setLogLevel:gi.setLogLevel};function qi(e){e.INTERNAL.registerService("firestore",function(e){return new gi(e)},function(e){y(e&&"object"==typeof e,"shallowCopy() expects object parameter.");var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}(Bi))}function Vi(e){qi(e)}Vi(o),t.registerFirestore=Vi}).call(this,n(88))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return h}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return g}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

                                                                                                                                                          • */

var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:i?i(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):p(e)}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";(function(r){Object.defineProperty(t,"__esModule",{value:!0});var i,o,a=n(85),s=n(218),u=n(418),c=(i=n(14))&&"object"==typeof i&&"default"in i?i.default:i,l=function(){function e(e){this.domStorage_=e,this.prefix_="firebase:"}return e.prototype.set=function(e,t){null==t?this.domStorage_.removeItem(this.prefixedName_(e)):this.domStorage_.setItem(this.prefixedName_(e),a.stringify(t))},e.prototype.get=function(e){var t=this.domStorage_.getItem(this.prefixedName_(e));return null==t?null:a.jsonEval(t)},e.prototype.remove=function(e){this.domStorage_.removeItem(this.prefixedName_(e))},e.prototype.prefixedName_=function(e){return this.prefix_+e},e.prototype.toString=function(){return this.domStorage_.toString()},e}(),f=function(){function e(){this.cache_={},this.isInMemoryStorage=!0}return e.prototype.set=function(e,t){null==t?delete this.cache_[e]:this.cache_[e]=t},e.prototype.get=function(e){return a.contains(this.cache_,e)?this.cache_[e]:null},e.prototype.remove=function(e){delete this.cache_[e]},e}(),h=function(e){try{if("undefined"!=typeof window&&void 0!==window[e]){var t=window[e];return t.setItem("firebase:sentinel","cache"),t.removeItem("firebase:sentinel"),new l(t)}}catch(e){}return new f},p=h("localStorage"),d=h("sessionStorage"),v=new s.Logger("@firebase/database"),m=(o=1,function(){return o++}),y=function(e){var t=a.stringToByteArray(e),n=new a.Sha1;n.update(t);var r=n.digest();return a.base64.encodeByteArray(r)},g=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n="",r=0;r<e.length;r++)Array.isArray(e[r])||e[r]&&"object"==typeof e[r]&&"number"==typeof e[r].length?n+=g.apply(null,e[r]):"object"==typeof e[r]?n+=a.stringify(e[r]):n+=e[r],n+=" ";return n},b=null,_=!0,w=function(e,t){a.assert(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?(v.logLevel=s.LogLevel.VERBOSE,b=v.log.bind(v),t&&d.set("logging_enabled",!0)):"function"==typeof e?b=e:(b=null,d.remove("logging_enabled"))},E=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(!0===_&&(_=!1,null===b&&!0===d.get("logging_enabled")&&w(!0)),b){var n=g.apply(null,e);b(n)}},x=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];E.apply(void 0,[e].concat(t))}},C=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE INTERNAL ERROR: "+g.apply(void 0,e);v.error(n)},T=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE FATAL ERROR: "+g.apply(void 0,e);throw v.error(n),new Error(n)},k=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="FIREBASE WARNING: "+g.apply(void 0,e);v.warn(n)},S=function(e){return"number"==typeof e&&(e!=e||e==Number.POSITIVE_INFINITY||e==Number.NEGATIVE_INFINITY)},A="[MIN_NAME]",N="[MAX_NAME]",O=function(e,t){if(e===t)return 0;if(e===A||t===N)return-1;if(t===A||e===N)return 1;var n=F(e),r=F(t);return null!==n?null!==r?n-r==0?e.length-t.length:n-r:-1:null!==r?1:e<t?-1:1},I=function(e,t){return e===t?0:e<t?-1:1},P=function(e,t){if(t&&e in t)return t[e];throw new Error("Missing required key ("+e+") in object: "+a.stringify(t))},R=function(e){if("object"!=typeof e||null===e)return a.stringify(e);var t=[];for(var n in e)t.push(n);t.sort();for(var r="{",i=0;i<t.length;i++)0!==i&&(r+=","),r+=a.stringify(t[i]),r+=":",r+=R(e[t[i]]);return r+="}"},D=function(e,t){var n=e.length;if(n<=t)return[e];for(var r=[],i=0;i<n;i+=t)i+t>n?r.push(e.substring(i,n)):r.push(e.substring(i,i+t));return r},M=function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;++n)t(n,e[n]);else a.forEach(e,function(e,n){return t(n,e)})},L=function(e){a.assert(!S(e),"Invalid JSON number");var t,n,r,i,o,s,u;for(0===e?(n=0,r=0,t=1/e==-1/0?1:0):(t=e<0,(e=Math.abs(e))>=Math.pow(2,-1022)?(n=(i=Math.min(Math.floor(Math.log(e)/Math.LN2),1023))+1023,r=Math.round(e*Math.pow(2,52-i)-Math.pow(2,52))):(n=0,r=Math.round(e/Math.pow(2,-1074)))),s=[],o=52;o;o-=1)s.push(r%2?1:0),r=Math.floor(r/2);for(o=11;o;o-=1)s.push(n%2?1:0),n=Math.floor(n/2);s.push(t?1:0),s.reverse(),u=s.join("");var c="";for(o=0;o<64;o+=8){var l=parseInt(u.substr(o,8),2).toString(16);1===l.length&&(l="0"+l),c+=l}return c.toLowerCase()},j=new RegExp("^-?\\d{1,10}$"),F=function(e){if(j.test(e)){var t=Number(e);if(t>=-2147483648&&t<=2147483647)return t}return null},U=function(e){try{e()}catch(e){setTimeout(function(){var t=e.stack||"";throw k("Exception was thrown by user callback.",t),e},Math.floor(0))}},B=function(){return("object"==typeof window&&window.navigator&&window.navigator.userAgent||"").search(/googlebot|google webmaster tools|bingbot|yahoo! slurp|baiduspider|yandexbot|duckduckbot/i)>=0},q=function(e,t){var n=setTimeout(e,t);return"object"==typeof n&&n.unref&&n.unref(),n},V=function(){function e(e,t){if(void 0===t){this.pieces_=e.split("/");for(var n=0,r=0;r<this.pieces_.length;r++)this.pieces_[r].length>0&&(this.pieces_[n]=this.pieces_[r],n++);this.pieces_.length=n,this.pieceNum_=0}else this.pieces_=e,this.pieceNum_=t}return Object.defineProperty(e,"Empty",{get:function(){return new e("")},enumerable:!0,configurable:!0}),e.prototype.getFront=function(){return this.pieceNum_>=this.pieces_.length?null:this.pieces_[this.pieceNum_]},e.prototype.getLength=function(){return this.pieces_.length-this.pieceNum_},e.prototype.popFront=function(){var t=this.pieceNum_;return t<this.pieces_.length&&t++,new e(this.pieces_,t)},e.prototype.getBack=function(){return this.pieceNum_<this.pieces_.length?this.pieces_[this.pieces_.length-1]:null},e.prototype.toString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+this.pieces_[t]);return e||"/"},e.prototype.toUrlEncodedString=function(){for(var e="",t=this.pieceNum_;t<this.pieces_.length;t++)""!==this.pieces_[t]&&(e+="/"+encodeURIComponent(String(this.pieces_[t])));return e||"/"},e.prototype.slice=function(e){return void 0===e&&(e=0),this.pieces_.slice(this.pieceNum_+e)},e.prototype.parent=function(){if(this.pieceNum_>=this.pieces_.length)return null;for(var t=[],n=this.pieceNum_;n<this.pieces_.length-1;n++)t.push(this.pieces_[n]);return new e(t,0)},e.prototype.child=function(t){for(var n=[],r=this.pieceNum_;r<this.pieces_.length;r++)n.push(this.pieces_[r]);if(t instanceof e)for(r=t.pieceNum_;r<t.pieces_.length;r++)n.push(t.pieces_[r]);else{var i=t.split("/");for(r=0;r<i.length;r++)i[r].length>0&&n.push(i[r])}return new e(n,0)},e.prototype.isEmpty=function(){return this.pieceNum_>=this.pieces_.length},e.relativePath=function(t,n){var r=t.getFront(),i=n.getFront();if(null===r)return n;if(r===i)return e.relativePath(t.popFront(),n.popFront());throw new Error("INTERNAL ERROR: innerPath ("+n+") is not within outerPath ("+t+")")},e.comparePaths=function(e,t){for(var n=e.slice(),r=t.slice(),i=0;i<n.length&&i<r.length;i++){var o=O(n[i],r[i]);if(0!==o)return o}return n.length===r.length?0:n.length<r.length?-1:1},e.prototype.equals=function(e){if(this.getLength()!==e.getLength())return!1;for(var t=this.pieceNum_,n=e.pieceNum_;t<=this.pieces_.length;t++,n++)if(this.pieces_[t]!==e.pieces_[n])return!1;return!0},e.prototype.contains=function(e){var t=this.pieceNum_,n=e.pieceNum_;if(this.getLength()>e.getLength())return!1;for(;t<this.pieces_.length;){if(this.pieces_[t]!==e.pieces_[n])return!1;++t,++n}return!0},e}(),W=function(){function e(e,t){this.errorPrefix_=t,this.parts_=e.slice(),this.byteLength_=Math.max(1,this.parts_.length);for(var n=0;n<this.parts_.length;n++)this.byteLength_+=a.stringLength(this.parts_[n]);this.checkValid_()}return Object.defineProperty(e,"MAX_PATH_DEPTH",{get:function(){return 32},enumerable:!0,configurable:!0}),Object.defineProperty(e,"MAX_PATH_LENGTH_BYTES",{get:function(){return 768},enumerable:!0,configurable:!0}),e.prototype.push=function(e){this.parts_.length>0&&(this.byteLength_+=1),this.parts_.push(e),this.byteLength_+=a.stringLength(e),this.checkValid_()},e.prototype.pop=function(){var e=this.parts_.pop();this.byteLength_-=a.stringLength(e),this.parts_.length>0&&(this.byteLength_-=1)},e.prototype.checkValid_=function(){if(this.byteLength_>e.MAX_PATH_LENGTH_BYTES)throw new Error(this.errorPrefix_+"has a key path longer than "+e.MAX_PATH_LENGTH_BYTES+" bytes ("+this.byteLength_+").");if(this.parts_.length>e.MAX_PATH_DEPTH)throw new Error(this.errorPrefix_+"path specified exceeds the maximum depth that can be written ("+e.MAX_PATH_DEPTH+") or object contains a cycle "+this.toErrorString())},e.prototype.toErrorString=function(){return 0==this.parts_.length?"":"in property '"+this.parts_.join(".")+"'"},e}(),z="long_polling",H=function(){function e(e,t,n,r,i){void 0===i&&(i=""),this.secure=t,this.namespace=n,this.webSocketOnly=r,this.persistenceKey=i,this.host=e.toLowerCase(),this.domain=this.host.substr(this.host.indexOf(".")+1),this.internalHost=p.get("host:"+e)||this.host}return e.prototype.needsQueryParam=function(){return this.host!==this.internalHost||this.isCustomHost()},e.prototype.isCacheableHost=function(){return"s-"===this.internalHost.substr(0,2)},e.prototype.isDemoHost=function(){return"firebaseio-demo.com"===this.domain},e.prototype.isCustomHost=function(){return"firebaseio.com"!==this.domain&&"firebaseio-demo.com"!==this.domain},e.prototype.updateHost=function(e){e!==this.internalHost&&(this.internalHost=e,this.isCacheableHost()&&p.set("host:"+this.host,this.internalHost))},e.prototype.connectionURL=function(e,t){var n;if(a.assert("string"==typeof e,"typeof type must == string"),a.assert("object"==typeof t,"typeof params must == object"),"websocket"===e)n=(this.secure?"wss://":"ws://")+this.internalHost+"/.ws?";else{if(e!==z)throw new Error("Unknown connection type: "+e);n=(this.secure?"https://":"http://")+this.internalHost+"/.lp?"}this.needsQueryParam()&&(t.ns=this.namespace);var r=[];return a.forEach(t,function(e,t){r.push(e+"="+t)}),n+r.join("&")},e.prototype.toString=function(){var e=this.toURLString();return this.persistenceKey&&(e+="<"+this.persistenceKey+">"),e},e.prototype.toURLString=function(){return(this.secure?"https://":"http://")+this.host},e}();var K,G,Q,Y,X,J=function(e){var t=$(e),n=t.subdomain;"firebase"===t.domain&&T(t.host+" is no longer supported. Please use <YOUR FIREBASE>.firebaseio.com instead"),n&&"undefined"!=n||"localhost"===t.domain||T("Cannot parse Firebase url. Please use https://<YOUR FIREBASE>.firebaseio.com"),t.secure||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&k("Insecure Firebase access from a secure page. Please use https in calls to new Firebase().");var r="ws"===t.scheme||"wss"===t.scheme;return{repoInfo:new H(t.host,t.secure,n,r),path:new V(t.pathString)}},$=function(e){var t="",n="",r="",i="",o=!0,a="https",s=443;if("string"==typeof e){var u=e.indexOf("//");u>=0&&(a=e.substring(0,u-1),e=e.substring(u+2));var c=e.indexOf("/");-1===c&&(c=e.length);var l=e.indexOf("?");-1===l&&(l=e.length),t=e.substring(0,Math.min(c,l)),c<l&&(i=function(e){for(var t="",n=e.split("/"),r=0;r<n.length;r++)if(n[r].length>0){var i=n[r];try{i=decodeURIComponent(i.replace(/\+/g," "))}catch(e){}t+="/"+i}return t}(e.substring(c,l)));var f=function(e){var t={};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=e.split("&");n<r.length;n++){var i=r[n];if(0!==i.length){var o=i.split("=");2===o.length?t[decodeURIComponent(o[0])]=decodeURIComponent(o[1]):k("Invalid query segment '"+i+"' in query '"+e+"'")}}return t}(e.substring(Math.min(e.length,l)));(u=t.indexOf(":"))>=0?(o="https"===a||"wss"===a,s=parseInt(t.substring(u+1),10)):u=e.length;var h=t.split(".");3===h.length?(n=h[1],r=h[0].toLowerCase()):2===h.length?n=h[0]:"localhost"===h[0].slice(0,u).toLowerCase()&&(n="localhost"),""===r&&"ns"in f&&(r=f.ns)}return{host:t,port:s,domain:n,subdomain:r,secure:o,scheme:a,pathString:i}},Z=/[\[\].#$\/\u0000-\u001F\u007F]/,ee=/[\[\].#$\u0000-\u001F\u007F]/,te=function(e){return"string"==typeof e&&0!==e.length&&!Z.test(e)},ne=function(e){return"string"==typeof e&&0!==e.length&&!ee.test(e)},re=function(e){return null===e||"string"==typeof e||"number"==typeof e&&!S(e)||e&&"object"==typeof e&&a.contains(e,".sv")},ie=function(e,t,n,r,i){i&&void 0===n||oe(a.errorPrefix(e,t,i),n,r)},oe=function(e,t,n){var r=n instanceof V?new W(n,e):n;if(void 0===t)throw new Error(e+"contains undefined "+r.toErrorString());if("function"==typeof t)throw new Error(e+"contains a function "+r.toErrorString()+" with contents = "+t.toString());if(S(t))throw new Error(e+"contains "+t.toString()+" "+r.toErrorString());if("string"==typeof t&&t.length>10485760/3&&a.stringLength(t)>10485760)throw new Error(e+"contains a string greater than 10485760 utf8 bytes "+r.toErrorString()+" ('"+t.substring(0,50)+"...')");if(t&&"object"==typeof t){var i=!1,o=!1;if(a.forEach(t,function(t,n){if(".value"===t)i=!0;else if(".priority"!==t&&".sv"!==t&&(o=!0,!te(t)))throw new Error(e+" contains an invalid key ("+t+") "+r.toErrorString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');r.push(t),oe(e,n,r),r.pop()}),i&&o)throw new Error(e+' contains ".value" child '+r.toErrorString()+" in addition to actual children.")}},ae=function(e,t,n,r,i){if(!i||void 0!==n){var o=a.errorPrefix(e,t,i);if(!n||"object"!=typeof n||Array.isArray(n))throw new Error(o+" must be an object containing the children to replace.");var s=[];a.forEach(n,function(e,t){var n=new V(e);if(oe(o,t,r.child(n)),".priority"===n.getBack()&&!re(t))throw new Error(o+"contains an invalid value for '"+n.toString()+"', which must be a valid Firebase priority (a string, finite number, server value, or null).");s.push(n)}),function(e,t){var n,r;for(n=0;n<t.length;n++)for(var i=(r=t[n]).slice(),o=0;o<i.length;o++)if(".priority"===i[o]&&o===i.length-1);else if(!te(i[o]))throw new Error(e+"contains an invalid key ("+i[o]+") in path "+r.toString()+'. Keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]"');t.sort(V.comparePaths);var a=null;for(n=0;n<t.length;n++){if(r=t[n],null!==a&&a.contains(r))throw new Error(e+"contains a path "+a.toString()+" that is ancestor of another path "+r.toString());a=r}}(o,s)}},se=function(e,t,n,r){if(!r||void 0!==n){if(S(n))throw new Error(a.errorPrefix(e,t,r)+"is "+n.toString()+", but must be a valid Firebase priority (a string, finite number, server value, or null).");if(!re(n))throw new Error(a.errorPrefix(e,t,r)+"must be a valid Firebase priority (a string, finite number, server value, or null).")}},ue=function(e,t,n,r){if(!r||void 0!==n)switch(n){case"value":case"child_added":case"child_removed":case"child_changed":case"child_moved":break;default:throw new Error(a.errorPrefix(e,t,r)+'must be a valid event type = "value", "child_added", "child_removed", "child_changed", or "child_moved".')}},ce=function(e,t,n,r){if(!(r&&void 0===n||te(n)))throw new Error(a.errorPrefix(e,t,r)+'was an invalid key = "'+n+'". Firebase keys must be non-empty strings and can\'t contain ".", "#", "$", "/", "[", or "]").')},le=function(e,t,n,r){if(!(r&&void 0===n||ne(n)))throw new Error(a.errorPrefix(e,t,r)+'was an invalid path = "'+n+'". Paths must be non-empty strings and can\'t contain ".", "#", "$", "[", or "]"')},fe=function(e,t){if(".info"===t.getFront())throw new Error(e+" failed = Can't modify data under /.info/")},he=function(e,t,n){var r=n.path.toString();if("string"!=typeof n.repoInfo.host||0===n.repoInfo.host.length||!te(n.repoInfo.namespace)&&"localhost"!==n.repoInfo.host.split(":")[0]||0!==r.length&&!function(e){return e&&(e=e.replace(/^\/*\.info(\/|$)/,"/")),ne(e)}(r))throw new Error(a.errorPrefix(e,t,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".')},pe=function(){function e(e,t){this.repo_=e,this.path_=t}return e.prototype.cancel=function(e){a.validateArgCount("OnDisconnect.cancel",0,1,arguments.length),a.validateCallback("OnDisconnect.cancel",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectCancel(this.path_,t.wrapCallback(e)),t.promise},e.prototype.remove=function(e){a.validateArgCount("OnDisconnect.remove",0,1,arguments.length),fe("OnDisconnect.remove",this.path_),a.validateCallback("OnDisconnect.remove",1,e,!0);var t=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,null,t.wrapCallback(e)),t.promise},e.prototype.set=function(e,t){a.validateArgCount("OnDisconnect.set",1,2,arguments.length),fe("OnDisconnect.set",this.path_),ie("OnDisconnect.set",1,e,this.path_,!1),a.validateCallback("OnDisconnect.set",2,t,!0);var n=new a.Deferred;return this.repo_.onDisconnectSet(this.path_,e,n.wrapCallback(t)),n.promise},e.prototype.setWithPriority=function(e,t,n){a.validateArgCount("OnDisconnect.setWithPriority",2,3,arguments.length),fe("OnDisconnect.setWithPriority",this.path_),ie("OnDisconnect.setWithPriority",1,e,this.path_,!1),se("OnDisconnect.setWithPriority",2,t,!1),a.validateCallback("OnDisconnect.setWithPriority",3,n,!0);var r=new a.Deferred;return this.repo_.onDisconnectSetWithPriority(this.path_,e,t,r.wrapCallback(n)),r.promise},e.prototype.update=function(e,t){if(a.validateArgCount("OnDisconnect.update",1,2,arguments.length),fe("OnDisconnect.update",this.path_),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,k("Passing an Array to firebase.database.onDisconnect().update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("OnDisconnect.update",1,e,this.path_,!1),a.validateCallback("OnDisconnect.update",2,t,!0);var i=new a.Deferred;return this.repo_.onDisconnectUpdate(this.path_,e,i.wrapCallback(t)),i.promise},e}(),de=function(){function e(e,t){this.committed=e,this.snapshot=t}return e.prototype.toJSON=function(){return a.validateArgCount("TransactionResult.toJSON",0,1,arguments.length),{committed:this.committed,snapshot:this.snapshot.toJSON()}},e}(),ve=(K="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz",G=0,Q=[],function(e){var t,n=e===G;G=e;var r=new Array(8);for(t=7;t>=0;t--)r[t]=K.charAt(e%64),e=Math.floor(e/64);a.assert(0===e,"Cannot push at time == 0");var i=r.join("");if(n){for(t=11;t>=0&&63===Q[t];t--)Q[t]=0;Q[t]++}else for(t=0;t<12;t++)Q[t]=Math.floor(64*Math.random());for(t=0;t<12;t++)i+=K.charAt(Q[t]);return a.assert(20===i.length,"nextPushId: Length should be 20."),i}),me=function(){function e(e,t){this.name=e,this.node=t}return e.Wrap=function(t,n){return new e(t,n)},e}(),ye=function(){function e(){}return e.prototype.getCompare=function(){return this.compare.bind(this)},e.prototype.indexedValueChanged=function(e,t){var n=new me(A,e),r=new me(A,t);return 0!==this.compare(n,r)},e.prototype.minPost=function(){return me.MIN},e}(),ge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u.__extends(t,e),Object.defineProperty(t,"__EMPTY_NODE",{get:function(){return Y},set:function(e){Y=e},enumerable:!0,configurable:!0}),t.prototype.compare=function(e,t){return O(e.name,t.name)},t.prototype.isDefinedOn=function(e){throw a.assertionError("KeyIndex.isDefinedOn not expected to be called.")},t.prototype.indexedValueChanged=function(e,t){return!1},t.prototype.minPost=function(){return me.MIN},t.prototype.maxPost=function(){return new me(N,Y)},t.prototype.makePost=function(e,t){return a.assert("string"==typeof e,"KeyIndex indexValue must always be a string."),new me(e,Y)},t.prototype.toString=function(){return".key"},t}(ye),be=new ge;var _e,we,Ee,xe=function(e){return"number"==typeof e?"number:"+L(e):"string:"+e},Ce=function(e){if(e.isLeafNode()){var t=e.val();a.assert("string"==typeof t||"number"==typeof t||"object"==typeof t&&a.contains(t,".sv"),"Priority must be a string or number.")}else a.assert(e===X||e.isEmpty(),"priority of unexpected type.");a.assert(e===X||e.getPriority().isEmpty(),"Priority nodes can't have a priority of their own.")},Te=function(){function e(t,n){void 0===n&&(n=e.__childrenNodeConstructor.EMPTY_NODE),this.value_=t,this.priorityNode_=n,this.lazyHash_=null,a.assert(void 0!==this.value_&&null!==this.value_,"LeafNode shouldn't be created with null/undefined value."),Ce(this.priorityNode_)}return Object.defineProperty(e,"__childrenNodeConstructor",{get:function(){return _e},set:function(e){_e=e},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!0},e.prototype.getPriority=function(){return this.priorityNode_},e.prototype.updatePriority=function(t){return new e(this.value_,t)},e.prototype.getImmediateChild=function(t){return".priority"===t?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.getChild=function(t){return t.isEmpty()?this:".priority"===t.getFront()?this.priorityNode_:e.__childrenNodeConstructor.EMPTY_NODE},e.prototype.hasChild=function(){return!1},e.prototype.getPredecessorChildName=function(e,t){return null},e.prototype.updateImmediateChild=function(t,n){return".priority"===t?this.updatePriority(n):n.isEmpty()&&".priority"!==t?this:e.__childrenNodeConstructor.EMPTY_NODE.updateImmediateChild(t,n).updatePriority(this.priorityNode_)},e.prototype.updateChild=function(t,n){var r=t.getFront();return null===r?n:n.isEmpty()&&".priority"!==r?this:(a.assert(".priority"!==r||1===t.getLength(),".priority must be the last token in a path"),this.updateImmediateChild(r,e.__childrenNodeConstructor.EMPTY_NODE.updateChild(t.popFront(),n)))},e.prototype.isEmpty=function(){return!1},e.prototype.numChildren=function(){return 0},e.prototype.forEachChild=function(e,t){return!1},e.prototype.val=function(e){return e&&!this.getPriority().isEmpty()?{".value":this.getValue(),".priority":this.getPriority().val()}:this.getValue()},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.priorityNode_.isEmpty()||(e+="priority:"+xe(this.priorityNode_.val())+":");var t=typeof this.value_;e+=t+":",e+="number"===t?L(this.value_):this.value_,this.lazyHash_=y(e)}return this.lazyHash_},e.prototype.getValue=function(){return this.value_},e.prototype.compareTo=function(t){return t===e.__childrenNodeConstructor.EMPTY_NODE?1:t instanceof e.__childrenNodeConstructor?-1:(a.assert(t.isLeafNode(),"Unknown node type"),this.compareToLeafNode_(t))},e.prototype.compareToLeafNode_=function(t){var n=typeof t.value_,r=typeof this.value_,i=e.VALUE_TYPE_ORDER.indexOf(n),o=e.VALUE_TYPE_ORDER.indexOf(r);return a.assert(i>=0,"Unknown leaf type: "+n),a.assert(o>=0,"Unknown leaf type: "+r),i===o?"object"===r?0:this.value_<t.value_?-1:this.value_===t.value_?0:1:o-i},e.prototype.withIndex=function(){return this},e.prototype.isIndexed=function(){return!0},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode()){var t=e;return this.value_===t.value_&&this.priorityNode_.equals(t.priorityNode_)}return!1},e.VALUE_TYPE_ORDER=["object","boolean","number","string"],e}();var ke,Se,Ae=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.getPriority(),r=t.node.getPriority(),i=n.compareTo(r);return 0===i?O(e.name,t.name):i},t.prototype.isDefinedOn=function(e){return!e.getPriority().isEmpty()},t.prototype.indexedValueChanged=function(e,t){return!e.getPriority().equals(t.getPriority())},t.prototype.minPost=function(){return me.MIN},t.prototype.maxPost=function(){return new me(N,new Te("[PRIORITY-POST]",Ee))},t.prototype.makePost=function(e,t){var n=we(e);return new me(t,new Te("[PRIORITY-POST]",n))},t.prototype.toString=function(){return".priority"},t}(ye)),Ne=function(){function e(e,t,n,r,i){void 0===i&&(i=null),this.isReverse_=r,this.resultGenerator_=i,this.nodeStack_=[];for(var o=1;!e.isEmpty();)if(e=e,o=t?n(e.key,t):1,r&&(o*=-1),o<0)e=this.isReverse_?e.left:e.right;else{if(0===o){this.nodeStack_.push(e);break}this.nodeStack_.push(e),e=this.isReverse_?e.right:e.left}}return e.prototype.getNext=function(){if(0===this.nodeStack_.length)return null;var e,t=this.nodeStack_.pop();if(e=this.resultGenerator_?this.resultGenerator_(t.key,t.value):{key:t.key,value:t.value},this.isReverse_)for(t=t.left;!t.isEmpty();)this.nodeStack_.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack_.push(t),t=t.left;return e},e.prototype.hasNext=function(){return this.nodeStack_.length>0},e.prototype.peek=function(){if(0===this.nodeStack_.length)return null;var e=this.nodeStack_[this.nodeStack_.length-1];return this.resultGenerator_?this.resultGenerator_(e.key,e.value):{key:e.key,value:e.value}},e}(),Oe=function(){function e(t,n,r,i,o){this.key=t,this.value=n,this.color=null!=r?r:e.RED,this.left=null!=i?i:Pe.EMPTY_NODE,this.right=null!=o?o:Pe.EMPTY_NODE}return e.prototype.copy=function(t,n,r,i,o){return new e(null!=t?t:this.key,null!=n?n:this.value,null!=r?r:this.color,null!=i?i:this.left,null!=o?o:this.right)},e.prototype.count=function(){return this.left.count()+1+this.right.count()},e.prototype.isEmpty=function(){return!1},e.prototype.inorderTraversal=function(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)},e.prototype.min_=function(){return this.left.isEmpty()?this:this.left.min_()},e.prototype.minKey=function(){return this.min_().key},e.prototype.maxKey=function(){return this.right.isEmpty()?this.key:this.right.maxKey()},e.prototype.insert=function(e,t,n){var r,i;return(i=(r=n(e,(i=this).key))<0?i.copy(null,null,null,i.left.insert(e,t,n),null):0===r?i.copy(null,t,null,null,null):i.copy(null,null,null,null,i.right.insert(e,t,n))).fixUp_()},e.prototype.removeMin_=function(){if(this.left.isEmpty())return Pe.EMPTY_NODE;var e=this;return e.left.isRed_()||e.left.left.isRed_()||(e=e.moveRedLeft_()),(e=e.copy(null,null,null,e.left.removeMin_(),null)).fixUp_()},e.prototype.remove=function(e,t){var n,r;if(t(e,(n=this).key)<0)n.left.isEmpty()||n.left.isRed_()||n.left.left.isRed_()||(n=n.moveRedLeft_()),n=n.copy(null,null,null,n.left.remove(e,t),null);else{if(n.left.isRed_()&&(n=n.rotateRight_()),n.right.isEmpty()||n.right.isRed_()||n.right.left.isRed_()||(n=n.moveRedRight_()),0===t(e,n.key)){if(n.right.isEmpty())return Pe.EMPTY_NODE;r=n.right.min_(),n=n.copy(r.key,r.value,null,null,n.right.removeMin_())}n=n.copy(null,null,null,null,n.right.remove(e,t))}return n.fixUp_()},e.prototype.isRed_=function(){return this.color},e.prototype.fixUp_=function(){var e=this;return e.right.isRed_()&&!e.left.isRed_()&&(e=e.rotateLeft_()),e.left.isRed_()&&e.left.left.isRed_()&&(e=e.rotateRight_()),e.left.isRed_()&&e.right.isRed_()&&(e=e.colorFlip_()),e},e.prototype.moveRedLeft_=function(){var e=this.colorFlip_();return e.right.left.isRed_()&&(e=(e=(e=e.copy(null,null,null,null,e.right.rotateRight_())).rotateLeft_()).colorFlip_()),e},e.prototype.moveRedRight_=function(){var e=this.colorFlip_();return e.left.left.isRed_()&&(e=(e=e.rotateRight_()).colorFlip_()),e},e.prototype.rotateLeft_=function(){var t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)},e.prototype.rotateRight_=function(){var t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)},e.prototype.colorFlip_=function(){var e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)},e.prototype.checkMaxDepth_=function(){var e=this.check_();return Math.pow(2,e)<=this.count()+1},e.prototype.check_=function(){var e;if(this.isRed_()&&this.left.isRed_())throw new Error("Red node has red child("+this.key+","+this.value+")");if(this.right.isRed_())throw new Error("Right child of ("+this.key+","+this.value+") is red");if((e=this.left.check_())!==this.right.check_())throw new Error("Black depths differ");return e+(this.isRed_()?0:1)},e.RED=!0,e.BLACK=!1,e}(),Ie=function(){function e(){}return e.prototype.copy=function(e,t,n,r,i){return this},e.prototype.insert=function(e,t,n){return new Oe(e,t,null)},e.prototype.remove=function(e,t){return this},e.prototype.count=function(){return 0},e.prototype.isEmpty=function(){return!0},e.prototype.inorderTraversal=function(e){return!1},e.prototype.reverseTraversal=function(e){return!1},e.prototype.minKey=function(){return null},e.prototype.maxKey=function(){return null},e.prototype.check_=function(){return 0},e.prototype.isRed_=function(){return!1},e}(),Pe=function(){function e(t,n){void 0===n&&(n=e.EMPTY_NODE),this.comparator_=t,this.root_=n}return e.prototype.insert=function(t,n){return new e(this.comparator_,this.root_.insert(t,n,this.comparator_).copy(null,null,Oe.BLACK,null,null))},e.prototype.remove=function(t){return new e(this.comparator_,this.root_.remove(t,this.comparator_).copy(null,null,Oe.BLACK,null,null))},e.prototype.get=function(e){for(var t,n=this.root_;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key)))return n.value;t<0?n=n.left:t>0&&(n=n.right)}return null},e.prototype.getPredecessorKey=function(e){for(var t,n=this.root_,r=null;!n.isEmpty();){if(0===(t=this.comparator_(e,n.key))){if(n.left.isEmpty())return r?r.key:null;for(n=n.left;!n.right.isEmpty();)n=n.right;return n.key}t<0?n=n.left:t>0&&(r=n,n=n.right)}throw new Error("Attempted to find predecessor key for a nonexistent key. What gives?")},e.prototype.isEmpty=function(){return this.root_.isEmpty()},e.prototype.count=function(){return this.root_.count()},e.prototype.minKey=function(){return this.root_.minKey()},e.prototype.maxKey=function(){return this.root_.maxKey()},e.prototype.inorderTraversal=function(e){return this.root_.inorderTraversal(e)},e.prototype.reverseTraversal=function(e){return this.root_.reverseTraversal(e)},e.prototype.getIterator=function(e){return new Ne(this.root_,null,this.comparator_,!1,e)},e.prototype.getIteratorFrom=function(e,t){return new Ne(this.root_,e,this.comparator_,!1,t)},e.prototype.getReverseIteratorFrom=function(e,t){return new Ne(this.root_,e,this.comparator_,!0,t)},e.prototype.getReverseIterator=function(e){return new Ne(this.root_,null,this.comparator_,!0,e)},e.EMPTY_NODE=new Ie,e}(),Re=Math.log(2),De=function(){function e(e){var t;this.count=(t=e+1,parseInt(Math.log(t)/Re,10)),this.current_=this.count-1;var n,r=(n=this.count,parseInt(Array(n+1).join("1"),2));this.bits_=e+1&r}return e.prototype.nextBitIsOne=function(){var e=!(this.bits_&1<<this.current_);return this.current_--,e},e}(),Me=function(e,t,n,r){e.sort(t);var i=function(t,r){var o,a,s=r-t;if(0==s)return null;if(1==s)return o=e[t],a=n?n(o):o,new Oe(a,o.node,Oe.BLACK,null,null);var u=parseInt(s/2,10)+t,c=i(t,u),l=i(u+1,r);return o=e[u],a=n?n(o):o,new Oe(a,o.node,Oe.BLACK,c,l)},o=function(t){for(var r=null,o=null,a=e.length,s=function(t,r){var o=a-t,s=a;a-=t;var c=i(o+1,s),l=e[o],f=n?n(l):l;u(new Oe(f,l.node,r,null,c))},u=function(e){r?(r.left=e,r=e):(o=e,r=e)},c=0;c<t.count;++c){var l=t.nextBitIsOne(),f=Math.pow(2,t.count-(c+1));l?s(f,Oe.BLACK):(s(f,Oe.BLACK),s(f,Oe.RED))}return o}(new De(e.length));return new Pe(r||t,o)},Le={},je=function(){function e(e,t){this.indexes_=e,this.indexSet_=t}return Object.defineProperty(e,"Default",{get:function(){return a.assert(Le&&Ae,"ChildrenNode.ts has not been loaded"),ke=ke||new e({".priority":Le},{".priority":Ae})},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=a.safeGet(this.indexes_,e);if(!t)throw new Error("No index defined for "+e);return t===Le?null:t},e.prototype.hasIndex=function(e){return a.contains(this.indexSet_,e.toString())},e.prototype.addIndex=function(t,n){a.assert(t!==be,"KeyIndex always exists and isn't meant to be added to the IndexMap.");for(var r,i=[],o=!1,s=n.getIterator(me.Wrap),u=s.getNext();u;)o=o||t.isDefinedOn(u.node),i.push(u),u=s.getNext();r=o?Me(i,t.getCompare()):Le;var c=t.toString(),l=a.clone(this.indexSet_);l[c]=t;var f=a.clone(this.indexes_);return f[c]=r,new e(f,l)},e.prototype.addToIndexes=function(t,n){var r=this;return new e(a.map(this.indexes_,function(e,i){var o=a.safeGet(r.indexSet_,i);if(a.assert(o,"Missing index implementation for "+i),e===Le){if(o.isDefinedOn(t.node)){for(var s=[],u=n.getIterator(me.Wrap),c=u.getNext();c;)c.name!=t.name&&s.push(c),c=u.getNext();return s.push(t),Me(s,o.getCompare())}return Le}var l=n.get(t.name),f=e;return l&&(f=f.remove(new me(t.name,l))),f.insert(t,t.node)}),this.indexSet_)},e.prototype.removeFromIndexes=function(t,n){return new e(a.map(this.indexes_,function(e){if(e===Le)return e;var r=n.get(t.name);return r?e.remove(new me(t.name,r)):e}),this.indexSet_)},e}();function Fe(e,t){return O(e.name,t.name)}function Ue(e,t){return O(e,t)}var Be=function(){function e(e,t,n){this.children_=e,this.priorityNode_=t,this.indexMap_=n,this.lazyHash_=null,this.priorityNode_&&Ce(this.priorityNode_),this.children_.isEmpty()&&a.assert(!this.priorityNode_||this.priorityNode_.isEmpty(),"An empty node cannot have a priority")}return Object.defineProperty(e,"EMPTY_NODE",{get:function(){return Se||(Se=new e(new Pe(Ue),null,je.Default))},enumerable:!0,configurable:!0}),e.prototype.isLeafNode=function(){return!1},e.prototype.getPriority=function(){return this.priorityNode_||Se},e.prototype.updatePriority=function(t){return this.children_.isEmpty()?this:new e(this.children_,t,this.indexMap_)},e.prototype.getImmediateChild=function(e){if(".priority"===e)return this.getPriority();var t=this.children_.get(e);return null===t?Se:t},e.prototype.getChild=function(e){var t=e.getFront();return null===t?this:this.getImmediateChild(t).getChild(e.popFront())},e.prototype.hasChild=function(e){return null!==this.children_.get(e)},e.prototype.updateImmediateChild=function(t,n){if(a.assert(n,"We should always be passing snapshot nodes"),".priority"===t)return this.updatePriority(n);var r=new me(t,n),i=void 0,o=void 0;return n.isEmpty()?(i=this.children_.remove(t),o=this.indexMap_.removeFromIndexes(r,this.children_)):(i=this.children_.insert(t,n),o=this.indexMap_.addToIndexes(r,this.children_)),new e(i,i.isEmpty()?Se:this.priorityNode_,o)},e.prototype.updateChild=function(e,t){var n=e.getFront();if(null===n)return t;a.assert(".priority"!==e.getFront()||1===e.getLength(),".priority must be the last token in a path");var r=this.getImmediateChild(n).updateChild(e.popFront(),t);return this.updateImmediateChild(n,r)},e.prototype.isEmpty=function(){return this.children_.isEmpty()},e.prototype.numChildren=function(){return this.children_.count()},e.prototype.val=function(t){if(this.isEmpty())return null;var n={},r=0,i=0,o=!0;if(this.forEachChild(Ae,function(a,s){n[a]=s.val(t),r++,o&&e.INTEGER_REGEXP_.test(a)?i=Math.max(i,Number(a)):o=!1}),!t&&o&&i<2*r){var a=[];for(var s in n)a[s]=n[s];return a}return t&&!this.getPriority().isEmpty()&&(n[".priority"]=this.getPriority().val()),n},e.prototype.hash=function(){if(null===this.lazyHash_){var e="";this.getPriority().isEmpty()||(e+="priority:"+xe(this.getPriority().val())+":"),this.forEachChild(Ae,function(t,n){var r=n.hash();""!==r&&(e+=":"+t+":"+r)}),this.lazyHash_=""===e?"":y(e)}return this.lazyHash_},e.prototype.getPredecessorChildName=function(e,t,n){var r=this.resolveIndex_(n);if(r){var i=r.getPredecessorKey(new me(e,t));return i?i.name:null}return this.children_.getPredecessorKey(e)},e.prototype.getFirstChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.minKey();return n&&n.name}return this.children_.minKey()},e.prototype.getFirstChild=function(e){var t=this.getFirstChildName(e);return t?new me(t,this.children_.get(t)):null},e.prototype.getLastChildName=function(e){var t=this.resolveIndex_(e);if(t){var n=t.maxKey();return n&&n.name}return this.children_.maxKey()},e.prototype.getLastChild=function(e){var t=this.getLastChildName(e);return t?new me(t,this.children_.get(t)):null},e.prototype.forEachChild=function(e,t){var n=this.resolveIndex_(e);return n?n.inorderTraversal(function(e){return t(e.name,e.node)}):this.children_.inorderTraversal(t)},e.prototype.getIterator=function(e){return this.getIteratorFrom(e.minPost(),e)},e.prototype.getIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getIteratorFrom(e,function(e){return e});for(var r=this.children_.getIteratorFrom(e.name,me.Wrap),i=r.peek();null!=i&&t.compare(i,e)<0;)r.getNext(),i=r.peek();return r},e.prototype.getReverseIterator=function(e){return this.getReverseIteratorFrom(e.maxPost(),e)},e.prototype.getReverseIteratorFrom=function(e,t){var n=this.resolveIndex_(t);if(n)return n.getReverseIteratorFrom(e,function(e){return e});for(var r=this.children_.getReverseIteratorFrom(e.name,me.Wrap),i=r.peek();null!=i&&t.compare(i,e)>0;)r.getNext(),i=r.peek();return r},e.prototype.compareTo=function(e){return this.isEmpty()?e.isEmpty()?0:-1:e.isLeafNode()||e.isEmpty()?1:e===qe?-1:0},e.prototype.withIndex=function(t){if(t===be||this.indexMap_.hasIndex(t))return this;var n=this.indexMap_.addIndex(t,this.children_);return new e(this.children_,this.priorityNode_,n)},e.prototype.isIndexed=function(e){return e===be||this.indexMap_.hasIndex(e)},e.prototype.equals=function(e){if(e===this)return!0;if(e.isLeafNode())return!1;var t=e;if(this.getPriority().equals(t.getPriority())){if(this.children_.count()===t.children_.count()){for(var n=this.getIterator(Ae),r=t.getIterator(Ae),i=n.getNext(),o=r.getNext();i&&o;){if(i.name!==o.name||!i.node.equals(o.node))return!1;i=n.getNext(),o=r.getNext()}return null===i&&null===o}return!1}return!1},e.prototype.resolveIndex_=function(e){return e===be?null:this.indexMap_.get(e.toString())},e.INTEGER_REGEXP_=/^(0|[1-9]\d*)$/,e}(),qe=new(function(e){function t(){return e.call(this,new Pe(Ue),Be.EMPTY_NODE,je.Default)||this}return u.__extends(t,e),t.prototype.compareTo=function(e){return e===this?0:1},t.prototype.equals=function(e){return e===this},t.prototype.getPriority=function(){return this},t.prototype.getImmediateChild=function(e){return Be.EMPTY_NODE},t.prototype.isEmpty=function(){return!1},t}(Be));Object.defineProperties(me,{MIN:{value:new me(A,Be.EMPTY_NODE)},MAX:{value:new me(N,qe)}}),ge.__EMPTY_NODE=Be.EMPTY_NODE,Te.__childrenNodeConstructor=Be,X=qe,function(e){Ee=e}(qe);var Ve=!0;function We(e,t){if(void 0===t&&(t=null),null===e)return Be.EMPTY_NODE;if("object"==typeof e&&".priority"in e&&(t=e[".priority"]),a.assert(null===t||"string"==typeof t||"number"==typeof t||"object"==typeof t&&".sv"in t,"Invalid priority type found: "+typeof t),"object"==typeof e&&".value"in e&&null!==e[".value"]&&(e=e[".value"]),"object"!=typeof e||".sv"in e)return new Te(e,We(t));if(e instanceof Array||!Ve){var n=Be.EMPTY_NODE,r=e;return a.forEach(r,function(e,t){if(a.contains(r,e)&&"."!==e.substring(0,1)){var i=We(t);!i.isLeafNode()&&i.isEmpty()||(n=n.updateImmediateChild(e,i))}}),n.updatePriority(We(t))}var i=[],o=!1,s=e;if(a.forEach(s,function(e,t){if("string"!=typeof e||"."!==e.substring(0,1)){var n=We(s[e]);n.isEmpty()||(o=o||!n.getPriority().isEmpty(),i.push(new me(e,n)))}}),0==i.length)return Be.EMPTY_NODE;var u=Me(i,Fe,function(e){return e.name},Ue);if(o){var c=Me(i,Ae.getCompare());return new Be(u,We(t),new je({".priority":c},{".priority":Ae}))}return new Be(u,We(t),je.Default)}!function(e){we=e}(We);var ze,He,Ke=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return u.__extends(t,e),t.prototype.compare=function(e,t){var n=e.node.compareTo(t.node);return 0===n?O(e.name,t.name):n},t.prototype.isDefinedOn=function(e){return!0},t.prototype.indexedValueChanged=function(e,t){return!e.equals(t)},t.prototype.minPost=function(){return me.MIN},t.prototype.maxPost=function(){return me.MAX},t.prototype.makePost=function(e,t){var n=We(e);return new me(t,n)},t.prototype.toString=function(){return".value"},t}(ye)),Ge=function(e){function t(t){var n=e.call(this)||this;return n.indexPath_=t,a.assert(!t.isEmpty()&&".priority"!==t.getFront(),"Can't create PathIndex with empty path or .priority key"),n}return u.__extends(t,e),t.prototype.extractChild=function(e){return e.getChild(this.indexPath_)},t.prototype.isDefinedOn=function(e){return!e.getChild(this.indexPath_).isEmpty()},t.prototype.compare=function(e,t){var n=this.extractChild(e.node),r=this.extractChild(t.node),i=n.compareTo(r);return 0===i?O(e.name,t.name):i},t.prototype.makePost=function(e,t){var n=We(e),r=Be.EMPTY_NODE.updateChild(this.indexPath_,n);return new me(t,r)},t.prototype.maxPost=function(){var e=Be.EMPTY_NODE.updateChild(this.indexPath_,qe);return new me(N,e)},t.prototype.toString=function(){return this.indexPath_.slice().join("/")},t}(ye),Qe=function(){function e(e,t,n){this.node_=e,this.ref_=t,this.index_=n}return e.prototype.val=function(){return a.validateArgCount("DataSnapshot.val",0,0,arguments.length),this.node_.val()},e.prototype.exportVal=function(){return a.validateArgCount("DataSnapshot.exportVal",0,0,arguments.length),this.node_.val(!0)},e.prototype.toJSON=function(){return a.validateArgCount("DataSnapshot.toJSON",0,1,arguments.length),this.exportVal()},e.prototype.exists=function(){return a.validateArgCount("DataSnapshot.exists",0,0,arguments.length),!this.node_.isEmpty()},e.prototype.child=function(t){a.validateArgCount("DataSnapshot.child",0,1,arguments.length),t=String(t),le("DataSnapshot.child",1,t,!1);var n=new V(t),r=this.ref_.child(n);return new e(this.node_.getChild(n),r,Ae)},e.prototype.hasChild=function(e){a.validateArgCount("DataSnapshot.hasChild",1,1,arguments.length),le("DataSnapshot.hasChild",1,e,!1);var t=new V(e);return!this.node_.getChild(t).isEmpty()},e.prototype.getPriority=function(){return a.validateArgCount("DataSnapshot.getPriority",0,0,arguments.length),this.node_.getPriority().val()},e.prototype.forEach=function(t){var n=this;return a.validateArgCount("DataSnapshot.forEach",1,1,arguments.length),a.validateCallback("DataSnapshot.forEach",1,t,!1),!this.node_.isLeafNode()&&!!this.node_.forEachChild(this.index_,function(r,i){return t(new e(i,n.ref_.child(r),Ae))})},e.prototype.hasChildren=function(){return a.validateArgCount("DataSnapshot.hasChildren",0,0,arguments.length),!this.node_.isLeafNode()&&!this.node_.isEmpty()},Object.defineProperty(e.prototype,"key",{get:function(){return this.ref_.getKey()},enumerable:!0,configurable:!0}),e.prototype.numChildren=function(){return a.validateArgCount("DataSnapshot.numChildren",0,0,arguments.length),this.node_.numChildren()},e.prototype.getRef=function(){return a.validateArgCount("DataSnapshot.ref",0,0,arguments.length),this.ref_},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),Ye=function(){function e(e,t,n,r){this.eventType=e,this.eventRegistration=t,this.snapshot=n,this.prevName=r}return e.prototype.getPath=function(){var e=this.snapshot.getRef();return"value"===this.eventType?e.path:e.getParent().path},e.prototype.getEventType=function(){return this.eventType},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.getPath().toString()+":"+this.eventType+":"+a.stringify(this.snapshot.exportVal())},e}(),Xe=function(){function e(e,t,n){this.eventRegistration=e,this.error=t,this.path=n}return e.prototype.getPath=function(){return this.path},e.prototype.getEventType=function(){return"cancel"},e.prototype.getEventRunner=function(){return this.eventRegistration.getEventRunner(this)},e.prototype.toString=function(){return this.path.toString()+":cancel"},e}(),Je=function(){function e(e,t,n){this.callback_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){return"value"===e},e.prototype.createEvent=function(e,t){var n=t.getQueryParams().getIndex();return new Ye("value",this,new Qe(e.snapshotNode,t.getRef(),n))},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callback_;return function(){r.call(t,e.snapshot)}},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Xe(this,e,t):null},e.prototype.matches=function(t){return t instanceof e&&(!t.callback_||!this.callback_||t.callback_===this.callback_&&t.context_===this.context_)},e.prototype.hasAnyCallback=function(){return null!==this.callback_},e}(),$e=function(){function e(e,t,n){this.callbacks_=e,this.cancelCallback_=t,this.context_=n}return e.prototype.respondsTo=function(e){var t="children_added"===e?"child_added":e;return t="children_removed"===t?"child_removed":t,a.contains(this.callbacks_,t)},e.prototype.createCancelEvent=function(e,t){return this.cancelCallback_?new Xe(this,e,t):null},e.prototype.createEvent=function(e,t){a.assert(null!=e.childName,"Child events should have a childName.");var n=t.getRef().child(e.childName),r=t.getQueryParams().getIndex();return new Ye(e.type,this,new Qe(e.snapshotNode,n,r),e.prevName)},e.prototype.getEventRunner=function(e){var t=this.context_;if("cancel"===e.getEventType()){a.assert(this.cancelCallback_,"Raising a cancel event on a listener with no cancel callback");var n=this.cancelCallback_;return function(){n.call(t,e.error)}}var r=this.callbacks_[e.eventType];return function(){r.call(t,e.snapshot,e.prevName)}},e.prototype.matches=function(t){if(t instanceof e){if(!this.callbacks_||!t.callbacks_)return!0;if(this.context_===t.context_){var n=a.getCount(t.callbacks_);if(n===a.getCount(this.callbacks_)){if(1===n){var r=a.getAnyKey(t.callbacks_),i=a.getAnyKey(this.callbacks_);return!(i!==r||t.callbacks_[r]&&this.callbacks_[i]&&t.callbacks_[r]!==this.callbacks_[i])}return a.every(this.callbacks_,function(e,n){return t.callbacks_[e]===n})}}}return!1},e.prototype.hasAnyCallback=function(){return null!==this.callbacks_},e}(),Ze=function(){function e(e,t,n,r){this.repo=e,this.path=t,this.queryParams_=n,this.orderByCalled_=r}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return a.assert(ze,"Reference.ts has not been loaded"),ze},set:function(e){ze=e},enumerable:!0,configurable:!0}),e.validateQueryEndpoints_=function(e){var t=null,n=null;if(e.hasStart()&&(t=e.getIndexStartValue()),e.hasEnd()&&(n=e.getIndexEndValue()),e.getIndex()===be){var r="Query: When ordering by key, you may only pass one argument to startAt(), endAt(), or equalTo().",i="Query: When ordering by key, the argument passed to startAt(), endAt(),or equalTo() must be a string.";if(e.hasStart()){if(e.getIndexStartName()!=A)throw new Error(r);if("string"!=typeof t)throw new Error(i)}if(e.hasEnd()){if(e.getIndexEndName()!=N)throw new Error(r);if("string"!=typeof n)throw new Error(i)}}else if(e.getIndex()===Ae){if(null!=t&&!re(t)||null!=n&&!re(n))throw new Error("Query: When ordering by priority, the first argument passed to startAt(), endAt(), or equalTo() must be a valid priority value (null, a number, or a string).")}else if(a.assert(e.getIndex()instanceof Ge||e.getIndex()===Ke,"unknown index type."),null!=t&&"object"==typeof t||null!=n&&"object"==typeof n)throw new Error("Query: First argument passed to startAt(), endAt(), or equalTo() cannot be an object.")},e.validateLimit_=function(e){if(e.hasStart()&&e.hasEnd()&&e.hasLimit()&&!e.hasAnchoredLimit())throw new Error("Query: Can't combine startAt(), endAt(), and limit(). Use limitToFirst() or limitToLast() instead.")},e.prototype.validateNoPreviousOrderByCall_=function(e){if(!0===this.orderByCalled_)throw new Error(e+": You can't combine multiple orderBy calls.")},e.prototype.getQueryParams=function(){return this.queryParams_},e.prototype.getRef=function(){return a.validateArgCount("Query.ref",0,0,arguments.length),new e.__referenceConstructor(this.repo,this.path)},e.prototype.on=function(t,n,r,i){a.validateArgCount("Query.on",2,4,arguments.length),ue("Query.on",1,t,!1),a.validateCallback("Query.on",2,n,!1);var o=e.getCancelAndContextArgs_("Query.on",r,i);if("value"===t)this.onValueEvent(n,o.cancel,o.context);else{var s={};s[t]=n,this.onChildEvent(s,o.cancel,o.context)}return n},e.prototype.onValueEvent=function(e,t,n){var r=new Je(e,t||null,n||null);this.repo.addEventCallbackForQuery(this,r)},e.prototype.onChildEvent=function(e,t,n){var r=new $e(e,t,n);this.repo.addEventCallbackForQuery(this,r)},e.prototype.off=function(e,t,n){a.validateArgCount("Query.off",0,3,arguments.length),ue("Query.off",1,e,!0),a.validateCallback("Query.off",2,t,!0),a.validateContextObject("Query.off",3,n,!0);var r=null,i=null;"value"===e?r=new Je(t||null,null,n||null):e&&(t&&((i={})[e]=t),r=new $e(i,null,n||null));this.repo.removeEventCallbackForQuery(this,r)},e.prototype.once=function(t,n,r,i){var o=this;a.validateArgCount("Query.once",1,4,arguments.length),ue("Query.once",1,t,!1),a.validateCallback("Query.once",2,n,!0);var s=e.getCancelAndContextArgs_("Query.once",r,i),u=!0,c=new a.Deferred;c.promise.catch(function(){});var l=function(e){u&&(u=!1,o.off(t,l),n&&n.bind(s.context)(e),c.resolve(e))};return this.on(t,l,function(e){o.off(t,l),s.cancel&&s.cancel.bind(s.context)(e),c.reject(e)}),c.promise},e.prototype.limitToFirst=function(t){if(a.validateArgCount("Query.limitToFirst",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToFirst: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToFirst(t),this.orderByCalled_)},e.prototype.limitToLast=function(t){if(a.validateArgCount("Query.limitToLast",1,1,arguments.length),"number"!=typeof t||Math.floor(t)!==t||t<=0)throw new Error("Query.limitToLast: First argument must be a positive integer.");if(this.queryParams_.hasLimit())throw new Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new e(this.repo,this.path,this.queryParams_.limitToLast(t),this.orderByCalled_)},e.prototype.orderByChild=function(t){if(a.validateArgCount("Query.orderByChild",1,1,arguments.length),"$key"===t)throw new Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw new Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw new Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');le("Query.orderByChild",1,t,!1),this.validateNoPreviousOrderByCall_("Query.orderByChild");var n=new V(t);if(n.isEmpty())throw new Error("Query.orderByChild: cannot pass in empty path. Use Query.orderByValue() instead.");var r=new Ge(n),i=this.queryParams_.orderBy(r);return e.validateQueryEndpoints_(i),new e(this.repo,this.path,i,!0)},e.prototype.orderByKey=function(){a.validateArgCount("Query.orderByKey",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByKey");var t=this.queryParams_.orderBy(be);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByPriority=function(){a.validateArgCount("Query.orderByPriority",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByPriority");var t=this.queryParams_.orderBy(Ae);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.orderByValue=function(){a.validateArgCount("Query.orderByValue",0,0,arguments.length),this.validateNoPreviousOrderByCall_("Query.orderByValue");var t=this.queryParams_.orderBy(Ke);return e.validateQueryEndpoints_(t),new e(this.repo,this.path,t,!0)},e.prototype.startAt=function(t,n){void 0===t&&(t=null),a.validateArgCount("Query.startAt",0,2,arguments.length),ie("Query.startAt",1,t,this.path,!0),ce("Query.startAt",2,n,!0);var r=this.queryParams_.startAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasStart())throw new Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return void 0===t&&(t=null,n=null),new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.endAt=function(t,n){void 0===t&&(t=null),a.validateArgCount("Query.endAt",0,2,arguments.length),ie("Query.endAt",1,t,this.path,!0),ce("Query.endAt",2,n,!0);var r=this.queryParams_.endAt(t,n);if(e.validateLimit_(r),e.validateQueryEndpoints_(r),this.queryParams_.hasEnd())throw new Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new e(this.repo,this.path,r,this.orderByCalled_)},e.prototype.equalTo=function(e,t){if(a.validateArgCount("Query.equalTo",1,2,arguments.length),ie("Query.equalTo",1,e,this.path,!1),ce("Query.equalTo",2,t,!0),this.queryParams_.hasStart())throw new Error("Query.equalTo: Starting point was already set (by another call to startAt or equalTo).");if(this.queryParams_.hasEnd())throw new Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.startAt(e,t).endAt(e,t)},e.prototype.toString=function(){return a.validateArgCount("Query.toString",0,0,arguments.length),this.repo.toString()+this.path.toUrlEncodedString()},e.prototype.toJSON=function(){return a.validateArgCount("Query.toJSON",0,1,arguments.length),this.toString()},e.prototype.queryObject=function(){return this.queryParams_.getQueryObject()},e.prototype.queryIdentifier=function(){var e=this.queryObject(),t=R(e);return"{}"===t?"default":t},e.prototype.isEqual=function(t){if(a.validateArgCount("Query.isEqual",1,1,arguments.length),!(t instanceof e)){throw new Error("Query.isEqual failed: First argument must be an instance of firebase.database.Query.")}var n=this.repo===t.repo,r=this.path.equals(t.path),i=this.queryIdentifier()===t.queryIdentifier();return n&&r&&i},e.getCancelAndContextArgs_=function(e,t,n){var r={cancel:null,context:null};if(t&&n)r.cancel=t,a.validateCallback(e,3,r.cancel,!0),r.context=n,a.validateContextObject(e,4,r.context,!0);else if(t)if("object"==typeof t&&null!==t)r.context=t;else{if("function"!=typeof t)throw new Error(a.errorPrefix(e,3,!0)+" must either be a cancel callback or a context object.");r.cancel=t}return r},Object.defineProperty(e.prototype,"ref",{get:function(){return this.getRef()},enumerable:!0,configurable:!0}),e}(),et=function(){function e(){this.set={}}return e.prototype.add=function(e,t){this.set[e]=null===t||t},e.prototype.contains=function(e){return a.contains(this.set,e)},e.prototype.get=function(e){return this.contains(e)?this.set[e]:void 0},e.prototype.remove=function(e){delete this.set[e]},e.prototype.clear=function(){this.set={}},e.prototype.isEmpty=function(){return a.isEmpty(this.set)},e.prototype.count=function(){return a.getCount(this.set)},e.prototype.each=function(e){a.forEach(this.set,function(t,n){return e(t,n)})},e.prototype.keys=function(){var e=[];return a.forEach(this.set,function(t){e.push(t)}),e},e}(),tt=function(){function e(){this.value_=null,this.children_=null}return e.prototype.find=function(e){if(null!=this.value_)return this.value_.getChild(e);if(e.isEmpty()||null==this.children_)return null;var t=e.getFront();return e=e.popFront(),this.children_.contains(t)?this.children_.get(t).find(e):null},e.prototype.remember=function(t,n){if(t.isEmpty())this.value_=n,this.children_=null;else if(null!==this.value_)this.value_=this.value_.updateChild(t,n);else{null==this.children_&&(this.children_=new et);var r=t.getFront();this.children_.contains(r)||this.children_.add(r,new e);var i=this.children_.get(r);t=t.popFront(),i.remember(t,n)}},e.prototype.forget=function(e){if(e.isEmpty())return this.value_=null,this.children_=null,!0;if(null!==this.value_){if(this.value_.isLeafNode())return!1;var t=this.value_;this.value_=null;var n=this;return t.forEachChild(Ae,function(e,t){n.remember(new V(e),t)}),this.forget(e)}if(null!==this.children_){var r=e.getFront();if(e=e.popFront(),this.children_.contains(r))this.children_.get(r).forget(e)&&this.children_.remove(r);return!!this.children_.isEmpty()&&(this.children_=null,!0)}return!0},e.prototype.forEachTree=function(e,t){null!==this.value_?t(e,this.value_):this.forEachChild(function(n,r){var i=new V(e.toString()+"/"+n);r.forEachTree(i,t)})},e.prototype.forEachChild=function(e){null!==this.children_&&this.children_.each(function(t,n){e(t,n)})},e}(),nt=function(e,t){return e&&"object"==typeof e?(a.assert(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e},rt=function(e,t){var n,r=e.getPriority().val(),i=nt(r,t);if(e.isLeafNode()){var o=e,a=nt(o.getValue(),t);return a!==o.getValue()||i!==o.getPriority().val()?new Te(a,We(i)):e}var s=e;return n=s,i!==s.getPriority().val()&&(n=n.updatePriority(new Te(i))),s.forEachChild(Ae,function(e,r){var i=rt(r,t);i!==r&&(n=n.updateImmediateChild(e,i))}),n};!function(e){e[e.OVERWRITE=0]="OVERWRITE",e[e.MERGE=1]="MERGE",e[e.ACK_USER_WRITE=2]="ACK_USER_WRITE",e[e.LISTEN_COMPLETE=3]="LISTEN_COMPLETE"}(He||(He={}));var it,ot,at=function(){function e(e,t,n,r){this.fromUser=e,this.fromServer=t,this.queryId=n,this.tagged=r,a.assert(!r||t,"Tagged queries must be from server.")}return e.User=new e(!0,!1,null,!1),e.Server=new e(!1,!0,null,!1),e.forServerTaggedQuery=function(t){return new e(!1,!0,t,!0)},e}(),st=function(){function e(e,t,n){this.path=e,this.affectedTree=t,this.revert=n,this.type=He.ACK_USER_WRITE,this.source=at.User}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){if(null!=this.affectedTree.value)return a.assert(this.affectedTree.children.isEmpty(),"affectedTree should not have overlapping affected paths."),this;var n=this.affectedTree.subtree(new V(t));return new e(V.Empty,n,this.revert)}return a.assert(this.path.getFront()===t,"operationForChild called for unrelated child."),new e(this.path.popFront(),this.affectedTree,this.revert)},e}(),ut=function(){return it||(it=new Pe(I)),it},ct=function(){function e(e,t){void 0===t&&(t=ut()),this.value=e,this.children=t}return e.fromObject=function(t){var n=e.Empty;return a.forEach(t,function(e,t){n=n.set(new V(e),t)}),n},e.prototype.isEmpty=function(){return null===this.value&&this.children.isEmpty()},e.prototype.findRootMostMatchingPathAndValue=function(e,t){if(null!=this.value&&t(this.value))return{path:V.Empty,value:this.value};if(e.isEmpty())return null;var n=e.getFront(),r=this.children.get(n);if(null!==r){var i=r.findRootMostMatchingPathAndValue(e.popFront(),t);return null!=i?{path:new V(n).child(i.path),value:i.value}:null}return null},e.prototype.findRootMostValueAndPath=function(e){return this.findRootMostMatchingPathAndValue(e,function(){return!0})},e.prototype.subtree=function(t){if(t.isEmpty())return this;var n=t.getFront(),r=this.children.get(n);return null!==r?r.subtree(t.popFront()):e.Empty},e.prototype.set=function(t,n){if(t.isEmpty())return new e(n,this.children);var r=t.getFront(),i=(this.children.get(r)||e.Empty).set(t.popFront(),n),o=this.children.insert(r,i);return new e(this.value,o)},e.prototype.remove=function(t){if(t.isEmpty())return this.children.isEmpty()?e.Empty:new e(null,this.children);var n=t.getFront(),r=this.children.get(n);if(r){var i=r.remove(t.popFront()),o=void 0;return o=i.isEmpty()?this.children.remove(n):this.children.insert(n,i),null===this.value&&o.isEmpty()?e.Empty:new e(this.value,o)}return this},e.prototype.get=function(e){if(e.isEmpty())return this.value;var t=e.getFront(),n=this.children.get(t);return n?n.get(e.popFront()):null},e.prototype.setTree=function(t,n){if(t.isEmpty())return n;var r=t.getFront(),i=(this.children.get(r)||e.Empty).setTree(t.popFront(),n),o=void 0;return o=i.isEmpty()?this.children.remove(r):this.children.insert(r,i),new e(this.value,o)},e.prototype.fold=function(e){return this.fold_(V.Empty,e)},e.prototype.fold_=function(e,t){var n={};return this.children.inorderTraversal(function(r,i){n[r]=i.fold_(e.child(r),t)}),t(e,this.value,n)},e.prototype.findOnPath=function(e,t){return this.findOnPath_(e,V.Empty,t)},e.prototype.findOnPath_=function(e,t,n){var r=!!this.value&&n(t,this.value);if(r)return r;if(e.isEmpty())return null;var i=e.getFront(),o=this.children.get(i);return o?o.findOnPath_(e.popFront(),t.child(i),n):null},e.prototype.foreachOnPath=function(e,t){return this.foreachOnPath_(e,V.Empty,t)},e.prototype.foreachOnPath_=function(t,n,r){if(t.isEmpty())return this;this.value&&r(n,this.value);var i=t.getFront(),o=this.children.get(i);return o?o.foreachOnPath_(t.popFront(),n.child(i),r):e.Empty},e.prototype.foreach=function(e){this.foreach_(V.Empty,e)},e.prototype.foreach_=function(e,t){this.children.inorderTraversal(function(n,r){r.foreach_(e.child(n),t)}),this.value&&t(e,this.value)},e.prototype.foreachChild=function(e){this.children.inorderTraversal(function(t,n){n.value&&e(t,n.value)})},e.Empty=new e(null),e}(),lt=function(){function e(e,t){this.source=e,this.path=t,this.type=He.LISTEN_COMPLETE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,V.Empty):new e(this.source,this.path.popFront())},e}(),ft=function(){function e(e,t,n){this.source=e,this.path=t,this.snap=n,this.type=He.OVERWRITE}return e.prototype.operationForChild=function(t){return this.path.isEmpty()?new e(this.source,V.Empty,this.snap.getImmediateChild(t)):new e(this.source,this.path.popFront(),this.snap)},e}(),ht=function(){function e(e,t,n){this.source=e,this.path=t,this.children=n,this.type=He.MERGE}return e.prototype.operationForChild=function(t){if(this.path.isEmpty()){var n=this.children.subtree(new V(t));return n.isEmpty()?null:n.value?new ft(this.source,V.Empty,n.value):new e(this.source,V.Empty,n)}return a.assert(this.path.getFront()===t,"Can't get a merge for a child not on the path of the operation"),new e(this.source,this.path.popFront(),this.children)},e.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" merge: "+this.children.toString()+")"},e}(),pt=function(){function e(e,t,n){this.node_=e,this.fullyInitialized_=t,this.filtered_=n}return e.prototype.isFullyInitialized=function(){return this.fullyInitialized_},e.prototype.isFiltered=function(){return this.filtered_},e.prototype.isCompleteForPath=function(e){if(e.isEmpty())return this.isFullyInitialized()&&!this.filtered_;var t=e.getFront();return this.isCompleteForChild(t)},e.prototype.isCompleteForChild=function(e){return this.isFullyInitialized()&&!this.filtered_||this.node_.hasChild(e)},e.prototype.getNode=function(){return this.node_},e}(),dt=function(){function e(e,t){this.eventCache_=e,this.serverCache_=t}return e.prototype.updateEventSnap=function(t,n,r){return new e(new pt(t,n,r),this.serverCache_)},e.prototype.updateServerSnap=function(t,n,r){return new e(this.eventCache_,new pt(t,n,r))},e.prototype.getEventCache=function(){return this.eventCache_},e.prototype.getCompleteEventSnap=function(){return this.eventCache_.isFullyInitialized()?this.eventCache_.getNode():null},e.prototype.getServerCache=function(){return this.serverCache_},e.prototype.getCompleteServerSnap=function(){return this.serverCache_.isFullyInitialized()?this.serverCache_.getNode():null},e.Empty=new e(new pt(Be.EMPTY_NODE,!1,!1),new pt(Be.EMPTY_NODE,!1,!1)),e}(),vt=function(){function e(e,t,n,r,i){this.type=e,this.snapshotNode=t,this.childName=n,this.oldSnap=r,this.prevName=i}return e.valueChange=function(t){return new e(e.VALUE,t)},e.childAddedChange=function(t,n){return new e(e.CHILD_ADDED,n,t)},e.childRemovedChange=function(t,n){return new e(e.CHILD_REMOVED,n,t)},e.childChangedChange=function(t,n,r){return new e(e.CHILD_CHANGED,n,t,r)},e.childMovedChange=function(t,n){return new e(e.CHILD_MOVED,n,t)},e.CHILD_ADDED="child_added",e.CHILD_REMOVED="child_removed",e.CHILD_CHANGED="child_changed",e.CHILD_MOVED="child_moved",e.VALUE="value",e}(),mt=function(){function e(e){this.index_=e}return e.prototype.updateChild=function(e,t,n,r,i,o){a.assert(e.isIndexed(this.index_),"A node must be indexed if only a child is updated");var s=e.getImmediateChild(t);return s.getChild(r).equals(n.getChild(r))&&s.isEmpty()==n.isEmpty()?e:(null!=o&&(n.isEmpty()?e.hasChild(t)?o.trackChildChange(vt.childRemovedChange(t,s)):a.assert(e.isLeafNode(),"A child remove without an old child only makes sense on a leaf node"):s.isEmpty()?o.trackChildChange(vt.childAddedChange(t,n)):o.trackChildChange(vt.childChangedChange(t,n,s))),e.isLeafNode()&&n.isEmpty()?e:e.updateImmediateChild(t,n).withIndex(this.index_))},e.prototype.updateFullNode=function(e,t,n){return null!=n&&(e.isLeafNode()||e.forEachChild(Ae,function(e,r){t.hasChild(e)||n.trackChildChange(vt.childRemovedChange(e,r))}),t.isLeafNode()||t.forEachChild(Ae,function(t,r){if(e.hasChild(t)){var i=e.getImmediateChild(t);i.equals(r)||n.trackChildChange(vt.childChangedChange(t,r,i))}else n.trackChildChange(vt.childAddedChange(t,r))})),t.withIndex(this.index_)},e.prototype.updatePriority=function(e,t){return e.isEmpty()?Be.EMPTY_NODE:e.updatePriority(t)},e.prototype.filtersNodes=function(){return!1},e.prototype.getIndexedFilter=function(){return this},e.prototype.getIndex=function(){return this.index_},e}(),yt=function(){function e(){this.changeMap_={}}return e.prototype.trackChildChange=function(e){var t=e.type,n=e.childName;a.assert(t==vt.CHILD_ADDED||t==vt.CHILD_CHANGED||t==vt.CHILD_REMOVED,"Only child changes supported for tracking"),a.assert(".priority"!==n,"Only non-priority child changes can be tracked.");var r=a.safeGet(this.changeMap_,n);if(r){var i=r.type;if(t==vt.CHILD_ADDED&&i==vt.CHILD_REMOVED)this.changeMap_[n]=vt.childChangedChange(n,e.snapshotNode,r.snapshotNode);else if(t==vt.CHILD_REMOVED&&i==vt.CHILD_ADDED)delete this.changeMap_[n];else if(t==vt.CHILD_REMOVED&&i==vt.CHILD_CHANGED)this.changeMap_[n]=vt.childRemovedChange(n,r.oldSnap);else if(t==vt.CHILD_CHANGED&&i==vt.CHILD_ADDED)this.changeMap_[n]=vt.childAddedChange(n,e.snapshotNode);else{if(t!=vt.CHILD_CHANGED||i!=vt.CHILD_CHANGED)throw a.assertionError("Illegal combination of changes: "+e+" occurred after "+r);this.changeMap_[n]=vt.childChangedChange(n,e.snapshotNode,r.oldSnap)}}else this.changeMap_[n]=e},e.prototype.getChanges=function(){return a.getValues(this.changeMap_)},e}(),gt=new(function(){function e(){}return e.prototype.getCompleteChild=function(e){return null},e.prototype.getChildAfterChild=function(e,t,n){return null},e}()),bt=function(){function e(e,t,n){void 0===n&&(n=null),this.writes_=e,this.viewCache_=t,this.optCompleteServerCache_=n}return e.prototype.getCompleteChild=function(e){var t=this.viewCache_.getEventCache();if(t.isCompleteForChild(e))return t.getNode().getImmediateChild(e);var n=null!=this.optCompleteServerCache_?new pt(this.optCompleteServerCache_,!0,!1):this.viewCache_.getServerCache();return this.writes_.calcCompleteChild(e,n)},e.prototype.getChildAfterChild=function(e,t,n){var r=null!=this.optCompleteServerCache_?this.optCompleteServerCache_:this.viewCache_.getCompleteServerSnap(),i=this.writes_.calcIndexedSlice(r,t,1,n,e);return 0===i.length?null:i[0]},e}(),_t=function(){return function(e,t){this.viewCache=e,this.changes=t}}(),wt=function(){function e(e){this.filter_=e}return e.prototype.assertIndexed=function(e){a.assert(e.getEventCache().getNode().isIndexed(this.filter_.getIndex()),"Event snap not indexed"),a.assert(e.getServerCache().getNode().isIndexed(this.filter_.getIndex()),"Server snap not indexed")},e.prototype.applyOperation=function(t,n,r,i){var o,s,u=new yt;if(n.type===He.OVERWRITE){var c=n;c.source.fromUser?o=this.applyUserOverwrite_(t,c.path,c.snap,r,i,u):(a.assert(c.source.fromServer,"Unknown source."),s=c.source.tagged||t.getServerCache().isFiltered()&&!c.path.isEmpty(),o=this.applyServerOverwrite_(t,c.path,c.snap,r,i,s,u))}else if(n.type===He.MERGE){var l=n;l.source.fromUser?o=this.applyUserMerge_(t,l.path,l.children,r,i,u):(a.assert(l.source.fromServer,"Unknown source."),s=l.source.tagged||t.getServerCache().isFiltered(),o=this.applyServerMerge_(t,l.path,l.children,r,i,s,u))}else if(n.type===He.ACK_USER_WRITE){var f=n;o=f.revert?this.revertUserWrite_(t,f.path,r,i,u):this.ackUserWrite_(t,f.path,f.affectedTree,r,i,u)}else{if(n.type!==He.LISTEN_COMPLETE)throw a.assertionError("Unknown operation type: "+n.type);o=this.listenComplete_(t,n.path,r,u)}var h=u.getChanges();return e.maybeAddValueEvent_(t,o,h),new _t(o,h)},e.maybeAddValueEvent_=function(e,t,n){var r=t.getEventCache();if(r.isFullyInitialized()){var i=r.getNode().isLeafNode()||r.getNode().isEmpty(),o=e.getCompleteEventSnap();(n.length>0||!e.getEventCache().isFullyInitialized()||i&&!r.getNode().equals(o)||!r.getNode().getPriority().equals(o.getPriority()))&&n.push(vt.valueChange(t.getCompleteEventSnap()))}},e.prototype.generateEventCacheAfterServerEvent_=function(e,t,n,r,i){var o=e.getEventCache();if(null!=n.shadowingWrite(t))return e;var s=void 0,u=void 0;if(t.isEmpty())if(a.assert(e.getServerCache().isFullyInitialized(),"If change path is empty, we must have complete server data"),e.getServerCache().isFiltered()){var c=e.getCompleteServerSnap(),l=c instanceof Be?c:Be.EMPTY_NODE,f=n.calcCompleteEventChildren(l);s=this.filter_.updateFullNode(e.getEventCache().getNode(),f,i)}else{var h=n.calcCompleteEventCache(e.getCompleteServerSnap());s=this.filter_.updateFullNode(e.getEventCache().getNode(),h,i)}else{var p=t.getFront();if(".priority"==p){a.assert(1==t.getLength(),"Can't have a priority with additional path components");var d=o.getNode();u=e.getServerCache().getNode();var v=n.calcEventCacheAfterServerOverwrite(t,d,u);s=null!=v?this.filter_.updatePriority(d,v):o.getNode()}else{var m=t.popFront(),y=void 0;if(o.isCompleteForChild(p)){u=e.getServerCache().getNode();var g=n.calcEventCacheAfterServerOverwrite(t,o.getNode(),u);y=null!=g?o.getNode().getImmediateChild(p).updateChild(m,g):o.getNode().getImmediateChild(p)}else y=n.calcCompleteChild(p,e.getServerCache());s=null!=y?this.filter_.updateChild(o.getNode(),p,y,m,r,i):o.getNode()}}return e.updateEventSnap(s,o.isFullyInitialized()||t.isEmpty(),this.filter_.filtersNodes())},e.prototype.applyServerOverwrite_=function(e,t,n,r,i,o,a){var s,u=e.getServerCache(),c=o?this.filter_:this.filter_.getIndexedFilter();if(t.isEmpty())s=c.updateFullNode(u.getNode(),n,null);else if(c.filtersNodes()&&!u.isFiltered()){var l=u.getNode().updateChild(t,n);s=c.updateFullNode(u.getNode(),l,null)}else{var f=t.getFront();if(!u.isCompleteForPath(t)&&t.getLength()>1)return e;var h=t.popFront(),p=u.getNode().getImmediateChild(f).updateChild(h,n);s=".priority"==f?c.updatePriority(u.getNode(),p):c.updateChild(u.getNode(),f,p,h,gt,null)}var d=e.updateServerSnap(s,u.isFullyInitialized()||t.isEmpty(),c.filtersNodes()),v=new bt(r,d,i);return this.generateEventCacheAfterServerEvent_(d,t,r,v,a)},e.prototype.applyUserOverwrite_=function(e,t,n,r,i,o){var a,s,u=e.getEventCache(),c=new bt(r,e,i);if(t.isEmpty())s=this.filter_.updateFullNode(e.getEventCache().getNode(),n,o),a=e.updateEventSnap(s,!0,this.filter_.filtersNodes());else{var l=t.getFront();if(".priority"===l)s=this.filter_.updatePriority(e.getEventCache().getNode(),n),a=e.updateEventSnap(s,u.isFullyInitialized(),u.isFiltered());else{var f=t.popFront(),h=u.getNode().getImmediateChild(l),p=void 0;if(f.isEmpty())p=n;else{var d=c.getCompleteChild(l);p=null!=d?".priority"===f.getBack()&&d.getChild(f.parent()).isEmpty()?d:d.updateChild(f,n):Be.EMPTY_NODE}if(h.equals(p))a=e;else{var v=this.filter_.updateChild(u.getNode(),l,p,f,c,o);a=e.updateEventSnap(v,u.isFullyInitialized(),this.filter_.filtersNodes())}}}return a},e.cacheHasChild_=function(e,t){return e.getEventCache().isCompleteForChild(t)},e.prototype.applyUserMerge_=function(t,n,r,i,o,a){var s=this,u=t;return r.foreach(function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())&&(u=s.applyUserOverwrite_(u,l,c,i,o,a))}),r.foreach(function(r,c){var l=n.child(r);e.cacheHasChild_(t,l.getFront())||(u=s.applyUserOverwrite_(u,l,c,i,o,a))}),u},e.prototype.applyMerge_=function(e,t){return t.foreach(function(t,n){e=e.updateChild(t,n)}),e},e.prototype.applyServerMerge_=function(e,t,n,r,i,o,a){var s=this;if(e.getServerCache().getNode().isEmpty()&&!e.getServerCache().isFullyInitialized())return e;var u,c=e;u=t.isEmpty()?n:ct.Empty.setTree(t,n);var l=e.getServerCache().getNode();return u.children.inorderTraversal(function(t,n){if(l.hasChild(t)){var u=e.getServerCache().getNode().getImmediateChild(t),f=s.applyMerge_(u,n);c=s.applyServerOverwrite_(c,new V(t),f,r,i,o,a)}}),u.children.inorderTraversal(function(t,n){var u=!e.getServerCache().isCompleteForChild(t)&&null==n.value;if(!l.hasChild(t)&&!u){var f=e.getServerCache().getNode().getImmediateChild(t),h=s.applyMerge_(f,n);c=s.applyServerOverwrite_(c,new V(t),h,r,i,o,a)}}),c},e.prototype.ackUserWrite_=function(e,t,n,r,i,o){if(null!=r.shadowingWrite(t))return e;var a=e.getServerCache().isFiltered(),s=e.getServerCache();if(null!=n.value){if(t.isEmpty()&&s.isFullyInitialized()||s.isCompleteForPath(t))return this.applyServerOverwrite_(e,t,s.getNode().getChild(t),r,i,a,o);if(t.isEmpty()){var u=ct.Empty;return s.getNode().forEachChild(be,function(e,t){u=u.set(new V(e),t)}),this.applyServerMerge_(e,t,u,r,i,a,o)}return e}var c=ct.Empty;return n.foreach(function(e,n){var r=t.child(e);s.isCompleteForPath(r)&&(c=c.set(e,s.getNode().getChild(r)))}),this.applyServerMerge_(e,t,c,r,i,a,o)},e.prototype.listenComplete_=function(e,t,n,r){var i=e.getServerCache(),o=e.updateServerSnap(i.getNode(),i.isFullyInitialized()||t.isEmpty(),i.isFiltered());return this.generateEventCacheAfterServerEvent_(o,t,n,gt,r)},e.prototype.revertUserWrite_=function(e,t,n,r,i){var o;if(null!=n.shadowingWrite(t))return e;var s=new bt(n,e,r),u=e.getEventCache().getNode(),c=void 0;if(t.isEmpty()||".priority"===t.getFront()){var l=void 0;if(e.getServerCache().isFullyInitialized())l=n.calcCompleteEventCache(e.getCompleteServerSnap());else{var f=e.getServerCache().getNode();a.assert(f instanceof Be,"serverChildren would be complete if leaf node"),l=n.calcCompleteEventChildren(f)}l=l,c=this.filter_.updateFullNode(u,l,i)}else{var h=t.getFront(),p=n.calcCompleteChild(h,e.getServerCache());null==p&&e.getServerCache().isCompleteForChild(h)&&(p=u.getImmediateChild(h)),(c=null!=p?this.filter_.updateChild(u,h,p,t.popFront(),s,i):e.getEventCache().getNode().hasChild(h)?this.filter_.updateChild(u,h,Be.EMPTY_NODE,t.popFront(),s,i):u).isEmpty()&&e.getServerCache().isFullyInitialized()&&(o=n.calcCompleteEventCache(e.getCompleteServerSnap())).isLeafNode()&&(c=this.filter_.updateFullNode(c,o,i))}return o=e.getServerCache().isFullyInitialized()||null!=n.shadowingWrite(V.Empty),e.updateEventSnap(c,o,this.filter_.filtersNodes())},e}(),Et=function(){function e(e){this.query_=e,this.index_=this.query_.getQueryParams().getIndex()}return e.prototype.generateEventsForChanges=function(e,t,n){var r=this,i=[],o=[];return e.forEach(function(e){e.type===vt.CHILD_CHANGED&&r.index_.indexedValueChanged(e.oldSnap,e.snapshotNode)&&o.push(vt.childMovedChange(e.childName,e.snapshotNode))}),this.generateEventsForType_(i,vt.CHILD_REMOVED,e,n,t),this.generateEventsForType_(i,vt.CHILD_ADDED,e,n,t),this.generateEventsForType_(i,vt.CHILD_MOVED,o,n,t),this.generateEventsForType_(i,vt.CHILD_CHANGED,e,n,t),this.generateEventsForType_(i,vt.VALUE,e,n,t),i},e.prototype.generateEventsForType_=function(e,t,n,r,i){var o=this,a=n.filter(function(e){return e.type===t});a.sort(this.compareChanges_.bind(this)),a.forEach(function(t){var n=o.materializeSingleChange_(t,i);r.forEach(function(r){r.respondsTo(t.type)&&e.push(r.createEvent(n,o.query_))})})},e.prototype.materializeSingleChange_=function(e,t){return"value"===e.type||"child_removed"===e.type?e:(e.prevName=t.getPredecessorChildName(e.childName,e.snapshotNode,this.index_),e)},e.prototype.compareChanges_=function(e,t){if(null==e.childName||null==t.childName)throw a.assertionError("Should only compare child_ events.");var n=new me(e.childName,e.snapshotNode),r=new me(t.childName,t.snapshotNode);return this.index_.compare(n,r)},e}(),xt=function(){function e(e,t){this.query_=e,this.eventRegistrations_=[];var n=this.query_.getQueryParams(),r=new mt(n.getIndex()),i=n.getNodeFilter();this.processor_=new wt(i);var o=t.getServerCache(),a=t.getEventCache(),s=r.updateFullNode(Be.EMPTY_NODE,o.getNode(),null),u=i.updateFullNode(Be.EMPTY_NODE,a.getNode(),null),c=new pt(s,o.isFullyInitialized(),r.filtersNodes()),l=new pt(u,a.isFullyInitialized(),i.filtersNodes());this.viewCache_=new dt(l,c),this.eventGenerator_=new Et(this.query_)}return e.prototype.getQuery=function(){return this.query_},e.prototype.getServerCache=function(){return this.viewCache_.getServerCache().getNode()},e.prototype.getCompleteServerCache=function(e){var t=this.viewCache_.getCompleteServerSnap();return t&&(this.query_.getQueryParams().loadsAllData()||!e.isEmpty()&&!t.getImmediateChild(e.getFront()).isEmpty())?t.getChild(e):null},e.prototype.isEmpty=function(){return 0===this.eventRegistrations_.length},e.prototype.addEventRegistration=function(e){this.eventRegistrations_.push(e)},e.prototype.removeEventRegistration=function(e,t){var n=[];if(t){a.assert(null==e,"A cancel should cancel all event registrations.");var r=this.query_.path;this.eventRegistrations_.forEach(function(e){t=t;var i=e.createCancelEvent(t,r);i&&n.push(i)})}if(e){for(var i=[],o=0;o<this.eventRegistrations_.length;++o){var s=this.eventRegistrations_[o];if(s.matches(e)){if(e.hasAnyCallback()){i=i.concat(this.eventRegistrations_.slice(o+1));break}}else i.push(s)}this.eventRegistrations_=i}else this.eventRegistrations_=[];return n},e.prototype.applyOperation=function(e,t,n){e.type===He.MERGE&&null!==e.source.queryId&&(a.assert(this.viewCache_.getCompleteServerSnap(),"We should always have a full cache before handling merges"),a.assert(this.viewCache_.getCompleteEventSnap(),"Missing event cache, even though we have a server cache"));var r=this.viewCache_,i=this.processor_.applyOperation(r,e,t,n);return this.processor_.assertIndexed(i.viewCache),a.assert(i.viewCache.getServerCache().isFullyInitialized()||!r.getServerCache().isFullyInitialized(),"Once a server snap is complete, it should never go back"),this.viewCache_=i.viewCache,this.generateEventsForChanges_(i.changes,i.viewCache.getEventCache().getNode(),null)},e.prototype.getInitialEvents=function(e){var t=this.viewCache_.getEventCache(),n=[];t.getNode().isLeafNode()||t.getNode().forEachChild(Ae,function(e,t){n.push(vt.childAddedChange(e,t))});return t.isFullyInitialized()&&n.push(vt.valueChange(t.getNode())),this.generateEventsForChanges_(n,t.getNode(),e)},e.prototype.generateEventsForChanges_=function(e,t,n){var r=n?[n]:this.eventRegistrations_;return this.eventGenerator_.generateEventsForChanges(e,t,r)},e}(),Ct=function(){function e(){this.views_={}}return Object.defineProperty(e,"__referenceConstructor",{get:function(){return a.assert(ot,"Reference.ts has not been loaded"),ot},set:function(e){a.assert(!ot,"__referenceConstructor has already been defined"),ot=e},enumerable:!0,configurable:!0}),e.prototype.isEmpty=function(){return a.isEmpty(this.views_)},e.prototype.applyOperation=function(e,t,n){var r=e.source.queryId;if(null!==r){var i=a.safeGet(this.views_,r);return a.assert(null!=i,"SyncTree gave us an op for an invalid query."),i.applyOperation(e,t,n)}var o=[];return a.forEach(this.views_,function(r,i){o=o.concat(i.applyOperation(e,t,n))}),o},e.prototype.addEventRegistration=function(e,t,n,r,i){var o=e.queryIdentifier(),s=a.safeGet(this.views_,o);if(!s){var u=n.calcCompleteEventCache(i?r:null),c=!1;u?c=!0:r instanceof Be?(u=n.calcCompleteEventChildren(r),c=!1):(u=Be.EMPTY_NODE,c=!1);var l=new dt(new pt(u,c,!1),new pt(r,i,!1));s=new xt(e,l),this.views_[o]=s}return s.addEventRegistration(t),s.getInitialEvents(t)},e.prototype.removeEventRegistration=function(t,n,r){var i=t.queryIdentifier(),o=[],s=[],u=this.hasCompleteView();if("default"===i){var c=this;a.forEach(this.views_,function(e,t){s=s.concat(t.removeEventRegistration(n,r)),t.isEmpty()&&(delete c.views_[e],t.getQuery().getQueryParams().loadsAllData()||o.push(t.getQuery()))})}else{var l=a.safeGet(this.views_,i);l&&(s=s.concat(l.removeEventRegistration(n,r)),l.isEmpty()&&(delete this.views_[i],l.getQuery().getQueryParams().loadsAllData()||o.push(l.getQuery())))}return u&&!this.hasCompleteView()&&o.push(new e.__referenceConstructor(t.repo,t.path)),{removed:o,events:s}},e.prototype.getQueryViews=function(){var e=this;return Object.keys(this.views_).map(function(t){return e.views_[t]}).filter(function(e){return!e.getQuery().getQueryParams().loadsAllData()})},e.prototype.getCompleteServerCache=function(e){var t=null;return a.forEach(this.views_,function(n,r){t=t||r.getCompleteServerCache(e)}),t},e.prototype.viewForQuery=function(e){if(e.getQueryParams().loadsAllData())return this.getCompleteView();var t=e.queryIdentifier();return a.safeGet(this.views_,t)},e.prototype.viewExistsForQuery=function(e){return null!=this.viewForQuery(e)},e.prototype.hasCompleteView=function(){return null!=this.getCompleteView()},e.prototype.getCompleteView=function(){return a.findValue(this.views_,function(e){return e.getQuery().getQueryParams().loadsAllData()})||null},e}(),Tt=function(){function e(e){this.writeTree_=e}return e.prototype.addWrite=function(t,n){if(t.isEmpty())return new e(new ct(n));var r=this.writeTree_.findRootMostValueAndPath(t);if(null!=r){var i=r.path,o=r.value,a=V.relativePath(i,t);return o=o.updateChild(a,n),new e(this.writeTree_.set(i,o))}var s=new ct(n);return new e(this.writeTree_.setTree(t,s))},e.prototype.addWrites=function(e,t){var n=this;return a.forEach(t,function(t,r){n=n.addWrite(e.child(t),r)}),n},e.prototype.removeWrite=function(t){return t.isEmpty()?e.Empty:new e(this.writeTree_.setTree(t,ct.Empty))},e.prototype.hasCompleteWrite=function(e){return null!=this.getCompleteNode(e)},e.prototype.getCompleteNode=function(e){var t=this.writeTree_.findRootMostValueAndPath(e);return null!=t?this.writeTree_.get(t.path).getChild(V.relativePath(t.path,e)):null},e.prototype.getCompleteChildren=function(){var e=[],t=this.writeTree_.value;return null!=t?t.isLeafNode()||t.forEachChild(Ae,function(t,n){e.push(new me(t,n))}):this.writeTree_.children.inorderTraversal(function(t,n){null!=n.value&&e.push(new me(t,n.value))}),e},e.prototype.childCompoundWrite=function(t){if(t.isEmpty())return this;var n=this.getCompleteNode(t);return new e(null!=n?new ct(n):this.writeTree_.subtree(t))},e.prototype.isEmpty=function(){return this.writeTree_.isEmpty()},e.prototype.apply=function(t){return e.applySubtreeWrite_(V.Empty,this.writeTree_,t)},e.Empty=new e(new ct(null)),e.applySubtreeWrite_=function(t,n,r){if(null!=n.value)return r.updateChild(t,n.value);var i=null;return n.children.inorderTraversal(function(n,o){".priority"===n?(a.assert(null!==o.value,"Priority writes must always be leaf nodes"),i=o.value):r=e.applySubtreeWrite_(t.child(n),o,r)}),r.getChild(t).isEmpty()||null===i||(r=r.updateChild(t.child(".priority"),i)),r},e}(),kt=function(){function e(){this.visibleWrites_=Tt.Empty,this.allWrites_=[],this.lastWriteId_=-1}return e.prototype.childWrites=function(e){return new St(e,this)},e.prototype.addOverwrite=function(e,t,n,r){a.assert(n>this.lastWriteId_,"Stacking an older write on top of newer ones"),void 0===r&&(r=!0),this.allWrites_.push({path:e,snap:t,writeId:n,visible:r}),r&&(this.visibleWrites_=this.visibleWrites_.addWrite(e,t)),this.lastWriteId_=n},e.prototype.addMerge=function(e,t,n){a.assert(n>this.lastWriteId_,"Stacking an older merge on top of newer ones"),this.allWrites_.push({path:e,children:t,writeId:n,visible:!0}),this.visibleWrites_=this.visibleWrites_.addWrites(e,t),this.lastWriteId_=n},e.prototype.getWrite=function(e){for(var t=0;t<this.allWrites_.length;t++){var n=this.allWrites_[t];if(n.writeId===e)return n}return null},e.prototype.removeWrite=function(e){var t=this,n=this.allWrites_.findIndex(function(t){return t.writeId===e});a.assert(n>=0,"removeWrite called with nonexistent writeId.");var r=this.allWrites_[n];this.allWrites_.splice(n,1);for(var i=r.visible,o=!1,s=this.allWrites_.length-1;i&&s>=0;){var u=this.allWrites_[s];u.visible&&(s>=n&&this.recordContainsPath_(u,r.path)?i=!1:r.path.contains(u.path)&&(o=!0)),s--}if(i){if(o)return this.resetTree_(),!0;if(r.snap)this.visibleWrites_=this.visibleWrites_.removeWrite(r.path);else{var c=r.children;a.forEach(c,function(e){t.visibleWrites_=t.visibleWrites_.removeWrite(r.path.child(e))})}return!0}return!1},e.prototype.getCompleteWriteData=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcCompleteEventCache=function(t,n,r,i){if(r||i){var o=this.visibleWrites_.childCompoundWrite(t);if(!i&&o.isEmpty())return n;if(i||null!=n||o.hasCompleteWrite(V.Empty)){var a=e.layerTree_(this.allWrites_,function(e){return(e.visible||i)&&(!r||!~r.indexOf(e.writeId))&&(e.path.contains(t)||t.contains(e.path))},t);c=n||Be.EMPTY_NODE;return a.apply(c)}return null}var s=this.visibleWrites_.getCompleteNode(t);if(null!=s)return s;var u=this.visibleWrites_.childCompoundWrite(t);if(u.isEmpty())return n;if(null!=n||u.hasCompleteWrite(V.Empty)){var c=n||Be.EMPTY_NODE;return u.apply(c)}return null},e.prototype.calcCompleteEventChildren=function(e,t){var n=Be.EMPTY_NODE,r=this.visibleWrites_.getCompleteNode(e);if(r)return r.isLeafNode()||r.forEachChild(Ae,function(e,t){n=n.updateImmediateChild(e,t)}),n;if(t){var i=this.visibleWrites_.childCompoundWrite(e);return t.forEachChild(Ae,function(e,t){var r=i.childCompoundWrite(new V(e)).apply(t);n=n.updateImmediateChild(e,r)}),i.getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n}return this.visibleWrites_.childCompoundWrite(e).getCompleteChildren().forEach(function(e){n=n.updateImmediateChild(e.name,e.node)}),n},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n,r){a.assert(n||r,"Either existingEventSnap or existingServerSnap must exist");var i=e.child(t);if(this.visibleWrites_.hasCompleteWrite(i))return null;var o=this.visibleWrites_.childCompoundWrite(i);return o.isEmpty()?r.getChild(t):o.apply(r.getChild(t))},e.prototype.calcCompleteChild=function(e,t,n){var r=e.child(t),i=this.visibleWrites_.getCompleteNode(r);return null!=i?i:n.isCompleteForChild(t)?this.visibleWrites_.childCompoundWrite(r).apply(n.getNode().getImmediateChild(t)):null},e.prototype.shadowingWrite=function(e){return this.visibleWrites_.getCompleteNode(e)},e.prototype.calcIndexedSlice=function(e,t,n,r,i,o){var a,s=this.visibleWrites_.childCompoundWrite(e),u=s.getCompleteNode(V.Empty);if(null!=u)a=u;else{if(null==t)return[];a=s.apply(t)}if((a=a.withIndex(o)).isEmpty()||a.isLeafNode())return[];for(var c=[],l=o.getCompare(),f=i?a.getReverseIteratorFrom(n,o):a.getIteratorFrom(n,o),h=f.getNext();h&&c.length<r;)0!==l(h,n)&&c.push(h),h=f.getNext();return c},e.prototype.recordContainsPath_=function(e,t){return e.snap?e.path.contains(t):!!a.findKey(e.children,function(n,r){return e.path.child(r).contains(t)})},e.prototype.resetTree_=function(){this.visibleWrites_=e.layerTree_(this.allWrites_,e.DefaultFilter_,V.Empty),this.allWrites_.length>0?this.lastWriteId_=this.allWrites_[this.allWrites_.length-1].writeId:this.lastWriteId_=-1},e.DefaultFilter_=function(e){return e.visible},e.layerTree_=function(e,t,n){for(var r=Tt.Empty,i=0;i<e.length;++i){var o=e[i];if(t(o)){var s=o.path,u=void 0;if(o.snap)n.contains(s)?(u=V.relativePath(n,s),r=r.addWrite(u,o.snap)):s.contains(n)&&(u=V.relativePath(s,n),r=r.addWrite(V.Empty,o.snap.getChild(u)));else{if(!o.children)throw a.assertionError("WriteRecord should have .snap or .children");if(n.contains(s))u=V.relativePath(n,s),r=r.addWrites(u,o.children);else if(s.contains(n))if((u=V.relativePath(s,n)).isEmpty())r=r.addWrites(V.Empty,o.children);else{var c=a.safeGet(o.children,u.getFront());if(c){var l=c.getChild(u.popFront());r=r.addWrite(V.Empty,l)}}}}}return r},e}(),St=function(){function e(e,t){this.treePath_=e,this.writeTree_=t}return e.prototype.calcCompleteEventCache=function(e,t,n){return this.writeTree_.calcCompleteEventCache(this.treePath_,e,t,n)},e.prototype.calcCompleteEventChildren=function(e){return this.writeTree_.calcCompleteEventChildren(this.treePath_,e)},e.prototype.calcEventCacheAfterServerOverwrite=function(e,t,n){return this.writeTree_.calcEventCacheAfterServerOverwrite(this.treePath_,e,t,n)},e.prototype.shadowingWrite=function(e){return this.writeTree_.shadowingWrite(this.treePath_.child(e))},e.prototype.calcIndexedSlice=function(e,t,n,r,i){return this.writeTree_.calcIndexedSlice(this.treePath_,e,t,n,r,i)},e.prototype.calcCompleteChild=function(e,t){return this.writeTree_.calcCompleteChild(this.treePath_,e,t)},e.prototype.child=function(t){return new e(this.treePath_.child(t),this.writeTree_)},e}(),At=function(){function e(e){this.listenProvider_=e,this.syncPointTree_=ct.Empty,this.pendingWriteTree_=new kt,this.tagToQueryMap_={},this.queryToTagMap_={}}return e.prototype.applyUserOverwrite=function(e,t,n,r){return this.pendingWriteTree_.addOverwrite(e,t,n,r),r?this.applyOperationToSyncPoints_(new ft(at.User,e,t)):[]},e.prototype.applyUserMerge=function(e,t,n){this.pendingWriteTree_.addMerge(e,t,n);var r=ct.fromObject(t);return this.applyOperationToSyncPoints_(new ht(at.User,e,r))},e.prototype.ackUserWrite=function(e,t){void 0===t&&(t=!1);var n=this.pendingWriteTree_.getWrite(e);if(this.pendingWriteTree_.removeWrite(e)){var r=ct.Empty;return null!=n.snap?r=r.set(V.Empty,!0):a.forEach(n.children,function(e,t){r=r.set(new V(e),t)}),this.applyOperationToSyncPoints_(new st(n.path,r,t))}return[]},e.prototype.applyServerOverwrite=function(e,t){return this.applyOperationToSyncPoints_(new ft(at.Server,e,t))},e.prototype.applyServerMerge=function(e,t){var n=ct.fromObject(t);return this.applyOperationToSyncPoints_(new ht(at.Server,e,n))},e.prototype.applyListenComplete=function(e){return this.applyOperationToSyncPoints_(new lt(at.Server,e))},e.prototype.applyTaggedQueryOverwrite=function(t,n,r){var i=this.queryKeyForTag_(r);if(null!=i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,u=V.relativePath(a,t),c=new ft(at.forServerTaggedQuery(s),u,n);return this.applyTaggedOperation_(a,c)}return[]},e.prototype.applyTaggedQueryMerge=function(t,n,r){var i=this.queryKeyForTag_(r);if(i){var o=e.parseQueryKey_(i),a=o.path,s=o.queryId,u=V.relativePath(a,t),c=ct.fromObject(n),l=new ht(at.forServerTaggedQuery(s),u,c);return this.applyTaggedOperation_(a,l)}return[]},e.prototype.applyTaggedListenComplete=function(t,n){var r=this.queryKeyForTag_(n);if(r){var i=e.parseQueryKey_(r),o=i.path,a=i.queryId,s=V.relativePath(o,t),u=new lt(at.forServerTaggedQuery(a),s);return this.applyTaggedOperation_(o,u)}return[]},e.prototype.addEventRegistration=function(t,n){var r=t.path,i=null,o=!1;this.syncPointTree_.foreachOnPath(r,function(e,t){var n=V.relativePath(e,r);i=i||t.getCompleteServerCache(n),o=o||t.hasCompleteView()});var s,u=this.syncPointTree_.get(r);(u?(o=o||u.hasCompleteView(),i=i||u.getCompleteServerCache(V.Empty)):(u=new Ct,this.syncPointTree_=this.syncPointTree_.set(r,u)),null!=i)?s=!0:(s=!1,i=Be.EMPTY_NODE,this.syncPointTree_.subtree(r).foreachChild(function(e,t){var n=t.getCompleteServerCache(V.Empty);n&&(i=i.updateImmediateChild(e,n))}));var c=u.viewExistsForQuery(t);if(!c&&!t.getQueryParams().loadsAllData()){var l=e.makeQueryKey_(t);a.assert(!(l in this.queryToTagMap_),"View does not exist, but we have a tag");var f=e.getNextQueryTag_();this.queryToTagMap_[l]=f,this.tagToQueryMap_["_"+f]=l}var h=this.pendingWriteTree_.childWrites(r),p=u.addEventRegistration(t,n,h,i,s);if(!c&&!o){var d=u.viewForQuery(t);p=p.concat(this.setupListener_(t,d))}return p},e.prototype.removeEventRegistration=function(t,n,r){var i=this,o=t.path,a=this.syncPointTree_.get(o),s=[];if(a&&("default"===t.queryIdentifier()||a.viewExistsForQuery(t))){var u=a.removeEventRegistration(t,n,r);a.isEmpty()&&(this.syncPointTree_=this.syncPointTree_.remove(o));var c=u.removed;s=u.events;var l=-1!==c.findIndex(function(e){return e.getQueryParams().loadsAllData()}),f=this.syncPointTree_.findOnPath(o,function(e,t){return t.hasCompleteView()});if(l&&!f){var h=this.syncPointTree_.subtree(o);if(!h.isEmpty())for(var p=this.collectDistinctViewsForSubTree_(h),d=0;d<p.length;++d){var v=p[d],m=v.getQuery(),y=this.createListenerForView_(v);this.listenProvider_.startListening(e.queryForListening_(m),this.tagForQuery_(m),y.hashFn,y.onComplete)}}if(!f&&c.length>0&&!r)if(l){this.listenProvider_.stopListening(e.queryForListening_(t),null)}else c.forEach(function(t){var n=i.queryToTagMap_[e.makeQueryKey_(t)];i.listenProvider_.stopListening(e.queryForListening_(t),n)});this.removeTags_(c)}return s},e.prototype.calcCompleteEventCache=function(e,t){var n=this.pendingWriteTree_,r=this.syncPointTree_.findOnPath(e,function(t,n){var r=V.relativePath(t,e),i=n.getCompleteServerCache(r);if(i)return i});return n.calcCompleteEventCache(e,r,t,!0)},e.prototype.collectDistinctViewsForSubTree_=function(e){return e.fold(function(e,t,n){if(t&&t.hasCompleteView())return[t.getCompleteView()];var r=[];return t&&(r=t.getQueryViews()),a.forEach(n,function(e,t){r=r.concat(t)}),r})},e.prototype.removeTags_=function(t){for(var n=0;n<t.length;++n){var r=t[n];if(!r.getQueryParams().loadsAllData()){var i=e.makeQueryKey_(r),o=this.queryToTagMap_[i];delete this.queryToTagMap_[i],delete this.tagToQueryMap_["_"+o]}}},e.queryForListening_=function(e){return e.getQueryParams().loadsAllData()&&!e.getQueryParams().isDefault()?e.getRef():e},e.prototype.setupListener_=function(t,n){var r=t.path,i=this.tagForQuery_(t),o=this.createListenerForView_(n),s=this.listenProvider_.startListening(e.queryForListening_(t),i,o.hashFn,o.onComplete),u=this.syncPointTree_.subtree(r);if(i)a.assert(!u.value.hasCompleteView(),"If we're adding a query, it shouldn't be shadowed");else for(var c=u.fold(function(e,t,n){if(!e.isEmpty()&&t&&t.hasCompleteView())return[t.getCompleteView().getQuery()];var r=[];return t&&(r=r.concat(t.getQueryViews().map(function(e){return e.getQuery()}))),a.forEach(n,function(e,t){r=r.concat(t)}),r}),l=0;l<c.length;++l){var f=c[l];this.listenProvider_.stopListening(e.queryForListening_(f),this.tagForQuery_(f))}return s},e.prototype.createListenerForView_=function(e){var t=this,n=e.getQuery(),r=this.tagForQuery_(n);return{hashFn:function(){return(e.getServerCache()||Be.EMPTY_NODE).hash()},onComplete:function(e){if("ok"===e)return r?t.applyTaggedListenComplete(n.path,r):t.applyListenComplete(n.path);var i=function(e,t){var n="Unknown Error";"too_big"===e?n="The data requested exceeds the maximum size that can be accessed with a single request.":"permission_denied"==e?n="Client doesn't have permission to access the desired data.":"unavailable"==e&&(n="The service is unavailable");var r=new Error(e+" at "+t.path.toString()+": "+n);return r.code=e.toUpperCase(),r}(e,n);return t.removeEventRegistration(n,null,i)}}},e.makeQueryKey_=function(e){return e.path.toString()+"$"+e.queryIdentifier()},e.parseQueryKey_=function(e){var t=e.indexOf("$");return a.assert(-1!==t&&t<e.length-1,"Bad queryKey."),{queryId:e.substr(t+1),path:new V(e.substr(0,t))}},e.prototype.queryKeyForTag_=function(e){return this.tagToQueryMap_["_"+e]},e.prototype.tagForQuery_=function(t){var n=e.makeQueryKey_(t);return a.safeGet(this.queryToTagMap_,n)},e.getNextQueryTag_=function(){return e.nextQueryTag_++},e.prototype.applyTaggedOperation_=function(e,t){var n=this.syncPointTree_.get(e);a.assert(n,"Missing sync point for query tag that we're tracking");var r=this.pendingWriteTree_.childWrites(e);return n.applyOperation(t,r,null)},e.prototype.applyOperationToSyncPoints_=function(e){return this.applyOperationHelper_(e,this.syncPointTree_,null,this.pendingWriteTree_.childWrites(V.Empty))},e.prototype.applyOperationHelper_=function(e,t,n,r){if(e.path.isEmpty())return this.applyOperationDescendantsHelper_(e,t,n,r);var i=t.get(V.Empty);null==n&&null!=i&&(n=i.getCompleteServerCache(V.Empty));var o=[],a=e.path.getFront(),s=e.operationForChild(a),u=t.children.get(a);if(u&&s){var c=n?n.getImmediateChild(a):null,l=r.child(a);o=o.concat(this.applyOperationHelper_(s,u,c,l))}return i&&(o=o.concat(i.applyOperation(e,r,n))),o},e.prototype.applyOperationDescendantsHelper_=function(e,t,n,r){var i=this,o=t.get(V.Empty);null==n&&null!=o&&(n=o.getCompleteServerCache(V.Empty));var a=[];return t.children.inorderTraversal(function(t,o){var s=n?n.getImmediateChild(t):null,u=r.child(t),c=e.operationForChild(t);c&&(a=a.concat(i.applyOperationDescendantsHelper_(c,o,s,u)))}),o&&(a=a.concat(o.applyOperation(e,r,n))),a},e.nextQueryTag_=1,e}(),Nt=function(){function e(){this.rootNode_=Be.EMPTY_NODE}return e.prototype.getNode=function(e){return this.rootNode_.getChild(e)},e.prototype.updateSnapshot=function(e,t){this.rootNode_=this.rootNode_.updateChild(e,t)},e}(),Ot=function(){function e(e){this.app_=e}return e.prototype.getToken=function(e){return this.app_.INTERNAL.getToken(e).then(null,function(e){return e&&"auth/token-not-initialized"===e.code?(E("Got auth/token-not-initialized error. Treating as null token."),null):Promise.reject(e)})},e.prototype.addTokenChangeListener=function(e){this.app_.INTERNAL.addAuthTokenListener(e)},e.prototype.removeTokenChangeListener=function(e){this.app_.INTERNAL.removeAuthTokenListener(e)},e.prototype.notifyForInvalidToken=function(){var e='Provided authentication credentials for the app named "'+this.app_.name+'" are invalid. This usually indicates your app was not initialized correctly. ';"credential"in this.app_.options?e+='Make sure the "credential" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':"serviceAccount"in this.app_.options?e+='Make sure the "serviceAccount" property provided to initializeApp() is authorized to access the specified "databaseURL" and is from the correct project.':e+='Make sure the "apiKey" and "databaseURL" properties provided to initializeApp() match the values provided for your app at https://console.firebase.google.com/.',k(e)},e}(),It=function(){function e(){this.counters_={}}return e.prototype.incrementCounter=function(e,t){void 0===t&&(t=1),a.contains(this.counters_,e)||(this.counters_[e]=0),this.counters_[e]+=t},e.prototype.get=function(){return a.deepCopy(this.counters_)},e}(),Pt=function(){function e(){}return e.getCollection=function(e){var t=e.toString();return this.collections_[t]||(this.collections_[t]=new It),this.collections_[t]},e.getOrCreateReporter=function(e,t){var n=e.toString();return this.reporters_[n]||(this.reporters_[n]=t()),this.reporters_[n]},e.collections_={},e.reporters_={},e}(),Rt=function(){function e(e){this.collection_=e,this.last_=null}return e.prototype.get=function(){var e=this.collection_.get(),t=a.clone(e);return this.last_&&a.forEach(this.last_,function(e,n){t[e]=t[e]-n}),this.last_=e,t},e}(),Dt=1e4,Mt=3e4,Lt=function(){function e(e,t){this.server_=t,this.statsToReport_={},this.statsListener_=new Rt(e);var n=Dt+(Mt-Dt)*Math.random();q(this.reportStats_.bind(this),Math.floor(n))}return e.prototype.includeStat=function(e){this.statsToReport_[e]=!0},e.prototype.reportStats_=function(){var e=this,t=this.statsListener_.get(),n={},r=!1;a.forEach(t,function(t,i){i>0&&a.contains(e.statsToReport_,t)&&(n[t]=i,r=!0)}),r&&this.server_.reportStats(n),q(this.reportStats_.bind(this),Math.floor(2*Math.random()*3e5))},e}(),jt=function(){function e(){this.eventLists_=[],this.recursionDepth_=0}return e.prototype.queueEvents=function(e){for(var t=null,n=0;n<e.length;n++){var r=e[n],i=r.getPath();null===t||i.equals(t.getPath())||(this.eventLists_.push(t),t=null),null===t&&(t=new Ft(i)),t.add(r)}t&&this.eventLists_.push(t)},e.prototype.raiseEventsAtPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_(function(t){return t.equals(e)})},e.prototype.raiseEventsForChangedPath=function(e,t){this.queueEvents(t),this.raiseQueuedEventsMatchingPredicate_(function(t){return t.contains(e)||e.contains(t)})},e.prototype.raiseQueuedEventsMatchingPredicate_=function(e){this.recursionDepth_++;for(var t=!0,n=0;n<this.eventLists_.length;n++){var r=this.eventLists_[n];if(r)e(r.getPath())?(this.eventLists_[n].raise(),this.eventLists_[n]=null):t=!1}t&&(this.eventLists_=[]),this.recursionDepth_--},e}(),Ft=function(){function e(e){this.path_=e,this.events_=[]}return e.prototype.add=function(e){this.events_.push(e)},e.prototype.raise=function(){for(var e=0;e<this.events_.length;e++){var t=this.events_[e];if(null!==t){this.events_[e]=null;var n=t.getEventRunner();b&&E("event: "+t.toString()),U(n)}}},e.prototype.getPath=function(){return this.path_},e}(),Ut=function(){function e(e){this.allowedEvents_=e,this.listeners_={},a.assert(Array.isArray(e)&&e.length>0,"Requires a non-empty array")}return e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Array.isArray(this.listeners_[e]))for(var r=this.listeners_[e].slice(),i=0;i<r.length;i++)r[i].callback.apply(r[i].context,t)},e.prototype.on=function(e,t,n){this.validateEventType_(e),this.listeners_[e]=this.listeners_[e]||[],this.listeners_[e].push({callback:t,context:n});var r=this.getInitialEvent(e);r&&t.apply(n,r)},e.prototype.off=function(e,t,n){this.validateEventType_(e);for(var r=this.listeners_[e]||[],i=0;i<r.length;i++)if(r[i].callback===t&&(!n||n===r[i].context))return void r.splice(i,1)},e.prototype.validateEventType_=function(e){a.assert(this.allowedEvents_.find(function(t){return t===e}),"Unknown event: "+e)},e}(),Bt=function(e){function t(){var t,n,r=e.call(this,["visible"])||this;return"undefined"!=typeof document&&void 0!==document.addEventListener&&(void 0!==document.hidden?(n="visibilitychange",t="hidden"):void 0!==document.mozHidden?(n="mozvisibilitychange",t="mozHidden"):void 0!==document.msHidden?(n="msvisibilitychange",t="msHidden"):void 0!==document.webkitHidden&&(n="webkitvisibilitychange",t="webkitHidden")),r.visible_=!0,n&&document.addEventListener(n,function(){var e=!document[t];e!==r.visible_&&(r.visible_=e,r.trigger("visible",e))},!1),r}return u.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return a.assert("visible"===e,"Unknown event type: "+e),[this.visible_]},t}(Ut),qt=function(e){function t(){var t=e.call(this,["online"])||this;return t.online_=!0,"undefined"==typeof window||void 0===window.addEventListener||a.isMobileCordova()||(window.addEventListener("online",function(){t.online_||(t.online_=!0,t.trigger("online",!0))},!1),window.addEventListener("offline",function(){t.online_&&(t.online_=!1,t.trigger("online",!1))},!1)),t}return u.__extends(t,e),t.getInstance=function(){return new t},t.prototype.getInitialEvent=function(e){return a.assert("online"===e,"Unknown event type: "+e),[this.online_]},t.prototype.currentlyOnline=function(){return this.online_},t}(Ut),Vt=function(){function e(e){this.onMessage_=e,this.pendingResponses=[],this.currentResponseNum=0,this.closeAfterResponse=-1,this.onClose=null}return e.prototype.closeAfter=function(e,t){this.closeAfterResponse=e,this.onClose=t,this.closeAfterResponse<this.currentResponseNum&&(this.onClose(),this.onClose=null)},e.prototype.handleResponse=function(e,t){var n=this;this.pendingResponses[e]=t;for(var r=function(){var e=i.pendingResponses[i.currentResponseNum];delete i.pendingResponses[i.currentResponseNum];for(var t=function(t){e[t]&&U(function(){n.onMessage_(e[t])})},r=0;r<e.length;++r)t(r);if(i.currentResponseNum===i.closeAfterResponse)return i.onClose&&(i.onClose(),i.onClose=null),"break";i.currentResponseNum++},i=this;this.pendingResponses[this.currentResponseNum];){if("break"===r())break}},e}(),Wt="pLPCommand",zt="pRTLPCB",Ht=function(){function e(e,t,n,r){this.connId=e,this.repoInfo=t,this.transportSessionId=n,this.lastSessionId=r,this.bytesSent=0,this.bytesReceived=0,this.everConnected_=!1,this.log_=x(e),this.stats_=Pt.getCollection(t),this.urlFn=function(e){return t.connectionURL(z,e)}}return e.prototype.open=function(e,t){var n=this;this.curSegmentNum=0,this.onDisconnect_=t,this.myPacketOrderer=new Vt(e),this.isClosed_=!1,this.connectTimeoutTimer_=setTimeout(function(){n.log_("Timed out trying to connect."),n.onClosed_(),n.connectTimeoutTimer_=null},Math.floor(3e4)),function(e){if(a.isNodeSdk()||"complete"===document.readyState)e();else{var t=!1,n=function(){document.body?t||(t=!0,e()):setTimeout(n,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",n,!1),window.addEventListener("load",n,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&n()}),window.attachEvent("onload",n))}}(function(){if(!n.isClosed_){n.scriptTagHolder=new Kt(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1],o=e[2];if(n.incrementIncomingBytes_(e),n.scriptTagHolder)if(n.connectTimeoutTimer_&&(clearTimeout(n.connectTimeoutTimer_),n.connectTimeoutTimer_=null),n.everConnected_=!0,"start"==r)n.id=i,n.password=o;else{if("close"!==r)throw new Error("Unrecognized command received: "+r);i?(n.scriptTagHolder.sendNewPolls=!1,n.myPacketOrderer.closeAfter(i,function(){n.onClosed_()})):n.onClosed_()}},function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r=e[0],i=e[1];n.incrementIncomingBytes_(e),n.myPacketOrderer.handleResponse(r,i)},function(){n.onClosed_()},n.urlFn);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),n.scriptTagHolder.uniqueCallbackIdentifier&&(e.cb=n.scriptTagHolder.uniqueCallbackIdentifier),e.v="5",n.transportSessionId&&(e.s=n.transportSessionId),n.lastSessionId&&(e.ls=n.lastSessionId),!a.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f");var t=n.urlFn(e);n.log_("Connecting via long-poll to "+t),n.scriptTagHolder.addTag(t,function(){})}})},e.prototype.start=function(){this.scriptTagHolder.startLongPoll(this.id,this.password),this.addDisconnectPingFrame(this.id,this.password)},e.forceAllow=function(){e.forceAllow_=!0},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){return e.forceAllow_||!e.forceDisallow_&&"undefined"!=typeof document&&null!=document.createElement&&!("object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"==typeof Windows&&"object"==typeof Windows.UI)&&!a.isNodeSdk()},e.prototype.markConnectionHealthy=function(){},e.prototype.shutdown_=function(){this.isClosed_=!0,this.scriptTagHolder&&(this.scriptTagHolder.close(),this.scriptTagHolder=null),this.myDisconnFrame&&(document.body.removeChild(this.myDisconnFrame),this.myDisconnFrame=null),this.connectTimeoutTimer_&&(clearTimeout(this.connectTimeoutTimer_),this.connectTimeoutTimer_=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("Longpoll is closing itself"),this.shutdown_(),this.onDisconnect_&&(this.onDisconnect_(this.everConnected_),this.onDisconnect_=null))},e.prototype.close=function(){this.isClosed_||(this.log_("Longpoll is being closed."),this.shutdown_())},e.prototype.send=function(e){var t=a.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);for(var n=a.base64Encode(t),r=D(n,1840),i=0;i<r.length;i++)this.scriptTagHolder.enqueueSegment(this.curSegmentNum,r.length,r[i]),this.curSegmentNum++},e.prototype.addDisconnectPingFrame=function(e,t){if(!a.isNodeSdk()){this.myDisconnFrame=document.createElement("iframe");var n={dframe:"t"};n.id=e,n.pw=t,this.myDisconnFrame.src=this.urlFn(n),this.myDisconnFrame.style.display="none",document.body.appendChild(this.myDisconnFrame)}},e.prototype.incrementIncomingBytes_=function(e){var t=a.stringify(e).length;this.bytesReceived+=t,this.stats_.incrementCounter("bytes_received",t)},e}(),Kt=function(){function e(t,n,r,i){if(this.onDisconnect=r,this.urlFn=i,this.outstandingRequests=new et,this.pendingSegs=[],this.currentSerial=Math.floor(1e8*Math.random()),this.sendNewPolls=!0,a.isNodeSdk())this.commandCB=t,this.onMessageCB=n;else{this.uniqueCallbackIdentifier=m(),window[Wt+this.uniqueCallbackIdentifier]=t,window[zt+this.uniqueCallbackIdentifier]=n,this.myIFrame=e.createIFrame_();var o="";if(this.myIFrame.src&&"javascript:"===this.myIFrame.src.substr(0,"javascript:".length))o='<script>document.domain="'+document.domain+'";<\/script>';var s=""+o+"";try{this.myIFrame.doc.open(),this.myIFrame.doc.write(s),this.myIFrame.doc.close()}catch(e){E("frame writing exception"),e.stack&&E(e.stack),E(e)}}}return e.createIFrame_=function(){var e=document.createElement("iframe");if(e.style.display="none",!document.body)throw"Document body has not initialized. Wait to initialize Firebase until after the document is ready.";document.body.appendChild(e);try{e.contentWindow.document||E("No IE domain setting required")}catch(n){var t=document.domain;e.src="javascript:void((function(){document.open();document.domain='"+t+"';document.close();})())"}return e.contentDocument?e.doc=e.contentDocument:e.contentWindow?e.doc=e.contentWindow.document:e.document&&(e.doc=e.document),e},e.prototype.close=function(){var t=this;if(this.alive=!1,this.myIFrame&&(this.myIFrame.doc.body.innerHTML="",setTimeout(function(){null!==t.myIFrame&&(document.body.removeChild(t.myIFrame),t.myIFrame=null)},Math.floor(0))),a.isNodeSdk()&&this.myID){var n={disconn:"t"};n.id=this.myID,n.pw=this.myPW;var r=this.urlFn(n);e.nodeRestRequest(r)}var i=this.onDisconnect;i&&(this.onDisconnect=null,i())},e.prototype.startLongPoll=function(e,t){for(this.myID=e,this.myPW=t,this.alive=!0;this.newRequest_(););},e.prototype.newRequest_=function(){if(this.alive&&this.sendNewPolls&&this.outstandingRequests.count()<(this.pendingSegs.length>0?2:1)){this.currentSerial++;var e={};e.id=this.myID,e.pw=this.myPW,e.ser=this.currentSerial;for(var t=this.urlFn(e),n="",r=0;this.pendingSegs.length>0;){if(!(this.pendingSegs[0].d.length+30+n.length<=1870))break;var i=this.pendingSegs.shift();n=n+"&seg"+r+"="+i.seg+"&ts"+r+"="+i.ts+"&d"+r+"="+i.d,r++}return t+=n,this.addLongPollTag_(t,this.currentSerial),!0}return!1},e.prototype.enqueueSegment=function(e,t,n){this.pendingSegs.push({seg:e,ts:t,d:n}),this.alive&&this.newRequest_()},e.prototype.addLongPollTag_=function(e,t){var n=this;this.outstandingRequests.add(t,1);var r=function(){n.outstandingRequests.remove(t),n.newRequest_()},i=setTimeout(r,Math.floor(25e3));this.addTag(e,function(){clearTimeout(i),r()})},e.prototype.addTag=function(e,t){var n=this;a.isNodeSdk()?this.doNodeLongPoll(e,t):setTimeout(function(){try{if(!n.sendNewPolls)return;var r=n.myIFrame.doc.createElement("script");r.type="text/javascript",r.async=!0,r.src=e,r.onload=r.onreadystatechange=function(){var e=r.readyState;e&&"loaded"!==e&&"complete"!==e||(r.onload=r.onreadystatechange=null,r.parentNode&&r.parentNode.removeChild(r),t())},r.onerror=function(){E("Long-poll script failed to load: "+e),n.sendNewPolls=!1,n.close()},n.myIFrame.doc.body.appendChild(r)}catch(e){}},Math.floor(1))},e}(),Gt=null;"undefined"!=typeof MozWebSocket?Gt=MozWebSocket:"undefined"!=typeof WebSocket&&(Gt=WebSocket);var Qt=function(){function e(t,n,r,i){this.connId=t,this.keepaliveTimer=null,this.frames=null,this.totalFrames=0,this.bytesSent=0,this.bytesReceived=0,this.log_=x(this.connId),this.stats_=Pt.getCollection(n),this.connURL=e.connectionURL_(n,r,i)}return e.connectionURL_=function(e,t,n){var r={v:"5"};return!a.isNodeSdk()&&"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(r.r="f"),t&&(r.s=t),n&&(r.ls=n),e.connectionURL("websocket",r)},e.prototype.open=function(e,t){var n=this;this.onDisconnect=t,this.onMessage=e,this.log_("Websocket connecting to "+this.connURL),this.everConnected_=!1,p.set("previous_websocket_failure",!0);try{if(a.isNodeSdk()){var i=a.CONSTANTS.NODE_ADMIN?"AdminNode":"Node",o={headers:{"User-Agent":"Firebase/5/"+c.SDK_VERSION+"/"+r.platform+"/"+i}},s=r.env,u=0==this.connURL.indexOf("wss://")?s.HTTPS_PROXY||s.https_proxy:s.HTTP_PROXY||s.http_proxy;u&&(o.proxy={origin:u}),this.mySock=new Gt(this.connURL,[],o)}else this.mySock=new Gt(this.connURL)}catch(e){this.log_("Error instantiating WebSocket.");var l=e.message||e.data;return l&&this.log_(l),void this.onClosed_()}this.mySock.onopen=function(){n.log_("Websocket connected."),n.everConnected_=!0},this.mySock.onclose=function(){n.log_("Websocket connection was disconnected."),n.mySock=null,n.onClosed_()},this.mySock.onmessage=function(e){n.handleIncomingFrame(e)},this.mySock.onerror=function(e){n.log_("WebSocket error. Closing connection.");var t=e.message||e.data;t&&n.log_(t),n.onClosed_()}},e.prototype.start=function(){},e.forceDisallow=function(){e.forceDisallow_=!0},e.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var n=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);n&&n.length>1&&parseFloat(n[1])<4.4&&(t=!0)}return!t&&null!==Gt&&!e.forceDisallow_},e.previouslyFailed=function(){return p.isInMemoryStorage||!0===p.get("previous_websocket_failure")},e.prototype.markConnectionHealthy=function(){p.remove("previous_websocket_failure")},e.prototype.appendFrame_=function(e){if(this.frames.push(e),this.frames.length==this.totalFrames){var t=this.frames.join("");this.frames=null;var n=a.jsonEval(t);this.onMessage(n)}},e.prototype.handleNewFrameCount_=function(e){this.totalFrames=e,this.frames=[]},e.prototype.extractFrameCount_=function(e){if(a.assert(null===this.frames,"We already have a frame buffer"),e.length<=6){var t=Number(e);if(!isNaN(t))return this.handleNewFrameCount_(t),null}return this.handleNewFrameCount_(1),e},e.prototype.handleIncomingFrame=function(e){if(null!==this.mySock){var t=e.data;if(this.bytesReceived+=t.length,this.stats_.incrementCounter("bytes_received",t.length),this.resetKeepAlive(),null!==this.frames)this.appendFrame_(t);else{var n=this.extractFrameCount_(t);null!==n&&this.appendFrame_(n)}}},e.prototype.send=function(e){this.resetKeepAlive();var t=a.stringify(e);this.bytesSent+=t.length,this.stats_.incrementCounter("bytes_sent",t.length);var n=D(t,16384);n.length>1&&this.sendString_(String(n.length));for(var r=0;r<n.length;r++)this.sendString_(n[r])},e.prototype.shutdown_=function(){this.isClosed_=!0,this.keepaliveTimer&&(clearInterval(this.keepaliveTimer),this.keepaliveTimer=null),this.mySock&&(this.mySock.close(),this.mySock=null)},e.prototype.onClosed_=function(){this.isClosed_||(this.log_("WebSocket is closing itself"),this.shutdown_(),this.onDisconnect&&(this.onDisconnect(this.everConnected_),this.onDisconnect=null))},e.prototype.close=function(){this.isClosed_||(this.log_("WebSocket is being closed"),this.shutdown_())},e.prototype.resetKeepAlive=function(){var e=this;clearInterval(this.keepaliveTimer),this.keepaliveTimer=setInterval(function(){e.mySock&&e.sendString_("0"),e.resetKeepAlive()},Math.floor(45e3))},e.prototype.sendString_=function(e){try{this.mySock.send(e)}catch(e){this.log_("Exception thrown from WebSocket.send():",e.message||e.data,"Closing connection."),setTimeout(this.onClosed_.bind(this),0)}},e.responsesRequiredToBeHealthy=2,e.healthyTimeout=3e4,e}(),Yt=function(){function e(e){this.initTransports_(e)}return Object.defineProperty(e,"ALL_TRANSPORTS",{get:function(){return[Ht,Qt]},enumerable:!0,configurable:!0}),e.prototype.initTransports_=function(t){var n=Qt&&Qt.isAvailable(),r=n&&!Qt.previouslyFailed();if(t.webSocketOnly&&(n||k("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),r=!0),r)this.transports_=[Qt];else{var i=this.transports_=[];M(e.ALL_TRANSPORTS,function(e,t){t&&t.isAvailable()&&i.push(t)})}},e.prototype.initialTransport=function(){if(this.transports_.length>0)return this.transports_[0];throw new Error("No transports available")},e.prototype.upgradeTransport=function(){return this.transports_.length>1?this.transports_[1]:null},e}(),Xt=function(){function e(e,t,n,r,i,o,a){this.id=e,this.repoInfo_=t,this.onMessage_=n,this.onReady_=r,this.onDisconnect_=i,this.onKill_=o,this.lastSessionId=a,this.connectionCount=0,this.pendingDataMessages=[],this.state_=0,this.log_=x("c:"+this.id+":"),this.transportManager_=new Yt(t),this.log_("Connection created"),this.start_()}return e.prototype.start_=function(){var e=this,t=this.transportManager_.initialTransport();this.conn_=new t(this.nextTransportId_(),this.repoInfo_,void 0,this.lastSessionId),this.primaryResponsesRequired_=t.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.conn_),r=this.disconnReceiver_(this.conn_);this.tx_=this.conn_,this.rx_=this.conn_,this.secondaryConn_=null,this.isHealthy_=!1,setTimeout(function(){e.conn_&&e.conn_.open(n,r)},Math.floor(0));var i=t.healthyTimeout||0;i>0&&(this.healthyTimeout_=q(function(){e.healthyTimeout_=null,e.isHealthy_||(e.conn_&&e.conn_.bytesReceived>102400?(e.log_("Connection exceeded healthy timeout but has received "+e.conn_.bytesReceived+" bytes. Marking connection healthy."),e.isHealthy_=!0,e.conn_.markConnectionHealthy()):e.conn_&&e.conn_.bytesSent>10240?e.log_("Connection exceeded healthy timeout but has sent "+e.conn_.bytesSent+" bytes. Leaving connection alive."):(e.log_("Closing unhealthy connection after timeout."),e.close()))},Math.floor(i)))},e.prototype.nextTransportId_=function(){return"c:"+this.id+":"+this.connectionCount++},e.prototype.disconnReceiver_=function(e){var t=this;return function(n){e===t.conn_?t.onConnectionLost_(n):e===t.secondaryConn_?(t.log_("Secondary connection lost."),t.onSecondaryConnectionLost_()):t.log_("closing an old connection")}},e.prototype.connReceiver_=function(e){var t=this;return function(n){2!=t.state_&&(e===t.rx_?t.onPrimaryMessageReceived_(n):e===t.secondaryConn_?t.onSecondaryMessageReceived_(n):t.log_("message on old connection"))}},e.prototype.sendRequest=function(e){var t={t:"d",d:e};this.sendData_(t)},e.prototype.tryCleanupConnection=function(){this.tx_===this.secondaryConn_&&this.rx_===this.secondaryConn_&&(this.log_("cleaning up and promoting a connection: "+this.secondaryConn_.connId),this.conn_=this.secondaryConn_,this.secondaryConn_=null)},e.prototype.onSecondaryControl_=function(e){if("t"in e){var t=e.t;"a"===t?this.upgradeIfSecondaryHealthy_():"r"===t?(this.log_("Got a reset on secondary, closing it"),this.secondaryConn_.close(),this.tx_!==this.secondaryConn_&&this.rx_!==this.secondaryConn_||this.close()):"o"===t&&(this.log_("got pong on secondary."),this.secondaryResponsesRequired_--,this.upgradeIfSecondaryHealthy_())}},e.prototype.onSecondaryMessageReceived_=function(e){var t=P("t",e),n=P("d",e);if("c"==t)this.onSecondaryControl_(n);else{if("d"!=t)throw new Error("Unknown protocol layer: "+t);this.pendingDataMessages.push(n)}},e.prototype.upgradeIfSecondaryHealthy_=function(){this.secondaryResponsesRequired_<=0?(this.log_("Secondary connection is healthy."),this.isHealthy_=!0,this.secondaryConn_.markConnectionHealthy(),this.proceedWithUpgrade_()):(this.log_("sending ping on secondary."),this.secondaryConn_.send({t:"c",d:{t:"p",d:{}}}))},e.prototype.proceedWithUpgrade_=function(){this.secondaryConn_.start(),this.log_("sending client ack on secondary"),this.secondaryConn_.send({t:"c",d:{t:"a",d:{}}}),this.log_("Ending transmission on primary"),this.conn_.send({t:"c",d:{t:"n",d:{}}}),this.tx_=this.secondaryConn_,this.tryCleanupConnection()},e.prototype.onPrimaryMessageReceived_=function(e){var t=P("t",e),n=P("d",e);"c"==t?this.onControl_(n):"d"==t&&this.onDataMessage_(n)},e.prototype.onDataMessage_=function(e){this.onPrimaryResponse_(),this.onMessage_(e)},e.prototype.onPrimaryResponse_=function(){this.isHealthy_||(this.primaryResponsesRequired_--,this.primaryResponsesRequired_<=0&&(this.log_("Primary connection is healthy."),this.isHealthy_=!0,this.conn_.markConnectionHealthy()))},e.prototype.onControl_=function(e){var t=P("t",e);if("d"in e){var n=e.d;if("h"===t)this.onHandshake_(n);else if("n"===t){this.log_("recvd end transmission on primary"),this.rx_=this.secondaryConn_;for(var r=0;r<this.pendingDataMessages.length;++r)this.onDataMessage_(this.pendingDataMessages[r]);this.pendingDataMessages=[],this.tryCleanupConnection()}else"s"===t?this.onConnectionShutdown_(n):"r"===t?this.onReset_(n):"e"===t?C("Server Error: "+n):"o"===t?(this.log_("got pong on primary."),this.onPrimaryResponse_(),this.sendPingOnPrimaryIfNecessary_()):C("Unknown control packet command: "+t)}},e.prototype.onHandshake_=function(e){var t=e.ts,n=e.v,r=e.h;this.sessionId=e.s,this.repoInfo_.updateHost(r),0==this.state_&&(this.conn_.start(),this.onConnectionEstablished_(this.conn_,t),"5"!==n&&k("Protocol version mismatch detected"),this.tryStartUpgrade_())},e.prototype.tryStartUpgrade_=function(){var e=this.transportManager_.upgradeTransport();e&&this.startUpgrade_(e)},e.prototype.startUpgrade_=function(e){var t=this;this.secondaryConn_=new e(this.nextTransportId_(),this.repoInfo_,this.sessionId),this.secondaryResponsesRequired_=e.responsesRequiredToBeHealthy||0;var n=this.connReceiver_(this.secondaryConn_),r=this.disconnReceiver_(this.secondaryConn_);this.secondaryConn_.open(n,r),q(function(){t.secondaryConn_&&(t.log_("Timed out trying to upgrade."),t.secondaryConn_.close())},Math.floor(6e4))},e.prototype.onReset_=function(e){this.log_("Reset packet received. New host: "+e),this.repoInfo_.updateHost(e),1===this.state_?this.close():(this.closeConnections_(),this.start_())},e.prototype.onConnectionEstablished_=function(e,t){var n=this;this.log_("Realtime connection established."),this.conn_=e,this.state_=1,this.onReady_&&(this.onReady_(t,this.sessionId),this.onReady_=null),0===this.primaryResponsesRequired_?(this.log_("Primary connection is healthy."),this.isHealthy_=!0):q(function(){n.sendPingOnPrimaryIfNecessary_()},Math.floor(5e3))},e.prototype.sendPingOnPrimaryIfNecessary_=function(){this.isHealthy_||1!==this.state_||(this.log_("sending ping on primary."),this.sendData_({t:"c",d:{t:"p",d:{}}}))},e.prototype.onSecondaryConnectionLost_=function(){var e=this.secondaryConn_;this.secondaryConn_=null,this.tx_!==e&&this.rx_!==e||this.close()},e.prototype.onConnectionLost_=function(e){this.conn_=null,e||0!==this.state_?1===this.state_&&this.log_("Realtime connection lost."):(this.log_("Realtime connection failed."),this.repoInfo_.isCacheableHost()&&(p.remove("host:"+this.repoInfo_.host),this.repoInfo_.internalHost=this.repoInfo_.host)),this.close()},e.prototype.onConnectionShutdown_=function(e){this.log_("Connection shutdown command received. Shutting down..."),this.onKill_&&(this.onKill_(e),this.onKill_=null),this.onDisconnect_=null,this.close()},e.prototype.sendData_=function(e){if(1!==this.state_)throw"Connection is not connected";this.tx_.send(e)},e.prototype.close=function(){2!==this.state_&&(this.log_("Closing realtime connection."),this.state_=2,this.closeConnections_(),this.onDisconnect_&&(this.onDisconnect_(),this.onDisconnect_=null))},e.prototype.closeConnections_=function(){this.log_("Shutting down all connections"),this.conn_&&(this.conn_.close(),this.conn_=null),this.secondaryConn_&&(this.secondaryConn_.close(),this.secondaryConn_=null),this.healthyTimeout_&&(clearTimeout(this.healthyTimeout_),this.healthyTimeout_=null)},e}(),Jt=function(){function e(){}return e.prototype.put=function(e,t,n,r){},e.prototype.merge=function(e,t,n,r){},e.prototype.refreshAuthToken=function(e){},e.prototype.onDisconnectPut=function(e,t,n){},e.prototype.onDisconnectMerge=function(e,t,n){},e.prototype.onDisconnectCancel=function(e,t){},e.prototype.reportStats=function(e){},e}(),$t=1e3,Zt=3e5,en=function(e){function t(n,r,i,o,s,u){var c=e.call(this)||this;if(c.repoInfo_=n,c.onDataUpdate_=r,c.onConnectStatus_=i,c.onServerInfoUpdate_=o,c.authTokenProvider_=s,c.authOverride_=u,c.id=t.nextPersistentConnectionId_++,c.log_=x("p:"+c.id+":"),c.interruptReasons_={},c.listens_={},c.outstandingPuts_=[],c.outstandingPutCount_=0,c.onDisconnectRequestQueue_=[],c.connected_=!1,c.reconnectDelay_=$t,c.maxReconnectDelay_=Zt,c.securityDebugCallback_=null,c.lastSessionId=null,c.establishConnectionTimer_=null,c.visible_=!1,c.requestCBHash_={},c.requestNumber_=0,c.realtime_=null,c.authToken_=null,c.forceTokenRefresh_=!1,c.invalidAuthTokenCount_=0,c.firstConnection_=!0,c.lastConnectionAttemptTime_=null,c.lastConnectionEstablishedTime_=null,u&&!a.isNodeSdk())throw new Error("Auth override specified in options, but not supported on non Node.js platforms");return c.scheduleConnect_(0),Bt.getInstance().on("visible",c.onVisible_,c),-1===n.host.indexOf("fblocal")&&qt.getInstance().on("online",c.onOnline_,c),c}return u.__extends(t,e),t.prototype.sendRequest=function(e,t,n){var r=++this.requestNumber_,i={r:r,a:e,b:t};this.log_(a.stringify(i)),a.assert(this.connected_,"sendRequest call when we're not connected not allowed."),this.realtime_.sendRequest(i),n&&(this.requestCBHash_[r]=n)},t.prototype.listen=function(e,t,n,r){var i=e.queryIdentifier(),o=e.path.toString();this.log_("Listen called for "+o+" "+i),this.listens_[o]=this.listens_[o]||{},a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"listen() called for non-default but complete query"),a.assert(!this.listens_[o][i],"listen() called twice for same path/queryId.");var s={onComplete:r,hashFn:t,query:e,tag:n};this.listens_[o][i]=s,this.connected_&&this.sendListen_(s)},t.prototype.sendListen_=function(e){var n=this,r=e.query,i=r.path.toString(),o=r.queryIdentifier();this.log_("Listen on "+i+" for "+o);var a={p:i};e.tag&&(a.q=r.queryObject(),a.t=e.tag),a.h=e.hashFn(),this.sendRequest("q",a,function(a){var s=a.d,u=a.s;t.warnOnListenWarnings_(s,r),(n.listens_[i]&&n.listens_[i][o])===e&&(n.log_("listen response",a),"ok"!==u&&n.removeListen_(i,o),e.onComplete&&e.onComplete(u,s))})},t.warnOnListenWarnings_=function(e,t){if(e&&"object"==typeof e&&a.contains(e,"w")){var n=a.safeGet(e,"w");if(Array.isArray(n)&&~n.indexOf("no_index")){var r='".indexOn": "'+t.getQueryParams().getIndex().toString()+'"',i=t.path.toString();k("Using an unspecified index. Your data will be downloaded and filtered on the client. Consider adding "+r+" at "+i+" to your security rules for better performance.")}}},t.prototype.refreshAuthToken=function(e){this.authToken_=e,this.log_("Auth token refreshed"),this.authToken_?this.tryAuth():this.connected_&&this.sendRequest("unauth",{},function(){}),this.reduceReconnectDelayIfAdminCredential_(e)},t.prototype.reduceReconnectDelayIfAdminCredential_=function(e){(e&&40===e.length||a.isAdmin(e))&&(this.log_("Admin auth credential detected. Reducing max reconnect time."),this.maxReconnectDelay_=3e4)},t.prototype.tryAuth=function(){var e=this;if(this.connected_&&this.authToken_){var t=this.authToken_,n=a.isValidFormat(t)?"auth":"gauth",r={cred:t};null===this.authOverride_?r.noauth=!0:"object"==typeof this.authOverride_&&(r.authvar=this.authOverride_),this.sendRequest(n,r,function(n){var r=n.s,i=n.d||"error";e.authToken_===t&&("ok"===r?e.invalidAuthTokenCount_=0:e.onAuthRevoked_(r,i))})}},t.prototype.unlisten=function(e,t){var n=e.path.toString(),r=e.queryIdentifier();this.log_("Unlisten called for "+n+" "+r),a.assert(e.getQueryParams().isDefault()||!e.getQueryParams().loadsAllData(),"unlisten() called for non-default but complete query"),this.removeListen_(n,r)&&this.connected_&&this.sendUnlisten_(n,r,e.queryObject(),t)},t.prototype.sendUnlisten_=function(e,t,n,r){this.log_("Unlisten on "+e+" for "+t);var i={p:e};r&&(i.q=n,i.t=r),this.sendRequest("n",i)},t.prototype.onDisconnectPut=function(e,t,n){this.connected_?this.sendOnDisconnect_("o",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"o",data:t,onComplete:n})},t.prototype.onDisconnectMerge=function(e,t,n){this.connected_?this.sendOnDisconnect_("om",e,t,n):this.onDisconnectRequestQueue_.push({pathString:e,action:"om",data:t,onComplete:n})},t.prototype.onDisconnectCancel=function(e,t){this.connected_?this.sendOnDisconnect_("oc",e,null,t):this.onDisconnectRequestQueue_.push({pathString:e,action:"oc",data:null,onComplete:t})},t.prototype.sendOnDisconnect_=function(e,t,n,r){var i={p:t,d:n};this.log_("onDisconnect "+e,i),this.sendRequest(e,i,function(e){r&&setTimeout(function(){r(e.s,e.d)},Math.floor(0))})},t.prototype.put=function(e,t,n,r){this.putInternal("p",e,t,n,r)},t.prototype.merge=function(e,t,n,r){this.putInternal("m",e,t,n,r)},t.prototype.putInternal=function(e,t,n,r,i){var o={p:t,d:n};void 0!==i&&(o.h=i),this.outstandingPuts_.push({action:e,request:o,onComplete:r}),this.outstandingPutCount_++;var a=this.outstandingPuts_.length-1;this.connected_?this.sendPut_(a):this.log_("Buffering put: "+t)},t.prototype.sendPut_=function(e){var t=this,n=this.outstandingPuts_[e].action,r=this.outstandingPuts_[e].request,i=this.outstandingPuts_[e].onComplete;this.outstandingPuts_[e].queued=this.connected_,this.sendRequest(n,r,function(r){t.log_(n+" response",r),delete t.outstandingPuts_[e],t.outstandingPutCount_--,0===t.outstandingPutCount_&&(t.outstandingPuts_=[]),i&&i(r.s,r.d)})},t.prototype.reportStats=function(e){var t=this;if(this.connected_){var n={c:e};this.log_("reportStats",n),this.sendRequest("s",n,function(e){if("ok"!==e.s){var n=e.d;t.log_("reportStats","Error sending stats: "+n)}})}},t.prototype.onDataMessage_=function(e){if("r"in e){this.log_("from server: "+a.stringify(e));var t=e.r,n=this.requestCBHash_[t];n&&(delete this.requestCBHash_[t],n(e.b))}else{if("error"in e)throw"A server-side error has occurred: "+e.error;"a"in e&&this.onDataPush_(e.a,e.b)}},t.prototype.onDataPush_=function(e,t){this.log_("handleServerMessage",e,t),"d"===e?this.onDataUpdate_(t.p,t.d,!1,t.t):"m"===e?this.onDataUpdate_(t.p,t.d,!0,t.t):"c"===e?this.onListenRevoked_(t.p,t.q):"ac"===e?this.onAuthRevoked_(t.s,t.d):"sd"===e?this.onSecurityDebugPacket_(t):C("Unrecognized action received from server: "+a.stringify(e)+"\nAre you using the latest client?")},t.prototype.onReady_=function(e,t){this.log_("connection ready"),this.connected_=!0,this.lastConnectionEstablishedTime_=(new Date).getTime(),this.handleTimestamp_(e),this.lastSessionId=t,this.firstConnection_&&this.sendConnectStats_(),this.restoreState_(),this.firstConnection_=!1,this.onConnectStatus_(!0)},t.prototype.scheduleConnect_=function(e){var t=this;a.assert(!this.realtime_,"Scheduling a connect when we're already connected/ing?"),this.establishConnectionTimer_&&clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=setTimeout(function(){t.establishConnectionTimer_=null,t.establishConnection_()},Math.floor(e))},t.prototype.onVisible_=function(e){e&&!this.visible_&&this.reconnectDelay_===this.maxReconnectDelay_&&(this.log_("Window became visible. Reducing delay."),this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0)),this.visible_=e},t.prototype.onOnline_=function(e){e?(this.log_("Browser went online."),this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0)):(this.log_("Browser went offline. Killing connection."),this.realtime_&&this.realtime_.close())},t.prototype.onRealtimeDisconnect_=function(){if(this.log_("data client disconnected"),this.connected_=!1,this.realtime_=null,this.cancelSentTransactions_(),this.requestCBHash_={},this.shouldReconnect_()){if(this.visible_){if(this.lastConnectionEstablishedTime_){(new Date).getTime()-this.lastConnectionEstablishedTime_>3e4&&(this.reconnectDelay_=$t),this.lastConnectionEstablishedTime_=null}}else this.log_("Window isn't visible. Delaying reconnect."),this.reconnectDelay_=this.maxReconnectDelay_,this.lastConnectionAttemptTime_=(new Date).getTime();var e=(new Date).getTime()-this.lastConnectionAttemptTime_,t=Math.max(0,this.reconnectDelay_-e);t=Math.random()*t,this.log_("Trying to reconnect in "+t+"ms"),this.scheduleConnect_(t),this.reconnectDelay_=Math.min(this.maxReconnectDelay_,1.3*this.reconnectDelay_)}this.onConnectStatus_(!1)},t.prototype.establishConnection_=function(){if(this.shouldReconnect_()){this.log_("Making a connection attempt"),this.lastConnectionAttemptTime_=(new Date).getTime(),this.lastConnectionEstablishedTime_=null;var e=this.onDataMessage_.bind(this),n=this.onReady_.bind(this),r=this.onRealtimeDisconnect_.bind(this),i=this.id+":"+t.nextConnectionId_++,o=this,s=this.lastSessionId,u=!1,c=null,l=function(){c?c.close():(u=!0,r())};this.realtime_={close:l,sendRequest:function(e){a.assert(c,"sendRequest call when we're not connected not allowed."),c.sendRequest(e)}};var f=this.forceTokenRefresh_;this.forceTokenRefresh_=!1,this.authTokenProvider_.getToken(f).then(function(t){u?E("getToken() completed but was canceled"):(E("getToken() completed. Creating connection."),o.authToken_=t&&t.accessToken,c=new Xt(i,o.repoInfo_,e,n,r,function(e){k(e+" ("+o.repoInfo_.toString()+")"),o.interrupt("server_kill")},s))}).then(null,function(e){o.log_("Failed to get token: "+e),u||(a.CONSTANTS.NODE_ADMIN&&k(e),l())})}},t.prototype.interrupt=function(e){E("Interrupting connection for reason: "+e),this.interruptReasons_[e]=!0,this.realtime_?this.realtime_.close():(this.establishConnectionTimer_&&(clearTimeout(this.establishConnectionTimer_),this.establishConnectionTimer_=null),this.connected_&&this.onRealtimeDisconnect_())},t.prototype.resume=function(e){E("Resuming connection for reason: "+e),delete this.interruptReasons_[e],a.isEmpty(this.interruptReasons_)&&(this.reconnectDelay_=$t,this.realtime_||this.scheduleConnect_(0))},t.prototype.handleTimestamp_=function(e){var t=e-(new Date).getTime();this.onServerInfoUpdate_({serverTimeOffset:t})},t.prototype.cancelSentTransactions_=function(){for(var e=0;e<this.outstandingPuts_.length;e++){var t=this.outstandingPuts_[e];t&&"h"in t.request&&t.queued&&(t.onComplete&&t.onComplete("disconnect"),delete this.outstandingPuts_[e],this.outstandingPutCount_--)}0===this.outstandingPutCount_&&(this.outstandingPuts_=[])},t.prototype.onListenRevoked_=function(e,t){var n;n=t?t.map(function(e){return R(e)}).join("$"):"default";var r=this.removeListen_(e,n);r&&r.onComplete&&r.onComplete("permission_denied")},t.prototype.removeListen_=function(e,t){var n,r=new V(e).toString();return void 0!==this.listens_[r]?(n=this.listens_[r][t],delete this.listens_[r][t],0===a.getCount(this.listens_[r])&&delete this.listens_[r]):n=void 0,n},t.prototype.onAuthRevoked_=function(e,t){E("Auth token revoked: "+e+"/"+t),this.authToken_=null,this.forceTokenRefresh_=!0,this.realtime_.close(),"invalid_token"!==e&&"permission_denied"!==e||(this.invalidAuthTokenCount_++,this.invalidAuthTokenCount_>=3&&(this.reconnectDelay_=3e4,this.authTokenProvider_.notifyForInvalidToken()))},t.prototype.onSecurityDebugPacket_=function(e){this.securityDebugCallback_?this.securityDebugCallback_(e):"msg"in e&&console.log("FIREBASE: "+e.msg.replace("\n","\nFIREBASE: "))},t.prototype.restoreState_=function(){var e=this;this.tryAuth(),a.forEach(this.listens_,function(t,n){a.forEach(n,function(t,n){e.sendListen_(n)})});for(var t=0;t<this.outstandingPuts_.length;t++)this.outstandingPuts_[t]&&this.sendPut_(t);for(;this.onDisconnectRequestQueue_.length;){var n=this.onDisconnectRequestQueue_.shift();this.sendOnDisconnect_(n.action,n.pathString,n.data,n.onComplete)}},t.prototype.sendConnectStats_=function(){var e={},t="js";a.CONSTANTS.NODE_ADMIN?t="admin_node":a.CONSTANTS.NODE_CLIENT&&(t="node"),e["sdk."+t+"."+c.SDK_VERSION.replace(/\./g,"-")]=1,a.isMobileCordova()?e["framework.cordova"]=1:a.isReactNative()&&(e["framework.reactnative"]=1),this.reportStats(e)},t.prototype.shouldReconnect_=function(){var e=qt.getInstance().currentlyOnline();return a.isEmpty(this.interruptReasons_)&&e},t.nextPersistentConnectionId_=0,t.nextConnectionId_=0,t}(Jt),tn=function(e){function t(t,n,r){var i=e.call(this)||this;return i.repoInfo_=t,i.onDataUpdate_=n,i.authTokenProvider_=r,i.log_=x("p:rest:"),i.listens_={},i}return u.__extends(t,e),t.prototype.reportStats=function(e){throw new Error("Method not implemented.")},t.getListenId_=function(e,t){return void 0!==t?"tag$"+t:(a.assert(e.getQueryParams().isDefault(),"should have a tag if it's not a default query."),e.path.toString())},t.prototype.listen=function(e,n,r,i){var o=this,s=e.path.toString();this.log_("Listen called for "+s+" "+e.queryIdentifier());var u=t.getListenId_(e,r),c={};this.listens_[u]=c;var l=e.getQueryParams().toRestQueryStringParameters();this.restRequest_(s+".json",l,function(e,t){var n=t;(404===e&&(n=null,e=null),null===e&&o.onDataUpdate_(s,n,!1,r),a.safeGet(o.listens_,u)===c)&&i(e?401==e?"permission_denied":"rest_error:"+e:"ok",null)})},t.prototype.unlisten=function(e,n){var r=t.getListenId_(e,n);delete this.listens_[r]},t.prototype.refreshAuthToken=function(e){},t.prototype.restRequest_=function(e,t,n){var r=this;void 0===t&&(t={}),t.format="export",this.authTokenProvider_.getToken(!1).then(function(i){var o=i&&i.accessToken;o&&(t.auth=o);var s=(r.repoInfo_.secure?"https://":"http://")+r.repoInfo_.host+e+"?"+a.querystring(t);r.log_("Sending REST request for "+s);var u=new XMLHttpRequest;u.onreadystatechange=function(){if(n&&4===u.readyState){r.log_("REST Response for "+s+" received. status:",u.status,"response:",u.responseText);var e=null;if(u.status>=200&&u.status<300){try{e=a.jsonEval(u.responseText)}catch(e){k("Failed to parse JSON response for "+s+": "+u.responseText)}n(null,e)}else 401!==u.status&&404!==u.status&&k("Got unsuccessful REST response for "+s+" Status: "+u.status),n(u.status);n=null}},u.open("GET",s,!0),u.send()})},t}(Jt),nn=function(){function e(e,t,n){var r=this;this.repoInfo_=e,this.app=n,this.dataUpdateCount=0,this.statsListener_=null,this.eventQueue_=new jt,this.nextWriteId_=1,this.interceptServerDataCallback_=null,this.onDisconnect_=new tt,this.persistentConnection_=null;var i=new Ot(n);if(this.stats_=Pt.getCollection(e),t||B())this.server_=new tn(this.repoInfo_,this.onDataUpdate_.bind(this),i),setTimeout(this.onConnectStatus_.bind(this,!0),0);else{var o=n.options.databaseAuthVariableOverride;if(void 0!==o&&null!==o){if("object"!=typeof o)throw new Error("Only objects are supported for option databaseAuthVariableOverride");try{a.stringify(o)}catch(e){throw new Error("Invalid authOverride provided: "+e)}}this.persistentConnection_=new en(this.repoInfo_,this.onDataUpdate_.bind(this),this.onConnectStatus_.bind(this),this.onServerInfoUpdate_.bind(this),i,o),this.server_=this.persistentConnection_}i.addTokenChangeListener(function(e){r.server_.refreshAuthToken(e)}),this.statsReporter_=Pt.getOrCreateReporter(e,function(){return new Lt(r.stats_,r.server_)}),this.transactions_init_(),this.infoData_=new Nt,this.infoSyncTree_=new At({startListening:function(e,t,n,i){var o=[],a=r.infoData_.getNode(e.path);return a.isEmpty()||(o=r.infoSyncTree_.applyServerOverwrite(e.path,a),setTimeout(function(){i("ok")},0)),o},stopListening:function(){}}),this.updateInfo_("connected",!1),this.serverSyncTree_=new At({startListening:function(e,t,n,i){return r.server_.listen(e,n,t,function(t,n){var o=i(t,n);r.eventQueue_.raiseEventsForChangedPath(e.path,o)}),[]},stopListening:function(e,t){r.server_.unlisten(e,t)}})}return e.prototype.toString=function(){return(this.repoInfo_.secure?"https://":"http://")+this.repoInfo_.host},e.prototype.name=function(){return this.repoInfo_.namespace},e.prototype.serverTime=function(){var e=this.infoData_.getNode(new V(".info/serverTimeOffset")).val()||0;return(new Date).getTime()+e},e.prototype.generateServerValues=function(){return(e=(e={timestamp:this.serverTime()})||{}).timestamp=e.timestamp||(new Date).getTime(),e;var e},e.prototype.onDataUpdate_=function(e,t,n,r){this.dataUpdateCount++;var i=new V(e);t=this.interceptServerDataCallback_?this.interceptServerDataCallback_(e,t):t;var o=[];if(r)if(n){var s=a.map(t,function(e){return We(e)});o=this.serverSyncTree_.applyTaggedQueryMerge(i,s,r)}else{var u=We(t);o=this.serverSyncTree_.applyTaggedQueryOverwrite(i,u,r)}else if(n){var c=a.map(t,function(e){return We(e)});o=this.serverSyncTree_.applyServerMerge(i,c)}else{var l=We(t);o=this.serverSyncTree_.applyServerOverwrite(i,l)}var f=i;o.length>0&&(f=this.rerunTransactions_(i)),this.eventQueue_.raiseEventsForChangedPath(f,o)},e.prototype.interceptServerData_=function(e){this.interceptServerDataCallback_=e},e.prototype.onConnectStatus_=function(e){this.updateInfo_("connected",e),!1===e&&this.runOnDisconnectEvents_()},e.prototype.onServerInfoUpdate_=function(e){var t=this;M(e,function(e,n){t.updateInfo_(n,e)})},e.prototype.updateInfo_=function(e,t){var n=new V("/.info/"+e),r=We(t);this.infoData_.updateSnapshot(n,r);var i=this.infoSyncTree_.applyServerOverwrite(n,r);this.eventQueue_.raiseEventsForChangedPath(n,i)},e.prototype.getNextWriteId_=function(){return this.nextWriteId_++},e.prototype.setWithPriority=function(e,t,n,r){var i=this;this.log_("set",{path:e.toString(),value:t,priority:n});var o=this.generateServerValues(),a=We(t,n),s=rt(a,o),u=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserOverwrite(e,s,u,!0);this.eventQueue_.queueEvents(c),this.server_.put(e.toString(),a.val(!0),function(t,n){var o="ok"===t;o||k("set at "+e+" failed: "+t);var a=i.serverSyncTree_.ackUserWrite(u,!o);i.eventQueue_.raiseEventsForChangedPath(e,a),i.callOnCompleteCallback(r,t,n)});var l=this.abortTransactions_(e);this.rerunTransactions_(l),this.eventQueue_.raiseEventsForChangedPath(l,[])},e.prototype.update=function(e,t,n){var r=this;this.log_("update",{path:e.toString(),value:t});var i=!0,o=this.generateServerValues(),s={};if(a.forEach(t,function(e,t){i=!1;var n=We(t);s[e]=rt(n,o)}),i)E("update() called with empty data. Don't do anything."),this.callOnCompleteCallback(n,"ok");else{var u=this.getNextWriteId_(),c=this.serverSyncTree_.applyUserMerge(e,s,u);this.eventQueue_.queueEvents(c),this.server_.merge(e.toString(),t,function(t,i){var o="ok"===t;o||k("update at "+e+" failed: "+t);var a=r.serverSyncTree_.ackUserWrite(u,!o),s=a.length>0?r.rerunTransactions_(e):e;r.eventQueue_.raiseEventsForChangedPath(s,a),r.callOnCompleteCallback(n,t,i)}),a.forEach(t,function(t){var n=r.abortTransactions_(e.child(t));r.rerunTransactions_(n)}),this.eventQueue_.raiseEventsForChangedPath(e,[])}},e.prototype.runOnDisconnectEvents_=function(){var e=this;this.log_("onDisconnectEvents");var t=this.generateServerValues(),n=[];(function(e,t){var n=new tt;return e.forEachTree(new V(""),function(e,r){n.remember(e,rt(r,t))}),n})(this.onDisconnect_,t).forEachTree(V.Empty,function(t,r){n=n.concat(e.serverSyncTree_.applyServerOverwrite(t,r));var i=e.abortTransactions_(t);e.rerunTransactions_(i)}),this.onDisconnect_=new tt,this.eventQueue_.raiseEventsForChangedPath(V.Empty,n)},e.prototype.onDisconnectCancel=function(e,t){var n=this;this.server_.onDisconnectCancel(e.toString(),function(r,i){"ok"===r&&n.onDisconnect_.forget(e),n.callOnCompleteCallback(t,r,i)})},e.prototype.onDisconnectSet=function(e,t,n){var r=this,i=We(t);this.server_.onDisconnectPut(e.toString(),i.val(!0),function(t,o){"ok"===t&&r.onDisconnect_.remember(e,i),r.callOnCompleteCallback(n,t,o)})},e.prototype.onDisconnectSetWithPriority=function(e,t,n,r){var i=this,o=We(t,n);this.server_.onDisconnectPut(e.toString(),o.val(!0),function(t,n){"ok"===t&&i.onDisconnect_.remember(e,o),i.callOnCompleteCallback(r,t,n)})},e.prototype.onDisconnectUpdate=function(e,t,n){var r=this;if(a.isEmpty(t))return E("onDisconnect().update() called with empty data. Don't do anything."),void this.callOnCompleteCallback(n,"ok");this.server_.onDisconnectMerge(e.toString(),t,function(i,o){"ok"===i&&a.forEach(t,function(t,n){var i=We(n);r.onDisconnect_.remember(e.child(t),i)}),r.callOnCompleteCallback(n,i,o)})},e.prototype.addEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.addEventRegistration(e,t):this.serverSyncTree_.addEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.removeEventCallbackForQuery=function(e,t){var n;n=".info"===e.path.getFront()?this.infoSyncTree_.removeEventRegistration(e,t):this.serverSyncTree_.removeEventRegistration(e,t),this.eventQueue_.raiseEventsAtPath(e.path,n)},e.prototype.interrupt=function(){this.persistentConnection_&&this.persistentConnection_.interrupt("repo_interrupt")},e.prototype.resume=function(){this.persistentConnection_&&this.persistentConnection_.resume("repo_interrupt")},e.prototype.stats=function(e){if(void 0===e&&(e=!1),"undefined"!=typeof console){var t;e?(this.statsListener_||(this.statsListener_=new Rt(this.stats_)),t=this.statsListener_.get()):t=this.stats_.get();var n=Object.keys(t).reduce(function(e,t){return Math.max(t.length,e)},0);a.forEach(t,function(e,t){for(var r=e.length;r<n+2;r++)e+=" ";console.log(e+t)})}},e.prototype.statsIncrementCounter=function(e){this.stats_.incrementCounter(e),this.statsReporter_.includeStat(e)},e.prototype.log_=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n="";this.persistentConnection_&&(n=this.persistentConnection_.id+":"),E.apply(void 0,[n].concat(e))},e.prototype.callOnCompleteCallback=function(e,t,n){e&&U(function(){if("ok"==t)e(null);else{var r=(t||"error").toUpperCase(),i=r;n&&(i+=": "+n);var o=new Error(i);o.code=r,e(o)}})},Object.defineProperty(e.prototype,"database",{get:function(){return this.__database||(this.__database=new pn(this))},enumerable:!0,configurable:!0}),e}(),rn=function(){function e(t){this.indexedFilter_=new mt(t.getIndex()),this.index_=t.getIndex(),this.startPost_=e.getStartPost_(t),this.endPost_=e.getEndPost_(t)}return e.prototype.getStartPost=function(){return this.startPost_},e.prototype.getEndPost=function(){return this.endPost_},e.prototype.matches=function(e){return this.index_.compare(this.getStartPost(),e)<=0&&this.index_.compare(e,this.getEndPost())<=0},e.prototype.updateChild=function(e,t,n,r,i,o){return this.matches(new me(t,n))||(n=Be.EMPTY_NODE),this.indexedFilter_.updateChild(e,t,n,r,i,o)},e.prototype.updateFullNode=function(e,t,n){t.isLeafNode()&&(t=Be.EMPTY_NODE);var r=t.withIndex(this.index_);r=r.updatePriority(Be.EMPTY_NODE);var i=this;return t.forEachChild(Ae,function(e,t){i.matches(new me(e,t))||(r=r.updateImmediateChild(e,Be.EMPTY_NODE))}),this.indexedFilter_.updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.indexedFilter_},e.prototype.getIndex=function(){return this.index_},e.getStartPost_=function(e){if(e.hasStart()){var t=e.getIndexStartName();return e.getIndex().makePost(e.getIndexStartValue(),t)}return e.getIndex().minPost()},e.getEndPost_=function(e){if(e.hasEnd()){var t=e.getIndexEndName();return e.getIndex().makePost(e.getIndexEndValue(),t)}return e.getIndex().maxPost()},e}(),on=function(){function e(e){this.rangedFilter_=new rn(e),this.index_=e.getIndex(),this.limit_=e.getLimit(),this.reverse_=!e.isViewFromLeft()}return e.prototype.updateChild=function(e,t,n,r,i,o){return this.rangedFilter_.matches(new me(t,n))||(n=Be.EMPTY_NODE),e.getImmediateChild(t).equals(n)?e:e.numChildren()<this.limit_?this.rangedFilter_.getIndexedFilter().updateChild(e,t,n,r,i,o):this.fullLimitUpdateChild_(e,t,n,i,o)},e.prototype.updateFullNode=function(e,t,n){var r;if(t.isLeafNode()||t.isEmpty())r=Be.EMPTY_NODE.withIndex(this.index_);else if(2*this.limit_<t.numChildren()&&t.isIndexed(this.index_)){r=Be.EMPTY_NODE.withIndex(this.index_);var i=void 0;i=this.reverse_?t.getReverseIteratorFrom(this.rangedFilter_.getEndPost(),this.index_):t.getIteratorFrom(this.rangedFilter_.getStartPost(),this.index_);for(var o=0;i.hasNext()&&o<this.limit_;){var a=i.getNext();if(!(this.reverse_?this.index_.compare(this.rangedFilter_.getStartPost(),a)<=0:this.index_.compare(a,this.rangedFilter_.getEndPost())<=0))break;r=r.updateImmediateChild(a.name,a.node),o++}}else{r=(r=t.withIndex(this.index_)).updatePriority(Be.EMPTY_NODE);var s=void 0,u=void 0,c=void 0;i=void 0;if(this.reverse_){i=r.getReverseIterator(this.index_),s=this.rangedFilter_.getEndPost(),u=this.rangedFilter_.getStartPost();var l=this.index_.getCompare();c=function(e,t){return l(t,e)}}else i=r.getIterator(this.index_),s=this.rangedFilter_.getStartPost(),u=this.rangedFilter_.getEndPost(),c=this.index_.getCompare();o=0;for(var f=!1;i.hasNext();){a=i.getNext();!f&&c(s,a)<=0&&(f=!0),f&&o<this.limit_&&c(a,u)<=0?o++:r=r.updateImmediateChild(a.name,Be.EMPTY_NODE)}}return this.rangedFilter_.getIndexedFilter().updateFullNode(e,r,n)},e.prototype.updatePriority=function(e,t){return e},e.prototype.filtersNodes=function(){return!0},e.prototype.getIndexedFilter=function(){return this.rangedFilter_.getIndexedFilter()},e.prototype.getIndex=function(){return this.index_},e.prototype.fullLimitUpdateChild_=function(e,t,n,r,i){var o;if(this.reverse_){var s=this.index_.getCompare();o=function(e,t){return s(t,e)}}else o=this.index_.getCompare();var u=e;a.assert(u.numChildren()==this.limit_,"");var c=new me(t,n),l=this.reverse_?u.getFirstChild(this.index_):u.getLastChild(this.index_),f=this.rangedFilter_.matches(c);if(u.hasChild(t)){for(var h=u.getImmediateChild(t),p=r.getChildAfterChild(this.index_,l,this.reverse_);null!=p&&(p.name==t||u.hasChild(p.name));)p=r.getChildAfterChild(this.index_,p,this.reverse_);var d=null==p?1:o(p,c);if(f&&!n.isEmpty()&&d>=0)return null!=i&&i.trackChildChange(vt.childChangedChange(t,n,h)),u.updateImmediateChild(t,n);null!=i&&i.trackChildChange(vt.childRemovedChange(t,h));var v=u.updateImmediateChild(t,Be.EMPTY_NODE);return null!=p&&this.rangedFilter_.matches(p)?(null!=i&&i.trackChildChange(vt.childAddedChange(p.name,p.node)),v.updateImmediateChild(p.name,p.node)):v}return n.isEmpty()?e:f&&o(l,c)>=0?(null!=i&&(i.trackChildChange(vt.childRemovedChange(l.name,l.node)),i.trackChildChange(vt.childAddedChange(t,n))),u.updateImmediateChild(t,n).updateImmediateChild(l.name,Be.EMPTY_NODE)):e},e}(),an=function(){function e(){this.limitSet_=!1,this.startSet_=!1,this.startNameSet_=!1,this.endSet_=!1,this.endNameSet_=!1,this.limit_=0,this.viewFrom_="",this.indexStartValue_=null,this.indexStartName_="",this.indexEndValue_=null,this.indexEndName_="",this.index_=Ae}return e.prototype.hasStart=function(){return this.startSet_},e.prototype.isViewFromLeft=function(){return""===this.viewFrom_?this.startSet_:this.viewFrom_===e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT},e.prototype.getIndexStartValue=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.indexStartValue_},e.prototype.getIndexStartName=function(){return a.assert(this.startSet_,"Only valid if start has been set"),this.startNameSet_?this.indexStartName_:A},e.prototype.hasEnd=function(){return this.endSet_},e.prototype.getIndexEndValue=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.indexEndValue_},e.prototype.getIndexEndName=function(){return a.assert(this.endSet_,"Only valid if end has been set"),this.endNameSet_?this.indexEndName_:N},e.prototype.hasLimit=function(){return this.limitSet_},e.prototype.hasAnchoredLimit=function(){return this.limitSet_&&""!==this.viewFrom_},e.prototype.getLimit=function(){return a.assert(this.limitSet_,"Only valid if limit has been set"),this.limit_},e.prototype.getIndex=function(){return this.index_},e.prototype.copy_=function(){var t=new e;return t.limitSet_=this.limitSet_,t.limit_=this.limit_,t.startSet_=this.startSet_,t.indexStartValue_=this.indexStartValue_,t.startNameSet_=this.startNameSet_,t.indexStartName_=this.indexStartName_,t.endSet_=this.endSet_,t.indexEndValue_=this.indexEndValue_,t.endNameSet_=this.endNameSet_,t.indexEndName_=this.indexEndName_,t.index_=this.index_,t.viewFrom_=this.viewFrom_,t},e.prototype.limit=function(e){var t=this.copy_();return t.limitSet_=!0,t.limit_=e,t.viewFrom_="",t},e.prototype.limitToFirst=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_LEFT,n},e.prototype.limitToLast=function(t){var n=this.copy_();return n.limitSet_=!0,n.limit_=t,n.viewFrom_=e.WIRE_PROTOCOL_CONSTANTS_.VIEW_FROM_RIGHT,n},e.prototype.startAt=function(e,t){var n=this.copy_();return n.startSet_=!0,void 0===e&&(e=null),n.indexStartValue_=e,null!=t?(n.startNameSet_=!0,n.indexStartName_=t):(n.startNameSet_=!1,n.indexStartName_=""),n},e.prototype.endAt=function(e,t){var n=this.copy_();return n.endSet_=!0,void 0===e&&(e=null),n.indexEndValue_=e,void 0!==t?(n.endNameSet_=!0,n.indexEndName_=t):(n.endNameSet_=!1,n.indexEndName_=""),n},e.prototype.orderBy=function(e){var t=this.copy_();return t.index_=e,t},e.prototype.getQueryObject=function(){var t=e.WIRE_PROTOCOL_CONSTANTS_,n={};if(this.startSet_&&(n[t.INDEX_START_VALUE]=this.indexStartValue_,this.startNameSet_&&(n[t.INDEX_START_NAME]=this.indexStartName_)),this.endSet_&&(n[t.INDEX_END_VALUE]=this.indexEndValue_,this.endNameSet_&&(n[t.INDEX_END_NAME]=this.indexEndName_)),this.limitSet_){n[t.LIMIT]=this.limit_;var r=this.viewFrom_;""===r&&(r=this.isViewFromLeft()?t.VIEW_FROM_LEFT:t.VIEW_FROM_RIGHT),n[t.VIEW_FROM]=r}return this.index_!==Ae&&(n[t.INDEX]=this.index_.toString()),n},e.prototype.loadsAllData=function(){return!(this.startSet_||this.endSet_||this.limitSet_)},e.prototype.isDefault=function(){return this.loadsAllData()&&this.index_==Ae},e.prototype.getNodeFilter=function(){return this.loadsAllData()?new mt(this.getIndex()):this.hasLimit()?new on(this):new rn(this)},e.prototype.toRestQueryStringParameters=function(){var t,n=e.REST_QUERY_CONSTANTS_,r={};return this.isDefault()?r:(this.index_===Ae?t=n.PRIORITY_INDEX:this.index_===Ke?t=n.VALUE_INDEX:this.index_===be?t=n.KEY_INDEX:(a.assert(this.index_ instanceof Ge,"Unrecognized index type!"),t=this.index_.toString()),r[n.ORDER_BY]=a.stringify(t),this.startSet_&&(r[n.START_AT]=a.stringify(this.indexStartValue_),this.startNameSet_&&(r[n.START_AT]+=","+a.stringify(this.indexStartName_))),this.endSet_&&(r[n.END_AT]=a.stringify(this.indexEndValue_),this.endNameSet_&&(r[n.END_AT]+=","+a.stringify(this.indexEndName_))),this.limitSet_&&(this.isViewFromLeft()?r[n.LIMIT_TO_FIRST]=this.limit_:r[n.LIMIT_TO_LAST]=this.limit_),r)},e.WIRE_PROTOCOL_CONSTANTS_={INDEX_START_VALUE:"sp",INDEX_START_NAME:"sn",INDEX_END_VALUE:"ep",INDEX_END_NAME:"en",LIMIT:"l",VIEW_FROM:"vf",VIEW_FROM_LEFT:"l",VIEW_FROM_RIGHT:"r",INDEX:"i"},e.REST_QUERY_CONSTANTS_={ORDER_BY:"orderBy",PRIORITY_INDEX:"$priority",VALUE_INDEX:"$value",KEY_INDEX:"$key",START_AT:"startAt",END_AT:"endAt",LIMIT_TO_FIRST:"limitToFirst",LIMIT_TO_LAST:"limitToLast"},e.DEFAULT=new e,e}(),sn=function(e){function t(t,n){if(!(t instanceof nn))throw new Error("new Reference() no longer supported - use app.database().");return e.call(this,t,n,an.DEFAULT,!1)||this}return u.__extends(t,e),t.prototype.getKey=function(){return a.validateArgCount("Reference.key",0,0,arguments.length),this.path.isEmpty()?null:this.path.getBack()},t.prototype.child=function(e){return a.validateArgCount("Reference.child",1,1,arguments.length),"number"==typeof e?e=String(e):e instanceof V||(null===this.path.getFront()?function(e,t,n,r){n&&(n=n.replace(/^\/*\.info(\/|$)/,"/")),le(e,t,n,r)}("Reference.child",1,e,!1):le("Reference.child",1,e,!1)),new t(this.repo,this.path.child(e))},t.prototype.getParent=function(){a.validateArgCount("Reference.parent",0,0,arguments.length);var e=this.path.parent();return null===e?null:new t(this.repo,e)},t.prototype.getRoot=function(){a.validateArgCount("Reference.root",0,0,arguments.length);for(var e=this;null!==e.getParent();)e=e.getParent();return e},t.prototype.databaseProp=function(){return this.repo.database},t.prototype.set=function(e,t){a.validateArgCount("Reference.set",1,2,arguments.length),fe("Reference.set",this.path),ie("Reference.set",1,e,this.path,!1),a.validateCallback("Reference.set",2,t,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path,e,null,n.wrapCallback(t)),n.promise},t.prototype.update=function(e,t){if(a.validateArgCount("Reference.update",1,2,arguments.length),fe("Reference.update",this.path),Array.isArray(e)){for(var n={},r=0;r<e.length;++r)n[""+r]=e[r];e=n,k("Passing an Array to Firebase.update() is deprecated. Use set() if you want to overwrite the existing data, or an Object with integer keys if you really do want to only update some of the children.")}ae("Reference.update",1,e,this.path,!1),a.validateCallback("Reference.update",2,t,!0);var i=new a.Deferred;return this.repo.update(this.path,e,i.wrapCallback(t)),i.promise},t.prototype.setWithPriority=function(e,t,n){if(a.validateArgCount("Reference.setWithPriority",2,3,arguments.length),fe("Reference.setWithPriority",this.path),ie("Reference.setWithPriority",1,e,this.path,!1),se("Reference.setWithPriority",2,t,!1),a.validateCallback("Reference.setWithPriority",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.setWithPriority failed: "+this.getKey()+" is a read-only object.";var r=new a.Deferred;return this.repo.setWithPriority(this.path,e,t,r.wrapCallback(n)),r.promise},t.prototype.remove=function(e){return a.validateArgCount("Reference.remove",0,1,arguments.length),fe("Reference.remove",this.path),a.validateCallback("Reference.remove",1,e,!0),this.set(null,e)},t.prototype.transaction=function(e,t,n){if(a.validateArgCount("Reference.transaction",1,3,arguments.length),fe("Reference.transaction",this.path),a.validateCallback("Reference.transaction",1,e,!1),a.validateCallback("Reference.transaction",2,t,!0),function(e,t,n,r){if((!r||void 0!==n)&&"boolean"!=typeof n)throw new Error(a.errorPrefix(e,t,r)+"must be a boolean.")}("Reference.transaction",3,n,!0),".length"===this.getKey()||".keys"===this.getKey())throw"Reference.transaction failed: "+this.getKey()+" is a read-only object.";void 0===n&&(n=!0);var r=new a.Deferred;"function"==typeof t&&r.promise.catch(function(){});return this.repo.startTransaction(this.path,e,function(e,n,i){e?r.reject(e):r.resolve(new de(n,i)),"function"==typeof t&&t(e,n,i)},n),r.promise},t.prototype.setPriority=function(e,t){a.validateArgCount("Reference.setPriority",1,2,arguments.length),fe("Reference.setPriority",this.path),se("Reference.setPriority",1,e,!1),a.validateCallback("Reference.setPriority",2,t,!0);var n=new a.Deferred;return this.repo.setWithPriority(this.path.child(".priority"),e,null,n.wrapCallback(t)),n.promise},t.prototype.push=function(e,t){a.validateArgCount("Reference.push",0,2,arguments.length),fe("Reference.push",this.path),ie("Reference.push",1,e,this.path,!0),a.validateCallback("Reference.push",2,t,!0);var n,r=this.repo.serverTime(),i=ve(r),o=this.child(i),s=this.child(i);return n=null!=e?o.set(e,t).then(function(){return s}):Promise.resolve(s),o.then=n.then.bind(n),o.catch=n.then.bind(n,void 0),"function"==typeof t&&n.catch(function(){}),o},t.prototype.onDisconnect=function(){return fe("Reference.onDisconnect",this.path),new pe(this.repo,this.path)},Object.defineProperty(t.prototype,"database",{get:function(){return this.databaseProp()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"key",{get:function(){return this.getKey()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this.getParent()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this.getRoot()},enumerable:!0,configurable:!0}),t}(Ze);Ze.__referenceConstructor=sn,Ct.__referenceConstructor=sn;var un,cn=function(){return function(){this.children={},this.childCount=0,this.value=null}}(),ln=function(){function e(e,t,n){void 0===e&&(e=""),void 0===t&&(t=null),void 0===n&&(n=new cn),this.name_=e,this.parent_=t,this.node_=n}return e.prototype.subTree=function(t){for(var n,r=t instanceof V?t:new V(t),i=this;null!==(n=r.getFront());){i=new e(n,i,a.safeGet(i.node_.children,n)||new cn),r=r.popFront()}return i},e.prototype.getValue=function(){return this.node_.value},e.prototype.setValue=function(e){a.assert(void 0!==e,"Cannot set value to undefined"),this.node_.value=e,this.updateParents_()},e.prototype.clear=function(){this.node_.value=null,this.node_.children={},this.node_.childCount=0,this.updateParents_()},e.prototype.hasChildren=function(){return this.node_.childCount>0},e.prototype.isEmpty=function(){return null===this.getValue()&&!this.hasChildren()},e.prototype.forEachChild=function(t){var n=this;a.forEach(this.node_.children,function(r,i){t(new e(r,n,i))})},e.prototype.forEachDescendant=function(e,t,n){t&&!n&&e(this),this.forEachChild(function(t){t.forEachDescendant(e,!0,n)}),t&&n&&e(this)},e.prototype.forEachAncestor=function(e,t){for(var n=t?this:this.parent();null!==n;){if(e(n))return!0;n=n.parent()}return!1},e.prototype.forEachImmediateDescendantWithValue=function(e){this.forEachChild(function(t){null!==t.getValue()?e(t):t.forEachImmediateDescendantWithValue(e)})},e.prototype.path=function(){return new V(null===this.parent_?this.name_:this.parent_.path()+"/"+this.name_)},e.prototype.name=function(){return this.name_},e.prototype.parent=function(){return this.parent_},e.prototype.updateParents_=function(){null!==this.parent_&&this.parent_.updateChild_(this.name_,this)},e.prototype.updateChild_=function(e,t){var n=t.isEmpty(),r=a.contains(this.node_.children,e);n&&r?(delete this.node_.children[e],this.node_.childCount--,this.updateParents_()):n||r||(this.node_.children[e]=t.node_,this.node_.childCount++,this.updateParents_())},e}();!function(e){e[e.RUN=0]="RUN",e[e.SENT=1]="SENT",e[e.COMPLETED=2]="COMPLETED",e[e.SENT_NEEDS_ABORT=3]="SENT_NEEDS_ABORT",e[e.NEEDS_ABORT=4]="NEEDS_ABORT"}(un||(un={})),nn.MAX_TRANSACTION_RETRIES_=25,nn.prototype.transactions_init_=function(){this.transactionQueueTree_=new ln},nn.prototype.startTransaction=function(e,t,n,r){this.log_("transaction on "+e);var i=function(){},o=new sn(this,e);o.on("value",i);var s={path:e,update:t,onComplete:n,status:null,order:m(),applyLocally:r,retryCount:0,unwatcher:function(){o.off("value",i)},abortReason:null,currentWriteId:null,currentInputSnapshot:null,currentOutputSnapshotRaw:null,currentOutputSnapshotResolved:null},u=this.getLatestState_(e);s.currentInputSnapshot=u;var c=s.update(u.val());if(void 0===c){if(s.unwatcher(),s.currentOutputSnapshotRaw=null,s.currentOutputSnapshotResolved=null,s.onComplete){var l=new Qe(s.currentInputSnapshot,new sn(this,s.path),Ae);s.onComplete(null,!1,l)}}else{oe("transaction failed: Data returned ",c,s.path),s.status=un.RUN;var f=this.transactionQueueTree_.subTree(e),h=f.getValue()||[];h.push(s),f.setValue(h);var p=void 0;if("object"==typeof c&&null!==c&&a.contains(c,".priority"))p=a.safeGet(c,".priority"),a.assert(re(p),"Invalid priority returned by transaction. Priority must be a valid string, finite number, server value, or null.");else p=(this.serverSyncTree_.calcCompleteEventCache(e)||Be.EMPTY_NODE).getPriority().val();p=p;var d=this.generateServerValues(),v=We(c,p),y=rt(v,d);s.currentOutputSnapshotRaw=v,s.currentOutputSnapshotResolved=y,s.currentWriteId=this.getNextWriteId_();var g=this.serverSyncTree_.applyUserOverwrite(e,y,s.currentWriteId,s.applyLocally);this.eventQueue_.raiseEventsForChangedPath(e,g),this.sendReadyTransactions_()}},nn.prototype.getLatestState_=function(e,t){return this.serverSyncTree_.calcCompleteEventCache(e,t)||Be.EMPTY_NODE},nn.prototype.sendReadyTransactions_=function(e){var t=this;if(void 0===e&&(e=this.transactionQueueTree_),e||this.pruneCompletedTransactionsBelowNode_(e),null!==e.getValue()){var n=this.buildTransactionQueue_(e);a.assert(n.length>0,"Sending zero length transaction queue"),n.every(function(e){return e.status===un.RUN})&&this.sendTransactionQueue_(e.path(),n)}else e.hasChildren()&&e.forEachChild(function(e){t.sendReadyTransactions_(e)})},nn.prototype.sendTransactionQueue_=function(e,t){for(var n=this,r=t.map(function(e){return e.currentWriteId}),i=this.getLatestState_(e,r),o=i,s=i.hash(),u=0;u<t.length;u++){var c=t[u];a.assert(c.status===un.RUN,"tryToSendTransactionQueue_: items in queue should all be run."),c.status=un.SENT,c.retryCount++;var l=V.relativePath(e,c.path);o=o.updateChild(l,c.currentOutputSnapshotRaw)}var f=o.val(!0),h=e;this.server_.put(h.toString(),f,function(r){n.log_("transaction put response",{path:h.toString(),status:r});var i=[];if("ok"===r){for(var o=[],a=0;a<t.length;a++){if(t[a].status=un.COMPLETED,i=i.concat(n.serverSyncTree_.ackUserWrite(t[a].currentWriteId)),t[a].onComplete){var s=t[a].currentOutputSnapshotResolved,u=new sn(n,t[a].path),c=new Qe(s,u,Ae);o.push(t[a].onComplete.bind(null,null,!0,c))}t[a].unwatcher()}n.pruneCompletedTransactionsBelowNode_(n.transactionQueueTree_.subTree(e)),n.sendReadyTransactions_(),n.eventQueue_.raiseEventsForChangedPath(e,i);for(a=0;a<o.length;a++)U(o[a])}else{if("datastale"===r)for(a=0;a<t.length;a++)t[a].status===un.SENT_NEEDS_ABORT?t[a].status=un.NEEDS_ABORT:t[a].status=un.RUN;else{k("transaction at "+h.toString()+" failed: "+r);for(a=0;a<t.length;a++)t[a].status=un.NEEDS_ABORT,t[a].abortReason=r}n.rerunTransactions_(e)}},s)},nn.prototype.rerunTransactions_=function(e){var t=this.getAncestorTransactionNode_(e),n=t.path(),r=this.buildTransactionQueue_(t);return this.rerunTransactionQueue_(r,n),n},nn.prototype.rerunTransactionQueue_=function(e,t){if(0!==e.length){for(var n,r=[],i=[],o=e.filter(function(e){return e.status===un.RUN}).map(function(e){return e.currentWriteId}),s=0;s<e.length;s++){var u=e[s],c=V.relativePath(t,u.path),l=!1,f=void 0;if(a.assert(null!==c,"rerunTransactionsUnderNode_: relativePath should not be null."),u.status===un.NEEDS_ABORT)l=!0,f=u.abortReason,i=i.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0));else if(u.status===un.RUN)if(u.retryCount>=nn.MAX_TRANSACTION_RETRIES_)l=!0,f="maxretry",i=i.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0));else{var h=this.getLatestState_(u.path,o);u.currentInputSnapshot=h;var p=e[s].update(h.val());if(void 0!==p){oe("transaction failed: Data returned ",p,u.path);var d=We(p);"object"==typeof p&&null!=p&&a.contains(p,".priority")||(d=d.updatePriority(h.getPriority()));var v=u.currentWriteId,m=this.generateServerValues(),y=rt(d,m);u.currentOutputSnapshotRaw=d,u.currentOutputSnapshotResolved=y,u.currentWriteId=this.getNextWriteId_(),o.splice(o.indexOf(v),1),i=(i=i.concat(this.serverSyncTree_.applyUserOverwrite(u.path,y,u.currentWriteId,u.applyLocally))).concat(this.serverSyncTree_.ackUserWrite(v,!0))}else l=!0,f="nodata",i=i.concat(this.serverSyncTree_.ackUserWrite(u.currentWriteId,!0))}if(this.eventQueue_.raiseEventsForChangedPath(t,i),i=[],l&&(e[s].status=un.COMPLETED,n=e[s].unwatcher,setTimeout(n,Math.floor(0)),e[s].onComplete))if("nodata"===f){var g=new sn(this,e[s].path),b=e[s].currentInputSnapshot,_=new Qe(b,g,Ae);r.push(e[s].onComplete.bind(null,null,!1,_))}else r.push(e[s].onComplete.bind(null,new Error(f),!1,null))}this.pruneCompletedTransactionsBelowNode_(this.transactionQueueTree_);for(s=0;s<r.length;s++)U(r[s]);this.sendReadyTransactions_()}},nn.prototype.getAncestorTransactionNode_=function(e){for(var t,n=this.transactionQueueTree_;null!==(t=e.getFront())&&null===n.getValue();)n=n.subTree(t),e=e.popFront();return n},nn.prototype.buildTransactionQueue_=function(e){var t=[];return this.aggregateTransactionQueuesForNode_(e,t),t.sort(function(e,t){return e.order-t.order}),t},nn.prototype.aggregateTransactionQueuesForNode_=function(e,t){var n=this,r=e.getValue();if(null!==r)for(var i=0;i<r.length;i++)t.push(r[i]);e.forEachChild(function(e){n.aggregateTransactionQueuesForNode_(e,t)})},nn.prototype.pruneCompletedTransactionsBelowNode_=function(e){var t=this,n=e.getValue();if(n){for(var r=0,i=0;i<n.length;i++)n[i].status!==un.COMPLETED&&(n[r]=n[i],r++);n.length=r,e.setValue(n.length>0?n:null)}e.forEachChild(function(e){t.pruneCompletedTransactionsBelowNode_(e)})},nn.prototype.abortTransactions_=function(e){var t=this,n=this.getAncestorTransactionNode_(e).path(),r=this.transactionQueueTree_.subTree(e);return r.forEachAncestor(function(e){t.abortTransactionsOnNode_(e)}),this.abortTransactionsOnNode_(r),r.forEachDescendant(function(e){t.abortTransactionsOnNode_(e)}),n},nn.prototype.abortTransactionsOnNode_=function(e){var t=e.getValue();if(null!==t){for(var n=[],r=[],i=-1,o=0;o<t.length;o++)if(t[o].status===un.SENT_NEEDS_ABORT);else if(t[o].status===un.SENT)a.assert(i===o-1,"All SENT items should be at beginning of queue."),i=o,t[o].status=un.SENT_NEEDS_ABORT,t[o].abortReason="set";else if(a.assert(t[o].status===un.RUN,"Unexpected transaction status in abort"),t[o].unwatcher(),r=r.concat(this.serverSyncTree_.ackUserWrite(t[o].currentWriteId,!0)),t[o].onComplete){n.push(t[o].onComplete.bind(null,new Error("set"),!1,null))}-1===i?e.setValue(null):t.length=i+1,this.eventQueue_.raiseEventsForChangedPath(e.path(),r);for(o=0;o<n.length;o++)U(n[o])}};var fn,hn=function(){function e(){this.repos_={},this.useRestClient_=!1}return e.getInstance=function(){return fn||(fn=new e),fn},e.prototype.interrupt=function(){for(var e in this.repos_)for(var t in this.repos_[e])this.repos_[e][t].interrupt()},e.prototype.resume=function(){for(var e in this.repos_)for(var t in this.repos_[e])this.repos_[e][t].resume()},e.prototype.databaseFromApp=function(e,t){var n=t||e.options.databaseURL;void 0===n&&T("Can't determine Firebase Database URL. Be sure to include databaseURL option when calling firebase.initializeApp().");var r=J(n),i=r.repoInfo;return he("Invalid Firebase Database URL",1,r),r.path.isEmpty()||T("Database URL must point to the root of a Firebase Database (not including a child path)."),this.createRepo(i,e).database},e.prototype.deleteRepo=function(e){var t=a.safeGet(this.repos_,e.app.name);t&&a.safeGet(t,e.repoInfo_.toURLString())===e||T("Database "+e.app.name+"("+e.repoInfo_+") has already been deleted."),e.interrupt(),delete t[e.repoInfo_.toURLString()]},e.prototype.createRepo=function(e,t){var n=a.safeGet(this.repos_,t.name);n||(n={},this.repos_[t.name]=n);var r=a.safeGet(n,e.toURLString());return r&&T("Database initialized multiple times. Please make sure the format of the database URL matches with each database() call."),r=new nn(e,this.useRestClient_,t),n[e.toURLString()]=r,r},e.prototype.forceRestClient=function(e){this.useRestClient_=e},e}(),pn=function(){function e(e){this.repo_=e,e instanceof nn||T("Don't call new Database() directly - please use firebase.database()."),this.root_=new sn(e,V.Empty),this.INTERNAL=new dn(this)}return Object.defineProperty(e.prototype,"app",{get:function(){return this.repo_.app},enumerable:!0,configurable:!0}),e.prototype.ref=function(e){return this.checkDeleted_("ref"),a.validateArgCount("database.ref",0,1,arguments.length),e instanceof sn?this.refFromURL(e.toString()):void 0!==e?this.root_.child(e):this.root_},e.prototype.refFromURL=function(e){var t="database.refFromURL";this.checkDeleted_(t),a.validateArgCount(t,1,1,arguments.length);var n=J(e);he(t,1,n);var r=n.repoInfo;return r.host!==this.repo_.repoInfo_.host&&T(t+": Host name does not match the current database: (found "+r.host+" but expected "+this.repo_.repoInfo_.host+")"),this.ref(n.path.toString())},e.prototype.checkDeleted_=function(e){null===this.repo_&&T("Cannot call "+e+" on a deleted database.")},e.prototype.goOffline=function(){a.validateArgCount("database.goOffline",0,0,arguments.length),this.checkDeleted_("goOffline"),this.repo_.interrupt()},e.prototype.goOnline=function(){a.validateArgCount("database.goOnline",0,0,arguments.length),this.checkDeleted_("goOnline"),this.repo_.resume()},e.ServerValue={TIMESTAMP:{".sv":"timestamp"}},e}(),dn=function(){function e(e){this.database=e}return e.prototype.delete=function(){return u.__awaiter(this,void 0,void 0,function(){return u.__generator(this,function(e){return this.database.checkDeleted_("delete"),hn.getInstance().deleteRepo(this.database.repo_),this.database.repo_=null,this.database.root_=null,this.database.INTERNAL=null,this.database=null,[2]})})},e}(),vn=Object.freeze({forceLongPolling:function(){Qt.forceDisallow(),Ht.forceAllow()},forceWebSockets:function(){Ht.forceDisallow()},isWebSocketsAvailable:function(){return Qt.isAvailable()},setSecurityDebugCallback:function(e,t){e.repo.persistentConnection_.securityDebugCallback_=t},stats:function(e,t){e.repo.stats(t)},statsIncrementCounter:function(e,t){e.repo.statsIncrementCounter(t)},dataUpdateCount:function(e){return e.repo.dataUpdateCount},interceptServerData:function(e,t){return e.repo.interceptServerData_(t)}}),mn=en;en.prototype.simpleListen=function(e,t){this.sendRequest("q",{p:e},t)},en.prototype.echo=function(e,t){this.sendRequest("echo",{d:e},t)};var yn=Xt,gn=H,bn=Object.freeze({DataConnection:mn,RealTimeConnection:yn,hijackHash:function(e){var t=en.prototype.put;return en.prototype.put=function(n,r,i,o){void 0!==o&&(o=e()),t.call(this,n,r,i,o)},function(){en.prototype.put=t}},ConnectionTarget:gn,queryIdentifier:function(e){return e.queryIdentifier()},listens:function(e){return e.repo.persistentConnection_.listens_},forceRestClient:function(e){hn.getInstance().forceRestClient(e)}}),_n=pn.ServerValue;function wn(t){var n=t.INTERNAL.registerService("database",function(e,t,n){return hn.getInstance().databaseFromApp(e,n)},{Reference:sn,Query:Ze,Database:pn,enableLogging:w,INTERNAL:vn,ServerValue:_n,TEST_ACCESS:bn},null,!0);a.isNodeSdk()&&(e.exports=n)}wn(c),t.registerDatabase=wn,t.Database=pn,t.Query=Ze,t.Reference=sn,t.enableLogging=w,t.ServerValue=_n,t.DataSnapshot=Qe,t.OnDisconnect=pe}).call(this,n(88))},function(e,t,n){"use strict";n.r(t),function(e){var t=n(14),r=n.n(t);(function(){var e,t=t||{},n=this;function i(e){return"string"==typeof e}function o(e){return"boolean"==typeof e}function a(){}function s(e){var t=typeof e;if("object"==t){if(!e)return"null";if(e instanceof Array)return"array";if(e instanceof Object)return t;var n=Object.prototype.toString.call(e);if("[object Window]"==n)return"object";if("[object Array]"==n||"number"==typeof e.length&&void 0!==e.splice&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("splice"))return"array";if("[object Function]"==n||void 0!==e.call&&void 0!==e.propertyIsEnumerable&&!e.propertyIsEnumerable("call"))return"function"}else if("function"==t&&void 0===e.call)return"object";return t}function u(e){return null===e}function c(e){return"array"==s(e)}function l(e){var t=s(e);return"array"==t||"object"==t&&"number"==typeof e.length}function f(e){return"function"==s(e)}function h(e){var t=typeof e;return"object"==t&&null!=e||"function"==t}var p="closure_uid_"+(1e9*Math.random()>>>0),d=0;function v(e,t,n){return e.call.apply(e.bind,arguments)}function m(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 y(e,t,n){return(y=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?v:m).apply(null,arguments)}function g(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}var b=Date.now||function(){return+new Date};function _(e,t){function n(){}n.prototype=t.prototype,e.lb=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.cd=function(e,n,r){for(var i=Array(arguments.length-2),o=2;o<arguments.length;o++)i[o-2]=arguments[o];return t.prototype[n].apply(e,i)}}function w(e){e.prototype.then=e.prototype.then,e.prototype.$goog_Thenable=!0}function E(e){if(!e)return!1;try{return!!e.$goog_Thenable}catch(e){return!1}}function x(e){if(Error.captureStackTrace)Error.captureStackTrace(this,x);else{var t=Error().stack;t&&(this.stack=t)}e&&(this.message=String(e))}function C(e,t){for(var n="",r=(e=e.split("%s")).length-1,i=0;i<r;i++)n+=e[i]+(i<t.length?t[i]:"%s");x.call(this,n+e[r])}function T(e,t){throw new C("Failure"+(e?": "+e:""),Array.prototype.slice.call(arguments,1))}function k(e,t){this.c=e,this.f=t,this.b=0,this.a=null}function S(e,t){e.f(t),100>e.b&&(e.b++,t.next=e.a,e.a=t)}function A(){this.b=this.a=null}_(x,Error),x.prototype.name="CustomError",_(C,x),C.prototype.name="AssertionError",k.prototype.get=function(){if(0<this.b){this.b--;var e=this.a;this.a=e.next,e.next=null}else e=this.c();return e};var N=new k(function(){return new I},function(e){e.reset()});function O(){var e=pe,t=null;return e.a&&(t=e.a,e.a=e.a.next,e.a||(e.b=null),t.next=null),t}function I(){this.next=this.b=this.a=null}A.prototype.add=function(e,t){var n=N.get();n.set(e,t),this.b?this.b.next=n:this.a=n,this.b=n},I.prototype.set=function(e,t){this.a=e,this.b=t,this.next=null},I.prototype.reset=function(){this.next=this.b=this.a=null};var P=Array.prototype.indexOf?function(e,t){return Array.prototype.indexOf.call(e,t,void 0)}:function(e,t){if(i(e))return i(t)&&1==t.length?e.indexOf(t,0):-1;for(var n=0;n<e.length;n++)if(n in e&&e[n]===t)return n;return-1},R=Array.prototype.forEach?function(e,t,n){Array.prototype.forEach.call(e,t,n)}:function(e,t,n){for(var r=e.length,o=i(e)?e.split(""):e,a=0;a<r;a++)a in o&&t.call(n,o[a],a,e)};var D=Array.prototype.map?function(e,t){return Array.prototype.map.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=Array(n),o=i(e)?e.split(""):e,a=0;a<n;a++)a in o&&(r[a]=t.call(void 0,o[a],a,e));return r},M=Array.prototype.some?function(e,t){return Array.prototype.some.call(e,t,void 0)}:function(e,t){for(var n=e.length,r=i(e)?e.split(""):e,o=0;o<n;o++)if(o in r&&t.call(void 0,r[o],o,e))return!0;return!1};function L(e,t){return 0<=P(e,t)}function j(e,t){var n;return(n=0<=(t=P(e,t)))&&Array.prototype.splice.call(e,t,1),n}function F(e,t){!function(e,t){var n=e.length,r=i(e)?e.split(""):e;for(--n;0<=n;--n)n in r&&t.call(void 0,r[n],n,e)}(e,function(n,r){t.call(void 0,n,r,e)&&1==Array.prototype.splice.call(e,r,1).length&&0})}function U(e){return Array.prototype.concat.apply([],arguments)}function B(e){var t=e.length;if(0<t){for(var n=Array(t),r=0;r<t;r++)n[r]=e[r];return n}return[]}function q(e,t){for(var n=e.split("%s"),r="",i=Array.prototype.slice.call(arguments,1);i.length&&1<n.length;)r+=n.shift()+i.shift();return r+n.join("%s")}var V=String.prototype.trim?function(e){return e.trim()}:function(e){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(e)[1]};function W(e){return J.test(e)?(-1!=e.indexOf("&")&&(e=e.replace(H,"&")),-1!=e.indexOf("<")&&(e=e.replace(K,"<")),-1!=e.indexOf(">")&&(e=e.replace(G,">")),-1!=e.indexOf('"')&&(e=e.replace(Q,""")),-1!=e.indexOf("'")&&(e=e.replace(Y,"'")),-1!=e.indexOf("\0")&&(e=e.replace(X,"&#0;")),e):e}var z,H=/&/g,K=/</g,G=/>/g,Q=/"/g,Y=/'/g,X=/\x00/g,J=/[\x00&<>"']/;function $(e,t){return-1!=e.indexOf(t)}function Z(e,t){return e<t?-1:e>t?1:0}e:{var ee=n.navigator;if(ee){var te=ee.userAgent;if(te){z=te;break e}}z=""}function ne(e){return $(z,e)}function re(e,t){for(var n in e)t.call(void 0,e[n],n,e)}function ie(e){for(var t in e)return!1;return!0}function oe(e){var t,n={};for(t in e)n[t]=e[t];return n}var ae,se,ue="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function ce(e,t){for(var n,r,i=1;i<arguments.length;i++){for(n in r=arguments[i])e[n]=r[n];for(var o=0;o<ue.length;o++)n=ue[o],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function le(e){n.setTimeout(function(){throw e},0)}function fe(e,t){se||function(){if(n.Promise&&n.Promise.resolve){var e=n.Promise.resolve(void 0);se=function(){e.then(de)}}else se=function(){var e=de;!f(n.setImmediate)||n.Window&&n.Window.prototype&&!ne("Edge")&&n.Window.prototype.setImmediate==n.setImmediate?(ae||(ae=function(){var e=n.MessageChannel;if(void 0===e&&"undefined"!=typeof window&&window.postMessage&&window.addEventListener&&!ne("Presto")&&(e=function(){var e=document.createElement("IFRAME");e.style.display="none",e.src="",document.documentElement.appendChild(e);var t=e.contentWindow;(e=t.document).open(),e.write(""),e.close();var n="callImmediate"+Math.random(),r="file:"==t.location.protocol?"*":t.location.protocol+"//"+t.location.host;e=y(function(e){"*"!=r&&e.origin!=r||e.data!=n||this.port1.onmessage()},this),t.addEventListener("message",e,!1),this.port1={},this.port2={postMessage:function(){t.postMessage(n,r)}}}),void 0!==e&&!ne("Trident")&&!ne("MSIE")){var t=new e,r={},i=r;return t.port1.onmessage=function(){if(void 0!==r.next){var e=(r=r.next).tb;r.tb=null,e()}},function(e){i.next={tb:e},i=i.next,t.port2.postMessage(0)}}return"undefined"!=typeof document&&"onreadystatechange"in document.createElement("SCRIPT")?function(e){var t=document.createElement("SCRIPT");t.onreadystatechange=function(){t.onreadystatechange=null,t.parentNode.removeChild(t),t=null,e(),e=null},document.documentElement.appendChild(t)}:function(e){n.setTimeout(e,0)}}()),ae(e)):n.setImmediate(e)}}(),he||(se(),he=!0),pe.add(e,t)}var he=!1,pe=new A;function de(){for(var e;e=O();){try{e.a.call(e.b)}catch(e){le(e)}S(N,e)}he=!1}function ve(e,t){if(this.a=me,this.i=void 0,this.f=this.b=this.c=null,this.g=this.h=!1,e!=a)try{var n=this;e.call(t,function(e){Se(n,ye,e)},function(e){if(!(e instanceof De))try{if(e instanceof Error)throw e;throw Error("Promise rejected.")}catch(e){}Se(n,ge,e)})}catch(e){Se(this,ge,e)}}var me=0,ye=2,ge=3;function be(){this.next=this.f=this.b=this.g=this.a=null,this.c=!1}be.prototype.reset=function(){this.f=this.b=this.g=this.a=null,this.c=!1};var _e=new k(function(){return new be},function(e){e.reset()});function we(e,t,n){var r=_e.get();return r.g=e,r.b=t,r.f=n,r}function Ee(e){if(e instanceof ve)return e;var t=new ve(a);return Se(t,ye,e),t}function xe(e){return new ve(function(t,n){n(e)})}function Ce(e,t,n){Ae(e,t,n,null)||fe(g(t,e))}function Te(e,t){e.b||e.a!=ye&&e.a!=ge||Ne(e),e.f?e.f.next=t:e.b=t,e.f=t}function ke(e,t,n,r){var i=we(null,null,null);return i.a=new ve(function(e,o){i.g=t?function(n){try{var i=t.call(r,n);e(i)}catch(e){o(e)}}:e,i.b=n?function(t){try{var i=n.call(r,t);void 0===i&&t instanceof De?o(t):e(i)}catch(e){o(e)}}:o}),i.a.c=e,Te(e,i),i.a}function Se(e,t,n){e.a==me&&(e===n&&(t=ge,n=new TypeError("Promise cannot resolve to itself")),e.a=1,Ae(n,e.Lc,e.Mc,e)||(e.i=n,e.a=t,e.c=null,Ne(e),t!=ge||n instanceof De||function(e,t){e.g=!0,fe(function(){e.g&&Re.call(null,t)})}(e,n)))}function Ae(e,t,n,r){if(e instanceof ve)return Te(e,we(t||a,n||null,r)),!0;if(E(e))return e.then(t,n,r),!0;if(h(e))try{var i=e.then;if(f(i))return function(e,t,n,r,i){function o(e){a||(a=!0,r.call(i,e))}var a=!1;try{t.call(e,function(e){a||(a=!0,n.call(i,e))},o)}catch(e){o(e)}}(e,i,t,n,r),!0}catch(e){return n.call(r,e),!0}return!1}function Ne(e){e.h||(e.h=!0,fe(e.Ub,e))}function Oe(e){var t=null;return e.b&&(t=e.b,e.b=t.next,t.next=null),e.b||(e.f=null),t}function Ie(e,t,n,r){if(n==ge&&t.b&&!t.c)for(;e&&e.g;e=e.c)e.g=!1;if(t.a)t.a.c=null,Pe(t,n,r);else try{t.c?t.g.call(t.f):Pe(t,n,r)}catch(e){Re.call(null,e)}S(_e,t)}function Pe(e,t,n){t==ye?e.g.call(e.f,n):e.b&&e.b.call(e.f,n)}ve.prototype.then=function(e,t,n){return ke(this,f(e)?e:null,f(t)?t:null,n)},w(ve),(e=ve.prototype).ia=function(e,t){return(e=we(e,e,t)).c=!0,Te(this,e),this},e.s=function(e,t){return ke(this,null,e,t)},e.cancel=function(e){this.a==me&&fe(function(){!function e(t,n){if(t.a==me)if(t.c){var r=t.c;if(r.b){for(var i=0,o=null,a=null,s=r.b;s&&(s.c||(i++,s.a==t&&(o=s),!(o&&1<i)));s=s.next)o||(a=s);o&&(r.a==me&&1==i?e(r,n):(a?((i=a).next==r.f&&(r.f=i),i.next=i.next.next):Oe(r),Ie(r,o,ge,n)))}t.c=null}else Se(t,ge,n)}(this,new De(e))},this)},e.Lc=function(e){this.a=me,Se(this,ye,e)},e.Mc=function(e){this.a=me,Se(this,ge,e)},e.Ub=function(){for(var e;e=Oe(this);)Ie(this,e,this.a,this.i);this.h=!1};var Re=le;function De(e){x.call(this,e)}function Me(){0!=Le&&(je[this[p]||(this[p]=++d)]=this),this.pa=this.pa,this.ja=this.ja}_(De,x),De.prototype.name="cancel";var Le=0,je={};function Fe(e){if(!e.pa&&(e.pa=!0,e.ua(),0!=Le)){var t=e[p]||(e[p]=++d);if(0!=Le&&e.ja&&0<e.ja.length)throw Error(e+" did not empty its onDisposeCallbacks queue. This probably means it overrode dispose() or disposeInternal() without calling the superclass' method.");delete je[t]}}function Ue(e){return Ue[" "](e),e}Me.prototype.pa=!1,Me.prototype.ua=function(){if(this.ja)for(;this.ja.length;)this.ja.shift()()},Ue[" "]=a;var Be,qe,Ve=ne("Opera"),We=ne("Trident")||ne("MSIE"),ze=ne("Edge"),He=ze||We,Ke=ne("Gecko")&&!($(z.toLowerCase(),"webkit")&&!ne("Edge"))&&!(ne("Trident")||ne("MSIE"))&&!ne("Edge"),Ge=$(z.toLowerCase(),"webkit")&&!ne("Edge");function Qe(){var e=n.document;return e?e.documentMode:void 0}e:{var Ye="",Xe=(qe=z,Ke?/rv:([^\);]+)(\)|;)/.exec(qe):ze?/Edge\/([\d\.]+)/.exec(qe):We?/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(qe):Ge?/WebKit\/(\S+)/.exec(qe):Ve?/(?:Version)[ \/]?(\S+)/.exec(qe):void 0);if(Xe&&(Ye=Xe?Xe[1]:""),We){var Je=Qe();if(null!=Je&&Je>parseFloat(Ye)){Be=String(Je);break e}}Be=Ye}var $e,Ze={};function et(e){return function(e,t){var n=Ze;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}(e,function(){for(var t=0,n=V(String(Be)).split("."),r=V(String(e)).split("."),i=Math.max(n.length,r.length),o=0;0==t&&o<i;o++){var a=n[o]||"",s=r[o]||"";do{if(a=/(\d*)(\D*)(.*)/.exec(a)||["","","",""],s=/(\d*)(\D*)(.*)/.exec(s)||["","","",""],0==a[0].length&&0==s[0].length)break;t=Z(0==a[1].length?0:parseInt(a[1],10),0==s[1].length?0:parseInt(s[1],10))||Z(0==a[2].length,0==s[2].length)||Z(a[2],s[2]),a=a[3],s=s[3]}while(0==t)}return 0<=t})}var tt=n.document;$e=tt&&We?Qe()||("CSS1Compat"==tt.compatMode?parseInt(Be,10):5):void 0;var nt=Object.freeze||function(e){return e},rt=!We||9<=Number($e),it=We&&!et("9"),ot=function(){if(!n.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});return n.addEventListener("test",a,t),n.removeEventListener("test",a,t),e}();function at(e,t){this.type=e,this.b=this.target=t,this.Gb=!0}function st(e,t){if(at.call(this,e?e.type:""),this.relatedTarget=this.b=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.pointerId=0,this.pointerType="",this.a=null,e){var n=this.type=e.type,r=e.changedTouches?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.b=t,t=e.relatedTarget){if(Ke){e:{try{Ue(t.nodeName);var o=!0;break e}catch(e){}o=!1}o||(t=null)}}else"mouseover"==n?t=e.fromElement:"mouseout"==n&&(t=e.toElement);this.relatedTarget=t,null===r?(this.clientX=void 0!==e.clientX?e.clientX:e.pageX,this.clientY=void 0!==e.clientY?e.clientY:e.pageY,this.screenX=e.screenX||0,this.screenY=e.screenY||0):(this.clientX=void 0!==r.clientX?r.clientX:r.pageX,this.clientY=void 0!==r.clientY?r.clientY:r.pageY,this.screenX=r.screenX||0,this.screenY=r.screenY||0),this.button=e.button,this.key=e.key||"",this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=i(e.pointerType)?e.pointerType:ut[e.pointerType]||"",this.a=e,e.defaultPrevented&&this.preventDefault()}}at.prototype.preventDefault=function(){this.Gb=!1},_(st,at);var ut=nt({2:"touch",3:"pen",4:"mouse"});st.prototype.preventDefault=function(){st.lb.preventDefault.call(this);var e=this.a;if(e.preventDefault)e.preventDefault();else if(e.returnValue=!1,it)try{(e.ctrlKey||112<=e.keyCode&&123>=e.keyCode)&&(e.keyCode=-1)}catch(e){}},st.prototype.f=function(){return this.a};var ct="closure_listenable_"+(1e6*Math.random()|0),lt=0;function ft(e){e.na=!0,e.listener=null,e.proxy=null,e.src=null,e.La=null}function ht(e){this.src=e,this.a={},this.b=0}function pt(e,t){var n=t.type;n in e.a&&j(e.a[n],t)&&(ft(t),0==e.a[n].length&&(delete e.a[n],e.b--))}function dt(e,t,n,r){for(var i=0;i<e.length;++i){var o=e[i];if(!o.na&&o.listener==t&&o.capture==!!n&&o.La==r)return i}return-1}ht.prototype.add=function(e,t,n,r,i){var o=e.toString();(e=this.a[o])||(e=this.a[o]=[],this.b++);var a=dt(e,t,r,i);return-1<a?(t=e[a],n||(t.Ia=!1)):((t=new function(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.La=i,this.key=++lt,this.na=this.Ia=!1}(t,this.src,o,!!r,i)).Ia=n,e.push(t)),t};var vt="closure_lm_"+(1e6*Math.random()|0),mt={};function yt(e,t,n,r,i){if(r&&r.once)bt(e,t,n,r,i);else if(c(t))for(var o=0;o<t.length;o++)yt(e,t[o],n,r,i);else n=At(n),e&&e[ct]?Ot(e,t,n,h(r)?!!r.capture:!!r,i):gt(e,t,n,!1,r,i)}function gt(e,t,n,r,i,o){if(!t)throw Error("Invalid event type");var a=h(i)?!!i.capture:!!i,s=kt(e);if(s||(e[vt]=s=new ht(e)),!(n=s.add(t,n,r,a,o)).proxy){if(r=function(){var e=Tt,t=rt?function(n){return e.call(t.src,t.listener,n)}:function(n){if(!(n=e.call(t.src,t.listener,n)))return n};return t}(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)ot||(i=a),void 0===i&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(Et(t.toString()),r);else{if(!e.addListener||!e.removeListener)throw Error("addEventListener and attachEvent are unavailable.");e.addListener(r)}0}}function bt(e,t,n,r,i){if(c(t))for(var o=0;o<t.length;o++)bt(e,t[o],n,r,i);else n=At(n),e&&e[ct]?It(e,t,n,h(r)?!!r.capture:!!r,i):gt(e,t,n,!0,r,i)}function _t(e,t,n,r,i){if(c(t))for(var o=0;o<t.length;o++)_t(e,t[o],n,r,i);else r=h(r)?!!r.capture:!!r,n=At(n),e&&e[ct]?(e=e.m,(t=String(t).toString())in e.a&&(-1<(n=dt(o=e.a[t],n,r,i))&&(ft(o[n]),Array.prototype.splice.call(o,n,1),0==o.length&&(delete e.a[t],e.b--)))):e&&(e=kt(e))&&(t=e.a[t.toString()],e=-1,t&&(e=dt(t,n,r,i)),(n=-1<e?t[e]:null)&&wt(n))}function wt(e){if("number"!=typeof e&&e&&!e.na){var t=e.src;if(t&&t[ct])pt(t.m,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(Et(n),r):t.addListener&&t.removeListener&&t.removeListener(r),0,(n=kt(t))?(pt(n,e),0==n.b&&(n.src=null,t[vt]=null)):ft(e)}}}function Et(e){return e in mt?mt[e]:mt[e]="on"+e}function xt(e,t,n,r){var i=!0;if((e=kt(e))&&(t=e.a[t.toString()]))for(t=t.concat(),e=0;e<t.length;e++){var o=t[e];o&&o.capture==n&&!o.na&&(o=Ct(o,r),i=i&&!1!==o)}return i}function Ct(e,t){var n=e.listener,r=e.La||e.src;return e.Ia&&wt(e),n.call(r,t)}function Tt(e,t){if(e.na)return!0;if(!rt){if(!t)e:{t=["window","event"];for(var r=n,i=0;i<t.length;i++)if(null==(r=r[t[i]])){t=null;break e}t=r}if(t=new st(i=t,this),r=!0,!(0>i.keyCode||void 0!=i.returnValue)){e:{var o=!1;if(0==i.keyCode)try{i.keyCode=-1;break e}catch(e){o=!0}(o||void 0==i.returnValue)&&(i.returnValue=!0)}for(i=[],o=t.b;o;o=o.parentNode)i.push(o);for(e=e.type,o=i.length-1;0<=o;o--){t.b=i[o];var a=xt(i[o],e,!0,t);r=r&&a}for(o=0;o<i.length;o++)t.b=i[o],a=xt(i[o],e,!1,t),r=r&&a}return r}return Ct(e,new st(t,this))}function kt(e){return(e=e[vt])instanceof ht?e:null}var St="__closure_events_fn_"+(1e9*Math.random()>>>0);function At(e){return f(e)?e:(e[St]||(e[St]=function(t){return e.handleEvent(t)}),e[St])}function Nt(){Me.call(this),this.m=new ht(this),this.Nb=this,this.Ua=null}function Ot(e,t,n,r,i){e.m.add(String(t),n,!1,r,i)}function It(e,t,n,r,i){e.m.add(String(t),n,!0,r,i)}function Pt(e,t,n,r){if(!(t=e.m.a[String(t)]))return!0;t=t.concat();for(var i=!0,o=0;o<t.length;++o){var a=t[o];if(a&&!a.na&&a.capture==n){var s=a.listener,u=a.La||a.src;a.Ia&&pt(e.m,a),i=!1!==s.call(u,r)&&i}}return i&&0!=r.Gb}function Rt(e,t,r){if(f(e))r&&(e=y(e,r));else{if(!e||"function"!=typeof e.handleEvent)throw Error("Invalid listener argument");e=y(e.handleEvent,e)}return 2147483647<Number(t)?-1:n.setTimeout(e,t||0)}function Dt(e){var t=null;return new ve(function(n,r){-1==(t=Rt(function(){n(void 0)},e))&&r(Error("Failed to schedule timer."))}).s(function(e){throw n.clearTimeout(t),e})}function Mt(e){if(e.S&&"function"==typeof e.S)return e.S();if(i(e))return e.split("");if(l(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function Lt(e){if(e.U&&"function"==typeof e.U)return e.U();if(!e.S||"function"!=typeof e.S){if(l(e)||i(e)){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}for(var r in t=[],n=0,e)t[n++]=r;return t}}function jt(e,t){this.b={},this.a=[],this.c=0;var n=arguments.length;if(1<n){if(n%2)throw Error("Uneven number of arguments");for(var r=0;r<n;r+=2)this.set(arguments[r],arguments[r+1])}else if(e)if(e instanceof jt)for(n=e.U(),r=0;r<n.length;r++)this.set(n[r],e.get(n[r]));else for(r in e)this.set(r,e[r])}function Ft(e){if(e.c!=e.a.length){for(var t=0,n=0;t<e.a.length;){var r=e.a[t];Ut(e.b,r)&&(e.a[n++]=r),t++}e.a.length=n}if(e.c!=e.a.length){var i={};for(n=t=0;t<e.a.length;)Ut(i,r=e.a[t])||(e.a[n++]=r,i[r]=1),t++;e.a.length=n}}function Ut(e,t){return Object.prototype.hasOwnProperty.call(e,t)}_(Nt,Me),Nt.prototype[ct]=!0,Nt.prototype.addEventListener=function(e,t,n,r){yt(this,e,t,n,r)},Nt.prototype.removeEventListener=function(e,t,n,r){_t(this,e,t,n,r)},Nt.prototype.dispatchEvent=function(e){var t,n=this.Ua;if(n)for(t=[];n;n=n.Ua)t.push(n);n=this.Nb;var r=e.type||e;if(i(e))e=new at(e,n);else if(e instanceof at)e.target=e.target||n;else{var o=e;ce(e=new at(r,n),o)}if(o=!0,t)for(var a=t.length-1;0<=a;a--){var s=e.b=t[a];o=Pt(s,r,!0,e)&&o}if(o=Pt(s=e.b=n,r,!0,e)&&o,o=Pt(s,r,!1,e)&&o,t)for(a=0;a<t.length;a++)o=Pt(s=e.b=t[a],r,!1,e)&&o;return o},Nt.prototype.ua=function(){if(Nt.lb.ua.call(this),this.m){var e,t=this.m;for(e in t.a){for(var n=t.a[e],r=0;r<n.length;r++)0,ft(n[r]);delete t.a[e],t.b--}}this.Ua=null},(e=jt.prototype).S=function(){Ft(this);for(var e=[],t=0;t<this.a.length;t++)e.push(this.b[this.a[t]]);return e},e.U=function(){return Ft(this),this.a.concat()},e.clear=function(){this.b={},this.c=this.a.length=0},e.get=function(e,t){return Ut(this.b,e)?this.b[e]:t},e.set=function(e,t){Ut(this.b,e)||(this.c++,this.a.push(e)),this.b[e]=t},e.forEach=function(e,t){for(var n=this.U(),r=0;r<n.length;r++){var i=n[r],o=this.get(i);e.call(t,o,i,this)}};var Bt=/^(?:([^:/?#.]+):)?(?:\/\/(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\?([^#]*))?(?:#([\s\S]*))?$/;function qt(e,t){if(this.b=this.m=this.c="",this.i=null,this.h=this.g="",this.f=!1,e instanceof qt){this.f=void 0!==t?t:e.f,Vt(this,e.c),this.m=e.m,this.b=e.b,Wt(this,e.i),this.g=e.g,t=e.a;var n=new rn;n.c=t.c,t.a&&(n.a=new jt(t.a),n.b=t.b),zt(this,n),this.h=e.h}else e&&(n=String(e).match(Bt))?(this.f=!!t,Vt(this,n[1]||"",!0),this.m=Yt(n[2]||""),this.b=Yt(n[3]||"",!0),Wt(this,n[4]),this.g=Yt(n[5]||"",!0),zt(this,n[6]||"",!0),this.h=Yt(n[7]||"")):(this.f=!!t,this.a=new rn(null,this.f))}function Vt(e,t,n){e.c=n?Yt(t,!0):t,e.c&&(e.c=e.c.replace(/:$/,""))}function Wt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error("Bad port number "+t);e.i=t}else e.i=null}function zt(e,t,n){t instanceof rn?(e.a=t,function(e,t){t&&!e.f&&(on(e),e.c=null,e.a.forEach(function(e,t){var n=t.toLowerCase();t!=n&&(sn(this,t),cn(this,n,e))},e)),e.f=t}(e.a,e.f)):(n||(t=Xt(t,tn)),e.a=new rn(t,e.f))}function Ht(e,t,n){e.a.set(t,n)}function Kt(e,t){return e.a.get(t)}function Gt(e){return e instanceof qt?new qt(e):new qt(e,void 0)}function Qt(e,t){var n=new qt(null,void 0);return Vt(n,"https"),e&&(n.b=e),t&&(n.g=t),n}function Yt(e,t){return e?t?decodeURI(e.replace(/%25/g,"%2525")):decodeURIComponent(e):""}function Xt(e,t,n){return i(e)?(e=encodeURI(e).replace(t,Jt),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),e):null}function Jt(e){return"%"+((e=e.charCodeAt(0))>>4&15).toString(16)+(15&e).toString(16)}qt.prototype.toString=function(){var e=[],t=this.c;t&&e.push(Xt(t,$t,!0),":");var n=this.b;return(n||"file"==t)&&(e.push("//"),(t=this.m)&&e.push(Xt(t,$t,!0),"@"),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(n=this.i)&&e.push(":",String(n))),(n=this.g)&&(this.b&&"/"!=n.charAt(0)&&e.push("/"),e.push(Xt(n,"/"==n.charAt(0)?en:Zt,!0))),(n=this.a.toString())&&e.push("?",n),(n=this.h)&&e.push("#",Xt(n,nn)),e.join("")};var $t=/[#\/\?@]/g,Zt=/[#\?:]/g,en=/[#\?]/g,tn=/[#\?@]/g,nn=/#/g;function rn(e,t){this.b=this.a=null,this.c=e||null,this.f=!!t}function on(e){e.a||(e.a=new jt,e.b=0,e.c&&function(e,t){if(e){e=e.split("&");for(var n=0;n<e.length;n++){var r=e[n].indexOf("="),i=null;if(0<=r){var o=e[n].substring(0,r);i=e[n].substring(r+1)}else o=e[n];t(o,i?decodeURIComponent(i.replace(/\+/g," ")):"")}}}(e.c,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g," ")),n)}))}function an(e){var t=Lt(e);if(void 0===t)throw Error("Keys are undefined");var n=new rn(null,void 0);e=Mt(e);for(var r=0;r<t.length;r++){var i=t[r],o=e[r];c(o)?cn(n,i,o):n.add(i,o)}return n}function sn(e,t){on(e),t=ln(e,t),Ut(e.a.b,t)&&(e.c=null,e.b-=e.a.get(t).length,Ut((e=e.a).b,t)&&(delete e.b[t],e.c--,e.a.length>2*e.c&&Ft(e)))}function un(e,t){return on(e),t=ln(e,t),Ut(e.a.b,t)}function cn(e,t,n){sn(e,t),0<n.length&&(e.c=null,e.a.set(ln(e,t),B(n)),e.b+=n.length)}function ln(e,t){return t=String(t),e.f&&(t=t.toLowerCase()),t}(e=rn.prototype).add=function(e,t){on(this),this.c=null,e=ln(this,e);var n=this.a.get(e);return n||this.a.set(e,n=[]),n.push(t),this.b+=1,this},e.clear=function(){this.a=this.c=null,this.b=0},e.forEach=function(e,t){on(this),this.a.forEach(function(n,r){R(n,function(n){e.call(t,n,r,this)},this)},this)},e.U=function(){on(this);for(var e=this.a.S(),t=this.a.U(),n=[],r=0;r<t.length;r++)for(var i=e[r],o=0;o<i.length;o++)n.push(t[r]);return n},e.S=function(e){on(this);var t=[];if(i(e))un(this,e)&&(t=U(t,this.a.get(ln(this,e))));else{e=this.a.S();for(var n=0;n<e.length;n++)t=U(t,e[n])}return t},e.set=function(e,t){return on(this),this.c=null,un(this,e=ln(this,e))&&(this.b-=this.a.get(e).length),this.a.set(e,[t]),this.b+=1,this},e.get=function(e,t){return 0<(e=e?this.S(e):[]).length?String(e[0]):t},e.toString=function(){if(this.c)return this.c;if(!this.a)return"";for(var e=[],t=this.a.U(),n=0;n<t.length;n++){var r=t[n],i=encodeURIComponent(String(r));r=this.S(r);for(var o=0;o<r.length;o++){var a=i;""!==r[o]&&(a+="="+encodeURIComponent(String(r[o]))),e.push(a)}}return this.c=e.join("&")};var fn=!We||9<=Number($e);function hn(){this.a="",this.b=dn}function pn(e){return e instanceof hn&&e.constructor===hn&&e.b===dn?e.a:(T("expected object of type Const, got '"+e+"'"),"type_error:Const")}hn.prototype.ma=!0,hn.prototype.la=function(){return this.a},hn.prototype.toString=function(){return"Const{"+this.a+"}"};var dn={};function vn(e){var t=new hn;return t.a=e,t}function mn(){this.a="",this.b=wn}function yn(e){return e instanceof mn&&e.constructor===mn&&e.b===wn?e.a:(T("expected object of type TrustedResourceUrl, got '"+e+"' of type "+s(e)),"type_error:TrustedResourceUrl")}function gn(e,t){var n=pn(e);if(!_n.test(n))throw Error("Invalid TrustedResourceUrl format: "+n);return function(e){var t=new mn;return t.a=e,t}(e=n.replace(bn,function(e,r){if(!Object.prototype.hasOwnProperty.call(t,r))throw Error('Found marker, "'+r+'", in format string, "'+n+'", but no valid label mapping found in args: '+JSON.stringify(t));return(e=t[r])instanceof hn?pn(e):encodeURIComponent(String(e))}))}vn(""),mn.prototype.ma=!0,mn.prototype.la=function(){return this.a},mn.prototype.toString=function(){return"TrustedResourceUrl{"+this.a+"}"};var bn=/%{(\w+)}/g,_n=/^(?:https:)?\/\/[0-9a-z.:[\]-]+\/|^\/[^\/\\]|^about:blank#/i,wn={};function En(){this.a="",this.b=kn}function xn(e){return e instanceof En&&e.constructor===En&&e.b===kn?e.a:(T("expected object of type SafeUrl, got '"+e+"' of type "+s(e)),"type_error:SafeUrl")}En.prototype.ma=!0,En.prototype.la=function(){return this.a},En.prototype.toString=function(){return"SafeUrl{"+this.a+"}"};var Cn=/^(?:(?:https?|mailto|ftp):|[^:/?#]*(?:[/?#]|$))/i;function Tn(e){return e instanceof En?e:(e=e.ma?e.la():String(e),Cn.test(e)||(e="about:invalid#zClosurez"),Sn(e))}var kn={};function Sn(e){var t=new En;return t.a=e,t}function An(){this.a="",this.b=Nn}Sn("about:blank"),An.prototype.ma=!0,An.prototype.la=function(){return this.a},An.prototype.toString=function(){return"SafeHtml{"+this.a+"}"};var Nn={};function On(e){var t=new An;return t.a=e,t}function In(e){var t=document;return i(e)?t.getElementById(e):e}function Pn(e,t){re(t,function(t,n){t&&t.ma&&(t=t.la()),"style"==n?e.style.cssText=t:"class"==n?e.className=t:"for"==n?e.htmlFor=t:Rn.hasOwnProperty(n)?e.setAttribute(Rn[n],t):0==n.lastIndexOf("aria-",0)||0==n.lastIndexOf("data-",0)?e.setAttribute(n,t):e[n]=t})}On("<!DOCTYPE html>"),On(""),On("
");var Rn={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",frameborder:"frameBorder",height:"height",maxlength:"maxLength",nonce:"nonce",role:"role",rowspan:"rowSpan",type:"type",usemap:"useMap",valign:"vAlign",width:"width"};function Dn(e,t,n){var r=arguments,o=document,a=String(r[0]),s=r[1];if(!fn&&s&&(s.name||s.type)){if(a=["<",a],s.name&&a.push(' name="',W(s.name),'"'),s.type){a.push(' type="',W(s.type),'"');var u={};ce(u,s),delete u.type,s=u}a.push(">"),a=a.join("")}return a=o.createElement(a),s&&(i(s)?a.className=s:c(s)?a.className=s.join(" "):Pn(a,s)),2<r.length&&function(e,t,n){function r(n){n&&t.appendChild(i(n)?e.createTextNode(n):n)}for(var o=2;o<n.length;o++){var a=n[o];!l(a)||h(a)&&0<a.nodeType?r(a):R(Mn(a)?B(a):a,r)}}(o,a,r),a}function Mn(e){if(e&&"number"==typeof e.length){if(h(e))return"function"==typeof e.item||"string"==typeof e.item;if(f(e))return"function"==typeof e.item}return!1}function Ln(e){var t=[];return function e(t,n,r){if(null==n)r.push("null");else{if("object"==typeof n){if(c(n)){var i=n;n=i.length,r.push("[");for(var o="",a=0;a<n;a++)r.push(o),e(t,i[a],r),o=",";return void r.push("]")}if(!(n instanceof String||n instanceof Number||n instanceof Boolean)){for(i in r.push("{"),o="",n)Object.prototype.hasOwnProperty.call(n,i)&&("function"!=typeof(a=n[i])&&(r.push(o),Un(i,r),r.push(":"),e(t,a,r),o=","));return void r.push("}")}n=n.valueOf()}switch(typeof n){case"string":Un(n,r);break;case"number":r.push(isFinite(n)&&!isNaN(n)?String(n):"null");break;case"boolean":r.push(String(n));break;case"function":r.push("null");break;default:throw Error("Unknown type: "+typeof n)}}}(new function(){},e,t),t.join("")}var jn={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Fn=/\uffff/.test("�")?/[\\"\x00-\x1f\x7f-\uffff]/g:/[\\"\x00-\x1f\x7f-\xff]/g;function Un(e,t){t.push('"',e.replace(Fn,function(e){var t=jn[e];return t||(t="\\u"+(65536|e.charCodeAt(0)).toString(16).substr(1),jn[e]=t),t}),'"')}function Bn(){var e=ir();return We&&!!$e&&11==$e||/Edge\/\d+/.test(e)}function qn(){return n.window&&n.window.location.href||self&&self.location&&self.location.href||""}function Vn(e,t){t=t||n.window;var r="about:blank";e&&(r=xn(Tn(e))),t.location.href=r}function Wn(e){return!!((e=(e||ir()).toLowerCase()).match(/android/)||e.match(/webos/)||e.match(/iphone|ipad|ipod/)||e.match(/blackberry/)||e.match(/windows phone/)||e.match(/iemobile/))}function zn(e){e=e||n.window;try{e.close()}catch(e){}}function Hn(e,t,n){var r=Math.floor(1e9*Math.random()).toString();t=t||500,n=n||600;var i=(window.screen.availHeight-n)/2,o=(window.screen.availWidth-t)/2;for(a in t={width:t,height:n,top:0<i?i:0,left:0<o?o:0,location:!0,resizable:!0,statusbar:!0,toolbar:!1},n=ir().toLowerCase(),r&&(t.target=r,$(n,"crios/")&&(t.target="_blank")),tr(ir())==Zn&&(e=e||"http://localhost",t.scrollbars=!0),n=e||"",(e=t)||(e={}),r=window,t=n instanceof En?n:Tn(void 0!==n.href?n.href:String(n)),n=e.target||n.target,i=[],e)switch(a){case"width":case"height":case"top":case"left":i.push(a+"="+e[a]);break;case"target":case"noopener":case"noreferrer":break;default:i.push(a+"="+(e[a]?1:0))}var a=i.join(",");if((ne("iPhone")&&!ne("iPod")&&!ne("iPad")||ne("iPad")||ne("iPod"))&&r.navigator&&r.navigator.standalone&&n&&"_self"!=n?(a=r.document.createElement("A"),t instanceof En||t instanceof En||(t=t.ma?t.la():String(t),Cn.test(t)||(t="about:invalid#zClosurez"),t=Sn(t)),a.href=xn(t),a.setAttribute("target",n),e.noreferrer&&a.setAttribute("rel","noreferrer"),(e=document.createEvent("MouseEvent")).initMouseEvent("click",!0,!0,r,1),a.dispatchEvent(e),a={}):e.noreferrer?(a=r.open("",n,a),e=xn(t),a&&(He&&$(e,";")&&(e="'"+e.replace(/'/g,"%27")+"'"),a.opener=null,vn("b/12014412, meta tag with sanitized URL"),e=On(e='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+W(e)+'">'),a.document.write(function(e){return e instanceof An&&e.constructor===An&&e.b===Nn?e.a:(T("expected object of type SafeHtml, got '"+e+"' of type "+s(e)),"type_error:SafeHtml")}(e)),a.document.close())):(a=r.open(xn(t),n,a))&&e.noopener&&(a.opener=null),a)try{a.focus()}catch(e){}return a}var Kn=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/;function Gn(){var e=null;return new ve(function(t){"complete"==n.document.readyState?t():(e=function(){t()},bt(window,"load",e))}).s(function(t){throw _t(window,"load",e),t})}function Qn(e){return e=e||ir(),!("file:"!==cr()||!e.toLowerCase().match(/iphone|ipad|ipod|android/))}function Yn(){var e=n.window;try{return!(!e||e==e.top)}catch(e){return!1}}function Xn(){return"object"!=typeof n.window&&"function"==typeof n.importScripts}function Jn(){return r.a.INTERNAL.hasOwnProperty("reactNative")?"ReactNative":r.a.INTERNAL.hasOwnProperty("node")?"Node":Xn()?"Worker":"Browser"}function $n(){var e=Jn();return"ReactNative"===e||"Node"===e}var Zn="Firefox",er="Chrome";function tr(e){var t=e.toLowerCase();return $(t,"opera/")||$(t,"opr/")||$(t,"opios/")?"Opera":$(t,"iemobile")?"IEMobile":$(t,"msie")||$(t,"trident/")?"IE":$(t,"edge/")?"Edge":$(t,"firefox/")?Zn:$(t,"silk/")?"Silk":$(t,"blackberry")?"Blackberry":$(t,"webos")?"Webos":!$(t,"safari/")||$(t,"chrome/")||$(t,"crios/")||$(t,"android")?!$(t,"chrome/")&&!$(t,"crios/")||$(t,"edge/")?$(t,"android")?"Android":(e=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/))&&2==e.length?e[1]:"Other":er:"Safari"}var nr={Sc:"FirebaseCore-web",Uc:"FirebaseUI-web"};function rr(e,t){t=t||[];var n,r=[],i={};for(n in nr)i[nr[n]]=!0;for(n=0;n<t.length;n++)void 0!==i[t[n]]&&(delete i[t[n]],r.push(t[n]));return r.sort(),(t=r).length||(t=["FirebaseCore-web"]),"Browser"===(r=Jn())?r=tr(i=ir()):"Worker"===r&&(r=tr(i=ir())+"-"+r),r+"/JsCore/"+e+"/"+t.join(",")}function ir(){return n.navigator&&n.navigator.userAgent||""}function or(e,t){e=e.split("."),t=t||n;for(var r=0;r<e.length&&"object"==typeof t&&null!=t;r++)t=t[e[r]];return r!=e.length&&(t=void 0),t}function ar(){try{var e=n.localStorage,t=dr();if(e)return e.setItem(t,"1"),e.removeItem(t),!Bn()||!!n.indexedDB}catch(e){return Xn()&&!!n.indexedDB}return!1}function sr(){return(ur()||"chrome-extension:"===cr()||Qn())&&!$n()&&ar()&&!Xn()}function ur(){return"http:"===cr()||"https:"===cr()}function cr(){return n.location&&n.location.protocol||null}function lr(e){return!Wn(e=e||ir())&&tr(e)!=Zn}function fr(e){return void 0===e?null:Ln(e)}function hr(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&null!==e[t]&&void 0!==e[t]&&(n[t]=e[t]);return n}function pr(e){if(null!==e)return JSON.parse(e)}function dr(e){return e||Math.floor(1e9*Math.random()).toString()}function vr(e){return"Safari"!=tr(e=e||ir())&&!e.toLowerCase().match(/iphone|ipad|ipod/)}function mr(){var e=n.___jsl;if(e&&e.H)for(var t in e.H)if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=e.H[t].L.concat(),e.CP)for(var r=0;r<e.CP.length;r++)e.CP[r]=null}function yr(e,t){if(e>t)throw Error("Short delay should be less than long delay!");this.a=e,this.c=t,e=ir(),t=Jn(),this.b=Wn(e)||"ReactNative"===t}function gr(){var e=n.document;return!e||void 0===e.visibilityState||"visible"==e.visibilityState}function br(e){try{var t=new Date(parseInt(e,10));if(!isNaN(t.getTime())&&!/[^0-9]/.test(e))return t.toUTCString()}catch(e){}return null}function _r(){return!(!or("fireauth.oauthhelper",n)&&!or("fireauth.iframe",n))}yr.prototype.get=function(){var e=n.navigator;return!e||"boolean"!=typeof e.onLine||!ur()&&"chrome-extension:"!==cr()&&void 0===e.connection||e.onLine?this.b?this.c:this.a:Math.min(5e3,this.a)};var wr,Er={};function xr(e){Er[e]||(Er[e]=!0,"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn(e))}try{var Cr={};Object.defineProperty(Cr,"abcd",{configurable:!0,enumerable:!0,value:1}),Object.defineProperty(Cr,"abcd",{configurable:!0,enumerable:!0,value:2}),wr=2==Cr.abcd}catch(qe){wr=!1}function Tr(e,t,n){wr?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n}):e[t]=n}function kr(e,t){if(t)for(var n in t)t.hasOwnProperty(n)&&Tr(e,n,t[n])}function Sr(e){var t={};return kr(t,e),t}function Ar(e){var t=e;if("object"==typeof e&&null!=e)for(var n in t="length"in e?[]:{},e)Tr(t,n,Ar(e[n]));return t}var Nr="EMAIL_SIGNIN",Or="email",Ir="newEmail",Pr="requestType",Rr="email",Dr="fromEmail",Mr="data",Lr="operation";function jr(e,t){this.code=Ur+e,this.message=t||Br[e]||""}function Fr(e){var t=e&&e.code;return t?new jr(t.substring(Ur.length),e.message):null}_(jr,Error),jr.prototype.D=function(){return{code:this.code,message:this.message}},jr.prototype.toJSON=function(){return this.D()};var Ur="auth/",Br={"argument-error":"","app-not-authorized":"This app, identified by the domain where it's hosted, is not authorized to use Firebase Authentication with the provided API key. Review your key configuration in the Google API console.","app-not-installed":"The requested mobile application corresponding to the identifier (Android package name or iOS bundle ID) provided is not installed on this device.","captcha-check-failed":"The reCAPTCHA response token provided is either invalid, expired, already used or the domain associated with it does not match the list of whitelisted domains.","code-expired":"The SMS code has expired. Please re-send the verification code to try again.","cordova-not-ready":"Cordova framework is not ready.","cors-unsupported":"This browser is not supported.","credential-already-in-use":"This credential is already associated with a different user account.","custom-token-mismatch":"The custom token corresponds to a different audience.","requires-recent-login":"This operation is sensitive and requires recent authentication. Log in again before retrying this request.","dynamic-link-not-activated":"Please activate Dynamic Links in the Firebase Console and agree to the terms and conditions.","email-already-in-use":"The email address is already in use by another account.","expired-action-code":"The action code has expired. ","cancelled-popup-request":"This operation has been cancelled due to another conflicting popup being opened.","internal-error":"An internal error has occurred.","invalid-app-credential":"The phone verification request contains an invalid application verifier. The reCAPTCHA token response is either invalid or expired.","invalid-app-id":"The mobile app identifier is not registed for the current project.","invalid-user-token":"This user's credential isn't valid for this project. This can happen if the user's token has been tampered with, or if the user isn't for the project associated with this API key.","invalid-auth-event":"An internal error has occurred.","invalid-verification-code":"The SMS verification code used to create the phone auth credential is invalid. Please resend the verification code sms and be sure use the verification code provided by the user.","invalid-continue-uri":"The continue URL provided in the request is invalid.","invalid-cordova-configuration":"The following Cordova plugins must be installed to enable OAuth sign-in: cordova-plugin-buildinfo, cordova-universal-links-plugin, cordova-plugin-browsertab, cordova-plugin-inappbrowser and cordova-plugin-customurlscheme.","invalid-custom-token":"The custom token format is incorrect. Please check the documentation.","invalid-email":"The email address is badly formatted.","invalid-api-key":"Your API key is invalid, please check you have copied it correctly.","invalid-cert-hash":"The SHA-1 certificate hash provided is invalid.","invalid-credential":"The supplied auth credential is malformed or has expired.","invalid-persistence-type":"The specified persistence type is invalid. It can only be local, session or none.","invalid-message-payload":"The email template corresponding to this action contains invalid characters in its message. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-oauth-provider":"EmailAuthProvider is not supported for this operation. This operation only supports OAuth providers.","invalid-oauth-client-id":"The OAuth client ID provided is either invalid or does not match the specified API key.","unauthorized-domain":"This domain is not authorized for OAuth operations for your Firebase project. Edit the list of authorized domains from the Firebase console.","invalid-action-code":"The action code is invalid. This can happen if the code is malformed, expired, or has already been used.","wrong-password":"The password is invalid or the user does not have a password.","invalid-phone-number":"The format of the phone number provided is incorrect. Please enter the phone number in a format that can be parsed into E.164 format. E.164 phone numbers are written in the format [+][country code][subscriber number including area code].","invalid-recipient-email":"The email corresponding to this action failed to send as the provided recipient email address is invalid.","invalid-sender":"The email template corresponding to this action contains an invalid sender email or name. Please fix by going to the Auth email templates section in the Firebase Console.","invalid-verification-id":"The verification ID used to create the phone auth credential is invalid.","missing-android-pkg-name":"An Android Package Name must be provided if the Android App is required to be installed.","auth-domain-config-required":"Be sure to include authDomain when calling firebase.initializeApp(), by following the instructions in the Firebase console.","missing-app-credential":"The phone verification request is missing an application verifier assertion. A reCAPTCHA response token needs to be provided.","missing-verification-code":"The phone auth credential was created with an empty SMS verification code.","missing-continue-uri":"A continue URL must be provided in the request.","missing-iframe-start":"An internal error has occurred.","missing-ios-bundle-id":"An iOS Bundle ID must be provided if an App Store ID is provided.","missing-phone-number":"To send verification codes, provide a phone number for the recipient.","missing-verification-id":"The phone auth credential was created with an empty verification ID.","app-deleted":"This instance of FirebaseApp has been deleted.","account-exists-with-different-credential":"An account already exists with the same email address but different sign-in credentials. Sign in using a provider associated with this email address.","network-request-failed":"A network error (such as timeout, interrupted connection or unreachable host) has occurred.","no-auth-event":"An internal error has occurred.","no-such-provider":"User was not linked to an account with the given provider.","null-user":"A null user object was provided as the argument for an operation which requires a non-null user object.","operation-not-allowed":"The given sign-in provider is disabled for this Firebase project. Enable it in the Firebase console, under the sign-in method tab of the Auth section.","operation-not-supported-in-this-environment":'This operation is not supported in the environment this application is running on. "location.protocol" must be http, https or chrome-extension and web storage must be enabled.',"popup-blocked":"Unable to establish a connection with the popup. It may have been blocked by the browser.","popup-closed-by-user":"The popup has been closed by the user before finalizing the operation.","provider-already-linked":"User can only be linked to one identity for the given provider.","quota-exceeded":"The project's quota for this operation has been exceeded.","redirect-cancelled-by-user":"The redirect operation has been cancelled by the user before finalizing.","redirect-operation-pending":"A redirect sign-in operation is already pending.",timeout:"The operation has timed out.","user-token-expired":"The user's credential is no longer valid. The user must sign in again.","too-many-requests":"We have blocked all requests from this device due to unusual activity. Try again later.","unauthorized-continue-uri":"The domain of the continue URL is not whitelisted. Please whitelist the domain in the Firebase console.","unsupported-persistence-type":"The current environment does not support the specified persistence type.","user-cancelled":"User did not grant your application the permissions it requested.","user-not-found":"There is no user record corresponding to this identifier. The user may have been deleted.","user-disabled":"The user account has been disabled by an administrator.","user-mismatch":"The supplied credentials do not correspond to the previously signed in user.","user-signed-out":"","weak-password":"The password must be 6 characters long or more.","web-storage-unsupported":"This browser is not supported or 3rd party cookies and data may be disabled."};function qr(e){var t=e[Hr];if(void 0===t)throw new jr("missing-continue-uri");if("string"!=typeof t||"string"==typeof t&&!t.length)throw new jr("invalid-continue-uri");this.h=t,this.b=this.a=null,this.g=!1;var n=e[Vr];if(n&&"object"==typeof n){t=n[Qr];var r=n[Kr];if(n=n[Gr],"string"==typeof t&&t.length){if(this.a=t,void 0!==r&&"boolean"!=typeof r)throw new jr("argument-error",Kr+" property must be a boolean when specified.");if(this.g=!!r,void 0!==n&&("string"!=typeof n||"string"==typeof n&&!n.length))throw new jr("argument-error",Gr+" property must be a non empty string when specified.");this.b=n||null}else{if(void 0!==t)throw new jr("argument-error",Qr+" property must be a non empty string when specified.");if(void 0!==r||void 0!==n)throw new jr("missing-android-pkg-name")}}else if(void 0!==n)throw new jr("argument-error",Vr+" property must be a non null object when specified.");if(this.f=null,(t=e[zr])&&"object"==typeof t){if("string"==typeof(t=t[Yr])&&t.length)this.f=t;else if(void 0!==t)throw new jr("argument-error",Yr+" property must be a non empty string when specified.")}else if(void 0!==t)throw new jr("argument-error",zr+" property must be a non null object when specified.");if(void 0!==(e=e[Wr])&&"boolean"!=typeof e)throw new jr("argument-error",Wr+" property must be a boolean when specified.");this.c=!!e}var Vr="android",Wr="handleCodeInApp",zr="iOS",Hr="url",Kr="installApp",Gr="minimumVersion",Qr="packageName",Yr="bundleId";function Xr(e){var t={};for(var n in t.continueUrl=e.h,t.canHandleCodeInApp=e.c,(t.androidPackageName=e.a)&&(t.androidMinimumVersion=e.b,t.androidInstallApp=e.g),t.iOSBundleId=e.f,t)null===t[n]&&delete t[n];return t}var Jr=null,$r=null;function Zr(e){var t="";return function(e,t){function n(t){for(;r<e.length;){var n=e.charAt(r++),i=$r[n];if(null!=i)return i;if(!/^[\s\xa0]*$/.test(n))throw Error("Unknown base64 encoding at char: "+n)}return t}!function(){if(!Jr){Jr={},$r={};for(var e=0;65>e;e++)Jr[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),$r[Jr[e]]=e,62<=e&&($r["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e)]=e)}}();for(var r=0;;){var i=n(-1),o=n(0),a=n(64),s=n(64);if(64===s&&-1===i)break;t(i<<2|o>>4),64!=a&&(t(o<<4&240|a>>2),64!=s&&t(a<<6&192|s))}}(e,function(e){t+=String.fromCharCode(e)}),t}function ei(e){this.c=e.sub,b(),this.a=e.provider_id||e.firebase&&e.firebase.sign_in_provider||null,this.b=!!e.is_anonymous||"anonymous"==this.a}function ti(e){return(e=ni(e))&&e.sub&&e.iss&&e.aud&&e.exp?new ei(e):null}function ni(e){if(!e)return null;if(3!=(e=e.split(".")).length)return null;for(var t=(4-(e=e[1]).length%4)%4,n=0;n<t;n++)e+=".";try{return JSON.parse(Zr(e))}catch(e){}return null}ei.prototype.f=function(){return this.b};var ri="oauth_consumer_key oauth_nonce oauth_signature oauth_signature_method oauth_timestamp oauth_token oauth_version".split(" "),ii=["client_id","response_type","scope","redirect_uri","state"],oi={Tc:{Ma:"locale",Ba:500,Aa:600,Na:"facebook.com",eb:ii},Vc:{Ma:null,Ba:500,Aa:620,Na:"github.com",eb:ii},Wc:{Ma:"hl",Ba:515,Aa:680,Na:"google.com",eb:ii},bd:{Ma:"lang",Ba:485,Aa:705,Na:"twitter.com",eb:ri}};function ai(e){for(var t in oi)if(oi[t].Na==e)return oi[t];return null}function si(e){var t={};t["facebook.com"]=hi,t["google.com"]=di,t["github.com"]=pi,t["twitter.com"]=vi;var n=e&&e[ci];try{if(n)return t[n]?new t[n](e):new fi(e);if(void 0!==e[ui])return new li(e)}catch(e){}return null}var ui="idToken",ci="providerId";function li(e){var t=e[ci];if(!t&&e[ui]){var n=ti(e[ui]);n&&n.a&&(t=n.a)}if(!t)throw Error("Invalid additional user info!");"anonymous"!=t&&"custom"!=t||(t=null),n=!1,void 0!==e.isNewUser?n=!!e.isNewUser:"identitytoolkit#SignupNewUserResponse"===e.kind&&(n=!0),Tr(this,"providerId",t),Tr(this,"isNewUser",n)}function fi(e){li.call(this,e),Tr(this,"profile",Ar((e=pr(e.rawUserInfo||"{}"))||{}))}function hi(e){if(fi.call(this,e),"facebook.com"!=this.providerId)throw Error("Invalid provider ID!")}function pi(e){if(fi.call(this,e),"github.com"!=this.providerId)throw Error("Invalid provider ID!");Tr(this,"username",this.profile&&this.profile.login||null)}function di(e){if(fi.call(this,e),"google.com"!=this.providerId)throw Error("Invalid provider ID!")}function vi(e){if(fi.call(this,e),"twitter.com"!=this.providerId)throw Error("Invalid provider ID!");Tr(this,"username",e.screenName||null)}function mi(e){var t=Gt(e),n=Kt(t,"link"),r=Kt(Gt(n),"link");return Kt(Gt(t=Kt(t,"deep_link_id")),"link")||t||r||n||e}function yi(e,t){return e.then(function(e){if(e[Jo]){var n=ti(e[Jo]);if(!n||t!=n.c)throw new jr("user-mismatch");return e}throw new jr("user-mismatch")}).s(function(e){throw e&&e.code&&e.code==Ur+"user-not-found"?new jr("user-mismatch"):e})}function gi(e,t,n){if(t.idToken||t.accessToken)t.idToken&&Tr(this,"idToken",t.idToken),t.accessToken&&Tr(this,"accessToken",t.accessToken);else{if(!t.oauthToken||!t.oauthTokenSecret)throw new jr("internal-error","failed to construct a credential");Tr(this,"accessToken",t.oauthToken),Tr(this,"secret",t.oauthTokenSecret)}Tr(this,"providerId",e),Tr(this,"signInMethod",n)}function bi(e){var t={};return e.idToken&&(t.id_token=e.idToken),e.accessToken&&(t.access_token=e.accessToken),e.secret&&(t.oauth_token_secret=e.secret),t.providerId=e.providerId,{postBody:an(t).toString(),requestUri:"http://localhost"}}function _i(e,t){this.Ac=t||[],kr(this,{providerId:e,isOAuthProvider:!0}),this.vb={},this.$a=(ai(e)||{}).Ma||null,this.Ya=null}function wi(e){_i.call(this,e,ii),this.a=[]}function Ei(){wi.call(this,"facebook.com")}function xi(e){if(!e)throw new jr("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return h(e)&&(t=e.accessToken),(new Ei).credential(null,t)}function Ci(){wi.call(this,"github.com")}function Ti(e){if(!e)throw new jr("argument-error","credential failed: expected 1 argument (the OAuth access token).");var t=e;return h(e)&&(t=e.accessToken),(new Ci).credential(null,t)}function ki(){wi.call(this,"google.com"),this.ta("profile")}function Si(e,t){var n=e;return h(e)&&(n=e.idToken,t=e.accessToken),(new ki).credential(n,t)}function Ai(){_i.call(this,"twitter.com",ri)}function Ni(e,t){var n=e;if(h(n)||(n={oauthToken:e,oauthTokenSecret:t}),!n.oauthToken||!n.oauthTokenSecret)throw new jr("argument-error","credential failed: expected 2 arguments (the OAuth access token and secret).");return new gi("twitter.com",n,"twitter.com")}function Oi(e,t,n){this.a=e,this.b=t,Tr(this,"providerId","password"),Tr(this,"signInMethod",n===Ii.EMAIL_LINK_SIGN_IN_METHOD?Ii.EMAIL_LINK_SIGN_IN_METHOD:Ii.EMAIL_PASSWORD_SIGN_IN_METHOD)}function Ii(){kr(this,{providerId:"password",isOAuthProvider:!1})}function Pi(e,t){if(!(t=Ri(t)))throw new jr("argument-error","Invalid email link!");return new Oi(e,t,Ii.EMAIL_LINK_SIGN_IN_METHOD)}function Ri(e){var t=Kt((e=new function(e){this.a=Gt(e)}(e=mi(e))).a,"oobCode")||null;return"signIn"===(Kt(e.a,"mode")||null)&&t?t:null}function Di(e){if(!(e.Sa&&e.Ra||e.Fa&&e.$))throw new jr("internal-error");this.a=e,Tr(this,"providerId","phone"),Tr(this,"signInMethod","phone")}function Mi(e){return e.a.Fa&&e.a.$?{temporaryProof:e.a.Fa,phoneNumber:e.a.$}:{sessionInfo:e.a.Sa,code:e.a.Ra}}function Li(e){try{this.a=e||r.a.auth()}catch(e){throw new jr("argument-error","Either an instance of firebase.auth.Auth must be passed as an argument to the firebase.auth.PhoneAuthProvider constructor, or the default firebase App instance must be initialized via firebase.initializeApp().")}kr(this,{providerId:"phone",isOAuthProvider:!1})}function ji(e,t){if(!e)throw new jr("missing-verification-id");if(!t)throw new jr("missing-verification-code");return new Di({Sa:e,Ra:t})}function Fi(e){if(e.temporaryProof&&e.phoneNumber)return new Di({Fa:e.temporaryProof,$:e.phoneNumber});var t=e&&e.providerId;if(!t||"password"===t)return null;var n=e&&e.oauthAccessToken,r=e&&e.oauthTokenSecret;e=e&&e.oauthIdToken;try{switch(t){case"google.com":return Si(e,n);case"facebook.com":return xi(n);case"github.com":return Ti(n);case"twitter.com":return Ni(n,r);default:return new wi(t).credential(e,n)}}catch(e){return null}}function Ui(e){if(!e.isOAuthProvider)throw new jr("invalid-oauth-provider")}function Bi(e,t,n,r,i){if(this.b=e,this.c=t||null,this.f=n||null,this.g=r||null,this.a=i||null,!this.f&&!this.a)throw new jr("invalid-auth-event");if(this.f&&this.a)throw new jr("invalid-auth-event");if(this.f&&!this.g)throw new jr("invalid-auth-event")}function qi(e){return(e=e||{}).type?new Bi(e.type,e.eventId,e.urlResponse,e.sessionId,e.error&&Fr(e.error)):null}function Vi(){this.b=null,this.a=[]}_(fi,li),_(hi,fi),_(pi,fi),_(di,fi),_(vi,fi),gi.prototype.ya=function(e){return da(e,bi(this))},gi.prototype.c=function(e,t){var n=bi(this);return n.idToken=t,va(e,n)},gi.prototype.f=function(e,t){return yi(ma(e,bi(this)),t)},gi.prototype.D=function(){var e={providerId:this.providerId,signInMethod:this.signInMethod};return this.idToken&&(e.oauthIdToken=this.idToken),this.accessToken&&(e.oauthAccessToken=this.accessToken),this.secret&&(e.oauthTokenSecret=this.secret),e},_i.prototype.Da=function(e){return this.vb=oe(e),this},_(wi,_i),wi.prototype.ta=function(e){return L(this.a,e)||this.a.push(e),this},wi.prototype.Ab=function(){return B(this.a)},wi.prototype.credential=function(e,t){if(!e&&!t)throw new jr("argument-error","credential failed: must provide the ID token and/or the access token.");return new gi(this.providerId,{idToken:e||null,accessToken:t||null},this.providerId)},_(Ei,wi),Tr(Ei,"PROVIDER_ID","facebook.com"),Tr(Ei,"FACEBOOK_SIGN_IN_METHOD","facebook.com"),_(Ci,wi),Tr(Ci,"PROVIDER_ID","github.com"),Tr(Ci,"GITHUB_SIGN_IN_METHOD","github.com"),_(ki,wi),Tr(ki,"PROVIDER_ID","google.com"),Tr(ki,"GOOGLE_SIGN_IN_METHOD","google.com"),_(Ai,_i),Tr(Ai,"PROVIDER_ID","twitter.com"),Tr(Ai,"TWITTER_SIGN_IN_METHOD","twitter.com"),Oi.prototype.ya=function(e){return this.signInMethod==Ii.EMAIL_LINK_SIGN_IN_METHOD?Ha(e,Ca,{email:this.a,oobCode:this.b}):Ha(e,qa,{email:this.a,password:this.b})},Oi.prototype.c=function(e,t){return this.signInMethod==Ii.EMAIL_LINK_SIGN_IN_METHOD?Ha(e,Ta,{idToken:t,email:this.a,oobCode:this.b}):Ha(e,Ma,{idToken:t,email:this.a,password:this.b})},Oi.prototype.f=function(e,t){return yi(this.ya(e),t)},Oi.prototype.D=function(){return{email:this.a,password:this.b,signInMethod:this.signInMethod}},kr(Ii,{PROVIDER_ID:"password"}),kr(Ii,{EMAIL_LINK_SIGN_IN_METHOD:"emailLink"}),kr(Ii,{EMAIL_PASSWORD_SIGN_IN_METHOD:"password"}),Di.prototype.ya=function(e){return e.Ta(Mi(this))},Di.prototype.c=function(e,t){var n=Mi(this);return n.idToken=t,Ha(e,Wa,n)},Di.prototype.f=function(e,t){var n=Mi(this);return n.operation="REAUTH",yi(e=Ha(e,za,n),t)},Di.prototype.D=function(){var e={providerId:"phone"};return this.a.Sa&&(e.verificationId=this.a.Sa),this.a.Ra&&(e.verificationCode=this.a.Ra),this.a.Fa&&(e.temporaryProof=this.a.Fa),this.a.$&&(e.phoneNumber=this.a.$),e},Li.prototype.Ta=function(e,t){var n=this.a.b;return Ee(t.verify()).then(function(r){if(!i(r))throw new jr("argument-error","An implementation of firebase.auth.ApplicationVerifier.prototype.verify() must return a firebase.Promise that resolves with a string.");switch(t.type){case"recaptcha":return function(e,t){return Ha(e,Ra,t)}(n,{phoneNumber:e,recaptchaToken:r}).then(function(e){return"function"==typeof t.reset&&t.reset(),e},function(e){throw"function"==typeof t.reset&&t.reset(),e});default:throw new jr("argument-error",'Only firebase.auth.ApplicationVerifiers with type="recaptcha" are currently supported.')}})},kr(Li,{PROVIDER_ID:"phone"}),kr(Li,{PHONE_SIGN_IN_METHOD:"phone"}),Bi.prototype.D=function(){return{type:this.b,eventId:this.c,urlResponse:this.f,sessionId:this.g,error:this.a&&this.a.D()}};var Wi=null;function zi(e){var t="unauthorized-domain",n=void 0,r=Gt(e);e=r.b,"chrome-extension"==(r=r.c)?n=q("This chrome extension ID (chrome-extension://%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):"http"==r||"https"==r?n=q("This domain (%s) is not authorized to run this operation. Add it to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.",e):t="operation-not-supported-in-this-environment",jr.call(this,t,n)}function Hi(e,t,n){jr.call(this,e,n),(e=t||{}).wb&&Tr(this,"email",e.wb),e.$&&Tr(this,"phoneNumber",e.$),e.credential&&Tr(this,"credential",e.credential)}function Ki(e){if(e.code){var t=e.code||"";0==t.indexOf(Ur)&&(t=t.substring(Ur.length));var n={credential:Fi(e)};if(e.email)n.wb=e.email;else{if(!e.phoneNumber)return new jr(t,e.message||void 0);n.$=e.phoneNumber}return new Hi(t,n,e.message)}return null}Vi.prototype.subscribe=function(e){var t=this;this.a.push(e),this.b||(this.b=function(e){for(var n=0;n<t.a.length;n++)t.a[n](e)},"function"==typeof(e=or("universalLinks.subscribe",n))&&e(null,this.b))},Vi.prototype.unsubscribe=function(e){F(this.a,function(t){return t==e})},_(zi,jr),_(Hi,jr),Hi.prototype.D=function(){var e={code:this.code,message:this.message};this.email&&(e.email=this.email),this.phoneNumber&&(e.phoneNumber=this.phoneNumber);var t=this.credential&&this.credential.D();return t&&ce(e,t),e},Hi.prototype.toJSON=function(){return this.D()};var Gi,Qi=/^[+a-zA-Z0-9_.!#$%&'*\/=?^`{|}~-]+@([a-zA-Z0-9-]+\.)+[a-zA-Z0-9]{2,63}$/;function Yi(){}function Xi(e){return e.c||(e.c=e.b())}function Ji(){}function $i(e){if(!e.f&&"undefined"==typeof XMLHttpRequest&&"undefined"!=typeof ActiveXObject){for(var t=["MSXML2.XMLHTTP.6.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],n=0;n<t.length;n++){var r=t[n];try{return new ActiveXObject(r),e.f=r}catch(e){}}throw Error("Could not create ActiveXObject. ActiveX might be disabled, or MSXML might not be installed")}return e.f}function Zi(){}function eo(){this.a=new XDomainRequest,this.readyState=0,this.onreadystatechange=null,this.responseText="",this.status=-1,this.statusText="",this.a.onload=y(this.bc,this),this.a.onerror=y(this.Bb,this),this.a.onprogress=y(this.cc,this),this.a.ontimeout=y(this.fc,this)}function to(e,t){e.readyState=t,e.onreadystatechange&&e.onreadystatechange()}function no(e,t,n){this.reset(e,t,n,void 0,void 0)}Yi.prototype.c=null,_(Ji,Yi),Ji.prototype.a=function(){var e=$i(this);return e?new ActiveXObject(e):new XMLHttpRequest},Ji.prototype.b=function(){var e={};return $i(this)&&(e[0]=!0,e[1]=!0),e},Gi=new Ji,_(Zi,Yi),Zi.prototype.a=function(){var e=new XMLHttpRequest;if("withCredentials"in e)return e;if("undefined"!=typeof XDomainRequest)return new eo;throw Error("Unsupported browser")},Zi.prototype.b=function(){return{}},(e=eo.prototype).open=function(e,t,n){if(null!=n&&!n)throw Error("Only async requests are supported.");this.a.open(e,t)},e.send=function(e){if(e){if("string"!=typeof e)throw Error("Only string data is supported");this.a.send(e)}else this.a.send()},e.abort=function(){this.a.abort()},e.setRequestHeader=function(){},e.getResponseHeader=function(e){return"content-type"==e.toLowerCase()?this.a.contentType:""},e.bc=function(){this.status=200,this.responseText=this.a.responseText,to(this,4)},e.Bb=function(){this.status=500,this.responseText="",to(this,4)},e.fc=function(){this.Bb()},e.cc=function(){this.status=200,to(this,1)},e.getAllResponseHeaders=function(){return"content-type: "+this.a.contentType},no.prototype.a=null;function ro(e){this.f=e,this.b=this.c=this.a=null}function io(e,t){this.name=e,this.value=t}no.prototype.reset=function(e,t,n,r,i){"number"==typeof i||0,r||b(),delete this.a},io.prototype.toString=function(){return this.name};var oo=new io("SEVERE",1e3),ao=new io("WARNING",900),so=new io("CONFIG",700),uo=new io("FINE",500);ro.prototype.log=function(e,t,n){if(e.value>=function e(t){return t.c?t.c:t.a?e(t.a):(T("Root logger has no level set."),null)}(this).value)for(f(t)&&(t=t()),e=new no(e,String(t),this.f),n&&(e.a=n),n=this;n;)n=n.a};var co={},lo=null;function fo(e){var t;if(lo||(lo=new ro(""),co[""]=lo,lo.c=so),!(t=co[e])){t=new ro(e);var n=e.lastIndexOf("."),r=e.substr(n+1);(n=fo(e.substr(0,n))).b||(n.b={}),n.b[r]=t,t.a=n,co[e]=t}return t}function ho(e,t){e&&e.log(uo,t,void 0)}function po(e){this.f=e}function vo(e){Nt.call(this),this.i=e,this.readyState=mo,this.status=0,this.responseText=this.statusText="",this.onreadystatechange=null,this.g=new Headers,this.b=null,this.h="GET",this.c="",this.a=!1,this.f=fo("goog.net.FetchXmlHttp")}_(po,Yi),po.prototype.a=function(){return new vo(this.f)},po.prototype.b=function(e){return function(){return e}}({}),_(vo,Nt);var mo=0;function yo(e){e.onreadystatechange&&e.onreadystatechange.call(e)}function go(e){Nt.call(this),this.headers=new jt,this.C=e||null,this.c=!1,this.w=this.a=null,this.h=this.N=this.l="",this.f=this.I=this.i=this.G=!1,this.g=0,this.u=null,this.o=bo,this.v=this.O=!1}(e=vo.prototype).open=function(e,t){if(this.readyState!=mo)throw this.abort(),Error("Error reopening a connection");this.h=e,this.c=t,this.readyState=1,yo(this)},e.send=function(e){if(1!=this.readyState)throw this.abort(),Error("need to call open() first. ");this.a=!0;var t={headers:this.g,method:this.h,credentials:void 0,cache:void 0};e&&(t.body=e),this.i.fetch(new Request(this.c,t)).then(this.ec.bind(this),this.Cb.bind(this))},e.abort=function(){this.responseText="",this.g=new Headers,this.status=0,1<=this.readyState&&this.a&&4!=this.readyState&&(this.readyState=4,this.a=!1,yo(this)),this.readyState=mo},e.ec=function(e){this.a&&(this.b||(this.b=e.headers,this.readyState=2,yo(this)),this.a&&(this.readyState=3,yo(this),this.a&&e.text().then(this.dc.bind(this,e),this.Cb.bind(this))))},e.dc=function(e,t){this.a&&(this.status=e.status,this.statusText=e.statusText,this.responseText=t,this.readyState=4,yo(this))},e.Cb=function(e){var t=this.f;t&&t.log(ao,"Failed to fetch url "+this.c,e instanceof Error?e:Error(e)),this.a&&(this.readyState=4,yo(this))},e.setRequestHeader=function(e,t){this.g.append(e,t)},e.getResponseHeader=function(e){return this.b?this.b.get(e.toLowerCase())||"":((e=this.f)&&e.log(ao,"Attempting to get response header but no headers have been received for url: "+this.c,void 0),"")},e.getAllResponseHeaders=function(){if(!this.b){var e=this.f;return e&&e.log(ao,"Attempting to get all response headers but no headers have been received for url: "+this.c,void 0),""}e=[];for(var t=this.b.entries(),n=t.next();!n.done;)n=n.value,e.push(n[0]+": "+n[1]),n=t.next();return e.join("\r\n")},_(go,Nt);var bo="";go.prototype.b=fo("goog.net.XhrIo");var _o=/^https?$/i,wo=["POST","PUT"];function Eo(e,t,r,o,a){if(e.a)throw Error("[goog.net.XhrIo] Object is active with another request="+e.l+"; newUri="+t);r=r?r.toUpperCase():"GET",e.l=t,e.h="",e.N=r,e.G=!1,e.c=!0,e.a=e.C?e.C.a():Gi.a(),e.w=e.C?Xi(e.C):Xi(Gi),e.a.onreadystatechange=y(e.Fb,e);try{ho(e.b,Io(e,"Opening Xhr")),e.I=!0,e.a.open(r,String(t),!0),e.I=!1}catch(t){return ho(e.b,Io(e,"Error opening Xhr: "+t.message)),void Co(e,t)}t=o||"";var s=new jt(e.headers);a&&function(e,t){if(e.forEach&&"function"==typeof e.forEach)e.forEach(t,void 0);else if(l(e)||i(e))R(e,t,void 0);else for(var n=Lt(e),r=Mt(e),o=r.length,a=0;a<o;a++)t.call(void 0,r[a],n&&n[a],e)}(a,function(e,t){s.set(t,e)}),a=function(e){e:{for(var t=xo,n=e.length,r=i(e)?e.split(""):e,o=0;o<n;o++)if(o in r&&t.call(void 0,r[o],o,e)){t=o;break e}t=-1}return 0>t?null:i(e)?e.charAt(t):e[t]}(s.U()),o=n.FormData&&t instanceof n.FormData,!L(wo,r)||a||o||s.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8"),s.forEach(function(e,t){this.a.setRequestHeader(t,e)},e),e.o&&(e.a.responseType=e.o),"withCredentials"in e.a&&e.a.withCredentials!==e.O&&(e.a.withCredentials=e.O);try{Ao(e),0<e.g&&(e.v=function(e){return We&&et(9)&&"number"==typeof e.timeout&&void 0!==e.ontimeout}(e.a),ho(e.b,Io(e,"Will abort after "+e.g+"ms if incomplete, xhr2 "+e.v)),e.v?(e.a.timeout=e.g,e.a.ontimeout=y(e.Ga,e)):e.u=Rt(e.Ga,e.g,e)),ho(e.b,Io(e,"Sending request")),e.i=!0,e.a.send(t),e.i=!1}catch(t){ho(e.b,Io(e,"Send error: "+t.message)),Co(e,t)}}function xo(e){return"content-type"==e.toLowerCase()}function Co(e,t){e.c=!1,e.a&&(e.f=!0,e.a.abort(),e.f=!1),e.h=t,To(e),So(e)}function To(e){e.G||(e.G=!0,e.dispatchEvent("complete"),e.dispatchEvent("error"))}function ko(e){if(e.c&&void 0!==t)if(e.w[1]&&4==No(e)&&2==Oo(e))ho(e.b,Io(e,"Local request error detected and ignored"));else if(e.i&&4==No(e))Rt(e.Fb,0,e);else if(e.dispatchEvent("readystatechange"),4==No(e)){ho(e.b,Io(e,"Request complete")),e.c=!1;try{var r,i=Oo(e);e:switch(i){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var o=!0;break e;default:o=!1}if(!(r=o)){var a;if(a=0===i){var s=String(e.l).match(Bt)[1]||null;if(!s&&n.self&&n.self.location){var u=n.self.location.protocol;s=u.substr(0,u.length-1)}a=!_o.test(s?s.toLowerCase():"")}r=a}if(r)e.dispatchEvent("complete"),e.dispatchEvent("success");else{try{var c=2<No(e)?e.a.statusText:""}catch(t){ho(e.b,"Can not get status: "+t.message),c=""}e.h=c+" ["+Oo(e)+"]",To(e)}}finally{So(e)}}}function So(e,t){if(e.a){Ao(e);var n=e.a,r=e.w[0]?a:null;e.a=null,e.w=null,t||e.dispatchEvent("ready");try{n.onreadystatechange=r}catch(t){(e=e.b)&&e.log(oo,"Problem encountered resetting onreadystatechange: "+t.message,void 0)}}}function Ao(e){e.a&&e.v&&(e.a.ontimeout=null),e.u&&(n.clearTimeout(e.u),e.u=null)}function No(e){return e.a?e.a.readyState:0}function Oo(e){try{return 2<No(e)?e.a.status:-1}catch(e){return-1}}function Io(e,t){return t+" ["+e.N+" "+e.l+" "+Oo(e)+"]"}function Po(e,t){this.g=[],this.v=e,this.u=t||null,this.f=this.a=!1,this.c=void 0,this.l=this.w=this.i=!1,this.h=0,this.b=null,this.m=0}function Ro(e,t,n){e.a=!0,e.c=n,e.f=!t,jo(e)}function Do(e){if(e.a){if(!e.l)throw new Fo(e);e.l=!1}}function Mo(e,t,n,r){e.g.push([t,n,r]),e.a&&jo(e)}function Lo(e){return M(e.g,function(e){return f(e[1])})}function jo(e){if(e.h&&e.a&&Lo(e)){var t=e.h,r=qo[t];r&&(n.clearTimeout(r.a),delete qo[t]),e.h=0}e.b&&(e.b.m--,delete e.b),t=e.c;for(var i=r=!1;e.g.length&&!e.i;){var o=e.g.shift(),a=o[0],s=o[1];if(o=o[2],a=e.f?s:a)try{var u=a.call(o||e.u,t);void 0!==u&&(e.f=e.f&&(u==t||u instanceof Error),e.c=t=u),(E(t)||"function"==typeof n.Promise&&t instanceof n.Promise)&&(i=!0,e.i=!0)}catch(n){t=n,e.f=!0,Lo(e)||(r=!0)}}e.c=t,i&&(u=y(e.o,e,!0),i=y(e.o,e,!1),t instanceof Po?(Mo(t,u,i),t.w=!0):t.then(u,i)),r&&(t=new Bo(t),qo[t.a]=t,e.h=t.a)}function Fo(){x.call(this)}function Uo(){x.call(this)}function Bo(e){this.a=n.setTimeout(y(this.c,this),0),this.b=e}(e=go.prototype).Ga=function(){void 0!==t&&this.a&&(this.h="Timed out after "+this.g+"ms, aborting",ho(this.b,Io(this,this.h)),this.dispatchEvent("timeout"),this.abort(8))},e.abort=function(){this.a&&this.c&&(ho(this.b,Io(this,"Aborting")),this.c=!1,this.f=!0,this.a.abort(),this.f=!1,this.dispatchEvent("complete"),this.dispatchEvent("abort"),So(this))},e.ua=function(){this.a&&(this.c&&(this.c=!1,this.f=!0,this.a.abort(),this.f=!1),So(this,!0)),go.lb.ua.call(this)},e.Fb=function(){this.pa||(this.I||this.i||this.f?ko(this):this.tc())},e.tc=function(){ko(this)},e.getResponse=function(){try{if(!this.a)return null;if("response"in this.a)return this.a.response;switch(this.o){case bo:case"text":return this.a.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in this.a)return this.a.mozResponseArrayBuffer}var e=this.b;return e&&e.log(oo,"Response type "+this.o+" is not supported on this browser",void 0),null}catch(e){return ho(this.b,"Can not get response: "+e.message),null}},Po.prototype.cancel=function(e){if(this.a)this.c instanceof Po&&this.c.cancel();else{if(this.b){var t=this.b;delete this.b,e?t.cancel(e):(t.m--,0>=t.m&&t.cancel())}this.v?this.v.call(this.u,this):this.l=!0,this.a||(e=new Uo(this),Do(this),Ro(this,!1,e))}},Po.prototype.o=function(e,t){this.i=!1,Ro(this,e,t)},Po.prototype.C=function(){Do(this),Ro(this,!0,null)},Po.prototype.then=function(e,t,n){var r,i,o=new ve(function(e,t){r=e,i=t});return Mo(this,r,function(e){e instanceof Uo?o.cancel():i(e)}),o.then(e,t,n)},w(Po),_(Fo,x),Fo.prototype.message="Deferred has already fired",Fo.prototype.name="AlreadyCalledError",_(Uo,x),Uo.prototype.message="Deferred was canceled",Uo.prototype.name="CanceledError",Bo.prototype.c=function(){throw delete qo[this.a],this.b};var qo={};function Vo(e){var t={},n=t.document||document,r=yn(e),i=document.createElement("SCRIPT"),o={Hb:i,Ga:void 0},a=new Po(Wo,o),s=null,u=null!=t.timeout?t.timeout:5e3;return 0<u&&(s=window.setTimeout(function(){zo(i,!0);var e=new Go(Ko,"Timeout reached for loading script "+r);Do(a),Ro(a,!1,e)},u),o.Ga=s),i.onload=i.onreadystatechange=function(){i.readyState&&"loaded"!=i.readyState&&"complete"!=i.readyState||(zo(i,t.dd||!1,s),a.C())},i.onerror=function(){zo(i,!0,s);var e=new Go(Ho,"Error while loading script "+r);Do(a),Ro(a,!1,e)},ce(o=t.attributes||{},{type:"text/javascript",charset:"UTF-8"}),Pn(i,o),i.src=yn(e),function(e){var t;return(t=(e||document).getElementsByTagName("HEAD"))&&0!=t.length?t[0]:e.documentElement}(n).appendChild(i),a}function Wo(){if(this&&this.Hb){var e=this.Hb;e&&"SCRIPT"==e.tagName&&zo(e,!0,this.Ga)}}function zo(e,t,r){null!=r&&n.clearTimeout(r),e.onload=a,e.onerror=a,e.onreadystatechange=a,t&&window.setTimeout(function(){e&&e.parentNode&&e.parentNode.removeChild(e)},0)}var Ho=0,Ko=1;function Go(e,t){var n="Jsloader error (code #"+e+")";t&&(n+=": "+t),x.call(this,n),this.code=e}function Qo(e){this.f=e}function Yo(e,t,i){if(this.b=e,e=t||{},this.i=e.secureTokenEndpoint||"https://securetoken.googleapis.com/v1/token",this.m=e.secureTokenTimeout||$o,this.f=oe(e.secureTokenHeaders||Zo),this.g=e.firebaseEndpoint||"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",this.h=e.firebaseTimeout||ea,this.a=oe(e.firebaseHeaders||ta),i&&(this.a["X-Client-Version"]=i,this.f["X-Client-Version"]=i),i="Node"==Jn(),!(i=n.XMLHttpRequest||i&&r.a.INTERNAL.node&&r.a.INTERNAL.node.XMLHttpRequest)&&!Xn())throw new jr("internal-error","The XMLHttpRequest compatibility library was not found.");this.c=void 0,Xn()?this.c=new po(self):$n()?this.c=new Qo(i):this.c=new Zi}_(Go,x),_(Qo,Yi),Qo.prototype.a=function(){return new this.f},Qo.prototype.b=function(){return{}};var Xo,Jo="idToken",$o=new yr(3e4,6e4),Zo={"Content-Type":"application/x-www-form-urlencoded"},ea=new yr(3e4,6e4),ta={"Content-Type":"application/json"};function na(e,t){t?e.a["X-Firebase-Locale"]=t:delete e.a["X-Firebase-Locale"]}function ra(e,t){t?(e.a["X-Client-Version"]=t,e.f["X-Client-Version"]=t):(delete e.a["X-Client-Version"],delete e.f["X-Client-Version"])}function ia(e,t,r,i,o,a,s){(function(){var e=ir();return!((e=tr(e)!=er?null:(e=e.match(/\sChrome\/(\d+)/i))&&2==e.length?parseInt(e[1],10):null)&&30>e||We&&$e&&!(9<$e))})()||Xn()?e=y(e.o,e):(Xo||(Xo=new ve(function(e,t){!function(e,t){if(((window.gapi||{}).client||{}).request)e();else{n[aa]=function(){((window.gapi||{}).client||{}).request?e():t(Error("CORS_UNSUPPORTED"))};var r=gn(oa,{onload:aa});!function(e,t){Mo(e,null,t,void 0)}(Vo(r),function(){t(Error("CORS_UNSUPPORTED"))})}}(e,t)})),e=y(e.l,e)),e(t,r,i,o,a,s)}Yo.prototype.o=function(e,t,r,i,o,a){if(Xn()&&(void 0===n.fetch||void 0===n.Headers||void 0===n.Request))throw new jr("operation-not-supported-in-this-environment","fetch, Headers and Request native APIs or equivalent Polyfills must be available to support HTTP requests from a Worker environment.");var s=new go(this.c);if(a){s.g=Math.max(0,a);var u=setTimeout(function(){s.dispatchEvent("timeout")},a)}Ot(s,"complete",function(){u&&clearTimeout(u);var e=null;try{e=JSON.parse(function(e){try{return e.a?e.a.responseText:""}catch(t){return ho(e.b,"Can not get responseText: "+t.message),""}}(this))||null}catch(t){e=null}t&&t(e)}),It(s,"ready",function(){u&&clearTimeout(u),Fe(this)}),It(s,"timeout",function(){u&&clearTimeout(u),Fe(this),t&&t(null)}),Eo(s,e,r,i,o)};var oa=vn("https://apis.google.com/js/client.js?onload=%{onload}"),aa="__fcb"+Math.floor(1e6*Math.random()).toString();function sa(e){if(!Qi.test(e.email))throw new jr("invalid-email")}function ua(e){"email"in e&&sa(e)}function ca(e){if(!e[Jo])throw new jr("internal-error")}function la(e){if(e.phoneNumber||e.temporaryProof){if(!e.phoneNumber||!e.temporaryProof)throw new jr("internal-error")}else{if(!e.sessionInfo)throw new jr("missing-verification-id");if(!e.code)throw new jr("missing-verification-code")}}Yo.prototype.l=function(e,t,n,r,i){var o=this;Xo.then(function(){window.gapi.client.setApiKey(o.b);var a=window.gapi.auth.getToken();window.gapi.auth.setToken(null),window.gapi.client.request({path:e,method:n,body:r,headers:i,authType:"none",callback:function(e){window.gapi.auth.setToken(a),t&&t(e)}})}).s(function(e){t&&t({error:{message:e&&e.message||"CORS_UNSUPPORTED"}})})},Yo.prototype.Pa=function(){return Ha(this,La,{})},Yo.prototype.mb=function(e,t){return Ha(this,Da,{idToken:e,email:t})},Yo.prototype.nb=function(e,t){return Ha(this,Ma,{idToken:e,password:t})};var fa={displayName:"DISPLAY_NAME",photoUrl:"PHOTO_URL"};function ha(e){if(!e.requestUri||!e.sessionId&&!e.postBody)throw new jr("internal-error")}function pa(e){var t=null;if(e.needConfirmation?(e.code="account-exists-with-different-credential",t=Ki(e)):"FEDERATED_USER_ID_ALREADY_LINKED"==e.errorMessage?(e.code="credential-already-in-use",t=Ki(e)):"EMAIL_EXISTS"==e.errorMessage?(e.code="email-already-in-use",t=Ki(e)):e.errorMessage&&(t=Ka(e.errorMessage)),t)throw t;if(!e[Jo])throw new jr("internal-error")}function da(e,t){return t.returnIdpCredential=!0,Ha(e,ja,t)}function va(e,t){return t.returnIdpCredential=!0,Ha(e,Ua,t)}function ma(e,t){return t.returnIdpCredential=!0,t.autoCreate=!1,Ha(e,Fa,t)}function ya(e){if(!e.oobCode)throw new jr("invalid-action-code")}(e=Yo.prototype).ob=function(e,t){var n={idToken:e},r=[];return re(fa,function(e,i){var o=t[i];null===o?r.push(e):i in t&&(n[i]=o)}),r.length&&(n.deleteAttribute=r),Ha(this,Da,n)},e.hb=function(e,t){return ce(e={requestType:"PASSWORD_RESET",email:e},t),Ha(this,Na,e)},e.ib=function(e,t){return ce(e={requestType:"EMAIL_SIGNIN",email:e},t),Ha(this,Sa,e)},e.gb=function(e,t){return ce(e={requestType:"VERIFY_EMAIL",idToken:e},t),Ha(this,Aa,e)},e.Ta=function(e){return Ha(this,Va,e)},e.Xa=function(e,t){return Ha(this,Pa,{oobCode:e,newPassword:t})},e.Ja=function(e){return Ha(this,ba,{oobCode:e})},e.Va=function(e){return Ha(this,ga,{oobCode:e})};var ga={endpoint:"setAccountInfo",B:ya,da:"email"},ba={endpoint:"resetPassword",B:ya,J:function(e){var t=e.requestType;if(!t||!e.email&&"EMAIL_SIGNIN"!=t)throw new jr("internal-error")}},_a={endpoint:"signupNewUser",B:function(e){if(sa(e),!e.password)throw new jr("weak-password")},J:ca,R:!0},wa={endpoint:"createAuthUri"},Ea={endpoint:"deleteAccount",T:["idToken"]},xa={endpoint:"setAccountInfo",T:["idToken","deleteProvider"],B:function(e){if(!c(e.deleteProvider))throw new jr("internal-error")}},Ca={endpoint:"emailLinkSignin",T:["email","oobCode"],B:sa,J:ca,R:!0},Ta={endpoint:"emailLinkSignin",T:["idToken","email","oobCode"],B:sa,J:ca,R:!0},ka={endpoint:"getAccountInfo"},Sa={endpoint:"getOobConfirmationCode",T:["requestType"],B:function(e){if("EMAIL_SIGNIN"!=e.requestType)throw new jr("internal-error");sa(e)},da:"email"},Aa={endpoint:"getOobConfirmationCode",T:["idToken","requestType"],B:function(e){if("VERIFY_EMAIL"!=e.requestType)throw new jr("internal-error")},da:"email"},Na={endpoint:"getOobConfirmationCode",T:["requestType"],B:function(e){if("PASSWORD_RESET"!=e.requestType)throw new jr("internal-error");sa(e)},da:"email"},Oa={rb:!0,endpoint:"getProjectConfig",Eb:"GET"},Ia={rb:!0,endpoint:"getRecaptchaParam",Eb:"GET",J:function(e){if(!e.recaptchaSiteKey)throw new jr("internal-error")}},Pa={endpoint:"resetPassword",B:ya,da:"email"},Ra={endpoint:"sendVerificationCode",T:["phoneNumber","recaptchaToken"],da:"sessionInfo"},Da={endpoint:"setAccountInfo",T:["idToken"],B:ua,R:!0},Ma={endpoint:"setAccountInfo",T:["idToken"],B:function(e){if(ua(e),!e.password)throw new jr("weak-password")},J:ca,R:!0},La={endpoint:"signupNewUser",J:ca,R:!0},ja={endpoint:"verifyAssertion",B:ha,J:pa,R:!0},Fa={endpoint:"verifyAssertion",B:ha,J:function(e){if(e.errorMessage&&"USER_NOT_FOUND"==e.errorMessage)throw new jr("user-not-found");if(e.errorMessage)throw Ka(e.errorMessage);if(!e[Jo])throw new jr("internal-error")},R:!0},Ua={endpoint:"verifyAssertion",B:function(e){if(ha(e),!e.idToken)throw new jr("internal-error")},J:pa,R:!0},Ba={endpoint:"verifyCustomToken",B:function(e){if(!e.token)throw new jr("invalid-custom-token")},J:ca,R:!0},qa={endpoint:"verifyPassword",B:function(e){if(sa(e),!e.password)throw new jr("wrong-password")},J:ca,R:!0},Va={endpoint:"verifyPhoneNumber",B:la,J:ca},Wa={endpoint:"verifyPhoneNumber",B:function(e){if(!e.idToken)throw new jr("internal-error");la(e)},J:function(e){if(e.temporaryProof)throw e.code="credential-already-in-use",Ki(e);ca(e)}},za={Tb:{USER_NOT_FOUND:"user-not-found"},endpoint:"verifyPhoneNumber",B:la,J:ca};function Ha(e,t,n){if(!function(e,t){if(!t||!t.length)return!0;if(!e)return!1;for(var n=0;n<t.length;n++){var r=e[t[n]];if(void 0===r||null===r||""===r)return!1}return!0}(n,t.T))return xe(new jr("internal-error"));var r,i=t.Eb||"POST";return Ee(n).then(t.B).then(function(){return t.R&&(n.returnSecureToken=!0),function(e,t,n,r,i,o){var a=Gt(e.g+t);Ht(a,"key",e.b),o&&Ht(a,"cb",b().toString());var s="GET"==n;if(s)for(var u in r)r.hasOwnProperty(u)&&Ht(a,u,r[u]);return new ve(function(t,o){ia(e,a.toString(),function(e){e?e.error?o(Ga(e,i||{})):t(e):o(new jr("network-request-failed"))},n,s?void 0:Ln(hr(r)),e.a,e.h.get())})}(e,t.endpoint,i,n,t.Tb,t.rb||!1)}).then(function(e){return r=e}).then(t.J).then(function(){if(!t.da)return r;if(!(t.da in r))throw new jr("internal-error");return r[t.da]})}function Ka(e){return Ga({error:{errors:[{message:e}],code:400,message:e}})}function Ga(e,t){var n=(e.error&&e.error.errors&&e.error.errors[0]||{}).reason||"",r={keyInvalid:"invalid-api-key",ipRefererBlocked:"app-not-authorized"};if(n=r[n]?new jr(r[n]):null)return n;for(var i in n=e.error&&e.error.message||"",ce(r={INVALID_CUSTOM_TOKEN:"invalid-custom-token",CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_EMAIL:"invalid-email",INVALID_PASSWORD:"wrong-password",USER_DISABLED:"user-disabled",MISSING_PASSWORD:"internal-error",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",INVALID_MESSAGE_PAYLOAD:"invalid-message-payload",INVALID_RECIPIENT_EMAIL:"invalid-recipient-email",INVALID_SENDER:"invalid-sender",EMAIL_NOT_FOUND:"user-not-found",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",CORS_UNSUPPORTED:"cors-unsupported",DYNAMIC_LINK_NOT_ACTIVATED:"dynamic-link-not-activated",INVALID_APP_ID:"invalid-app-id",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",WEAK_PASSWORD:"weak-password",OPERATION_NOT_ALLOWED:"operation-not-allowed",USER_CANCELLED:"user-cancelled",CAPTCHA_CHECK_FAILED:"captcha-check-failed",INVALID_APP_CREDENTIAL:"invalid-app-credential",INVALID_CODE:"invalid-verification-code",INVALID_PHONE_NUMBER:"invalid-phone-number",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_APP_CREDENTIAL:"missing-app-credential",MISSING_CODE:"missing-verification-code",MISSING_PHONE_NUMBER:"missing-phone-number",MISSING_SESSION_INFO:"missing-verification-id",QUOTA_EXCEEDED:"quota-exceeded",SESSION_EXPIRED:"code-expired",INVALID_CONTINUE_URI:"invalid-continue-uri",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",MISSING_IOS_BUNDLE_ID:"missing-ios-bundle-id",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",INVALID_CERT_HASH:"invalid-cert-hash"},t||{}),t=(t=n.match(/^[^\s]+\s*:\s*(.*)$/))&&1<t.length?t[1]:void 0,r)if(0===n.indexOf(i))return new jr(r[i],t);return!t&&e&&(t=fr(e)),new jr("internal-error",t)}var Qa,Ya={Yc:{Za:"https://www.googleapis.com/identitytoolkit/v3/relyingparty/",fb:"https://securetoken.googleapis.com/v1/token",id:"p"},$c:{Za:"https://staging-www.sandbox.googleapis.com/identitytoolkit/v3/relyingparty/",fb:"https://staging-securetoken.sandbox.googleapis.com/v1/token",id:"s"},ad:{Za:"https://www-googleapis-test.sandbox.google.com/identitytoolkit/v3/relyingparty/",fb:"https://test-securetoken.sandbox.googleapis.com/v1/token",id:"t"}};function Xa(e){for(var t in Ya)if(Ya[t].id===e)return{firebaseEndpoint:(e=Ya[t]).Za,secureTokenEndpoint:e.fb};return null}function Ja(e){this.b=e,this.a=null,this.bb=function(e){return(ns||(ns=new ve(function(e,t){function r(){mr(),or("gapi.load")("gapi.iframes",{callback:e,ontimeout:function(){mr(),t(Error("Network Error"))},timeout:es.get()})}if(or("gapi.iframes.Iframe"))e();else if(or("gapi.load"))r();else{var i="__iframefcb"+Math.floor(1e6*Math.random()).toString();n[i]=function(){or("gapi.load")?r():t(Error("Network Error"))},Ee(Vo(i=gn(Za,{onload:i}))).s(function(){t(Error("Network Error"))})}}).s(function(e){throw ns=null,e}))).then(function(){return new ve(function(t,n){or("gapi.iframes.getContext")().open({where:document.body,url:e.b,messageHandlersFilter:or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"),attributes:{style:{position:"absolute",top:"-100px",width:"1px",height:"1px"}},dontclear:!0},function(r){function i(){clearTimeout(o),t()}e.a=r,e.a.restyle({setHideOnLeave:!1});var o=setTimeout(function(){n(Error("Network Error"))},ts.get());r.ping(i).then(i,function(){n(Error("Network Error"))})})})})}(this)}Qa=Xa("__EID__")?"__EID__":void 0;var $a,Za=vn("https://apis.google.com/js/api.js?onload=%{onload}"),es=new yr(3e4,6e4),ts=new yr(5e3,15e3),ns=null;function rs(e,t,n){this.i=e,this.g=t,this.h=n,this.f=null,this.a=Qt(this.i,"/__/auth/iframe"),Ht(this.a,"apiKey",this.g),Ht(this.a,"appName",this.h),this.b=null,this.c=[]}function is(e,t,n,r,i){this.o=e,this.l=t,this.c=n,this.m=r,this.h=this.g=this.i=null,this.a=i,this.f=null}function os(e){try{return r.a.app(e).auth().xa()}catch(e){return[]}}function as(e,t,n,r,i){this.l=e,this.f=t,this.b=n,this.c=r||null,this.h=i||null,this.o=this.u=this.v=null,this.g=[],this.m=this.a=null}function ss(e){var t=qn();return function(e){return Ha(e,Oa,{}).then(function(e){return e.authorizedDomains||[]})}(e).then(function(e){e:{var n=Gt(t),r=n.c;n=n.b;for(var i=0;i<e.length;i++){var o=e[i],a=n,s=r;if(0==o.indexOf("chrome-extension://")?a=Gt(o).b==a&&"chrome-extension"==s:"http"!=s&&"https"!=s?a=!1:Kn.test(o)?a=a==o:(o=o.split(".").join("\\."),a=new RegExp("^(.+\\."+o+"|"+o+")$","i").test(a)),a){e=!0;break e}}e=!1}if(!e)throw new zi(qn())})}function us(e){return e.m?e.m:(e.m=Gn().then(function(){if(!e.u){var t=e.c,n=e.h,r=os(e.b),i=new rs(e.l,e.f,e.b);i.f=t,i.b=n,i.c=B(r||[]),e.u=i.toString()}e.i=new Ja(e.u),function(e){if(!e.i)throw Error("IfcHandler must be initialized!");!function(e,t){e.bb.then(function(){e.a.register("authEvent",t,or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})}(e.i,function(t){var n={};if(t&&t.authEvent){var r=!1;for(t=qi(t.authEvent),n=0;n<e.g.length;n++)r=e.g[n](t)||r;return(n={}).status=r?"ACK":"ERROR",Ee(n)}return n.status="ERROR",Ee(n)})}(e)}),e.m)}function cs(e){return e.o||(e.v=e.c?rr(e.c,os(e.b)):null,e.o=new Yo(e.f,Xa(e.h),e.v)),e.o}function ls(e,t,n,r,i,o,a,s,u,c){return(e=new is(e,t,n,r,i)).i=o,e.g=a,e.h=s,e.b=oe(u||null),e.f=c,e.toString()}function fs(e){if(this.a=e||r.a.INTERNAL.reactNative&&r.a.INTERNAL.reactNative.AsyncStorage,!this.a)throw new jr("internal-error","The React Native compatibility library was not found.");this.type="asyncStorage"}function hs(){if(!vs())throw new jr("web-storage-unsupported");this.f={},this.a=[],this.b=0,this.g=n.indexedDB,this.type="indexedDB"}function ps(e){return new ve(function(t,n){var r=e.g.open("firebaseLocalStorageDb",1);r.onerror=function(e){try{e.preventDefault()}catch(e){}n(Error(e.target.error))},r.onupgradeneeded=function(e){e=e.target.result;try{e.createObjectStore("firebaseLocalStorage",{keyPath:"fbase_key"})}catch(e){n(e)}},r.onsuccess=function(r){(r=r.target.result).objectStoreNames.contains("firebaseLocalStorage")?t(r):function(e){return new ve(function(t,n){var r=e.g.deleteDatabase("firebaseLocalStorageDb");r.onsuccess=function(){t()},r.onerror=function(e){n(Error(e.target.error))}})}(e).then(function(){return ps(e)}).then(function(e){t(e)}).s(function(e){n(e)})}})}function ds(e){return e.h||(e.h=ps(e)),e.h}function vs(){try{return!!n.indexedDB}catch(e){return!1}}function ms(e){return e.objectStore("firebaseLocalStorage")}function ys(e,t){return e.transaction(["firebaseLocalStorage"],t?"readwrite":"readonly")}function gs(e){return new ve(function(t,n){e.onsuccess=function(e){e&&e.target?t(e.target.result):t()},e.onerror=function(e){n(Error(e.target.errorCode))}})}function bs(e){var t=this,n=null;this.a=[],this.type="indexedDB",this.c=e,this.b=Ee().then(function(){if(vs()){var e=dr(),r="__sak"+e;return $a||($a=new hs),(n=$a).set(r,e).then(function(){return n.get(r)}).then(function(t){if(t!==e)throw Error("indexedDB not supported!");return n.P(r)}).then(function(){return n}).s(function(){return t.c})}return t.c}).then(function(e){return t.type=e.type,e.Y(function(e){R(t.a,function(t){t(e)})}),e})}function _s(){this.a={},this.type="inMemory"}function ws(){if(!function(){var e="Node"==Jn();if(!(e=Es()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.localStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==Jn())throw new jr("internal-error","The LocalStorage compatibility library was not found.");throw new jr("web-storage-unsupported")}this.a=Es()||r.a.INTERNAL.node.localStorage,this.type="localStorage"}function Es(){try{var e=n.localStorage,t=dr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}function xs(){this.type="nullStorage"}function Cs(){if(!function(){var e="Node"==Jn();if(!(e=Ts()||e&&r.a.INTERNAL.node&&r.a.INTERNAL.node.sessionStorage))return!1;try{return e.setItem("__sak","1"),e.removeItem("__sak"),!0}catch(e){return!1}}()){if("Node"==Jn())throw new jr("internal-error","The SessionStorage compatibility library was not found.");throw new jr("web-storage-unsupported")}this.a=Ts()||r.a.INTERNAL.node.sessionStorage,this.type="sessionStorage"}function Ts(){try{var e=n.sessionStorage,t=dr();return e&&(e.setItem(t,"1"),e.removeItem(t)),e}catch(e){return null}}rs.prototype.toString=function(){return this.f?Ht(this.a,"v",this.f):sn(this.a.a,"v"),this.b?Ht(this.a,"eid",this.b):sn(this.a.a,"eid"),this.c.length?Ht(this.a,"fw",this.c.join(",")):sn(this.a.a,"fw"),this.a.toString()},is.prototype.toString=function(){var e=Qt(this.o,"/__/auth/handler");if(Ht(e,"apiKey",this.l),Ht(e,"appName",this.c),Ht(e,"authType",this.m),this.a.isOAuthProvider){var t=this.a;try{var n=r.a.app(this.c).auth().ea()}catch(e){n=null}for(var i in t.Ya=n,Ht(e,"providerId",this.a.providerId),n=hr((t=this.a).vb))n[i]=n[i].toString();i=t.Ac,n=oe(n);for(var o=0;o<i.length;o++){var a=i[o];a in n&&delete n[a]}t.$a&&t.Ya&&!n[t.$a]&&(n[t.$a]=t.Ya),ie(n)||Ht(e,"customParameters",fr(n))}if("function"==typeof this.a.Ab&&((t=this.a.Ab()).length&&Ht(e,"scopes",t.join(","))),this.i?Ht(e,"redirectUrl",this.i):sn(e.a,"redirectUrl"),this.g?Ht(e,"eventId",this.g):sn(e.a,"eventId"),this.h?Ht(e,"v",this.h):sn(e.a,"v"),this.b)for(var s in this.b)this.b.hasOwnProperty(s)&&!Kt(e,s)&&Ht(e,s,this.b[s]);return this.f?Ht(e,"eid",this.f):sn(e.a,"eid"),(s=os(this.c)).length&&Ht(e,"fw",s.join(",")),e.toString()},(e=as.prototype).Ea=function(e,t,n){var r=new jr("popup-closed-by-user"),i=new jr("web-storage-unsupported"),o=this,a=!1;return this.ga().then(function(){(function(e){var t={type:"webStorageSupport"};return us(e).then(function(){return function(e,t){return e.bb.then(function(){return new ve(function(n){e.a.send(t.type,t,n,or("gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER"))})})}(e.i,t)}).then(function(e){if(e&&e.length&&void 0!==e[0].webStorageSupport)return e[0].webStorageSupport;throw Error()})})(o).then(function(n){n||(e&&zn(e),t(i),a=!0)})}).s(function(){}).then(function(){if(!a)return function(e){return new ve(function(t){return function n(){Dt(2e3).then(function(){if(e&&!e.closed)return n();t()})}()})}(e)}).then(function(){if(!a)return Dt(n).then(function(){t(r)})})},e.Ib=function(){var e=ir();return!lr(e)&&!vr(e)},e.Db=function(){return!1},e.zb=function(e,t,n,r,i,o,a){if(!e)return xe(new jr("popup-blocked"));if(a&&!lr())return this.ga().s(function(t){zn(e),i(t)}),r(),Ee();this.a||(this.a=ss(cs(this)));var s=this;return this.a.then(function(){var t=s.ga().s(function(t){throw zn(e),i(t),t});return r(),t}).then(function(){(Ui(n),a)||Vn(ls(s.l,s.f,s.b,t,n,null,o,s.c,void 0,s.h),e)}).s(function(e){throw"auth/network-request-failed"==e.code&&(s.a=null),e})},e.Ca=function(e,t,n){this.a||(this.a=ss(cs(this)));var r=this;return this.a.then(function(){Ui(t),Vn(ls(r.l,r.f,r.b,e,t,qn(),n,r.c,void 0,r.h))}).s(function(e){throw"auth/network-request-failed"==e.code&&(r.a=null),e})},e.ga=function(){var e=this;return us(this).then(function(){return e.i.bb}).s(function(){throw e.a=null,new jr("network-request-failed")})},e.Mb=function(){return!0},e.va=function(e){this.g.push(e)},e.Ka=function(e){F(this.g,function(t){return t==e})},(e=fs.prototype).get=function(e){return Ee(this.a.getItem(e)).then(function(e){return e&&pr(e)})},e.set=function(e,t){return Ee(this.a.setItem(e,fr(t)))},e.P=function(e){return Ee(this.a.removeItem(e))},e.Y=function(){},e.ca=function(){},(e=hs.prototype).set=function(e,t){var n,r=!1,i=this;return ds(this).then(function(t){return gs((t=ms(ys(n=t,!0))).get(e))}).then(function(o){var a=ms(ys(n,!0));return o?(o.value=t,gs(a.put(o))):(i.b++,r=!0,(o={}).fbase_key=e,o.value=t,gs(a.add(o)))}).then(function(){i.f[e]=t}).ia(function(){r&&i.b--})},e.get=function(e){return ds(this).then(function(t){return gs(ms(ys(t,!1)).get(e))}).then(function(e){return e&&e.value})},e.P=function(e){var t=!1,n=this;return ds(this).then(function(r){return t=!0,n.b++,gs(ms(ys(r,!0)).delete(e))}).then(function(){delete n.f[e]}).ia(function(){t&&n.b--})},e.Kc=function(){var e=this;return ds(this).then(function(e){var t=ms(ys(e,!1));return t.getAll?gs(t.getAll()):new ve(function(e,n){var r=[],i=t.openCursor();i.onsuccess=function(t){(t=t.target.result)?(r.push(t.value),t.continue()):e(r)},i.onerror=function(e){n(Error(e.target.errorCode))}})}).then(function(t){var n={},r=[];if(0==e.b){for(r=0;r<t.length;r++)n[t[r].fbase_key]=t[r].value;r=function e(t,n){var r,i=[];for(r in t)r in n?typeof t[r]!=typeof n[r]?i.push(r):"object"==typeof t[r]&&null!=t[r]&&null!=n[r]?0<e(t[r],n[r]).length&&i.push(r):t[r]!==n[r]&&i.push(r):i.push(r);for(r in n)r in t||i.push(r);return i}(e.f,n),e.f=n}return r})},e.Y=function(e){0==this.a.length&&function(e){e.c&&e.c.cancel("STOP_EVENT"),function t(){e.c=Dt(800).then(y(e.Kc,e)).then(function(t){0<t.length&&R(e.a,function(e){e(t)})}).then(t).s(function(e){"STOP_EVENT"!=e.message&&t()});return e.c}()}(this),this.a.push(e)},e.ca=function(e){F(this.a,function(t){return t==e}),0==this.a.length&&this.c&&this.c.cancel("STOP_EVENT")},(e=bs.prototype).get=function(e){return this.b.then(function(t){return t.get(e)})},e.set=function(e,t){return this.b.then(function(n){return n.set(e,t)})},e.P=function(e){return this.b.then(function(t){return t.P(e)})},e.Y=function(e){this.a.push(e)},e.ca=function(e){F(this.a,function(t){return t==e})},(e=_s.prototype).get=function(e){return Ee(this.a[e])},e.set=function(e,t){return this.a[e]=t,Ee()},e.P=function(e){return delete this.a[e],Ee()},e.Y=function(){},e.ca=function(){},(e=ws.prototype).get=function(e){var t=this;return Ee().then(function(){return pr(t.a.getItem(e))})},e.set=function(e,t){var n=this;return Ee().then(function(){var r=fr(t);null===r?n.P(e):n.a.setItem(e,r)})},e.P=function(e){var t=this;return Ee().then(function(){t.a.removeItem(e)})},e.Y=function(e){n.window&&yt(n.window,"storage",e)},e.ca=function(e){n.window&&_t(n.window,"storage",e)},(e=xs.prototype).get=function(){return Ee(null)},e.set=function(){return Ee()},e.P=function(){return Ee()},e.Y=function(){},e.ca=function(){},(e=Cs.prototype).get=function(e){var t=this;return Ee().then(function(){return pr(t.a.getItem(e))})},e.set=function(e,t){var n=this;return Ee().then(function(){var r=fr(t);null===r?n.P(e):n.a.setItem(e,r)})},e.P=function(e){var t=this;return Ee().then(function(){t.a.removeItem(e)})},e.Y=function(){},e.ca=function(){};var ks,Ss,As={A:ws,Qa:Cs},Ns={A:ws,Qa:Cs},Os={A:fs,Qa:xs},Is={A:ws,Qa:xs},Ps={Xc:"local",NONE:"none",Zc:"session"};function Rs(){var e=!(vr(ir())||!Yn()),t=lr(),r=ar();this.o=e,this.h=t,this.m=r,this.a={},ks||(ks=new function(){var e={};e.Browser=As,e.Node=Ns,e.ReactNative=Os,e.Worker=Is,this.a=e[Jn()]}),e=ks;try{this.g=!Bn()&&_r()||!n.indexedDB?new e.a.A:new bs(Xn()?new _s:new e.a.A)}catch(e){this.g=new _s,this.h=!0}try{this.i=new e.a.Qa}catch(e){this.i=new _s}this.l=new _s,this.f=y(this.Lb,this),this.b={}}function Ds(){return Ss||(Ss=new Rs),Ss}function Ms(e,t){switch(t){case"session":return e.i;case"none":return e.l;default:return e.g}}function Ls(e,t){return"firebase:"+e.name+(t?":"+t:"")}function js(e,t,n){return n=Ls(t,n),"local"==t.A&&(e.b[n]=null),Ms(e,t.A).P(n)}function Fs(e){e.c&&(clearInterval(e.c),e.c=null)}(e=Rs.prototype).get=function(e,t){return Ms(this,e.A).get(Ls(e,t))},e.set=function(e,t,n){var r=Ls(e,n),i=this,o=Ms(this,e.A);return o.set(r,t).then(function(){return o.get(r)}).then(function(t){"local"==e.A&&(i.b[r]=t)})},e.addListener=function(e,t,r){e=Ls(e,t),this.m&&(this.b[e]=n.localStorage.getItem(e)),ie(this.a)&&(Ms(this,"local").Y(this.f),this.h||(Bn()||!_r())&&n.indexedDB||!this.m||function(e){Fs(e),e.c=setInterval(function(){for(var t in e.a){var r=n.localStorage.getItem(t),i=e.b[t];r!=i&&(e.b[t]=r,r=new st({type:"storage",key:t,target:window,oldValue:i,newValue:r,a:!0}),e.Lb(r))}},1e3)}(this)),this.a[e]||(this.a[e]=[]),this.a[e].push(r)},e.removeListener=function(e,t,n){e=Ls(e,t),this.a[e]&&(F(this.a[e],function(e){return e==n}),0==this.a[e].length&&delete this.a[e]),ie(this.a)&&(Ms(this,"local").ca(this.f),Fs(this))},e.Lb=function(e){if(e&&e.f){var t=e.a.key;if(null==t)for(var r in this.a){var i=this.b[r];void 0===i&&(i=null);var o=n.localStorage.getItem(r);o!==i&&(this.b[r]=o,this.Wa(r))}else if(0==t.indexOf("firebase:")&&this.a[t]){if(void 0!==e.a.a?Ms(this,"local").ca(this.f):Fs(this),this.o)if(r=n.localStorage.getItem(t),(i=e.a.newValue)!==r)null!==i?n.localStorage.setItem(t,i):n.localStorage.removeItem(t);else if(this.b[t]===i&&void 0===e.a.a)return;var a=this;r=function(){void 0===e.a.a&&a.b[t]===n.localStorage.getItem(t)||(a.b[t]=n.localStorage.getItem(t),a.Wa(t))},We&&$e&&10==$e&&n.localStorage.getItem(t)!==e.a.newValue&&e.a.newValue!==e.a.oldValue?setTimeout(r,10):r()}}else R(e,y(this.Wa,this))},e.Wa=function(e){this.a[e]&&R(this.a[e],function(e){e()})};var Us,Bs={name:"authEvent",A:"local"};function qs(e,t){this.b=-1,this.b=Vs,this.f=n.Uint8Array?new Uint8Array(this.b):Array(this.b),this.g=this.c=0,this.a=[],this.i=e,this.h=t,this.m=n.Int32Array?new Int32Array(64):Array(64),void 0!==Us||(Us=n.Int32Array?new Int32Array(Ys):Ys),this.reset()}_(qs,function(){this.b=-1});for(var Vs=64,Ws=Vs-1,zs=[],Hs=0;Hs<Ws;Hs++)zs[Hs]=0;var Ks=U(128,zs);function Gs(e){for(var t=e.f,n=e.m,r=0,i=0;i<t.length;)n[r++]=t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3],i=4*r;for(t=16;64>t;t++){i=0|n[t-15],r=0|n[t-2];var o=(0|n[t-16])+((i>>>7|i<<25)^(i>>>18|i<<14)^i>>>3)|0,a=(0|n[t-7])+((r>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)|0;n[t]=o+a|0}r=0|e.a[0],i=0|e.a[1];var s=0|e.a[2],u=0|e.a[3],c=0|e.a[4],l=0|e.a[5],f=0|e.a[6];for(o=0|e.a[7],t=0;64>t;t++){var h=((r>>>2|r<<30)^(r>>>13|r<<19)^(r>>>22|r<<10))+(r&i^r&s^i&s)|0;a=(o=o+((c>>>6|c<<26)^(c>>>11|c<<21)^(c>>>25|c<<7))|0)+((a=(a=c&l^~c&f)+(0|Us[t])|0)+(0|n[t])|0)|0,o=f,f=l,l=c,c=u+a|0,u=s,s=i,i=r,r=a+h|0}e.a[0]=e.a[0]+r|0,e.a[1]=e.a[1]+i|0,e.a[2]=e.a[2]+s|0,e.a[3]=e.a[3]+u|0,e.a[4]=e.a[4]+c|0,e.a[5]=e.a[5]+l|0,e.a[6]=e.a[6]+f|0,e.a[7]=e.a[7]+o|0}function Qs(e,t,n){void 0===n&&(n=t.length);var r=0,o=e.c;if(i(t))for(;r<n;)e.f[o++]=t.charCodeAt(r++),o==e.b&&(Gs(e),o=0);else{if(!l(t))throw Error("message must be string or array");for(;r<n;){var a=t[r++];if(!("number"==typeof a&&0<=a&&255>=a&&a==(0|a)))throw Error("message must be a byte array");e.f[o++]=a,o==e.b&&(Gs(e),o=0)}}e.c=o,e.g+=n}qs.prototype.reset=function(){this.g=this.c=0,this.a=n.Int32Array?new Int32Array(this.h):B(this.h)};var Ys=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function Xs(){qs.call(this,8,Js)}_(Xs,qs);var Js=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225];function $s(e,t,n,r,i){this.l=e,this.i=t,this.m=n,this.o=r||null,this.u=i||null,this.h=t+":"+n,this.v=new function(){this.a=Ds()},this.g=new function(e){this.a=e,this.b=Ds()}(this.h),this.f=null,this.b=[],this.a=this.c=null}function Zs(e){return new jr("invalid-cordova-configuration",e)}function eu(e){var t=new Xs;Qs(t,e),e=[];var n=8*t.g;56>t.c?Qs(t,Ks,56-t.c):Qs(t,Ks,t.b-(t.c-56));for(var r=63;56<=r;r--)t.f[r]=255&n,n/=256;for(Gs(t),r=n=0;r<t.i;r++)for(var i=24;0<=i;i-=8)e[n++]=t.a[r]>>i&255;return function(e){return D(e,function(e){return 1<(e=e.toString(16)).length?e:"0"+e}).join("")}(e)}function tu(e,t){for(var n=0;n<e.b.length;n++)try{e.b[n](t)}catch(e){}}function nu(e){return e.f||(e.f=e.ga().then(function(){return new ve(function(t){e.va(function n(r){return t(r),e.Ka(n),!1}),function(e){function t(t){i=!0,o&&o.cancel(),ru(e).then(function(n){var i=r;if(n&&t&&t.url){var o=null;-1!=(i=mi(t.url)).indexOf("/__/auth/callback")&&(o=(o="object"==typeof(o=pr(Kt(o=Gt(i),"firebaseError")||null))?Fr(o):null)?new Bi(n.b,n.c,null,null,o):new Bi(n.b,n.c,i,n.g)),i=o||r}tu(e,i)})}var r=new Bi("unknown",null,null,null,new jr("no-auth-event")),i=!1,o=Dt(500).then(function(){return ru(e).then(function(){i||tu(e,r)})}),a=n.handleOpenURL;n.handleOpenURL=function(e){if(0==e.toLowerCase().indexOf(or("BuildInfo.packageName",n).toLowerCase()+"://")&&t({url:e}),"function"==typeof a)try{a(e)}catch(e){console.error(e)}},Wi||(Wi=new Vi),Wi.subscribe(t)}(e)})})),e.f}function ru(e){var t=null;return function(e){return e.b.get(Bs,e.a).then(function(e){return qi(e)})}(e.g).then(function(n){return t=n,js((n=e.g).b,Bs,n.a)}).then(function(){return t})}(e=$s.prototype).ga=function(){return this.za?this.za:this.za=(Qn(void 0)?Gn().then(function(){return new ve(function(e,t){var r=n.document,i=setTimeout(function(){t(Error("Cordova framework is not ready."))},1e3);r.addEventListener("deviceready",function(){clearTimeout(i),e()},!1)})}):xe(Error("Cordova must run in an Android or iOS file scheme."))).then(function(){if("function"!=typeof or("universalLinks.subscribe",n))throw Zs("cordova-universal-links-plugin is not installed");if(void 0===or("BuildInfo.packageName",n))throw Zs("cordova-plugin-buildinfo is not installed");if("function"!=typeof or("cordova.plugins.browsertab.openUrl",n))throw Zs("cordova-plugin-browsertab is not installed");if("function"!=typeof or("cordova.InAppBrowser.open",n))throw Zs("cordova-plugin-inappbrowser is not installed")},function(){throw new jr("cordova-not-ready")})},e.Ea=function(e,t){return t(new jr("operation-not-supported-in-this-environment")),Ee()},e.zb=function(){return xe(new jr("operation-not-supported-in-this-environment"))},e.Mb=function(){return!1},e.Ib=function(){return!0},e.Db=function(){return!0},e.Ca=function(e,t,r){if(this.c)return xe(new jr("redirect-operation-pending"));var i=this,o=n.document,a=null,s=null,u=null,c=null;return this.c=Ee().then(function(){return Ui(t),nu(i)}).then(function(){return function(e,t,r,i){var o=function(){for(var e=20,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}(),a=new Bi(t,i,null,o,new jr("no-auth-event")),s=or("BuildInfo.packageName",n);if("string"!=typeof s)throw new jr("invalid-cordova-configuration");var u=or("BuildInfo.displayName",n),c={};if(ir().toLowerCase().match(/iphone|ipad|ipod/))c.ibi=s;else{if(!ir().toLowerCase().match(/android/))return xe(new jr("operation-not-supported-in-this-environment"));c.apn=s}u&&(c.appDisplayName=u),o=eu(o),c.sessionId=o;var l=ls(e.l,e.i,e.m,t,r,null,i,e.o,c,e.u);return e.ga().then(function(){var t=e.h;return e.v.a.set(Bs,a.D(),t)}).then(function(){var t=or("cordova.plugins.browsertab.isAvailable",n);if("function"!=typeof t)throw new jr("invalid-cordova-configuration");var r=null;t(function(t){if(t){if("function"!=typeof(r=or("cordova.plugins.browsertab.openUrl",n)))throw new jr("invalid-cordova-configuration");r(l)}else{if("function"!=typeof(r=or("cordova.InAppBrowser.open",n)))throw new jr("invalid-cordova-configuration");t=!(!(t=ir()).match(/(iPad|iPhone|iPod).*OS 7_\d/i)&&!t.match(/(iPad|iPhone|iPod).*OS 8_\d/i)),e.a=r(l,t?"_blank":"_system","location=yes")}})})}(i,e,t,r)}).then(function(){return new ve(function(e,t){s=function(){var t=or("cordova.plugins.browsertab.close",n);return e(),"function"==typeof t&&t(),i.a&&"function"==typeof i.a.close&&(i.a.close(),i.a=null),!1},i.va(s),u=function(){a||(a=Dt(2e3).then(function(){t(new jr("redirect-cancelled-by-user"))}))},c=function(){gr()&&u()},o.addEventListener("resume",u,!1),ir().toLowerCase().match(/android/)||o.addEventListener("visibilitychange",c,!1)}).s(function(e){return ru(i).then(function(){throw e})})}).ia(function(){u&&o.removeEventListener("resume",u,!1),c&&o.removeEventListener("visibilitychange",c,!1),a&&a.cancel(),s&&i.Ka(s),i.c=null})},e.va=function(e){this.b.push(e),nu(this).s(function(t){"auth/invalid-cordova-configuration"===t.code&&(t=new Bi("unknown",null,null,null,new jr("no-auth-event")),e(t))})},e.Ka=function(e){F(this.b,function(t){return t==e})};var iu={name:"pendingRedirect",A:"session"};function ou(e){return js(e.b,iu,e.a)}function au(e,t,n){this.v=e,this.m=t,this.l=n,this.h=[],this.f=!1,this.i=y(this.o,this),this.c=new mu,this.u=new _u,this.g=new function(e){this.a=e,this.b=Ds()}(this.m+":"+this.l),this.b={},this.b.unknown=this.c,this.b.signInViaRedirect=this.c,this.b.linkViaRedirect=this.c,this.b.reauthViaRedirect=this.c,this.b.signInViaPopup=this.u,this.b.linkViaPopup=this.u,this.b.reauthViaPopup=this.u,this.a=su(this.v,this.m,this.l,Qa)}function su(e,t,n,i){var o=r.a.SDK_VERSION||null;return Qn()?new $s(e,t,n,o,i):new as(e,t,n,o,i)}function uu(e){e.f||(e.f=!0,e.a.va(e.i));var t=e.a;return e.a.ga().s(function(n){throw e.a==t&&e.reset(),n})}function cu(e){e.a.Ib()&&uu(e).s(function(t){var n=new Bi("unknown",null,null,null,new jr("operation-not-supported-in-this-environment"));pu(t)&&e.o(n)}),e.a.Db()||yu(e.c)}au.prototype.reset=function(){this.f=!1,this.a.Ka(this.i),this.a=su(this.v,this.m,this.l)},au.prototype.subscribe=function(e){if(L(this.h,e)||this.h.push(e),!this.f){var t=this;(function(e){return e.b.get(iu,e.a).then(function(e){return"pending"==e})})(this.g).then(function(e){e?ou(t.g).then(function(){uu(t).s(function(e){var n=new Bi("unknown",null,null,null,new jr("operation-not-supported-in-this-environment"));pu(e)&&t.o(n)})}):cu(t)}).s(function(){cu(t)})}},au.prototype.unsubscribe=function(e){F(this.h,function(t){return t==e})},au.prototype.o=function(e){if(!e)throw new jr("invalid-auth-event");for(var t=!1,n=0;n<this.h.length;n++){var r=this.h[n];if(r.sb(e.b,e.c)){(t=this.b[e.b])&&t.h(e,r),t=!0;break}}return yu(this.c),t};var lu=new yr(2e3,1e4),fu=new yr(3e4,6e4);function hu(e,t,n,r,i,o){return e.a.zb(t,n,r,function(){e.f||(e.f=!0,e.a.va(e.i))},function(){e.reset()},i,o)}function pu(e){return!(!e||"auth/cordova-not-ready"!=e.code)}au.prototype.fa=function(){return this.c.fa()},au.prototype.Ca=function(e,t,n){var r,i=this;return function(e){return e.b.set(iu,"pending",e.a)}(this.g).then(function(){return i.a.Ca(e,t,n).s(function(e){if(pu(e))throw new jr("operation-not-supported-in-this-environment");return r=e,ou(i.g).then(function(){throw r})}).then(function(){return i.a.Mb()?new ve(function(){}):ou(i.g).then(function(){return i.fa()}).then(function(){}).s(function(){})})})},au.prototype.Ea=function(e,t,n,r){return this.a.Ea(n,function(n){e.ha(t,null,n,r)},lu.get())};var du={};function vu(e,t,n){var r=t+":"+n;return du[r]||(du[r]=new au(e,t,n)),du[r]}function mu(){this.b=null,this.f=[],this.c=[],this.a=null,this.g=!1}function yu(e){e.g||(e.g=!0,bu(e,!1,null,null))}function gu(e,t){if(e.b=function(){return Ee(t)},e.f.length)for(var n=0;n<e.f.length;n++)e.f[n](t)}function bu(e,t,n,r){t?r?function(e,t){if(e.b=function(){return xe(t)},e.c.length)for(var n=0;n<e.c.length;n++)e.c[n](t)}(e,r):gu(e,n):gu(e,{user:null}),e.f=[],e.c=[]}function _u(){}function wu(){this.pb=!1,Object.defineProperty(this,"appVerificationDisabled",{get:function(){return this.pb},set:function(e){this.pb=e},enumerable:!1})}function Eu(e,t){this.a=t,Tr(this,"verificationId",e)}function xu(e,t,n,r){return new Li(e).Ta(t,n).then(function(e){return new Eu(e,r)})}function Cu(e,t,n){if(this.h=e,this.i=t,this.g=n,this.c=3e4,this.f=96e4,this.b=null,this.a=this.c,this.f<this.c)throw Error("Proactive refresh lower bound greater than upper bound!")}function Tu(e){this.f=e,this.b=this.a=null,this.c=0}function ku(e,t){var n=t[Jo],r=t.refreshToken;t=Su(t.expiresIn),e.b=n,e.c=t,e.a=r}function Su(e){return b()+1e3*parseInt(e,10)}function Au(e,t){return function(e,t){return new ve(function(n,r){"refresh_token"==t.grant_type&&t.refresh_token||"authorization_code"==t.grant_type&&t.code?ia(e,e.i+"?key="+encodeURIComponent(e.b),function(e){e?e.error?r(Ga(e)):e.access_token&&e.refresh_token?n(e):r(new jr("internal-error")):r(new jr("network-request-failed"))},"POST",an(t).toString(),e.f,e.m.get()):r(new jr("internal-error"))})}(e.f,t).then(function(t){return e.b=t.access_token,e.c=Su(t.expires_in),e.a=t.refresh_token,{accessToken:e.b,expirationTime:e.c,refreshToken:e.a}}).s(function(t){throw"auth/user-token-expired"==t.code&&(e.a=null),t})}function Nu(e,t){this.a=e||null,this.b=t||null,kr(this,{lastSignInTime:br(t||null),creationTime:br(e||null)})}function Ou(e,t){for(var n in at.call(this,e),t)this[n]=t[n]}function Iu(e,t,n){this.G=[],this.l=e.apiKey,this.o=e.appName,this.u=e.authDomain||null,e=r.a.SDK_VERSION?rr(r.a.SDK_VERSION):null,this.b=new Yo(this.l,Xa(Qa),e),this.h=new Tu(this.b),Fu(this,t[Jo]),ku(this.h,t),Tr(this,"refreshToken",this.h.a),qu(this,n||{}),Nt.call(this),this.I=!1,this.u&&sr()&&(this.a=vu(this.u,this.l,this.o)),this.N=[],this.i=null,this.w=function(e){return new Cu(function(){return e.F(!0)},function(e){return!(!e||"auth/network-request-failed"!=e.code)},function(){var t=e.h.c-b()-3e5;return 0<t?t:0})}(this),this.V=y(this.Ha,this);var i=this;this.ka=null,this.sa=function(e){i.oa(e.g)},this.X=null,this.O=[],this.ra=function(e){Ru(i,e.c)},this.W=null}function Pu(e,t){e.X&&_t(e.X,"languageCodeChanged",e.sa),(e.X=t)&&yt(t,"languageCodeChanged",e.sa)}function Ru(e,t){e.O=t,ra(e.b,r.a.SDK_VERSION?rr(r.a.SDK_VERSION,e.O):null)}function Du(e,t){e.W&&_t(e.W,"frameworkChanged",e.ra),(e.W=t)&&yt(t,"frameworkChanged",e.ra)}function Mu(e){try{return r.a.app(e.o).auth()}catch(t){throw new jr("internal-error","No firebase.auth.Auth instance is available for the Firebase App '"+e.o+"'!")}}function Lu(e){e.C||e.w.b||(e.w.start(),_t(e,"tokenChanged",e.V),yt(e,"tokenChanged",e.V))}function ju(e){_t(e,"tokenChanged",e.V),e.w.stop()}function Fu(e,t){e.qa=t,Tr(e,"_lat",t)}function Uu(e){for(var t=[],n=0;n<e.N.length;n++)t.push(e.N[n](e));return function(e){return new ve(function(t){var n=e.length,r=[];if(n)for(var i=function(e,i,o){n--,r[e]=i?{Zb:!0,value:o}:{Zb:!1,reason:o},0==n&&t(r)},o=0;o<e.length;o++)Ce(e[o],g(i,o,!0),g(i,o,!1));else t(r)})}(t).then(function(){return e})}function Bu(e){e.a&&!e.I&&(e.I=!0,e.a.subscribe(e))}function qu(e,t){kr(e,{uid:t.uid,displayName:t.displayName||null,photoURL:t.photoURL||null,email:t.email||null,emailVerified:t.emailVerified||!1,phoneNumber:t.phoneNumber||null,isAnonymous:t.isAnonymous||!1,metadata:new Nu(t.createdAt,t.lastLoginAt),providerData:[]})}function Vu(){}function Wu(e){return Ee().then(function(){if(e.C)throw new jr("app-deleted")})}function zu(e){return D(e.providerData,function(e){return e.providerId})}function Hu(e,t){t&&(Ku(e,t.providerId),e.providerData.push(t))}function Ku(e,t){F(e.providerData,function(e){return e.providerId==t})}function Gu(e,t,n){("uid"!=t||n)&&e.hasOwnProperty(t)&&Tr(e,t,n)}function Qu(e,t){e!=t&&(kr(e,{uid:t.uid,displayName:t.displayName,photoURL:t.photoURL,email:t.email,emailVerified:t.emailVerified,phoneNumber:t.phoneNumber,isAnonymous:t.isAnonymous,providerData:[]}),t.metadata?Tr(e,"metadata",function(e){return new Nu(e.a,e.b)}(t.metadata)):Tr(e,"metadata",new Nu),R(t.providerData,function(t){Hu(e,t)}),function(e,t){e.b=t.b,e.a=t.a,e.c=t.c}(e.h,t.h),Tr(e,"refreshToken",e.h.a))}function Yu(e){return e.F().then(function(t){var n=e.isAnonymous;return function(e,t){return Ha(e.b,ka,{idToken:t}).then(y(e.uc,e))}(e,t).then(function(){return n||Gu(e,"isAnonymous",!1),t})})}function Xu(e,t){t[Jo]&&e.qa!=t[Jo]&&(ku(e.h,t),e.dispatchEvent(new Ou("tokenChanged")),Fu(e,t[Jo]),Gu(e,"refreshToken",e.h.a))}function Ju(e,t){return Yu(e).then(function(){if(L(zu(e),t))return Uu(e).then(function(){throw new jr("provider-already-linked")})})}function $u(e,t,n){return Sr({user:e,credential:Fi(t),additionalUserInfo:t=si(t),operationType:n})}function Zu(e,t){return Xu(e,t),e.reload().then(function(){return e})}function ec(e,t,n,i,o){if(!sr())return xe(new jr("operation-not-supported-in-this-environment"));if(e.i&&!o)return xe(e.i);var a=ai(n.providerId),s=dr(e.uid+":::"),u=null;(!lr()||Yn())&&e.u&&n.isOAuthProvider&&(u=ls(e.u,e.l,e.o,t,n,null,s,r.a.SDK_VERSION||null));var c=Hn(u,a&&a.Ba,a&&a.Aa);return i=i().then(function(){if(nc(e),!o)return e.F().then(function(){})}).then(function(){return hu(e.a,c,t,n,s,!!u)}).then(function(){return new ve(function(n,r){e.ha(t,null,new jr("cancelled-popup-request"),e.g||null),e.f=n,e.v=r,e.g=s,e.c=e.a.Ea(e,t,c,s)})}).then(function(e){return c&&zn(c),e?Sr(e):null}).s(function(e){throw c&&zn(c),e}),rc(e,i,o)}function tc(e,t,n,r,i){if(!sr())return xe(new jr("operation-not-supported-in-this-environment"));if(e.i&&!i)return xe(e.i);var o=null,a=dr(e.uid+":::");return r=r().then(function(){if(nc(e),!i)return e.F().then(function(){})}).then(function(){return e.aa=a,Uu(e)}).then(function(t){return e.ba&&(t=(t=e.ba).b.set(oc,e.D(),t.a)),t}).then(function(){return e.a.Ca(t,n,a)}).s(function(t){if(o=t,e.ba)return ac(e.ba);throw o}).then(function(){if(o)throw o}),rc(e,r,i)}function nc(e){if(!e.a||!e.I){if(e.a&&!e.I)throw new jr("internal-error");throw new jr("auth-domain-config-required")}}function rc(e,t,n){var r=function(e,t,n){return e.i&&!n?(t.cancel(),xe(e.i)):t.s(function(t){throw!t||"auth/user-disabled"!=t.code&&"auth/user-token-expired"!=t.code||(e.i||e.dispatchEvent(new Ou("userInvalidated")),e.i=t),t})}(e,t,n);return e.G.push(r),r.ia(function(){j(e.G,r)}),r}function ic(e){if(!e.apiKey)return null;var t={apiKey:e.apiKey,authDomain:e.authDomain,appName:e.appName},n={};if(!(e.stsTokenManager&&e.stsTokenManager.accessToken&&e.stsTokenManager.expirationTime))return null;n[Jo]=e.stsTokenManager.accessToken,n.refreshToken=e.stsTokenManager.refreshToken||null,n.expiresIn=(e.stsTokenManager.expirationTime-b())/1e3;var r=new Iu(t,n,e);return e.providerData&&R(e.providerData,function(e){e&&Hu(r,Sr(e))}),e.redirectEventId&&(r.aa=e.redirectEventId),r}mu.prototype.reset=function(){this.b=null,this.a&&(this.a.cancel(),this.a=null)},mu.prototype.h=function(e,t){if(e){this.reset(),this.g=!0;var n=e.b,r=e.c,i=e.a&&"auth/web-storage-unsupported"==e.a.code,o=e.a&&"auth/operation-not-supported-in-this-environment"==e.a.code;"unknown"!=n||i||o?e.a?(bu(this,!0,null,e.a),Ee()):t.wa(n,r)?function(e,t,n){n=n.wa(t.b,t.c);var r=t.f,i=t.g,o=!!t.b.match(/Redirect$/);n(r,i).then(function(t){bu(e,o,t,null)}).s(function(t){bu(e,o,null,t)})}(this,e,t):xe(new jr("invalid-auth-event")):(bu(this,!1,null,null),Ee())}else xe(new jr("invalid-auth-event"))},mu.prototype.fa=function(){var e=this;return new ve(function(t,n){e.b?e.b().then(t,n):(e.f.push(t),e.c.push(n),function(e){var t=new jr("timeout");e.a&&e.a.cancel(),e.a=Dt(fu.get()).then(function(){e.b||bu(e,!0,null,t)})}(e))})},_u.prototype.h=function(e,t){if(e){var n=e.b,r=e.c;e.a?(t.ha(e.b,null,e.a,e.c),Ee()):t.wa(n,r)?function(e,t){var n=e.c,r=e.b;t.wa(r,n)(e.f,e.g).then(function(e){t.ha(r,e,null,n)}).s(function(e){t.ha(r,null,e,n)})}(e,t):xe(new jr("invalid-auth-event"))}else xe(new jr("invalid-auth-event"))},Eu.prototype.confirm=function(e){return e=ji(this.verificationId,e),this.a(e)},Cu.prototype.start=function(){this.a=this.c,function e(t,r){t.stop();t.b=Dt(function(e,t){return t?(e.a=e.c,e.g()):(t=e.a,e.a*=2,e.a>e.f&&(e.a=e.f),t)}(t,r)).then(function(){return e=n.document,t=null,gr()||!e?Ee():new ve(function(n){t=function(){gr()&&(e.removeEventListener("visibilitychange",t,!1),n())},e.addEventListener("visibilitychange",t,!1)}).s(function(n){throw e.removeEventListener("visibilitychange",t,!1),n});var e,t}).then(function(){return t.h()}).then(function(){e(t,!0)}).s(function(n){t.i(n)&&e(t,!1)})}(this,!0)},Cu.prototype.stop=function(){this.b&&(this.b.cancel(),this.b=null)},Tu.prototype.D=function(){return{apiKey:this.f.b,refreshToken:this.a,accessToken:this.b,expirationTime:this.c}},Tu.prototype.getToken=function(e){return e=!!e,this.b&&!this.a?xe(new jr("user-token-expired")):e||!this.b||b()>this.c-3e4?this.a?Au(this,{grant_type:"refresh_token",refresh_token:this.a}):Ee(null):Ee({accessToken:this.b,expirationTime:this.c,refreshToken:this.a})},Nu.prototype.D=function(){return{lastLoginAt:this.b,createdAt:this.a}},_(Ou,at),_(Iu,Nt),Iu.prototype.oa=function(e){this.ka=e,na(this.b,e)},Iu.prototype.ea=function(){return this.ka},Iu.prototype.xa=function(){return B(this.O)},Iu.prototype.Ha=function(){this.w.b&&(this.w.stop(),this.w.start())},Tr(Iu.prototype,"providerId","firebase"),(e=Iu.prototype).reload=function(){var e=this;return rc(this,Wu(this).then(function(){return Yu(e).then(function(){return Uu(e)}).then(Vu)}))},e.ac=function(e){return this.F(e).then(function(e){return new function(e){var t=ni(e);if(!(t&&t.exp&&t.auth_time&&t.iat))throw new jr("internal-error","An internal error occurred. The token obtained by Firebase appears to be malformed. Please retry the operation.");kr(this,{token:e,expirationTime:br(1e3*t.exp),authTime:br(1e3*t.auth_time),issuedAtTime:br(1e3*t.iat),signInProvider:t.firebase&&t.firebase.sign_in_provider?t.firebase.sign_in_provider:null,claims:t})}(e)})},e.F=function(e){var t=this;return rc(this,Wu(this).then(function(){return t.h.getToken(e)}).then(function(e){if(!e)throw new jr("internal-error");return e.accessToken!=t.qa&&(Fu(t,e.accessToken),t.dispatchEvent(new Ou("tokenChanged"))),Gu(t,"refreshToken",e.refreshToken),e.accessToken}))},e.uc=function(e){if(!(e=e.users)||!e.length)throw new jr("internal-error");qu(this,{uid:(e=e[0]).localId,displayName:e.displayName,photoURL:e.photoUrl,email:e.email,emailVerified:!!e.emailVerified,phoneNumber:e.phoneNumber,lastLoginAt:e.lastLoginAt,createdAt:e.createdAt});for(var t=function(e){return(e=e.providerUserInfo)&&e.length?D(e,function(e){return new function(e,t,n,r,i,o){kr(this,{uid:e,displayName:r||null,photoURL:i||null,email:n||null,phoneNumber:o||null,providerId:t})}(e.rawId,e.providerId,e.email,e.displayName,e.photoUrl,e.phoneNumber)}):[]}(e),n=0;n<t.length;n++)Hu(this,t[n]);Gu(this,"isAnonymous",!(this.email&&e.passwordHash||this.providerData&&this.providerData.length))},e.cb=function(e){var t=this,n=null;return rc(this,e.f(this.b,this.uid).then(function(e){return Xu(t,e),n=$u(t,e,"reauthenticate"),t.i=null,t.reload()}).then(function(){return n}),!0)},e.vc=function(e){return xr("firebase.User.prototype.reauthenticateWithCredential is deprecated. Please use firebase.User.prototype.reauthenticateAndRetrieveDataWithCredential instead."),this.cb(e).then(function(){})},e.ab=function(e){var t=this,n=null;return rc(this,Ju(this,e.providerId).then(function(){return t.F()}).then(function(n){return e.c(t.b,n)}).then(function(e){return n=$u(t,e,"link"),Zu(t,e)}).then(function(){return n}))},e.mc=function(e){return xr("firebase.User.prototype.linkWithCredential is deprecated. Please use firebase.User.prototype.linkAndRetrieveDataWithCredential instead."),this.ab(e).then(function(e){return e.user})},e.nc=function(e,t){var n=this;return rc(this,Ju(this,"phone").then(function(){return xu(Mu(n),e,t,y(n.ab,n))}))},e.wc=function(e,t){var n=this;return rc(this,Ee().then(function(){return xu(Mu(n),e,t,y(n.cb,n))}),!0)},e.mb=function(e){var t=this;return rc(this,this.F().then(function(n){return t.b.mb(n,e)}).then(function(e){return Xu(t,e),t.reload()}))},e.Pc=function(e){var t=this;return rc(this,this.F().then(function(n){return e.c(t.b,n)}).then(function(e){return Xu(t,e),t.reload()}))},e.nb=function(e){var t=this;return rc(this,this.F().then(function(n){return t.b.nb(n,e)}).then(function(e){return Xu(t,e),t.reload()}))},e.ob=function(e){if(void 0===e.displayName&&void 0===e.photoURL)return Wu(this);var t=this;return rc(this,this.F().then(function(n){return t.b.ob(n,{displayName:e.displayName,photoUrl:e.photoURL})}).then(function(e){return Xu(t,e),Gu(t,"displayName",e.displayName||null),Gu(t,"photoURL",e.photoUrl||null),R(t.providerData,function(e){"password"===e.providerId&&(Tr(e,"displayName",t.displayName),Tr(e,"photoURL",t.photoURL))}),Uu(t)}).then(Vu))},e.Nc=function(e){var t=this;return rc(this,Yu(this).then(function(n){return L(zu(t),e)?function(e,t,n){return Ha(e,xa,{idToken:t,deleteProvider:n})}(t.b,n,[e]).then(function(e){var n={};return R(e.providerUserInfo||[],function(e){n[e.providerId]=!0}),R(zu(t),function(e){n[e]||Ku(t,e)}),n[Li.PROVIDER_ID]||Tr(t,"phoneNumber",null),Uu(t)}):Uu(t).then(function(){throw new jr("no-such-provider")})}))},e.delete=function(){var e=this;return rc(this,this.F().then(function(t){return Ha(e.b,Ea,{idToken:t})}).then(function(){e.dispatchEvent(new Ou("userDeleted"))})).then(function(){for(var t=0;t<e.G.length;t++)e.G[t].cancel("app-deleted");Pu(e,null),Du(e,null),e.G=[],e.C=!0,ju(e),Tr(e,"refreshToken",null),e.a&&e.a.unsubscribe(e)})},e.sb=function(e,t){return!!("linkViaPopup"==e&&(this.g||null)==t&&this.f||"reauthViaPopup"==e&&(this.g||null)==t&&this.f||"linkViaRedirect"==e&&(this.aa||null)==t||"reauthViaRedirect"==e&&(this.aa||null)==t)},e.ha=function(e,t,n,r){"linkViaPopup"!=e&&"reauthViaPopup"!=e||r!=(this.g||null)||(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},e.wa=function(e,t){return"linkViaPopup"==e&&t==(this.g||null)?y(this.xb,this):"reauthViaPopup"==e&&t==(this.g||null)?y(this.yb,this):"linkViaRedirect"==e&&(this.aa||null)==t?y(this.xb,this):"reauthViaRedirect"==e&&(this.aa||null)==t?y(this.yb,this):null},e.oc=function(e){var t=this;return ec(this,"linkViaPopup",e,function(){return Ju(t,e.providerId).then(function(){return Uu(t)})},!1)},e.xc=function(e){return ec(this,"reauthViaPopup",e,function(){return Ee()},!0)},e.pc=function(e){var t=this;return tc(this,"linkViaRedirect",e,function(){return Ju(t,e.providerId)},!1)},e.yc=function(e){return tc(this,"reauthViaRedirect",e,function(){return Ee()},!0)},e.xb=function(e,t){var n=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return rc(this,this.F().then(function(r){return va(n.b,{requestUri:e,sessionId:t,idToken:r})}).then(function(e){return r=$u(n,e,"link"),Zu(n,e)}).then(function(){return r}))},e.yb=function(e,t){var n=this;this.c&&(this.c.cancel(),this.c=null);var r=null;return rc(this,Ee().then(function(){return yi(ma(n.b,{requestUri:e,sessionId:t}),n.uid)}).then(function(e){return r=$u(n,e,"reauthenticate"),Xu(n,e),n.i=null,n.reload()}).then(function(){return r}),!0)},e.gb=function(e){var t=this,n=null;return rc(this,this.F().then(function(t){return n=t,void 0===e||ie(e)?{}:Xr(new qr(e))}).then(function(e){return t.b.gb(n,e)}).then(function(e){if(t.email!=e)return t.reload()}).then(function(){}))},e.toJSON=function(){return this.D()},e.D=function(){var e={uid:this.uid,displayName:this.displayName,photoURL:this.photoURL,email:this.email,emailVerified:this.emailVerified,phoneNumber:this.phoneNumber,isAnonymous:this.isAnonymous,providerData:[],apiKey:this.l,appName:this.o,authDomain:this.u,stsTokenManager:this.h.D(),redirectEventId:this.aa||null};return this.metadata&&ce(e,this.metadata.D()),R(this.providerData,function(t){e.providerData.push(function(e){var t,n={};for(t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}(t))}),e};var oc={name:"redirectUser",A:"session"};function ac(e){return js(e.b,oc,e.a)}function sc(e){this.a=e,this.b=Ds(),this.c=null,this.f=function(e){var t=lc("local"),r=lc("session"),i=lc("none");return function(e,t,r){var i=Ls(t,r),o=Ms(e,t.A);return e.get(t,r).then(function(a){var s=null;try{s=pr(n.localStorage.getItem(i))}catch(e){}if(s&&!a)return n.localStorage.removeItem(i),e.set(t,s,r);s&&a&&"localStorage"!=o.type&&n.localStorage.removeItem(i)})}(e.b,t,e.a).then(function(){return e.b.get(r,e.a)}).then(function(n){return n?r:e.b.get(i,e.a).then(function(n){return n?i:e.b.get(t,e.a).then(function(n){return n?t:e.b.get(cc,e.a).then(function(e){return e?lc(e):t})})})}).then(function(t){return e.c=t,uc(e,t.A)}).s(function(){e.c||(e.c=t)})}(this),this.b.addListener(lc("local"),this.a,y(this.g,this))}function uc(e,t){var n,r=[];for(n in Ps)Ps[n]!==t&&r.push(js(e.b,lc(Ps[n]),e.a));return r.push(js(e.b,cc,e.a)),function(e){return new ve(function(t,n){var r=e.length,i=[];if(r)for(var o=function(e,n){r--,i[e]=n,0==r&&t(i)},a=function(e){n(e)},s=0;s<e.length;s++)Ce(e[s],g(o,s),a);else t(i)})}(r)}sc.prototype.g=function(){var e=this,t=lc("local");dc(this,function(){return Ee().then(function(){return e.c&&"local"!=e.c.A?e.b.get(t,e.a):null}).then(function(n){if(n)return uc(e,"local").then(function(){e.c=t})})})};var cc={name:"persistence",A:"session"};function lc(e){return{name:"authUser",A:e}}function fc(e,t){return dc(e,function(){return e.b.set(e.c,t.D(),e.a)})}function hc(e){return dc(e,function(){return js(e.b,e.c,e.a)})}function pc(e,t){return dc(e,function(){return e.b.get(e.c,e.a).then(function(e){return e&&t&&(e.authDomain=t),ic(e||{})})})}function dc(e,t){return e.f=e.f.then(t,t),e.f}function vc(e){if(this.l=!1,Tr(this,"settings",new wu),Tr(this,"app",e),!Ec(this).options||!Ec(this).options.apiKey)throw new jr("invalid-api-key");e=r.a.SDK_VERSION?rr(r.a.SDK_VERSION):null,this.b=new Yo(Ec(this).options&&Ec(this).options.apiKey,Xa(Qa),e),this.N=[],this.o=[],this.I=[],this.Pb=r.a.INTERNAL.createSubscribe(y(this.ic,this)),this.O=void 0,this.Qb=r.a.INTERNAL.createSubscribe(y(this.jc,this)),_c(this,null),this.h=new sc(Ec(this).options.apiKey+":"+Ec(this).name),this.w=new function(e){this.a=e,this.b=Ds()}(Ec(this).options.apiKey+":"+Ec(this).name),this.V=kc(this,function(e){var t=Ec(e).options.authDomain,n=function(e){var t=function(e,t){return e.b.get(oc,e.a).then(function(e){return e&&t&&(e.authDomain=t),ic(e||{})})}(e.w,Ec(e).options.authDomain).then(function(t){return(e.C=t)&&(t.ba=e.w),ac(e.w)});return kc(e,t)}(e).then(function(){return pc(e.h,t)}).then(function(t){return t?(t.ba=e.w,e.C&&(e.C.aa||null)==(t.aa||null)?t:t.reload().then(function(){return fc(e.h,t).then(function(){return t})}).s(function(n){return"auth/network-request-failed"==n.code?t:hc(e.h)})):null}).then(function(t){_c(e,t||null)});return kc(e,n)}(this)),this.i=kc(this,function(e){return e.V.then(function(){return e.fa()}).s(function(){}).then(function(){if(!e.l)return e.ka()}).s(function(){}).then(function(){if(!e.l){e.X=!0;var t=e.h;t.b.addListener(lc("local"),t.a,e.ka)}})}(this)),this.X=!1,this.ka=y(this.Jc,this),this.Ha=y(this.Z,this),this.qa=y(this.Yb,this),this.ra=y(this.gc,this),this.sa=y(this.hc,this),function(e){var t=Ec(e).options.authDomain,n=Ec(e).options.apiKey;t&&sr()&&(e.Ob=e.V.then(function(){if(!e.l){if(e.a=vu(t,n,Ec(e).name),e.a.subscribe(e),xc(e)&&Bu(xc(e)),e.C){Bu(e.C);var r=e.C;r.oa(e.ea()),Pu(r,e),Ru(r=e.C,e.G),Du(r,e),e.C=null}return e.a}}))}(this),this.INTERNAL={},this.INTERNAL.delete=y(this.delete,this),this.INTERNAL.logFramework=y(this.qc,this),this.u=0,Nt.call(this),function(e){Object.defineProperty(e,"lc",{get:function(){return this.ea()},set:function(e){this.oa(e)},enumerable:!1}),e.W=null}(this),this.G=[]}function mc(e){at.call(this,"languageCodeChanged"),this.g=e}function yc(e){at.call(this,"frameworkChanged"),this.c=e}function gc(e){return e.Ob||xe(new jr("auth-domain-config-required"))}function bc(e,t){var n={};return n.apiKey=Ec(e).options.apiKey,n.authDomain=Ec(e).options.authDomain,n.appName=Ec(e).name,e.V.then(function(){return function(e,t,n,r){var i=new Iu(e,t);return n&&(i.ba=n),r&&Ru(i,r),i.reload().then(function(){return i})}(n,t,e.w,e.xa())}).then(function(t){return xc(e)&&t.uid==xc(e).uid?(Qu(xc(e),t),e.Z(t)):(_c(e,t),Bu(t),e.Z(t))}).then(function(){Tc(e)})}function _c(e,t){xc(e)&&(function(e,t){F(e.N,function(e){return e==t})}(xc(e),e.Ha),_t(xc(e),"tokenChanged",e.qa),_t(xc(e),"userDeleted",e.ra),_t(xc(e),"userInvalidated",e.sa),ju(xc(e))),t&&(t.N.push(e.Ha),yt(t,"tokenChanged",e.qa),yt(t,"userDeleted",e.ra),yt(t,"userInvalidated",e.sa),0<e.u&&Lu(t)),Tr(e,"currentUser",t),t&&(t.oa(e.ea()),Pu(t,e),Ru(t,e.G),Du(t,e))}function wc(e,t){var n=null,r=null;return kc(e,t.then(function(t){return n=Fi(t),r=si(t),bc(e,t)}).then(function(){return Sr({user:xc(e),credential:n,additionalUserInfo:r,operationType:"signIn"})}))}function Ec(e){return e.app}function xc(e){return e.currentUser}function Cc(e){return xc(e)&&xc(e)._lat||null}function Tc(e){if(e.X){for(var t=0;t<e.o.length;t++)e.o[t]&&e.o[t](Cc(e));if(e.O!==e.getUid()&&e.I.length)for(e.O=e.getUid(),t=0;t<e.I.length;t++)e.I[t]&&e.I[t](Cc(e))}}function kc(e,t){return e.N.push(t),t.ia(function(){j(e.N,t)}),t}function Sc(){}function Ac(){this.a={},this.b=1e12}sc.prototype.jb=function(e){var t=null,n=this;return function(e){var t=new jr("invalid-persistence-type"),n=new jr("unsupported-persistence-type");e:{for(r in Ps)if(Ps[r]==e){var r=!0;break e}r=!1}if(!r||"string"!=typeof e)throw t;switch(Jn()){case"ReactNative":if("session"===e)throw n;break;case"Node":if("none"!==e)throw n;break;default:if(!ar()&&"none"!==e)throw n}}(e),dc(this,function(){return e!=n.c.A?n.b.get(n.c,n.a).then(function(r){return t=r,uc(n,e)}).then(function(){if(n.c=lc(e),t)return n.b.set(n.c,t,n.a)}):Ee()})},_(vc,Nt),_(mc,at),_(yc,at),(e=vc.prototype).jb=function(e){return kc(this,e=this.h.jb(e))},e.oa=function(e){this.W===e||this.l||(this.W=e,na(this.b,this.W),this.dispatchEvent(new mc(this.ea())))},e.ea=function(){return this.W},e.Qc=function(){var e=n.navigator;this.oa(e&&(e.languages&&e.languages[0]||e.language||e.userLanguage)||null)},e.qc=function(e){this.G.push(e),ra(this.b,r.a.SDK_VERSION?rr(r.a.SDK_VERSION,this.G):null),this.dispatchEvent(new yc(this.G))},e.xa=function(){return B(this.G)},e.toJSON=function(){return{apiKey:Ec(this).options.apiKey,authDomain:Ec(this).options.authDomain,appName:Ec(this).name,currentUser:xc(this)&&xc(this).D()}},e.sb=function(e,t){switch(e){case"unknown":case"signInViaRedirect":return!0;case"signInViaPopup":return this.g==t&&!!this.f;default:return!1}},e.ha=function(e,t,n,r){"signInViaPopup"==e&&this.g==r&&(n&&this.v?this.v(n):t&&!n&&this.f&&this.f(t),this.c&&(this.c.cancel(),this.c=null),delete this.f,delete this.v)},e.wa=function(e,t){return"signInViaRedirect"==e||"signInViaPopup"==e&&this.g==t&&this.f?y(this.Xb,this):null},e.Xb=function(e,t){var n=this;e={requestUri:e,sessionId:t},this.c&&(this.c.cancel(),this.c=null);var r=null,i=null,o=da(n.b,e).then(function(e){return r=Fi(e),i=si(e),e});return kc(this,e=n.V.then(function(){return o}).then(function(e){return bc(n,e)}).then(function(){return Sr({user:xc(n),credential:r,additionalUserInfo:i,operationType:"signIn"})}))},e.Hc=function(e){if(!sr())return xe(new jr("operation-not-supported-in-this-environment"));var t=this,n=ai(e.providerId),i=dr(),o=null;(!lr()||Yn())&&Ec(this).options.authDomain&&e.isOAuthProvider&&(o=ls(Ec(this).options.authDomain,Ec(this).options.apiKey,Ec(this).name,"signInViaPopup",e,null,i,r.a.SDK_VERSION||null));var a=Hn(o,n&&n.Ba,n&&n.Aa);return kc(this,n=gc(this).then(function(t){return hu(t,a,"signInViaPopup",e,i,!!o)}).then(function(){return new ve(function(e,n){t.ha("signInViaPopup",null,new jr("cancelled-popup-request"),t.g),t.f=e,t.v=n,t.g=i,t.c=t.a.Ea(t,"signInViaPopup",a,i)})}).then(function(e){return a&&zn(a),e?Sr(e):null}).s(function(e){throw a&&zn(a),e}))},e.Ic=function(e){if(!sr())return xe(new jr("operation-not-supported-in-this-environment"));var t=this;return kc(this,gc(this).then(function(){return dc(e=t.h,function(){return e.b.set(cc,e.c.A,e.a)});var e}).then(function(){return t.a.Ca("signInViaRedirect",e)}))},e.fa=function(){if(!sr())return xe(new jr("operation-not-supported-in-this-environment"));var e=this;return kc(this,gc(this).then(function(){return e.a.fa()}).then(function(e){return e?Sr(e):null}))},e.Oc=function(e){if(!e)return xe(new jr("null-user"));var t=this,n={};n.apiKey=Ec(this).options.apiKey,n.authDomain=Ec(this).options.authDomain,n.appName=Ec(this).name;var r=function(e,t,n,r){t=t||{apiKey:e.l,authDomain:e.u,appName:e.o};var i=e.h,o={};return o[Jo]=i.b,o.refreshToken=i.a,o.expiresIn=(i.c-b())/1e3,t=new Iu(t,o),n&&(t.ba=n),r&&Ru(t,r),Qu(t,e),t}(e,n,t.w,t.xa());return kc(this,this.i.then(function(){if(Ec(t).options.apiKey!=e.l)return r.reload()}).then(function(){return xc(t)&&e.uid==xc(t).uid?(Qu(xc(t),e),t.Z(e)):(_c(t,r),Bu(r),t.Z(r))}).then(function(){Tc(t)}))},e.kb=function(){var e=this;return kc(this,this.i.then(function(){return xc(e)?(_c(e,null),hc(e.h).then(function(){Tc(e)})):Ee()}))},e.Jc=function(){var e=this;return pc(this.h,Ec(this).options.authDomain).then(function(t){if(!e.l){var n;if(n=xc(e)&&t){n=xc(e).uid;var r=t.uid;n=void 0!==n&&null!==n&&""!==n&&void 0!==r&&null!==r&&""!==r&&n==r}if(n)return Qu(xc(e),t),xc(e).F();(xc(e)||t)&&(_c(e,t),t&&(Bu(t),t.ba=e.w),e.a&&e.a.subscribe(e),Tc(e))}})},e.Z=function(e){return fc(this.h,e)},e.Yb=function(){Tc(this),this.Z(xc(this))},e.gc=function(){this.kb()},e.hc=function(){this.kb()},e.ic=function(e){var t=this;this.addAuthTokenListener(function(){e.next(xc(t))})},e.jc=function(e){var t=this;!function(e,t){e.I.push(t),kc(e,e.i.then(function(){!e.l&&L(e.I,t)&&e.O!==e.getUid()&&(e.O=e.getUid(),t(Cc(e)))}))}(this,function(){e.next(xc(t))})},e.sc=function(e,t,n){var i=this;return this.X&&r.a.Promise.resolve().then(function(){f(e)?e(xc(i)):f(e.next)&&e.next(xc(i))}),this.Pb(e,t,n)},e.rc=function(e,t,n){var i=this;return this.X&&r.a.Promise.resolve().then(function(){i.O=i.getUid(),f(e)?e(xc(i)):f(e.next)&&e.next(xc(i))}),this.Qb(e,t,n)},e.$b=function(e){var t=this;return kc(this,this.i.then(function(){return xc(t)?xc(t).F(e).then(function(e){return{accessToken:e}}):null}))},e.Jb=function(e){var t=this;return this.i.then(function(){return wc(t,Ha(t.b,Ba,{token:e}))}).then(function(e){var n=e.user;return Gu(n,"isAnonymous",!1),t.Z(n),e})},e.Bc=function(e){return xr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithCustomToken is deprecated. Please use firebase.auth.Auth.prototype.signInWithCustomToken instead."),this.Jb(e)},e.Cc=function(e,t){return xr("firebase.auth.Auth.prototype.signInAndRetrieveDataWithEmailAndPassword is deprecated. Please use firebase.auth.Auth.prototype.signInWithEmailAndPassword instead."),this.Kb(e,t)},e.Kb=function(e,t){var n=this;return this.i.then(function(){return wc(n,Ha(n.b,qa,{email:e,password:t}))})},e.ub=function(e,t){var n=this;return this.i.then(function(){return wc(n,Ha(n.b,_a,{email:e,password:t}))})},e.Sb=function(e,t){return xr("firebase.auth.Auth.prototype.createUserAndRetrieveDataWithEmailAndPassword is deprecated. Please use firebase.auth.Auth.prototype.createUserWithEmailAndPassword instead."),this.ub(e,t)},e.Ec=function(e){return xr("firebase.auth.Auth.prototype.signInWithCredential is deprecated. Please use firebase.auth.Auth.prototype.signInAndRetrieveDataWithCredential instead."),this.Oa(e).then(function(e){return e.user})},e.Oa=function(e){var t=this;return this.i.then(function(){return wc(t,e.ya(t.b))})},e.Pa=function(){var e=this;return this.i.then(function(){var t=xc(e);return t&&t.isAnonymous?Sr({user:t,credential:null,additionalUserInfo:Sr({providerId:null,isNewUser:!1}),operationType:"signIn"}):wc(e,e.b.Pa()).then(function(t){var n=t.user;return Gu(n,"isAnonymous",!0),e.Z(n),t})})},e.Dc=function(){return xr("firebase.auth.Auth.prototype.signInAnonymouslyAndRetrieveData is deprecated. Please use firebase.auth.Auth.prototype.signInAnonymously instead."),this.Pa()},e.getUid=function(){return xc(this)&&xc(this).uid||null},e.Rb=function(e){this.addAuthTokenListener(e),this.u++,0<this.u&&xc(this)&&Lu(xc(this))},e.zc=function(e){var t=this;R(this.o,function(n){n==e&&t.u--}),0>this.u&&(this.u=0),0==this.u&&xc(this)&&ju(xc(this)),this.removeAuthTokenListener(e)},e.addAuthTokenListener=function(e){var t=this;this.o.push(e),kc(this,this.i.then(function(){t.l||L(t.o,e)&&e(Cc(t))}))},e.removeAuthTokenListener=function(e){F(this.o,function(t){return t==e})},e.delete=function(){this.l=!0;for(var e=0;e<this.N.length;e++)this.N[e].cancel("app-deleted");return this.N=[],this.h&&(e=this.h).b.removeListener(lc("local"),e.a,this.ka),this.a&&this.a.unsubscribe(this),r.a.Promise.resolve()},e.Vb=function(e){return xr("firebase.auth.Auth.prototype.fetchProvidersForEmail is deprecated. Please use firebase.auth.Auth.prototype.fetchSignInMethodsForEmail instead."),kc(this,function(e,t){return Ha(e,wa,{identifier:t,continueUri:ur()?qn():"http://localhost"}).then(function(e){return e.allProviders||[]})}(this.b,e))},e.Wb=function(e){return kc(this,function(e,t){return Ha(e,wa,{identifier:t,continueUri:ur()?qn():"http://localhost"}).then(function(e){return e.signinMethods||[]})}(this.b,e))},e.kc=function(e){return!!Ri(e)},e.ib=function(e,t){var n=this;return kc(this,Ee().then(function(){var e=new qr(t);if(!e.c)throw new jr("argument-error",Wr+" must be true when sending sign in link to email");return Xr(e)}).then(function(t){return n.b.ib(e,t)}).then(function(){}))},e.Rc=function(e){return this.Ja(e).then(function(e){return e.data.email})},e.Xa=function(e,t){return kc(this,this.b.Xa(e,t).then(function(){}))},e.Ja=function(e){return kc(this,this.b.Ja(e).then(function(e){return new function(e){var t={},n=e[Or],r=e[Ir];if(!(e=e[Pr])||e!=Nr&&!n)throw Error("Invalid provider user info!");t[Dr]=r||null,t[Rr]=n||null,Tr(this,Lr,e),Tr(this,Mr,Ar(t))}(e)}))},e.Va=function(e){return kc(this,this.b.Va(e).then(function(){}))},e.hb=function(e,t){var n=this;return kc(this,Ee().then(function(){return void 0===t||ie(t)?{}:Xr(new qr(t))}).then(function(t){return n.b.hb(e,t)}).then(function(){}))},e.Gc=function(e,t){return kc(this,xu(this,e,t,y(this.Oa,this)))},e.Fc=function(e,t){var n=this;return kc(this,Ee().then(function(){var r=Pi(e,t||qn());return n.Oa(r)}))},Sc.prototype.render=function(){},Sc.prototype.reset=function(){},Sc.prototype.getResponse=function(){},Sc.prototype.execute=function(){};var Nc=null;function Oc(e,t){return(t=Ic(t))&&e.a[t]||null}function Ic(e){return(e=void 0===e?1e12:e)?e.toString():null}function Pc(e,t){this.g=!1,this.c=t,this.a=this.b=null,this.h="invisible"!==this.c.size,this.f=In(e);var n=this;this.i=function(){n.execute()},this.h?this.execute():yt(this.f,"click",this.i)}function Rc(e){if(e.g)throw Error("reCAPTCHA mock was already deleted!")}function Dc(){}Ac.prototype.render=function(e,t){return this.a[this.b.toString()]=new Pc(e,t),this.b++},Ac.prototype.reset=function(e){var t=Oc(this,e);e=Ic(e),t&&e&&(t.delete(),delete this.a[e])},Ac.prototype.getResponse=function(e){return(e=Oc(this,e))?e.getResponse():null},Ac.prototype.execute=function(e){(e=Oc(this,e))&&e.execute()},Pc.prototype.getResponse=function(){return Rc(this),this.b},Pc.prototype.execute=function(){Rc(this);var e=this;this.a||(this.a=setTimeout(function(){e.b=function(){for(var e=50,t=[];0<e;)t.push("1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(Math.floor(62*Math.random()))),e--;return t.join("")}();var t=e.c.callback,n=e.c["expired-callback"];if(t)try{t(e.b)}catch(e){}e.a=setTimeout(function(){if(e.a=null,e.b=null,n)try{n()}catch(e){}e.h&&e.execute()},6e4)},500))},Pc.prototype.delete=function(){Rc(this),this.g=!0,clearTimeout(this.a),this.a=null,_t(this.f,"click",this.i)},Dc.prototype.g=function(){return Nc||(Nc=new Ac),Ee(Nc)},Dc.prototype.c=function(){};var Mc=null;function Lc(){this.b=n.grecaptcha?1/0:0,this.f=null,this.a="__rcb"+Math.floor(1e6*Math.random()).toString()}var jc=vn("https://www.google.com/recaptcha/api.js?onload=%{onload}&render=explicit&hl=%{hl}"),Fc=new yr(3e4,6e4);Lc.prototype.g=function(e){var t=this;return new ve(function(r,i){var o=setTimeout(function(){i(new jr("network-request-failed"))},Fc.get());!n.grecaptcha||e!==t.f&&!t.b?(n[t.a]=function(){if(n.grecaptcha){t.f=e;var a=n.grecaptcha.render;n.grecaptcha.render=function(e,n){return e=a(e,n),t.b++,e},clearTimeout(o),r(n.grecaptcha)}else clearTimeout(o),i(new jr("internal-error"));delete n[t.a]},Ee(Vo(gn(jc,{onload:t.a,hl:e||""}))).s(function(){clearTimeout(o),i(new jr("internal-error","Unable to load external reCAPTCHA dependencies!"))})):(clearTimeout(o),r(n.grecaptcha))})},Lc.prototype.c=function(){this.b--};var Uc=null;function Bc(e,t,r,i,o,a,s){if(Tr(this,"type","recaptcha"),this.c=this.f=null,this.C=!1,this.l=t,this.g=null,s?(Mc||(Mc=new Dc),s=Mc):(Uc||(Uc=new Lc),s=Uc),this.o=s,this.a=r||{theme:"light",type:"image"},this.h=[],this.a[Wc])throw new jr("argument-error","sitekey should not be provided for reCAPTCHA as one is automatically provisioned for the current project.");if(this.i="invisible"===this.a[zc],!n.document)throw new jr("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment with DOM support.");if(!In(t)||!this.i&&In(t).hasChildNodes())throw new jr("argument-error","reCAPTCHA container is either not found or already contains inner elements!");this.u=new Yo(e,a||null,o||null),this.v=i||function(){return null};var u=this;this.m=[];var c=this.a[qc];this.a[qc]=function(e){if(Hc(u,e),"function"==typeof c)c(e);else if("string"==typeof c){var t=or(c,n);"function"==typeof t&&t(e)}};var l=this.a[Vc];this.a[Vc]=function(){if(Hc(u,null),"function"==typeof l)l();else if("string"==typeof l){var e=or(l,n);"function"==typeof e&&e()}}}var qc="callback",Vc="expired-callback",Wc="sitekey",zc="size";function Hc(e,t){for(var n=0;n<e.m.length;n++)try{e.m[n](t)}catch(e){}}function Kc(e,t){return e.h.push(t),t.ia(function(){j(e.h,t)}),t}function Gc(e){if(e.C)throw new jr("internal-error","RecaptchaVerifier instance has been destroyed.")}function Qc(e,t,n){var i=!1;try{this.b=n||r.a.app()}catch(e){throw new jr("argument-error","No firebase.app.App instance is currently initialized.")}if(!this.b.options||!this.b.options.apiKey)throw new jr("invalid-api-key");n=this.b.options.apiKey;var o=this,a=null;try{a=this.b.auth().xa()}catch(e){}try{i=this.b.auth().settings.appVerificationDisabledForTesting}catch(e){}a=r.a.SDK_VERSION?rr(r.a.SDK_VERSION,a):null,Bc.call(this,n,e,t,function(){try{var e=o.b.auth().ea()}catch(t){e=null}return e},a,Xa(Qa),i)}function Yc(e,t,n,r){e:{n=Array.prototype.slice.call(n);for(var i=0,o=!1,a=0;a<t.length;a++)if(t[a].optional)o=!0;else{if(o)throw new jr("internal-error","Argument validator encountered a required argument after an optional argument.");i++}if(o=t.length,n.length<i||o<n.length)r="Expected "+(i==o?1==i?"1 argument":i+" arguments":i+"-"+o+" arguments")+" but got "+n.length+".";else{for(i=0;i<n.length;i++)if(o=t[i].optional&&void 0===n[i],!t[i].M(n[i])&&!o){if(t=t[i],0>i||i>=Xc.length)throw new jr("internal-error","Argument validator received an unsupported number of arguments.");n=Xc[i],r=(r?"":n+" argument ")+(t.name?'"'+t.name+'" ':"")+"must be "+t.K+".";break e}r=null}}if(r)throw new jr("argument-error",e+" failed: "+r)}(e=Bc.prototype).za=function(){var e=this;return this.f?this.f:this.f=Kc(this,Ee().then(function(){if(ur()&&!Xn())return Gn();throw new jr("operation-not-supported-in-this-environment","RecaptchaVerifier is only supported in a browser HTTP/HTTPS environment.")}).then(function(){return e.o.g(e.v())}).then(function(t){return e.g=t,Ha(e.u,Ia,{})}).then(function(t){e.a[Wc]=t.recaptchaSiteKey}).s(function(t){throw e.f=null,t}))},e.render=function(){Gc(this);var e=this;return Kc(this,this.za().then(function(){if(null===e.c){var t=e.l;if(!e.i){var n=In(t);t=Dn("DIV"),n.appendChild(t)}e.c=e.g.render(t,e.a)}return e.c}))},e.verify=function(){Gc(this);var e=this;return Kc(this,this.render().then(function(t){return new ve(function(n){var r=e.g.getResponse(t);if(r)n(r);else{var i=function(t){t&&(function(e,t){F(e.m,function(e){return e==t})}(e,i),n(t))};e.m.push(i),e.i&&e.g.execute(e.c)}})}))},e.reset=function(){Gc(this),null!==this.c&&this.g.reset(this.c)},e.clear=function(){Gc(this),this.C=!0,this.o.c();for(var e=0;e<this.h.length;e++)this.h[e].cancel("RecaptchaVerifier instance has been destroyed.");if(!this.i){e=In(this.l);for(var t;t=e.firstChild;)e.removeChild(t)}},_(Qc,Bc);var Xc="First Second Third Fourth Fifth Sixth Seventh Eighth Ninth".split(" ");function Jc(e,t){return{name:e||"",K:"a valid string",optional:!!t,M:i}}function $c(e,t){return{name:e||"",K:"a boolean",optional:!!t,M:o}}function Zc(e,t){return{name:e||"",K:"a valid object",optional:!!t,M:h}}function el(e,t){return{name:e||"",K:"a function",optional:!!t,M:f}}function tl(e,t){return{name:e||"",K:"null",optional:!!t,M:u}}function nl(e){return{name:e?e+"Credential":"credential",K:e?"a valid "+e+" credential":"a valid credential",optional:!1,M:function(t){if(!t)return!1;var n=!e||t.providerId===e;return!(!t.ya||!n)}}}function rl(){return{name:"applicationVerifier",K:"an implementation of firebase.auth.ApplicationVerifier",optional:!1,M:function(e){return!!(e&&i(e.type)&&f(e.verify))}}}function il(e,t,n,r){return{name:n||"",K:e.K+" or "+t.K,optional:!!r,M:function(n){return e.M(n)||t.M(n)}}}function ol(e,t){for(var n in t){var r=t[n].name;e[r]=ul(r,e[n],t[n].j)}}function al(e,t){for(var n in t){var r=t[n].name;if(r!==n){var i=t[n].qb;Object.defineProperty(e,r,{get:function(){return this[n]},set:function(e){Yc(r,[i],[e],!0),this[n]=e},enumerable:!0})}}}function sl(e,t,n,r){e[t]=ul(t,n,r)}function ul(e,t,n){function r(){var e=Array.prototype.slice.call(arguments);return Yc(o,n,e),t.apply(this,e)}if(!n)return t;var i,o=function(e){return(e=e.split("."))[e.length-1]}(e);for(i in t)r[i]=t[i];for(i in t.prototype)r.prototype[i]=t.prototype[i];return r}ol(vc.prototype,{Va:{name:"applyActionCode",j:[Jc("code")]},Ja:{name:"checkActionCode",j:[Jc("code")]},Xa:{name:"confirmPasswordReset",j:[Jc("code"),Jc("newPassword")]},ub:{name:"createUserWithEmailAndPassword",j:[Jc("email"),Jc("password")]},Sb:{name:"createUserAndRetrieveDataWithEmailAndPassword",j:[Jc("email"),Jc("password")]},Vb:{name:"fetchProvidersForEmail",j:[Jc("email")]},Wb:{name:"fetchSignInMethodsForEmail",j:[Jc("email")]},fa:{name:"getRedirectResult",j:[]},kc:{name:"isSignInWithEmailLink",j:[Jc("emailLink")]},rc:{name:"onAuthStateChanged",j:[il(Zc(),el(),"nextOrObserver"),el("opt_error",!0),el("opt_completed",!0)]},sc:{name:"onIdTokenChanged",j:[il(Zc(),el(),"nextOrObserver"),el("opt_error",!0),el("opt_completed",!0)]},hb:{name:"sendPasswordResetEmail",j:[Jc("email"),il(Zc("opt_actionCodeSettings",!0),tl(null,!0),"opt_actionCodeSettings",!0)]},ib:{name:"sendSignInLinkToEmail",j:[Jc("email"),Zc("actionCodeSettings")]},jb:{name:"setPersistence",j:[Jc("persistence")]},Oa:{name:"signInAndRetrieveDataWithCredential",j:[nl()]},Pa:{name:"signInAnonymously",j:[]},Dc:{name:"signInAnonymouslyAndRetrieveData",j:[]},Ec:{name:"signInWithCredential",j:[nl()]},Jb:{name:"signInWithCustomToken",j:[Jc("token")]},Bc:{name:"signInAndRetrieveDataWithCustomToken",j:[Jc("token")]},Kb:{name:"signInWithEmailAndPassword",j:[Jc("email"),Jc("password")]},Fc:{name:"signInWithEmailLink",j:[Jc("email"),Jc("emailLink",!0)]},Cc:{name:"signInAndRetrieveDataWithEmailAndPassword",j:[Jc("email"),Jc("password")]},Gc:{name:"signInWithPhoneNumber",j:[Jc("phoneNumber"),rl()]},Hc:{name:"signInWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Ic:{name:"signInWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},Oc:{name:"updateCurrentUser",j:[il({name:"user",K:"an instance of Firebase User",optional:!1,M:function(e){return!!(e&&e instanceof Iu)}},tl(),"user")]},kb:{name:"signOut",j:[]},toJSON:{name:"toJSON",j:[Jc(null,!0)]},Qc:{name:"useDeviceLanguage",j:[]},Rc:{name:"verifyPasswordResetCode",j:[Jc("code")]}}),al(vc.prototype,{lc:{name:"languageCode",qb:il(Jc(),tl(),"languageCode")}}),vc.Persistence=Ps,vc.Persistence.LOCAL="local",vc.Persistence.SESSION="session",vc.Persistence.NONE="none",ol(Iu.prototype,{delete:{name:"delete",j:[]},ac:{name:"getIdTokenResult",j:[$c("opt_forceRefresh",!0)]},F:{name:"getIdToken",j:[$c("opt_forceRefresh",!0)]},ab:{name:"linkAndRetrieveDataWithCredential",j:[nl()]},mc:{name:"linkWithCredential",j:[nl()]},nc:{name:"linkWithPhoneNumber",j:[Jc("phoneNumber"),rl()]},oc:{name:"linkWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},pc:{name:"linkWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},cb:{name:"reauthenticateAndRetrieveDataWithCredential",j:[nl()]},vc:{name:"reauthenticateWithCredential",j:[nl()]},wc:{name:"reauthenticateWithPhoneNumber",j:[Jc("phoneNumber"),rl()]},xc:{name:"reauthenticateWithPopup",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},yc:{name:"reauthenticateWithRedirect",j:[{name:"authProvider",K:"a valid Auth provider",optional:!1,M:function(e){return!!(e&&e.providerId&&e.hasOwnProperty&&e.hasOwnProperty("isOAuthProvider"))}}]},reload:{name:"reload",j:[]},gb:{name:"sendEmailVerification",j:[il(Zc("opt_actionCodeSettings",!0),tl(null,!0),"opt_actionCodeSettings",!0)]},toJSON:{name:"toJSON",j:[Jc(null,!0)]},Nc:{name:"unlink",j:[Jc("provider")]},mb:{name:"updateEmail",j:[Jc("email")]},nb:{name:"updatePassword",j:[Jc("password")]},Pc:{name:"updatePhoneNumber",j:[nl("phone")]},ob:{name:"updateProfile",j:[Zc("profile")]}}),ol(Ac.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),ol(Sc.prototype,{execute:{name:"execute"},render:{name:"render"},reset:{name:"reset"},getResponse:{name:"getResponse"}}),ol(ve.prototype,{ia:{name:"finally"},s:{name:"catch"},then:{name:"then"}}),al(wu.prototype,{appVerificationDisabled:{name:"appVerificationDisabledForTesting",qb:$c("appVerificationDisabledForTesting")}}),ol(Eu.prototype,{confirm:{name:"confirm",j:[Jc("verificationCode")]}}),sl(Ii,"credential",function(e,t){return new Oi(e,t)},[Jc("email"),Jc("password")]),ol(Ei.prototype,{ta:{name:"addScope",j:[Jc("scope")]},Da:{name:"setCustomParameters",j:[Zc("customOAuthParameters")]}}),sl(Ei,"credential",xi,[il(Jc(),Zc(),"token")]),sl(Ii,"credentialWithLink",Pi,[Jc("email"),Jc("emailLink")]),ol(Ci.prototype,{ta:{name:"addScope",j:[Jc("scope")]},Da:{name:"setCustomParameters",j:[Zc("customOAuthParameters")]}}),sl(Ci,"credential",Ti,[il(Jc(),Zc(),"token")]),ol(ki.prototype,{ta:{name:"addScope",j:[Jc("scope")]},Da:{name:"setCustomParameters",j:[Zc("customOAuthParameters")]}}),sl(ki,"credential",Si,[il(Jc(),il(Zc(),tl()),"idToken"),il(Jc(),tl(),"accessToken",!0)]),ol(Ai.prototype,{Da:{name:"setCustomParameters",j:[Zc("customOAuthParameters")]}}),sl(Ai,"credential",Ni,[il(Jc(),Zc(),"token"),Jc("secret",!0)]),ol(wi.prototype,{ta:{name:"addScope",j:[Jc("scope")]},credential:{name:"credential",j:[il(Jc(),tl(),"idToken",!0),il(Jc(),tl(),"accessToken",!0)]},Da:{name:"setCustomParameters",j:[Zc("customOAuthParameters")]}}),sl(Li,"credential",ji,[Jc("verificationId"),Jc("verificationCode")]),ol(Li.prototype,{Ta:{name:"verifyPhoneNumber",j:[Jc("phoneNumber"),rl()]}}),ol(jr.prototype,{toJSON:{name:"toJSON",j:[Jc(null,!0)]}}),ol(Hi.prototype,{toJSON:{name:"toJSON",j:[Jc(null,!0)]}}),ol(zi.prototype,{toJSON:{name:"toJSON",j:[Jc(null,!0)]}}),ol(Qc.prototype,{clear:{name:"clear",j:[]},render:{name:"render",j:[]},verify:{name:"verify",j:[]}}),function(){if(void 0===r.a||!r.a.INTERNAL||!r.a.INTERNAL.registerService)throw Error("Cannot find the firebase namespace; be sure to include firebase-app.js before this library.");var e={Auth:vc,Error:jr};sl(e,"EmailAuthProvider",Ii,[]),sl(e,"FacebookAuthProvider",Ei,[]),sl(e,"GithubAuthProvider",Ci,[]),sl(e,"GoogleAuthProvider",ki,[]),sl(e,"TwitterAuthProvider",Ai,[]),sl(e,"OAuthProvider",wi,[Jc("providerId")]),sl(e,"PhoneAuthProvider",Li,[{name:"auth",K:"an instance of Firebase Auth",optional:!0,M:function(e){return!!(e&&e instanceof vc)}}]),sl(e,"RecaptchaVerifier",Qc,[il(Jc(),{name:"",K:"an HTML element",optional:!1,M:function(e){return!!(e&&e instanceof Element)}},"recaptchaContainer"),Zc("recaptchaParameters",!0),{name:"app",K:"an instance of Firebase App",optional:!0,M:function(e){return!!(e&&e instanceof r.a.app.App)}}]),r.a.INTERNAL.registerService("auth",function(e,t){return t({INTERNAL:{getUid:y((e=new vc(e)).getUid,e),getToken:y(e.$b,e),addAuthTokenListener:y(e.Rb,e),removeAuthTokenListener:y(e.zc,e)}}),e},e,function(e,t){if("create"===e)try{t.auth()}catch(e){}}),r.a.INTERNAL.extendNamespace({User:Iu})}()}).call(void 0!==e?e:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})}.call(this,n(69))},function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return i}),n.d(t,"__assign",function(){return o}),n.d(t,"__rest",function(){return a}),n.d(t,"__decorate",function(){return s}),n.d(t,"__param",function(){return u}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return h}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return d}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return m}),n.d(t,"__asyncGenerator",function(){return y}),n.d(t,"__asyncDelegator",function(){return g}),n.d(t,"__asyncValues",function(){return b}),n.d(t,"__makeTemplateObject",function(){return _}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0

THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.

See the Apache Version 2.0 License for specific language governing permissions and limitations under the License.

                                                                                                                                                          • */

var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,o=arguments.length,a=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(o<3?i(a):o>3?i(t,n,a):i(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function u(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(i,o){function a(e){try{u(r.next(e))}catch(e){o(e)}}function s(e){try{u(r.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new n(function(t){t(e.value)}).then(a,s)}u((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=r[2&o[0]?"return":o[0]?"throw":"next"])&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[0,i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]<i[3])){a.label=o[1];break}if(6===o[0]&&a.label<i[1]){a.label=i[1],i=o;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(o);break}i[2]&&a.ops.pop(),a.trys.pop();continue}o=t.call(e,a)}catch(e){o=[6,e],r=0}finally{n=i=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[t]));return e}function m(e){return this instanceof m?(this.v=e,this):new m(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),o=[];return r={},a("next"),a("throw"),a("return"),r[Symbol.asyncIterator]=function(){return this},r;function a(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){o.push([e,t,n,r])>1||s(e,t)})})}function s(e,t){try{(n=i[e](t)).value instanceof m?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(e){l(o[0][3],e)}var n}function u(e){s("next",e)}function c(e){s("throw",e)}function l(e,t){e(t),o.shift(),o.length&&s(o[0][0],o[0][1])}}function g(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){e[r]&&(t[r]=function(t){return(n=!n)?{value:m(e[r](t)),done:"return"===r}:i?i(t):t})}}function b(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator];return t?t.call(e):p(e)}function _(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},function(e,t){!function(e){"use strict";if(!e.fetch){var t={searchParams:"URLSearchParams"in e,iterable:"Symbol"in e&&"iterator"in Symbol,blob:"FileReader"in e&&"Blob"in e&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in e,arrayBuffer:"ArrayBuffer"in e};if(t.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=function(e){return e&&DataView.prototype.isPrototypeOf(e)},i=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+","+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),c(e)},l.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),c(e)},l.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),c(e)},t.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var o=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];m.prototype.clone=function(){return new m(this,{body:this._bodyInit})},v.call(m.prototype),v.call(g.prototype),g.prototype.clone=function(){return new g(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},g.error=function(){var e=new g(null,{status:0,statusText:""});return e.type="error",e};var a=[301,302,303,307,308];g.redirect=function(e,t){if(-1===a.indexOf(t))throw new RangeError("Invalid status code");return new g(null,{status:t,headers:{location:e}})},e.Headers=l,e.Request=m,e.Response=g,e.fetch=function(e,n){return new Promise(function(r,i){var o=new m(e,n),a=new XMLHttpRequest;a.onload=function(){var e,t,n={status:a.status,statusText:a.statusText,headers:(e=a.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t)};n.url="responseURL"in a?a.responseURL:n.headers.get("X-Request-URL");var i="response"in a?a.response:a.responseText;r(new g(i,n))},a.onerror=function(){i(new TypeError("Network request failed"))},a.ontimeout=function(){i(new TypeError("Network request failed"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&t.blob&&(a.responseType="blob"),o.headers.forEach(function(e,t){a.setRequestHeader(t,e)}),a.send(void 0===o._bodyInit?null:o._bodyInit)})},e.fetch.polyfill=!0}function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var n={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return t.iterable&&(n[Symbol.iterator]=function(){return n}),n}function l(e){this.map={},e instanceof l?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function h(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=h(t);return t.readAsArrayBuffer(e),n}function d(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){if(this._bodyInit=e,e)if("string"==typeof e)this._bodyText=e;else if(t.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(t.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else if(t.arrayBuffer&&t.blob&&r(e))this._bodyArrayBuffer=d(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer]);else{if(!t.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e)&&!i(e))throw new Error("unsupported BodyInit type");this._bodyArrayBuffer=d(e)}else this._bodyText="";this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):t.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},t.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,t=new FileReader,n=h(t),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},t.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}function m(e,t){var n,r,i=(t=t||{}).body;if(e instanceof m){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(n=t.method||this.method||"GET",r=n.toUpperCase(),o.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function y(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function g(e,t){t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in t?t.statusText:"OK",this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}}("undefined"!=typeof self?self:this)},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var r,i,o,a,s,u=1,c={},l=!1,f=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?r=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((o=new MessageChannel).port1.onmessage=function(e){d(e.data)},r=function(e){o.port2.postMessage(e)}):f&&"onreadystatechange"in f.createElement("script")?(i=f.documentElement,r=function(e){var t=f.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):r=function(e){setTimeout(d,0,e)}:(a="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&d(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),r=function(t){e.postMessage(a+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var i={callback:e,args:t};return c[u]=i,r(u),u++},h.clearImmediate=p}function p(e){delete c[e]}function d(e){if(l)setTimeout(d,0,e);else{var t=c[e];if(t){l=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(n,r)}}(t)}finally{p(e),l=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(69),n(88))},function(e,t,n){(function(e){var r=void 0!==e&&e||"undefined"!=typeof self&&self||window,i=Function.prototype.apply;function o(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new o(i.call(setTimeout,r,arguments),clearTimeout)},t.setInterval=function(){return new o(i.call(setInterval,r,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},o.prototype.unref=o.prototype.ref=function(){},o.prototype.close=function(){this._clearFn.call(r,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},n(423),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(69))},function(e,t,n){"use strict";n.r(t),function(e,t){n(422);var r=setTimeout;function i(){}function o(e){if(!(this instanceof o))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],l(e,this)}function a(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var r;try{r=n(e._value)}catch(e){return void u(t.promise,e)}s(t.promise,r)}else(1===e._state?s:u)(t.promise,e._value)})):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"==typeof t||"function"==typeof t)){var n=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"==typeof n)return void l((r=n,i=t,function(){r.apply(i,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){u(e,t)}var r,i}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,n=e._deferreds.length;t<n;t++)a(e,e._deferreds[t]);e._deferreds=null}function l(e,t){var n=!1;try{e(function(e){n||(n=!0,s(t,e))},function(e){n||(n=!0,u(t,e))})}catch(e){if(n)return;n=!0,u(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var n=new this.constructor(i);return a(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},o.prototype.finally=function(e){var t=this.constructor;return this.then(function(n){return t.resolve(e()).then(function(){return n})},function(n){return t.resolve(e()).then(function(){return t.reject(n)})})},o.all=function(e){return new o(function(t,n){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(e);if(0===r.length)return t([]);var i=r.length;function o(e,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,function(t){o(e,t)},n)}r[e]=a,0==--i&&t(r)}catch(e){n(e)}}for(var a=0;a<r.length;a++)o(a,r[a])})},o.resolve=function(e){return e&&"object"==typeof e&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,n){n(e)})},o.race=function(e){return new o(function(t,n){for(var r=0,i=e.length;r<i;r++)e[r].then(t,n)})},o._immediateFn="function"==typeof e&&function(t){e(t)}||function(e){r(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)};var f=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw new Error("unable to locate global object")}();function h(e,t){return e(t={exports:{}},t.exports),t.exports}f.Promise||(f.Promise=o);var p=h(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),d=h(function(e){var t=e.exports={version:"2.5.5"};"number"==typeof __e&&(__e=t)}),v=(d.version,function(e){return"object"==typeof e?null!==e:"function"==typeof e}),m=function(e){if(!v(e))throw TypeError(e+" is not an object!");return e},y=function(e){try{return!!e()}catch(e){return!0}},g=!y(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),b=p.document,_=v(b)&&v(b.createElement),w=function(e){return _?b.createElement(e):{}},E=!g&&!y(function(){return 7!=Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a}),x=function(e,t){if(!v(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!v(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!v(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},C=Object.defineProperty,T={f:g?Object.defineProperty:function(e,t,n){if(m(e),t=x(t,!0),m(n),E)try{return C(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},k=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},S=g?function(e,t,n){return T.f(e,t,k(1,n))}:function(e,t,n){return e[t]=n,e},A={}.hasOwnProperty,N=function(e,t){return A.call(e,t)},O=0,I=Math.random(),P=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++O+I).toString(36))},R=h(function(e){var t=P("src"),n=Function.toString,r=(""+n).split("toString");d.inspectSource=function(e){return n.call(e)},(e.exports=function(e,n,i,o){var a="function"==typeof i;a&&(N(i,"name")||S(i,"name",n)),e[n]!==i&&(a&&(N(i,t)||S(i,t,e[n]?""+e[n]:r.join(String(n)))),e===p?e[n]=i:o?e[n]?e[n]=i:S(e,n,i):(delete e[n],S(e,n,i)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||n.call(this)})}),D=function(e,t,n){if(function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!")}(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},M=function(e,t,n){var r,i,o,a,s=e&M.F,u=e&M.G,c=e&M.S,l=e&M.P,f=e&M.B,h=u?p:c?p[t]||(p[t]={}):(p[t]||{}).prototype,v=u?d:d[t]||(d[t]={}),m=v.prototype||(v.prototype={});for(r in u&&(n=t),n)o=((i=!s&&h&&void 0!==h[r])?h:n)[r],a=f&&i?D(o,p):l&&"function"==typeof o?D(Function.call,o):o,h&&R(h,r,o,e&M.U),v[r]!=o&&S(v,r,a),l&&m[r]!=o&&(m[r]=o)};p.core=d,M.F=1,M.G=2,M.S=4,M.P=8,M.B=16,M.W=32,M.U=64,M.R=128;var L=M,j={}.toString,F=function(e){return j.call(e).slice(8,-1)},U=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==F(e)?e.split(""):Object(e)},B=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},q=function(e){return Object(B(e))},V=Math.ceil,W=Math.floor,z=function(e){return isNaN(e=+e)?0:(e>0?W:V)(e)},H=Math.min,K=function(e){return e>0?H(z(e),9007199254740991):0},G=Array.isArray||function(e){return"Array"==F(e)},Q=p["__core-js_shared__"]||(p["__core-js_shared__"]={}),Y=function(e){return Q[e]||(Q[e]={})},X=h(function(e){var t=Y("wks"),n=p.Symbol,r="function"==typeof n;(e.exports=function(e){return t[e]||(t[e]=r&&n[e]||(r?n:P)("Symbol."+e))}).store=t}),J=X("species"),$=function(e,t){return new(function(e){var t;return G(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!G(t.prototype)||(t=void 0),v(t)&&null===(t=t[J])&&(t=void 0)),void 0===t?Array:t}(e))(t)},Z=function(e,t){var n=1==e,r=2==e,i=3==e,o=4==e,a=6==e,s=5==e||a,u=t||$;return function(t,c,l){for(var f,h,p=q(t),d=U(p),v=D(c,l,3),m=K(d.length),y=0,g=n?u(t,m):r?u(t,0):void 0;m>y;y++)if((s||y in d)&&(h=v(f=d[y],y,p),e))if(n)g[y]=h;else if(h)switch(e){case 3:return!0;case 5:return f;case 6:return y;case 2:g.push(f)}else if(o)return!1;return a?-1:i||o?o:g}},ee=X("unscopables"),te=Array.prototype;void 0==te[ee]&&S(te,ee,{});var ne=function(e){te[ee][e]=!0},re=Z(5),ie=!0;"find"in[]&&Array(1).find(function(){ie=!1}),L(L.P+L.F*ie,"Array",{find:function(e){return re(this,e,arguments.length>1?arguments[1]:void 0)}}),ne("find");d.Array.find;var oe=Z(6),ae=!0;"findIndex"in[]&&Array(1).findIndex(function(){ae=!1}),L(L.P+L.F*ae,"Array",{findIndex:function(e){return oe(this,e,arguments.length>1?arguments[1]:void 0)}}),ne("findIndex");d.Array.findIndex;var se,ue=function(e){return U(B(e))},ce=Math.max,le=Math.min,fe=Y("keys"),he=function(e){return fe[e]||(fe[e]=P(e))},pe=(se=!1,function(e,t,n){var r,i=ue(e),o=K(i.length),a=function(e,t){return(e=z(e))<0?ce(e+t,0):le(e,t)}(n,o);if(se&&t!=t){for(;o>a;)if((r=i[a++])!=r)return!0}else for(;o>a;a++)if((se||a in i)&&i[a]===t)return se||a||0;return!se&&-1}),de=he("IE_PROTO"),ve=function(e,t){var n,r=ue(e),i=0,o=[];for(n in r)n!=de&&N(r,n)&&o.push(n);for(;t.length>i;)N(r,n=t[i++])&&(~pe(o,n)||o.push(n));return o},me="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),ye=Object.keys||function(e){return ve(e,me)},ge={f:Object.getOwnPropertySymbols},be={f:{}.propertyIsEnumerable},_e=Object.assign,we=!_e||y(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=_e({},e)[n]||Object.keys(_e({},t)).join("")!=r})?function(e,t){for(var n=q(e),r=arguments.length,i=1,o=ge.f,a=be.f;r>i;)for(var s,u=U(arguments[i++]),c=o?ye(u).concat(o(u)):ye(u),l=c.length,f=0;l>f;)a.call(u,s=c[f++])&&(n[s]=u[s]);return n}:_e;L(L.S+L.F,"Object",{assign:we});d.Object.assign;var Ee=X("match"),xe=function(e,t,n){if(v(r=t)&&(void 0!==(i=r[Ee])?i:"RegExp"==F(r)))throw TypeError("String#"+n+" doesn't accept regex!");var r,i;return String(B(e))},Ce=X("match"),Te="".startsWith;L(L.P+L.F*function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[Ce]=!1,!"/./"[e](t)}catch(e){}}return!0}("startsWith"),"String",{startsWith:function(e){var t=xe(this,e,"startsWith"),n=K(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return Te?Te.call(t,r,n):t.slice(n,n+r.length)===r}});d.String.startsWith;L(L.P,"String",{repeat:function(e){var t=String(B(this)),n="",r=z(e);if(r<0||r==1/0)throw RangeError("Count can't be negative");for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n}});d.String.repeat;var ke=h(function(e){var t=P("meta"),n=T.f,r=0,i=Object.isExtensible||function(){return!0},o=!y(function(){return i(Object.preventExtensions({}))}),a=function(e){n(e,t,{value:{i:"O"+ ++r,w:{}}})},s=e.exports={KEY:t,NEED:!1,fastKey:function(e,n){if(!v(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!N(e,t)){if(!i(e))return"F";if(!n)return"E";a(e)}return e[t].i},getWeak:function(e,n){if(!N(e,t)){if(!i(e))return!0;if(!n)return!1;a(e)}return e[t].w},onFreeze:function(e){return o&&s.NEED&&i(e)&&!N(e,t)&&a(e),e}}}),Se=(ke.KEY,ke.NEED,ke.fastKey,ke.getWeak,ke.onFreeze,T.f),Ae=X("toStringTag"),Ne=function(e,t,n){e&&!N(e=n?e:e.prototype,Ae)&&Se(e,Ae,{configurable:!0,value:t})},Oe={f:X},Ie=T.f,Pe=function(e){var t=d.Symbol||(d.Symbol=p.Symbol||{});"_"==e.charAt(0)||e in t||Ie(t,e,{value:Oe.f(e)})},Re=g?Object.defineProperties:function(e,t){m(e);for(var n,r=ye(t),i=r.length,o=0;i>o;)T.f(e,n=r[o++],t[n]);return e},De=p.document,Me=De&&De.documentElement,Le=he("IE_PROTO"),je=function(){},Fe=function(){var e,t=w("iframe"),n=me.length;for(t.style.display="none",Me.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),Fe=e.F;n--;)delete Fe.prototype[me[n]];return Fe()},Ue=Object.create||function(e,t){var n;return null!==e?(je.prototype=m(e),n=new je,je.prototype=null,n[Le]=e):n=Fe(),void 0===t?n:Re(n,t)},Be=me.concat("length","prototype"),qe={f:Object.getOwnPropertyNames||function(e){return ve(e,Be)}},Ve=qe.f,We={}.toString,ze="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],He={f:function(e){return ze&&"[object Window]"==We.call(e)?function(e){try{return Ve(e)}catch(e){return ze.slice()}}(e):Ve(ue(e))}},Ke=Object.getOwnPropertyDescriptor,Ge={f:g?Ke:function(e,t){if(e=ue(e),t=x(t,!0),E)try{return Ke(e,t)}catch(e){}if(N(e,t))return k(!be.f.call(e,t),e[t])}},Qe=ke.KEY,Ye=Ge.f,Xe=T.f,Je=He.f,$e=p.Symbol,Ze=p.JSON,et=Ze&&Ze.stringify,tt=X("_hidden"),nt=X("toPrimitive"),rt={}.propertyIsEnumerable,it=Y("symbol-registry"),ot=Y("symbols"),at=Y("op-symbols"),st=Object.prototype,ut="function"==typeof $e,ct=p.QObject,lt=!ct||!ct.prototype||!ct.prototype.findChild,ft=g&&y(function(){return 7!=Ue(Xe({},"a",{get:function(){return Xe(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=Ye(st,t);r&&delete st[t],Xe(e,t,n),r&&e!==st&&Xe(st,t,r)}:Xe,ht=function(e){var t=ot[e]=Ue($e.prototype);return t._k=e,t},pt=ut&&"symbol"==typeof $e.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof $e},dt=function(e,t,n){return e===st&&dt(at,t,n),m(e),t=x(t,!0),m(n),N(ot,t)?(n.enumerable?(N(e,tt)&&e[tt][t]&&(e[tt][t]=!1),n=Ue(n,{enumerable:k(0,!1)})):(N(e,tt)||Xe(e,tt,k(1,{})),e[tt][t]=!0),ft(e,t,n)):Xe(e,t,n)},vt=function(e,t){m(e);for(var n,r=function(e){var t=ye(e),n=ge.f;if(n)for(var r,i=n(e),o=be.f,a=0;i.length>a;)o.call(e,r=i[a++])&&t.push(r);return t}(t=ue(t)),i=0,o=r.length;o>i;)dt(e,n=r[i++],t[n]);return e},mt=function(e){var t=rt.call(this,e=x(e,!0));return!(this===st&&N(ot,e)&&!N(at,e))&&(!(t||!N(this,e)||!N(ot,e)||N(this,tt)&&this[tt][e])||t)},yt=function(e,t){if(e=ue(e),t=x(t,!0),e!==st||!N(ot,t)||N(at,t)){var n=Ye(e,t);return!n||!N(ot,t)||N(e,tt)&&e[tt][t]||(n.enumerable=!0),n}},gt=function(e){for(var t,n=Je(ue(e)),r=[],i=0;n.length>i;)N(ot,t=n[i++])||t==tt||t==Qe||r.push(t);return r},bt=function(e){for(var t,n=e===st,r=Je(n?at:ue(e)),i=[],o=0;r.length>o;)!N(ot,t=r[o++])||n&&!N(st,t)||i.push(ot[t]);return i};ut||(R(($e=function(){if(this instanceof $e)throw TypeError("Symbol is not a constructor!");var e=P(arguments.length>0?arguments[0]:void 0),t=function(n){this===st&&t.call(at,n),N(this,tt)&&N(this[tt],e)&&(this[tt][e]=!1),ft(this,e,k(1,n))};return g&&lt&&ft(st,e,{configurable:!0,set:t}),ht(e)}).prototype,"toString",function(){return this._k}),Ge.f=yt,T.f=dt,qe.f=He.f=gt,be.f=mt,ge.f=bt,g&&R(st,"propertyIsEnumerable",mt,!0),Oe.f=function(e){return ht(X(e))}),L(L.G+L.W+L.F*!ut,{Symbol:$e});for(var _t="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),wt=0;_t.length>wt;)X(_t[wt++]);for(var Et=ye(X.store),xt=0;Et.length>xt;)Pe(Et[xt++]);L(L.S+L.F*!ut,"Symbol",{for:function(e){return N(it,e+="")?it[e]:it[e]=$e(e)},keyFor:function(e){if(!pt(e))throw TypeError(e+" is not a symbol!");for(var t in it)if(it[t]===e)return t},useSetter:function(){lt=!0},useSimple:function(){lt=!1}}),L(L.S+L.F*!ut,"Object",{create:function(e,t){return void 0===t?Ue(e):vt(Ue(e),t)},defineProperty:dt,defineProperties:vt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:gt,getOwnPropertySymbols:bt}),Ze&&L(L.S+L.F*(!ut||y(function(){var e=$e();return"[null]"!=et([e])||"{}"!=et({a:e})||"{}"!=et(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(v(t)||void 0!==e)&&!pt(e))return G(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!pt(t))return t}),r[1]=t,et.apply(Ze,r)}}),$e.prototype[nt]||S($e.prototype,nt,$e.prototype.valueOf),Ne($e,"Symbol"),Ne(Math,"Math",!0),Ne(p.JSON,"JSON",!0);var Ct=X("toStringTag"),Tt="Arguments"==F(function(){return arguments}()),kt={};kt[X("toStringTag")]="z",kt+""!="[object z]"&&R(Object.prototype,"toString",function(){return"[object "+(void 0===(e=this)?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),Ct))?n:Tt?F(t):"Object"==(r=F(t))&&"function"==typeof t.callee?"Arguments":r)+"]";var e,t,n,r},!0),Pe("asyncIterator"),Pe("observable");d.Symbol;var St={},At={};S(At,X("iterator"),function(){return this});var Nt,Ot=function(e,t,n){e.prototype=Ue(At,{next:k(1,n)}),Ne(e,t+" Iterator")},It=he("IE_PROTO"),Pt=Object.prototype,Rt=Object.getPrototypeOf||function(e){return e=q(e),N(e,It)?e[It]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?Pt:null},Dt=X("iterator"),Mt=!([].keys&&"next"in[].keys()),Lt=function(){return this},jt=function(e,t,n,r,i,o,a){Ot(n,t,r);var s,u,c,l=function(e){if(!Mt&&e in d)return d[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},f=t+" Iterator",h="values"==i,p=!1,d=e.prototype,v=d[Dt]||d["@@iterator"]||i&&d[i],m=v||l(i),y=i?h?l("entries"):m:void 0,g="Array"==t&&d.entries||v;if(g&&(c=Rt(g.call(new e)))!==Object.prototype&&c.next&&(Ne(c,f,!0),"function"!=typeof c[Dt]&&S(c,Dt,Lt)),h&&v&&"values"!==v.name&&(p=!0,m=function(){return v.call(this)}),(Mt||p||!d[Dt])&&S(d,Dt,m),St[t]=m,St[f]=Lt,i)if(s={values:h?m:l("values"),keys:o?m:l("keys"),entries:y},a)for(u in s)u in d||R(d,u,s[u]);else L(L.P+L.F*(Mt||p),t,s);return s},Ft=(Nt=!0,function(e,t){var n,r,i=String(B(e)),o=z(t),a=i.length;return o<0||o>=a?Nt?"":void 0:(n=i.charCodeAt(o))<55296||n>56319||o+1===a||(r=i.charCodeAt(o+1))<56320||r>57343?Nt?i.charAt(o):n:Nt?i.slice(o,o+2):r-56320+(n-55296<<10)+65536});jt(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=Ft(t,n),this._i+=e.length,{value:e,done:!1})});var Ut=function(e,t){return{value:t,done:!!e}},Bt=jt(Array,"Array",function(e,t){this._t=ue(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,Ut(1)):Ut(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values");St.Arguments=St.Array,ne("keys"),ne("values"),ne("entries");for(var qt=X("iterator"),Vt=X("toStringTag"),Wt=St.Array,zt={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},Ht=ye(zt),Kt=0;Kt<Ht.length;Kt++){var Gt,Qt=Ht[Kt],Yt=zt[Qt],Xt=p[Qt],Jt=Xt&&Xt.prototype;if(Jt&&(Jt[qt]||S(Jt,qt,Wt),Jt[Vt]||S(Jt,Vt,Qt),St[Qt]=Wt,Yt))for(Gt in Bt)Jt[Gt]||R(Jt,Gt,Bt[Gt],!0)}Oe.f("iterator")}.call(this,n(424).setImmediate,n(69))},function(e,t,n){"use strict";n(425);var r,i=(r=n(14))&&"object"==typeof r&&"default"in r?r.default:r;n(420),n(419),n(417),n(414),n(317),n(412),console.warn("\nIt looks like you're using the development build of the Firebase JS SDK.\nWhen deploying Firebase apps to production, it is advisable to only import\nthe individual SDK components you intend to use.\n\nFor the module builds, these are available in the following manner\n(replace <PACKAGE> with the name of a component - i.e. auth, database, etc):\n\nCommonJS Modules:\nconst firebase = require('firebase/app');\nrequire('firebase/<PACKAGE>');\n\nES Modules:\nimport firebase from 'firebase/app';\nimport 'firebase/<PACKAGE>';\n"),e.exports=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,i=n(426);((r=i)&&r.__esModule?r:{default:r}).default.initializeApp({apiKey:"AIzaSyCvzQxxjxFKPL6pLT00_iiChoEJwwvgjZ4",authDomain:"igem-7f6f6.firebaseapp.com",databaseURL:"https://igem-7f6f6.firebaseio.com",projectId:"igem-7f6f6",storageBucket:"igem-7f6f6.appspot.com",messagingSenderId:"184454883093"});var o=fetch("https://igem-7f6f6.firebaseio.com/.json",{method:"get"});t.default=o},function(e,t,n){var r=n(48),i=n(125),o=n(44),a=Math.min;e.exports=function(e){var t=Math[e];return function(e,n){if(e=i(e),n=null==n?0:a(r(n),292)){var s=(o(e)+"e").split("e"),u=t(s[0]+"e"+(+s[1]+n));return+((s=(o(u)+"e").split("e"))[0]+"e"+(+s[1]-n))}return t(e)}}},function(e,t,n){var r=n(56),i=n(80);e.exports=function(e){return r(function(t,n){var r=-1,o=n.length,a=o>1?n[o-1]:void 0,s=o>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(o--,a):void 0,s&&i(n[0],n[1],s)&&(a=o<3?void 0:a,o=1),t=Object(t);++r<o;){var u=n[r];u&&e(t,u,r,a)}return t})}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+c,"g");e.exports=function(e){for(var t=f.lastIndex=0;f.test(e);)++t;return t}},function(e,t,n){var r=n(242)("length");e.exports=r},function(e,t,n){var r=n(431),i=n(112),o=n(430);e.exports=function(e){return i(e)?o(e):r(e)}},function(e,t,n){var r=n(65);e.exports=function(e,t){var n=!0;return r(e,function(e,r,i){return n=!!t(e,r,i)}),n}},function(e,t){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}},function(e,t,n){var r=n(10);e.exports=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=r(e)););return e}},function(e,t,n){var r=n(141),i=n(185),o=n(57),a=n(51),s=n(74),u=n(58);a(a.S,"Reflect",{get:function e(t,n){var a,c,l=arguments.length<3?t:arguments[2];return u(t)===l?t[n]:(a=r.f(t,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(l):void 0:s(c=i(t))?e(c,n,l):void 0}})},function(e,t,n){n(436),e.exports=n(26).Reflect.get},function(e,t,n){e.exports=n(437)},function(e,t,n){var r=n(161),i=n(112),o=n(113),a=n(44);e.exports=function(e){return function(t){t=a(t);var n=i(t)?o(t):void 0,s=n?n[0]:t.charAt(0),u=n?r(n,1).join(""):t.slice(1);return s[e]()+u}}},function(e,t,n){var r=n(439)("toUpperCase");e.exports=r},function(e,t){var n="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",r="["+n+"]",i="\\d+",o="[\\u2700-\\u27bf]",a="[a-z\\xdf-\\xf6\\xf8-\\xff]",s="[^\\ud800-\\udfff"+n+i+"\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="[A-Z\\xc0-\\xd6\\xd8-\\xde]",f="(?:"+a+"|"+s+")",h="(?:"+l+"|"+s+")",p="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",d="[\\ufe0e\\ufe0f]?"+p+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,c].join("|")+")[\\ufe0e\\ufe0f]?"+p+")*"),v="(?:"+[o,u,c].join("|")+")"+d,m=RegExp([l+"?"+a+"+(?:['’](?:d|ll|m|re|s|t|ve))?(?="+[r,l,"$"].join("|")+")",h+"+(?:['’](?:D|LL|M|RE|S|T|VE))?(?="+[r,l+f,"$"].join("|")+")",l+"?"+f+"+(?:['’](?:d|ll|m|re|s|t|ve))?",l+"+(?:['’](?:D|LL|M|RE|S|T|VE))?","\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",i,v].join("|"),"g");e.exports=function(e){return e.match(m)||[]}},function(e,t){var n=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return n.test(e)}},function(e,t){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(n)||[]}},function(e,t,n){var r=n(443),i=n(442),o=n(44),a=n(441);e.exports=function(e,t,n){return e=o(e),void 0===(t=n?void 0:t)?i(e)?a(e):r(e):e.match(t)||[]}},function(e,t){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(e,t,n){var r=n(445)({"À":"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","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});e.exports=r},function(e,t,n){var r=n(219),i=n(148),o=n(444),a=RegExp("['’]","g");e.exports=function(e){return function(t){return r(o(i(t).replace(a,"")),e,"")}}},function(e,t){e.exports=function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}},function(e,t,n){var r=n(70),i=n(90),o=n(55),a=n(39),s=n(101),u=n(448),c=n(251),l=n(120),f=n(113),h=n(75),p="[object Map]",d="[object Set]",v=r?r.iterator:void 0;e.exports=function(e){if(!e)return[];if(a(e))return s(e)?f(e):i(e);if(v&&e[v])return u(e[v]());var t=o(e);return(t==p?c:t==d?l:h)(e)}},function(e,t,n){var r=n(95),i=n(15);e.exports=function(e,t){return r(i(e,t),1)}},function(e,t,n){var r=n(42),i=n(30),o="[object RegExp]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(451),i=n(66),o=n(122),a=o&&o.isRegExp,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(135),i=n(161),o=n(112),a=n(80),s=n(452),u=n(113),c=n(44),l=4294967295;e.exports=function(e,t,n){return n&&"number"!=typeof n&&a(e,t,n)&&(t=n=void 0),(n=void 0===n?l:n>>>0)?(e=c(e))&&("string"==typeof t||null!=t&&!s(t))&&!(t=r(t))&&o(e)?i(u(e),0,n):e.split(t,n):[]}},function(e,t){e.exports=function(e,t,n,r,i){return i(e,function(e,i,o){n=r?(r=!1,e):t(n,e,i,o)}),n}},function(e,t){var n=Math.ceil,r=Math.max;e.exports=function(e,t,i,o){for(var a=-1,s=r(n((t-e)/(i||1)),0),u=Array(s);s--;)u[o?s:++a]=e,e+=i;return u}},function(e,t,n){var r=n(455),i=n(80),o=n(173);e.exports=function(e){return function(t,n,a){return a&&"number"!=typeof a&&i(t,n,a)&&(n=a=void 0),t=o(t),void 0===n?(n=t,t=0):n=o(n),a=void 0===a?t<n?1:-1:o(a),r(t,n,a,e)}}},function(e,t){e.exports=function(e){return e&&e.length?e[0]:void 0}},function(e,t){var n=Math.max,r=Math.min;e.exports=function(e,t,i){return e>=r(t,i)&&e<n(t,i)}},function(e,t,n){var r=n(50);e.exports=function(e,t){return r(t,function(t){return e[t]})}},function(e,t,n){var r=n(247),i=n(231),o=n(120),a=r&&1/o(new r([,-0]))[1]==1/0?function(e){return new r(e)}:i;e.exports=a},function(e,t,n){var r=n(165),i=n(162),o=n(166),a=n(230),s=n(18),u=n(232),c="Expected a function",l=8,f=32,h=128,p=256;e.exports=function(e){return i(function(t){var n=t.length,i=n,d=r.prototype.thru;for(e&&t.reverse();i--;){var v=t[i];if("function"!=typeof v)throw new TypeError(c);if(d&&!m&&"wrapper"==a(v))var m=new r([],!0)}for(i=m?i:n;++i<n;){v=t[i];var y=a(v),g="wrapper"==y?o(v):void 0;m=g&&u(g[0])&&g[1]==(h|l|f|p)&&!g[4].length&&1==g[9]?m[a(g[0])].apply(m,g[3]):1==v.length&&u(v)?m[y]():m.thru(v)}return function(){var e=arguments,r=e[0];if(m&&1==e.length&&s(r))return m.plant(r).value();for(var i=0,o=n?t[i].apply(this,e):r;++i<n;)o=t[i].call(this,o);return o}})}},function(e,t,n){var r=n(461)();e.exports=r},function(e,t){e.exports=function(e,t){return e<t}},function(e,t,n){var r=n(71);e.exports=function(e,t,n){for(var i=-1,o=e.length;++i<o;){var a=e[i],s=t(a);if(null!=s&&(void 0===u?s==s&&!r(s):n(s,u)))var u=s,c=a}return c}},function(e,t,n){var r=n(464),i=n(463),o=n(49);e.exports=function(e){return e&&e.length?r(e,o,i):void 0}},function(e,t){e.exports=function(e,t){for(var n,r=-1,i=e.length;++r<i;){var o=t(e[r]);void 0!==o&&(n=void 0===n?o:n+o)}return n}},function(e,t,n){var r=n(71);e.exports=function(e,t){if(e!==t){var n=void 0!==e,i=null===e,o=e==e,a=r(e),s=void 0!==t,u=null===t,c=t==t,l=r(t);if(!u&&!l&&!a&&e>t||a&&s&&c&&!u&&!l||i&&s&&c||!n&&c||!o)return 1;if(!i&&!a&&!l&&e<t||l&&n&&o&&!i&&!a||u&&n&&o||!s&&o||!c)return-1}return 0}},function(e,t,n){var r=n(467);e.exports=function(e,t,n){for(var i=-1,o=e.criteria,a=t.criteria,s=o.length,u=n.length;++i<s;){var c=r(o[i],a[i]);if(c)return i>=u?c:c*("desc"==n[i]?-1:1)}return e.index-t.index}},function(e,t){e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},function(e,t,n){var r=n(50),i=n(35),o=n(221),a=n(469),s=n(66),u=n(468),c=n(49);e.exports=function(e,t,n){var l=-1;t=r(t.length?t:[c],s(i));var f=o(e,function(e,n,i){return{criteria:r(t,function(t){return t(e)}),index:++l,value:e}});return a(f,function(e,t){return u(e,t,n)})}},function(e,t,n){var r=n(95),i=n(470),o=n(56),a=n(80),s=o(function(e,t){if(null==e)return[];var n=t.length;return n>1&&a(e,t[0],t[1])?t=[]:n>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),i(e,r(t,1),[])});e.exports=s},function(e,t,n){var r=n(131),i=n(48);e.exports=function(e,t,n){return e&&e.length?(t=n||void 0===t?1:i(t),r(e,0,t<0?0:t)):[]}},function(e,t,n){var r=n(115),i=n(97),o=n(96),a=n(40),s=n(67);e.exports=function(e,t,n,u){if(!a(e))return e;for(var c=-1,l=(t=i(t,e)).length,f=l-1,h=e;null!=h&&++c<l;){var p=s(t[c]),d=n;if(c!=f){var v=h[p];void 0===(d=u?u(v,p,h):void 0)&&(d=a(v)?v:o(t[c+1])?[]:{})}r(h,p,d),h=h[p]}return e}},function(e,t,n){var r=n(222),i=n(243);e.exports=function(e,t){return r(e,t,function(t,n){return i(e,n)})}},function(e,t){var n="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",a="(?:\\ud83c[\\udde6-\\uddff]){2}",s="[\\ud800-\\udbff][\\udc00-\\udfff]",u="(?:"+r+"|"+i+")"+"?",c="[\\ufe0e\\ufe0f]?"+u+("(?:\\u200d(?:"+[o,a,s].join("|")+")[\\ufe0e\\ufe0f]?"+u+")*"),l="(?:"+[o+r+"?",r,a,s,n].join("|")+")",f=RegExp(i+"(?="+i+")|"+l+c,"g");e.exports=function(e){return e.match(f)||[]}},function(e,t){e.exports=function(e){return e.split("")}},function(e,t,n){var r=n(128);e.exports=function(e,t){for(var n=-1,i=e.length;++n<i&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(128);e.exports=function(e,t){for(var n=e.length;n--&&r(t,e[n],0)>-1;);return n}},function(e,t,n){var r=n(135),i=n(161),o=n(478),a=n(477),s=n(113),u=n(44),c=/^\s+|\s+$/g;e.exports=function(e,t,n){if((e=u(e))&&(n||void 0===t))return e.replace(c,"");if(!e||!(t=r(t)))return e;var l=s(e),f=s(t),h=a(l,f),p=o(l,f)+1;return i(l,h,p).join("")}},function(e,t,n){var r=n(50),i=n(90),o=n(18),a=n(71),s=n(270),u=n(67),c=n(44);e.exports=function(e){return o(e)?r(e,u):a(e)?[e]:i(s(c(e)))}},function(e,t,n){var r=n(95);e.exports=function(e){return null!=e&&e.length?r(e,1):[]}},function(e,t,n){var r=n(118),i=n(162)(function(e,t){return r(e,256,void 0,void 0,void 0,t)});e.exports=i},function(e,t,n){var r=n(226),i=n(35),o=1;e.exports=function(e){return i("function"==typeof e?e:r(e,o))}},function(e,t,n){var r=n(55),i=n(30),o="[object WeakMap]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(42),i=n(30),o=n(84),a="[object DOMException]",s="[object Error]";e.exports=function(e){if(!i(e))return!1;var t=r(e);return t==s||t==a||"string"==typeof e.message&&"string"==typeof e.name&&!o(e)}},function(e,t,n){var r=n(118),i=8;function o(e,t,n){var a=r(e,i,void 0,void 0,void 0,void 0,void 0,t=n?void 0:t);return a.placeholder=o.placeholder,a}o.placeholder={},e.exports=o},function(e,t,n){var r=n(55),i=n(30),o="[object Set]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(487),i=n(66),o=n(122),a=o&&o.isSet,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(55),i=n(30),o="[object Map]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(489),i=n(66),o=n(122),a=o&&o.isMap,s=a?i(a):r;e.exports=s},function(e,t,n){var r=n(91),i=n(114),o=n(93);e.exports=function(e){return"function"!=typeof e.constructor||o(e)?{}:r(i(e))}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},function(e,t,n){var r=n(70),i=r?r.prototype:void 0,o=i?i.valueOf:void 0;e.exports=function(e){return o?Object(o.call(e)):{}}},function(e,t){var n=/\w*$/;e.exports=function(e){var t=new e.constructor(e.source,n.exec(e));return t.lastIndex=e.lastIndex,t}},function(e,t,n){var r=n(163);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}},function(e,t,n){var r=n(163),i=n(495),o=n(494),a=n(493),s=n(492),u="[object Boolean]",c="[object Date]",l="[object Map]",f="[object Number]",h="[object RegExp]",p="[object Set]",d="[object String]",v="[object Symbol]",m="[object ArrayBuffer]",y="[object DataView]",g="[object Float32Array]",b="[object Float64Array]",_="[object Int8Array]",w="[object Int16Array]",E="[object Int32Array]",x="[object Uint8Array]",C="[object Uint8ClampedArray]",T="[object Uint16Array]",k="[object Uint32Array]";e.exports=function(e,t,n){var S=e.constructor;switch(t){case m:return r(e);case u:case c:return new S(+e);case y:return i(e,n);case g:case b:case _:case w:case E:case x:case C:case T:case k:return s(e,n);case l:return new S;case f:case d:return new S(e);case h:return o(e);case p:return new S;case v:return a(e)}}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=e.length,r=new e.constructor(t);return t&&"string"==typeof e[0]&&n.call(e,"index")&&(r.index=e.index,r.input=e.input),r}},function(e,t,n){var r=n(89),i=n(224);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){var r=n(89),i=n(169);e.exports=function(e,t){return r(e,i(e),t)}},function(e,t,n){(function(e){var r=n(34),i="object"==typeof t&&t&&!t.nodeType&&t,o=i&&"object"==typeof e&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}).call(this,n(124)(e))},function(e,t){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},function(e,t,n){var r=n(40),i=n(93),o=n(501),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=i(e),n=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&n.push(s);return n}},function(e,t,n){var r=n(89),i=n(225);e.exports=function(e,t){return e&&r(t,i(t),e)}},function(e,t,n){var r=n(226),i=4;e.exports=function(e){return r(e,i)}},function(e,t,n){var r=n(235),i=n(234),o=n(116),a="__lodash_placeholder__",s=1,u=2,c=4,l=8,f=128,h=256,p=Math.min;e.exports=function(e,t){var n=e[1],d=t[1],v=n|d,m=v<(s|u|f),y=d==f&&n==l||d==f&&n==h&&e[7].length<=t[8]||d==(f|h)&&t[7].length<=t[8]&&n==l;if(!m&&!y)return e;d&s&&(e[2]=t[2],v|=n&s?0:c);var g=t[3];if(g){var b=e[3];e[3]=b?r(b,g,t[4]):g,e[4]=b?o(e[3],a):t[4]}return(g=t[5])&&(b=e[5],e[5]=b?i(b,g,t[6]):g,e[6]=b?o(e[5],a):t[6]),(g=t[7])&&(e[7]=g),d&f&&(e[8]=null==e[8]?t[8]:p(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=v,e}},function(e,t,n){var r=n(133),i=n(117),o=n(34),a=1;e.exports=function(e,t,n,s){var u=t&a,c=i(e);return function t(){for(var i=-1,a=arguments.length,l=-1,f=s.length,h=Array(f+a),p=this&&this!==o&&this instanceof t?c:e;++l<f;)h[l]=s[l];for(;a--;)h[l++]=arguments[++i];return r(p,u?n:this,h)}}},function(e,t,n){var r=n(90),i=n(96),o=Math.min;e.exports=function(e,t){for(var n=e.length,a=o(t.length,n),s=r(e);a--;){var u=t[a];e[a]=i(u,n)?s[u]:void 0}return e}},function(e,t,n){var r=n(92),i=n(129),o=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];e.exports=function(e,t){return r(o,function(n){var r="_."+n[0];t&n[1]&&!i(e,r)&&e.push(r)}),e.sort()}},function(e,t){var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;e.exports=function(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?"& ":"")+t[i],t=t.join(r>2?", ":" "),e.replace(n,"{\n/* [wrapped with "+t+"] */\n")}},function(e,t){var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;e.exports=function(e){var t=e.match(n);return t?t[1].split(r):[]}},function(e,t,n){var r=n(168),i=n(165),o=n(90);e.exports=function(e){if(e instanceof r)return e.clone();var t=new i(e.__wrapped__,e.__chain__);return t.__actions__=o(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}},function(e,t,n){var r=n(168),i=n(165),o=n(167),a=n(18),s=n(30),u=n(511),c=Object.prototype.hasOwnProperty;function l(e){if(s(e)&&!a(e)&&!(e instanceof r)){if(e instanceof i)return e;if(c.call(e,"__wrapped__"))return u(e)}return new i(e)}l.prototype=o.prototype,l.prototype.constructor=l,e.exports=l},function(e,t){e.exports={}},function(e,t){e.exports=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}},function(e,t,n){var r=n(133),i=n(117),o=n(236),a=n(233),s=n(164),u=n(116),c=n(34);e.exports=function(e,t,n){var l=i(e);return function i(){for(var f=arguments.length,h=Array(f),p=f,d=s(i);p--;)h[p]=arguments[p];var v=f<3&&h[0]!==d&&h[f-1]!==d?[]:u(h,d);return(f-=v.length)<n?a(e,t,o,i.placeholder,void 0,h,v,void 0,void 0,n-f):r(this&&this!==c&&this instanceof i?l:e,this,h)}}},function(e,t,n){var r=n(117),i=n(34),o=1;e.exports=function(e,t,n){var a=t&o,s=r(e);return function t(){return(this&&this!==i&&this instanceof t?s:e).apply(a?n:this,arguments)}}},function(e,t,n){var r=n(118),i=128;e.exports=function(e,t,n){return t=n?void 0:t,t=e&&null==t?e.length:t,r(e,i,void 0,void 0,void 0,void 0,t)}},function(e,t,n){e.exports={ary:n(517),assign:n(227),clone:n(504),curry:n(486),forEach:n(92),isArray:n(18),isError:n(485),isFunction:n(45),isWeakMap:n(484),iteratee:n(483),keys:n(121),rearg:n(482),toInteger:n(48),toPath:n(480)}},function(e,t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.placeholder={bind:!0,bindKey:!0,curry:!0,curryRight:!0,partial:!0,partialRight:!0},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,n=t.aliasToReal,r={};for(var i in n){var o=n[i];e.call(r,o)?r[o].push(i):r[o]=[i]}return r}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},function(e,t,n){var r=n(519),i=n(21),o=Array.prototype.push;function a(e,t){return 2==t?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function u(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}e.exports=function e(t,n,c,l){var f,h="function"==typeof n,p=n===Object(n);if(p&&(l=c,c=n,n=void 0),null==c)throw new TypeError;l||(l={});var d={cap:!("cap"in l)||l.cap,curry:!("curry"in l)||l.curry,fixed:!("fixed"in l)||l.fixed,immutable:!("immutable"in l)||l.immutable,rearg:!("rearg"in l)||l.rearg},v="curry"in l&&l.curry,m="fixed"in l&&l.fixed,y="rearg"in l&&l.rearg,g=h?c:i,b=h?c.runInContext():void 0,_=h?c:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},w=_.ary,E=_.assign,x=_.clone,C=_.curry,T=_.forEach,k=_.isArray,S=_.isError,A=_.isFunction,N=_.isWeakMap,O=_.keys,I=_.rearg,P=_.toInteger,R=_.toPath,D=O(r.aryMethod),M={castArray:function(e){return function(){var t=arguments[0];return k(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return d.cap&&"number"==typeof n?(n=n>2?n-2:1,i&&i<=n?r:a(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!A(n))return e(n,Object(t));var r=[];return T(O(t),function(e){A(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),T(r,function(e){var t=e[1];A(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},nthArg:function(e){return function(t){var n=t<0?1:P(t)+1;return C(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return C(e(t,n),r)}},runInContext:function(n){return function(r){return e(t,n(r),l)}}};function L(e,t){if(d.cap){var n=r.iterateeRearg[e];if(n)return function(e,t){return q(e,function(e){var n=t.length;return function(e,t){return 2==t?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}(I(a(e,n),t),n)})}(t,n);var i=!h&&r.iterateeAry[e];if(i)return function(e,t){return q(e,function(e){return"function"==typeof e?a(e,t):e})}(t,i)}return t}function j(e,t,n){if(d.fixed&&(m||!r.skipFixed[e])){var i=r.methodSpread[e],a=i&&i.start;return void 0===a?w(t,n):function(e,t){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var a=i[t],s=i.slice(0,t);return a&&o.apply(s,a),t!=r&&o.apply(s,i.slice(t+1)),e.apply(this,s)}}(t,a)}return t}function F(e,t,n){return d.rearg&&n>1&&(y||!r.skipRearg[e])?I(t,r.methodRearg[e]||r.aryRearg[n]):t}function U(e,t){for(var n=-1,r=(t=R(t)).length,i=r-1,o=x(Object(e)),a=o;null!=a&&++n<r;){var s=t[n],u=a[s];null==u||A(u)||S(u)||N(u)||(a[s]=x(n==i?u:Object(u))),a=a[s]}return o}function B(t,n){var i=r.aliasToReal[t]||t,o=r.remap[i]||i,a=l;return function(t){var r=h?b:_,s=h?b[o]:n,u=E(E({},a),t);return e(r,i,s,u)}}function q(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=d.rearg?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function V(e,t){var n,i=r.aliasToReal[e]||e,o=t,a=M[i];return a?o=a(t):d.immutable&&(r.mutate.array[i]?o=u(t,s):r.mutate.object[i]?o=u(t,function(e){return function(t){return e({},t)}}(t)):r.mutate.set[i]&&(o=u(t,U))),T(D,function(e){return T(r.aryMethod[e],function(t){if(i==t){var a=r.methodSpread[i],s=a&&a.afterRearg;return n=s?j(i,F(i,o,e),e):F(i,j(i,o,e),e),n=L(i,n),u=n,c=e,n=v||d.curry&&c>1?C(u,c):u,!1}var u,c}),!n}),n||(n=o),n==t&&(n=v?C(n,1):function(){return t.apply(this,arguments)}),n.convert=B(i,t),r.placeholder[i]&&(f=!0,n.placeholder=t.placeholder=g),n}if(!p)return V(n,c);var W=c,z=[];return T(D,function(e){T(r.aryMethod[e],function(e){var t=W[r.remap[e]||e];t&&z.push([e,V(e,t)])})}),T(O(W),function(e){var t=W[e];if("function"==typeof t){for(var n=z.length;n--;)if(z[n][0]==e)return;t.convert=B(e,t),z.push([e,t])}}),T(z,function(e){W[e[0]]=e[1]}),W.convert=function(e){return W.runInContext.convert(e)(void 0)},f&&(W.placeholder=g),T(O(W),function(e){T(r.realToAlias[e]||[],function(t){W[t]=W[e]})}),W}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},function(e,t,n){var r=n(239),i=n(43)("iterator"),o=n(81);e.exports=n(26).isIterable=function(e){var t=Object(e);return void 0!==t[i]||"@@iterator"in t||o.hasOwnProperty(r(t))}},function(e,t,n){n(184),n(142),e.exports=n(522)},function(e,t,n){e.exports=n(523)},function(e,t,n){var r=n(43)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},function(e,t,n){"use strict";var r=n(59),i=n(100);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(81),i=n(43)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(58);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var o=e.return;throw void 0!==o&&r(o.call(e)),t}}},function(e,t,n){"use strict";var r=n(196),i=n(51),o=n(98),a=n(528),s=n(527),u=n(279),c=n(526),l=n(240);i(i.S+i.F*!n(525)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,f,h=o(e),p="function"==typeof this?this:Array,d=arguments.length,v=d>1?arguments[1]:void 0,m=void 0!==v,y=0,g=l(h);if(m&&(v=r(v,d>2?arguments[2]:void 0,2)),void 0==g||p==Array&&s(g))for(n=new p(t=u(h.length));t>y;y++)c(n,y,m?v(h[y],y):h[y]);else for(f=g.call(h),n=new p;!(i=f.next()).done;y++)c(n,y,m?a(f,v,[i.value,y],!0):i.value);return n.length=y,n}})},function(e,t,n){n(142),n(529),e.exports=n(26).Array.from},function(e,t,n){e.exports=n(530)},function(e,t,n){var r=n(531),i=n(524);e.exports=function(e){if(i(Object(e))||"[object Arguments]"===Object.prototype.toString.call(e))return r(e)}},function(e,t){e.exports=function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}},function(e,t,n){var r=n(65);e.exports=function(e,t){var n;return r(e,function(e,r,i){return!(n=t(e,r,i))}),!!n}},function(e,t,n){var r=n(35),i=n(39),o=n(28);e.exports=function(e){return function(t,n,a){var s=Object(t);if(!i(t)){var u=r(n,3);t=o(t),n=function(e){return u(s[e],e,s)}}var c=e(t,n,a);return c>-1?s[u?t[c]:c]:void 0}}},function(e,t,n){var r=n(65);e.exports=function(e,t,n,i){return r(e,function(e,r,o){t(i,e,n(e),o)}),i}},function(e,t){e.exports=function(e,t,n,r){for(var i=-1,o=null==e?0:e.length;++i<o;){var a=e[i];t(r,a,n(a),e)}return r}},function(e,t,n){var r=n(537),i=n(536),o=n(35),a=n(18);e.exports=function(e,t){return function(n,s){var u=a(n)?r:i,c=t?t():{};return u(n,e,o(s,2),c)}}},function(e,t){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}},function(e,t,n){var r=n(58),i=n(240);e.exports=n(26).getIterator=function(e){var t=i(e);if("function"!=typeof t)throw TypeError(e+" is not iterable!");return r(t.call(e))}},function(e,t,n){n(184),n(142),e.exports=n(540)},function(e,t,n){e.exports=n(541)},function(e,t,n){var r=n(542);e.exports=function(e,t){var n=[],i=!0,o=!1,a=void 0;try{for(var s,u=r(e);!(i=(s=u.next()).done)&&(n.push(s.value),!t||n.length!==t);i=!0);}catch(e){o=!0,a=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw a}}return n}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t,n){var r=n(126);e.exports=function(e){return r(e)?e:[]}},function(e,t,n){var r=n(130),i=n(129),o=n(175),a=n(50),s=n(66),u=n(127),c=Math.min;e.exports=function(e,t,n){for(var l=n?o:i,f=e[0].length,h=e.length,p=h,d=Array(h),v=1/0,m=[];p--;){var y=e[p];p&&t&&(y=a(y,s(t))),v=c(y.length,v),d[p]=!n&&(t||f>=120&&y.length>=120)?new r(p&&y):void 0}y=e[0];var g=-1,b=d[0];e:for(;++g<f&&m.length<v;){var _=y[g],w=t?t(_):_;if(_=n||0!==_?_:0,!(b?u(b,w):l(m,w,n))){for(p=h;--p;){var E=d[p];if(!(E?u(E,w):l(e[p],w,n)))continue e}b&&b.push(w),m.push(_)}}return m}},function(e,t,n){var r=n(50),i=n(546),o=n(56),a=n(545),s=o(function(e){var t=r(e,a);return t.length&&t[0]===e[0]?i(t):[]});e.exports=s},function(e,t,n){var r=n(132);e.exports=function(e){return function(t){return r(t,e)}}},function(e,t,n){var r=n(242),i=n(548),o=n(180),a=n(67);e.exports=function(e){return o(e)?r(a(e)):i(e)}},function(e,t){e.exports=function(e,t){return null!=e&&t in Object(e)}},function(e,t,n){var r=n(170),i=n(20),o=n(243),a=n(180),s=n(245),u=n(244),c=n(67),l=1,f=2;e.exports=function(e,t){return a(e)&&s(t)?u(c(e),t):function(n){var a=i(n,e);return void 0===a&&a===t?o(n,e):r(t,a,l|f)}}},function(e,t,n){var r=n(245),i=n(28);e.exports=function(e){for(var t=i(e),n=t.length;n--;){var o=t[n],a=e[o];t[n]=[o,a,r(a)]}return t}},function(e,t,n){var r=n(68)(n(34),"Promise");e.exports=r},function(e,t,n){var r=n(68)(n(34),"DataView");e.exports=r},function(e,t,n){var r=n(250),i=1,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,a,s,u){var c=n&i,l=r(e),f=l.length;if(f!=r(t).length&&!c)return!1;for(var h=f;h--;){var p=l[h];if(!(c?p in t:o.call(t,p)))return!1}var d=u.get(e);if(d&&u.get(t))return d==t;var v=!0;u.set(e,t),u.set(t,e);for(var m=c;++h<f;){var y=e[p=l[h]],g=t[p];if(a)var b=c?a(g,y,p,t,e,u):a(y,g,p,e,t,u);if(!(void 0===b?y===g||s(y,g,n,a,u):b)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var _=e.constructor,w=t.constructor;_!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof _&&_ instanceof _&&"function"==typeof w&&w instanceof w)&&(v=!1)}return u.delete(e),u.delete(t),v}},function(e,t,n){var r=n(70),i=n(252),o=n(137),a=n(254),s=n(251),u=n(120),c=1,l=2,f="[object Boolean]",h="[object Date]",p="[object Error]",d="[object Map]",v="[object Number]",m="[object RegExp]",y="[object Set]",g="[object String]",b="[object Symbol]",_="[object ArrayBuffer]",w="[object DataView]",E=r?r.prototype:void 0,x=E?E.valueOf:void 0;e.exports=function(e,t,n,r,E,C,T){switch(n){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case _:return!(e.byteLength!=t.byteLength||!C(new i(e),new i(t)));case f:case h:case v:return o(+e,+t);case p:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+"";case d:var k=s;case y:var S=r&c;if(k||(k=u),e.size!=t.size&&!S)return!1;var A=T.get(e);if(A)return A==t;r|=l,T.set(e,t);var N=a(k(e),k(t),r,E,C,T);return T.delete(e),N;case b:if(x)return x.call(e)==x.call(t)}return!1}},function(e,t,n){var r=n(171),i=n(254),o=n(556),a=n(555),s=n(55),u=n(18),c=n(94),l=n(123),f=1,h="[object Arguments]",p="[object Array]",d="[object Object]",v=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,y,g){var b=u(e),_=u(t),w=b?p:s(e),E=_?p:s(t),x=(w=w==h?d:w)==d,C=(E=E==h?d:E)==d,T=w==E;if(T&&c(e)){if(!c(t))return!1;b=!0,x=!1}if(T&&!x)return g||(g=new r),b||l(e)?i(e,t,n,m,y,g):o(e,t,w,n,m,y,g);if(!(n&f)){var k=x&&v.call(e,"__wrapped__"),S=C&&v.call(t,"__wrapped__");if(k||S){var A=k?e.value():e,N=S?t.value():t;return g||(g=new r),y(A,N,n,m,g)}}return!!T&&(g||(g=new r),a(e,t,n,m,y,g))}},function(e,t,n){var r=n(139),i=n(178),o=n(179),a=200;e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var s=n.__data__;if(!i||s.length<a-1)return s.push([e,t]),this.size=++n.size,this;n=this.__data__=new o(s)}return n.set(e,t),this.size=n.size,this}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t,n){var r=n(139);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t,n){var r=n(171),i=n(170),o=1,a=2;e.exports=function(e,t,n,s){var u=n.length,c=u,l=!s;if(null==e)return!c;for(e=Object(e);u--;){var f=n[u];if(l&&f[2]?f[1]!==e[f[0]]:!(f[0]in e))return!1}for(;++u<c;){var h=(f=n[u])[0],p=e[h],d=f[1];if(l&&f[2]){if(void 0===p&&!(h in e))return!1}else{var v=new r;if(s)var m=s(p,d,h,e,t,v);if(!(void 0===m?i(d,p,o|a,s,v):m))return!1}}return!0}},function(e,t,n){var r=n(563),i=n(552),o=n(244);e.exports=function(e){var t=i(e);return 1==t.length&&t[0][2]?o(t[0][0],t[0][1]):function(n){return n===e||r(n,e,t)}}},function(e,t,n){var r=n(39);e.exports=function(e,t){return function(n,i){if(null==n)return n;if(!r(n))return e(n,i);for(var o=n.length,a=t?o:-1,s=Object(n);(t?a--:++a<o)&&!1!==i(s[a],a,s););return n}}},function(e,t,n){var r=n(255)(Object.keys,Object);e.exports=r},function(e,t,n){var r=n(42),i=n(177),o=n(30),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&i(e.length)&&!!a[r(e)]}},function(e,t){e.exports=function(){return!1}},function(e,t){e.exports=function(e){return function(t,n,r){for(var i=-1,o=Object(t),a=r(t),s=a.length;s--;){var u=a[e?s:++i];if(!1===n(o[u],u,o))break}return t}}},function(e,t,n){var r=n(569)();e.exports=r},function(e,t,n){var r=n(65);e.exports=function(e,t){var n=[];return r(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}},function(e,t,n){var r=n(259),i=n(135),o=n(48),a=n(44);e.exports=function(e,t,n){return e=a(e),n=null==n?0:r(o(n),0,e.length),t=i(t),e.slice(n,n+t.length)==t}},function(e,t,n){var r=n(70),i=n(134),o=n(18),a=r?r.isConcatSpreadable:void 0;e.exports=function(e){return o(e)||i(e)||!!(a&&e&&e[a])}},function(e,t){e.exports=function(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}},function(e,t){e.exports=function(e){return e!=e}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t){var n="__lodash_hash_undefined__";e.exports=function(e){return this.__data__.set(e,n),this}},function(e,t,n){var r=n(98),i=n(99);n(181)("keys",function(){return function(e){return i(r(e))}})},function(e,t,n){n(578),e.exports=n(26).Object.keys},function(e,t,n){n(275),e.exports=n(26).Object.getOwnPropertySymbols},function(e,t,n){var r=n(72),i=n(141).f;n(181)("getOwnPropertyDescriptor",function(){return function(e,t){return i(r(e),t)}})},function(e,t,n){n(581);var r=n(26).Object;e.exports=function(e,t){return r.getOwnPropertyDescriptor(e,t)}},function(e,t){e.exports=function(e){return function(){return e}}},function(e,t,n){var r=n(583),i=n(266),o=n(49),a=i?function(e,t){return i(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:o;e.exports=a},function(e,t,n){var r=n(132),i=n(131);e.exports=function(e,t){return t.length<2?e:r(e,i(t,0,-1))}},function(e,t){e.exports=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}},function(e,t,n){var r=n(133),i=n(97),o=n(586),a=n(585),s=n(67);e.exports=function(e,t,n){t=i(t,e);var u=null==(e=a(e,t))?e:e[s(o(t))];return null==u?void 0:r(u,e,n)}},function(e,t,n){var r=n(42),i=n(30),o="[object Arguments]";e.exports=function(e){return i(e)&&r(e)==o}},function(e,t,n){var r=n(136);e.exports=function(e,t){var n=r(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this}},function(e,t,n){var r=n(136);e.exports=function(e){return r(this,e).has(e)}},function(e,t,n){var r=n(136);e.exports=function(e){return r(this,e).get(e)}},function(e,t){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},function(e,t,n){var r=n(136);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},function(e,t,n){var r=n(138);e.exports=function(e,t){var n=this.__data__,i=r(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this}},function(e,t,n){var r=n(138);e.exports=function(e){return r(this.__data__,e)>-1}},function(e,t,n){var r=n(138);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},function(e,t,n){var r=n(138),i=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0||(n==t.length-1?t.pop():i.call(t,n,1),--this.size,0))}},function(e,t){e.exports=function(){this.__data__=[],this.size=0}},function(e,t,n){var r=n(140),i="__lodash_hash_undefined__";e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?i:t,this}},function(e,t,n){var r=n(140),i=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:i.call(t,e)}},function(e,t,n){var r=n(140),i="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return n===i?void 0:n}return o.call(t,e)?t[e]:void 0}},function(e,t){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(34)["__core-js_shared__"];e.exports=r},function(e,t,n){var r,i=n(604),o=(r=/[^.]+$/.exec(i&&i.keys&&i.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!o&&o in e}},function(e,t,n){var r=n(45),i=n(605),o=n(40),a=n(268),s=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,h=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||i(e))&&(r(e)?h:s).test(a(e))}},function(e,t,n){var r=n(140);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(e,t,n){var r=n(607),i=n(602),o=n(601),a=n(600),s=n(599);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}u.prototype.clear=r,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=s,e.exports=u},function(e,t,n){var r=n(608),i=n(139),o=n(178);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(o||i),string:new r}}},function(e,t,n){var r=n(269),i=500;e.exports=function(e){var t=r(e,function(e){return n.size===i&&n.clear(),e}),n=t.cache;return t}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r=n(70),i=Object.prototype,o=i.hasOwnProperty,a=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=o.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var i=a.call(e);return r&&(t?e[s]=n:delete e[s]),i}},function(e,t){var n=Object.prototype.hasOwnProperty;e.exports=function(e,t){return null!=e&&n.call(e,t)}},function(e,t,n){var r=n(273);function i(t,n){return e.exports=i=r||function(e,t){return e.__proto__=t,e},i(t,n)}e.exports=i},function(e,t,n){var r=n(51);r(r.S,"Object",{create:n(187)})},function(e,t,n){n(615);var r=n(26).Object;e.exports=function(e,t){return r.create(e,t)}},function(e,t,n){e.exports=n(616)},function(e,t,n){var r=n(74),i=n(58),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(196)(Function.call,n(141).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){var r=n(51);r(r.S,"Object",{setPrototypeOf:n(618).set})},function(e,t,n){n(619),e.exports=n(26).Object.setPrototypeOf},function(e,t,n){var r=n(98),i=n(185);n(181)("getPrototypeOf",function(){return function(e){return i(r(e))}})},function(e,t,n){n(621),e.exports=n(26).Object.getPrototypeOf},function(e,t,n){e.exports=n(622)},function(e,t,n){n(182)("observable")},function(e,t,n){n(182)("asyncIterator")},function(e,t){},function(e,t,n){var r=n(72),i=n(274).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?function(e){try{return i(e)}catch(e){return a.slice()}}(e):i(r(e))}},function(e,t,n){var r=n(194);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t,n){var r=n(99),i=n(188),o=n(143);e.exports=function(e){var t=r(e),n=i.f;if(n)for(var a,s=n(e),u=o.f,c=0;s.length>c;)u.call(e,a=s[c++])&&t.push(a);return t}},function(e,t,n){var r=n(144)("meta"),i=n(74),o=n(57),a=n(59).f,s=0,u=Object.isExtensible||function(){return!0},c=!n(82)(function(){return u(Object.preventExtensions({}))}),l=function(e){a(e,r,{value:{i:"O"+ ++s,w:{}}})},f=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!i(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!o(e,r)){if(!u(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!o(e,r)){if(!u(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return c&&f.NEED&&u(e)&&!o(e,r)&&l(e),e}}},function(e,t,n){n(275),n(626),n(625),n(624),e.exports=n(26).Symbol},function(e,t,n){e.exports=n(631)},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=function(){}},function(e,t,n){"use strict";var r=n(634),i=n(633),o=n(81),a=n(72);e.exports=n(277)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(60).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(59),i=n(58),o=n(99);e.exports=n(73)?Object.defineProperties:function(e,t){i(e);for(var n,a=o(t),s=a.length,u=0;s>u;)r.f(e,n=a[u++],t[n]);return e}},function(e,t,n){"use strict";var r=n(187),i=n(100),o=n(186),a={};n(83)(a,n(43)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(192),i=n(193);e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),u=r(n),c=s.length;return u<0||u>=c?e?"":void 0:(o=s.charCodeAt(u))<55296||o>56319||u+1===c||(a=s.charCodeAt(u+1))<56320||a>57343?e?s.charAt(u):o:e?s.slice(u,u+2):a-56320+(o-55296<<10)+65536}}},function(e,t,n){n(142),n(184),e.exports=n(183).f("iterator")},function(e,t,n){e.exports=n(640)},function(e,t,n){var r=n(51);r(r.S+r.F*!n(73),"Object",{defineProperty:n(59).f})},function(e,t,n){n(642);var r=n(26).Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},function(e,t,n){var r=n(192),i=Math.max,o=Math.min;e.exports=function(e,t){return(e=r(e))<0?i(e+t,0):o(e,t)}},function(e,t,n){var r=n(72),i=n(279),o=n(644);e.exports=function(e){return function(t,n,a){var s,u=r(t),c=i(u.length),l=o(a,c);if(e&&n!=n){for(;c>l;)if((s=u[l++])!=s)return!0}else for(;c>l;l++)if((e||l in u)&&u[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){"use strict";var r=n(99),i=n(188),o=n(143),a=n(98),s=n(280),u=Object.assign;e.exports=!u||n(82)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=u({},e)[n]||Object.keys(u({},t)).join("")!=r})?function(e,t){for(var n=a(e),u=arguments.length,c=1,l=i.f,f=o.f;u>c;)for(var h,p=s(arguments[c++]),d=l?r(p).concat(l(p)):r(p),v=d.length,m=0;v>m;)f.call(p,h=d[m++])&&(n[h]=p[h]);return n}:u},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(51);r(r.S+r.F,"Object",{assign:n(646)})},function(e,t,n){n(648),e.exports=n(26).Object.assign},function(e,t,n){e.exports=n(649)},function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},function(e,t,n){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){"use strict";var r=n(197),i=n(198),o=n(652);e.exports=function(){function e(e,t,n,r,a,s){s!==o&&i(!1,"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types")}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=r,n.PropTypes=n,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=u(i),a=n(106),s=n(33);u(n(427));function u(e){return e&&e.__esModule?e:{default:e}}var c=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={activeItem:"home"},n.handleItemClick=function(e,t){var r=t.name;return n.setState({activeItem:r})},n.linkTo=function(e){window.location="#"+e,n.setState({activeItem:"outreach"})},n}return function(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)}(t,i.Component),r(t,[{key:"handleChange",value:function(e){var t=this.state.pages;t.home.title=e.target.value,this.setState({pages:t})}},{key:"componentDidMount",value:function(){var e=this;setTimeout(function(){e.setState({PageItems:o.default.createElement("div",null)})},100)}},{key:"render",value:function(){var e=this,t=this.state.activeItem;return o.default.createElement("div",null,o.default.createElement(s.Menu,{basic:!0,style:{"border-radius":"0",height:"58px",width:"101%","margin-left":"-1px","margin-top":"-1px"}},o.default.createElement(s.Container,null,o.default.createElement(s.Menu.Item,{header:!0},o.default.createElement("img",{className:"ui small image",src:"logo.png"})),o.default.createElement(s.Menu.Menu,{position:"right"},o.default.createElement(a.Link,{to:"/"},o.default.createElement(s.Menu.Item,{style:{height:"100%"},name:"home",active:"home"===t,onClick:this.handleItemClick})),o.default.createElement(s.Dropdown,{item:!0,text:"Outreach",name:"home",className:"outreach"===this.state.activeItem?"ui active item dropdown":"ui item dropdown"},o.default.createElement(s.Dropdown.Menu,null,o.default.createElement(s.Dropdown.Item,{onClick:function(){e.linkTo("/Outreach/ContactUs"),e.setState({activeItem:"outreach"})}},"Contact us"),o.default.createElement(s.Dropdown.Item,{onClick:function(){return e.linkTo("/Outreach/Projects")}},"Projects"))),o.default.createElement(a.Link,{to:"/Team",style:{display:"none"}},o.default.createElement(s.Menu.Item,{style:{height:"100%"},name:"team",active:"team"===t,onClick:this.handleItemClick}))))))}}]),t}();t.default=c},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=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}}(),i=n(0),o=v(i),a=v(n(654)),s=(v(n(54)),v(n(409))),u=v(n(330)),c=v(n(322)),l=(v(n(64)),v(n(321))),f=v(n(320)),h=v(n(319)),p=v(n(318)),d=n(106);n(33);function v(e){return e&&e.__esModule?e:{default:e}}var m=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.state={visible:!1},n.toggleVisibility=function(){return n.setState({visible:!n.state.visible})},n}return function(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)}(t,i.Component),r(t,[{key:"render",value:function(){return o.default.createElement(d.HashRouter,null,o.default.createElement("div",null,o.default.createElement(a.default,null),o.default.createElement(d.Route,{exact:!0,path:"/",component:s.default}),o.default.createElement(d.Route,{exact:!0,path:"/Team",component:u.default}),o.default.createElement(d.Route,{exact:!0,path:"/Profile",component:c.default}),o.default.createElement(d.Route,{exact:!0,path:"/SidebarExample",component:p.default}),o.default.createElement(d.Route,{exact:!0,path:"/Outreach/ContactUs",component:f.default}),o.default.createElement(d.Route,{exact:!0,path:"/Outreach/Projects",component:h.default}),o.default.createElement(l.default,null)))}}]),t}();t.default=m},function(e,t,n){"use strict";e.exports=function(e){var t=(e?e.ownerDocument||e:document).defaultView||window;return!(!e||!("function"==typeof t.Node?e instanceof t.Node:"object"==typeof e&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName))}},function(e,t,n){"use strict";var r=n(656);e.exports=function(e){return r(e)&&3==e.nodeType}},function(e,t,n){"use strict";var r=n(657);e.exports=function e(t,n){return!(!t||!n)&&(t===n||!r(t)&&(r(n)?e(t,n.parentNode):"contains"in t?t.contains(n):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(n))))}},function(e,t,n){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=i},function(e,t,n){"use strict"; /** @license React v16.4.1

* react-dom.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(198),i=n(0),o=n(660),a=n(285),s=n(197),u=n(659),c=n(202),l=n(658),f=n(284);function h(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,i=0;i<t;i++)n+="&args[]="+encodeURIComponent(arguments[i+1]);r(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}i||h("227");var p={_caughtError:null,_hasCaughtError:!1,_rethrowError:null,_hasRethrowError:!1,invokeGuardedCallback:function(e,t,n,r,i,o,a,s,u){(function(e,t,n,r,i,o,a,s,u){this._hasCaughtError=!1,this._caughtError=null;var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(e){this._caughtError=e,this._hasCaughtError=!0}}).apply(p,arguments)},invokeGuardedCallbackAndCatchFirstError:function(e,t,n,r,i,o,a,s,u){if(p.invokeGuardedCallback.apply(this,arguments),p.hasCaughtError()){var c=p.clearCaughtError();p._hasRethrowError||(p._hasRethrowError=!0,p._rethrowError=c)}},rethrowCaughtError:function(){return function(){if(p._hasRethrowError){var e=p._rethrowError;throw p._rethrowError=null,p._hasRethrowError=!1,e}}.apply(p,arguments)},hasCaughtError:function(){return p._hasCaughtError},clearCaughtError:function(){if(p._hasCaughtError){var e=p._caughtError;return p._caughtError=null,p._hasCaughtError=!1,e}h("198")}};var d=null,v={};function m(){if(d)for(var e in v){var t=v[e],n=d.indexOf(e);if(-1<n||h("96",e),!g[n])for(var r in t.extractEvents||h("97",e),g[n]=t,n=t.eventTypes){var i=void 0,o=n[r],a=t,s=r;b.hasOwnProperty(s)&&h("99",s),b[s]=o;var u=o.phasedRegistrationNames;if(u){for(i in u)u.hasOwnProperty(i)&&y(u[i],a,s);i=!0}else o.registrationName?(y(o.registrationName,a,s),i=!0):i=!1;i||h("98",r,e)}}}function y(e,t,n){_[e]&&h("100",e),_[e]=t,w[e]=t.eventTypes[n].dependencies}var g=[],b={},_={},w={};function E(e){d&&h("101"),d=Array.prototype.slice.call(e),m()}function x(e){var t,n=!1;for(t in e)if(e.hasOwnProperty(t)){var r=e[t];v.hasOwnProperty(t)&&v[t]===r||(v[t]&&h("102",t),v[t]=r,n=!0)}n&&m()}var C={plugins:g,eventNameDispatchConfigs:b,registrationNameModules:_,registrationNameDependencies:w,possibleRegistrationNames:null,injectEventPluginOrder:E,injectEventPluginsByName:x},T=null,k=null,S=null;function A(e,t,n,r){t=e.type||"unknown-event",e.currentTarget=S(r),p.invokeGuardedCallbackAndCatchFirstError(t,n,void 0,e),e.currentTarget=null}function N(e,t){return null==t&&h("30"),null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function O(e,t,n){Array.isArray(e)?e.forEach(t,n):e&&t.call(n,e)}var I=null;function P(e,t){if(e){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var i=0;i<n.length&&!e.isPropagationStopped();i++)A(e,t,n[i],r[i]);else n&&A(e,t,n,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function R(e){return P(e,!0)}function D(e){return P(e,!1)}var M={injectEventPluginOrder:E,injectEventPluginsByName:x};function L(e,t){var n=e.stateNode;if(!n)return null;var r=T(n);if(!r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}return e?null:(n&&"function"!=typeof n&&h("231",t,typeof n),n)}function j(e,t){null!==e&&(I=N(I,e)),e=I,I=null,e&&(O(e,t?R:D),I&&h("95"),p.rethrowCaughtError())}function F(e,t,n,r){for(var i=null,o=0;o<g.length;o++){var a=g[o];a&&(a=a.extractEvents(e,t,n,r))&&(i=N(i,a))}j(i,!1)}var U={injection:M,getListener:L,runEventsInBatch:j,runExtractedEventsInBatch:F},B=Math.random().toString(36).slice(2),q="__reactInternalInstance$"+B,V="__reactEventHandlers$"+B;function W(e){if(e[q])return e[q];for(;!e[q];){if(!e.parentNode)return null;e=e.parentNode}return 5===(e=e[q]).tag||6===e.tag?e:null}function z(e){if(5===e.tag||6===e.tag)return e.stateNode;h("33")}function H(e){return e[V]||null}var K={precacheFiberNode:function(e,t){t[q]=e},getClosestInstanceFromNode:W,getInstanceFromNode:function(e){return!(e=e[q])||5!==e.tag&&6!==e.tag?null:e},getNodeFromInstance:z,getFiberCurrentPropsFromNode:H,updateFiberProps:function(e,t){e[V]=t}};function G(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Q(e,t,n){for(var r=[];e;)r.push(e),e=G(e);for(e=r.length;0<e--;)t(r[e],"captured",n);for(e=0;e<r.length;e++)t(r[e],"bubbled",n)}function Y(e,t,n){(t=L(e,n.dispatchConfig.phasedRegistrationNames[t]))&&(n._dispatchListeners=N(n._dispatchListeners,t),n._dispatchInstances=N(n._dispatchInstances,e))}function X(e){e&&e.dispatchConfig.phasedRegistrationNames&&Q(e._targetInst,Y,e)}function J(e){if(e&&e.dispatchConfig.phasedRegistrationNames){var t=e._targetInst;Q(t=t?G(t):null,Y,e)}}function $(e,t,n){e&&n&&n.dispatchConfig.registrationName&&(t=L(e,n.dispatchConfig.registrationName))&&(n._dispatchListeners=N(n._dispatchListeners,t),n._dispatchInstances=N(n._dispatchInstances,e))}function Z(e){e&&e.dispatchConfig.registrationName&&$(e._targetInst,null,e)}function ee(e){O(e,X)}function te(e,t,n,r){if(n&&r)e:{for(var i=n,o=r,a=0,s=i;s;s=G(s))a++;s=0;for(var u=o;u;u=G(u))s++;for(;0<a-s;)i=G(i),a--;for(;0<s-a;)o=G(o),s--;for(;a--;){if(i===o||i===o.alternate)break e;i=G(i),o=G(o)}i=null}else i=null;for(o=i,i=[];n&&n!==o&&(null===(a=n.alternate)||a!==o);)i.push(n),n=G(n);for(n=[];r&&r!==o&&(null===(a=r.alternate)||a!==o);)n.push(r),r=G(r);for(r=0;r<i.length;r++)$(i[r],"bubbled",e);for(e=n.length;0<e--;)$(n[e],"captured",t)}var ne={accumulateTwoPhaseDispatches:ee,accumulateTwoPhaseDispatchesSkipTarget:function(e){O(e,J)},accumulateEnterLeaveDispatches:te,accumulateDirectDispatches:function(e){O(e,Z)}};function re(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}var ie={animationend:re("Animation","AnimationEnd"),animationiteration:re("Animation","AnimationIteration"),animationstart:re("Animation","AnimationStart"),transitionend:re("Transition","TransitionEnd")},oe={},ae={};function se(e){if(oe[e])return oe[e];if(!ie[e])return e;var t,n=ie[e];for(t in n)if(n.hasOwnProperty(t)&&t in ae)return oe[e]=n[t];return e}o.canUseDOM&&(ae=document.createElement("div").style,"AnimationEvent"in window||(delete ie.animationend.animation,delete ie.animationiteration.animation,delete ie.animationstart.animation),"TransitionEvent"in window||delete ie.transitionend.transition);var ue=se("animationend"),ce=se("animationiteration"),le=se("animationstart"),fe=se("transitionend"),he="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pe=null;function de(){return!pe&&o.canUseDOM&&(pe="textContent"in document.documentElement?"textContent":"innerText"),pe}var ve={_root:null,_startText:null,_fallbackText:null};function me(){if(ve._fallbackText)return ve._fallbackText;var e,t,n=ve._startText,r=n.length,i=ye(),o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return ve._fallbackText=i.slice(e,1<t?1-t:void 0),ve._fallbackText}function ye(){return"value"in ve._root?ve._root.value:ve._root[de()]}var ge="dispatchConfig _targetInst nativeEvent isDefaultPrevented isPropagationStopped _dispatchListeners _dispatchInstances".split(" "),be={type:null,target:null,currentTarget:s.thatReturnsNull,eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null};function _e(e,t,n,r){for(var i in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=n,e=this.constructor.Interface)e.hasOwnProperty(i)&&((t=e[i])?this[i]=t(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?s.thatReturnsTrue:s.thatReturnsFalse,this.isPropagationStopped=s.thatReturnsFalse,this}function we(e,t,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,e,t,n,r),i}return new this(e,t,n,r)}function Ee(e){e instanceof this||h("223"),e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function xe(e){e.eventPool=[],e.getPooled=we,e.release=Ee}a(_e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=s.thatReturnsTrue)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=s.thatReturnsTrue)},persist:function(){this.isPersistent=s.thatReturnsTrue},isPersistent:s.thatReturnsFalse,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;for(t=0;t<ge.length;t++)this[ge[t]]=null}}),_e.Interface=be,_e.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return a(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=a({},r.Interface,e),n.extend=r.extend,xe(n),n},xe(_e);var Ce=_e.extend({data:null}),Te=_e.extend({data:null}),ke=[9,13,27,32],Se=o.canUseDOM&&"CompositionEvent"in window,Ae=null;o.canUseDOM&&"documentMode"in document&&(Ae=document.documentMode);var Ne=o.canUseDOM&&"TextEvent"in window&&!Ae,Oe=o.canUseDOM&&(!Se||Ae&&8<Ae&&11>=Ae),Ie=String.fromCharCode(32),Pe={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},Re=!1;function De(e,t){switch(e){case"keyup":return-1!==ke.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Me(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Le=!1;var je={eventTypes:Pe,extractEvents:function(e,t,n,r){var i=void 0,o=void 0;if(Se)e:{switch(e){case"compositionstart":i=Pe.compositionStart;break e;case"compositionend":i=Pe.compositionEnd;break e;case"compositionupdate":i=Pe.compositionUpdate;break e}i=void 0}else Le?De(e,n)&&(i=Pe.compositionEnd):"keydown"===e&&229===n.keyCode&&(i=Pe.compositionStart);return i?(Oe&&(Le||i!==Pe.compositionStart?i===Pe.compositionEnd&&Le&&(o=me()):(ve._root=r,ve._startText=ye(),Le=!0)),i=Ce.getPooled(i,t,n,r),o?i.data=o:null!==(o=Me(n))&&(i.data=o),ee(i),o=i):o=null,(e=Ne?function(e,t){switch(e){case"compositionend":return Me(t);case"keypress":return 32!==t.which?null:(Re=!0,Ie);case"textInput":return(e=t.data)===Ie&&Re?null:e;default:return null}}(e,n):function(e,t){if(Le)return"compositionend"===e||!Se&&De(e,t)?(e=me(),ve._root=null,ve._startText=null,ve._fallbackText=null,Le=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Oe?null:t.data;default:return null}}(e,n))?((t=Te.getPooled(Pe.beforeInput,t,n,r)).data=e,ee(t)):t=null,null===o?t:null===t?o:[o,t]}},Fe=null,Ue={injectFiberControlledHostComponent:function(e){Fe=e}},Be=null,qe=null;function Ve(e){if(e=k(e)){Fe&&"function"==typeof Fe.restoreControlledState||h("194");var t=T(e.stateNode);Fe.restoreControlledState(e.stateNode,e.type,t)}}function We(e){Be?qe?qe.push(e):qe=[e]:Be=e}function ze(){return null!==Be||null!==qe}function He(){if(Be){var e=Be,t=qe;if(qe=Be=null,Ve(e),t)for(e=0;e<t.length;e++)Ve(t[e])}}var Ke={injection:Ue,enqueueStateRestore:We,needsStateRestore:ze,restoreStateIfNeeded:He};function Ge(e,t){return e(t)}function Qe(e,t,n){return e(t,n)}function Ye(){}var Xe=!1;function Je(e,t){if(Xe)return e(t);Xe=!0;try{return Ge(e,t)}finally{Xe=!1,ze()&&(Ye(),He())}}var $e={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};function Ze(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!$e[e.type]:"textarea"===t}function et(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function tt(e,t){return!(!o.canUseDOM||t&&!("addEventListener"in document))&&((t=(e="on"+e)in document)||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"==typeof t[e]),t)}function nt(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function rt(e){e._valueTracker||(e._valueTracker=function(e){var t=nt(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function it(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=nt(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}var ot=i.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,at="function"==typeof Symbol&&Symbol.for,st=at?Symbol.for("react.element"):60103,ut=at?Symbol.for("react.portal"):60106,ct=at?Symbol.for("react.fragment"):60107,lt=at?Symbol.for("react.strict_mode"):60108,ft=at?Symbol.for("react.profiler"):60114,ht=at?Symbol.for("react.provider"):60109,pt=at?Symbol.for("react.context"):60110,dt=at?Symbol.for("react.async_mode"):60111,vt=at?Symbol.for("react.forward_ref"):60112,mt=at?Symbol.for("react.timeout"):60113,yt="function"==typeof Symbol&&Symbol.iterator;function gt(e){return null===e||void 0===e?null:"function"==typeof(e=yt&&e[yt]||e["@@iterator"])?e:null}function bt(e){var t=e.type;if("function"==typeof t)return t.displayName||t.name;if("string"==typeof t)return t;switch(t){case dt:return"AsyncMode";case pt:return"Context.Consumer";case ct:return"ReactFragment";case ut:return"ReactPortal";case ft:return"Profiler("+e.pendingProps.id+")";case ht:return"Context.Provider";case lt:return"StrictMode";case mt:return"Timeout"}if("object"==typeof t&&null!==t)switch(t.$$typeof){case vt:return""!==(e=t.render.displayName||t.render.name||"")?"ForwardRef("+e+")":"ForwardRef"}return null}function _t(e){var t="";do{e:switch(e.tag){case 0:case 1:case 2:case 5:var n=e._debugOwner,r=e._debugSource,i=bt(e),o=null;n&&(o=bt(n)),n=r,i="\n    in "+(i||"Unknown")+(n?" (at "+n.fileName.replace(/^.*[\\\/]/,"")+":"+n.lineNumber+")":o?" (created by "+o+")":"");break e;default:i=""}t+=i,e=e.return}while(e);return t}var wt=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,Et={},xt={};function Ct(e,t,n,r,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t}var Tt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Tt[e]=new Ct(e,0,!1,e,null)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Tt[t]=new Ct(t,1,!1,e[1],null)}),["contentEditable","draggable","spellCheck","value"].forEach(function(e){Tt[e]=new Ct(e,2,!1,e.toLowerCase(),null)}),["autoReverse","externalResourcesRequired","preserveAlpha"].forEach(function(e){Tt[e]=new Ct(e,2,!1,e,null)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Tt[e]=new Ct(e,3,!1,e.toLowerCase(),null)}),["checked","multiple","muted","selected"].forEach(function(e){Tt[e]=new Ct(e,3,!0,e.toLowerCase(),null)}),["capture","download"].forEach(function(e){Tt[e]=new Ct(e,4,!1,e.toLowerCase(),null)}),["cols","rows","size","span"].forEach(function(e){Tt[e]=new Ct(e,6,!1,e.toLowerCase(),null)}),["rowSpan","start"].forEach(function(e){Tt[e]=new Ct(e,5,!1,e.toLowerCase(),null)});var kt=/[\-:]([a-z])/g;function St(e){return e[1].toUpperCase()}function At(e,t,n,r){var i=Tt.hasOwnProperty(t)?Tt[t]:null;(null!==i?0===i.type:!r&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,n,r){if(null===t||void 0===t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!xt.hasOwnProperty(e)||!Et.hasOwnProperty(e)&&(wt.test(e)?xt[e]=!0:(Et[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}function Nt(e,t){var n=t.checked;return a({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function Ot(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Mt(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function It(e,t){null!=(t=t.checked)&&At(e,"checked",t,!1)}function Pt(e,t){It(e,t);var n=Mt(t.value);null!=n&&("number"===t.type?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n)),t.hasOwnProperty("value")?Dt(e,t.type,n):t.hasOwnProperty("defaultValue")&&Dt(e,t.type,Mt(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Rt(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){t=""+e._wrapperState.initialValue;var r=e.value;n||t===r||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!e.defaultChecked,e.defaultChecked=!e.defaultChecked,""!==n&&(e.name=n)}function Dt(e,t,n){"number"===t&&e.ownerDocument.activeElement===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}function Mt(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(kt,St);Tt[t]=new Ct(t,1,!1,e,null)}),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(kt,St);Tt[t]=new Ct(t,1,!1,e,"http://www.w3.org/1999/xlink")}),["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(kt,St);Tt[t]=new Ct(t,1,!1,e,"http://www.w3.org/XML/1998/namespace")}),Tt.tabIndex=new Ct("tabIndex",1,!1,"tabindex",null);var Lt={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function jt(e,t,n){return(e=_e.getPooled(Lt.change,e,t,n)).type="change",We(n),ee(e),e}var Ft=null,Ut=null;function Bt(e){j(e,!1)}function qt(e){if(it(z(e)))return e}function Vt(e,t){if("change"===e)return t}var Wt=!1;function zt(){Ft&&(Ft.detachEvent("onpropertychange",Ht),Ut=Ft=null)}function Ht(e){"value"===e.propertyName&&qt(Ut)&&Je(Bt,e=jt(Ut,e,et(e)))}function Kt(e,t,n){"focus"===e?(zt(),Ut=n,(Ft=t).attachEvent("onpropertychange",Ht)):"blur"===e&&zt()}function Gt(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return qt(Ut)}function Qt(e,t){if("click"===e)return qt(t)}function Yt(e,t){if("input"===e||"change"===e)return qt(t)}o.canUseDOM&&(Wt=tt("input")&&(!document.documentMode||9<document.documentMode));var Xt={eventTypes:Lt,_isInputEventSupported:Wt,extractEvents:function(e,t,n,r){var i=t?z(t):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Vt:Ze(i)?Wt?o=Yt:(o=Gt,a=Kt):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=Qt),o&&(o=o(e,t)))return jt(o,n,r);a&&a(e,i,t),"blur"===e&&(e=i._wrapperState)&&e.controlled&&"number"===i.type&&Dt(i,"number",i.value)}},Jt=_e.extend({view:null,detail:null}),$t={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Zt(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=$t[e])&&!!t[e]}function en(){return Zt}var tn=Jt.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:en,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)}}),nn=tn.extend({pointerId:null,width:null,height:null,pressure:null,tiltX:null,tiltY:null,pointerType:null,isPrimary:null}),rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},on={eventTypes:rn,extractEvents:function(e,t,n,r){var i="mouseover"===e||"pointerover"===e,o="mouseout"===e||"pointerout"===e;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=t,t=(t=n.relatedTarget||n.toElement)?W(t):null):o=null,o===t)return null;var a=void 0,s=void 0,u=void 0,c=void 0;return"mouseout"===e||"mouseover"===e?(a=tn,s=rn.mouseLeave,u=rn.mouseEnter,c="mouse"):"pointerout"!==e&&"pointerover"!==e||(a=nn,s=rn.pointerLeave,u=rn.pointerEnter,c="pointer"),e=null==o?i:z(o),i=null==t?i:z(t),(s=a.getPooled(s,o,n,r)).type=c+"leave",s.target=e,s.relatedTarget=i,(n=a.getPooled(u,t,n,r)).type=c+"enter",n.target=i,n.relatedTarget=e,te(s,n,o,t),[s,n]}};function an(e){var t=e;if(e.alternate)for(;t.return;)t=t.return;else{if(0!=(2&t.effectTag))return 1;for(;t.return;)if(0!=(2&(t=t.return).effectTag))return 1}return 3===t.tag?2:3}function sn(e){2!==an(e)&&h("188")}function un(e){var t=e.alternate;if(!t)return 3===(t=an(e))&&h("188"),1===t?null:e;for(var n=e,r=t;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return sn(i),e;if(a===r)return sn(i),t;a=a.sibling}h("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a){for(s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}a||h("189")}}n.alternate!==r&&h("190")}return 3!==n.tag&&h("188"),n.stateNode.current===n?e:t}function cn(e){if(!(e=un(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}var ln=_e.extend({animationName:null,elapsedTime:null,pseudoElement:null}),fn=_e.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),hn=Jt.extend({relatedTarget:null});function pn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var dn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},vn={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"},mn=Jt.extend({key:function(e){if(e.key){var t=dn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=pn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?vn[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:en,charCode:function(e){return"keypress"===e.type?pn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?pn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),yn=tn.extend({dataTransfer:null}),gn=Jt.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:en}),bn=_e.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),_n=tn.extend({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}),wn=[["abort","abort"],[ue,"animationEnd"],[ce,"animationIteration"],[le,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[fe,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],En={},xn={};function Cn(e,t){var n=e[0],r="on"+((e=e[1])[0].toUpperCase()+e.slice(1));t={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:t},En[e]=t,xn[n]=t}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach(function(e){Cn(e,!0)}),wn.forEach(function(e){Cn(e,!1)});var Tn={eventTypes:En,isInteractiveTopLevelEventType:function(e){return void 0!==(e=xn[e])&&!0===e.isInteractive},extractEvents:function(e,t,n,r){var i=xn[e];if(!i)return null;switch(e){case"keypress":if(0===pn(n))return null;case"keydown":case"keyup":e=mn;break;case"blur":case"focus":e=hn;break;case"click":if(2===n.button)return null;case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=tn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=yn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=gn;break;case ue:case ce:case le:e=ln;break;case fe:e=bn;break;case"scroll":e=Jt;break;case"wheel":e=_n;break;case"copy":case"cut":case"paste":e=fn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=nn;break;default:e=_e}return ee(t=e.getPooled(i,t,n,r)),t}},kn=Tn.isInteractiveTopLevelEventType,Sn=[];function An(e){var t=e.targetInst;do{if(!t){e.ancestors.push(t);break}var n;for(n=t;n.return;)n=n.return;if(!(n=3!==n.tag?null:n.stateNode.containerInfo))break;e.ancestors.push(t),t=W(n)}while(t);for(n=0;n<e.ancestors.length;n++)t=e.ancestors[n],F(e.topLevelType,t,e.nativeEvent,et(e.nativeEvent))}var Nn=!0;function On(e){Nn=!!e}function In(e,t){if(!t)return null;var n=(kn(e)?Rn:Dn).bind(null,e);t.addEventListener(e,n,!1)}function Pn(e,t){if(!t)return null;var n=(kn(e)?Rn:Dn).bind(null,e);t.addEventListener(e,n,!0)}function Rn(e,t){Qe(Dn,e,t)}function Dn(e,t){if(Nn){var n=et(t);if(null===(n=W(n))||"number"!=typeof n.tag||2===an(n)||(n=null),Sn.length){var r=Sn.pop();r.topLevelType=e,r.nativeEvent=t,r.targetInst=n,e=r}else e={topLevelType:e,nativeEvent:t,targetInst:n,ancestors:[]};try{Je(An,e)}finally{e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>Sn.length&&Sn.push(e)}}}var Mn={get _enabled(){return Nn},setEnabled:On,isEnabled:function(){return Nn},trapBubbledEvent:In,trapCapturedEvent:Pn,dispatchEvent:Dn},Ln={},jn=0,Fn="_reactListenersID"+(""+Math.random()).slice(2);function Un(e){return Object.prototype.hasOwnProperty.call(e,Fn)||(e[Fn]=jn++,Ln[e[Fn]]={}),Ln[e[Fn]]}function Bn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qn(e,t){var n,r=Bn(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Bn(r)}}function Vn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var Wn=o.canUseDOM&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Hn=null,Kn=null,Gn=null,Qn=!1;function Yn(e,t){if(Qn||null==Hn||Hn!==u())return null;var n=Hn;return"selectionStart"in n&&Vn(n)?n={start:n.selectionStart,end:n.selectionEnd}:window.getSelection?n={anchorNode:(n=window.getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}:n=void 0,Gn&&c(Gn,n)?null:(Gn=n,(e=_e.getPooled(zn.select,Kn,e,t)).type="select",e.target=Hn,ee(e),e)}var Xn={eventTypes:zn,extractEvents:function(e,t,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){e:{o=Un(o),i=w.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break e}}o=!0}i=!o}if(i)return null;switch(o=t?z(t):window,e){case"focus":(Ze(o)||"true"===o.contentEditable)&&(Hn=o,Kn=t,Gn=null);break;case"blur":Gn=Kn=Hn=null;break;case"mousedown":Qn=!0;break;case"contextmenu":case"mouseup":return Qn=!1,Yn(n,r);case"selectionchange":if(Wn)break;case"keydown":case"keyup":return Yn(n,r)}return null}};M.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin TapEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),T=K.getFiberCurrentPropsFromNode,k=K.getInstanceFromNode,S=K.getNodeFromInstance,M.injectEventPluginsByName({SimpleEventPlugin:Tn,EnterLeaveEventPlugin:on,ChangeEventPlugin:Xt,SelectEventPlugin:Xn,BeforeInputEventPlugin:je});var Jn="function"==typeof requestAnimationFrame?requestAnimationFrame:void 0,$n=Date,Zn=setTimeout,er=clearTimeout,tr=void 0;if("object"==typeof performance&&"function"==typeof performance.now){var nr=performance;tr=function(){return nr.now()}}else tr=function(){return $n.now()};var rr=void 0,ir=void 0;if(o.canUseDOM){var or="function"==typeof Jn?Jn:function(){h("276")},ar=null,sr=null,ur=-1,cr=!1,lr=!1,fr=0,hr=33,pr=33,dr={didTimeout:!1,timeRemaining:function(){var e=fr-tr();return 0<e?e:0}},vr=function(e,t){var n=e.scheduledCallback,r=!1;try{n(t),r=!0}finally{ir(e),r||(cr=!0,window.postMessage(mr,"*"))}},mr="__reactIdleCallback$"+Math.random().toString(36).slice(2);window.addEventListener("message",function(e){if(e.source===window&&e.data===mr&&(cr=!1,null!==ar)){if(null!==ar){var t=tr();if(!(-1===ur||ur>t)){e=-1;for(var n=[],r=ar;null!==r;){var i=r.timeoutTime;-1!==i&&i<=t?n.push(r):-1!==i&&(-1===e||i<e)&&(e=i),r=r.next}if(0<n.length)for(dr.didTimeout=!0,t=0,r=n.length;t<r;t++)vr(n[t],dr);ur=e}}for(e=tr();0<fr-e&&null!==ar;)e=ar,dr.didTimeout=!1,vr(e,dr),e=tr();null===ar||lr||(lr=!0,or(yr))}},!1);var yr=function(e){lr=!1;var t=e-fr+pr;t<pr&&hr<pr?(8>t&&(t=8),pr=t<hr?hr:t):hr=t,fr=e+pr,cr||(cr=!0,window.postMessage(mr,"*"))};rr=function(e,t){var n=-1;return null!=t&&"number"==typeof t.timeout&&(n=tr()+t.timeout),(-1===ur||-1!==n&&n<ur)&&(ur=n),e={scheduledCallback:e,timeoutTime:n,prev:null,next:null},null===ar?ar=e:null!==(t=e.prev=sr)&&(t.next=e),sr=e,lr||(lr=!0,or(yr)),e},ir=function(e){if(null!==e.prev||ar===e){var t=e.next,n=e.prev;e.next=null,e.prev=null,null!==t?null!==n?(n.next=t,t.prev=n):(t.prev=null,ar=t):null!==n?(n.next=null,sr=n):sr=ar=null}}}else{var gr=new Map;rr=function(e){var t={scheduledCallback:e,timeoutTime:0,next:null,prev:null},n=Zn(function(){e({timeRemaining:function(){return 1/0},didTimeout:!1})});return gr.set(e,n),t},ir=function(e){var t=gr.get(e.scheduledCallback);gr.delete(e),er(t)}}function br(e,t){return e=a({children:void 0},t),(t=function(e){var t="";return i.Children.forEach(e,function(e){null==e||"string"!=typeof e&&"number"!=typeof e||(t+=e)}),t}(t.children))&&(e.children=t),e}function _r(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+n,t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function wr(e,t){var n=t.value;e._wrapperState={initialValue:null!=n?n:t.defaultValue,wasMultiple:!!t.multiple}}function Er(e,t){return null!=t.dangerouslySetInnerHTML&&h("91"),a({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function xr(e,t){var n=t.value;null==n&&(n=t.defaultValue,null!=(t=t.children)&&(null!=n&&h("92"),Array.isArray(t)&&(1>=t.length||h("93"),t=t[0]),n=""+t),null==n&&(n="")),e._wrapperState={initialValue:""+n}}function Cr(e,t){var n=t.value;null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&(e.defaultValue=n)),null!=t.defaultValue&&(e.defaultValue=t.defaultValue)}function Tr(e){var t=e.textContent;t===e._wrapperState.initialValue&&(e.value=t)}var kr={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg"};function Sr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ar(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Sr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var Nr,Or=void 0,Ir=(Nr=function(e,t){if(e.namespaceURI!==kr.svg||"innerHTML"in e)e.innerHTML=t;else{for((Or=Or||document.createElement("div")).innerHTML="<svg>"+t+"</svg>",t=Or.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction(function(){return Nr(e,t)})}:Nr);function Pr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Rr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Dr=["Webkit","ms","Moz","O"];function Mr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=n,o=t[n];i=null==o||"boolean"==typeof o||""===o?"":r||"number"!=typeof o||0===o||Rr.hasOwnProperty(i)&&Rr[i]?(""+o).trim():o+"px","float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(Rr).forEach(function(e){Dr.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Rr[t]=Rr[e]})});var Lr=a({menuitem:!0},{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});function jr(e,t,n){t&&(Lr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML)&&h("137",e,n()),null!=t.dangerouslySetInnerHTML&&(null!=t.children&&h("60"),"object"==typeof t.dangerouslySetInnerHTML&&"__html"in t.dangerouslySetInnerHTML||h("61")),null!=t.style&&"object"!=typeof t.style&&h("62",n()))}function Fr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ur=s.thatReturns("");function Br(e,t){var n=Un(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=w[t];for(var r=0;r<t.length;r++){var i=t[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Pn("scroll",e);break;case"focus":case"blur":Pn("focus",e),Pn("blur",e),n.blur=!0,n.focus=!0;break;case"cancel":case"close":tt(i,!0)&&Pn(i,e);break;case"invalid":case"submit":case"reset":break;default:-1===he.indexOf(i)&&In(i,e)}n[i]=!0}}}function qr(e,t,n,r){return n=9===n.nodeType?n:n.ownerDocument,r===kr.html&&(r=Sr(e)),r===kr.html?"script"===e?((e=n.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):e="string"==typeof t.is?n.createElement(e,{is:t.is}):n.createElement(e):e=n.createElementNS(r,e),e}function Vr(e,t){return(9===t.nodeType?t:t.ownerDocument).createTextNode(e)}function Wr(e,t,n,r){var i=Fr(t,n);switch(t){case"iframe":case"object":In("load",e);var o=n;break;case"video":case"audio":for(o=0;o<he.length;o++)In(he[o],e);o=n;break;case"source":In("error",e),o=n;break;case"img":case"image":case"link":In("error",e),In("load",e),o=n;break;case"form":In("reset",e),In("submit",e),o=n;break;case"details":In("toggle",e),o=n;break;case"input":Ot(e,n),o=Nt(e,n),In("invalid",e),Br(r,"onChange");break;case"option":o=br(e,n);break;case"select":wr(e,n),o=a({},n,{value:void 0}),In("invalid",e),Br(r,"onChange");break;case"textarea":xr(e,n),o=Er(e,n),In("invalid",e),Br(r,"onChange");break;default:o=n}jr(t,o,Ur);var u,c=o;for(u in c)if(c.hasOwnProperty(u)){var l=c[u];"style"===u?Mr(e,l):"dangerouslySetInnerHTML"===u?null!=(l=l?l.__html:void 0)&&Ir(e,l):"children"===u?"string"==typeof l?("textarea"!==t||""!==l)&&Pr(e,l):"number"==typeof l&&Pr(e,""+l):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(_.hasOwnProperty(u)?null!=l&&Br(r,u):null!=l&&At(e,u,l,i))}switch(t){case"input":rt(e),Rt(e,n,!1);break;case"textarea":rt(e),Tr(e);break;case"option":null!=n.value&&e.setAttribute("value",n.value);break;case"select":e.multiple=!!n.multiple,null!=(t=n.value)?_r(e,!!n.multiple,t,!1):null!=n.defaultValue&&_r(e,!!n.multiple,n.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=s)}}function zr(e,t,n,r,i){var o=null;switch(t){case"input":n=Nt(e,n),r=Nt(e,r),o=[];break;case"option":n=br(e,n),r=br(e,r),o=[];break;case"select":n=a({},n,{value:void 0}),r=a({},r,{value:void 0}),o=[];break;case"textarea":n=Er(e,n),r=Er(e,r),o=[];break;default:"function"!=typeof n.onClick&&"function"==typeof r.onClick&&(e.onclick=s)}jr(t,r,Ur),t=e=void 0;var u=null;for(e in n)if(!r.hasOwnProperty(e)&&n.hasOwnProperty(e)&&null!=n[e])if("style"===e){var c=n[e];for(t in c)c.hasOwnProperty(t)&&(u||(u={}),u[t]="")}else"dangerouslySetInnerHTML"!==e&&"children"!==e&&"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&"autoFocus"!==e&&(_.hasOwnProperty(e)?o||(o=[]):(o=o||[]).push(e,null));for(e in r){var l=r[e];if(c=null!=n?n[e]:void 0,r.hasOwnProperty(e)&&l!==c&&(null!=l||null!=c))if("style"===e)if(c){for(t in c)!c.hasOwnProperty(t)||l&&l.hasOwnProperty(t)||(u||(u={}),u[t]="");for(t in l)l.hasOwnProperty(t)&&c[t]!==l[t]&&(u||(u={}),u[t]=l[t])}else u||(o||(o=[]),o.push(e,u)),u=l;else"dangerouslySetInnerHTML"===e?(l=l?l.__html:void 0,c=c?c.__html:void 0,null!=l&&c!==l&&(o=o||[]).push(e,""+l)):"children"===e?c===l||"string"!=typeof l&&"number"!=typeof l||(o=o||[]).push(e,""+l):"suppressContentEditableWarning"!==e&&"suppressHydrationWarning"!==e&&(_.hasOwnProperty(e)?(null!=l&&Br(i,e),o||c===l||(o=[])):(o=o||[]).push(e,l))}return u&&(o=o||[]).push("style",u),o}function Hr(e,t,n,r,i){"input"===n&&"radio"===i.type&&null!=i.name&&It(e,i),Fr(n,r),r=Fr(n,i);for(var o=0;o<t.length;o+=2){var a=t[o],s=t[o+1];"style"===a?Mr(e,s):"dangerouslySetInnerHTML"===a?Ir(e,s):"children"===a?Pr(e,s):At(e,a,s,r)}switch(n){case"input":Pt(e,i);break;case"textarea":Cr(e,i);break;case"select":e._wrapperState.initialValue=void 0,t=e._wrapperState.wasMultiple,e._wrapperState.wasMultiple=!!i.multiple,null!=(n=i.value)?_r(e,!!i.multiple,n,!1):t!==!!i.multiple&&(null!=i.defaultValue?_r(e,!!i.multiple,i.defaultValue,!0):_r(e,!!i.multiple,i.multiple?[]:"",!1))}}function Kr(e,t,n,r,i){switch(t){case"iframe":case"object":In("load",e);break;case"video":case"audio":for(r=0;r<he.length;r++)In(he[r],e);break;case"source":In("error",e);break;case"img":case"image":case"link":In("error",e),In("load",e);break;case"form":In("reset",e),In("submit",e);break;case"details":In("toggle",e);break;case"input":Ot(e,n),In("invalid",e),Br(i,"onChange");break;case"select":wr(e,n),In("invalid",e),Br(i,"onChange");break;case"textarea":xr(e,n),In("invalid",e),Br(i,"onChange")}for(var o in jr(t,n,Ur),r=null,n)if(n.hasOwnProperty(o)){var a=n[o];"children"===o?"string"==typeof a?e.textContent!==a&&(r=["children",a]):"number"==typeof a&&e.textContent!==""+a&&(r=["children",""+a]):_.hasOwnProperty(o)&&null!=a&&Br(i,o)}switch(t){case"input":rt(e),Rt(e,n,!0);break;case"textarea":rt(e),Tr(e);break;case"select":case"option":break;default:"function"==typeof n.onClick&&(e.onclick=s)}return r}function Gr(e,t){return e.nodeValue!==t}var Qr={createElement:qr,createTextNode:Vr,setInitialProperties:Wr,diffProperties:zr,updateProperties:Hr,diffHydratedProperties:Kr,diffHydratedText:Gr,warnForUnmatchedText:function(){},warnForDeletedHydratableElement:function(){},warnForDeletedHydratableText:function(){},warnForInsertedHydratedElement:function(){},warnForInsertedHydratedText:function(){},restoreControlledState:function(e,t,n){switch(t){case"input":if(Pt(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=H(r);i||h("90"),it(r),Pt(r,i)}}}break;case"textarea":Cr(e,n);break;case"select":null!=(t=n.value)&&_r(e,!!n.multiple,t,!1)}}},Yr=null,Xr=null;function Jr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function $r(e,t){return"textarea"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&"string"==typeof t.dangerouslySetInnerHTML.__html}var Zr=tr,ei=rr,ti=ir;function ni(e){for(e=e.nextSibling;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}function ri(e){for(e=e.firstChild;e&&1!==e.nodeType&&3!==e.nodeType;)e=e.nextSibling;return e}new Set;var ii=[],oi=-1;function ai(e){return{current:e}}function si(e){0>oi||(e.current=ii[oi],ii[oi]=null,oi--)}function ui(e,t){ii[++oi]=e.current,e.current=t}var ci=ai(f),li=ai(!1),fi=f;function hi(e){return di(e)?fi:ci.current}function pi(e,t){var n=e.type.contextTypes;if(!n)return f;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function di(e){return 2===e.tag&&null!=e.type.childContextTypes}function vi(e){di(e)&&(si(li),si(ci))}function mi(e){si(li),si(ci)}function yi(e,t,n){ci.current!==f&&h("168"),ui(ci,t),ui(li,n)}function gi(e,t){var n=e.stateNode,r=e.type.childContextTypes;if("function"!=typeof n.getChildContext)return t;for(var i in n=n.getChildContext())i in r||h("108",bt(e)||"Unknown",i);return a({},t,n)}function bi(e){if(!di(e))return!1;var t=e.stateNode;return t=t&&t.__reactInternalMemoizedMergedChildContext||f,fi=ci.current,ui(ci,t),ui(li,li.current),!0}function _i(e,t){var n=e.stateNode;if(n||h("169"),t){var r=gi(e,fi);n.__reactInternalMemoizedMergedChildContext=r,si(li),si(ci),ui(ci,r)}else si(li);ui(li,t)}function wi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=null,this.index=0,this.ref=null,this.pendingProps=t,this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.expirationTime=0,this.alternate=null}function Ei(e,t,n){var r=e.alternate;return null===r?((r=new wi(e.tag,t,e.key,e.mode)).type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.expirationTime=n,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function xi(e,t,n){var r=e.type,i=e.key;if(e=e.props,"function"==typeof r)var o=r.prototype&&r.prototype.isReactComponent?2:0;else if("string"==typeof r)o=5;else switch(r){case ct:return Ci(e.children,t,n,i);case dt:o=11,t|=3;break;case lt:o=11,t|=2;break;case ft:return(r=new wi(15,e,i,4|t)).type=ft,r.expirationTime=n,r;case mt:o=16,t|=2;break;default:e:{switch("object"==typeof r&&null!==r?r.$$typeof:null){case ht:o=13;break e;case pt:o=12;break e;case vt:o=14;break e;default:h("130",null==r?r:typeof r,"")}o=void 0}}return(t=new wi(o,e,i,t)).type=r,t.expirationTime=n,t}function Ci(e,t,n,r){return(e=new wi(10,e,r,t)).expirationTime=n,e}function Ti(e,t,n){return(e=new wi(6,e,null,t)).expirationTime=n,e}function ki(e,t,n){return(t=new wi(4,null!==e.children?e.children:[],e.key,t)).expirationTime=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Si(e,t,n){return e={current:t=new wi(3,null,null,t?3:0),containerInfo:e,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,pendingCommitExpirationTime:0,finishedWork:null,context:null,pendingContext:null,hydrate:n,remainingExpirationTime:0,firstBatch:null,nextScheduledRoot:null},t.stateNode=e}var Ai=null,Ni=null;function Oi(e){return function(t){try{return e(t)}catch(e){}}}function Ii(e){"function"==typeof Ai&&Ai(e)}function Pi(e){"function"==typeof Ni&&Ni(e)}var Ri=!1;function Di(e){return{expirationTime:0,baseState:e,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Mi(e){return{expirationTime:e.expirationTime,baseState:e.baseState,firstUpdate:e.firstUpdate,lastUpdate:e.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function Li(e){return{expirationTime:e,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ji(e,t,n){null===e.lastUpdate?e.firstUpdate=e.lastUpdate=t:(e.lastUpdate.next=t,e.lastUpdate=t),(0===e.expirationTime||e.expirationTime>n)&&(e.expirationTime=n)}function Fi(e,t,n){var r=e.alternate;if(null===r){var i=e.updateQueue,o=null;null===i&&(i=e.updateQueue=Di(e.memoizedState))}else i=e.updateQueue,o=r.updateQueue,null===i?null===o?(i=e.updateQueue=Di(e.memoizedState),o=r.updateQueue=Di(r.memoizedState)):i=e.updateQueue=Mi(o):null===o&&(o=r.updateQueue=Mi(i));null===o||i===o?ji(i,t,n):null===i.lastUpdate||null===o.lastUpdate?(ji(i,t,n),ji(o,t,n)):(ji(i,t,n),o.lastUpdate=t)}function Ui(e,t,n){var r=e.updateQueue;null===(r=null===r?e.updateQueue=Di(e.memoizedState):Bi(e,r)).lastCapturedUpdate?r.firstCapturedUpdate=r.lastCapturedUpdate=t:(r.lastCapturedUpdate.next=t,r.lastCapturedUpdate=t),(0===r.expirationTime||r.expirationTime>n)&&(r.expirationTime=n)}function Bi(e,t){var n=e.alternate;return null!==n&&t===n.updateQueue&&(t=e.updateQueue=Mi(t)),t}function qi(e,t,n,r,i,o){switch(n.tag){case 1:return"function"==typeof(e=n.payload)?e.call(o,r,i):e;case 3:e.effectTag=-1025&e.effectTag|64;case 0:if(null===(i="function"==typeof(e=n.payload)?e.call(o,r,i):e)||void 0===i)break;return a({},r,i);case 2:Ri=!0}return r}function Vi(e,t,n,r,i){if(Ri=!1,!(0===t.expirationTime||t.expirationTime>i)){for(var o=(t=Bi(e,t)).baseState,a=null,s=0,u=t.firstUpdate,c=o;null!==u;){var l=u.expirationTime;l>i?(null===a&&(a=u,o=c),(0===s||s>l)&&(s=l)):(c=qi(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastEffect?t.firstEffect=t.lastEffect=u:(t.lastEffect.nextEffect=u,t.lastEffect=u))),u=u.next}for(l=null,u=t.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f>i?(null===l&&(l=u,null===a&&(o=c)),(0===s||s>f)&&(s=f)):(c=qi(e,0,u,c,n,r),null!==u.callback&&(e.effectTag|=32,u.nextEffect=null,null===t.lastCapturedEffect?t.firstCapturedEffect=t.lastCapturedEffect=u:(t.lastCapturedEffect.nextEffect=u,t.lastCapturedEffect=u))),u=u.next}null===a&&(t.lastUpdate=null),null===l?t.lastCapturedUpdate=null:e.effectTag|=32,null===a&&null===l&&(o=c),t.baseState=o,t.firstUpdate=a,t.firstCapturedUpdate=l,t.expirationTime=s,e.memoizedState=c}}function Wi(e,t){"function"!=typeof e&&h("191",e),e.call(t)}function zi(e,t,n){for(null!==t.firstCapturedUpdate&&(null!==t.lastUpdate&&(t.lastUpdate.next=t.firstCapturedUpdate,t.lastUpdate=t.lastCapturedUpdate),t.firstCapturedUpdate=t.lastCapturedUpdate=null),e=t.firstEffect,t.firstEffect=t.lastEffect=null;null!==e;){var r=e.callback;null!==r&&(e.callback=null,Wi(r,n)),e=e.nextEffect}for(e=t.firstCapturedEffect,t.firstCapturedEffect=t.lastCapturedEffect=null;null!==e;)null!==(t=e.callback)&&(e.callback=null,Wi(t,n)),e=e.nextEffect}function Hi(e,t){return{value:e,source:t,stack:_t(t)}}var Ki=ai(null),Gi=ai(null),Qi=ai(0);function Yi(e){var t=e.type._context;ui(Qi,t._changedBits),ui(Gi,t._currentValue),ui(Ki,e),t._currentValue=e.pendingProps.value,t._changedBits=e.stateNode}function Xi(e){var t=Qi.current,n=Gi.current;si(Ki),si(Gi),si(Qi),(e=e.type._context)._currentValue=n,e._changedBits=t}var Ji={},$i=ai(Ji),Zi=ai(Ji),eo=ai(Ji);function to(e){return e===Ji&&h("174"),e}function no(e,t){ui(eo,t),ui(Zi,e),ui($i,Ji);var n=t.nodeType;switch(n){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ar(null,"");break;default:t=Ar(t=(n=8===n?t.parentNode:t).namespaceURI||null,n=n.tagName)}si($i),ui($i,t)}function ro(e){si($i),si(Zi),si(eo)}function io(e){Zi.current===e&&(si($i),si(Zi))}function oo(e,t,n){var r=e.memoizedState;r=null===(t=t(n,r))||void 0===t?r:a({},r,t),e.memoizedState=r,null!==(e=e.updateQueue)&&0===e.expirationTime&&(e.baseState=r)}var ao={isMounted:function(e){return!!(e=e._reactInternalFiber)&&2===an(e)},enqueueSetState:function(e,t,n){e=e._reactInternalFiber;var r=ba(),i=Li(r=ya(r,e));i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Fi(e,i,r),ga(e,r)},enqueueReplaceState:function(e,t,n){e=e._reactInternalFiber;var r=ba(),i=Li(r=ya(r,e));i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),Fi(e,i,r),ga(e,r)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var n=ba(),r=Li(n=ya(n,e));r.tag=2,void 0!==t&&null!==t&&(r.callback=t),Fi(e,r,n),ga(e,n)}};function so(e,t,n,r,i,o){var a=e.stateNode;return e=e.type,"function"==typeof a.shouldComponentUpdate?a.shouldComponentUpdate(n,i,o):!e.prototype||!e.prototype.isPureReactComponent||(!c(t,n)||!c(r,i))}function uo(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ao.enqueueReplaceState(t,t.state,null)}function co(e,t){var n=e.type,r=e.stateNode,i=e.pendingProps,o=hi(e);r.props=i,r.state=e.memoizedState,r.refs=f,r.context=pi(e,o),null!==(o=e.updateQueue)&&(Vi(e,o,i,r,t),r.state=e.memoizedState),"function"==typeof(o=e.type.getDerivedStateFromProps)&&(oo(e,o,i),r.state=e.memoizedState),"function"==typeof n.getDerivedStateFromProps||"function"==typeof r.getSnapshotBeforeUpdate||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||(n=r.state,"function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount(),n!==r.state&&ao.enqueueReplaceState(r,r.state,null),null!==(o=e.updateQueue)&&(Vi(e,o,i,r,t),r.state=e.memoizedState)),"function"==typeof r.componentDidMount&&(e.effectTag|=4)}var lo=Array.isArray;function fo(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){var r=void 0;(n=n._owner)&&(2!==n.tag&&h("110"),r=n.stateNode),r||h("147",e);var i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:((t=function(e){var t=r.refs===f?r.refs={}:r.refs;null===e?delete t[i]:t[i]=e})._stringRef=i,t)}"string"!=typeof e&&h("148"),n._owner||h("254",e)}return e}function ho(e,t){"textarea"!==e.type&&h("31","[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,"")}function po(e){function t(t,n){if(e){var r=t.lastEffect;null!==r?(r.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t,n){return(e=Ei(e,t,n)).index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.effectTag=2,n):r:(t.effectTag=2,n):n}function a(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,n,r){return null===t||6!==t.tag?((t=Ti(n,e.mode,r)).return=e,t):((t=i(t,n,r)).return=e,t)}function u(e,t,n,r){return null!==t&&t.type===n.type?((r=i(t,n.props,r)).ref=fo(e,t,n),r.return=e,r):((r=xi(n,e.mode,r)).ref=fo(e,t,n),r.return=e,r)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=ki(n,e.mode,r)).return=e,t):((t=i(t,n.children||[],r)).return=e,t)}function l(e,t,n,r,o){return null===t||10!==t.tag?((t=Ci(n,e.mode,r,o)).return=e,t):((t=i(t,n,r)).return=e,t)}function f(e,t,n){if("string"==typeof t||"number"==typeof t)return(t=Ti(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case st:return(n=xi(t,e.mode,n)).ref=fo(e,null,t),n.return=e,n;case ut:return(t=ki(t,e.mode,n)).return=e,t}if(lo(t)||gt(t))return(t=Ci(t,e.mode,n,null)).return=e,t;ho(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:s(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case st:return n.key===i?n.type===ct?l(e,t,n.props.children,r,i):u(e,t,n,r):null;case ut:return n.key===i?c(e,t,n,r):null}if(lo(n)||gt(n))return null!==i?null:l(e,t,n,r,null);ho(e,n)}return null}function d(e,t,n,r,i){if("string"==typeof r||"number"==typeof r)return s(t,e=e.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case st:return e=e.get(null===r.key?n:r.key)||null,r.type===ct?l(t,e,r.props.children,i,r.key):u(t,e,r,i);case ut:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i)}if(lo(r)||gt(r))return l(t,e=e.get(n)||null,r,i,null);ho(t,r)}return null}function v(i,a,s,u){for(var c=null,l=null,h=a,v=a=0,m=null;null!==h&&v<s.length;v++){h.index>v?(m=h,h=null):m=h.sibling;var y=p(i,h,s[v],u);if(null===y){null===h&&(h=m);break}e&&h&&null===y.alternate&&t(i,h),a=o(y,a,v),null===l?c=y:l.sibling=y,l=y,h=m}if(v===s.length)return n(i,h),c;if(null===h){for(;v<s.length;v++)(h=f(i,s[v],u))&&(a=o(h,a,v),null===l?c=h:l.sibling=h,l=h);return c}for(h=r(i,h);v<s.length;v++)(m=d(h,i,v,s[v],u))&&(e&&null!==m.alternate&&h.delete(null===m.key?v:m.key),a=o(m,a,v),null===l?c=m:l.sibling=m,l=m);return e&&h.forEach(function(e){return t(i,e)}),c}function m(i,a,s,u){var c=gt(s);"function"!=typeof c&&h("150"),null==(s=c.call(s))&&h("151");for(var l=c=null,v=a,m=a=0,y=null,g=s.next();null!==v&&!g.done;m++,g=s.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(i,v,g.value,u);if(null===b){v||(v=y);break}e&&v&&null===b.alternate&&t(i,v),a=o(b,a,m),null===l?c=b:l.sibling=b,l=b,v=y}if(g.done)return n(i,v),c;if(null===v){for(;!g.done;m++,g=s.next())null!==(g=f(i,g.value,u))&&(a=o(g,a,m),null===l?c=g:l.sibling=g,l=g);return c}for(v=r(i,v);!g.done;m++,g=s.next())null!==(g=d(v,i,m,g.value,u))&&(e&&null!==g.alternate&&v.delete(null===g.key?m:g.key),a=o(g,a,m),null===l?c=g:l.sibling=g,l=g);return e&&v.forEach(function(e){return t(i,e)}),c}return function(e,r,o,s){var u="object"==typeof o&&null!==o&&o.type===ct&&null===o.key;u&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case st:e:{for(c=o.key,u=r;null!==u;){if(u.key===c){if(10===u.tag?o.type===ct:u.type===o.type){n(e,u.sibling),(r=i(u,o.type===ct?o.props.children:o.props,s)).ref=fo(e,u,o),r.return=e,e=r;break e}n(e,u);break}t(e,u),u=u.sibling}o.type===ct?((r=Ci(o.props.children,e.mode,s,o.key)).return=e,e=r):((s=xi(o,e.mode,s)).ref=fo(e,r,o),s.return=e,e=s)}return a(e);case ut:e:{for(u=o.key;null!==r;){if(r.key===u){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),(r=i(r,o.children||[],s)).return=e,e=r;break e}n(e,r);break}t(e,r),r=r.sibling}(r=ki(o,e.mode,s)).return=e,e=r}return a(e)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(e,r.sibling),(r=i(r,o,s)).return=e,e=r):(n(e,r),(r=Ti(o,e.mode,s)).return=e,e=r),a(e);if(lo(o))return v(e,r,o,s);if(gt(o))return m(e,r,o,s);if(c&&ho(e,o),void 0===o&&!u)switch(e.tag){case 2:case 1:h("152",(s=e.type).displayName||s.name||"Component")}return n(e,r)}}var vo=po(!0),mo=po(!1),yo=null,go=null,bo=!1;function _o(e,t){var n=new wi(5,null,null,0);n.type="DELETED",n.stateNode=t,n.return=e,n.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n}function wo(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);default:return!1}}function Eo(e){if(bo){var t=go;if(t){var n=t;if(!wo(e,t)){if(!(t=ni(n))||!wo(e,t))return e.effectTag|=2,bo=!1,void(yo=e);_o(yo,n)}yo=e,go=ri(t)}else e.effectTag|=2,bo=!1,yo=e}}function xo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag;)e=e.return;yo=e}function Co(e){if(e!==yo)return!1;if(!bo)return xo(e),bo=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!$r(t,e.memoizedProps))for(t=go;t;)_o(e,t),t=ni(t);return xo(e),go=yo?ni(e.stateNode):null,!0}function To(){go=yo=null,bo=!1}function ko(e,t,n){So(e,t,n,t.expirationTime)}function So(e,t,n,r){t.child=null===e?mo(t,null,n,r):vo(t,e.child,n,r)}function Ao(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.effectTag|=128)}function No(e,t,n,r,i){Ao(e,t);var o=0!=(64&t.effectTag);if(!n&&!o)return r&&_i(t,!1),Po(e,t);n=t.stateNode,ot.current=t;var a=o?null:n.render();return t.effectTag|=1,o&&(So(e,t,null,i),t.child=null),So(e,t,a,i),t.memoizedState=n.state,t.memoizedProps=n.props,r&&_i(t,!0),t.child}function Oo(e){var t=e.stateNode;t.pendingContext?yi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&yi(0,t.context,!1),no(e,t.containerInfo)}function Io(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){switch(i.tag){case 12:var o=0|i.stateNode;if(i.type===t&&0!=(o&n)){for(o=i;null!==o;){var a=o.alternate;if(0===o.expirationTime||o.expirationTime>r)o.expirationTime=r,null!==a&&(0===a.expirationTime||a.expirationTime>r)&&(a.expirationTime=r);else{if(null===a||!(0===a.expirationTime||a.expirationTime>r))break;a.expirationTime=r}o=o.return}o=null}else o=i.child;break;case 13:o=i.type===e.type?null:i.child;break;default:o=i.child}if(null!==o)o.return=i;else for(o=i;null!==o;){if(o===e){o=null;break}if(null!==(i=o.sibling)){i.return=o.return,o=i;break}o=o.return}i=o}}function Po(e,t){if(null!==e&&t.child!==e.child&&h("153"),null!==t.child){var n=Ei(e=t.child,e.pendingProps,e.expirationTime);for(t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ei(e,e.pendingProps,e.expirationTime)).return=t;n.sibling=null}return t.child}function Ro(e,t,n){if(0===t.expirationTime||t.expirationTime>n){switch(t.tag){case 3:Oo(t);break;case 2:bi(t);break;case 4:no(t,t.stateNode.containerInfo);break;case 13:Yi(t)}return null}switch(t.tag){case 0:null!==e&&h("155");var r=t.type,i=t.pendingProps,o=hi(t);return r=r(i,o=pi(t,o)),t.effectTag|=1,"object"==typeof r&&null!==r&&"function"==typeof r.render&&void 0===r.$$typeof?(o=t.type,t.tag=2,t.memoizedState=null!==r.state&&void 0!==r.state?r.state:null,"function"==typeof(o=o.getDerivedStateFromProps)&&oo(t,o,i),i=bi(t),r.updater=ao,t.stateNode=r,r._reactInternalFiber=t,co(t,n),e=No(e,t,!0,i,n)):(t.tag=1,ko(e,t,r),t.memoizedProps=i,e=t.child),e;case 1:return i=t.type,n=t.pendingProps,li.current||t.memoizedProps!==n?(i=i(n,r=pi(t,r=hi(t))),t.effectTag|=1,ko(e,t,i),t.memoizedProps=n,e=t.child):e=Po(e,t),e;case 2:if(i=bi(t),null===e)if(null===t.stateNode){var a=t.pendingProps,s=t.type;r=hi(t);var u=2===t.tag&&null!=t.type.contextTypes;a=new s(a,o=u?pi(t,r):f),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ao,t.stateNode=a,a._reactInternalFiber=t,u&&((u=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=r,u.__reactInternalMemoizedMaskedChildContext=o),co(t,n),r=!0}else{s=t.type,r=t.stateNode,u=t.memoizedProps,o=t.pendingProps,r.props=u;var c=r.context;a=pi(t,a=hi(t));var l=s.getDerivedStateFromProps;(s="function"==typeof l||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(u!==o||c!==a)&&uo(t,r,o,a),Ri=!1;var p=t.memoizedState;c=r.state=p;var d=t.updateQueue;null!==d&&(Vi(t,d,o,r,n),c=t.memoizedState),u!==o||p!==c||li.current||Ri?("function"==typeof l&&(oo(t,l,o),c=t.memoizedState),(u=Ri||so(t,u,o,p,c,a))?(s||"function"!=typeof r.UNSAFE_componentWillMount&&"function"!=typeof r.componentWillMount||("function"==typeof r.componentWillMount&&r.componentWillMount(),"function"==typeof r.UNSAFE_componentWillMount&&r.UNSAFE_componentWillMount()),"function"==typeof r.componentDidMount&&(t.effectTag|=4)):("function"==typeof r.componentDidMount&&(t.effectTag|=4),t.memoizedProps=o,t.memoizedState=c),r.props=o,r.state=c,r.context=a,r=u):("function"==typeof r.componentDidMount&&(t.effectTag|=4),r=!1)}else s=t.type,r=t.stateNode,o=t.memoizedProps,u=t.pendingProps,r.props=o,c=r.context,a=pi(t,a=hi(t)),(s="function"==typeof(l=s.getDerivedStateFromProps)||"function"==typeof r.getSnapshotBeforeUpdate)||"function"!=typeof r.UNSAFE_componentWillReceiveProps&&"function"!=typeof r.componentWillReceiveProps||(o!==u||c!==a)&&uo(t,r,u,a),Ri=!1,c=t.memoizedState,p=r.state=c,null!==(d=t.updateQueue)&&(Vi(t,d,u,r,n),p=t.memoizedState),o!==u||c!==p||li.current||Ri?("function"==typeof l&&(oo(t,l,u),p=t.memoizedState),(l=Ri||so(t,o,u,c,p,a))?(s||"function"!=typeof r.UNSAFE_componentWillUpdate&&"function"!=typeof r.componentWillUpdate||("function"==typeof r.componentWillUpdate&&r.componentWillUpdate(u,p,a),"function"==typeof r.UNSAFE_componentWillUpdate&&r.UNSAFE_componentWillUpdate(u,p,a)),"function"==typeof r.componentDidUpdate&&(t.effectTag|=4),"function"==typeof r.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),t.memoizedProps=u,t.memoizedState=p),r.props=u,r.state=p,r.context=a,r=l):("function"!=typeof r.componentDidUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=4),"function"!=typeof r.getSnapshotBeforeUpdate||o===e.memoizedProps&&c===e.memoizedState||(t.effectTag|=256),r=!1);return No(e,t,r,i,n);case 3:return Oo(t),null!==(i=t.updateQueue)?(r=null!==(r=t.memoizedState)?r.element:null,Vi(t,i,t.pendingProps,null,n),(i=t.memoizedState.element)===r?(To(),e=Po(e,t)):(r=t.stateNode,(r=(null===e||null===e.child)&&r.hydrate)&&(go=ri(t.stateNode.containerInfo),yo=t,r=bo=!0),r?(t.effectTag|=2,t.child=mo(t,null,i,n)):(To(),ko(e,t,i)),e=t.child)):(To(),e=Po(e,t)),e;case 5:return to(eo.current),(i=to($i.current))!==(r=Ar(i,t.type))&&(ui(Zi,t),ui($i,r)),null===e&&Eo(t),i=t.type,u=t.memoizedProps,r=t.pendingProps,o=null!==e?e.memoizedProps:null,li.current||u!==r||((u=1&t.mode&&!!r.hidden)&&(t.expirationTime=1073741823),u&&1073741823===n)?(u=r.children,$r(i,r)?u=null:o&&$r(i,o)&&(t.effectTag|=16),Ao(e,t),1073741823!==n&&1&t.mode&&r.hidden?(t.expirationTime=1073741823,t.memoizedProps=r,e=null):(ko(e,t,u),t.memoizedProps=r,e=t.child)):e=Po(e,t),e;case 6:return null===e&&Eo(t),t.memoizedProps=t.pendingProps,null;case 16:return null;case 4:return no(t,t.stateNode.containerInfo),i=t.pendingProps,li.current||t.memoizedProps!==i?(null===e?t.child=vo(t,null,i,n):ko(e,t,i),t.memoizedProps=i,e=t.child):e=Po(e,t),e;case 14:return i=t.type.render,n=t.pendingProps,r=t.ref,li.current||t.memoizedProps!==n||r!==(null!==e?e.ref:null)?(ko(e,t,i=i(n,r)),t.memoizedProps=n,e=t.child):e=Po(e,t),e;case 10:return n=t.pendingProps,li.current||t.memoizedProps!==n?(ko(e,t,n),t.memoizedProps=n,e=t.child):e=Po(e,t),e;case 11:return n=t.pendingProps.children,li.current||null!==n&&t.memoizedProps!==n?(ko(e,t,n),t.memoizedProps=n,e=t.child):e=Po(e,t),e;case 15:return n=t.pendingProps,t.memoizedProps===n?e=Po(e,t):(ko(e,t,n.children),t.memoizedProps=n,e=t.child),e;case 13:return function(e,t,n){var r=t.type._context,i=t.pendingProps,o=t.memoizedProps,a=!0;if(li.current)a=!1;else if(o===i)return t.stateNode=0,Yi(t),Po(e,t);var s=i.value;if(t.memoizedProps=i,null===o)s=1073741823;else if(o.value===i.value){if(o.children===i.children&&a)return t.stateNode=0,Yi(t),Po(e,t);s=0}else{var u=o.value;if(u===s&&(0!==u||1/u==1/s)||u!=u&&s!=s){if(o.children===i.children&&a)return t.stateNode=0,Yi(t),Po(e,t);s=0}else if(s="function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,s):1073741823,0==(s|=0)){if(o.children===i.children&&a)return t.stateNode=0,Yi(t),Po(e,t)}else Io(t,r,s,n)}return t.stateNode=s,Yi(t),ko(e,t,i.children),t.child}(e,t,n);case 12:e:if(r=t.type,o=t.pendingProps,u=t.memoizedProps,i=r._currentValue,a=r._changedBits,li.current||0!==a||u!==o){if(t.memoizedProps=o,void 0!==(s=o.unstable_observedBits)&&null!==s||(s=1073741823),t.stateNode=s,0!=(a&s))Io(t,r,a,n);else if(u===o){e=Po(e,t);break e}n=(n=o.children)(i),t.effectTag|=1,ko(e,t,n),e=t.child}else e=Po(e,t);return e;default:h("156")}}function Do(e){e.effectTag|=4}var Mo=void 0,Lo=void 0,jo=void 0;function Fo(e,t){var n=t.pendingProps;switch(t.tag){case 1:return null;case 2:return vi(t),null;case 3:ro(),mi();var r=t.stateNode;return r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(Co(t),t.effectTag&=-3),Mo(t),null;case 5:io(t),r=to(eo.current);var i=t.type;if(null!==e&&null!=t.stateNode){var o=e.memoizedProps,a=t.stateNode,s=to($i.current);a=zr(a,i,o,n,r),Lo(e,t,a,i,o,n,r,s),e.ref!==t.ref&&(t.effectTag|=128)}else{if(!n)return null===t.stateNode&&h("166"),null;if(e=to($i.current),Co(t))n=t.stateNode,i=t.type,o=t.memoizedProps,n[q]=t,n[V]=o,r=Kr(n,i,o,e,r),t.updateQueue=r,null!==r&&Do(t);else{(e=qr(i,n,r,e))[q]=t,e[V]=n;e:for(o=t.child;null!==o;){if(5===o.tag||6===o.tag)e.appendChild(o.stateNode);else if(4!==o.tag&&null!==o.child){o.child.return=o,o=o.child;continue}if(o===t)break;for(;null===o.sibling;){if(null===o.return||o.return===t)break e;o=o.return}o.sibling.return=o.return,o=o.sibling}Wr(e,i,n,r),Jr(i,n)&&Do(t),t.stateNode=e}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)jo(e,t,e.memoizedProps,n);else{if("string"!=typeof n)return null===t.stateNode&&h("166"),null;r=to(eo.current),to($i.current),Co(t)?(r=t.stateNode,n=t.memoizedProps,r[q]=t,Gr(r,n)&&Do(t)):((r=Vr(n,r))[q]=t,t.stateNode=r)}return null;case 14:case 16:case 10:case 11:case 15:return null;case 4:return ro(),Mo(t),null;case 13:return Xi(t),null;case 12:return null;case 0:h("167");default:h("156")}}function Uo(e,t){var n=t.source;null===t.stack&&null!==n&&_t(n),null!==n&&bt(n),t=t.value,null!==e&&2===e.tag&&bt(e);try{t&&t.suppressReactErrorLogging||console.error(t)}catch(e){e&&e.suppressReactErrorLogging||console.error(e)}}function Bo(e){var t=e.ref;if(null!==t)if("function"==typeof t)try{t(null)}catch(t){va(e,t)}else t.current=null}function qo(e){switch(Pi(e),e.tag){case 2:Bo(e);var t=e.stateNode;if("function"==typeof t.componentWillUnmount)try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(t){va(e,t)}break;case 5:Bo(e);break;case 4:zo(e)}}function Vo(e){return 5===e.tag||3===e.tag||4===e.tag}function Wo(e){e:{for(var t=e.return;null!==t;){if(Vo(t)){var n=t;break e}t=t.return}h("160"),n=void 0}var r=t=void 0;switch(n.tag){case 5:t=n.stateNode,r=!1;break;case 3:case 4:t=n.stateNode.containerInfo,r=!0;break;default:h("161")}16&n.effectTag&&(Pr(t,""),n.effectTag&=-17);e:t:for(n=e;;){for(;null===n.sibling;){if(null===n.return||Vo(n.return)){n=null;break e}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue t;if(null===n.child||4===n.tag)continue t;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break e}}for(var i=e;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=t,a=i.stateNode,s=n;8===o.nodeType?o.parentNode.insertBefore(a,s):o.insertBefore(a,s)}else t.insertBefore(i.stateNode,n);else r?(o=t,a=i.stateNode,8===o.nodeType?o.parentNode.insertBefore(a,o):o.appendChild(a)):t.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===e)break;for(;null===i.sibling;){if(null===i.return||i.return===e)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function zo(e){for(var t=e,n=!1,r=void 0,i=void 0;;){if(!n){n=t.return;e:for(;;){switch(null===n&&h("160"),n.tag){case 5:r=n.stateNode,i=!1;break e;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break e}n=n.return}n=!0}if(5===t.tag||6===t.tag){e:for(var o=t,a=o;;)if(qo(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break e;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=t.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(t.stateNode)}else if(4===t.tag?r=t.stateNode.containerInfo:qo(t),null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return;4===(t=t.return).tag&&(n=!1)}t.sibling.return=t.return,t=t.sibling}}function Ho(e,t){switch(t.tag){case 2:break;case 5:var n=t.stateNode;if(null!=n){var r=t.memoizedProps;e=null!==e?e.memoizedProps:r;var i=t.type,o=t.updateQueue;t.updateQueue=null,null!==o&&(n[V]=r,Hr(n,o,i,e,r))}break;case 6:null===t.stateNode&&h("162"),t.stateNode.nodeValue=t.memoizedProps;break;case 3:case 15:case 16:break;default:h("163")}}function Ko(e,t,n){(n=Li(n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){$a(r),Uo(e,t)},n}function Go(e,t,n){(n=Li(n)).tag=3;var r=e.stateNode;return null!==r&&"function"==typeof r.componentDidCatch&&(n.callback=function(){null===la?la=new Set([this]):la.add(this);var n=t.value,r=t.stack;Uo(e,t),this.componentDidCatch(n,{componentStack:null!==r?r:""})}),n}function Qo(e,t,n,r,i,o){n.effectTag|=512,n.firstEffect=n.lastEffect=null,r=Hi(r,n),e=t;do{switch(e.tag){case 3:return e.effectTag|=1024,void Ui(e,r=Ko(e,r,o),o);case 2:if(t=r,n=e.stateNode,0==(64&e.effectTag)&&null!==n&&"function"==typeof n.componentDidCatch&&(null===la||!la.has(n)))return e.effectTag|=1024,void Ui(e,r=Go(e,t,o),o)}e=e.return}while(null!==e)}function Yo(e){switch(e.tag){case 2:vi(e);var t=e.effectTag;return 1024&t?(e.effectTag=-1025&t|64,e):null;case 3:return ro(),mi(),1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 5:return io(e),null;case 16:return 1024&(t=e.effectTag)?(e.effectTag=-1025&t|64,e):null;case 4:return ro(),null;case 13:return Xi(e),null;default:return null}}Mo=function(){},Lo=function(e,t,n){(t.updateQueue=n)&&Do(t)},jo=function(e,t,n,r){n!==r&&Do(t)};var Xo=Zr(),Jo=2,$o=Xo,Zo=0,ea=0,ta=!1,na=null,ra=null,ia=0,oa=-1,aa=!1,sa=null,ua=!1,ca=!1,la=null;function fa(){if(null!==na)for(var e=na.return;null!==e;){var t=e;switch(t.tag){case 2:vi(t);break;case 3:ro(),mi();break;case 5:io(t);break;case 4:ro();break;case 13:Xi(t)}e=e.return}ra=null,ia=0,oa=-1,aa=!1,na=null,ca=!1}function ha(e){for(;;){var t=e.alternate,n=e.return,r=e.sibling;if(0==(512&e.effectTag)){t=Fo(t,e);var i=e;if(1073741823===ia||1073741823!==i.expirationTime){var o=0;switch(i.tag){case 3:case 2:var a=i.updateQueue;null!==a&&(o=a.expirationTime)}for(a=i.child;null!==a;)0!==a.expirationTime&&(0===o||o>a.expirationTime)&&(o=a.expirationTime),a=a.sibling;i.expirationTime=o}if(null!==t)return t;if(null!==n&&0==(512&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=e.firstEffect),null!==e.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=e.firstEffect),n.lastEffect=e.lastEffect),1<e.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=e:n.firstEffect=e,n.lastEffect=e)),null!==r)return r;if(null===n){ca=!0;break}e=n}else{if(null!==(e=Yo(e)))return e.effectTag&=511,e;if(null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=512),null!==r)return r;if(null===n)break;e=n}}return null}function pa(e){var t=Ro(e.alternate,e,ia);return null===t&&(t=ha(e)),ot.current=null,t}function da(e,t,n){ta&&h("243"),ta=!0,t===ia&&e===ra&&null!==na||(fa(),ia=t,oa=-1,na=Ei((ra=e).current,null,ia),e.pendingCommitExpirationTime=0);var r=!1;for(aa=!n||ia<=Jo;;){try{if(n)for(;null!==na&&!Ja();)na=pa(na);else for(;null!==na;)na=pa(na)}catch(t){if(null===na)r=!0,$a(t);else{null===na&&h("271");var i=(n=na).return;if(null===i){r=!0,$a(t);break}Qo(e,i,n,t,0,ia),na=ha(n)}}break}if(ta=!1,r)return null;if(null===na){if(ca)return e.pendingCommitExpirationTime=t,e.current.alternate;aa&&h("262"),0<=oa&&setTimeout(function(){var t=e.current.expirationTime;0!==t&&(0===e.remainingExpirationTime||e.remainingExpirationTime<t)&&Va(e,t)},oa),function(e){null===Sa&&h("246"),Sa.remainingExpirationTime=e}(e.current.expirationTime)}return null}function va(e,t){var n;e:{for(ta&&!ua&&h("263"),n=e.return;null!==n;){switch(n.tag){case 2:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromCatch||"function"==typeof r.componentDidCatch&&(null===la||!la.has(r))){Fi(n,e=Go(n,e=Hi(t,e),1),1),ga(n,1),n=void 0;break e}break;case 3:Fi(n,e=Ko(n,e=Hi(t,e),1),1),ga(n,1),n=void 0;break e}n=n.return}3===e.tag&&(Fi(e,n=Ko(e,n=Hi(t,e),1),1),ga(e,1)),n=void 0}return n}function ma(){var e=2+25*(1+((ba()-2+500)/25|0));return e<=Zo&&(e=Zo+1),Zo=e}function ya(e,t){return e=0!==ea?ea:ta?ua?1:ia:1&t.mode?La?2+10*(1+((e-2+15)/10|0)):2+25*(1+((e-2+500)/25|0)):1,La&&(0===Na||e>Na)&&(Na=e),e}function ga(e,t){for(;null!==e;){if((0===e.expirationTime||e.expirationTime>t)&&(e.expirationTime=t),null!==e.alternate&&(0===e.alternate.expirationTime||e.alternate.expirationTime>t)&&(e.alternate.expirationTime=t),null===e.return){if(3!==e.tag)break;var n=e.stateNode;!ta&&0!==ia&&t<ia&&fa();var r=n.current.expirationTime;ta&&!ua&&ra===n||Va(n,r),Ua>Fa&&h("185")}e=e.return}}function ba(){return $o=Zr()-Xo,Jo=2+($o/10|0)}function _a(e){var t=ea;ea=2+25*(1+((ba()-2+500)/25|0));try{return e()}finally{ea=t}}function wa(e,t,n,r,i){var o=ea;ea=1;try{return e(t,n,r,i)}finally{ea=o}}var Ea=null,xa=null,Ca=0,Ta=void 0,ka=!1,Sa=null,Aa=0,Na=0,Oa=!1,Ia=!1,Pa=null,Ra=null,Da=!1,Ma=!1,La=!1,ja=null,Fa=1e3,Ua=0,Ba=1;function qa(e){if(0!==Ca){if(e>Ca)return;null!==Ta&&ti(Ta)}var t=Zr()-Xo;Ca=e,Ta=ei(za,{timeout:10*(e-2)-t})}function Va(e,t){if(null===e.nextScheduledRoot)e.remainingExpirationTime=t,null===xa?(Ea=xa=e,e.nextScheduledRoot=e):(xa=xa.nextScheduledRoot=e).nextScheduledRoot=Ea;else{var n=e.remainingExpirationTime;(0===n||t<n)&&(e.remainingExpirationTime=t)}ka||(Da?Ma&&(Sa=e,Aa=1,Ya(e,1,!1)):1===t?Ha():qa(t))}function Wa(){var e=0,t=null;if(null!==xa)for(var n=xa,r=Ea;null!==r;){var i=r.remainingExpirationTime;if(0===i){if((null===n||null===xa)&&h("244"),r===r.nextScheduledRoot){Ea=xa=r.nextScheduledRoot=null;break}if(r===Ea)Ea=i=r.nextScheduledRoot,xa.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===xa){(xa=n).nextScheduledRoot=Ea,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if((0===e||i<e)&&(e=i,t=r),r===xa)break;n=r,r=r.nextScheduledRoot}}null!==(n=Sa)&&n===t&&1===e?Ua++:Ua=0,Sa=t,Aa=e}function za(e){Ka(0,!0,e)}function Ha(){Ka(1,!1,null)}function Ka(e,t,n){if(Ra=n,Wa(),t)for(;null!==Sa&&0!==Aa&&(0===e||e>=Aa)&&(!Oa||ba()>=Aa);)ba(),Ya(Sa,Aa,!Oa),Wa();else for(;null!==Sa&&0!==Aa&&(0===e||e>=Aa);)Ya(Sa,Aa,!1),Wa();null!==Ra&&(Ca=0,Ta=null),0!==Aa&&qa(Aa),Ra=null,Oa=!1,Qa()}function Ga(e,t){ka&&h("253"),Sa=e,Aa=t,Ya(e,t,!1),Ha(),Qa()}function Qa(){if(Ua=0,null!==ja){var e=ja;ja=null;for(var t=0;t<e.length;t++){var n=e[t];try{n._onComplete()}catch(e){Ia||(Ia=!0,Pa=e)}}}if(Ia)throw e=Pa,Pa=null,Ia=!1,e}function Ya(e,t,n){ka&&h("245"),ka=!0,n?null!==(n=e.finishedWork)?Xa(e,n,t):null!==(n=da(e,t,!0))&&(Ja()?e.finishedWork=n:Xa(e,n,t)):null!==(n=e.finishedWork)?Xa(e,n,t):null!==(n=da(e,t,!1))&&Xa(e,n,t),ka=!1}function Xa(e,t,n){var r=e.firstBatch;if(null!==r&&r._expirationTime<=n&&(null===ja?ja=[r]:ja.push(r),r._defer))return e.finishedWork=t,void(e.remainingExpirationTime=0);if(e.finishedWork=null,ua=ta=!0,(n=t.stateNode).current===t&&h("177"),0===(r=n.pendingCommitExpirationTime)&&h("261"),n.pendingCommitExpirationTime=0,ba(),ot.current=null,1<t.effectTag)if(null!==t.lastEffect){t.lastEffect.nextEffect=t;var i=t.firstEffect}else i=t;else i=t.firstEffect;Yr=Nn;var o=u();if(Vn(o)){if("selectionStart"in o)var a={start:o.selectionStart,end:o.selectionEnd};else e:{var s=window.getSelection&&window.getSelection();if(s&&0!==s.rangeCount){a=s.anchorNode;var c=s.anchorOffset,f=s.focusNode;s=s.focusOffset;try{a.nodeType,f.nodeType}catch(e){a=null;break e}var p=0,d=-1,v=-1,m=0,y=0,g=o,b=null;t:for(;;){for(var _;g!==a||0!==c&&3!==g.nodeType||(d=p+c),g!==f||0!==s&&3!==g.nodeType||(v=p+s),3===g.nodeType&&(p+=g.nodeValue.length),null!==(_=g.firstChild);)b=g,g=_;for(;;){if(g===o)break t;if(b===a&&++m===c&&(d=p),b===f&&++y===s&&(v=p),null!==(_=g.nextSibling))break;b=(g=b).parentNode}g=_}a=-1===d||-1===v?null:{start:d,end:v}}else a=null}a=a||{start:0,end:0}}else a=null;for(Xr={focusedElem:o,selectionRange:a},On(!1),sa=i;null!==sa;){o=!1,a=void 0;try{for(;null!==sa;){if(256&sa.effectTag){var w=sa.alternate;switch((c=sa).tag){case 2:if(256&c.effectTag&&null!==w){var E=w.memoizedProps,x=w.memoizedState,C=c.stateNode;C.props=c.memoizedProps,C.state=c.memoizedState;var T=C.getSnapshotBeforeUpdate(E,x);C.__reactInternalSnapshotBeforeUpdate=T}break;case 3:case 5:case 6:case 4:break;default:h("163")}}sa=sa.nextEffect}}catch(e){o=!0,a=e}o&&(null===sa&&h("178"),va(sa,a),null!==sa&&(sa=sa.nextEffect))}for(sa=i;null!==sa;){w=!1,E=void 0;try{for(;null!==sa;){var k=sa.effectTag;if(16&k&&Pr(sa.stateNode,""),128&k){var S=sa.alternate;if(null!==S){var A=S.ref;null!==A&&("function"==typeof A?A(null):A.current=null)}}switch(14&k){case 2:Wo(sa),sa.effectTag&=-3;break;case 6:Wo(sa),sa.effectTag&=-3,Ho(sa.alternate,sa);break;case 4:Ho(sa.alternate,sa);break;case 8:zo(x=sa),x.return=null,x.child=null,x.alternate&&(x.alternate.child=null,x.alternate.return=null)}sa=sa.nextEffect}}catch(e){w=!0,E=e}w&&(null===sa&&h("178"),va(sa,E),null!==sa&&(sa=sa.nextEffect))}if(A=Xr,S=u(),k=A.focusedElem,w=A.selectionRange,S!==k&&l(document.documentElement,k)){null!==w&&Vn(k)&&(S=w.start,void 0===(A=w.end)&&(A=S),"selectionStart"in k?(k.selectionStart=S,k.selectionEnd=Math.min(A,k.value.length)):window.getSelection&&(S=window.getSelection(),E=k[de()].length,A=Math.min(w.start,E),w=void 0===w.end?A:Math.min(w.end,E),!S.extend&&A>w&&(E=w,w=A,A=E),E=qn(k,A),x=qn(k,w),E&&x&&(1!==S.rangeCount||S.anchorNode!==E.node||S.anchorOffset!==E.offset||S.focusNode!==x.node||S.focusOffset!==x.offset)&&((C=document.createRange()).setStart(E.node,E.offset),S.removeAllRanges(),A>w?(S.addRange(C),S.extend(x.node,x.offset)):(C.setEnd(x.node,x.offset),S.addRange(C))))),S=[];for(A=k;A=A.parentNode;)1===A.nodeType&&S.push({element:A,left:A.scrollLeft,top:A.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<S.length;k++)(A=S[k]).element.scrollLeft=A.left,A.element.scrollTop=A.top}for(Xr=null,On(Yr),Yr=null,n.current=t,sa=i;null!==sa;){i=!1,k=void 0;try{for(S=r;null!==sa;){var N=sa.effectTag;if(36&N){var O=sa.alternate;switch(w=S,(A=sa).tag){case 2:var I=A.stateNode;if(4&A.effectTag)if(null===O)I.props=A.memoizedProps,I.state=A.memoizedState,I.componentDidMount();else{var P=O.memoizedProps,R=O.memoizedState;I.props=A.memoizedProps,I.state=A.memoizedState,I.componentDidUpdate(P,R,I.__reactInternalSnapshotBeforeUpdate)}var D=A.updateQueue;null!==D&&(I.props=A.memoizedProps,I.state=A.memoizedState,zi(A,D,I));break;case 3:var M=A.updateQueue;if(null!==M){if(E=null,null!==A.child)switch(A.child.tag){case 5:E=A.child.stateNode;break;case 2:E=A.child.stateNode}zi(A,M,E)}break;case 5:var L=A.stateNode;null===O&&4&A.effectTag&&Jr(A.type,A.memoizedProps)&&L.focus();break;case 6:case 4:case 15:case 16:break;default:h("163")}}if(128&N){A=void 0;var j=sa.ref;if(null!==j){var F=sa.stateNode;switch(sa.tag){case 5:A=F;break;default:A=F}"function"==typeof j?j(A):j.current=A}}var U=sa.nextEffect;sa.nextEffect=null,sa=U}}catch(e){i=!0,k=e}i&&(null===sa&&h("178"),va(sa,k),null!==sa&&(sa=sa.nextEffect))}ta=ua=!1,Ii(t.stateNode),0===(t=n.current.expirationTime)&&(la=null),e.remainingExpirationTime=t}function Ja(){return!(null===Ra||Ra.timeRemaining()>Ba)&&(Oa=!0)}function $a(e){null===Sa&&h("246"),Sa.remainingExpirationTime=0,Ia||(Ia=!0,Pa=e)}function Za(e,t){var n=Da;Da=!0;try{return e(t)}finally{(Da=n)||ka||Ha()}}function es(e,t){if(Da&&!Ma){Ma=!0;try{return e(t)}finally{Ma=!1}}return e(t)}function ts(e,t){ka&&h("187");var n=Da;Da=!0;try{return wa(e,t)}finally{Da=n,Ha()}}function ns(e,t,n){if(La)return e(t,n);Da||ka||0===Na||(Ka(Na,!1,null),Na=0);var r=La,i=Da;Da=La=!0;try{return e(t,n)}finally{La=r,(Da=i)||ka||Ha()}}function rs(e){var t=Da;Da=!0;try{wa(e)}finally{(Da=t)||ka||Ka(1,!1,null)}}function is(e,t,n,r,i){var o=t.current;if(n){var a;n=n._reactInternalFiber;e:{for(2===an(n)&&2===n.tag||h("170"),a=n;3!==a.tag;){if(di(a)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}(a=a.return)||h("171")}a=a.stateNode.context}n=di(n)?gi(n,a):a}else n=f;return null===t.context?t.context=n:t.pendingContext=n,t=i,(i=Li(r)).payload={element:e},null!==(t=void 0===t?null:t)&&(i.callback=t),Fi(o,i,r),ga(o,r),r}function os(e){var t=e._reactInternalFiber;return void 0===t&&("function"==typeof e.render?h("188"):h("268",Object.keys(e))),null===(e=cn(t))?null:e.stateNode}function as(e,t,n,r){var i=t.current;return is(e,t,n,i=ya(ba(),i),r)}function ss(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function us(e){var t=e.findFiberByHostInstance;return function(e){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var n=t.inject(e);Ai=Oi(function(e){return t.onCommitFiberRoot(n,e)}),Ni=Oi(function(e){return t.onCommitFiberUnmount(n,e)})}catch(e){}return!0}(a({},e,{findHostInstanceByFiber:function(e){return null===(e=cn(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null}}))}var cs=Za,ls=ns,fs=function(){ka||0===Na||(Ka(Na,!1,null),Na=0)};function hs(e){this._expirationTime=ma(),this._root=e,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function ps(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function ds(e,t,n){this._internalRoot=Si(e,t,n)}function vs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function ms(e,t,n,r,i){vs(n)||h("200");var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var e=ss(o._internalRoot);a.call(e)}}null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)}else{if(o=n._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var n;n=e.lastChild;)e.removeChild(n);return new ds(e,!1,t)}(n,r),"function"==typeof i){var s=i;i=function(){var e=ss(o._internalRoot);s.call(e)}}es(function(){null!=e?o.legacy_renderSubtreeIntoContainer(e,t,i):o.render(t,i)})}return ss(o._internalRoot)}function ys(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return vs(t)||h("200"),function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:ut,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)}Ue.injectFiberControlledHostComponent(Qr),hs.prototype.render=function(e){this._defer||h("250"),this._hasChildren=!0,this._children=e;var t=this._root._internalRoot,n=this._expirationTime,r=new ps;return is(e,t,null,n,r._onCommit),r},hs.prototype.then=function(e){if(this._didComplete)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},hs.prototype.commit=function(){var e=this._root._internalRoot,t=e.firstBatch;if(this._defer&&null!==t||h("251"),this._hasChildren){var n=this._expirationTime;if(t!==this){this._hasChildren&&(n=this._expirationTime=t._expirationTime,this.render(this._children));for(var r=null,i=t;i!==this;)r=i,i=i._next;null===r&&h("251"),r._next=i._next,this._next=t,e.firstBatch=this}this._defer=!1,Ga(e,n),t=this._next,this._next=null,null!==(t=e.firstBatch=t)&&t._hasChildren&&t.render(t._children)}else this._next=null,this._defer=!1},hs.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++)(0,e[t])()}},ps.prototype.then=function(e){if(this._didCommit)e();else{var t=this._callbacks;null===t&&(t=this._callbacks=[]),t.push(e)}},ps.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var e=this._callbacks;if(null!==e)for(var t=0;t<e.length;t++){var n=e[t];"function"!=typeof n&&h("191",n),n()}}},ds.prototype.render=function(e,t){var n=this._internalRoot,r=new ps;return null!==(t=void 0===t?null:t)&&r.then(t),as(e,n,null,r._onCommit),r},ds.prototype.unmount=function(e){var t=this._internalRoot,n=new ps;return null!==(e=void 0===e?null:e)&&n.then(e),as(null,t,null,n._onCommit),n},ds.prototype.legacy_renderSubtreeIntoContainer=function(e,t,n){var r=this._internalRoot,i=new ps;return null!==(n=void 0===n?null:n)&&i.then(n),as(t,r,e,i._onCommit),i},ds.prototype.createBatch=function(){var e=new hs(this),t=e._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=e,e._next=null;else{for(n=null;null!==r&&r._expirationTime<=t;)n=r,r=r._next;e._next=r,null!==n&&(n._next=e)}return e},Ge=cs,Qe=ls,Ye=fs;var gs={createPortal:ys,findDOMNode:function(e){return null==e?null:1===e.nodeType?e:os(e)},hydrate:function(e,t,n){return ms(null,e,t,!0,n)},render:function(e,t,n){return ms(null,e,t,!1,n)},unstable_renderSubtreeIntoContainer:function(e,t,n,r){return(null==e||void 0===e._reactInternalFiber)&&h("38"),ms(e,t,n,!1,r)},unmountComponentAtNode:function(e){return vs(e)||h("40"),!!e._reactRootContainer&&(es(function(){ms(null,null,e,!1,function(){e._reactRootContainer=null})}),!0)},unstable_createPortal:function(){return ys.apply(void 0,arguments)},unstable_batchedUpdates:Za,unstable_deferredUpdates:_a,unstable_interactiveUpdates:ns,flushSync:ts,unstable_flushControlled:rs,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{EventPluginHub:U,EventPluginRegistry:C,EventPropagators:ne,ReactControlledComponent:Ke,ReactDOMComponentTree:K,ReactDOMEventListener:Mn},unstable_createRoot:function(e,t){return new ds(e,!0,null!=t&&!0===t.hydrate)}};us({findFiberByHostInstance:W,bundleType:0,version:"16.4.1",rendererPackageName:"react-dom"});var bs={default:gs},_s=bs&&gs||bs;e.exports=_s.default?_s.default:_s},function(e,t,n){"use strict";

/** @license React v16.4.1

* react.production.min.js
*
* Copyright (c) 2013-present, Facebook, Inc.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(285),i=n(198),o=n(284),a=n(197),s="function"==typeof Symbol&&Symbol.for,u=s?Symbol.for("react.element"):60103,c=s?Symbol.for("react.portal"):60106,l=s?Symbol.for("react.fragment"):60107,f=s?Symbol.for("react.strict_mode"):60108,h=s?Symbol.for("react.profiler"):60114,p=s?Symbol.for("react.provider"):60109,d=s?Symbol.for("react.context"):60110,v=s?Symbol.for("react.async_mode"):60111,m=s?Symbol.for("react.forward_ref"):60112;s&&Symbol.for("react.timeout");var y="function"==typeof Symbol&&Symbol.iterator;function g(e){for(var t=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);i(!1,"Minified React error #"+e+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function _(e,t,n){this.props=e,this.context=t,this.refs=o,this.updater=n||b}function w(){}function E(e,t,n){this.props=e,this.context=t,this.refs=o,this.updater=n||b}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&g("85"),this.updater.enqueueSetState(this,e,t,"setState")},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=_.prototype;var x=E.prototype=new w;x.constructor=E,r(x,_.prototype),x.isPureReactComponent=!0;var C={current:null},T=Object.prototype.hasOwnProperty,k={key:!0,ref:!0,__self:!0,__source:!0};function S(e,t,n){var r=void 0,i={},o=null,a=null;if(null!=t)for(r in void 0!==t.ref&&(a=t.ref),void 0!==t.key&&(o=""+t.key),t)T.call(t,r)&&!k.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];i.children=c}if(e&&e.defaultProps)for(r in s=e.defaultProps)void 0===i[r]&&(i[r]=s[r]);return{$$typeof:u,type:e,key:o,ref:a,props:i,_owner:C.current}}function A(e){return"object"==typeof e&&null!==e&&e.$$typeof===u}var N=/\/+/g,O=[];function I(e,t,n,r){if(O.length){var i=O.pop();return i.result=e,i.keyPrefix=t,i.func=n,i.context=r,i.count=0,i}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function P(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>O.length&&O.push(e)}function R(e,t,n,r){var i=typeof e;"undefined"!==i&&"boolean"!==i||(e=null);var o=!1;if(null===e)o=!0;else switch(i){case"string":case"number":o=!0;break;case"object":switch(e.$$typeof){case u:case c:o=!0}}if(o)return n(r,e,""===t?"."+D(e,0):t),1;if(o=0,t=""===t?".":t+":",Array.isArray(e))for(var a=0;a<e.length;a++){var s=t+D(i=e[a],a);o+=R(i,s,n,r)}else if(null===e||void 0===e?s=null:s="function"==typeof(s=y&&e[y]||e["@@iterator"])?s:null,"function"==typeof s)for(e=s.call(e),a=0;!(i=e.next()).done;)o+=R(i=i.value,s=t+D(i,a++),n,r);else"object"===i&&g("31","[object Object]"===(n=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":n,"");return o}function D(e,t){return"object"==typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}(e.key):t.toString(36)}function M(e,t){e.func.call(e.context,t,e.count++)}function L(e,t,n){var r=e.result,i=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?j(e,r,n,a.thatReturnsArgument):null!=e&&(A(e)&&(t=i+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(N,"$&/")+"/")+n,e={$$typeof:u,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}),r.push(e))}function j(e,t,n,r,i){var o="";null!=n&&(o=(""+n).replace(N,"$&/")+"/"),t=I(t,o,r,i),null==e||R(e,"",L,t),P(t)}var F={Children:{map:function(e,t,n){if(null==e)return e;var r=[];return j(e,r,null,t,n),r},forEach:function(e,t,n){if(null==e)return e;t=I(null,null,t,n),null==e||R(e,"",M,t),P(t)},count:function(e){return null==e?0:R(e,"",a.thatReturnsNull,null)},toArray:function(e){var t=[];return j(e,t,null,a.thatReturnsArgument),t},only:function(e){return A(e)||g("143"),e}},createRef:function(){return{current:null}},Component:_,PureComponent:E,createContext:function(e,t){return void 0===t&&(t=null),(e={$$typeof:d,_calculateChangedBits:t,_defaultValue:e,_currentValue:e,_currentValue2:e,_changedBits:0,_changedBits2:0,Provider:null,Consumer:null}).Provider={$$typeof:p,_context:e},e.Consumer=e},forwardRef:function(e){return{$$typeof:m,render:e}},Fragment:l,StrictMode:f,unstable_AsyncMode:v,unstable_Profiler:h,createElement:S,cloneElement:function(e,t,n){(null===e||void 0===e)&&g("267",e);var i=void 0,o=r({},e.props),a=e.key,s=e.ref,c=e._owner;if(null!=t){void 0!==t.ref&&(s=t.ref,c=C.current),void 0!==t.key&&(a=""+t.key);var l=void 0;for(i in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)T.call(t,i)&&!k.hasOwnProperty(i)&&(o[i]=void 0===t[i]&&void 0!==l?l[i]:t[i])}if(1===(i=arguments.length-2))o.children=n;else if(1<i){l=Array(i);for(var f=0;f<i;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:u,type:e.type,key:a,ref:s,props:o,_owner:c}},createFactory:function(e){var t=S.bind(null,e);return t.type=e,t},isValidElement:A,version:"16.4.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C,assign:r}},U={default:F},B=U&&F||U;e.exports=B.default?B.default:B},function(e,t,n){"use strict";var r=a(n(0)),i=a(n(86)),o=a(n(655));function a(e){return e&&e.__esModule?e:{default:e}}i.default.render(r.default.createElement(o.default,null),document.getElementById("index"))}]);