diff --git a/dist.css b/dist.css index 0105ca0..07b5d6f 100644 --- a/dist.css +++ b/dist.css @@ -1,2 +1,2 @@ -.dialog_CodeMirror-dialog_3TQ-EkCNru{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.dialog_CodeMirror-dialog-top_1Ctmiq9zv0{border-bottom:1px solid #eee;top:0}.dialog_CodeMirror-dialog-bottom_Y99b89Hggf{border-top:1px solid #eee;bottom:0}.dialog_CodeMirror-dialog_3TQ-EkCNru input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.dialog_CodeMirror-dialog_3TQ-EkCNru button{font-size:70%}.show-hint_CodeMirror-hints_1CMzRn9_V9{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.show-hint_CodeMirror-hint_3hS1mmj-cR{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.show-hint_CodeMirror-hint-active_lAmS18Yp2n{background:#08f;color:#fff}.codemirror_CodeMirror_1_N4MsOxgY{font-family:monospace;height:300px;color:#000}.codemirror_CodeMirror-lines_1ck7Rc0Yp7{padding:4px 0}.codemirror_CodeMirror_1_N4MsOxgY pre{padding:0 4px}.codemirror_CodeMirror-gutter-filler_O1U1fH9z44,.codemirror_CodeMirror-scrollbar-filler_3QpCBYI4rV{background-color:#fff}.codemirror_CodeMirror-gutters_K4gzF02xrT{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.codemirror_CodeMirror-linenumber_2GOQYFEtH2{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.codemirror_CodeMirror-guttermarker_2OsEcsAeZQ{color:#000}.codemirror_CodeMirror-guttermarker-subtle_7AzrmVCkTG{color:#999}.codemirror_CodeMirror-cursor_2vS79mmrVQ{border-left:1px solid #000;border-right:none;width:0}.codemirror_CodeMirror_1_N4MsOxgY div.codemirror_CodeMirror-secondarycursor_25Wcq5Mt6f{border-left:1px solid silver}.codemirror_cm-fat-cursor_3vPyWgfGka .codemirror_CodeMirror-cursor_2vS79mmrVQ{width:auto;border:0!important;background:#7e7}.codemirror_cm-fat-cursor_3vPyWgfGka div.codemirror_CodeMirror-cursors_3Tm8HDyaUx{z-index:1}.codemirror_cm-animate-fat-cursor_3MmpLAdzJI{width:auto;border:0;-webkit-animation:codemirror_blink_3GXpUHj-8X 1.06s steps(1) infinite;-moz-animation:codemirror_blink_3GXpUHj-8X 1.06s steps(1) infinite;animation:codemirror_blink_3GXpUHj-8X 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes codemirror_blink_3GXpUHj-8X{50%{background-color:transparent}}@-webkit-keyframes codemirror_blink_3GXpUHj-8X{50%{background-color:transparent}}@keyframes codemirror_blink_3GXpUHj-8X{50%{background-color:transparent}}.codemirror_cm-tab_1tIelOu892{display:inline-block;text-decoration:inherit}.codemirror_CodeMirror-rulers_7cIJNOoJdT{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.codemirror_CodeMirror-ruler_1gTrk0rnOX{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-header_eLxfeU_eE9{color:blue}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-quote_3Y9livL1An{color:#090}.codemirror_cm-negative_322MdkTlRb{color:#d44}.codemirror_cm-positive_1-KK1pO6IB{color:#292}.codemirror_cm-header_eLxfeU_eE9,.codemirror_cm-strong_Cg7waGPeR7{font-weight:700}.codemirror_cm-em_3ubIcFFTlq{font-style:italic}.codemirror_cm-link_32gHR4fzm2{text-decoration:underline}.codemirror_cm-strikethrough_aHQGsbYr9N{text-decoration:line-through}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-keyword_3eSXO4o633{color:#708}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-atom_3BhdumndEf{color:#219}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-number_2R47Qb69T6{color:#164}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-def_3Oo0Uz9BF_{color:#00f}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-variable-2_3YXZ7begGu{color:#05a}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-type_aTwAIic72s,.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-variable-3_36T-ytxQQ0{color:#085}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-comment_1LwjcDQhsT{color:#a50}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-string_bYuQ3y3_oq{color:#a11}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-string-2_1ThUcQOyds{color:#f50}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-meta_1csUstcMbk,.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-qualifier_2Eg94T043G{color:#555}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-builtin_Lhr1AXt7Vx{color:#30a}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-bracket_3dpm_hiBmO{color:#997}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-tag_2roO0evT0e{color:#170}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-attribute_1ZCM9yMg9z{color:#00c}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-hr_3BLk4fvUo4{color:#999}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-link_32gHR4fzm2{color:#00c}.codemirror_cm-invalidchar_2-BOH7EyES,.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-error_30c1gdEqp_{color:red}.codemirror_CodeMirror-composing_11bCIUYRWk{border-bottom:2px solid}div.codemirror_CodeMirror_1_N4MsOxgY span.codemirror_CodeMirror-matchingbracket_45cedawaco{color:#0f0}div.codemirror_CodeMirror_1_N4MsOxgY span.codemirror_CodeMirror-nonmatchingbracket_FqEdHh7rFC{color:#f22}.codemirror_CodeMirror-matchingtag_361fe6S4wg{background:rgba(255,150,0,.3)}.codemirror_CodeMirror-activeline-background_1uHoRhq57a{background:#e8f2ff}.codemirror_CodeMirror_1_N4MsOxgY{position:relative;overflow:hidden;background:#fff}.codemirror_CodeMirror-scroll_r8V7PdTM-H{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.codemirror_CodeMirror-sizer_1nCC7QHF2f{position:relative;border-right:30px solid transparent}.codemirror_CodeMirror-gutter-filler_O1U1fH9z44,.codemirror_CodeMirror-hscrollbar_1WjHMoWf1s,.codemirror_CodeMirror-scrollbar-filler_3QpCBYI4rV,.codemirror_CodeMirror-vscrollbar_eBgZXKAc0O{position:absolute;z-index:6;display:none}.codemirror_CodeMirror-vscrollbar_eBgZXKAc0O{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.codemirror_CodeMirror-hscrollbar_1WjHMoWf1s{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.codemirror_CodeMirror-scrollbar-filler_3QpCBYI4rV{right:0;bottom:0}.codemirror_CodeMirror-gutter-filler_O1U1fH9z44{left:0;bottom:0}.codemirror_CodeMirror-gutters_K4gzF02xrT{position:absolute;left:0;top:0;min-height:100%;z-index:3}.codemirror_CodeMirror-gutter_34qSAO74wb{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.codemirror_CodeMirror-gutter-wrapper_12ufukwByw{position:absolute;z-index:4;background:none!important;border:none!important}.codemirror_CodeMirror-gutter-background_265CyaqIhx{position:absolute;top:0;bottom:0;z-index:4}.codemirror_CodeMirror-gutter-elt_3ocq8l7uCc{position:absolute;cursor:default;z-index:4}.codemirror_CodeMirror-gutter-wrapper_12ufukwByw ::selection{background-color:transparent}.codemirror_CodeMirror-gutter-wrapper_12ufukwByw ::-moz-selection{background-color:transparent}.codemirror_CodeMirror-lines_1ck7Rc0Yp7{cursor:text;min-height:1px}.codemirror_CodeMirror_1_N4MsOxgY pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.codemirror_CodeMirror-wrap_1go01Dg0iC pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.codemirror_CodeMirror-linebackground_1sOMiv5CMQ{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.codemirror_CodeMirror-linewidget_1C1gtbUPyz{position:relative;z-index:2;overflow:auto}.codemirror_CodeMirror-rtl_zO0aeN8uWG pre{direction:rtl}.codemirror_CodeMirror-code_1g-hmqqCyF{outline:none}.codemirror_CodeMirror-gutter_34qSAO74wb,.codemirror_CodeMirror-gutters_K4gzF02xrT,.codemirror_CodeMirror-linenumber_2GOQYFEtH2,.codemirror_CodeMirror-scroll_r8V7PdTM-H,.codemirror_CodeMirror-sizer_1nCC7QHF2f{-moz-box-sizing:content-box;box-sizing:content-box}.codemirror_CodeMirror-measure_drb3KS0asE{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.codemirror_CodeMirror-cursor_2vS79mmrVQ{position:absolute;pointer-events:none}.codemirror_CodeMirror-measure_drb3KS0asE pre{position:static}div.codemirror_CodeMirror-cursors_3Tm8HDyaUx{visibility:hidden;position:relative;z-index:3}.codemirror_CodeMirror-focused_2V7QHct1-b div.codemirror_CodeMirror-cursors_3Tm8HDyaUx,div.codemirror_CodeMirror-dragcursors_3QkklpVTb4{visibility:visible}.codemirror_CodeMirror-selected_1WrqKkoTzi{background:#d9d9d9}.codemirror_CodeMirror-focused_2V7QHct1-b .codemirror_CodeMirror-selected_1WrqKkoTzi{background:#d7d4f0}.codemirror_CodeMirror-crosshair_OT8aCU3rHZ{cursor:crosshair}.codemirror_CodeMirror-line_2U23GAZUlX::selection,.codemirror_CodeMirror-line_2U23GAZUlX>span::selection,.codemirror_CodeMirror-line_2U23GAZUlX>span>span::selection{background:#d7d4f0}.codemirror_CodeMirror-line_2U23GAZUlX::-moz-selection,.codemirror_CodeMirror-line_2U23GAZUlX>span::-moz-selection,.codemirror_CodeMirror-line_2U23GAZUlX>span>span::-moz-selection{background:#d7d4f0}.codemirror_cm-searching_jZph4Um0V4{background:#ffa;background:rgba(255,255,0,.4)}.codemirror_cm-force-border_28L8DoFpMc{padding-right:.1px}@media print{.codemirror_CodeMirror_1_N4MsOxgY div.codemirror_CodeMirror-cursors_3Tm8HDyaUx{visibility:hidden}}.codemirror_cm-tab-wrap-hack_27OXRXa_jP:after{content:""}span.codemirror_CodeMirror-selectedtext_3oDRSvNmj-{background:none}.cm-matchhighlight{background-color:rgba(255,255,0,.4)}.CodeMirror-hints{font-family:dejavu sans mono,monospace;font-size:11px;border-radius:0;border:none;padding:0}.CodeMirror-hint{border-radius:0;cursor:default;padding:.25em .25em .25em .35em}.console_result_3H6iinED71{border-top:1px solid #eee;display:flex;font-family:dejavu sans mono,monospace;padding:.35em .25em}.console_result_3H6iinED71.console_error_389JiXH81k{background-color:#fff0f0}.console_result_3H6iinED71.console_error_389JiXH81k .console_text_2vJZmdmO_S{color:red}.console_result_3H6iinED71.console_warn_1Xk-dytaHv{background-color:#fffbe5}.console_type_3svOzuunT1{font-weight:700!important;font-size:8pt;padding:0 .5em 0 .25em}.console_time_3RMgvacqWu{color:gray;padding:0 1em 0 .5em}.console_token_1wT5u1HIg4{white-space:pre-wrap}.console_text_2vJZmdmO_S{display:flex}.console_text_2vJZmdmO_S .console_token_1wT5u1HIg4:not(:first-child){margin-left:.5em}.header_container_dIet9CwVtr{background-color:#f3f3f3;border-bottom:1px solid #ccc;font-size:12px;padding:0 .5em}.header_tabs_35-Zlfvd36{display:flex}.header_tab_3uchNzwUhV{align-items:center;box-sizing:border-box;border:1px solid transparent;color:#333;cursor:default;display:flex;height:24px;line-height:15px;margin-top:2px;padding:2px 6px 2px 4px}.header_tab_3uchNzwUhV.header_active_1Q9RyFXWz1:hover,.header_tab_3uchNzwUhV:hover{background-color:#e5e5e5}.header_tab_3uchNzwUhV.header_active_1Q9RyFXWz1{background-color:#fff;border:1px solid #ccc;border-bottom:none}.autocomplete_container_3-0erhM6ut{background:#f8f8f8;box-shadow:0 .125em .25em rgba(0,0,0,.5);font-family:dejavu sans mono,monospace;left:20px;position:absolute;max-height:300px;overflow:auto}.autocomplete_item_9SFDTlVB_h{background-color:#fff;padding:.25em .25em .25em .35em;display:flex;justify-content:space-between}.autocomplete_item_9SFDTlVB_h.autocomplete_selected_2ujXIHtWUM{background-color:#4073f4}.autocomplete_item_9SFDTlVB_h.autocomplete_selected_2ujXIHtWUM,.autocomplete_item_9SFDTlVB_h.autocomplete_selected_2ujXIHtWUM .autocomplete_proto_19V89q6k2K{color:#fff}.autocomplete_item_9SFDTlVB_h:hover{cursor:default}.autocomplete_item_9SFDTlVB_h:hover:not(.autocomplete_selected_2ujXIHtWUM){background-color:#e6ecff}.autocomplete_item_9SFDTlVB_h .autocomplete_proto_19V89q6k2K{color:gray;margin-left:1em}.input_type_2ObsQNTts-{color:#59f;font-weight:700!important;font-size:11px;padding:0 .5em 0 .25em}.input_inputContainer_2REeb6PEul{flex:1}.input_input_avZFpsTP3S{border:0;margin:0;padding:0;color:#000;height:100%;font-size:11px;resize:none;width:100%}.input_container_2wRv7n-JO0{border-top:1px solid #d3d3d3;display:flex;flex:1;padding:.25em;position:relative}.settings_container_13NZA5MaCs{display:flex;flex-direction:row;font-family:Arial,sans-serif;font-size:12px;padding:.5em 1em}.settings_option_e47iJdr7eA{align-items:center;display:flex;flex:0 0 50%;flex-direction:row;margin:.5em 0}.snippets_container_2SmcMgMGYZ{display:flex;flex:1;flex-direction:row}.snippets_panel_3TG9sp3i_s{border-right:1px solid #d3d3d3;display:flex;flex-direction:column;min-width:200px}.snippets_add_3lXTUuX-ZR{align-items:center;background-color:#fcfcfc;border-bottom:1px solid #d3d3d3;cursor:default;display:flex;padding:.5em 1em}.snippets_add_3lXTUuX-ZR .snippets_plus_28sNTioht8{font-size:15px;font-weight:700!important;margin-right:5px}.snippets_add_3lXTUuX-ZR:hover{background-color:#f0f0f0}.snippets_list_yl2YoznBls{display:flex;flex-direction:column;margin-top:3px}.snippets_code_1ncJZ65-rr{display:flex;flex:1;flex-direction:column}.snippets_code_1ncJZ65-rr .snippets_console_50t-dAF2R5{border-top:1px solid #d3d3d3;max-height:200px;flex:0 0 0}.snippets_code_1ncJZ65-rr .snippets_console_50t-dAF2R5>*{overflow:auto;height:100%}.snippets_code_1ncJZ65-rr>*{flex:1}.snippets_code_1ncJZ65-rr .CodeMirror{height:100%}.snippets_file_1Sa9XeGtli{align-items:center;cursor:default;display:flex;padding:.5em .5em .5em 1em}.snippets_file_1Sa9XeGtli.snippets_selected_15eqhtScgw{background-color:#f0f0f0}.snippets_file_1Sa9XeGtli:hover{background-color:#e6ecff}.snippets_file_1Sa9XeGtli .snippets_pristine_3XK1YHkQtt{font-size:20px;margin-right:3px;height:13px}.snippets_file_1Sa9XeGtli .snippets_remove_1UAyyAYhZD{cursor:default;display:inline-flex;font-size:14px;margin-left:-.25em;margin-right:.25em}.snippets_inputContainer_XElzlHVfdk{background-color:#fff;border:1px solid #d8d8d8;margin-right:.5em;padding:3px;width:100%}.snippets_input_2xJxgkPza6{border:none;font:11px Arial;width:100%}.watches_container_20saMb_uZi{background:#eee;border-top:1px solid #d3d3d3;display:flex;flex-direction:row;padding:.25em;font-size:8pt;color:#888}.watches_watch_2NCeN8CFy6{align-items:flex-end;border-left:1px solid #ccc;display:flex;padding:0 1em}.watches_watch_2NCeN8CFy6.watches_error_109y_NPc36 .watches_result_HkQmILyMu6{color:red}.watches_watch_2NCeN8CFy6 .watches_result_HkQmILyMu6{color:#00f;font-weight:700;margin-left:.5em}.watches_add_3GGEK4AK_K{color:green;cursor:default;font-size:14px;font-weight:700!important;padding:0 1em}.watches_add_3GGEK4AK_K:hover{background-color:#fcfcfc}.watches_add_3GGEK4AK_K.watches_selected_3kjcNq1Jhv{background-color:#e6ecff}.watches_addContainer_UpcbOQpD0R{position:relative}.watches_addForm_Tmo0qqNqKo{bottom:100%;display:flex;padding:.5em 0;position:absolute;width:100vw}.watches_addForm_Tmo0qqNqKo .watches_inputContainer_1E_H2dgERf{border:1px solid #d8d8d8;margin-right:.5em;padding:3px}.watches_addForm_Tmo0qqNqKo .watches_input_1TE7wVSKX4{border:none;font:12px Arial}.watches_addForm_Tmo0qqNqKo .watches_input_1TE7wVSKX4.watches_big_1MoqMeiWBG{width:300px}.watches_addForm_Tmo0qqNqKo .watches_button_2oJ0BjrHgT{color:#000;font:12px Arial;padding:0 1em}.watches_remove_3MMfBg47Ko{cursor:default;display:inline-flex;font-size:14px;margin-right:.75em}.watches_remove_3MMfBg47Ko *{line-height:13px}.watches_remove_3MMfBg47Ko:hover{background-color:#fcfcfc}.application_app_3Pw80oNPBW{display:flex;flex-direction:column;font-family:Arial,sans-serif;font-size:11px;height:100vh;overflow:hidden}input,textarea{outline:none}code,input,pre,textarea{font-family:dejavu sans mono,monospace}code,pre{font-size:11px}.application_header_2PQopbo-Qn{flex:0 0 auto}.application_view_vVPh8YkPvQ{display:flex;flex:1;flex-direction:column}.application_eval_2mPbemaC--{flex:0 1 auto;font-family:dejavu sans mono,monospace;overflow:auto}.application_input_1UkSBduOYO{border-top:1px solid #eee;display:flex;flex:1 1 auto;min-height:50px}.application_status_mtiWnFieeM{flex:0 0 auto;font-family:dejavu sans mono,monospace}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/0eC6fl06luXEYWpBSJvXCIX0hVgzZQUfRDuZrPvH3D8.9b68886401.woff2) format("woff2");unicode-range:u+0460-052f,u+20b4,u+2de0-2dff,u+a640-a69f}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/Fl4y0QdOxyyTHEGMXX8kcYX0hVgzZQUfRDuZrPvH3D8.af34a57573.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/-L14Jk06m6pUHB-5mXQQnYX0hVgzZQUfRDuZrPvH3D8.85b8ec3ad2.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/I3S1wsgSg9YCurV6PUkTOYX0hVgzZQUfRDuZrPvH3D8.890137f2a9.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/NYDWBdD4gIq26G5XYbHsFIX0hVgzZQUfRDuZrPvH3D8.bcb5918360.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/Pru33qjShpZSmG3z6VYwnYX0hVgzZQUfRDuZrPvH3D8.89028d2d23.woff2) format("woff2");unicode-range:u+0100-024f,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/Hgo13k-tfSpn0qi1SFdUfZBw1xU1rKptJj_0jans920.16a9467557.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2212,u+2215,u+e0ff,u+effd,u+f000}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz0ExlR2MysFCBK8OirNw2kM.c9e9d851eb.woff2) format("woff2");unicode-range:u+0460-052f,u+20b4,u+2de0-2dff,u+a640-a69f}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz2dsm03krrxlabhmVQFB99s.200142f539.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59FzyJ0caWjaSBdV-xZbEgst_k.efb845429d.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz2MSHb9EAJwuSzGfuRChQzQ.3c4e397d8b.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz-pRBTtN4E2_qSPBnw6AgMc.62f2f972e0.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz9Dnm4qiMZlH5rhYv_7LI2Y.bd43bb45b2.woff2) format("woff2");unicode-range:u+0100-024f,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz9TIkQYohD4BpHvJ3NvbHoA.63cba37360.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2212,u+2215,u+e0ff,u+effd,u+f000}:root,:root body{background:#fff;border:0;color:#333;font-size:16px;font-family:Roboto,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Arial,sans-serif;font-weight:300;margin:0;padding:0;vertical-align:top}:root,:root #container,:root body{min-height:100%;width:100%;display:flex;flex:1;flex-direction:column}:root *{font-weight:300}:root #container>div{flex:1;flex-direction:column} +.dialog_CodeMirror-dialog_3TQ-EkCNru{position:absolute;left:0;right:0;background:inherit;z-index:15;padding:.1em .8em;overflow:hidden;color:inherit}.dialog_CodeMirror-dialog-top_1Ctmiq9zv0{border-bottom:1px solid #eee;top:0}.dialog_CodeMirror-dialog-bottom_Y99b89Hggf{border-top:1px solid #eee;bottom:0}.dialog_CodeMirror-dialog_3TQ-EkCNru input{border:none;outline:none;background:transparent;width:20em;color:inherit;font-family:monospace}.dialog_CodeMirror-dialog_3TQ-EkCNru button{font-size:70%}.show-hint_CodeMirror-hints_1CMzRn9_V9{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px rgba(0,0,0,.2);border-radius:3px;border:1px solid silver;background:#fff;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto}.show-hint_CodeMirror-hint_3hS1mmj-cR{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.show-hint_CodeMirror-hint-active_lAmS18Yp2n{background:#08f;color:#fff}.codemirror_CodeMirror_1_N4MsOxgY{font-family:monospace;height:300px;color:#000;direction:ltr}.codemirror_CodeMirror-lines_1ck7Rc0Yp7{padding:4px 0}.codemirror_CodeMirror_1_N4MsOxgY pre{padding:0 4px}.codemirror_CodeMirror-gutter-filler_O1U1fH9z44,.codemirror_CodeMirror-scrollbar-filler_3QpCBYI4rV{background-color:#fff}.codemirror_CodeMirror-gutters_K4gzF02xrT{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.codemirror_CodeMirror-linenumber_2GOQYFEtH2{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.codemirror_CodeMirror-guttermarker_2OsEcsAeZQ{color:#000}.codemirror_CodeMirror-guttermarker-subtle_7AzrmVCkTG{color:#999}.codemirror_CodeMirror-cursor_2vS79mmrVQ{border-left:1px solid #000;border-right:none;width:0}.codemirror_CodeMirror_1_N4MsOxgY div.codemirror_CodeMirror-secondarycursor_25Wcq5Mt6f{border-left:1px solid silver}.codemirror_cm-fat-cursor_3vPyWgfGka .codemirror_CodeMirror-cursor_2vS79mmrVQ{width:auto;border:0!important;background:#7e7}.codemirror_cm-fat-cursor_3vPyWgfGka div.codemirror_CodeMirror-cursors_3Tm8HDyaUx{z-index:1}.codemirror_cm-animate-fat-cursor_3MmpLAdzJI{width:auto;border:0;-webkit-animation:codemirror_blink_3GXpUHj-8X 1.06s steps(1) infinite;-moz-animation:codemirror_blink_3GXpUHj-8X 1.06s steps(1) infinite;animation:codemirror_blink_3GXpUHj-8X 1.06s steps(1) infinite;background-color:#7e7}@-moz-keyframes codemirror_blink_3GXpUHj-8X{50%{background-color:transparent}}@-webkit-keyframes codemirror_blink_3GXpUHj-8X{50%{background-color:transparent}}@keyframes codemirror_blink_3GXpUHj-8X{50%{background-color:transparent}}.codemirror_cm-tab_1tIelOu892{display:inline-block;text-decoration:inherit}.codemirror_CodeMirror-rulers_7cIJNOoJdT{position:absolute;left:0;right:0;top:-50px;bottom:-20px;overflow:hidden}.codemirror_CodeMirror-ruler_1gTrk0rnOX{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-header_eLxfeU_eE9{color:blue}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-quote_3Y9livL1An{color:#090}.codemirror_cm-negative_322MdkTlRb{color:#d44}.codemirror_cm-positive_1-KK1pO6IB{color:#292}.codemirror_cm-header_eLxfeU_eE9,.codemirror_cm-strong_Cg7waGPeR7{font-weight:700}.codemirror_cm-em_3ubIcFFTlq{font-style:italic}.codemirror_cm-link_32gHR4fzm2{text-decoration:underline}.codemirror_cm-strikethrough_aHQGsbYr9N{text-decoration:line-through}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-keyword_3eSXO4o633{color:#708}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-atom_3BhdumndEf{color:#219}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-number_2R47Qb69T6{color:#164}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-def_3Oo0Uz9BF_{color:#00f}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-variable-2_3YXZ7begGu{color:#05a}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-type_aTwAIic72s,.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-variable-3_36T-ytxQQ0{color:#085}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-comment_1LwjcDQhsT{color:#a50}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-string_bYuQ3y3_oq{color:#a11}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-string-2_1ThUcQOyds{color:#f50}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-meta_1csUstcMbk,.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-qualifier_2Eg94T043G{color:#555}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-builtin_Lhr1AXt7Vx{color:#30a}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-bracket_3dpm_hiBmO{color:#997}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-tag_2roO0evT0e{color:#170}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-attribute_1ZCM9yMg9z{color:#00c}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-hr_3BLk4fvUo4{color:#999}.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-link_32gHR4fzm2{color:#00c}.codemirror_cm-invalidchar_2-BOH7EyES,.codemirror_cm-s-default_34DYeKbb-1 .codemirror_cm-error_30c1gdEqp_{color:red}.codemirror_CodeMirror-composing_11bCIUYRWk{border-bottom:2px solid}div.codemirror_CodeMirror_1_N4MsOxgY span.codemirror_CodeMirror-matchingbracket_45cedawaco{color:#0f0}div.codemirror_CodeMirror_1_N4MsOxgY span.codemirror_CodeMirror-nonmatchingbracket_FqEdHh7rFC{color:#f22}.codemirror_CodeMirror-matchingtag_361fe6S4wg{background:rgba(255,150,0,.3)}.codemirror_CodeMirror-activeline-background_1uHoRhq57a{background:#e8f2ff}.codemirror_CodeMirror_1_N4MsOxgY{position:relative;overflow:hidden;background:#fff}.codemirror_CodeMirror-scroll_r8V7PdTM-H{overflow:scroll!important;margin-bottom:-30px;margin-right:-30px;padding-bottom:30px;height:100%;outline:none;position:relative}.codemirror_CodeMirror-sizer_1nCC7QHF2f{position:relative;border-right:30px solid transparent}.codemirror_CodeMirror-gutter-filler_O1U1fH9z44,.codemirror_CodeMirror-hscrollbar_1WjHMoWf1s,.codemirror_CodeMirror-scrollbar-filler_3QpCBYI4rV,.codemirror_CodeMirror-vscrollbar_eBgZXKAc0O{position:absolute;z-index:6;display:none}.codemirror_CodeMirror-vscrollbar_eBgZXKAc0O{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.codemirror_CodeMirror-hscrollbar_1WjHMoWf1s{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.codemirror_CodeMirror-scrollbar-filler_3QpCBYI4rV{right:0;bottom:0}.codemirror_CodeMirror-gutter-filler_O1U1fH9z44{left:0;bottom:0}.codemirror_CodeMirror-gutters_K4gzF02xrT{position:absolute;left:0;top:0;min-height:100%;z-index:3}.codemirror_CodeMirror-gutter_34qSAO74wb{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-30px}.codemirror_CodeMirror-gutter-wrapper_12ufukwByw{position:absolute;z-index:4;background:none!important;border:none!important}.codemirror_CodeMirror-gutter-background_265CyaqIhx{position:absolute;top:0;bottom:0;z-index:4}.codemirror_CodeMirror-gutter-elt_3ocq8l7uCc{position:absolute;cursor:default;z-index:4}.codemirror_CodeMirror-gutter-wrapper_12ufukwByw ::selection{background-color:transparent}.codemirror_CodeMirror-gutter-wrapper_12ufukwByw ::-moz-selection{background-color:transparent}.codemirror_CodeMirror-lines_1ck7Rc0Yp7{cursor:text;min-height:1px}.codemirror_CodeMirror_1_N4MsOxgY pre{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.codemirror_CodeMirror-wrap_1go01Dg0iC pre{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.codemirror_CodeMirror-linebackground_1sOMiv5CMQ{position:absolute;left:0;right:0;top:0;bottom:0;z-index:0}.codemirror_CodeMirror-linewidget_1C1gtbUPyz{position:relative;z-index:2;overflow:auto}.codemirror_CodeMirror-rtl_zO0aeN8uWG pre{direction:rtl}.codemirror_CodeMirror-code_1g-hmqqCyF{outline:none}.codemirror_CodeMirror-gutter_34qSAO74wb,.codemirror_CodeMirror-gutters_K4gzF02xrT,.codemirror_CodeMirror-linenumber_2GOQYFEtH2,.codemirror_CodeMirror-scroll_r8V7PdTM-H,.codemirror_CodeMirror-sizer_1nCC7QHF2f{-moz-box-sizing:content-box;box-sizing:content-box}.codemirror_CodeMirror-measure_drb3KS0asE{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.codemirror_CodeMirror-cursor_2vS79mmrVQ{position:absolute;pointer-events:none}.codemirror_CodeMirror-measure_drb3KS0asE pre{position:static}div.codemirror_CodeMirror-cursors_3Tm8HDyaUx{visibility:hidden;position:relative;z-index:3}.codemirror_CodeMirror-focused_2V7QHct1-b div.codemirror_CodeMirror-cursors_3Tm8HDyaUx,div.codemirror_CodeMirror-dragcursors_3QkklpVTb4{visibility:visible}.codemirror_CodeMirror-selected_1WrqKkoTzi{background:#d9d9d9}.codemirror_CodeMirror-focused_2V7QHct1-b .codemirror_CodeMirror-selected_1WrqKkoTzi{background:#d7d4f0}.codemirror_CodeMirror-crosshair_OT8aCU3rHZ{cursor:crosshair}.codemirror_CodeMirror-line_2U23GAZUlX::selection,.codemirror_CodeMirror-line_2U23GAZUlX>span::selection,.codemirror_CodeMirror-line_2U23GAZUlX>span>span::selection{background:#d7d4f0}.codemirror_CodeMirror-line_2U23GAZUlX::-moz-selection,.codemirror_CodeMirror-line_2U23GAZUlX>span::-moz-selection,.codemirror_CodeMirror-line_2U23GAZUlX>span>span::-moz-selection{background:#d7d4f0}.codemirror_cm-searching_jZph4Um0V4{background-color:#ffa;background-color:rgba(255,255,0,.4)}.codemirror_cm-force-border_28L8DoFpMc{padding-right:.1px}@media print{.codemirror_CodeMirror_1_N4MsOxgY div.codemirror_CodeMirror-cursors_3Tm8HDyaUx{visibility:hidden}}.codemirror_cm-tab-wrap-hack_27OXRXa_jP:after{content:""}span.codemirror_CodeMirror-selectedtext_3oDRSvNmj-{background:none}.cm-matchhighlight{background-color:rgba(255,255,0,.4)}.CodeMirror-hints{font-family:dejavu sans mono,monospace;font-size:11px;border-radius:0;border:none;padding:0}.CodeMirror-hint{border-radius:0;cursor:default;padding:.25em .25em .25em .35em}.console_result_3H6iinED71{border-top:1px solid #eee;display:flex;font-family:dejavu sans mono,monospace;padding:.35em .25em}.console_result_3H6iinED71.console_error_389JiXH81k{background-color:#fff0f0}.console_result_3H6iinED71.console_error_389JiXH81k .console_text_2vJZmdmO_S{color:red}.console_result_3H6iinED71.console_warn_1Xk-dytaHv{background-color:#fffbe5}.console_type_3svOzuunT1{font-weight:700!important;font-size:8pt;padding:0 .5em 0 .25em}.console_time_3RMgvacqWu{color:gray;padding:0 1em 0 .5em}.console_token_1wT5u1HIg4{white-space:pre-wrap}.console_text_2vJZmdmO_S{display:flex}.console_text_2vJZmdmO_S .console_token_1wT5u1HIg4:not(:first-child){margin-left:.5em}.header_container_dIet9CwVtr{background-color:#f3f3f3;border-bottom:1px solid #ccc;font-size:12px;padding:0 .5em}.header_tabs_35-Zlfvd36{display:flex}.header_tab_3uchNzwUhV{align-items:center;box-sizing:border-box;border:1px solid transparent;color:#333;cursor:default;display:flex;height:24px;line-height:15px;margin-top:2px;padding:2px 6px 2px 4px}.header_tab_3uchNzwUhV.header_active_1Q9RyFXWz1:hover,.header_tab_3uchNzwUhV:hover{background-color:#e5e5e5}.header_tab_3uchNzwUhV.header_active_1Q9RyFXWz1{background-color:#fff;border:1px solid #ccc;border-bottom:none}.autocomplete_container_3-0erhM6ut{background:#f8f8f8;box-shadow:0 .125em .25em rgba(0,0,0,.5);font-family:dejavu sans mono,monospace;left:20px;position:absolute;max-height:300px;overflow:auto}.autocomplete_item_9SFDTlVB_h{background-color:#fff;padding:.25em .25em .25em .35em;display:flex;justify-content:space-between}.autocomplete_item_9SFDTlVB_h.autocomplete_selected_2ujXIHtWUM{background-color:#4073f4}.autocomplete_item_9SFDTlVB_h.autocomplete_selected_2ujXIHtWUM,.autocomplete_item_9SFDTlVB_h.autocomplete_selected_2ujXIHtWUM .autocomplete_proto_19V89q6k2K{color:#fff}.autocomplete_item_9SFDTlVB_h:hover{cursor:default}.autocomplete_item_9SFDTlVB_h:hover:not(.autocomplete_selected_2ujXIHtWUM){background-color:#e6ecff}.autocomplete_item_9SFDTlVB_h .autocomplete_proto_19V89q6k2K{color:gray;margin-left:1em}.input_type_2ObsQNTts-{color:#59f;font-weight:700!important;font-size:11px;padding:0 .5em 0 .25em}.input_inputContainer_2REeb6PEul{flex:1}.input_input_avZFpsTP3S{border:0;margin:0;padding:0;color:#000;height:100%;font-size:11px;resize:none;width:100%}.input_container_2wRv7n-JO0{border-top:1px solid #d3d3d3;display:flex;flex:1;padding:.25em;position:relative}.settings_container_13NZA5MaCs{display:flex;flex-direction:row;font-family:Arial,sans-serif;font-size:12px;padding:.5em 1em}.settings_option_e47iJdr7eA{align-items:center;display:flex;flex:0 0 50%;flex-direction:row;margin:.5em 0}.snippets_container_2SmcMgMGYZ{display:flex;flex:1;flex-direction:row}.snippets_panel_3TG9sp3i_s{border-right:1px solid #d3d3d3;display:flex;flex-direction:column;min-width:200px}.snippets_add_3lXTUuX-ZR{align-items:center;background-color:#fcfcfc;border-bottom:1px solid #d3d3d3;cursor:default;display:flex;padding:.5em 1em}.snippets_add_3lXTUuX-ZR .snippets_plus_28sNTioht8{font-size:15px;font-weight:700!important;margin-right:5px}.snippets_add_3lXTUuX-ZR:hover{background-color:#f0f0f0}.snippets_list_yl2YoznBls{display:flex;flex-direction:column;margin-top:3px}.snippets_code_1ncJZ65-rr{display:flex;flex:1;flex-direction:column}.snippets_code_1ncJZ65-rr .snippets_console_50t-dAF2R5{border-top:1px solid #d3d3d3;max-height:200px;flex:0 0 0}.snippets_code_1ncJZ65-rr .snippets_console_50t-dAF2R5>*{overflow:auto;height:100%}.snippets_code_1ncJZ65-rr>*{flex:1}.snippets_code_1ncJZ65-rr .CodeMirror{height:100%}.snippets_file_1Sa9XeGtli{align-items:center;cursor:default;display:flex;padding:.5em .5em .5em 1em}.snippets_file_1Sa9XeGtli.snippets_selected_15eqhtScgw{background-color:#f0f0f0}.snippets_file_1Sa9XeGtli:hover{background-color:#e6ecff}.snippets_file_1Sa9XeGtli .snippets_pristine_3XK1YHkQtt{font-size:20px;margin-right:3px;height:13px}.snippets_file_1Sa9XeGtli .snippets_remove_1UAyyAYhZD{cursor:default;display:inline-flex;font-size:14px;margin-left:-.25em;margin-right:.25em}.snippets_inputContainer_XElzlHVfdk{background-color:#fff;border:1px solid #d8d8d8;margin-right:.5em;padding:3px;width:100%}.snippets_input_2xJxgkPza6{border:none;font:11px Arial;width:100%}.watches_container_20saMb_uZi{background:#eee;border-top:1px solid #d3d3d3;display:flex;flex-direction:row;padding:.25em;font-size:8pt;color:#888}.watches_watch_2NCeN8CFy6{align-items:flex-end;border-left:1px solid #ccc;display:flex;padding:0 1em}.watches_watch_2NCeN8CFy6.watches_error_109y_NPc36 .watches_result_HkQmILyMu6{color:red}.watches_watch_2NCeN8CFy6 .watches_result_HkQmILyMu6{color:#00f;font-weight:700;margin-left:.5em}.watches_add_3GGEK4AK_K{color:green;cursor:default;font-size:14px;font-weight:700!important;padding:0 1em}.watches_add_3GGEK4AK_K:hover{background-color:#fcfcfc}.watches_add_3GGEK4AK_K.watches_selected_3kjcNq1Jhv{background-color:#e6ecff}.watches_addContainer_UpcbOQpD0R{position:relative}.watches_addForm_Tmo0qqNqKo{bottom:100%;display:flex;padding:.5em 0;position:absolute;width:100vw}.watches_addForm_Tmo0qqNqKo .watches_inputContainer_1E_H2dgERf{border:1px solid #d8d8d8;margin-right:.5em;padding:3px}.watches_addForm_Tmo0qqNqKo .watches_input_1TE7wVSKX4{border:none;font:12px Arial}.watches_addForm_Tmo0qqNqKo .watches_input_1TE7wVSKX4.watches_big_1MoqMeiWBG{width:300px}.watches_addForm_Tmo0qqNqKo .watches_button_2oJ0BjrHgT{color:#000;font:12px Arial;padding:0 1em}.watches_remove_3MMfBg47Ko{cursor:default;display:inline-flex;font-size:14px;margin-right:.75em}.watches_remove_3MMfBg47Ko *{line-height:13px}.watches_remove_3MMfBg47Ko:hover{background-color:#fcfcfc}.application_app_3Pw80oNPBW{display:flex;flex-direction:column;font-family:Arial,sans-serif;font-size:11px;height:100vh;overflow:hidden}input,textarea{outline:none}code,input,pre,textarea{font-family:dejavu sans mono,monospace}code,pre{font-size:11px}.application_header_2PQopbo-Qn{flex:0 0 auto}.application_view_vVPh8YkPvQ{display:flex;flex:1;flex-direction:column}.application_eval_2mPbemaC--{flex:0 1 auto;font-family:dejavu sans mono,monospace;overflow:auto}.application_input_1UkSBduOYO{border-top:1px solid #eee;display:flex;flex:1 1 auto;min-height:50px}.application_status_mtiWnFieeM{flex:0 0 auto;font-family:dejavu sans mono,monospace}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/0eC6fl06luXEYWpBSJvXCIX0hVgzZQUfRDuZrPvH3D8.9b68886401.woff2) format("woff2");unicode-range:u+0460-052f,u+20b4,u+2de0-2dff,u+a640-a69f}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/Fl4y0QdOxyyTHEGMXX8kcYX0hVgzZQUfRDuZrPvH3D8.af34a57573.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/-L14Jk06m6pUHB-5mXQQnYX0hVgzZQUfRDuZrPvH3D8.85b8ec3ad2.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/I3S1wsgSg9YCurV6PUkTOYX0hVgzZQUfRDuZrPvH3D8.890137f2a9.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/NYDWBdD4gIq26G5XYbHsFIX0hVgzZQUfRDuZrPvH3D8.bcb5918360.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/Pru33qjShpZSmG3z6VYwnYX0hVgzZQUfRDuZrPvH3D8.89028d2d23.woff2) format("woff2");unicode-range:u+0100-024f,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Roboto;font-style:normal;font-weight:300;src:local("Roboto Light"),local("Roboto-Light"),url(dist/Hgo13k-tfSpn0qi1SFdUfZBw1xU1rKptJj_0jans920.16a9467557.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2212,u+2215,u+e0ff,u+effd,u+f000}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz0ExlR2MysFCBK8OirNw2kM.c9e9d851eb.woff2) format("woff2");unicode-range:u+0460-052f,u+20b4,u+2de0-2dff,u+a640-a69f}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz2dsm03krrxlabhmVQFB99s.200142f539.woff2) format("woff2");unicode-range:u+0400-045f,u+0490-0491,u+04b0-04b1,u+2116}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59FzyJ0caWjaSBdV-xZbEgst_k.efb845429d.woff2) format("woff2");unicode-range:u+1f??}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz2MSHb9EAJwuSzGfuRChQzQ.3c4e397d8b.woff2) format("woff2");unicode-range:u+0370-03ff}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz-pRBTtN4E2_qSPBnw6AgMc.62f2f972e0.woff2) format("woff2");unicode-range:u+0102-0103,u+1ea0-1ef9,u+20ab}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz9Dnm4qiMZlH5rhYv_7LI2Y.bd43bb45b2.woff2) format("woff2");unicode-range:u+0100-024f,u+1e??,u+20a0-20ab,u+20ad-20cf,u+2c60-2c7f,u+a720-a7ff}@font-face{font-family:Roboto Mono;font-style:normal;font-weight:300;src:local("Roboto Mono Light"),local("RobotoMono-Light"),url(dist/N4duVc9C58uwPiY8_59Fz9TIkQYohD4BpHvJ3NvbHoA.63cba37360.woff2) format("woff2");unicode-range:u+00??,u+0131,u+0152-0153,u+02c6,u+02da,u+02dc,u+2000-206f,u+2074,u+20ac,u+2212,u+2215,u+e0ff,u+effd,u+f000}:root,:root body{background:#fff;border:0;color:#333;font-size:16px;font-family:Roboto,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Geneva,Arial,sans-serif;font-weight:300;margin:0;padding:0;vertical-align:top}:root,:root #container,:root body{min-height:100%;width:100%;display:flex;flex:1;flex-direction:column}:root *{font-weight:300}:root #container>div{flex:1;flex-direction:column} /*# sourceMappingURL=dist.css.map*/ \ No newline at end of file diff --git a/dist.js b/dist.js index a9e796c..beda736 100644 --- a/dist.js +++ b/dist.js @@ -1,2 +1,2 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};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="dist/",t(t.s=234)}([function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(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,r,i,a,s,u],f=0;c=new Error(t.replace(/%s/g,function(){return l[f++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};e.exports=r},function(e,t,n){!function(n,r){e.exports=t=r()}(0,function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},o=r.lib={},i=o.Base=function(){return{extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}}}(),a=o.WordArray=i.extend({init:function(e,t){e=this.words=e||[],this.sigBytes=void 0!=t?t:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,o=e.sigBytes;if(this.clamp(),r%4)for(var i=0;i>>2]>>>24-i%4*8&255;t[r+i>>>2]|=a<<24-(r+i)%4*8}else for(var i=0;i>>2]=n[i>>>2];return this.sigBytes+=o,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=i.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],o=0;o>16)&r,t=18e3*(65535&t)+(t>>16)&r;var o=(n<<16)+t&r;return o/=4294967296,(o+=.5)*(e.random()>.5?1:-1)}}(4294967296*(n||e.random()));n=987654071*i(),r.push(4294967296*i()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push((i>>>4).toString(16)),r.push((15&i).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],o=0;o>>2]>>>24-o%4*8&255;r.push(String.fromCharCode(i))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(e){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=o.BufferedBlockAlgorithm=i.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,o=n.sigBytes,i=this.blockSize,s=4*i,u=o/s;u=t?e.ceil(u):e.max((0|u)-this._minBufferSize,0);var c=u*i,l=e.min(4*c,o);if(c){for(var f=0;f7&&e[n].toUpperCase()!==e[n]||parseInt(t[n],16)<=7&&e[n].toLowerCase()!==e[n])return!1;return!0},S=function(e){if(void 0===e)return"";e=e.toLowerCase().replace("0x","");for(var t=o(e),n="0x",r=0;r7?n+=e[r].toUpperCase():n+=e[r];return n},E=function(e){return C(e)?e:/^[0-9a-f]{40}$/.test(e)?"0x"+e:"0x"+s(y(e).substr(2),40)},A=function(e){return e instanceof r||e&&e.constructor&&"BigNumber"===e.constructor.name},P=function(e){return"string"==typeof e||e&&e.constructor&&"String"===e.constructor.name},M=function(e){return"function"==typeof e},N=function(e){return"object"==typeof e},L=function(e){return"boolean"==typeof e},R=function(e){return e instanceof Array},I=function(e){try{return!!JSON.parse(e)}catch(e){return!1}};e.exports={padLeft:s,padRight:u,toHex:y,toDecimal:m,fromDecimal:g,toUtf8:c,toAscii:l,fromUtf8:f,fromAscii:p,transformToFullName:d,extractDisplayName:h,extractTypeName:v,toWei:w,fromWei:_,toBigNumber:x,toTwosComplement:k,toAddress:E,isBigNumber:A,isStrictAddress:C,isAddress:T,isChecksumAddress:O,toChecksumAddress:S,isFunction:M,isString:P,isObject:N,isBoolean:L,isArray:R,isJson:I}},function(e,t,n){!function(r,o){e.exports=t=o(n(1))}(0,function(e){e.lib.Cipher||function(t){var n=e,r=n.lib,o=r.Base,i=r.WordArray,a=r.BufferedBlockAlgorithm,s=n.enc,u=(s.Utf8,s.Base64),c=n.algo,l=c.EvpKDF,f=r.Cipher=a.extend({cfg:o.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?k:_}return function(t){return{encrypt:function(n,r,o){return e(r).encrypt(t,n,r,o)},decrypt:function(n,r,o){return e(r).decrypt(t,n,r,o)}}}}()}),p=(r.StreamCipher=f.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),n.mode={}),d=r.BlockCipherMode=o.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),h=p.CBC=function(){function e(e,n,r){var o=this._iv;if(o){var i=o;this._iv=t}else var i=this._prevBlock;for(var a=0;a>>2];e.sigBytes-=t}},g=(r.BlockCipher=f.extend({cfg:f.cfg.extend({mode:h,padding:m}),reset:function(){f.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else{var r=n.createDecryptor;this._minBufferSize=1}this._mode=r.call(n,this,t&&t.words)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else{var t=this._process(!0);e.unpad(t)}return t},blockSize:4}),r.CipherParams=o.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=n.format={},b=y.OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(t);else var r=t;return r.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return g.create({ciphertext:t,salt:r})}},_=r.SerializableCipher=o.extend({cfg:o.extend({format:b}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=e.createEncryptor(n,r),i=o.finalize(t),a=o.cfg;return g.create({ciphertext:i,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),w=n.kdf={},x=w.OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=l.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,g.create({key:o,iv:a,salt:r})}},k=r.PasswordBasedCipher=_.extend({cfg:_.cfg.extend({kdf:x}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var o=r.kdf.execute(n,e.keySize,e.ivSize);r.iv=o.iv;var i=_.encrypt.call(this,e,t,o.key,r);return i.mixIn(o),i},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var o=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=o.iv,_.decrypt.call(this,e,t,o.key,r)}})}()})},function(e,t,n){"use strict";t.__esModule=!0;var r=n(21),o=function(e){return e&&e.__esModule?e:{default:e}}(r);t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,o.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(367),i=r(o),a=n(371),s=r(a),u=n(21),c=r(u);t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,c.default)(t)));e.prototype=(0,s.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){var r=n(123)("wks"),o=n(84),i=n(16).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},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 function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";function e(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}function t(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function n(e,n){return t(e).appendChild(n)}function r(e,t,n,r){var o=document.createElement(e);if(n&&(o.className=n),r&&(o.style.cssText=r),"string"==typeof t)o.appendChild(document.createTextNode(t));else if(t)for(var i=0;i=t)return a+(t-i);a+=s-i,a+=n-a%n,i=s+1}}function p(e,t){for(var n=0;n=t)return r+Math.min(a,t-o);if(o+=i-r,o+=n-o%n,r=i+1,o>=t)return r}}function h(e){for(;Ua.length<=e;)Ua.push(v(Ua)+" ");return Ua[e]}function v(e){return e[e.length-1]}function m(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||Ha.test(e))}function w(e,t){return t?!!(t.source.indexOf("\\w")>-1&&_(e))||t.test(e):_(e)}function x(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}function k(e){return e.charCodeAt(0)>=768&&Wa.test(e)}function C(e,t,n){for(;(n<0?t>0:t=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var o=n.children[r],i=o.chunkSize();if(t=e.first&&tn?I(n,S(e,n).text.length):z(t,S(e,t.line).text.length)}function z(e,t){var n=e.ch;return null==n||n>t?I(e.line,t):n<0?I(e.line,0):e}function V(e,t){for(var n=[],r=0;r=t:i.to>t);(r||(r=[])).push(new K(a,i.from,u?null:i.to))}}return r}function Z(e,t,n){var r;if(e)for(var o=0;o=t:i.to>t);if(s||i.from==t&&"bookmark"==a.type&&(!n||i.marker.insertLeft)){var u=null==i.from||(a.inclusiveLeft?i.from<=t:i.from0&&s)for(var w=0;w0)){var l=[u,1],f=D(c.from,s.from),d=D(c.to,s.to);(f<0||!a.inclusiveLeft&&!f)&&l.push({from:c.from,to:s.from}),(d>0||!a.inclusiveRight&&!d)&&l.push({from:s.to,to:c.to}),o.splice.apply(o,l),u+=l.length-3}}return o}function ne(e){var t=e.markedSpans;if(t){for(var n=0;n=0&&f<=0||l<=0&&f>=0)&&(l<=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?D(c.to,n)>=0:D(c.to,n)>0)||l>=0&&(u.marker.inclusiveRight&&o.inclusiveLeft?D(c.from,r)<=0:D(c.from,r)<0)))return!0}}}function fe(e){for(var t;t=ue(e);)e=t.find(-1,!0).line;return e}function pe(e){for(var t;t=ce(e);)e=t.find(1,!0).line;return e}function de(e){for(var t,n;t=ce(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function he(e,t){var n=S(e,t),r=fe(n);return n==r?t:M(r)}function ve(e,t){if(t>e.lastLine())return t;var n,r=S(e,t);if(!me(e,r))return t;for(;n=ce(r);)r=n.find(1,!0).line;return M(r)+1}function me(e,t){var n=Va&&t.markedSpans;if(n)for(var r=void 0,o=0;ot.maxLineLength&&(t.maxLineLength=n,t.maxLine=e)})}function we(e,t,n,r){if(!e)return r(t,n,"ltr");for(var o=!1,i=0;it||t==n&&a.to==t)&&(r(Math.max(a.from,t),Math.min(a.to,n),1==a.level?"rtl":"ltr"),o=!0)}o||r(t,n,"ltr")}function xe(e,t,n){var r;qa=null;for(var o=0;ot)return o;i.to==t&&(i.from!=i.to&&"before"==n?r=o:qa=o),i.from==t&&(i.from!=i.to&&"before"!=n?r=o:qa=o)}return null!=r?r:qa}function ke(e,t){var n=e.order;return null==n&&(n=e.order=Ga(e.text,t)),n}function Ce(e,t,n){var r=C(e.text,t+n,n);return r<0||r>e.text.length?null:r}function Te(e,t,n){var r=Ce(e,t.ch,n);return null==r?null:new I(t.line,r,n<0?"after":"before")}function Oe(e,t,n,r,o){if(e){var i=ke(n,t.doc.direction);if(i){var a,s=o<0?v(i):i[0],u=o<0==(1==s.level),c=u?"after":"before";if(s.level>0){var l=Jt(t,n);a=o<0?n.text.length-1:0;var f=Zt(t,l,a).top;a=T(function(e){return Zt(t,l,e).top==f},o<0==(1==s.level)?s.from:s.to-1,a),"before"==c&&(a=Ce(n,a,1))}else a=o<0?s.to:s.from;return new I(r,a,c)}}return new I(r,o<0?n.text.length:0,o<0?"before":"after")}function Se(e,t,n,r){var o=ke(t,e.doc.direction);if(!o)return Te(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var i=xe(o,n.ch,n.sticky),a=o[i];if("ltr"==e.doc.direction&&a.level%2==0&&(r>0?a.to>n.ch:a.from=a.from&&p>=l.begin)){var d=f?"before":"after";return new I(n.line,p,d)}}var h=function(e,t,r){for(var i=function(e,t){return t?new I(n.line,u(e,1),"before"):new I(n.line,e,"after")};e>=0&&e0==(1!=a.level),c=s?r.begin:u(r.end,-1);if(a.from<=c&&c0?l.end:u(l.begin,-1);return null==m||r>0&&m==t.text.length||!(v=h(r>0?0:o.length-1,r,c(m)))?null:v}function Ee(e,t){return e._handlers&&e._handlers[t]||Ka}function Ae(e,t,n){if(e.removeEventListener)e.removeEventListener(t,n,!1);else if(e.detachEvent)e.detachEvent("on"+t,n);else{var r=e._handlers,o=r&&r[t];if(o){var i=p(o,n);i>-1&&(r[t]=o.slice(0,i).concat(o.slice(i+1)))}}}function Pe(e,t){var n=Ee(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),o=0;o0}function Re(e){e.prototype.on=function(e,t){Ya(this,e,t)},e.prototype.off=function(e,t){Ae(this,e,t)}}function Ie(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function De(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function je(e){return null!=e.defaultPrevented?e.defaultPrevented:0==e.returnValue}function Be(e){Ie(e),De(e)}function Fe(e){return e.target||e.srcElement}function Ue(e){var t=e.which;return null==t&&(1&e.button?t=1:2&e.button?t=3:4&e.button&&(t=2)),ka&&e.ctrlKey&&1==t&&(t=3),t}function He(e){if(null==La){var t=r("span","​");n(e,r("span",[t,document.createTextNode("x")])),0!=e.firstChild.offsetHeight&&(La=t.offsetWidth<=1&&t.offsetHeight>2&&!(fa&&pa<8))}var o=La?r("span","​"):r("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return o.setAttribute("cm-text",""),o}function We(e){if(null!=Ra)return Ra;var r=n(e,document.createTextNode("AخA")),o=Sa(r,0,1).getBoundingClientRect(),i=Sa(r,1,2).getBoundingClientRect();return t(e),!(!o||o.left==o.right)&&(Ra=i.right-o.right<3)}function ze(e){if(null!=Qa)return Qa;var t=n(e,r("span","x")),o=t.getBoundingClientRect(),i=Sa(t,0,1).getBoundingClientRect();return Qa=Math.abs(o.left-i.left)>1}function Ve(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),es[e]=t}function qe(e,t){ts[e]=t}function Ge(e){if("string"==typeof e&&ts.hasOwnProperty(e))e=ts[e];else if(e&&"string"==typeof e.name&&ts.hasOwnProperty(e.name)){var t=ts[e.name];"string"==typeof t&&(t={name:t}),e=b(t,e),e.name=t.name}else{if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ge("application/xml");if("string"==typeof e&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ge("application/json")}return"string"==typeof e?{name:e}:e||{name:"null"}}function Ke(e,t){t=Ge(t);var n=es[t.name];if(!n)return Ke(e,"text/plain");var r=n(e,t);if(ns.hasOwnProperty(t.name)){var o=ns[t.name];for(var i in o)o.hasOwnProperty(i)&&(r.hasOwnProperty(i)&&(r["_"+i]=r[i]),r[i]=o[i])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var a in t.modeProps)r[a]=t.modeProps[a];return r}function Ye(e,t){l(t,ns.hasOwnProperty(e)?ns[e]:ns[e]={})}function $e(e,t){if(!0===t)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var o=t[r];o instanceof Array&&(o=o.concat([])),n[r]=o}return n}function Xe(e,t){for(var n;e.innerMode&&(n=e.innerMode(t))&&n.mode!=e;)t=n.state,e=n.mode;return n||{mode:e,state:t}}function Je(e,t,n){return!e.startState||e.startState(t,n)}function Ze(e,t,n,r){var o=[e.state.modeGen],i={};at(e,t.text,e.doc.mode,n,function(e,t){return o.push(e,t)},i,r);for(var a=n.state,s=0;se&&o.splice(s,1,e,o[s+1],r),s+=2,u=Math.min(e,r)}if(t)if(a.opaque)o.splice(n,s-n,e,"overlay "+t),s=n+2;else for(;ne.options.maxHighlightLength&&$e(e.doc.mode,r.state),i=Ze(e,t,r);o&&(r.state=o),t.stateAfter=r.save(!o),t.styles=i.styles,i.classes?t.styleClasses=i.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function et(e,t,n){var r=e.doc,o=e.display;if(!r.mode.startState)return new is(r,!0,t);var i=st(e,t,n),a=i>r.first&&S(r,i-1).stateAfter,s=a?is.fromSaved(r,a,i):new is(r,Je(r.mode),i);return r.iter(i,t,function(n){tt(e,n.text,s);var r=s.line;n.stateAfter=r==t-1||r%5==0||r>=o.viewFrom&&rt.start)return i}throw new Error("Mode "+e.name+" failed to advance stream.")}function ot(e,t,n,r){var o,i=e.doc,a=i.mode;t=W(i,t);var s,u=S(i,t.line),c=et(e,t.line,n),l=new rs(u.text,e.options.tabSize,c);for(r&&(s=[]);(r||l.pose.options.maxHighlightLength?(s=!1,a&&tt(e,t,r,f.pos),f.pos=t.length,u=null):u=it(rt(n,f,r.state,p),i),p){var d=p[0].name;d&&(u="m-"+(u?d+" "+u:d))}if(!s||l!=u){for(;ca;--s){if(s<=i.first)return i.first;var u=S(i,s-1),c=u.stateAfter;if(c&&(!n||s+(c instanceof os?c.lookAhead:0)<=i.modeFrontier))return s;var l=f(u.text,null,e.options.tabSize);(null==o||r>l)&&(o=s-1,r=l)}return o}function ut(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var o=S(e,r).stateAfter;if(o&&(!(o instanceof os)||r+o.lookAhead1&&!/ /.test(e))return e;for(var n=t,r="",o=0;oc&&f.from<=c));p++);if(f.to>=l)return e(n,r,o,i,a,s,u);e(n,r.slice(0,f.to-c),o,i,null,s,u),i=null,r=r.slice(f.to-c),c=f.to}}}function gt(e,t,n,r){var o=!r&&n.widgetNode;o&&e.map.push(e.pos,e.pos+t,o),!r&&e.cm.display.input.needsContentAttribute&&(o||(o=e.content.appendChild(document.createElement("span"))),o.setAttribute("cm-marker",n.id)),o&&(e.cm.display.input.setUneditable(o),e.content.appendChild(o)),e.pos+=t,e.trailingSpace=!1}function yt(e,t,n){var r=e.markedSpans,o=e.text,i=0;if(r)for(var a,s,u,c,l,f,p,d=o.length,h=0,v=1,m="",g=0;;){if(g==h){u=c=l=f=s="",p=null,g=1/0;for(var y=[],b=void 0,_=0;_h||x.collapsed&&w.to==h&&w.from==h)?(null!=w.to&&w.to!=h&&g>w.to&&(g=w.to,c=""),x.className&&(u+=" "+x.className),x.css&&(s=(s?s+";":"")+x.css),x.startStyle&&w.from==h&&(l+=" "+x.startStyle),x.endStyle&&w.to==g&&(b||(b=[])).push(x.endStyle,w.to),x.title&&!f&&(f=x.title),x.collapsed&&(!p||ae(p.marker,x)<0)&&(p=w)):w.from>h&&g>w.from&&(g=w.from)}if(b)for(var k=0;k=d)break;for(var T=Math.min(d,g);;){if(m){var O=h+m.length;if(!p){var S=O>T?m.slice(0,T-h):m;t.addToken(t,S,a?a+u:u,l,h+S.length==g?c:"",f,s)}if(O>=T){m=m.slice(T-h),h=T;break}h=O,l=""}m=o.slice(i,i=n[v++]),a=ft(n[v++],t.cm.options)}}else for(var E=1;E2&&i.push((u.bottom+c.top)/2-n.top)}}i.push(n.bottom-n.top)}}function Kt(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};for(var r=0;rn)return{map:e.measure.maps[o],cache:e.measure.caches[o],before:!0}}function Yt(e,t){t=fe(t);var r=M(t),o=e.display.externalMeasured=new bt(e.doc,t,r);o.lineN=r;var i=o.built=pt(e,o);return o.text=i.pre,n(e.display.lineMeasure,i.pre),o}function $t(e,t,n,r){return Zt(e,Jt(e,t),n,r)}function Xt(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(i=u-s,o=i-1,t>=u&&(a="right")),null!=o){if(r=e[c+2],s==u&&n==(r.insertLeft?"left":"right")&&(a=n),"left"==n&&0==o)for(;c&&e[c-2]==e[c-3]&&e[c-1].insertLeft;)r=e[2+(c-=3)],a="left";if("right"==n&&o==u-s)for(;c=0&&(n=e[o]).left==n.right;o--);return n}function tn(e,t,n,r){var o,i=Qt(t.map,n,r),a=i.node,s=i.start,u=i.end,c=i.collapse;if(3==a.nodeType){for(var l=0;l<4;l++){for(;s&&k(t.line.text.charAt(i.coverStart+s));)--s;for(;i.coverStart+u0&&(c=r="right");var f;o=e.options.lineWrapping&&(f=a.getClientRects()).length>1?f["right"==r?f.length-1:0]:a.getBoundingClientRect()}if(fa&&pa<9&&!s&&(!o||!o.left&&!o.right)){var p=a.parentNode.getClientRects()[0];o=p?{left:p.left,right:p.left+_n(e.display),top:p.top,bottom:p.bottom}:ds}for(var d=o.top-t.rect.top,h=o.bottom-t.rect.top,v=(d+h)/2,m=t.view.measure.heights,g=0;g=r.text.length?(c=r.text.length,l="before"):c<=0&&(c=0,l="after"),!u)return a("before"==l?c-1:c,"before"==l);var f=xe(u,c,l),p=qa,d=s(c,f,"before"==l);return null!=p&&(d.other=s(c,p,"before"!=l)),d}function dn(e,t){var n=0;t=W(e.doc,t),e.options.lineWrapping||(n=_n(e.display)*t.ch);var r=S(e.doc,t.line),o=ye(r)+Ut(e.display);return{left:n,right:n,top:o,bottom:o+r.height}}function hn(e,t,n,r,o){var i=I(e,t,n);return i.xRel=o,r&&(i.outside=!0),i}function vn(e,t,n){var r=e.doc;if((n+=e.display.viewOffset)<0)return hn(r.first,0,null,!0,-1);var o=N(r,n),i=r.first+r.size-1;if(o>i)return hn(r.first+r.size-1,S(r,i).text.length,null,!0,1);t<0&&(t=0);for(var a=S(r,o);;){var s=yn(e,a,o,t,n),u=ce(a),c=u&&u.find(0,!0);if(!u||!(s.ch>c.from.ch||s.ch==c.from.ch&&s.xRel>0))return s;o=M(a=c.to.line)}}function mn(e,t,n,r){var o=function(r){return cn(e,t,Zt(e,n,r),"line")},i=t.text.length,a=T(function(e){return o(e-1).bottom<=r},i,0);return i=T(function(e){return o(e).top>r},a,i),{begin:a,end:i}}function gn(e,t,n,r){return mn(e,t,n,cn(e,t,Zt(e,n,r),"line").top)}function yn(e,t,n,r,o){o-=ye(t);var i,a=0,s=t.text.length,u=Jt(e,t);if(ke(t,e.doc.direction)){if(e.options.lineWrapping){var c;c=mn(e,t,u,o),a=c.begin,s=c.end}i=new I(n,Math.floor(a+(s-a)/2));var l,f,p=pn(e,i,"line",t,u).left,d=p1){var y=Math.abs(h-l)/v;v=Math.min(v,Math.ceil(Math.abs(h)/y)),d=h<0?1:-1}}while(0!=h&&(v>1||d<0!=h<0&&Math.abs(h)<=Math.abs(l)));if(Math.abs(h)>Math.abs(l)){if(h<0==l<0)throw new Error("Broke out of infinite loop in coordsCharInner");i=f}}else{var b=T(function(n){var i=cn(e,t,Zt(e,u,n),"line");return i.top>o?(s=Math.min(n,s),!0):!(i.bottom<=o)&&(i.left>r||!(i.right_.right?1:0,i}function bn(e){if(null!=e.cachedTextHeight)return e.cachedTextHeight;if(null==us){us=r("pre");for(var o=0;o<49;++o)us.appendChild(document.createTextNode("x")),us.appendChild(r("br"));us.appendChild(document.createTextNode("x"))}n(e.measure,us);var i=us.offsetHeight/50;return i>3&&(e.cachedTextHeight=i),t(e.measure),i||1}function _n(e){if(null!=e.cachedCharWidth)return e.cachedCharWidth;var t=r("span","xxxxxxxxxx"),o=r("pre",[t]);n(e.measure,o);var i=t.getBoundingClientRect(),a=(i.right-i.left)/10;return a>2&&(e.cachedCharWidth=a),a||10}function wn(e){for(var t=e.display,n={},r={},o=t.gutters.clientLeft,i=t.gutters.firstChild,a=0;i;i=i.nextSibling,++a)n[e.options.gutters[a]]=i.offsetLeft+i.clientLeft+o,r[e.options.gutters[a]]=i.clientWidth;return{fixedPos:xn(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function xn(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function kn(e){var t=bn(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/_n(e.display)-3);return function(o){if(me(e.doc,o))return 0;var i=0;if(o.widgets)for(var a=0;a=e.display.viewTo)return null;if((t-=e.display.viewFrom)<0)return null;for(var n=e.display.view,r=0;r=e.display.viewTo||s.to().line3&&(o(d,v.top,null,v.bottom),d=l,v.bottomu.bottom||c.bottom==u.bottom&&c.right>u.right)&&(u=c),d0?t.blinker=setInterval(function(){return t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Nn(e){e.state.focused||(e.display.input.focus(),Rn(e))}function Ln(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,In(e))},100)}function Rn(e,t){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1),"nocursor"!=e.options.readOnly&&(e.state.focused||(Pe(e,"focus",e,t),e.state.focused=!0,s(e.display.wrapper,"CodeMirror-focused"),e.curOp||e.display.selForContextMenu==e.doc.sel||(e.display.input.reset(),da&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Mn(e))}function In(e,t){e.state.delayingBlurEvent||(e.state.focused&&(Pe(e,"blur",e,t),e.state.focused=!1,Pa(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Dn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=0;r.005||u<-.005)&&(P(o.line,i),jn(o.line),o.rest))for(var c=0;c=a&&(i=N(t,ye(S(t,u))-e.wrapper.clientHeight),a=u)}return{from:i,to:Math.max(a,i+1)}}function Fn(e){var t=e.display,n=t.view;if(t.alignWidgets||t.gutters.firstChild&&e.options.fixedGutter){for(var r=xn(t)-t.scroller.scrollLeft+e.doc.scrollLeft,o=t.gutters.offsetWidth,i=r+"px",a=0;a(window.innerHeight||document.documentElement.clientHeight)&&(i=!1),null!=i&&!ba){var a=r("div","​",null,"position: absolute;\n top: "+(t.top-n.viewOffset-Ut(e.display))+"px;\n height: "+(t.bottom-t.top+zt(e)+n.barHeight)+"px;\n left: "+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(a),a.scrollIntoView(i),e.display.lineSpace.removeChild(a)}}}function Wn(e,t,n,r){null==r&&(r=0);var o;e.options.lineWrapping||t!=n||(t=t.ch?I(t.line,"before"==t.sticky?t.ch-1:t.ch,"after"):t,n="before"==t.sticky?I(t.line,t.ch+1,"before"):t);for(var i=0;i<5;i++){var a=!1,s=pn(e,t),u=n&&n!=t?pn(e,n):s;o={left:Math.min(s.left,u.left),top:Math.min(s.top,u.top)-r,right:Math.max(s.left,u.left),bottom:Math.max(s.bottom,u.bottom)+r};var c=Vn(e,o),l=e.doc.scrollTop,f=e.doc.scrollLeft;if(null!=c.scrollTop&&(Jn(e,c.scrollTop),Math.abs(e.doc.scrollTop-l)>1&&(a=!0)),null!=c.scrollLeft&&(Qn(e,c.scrollLeft),Math.abs(e.doc.scrollLeft-f)>1&&(a=!0)),!a)break}return o}function zn(e,t){var n=Vn(e,t);null!=n.scrollTop&&Jn(e,n.scrollTop),null!=n.scrollLeft&&Qn(e,n.scrollLeft)}function Vn(e,t){var n=e.display,r=bn(e.display);t.top<0&&(t.top=0);var o=e.curOp&&null!=e.curOp.scrollTop?e.curOp.scrollTop:n.scroller.scrollTop,i=qt(e),a={};t.bottom-t.top>i&&(t.bottom=t.top+i);var s=e.doc.height+Ht(n),u=t.tops-r;if(t.topo+i){var l=Math.min(t.top,(c?s:t.bottom)-i);l!=o&&(a.scrollTop=l)}var f=e.curOp&&null!=e.curOp.scrollLeft?e.curOp.scrollLeft:n.scroller.scrollLeft,p=Vt(e)-(e.options.fixedGutter?n.gutters.offsetWidth:0),d=t.right-t.left>p;return d&&(t.right=t.left+p),t.left<10?a.scrollLeft=0:t.leftp+f-3&&(a.scrollLeft=t.right+(d?0:10)-p),a}function qn(e,t){null!=t&&($n(e),e.curOp.scrollTop=(null==e.curOp.scrollTop?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Gn(e){$n(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function Kn(e,t,n){null==t&&null==n||$n(e),null!=t&&(e.curOp.scrollLeft=t),null!=n&&(e.curOp.scrollTop=n)}function Yn(e,t){$n(e),e.curOp.scrollToPos=t}function $n(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;Xn(e,dn(e,t.from),dn(e,t.to),t.margin)}}function Xn(e,t,n,r){var o=Vn(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});Kn(e,o.scrollLeft,o.scrollTop)}function Jn(e,t){Math.abs(e.doc.scrollTop-t)<2||(sa||Ar(e,{top:t}),Zn(e,t,!0),sa&&Ar(e),xr(e,100))}function Zn(e,t,n){t=Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t),(e.display.scroller.scrollTop!=t||n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Qn(e,t,n,r){t=Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth),(n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r||(e.doc.scrollLeft=t,Fn(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function er(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Ht(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+zt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}function tr(e,t){t||(t=er(e));var n=e.display.barWidth,r=e.display.barHeight;nr(e,t);for(var o=0;o<4&&n!=e.display.barWidth||r!=e.display.barHeight;o++)n!=e.display.barWidth&&e.options.lineWrapping&&Dn(e),nr(e,er(e)),n=e.display.barWidth,r=e.display.barHeight}function nr(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}function rr(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&Pa(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new ms[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),Ya(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){"horizontal"==n?Qn(e,t):Jn(e,t)},e),e.display.scrollbars.addClass&&s(e.display.wrapper,e.display.scrollbars.addClass)}function or(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:null,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++gs},wt(e.curOp)}function ir(e){kt(e.curOp,function(e){for(var t=0;t=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ys(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function ur(e){e.updatedDisplay=e.mustUpdate&&Sr(e.cm,e.update)}function cr(e){var t=e.cm,n=t.display;e.updatedDisplay&&Dn(t),e.barMeasure=er(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=$t(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+zt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-Vt(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection(e.focus))}function lr(e){var t=e.cm;null!=e.adjustWidthTo&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeftt)&&(o.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=o.viewTo)Va&&he(e.doc,t)o.viewFrom?yr(e):(o.viewFrom+=r,o.viewTo+=r);else if(t<=o.viewFrom&&n>=o.viewTo)yr(e);else if(t<=o.viewFrom){var i=br(e,n,n+r,1);i?(o.view=o.view.slice(i.index),o.viewFrom=i.lineN,o.viewTo+=r):yr(e)}else if(n>=o.viewTo){var a=br(e,t,t,-1);a?(o.view=o.view.slice(0,a.index),o.viewTo=a.lineN):yr(e)}else{var s=br(e,t,t,-1),u=br(e,n,n+r,1);s&&u?(o.view=o.view.slice(0,s.index).concat(_t(e,s.lineN,u.lineN)).concat(o.view.slice(u.index)),o.viewTo+=r):yr(e)}var c=o.externalMeasured;c&&(n=o.lineN&&t=r.viewTo)){var i=r.view[On(e,t)];if(null!=i.node){var a=i.changes||(i.changes=[]);-1==p(a,n)&&a.push(n)}}}function yr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function br(e,t,n,r){var o,i=On(e,t),a=e.display.view;if(!Va||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var s=e.display.viewFrom,u=0;u0){if(i==a.length-1)return null;o=s+a[i].size-t,i++}else o=s-t;t+=o,n+=o}for(;he(e.doc,n)!=n;){if(i==(r<0?0:a.length-1))return null;n+=r*a[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function _r(e,t,n){var r=e.display;0==r.view.length||t>=r.viewTo||n<=r.viewFrom?(r.view=_t(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=_t(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,On(e,n)))),r.viewTo=n}function wr(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo)){var n=+new Date+e.options.workTime,r=et(e,t.highlightFrontier),o=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(i){if(r.line>=e.display.viewFrom){var a=i.styles,s=i.text.length>e.options.maxHighlightLength?$e(t.mode,r.state):null,u=Ze(e,i,r,!0);s&&(r.state=s),i.styles=u.styles;var c=i.styleClasses,l=u.classes;l?i.styleClasses=l:c&&(i.styleClasses=null);for(var f=!a||a.length!=i.styles.length||c!=l&&(!c||!l||c.bgClass!=l.bgClass||c.textClass!=l.textClass),p=0;!f&&pn)return xr(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),o.length&&pr(e,function(){for(var t=0;t=r.viewFrom&&n.visible.to<=r.viewTo&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo)&&r.renderedView==r.view&&0==wr(e))return!1;Un(e)&&(yr(e),n.dims=wn(e));var i=o.first+o.size,a=Math.max(n.visible.from-e.options.viewportMargin,o.first),s=Math.min(i,n.visible.to+e.options.viewportMargin);r.viewFroms&&r.viewTo-s<20&&(s=Math.min(i,r.viewTo)),Va&&(a=he(e.doc,a),s=ve(e.doc,s));var u=a!=r.viewFrom||s!=r.viewTo||r.lastWrapHeight!=n.wrapperHeight||r.lastWrapWidth!=n.wrapperWidth;_r(e,a,s),r.viewOffset=ye(S(e.doc,r.viewFrom)),e.display.mover.style.top=r.viewOffset+"px";var c=wr(e);if(!u&&0==c&&!n.force&&r.renderedView==r.view&&(null==r.updateLineNumbers||r.updateLineNumbers>=r.viewTo))return!1;var l=Tr(e);return c>4&&(r.lineDiv.style.display="none"),Pr(e,r.updateLineNumbers,n.dims),c>4&&(r.lineDiv.style.display=""),r.renderedView=r.view,Or(l),t(r.cursorDiv),t(r.selectionDiv),r.gutters.style.height=r.sizer.style.minHeight=0,u&&(r.lastWrapHeight=n.wrapperHeight,r.lastWrapWidth=n.wrapperWidth,xr(e,400)),r.updateLineNumbers=null,!0}function Er(e,t){for(var n=t.viewport,r=!0;(r&&e.options.lineWrapping&&t.oldDisplayWidth!=Vt(e)||(n&&null!=n.top&&(n={top:Math.min(e.doc.height+Ht(e.display)-qt(e),n.top)}),t.visible=Bn(e.display,e.doc,n),!(t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)))&&Sr(e,t);r=!1){Dn(e);var o=er(e);Sn(e),tr(e,o),Nr(e,o),t.force=!1}t.signal(e,"update",e),e.display.viewFrom==e.display.reportedViewFrom&&e.display.viewTo==e.display.reportedViewTo||(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ar(e,t){var n=new ys(e,t);if(Sr(e,n)){Dn(e),Er(e,n);var r=er(e);Sn(e),tr(e,r),Nr(e,r),n.finish()}}function Pr(e,n,r){function o(t){var n=t.nextSibling;return da&&ka&&e.display.currentWheelTarget==t?t.style.display="none":t.parentNode.removeChild(t),n}for(var i=e.display,a=e.options.lineNumbers,s=i.lineDiv,u=s.firstChild,c=i.view,l=i.viewFrom,f=0;f-1&&(h=!1),Ot(e,d,l,r)),h&&(t(d.lineNumber),d.lineNumber.appendChild(document.createTextNode(R(e.options,l)))),u=d.node.nextSibling}else{var v=Rt(e,d,l,r);s.insertBefore(v,u)}l+=d.size}for(;u;)u=o(u)}function Mr(e){var t=e.display.gutters.offsetWidth;e.display.sizer.style.marginLeft=t+"px"}function Nr(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+zt(e)+"px"}function Lr(e){var n=e.display.gutters,o=e.options.gutters;t(n);for(var i=0;i-1&&!e.lineNumbers&&(e.gutters=e.gutters.slice(0),e.gutters.splice(t,1))}function Ir(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return null==t&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),null==n&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:null==n&&(n=e.wheelDelta),{x:t,y:n}}function Dr(e){var t=Ir(e);return t.x*=_s,t.y*=_s,t}function jr(e,t){var n=Ir(t),r=n.x,o=n.y,i=e.display,a=i.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||o&&u){if(o&&ka&&da)e:for(var c=t.target,l=i.view;c!=a;c=c.parentNode)for(var f=0;f=0){var a=U(i.from(),o.from()),s=F(i.to(),o.to()),u=i.empty()?o.from()==o.head:i.from()==i.head;r<=t&&--t,e.splice(--r,2,new xs(u?s:a,u?a:s))}}return new ws(e,t)}function Fr(e,t){return new ws([new xs(e,t||e)],0)}function Ur(e){return e.text?I(e.from.line+e.text.length-1,v(e.text).length+(1==e.text.length?e.from.ch:0)):e.to}function Hr(e,t){if(D(e,t.from)<0)return e;if(D(e,t.to)<=0)return Ur(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=Ur(t).ch-t.to.ch),I(n,r)}function Wr(e,t){for(var n=[],r=0;r1&&e.remove(s.line+1,h-1),e.insert(s.line+1,y)}Ct(e,"change",e,t)}function $r(e,t,n){function r(e,o,i){if(e.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges?(e.done.pop(),v(e.done)):void 0}function ro(e,t,n,r){var o=e.history;o.undone.length=0;var i,a,s=+new Date;if((o.lastOp==r||o.lastOrigin==t.origin&&t.origin&&("+"==t.origin.charAt(0)&&e.cm&&o.lastModTime>s-e.cm.options.historyEventDelay||"*"==t.origin.charAt(0)))&&(i=no(o,o.lastOp==r)))a=v(i.changes),0==D(t.from,t.to)&&0==D(t.from,a.to)?a.to=Ur(t):i.changes.push(eo(e,t));else{var u=v(o.done);for(u&&u.ranges||ao(e.sel,o.done),i={changes:[eo(e,t)],generation:o.generation},o.done.push(i);o.done.length>o.undoDepth;)o.done.shift(),o.done[0].ranges||o.done.shift()}o.done.push(n),o.generation=++o.maxGeneration,o.lastModTime=o.lastSelTime=s,o.lastOp=o.lastSelOp=r,o.lastOrigin=o.lastSelOrigin=t.origin,a||Pe(e,"historyAdded")}function oo(e,t,n,r){var o=t.charAt(0);return"*"==o||"+"==o&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function io(e,t,n,r){var o=e.history,i=r&&r.origin;n==o.lastSelOp||i&&o.lastSelOrigin==i&&(o.lastModTime==o.lastSelTime&&o.lastOrigin==i||oo(e,i,v(o.done),t))?o.done[o.done.length-1]=t:ao(t,o.done),o.lastSelTime=+new Date,o.lastSelOrigin=i,o.lastSelOp=n,r&&!1!==r.clearRedo&&to(o.undone)}function ao(e,t){var n=v(t);n&&n.ranges&&n.equals(e)||t.push(e)}function so(e,t,n,r){var o=t["spans_"+e.id],i=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(n){n.markedSpans&&((o||(o=t["spans_"+e.id]={}))[i]=n.markedSpans),++i})}function uo(e){if(!e)return null;for(var t,n=0;n-1&&(v(s)[f]=c[f],delete c[f])}}}return r}function po(e,t,n,r){if(r){var o=e.anchor;if(n){var i=D(t,o)<0;i!=D(n,o)<0?(o=t,t=n):i!=D(t,n)<0&&(t=n)}return new xs(o,t)}return new xs(n||t,t)}function ho(e,t,n,r,o){null==o&&(o=e.cm&&(e.cm.display.shift||e.extend)),_o(e,new ws([po(e.sel.primary(),t,n,o)],0),r)}function vo(e,t,n){for(var r=[],o=e.cm&&(e.cm.display.shift||e.extend),i=0;i=t.ch:s.to>t.ch))){if(o&&(Pe(u,"beforeCursorEnter"),u.explicitlyCleared)){if(i.markedSpans){--a;continue}break}if(!u.atomic)continue;if(n){var c=u.find(r<0?1:-1),l=void 0;if((r<0?u.inclusiveRight:u.inclusiveLeft)&&(c=So(e,c,-r,c&&c.line==t.line?i:null)),c&&c.line==t.line&&(l=D(c,n))&&(r<0?l<0:l>0))return To(e,c,t,r,o)}var f=u.find(r<0?-1:1);return(r<0?u.inclusiveLeft:u.inclusiveRight)&&(f=So(e,f,r,f.line==t.line?i:null)),f?To(e,f,t,r,o):null}}return t}function Oo(e,t,n,r,o){var i=r||1,a=To(e,t,n,i,o)||!o&&To(e,t,n,i,!0)||To(e,t,n,-i,o)||!o&&To(e,t,n,-i,!0);return a||(e.cantEdit=!0,I(e.first,0))}function So(e,t,n,r){return n<0&&0==t.ch?t.line>e.first?W(e,I(t.line-1)):null:n>0&&t.ch==(r||S(e,t.line)).text.length?t.line=0;--o)Mo(e,{from:r[o].from,to:r[o].to,text:o?[""]:t.text});else Mo(e,t)}}function Mo(e,t){if(1!=t.text.length||""!=t.text[0]||0!=D(t.from,t.to)){var n=Wr(e,t);ro(e,t,n,e.cm?e.cm.curOp.id:NaN),Ro(e,t,n,Q(e,t));var r=[];$r(e,function(e,n){n||-1!=p(r,e.history)||(Fo(e.history,t),r.push(e.history)),Ro(e,t,null,Q(e,t))})}}function No(e,t,n){if(!e.cm||!e.cm.state.suppressEdits||n){for(var r,o=e.history,i=e.sel,a="undo"==t?o.done:o.undone,s="undo"==t?o.undone:o.done,u=0;u=0;--f){var d=function(n){var o=r.changes[n];if(o.origin=t,l&&!Ao(e,o,!1))return a.length=0,{};c.push(eo(e,o));var i=n?Wr(e,o):v(a);Ro(e,o,i,lo(e,o)),!n&&e.cm&&e.cm.scrollIntoView({from:o.from,to:Ur(o)});var s=[];$r(e,function(e,t){t||-1!=p(s,e.history)||(Fo(e.history,o),s.push(e.history)),Ro(e,o,null,lo(e,o))})}(f);if(d)return d.v}}}}function Lo(e,t){if(0!=t&&(e.first+=t,e.sel=new ws(m(e.sel.ranges,function(e){return new xs(I(e.anchor.line+t,e.anchor.ch),I(e.head.line+t,e.head.ch))}),e.sel.primIndex),e.cm)){mr(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.linei&&(t={from:t.from,to:I(i,S(e,i).text.length),text:[t.text[0]],origin:t.origin}),t.removed=E(e,t.from,t.to),n||(n=Wr(e,t)),e.cm?Io(e.cm,t,r):Yr(e,t,r),wo(e,n,ja)}}function Io(e,t,n){var r=e.doc,o=e.display,i=t.from,a=t.to,s=!1,u=i.line;e.options.lineWrapping||(u=M(fe(S(r,i.line))),r.iter(u,a.line+1,function(e){if(e==o.maxLine)return s=!0,!0})),r.sel.contains(t.from,t.to)>-1&&Ne(e),Yr(r,t,n,kn(e)),e.options.lineWrapping||(r.iter(u,i.line+t.text.length,function(e){var t=be(e);t>o.maxLineLength&&(o.maxLine=e,o.maxLineLength=t,o.maxLineChanged=!0,s=!1)}),s&&(e.curOp.updateMaxLine=!0)),ut(r,i.line),xr(e,400);var c=t.text.length-(a.line-i.line)-1;t.full?mr(e):i.line!=a.line||1!=t.text.length||Kr(e.doc,t)?mr(e,i.line,a.line+1,c):gr(e,i.line,"text");var l=Le(e,"changes"),f=Le(e,"change");if(f||l){var p={from:i,to:a,text:t.text,removed:t.removed,origin:t.origin};f&&Ct(e,"change",e,p),l&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(p)}e.display.selForContextMenu=null}function Do(e,t,n,r,o){if(r||(r=n),D(r,n)<0){var i=r;r=n,n=i}"string"==typeof t&&(t=e.splitLines(t)),Po(e,{from:n,to:r,text:t,origin:o})}function jo(e,t,n,r){n0||0==s&&!1!==a.clearWhenEmpty)return a;if(a.replacedWith&&(a.collapsed=!0,a.widgetNode=o("span",[a.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||a.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(a.widgetNode.insertLeft=!0)),a.collapsed){if(le(e,t.line,t,n,a)||t.line!=n.line&&le(e,n.line,t,n,a))throw new Error("Inserting collapsed marker partially overlapping an existing one");G()}a.addToHistory&&ro(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var u,c=t.line,f=e.cm;if(e.iter(c,n.line+1,function(e){f&&a.collapsed&&!f.options.lineWrapping&&fe(e)==f.display.maxLine&&(u=!0),a.collapsed&&c!=t.line&&P(e,0),X(e,new K(a,c==t.line?t.ch:null,c==n.line?n.ch:null)),++c}),a.collapsed&&e.iter(t.line,n.line+1,function(t){me(e,t)&&P(t,0)}),a.clearOnEnter&&Ya(a,"beforeCursorEnter",function(){return a.clear()}),a.readOnly&&(q(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),a.collapsed&&(a.id=++Cs,a.atomic=!0),f){if(u&&(f.curOp.updateMaxLine=!0),a.collapsed)mr(f,t.line,n.line+1);else if(a.className||a.title||a.startStyle||a.endStyle||a.css)for(var p=t.line;p<=n.line;p++)gr(f,p,"text");a.atomic&&ko(f.doc),Ct(f,"markerAdded",f,a)}return a}function Go(e,t,n,r,o){r=l(r),r.shared=!1;var i=[qo(e,t,n,r,o)],a=i[0],s=r.widgetNode;return $r(e,function(e){s&&(r.widgetNode=s.cloneNode(!0)),i.push(qo(e,W(e,t),W(e,n),r,o));for(var u=0;u-1)return t.state.draggingText(e),void setTimeout(function(){return t.display.input.focus()},20);try{var u=e.dataTransfer.getData("Text");if(u){var c;if(t.state.draggingText&&!t.state.draggingText.copy&&(c=t.listSelections()),wo(t.doc,Fr(n,n)),c)for(var l=0;l=0;t--)Do(e.doc,"",r[t].from,r[t].to,"+delete");Gn(e)})}function pi(e,t){var n=S(e.doc,t),r=fe(n);return r!=n&&(t=M(r)),Oe(!0,e,r,t,1)}function di(e,t){var n=S(e.doc,t),r=pe(n);return r!=n&&(t=M(r)),Oe(!0,e,n,t,-1)}function hi(e,t){var n=pi(e,t.line),r=S(e.doc,n.line),o=ke(r,e.doc.direction);if(!o||0==o[0].level){var i=Math.max(0,r.text.search(/\S/)),a=t.line==n.line&&t.ch<=i&&t.ch;return I(n.line,a?0:i,n.sticky)}return n}function vi(e,t,n){if("string"==typeof t&&!(t=Ds[t]))return!1;e.display.input.ensurePolled();var r=e.display.shift,o=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),n&&(e.display.shift=!1),o=t(e)!=Da}finally{e.display.shift=r,e.state.suppressEdits=!1}return o}function mi(e,t,n){for(var r=0;r-1&&(D((o=s.ranges[o]).from(),t)<0||t.xRel>0)&&(D(o.to(),t)>0||t.xRel<0)?Ai(e,r,t,i):Mi(e,r,t,i)}function Ai(e,t,n,r){var o=e.display,i=!1,a=dr(e,function(t){da&&(o.scroller.draggable=!1),e.state.draggingText=!1,Ae(document,"mouseup",a),Ae(document,"mousemove",s),Ae(o.scroller,"dragstart",u),Ae(o.scroller,"drop",a),i||(Ie(t),r.addNew||ho(e.doc,n,null,null,r.extend),da||fa&&9==pa?setTimeout(function(){document.body.focus(),o.input.focus()},20):o.input.focus())}),s=function(e){i=i||Math.abs(t.clientX-e.clientX)+Math.abs(t.clientY-e.clientY)>=10},u=function(){return i=!0};da&&(o.scroller.draggable=!0),e.state.draggingText=a,a.copy=!r.moveOnDrag,o.scroller.dragDrop&&o.scroller.dragDrop(),Ya(document,"mouseup",a),Ya(document,"mousemove",s),Ya(o.scroller,"dragstart",u),Ya(o.scroller,"drop",a),Ln(e),setTimeout(function(){return o.input.focus()},20)}function Pi(e,t,n){if("char"==n)return new xs(t,t);if("word"==n)return e.findWordAt(t);if("line"==n)return new xs(I(t.line,0),W(e.doc,I(t.line+1,0)));var r=n(e,t);return new xs(r.from,r.to)}function Mi(e,t,n,r){function o(t){if(0!=D(g,t))if(g=t,"rectangle"==r.unit){for(var o=[],i=e.options.tabSize,a=f(S(c,n.line).text,n.ch,i),s=f(S(c,t.line).text,t.ch,i),u=Math.min(a,s),v=Math.max(a,s),m=Math.min(n.line,t.line),y=Math.min(e.lastLine(),Math.max(n.line,t.line));m<=y;m++){var b=S(c,m).text,_=d(b,u,i);u==v?o.push(new xs(I(m,_),I(m,_))):b.length>_&&o.push(new xs(I(m,_),I(m,d(b,v,i))))}o.length||o.push(new xs(n,n)),_o(c,Br(h.ranges.slice(0,p).concat(o),p),{origin:"*mouse",scroll:!1}),e.scrollIntoView(t)}else{var w,x=l,k=Pi(e,t,r.unit),C=x.anchor;D(k.anchor,C)>0?(w=k.head,C=U(x.from(),k.anchor)):(w=k.anchor,C=F(x.to(),k.head));var T=h.ranges.slice(0);T[p]=new xs(W(c,C),w),_o(c,Br(T,p),Ba)}}function i(t){var n=++b,s=Tn(e,t,!0,"rectangle"==r.unit);if(s)if(0!=D(s,g)){e.curOp.focus=a(),o(s);var l=Bn(u,c);(s.line>=l.to||s.liney.bottom?20:0;f&&setTimeout(dr(e,function(){b==n&&(u.scroller.scrollTop+=f,i(t))}),50)}}function s(t){e.state.selectingText=!1,b=1/0,Ie(t),u.input.focus(),Ae(document,"mousemove",_),Ae(document,"mouseup",w),c.history.lastSelOrigin=null}var u=e.display,c=e.doc;Ie(t);var l,p,h=c.sel,v=h.ranges;if(r.addNew&&!r.extend?(p=c.sel.contains(n),l=p>-1?v[p]:new xs(n,n)):(l=c.sel.primary(),p=c.sel.primIndex),"rectangle"==r.unit)r.addNew||(l=new xs(n,n)),n=Tn(e,t,!0,!0),p=-1;else{var m=Pi(e,n,r.unit);l=r.extend?po(l,m.anchor,m.head,r.extend):m}r.addNew?-1==p?(p=v.length,_o(c,Br(v.concat([l]),p),{scroll:!1,origin:"*mouse"})):v.length>1&&v[p].empty()&&"char"==r.unit&&!r.extend?(_o(c,Br(v.slice(0,p).concat(v.slice(p+1)),0),{scroll:!1,origin:"*mouse"}),h=c.sel):mo(c,p,l,Ba):(p=0,_o(c,new ws([l],0),Ba),h=c.sel);var g=n,y=u.wrapper.getBoundingClientRect(),b=0,_=dr(e,function(e){Ue(e)?i(e):s(e)}),w=dr(e,s);e.state.selectingText=w,Ya(document,"mousemove",_),Ya(document,"mouseup",w)}function Ni(e,t,n,r){var o,i;try{o=t.clientX,i=t.clientY}catch(t){return!1}if(o>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&Ie(t);var a=e.display,s=a.lineDiv.getBoundingClientRect();if(i>s.bottom||!Le(e,n))return je(t);i-=s.top-a.viewOffset;for(var u=0;u=o){return Pe(e,n,e,N(e.doc,i),e.options.gutters[u],t),je(t)}}}function Li(e,t){return Ni(e,t,"gutterClick",!0)}function Ri(e,t){Ft(e.display,t)||Ii(e,t)||Me(e,t,"contextmenu")||e.display.input.onContextMenu(t)}function Ii(e,t){return!!Le(e,"gutterContextMenu")&&Ni(e,t,"gutterContextMenu",!1)}function Di(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),an(e)}function ji(e){Lr(e),mr(e),Fn(e)}function Bi(e,t,n){if(!t!=!(n&&n!=Ws)){var r=e.display.dragFunctions,o=t?Ya:Ae;o(e.display.scroller,"dragstart",r.start),o(e.display.scroller,"dragenter",r.enter),o(e.display.scroller,"dragover",r.over),o(e.display.scroller,"dragleave",r.leave),o(e.display.scroller,"drop",r.drop)}}function Fi(e){e.options.lineWrapping?(s(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(Pa(e.display.wrapper,"CodeMirror-wrap"),_e(e)),Cn(e),mr(e),an(e),setTimeout(function(){return tr(e)},100)}function Ui(e,t){var n=this;if(!(this instanceof Ui))return new Ui(e,t);this.options=t=t?l(t):{},l(zs,t,!1),Rr(t);var r=t.value;"string"==typeof r&&(r=new Es(r,t.mode,null,t.lineSeparator,t.direction)),this.doc=r;var o=new Ui.inputStyles[t.inputStyle](this),i=this.display=new O(e,r,o);i.wrapper.CodeMirror=this,Lr(this),Di(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),rr(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:!1,cutIncoming:!1,selectingText:!1,draggingText:!1,highlight:new Na,keySeq:null,specialChars:null},t.autofocus&&!xa&&i.input.focus(),fa&&pa<11&&setTimeout(function(){return n.display.input.reset(!0)},20),Hi(this),ti(),or(this),this.curOp.forceUpdate=!0,Xr(this,r),t.autofocus&&!xa||this.hasFocus()?setTimeout(c(Rn,this),20):In(this);for(var a in Vs)Vs.hasOwnProperty(a)&&Vs[a](n,t[a],Ws);Un(this),t.finishInit&&t.finishInit(this);for(var s=0;s400}var o=e.display;Ya(o.scroller,"mousedown",dr(e,Ti)),fa&&pa<11?Ya(o.scroller,"dblclick",dr(e,function(t){if(!Me(e,t)){var n=Tn(e,t);if(n&&!Li(e,t)&&!Ft(e.display,t)){Ie(t);var r=e.findWordAt(n);ho(e.doc,r.anchor,r.head)}}})):Ya(o.scroller,"dblclick",function(t){return Me(e,t)||Ie(t)}),Aa||Ya(o.scroller,"contextmenu",function(t){return Ri(e,t)});var i,a={end:0};Ya(o.scroller,"touchstart",function(t){if(!Me(e,t)&&!n(t)){o.input.ensurePolled(),clearTimeout(i);var r=+new Date;o.activeTouch={start:r,moved:!1,prev:r-a.end<=300?a:null},1==t.touches.length&&(o.activeTouch.left=t.touches[0].pageX,o.activeTouch.top=t.touches[0].pageY)}}),Ya(o.scroller,"touchmove",function(){o.activeTouch&&(o.activeTouch.moved=!0)}),Ya(o.scroller,"touchend",function(n){var i=o.activeTouch;if(i&&!Ft(o,n)&&null!=i.left&&!i.moved&&new Date-i.start<300){var a,s=e.coordsChar(o.activeTouch,"page");a=!i.prev||r(i,i.prev)?new xs(s,s):!i.prev.prev||r(i,i.prev.prev)?e.findWordAt(s):new xs(I(s.line,0),W(e.doc,I(s.line+1,0))),e.setSelection(a.anchor,a.head),e.focus(),Ie(n)}t()}),Ya(o.scroller,"touchcancel",t),Ya(o.scroller,"scroll",function(){o.scroller.clientHeight&&(Jn(e,o.scroller.scrollTop),Qn(e,o.scroller.scrollLeft,!0),Pe(e,"scroll",e))}),Ya(o.scroller,"mousewheel",function(t){return jr(e,t)}),Ya(o.scroller,"DOMMouseScroll",function(t){return jr(e,t)}),Ya(o.wrapper,"scroll",function(){return o.wrapper.scrollTop=o.wrapper.scrollLeft=0}),o.dragFunctions={enter:function(t){Me(e,t)||Be(t)},over:function(t){Me(e,t)||(Zo(e,t),Be(t))},start:function(t){return Jo(e,t)},drop:dr(e,Xo),leave:function(t){Me(e,t)||Qo(e)}};var s=o.input.getField();Ya(s,"keyup",function(t){return xi.call(e,t)}),Ya(s,"keydown",dr(e,_i)),Ya(s,"keypress",dr(e,ki)),Ya(s,"focus",function(t){return Rn(e,t)}),Ya(s,"blur",function(t){return In(e,t)})}function Wi(e,t,n,r){var o,i=e.doc;null==n&&(n="add"),"smart"==n&&(i.mode.indent?o=et(e,t).state:n="prev");var a=e.options.tabSize,s=S(i,t),u=f(s.text,null,a);s.stateAfter&&(s.stateAfter=null);var c,l=s.text.match(/^\s*/)[0];if(r||/\S/.test(s.text)){if("smart"==n&&((c=i.mode.indent(o,s.text.slice(l.length),s.text))==Da||c>150)){if(!r)return;n="prev"}}else c=0,n="not";"prev"==n?c=t>i.first?f(S(i,t-1).text,null,a):0:"add"==n?c=u+e.options.indentUnit:"subtract"==n?c=u-e.options.indentUnit:"number"==typeof n&&(c=u+n),c=Math.max(0,c);var p="",d=0;if(e.options.indentWithTabs)for(var v=Math.floor(c/a);v;--v)d+=a,p+="\t";if(d1)if(Gs&&Gs.text.join("\n")==t){if(r.ranges.length%Gs.text.length==0){u=[];for(var c=0;c=0;f--){var p=r.ranges[f],d=p.from(),h=p.to();p.empty()&&(n&&n>0?d=I(d.line,d.ch-n):e.state.overwrite&&!a?h=I(h.line,Math.min(S(i,h.line).text.length,h.ch+v(s).length)):Gs&&Gs.lineWise&&Gs.text.join("\n")==t&&(d=h=I(d.line,0))),l=e.curOp.updateInput;var g={from:d,to:h,text:u?u[f%u.length]:s,origin:o||(a?"paste":e.state.cutIncoming?"cut":"+input")};Po(e.doc,g),Ct(e,"inputRead",e,g)}t&&!a&&Gi(e,t),Gn(e),e.curOp.updateInput=l,e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=!1}function qi(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),t.isReadOnly()||t.options.disableInput||pr(t,function(){return Vi(t,n,0,null,"paste")}),!0}function Gi(e,t){if(e.options.electricChars&&e.options.smartIndent)for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var o=n.ranges[r];if(!(o.head.ch>100||r&&n.ranges[r-1].head.line==o.head.line)){var i=e.getModeAt(o.head),a=!1;if(i.electricChars){for(var s=0;s-1){a=Wi(e,o.head.line,"smart");break}}else i.electricInput&&i.electricInput.test(S(e.doc,o.head.line).text.slice(0,o.head.ch))&&(a=Wi(e,o.head.line,"smart"));a&&Ct(e,"electricInput",e,o.head.line)}}}function Ki(e){for(var t=[],n=[],r=0;r=e.first+e.size)&&(t=new I(r,t.ch,t.sticky),c=S(e,r))}function a(r){var a;if(null==(a=o?Se(e.cm,c,t,n):Te(c,t,n))){if(r||!i())return!1;t=Oe(o,e.cm,c,t.line,n)}else t=a;return!0}var s=t,u=n,c=S(e,t.line);if("char"==r)a();else if("column"==r)a(!0);else if("word"==r||"group"==r)for(var l=null,f="group"==r,p=e.cm&&e.cm.getHelper(t,"wordChars"),d=!0;!(n<0)||a(!d);d=!1){var h=c.text.charAt(t.ch)||"\n",v=w(h,p)?"w":f&&"\n"==h?"n":!f||/\s/.test(h)?null:"p";if(!f||d||v||(v="s"),l&&l!=v){n<0&&(n=1,a(),t.sticky="after");break}if(v&&(l=v),n>0&&!a(!d))break}var m=Oo(e,t,s,u,!0);return j(s,m)&&(m.hitSide=!0),m}function Ji(e,t,n,r){var o,i=e.doc,a=t.left;if("page"==r){var s=Math.min(e.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),u=Math.max(s-.5*bn(e.display),3);o=(n>0?t.bottom:t.top)+n*u}else"line"==r&&(o=n>0?t.bottom+3:t.top-3);for(var c;c=vn(e,a,o),c.outside;){if(n<0?o<=0:o>=i.height){c.hitSide=!0;break}o+=5*n}return c}function Zi(e,t){var n=Xt(e,t.line);if(!n||n.hidden)return null;var r=S(e.doc,t.line),o=Kt(n,r,t.line),i=ke(r,e.doc.direction),a="left";if(i){a=xe(i,t.ch)%2?"right":"left"}var s=Qt(o.map,t.ch,a);return s.offset="right"==s.collapse?s.end:s.start,s}function Qi(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function ea(e,t){return t&&(e.bad=!0),e}function ta(e,t,n,r,o){function i(e){return function(t){return t.id==e}}function a(){l&&(c+=f,l=!1)}function s(e){e&&(a(),c+=e)}function u(t){if(1==t.nodeType){var n=t.getAttribute("cm-text");if(null!=n)return void s(n||t.textContent.replace(/\u200b/g,""));var c,p=t.getAttribute("cm-marker");if(p){var d=e.findMarks(I(r,0),I(o+1,0),i(+p));return void(d.length&&(c=d[0].find())&&s(E(e.doc,c.from,c.to).join(f)))}if("false"==t.getAttribute("contenteditable"))return;var h=/^(pre|div|p)$/i.test(t.nodeName);h&&a();for(var v=0;v=15&&(ma=!1,da=!0);var Sa,Ea=ka&&(ha||ma&&(null==Oa||Oa<12.11)),Aa=sa||fa&&pa>=9,Pa=function(t,n){var r=t.className,o=e(n).exec(r);if(o){var i=r.slice(o.index+o[0].length);t.className=r.slice(0,o.index)+(i?o[1]+i:"")}};Sa=document.createRange?function(e,t,n,r){var o=document.createRange();return o.setEnd(r||e,n),o.setStart(e,t),o}:function(e,t,n){var r=document.body.createTextRange();try{r.moveToElementText(e.parentNode)}catch(e){return r}return r.collapse(!0),r.moveEnd("character",n),r.moveStart("character",t),r};var Ma=function(e){e.select()};_a?Ma=function(e){e.selectionStart=0,e.selectionEnd=e.value.length}:fa&&(Ma=function(e){try{e.select()}catch(e){}});var Na=function(){this.id=null};Na.prototype.set=function(e,t){clearTimeout(this.id),this.id=setTimeout(t,e)};var La,Ra,Ia=30,Da={toString:function(){return"CodeMirror.Pass"}},ja={scroll:!1},Ba={origin:"*mouse"},Fa={origin:"+move"},Ua=[""],Ha=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/,Wa=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/,za=!1,Va=!1,qa=null,Ga=function(){function e(e){return e<=247?n.charAt(e):1424<=e&&e<=1524?"R":1536<=e&&e<=1785?r.charAt(e-1536):1774<=e&&e<=2220?"r":8192<=e&&e<=8203?"w":8204==e?"b":"L"}function t(e,t,n){this.level=e,this.from=t,this.to=n}var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",r="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111",o=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,a=/[LRr]/,s=/[Lb1n]/,u=/[1n]/;return function(n,r){var c="ltr"==r?"L":"R";if(0==n.length||"ltr"==r&&!o.test(n))return!1;for(var l=n.length,f=[],p=0;p=this.string.length},rs.prototype.sol=function(){return this.pos==this.lineStart},rs.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},rs.prototype.next=function(){if(this.post},rs.prototype.eatSpace=function(){for(var e=this,t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++e.pos;return this.pos>t},rs.prototype.skipToEnd=function(){this.pos=this.string.length},rs.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},rs.prototype.backUp=function(e){this.pos-=e},rs.prototype.column=function(){return this.lastColumnPos0?null:(r&&!1!==t&&(this.pos+=r[0].length),r)}var o=function(e){return n?e.toLowerCase():e};if(o(this.string.substr(this.pos,e.length))==o(e))return!1!==t&&(this.pos+=e.length),!0},rs.prototype.current=function(){return this.string.slice(this.start,this.pos)},rs.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},rs.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)};var os=function(e,t){this.state=e,this.lookAhead=t},is=function(e,t,n,r){this.state=t,this.doc=e,this.line=n,this.maxLookAhead=r||0};is.prototype.lookAhead=function(e){var t=this.doc.getLine(this.line+e);return null!=t&&e>this.maxLookAhead&&(this.maxLookAhead=e),t},is.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},is.fromSaved=function(e,t,n){return t instanceof os?new is(e,$e(e.mode,t.state),n,t.lookAhead):new is(e,$e(e.mode,t),n)},is.prototype.save=function(e){var t=!1!==e?$e(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new os(t,this.maxLookAhead):t};var as=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n},ss=function(e,t,n){this.text=e,re(this,t),this.height=n?n(this):1};ss.prototype.lineNo=function(){return M(this)},Re(ss);var us,cs={},ls={},fs=null,ps=null,ds={left:0,right:0,top:0,bottom:0},hs=function(e,t,n){this.cm=n;var o=this.vert=r("div",[r("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=r("div",[r("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");e(o),e(i),Ya(o,"scroll",function(){o.clientHeight&&t(o.scrollTop,"vertical")}),Ya(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,fa&&pa<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};hs.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var o=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+o)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var i=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+i)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(0==r&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},hs.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},hs.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},hs.prototype.zeroWidthHack=function(){var e=ka&&!ya?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new Na,this.disableVert=new Na},hs.prototype.enableZeroWidthBar=function(e,t,n){function r(){var o=e.getBoundingClientRect();("vert"==n?document.elementFromPoint(o.right-1,(o.top+o.bottom)/2):document.elementFromPoint((o.right+o.left)/2,o.bottom-1))!=e?e.style.pointerEvents="none":t.set(1e3,r)}e.style.pointerEvents="auto",t.set(1e3,r)},hs.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var vs=function(){};vs.prototype.update=function(){return{bottom:0,right:0}},vs.prototype.setScrollLeft=function(){},vs.prototype.setScrollTop=function(){},vs.prototype.clear=function(){};var ms={native:hs,null:vs},gs=0,ys=function(e,t,n){var r=e.display;this.viewport=t,this.visible=Bn(r,e.doc,t),this.editorIsHidden=!r.wrapper.offsetWidth,this.wrapperHeight=r.wrapper.clientHeight,this.wrapperWidth=r.wrapper.clientWidth,this.oldDisplayWidth=Vt(e),this.force=n,this.dims=wn(e),this.events=[]};ys.prototype.signal=function(e,t){Le(e,t)&&this.events.push(arguments)},ys.prototype.finish=function(){for(var e=this,t=0;t=0&&D(e,o.to())<=0)return r}return-1};var xs=function(e,t){this.anchor=e,this.head=t};xs.prototype.from=function(){return U(this.anchor,this.head)},xs.prototype.to=function(){return F(this.anchor,this.head)},xs.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch},Ho.prototype={chunkSize:function(){return this.lines.length},removeInner:function(e,t){for(var n=this,r=e,o=e+t;r1||!(this.children[0]instanceof Ho))){var u=[];this.collapse(u),this.children=[new Ho(u)],this.children[0].parent=this}},collapse:function(e){for(var t=this,n=0;n50){for(var s=i.lines.length%25+25,u=s;u10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=this,o=0;ot.display.maxLineLength&&(t.display.maxLine=l,t.display.maxLineLength=f,t.display.maxLineChanged=!0)}null!=o&&t&&this.collapsed&&mr(t,o,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&ko(t.doc)),t&&Ct(t,"markerCleared",t,this,o,i),n&&ir(t),this.parent&&this.parent.clear()}},Ts.prototype.find=function(e,t){var n=this;null==e&&"bookmark"==this.type&&(e=1);for(var r,o,i=0;i=0;c--)Po(r,o[c]);u?bo(this,u):this.cm&&Gn(this.cm)}),undo:vr(function(){No(this,"undo")}),redo:vr(function(){No(this,"redo")}),undoSelection:vr(function(){No(this,"undo",!0)}),redoSelection:vr(function(){No(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(o.marker.parent||o.marker)}return t},findMarks:function(e,t,n){e=W(this,e),t=W(this,t);var r=[],o=e.line;return this.iter(e.line,t.line+1,function(i){var a=i.markedSpans;if(a)for(var s=0;s=u.to||null==u.from&&o!=e.line||null!=u.from&&o==t.line&&u.from>=t.ch||n&&!n(u.marker)||r.push(u.marker.parent||u.marker)}++o}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=i,++n}),W(this,I(n,t))},indexFromPos:function(e){e=W(this,e);var t=e.ch;if(e.linet&&(t=e.from),null!=e.to&&e.to0)o=new I(o.line,o.ch+1),e.replaceRange(i.charAt(o.ch-1)+i.charAt(o.ch-2),I(o.line,o.ch-2),o,"+transpose");else if(o.line>e.doc.first){var a=S(e.doc,o.line-1).text;a&&(o=new I(o.line,1),e.replaceRange(i.charAt(0)+e.doc.lineSeparator()+a.charAt(a.length-1),I(o.line-1,a.length-1),o,"+transpose"))}n.push(new xs(o,o))}e.setSelections(n)})},newlineAndIndent:function(e){return pr(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&0==D(t,this.pos)&&n==this.button};var Us,Hs,Ws={toString:function(){return"CodeMirror.Init"}},zs={},Vs={};Ui.defaults=zs,Ui.optionHandlers=Vs;var qs=[];Ui.defineInitHook=function(e){return qs.push(e)};var Gs=null,Ks=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Na,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Ks.prototype.init=function(e){function t(e){if(!Me(o,e)){if(o.somethingSelected())zi({lineWise:!1,text:o.getSelections()}),"cut"==e.type&&o.replaceSelection("",null,"cut");else{if(!o.options.lineWiseCopyCut)return;var t=Ki(o);zi({lineWise:!0,text:t.text}),"cut"==e.type&&o.operation(function(){o.setSelections(t.ranges,0,ja),o.replaceSelection("",null,"cut")})}if(e.clipboardData){e.clipboardData.clearData();var n=Gs.text.join("\n");if(e.clipboardData.setData("Text",n),e.clipboardData.getData("Text")==n)return void e.preventDefault()}var a=$i(),s=a.firstChild;o.display.lineSpace.insertBefore(a,o.display.lineSpace.firstChild),s.value=Gs.text.join("\n");var u=document.activeElement;Ma(s),setTimeout(function(){o.display.lineSpace.removeChild(a),u.focus(),u==i&&r.showPrimarySelection()},50)}}var n=this,r=this,o=r.cm,i=r.div=e.lineDiv;Yi(i,o.options.spellcheck),Ya(i,"paste",function(e){Me(o,e)||qi(e,o)||pa<=11&&setTimeout(dr(o,function(){return n.updateFromDOM()}),20)}),Ya(i,"compositionstart",function(e){n.composing={data:e.data,done:!1}}),Ya(i,"compositionupdate",function(e){n.composing||(n.composing={data:e.data,done:!1})}),Ya(i,"compositionend",function(e){n.composing&&(e.data!=n.composing.data&&n.readFromDOMSoon(),n.composing.done=!0)}),Ya(i,"touchstart",function(){return r.forceCompositionEnd()}),Ya(i,"input",function(){n.composing||n.readFromDOMSoon()}),Ya(i,"copy",t),Ya(i,"cut",t)},Ks.prototype.prepareSelection=function(){var e=En(this.cm,!1);return e.focus=this.cm.state.focused,e},Ks.prototype.showSelection=function(e,t){e&&this.cm.display.view.length&&((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},Ks.prototype.showPrimarySelection=function(){var e=window.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),o=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||o.line=t.display.viewFrom&&Zi(t,r)||{node:s[0].measure.map[2],offset:0},c=o.linee.firstLine()&&(r=I(r.line-1,S(e.doc,r.line-1).length)),o.ch==S(e.doc,o.line).text.length&&o.linet.viewTo-1)return!1;var i,a,s;r.line==t.viewFrom||0==(i=On(e,r.line))?(a=M(t.view[0].line),s=t.view[0].node):(a=M(t.view[i].line),s=t.view[i-1].node.nextSibling);var u,c,l=On(e,o.line);if(l==t.view.length-1?(u=t.viewTo-1,c=t.lineDiv.lastChild):(u=M(t.view[l+1].line)-1,c=t.view[l+1].node.previousSibling),!s)return!1;for(var f=e.doc.splitLines(ta(e,s,c,a,u)),p=E(e.doc,I(a,0),I(u,S(e.doc,u).text.length));f.length>1&&p.length>1;)if(v(f)==v(p))f.pop(),p.pop(),u--;else{if(f[0]!=p[0])break;f.shift(),p.shift(),a++}for(var d=0,h=0,m=f[0],g=p[0],y=Math.min(m.length,g.length);dr.ch&&b.charCodeAt(b.length-h-1)==_.charCodeAt(_.length-h-1);)d--,h++;f[f.length-1]=b.slice(0,b.length-h).replace(/^\u200b+/,""),f[0]=f[0].slice(d).replace(/\u200b+$/,"");var x=I(a,d),k=I(u,p.length?v(p).length-h:0);return f.length>1||f[0]||D(x,k)?(Do(e.doc,f,x,k,"+input"),!0):void 0},Ks.prototype.ensurePolled=function(){this.forceCompositionEnd()},Ks.prototype.reset=function(){this.forceCompositionEnd()},Ks.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Ks.prototype.readFromDOMSoon=function(){var e=this;null==this.readDOMTimeout&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing){if(!e.composing.done)return;e.composing=null}e.updateFromDOM()},80))},Ks.prototype.updateFromDOM=function(){var e=this;!this.cm.isReadOnly()&&this.pollContent()||pr(this.cm,function(){return mr(e.cm)})},Ks.prototype.setUneditable=function(e){e.contentEditable="false"},Ks.prototype.onKeyPress=function(e){0!=e.charCode&&(e.preventDefault(),this.cm.isReadOnly()||dr(this.cm,Vi)(this.cm,String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),0))},Ks.prototype.readOnlyChanged=function(e){this.div.contentEditable=String("nocursor"!=e)},Ks.prototype.onContextMenu=function(){},Ks.prototype.resetPosition=function(){},Ks.prototype.needsContentAttribute=!0;var Ys=function(e){this.cm=e,this.prevInput="",this.pollingFast=!1,this.polling=new Na,this.hasSelection=!1,this.composing=null};Ys.prototype.init=function(e){function t(e){if(!Me(o,e)){if(o.somethingSelected())zi({lineWise:!1,text:o.getSelections()});else{if(!o.options.lineWiseCopyCut)return;var t=Ki(o);zi({lineWise:!0,text:t.text}),"cut"==e.type?o.setSelections(t.ranges,null,ja):(r.prevInput="",a.value=t.text.join("\n"),Ma(a))}"cut"==e.type&&(o.state.cutIncoming=!0)}}var n=this,r=this,o=this.cm,i=this.wrapper=$i(),a=this.textarea=i.firstChild;e.wrapper.insertBefore(i,e.wrapper.firstChild),_a&&(a.style.width="0px"),Ya(a,"input",function(){fa&&pa>=9&&n.hasSelection&&(n.hasSelection=null),r.poll()}),Ya(a,"paste",function(e){Me(o,e)||qi(e,o)||(o.state.pasteIncoming=!0,r.fastPoll())}),Ya(a,"cut",t),Ya(a,"copy",t),Ya(e.scroller,"paste",function(t){Ft(e,t)||Me(o,t)||(o.state.pasteIncoming=!0,r.focus())}),Ya(e.lineSpace,"selectstart",function(t){Ft(e,t)||Ie(t)}),Ya(a,"compositionstart",function(){var e=o.getCursor("from");r.composing&&r.composing.range.clear(),r.composing={start:e,range:o.markText(e,o.getCursor("to"),{className:"CodeMirror-composing"})}}),Ya(a,"compositionend",function(){r.composing&&(r.poll(),r.composing.range.clear(),r.composing=null)})},Ys.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=En(e);if(e.options.moveInputWithCursor){var o=pn(e,n.sel.primary().head,"div"),i=t.wrapper.getBoundingClientRect(),a=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,o.top+a.top-i.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,o.left+a.left-i.left))}return r},Ys.prototype.showSelection=function(e){var t=this.cm,r=t.display;n(r.cursorDiv,e.cursors),n(r.selectionDiv,e.selection),null!=e.teTop&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Ys.prototype.reset=function(e){if(!this.contextMenuPending&&!this.composing){var t=this.cm;if(t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Ma(this.textarea),fa&&pa>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",fa&&pa>=9&&(this.hasSelection=null))}},Ys.prototype.getField=function(){return this.textarea},Ys.prototype.supportsTouch=function(){return!1},Ys.prototype.focus=function(){if("nocursor"!=this.cm.options.readOnly&&(!xa||a()!=this.textarea))try{this.textarea.focus()}catch(e){}},Ys.prototype.blur=function(){this.textarea.blur()},Ys.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Ys.prototype.receivedFocus=function(){this.slowPoll()},Ys.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Ys.prototype.fastPoll=function(){function e(){n.poll()||t?(n.pollingFast=!1,n.slowPoll()):(t=!0,n.polling.set(60,e))}var t=!1,n=this;n.pollingFast=!0,n.polling.set(20,e)},Ys.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||!t.state.focused||Ja(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var o=n.value;if(o==r&&!t.somethingSelected())return!1;if(fa&&pa>=9&&this.hasSelection===o||ka&&/[\uf700-\uf7ff]/.test(o))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var i=o.charCodeAt(0);if(8203!=i||r||(r="​"),8666==i)return this.reset(),this.cm.execCommand("undo")}for(var a=0,s=Math.min(r.length,o.length);a1e3||o.indexOf("\n")>-1?n.value=e.prevInput="":e.prevInput=o,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Ys.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Ys.prototype.onKeyPress=function(){fa&&pa>=9&&(this.hasSelection=null),this.fastPoll()},Ys.prototype.onContextMenu=function(e){function t(){if(null!=a.selectionStart){var e=o.somethingSelected(),t="​"+(e?a.value:"");a.value="⇚",a.value=t,r.prevInput=e?"":"​",a.selectionStart=1,a.selectionEnd=t.length,i.selForContextMenu=o.doc.sel}}function n(){if(r.contextMenuPending=!1,r.wrapper.style.cssText=l,a.style.cssText=c,fa&&pa<9&&i.scrollbars.setScrollTop(i.scroller.scrollTop=u),null!=a.selectionStart){(!fa||fa&&pa<9)&&t();var e=0,n=function(){i.selForContextMenu==o.doc.sel&&0==a.selectionStart&&a.selectionEnd>0&&"​"==r.prevInput?dr(o,Eo)(o):e++<10?i.detectingSelectAll=setTimeout(n,500):(i.selForContextMenu=null,i.input.reset())};i.detectingSelectAll=setTimeout(n,200)}}var r=this,o=r.cm,i=o.display,a=r.textarea,s=Tn(o,e),u=i.scroller.scrollTop;if(s&&!ma){o.options.resetSelectionOnContextMenu&&-1==o.doc.sel.contains(s)&&dr(o,_o)(o.doc,Fr(s),ja);var c=a.style.cssText,l=r.wrapper.style.cssText;r.wrapper.style.cssText="position: absolute";var f=r.wrapper.getBoundingClientRect();a.style.cssText="position: absolute; width: 30px; height: 30px;\n top: "+(e.clientY-f.top-5)+"px; left: "+(e.clientX-f.left-5)+"px;\n z-index: 1000; background: "+(fa?"rgba(255, 255, 255, .05)":"transparent")+";\n outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);";var p;if(da&&(p=window.scrollY),i.input.focus(),da&&window.scrollTo(null,p),i.input.reset(),o.somethingSelected()||(a.value=r.prevInput=" "),r.contextMenuPending=!0,i.selForContextMenu=o.doc.sel,clearTimeout(i.detectingSelectAll),fa&&pa>=9&&t(),Aa){Be(e);var d=function(){Ae(window,"mouseup",d),setTimeout(n,20)};Ya(window,"mouseup",d)}else setTimeout(n,50)}},Ys.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled="nocursor"==e},Ys.prototype.setUneditable=function(){},Ys.prototype.needsContentAttribute=!1,function(e){function t(t,r,o,i){e.defaults[t]=r,o&&(n[t]=i?function(e,t,n){n!=Ws&&o(e,t,n)}:o)}var n=e.optionHandlers;e.defineOption=t,e.Init=Ws,t("value","",function(e,t){return e.setValue(t)},!0),t("mode",null,function(e,t){e.doc.modeOption=t,qr(e)},!0),t("indentUnit",2,qr,!0),t("indentWithTabs",!1),t("smartIndent",!0),t("tabSize",4,function(e){Gr(e),an(e),mr(e)},!0),t("lineSeparator",null,function(e,t){if(e.doc.lineSep=t,t){var n=[],r=e.doc.first;e.doc.iter(function(e){for(var o=0;;){var i=e.text.indexOf(t,o);if(-1==i)break;o=i+t.length,n.push(I(r,i))}r++});for(var o=n.length-1;o>=0;o--)Do(e.doc,t,n[o],I(n[o].line,n[o].ch+t.length))}}),t("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200f\u2028\u2029\ufeff]/g,function(e,t,n){e.state.specialChars=new RegExp(t.source+(t.test("\t")?"":"|\t"),"g"),n!=Ws&&e.refresh()}),t("specialCharPlaceholder",dt,function(e){return e.refresh()},!0),t("electricChars",!0),t("inputStyle",xa?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),t("spellcheck",!1,function(e,t){return e.getInputField().spellcheck=t},!0),t("rtlMoveVisually",!Ta),t("wholeLineUpdateBefore",!0),t("theme","default",function(e){Di(e),ji(e)},!0),t("keyMap","default",function(e,t,n){var r=li(t),o=n!=Ws&&li(n);o&&o.detach&&o.detach(e,r),r.attach&&r.attach(e,o||null)}),t("extraKeys",null),t("configureMouse",null),t("lineWrapping",!1,Fi,!0),t("gutters",[],function(e){Rr(e.options),ji(e)},!0),t("fixedGutter",!0,function(e,t){e.display.gutters.style.left=t?xn(e.display)+"px":"0",e.refresh()},!0),t("coverGutterNextToScrollbar",!1,function(e){return tr(e)},!0),t("scrollbarStyle","native",function(e){rr(e),tr(e),e.display.scrollbars.setScrollTop(e.doc.scrollTop),e.display.scrollbars.setScrollLeft(e.doc.scrollLeft)},!0),t("lineNumbers",!1,function(e){Rr(e.options),ji(e)},!0),t("firstLineNumber",1,ji,!0),t("lineNumberFormatter",function(e){return e},ji,!0),t("showCursorWhenSelecting",!1,Sn,!0),t("resetSelectionOnContextMenu",!0),t("lineWiseCopyCut",!0),t("pasteLinesPerSelection",!0),t("readOnly",!1,function(e,t){"nocursor"==t&&(In(e),e.display.input.blur()),e.display.input.readOnlyChanged(t)}),t("disableInput",!1,function(e,t){t||e.display.input.reset()},!0),t("dragDrop",!0,Bi),t("allowDropFileTypes",null),t("cursorBlinkRate",530),t("cursorScrollMargin",0),t("cursorHeight",1,Sn,!0),t("singleCursorHeightPerLine",!0,Sn,!0),t("workTime",100),t("workDelay",100),t("flattenSpans",!0,Gr,!0),t("addModeClass",!1,Gr,!0),t("pollInterval",100),t("undoDepth",200,function(e,t){return e.doc.history.undoDepth=t}),t("historyEventDelay",1250),t("viewportMargin",10,function(e){return e.refresh()},!0),t("maxHighlightLength",1e4,Gr,!0),t("moveInputWithCursor",!0,function(e,t){t||e.display.input.resetPosition()}),t("tabindex",null,function(e,t){return e.display.input.getField().tabIndex=t||""}),t("autofocus",null),t("direction","ltr",function(e,t){return e.doc.setDirection(t)},!0)}(Ui),function(e){var t=e.optionHandlers,n=e.helpers={};e.prototype={constructor:e,focus:function(){window.focus(),this.display.input.focus()},setOption:function(e,n){var r=this.options,o=r[e];r[e]==n&&"mode"!=e||(r[e]=n,t.hasOwnProperty(e)&&dr(this,t[e])(this,n,o),Pe(this,"optionChange",this,e))},getOption:function(e){return this.options[e]},getDoc:function(){return this.doc},addKeyMap:function(e,t){this.state.keyMaps[t?"push":"unshift"](li(e))},removeKeyMap:function(e){for(var t=this.state.keyMaps,n=0;nr&&(Wi(t,i.head.line,e,!0),r=i.head.line,o==t.doc.sel.primIndex&&Gn(t));else{var a=i.from(),s=i.to(),u=Math.max(r,a.line);r=Math.min(t.lastLine(),s.line-(s.ch?0:1))+1;for(var c=u;c0&&mo(t.doc,o,new xs(a,l[o].to()),ja)}}}),getTokenAt:function(e,t){return ot(this,e,t)},getLineTokens:function(e,t){return ot(this,I(e),t,!0)},getTokenTypeAt:function(e){e=W(this.doc,e);var t,n=Qe(this,S(this.doc,e.line)),r=0,o=(n.length-1)/2,i=e.ch;if(0==i)t=n[2];else for(;;){var a=r+o>>1;if((a?n[2*a-1]:0)>=i)o=a;else{if(!(n[2*a+1]i&&(e=i,o=!0),r=S(this.doc,e)}else r=e;return cn(this,r,{top:0,left:0},t||"page",n||o).top+(o?this.doc.height-ye(r):0)},defaultTextHeight:function(){return bn(this.display)},defaultCharWidth:function(){return _n(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(e,t,n,r,o){var i=this.display;e=pn(this,W(this.doc,e));var a=e.bottom,s=e.left;if(t.style.position="absolute",t.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(t),i.sizer.appendChild(t),"over"==r)a=e.top;else if("above"==r||"near"==r){var u=Math.max(i.wrapper.clientHeight,this.doc.height),c=Math.max(i.sizer.clientWidth,i.lineSpace.clientWidth);("above"==r||e.bottom+t.offsetHeight>u)&&e.top>t.offsetHeight?a=e.top-t.offsetHeight:e.bottom+t.offsetHeight<=u&&(a=e.bottom),s+t.offsetWidth>c&&(s=c-t.offsetWidth)}t.style.top=a+"px",t.style.left=t.style.right="","right"==o?(s=i.sizer.clientWidth-t.offsetWidth,t.style.right="0px"):("left"==o?s=0:"middle"==o&&(s=(i.sizer.clientWidth-t.offsetWidth)/2),t.style.left=s+"px"),n&&zn(this,{left:s,top:a,right:s+t.offsetWidth,bottom:a+t.offsetHeight})},triggerOnKeyDown:hr(_i),triggerOnKeyPress:hr(ki),triggerOnKeyUp:xi,triggerOnMouseDown:hr(Ti),execCommand:function(e){if(Ds.hasOwnProperty(e))return Ds[e].call(null,this)},triggerElectric:hr(function(e){Gi(this,e)}),findPosH:function(e,t,n,r){var o=this,i=1;t<0&&(i=-1,t=-t);for(var a=W(this.doc,e),s=0;s0&&s(n.charAt(r-1));)--r;for(;o.5)&&Cn(this),Pe(this,"refresh",this)}),swapDoc:hr(function(e){var t=this.doc;return t.cm=null,Xr(this,e),an(this),this.display.input.reset(),Kn(this,e.scrollLeft,e.scrollTop),this.curOp.forceScroll=!0,Ct(this,"swapDoc",this,t),t}),getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},Re(e),e.registerHelper=function(t,r,o){n.hasOwnProperty(t)||(n[t]=e[t]={_global:[]}),n[t][r]=o},e.registerGlobalHelper=function(t,r,o,i){e.registerHelper(t,r,i),n[t]._global.push({pred:o,val:i})}}(Ui);var $s="iter insert remove copy getEditor constructor".split(" ");for(var Xs in Es.prototype)Es.prototype.hasOwnProperty(Xs)&&p($s,Xs)<0&&(Ui.prototype[Xs]=function(e){return function(){return e.apply(this.doc,arguments)}}(Es.prototype[Xs]));return Re(Es),Ui.inputStyles={textarea:Ys,contenteditable:Ks},Ui.defineMode=function(e){Ui.defaults.mode||"null"==e||(Ui.defaults.mode=e),Ve.apply(this,arguments)},Ui.defineMIME=qe,Ui.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ui.defineMIME("text/plain","null"),Ui.defineExtension=function(e,t){Ui.prototype[e]=t},Ui.defineDocExtension=function(e,t){Es.prototype[e]=t},Ui.fromTextArea=oa,function(e){e.off=Ae,e.on=Ya,e.wheelEventPixels=Dr,e.Doc=Es,e.splitLines=Xa,e.countColumn=f,e.findColumn=d,e.isWordChar=_,e.Pass=Da,e.signal=Pe,e.Line=ss,e.changeEnd=Ur,e.scrollbarModel=ms,e.Pos=I,e.cmpPos=D,e.modes=es,e.mimeModes=ts,e.resolveMode=Ge,e.getMode=Ke,e.modeExtensions=ns,e.extendMode=Ye,e.copyState=$e,e.startState=Je,e.innerMode=Xe,e.commands=Ds,e.keyMap=Is,e.keyName=ci,e.isModifierKey=si,e.lookupKey=ai,e.normalizeKeyMap=ii,e.StringStream=rs,e.SharedTextMarker=Os,e.TextMarker=Ts,e.LineWidget=ks,e.e_preventDefault=Ie,e.e_stopPropagation=De,e.e_stop=Be,e.addClass=s,e.contains=i,e.rmClass=Pa,e.keyNames=Ms}(Ui),Ui.version="5.28.0",Ui})},function(e,t,n){var r=n(16),o=n(8),i=n(54),a=n(44),s=function(e,t,n){var u,c,l,f=e&s.F,p=e&s.G,d=e&s.S,h=e&s.P,v=e&s.B,m=e&s.W,g=p?o:o[t]||(o[t]={}),y=g.prototype,b=p?r:d?r[t]:(r[t]||{}).prototype;p&&(n=t);for(u in n)(c=!f&&b&&void 0!==b[u])&&u in g||(l=c?b[u]:n[u],g[u]=p&&"function"!=typeof b[u]?n[u]:v&&c?i(l,r):m&&b[u]==l?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}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((g.virtual||(g.virtual={}))[u]=l,e&s.R&&y&&!y[u]&&a(y,u,l)))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){"use strict";var r=null;e.exports={debugTool:r}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=n(348),i=r(o),a=n(358),s=r(a),u="function"==typeof s.default&&"symbol"==typeof i.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(i.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){var r;!function(o){"use strict";function i(e){function t(e,r){var o,i,a,s,u,c,l=this;if(!(l instanceof t))return z&&M(26,"constructor call without new",e),new t(e,r);if(null!=r&&V(r,2,64,R,"base")){if(r|=0,c=e+"",10==r)return l=new t(e instanceof t?e:c),N(l,j+l.e+1,B);if((s="number"==typeof e)&&0*e!=0||!new RegExp("^-?"+(o="["+k.slice(0,r)+"]+")+"(?:\\."+o+")?$",r<37?"i":"").test(c))return m(l,c,s,r);s?(l.s=1/e<0?(c=c.slice(1),-1):1,z&&c.replace(/^0\.0*|\./,"").length>15&&M(R,x,e),s=!1):l.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1,c=n(c,10,r,l.s)}else{if(e instanceof t)return l.s=e.s,l.e=e.e,l.c=(e=e.c)?e.slice():e,void(R=0);if((s="number"==typeof e)&&0*e==0){if(l.s=1/e<0?(e=-e,-1):1,e===~~e){for(i=0,a=e;a>=10;a/=10,i++);return l.e=i,l.c=[e],void(R=0)}c=e+""}else{if(!g.test(c=e+""))return m(l,c,s);l.s=45===c.charCodeAt(0)?(c=c.slice(1),-1):1}}for((i=c.indexOf("."))>-1&&(c=c.replace(".","")),(a=c.search(/e/i))>0?(i<0&&(i=a),i+=+c.slice(a+1),c=c.substring(0,a)):i<0&&(i=c.length),a=0;48===c.charCodeAt(a);a++);for(u=c.length;48===c.charCodeAt(--u););if(c=c.slice(a,u+1))if(u=c.length,s&&z&&u>15&&(e>O||e!==b(e))&&M(R,x,l.s*e),(i=i-a-1)>W)l.c=l.e=null;else if(i=0&&(u=K,K=0,e=e.replace(".",""),h=new t(r),l=h.pow(e.length-v),K=u,h.c=f(d(s(l.c),l.e),10,n),h.e=h.c.length),p=f(e,r,n),a=u=p.length;0==p[--u];p.pop());if(!p[0])return"0";if(v<0?--a:(l.c=p,l.e=a,l.s=o,l=L(l,h,m,g,n),p=l.c,c=l.r,a=l.e),i=a+m+1,v=p[i],u=n/2,c=c||i<0||null!=p[i+1],c=g<4?(null!=v||c)&&(0==g||g==(l.s<0?3:2)):v>u||v==u&&(4==g||c||6==g&&1&p[i-1]||g==(l.s<0?8:7)),i<1||!p[0])e=c?d("1",-m):"0";else{if(p.length=i,c)for(--n;++p[--i]>n;)p[i]=0,i||(++a,p.unshift(1));for(u=p.length;!p[--u];);for(v=0,e="";v<=u;e+=k.charAt(p[v++]));e=d(e,a)}return e}function r(e,n,r,o){var i,a,u,c,l;if(r=null!=r&&V(r,0,8,o,w)?0|r:B,!e.c)return e.toString();if(i=e.c[0],u=e.e,null==n)l=s(e.c),l=19==o||24==o&&u<=F?p(l,u):d(l,u);else if(e=N(new t(e),n,r),a=e.e,l=s(e.c),c=l.length,19==o||24==o&&(n<=a||a<=F)){for(;cc){if(--n>0)for(l+=".";n--;l+="0");}else if((n+=a-c)>0)for(a+1==c&&(l+=".");n--;l+="0");return e.s<0&&i?"-"+l:l}function o(e,n){var r,o,i=0;for(l(e[0])&&(e=e[0]),r=new t(e[0]);++in||e!=h(e))&&M(r,(o||"decimal places")+(en?" out of range":" not an integer"),e),!0}function P(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+n*T-1)>W?e.c=e.e=null:n=10;s/=10,o++);if((i=t-o)<0)i+=T,a=t,u=f[c=0],l=u/p[o-a-1]%10|0;else if((c=y((i+1)/T))>=f.length){if(!r)break e;for(;f.length<=c;f.push(0));u=l=0,o=1,i%=T,a=i-T+1}else{for(u=s=f[c],o=1;s>=10;s/=10,o++);i%=T,a=i-T+o,l=a<0?0:u/p[o-a-1]%10|0}if(r=r||t<0||null!=f[c+1]||(a<0?u:u%p[o-a-1]),r=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(i>0?a>0?u/p[o-a]:0:f[c-1])%10&1||n==(e.s<0?8:7)),t<1||!f[0])return f.length=0,r?(t-=e.e+1,f[0]=p[(T-t%T)%T],e.e=-t||0):f[0]=e.e=0,e;if(0==i?(f.length=c,s=1,c--):(f.length=c+1,s=p[T-i],f[c]=a>0?b(u/p[o-a]%p[a])*s:0),r)for(;;){if(0==c){for(i=1,a=f[0];a>=10;a/=10,i++);for(a=f[0]+=s,s=1;a>=10;a/=10,s++);i!=s&&(e.e++,f[0]==C&&(f[0]=1));break}if(f[c]+=s,f[c]!=C)break;f[c--]=0,s=1}for(i=f.length;0===f[--i];f.pop());}e.e>W?e.c=e.e=null:e.en)return null!=(e=o[n++])};return a(t="DECIMAL_PLACES")&&V(e,0,A,2,t)&&(j=0|e),r[t]=j,a(t="ROUNDING_MODE")&&V(e,0,8,2,t)&&(B=0|e),r[t]=B,a(t="EXPONENTIAL_AT")&&(l(e)?V(e[0],-A,0,2,t)&&V(e[1],0,A,2,t)&&(F=0|e[0],U=0|e[1]):V(e,-A,A,2,t)&&(F=-(U=0|(e<0?-e:e)))),r[t]=[F,U],a(t="RANGE")&&(l(e)?V(e[0],-A,-1,2,t)&&V(e[1],1,A,2,t)&&(H=0|e[0],W=0|e[1]):V(e,-A,A,2,t)&&(0|e?H=-(W=0|(e<0?-e:e)):z&&M(2,t+" cannot be zero",e))),r[t]=[H,W],a(t="ERRORS")&&(e===!!e||1===e||0===e?(R=0,V=(z=!!e)?v:c):z&&M(2,t+_,e)),r[t]=z,a(t="CRYPTO")&&(!0===e||!1===e||1===e||0===e?e?(e="undefined"==typeof crypto,!e&&crypto&&(crypto.getRandomValues||crypto.randomBytes)?q=!0:z?M(2,"crypto unavailable",e?void 0:crypto):q=!1):q=!1:z&&M(2,t+_,e)),r[t]=q,a(t="MODULO_MODE")&&V(e,0,9,2,t)&&(G=0|e),r[t]=G,a(t="POW_PRECISION")&&V(e,0,A,2,t)&&(K=0|e),r[t]=K,a(t="FORMAT")&&("object"==typeof e?Y=e:z&&M(2,t+" not an object",e)),r[t]=Y,r},t.max=function(){return o(arguments,I.lt)},t.min=function(){return o(arguments,I.gt)},t.random=function(){var e=9007199254740992*Math.random()&2097151?function(){return b(9007199254740992*Math.random())}:function(){return 8388608*(1073741824*Math.random()|0)+(8388608*Math.random()|0)};return function(n){var r,o,i,a,s,u=0,c=[],l=new t(D);if(n=null!=n&&V(n,0,A,14)?0|n:j,a=y(n/T),q)if(crypto.getRandomValues){for(r=crypto.getRandomValues(new Uint32Array(a*=2));u>>11),s>=9e15?(o=crypto.getRandomValues(new Uint32Array(2)),r[u]=o[0],r[u+1]=o[1]):(c.push(s%1e14),u+=2);u=a/2}else if(crypto.randomBytes){for(r=crypto.randomBytes(a*=7);u=9e15?crypto.randomBytes(7).copy(r,u):(c.push(s%1e14),u+=7);u=a/7}else q=!1,z&&M(14,"crypto unavailable",crypto);if(!q)for(;u=10;s/=10,u++);ur?1:-1;else for(o=i=0;ot[o]?1:-1;break}return i}function r(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=e[n]1;e.shift());}return function(o,i,s,u,c){var l,f,p,d,h,v,m,g,y,_,w,x,k,O,S,E,A,P=o.s==i.s?1:-1,M=o.c,L=i.c;if(!(M&&M[0]&&L&&L[0]))return new t(o.s&&i.s&&(M?!L||M[0]!=L[0]:L)?M&&0==M[0]||!L?0*P:P/0:NaN);for(g=new t(P),y=g.c=[],f=o.e-i.e,P=s+f+1,c||(c=C,f=a(o.e/T)-a(i.e/T),P=P/T|0),p=0;L[p]==(M[p]||0);p++);if(L[p]>(M[p]||0)&&f--,P<0)y.push(1),d=!0;else{for(O=M.length,E=L.length,p=0,P+=2,h=b(c/(L[0]+1)),h>1&&(L=e(L,h,c),M=e(M,h,c),E=L.length,O=M.length),k=E,_=M.slice(0,E),w=_.length;w=c/2&&S++;do{if(h=0,(l=n(L,_,E,w))<0){if(x=_[0],E!=w&&(x=x*c+(_[1]||0)),(h=b(x/S))>1)for(h>=c&&(h=c-1),v=e(L,h,c),m=v.length,w=_.length;1==n(v,_,m,w);)h--,r(v,E=10;P/=10,p++);N(g,s+(g.e=p+f*T-1)+1,u,d)}else g.e=f,g.r=+d;return g}}(),m=function(){var e=/^(-?)0([xbo])(?=\w[\w.]*$)/i,n=/^([^.]+)\.$/,r=/^\.([^.]+)$/,o=/^-?(Infinity|NaN)$/,i=/^\s*\+(?=[\w.])|^\s+|\s+$/g;return function(a,s,u,c){var l,f=u?s:s.replace(i,"");if(o.test(f))a.s=isNaN(f)?null:f<0?-1:1;else{if(!u&&(f=f.replace(e,function(e,t,n){return l="x"==(n=n.toLowerCase())?16:"b"==n?2:8,c&&c!=l?e:t}),c&&(l=c,f=f.replace(n,"$1").replace(r,"0.$1")),s!=f))return new t(f,l);z&&M(R,"not a"+(c?" base "+c:"")+" number",s),a.s=null}a.c=a.e=null,R=0}}(),I.absoluteValue=I.abs=function(){var e=new t(this);return e.s<0&&(e.s=1),e},I.ceil=function(){return N(new t(this),this.e+1,2)},I.comparedTo=I.cmp=function(e,n){return R=1,u(this,new t(e,n))},I.decimalPlaces=I.dp=function(){var e,t,n=this.c;if(!n)return null;if(e=((t=n.length-1)-a(this.e/T))*T,t=n[t])for(;t%10==0;t/=10,e--);return e<0&&(e=0),e},I.dividedBy=I.div=function(e,n){return R=3,L(this,new t(e,n),j,B)},I.dividedToIntegerBy=I.divToInt=function(e,n){return R=4,L(this,new t(e,n),0,1)},I.equals=I.eq=function(e,n){return R=5,0===u(this,new t(e,n))},I.floor=function(){return N(new t(this),this.e+1,3)},I.greaterThan=I.gt=function(e,n){return R=6,u(this,new t(e,n))>0},I.greaterThanOrEqualTo=I.gte=function(e,n){return R=7,1===(n=u(this,new t(e,n)))||0===n},I.isFinite=function(){return!!this.c},I.isInteger=I.isInt=function(){return!!this.c&&a(this.e/T)>this.c.length-2},I.isNaN=function(){return!this.s},I.isNegative=I.isNeg=function(){return this.s<0},I.isZero=function(){return!!this.c&&0==this.c[0]},I.lessThan=I.lt=function(e,n){return R=8,u(this,new t(e,n))<0},I.lessThanOrEqualTo=I.lte=function(e,n){return R=9,-1===(n=u(this,new t(e,n)))||0===n},I.minus=I.sub=function(e,n){var r,o,i,s,u=this,c=u.s;if(R=10,e=new t(e,n),n=e.s,!c||!n)return new t(NaN);if(c!=n)return e.s=-n,u.plus(e);var l=u.e/T,f=e.e/T,p=u.c,d=e.c;if(!l||!f){if(!p||!d)return p?(e.s=-n,e):new t(d?u:NaN);if(!p[0]||!d[0])return d[0]?(e.s=-n,e):new t(p[0]?u:3==B?-0:0)}if(l=a(l),f=a(f),p=p.slice(),c=l-f){for((s=c<0)?(c=-c,i=p):(f=l,i=d),i.reverse(),n=c;n--;i.push(0));i.reverse()}else for(o=(s=(c=p.length)<(n=d.length))?c:n,c=n=0;n0)for(;n--;p[r++]=0);for(n=C-1;o>c;){if(p[--o]0?(u=s,r=l):(i=-i,r=c),r.reverse();i--;r.push(0));r.reverse()}for(i=c.length,n=l.length,i-n<0&&(r=l,l=c,c=r,n=i),i=0;n;)i=(c[--n]=c[n]+l[n]+i)/C|0,c[n]=C===c[n]?0:c[n]%C;return i&&(c.unshift(i),++u),P(e,c,u)},I.precision=I.sd=function(e){var t,n,r=this,o=r.c;if(null!=e&&e!==!!e&&1!==e&&0!==e&&(z&&M(13,"argument"+_,e),e!=!!e&&(e=null)),!o)return null;if(n=o.length-1,t=n*T+1,n=o[n]){for(;n%10==0;n/=10,t--);for(n=o[0];n>=10;n/=10,t++);}return e&&r.e+1>t&&(t=r.e+1),t},I.round=function(e,n){var r=new t(this);return(null==e||V(e,0,A,15))&&N(r,~~e+this.e+1,null!=n&&V(n,0,8,15,w)?0|n:B),r},I.shift=function(e){var n=this;return V(e,-O,O,16,"argument")?n.times("1e"+h(e)):new t(n.c&&n.c[0]&&(e<-O||e>O)?n.s*(e<0?0:1/0):n)},I.squareRoot=I.sqrt=function(){var e,n,r,o,i,u=this,c=u.c,l=u.s,f=u.e,p=j+4,d=new t("0.5");if(1!==l||!c||!c[0])return new t(!l||l<0&&(!c||c[0])?NaN:c?u:1/0);if(l=Math.sqrt(+u),0==l||l==1/0?(n=s(c),(n.length+f)%2==0&&(n+="0"),l=Math.sqrt(n),f=a((f+1)/2)-(f<0||f%2),l==1/0?n="1e"+f:(n=l.toExponential(),n=n.slice(0,n.indexOf("e")+1)+f),r=new t(n)):r=new t(l+""),r.c[0])for(f=r.e,l=f+p,l<3&&(l=0);;)if(i=r,r=d.times(i.plus(L(u,i,p,1))),s(i.c).slice(0,l)===(n=s(r.c)).slice(0,l)){if(r.e=0;){for(r=0,h=w[i]%y,v=w[i]/y|0,u=l,s=i+u;s>i;)f=_[--u]%y,p=_[u]/y|0,c=v*f+p*h,f=h*f+c%y*y+m[s]+r,r=(f/g|0)+(c/y|0)+v*p,m[s--]=f%g;m[s]=r}return r?++o:m.shift(),P(e,m,o)},I.toDigits=function(e,n){var r=new t(this);return e=null!=e&&V(e,1,A,18,"precision")?0|e:null,n=null!=n&&V(n,0,8,18,w)?0|n:B,e?N(r,e,n):r},I.toExponential=function(e,t){return r(this,null!=e&&V(e,0,A,19)?1+~~e:null,t,19)},I.toFixed=function(e,t){return r(this,null!=e&&V(e,0,A,20)?~~e+this.e+1:null,t,20)},I.toFormat=function(e,t){var n=r(this,null!=e&&V(e,0,A,21)?~~e+this.e+1:null,t,21);if(this.c){var o,i=n.split("."),a=+Y.groupSize,s=+Y.secondaryGroupSize,u=Y.groupSeparator,c=i[0],l=i[1],f=this.s<0,p=f?c.slice(1):c,d=p.length;if(s&&(o=a,a=s,s=o,d-=o),a>0&&d>0){for(o=d%a||a,c=p.substr(0,o);o0&&(c+=u+p.slice(o)),f&&(c="-"+c)}n=l?c+Y.decimalSeparator+((s=+Y.fractionGroupSize)?l.replace(new RegExp("\\d{"+s+"}\\B","g"),"$&"+Y.fractionGroupSeparator):l):c}return n},I.toFraction=function(e){var n,r,o,i,a,u,c,l,f,p=z,d=this,h=d.c,v=new t(D),m=r=new t(D),g=c=new t(D);if(null!=e&&(z=!1,u=new t(e),z=p,(p=u.isInt())&&!u.lt(D)||(z&&M(22,"max denominator "+(p?"out of range":"not an integer"),e),e=!p&&u.c&&N(u,u.e+1,1).gte(D)?u:null)),!h)return d.toString();for(f=s(h),i=v.e=f.length-d.e-1,v.c[0]=S[(a=i%T)<0?T+a:a],e=!e||u.cmp(v)>0?i>0?v:m:u,a=W,W=1/0,u=new t(f),c.c[0]=0;l=L(u,v,0,1),o=r.plus(l.times(g)),1!=o.cmp(e);)r=g,g=o,m=c.plus(l.times(o=m)),c=o,v=u.minus(l.times(o=v)),u=o;return o=L(e.minus(r),g,0,1),c=c.plus(o.times(m)),r=r.plus(o.times(g)),c.s=m.s=d.s,i*=2,n=L(m,g,i,B).minus(d).abs().cmp(L(c,r,i,B).minus(d).abs())<1?[m.toString(),g.toString()]:[c.toString(),r.toString()],W=a,n},I.toNumber=function(){return+this},I.toPower=I.pow=function(e,n){var r,o,i,a=b(e<0?-e:+e),s=this;if(null!=n&&(R=23,n=new t(n)),!V(e,-O,O,23,"exponent")&&(!isFinite(e)||a>O&&(e/=0)||parseFloat(e)!=e&&!(e=NaN))||0==e)return r=Math.pow(+s,e),new t(n?r%n:r);for(n?e>1&&s.gt(D)&&s.isInt()&&n.gt(D)&&n.isInt()?s=s.mod(n):(i=n,n=null):K&&(r=y(K/T+2)),o=new t(D);;){if(a%2){if(o=o.times(s),!o.c)break;r?o.c.length>r&&(o.c.length=r):n&&(o=o.mod(n))}if(!(a=b(a/2)))break;s=s.times(s),r?s.c&&s.c.length>r&&(s.c.length=r):n&&(s=s.mod(n))}return n?o:(e<0&&(o=D.div(o)),i?o.mod(i):r?N(o,K,B):o)},I.toPrecision=function(e,t){return r(this,null!=e&&V(e,1,A,24,"precision")?0|e:null,t,24)},I.toString=function(e){var t,r=this,o=r.s,i=r.e;return null===i?o?(t="Infinity",o<0&&(t="-"+t)):t="NaN":(t=s(r.c),t=null!=e&&V(e,2,64,25,"base")?n(d(t,i),0|e,10,o):i<=F||i>=U?p(t,i):d(t,i),o<0&&r.c[0]&&(t="-"+t)),t},I.truncated=I.trunc=function(){return N(new t(this),this.e+1,1)},I.valueOf=I.toJSON=function(){var e,t=this,n=t.e;return null===n?t.toString():(e=s(t.c),e=n<=F||n>=U?p(e,n):d(e,n),t.s<0?"-"+e:e)},null!=e&&t.config(e),t}function a(e){var t=0|e;return e>0||e===t?t:t-1}function s(e){for(var t,n,r=1,o=e.length,i=e[0]+"";rc^n?1:-1;for(s=(u=o.length)<(c=i.length)?u:c,a=0;ai[a]^n?1:-1;return u==c?0:u>c^n?1:-1}function c(e,t,n){return(e=h(e))>=t&&e<=n}function l(e){return"[object Array]"==Object.prototype.toString.call(e)}function f(e,t,n){for(var r,o,i=[0],a=0,s=e.length;an-1&&(null==i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}function p(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function d(e,t){var n,r;if(t<0){for(r="0.";++t;r+="0");e=r+e}else if(n=e.length,++t>n){for(r="0",t-=n;--t;r+="0");e+=r}else t0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},e);return Object.keys(t).forEach(function(e){switch(e){case"to":t[e]&&(t.to=r(t[e]));break;case"from":t[e]=r(t[e]);break;case"condition":t[e]=d(t[e]);break;case"gas":case"gasPrice":t[e]=p(new _(t[e]).round());break;case"value":case"nonce":t[e]=p(t[e]);break;case"data":t[e]=a(t[e])}}),t}function v(e){return e&&Object.keys(e).forEach(function(t){switch(t){case"fromAddress":case"toAddress":e[t]=[].concat(e[t]).map(function(e){return r(e)});break;case"toBlock":case"fromBlock":e[t]=i(e[t])}}),e}function m(e){return T(e)?[e]:e}function g(e){return e&&"hard"===e.type?"hard":"soft"}function y(e){var t=e&&e.hash?e.hash:e,n=g(e);return{hash:l(t),type:n}}function b(e){return e?(x(e)||(e=[e]),e.map(function(e){return{index:f(e&&e.index?e.index:e),type:g(e)}})):[]}var _=n(22),w=n(40),x=w.isArray,k=w.isHex,C=w.isInstanceOf,T=w.isString,O=n(100),S=O.padLeft,E=O.toHex;e.exports={inAddress:r,inAddresses:o,inBlockNumber:i,inData:a,inHash:s,inTopics:u,inFilter:c,inHex:l,inNumber10:f,inNumber16:p,inOptionsCondition:d,inOptions:h,inTraceFilter:v,inTraceType:m,inDeriveHash:y,inDeriveIndex:b}},function(e,t,n){e.exports=!n(56)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){!function(t,r){e.exports=r(n(39),n(2),n(50))}(0,function(e,t,n){return function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){"use strict";function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function o(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t.PropTypes=t.propTypes=t.inject=t.Provider=t.useStaticRendering=t.trackComponents=t.componentByNodeRegistery=t.renderReporter=t.Observer=t.observer=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e},a=n(1);Object.defineProperty(t,"observer",{enumerable:!0,get:function(){return a.observer}}),Object.defineProperty(t,"Observer",{enumerable:!0,get:function(){return a.Observer}}),Object.defineProperty(t,"renderReporter",{enumerable:!0,get:function(){return a.renderReporter}}),Object.defineProperty(t,"componentByNodeRegistery",{enumerable:!0,get:function(){return a.componentByNodeRegistery}}),Object.defineProperty(t,"trackComponents",{enumerable:!0,get:function(){return a.trackComponents}}),Object.defineProperty(t,"useStaticRendering",{enumerable:!0,get:function(){return a.useStaticRendering}});var s=n(8);Object.defineProperty(t,"Provider",{enumerable:!0,get:function(){return o(s).default}});var u=n(6);Object.defineProperty(t,"inject",{enumerable:!0,get:function(){return o(u).default}});var c=n(2),l=r(c),f=n(3),p=o(f),d=n(4),h=(n(9),n(10)),v=r(h),m=void 0;if(m="mobx-react",!l)throw new Error(m+" requires the MobX package");if(!p.default)throw new Error(m+" requires React to be available");"function"==typeof d.unstable_batchedUpdates&&l.extras.setReactionScheduler(d.unstable_batchedUpdates),t.propTypes=v,t.PropTypes=v,t.default=e.exports,"object"===("undefined"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__?"undefined":i(__MOBX_DEVTOOLS_GLOBAL_HOOK__))&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobxReact(e.exports,l)},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){return y.default?y.default.findDOMNode(e):null}function i(e){var t=o(e);t&&O&&O.set(t,e),S.emit({event:"render",renderTime:e.__$mobRenderEnd-e.__$mobRenderStart,totalTime:Date.now()-e.__$mobRenderStart,component:e,node:t})}function a(){if("undefined"==typeof WeakMap)throw new Error("[mobx-react] tracking components is not supported in this browser.");k||(k=!0)}function s(e){C=e}function u(e,t){var n=!(arguments.length<=2||void 0===arguments[2])&&arguments[2],r=e[t],o=E[t];e[t]=r?!0===n?function(){o.apply(this,arguments),r.apply(this,arguments)}:function(){r.apply(this,arguments),o.apply(this,arguments)}:o}function c(e,t){if(null==e||null==t||"object"!==(void 0===e?"undefined":p(e))||"object"!==(void 0===t?"undefined":p(t)))return e!==t;var n=Object.keys(e);if(n.length!==Object.keys(t).length)return!0;for(var r=void 0,o=n.length-1;r=n[o];o--)if(t[r]!==e[r])return!0;return!1}function l(e,t){if("string"==typeof e)throw new Error("Store names should be provided as array");if(Array.isArray(e))return T||(T=!0,console.warn('Mobx observer: Using observer to inject stores is deprecated since 4.0. Use `@inject("store1", "store2") @observer ComponentClass` or `inject("store1", "store2")(observer(componentClass))` instead of `@observer(["store1", "store2"]) ComponentClass`')),t?x.default.apply(null,e)(l(t)):function(t){return l(e,t)};var n=e;if(!0===n.isMobxInjector&&console.warn("Mobx observer: You are trying to use 'observer' on a component that already has 'inject'. Please apply 'observer' before applying 'inject'"),!("function"!=typeof n||n.prototype&&n.prototype.render||n.isReactClass||m.default.Component.isPrototypeOf(n)))return l(m.default.createClass({displayName:n.displayName||n.name,propTypes:n.propTypes,contextTypes:n.contextTypes,getDefaultProps:function(){return n.defaultProps},render:function(){return n.call(this,this.props,this.context)}}));if(!n)throw new Error("Please pass a valid component to 'observer'");return f(n.prototype||n),n.isMobXReactObserver=!0,n}function f(e){u(e,"componentWillMount",!0),["componentDidMount","componentWillUnmount","componentDidUpdate"].forEach(function(t){u(e,t)}),e.shouldComponentUpdate||(e.shouldComponentUpdate=E.shouldComponentUpdate)}Object.defineProperty(t,"__esModule",{value:!0}),t.Observer=t.renderReporter=t.componentByNodeRegistery=void 0;var p="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol?"symbol":typeof e};t.trackComponents=a,t.useStaticRendering=s,t.observer=l;var d=n(2),h=r(d),v=n(3),m=r(v),g=n(4),y=r(g),b=n(5),_=r(b),w=n(6),x=r(w),k=!1,C=!1,T=!1,O=t.componentByNodeRegistery="undefined"!=typeof WeakMap?new WeakMap:void 0,S=t.renderReporter=new _.default,E={componentWillMount:function(){function e(e){var t=this[e],n=new h.default.Atom("reactive "+e);Object.defineProperty(this,e,{configurable:!0,enumerable:!0,get:function(){return n.reportObserved(),t},set:function(e){!i&&c(t,e)?(t=e,o=!0,n.reportChanged(),o=!1):t=e}})}var t=this;if(!0!==C){var n=this.displayName||this.name||this.constructor&&(this.constructor.displayName||this.constructor.name)||"",r=this._reactInternalInstance&&this._reactInternalInstance._rootNodeID,o=!1,i=!1;e.call(this,"props"),e.call(this,"state");var a=this.render.bind(this),s=null,u=!1,l=function(){return s=new h.default.Reaction(n+"#"+r+".render()",function(){if(!u&&(u=!0,"function"==typeof t.componentWillReact&&t.componentWillReact(),!0!==t.__$mobxIsUnmounted)){var e=!0;try{i=!0,o||m.default.Component.prototype.forceUpdate.call(t),e=!1}finally{i=!1,e&&s.dispose()}}}),f.$mobx=s,t.render=f,f()},f=function(){u=!1;var e=void 0;return s.track(function(){k&&(t.__$mobRenderStart=Date.now()),e=h.default.extras.allowStateChanges(!1,a),k&&(t.__$mobRenderEnd=Date.now())}),e};this.render=l}},componentWillUnmount:function(){if(!0!==C&&(this.render.$mobx&&this.render.$mobx.dispose(),this.__$mobxIsUnmounted=!0,k)){var e=o(this);e&&O&&O.delete(e),S.emit({event:"destroy",component:this,node:e})}},componentDidMount:function(){k&&i(this)},componentDidUpdate:function(){k&&i(this)},shouldComponentUpdate:function(e,t){return C&&console.warn("[mobx-react] It seems that a re-rendering of a React component is triggered while in static (server-side) mode. Please make sure components are rendered only once server-side."),this.state!==t||c(this.props,e)}};(t.Observer=l(function(e){return(0,e.children)()})).propTypes={children:m.default.PropTypes.func.isRequired}},function(t,n){t.exports=e},function(e,n){e.exports=t},function(e,t){e.exports=n},function(e,t){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n6?s-6:0),c=6;c>",a=a||r,null==n[r]){if(t){var s=null===n[r]?"null":"undefined";return new Error("The "+i+" `"+a+"` is marked as required in `"+o+"`, but its value is `"+s+"`.")}return null}return e.apply(void 0,[n,r,o,i,a].concat(u))})}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function o(e,t){return"symbol"===e||("Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol)}function i(e){var t=void 0===e?"undefined":c(e);return Array.isArray(e)?"array":e instanceof RegExp?"object":o(t,e)?"symbol":t}function a(e){var t=i(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function s(e,t){return r(function(n,r,o,s,u){return(0,l.untracked)(function(){if(e&&i(n[r])===t.toLowerCase())return null;var s=void 0;switch(t){case"Array":s=l.isObservableArray;break;case"Object":s=l.isObservableObject;break;case"Map":s=l.isObservableMap;break;default:throw new Error("Unexpected mobxType: "+t)}var c=n[r];if(!s(c)){var f=a(c),p=e?" or javascript `"+t.toLowerCase()+"`":"";return new Error("Invalid prop `"+u+"` of type `"+f+"` supplied to `"+o+"`, expected `mobx.Observable"+t+"`"+p+".")}return null})})}function u(e,t){return r(function(n,r,o,i,a){for(var u=arguments.length,c=Array(u>5?u-5:0),f=5;f",e):2===arguments.length&&"function"==typeof t?F(e,t):1===arguments.length&&"string"==typeof e?o(e):o(t).apply(null,arguments)}function o(e){return function(t,n,r){return r&&"function"==typeof r.value?(r.value=F(e,r.value),r.enumerable=!1,r.configurable=!0,r):Dt(e).apply(this,arguments)}}function i(e,t,n){var r="string"==typeof e?e:e.name||"",o="function"==typeof e?e:t,i="function"==typeof e?t:n;return gt("function"==typeof o,"`runInAction` expects a function"),gt(0===o.length,"`runInAction` expects a function without arguments"),gt("string"==typeof r&&r.length>0,"actions should have valid names, got: '"+r+"'"),U(r,o,i,void 0)}function a(e){return"function"==typeof e&&!0===e.isMobxAction}function s(e,t,n){function r(){i(u)}var o,i,s;"string"==typeof e?(o=e,i=t,s=n):"function"==typeof e&&(o=e.name||"Autorun@"+mt(),i=e,s=t),ze(i,"autorun methods cannot have modifiers"),gt("function"==typeof i,"autorun expects a function"),gt(!1===a(i),"Warning: attempted to pass an action to autorun. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action."),s&&(i=i.bind(s));var u=new $t(o,function(){this.track(r)});return u.schedule(),u.getDisposer()}function u(e,t,n,r){var o,i,a,u;return"string"==typeof e?(o=e,i=t,a=n,u=r):"function"==typeof e&&(o="When@"+mt(),i=e,a=t,u=n),s(o,function(e){if(i.call(u)){e.dispose();var t=ee();a.call(u),te(t)}})}function c(e,t,n){return yt("`autorunUntil` is deprecated, please use `when`."),u.apply(null,arguments)}function l(e,t,n,r){function o(){s(f)}var i,s,u,c;"string"==typeof e?(i=e,s=t,u=n,c=r):"function"==typeof e&&(i=e.name||"AutorunAsync@"+mt(),s=e,u=t,c=n),gt(!1===a(s),"Warning: attempted to pass an action to autorunAsync. Actions are untracked and will not trigger on state changes. Use `reaction` or wrap only your state modification code in an action."),void 0===u&&(u=1),c&&(s=s.bind(c));var l=!1,f=new $t(i,function(){l||(l=!0,setTimeout(function(){l=!1,f.isDisposed||f.track(o)},u))});return f.schedule(),f.getDisposer()}function f(e,t,n,o,i,a){function s(){if(!w.isDisposed){var e=!1;w.track(function(){var t=m(w);e=Tt(g,_,t),_=t}),y&&f&&l(_,w),y||!0!==e||l(_,w),y&&(y=!1)}}var u,c,l,f,p,d;"string"==typeof e?(u=e,c=t,l=n,f=o,p=i,d=a):(u=e.name||t.name||"Reaction@"+mt(),c=e,l=t,f=n,p=o,d=i),void 0===f&&(f=!1),void 0===p&&(p=0);var h=Fe(c,en.Reference),v=h[0],m=h[1],g=v===en.Structure;d&&(m=m.bind(d),l=r(u,l.bind(d)));var y=!0,b=!1,_=void 0,w=new $t(u,function(){p<1?s():b||(b=!0,setTimeout(function(){b=!1,s()},p))});return w.schedule(),w.getDisposer()}function p(e,t,n,r){return("function"==typeof e||He(e))&&arguments.length<3?"function"==typeof t?d(e,t,void 0):d(e,void 0,t):jt.apply(null,arguments)}function d(e,t,n){var r=Fe(e,en.Recursive),o=r[0],i=r[1];return new Vt(i,n,o===en.Structure,i.name,t)}function h(e,t){gt("function"==typeof e&&1===e.length,"createTransformer expects a function that accepts one argument");var n={},r=Yt.resetId,o=function(r){function o(t,n){r.call(this,function(){return e(n)},null,!1,"Transformer-"+e.name+"-"+t,void 0),this.sourceIdentifier=t,this.sourceObject=n}return It(o,r),o.prototype.onBecomeUnobserved=function(){var e=this.value;r.prototype.onBecomeUnobserved.call(this),delete n[this.sourceIdentifier],t&&t(e,this.sourceObject)},o}(Vt);return function(e){r!==Yt.resetId&&(n={},r=Yt.resetId);var t=v(e),i=n[t];return i?i.get():(i=n[t]=new o(t,e),i.get())}}function v(e){if(null===e||"object"!=typeof e)throw new Error("[mobx] transform expected some kind of object, got: "+e);var t=e.$transformId;return void 0===t&&(t=mt(),St(e,"$transformId",t)),t}function m(e,t){return K()||console.warn("[mobx.expr] 'expr' should only be used inside other reactive functions."),p(e,t).get()}function g(e){for(var t=[],n=1;n=2,"extendObservable expected 2 or more arguments"),gt("object"==typeof e,"extendObservable expects an object as first argument"),gt(!fn(e),"extendObservable should not be used on maps, use map.merge instead"),t.forEach(function(t){gt("object"==typeof t,"all arguments of extendObservable should be objects"),gt(!S(t),"extending an object with another observable (object) is not supported. Please construct an explicit propertymap, using `toJS` if need. See issue #540"),y(e,t,en.Recursive,null)}),e}function y(e,t,n,r){var o=Ze(e,r,n);for(var i in t)if(Ot(t,i)){if(e===t&&!At(e,i))continue;var a=Object.getOwnPropertyDescriptor(t,i);Qe(o,i,a)}return e}function b(e,t){return _(at(e,t))}function _(e){var t={name:e.name};return e.observing&&e.observing.length>0&&(t.dependencies=_t(e.observing).map(_)),t}function w(e,t){return x(at(e,t))}function x(e){var t={name:e.name};return oe(e)&&(t.observers=ie(e).map(x)),t}function k(e,t,n){return"function"==typeof n?T(e,t,n):C(e,t)}function C(e,t){return kt(e)&&!it(e)?(yt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),st(A(e)).intercept(t)):st(e).intercept(t)}function T(e,t,n){return kt(e)&&!it(e)?(yt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),g(e,{property:e[t]}),T(e,t,n)):st(e,t).intercept(n)}function O(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(!1===it(e))return!1;var n=at(e,t);return qt(n)}return qt(e)}function S(e,t){if(null===e||void 0===e)return!1;if(void 0!==t){if(Xe(e)||fn(e))throw new Error("[mobx.isObservable] isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");if(it(e)){var n=e.$mobx;return n.values&&!!n.values[t]}return!1}return!!e.$mobx||zt(e)||Zt(e)||qt(e)}function E(e,t,n){return gt(arguments.length>=2&&arguments.length<=3,"Illegal decorator config",t),Pt(e,t),gt(!n||!n.get,"@observable can not be used on getters, use @computed instead"),Bt.apply(null,arguments)}function A(e,t){if(void 0===e&&(e=void 0),"string"==typeof arguments[1])return E.apply(null,arguments);if(gt(arguments.length<3,"observable expects zero, one or two arguments"),S(e))return e;var n=Fe(e,en.Recursive),r=n[0],o=n[1];switch(r===en.Reference?Ft.Reference:P(o)){case Ft.Array:case Ft.PlainObject:return We(o,r);case Ft.Reference:case Ft.ComplexObject:return new gn(o,r);case Ft.ComplexFunction:throw new Error("[mobx.observable] To be able to make a function reactive it should not have arguments. If you need an observable reference to a function, use `observable(asReference(f))`");case Ft.ViewFunction:return yt("Use `computed(expr)` instead of `observable(expr)`"),p(e,t)}gt(!1,"Illegal State")}function P(e){return null===e||void 0===e?Ft.Reference:"function"==typeof e?e.length?Ft.ComplexFunction:Ft.ViewFunction:Rt(e)?Ft.Array:"object"==typeof e?kt(e)?Ft.PlainObject:Ft.ComplexObject:Ft.Reference}function M(e,t,n,r){return"function"==typeof n?L(e,t,n,r):N(e,t,n)}function N(e,t,n){return kt(e)&&!it(e)?(yt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),st(A(e)).observe(t,n)):st(e).observe(t,n)}function L(e,t,n,r){return kt(e)&&!it(e)?(yt("Passing plain objects to intercept / observe is deprecated and will be removed in 3.0"),g(e,{property:e[t]}),L(e,t,n,r)):st(e,t).observe(n,r)}function R(e,t,n){function r(r){return t&&n.push([e,r]),r}if(void 0===t&&(t=!0),void 0===n&&(n=null),S(e)){if(t&&null===n&&(n=[]),t&&null!==e&&"object"==typeof e)for(var o=0,i=n.length;o0,"actions should have valid names, got: '"+e+"'");var n=function(){return U(e,t,this,arguments)};return n.isMobxAction=!0,n}function U(e,t,n,r){gt(!qt(Yt.trackingDerivation),"Computed values or transformers should not invoke actions or trigger other side effects");var o,i=ye();if(i){o=Date.now();var a=r&&r.length||0,s=new Array(a);if(a>0)for(var u=0;u0}function ie(e){return e.observers}function ae(e,t){var n=e.observers.length;n&&(e.observersIndexes[t.__mapid]=n),e.observers[n]=t,e.lowestObserverState>t.dependenciesState&&(e.lowestObserverState=t.dependenciesState)}function se(e,t){if(1===e.observers.length)e.observers.length=0,ue(e);else{var n=e.observers,r=e.observersIndexes,o=n.pop();if(o!==t){var i=r[t.__mapid]||0;i?r[o.__mapid]=i:delete r[o.__mapid],n[i]=o}delete r[t.__mapid]}}function ue(e){e.isPendingUnobservation||(e.isPendingUnobservation=!0,Yt.pendingUnobservations.push(e))}function ce(){Yt.inBatch++}function le(){if(1===Yt.inBatch){for(var e=Yt.pendingUnobservations,t=0;t0||Jt(me)}function me(){Yt.isRunningReactions=!0;for(var e=Yt.pendingReactions,t=0;e.length>0;){if(++t===Xt)throw re(),new Error("Reaction doesn't converge to a stable state after "+Xt+" iterations. Probably there is a cycle in the reactive function: "+e[0]);for(var n=e.splice(0),r=0,o=n.length;r0}function Ee(e,t){var n=e.interceptors||(e.interceptors=[]);return n.push(t),bt(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Ae(e,t){var n=ee();try{for(var r=e.interceptors,o=0,i=r.length;o0}function Me(e,t){var n=e.changeListeners||(e.changeListeners=[]);return n.push(t),bt(function(){var e=n.indexOf(t);-1!==e&&n.splice(e,1)})}function Ne(e,t){var n=ee(),r=e.changeListeners;if(r){r=r.slice();for(var o=0,i=r.length;o=this.length,value:tt?" (... and "+(e.length-t)+"more)":""):""}function xt(e){return null!==e&&"object"==typeof e}function kt(e){if(null===e||"object"!=typeof e)return!1;var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}function Ct(){for(var e=arguments[0],t=1,n=arguments.length;t=0;r--)if(!Nt(e[r],t[r]))return!1;return!0}if("object"==typeof e&&"object"==typeof t){if(null===e||null===t)return!1;if(Mt(e).length!==Mt(t).length)return!1;for(var o in e){if(!(o in t))return!1;if(!Nt(e[o],t[o]))return!1}return!0}return e===t}function Lt(e,t){var n="isMobX"+e;return t.prototype[n]=!0,function(e){return xt(e)&&!0===e[n]}}function Rt(e){return Array.isArray(e)||Xe(e)}var It=this&&this.__extends||function(e,t){function n(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};t.extras={allowStateChanges:z,getAtom:at,getDebugName:ut,getDependencyTree:b,getObserverTree:w,isComputingDerivation:K,isSpyEnabled:ye,resetGlobalState:re,spyReport:be,spyReportEnd:we,spyReportStart:_e,trackTransitions:ke,setReactionScheduler:ge},t._={getAdministration:st,resetGlobalState:re},"object"==typeof __MOBX_DEVTOOLS_GLOBAL_HOOK__&&__MOBX_DEVTOOLS_GLOBAL_HOOK__.injectMobx(e.exports);var Dt=ct(function(e,t,n,o,i){St(e,t,r(o&&1===o.length?o[0]:n.name||t||"",n))},function(e){return this[e]},function(){gt(!1,"It is not allowed to assign new values to @action fields")},!1,!0);t.action=r,t.runInAction=i,t.isAction=a,t.autorun=s,t.when=u,t.autorunUntil=c,t.autorunAsync=l,t.reaction=f;var jt=ct(function(e,t,n,r,o){gt(void 0!==o,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'. It looks like it was used on a property.");var i=o.get,a=o.set;gt("function"==typeof i,"@computed can only be used on getter functions, like: '@computed get myProps() { return ...; }'");var s=!1;r&&1===r.length&&!0===r[0].asStructure&&(s=!0),et(Ze(e,void 0,en.Recursive),t,s?De(i):i,!1,a)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){this.$mobx.values[e].set(t)},!1,!0);t.computed=p,t.createTransformer=h,t.expr=m,t.extendObservable=g,t.intercept=k,t.isComputed=O,t.isObservable=S;var Bt=ct(function(e,t,n){var r=V(!0);"function"==typeof n&&(n=Ie(n)),et(Ze(e,void 0,en.Recursive),t,n,!0,void 0),q(r)},function(e){var t=this.$mobx.values[e];if(void 0!==t)return t.get()},function(e,t){rt(this,e,t)},!0,!1);t.observable=A;var Ft;!function(e){e[e.Reference=0]="Reference",e[e.PlainObject=1]="PlainObject",e[e.ComplexObject=2]="ComplexObject",e[e.Array=3]="Array",e[e.ViewFunction=4]="ViewFunction",e[e.ComplexFunction=5]="ComplexFunction"}(Ft||(Ft={})),t.observe=M,t.toJS=R,t.toJSlegacy=I,t.toJSON=D,t.whyRun=B,t.useStrict=H,t.isStrictModeEnabled=W;var Ut=function(){function e(e){void 0===e&&(e="Atom@"+mt()),this.name=e,this.isPendingUnobservation=!0,this.observers=[],this.observersIndexes={},this.diffValue=0,this.lastAccessedBy=0,this.lowestObserverState=Wt.NOT_TRACKING}return e.prototype.onBecomeUnobserved=function(){},e.prototype.reportObserved=function(){fe(this)},e.prototype.reportChanged=function(){Te("propagatingAtomChange",null,!1),pe(this),Oe(!1)},e.prototype.toString=function(){return this.name},e}();t.BaseAtom=Ut;var Ht=function(e){function t(t,n,r){void 0===t&&(t="Atom@"+mt()),void 0===n&&(n=kn),void 0===r&&(r=kn),e.call(this,t),this.name=t,this.onBecomeObservedHandler=n,this.onBecomeUnobservedHandler=r,this.isPendingUnobservation=!1,this.isBeingTracked=!1}return It(t,e),t.prototype.reportObserved=function(){return ce(),e.prototype.reportObserved.call(this),this.isBeingTracked||(this.isBeingTracked=!0,this.onBecomeObservedHandler()),le(),!!Yt.trackingDerivation},t.prototype.onBecomeUnobserved=function(){this.isBeingTracked=!1,this.onBecomeUnobservedHandler()},t}(Ut);t.Atom=Ht;var Wt,zt=Lt("Atom",Ut),Vt=function(){function e(e,t,n,r,o){this.derivation=e,this.scope=t,this.compareStructural=n,this.dependenciesState=Wt.NOT_TRACKING,this.observing=[],this.newObserving=null,this.isPendingUnobservation=!1,this.observers=[],this.observersIndexes={},this.diffValue=0,this.runId=0,this.lastAccessedBy=0,this.lowestObserverState=Wt.UP_TO_DATE,this.unboundDepsCount=0,this.__mapid="#"+mt(),this.value=void 0,this.isComputing=!1,this.isRunningSetter=!1,this.name=r||"ComputedValue@"+mt(),o&&(this.setter=F(r+"-setter",o))}return e.prototype.peek=function(){this.isComputing=!0;var e=V(!1),t=this.derivation.call(this.scope);return q(e),this.isComputing=!1,t},e.prototype.peekUntracked=function(){var e=!0;try{var t=this.peek();return e=!1,t}finally{e&&X(this)}},e.prototype.onBecomeStale=function(){he(this)},e.prototype.onBecomeUnobserved=function(){gt(this.dependenciesState!==Wt.NOT_TRACKING,"INTERNAL ERROR only onBecomeUnobserved shouldn't be called twice in a row"),Z(this),this.value=void 0},e.prototype.get=function(){gt(!this.isComputing,"Cycle detected in computation "+this.name,this.derivation),ce(),1===Yt.inBatch?G(this)&&(this.value=this.peekUntracked()):(fe(this),G(this)&&this.trackAndCompute()&&de(this));var e=this.value;return le(),e},e.prototype.recoverFromError=function(){this.isComputing=!1},e.prototype.set=function(e){if(this.setter){gt(!this.isRunningSetter,"The setter of computed value '"+this.name+"' is trying to update itself. Did you intend to update an _observable_ value, instead of the computed property?"),this.isRunningSetter=!0;try{this.setter.call(this.scope,e)}finally{this.isRunningSetter=!1}}else gt(!1,"[ComputedValue '"+this.name+"'] It is not possible to assign a new value to a computed value.")},e.prototype.trackAndCompute=function(){ye()&&be({object:this,type:"compute",fn:this.derivation,target:this.scope});var e=this.value,t=this.value=$(this,this.peek);return Tt(this.compareStructural,t,e)},e.prototype.observe=function(e,t){var n=this,r=!0,o=void 0;return s(function(){var i=n.get();if(!r||t){var a=ee();e(i,o),te(a)}r=!1,o=i})},e.prototype.toJSON=function(){return this.get()},e.prototype.toString=function(){return this.name+"["+this.derivation.toString()+"]"},e.prototype.whyRun=function(){var e=Boolean(Yt.trackingDerivation),t=_t(this.isComputing?this.newObserving:this.observing).map(function(e){return e.name}),n=_t(ie(this).map(function(e){return e.name}));return"\nWhyRun? computation '"+this.name+"':\n * Running because: "+(e?"[active] the value of this computation is needed by a reaction":this.isComputing?"[get] The value of this computed was requested outside a reaction":"[idle] not running at the moment")+"\n"+(this.dependenciesState===Wt.NOT_TRACKING?" * This computation is suspended (not in use by any reaction) and won't run automatically.\n\tDidn't expect this computation to be suspended at this point?\n\t 1. Make sure this computation is used by a reaction (reaction, autorun, observer).\n\t 2. Check whether you are using this computation synchronously (in the same stack as they reaction that needs it).\n":" * This computation will re-run if any of the following observables changes:\n "+wt(t)+"\n "+(this.isComputing&&e?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n * If the outcome of this computation changes, the following observers will be re-run:\n "+wt(n)+"\n")},e}(),qt=Lt("ComputedValue",Vt);!function(e){e[e.NOT_TRACKING=-1]="NOT_TRACKING",e[e.UP_TO_DATE=0]="UP_TO_DATE",e[e.POSSIBLY_STALE=1]="POSSIBLY_STALE",e[e.STALE=2]="STALE"}(Wt||(Wt={})),t.IDerivationState=Wt,t.untracked=Q;var Gt=["mobxGuid","resetId","spyListeners","strictMode","runId"],Kt=function(){function e(){this.version=4,this.trackingDerivation=null,this.runId=0,this.mobxGuid=0,this.inTransaction=0,this.isRunningReactions=!1,this.inBatch=0,this.pendingUnobservations=[],this.pendingReactions=[],this.allowStateChanges=!0,this.strictMode=!1,this.resetId=0,this.spyListeners=[]}return e}(),Yt=function(){var e=new Kt;if(n.__mobservableTrackingStack||n.__mobservableViewStack)throw new Error("[mobx] An incompatible version of mobservable is already loaded.");if(n.__mobxGlobal&&n.__mobxGlobal.version!==e.version)throw new Error("[mobx] An incompatible version of mobx is already loaded.");return n.__mobxGlobal?n.__mobxGlobal:n.__mobxGlobal=e}(),$t=function(){function e(e,t){void 0===e&&(e="Reaction@"+mt()),this.name=e,this.onInvalidate=t,this.observing=[],this.newObserving=[],this.dependenciesState=Wt.NOT_TRACKING,this.diffValue=0,this.runId=0,this.unboundDepsCount=0,this.__mapid="#"+mt(),this.isDisposed=!1,this._isScheduled=!1,this._isTrackPending=!1,this._isRunning=!1}return e.prototype.onBecomeStale=function(){this.schedule()},e.prototype.schedule=function(){this._isScheduled||(this._isScheduled=!0,Yt.pendingReactions.push(this),ce(),ve(),le())},e.prototype.isScheduled=function(){return this._isScheduled},e.prototype.runReaction=function(){this.isDisposed||(this._isScheduled=!1,G(this)&&(this._isTrackPending=!0,this.onInvalidate(),this._isTrackPending&&ye()&&be({object:this,type:"scheduled-reaction"})))},e.prototype.track=function(e){ce();var t,n=ye();n&&(t=Date.now(),_e({object:this,type:"reaction",fn:e})),this._isRunning=!0,$(this,e),this._isRunning=!1,this._isTrackPending=!1,this.isDisposed&&Z(this),n&&we({time:Date.now()-t}),le()},e.prototype.recoverFromError=function(){this._isRunning=!1,this._isTrackPending=!1},e.prototype.dispose=function(){this.isDisposed||(this.isDisposed=!0,this._isRunning||(ce(),Z(this),le()))},e.prototype.getDisposer=function(){var e=this.dispose.bind(this);return e.$mobx=this,e},e.prototype.toString=function(){return"Reaction["+this.name+"]"},e.prototype.whyRun=function(){var e=_t(this._isRunning?this.newObserving:this.observing).map(function(e){return e.name});return"\nWhyRun? reaction '"+this.name+"':\n * Status: ["+(this.isDisposed?"stopped":this._isRunning?"running":this.isScheduled()?"scheduled":"idle")+"]\n * This reaction will re-run if any of the following observables changes:\n "+wt(e)+"\n "+(this._isRunning?" (... or any observable accessed during the remainder of the current run)":"")+"\n\tMissing items in this list?\n\t 1. Check whether all used values are properly marked as observable (use isObservable to verify)\n\t 2. Make sure you didn't dereference values too early. MobX observes props, not primitives. E.g: use 'person.name' instead of 'name' in your computation.\n"},e}();t.Reaction=$t;var Xt=100,Jt=function(e){return e()},Zt=Lt("Reaction",$t),Qt={spyReportEnd:!0};t.spy=xe,t.transaction=Ce;var en;!function(e){e[e.Recursive=0]="Recursive",e[e.Reference=1]="Reference",e[e.Structure=2]="Structure",e[e.Flat=3]="Flat"}(en||(en={})),t.ValueMode=en,t.asReference=Ie,Ie.mobxModifier=en.Reference,t.asStructure=De,De.mobxModifier=en.Structure,t.asFlat=je,je.mobxModifier=en.Flat,t.asMap=Be;var tn=function(){var e=!1,t={};return Object.defineProperty(t,"0",{set:function(){e=!0}}),Object.create(t)[0]=1,!1===e}(),nn=0,rn=function(){function e(){}return e}();rn.prototype=[];var on=function(){function e(e,t,n,r){this.mode=t,this.array=n,this.owned=r,this.lastKnownLength=0,this.interceptors=null,this.changeListeners=null,this.atom=new Ut(e||"ObservableArray@"+mt())}return e.prototype.makeReactiveArrayItem=function(e){return ze(e,"Array values cannot have modifiers"),this.mode===en.Flat||this.mode===en.Reference?e:We(e,this.mode,this.atom.name+"[..]")},e.prototype.intercept=function(e){return Ee(this,e)},e.prototype.observe=function(e,t){return void 0===t&&(t=!1),t&&e({object:this.array,type:"splice",index:0,added:this.values.slice(),addedCount:this.values.length,removed:[],removedCount:0}),Me(this,e)},e.prototype.getArrayLength=function(){return this.atom.reportObserved(),this.values.length},e.prototype.setArrayLength=function(e){if("number"!=typeof e||e<0)throw new Error("[mobx.array] Out of range: "+e);var t=this.values.length;e!==t&&(e>t?this.spliceWithArray(t,0,new Array(e-t)):this.spliceWithArray(e,t-e))},e.prototype.updateArrayLength=function(e,t){if(e!==this.lastKnownLength)throw new Error("[mobx] Modification exception: the internal structure of an observable array was changed. Did you use peek() to change it?");this.lastKnownLength+=t,t>0&&e+t+1>nn&&Ke(e+t+1)},e.prototype.spliceWithArray=function(e,t,n){Y();var r=this.values.length;if(void 0===e?e=0:e>r?e=r:e<0&&(e=Math.max(0,r+e)),t=1===arguments.length?r-e:void 0===t||null===t?0:Math.max(0,Math.min(t,r-e)),void 0===n&&(n=[]),Se(this)){var o=Ae(this,{object:this.array,type:"splice",index:e,removedCount:t,added:n});if(!o)return wn;t=o.removedCount,n=o.added}n=n.map(this.makeReactiveArrayItem,this);var i=n.length-t;this.updateArrayLength(r,i);var a=(s=this.values).splice.apply(s,[e,t].concat(n));return 0===t&&0===n.length||this.notifyArraySplice(e,n,a),a;var s},e.prototype.notifyArrayChildUpdate=function(e,t,n){var r=!this.owned&&ye(),o=Pe(this),i=o||r?{object:this.array,type:"update",index:e,newValue:t,oldValue:n}:null;r&&_e(i),this.atom.reportChanged(),o&&Ne(this,i),r&&we()},e.prototype.notifyArraySplice=function(e,t,n){var r=!this.owned&&ye(),o=Pe(this),i=o||r?{object:this.array,type:"splice",index:e,removed:n,added:t,removedCount:n.length,addedCount:t.length}:null;r&&_e(i),this.atom.reportChanged(),o&&Ne(this,i),r&&we()},e}(),an=function(e){function t(t,n,r,o){void 0===o&&(o=!1),e.call(this);var i=new on(r,n,this,o);Et(this,"$mobx",i),t&&t.length?(i.updateArrayLength(0,t.length),i.values=t.map(i.makeReactiveArrayItem,i),i.notifyArraySplice(0,i.values.slice(),wn)):i.values=[],tn&&Object.defineProperty(i.array,"0",sn)}return It(t,e),t.prototype.intercept=function(e){return this.$mobx.intercept(e)},t.prototype.observe=function(e,t){return void 0===t&&(t=!1),this.$mobx.observe(e,t)},t.prototype.clear=function(){return this.splice(0)},t.prototype.concat=function(){for(var e=[],t=0;t-1&&(this.splice(t,1),!0)},t.prototype.toString=function(){return"[mobx.array] "+Array.prototype.toString.apply(this.$mobx.values,arguments)},t.prototype.toLocaleString=function(){return"[mobx.array] "+Array.prototype.toLocaleString.apply(this.$mobx.values,arguments)},t}(rn);vt(an.prototype,function(){return ht(this.slice())}),function(e,t){for(var n=0;n1){for(var h=Array(d),v=0;v1){for(var g=Array(m),y=0;y>>6-a%4*2;r[i>>>2]|=(s|u)<<24-i%4*8,i++}return o.create(r,i)}var n=e,r=n.lib,o=r.WordArray,i=n.enc;i.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var o=[],i=0;i>>2]>>>24-i%4*8&255,s=t[i+1>>>2]>>>24-(i+1)%4*8&255,u=t[i+2>>>2]>>>24-(i+2)%4*8&255,c=a<<16|s<<8|u,l=0;l<4&&i+.75*l>>6*(3-l)&63));var f=r.charAt(64);if(f)for(;o.length%4;)o.push(f);return o.join("")},parse:function(e){var n=e.length,r=this._map,o=this._reverseMap;if(!o){o=this._reverseMap=[];for(var i=0;i>>32-i)+t}function r(e,t,n,r,o,i,a){var s=e+(t&r|n&~r)+o+a;return(s<>>32-i)+t}function o(e,t,n,r,o,i,a){var s=e+(t^n^r)+o+a;return(s<>>32-i)+t}function i(e,t,n,r,o,i,a){var s=e+(n^(t|~r))+o+a;return(s<>>32-i)+t}var a=e,s=a.lib,u=s.WordArray,c=s.Hasher,l=a.algo,f=[];!function(){for(var e=0;e<64;e++)f[e]=4294967296*t.abs(t.sin(e+1))|0}();var p=l.MD5=c.extend({_doReset:function(){this._hash=new u.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var a=0;a<16;a++){var s=t+a,u=e[s];e[s]=16711935&(u<<8|u>>>24)|4278255360&(u<<24|u>>>8)}var c=this._hash.words,l=e[t+0],p=e[t+1],d=e[t+2],h=e[t+3],v=e[t+4],m=e[t+5],g=e[t+6],y=e[t+7],b=e[t+8],_=e[t+9],w=e[t+10],x=e[t+11],k=e[t+12],C=e[t+13],T=e[t+14],O=e[t+15],S=c[0],E=c[1],A=c[2],P=c[3];S=n(S,E,A,P,l,7,f[0]),P=n(P,S,E,A,p,12,f[1]),A=n(A,P,S,E,d,17,f[2]),E=n(E,A,P,S,h,22,f[3]),S=n(S,E,A,P,v,7,f[4]),P=n(P,S,E,A,m,12,f[5]),A=n(A,P,S,E,g,17,f[6]),E=n(E,A,P,S,y,22,f[7]),S=n(S,E,A,P,b,7,f[8]),P=n(P,S,E,A,_,12,f[9]),A=n(A,P,S,E,w,17,f[10]),E=n(E,A,P,S,x,22,f[11]),S=n(S,E,A,P,k,7,f[12]),P=n(P,S,E,A,C,12,f[13]),A=n(A,P,S,E,T,17,f[14]),E=n(E,A,P,S,O,22,f[15]),S=r(S,E,A,P,p,5,f[16]),P=r(P,S,E,A,g,9,f[17]),A=r(A,P,S,E,x,14,f[18]),E=r(E,A,P,S,l,20,f[19]),S=r(S,E,A,P,m,5,f[20]),P=r(P,S,E,A,w,9,f[21]),A=r(A,P,S,E,O,14,f[22]),E=r(E,A,P,S,v,20,f[23]),S=r(S,E,A,P,_,5,f[24]),P=r(P,S,E,A,T,9,f[25]),A=r(A,P,S,E,h,14,f[26]),E=r(E,A,P,S,b,20,f[27]),S=r(S,E,A,P,C,5,f[28]),P=r(P,S,E,A,d,9,f[29]),A=r(A,P,S,E,y,14,f[30]),E=r(E,A,P,S,k,20,f[31]),S=o(S,E,A,P,m,4,f[32]),P=o(P,S,E,A,b,11,f[33]),A=o(A,P,S,E,x,16,f[34]),E=o(E,A,P,S,T,23,f[35]),S=o(S,E,A,P,p,4,f[36]),P=o(P,S,E,A,v,11,f[37]),A=o(A,P,S,E,y,16,f[38]),E=o(E,A,P,S,w,23,f[39]),S=o(S,E,A,P,C,4,f[40]),P=o(P,S,E,A,l,11,f[41]),A=o(A,P,S,E,h,16,f[42]),E=o(E,A,P,S,g,23,f[43]),S=o(S,E,A,P,_,4,f[44]),P=o(P,S,E,A,k,11,f[45]),A=o(A,P,S,E,O,16,f[46]),E=o(E,A,P,S,d,23,f[47]),S=i(S,E,A,P,l,6,f[48]),P=i(P,S,E,A,y,10,f[49]),A=i(A,P,S,E,T,15,f[50]),E=i(E,A,P,S,m,21,f[51]),S=i(S,E,A,P,k,6,f[52]),P=i(P,S,E,A,h,10,f[53]),A=i(A,P,S,E,w,15,f[54]),E=i(E,A,P,S,p,21,f[55]),S=i(S,E,A,P,b,6,f[56]),P=i(P,S,E,A,O,10,f[57]),A=i(A,P,S,E,g,15,f[58]),E=i(E,A,P,S,C,21,f[59]),S=i(S,E,A,P,v,6,f[60]),P=i(P,S,E,A,x,10,f[61]),A=i(A,P,S,E,d,15,f[62]),E=i(E,A,P,S,_,21,f[63]),c[0]=c[0]+S|0,c[1]=c[1]+E|0,c[2]=c[2]+A|0,c[3]=c[3]+P|0},_doFinalize:function(){var e=this._data,n=e.words,r=8*this._nDataBytes,o=8*e.sigBytes;n[o>>>5]|=128<<24-o%32;var i=t.floor(r/4294967296),a=r;n[15+(o+64>>>9<<4)]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8),n[14+(o+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),e.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=c.clone.call(this);return e._hash=this._hash.clone(),e}});a.MD5=c._createHelper(p),a.HmacMD5=c._createHmacHelper(p)}(Math),e.MD5})},function(e,t,n){!function(r,o,i){e.exports=t=o(n(1),n(134),n(135))}(0,function(e){return function(){var t=e,n=t.lib,r=n.Base,o=n.WordArray,i=t.algo,a=i.MD5,s=i.EvpKDF=r.extend({cfg:r.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,r=n.hasher.create(),i=o.create(),a=i.words,s=n.keySize,u=n.iterations;a.length1?(e[n[0]]=e[n[0]]||{},e[n[0]][n[1]]=t):e[n[0]]=t},i.prototype.buildCall=function(){var e=this,t=function(){var t=e.toPayload(Array.prototype.slice.call(arguments));return t.callback?e.requestManager.sendAsync(t,function(n,r){t.callback(n,e.formatOutput(r))}):e.formatOutput(e.requestManager.send(t))};return t.request=this.request.bind(this),t},i.prototype.request=function(){var e=this.toPayload(Array.prototype.slice.call(arguments));return e.format=this.formatOutput.bind(this),e},e.exports=i},function(e,t,n){(function(t){function n(e,t){return function(){return t.apply(e,Array.prototype.slice.call(arguments,0))}}function r(e,t){return Array.prototype.slice.call(e,t||0)}function o(e,t){a(e,function(e,n){return t(e,n),!1})}function i(e,t){var n=s(e)?[]:{};return a(e,function(e,r){return n[r]=t(e,r),!1}),n}function a(e,t){if(s(e)){for(var n=0;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={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(381),o=n(203);e.exports=function(e,t){return t&&"hex"===t.encoding&&(e.length>2&&"0x"===e.substr(0,2)&&(e=e.substr(2)),e=r.enc.Hex.parse(e)),o(e,{outputLength:256}).toString()}},function(e,t){e.exports={InvalidNumberOfParams:function(){return new Error("Invalid number of input parameters")},InvalidConnection:function(e){return new Error("CONNECTION ERROR: Couldn't connect to node "+e+".")},InvalidProvider:function(){return new Error("Provider not set or invalid")},InvalidResponse:function(e){var t=e&&e.error&&e.error.message?e.error.message:"Invalid JSON RPC response: "+JSON.stringify(e);return new Error(t)}}},function(e,t,n){var r=n(10),o=function(e){this.name=e.name,this.getter=e.getter,this.setter=e.setter,this.outputFormatter=e.outputFormatter,this.inputFormatter=e.inputFormatter,this.requestManager=null};o.prototype.setRequestManager=function(e){this.requestManager=e},o.prototype.formatInput=function(e){return this.inputFormatter?this.inputFormatter(e):e},o.prototype.formatOutput=function(e){return this.outputFormatter&&null!==e?this.outputFormatter(e):e},o.prototype.extractCallback=function(e){if(r.isFunction(e[e.length-1]))return e.pop()},o.prototype.attachToObject=function(e){var t={get:this.buildGet(),enumerable:!0},n=this.name.split("."),r=n[0];n.length>1&&(e[n[0]]=e[n[0]]||{},e=e[n[0]],r=n[1]),Object.defineProperty(e,r,t),e[i(r)]=this.buildAsyncGet()};var i=function(e){return"get"+e.charAt(0).toUpperCase()+e.slice(1)};o.prototype.buildGet=function(){var e=this;return function(){return e.formatOutput(e.requestManager.send({method:e.getter}))}},o.prototype.buildAsyncGet=function(){var e=this,t=function(t){e.requestManager.sendAsync({method:e.getter},function(n,r){t(n,e.formatOutput(r))})};return t.request=this.request.bind(this),t},o.prototype.request=function(){var e={method:this.getter,params:[],callback:this.extractCallback(Array.prototype.slice.call(arguments))};return e.format=this.formatOutput.bind(this),e},e.exports=o},function(e,t,n){"use strict";var r={};e.exports=r},function(e,t,n){"use strict";var r=n(4),o=(n(0),{}),i={reinitializeTransaction:function(){this.transactionWrappers=this.getTransactionWrappers(),this.wrapperInitData?this.wrapperInitData.length=0:this.wrapperInitData=[],this._isInTransaction=!1},_isInTransaction:!1,getTransactionWrappers:null,isInTransaction:function(){return!!this._isInTransaction},perform:function(e,t,n,o,i,a,s,u){this.isInTransaction()&&r("27");var c,l;try{this._isInTransaction=!0,c=!0,this.initializeAll(0),l=e.call(t,n,o,i,a,s,u),c=!1}finally{try{if(c)try{this.closeAll(0)}catch(e){}else this.closeAll(0)}finally{this._isInTransaction=!1}}return l},initializeAll:function(e){for(var t=this.transactionWrappers,n=e;n]/,u=n(112),c=u(function(e,t){if(e.namespaceURI!==i.svg||"innerHTML"in e)e.innerHTML=t;else{r=r||document.createElement("div"),r.innerHTML=""+t+"";for(var n=r.firstChild;n.firstChild;)e.appendChild(n.firstChild)}});if(o.canUseDOM){var l=document.createElement("div");l.innerHTML=" ",""===l.innerHTML&&(c=function(e,t){if(e.parentNode&&e.parentNode.replaceChild(e,e),a.test(t)||"<"===t[0]&&s.test(t)){e.innerHTML=String.fromCharCode(65279)+t;var n=e.firstChild;1===n.data.length?e.removeChild(n):n.deleteData(0,1)}else e.innerHTML=t}),l=null}e.exports=c},function(e,t,n){"use strict";function r(e){var t=""+e,n=i.exec(t);if(!n)return t;var r,o="",a=0,s=0;for(a=n.index;a]/;e.exports=o},function(e,t,n){"use strict";function r(e){return Object.prototype.hasOwnProperty.call(e,v)||(e[v]=d++,f[e[v]]={}),f[e[v]]}var o,i=n(7),a=n(104),s=n(278),u=n(170),c=n(279),l=n(108),f={},p=!1,d=0,h={topAbort:"abort",topAnimationEnd:c("animationend")||"animationend",topAnimationIteration:c("animationiteration")||"animationiteration",topAnimationStart:c("animationstart")||"animationstart",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topTransitionEnd:c("transitionend")||"transitionend",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},v="_reactListenersID"+String(Math.random()).slice(2),m=i({},s,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(m.handleTopLevel),m.ReactEventListener=e}},setEnabled:function(e){m.ReactEventListener&&m.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!m.ReactEventListener||!m.ReactEventListener.isEnabled())},listenTo:function(e,t){for(var n=t,o=r(n),i=a.registrationNameDependencies[e],s=0;s=s;o--,i=-1){var u=e.getLine(o);i>-1&&(u=u.slice(0,i));var c=a(u,t);if(c)return{from:v(o,c.index),to:v(o,c.index+c[0].length),match:c}}}function u(e,t,r){t=n(t);for(var o,i=1,s=r.line,u=e.firstLine();s>=u;){for(var c=0;c>1,s=r(e.slice(0,a)).length;if(s==n)return a;s>n?i=a:o=a+1}}function l(e,t,n,r){if(!t.length)return null;var o=r?d:h,i=o(t).split(/\r|\n\r?/);e:for(var a=n.line,s=n.ch,u=e.lastLine()+1-i.length;a<=u;a++,s=0){var l=e.getLine(a).slice(s),f=o(l);if(1==i.length){var p=f.indexOf(i[0]);if(-1==p)continue e;var n=c(l,f,p,o)+s;return{from:v(a,c(l,f,p,o)+s),to:v(a,c(l,f,p+i[0].length,o)+s)}}var m=f.length-i[0].length;if(f.slice(m)==i[0]){for(var g=1;g=u;a--,s=-1){var l=e.getLine(a);s>-1&&(l=l.slice(0,s));var f=o(l);if(1==i.length){var p=f.lastIndexOf(i[0]);if(-1==p)continue e;return{from:v(a,c(l,f,p,o)),to:v(a,c(l,f,p+i[0].length,o))}}var m=i[i.length-1];if(f.slice(0,m.length)==m){for(var g=1,n=a-i.length+1;g0);)r.push({anchor:o.from(),head:o.to()});r.length&&this.setSelections(r,0)})})},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,n){var r=n(19),o=n(8),i=n(56);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",a)}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t){e.exports=!0},function(e,t,n){var r=n(31).f,o=n(43),i=n(15)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t,n){n(355);for(var r=n(16),o=n(44),i=n(57),a=n(15)("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=t&&r<=n?r-t+10:e}).join("")},a=function(e){for(var t,n=e;n.length>2;)t=n.slice(0,9),n=parseInt(t,10)%97+n.slice(t.length);return parseInt(n,10)%97},s=function(e){this._iban=e};s.fromAddress=function(e){var t=new r(e,16),n=t.toString(36),i=o(n,15);return s.fromBban(i.toUpperCase())},s.fromBban=function(e){var t=a(i("XE00"+e)),n=("0"+(98-t)).slice(-2);return new s("XE"+n+e)},s.createIndirect=function(e){return s.fromBban("ETH"+e.institution+e.identifier)},s.isValid=function(e){return new s(e).isValid()},s.prototype.isValid=function(){return/^XE[0-9]{2}(ETH[0-9A-Z]{13}|[0-9A-Z]{30,31})$/.test(this._iban)&&1===a(i(this._iban))},s.prototype.isDirect=function(){return 34===this._iban.length||35===this._iban.length},s.prototype.isIndirect=function(){return 20===this._iban.length},s.prototype.checksum=function(){return this._iban.substr(2,2)},s.prototype.institution=function(){return this.isIndirect()?this._iban.substr(7,4):""},s.prototype.client=function(){return this.isIndirect()?this._iban.substr(11):""},s.prototype.address=function(){if(this.isDirect()){var e=this._iban.substr(4),t=new r(e,36);return o(t.toString(16),20)}return""},s.prototype.toString=function(){return this._iban},e.exports=s},function(e,t,n){var r=n(34),o=n(10),i=function(e){return null===e||void 0===e?null:(e=String(e),0===e.indexOf("0x")?e:o.fromUtf8(e))},a=function(e){return o.isString(e)?e:(e=e||{},e.topics=e.topics||[],e.topics=e.topics.map(function(e){return o.isArray(e)?e.map(i):i(e)}),{topics:e.topics,from:e.from,to:e.to,address:e.address,fromBlock:r.inputBlockNumberFormatter(e.fromBlock),toBlock:r.inputBlockNumberFormatter(e.toBlock)})},s=function(e,t){o.isString(e.options)||e.get(function(e,n){e&&t(e),o.isArray(n)&&n.forEach(function(e){t(null,e)})})},u=function(e){var t=function(t,n){if(t)return e.callbacks.forEach(function(e){e(t)});o.isArray(n)&&n.forEach(function(t){t=e.formatter?e.formatter(t):t,e.callbacks.forEach(function(e){e(null,t)})})};e.requestManager.startPolling({method:e.implementation.poll.call,params:[e.filterId]},e.filterId,t,e.stopWatching.bind(e))},c=function(e,t,n,r,o){var i=this,c={};return n.forEach(function(t){t.setRequestManager(e),t.attachToObject(c)}),this.requestManager=e,this.options=a(t),this.implementation=c,this.filterId=null,this.callbacks=[],this.getLogsCallbacks=[],this.pollFilters=[],this.formatter=r,this.implementation.newFilter(this.options,function(e,t){if(e)i.callbacks.forEach(function(t){t(e)});else if(i.filterId=t,i.getLogsCallbacks.forEach(function(e){i.get(e)}),i.getLogsCallbacks=[],i.callbacks.forEach(function(e){s(i,e)}),i.callbacks.length>0&&u(i),"function"==typeof o)return i.watch(o)}),this};c.prototype.watch=function(e){return this.callbacks.push(e),this.filterId&&(s(this,e),u(this)),this},c.prototype.stopWatching=function(e){if(this.requestManager.stopPolling(this.filterId),this.callbacks=[],!e)return this.implementation.uninstallFilter(this.filterId);this.implementation.uninstallFilter(this.filterId,e)},c.prototype.get=function(e){var t=this;if(!o.isFunction(e)){if(null===this.filterId)throw new Error("Filter ID Error: filter().get() can't be chained synchronous, please provide a callback for the get() method.");return this.implementation.getLogs(this.filterId).map(function(e){return t.formatter?t.formatter(e):e})}return null===this.filterId?this.getLogsCallbacks.push(e):this.implementation.getLogs(this.filterId,function(n,r){n?e(n):e(null,r.map(function(e){return t.formatter?t.formatter(e):e}))}),this},e.exports=c},function(e,t,n){var r=n(61),o=function(){return[new r({name:"newFilter",call:function(e){switch(e[0]){case"latest":return e.shift(),this.params=0,"eth_newBlockFilter";case"pending":return e.shift(),this.params=0,"eth_newPendingTransactionFilter";default:return"eth_newFilter"}},params:1}),new r({name:"uninstallFilter",call:"eth_uninstallFilter",params:1}),new r({name:"getLogs",call:"eth_getFilterLogs",params:1}),new r({name:"poll",call:"eth_getFilterChanges",params:1})]},i=function(){return[new r({name:"newFilter",call:"shh_newFilter",params:1}),new r({name:"uninstallFilter",call:"shh_uninstallFilter",params:1}),new r({name:"getLogs",call:"shh_getMessages",params:1}),new r({name:"poll",call:"shh_getFilterChanges",params:1})]};e.exports={eth:o,shh:i}},function(e,t,n){"use strict";function r(e){return"[object Array]"===Object.prototype.toString.call(e)}function o(e){return"[object String]"===Object.prototype.toString.call(e)}function i(e,t){return e instanceof t}e.exports={isArray:r,isString:o,isInstanceOf:i}},function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(e,t){for(var n=0;n>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}"object"==typeof t&&t.versions&&t.versions.node&&(r=n);for(var i=!r.JS_SHA3_TEST&&"object"==typeof e&&e.exports,a="0123456789abcdef".split(""),s=[31,7936,2031616,520093696],u=[1,256,65536,16777216],c=[6,1536,393216,100663296],l=[0,8,16,24],f=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],p=[224,256,384,512],d=[128,256],h=["hex","buffer","arrayBuffer","array"],v=function(e,t,n){return function(r){return new o(e,t,e).update(r)[n]()}},m=function(e,t,n){return function(r,i){return new o(e,t,i).update(r)[n]()}},g=function(e,t){var n=v(e,t,"hex");n.create=function(){return new o(e,t,e)},n.update=function(e){return n.create().update(e)};for(var r=0;r>2]|=e[c]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[n>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=s){for(this.start=n-s,this.block=a[u],n=0;n>2]|=this.padding[3&t],this.lastByteIndex==this.byteCount)for(e[0]=e[n],t=1;t>4&15]+a[15&e]+a[e>>12&15]+a[e>>8&15]+a[e>>20&15]+a[e>>16&15]+a[e>>28&15]+a[e>>24&15];s%t==0&&(T(n),i=0)}return o&&(e=n[i],o>0&&(u+=a[e>>4&15]+a[15&e]),o>1&&(u+=a[e>>12&15]+a[e>>8&15]),o>2&&(u+=a[e>>20&15]+a[e>>16&15])),u},o.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,o=this.extraBytes,i=0,a=0,s=this.outputBits>>3;e=o?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n==0&&T(r)}return i&&(e=s<<2,t=r[a],i>0&&(u[e]=255&t),i>1&&(u[e+1]=t>>8&255),i>2&&(u[e+2]=t>>16&255)),u};var T=function(e){var t,n,r,o,i,a,s,u,c,l,p,d,h,v,m,g,y,b,_,w,x,k,C,T,O,S,E,A,P,M,N,L,R,I,D,j,B,F,U,H,W,z,V,q,G,K,Y,$,X,J,Z,Q,ee,te,ne,re,oe,ie,ae,se,ue,ce,le;for(r=0;r<48;r+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],p=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],t=d^(a<<1|s>>>31),n=h^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=o^(u<<1|c>>>31),n=i^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|p>>>31),n=s^(p<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(d<<1|h>>>31),n=c^(h<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(o<<1|i>>>31),n=p^(i<<1|o>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,v=e[0],m=e[1],K=e[11]<<4|e[10]>>>28,Y=e[10]<<4|e[11]>>>28,A=e[20]<<3|e[21]>>>29,P=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,I=e[2]<<1|e[3]>>>31,D=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,$=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,M=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,j=e[14]<<6|e[15]>>>26,B=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,_=e[24]<<11|e[25]>>>21,J=e[34]<<15|e[35]>>>17,Z=e[35]<<15|e[34]>>>17,L=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,O=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,U=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,x=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,q=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,E=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,H=e[38]<<8|e[39]>>>24,W=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,C=e[49]<<14|e[48]>>>18,e[0]=v^~g&b,e[1]=m^~y&_,e[10]=T^~S&A,e[11]=O^~E&P,e[20]=I^~j&F,e[21]=D^~B&U,e[30]=q^~K&$,e[31]=G^~Y&X,e[40]=te^~re&ie,e[41]=ne^~oe&ae,e[2]=g^~b&w,e[3]=y^~_&x,e[12]=S^~A&M,e[13]=E^~P&N,e[22]=j^~F&H,e[23]=B^~U&W,e[32]=K^~$&J,e[33]=Y^~X&Z,e[42]=re^~ie&se,e[43]=oe^~ae&ue,e[4]=b^~w&k,e[5]=_^~x&C,e[14]=A^~M&L,e[15]=P^~N&R,e[24]=F^~H&z,e[25]=U^~W&V,e[34]=$^~J&Q,e[35]=X^~Z&ee,e[44]=ie^~se&ce,e[45]=ae^~ue&le,e[6]=w^~k&v,e[7]=x^~C&m,e[16]=M^~L&T,e[17]=N^~R&O,e[26]=H^~z&I,e[27]=W^~V&D,e[36]=J^~Q&q,e[37]=Z^~ee&G,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=k^~v&g,e[9]=C^~m&y,e[18]=L^~T&S,e[19]=R^~O&E,e[28]=z^~I&j,e[29]=V^~D&B,e[38]=Q^~q&K,e[39]=ee^~G&Y,e[48]=ce^~te&re,e[49]=le^~ne&oe,e[0]^=f[r],e[1]^=f[r+1]};if(i)e.exports=_;else if(r)for(var O in _)r[O]=_[O]}(this)}).call(t,n(115),n(46))},function(e,t,n){"use strict";var r=n(214),o=n(454);o.Logging=r,e.exports=o},function(e,t,n){"use strict";(function(t){function r(e){return"0x"+t.from(e).toString("hex")}function o(e,t){if(e instanceof Array&&t.match(/bytes[0-9]+/)){for(var n="",o=0,i=!1;o=128))&&(n=null)}e=null===n?r(e):n}return"uint"===t.substr(0,4)&&+t.substr(4)<=48&&(e=+e),e}function i(e){for(var t=f(e).slice(2),n=[],r=0;r=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e,t,n,r){n&&(0,b.default)(e,t,{enumerable:n.enumerable,configurable:n.configurable,writable:n.writable,value:n.initializer?n.initializer.call(r):void 0})}function i(e,t,n,r,o){var i={};return Object.keys(r).forEach(function(e){i[e]=r[e]}),i.enumerable=!!i.enumerable,i.configurable=!!i.configurable,("value"in i||i.initializer)&&(i.writable=!0),i=n.slice().reverse().reduce(function(n,r){return r(e,t,n)||n},i),o&&void 0!==i.initializer&&(i.value=i.initializer?i.initializer.call(o):void 0,i.initializer=void 0),void 0===i.initializer&&(Object.defineProperty(e,t,i),i=null),i}function a(e){for(var t={};e;)!function(){var n=e&&e.constructor&&e.constructor.name||"";(0,v.default)(e).sort().forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)||(t[e]={name:e,prototypeName:n})}),e=(0,d.default)(e)}();return(0,g.default)(t)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s,u,c,l,f,p=n(25),d=r(p),h=n(544),v=r(h),m=n(547),g=r(m),y=n(26),b=r(y),_=n(47),w=r(_),x=n(5),k=r(x),C=n(6),T=r(C),O=n(39),S=n(103),E=void 0,A=(s=function(){function e(){(0,k.default)(this,e),o(this,"values",u,this),o(this,"position",c,this),o(this,"show",l,this),o(this,"selected",f,this),this.elements={},this.inputNode=null,this.lastObject=null,this.lastObjectPropertyNames=[]}return(0,T.default)(e,[{key:"clearCache",value:function(){this.lastObject=null,this.lastObjectPropertyNames=null}},{key:"focus",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;if(0===this.values.length)return void(this.selected=null);if(this.selected=null===this.selected?1===e?0:this.values.length-1:(this.values.length+this.selected+e)%this.values.length,!this.isVisible(this.selected)){var t=this.elements[this.selected];t&&t.scrollIntoView(-1===e)}}},{key:"focusOnInput",value:function(){this.inputNode&&this.inputNode.focus()}},{key:"hide",value:function(){this.show=!1,this.selected=null}},{key:"isVisible",value:function(e){var t=this.elements[e];if(!t)return!1;var n=t.getBoundingClientRect(),r=t.parentElement.getBoundingClientRect();return!(n.topr.bottom)}},{key:"select",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.selected,n=null===t?0:t;if(!this.values[n])return void console.warn("autocomplete::select has been called on AutocompleteStore with wrong value "+n);var r=this.values[n].name,o=e.input,i=o.split(".");i[i.length-1]=r;var a=i.join(".");return this.hide(),this.focusOnInput(),e.updateInput(a,!1)}},{key:"setElement",value:function(e,t){this.elements[e]=t}},{key:"setInputNode",value:function(e){this.inputNode=e}},{key:"setPosition",value:function(){if(this.inputNode){var e=this.inputNode.getBoundingClientRect(),t=document.body.getBoundingClientRect();if(e.top0;!this.show&&t&&this.setPosition(),this.show=t}},{key:"update",value:function(e){if(0===e.length)return this.setValues([]);var t=e.split("."),n=t.pop().toLowerCase(),r=t.join("."),o=r.length>0?r:"window";if(o!==this.lastObject){var i=(0,S.evaluate)(o);i.error?this.lastObjectProperties=[]:this.lastObjectProperties=a(i.result),this.lastObject=o}var s=this.lastObjectProperties.filter(function(e){return e.name.toLowerCase().includes(n)});return this.setValues(s)}},{key:"hasSelected",get:function(){return null!==this.selected}}],[{key:"get",value:function(){return E||(E=new e),E}}]),e}(),u=i(s.prototype,"values",[O.observable],{enumerable:!0,initializer:function(){return[]}}),c=i(s.prototype,"position",[O.observable],{enumerable:!0,initializer:function(){return{}}}),l=i(s.prototype,"show",[O.observable],{enumerable:!0,initializer:function(){return!1}}),f=i(s.prototype,"selected",[O.observable],{enumerable:!0,initializer:function(){return null}}),i(s.prototype,"focus",[O.action],(0,w.default)(s.prototype,"focus"),s.prototype),i(s.prototype,"hide",[O.action],(0,w.default)(s.prototype,"hide"),s.prototype),i(s.prototype,"setPosition",[O.action],(0,w.default)(s.prototype,"setPosition"),s.prototype),i(s.prototype,"setValues",[O.action],(0,w.default)(s.prototype,"setValues"),s.prototype),s);t.default=A},function(e,t,n){"use strict";function r(e){try{return{result:eval.apply(window,[""+e])}}catch(n){try{var t=eval.apply(window,["(function () {\n var x = "+e+";\n return x;\n })()"]);return{result:t}}catch(e){return{error:e}}}}Object.defineProperty(t,"__esModule",{value:!0}),t.evaluate=r},function(e,t,n){"use strict";function r(){if(s)for(var e in u){var t=u[e],n=s.indexOf(e);if(n>-1||a("96",e),!c.plugins[n]){t.extractEvents||a("97",e),c.plugins[n]=t;var r=t.eventTypes;for(var i in r)o(r[i],t,i)||a("98",i,e)}}}function o(e,t,n){c.eventNameDispatchConfigs.hasOwnProperty(n)&&a("99",n),c.eventNameDispatchConfigs[n]=e;var r=e.phasedRegistrationNames;if(r){for(var o in r)if(r.hasOwnProperty(o)){var s=r[o];i(s,t,n)}return!0}return!!e.registrationName&&(i(e.registrationName,t,n),!0)}function i(e,t,n){c.registrationNameModules[e]&&a("100",e),c.registrationNameModules[e]=t,c.registrationNameDependencies[e]=t.eventTypes[n].dependencies}var a=n(4),s=(n(0),null),u={},c={plugins:[],eventNameDispatchConfigs:{},registrationNameModules:{},registrationNameDependencies:{},possibleRegistrationNames:null,injectEventPluginOrder:function(e){s&&a("101"),s=Array.prototype.slice.call(e),r()},injectEventPluginsByName:function(e){var t=!1;for(var n in e)if(e.hasOwnProperty(n)){var o=e[n];u.hasOwnProperty(n)&&u[n]===o||(u[n]&&a("102",n),u[n]=o,t=!0)}t&&r()},getPluginModuleForEvent:function(e){var t=e.dispatchConfig;if(t.registrationName)return c.registrationNameModules[t.registrationName]||null;if(void 0!==t.phasedRegistrationNames){var n=t.phasedRegistrationNames;for(var r in n)if(n.hasOwnProperty(r)){var o=c.registrationNameModules[n[r]];if(o)return o}}return null},_resetEventPlugins:function(){s=null;for(var e in u)u.hasOwnProperty(e)&&delete u[e];c.plugins.length=0;var t=c.eventNameDispatchConfigs;for(var n in t)t.hasOwnProperty(n)&&delete t[n];var r=c.registrationNameModules;for(var o in r)r.hasOwnProperty(o)&&delete r[o]}};e.exports=c},function(e,t,n){"use strict";function r(e){return"topMouseUp"===e||"topTouchEnd"===e||"topTouchCancel"===e}function o(e){return"topMouseMove"===e||"topTouchMove"===e}function i(e){return"topMouseDown"===e||"topTouchStart"===e}function a(e,t,n,r){var o=e.type||"unknown-event";e.currentTarget=g.getNodeFromInstance(r),t?v.invokeGuardedCallbackWithCatch(o,n,e):v.invokeGuardedCallback(o,n,e),e.currentTarget=null}function s(e,t){var n=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(n))for(var o=0;o1)for(var n=1;n0&&r.length<20?n+" (keys: "+r.join(", ")+")":n}function i(e,t){var n=s.get(e);if(!n){return null}return n}var a=n(4),s=(n(29),n(67)),u=(n(20),n(24)),c=(n(0),n(3),{isMounted:function(e){var t=s.get(e);return!!t&&!!t._renderedComponent},enqueueCallback:function(e,t,n){c.validateCallback(t,n);var o=i(e);if(!o)return null;o._pendingCallbacks?o._pendingCallbacks.push(t):o._pendingCallbacks=[t],r(o)},enqueueCallbackInternal:function(e,t){e._pendingCallbacks?e._pendingCallbacks.push(t):e._pendingCallbacks=[t],r(e)},enqueueForceUpdate:function(e){var t=i(e,"forceUpdate");t&&(t._pendingForceUpdate=!0,r(t))},enqueueReplaceState:function(e,t,n){var o=i(e,"replaceState");o&&(o._pendingStateQueue=[t],o._pendingReplaceState=!0,void 0!==n&&null!==n&&(c.validateCallback(n,"replaceState"),o._pendingCallbacks?o._pendingCallbacks.push(n):o._pendingCallbacks=[n]),r(o))},enqueueSetState:function(e,t){var n=i(e,"setState");if(n){(n._pendingStateQueue||(n._pendingStateQueue=[])).push(t),r(n)}},enqueueElementInternal:function(e,t,n){e._pendingElement=t,e._context=n,r(e)},validateCallback:function(e,t){e&&"function"!=typeof e&&a("122",t,o(e))}});e.exports=c},function(e,t,n){"use strict";var r=(n(7),n(17)),o=(n(3),r);e.exports=o},function(e,t,n){"use strict";function r(e){var t,n=e.keyCode;return"charCode"in e?0===(t=e.charCode)&&13===n&&(t=13):t=n,t>=32||13===t?t:0}e.exports=r},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(123)("keys"),o=n(84);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(16),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t,n){var r=n(55),o=n(16).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){var r=n(55);e.exports=function(e,t){if(!r(e))return e;var n,o;if(t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;if("function"==typeof(n=e.valueOf)&&!r(o=n.call(e)))return o;if(!t&&"function"==typeof(n=e.toString)&&!r(o=n.call(e)))return o;throw TypeError("Can't convert object to primitive value")}},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,n){var r=n(32),o=n(352),i=n(129),a=n(122)("IE_PROTO"),s=function(){},u=function(){var e,t=n(124)("iframe"),r=i.length;for(t.style.display="none",n(194).appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("